From 878a5382e3a7cf5de8d81baad6b845c5bec7ee6c Mon Sep 17 00:00:00 2001 From: Kenan Yusuf Date: Thu, 19 Dec 2024 13:38:57 +0000 Subject: [PATCH] v8.0.0-alpha.5 (#15937) Signed-off-by: Kenan Yusuf Co-authored-by: Flavien DELANGLE Co-authored-by: Armin Mehinovic <4390250+arminmeh@users.noreply.github.com> Co-authored-by: Lukas Tyla --- CHANGELOG.md | 103 ++++++++++++++++++++ package.json | 2 +- 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 +- 15 files changed, 117 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94b199a3aedb6..559e7b32771d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,108 @@ 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.5 + +_Dec 19, 2024_ + +We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨: + +- 🌍 Improve Korean (ko-KR) locale on the Data Grid +- 🐞 Bugfixes + +Special thanks go out to the community contributors who have helped make this release possible: +@good-jinu, @k-rajat19. +Following are all team members who have contributed to this release: +@alexfauquette, @cherniavskii, @flaviendelangle, @KenanYusuf, @LukasTy, @MBilalShafi, @romgrk. + + + +### Data Grid + +#### Breaking changes + +- Passing additional props (like `data-*`, `aria-*`) directly on the Data Grid component is no longer supported. To pass the props, use `slotProps`. + + - For `.root` element, use `slotProps.root`. + - For `.main` element (the one with `role="grid"`), use `slotProps.main`. + +- `detailPanelExpandedRowIds` and `onDetailPanelExpandedRowIdsChange` props use a [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instead of an array: + + ```diff + -detailPanelExpandedRowIds?: GridRowId[]; + +detailPanelExpandedRowIds?: Set; + + -onDetailPanelExpandedRowIdsChange?: (ids: GridRowId[], details: GridCallbackDetails) => void; + +onDetailPanelExpandedRowIdsChange?: (ids: Set, details: GridCallbackDetails) => void; + ``` + +- `apiRef.current.getExpandedDetailPanels` and `apiRef.current.setExpandedDetailPanels` methods receive and return a [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instead of an array. +- `gridDetailPanelExpandedRowIdsSelector` returns a [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instead of an array. +- `gridDetailPanelExpandedRowsHeightCacheSelector` was removed. + +#### `@mui/x-data-grid@8.0.0-alpha.5` + +- [DataGrid] Consider `columnGroupHeaderHeight` prop in `getTotalHeaderHeight` method (#15915) @k-rajat19 +- [DataGrid] Fix autosizing with virtualized columns (#15116) @k-rajat19 +- [DataGrid] Move `` to leaf import (#15879) @romgrk +- [DataGrid] Move `` and `` to leaf import (#15869) @romgrk +- [DataGrid] Remove the Joy UI demo (#15913) @romgrk +- [DataGrid] Update quick filter input variant (#15909) @KenanYusuf +- [DataGrid] Use `slotProps` to forward props to `.main` and `.root` elements (#15870) @MBilalShafi +- [l10n] Improve Korean(ko-KR) locale (#15878) @good-jinu + +#### `@mui/x-data-grid-pro@8.0.0-alpha.5` [![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.5`, plus: + +- [DataGridPro] Use `Set` for `detailPanelExpandedRowIds` (#15835) @cherniavskii + +#### `@mui/x-data-grid-premium@8.0.0-alpha.5` [![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.5`. + +### Date and Time Pickers + +#### Breaking changes + +- The `` component has been moved inside the Month Calendar component — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#month-calendar). + +- The `` component has been moved inside the Year Calendar component — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#year-calendar). + +#### `@mui/x-date-pickers@8.0.0-alpha.5` + +- [pickers] Add verification to disable skipped hours in spring forward DST (#15849) @flaviendelangle +- [pickers] Remove `PickersMonth` and `PickersYear` from the theme and remove the `div` wrapping each button (#15806) @flaviendelangle +- [pickers] Use the new `ownerState` object on the `` component (#15863) @flaviendelangle + +#### `@mui/x-date-pickers-pro@8.0.0-alpha.5` [![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.5`. + +### Charts + +#### `@mui/x-charts@8.0.0-alpha.5` + +- [charts] Fix `` value type if `null` (#15917) @alexfauquette + +#### `@mui/x-charts-pro@8.0.0-alpha.5` [![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.5`. + +### Tree View + +#### `@mui/x-tree-view@8.0.0-alpha.5` + +No changes since `@mui/x-tree-view-pro@v8.0.0-alpha.4`. + +#### `@mui/x-tree-view-pro@8.0.0-alpha.5` [![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.5`. + +### Core + +- [code-infra] Remove `@mui/material-nextjs` dependency (#15925) @LukasTy + ## 8.0.0-alpha.4 _Dec 13, 2024_ @@ -39,6 +141,7 @@ Following are all team members who have contributed to this release: -const output = useGridSelector(apiRef, selector, equals) +const output = useGridSelector(apiRef, selector, arguments, equals) ``` + - The default variant for text fields and selects in the filter panel has been changed to `outlined`. - The "row spanning" feature is now stable. ```diff diff --git a/package.json b/package.json index dd6757400040f..577832d12ae0f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "8.0.0-alpha.4", + "version": "8.0.0-alpha.5", "private": true, "scripts": { "preinstall": "npx only-allow pnpm", diff --git a/packages/x-charts-pro/package.json b/packages/x-charts-pro/package.json index 1707539f3aaad..51d20ee27b2f8 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.4", + "version": "8.0.0-alpha.5", "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 037f74d86b175..18338aa9d7301 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.4", + "version": "8.0.0-alpha.5", "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 af7effbdab202..4d41f0fce71c9 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.4", + "version": "8.0.0-alpha.5", "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 4b8e1b587c90e..4e259bf5a51e3 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.4", + "version": "8.0.0-alpha.5", "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 2c6a945e9fb49..d4dc13b8cd042 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.4", + "version": "8.0.0-alpha.5", "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 bd0a99c48c656..0b9b9de947644 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.4", + "version": "8.0.0-alpha.5", "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 ef26bf4c18b33..793580b3d310a 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.4", + "version": "8.0.0-alpha.5", "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 9acf95c7ab0b2..bf0326cd0f83c 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.4", + "version": "8.0.0-alpha.5", "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 4fad0edc9ffc7..cb4aeb6f1f552 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.4", + "version": "8.0.0-alpha.5", "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 62515eaf39e6c..d0090484dd5cc 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.2", + "version": "8.0.0-alpha.5", "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 59f5be0f717d1..86c1963741198 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.4", + "version": "8.0.0-alpha.5", "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 5fe97d5430177..c244f89d4f582 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.4", + "version": "8.0.0-alpha.5", "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 fb7c566f00043..ad5ddcad0d009 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.4", + "version": "8.0.0-alpha.5", "description": "The community edition of the Tree View components (MUI X).", "author": "MUI Team", "main": "src/index.ts",