Skip to content

Commit

Permalink
[DataGrid] Remove deprecated constants (#11233)
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Engelen <[email protected]>
  • Loading branch information
michelengelen authored Nov 29, 2023
1 parent 9c70b0e commit 6bd86f5
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 23 deletions.
1 change: 1 addition & 0 deletions docs/.link-check-errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Broken links found by `yarn docs:link-check` that exist:
- https://mui.com/system/styles/api/#serverstylesheets
- https://mui.com/system/styles/api/#stylesprovider
- https://mui.com/system/styles/api/#themeprovider
- https://mui.com/x/api/data-grid/data-grid/#DataGrid-prop-filterDebounceMs
- https://mui.com/x/api/data-grid/data-grid/#props
- https://mui.com/x/api/data-grid/data-grid/#slots
- https://mui.com/x/api/date-pickers/date-picker/#slots
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ Below are described the steps you need to make to migrate from v6 to v7.

### Other exports

- The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` are no longer exported.
Use the [`filterDebounceMs`](/x/api/data-grid/data-grid/#DataGrid-prop-filterDebounceMs) prop to customize filter debounce time.

- The `GridPreferencesPanel` component is not exported anymore as it wasn't meant to be used outside of the Data Grid.

<!-- ### CSS classes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export { SUBMIT_FILTER_STROKE_TIME, SUBMIT_FILTER_DATE_STROKE_TIME } from '@mui/x-data-grid';

/**
* @deprecated Import DataGridPremium instead.
*/
Expand Down
2 changes: 0 additions & 2 deletions packages/grid/x-data-grid-pro/src/DataGridPro/DataGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export { SUBMIT_FILTER_STROKE_TIME, SUBMIT_FILTER_DATE_STROKE_TIME } from '@mui/x-data-grid';

/**
* @deprecated Import DataGridPro instead.
*/
Expand Down
14 changes: 1 addition & 13 deletions packages/grid/x-data-grid/src/DataGrid/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot } from '../compon
import { DataGridProps } from '../models/props/DataGridProps';
import { GridContextProvider } from '../context/GridContextProvider';
import { useDataGridComponent } from './useDataGridComponent';
import { useDataGridProps, DATA_GRID_PROPS_DEFAULT_VALUES } from './useDataGridProps';
import { useDataGridProps } from './useDataGridProps';
import { DataGridVirtualScroller } from '../components/DataGridVirtualScroller';
import { GridValidRowModel } from '../models/gridRows';

Expand Down Expand Up @@ -49,18 +49,6 @@ interface DataGridComponent {
*/
export const DataGrid = React.memo(DataGridRaw) as DataGridComponent;

/**
* Remove at v7
* @deprecated
*/
export const SUBMIT_FILTER_STROKE_TIME = DATA_GRID_PROPS_DEFAULT_VALUES.filterDebounceMs;

/**
* Remove at v7
* @deprecated
*/
export const SUBMIT_FILTER_DATE_STROKE_TIME = DATA_GRID_PROPS_DEFAULT_VALUES.filterDebounceMs;

DataGridRaw.propTypes = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
Expand Down
2 changes: 0 additions & 2 deletions scripts/x-data-grid-premium.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,6 @@
{ "name": "selectedIdsLookupSelector", "kind": "Variable" },
{ "name": "setupExcelExportWebWorker", "kind": "Function" },
{ "name": "skSK", "kind": "Variable" },
{ "name": "SUBMIT_FILTER_DATE_STROKE_TIME", "kind": "Variable" },
{ "name": "SUBMIT_FILTER_STROKE_TIME", "kind": "Variable" },
{ "name": "svSE", "kind": "Variable" },
{ "name": "ToolbarPropsOverrides", "kind": "Interface" },
{ "name": "trTR", "kind": "Variable" },
Expand Down
2 changes: 0 additions & 2 deletions scripts/x-data-grid-pro.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,6 @@
{ "name": "selectedGridRowsSelector", "kind": "Variable" },
{ "name": "selectedIdsLookupSelector", "kind": "Variable" },
{ "name": "skSK", "kind": "Variable" },
{ "name": "SUBMIT_FILTER_DATE_STROKE_TIME", "kind": "Variable" },
{ "name": "SUBMIT_FILTER_STROKE_TIME", "kind": "Variable" },
{ "name": "svSE", "kind": "Variable" },
{ "name": "ToolbarPropsOverrides", "kind": "Interface" },
{ "name": "trTR", "kind": "Variable" },
Expand Down
2 changes: 0 additions & 2 deletions scripts/x-data-grid.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,6 @@
{ "name": "selectedGridRowsSelector", "kind": "Variable" },
{ "name": "selectedIdsLookupSelector", "kind": "Variable" },
{ "name": "skSK", "kind": "Variable" },
{ "name": "SUBMIT_FILTER_DATE_STROKE_TIME", "kind": "Variable" },
{ "name": "SUBMIT_FILTER_STROKE_TIME", "kind": "Variable" },
{ "name": "svSE", "kind": "Variable" },
{ "name": "ToolbarPropsOverrides", "kind": "Interface" },
{ "name": "trTR", "kind": "Variable" },
Expand Down

0 comments on commit 6bd86f5

Please sign in to comment.