@mui/x-data-grid 9.0.2 → 9.0.4

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 (54) hide show
  1. package/CHANGELOG.md +223 -0
  2. package/components/cell/GridCell.d.mts +0 -7
  3. package/components/cell/GridCell.d.ts +0 -7
  4. package/components/cell/GridCell.js +1 -8
  5. package/components/cell/GridCell.mjs +0 -7
  6. package/components/containers/GridRootStyles.js +21 -10
  7. package/components/containers/GridRootStyles.mjs +22 -11
  8. package/components/panel/GridPanelHeader.d.mts +3 -0
  9. package/components/panel/GridPanelHeader.d.ts +3 -0
  10. package/components/panel/GridPanelHeader.js +4 -0
  11. package/components/panel/GridPanelHeader.mjs +4 -0
  12. package/components/virtualization/GridVirtualScroller.js +23 -27
  13. package/components/virtualization/GridVirtualScroller.mjs +24 -28
  14. package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.mts +0 -2
  15. package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +0 -2
  16. package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +2 -2
  17. package/hooks/core/strategyProcessing/useGridStrategyProcessing.mjs +1 -1
  18. package/hooks/core/useGridVirtualizer.d.mts +2 -2
  19. package/hooks/core/useGridVirtualizer.d.ts +2 -2
  20. package/hooks/core/useGridVirtualizer.js +1 -1
  21. package/hooks/core/useGridVirtualizer.mjs +2 -2
  22. package/hooks/features/columns/gridColumnsUtils.d.mts +0 -5
  23. package/hooks/features/columns/gridColumnsUtils.d.ts +0 -5
  24. package/hooks/features/columns/gridColumnsUtils.js +1 -2
  25. package/hooks/features/columns/gridColumnsUtils.mjs +1 -1
  26. package/hooks/features/dimensions/useGridDimensions.js +10 -0
  27. package/hooks/features/dimensions/useGridDimensions.mjs +10 -0
  28. package/hooks/features/rows/gridRowSpanningUtils.d.mts +0 -1
  29. package/hooks/features/rows/gridRowSpanningUtils.d.ts +0 -1
  30. package/hooks/features/rows/gridRowSpanningUtils.js +0 -4
  31. package/hooks/features/rows/gridRowSpanningUtils.mjs +0 -3
  32. package/hooks/features/rows/gridRowsUtils.d.mts +1 -2
  33. package/hooks/features/rows/gridRowsUtils.d.ts +1 -2
  34. package/hooks/features/rows/gridRowsUtils.js +2 -3
  35. package/hooks/features/rows/gridRowsUtils.mjs +1 -2
  36. package/hooks/features/rows/useGridParamsApi.d.mts +0 -1
  37. package/hooks/features/rows/useGridParamsApi.d.ts +0 -1
  38. package/hooks/features/rows/useGridParamsApi.js +0 -2
  39. package/hooks/features/rows/useGridParamsApi.mjs +1 -1
  40. package/hooks/features/rows/useGridRowsOverridableMethods.js +37 -15
  41. package/hooks/features/rows/useGridRowsOverridableMethods.mjs +37 -15
  42. package/hooks/features/virtualization/useGridVirtualization.d.mts +2 -2
  43. package/hooks/features/virtualization/useGridVirtualization.d.ts +2 -2
  44. package/hooks/utils/useGridSelector.d.mts +0 -1
  45. package/hooks/utils/useGridSelector.d.ts +0 -1
  46. package/hooks/utils/useGridSelector.js +1 -2
  47. package/hooks/utils/useGridSelector.mjs +1 -1
  48. package/index.js +1 -1
  49. package/index.mjs +1 -1
  50. package/package.json +4 -4
  51. package/hooks/core/gridCoreSelector.d.mts +0 -6
  52. package/hooks/core/gridCoreSelector.d.ts +0 -6
  53. package/hooks/core/gridCoreSelector.js +0 -12
  54. package/hooks/core/gridCoreSelector.mjs +0 -6
@@ -5,7 +5,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.objectShallowCompare = exports.argsEqual = void 0;
8
+ exports.objectShallowCompare = void 0;
9
9
  exports.useGridSelector = useGridSelector;
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _fastObjectShallowCompare = require("@mui/x-internals/fastObjectShallowCompare");
@@ -29,7 +29,6 @@ const argsEqual = (prev, curr) => {
29
29
  }
30
30
  return fn(prev, curr);
31
31
  };
32
- exports.argsEqual = argsEqual;
33
32
  const createRefs = () => ({
34
33
  state: null,
35
34
  equals: null,
@@ -13,7 +13,7 @@ const arrayShallowCompare = (a, b) => {
13
13
  }
14
14
  return a.length === b.length && a.every((v, i) => v === b[i]);
15
15
  };
16
- export const argsEqual = (prev, curr) => {
16
+ const argsEqual = (prev, curr) => {
17
17
  let fn = Object.is;
18
18
  if (curr instanceof Array) {
19
19
  fn = arrayShallowCompare;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v9.0.2
2
+ * @mui/x-data-grid v9.0.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v9.0.2
2
+ * @mui/x-data-grid v9.0.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "9.0.2",
3
+ "version": "9.0.4",
4
4
  "author": "MUI Team",
5
5
  "description": "The Community plan edition of the MUI X Data Grid components.",
6
6
  "license": "MIT",
@@ -37,13 +37,13 @@
37
37
  "directory": "packages/x-data-grid"
38
38
  },
39
39
  "dependencies": {
40
- "@babel/runtime": "^7.28.6",
40
+ "@babel/runtime": "^7.29.2",
41
41
  "@mui/utils": "9.0.0",
42
42
  "clsx": "^2.1.1",
43
43
  "prop-types": "^15.8.1",
44
44
  "use-sync-external-store": "^1.6.0",
45
- "@mui/x-internals": "^9.0.0",
46
- "@mui/x-virtualizer": "9.0.0-alpha.0"
45
+ "@mui/x-internals": "^9.0.4",
46
+ "@mui/x-virtualizer": "9.0.0-alpha.2"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@emotion/react": "^11.9.0",
@@ -1,6 +0,0 @@
1
- import type { GridStateCommunity } from "../../models/gridStateCommunity.mjs";
2
- /**
3
- * Get the theme state
4
- * @category Core
5
- */
6
- export declare const gridIsRtlSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, boolean>;
@@ -1,6 +0,0 @@
1
- import type { GridStateCommunity } from "../../models/gridStateCommunity.js";
2
- /**
3
- * Get the theme state
4
- * @category Core
5
- */
6
- export declare const gridIsRtlSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, boolean>;
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.gridIsRtlSelector = void 0;
7
- var _createSelector = require("../../utils/createSelector");
8
- /**
9
- * Get the theme state
10
- * @category Core
11
- */
12
- const gridIsRtlSelector = exports.gridIsRtlSelector = (0, _createSelector.createRootSelector)(state => state.isRtl);
@@ -1,6 +0,0 @@
1
- import { createRootSelector } from "../../utils/createSelector.mjs";
2
- /**
3
- * Get the theme state
4
- * @category Core
5
- */
6
- export const gridIsRtlSelector = createRootSelector(state => state.isRtl);