@mui/x-data-grid-premium 7.0.0-beta.7 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +195 -12
  2. package/DataGridPremium/DataGridPremium.js +21 -17
  3. package/README.md +1 -1
  4. package/esm/DataGridPremium/DataGridPremium.js +21 -17
  5. package/esm/components/GridAggregationHeader.js +1 -2
  6. package/esm/components/GridColumnMenuAggregationItem.js +2 -3
  7. package/esm/components/GridColumnMenuRowGroupItem.js +1 -2
  8. package/esm/components/GridColumnMenuRowUngroupItem.js +1 -2
  9. package/esm/components/GridExcelExportMenuItem.js +1 -1
  10. package/esm/components/GridGroupingColumnLeafCell.js +1 -2
  11. package/esm/components/GridGroupingCriteriaCell.js +2 -3
  12. package/esm/hooks/features/aggregation/gridAggregationUtils.js +4 -4
  13. package/esm/hooks/features/aggregation/useGridAggregation.js +1 -2
  14. package/esm/hooks/features/aggregation/useGridAggregationPreProcessors.js +1 -2
  15. package/esm/hooks/features/aggregation/wrapColumnWithAggregation.js +5 -9
  16. package/esm/hooks/features/cellSelection/useGridCellSelection.js +13 -21
  17. package/esm/hooks/features/clipboard/useGridClipboardImport.js +21 -8
  18. package/esm/hooks/features/export/serializer/excelSerializer.js +9 -22
  19. package/esm/hooks/features/export/useGridExcelExport.js +9 -11
  20. package/esm/hooks/features/rowGrouping/createGroupingColDef.js +23 -32
  21. package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.js +4 -7
  22. package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +5 -9
  23. package/esm/hooks/utils/useKeepGroupedColumnsHidden.js +7 -9
  24. package/esm/utils/releaseInfo.js +1 -1
  25. package/hooks/features/cellSelection/useGridCellSelection.js +2 -1
  26. package/hooks/features/clipboard/useGridClipboardImport.d.ts +1 -1
  27. package/hooks/features/clipboard/useGridClipboardImport.js +18 -3
  28. package/hooks/features/rowGrouping/createGroupingColDef.js +3 -2
  29. package/index.js +1 -1
  30. package/models/dataGridPremiumProps.d.ts +12 -2
  31. package/modern/DataGridPremium/DataGridPremium.js +21 -17
  32. package/modern/hooks/features/cellSelection/useGridCellSelection.js +2 -1
  33. package/modern/hooks/features/clipboard/useGridClipboardImport.js +19 -4
  34. package/modern/hooks/features/rowGrouping/createGroupingColDef.js +3 -2
  35. package/modern/index.js +1 -1
  36. package/modern/utils/releaseInfo.js +1 -1
  37. package/package.json +7 -7
  38. package/utils/releaseInfo.js +1 -1
