From 1d992fa2203bdcef01d15a0df4c6a3f1745e1023 Mon Sep 17 00:00:00 2001 From: Armin Mehinovic Date: Fri, 20 Dec 2024 19:57:06 +0100 Subject: [PATCH] Remove util from the public API --- .../migration/migration-data-grid-v7/migration-data-grid-v7.md | 1 + packages/x-data-grid/src/components/panel/filterPanel/index.ts | 3 ++- scripts/x-data-grid-premium.exports.json | 1 - scripts/x-data-grid-pro.exports.json | 1 - scripts/x-data-grid.exports.json | 1 - 5 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/data/migration/migration-data-grid-v7/migration-data-grid-v7.md b/docs/data/migration/migration-data-grid-v7/migration-data-grid-v7.md index 0ab2d97e6e86a..a16848e577412 100644 --- a/docs/data/migration/migration-data-grid-v7/migration-data-grid-v7.md +++ b/docs/data/migration/migration-data-grid-v7/migration-data-grid-v7.md @@ -52,6 +52,7 @@ Below are described the steps you need to make to migrate from v7 to v8. - The `rowPositionsDebounceMs` prop was removed. - The `apiRef.current.resize()` method was removed. - The `` component is not exported anymore. +- The `sanitizeFilterItemValue()` utility is not exported anymore. - `gridRowsDataRowIdToIdLookupSelector` was removed. Use `gridRowsLookupSelector` in combination with `getRowId()` API method instead. ```diff diff --git a/packages/x-data-grid/src/components/panel/filterPanel/index.ts b/packages/x-data-grid/src/components/panel/filterPanel/index.ts index 6490e6abb478d..a5afc2d7adc50 100644 --- a/packages/x-data-grid/src/components/panel/filterPanel/index.ts +++ b/packages/x-data-grid/src/components/panel/filterPanel/index.ts @@ -2,7 +2,8 @@ export * from './GridFilterForm'; export * from './GridFilterInputValue'; export * from './GridFilterInputDate'; export * from './GridFilterInputSingleSelect'; -export * from './GridFilterInputBoolean'; +export { GridFilterInputBoolean } from './GridFilterInputBoolean'; +export type { GridFilterInputBooleanProps } from './GridFilterInputBoolean'; export * from './GridFilterInputValueProps'; export { GridFilterPanel } from './GridFilterPanel'; export type { GetColumnForNewFilterArgs } from './GridFilterPanel'; diff --git a/scripts/x-data-grid-premium.exports.json b/scripts/x-data-grid-premium.exports.json index f1365fdb92570..b19e1c6650c81 100644 --- a/scripts/x-data-grid-premium.exports.json +++ b/scripts/x-data-grid-premium.exports.json @@ -663,7 +663,6 @@ { "name": "renderEditSingleSelectCell", "kind": "Variable" }, { "name": "renderRowReorderCell", "kind": "Variable" }, { "name": "RowPropsOverrides", "kind": "Interface" }, - { "name": "sanitizeFilterItemValue", "kind": "Function" }, { "name": "selectedGridRowsCountSelector", "kind": "Variable" }, { "name": "selectedGridRowsSelector", "kind": "Variable" }, { "name": "selectedIdsLookupSelector", "kind": "Variable" }, diff --git a/scripts/x-data-grid-pro.exports.json b/scripts/x-data-grid-pro.exports.json index a36c88814a0aa..78e596e05085e 100644 --- a/scripts/x-data-grid-pro.exports.json +++ b/scripts/x-data-grid-pro.exports.json @@ -612,7 +612,6 @@ { "name": "renderEditSingleSelectCell", "kind": "Variable" }, { "name": "renderRowReorderCell", "kind": "Variable" }, { "name": "RowPropsOverrides", "kind": "Interface" }, - { "name": "sanitizeFilterItemValue", "kind": "Function" }, { "name": "selectedGridRowsCountSelector", "kind": "Variable" }, { "name": "selectedGridRowsSelector", "kind": "Variable" }, { "name": "selectedIdsLookupSelector", "kind": "Variable" }, diff --git a/scripts/x-data-grid.exports.json b/scripts/x-data-grid.exports.json index 3569c1e94d264..36c02ff61d172 100644 --- a/scripts/x-data-grid.exports.json +++ b/scripts/x-data-grid.exports.json @@ -560,7 +560,6 @@ { "name": "renderEditInputCell", "kind": "Variable" }, { "name": "renderEditSingleSelectCell", "kind": "Variable" }, { "name": "RowPropsOverrides", "kind": "Interface" }, - { "name": "sanitizeFilterItemValue", "kind": "Function" }, { "name": "selectedGridRowsCountSelector", "kind": "Variable" }, { "name": "selectedGridRowsSelector", "kind": "Variable" }, { "name": "selectedIdsLookupSelector", "kind": "Variable" },