@mui/x-data-grid-pro 6.19.9 → 6.19.11

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,56 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 6.19.11
7
+
8
+ _Apr 18, 2024_
9
+
10
+ We'd like to offer a big thanks to the 1 contributor who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🐞 Bugfixes
13
+
14
+ ### Data Grid
15
+
16
+ #### `@mui/x-data-grid@6.19.11`
17
+
18
+ - [DataGrid] Fix virtualization memory leak (#12812) @romgrk
19
+
20
+ #### `@mui/x-data-grid-pro@6.19.11` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
21
+
22
+ Same changes as in `@mui/x-data-grid@6.19.11`.
23
+
24
+ #### `@mui/x-data-grid-premium@6.19.11` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
25
+
26
+ Same changes as in `@mui/x-data-grid-pro@6.19.11`.
27
+
28
+ ## 6.19.10
29
+
30
+ _Apr 12, 2024_
31
+
32
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
33
+
34
+ - 🐞 Bugfixes
35
+ - 📚 Documentation improvements
36
+
37
+ ### Data Grid
38
+
39
+ #### `@mui/x-data-grid@6.19.10`
40
+
41
+ - [DataGrid] Do not escape double quotes when copying to clipboard (#12734) @cherniavskii
42
+ - [DataGrid] Fix bug in suspense (#12754) @cherniavskii
43
+
44
+ #### `@mui/x-data-grid-pro@6.19.10` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
45
+
46
+ Same changes as in `@mui/x-data-grid@6.19.10`.
47
+
48
+ #### `@mui/x-data-grid-premium@6.19.10` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
49
+
50
+ Same changes as in `@mui/x-data-grid-pro@6.19.10`.
51
+
52
+ ### Core
53
+
54
+ - [core] Update the docs release source branch (#12685) @LukasTy
55
+
6
56
  ## 6.19.9
7
57
 
8
58
  _Apr 5, 2024_
@@ -71,13 +71,16 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
71
71
  }
72
72
  React.useLayoutEffect(() => {
73
73
  if (hasFocus && !isMenuOpen) {
74
+ var _apiRef$current$colum;
74
75
  let focusableElement = cellRef.current.querySelector('[tabindex="0"]');
75
76
  if (isEditing && InputComponent) {
76
77
  focusableElement = inputRef.current;
77
78
  }
78
79
  const elementToFocus = focusableElement || cellRef.current;
79
80
  elementToFocus == null || elementToFocus.focus();
80
- apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
81
+ if ((_apiRef$current$colum = apiRef.current.columnHeadersContainerElementRef) != null && _apiRef$current$colum.current) {
82
+ apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
83
+ }
81
84
  }
82
85
  }, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
83
86
  const onKeyDown = React.useCallback(event => {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.19.9
2
+ * @mui/x-data-grid-pro v6.19.11
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -67,13 +67,16 @@ var GridHeaderFilterCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
67
67
  }
68
68
  React.useLayoutEffect(function () {
69
69
  if (hasFocus && !isMenuOpen) {
70
+ var _apiRef$current$colum;
70
71
  var focusableElement = cellRef.current.querySelector('[tabindex="0"]');
71
72
  if (isEditing && InputComponent) {
72
73
  focusableElement = inputRef.current;
73
74
  }
74
75
  var elementToFocus = focusableElement || cellRef.current;
75
76
  elementToFocus == null || elementToFocus.focus();
76
- apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
77
+ if ((_apiRef$current$colum = apiRef.current.columnHeadersContainerElementRef) != null && _apiRef$current$colum.current) {
78
+ apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
79
+ }
77
80
  }
78
81
  }, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
79
82
  var onKeyDown = React.useCallback(function (event) {
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.19.9
2
+ * @mui/x-data-grid-pro v6.19.11
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -45,7 +45,11 @@ export function findGridCellElementsFromCol(col, api) {
45
45
  return cells;
46
46
  }
47
47
  export function findGridHeader(api, field) {
48
- var headers = api.columnHeadersContainerElementRef.current;
48
+ var _api$columnHeadersCon;
49
+ var headers = (_api$columnHeadersCon = api.columnHeadersContainerElementRef) == null ? void 0 : _api$columnHeadersCon.current;
50
+ if (!headers) {
51
+ return null;
52
+ }
49
53
  return headers.querySelector(":scope > div > div > [data-field=\"".concat(field, "\"][role=\"columnheader\"]"));
50
54
  }
51
55
  export function findGridCells(api, field) {
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTcxMjI2NDQwMDAwMA==";
3
+ var releaseInfo = "MTcxMzM5MTIwMDAwMA==";
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
@@ -76,7 +76,9 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
76
76
  }
77
77
  const elementToFocus = focusableElement || cellRef.current;
78
78
  elementToFocus?.focus();
79
- apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
79
+ if (apiRef.current.columnHeadersContainerElementRef?.current) {
80
+ apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
81
+ }
80
82
  }
81
83
  }, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
82
84
  const onKeyDown = React.useCallback(event => {
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.19.9
2
+ * @mui/x-data-grid-pro v6.19.11
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -43,7 +43,10 @@ export function findGridCellElementsFromCol(col, api) {
43
43
  return cells;
44
44
  }
45
45
  export function findGridHeader(api, field) {
46
- const headers = api.columnHeadersContainerElementRef.current;
46
+ const headers = api.columnHeadersContainerElementRef?.current;
47
+ if (!headers) {
48
+ return null;
49
+ }
47
50
  return headers.querySelector(`:scope > div > div > [data-field="${field}"][role="columnheader"]`);
48
51
  }
49
52
  export function findGridCells(api, field) {
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcxMjI2NDQwMDAwMA==";
3
+ const releaseInfo = "MTcxMzM5MTIwMDAwMA==";
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
@@ -84,7 +84,9 @@ const GridHeaderFilterCell = exports.GridHeaderFilterCell = /*#__PURE__*/React.f
84
84
  }
85
85
  const elementToFocus = focusableElement || cellRef.current;
86
86
  elementToFocus?.focus();
87
- apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
87
+ if (apiRef.current.columnHeadersContainerElementRef?.current) {
88
+ apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
89
+ }
88
90
  }
89
91
  }, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
90
92
  const onKeyDown = React.useCallback(event => {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.19.9
2
+ * @mui/x-data-grid-pro v6.19.11
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -54,7 +54,10 @@ function findGridCellElementsFromCol(col, api) {
54
54
  return cells;
55
55
  }
56
56
  function findGridHeader(api, field) {
57
- const headers = api.columnHeadersContainerElementRef.current;
57
+ const headers = api.columnHeadersContainerElementRef?.current;
58
+ if (!headers) {
59
+ return null;
60
+ }
58
61
  return headers.querySelector(`:scope > div > div > [data-field="${field}"][role="columnheader"]`);
59
62
  }
60
63
  function findGridCells(api, field) {
@@ -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 = "MTcxMjI2NDQwMDAwMA==";
9
+ const releaseInfo = "MTcxMzM5MTIwMDAwMA==";
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-pro",
3
- "version": "6.19.9",
3
+ "version": "6.19.11",
4
4
  "description": "The Pro plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.23.2",
35
35
  "@mui/utils": "^5.14.16",
36
- "@mui/x-data-grid": "6.19.9",
36
+ "@mui/x-data-grid": "6.19.11",
37
37
  "@mui/x-license-pro": "6.10.2",
38
38
  "@types/format-util": "^1.0.3",
39
39
  "clsx": "^2.0.0",
package/utils/domUtils.js CHANGED
@@ -45,7 +45,11 @@ export function findGridCellElementsFromCol(col, api) {
45
45
  return cells;
46
46
  }
47
47
  export function findGridHeader(api, field) {
48
- const headers = api.columnHeadersContainerElementRef.current;
48
+ var _api$columnHeadersCon;
49
+ const headers = (_api$columnHeadersCon = api.columnHeadersContainerElementRef) == null ? void 0 : _api$columnHeadersCon.current;
50
+ if (!headers) {
51
+ return null;
52
+ }
49
53
  return headers.querySelector(`:scope > div > div > [data-field="${field}"][role="columnheader"]`);
50
54
  }
51
55
  export function findGridCells(api, field) {
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcxMjI2NDQwMDAwMA==";
3
+ const releaseInfo = "MTcxMzM5MTIwMDAwMA==";
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