@mui/x-data-grid-pro 5.17.0 → 5.17.1

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,22 @@
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
+ ## 5.17.1
7
+
8
+ _Sep 5, 2022_
9
+
10
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🐞 Bugfixes
13
+
14
+ ### `@mui/x-data-grid@v5.17.1` / `@mui/x-data-grid-pro@v5.17.1` / `@mui/x-data-grid-premium@v5.17.1`
15
+
16
+ #### Changes
17
+
18
+ - [DataGrid] Fix cells being focused on mouseUp (#5980) @cherniavskii
19
+ - [DataGrid] Fix focused cell if column is spanned and new editing API is used (#5962) @m4theushw
20
+ - [DataGridPro] Fix import in lazy-loading causing a bundling error (#6031) @flaviendelangle
21
+
6
22
  ## 5.17.0
7
23
 
8
24
  _Sep 2, 2022_
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { useGridApiEventHandler, GridFeatureModeConstant, useGridSelector, gridSortModelSelector, gridFilterModelSelector, useGridApiOptionHandler } from '@mui/x-data-grid';
3
- import { useGridVisibleRows } from '@mui/x-data-grid/internals';
4
- import { getRenderableIndexes } from '@mui/x-data-grid/hooks/features/virtualization/useGridVirtualScroller';
3
+ import { useGridVisibleRows, getRenderableIndexes } from '@mui/x-data-grid/internals';
5
4
 
6
5
  function findSkeletonRowsSection(visibleRows, range) {
7
6
  let {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { DataGridProProcessedProps } from '@mui/x-data-grid-pro/models/dataGridProProps';
3
- import { GridApiPro } from '@mui/x-data-grid-pro/models/gridApiPro';
2
+ import { DataGridProProcessedProps } from '../../../models/dataGridProProps';
3
+ import { GridApiPro } from '../../../models/gridApiPro';
4
4
  export declare const GRID_SKELETON_ROW_ROOT_ID = "auto-generated-skeleton-row-root";
5
5
  export declare const useGridLazyLoaderPreProcessors: (apiRef: React.MutableRefObject<GridApiPro>, props: Pick<DataGridProProcessedProps, 'rowCount' | 'rowsLoadingMode' | 'experimentalFeatures'>) => void;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.17.0
1
+ /** @license MUI v5.17.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,8 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import * as React from 'react';
3
3
  import { useGridApiEventHandler, GridFeatureModeConstant, useGridSelector, gridSortModelSelector, gridFilterModelSelector, useGridApiOptionHandler } from '@mui/x-data-grid';
4
- import { useGridVisibleRows } from '@mui/x-data-grid/internals';
5
- import { getRenderableIndexes } from '@mui/x-data-grid/hooks/features/virtualization/useGridVirtualScroller';
4
+ import { useGridVisibleRows, getRenderableIndexes } from '@mui/x-data-grid/internals';
6
5
 
7
6
  function findSkeletonRowsSection(visibleRows, range) {
8
7
  var firstRowIndex = range.firstRowIndex,
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.17.0
1
+ /** @license MUI v5.17.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY2MjA2NjAwMDAwMA==";
3
+ var releaseInfo = "MTY2MjMyNTIwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { useGridApiEventHandler, GridFeatureModeConstant, useGridSelector, gridSortModelSelector, gridFilterModelSelector, useGridApiOptionHandler } from '@mui/x-data-grid';
3
- import { useGridVisibleRows } from '@mui/x-data-grid/internals';
4
- import { getRenderableIndexes } from '@mui/x-data-grid/hooks/features/virtualization/useGridVirtualScroller';
3
+ import { useGridVisibleRows, getRenderableIndexes } from '@mui/x-data-grid/internals';
5
4
 
6
5
  function findSkeletonRowsSection(visibleRows, range) {
7
6
  let {
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.17.0
1
+ /** @license MUI v5.17.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY2MjA2NjAwMDAwMA==";
3
+ const releaseInfo = "MTY2MjMyNTIwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -11,8 +11,6 @@ var _xDataGrid = require("@mui/x-data-grid");
11
11
 
12
12
  var _internals = require("@mui/x-data-grid/internals");
13
13
 
14
- var _useGridVirtualScroller = require("@mui/x-data-grid/hooks/features/virtualization/useGridVirtualScroller");
15
-
16
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
15
 
18
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -87,7 +85,7 @@ const useGridLazyLoader = (apiRef, props) => {
87
85
  } = (_props$experimentalFe = props.experimentalFeatures) != null ? _props$experimentalFe : {};
88
86
  const getCurrentIntervalToRender = React.useCallback(() => {
89
87
  const currentRenderContext = apiRef.current.unstable_getRenderContext();
90
- const [firstRowToRender, lastRowToRender] = (0, _useGridVirtualScroller.getRenderableIndexes)({
88
+ const [firstRowToRender, lastRowToRender] = (0, _internals.getRenderableIndexes)({
91
89
  firstIndex: currentRenderContext.firstRowIndex,
92
90
  lastIndex: currentRenderContext.lastRowIndex,
93
91
  minFirstIndex: 0,
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.17.0
1
+ /** @license MUI v5.17.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -8,7 +8,7 @@ exports.getReleaseInfo = void 0;
8
8
  var _utils = require("@mui/utils");
9
9
 
10
10
  const getReleaseInfo = () => {
11
- const releaseInfo = "MTY2MjA2NjAwMDAwMA==";
11
+ const releaseInfo = "MTY2MjMyNTIwMDAwMA==";
12
12
 
13
13
  if (process.env.NODE_ENV !== 'production') {
14
14
  // A simple hack to set the value in the test environment (has no build step).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-pro",
3
- "version": "5.17.0",
3
+ "version": "5.17.1",
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.18.9",
35
35
  "@mui/utils": "^5.9.3",
36
- "@mui/x-data-grid": "5.17.0",
36
+ "@mui/x-data-grid": "5.17.1",
37
37
  "@mui/x-license-pro": "5.17.0",
38
38
  "@types/format-util": "^1.0.2",
39
39
  "clsx": "^1.2.1",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY2MjA2NjAwMDAwMA==";
3
+ const releaseInfo = "MTY2MjMyNTIwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).