From 8ff176de41e6c673c563c2b4b0e1ab28fb326aa9 Mon Sep 17 00:00:00 2001 From: Jose C Quintas Jr Date: Fri, 7 Feb 2025 15:06:48 +0100 Subject: [PATCH] v8.0.0-alpha.11 (#16496) Signed-off-by: Jose C Quintas Jr Signed-off-by: Andrew Cherniavskii Signed-off-by: Lukas Tyla Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> Co-authored-by: Armin Mehinovic <4390250+arminmeh@users.noreply.github.com> Co-authored-by: Kenan Yusuf Co-authored-by: Andrew Cherniavskii Co-authored-by: Lukas Tyla --- CHANGELOG.md | 109 +++++++++++++++++++- packages/x-charts-pro/package.json | 2 +- packages/x-charts/package.json | 2 +- packages/x-codemod/package.json | 2 +- packages/x-data-grid-generator/package.json | 2 +- packages/x-data-grid-premium/package.json | 2 +- packages/x-data-grid-pro/package.json | 2 +- packages/x-data-grid/package.json | 2 +- packages/x-date-pickers-pro/package.json | 2 +- packages/x-date-pickers/package.json | 2 +- packages/x-internals/package.json | 2 +- packages/x-license/package.json | 2 +- packages/x-tree-view-pro/package.json | 2 +- packages/x-tree-view/package.json | 2 +- 14 files changed, 120 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c91e512724ec9..90aa8e9111e79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,110 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## **8.0.0-alpha.11** + +_Feb 7, 2025_ + +We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨: + +- ⚡ Mount and resize performance improvements for the Data Grid + +Special thanks go out to the community contributors who have helped make this release possible: +@lauri865. +Following are all team members who have contributed to this release: +@alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @Janpot, @KenanYusuf, @LukasTy, @MBilalShafi, @noraleonte, @romgrk. + + + +### Data Grid + +#### Breaking changes + +- `createUseGridApiEventHandler()` is not exported anymore. +- The `filteredRowsLookup` object of the filter state does not contain `true` values anymore. If the row is filtered out, the value is `false`. Otherwise, the row id is not present in the object. + This change only impacts you if you relied on `filteredRowsLookup` to get ids of filtered rows. In this case,use `gridDataRowIdsSelector` selector to get row ids and check `filteredRowsLookup` for `false` values: + + ```diff + const filteredRowsLookup = gridFilteredRowsLookupSelector(apiRef); + -const filteredRowIds = Object.keys(filteredRowsLookup).filter((rowId) => filteredRowsLookup[rowId] === true); + +const rowIds = gridDataRowIdsSelector(apiRef); + +const filteredRowIds = rowIds.filter((rowId) => filteredRowsLookup[rowId] !== false); + ``` + +- The `visibleRowsLookup` state does not contain `true` values anymore. If the row is not visible, the value is `false`. Otherwise, the row id is not present in the object: + + ```diff + const visibleRowsLookup = gridVisibleRowsLookupSelector(apiRef); + -const isRowVisible = visibleRowsLookup[rowId] === true; + +const isRowVisible = visibleRowsLookup[rowId] !== false; + ``` + +#### `@mui/x-data-grid@8.0.0-alpha.11` + +- [DataGrid] Avoid `` double-render pass on mount in SPA mode (#15648) @lauri865 +- [DataGrid] Fix loading overlay not in sync with scroll (#16437) @MBilalShafi +- [DataGrid] Refactor: remove material `MenuList` import (#16444) @romgrk +- [DataGrid] Refactor: simplify `useGridApiEventHandler()` (#16479) @romgrk + +#### `@mui/x-data-grid-pro@8.0.0-alpha.11` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan') + +Same changes as in `@mui/x-data-grid@8.0.0-alpha.11`, plus: + +- [DataGridPro] Fix the return type of `useGridApiContext()` for Pro and Premium packages on React < 19 (#16441) @arminmeh + +#### `@mui/x-data-grid-premium@8.0.0-alpha.11` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan') + +Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.11`, plus: + +- [DataGridPremium] Fix "no rows" overlay not showing with active aggregation (#16466) @KenanYusuf + +### Date and Time Pickers + +#### `@mui/x-date-pickers@8.0.0-alpha.11` + +Internal changes. + +#### `@mui/x-date-pickers-pro@8.0.0-alpha.11` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan') + +Same changes as in `@mui/x-date-pickers@8.0.0-alpha.11`, plus: + +- [DateRangeCalendar] Support arrow navigation with multiple months rendered (#16363) @flaviendelangle +- [DateRangePicker] Fix `currentMonthCalendarPosition` prop behavior on mobile (#16455) @LukasTy +- [DateRangePicker] Fix vertical alignment for multi input fields (#16489) @noraleonte + +### Charts + +#### `@mui/x-charts@8.0.0-alpha.11` + +- [charts] Add `color` prop to `Sparkline` and deprecate `colors` (#16477) @bernardobelchior +- [charts] Make typescript more flexible about plugins and their params (#16478) @alexfauquette +- [charts] Remove component for axis event listener (#16314) @alexfauquette + +#### `@mui/x-charts-pro@8.0.0-alpha.11` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan') + +Same changes as in `@mui/x-charts@8.0.0-alpha.11`. + +### Tree View + +#### `@mui/x-tree-view@8.0.0-alpha.11` + +Internal changes. + +#### `@mui/x-tree-view-pro@8.0.0-alpha.11` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan') + +Same changes as in `@mui/x-tree-view@8.0.0-alpha.11`. + +### Docs + +- [docs] Update charts colors default value (#16484) @bernardobelchior + +### Core + +- [core] Fix corepack and pnpm installation in CircleCI (#16434) @flaviendelangle +- [code-infra] Update monorepo (#16112) @Janpot +- [test] Avoid test warning when running on React 18 (#16486) @LukasTy +- [test] Disable `react-transition-group` transitions in unit testing (#16288) @lauri865 + ## 8.0.0-alpha.10 _Jan 30, 2025_ @@ -50,6 +154,7 @@ Following are all team members who have contributed to this release: + }, }); ``` + - The `detailPanels`, `pinnedColumns`, and `pinnedRowsRenderZone` classes have been removed. - Return type of the `useGridApiRef()` hook and the type of `apiRef` prop are updated to explicitly include the possibilty of `null`. In addition to this, `useGridApiRef()` returns a reference that is initialized with `null` instead of `{}`. @@ -91,7 +196,7 @@ Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.10`. #### Breaking changes -- The component passed to the `field` slot no longer receives the `ref`, `disabled`, `className`, `sx`, `label`, `name`, `formatDensity`, `enableAccessibleFieldDOMStructure`, `selectedSections`, `onSelectedSectionsChange` and `inputRef` props — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#slot-field) +- The component passed to the `field` slot no longer receives the `ref`, `disabled`, `className`, `sx`, `label`, `name`, `formatDensity`, `enableAccessibleFieldDOMStructure`, `selectedSections`, `onSelectedSectionsChange` and `inputRef` props — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#slot-field) - The `MuiPickersPopper` theme entry have been renamed `MuiPickerPopper` and some of its props have been removed — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#muipickerspopper) #### `@mui/x-date-pickers@8.0.0-alpha.10` @@ -111,7 +216,7 @@ Same changes as in `@mui/x-date-pickers@8.0.0-alpha.10`. - Replace `legend.position.horizontal` from `"left" | "middle" | "right"` to `"start" | "center" | "end"`. This is to align with the CSS values and reflect the RTL ability of the legend component. -- The default colors have changed. To keep using the old palette. It is possible to import `blueberryTwilightPalette` from `@mui/x-charts/colorPalettes` and set it on the `colors` property of charts. +- The default colors have changed. To keep using the old palette. It is possible to import `blueberryTwilightPalette` from `@mui/x-charts/colorPalettes` and set it on the `colors` property of charts. - The `id` property is now optional on the `Pie` and `Scatter` data types. #### `@mui/x-charts@8.0.0-alpha.10` diff --git a/packages/x-charts-pro/package.json b/packages/x-charts-pro/package.json index e2706847989ce..0755385e359d1 100644 --- a/packages/x-charts-pro/package.json +++ b/packages/x-charts-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-charts-pro", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "The Pro plan edition of the Charts components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-charts/package.json b/packages/x-charts/package.json index 2382df21cc715..e35924cc0589a 100644 --- a/packages/x-charts/package.json +++ b/packages/x-charts/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-charts", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "The community edition of the Charts components (MUI X).", "author": "MUI Team", "main": "src/index.js", diff --git a/packages/x-codemod/package.json b/packages/x-codemod/package.json index c1eb697021236..92ee18a05d33b 100644 --- a/packages/x-codemod/package.json +++ b/packages/x-codemod/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-codemod", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "bin": "./codemod.js", "private": false, "author": "MUI Team", diff --git a/packages/x-data-grid-generator/package.json b/packages/x-data-grid-generator/package.json index 342ad4cd7d9a0..6eecff94c1022 100644 --- a/packages/x-data-grid-generator/package.json +++ b/packages/x-data-grid-generator/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid-generator", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "Generate fake data for demo purposes only.", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-data-grid-premium/package.json b/packages/x-data-grid-premium/package.json index eba80dc3aa313..cdb60b9e49c33 100644 --- a/packages/x-data-grid-premium/package.json +++ b/packages/x-data-grid-premium/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid-premium", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "The Premium plan edition of the Data Grid Components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-data-grid-pro/package.json b/packages/x-data-grid-pro/package.json index 3f97a4284f95d..b5a74c6cc472c 100644 --- a/packages/x-data-grid-pro/package.json +++ b/packages/x-data-grid-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid-pro", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "The Pro plan edition of the Data Grid components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-data-grid/package.json b/packages/x-data-grid/package.json index 96587886b8c67..0cce80802b5f3 100644 --- a/packages/x-data-grid/package.json +++ b/packages/x-data-grid/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-data-grid", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "The Community plan edition of the Data Grid components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-date-pickers-pro/package.json b/packages/x-date-pickers-pro/package.json index 1dbb2ca8b6239..0d01abcaf2b5e 100644 --- a/packages/x-date-pickers-pro/package.json +++ b/packages/x-date-pickers-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-date-pickers-pro", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "The Pro plan edition of the Date and Time Picker components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-date-pickers/package.json b/packages/x-date-pickers/package.json index e381dda07db16..ea3516ae1cc82 100644 --- a/packages/x-date-pickers/package.json +++ b/packages/x-date-pickers/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-date-pickers", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "The community edition of the Date and Time Picker components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-internals/package.json b/packages/x-internals/package.json index 2d82088e35291..afa0adc9c2214 100644 --- a/packages/x-internals/package.json +++ b/packages/x-internals/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-internals", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "Utility functions for the MUI X packages (internal use only).", "author": "MUI Team", "license": "MIT", diff --git a/packages/x-license/package.json b/packages/x-license/package.json index d0a9e82e6308a..e3c35bf7631ad 100644 --- a/packages/x-license/package.json +++ b/packages/x-license/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-license", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "MUI X License verification", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-tree-view-pro/package.json b/packages/x-tree-view-pro/package.json index 6cc1da3e4a2b6..60eeb20f239f6 100644 --- a/packages/x-tree-view-pro/package.json +++ b/packages/x-tree-view-pro/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-tree-view-pro", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "The Pro plan edition of the Tree View components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-tree-view/package.json b/packages/x-tree-view/package.json index 99b4b3a8976ea..57bd46d2d0eec 100644 --- a/packages/x-tree-view/package.json +++ b/packages/x-tree-view/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-tree-view", - "version": "8.0.0-alpha.10", + "version": "8.0.0-alpha.11", "description": "The community edition of the Tree View components (MUI X).", "author": "MUI Team", "main": "src/index.ts",