Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGrid] Stop exporting editing selector #7456

Merged
merged 3 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ The minimum supported Node.js version has been changed from 12.0.0 to 14.0.0, si
- The `gridTotalHeaderHeightSelector` selector was removed.
- The `gridDensityRowHeightSelector` selector was removed.
- The `gridDensityHeaderHeightSelector` selector was removed.
- The `gridEditRowsStateSelector` selector was removed.
- The `apiRef.current.state.density.headerHeight` property was removed.
- The `apiRef.current.state.density.rowHeight` property was removed.

Expand Down
6 changes: 0 additions & 6 deletions docs/pages/x/api/data-grid/selectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,6 @@
"description": "",
"supportsApiRef": true
},
{
"name": "gridEditRowsStateSelector",
"returnType": "GridEditingState",
"description": "",
"supportsApiRef": false
},
{
"name": "gridFilterModelSelector",
"returnType": "GridFilterModel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
useGridApiContext,
useGridSelector,
getDataGridUtilityClass,
gridEditRowsStateSelector,
} from '@mui/x-data-grid';
import { gridEditRowsStateSelector } from '@mui/x-data-grid/internals';
import { DataGridProProcessedProps } from '../models/dataGridProProps';
import { useGridRootProps } from '../hooks/utils/useGridRootProps';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
gridRowMaximumTreeDepthSelector,
useGridApiOptionHandler,
GridRowId,
gridEditRowsStateSelector,
} from '@mui/x-data-grid';
import { gridEditRowsStateSelector } from '@mui/x-data-grid/internals';
import { GridRowOrderChangeParams } from '../../../models/gridRowOrderChangeParams';
import { GridPrivateApiPro } from '../../../models/gridApiPro';
import { DataGridProProcessedProps } from '../../../models/dataGridProProps';
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion packages/grid/x-data-grid/src/hooks/features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export * from './columnMenu';
export * from './columns';
export * from './columnGrouping';
export * from './density';
export * from './editing';
export * from './filter';
export * from './focus';
export * from './pagination';
Expand Down
1 change: 1 addition & 0 deletions packages/grid/x-data-grid/src/internals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export {
preferencePanelStateInitializer,
} from '../hooks/features/preferencesPanel/useGridPreferencesPanel';
export { useGridEditing, editingStateInitializer } from '../hooks/features/editing/useGridEditing';
export { gridEditRowsStateSelector } from '../hooks/features/editing/gridEditingSelectors';
export { useGridRows, rowsStateInitializer } from '../hooks/features/rows/useGridRows';
export { useGridRowsPreProcessors } from '../hooks/features/rows/useGridRowsPreProcessors';
export type {
Expand Down
1 change: 0 additions & 1 deletion scripts/x-data-grid-premium.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@
{ "name": "GridEditModes", "kind": "Enum" },
{ "name": "GridEditRowApi", "kind": "TypeAlias" },
{ "name": "GridEditRowProps", "kind": "TypeAlias" },
{ "name": "gridEditRowsStateSelector", "kind": "Variable" },
{ "name": "GridEditSingleSelectCell", "kind": "Function" },
{ "name": "GridEditSingleSelectCellProps", "kind": "Interface" },
{ "name": "GridErrorHandler", "kind": "Function" },
Expand Down
1 change: 0 additions & 1 deletion scripts/x-data-grid-pro.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@
{ "name": "GridEditModes", "kind": "Enum" },
{ "name": "GridEditRowApi", "kind": "TypeAlias" },
{ "name": "GridEditRowProps", "kind": "TypeAlias" },
{ "name": "gridEditRowsStateSelector", "kind": "Variable" },
{ "name": "GridEditSingleSelectCell", "kind": "Function" },
{ "name": "GridEditSingleSelectCellProps", "kind": "Interface" },
{ "name": "GridErrorHandler", "kind": "Function" },
Expand Down
1 change: 0 additions & 1 deletion scripts/x-data-grid.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@
{ "name": "GridEditModes", "kind": "Enum" },
{ "name": "GridEditRowApi", "kind": "TypeAlias" },
{ "name": "GridEditRowProps", "kind": "TypeAlias" },
{ "name": "gridEditRowsStateSelector", "kind": "Variable" },
{ "name": "GridEditSingleSelectCell", "kind": "Function" },
{ "name": "GridEditSingleSelectCellProps", "kind": "Interface" },
{ "name": "GridErrorHandler", "kind": "Function" },
Expand Down