@@ -456,7 +456,8 @@ const useGridCellSelection = (apiRef, props) => {
456
456
  const cellParams = apiRef.current.getCellParams(rowId, field);
457
457
  cellData = (0, _internals.serializeCellValue)(cellParams, {
458
458
  delimiterCharacter: clipboardCopyCellDelimiter,
459
- ignoreValueFormatter
459
+ ignoreValueFormatter,
460
+ shouldAppendQuotes: true
460
461
  });
461
462
  } else {
462
463
  cellData = '';
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
2
  import { GridPrivateApiPremium } from '../../../models/gridApiPremium';
3
3
  import type { DataGridPremiumProcessedProps } from '../../../models/dataGridPremiumProps';
4
- export declare const useGridClipboardImport: (apiRef: React.MutableRefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'pagination' | 'paginationMode' | 'processRowUpdate' | 'onProcessRowUpdateError' | 'getRowId' | 'onClipboardPasteStart' | 'onClipboardPasteEnd' | 'splitClipboardPastedText' | 'disableClipboardPaste'>) => void;
4
+ export declare const useGridClipboardImport: (apiRef: React.MutableRefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'pagination' | 'paginationMode' | 'processRowUpdate' | 'onProcessRowUpdateError' | 'getRowId' | 'onClipboardPasteStart' | 'onClipboardPasteEnd' | 'splitClipboardPastedText' | 'disableClipboardPaste' | 'onBeforeClipboardPasteStart'>) => void;
@@ -13,7 +13,7 @@ var _xDataGridPro = require("@mui/x-data-grid-pro");
13
13
  var _utils = require("@mui/utils");
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
- const missingOnProcessRowUpdateErrorWarning = (0, _internals.buildWarning)(['MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.', 'To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.', 'For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence.'], 'error');
16
+ const missingOnProcessRowUpdateErrorWarning = (0, _internals.buildWarning)(['MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.', 'To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.', 'For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence.'], 'error');
17
17
  const columnFieldsToExcludeFromPaste = [_xDataGrid.GRID_CHECKBOX_SELECTION_FIELD, _xDataGridPro.GRID_REORDER_COL_DEF.field, _xDataGridPro.GRID_DETAIL_PANEL_TOGGLE_FIELD];
18
18
 
19
19
  // Batches rows that are updated during clipboard paste to reduce `updateRows` calls
@@ -249,7 +249,12 @@ const useGridClipboardImport = (apiRef, props) => {
249
249
  const getRowId = props.getRowId;
250
250
  const enableClipboardPaste = !props.disableClipboardPaste;
251
251
  const rootEl = apiRef.current.rootElementRef?.current;
252
+ const logger = (0, _internals.useGridLogger)(apiRef, 'useGridClipboardImport');
252
253
  const splitClipboardPastedText = props.splitClipboardPastedText;
254
+ const {
255
+ pagination,
256
+ onBeforeClipboardPasteStart
257
+ } = props;
253
258
  const handlePaste = React.useCallback(async (params, event) => {
254
259
  if (!enableClipboardPaste) {
255
260
  return;
@@ -276,6 +281,16 @@ const useGridClipboardImport = (apiRef, props) => {
276
281
  if (!pastedData) {
277
282
  return;
278
283
  }
284
+ if (onBeforeClipboardPasteStart) {
285
+ try {
286
+ await onBeforeClipboardPasteStart({
287
+ data: pastedData
288
+ });
289
+ } catch (error) {
290
+ logger.debug('Clipboard paste operation cancelled');
291
+ return;
292
+ }
293
+ }
279
294
  const cellUpdater = new CellValueUpdater({
280
295
  apiRef,
281
296
  processRowUpdate,
@@ -291,10 +306,10 @@ const useGridClipboardImport = (apiRef, props) => {
291
306
  updateCell: (...args) => {
292
307
  cellUpdater.updateCell(...args);
293
308
  },
294
- pagination: props.pagination
309
+ pagination
295
310
  });
296
311
  cellUpdater.applyUpdates();
297
- }, [apiRef, processRowUpdate, onProcessRowUpdateError, getRowId, enableClipboardPaste, rootEl, splitClipboardPastedText, props.pagination]);
312
+ }, [apiRef, processRowUpdate, onProcessRowUpdateError, getRowId, enableClipboardPaste, rootEl, splitClipboardPastedText, pagination, onBeforeClipboardPasteStart, logger]);
298
313
  const checkIfCanStartEditing = React.useCallback((initialValue, {
299
314
  event
300
315
  }) => {
@@ -73,8 +73,9 @@ const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
73
73
  valueOptions: (0, _internals.isSingleSelectColDef)(groupedByColDef) ? groupedByColDef.valueOptions : undefined,
74
74
  sortComparator: (v1, v2, cellParams1, cellParams2) => {
75
75
  // We only want to sort the groups of the current grouping criteria
76
- if (cellParams1.rowNode.type === 'group' && cellParams1.rowNode.groupingField === groupedByColDef.field && cellParams2.rowNode.type === 'group' && cellParams2.rowNode.groupingField === groupedByColDef.field) {
77
- return groupedByColDef.sortComparator(v1, v2, cellParams1, cellParams2);
76
+ if (cellParams1.rowNode.type === 'group' && cellParams2.rowNode.type === 'group' && cellParams1.rowNode.groupingField === cellParams2.rowNode.groupingField) {
77
+ const colDef = cellParams1.api.getColumn(cellParams1.rowNode.groupingField);
78
+ return colDef.sortComparator(v1, v2, cellParams1, cellParams2);
78
79
  }
79
80
  return groupingFieldIndexComparator(v1, v2, cellParams1, cellParams2);
80
81
  },
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.0.0-beta.7
2
+ * @mui/x-data-grid-premium v7.0.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -18,7 +18,7 @@ export interface DataGridPremiumPropsWithComplexDefaultValueBeforeProcessing ext
18
18
  /**
19
19
  * The props users can give to the `DataGridPremiumProps` component.
20
20
  */
21
- export interface DataGridPremiumProps<R extends GridValidRowModel = any> extends Omit<Partial<DataGridPremiumPropsWithDefaultValue> & DataGridPremiumPropsWithComplexDefaultValueBeforeProcessing & DataGridPremiumPropsWithoutDefaultValue<R>, DataGridPremiumForcedPropsKey> {
21
+ export interface DataGridPremiumProps<R extends GridValidRowModel = any> extends Omit<Partial<DataGridPremiumPropsWithDefaultValue<R>> & DataGridPremiumPropsWithComplexDefaultValueBeforeProcessing & DataGridPremiumPropsWithoutDefaultValue<R>, DataGridPremiumForcedPropsKey> {
22
22
  }
23
23
  export interface DataGridPremiumPropsWithComplexDefaultValueAfterProcessing extends Pick<DataGridPropsWithComplexDefaultValueAfterProcessing, 'localeText'> {
24
24
  slots: GridPremiumSlotsComponent;
@@ -34,7 +34,7 @@ export type DataGridPremiumForcedPropsKey = 'signature';
34
34
  * None of the entry of this interface should be optional, they all have default values and `DataGridProps` already applies a `Partial<DataGridSimpleOptions>` for the public interface.
35
35
  * The controlled model do not have a default value at the prop processing level, so they must be defined in `DataGridOtherProps`.
36
36
  */
37
- export interface DataGridPremiumPropsWithDefaultValue extends DataGridProPropsWithDefaultValue {
37
+ export interface DataGridPremiumPropsWithDefaultValue<R extends GridValidRowModel = any> extends DataGridProPropsWithDefaultValue<R> {
38
38
  /**
39
39
  * If `true`, the cell selection mode is enabled.
40
40
  * @default false
@@ -134,6 +134,16 @@ export interface DataGridPremiumPropsWithoutDefaultValue<R extends GridValidRowM
134
134
  * @param {string} inProgress Indicates if the task is in progress.
135
135
  */
136
136
  onExcelExportStateChange?: (inProgress: 'pending' | 'finished') => void;
137
+ /**
138
+ * Callback fired before the clipboard paste operation starts.
139
+ * Use it to confirm or cancel the paste operation.
140
+ * @param {object} params Params passed to the callback.
141
+ * @param {string[][]} params.data The raw pasted data split by rows and cells.
142
+ * @returns {Promise<any>} A promise that resolves to confirm the paste operation, and rejects to cancel it.
143
+ */
144
+ onBeforeClipboardPasteStart?: (params: {
145
+ data: string[][];
146
+ }) => Promise<any>;
137
147
  /**
138
148
  * Callback fired when the clipboard paste operation starts.
139
149
  */
@@ -138,10 +138,10 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
138
138
  */
139
139
  clipboardCopyCellDelimiter: PropTypes.string,
140
140
  /**
141
- * Number of extra columns to be rendered before/after the visible slice.
142
- * @default 3
141
+ * Column region in pixels to render before/after the viewport
142
+ * @default 150
143
143
  */
144
- columnBuffer: PropTypes.number,
144
+ columnBufferPx: PropTypes.number,
145
145
  columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
146
146
  /**
147
147
  * Sets the height in pixel of the column headers in the Data Grid.
@@ -152,11 +152,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
152
152
  * Set of columns of type [[GridColDef]][].
153
153
  */
154
154
  columns: PropTypes.arrayOf(PropTypes.object).isRequired,
155
- /**
156
- * Number of rows from the `columnBuffer` that can be visible before a new slice is rendered.
157
- * @default 3
158
- */
159
- columnThreshold: PropTypes.number,
160
155
  /**
161
156
  * Set the column visibility model of the Data Grid.
162
157
  * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
@@ -503,6 +498,14 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
503
498
  * @param {GridCallbackDetails} details Additional details for this callback.
504
499
  */
505
500
  onAggregationModelChange: PropTypes.func,
501
+ /**
502
+ * Callback fired before the clipboard paste operation starts.
503
+ * Use it to confirm or cancel the paste operation.
504
+ * @param {object} params Params passed to the callback.
505
+ * @param {string[][]} params.data The raw pasted data split by rows and cells.
506
+ * @returns {Promise<any>} A promise that resolves to confirm the paste operation, and rejects to cancel it.
507
+ */
508
+ onBeforeClipboardPasteStart: PropTypes.func,
506
509
  /**
507
510
  * Callback fired when any cell is clicked.
508
511
  * @param {GridCellParams} params With all properties from [[GridCellParams]].
@@ -630,6 +633,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
630
633
  * @param {GridCallbackDetails} details Additional details for this callback.
631
634
  */
632
635
  onColumnWidthChange: PropTypes.func,
636
+ /**
637
+ * Callback fired when the density changes.
638
+ * @param {GridDensity} density New density value.
639
+ */
640
+ onDensityChange: PropTypes.func,
633
641
  /**
634
642
  * Callback fired when the detail panel of a row is opened or closed.
635
643
  * @param {GridRowId[]} ids The ids of the rows which have the detail panel open.
@@ -831,10 +839,10 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
831
839
  */
832
840
  processRowUpdate: PropTypes.func,
833
841
  /**
834
- * Number of extra rows to be rendered before/after the visible slice.
835
- * @default 3
842
+ * Row region in pixels to render before/after the viewport
843
+ * @default 150
836
844
  */
837
- rowBuffer: PropTypes.number,
845
+ rowBufferPx: PropTypes.number,
838
846
  /**
839
847
  * Set the total number of rows, if it is different from the length of the value `rows` prop.
840
848
  * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
@@ -873,8 +881,9 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
873
881
  rowReordering: PropTypes.bool,
874
882
  /**
875
883
  * Set of rows of type [[GridRowsProp]].
884
+ * @default []
876
885
  */
877
- rows: PropTypes.arrayOf(PropTypes.object).isRequired,
886
+ rows: PropTypes.arrayOf(PropTypes.object),
878
887
  /**
879
888
  * If `false`, the row selection mode is disabled.
880
889
  * @default true
@@ -896,11 +905,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
896
905
  * @default "margin"
897
906
  */
898
907
  rowSpacingType: PropTypes.oneOf(['border', 'margin']),
899
- /**
900
- * Number of rows from the `rowBuffer` that can be visible before a new slice is rendered.
901
- * @default 3
902
- */
903
- rowThreshold: PropTypes.number,
904
908
  /**
905
909
  * Override the height/width of the Data Grid inner scrollbar.
906
910
  */
@@ -446,7 +446,8 @@ export const useGridCellSelection = (apiRef, props) => {
446
446
  const cellParams = apiRef.current.getCellParams(rowId, field);
447
447
  cellData = serializeCellValue(cellParams, {
448
448
  delimiterCharacter: clipboardCopyCellDelimiter,
449
- ignoreValueFormatter
449
+ ignoreValueFormatter,
450
+ shouldAppendQuotes: true
450
451
  });
451
452
  } else {
452
453
  cellData = '';
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import { GRID_CHECKBOX_SELECTION_FIELD, gridFocusCellSelector, gridVisibleColumnFieldsSelector, useGridApiOptionHandler, useGridApiEventHandler, gridPaginatedVisibleSortedGridRowIdsSelector, gridExpandedSortedRowIdsSelector } from '@mui/x-data-grid';
4
- import { buildWarning, getRowIdFromRowModel, getActiveElement, useGridRegisterPipeProcessor, getPublicApiRef, isPasteShortcut } from '@mui/x-data-grid/internals';
4
+ import { buildWarning, getRowIdFromRowModel, getActiveElement, useGridRegisterPipeProcessor, getPublicApiRef, isPasteShortcut, useGridLogger } from '@mui/x-data-grid/internals';
5
5
  import { GRID_DETAIL_PANEL_TOGGLE_FIELD, GRID_REORDER_COL_DEF } from '@mui/x-data-grid-pro';
6
6
  import { unstable_debounce as debounce } from '@mui/utils';
7
- const missingOnProcessRowUpdateErrorWarning = buildWarning(['MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.', 'To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.', 'For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence.'], 'error');
7
+ const missingOnProcessRowUpdateErrorWarning = buildWarning(['MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.', 'To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.', 'For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence.'], 'error');
8
8
  const columnFieldsToExcludeFromPaste = [GRID_CHECKBOX_SELECTION_FIELD, GRID_REORDER_COL_DEF.field, GRID_DETAIL_PANEL_TOGGLE_FIELD];
9
9
 
10
10
  // Batches rows that are updated during clipboard paste to reduce `updateRows` calls
@@ -240,7 +240,12 @@ export const useGridClipboardImport = (apiRef, props) => {
240
240
  const getRowId = props.getRowId;
241
241
  const enableClipboardPaste = !props.disableClipboardPaste;
242
242
  const rootEl = apiRef.current.rootElementRef?.current;
243
+ const logger = useGridLogger(apiRef, 'useGridClipboardImport');
243
244
  const splitClipboardPastedText = props.splitClipboardPastedText;
245
+ const {
246
+ pagination,
247
+ onBeforeClipboardPasteStart
248
+ } = props;
244
249
  const handlePaste = React.useCallback(async (params, event) => {
245
250
  if (!enableClipboardPaste) {
246
251
  return;
@@ -267,6 +272,16 @@ export const useGridClipboardImport = (apiRef, props) => {
267
272
  if (!pastedData) {
268
273
  return;
269
274
  }
275
+ if (onBeforeClipboardPasteStart) {
276
+ try {
277
+ await onBeforeClipboardPasteStart({
278
+ data: pastedData
279
+ });
280
+ } catch (error) {
281
+ logger.debug('Clipboard paste operation cancelled');
282
+ return;
283
+ }
284
+ }
270
285
  const cellUpdater = new CellValueUpdater({
271
286
  apiRef,
272
287
  processRowUpdate,
@@ -282,10 +297,10 @@ export const useGridClipboardImport = (apiRef, props) => {
282
297
  updateCell: (...args) => {
283
298
  cellUpdater.updateCell(...args);
284
299
  },
285
- pagination: props.pagination
300
+ pagination
286
301
  });
287
302
  cellUpdater.applyUpdates();
288
- }, [apiRef, processRowUpdate, onProcessRowUpdateError, getRowId, enableClipboardPaste, rootEl, splitClipboardPastedText, props.pagination]);
303
+ }, [apiRef, processRowUpdate, onProcessRowUpdateError, getRowId, enableClipboardPaste, rootEl, splitClipboardPastedText, pagination, onBeforeClipboardPasteStart, logger]);
289
304
  const checkIfCanStartEditing = React.useCallback((initialValue, {
290
305
  event
291
306
  }) => {
@@ -64,8 +64,9 @@ const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
64
64
  valueOptions: isSingleSelectColDef(groupedByColDef) ? groupedByColDef.valueOptions : undefined,
65
65
  sortComparator: (v1, v2, cellParams1, cellParams2) => {
66
66
  // We only want to sort the groups of the current grouping criteria
67
- if (cellParams1.rowNode.type === 'group' && cellParams1.rowNode.groupingField === groupedByColDef.field && cellParams2.rowNode.type === 'group' && cellParams2.rowNode.groupingField === groupedByColDef.field) {
68
- return groupedByColDef.sortComparator(v1, v2, cellParams1, cellParams2);
67
+ if (cellParams1.rowNode.type === 'group' && cellParams2.rowNode.type === 'group' && cellParams1.rowNode.groupingField === cellParams2.rowNode.groupingField) {
68
+ const colDef = cellParams1.api.getColumn(cellParams1.rowNode.groupingField);
69
+ return colDef.sortComparator(v1, v2, cellParams1, cellParams2);
69
70
  }
70
71
  return groupingFieldIndexComparator(v1, v2, cellParams1, cellParams2);
71
72
  },
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.0.0-beta.7
2
+ * @mui/x-data-grid-premium v7.0.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcxMDM3MDgwMDAwMA==";
3
+ const releaseInfo = "MTcxMTA1ODQwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "7.0.0-beta.7",
3
+ "version": "7.0.0",
4
4
  "description": "The Premium plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -33,11 +33,11 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@babel/runtime": "^7.24.0",
36
- "@mui/system": "^5.15.9",
37
- "@mui/utils": "^5.15.9",
38
- "@mui/x-data-grid": "7.0.0-beta.7",
39
- "@mui/x-data-grid-pro": "7.0.0-beta.7",
40
- "@mui/x-license": "7.0.0-beta.6",
36
+ "@mui/system": "^5.15.14",
37
+ "@mui/utils": "^5.15.14",
38
+ "@mui/x-data-grid": "7.0.0",
39
+ "@mui/x-data-grid-pro": "7.0.0",
40
+ "@mui/x-license": "7.0.0",
41
41
  "@types/format-util": "^1.0.4",
42
42
  "clsx": "^2.1.0",
43
43
  "exceljs": "^4.4.0",
@@ -45,7 +45,7 @@
45
45
  "reselect": "^4.1.8"
46
46
  },
47
47
  "peerDependencies": {
48
- "@mui/material": "^5.15.0",
48
+ "@mui/material": "^5.15.14",
49
49
  "react": "^17.0.0 || ^18.0.0",
50
50
  "react-dom": "^17.0.0 || ^18.0.0"
51
51
  },
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTcxMDM3MDgwMDAwMA==";
9
+ const releaseInfo = "MTcxMTA1ODQwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat