From f1a879d88b032cea6905562861ffe5d2846edeeb Mon Sep 17 00:00:00 2001 From: Lukas Tyla Date: Thu, 5 Sep 2024 17:31:25 +0300 Subject: [PATCH] v7.16.0 (#14502) Signed-off-by: Lukas Tyla Co-authored-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com> Co-authored-by: Kenan Yusuf Co-authored-by: Flavien DELANGLE Co-authored-by: Jose C Quintas Jr Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> --- CHANGELOG.md | 97 +++++++++++++++++++ package.json | 2 +- packages/x-charts-pro/package.json | 2 +- packages/x-charts-vendor/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 +- .../DateCalendar/tests/DateCalendar.test.tsx | 12 +-- 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 +- 17 files changed, 116 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72a65f2523895..6d3d1b1f10151 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,103 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 7.16.0 + +_Sep 5, 2024_ + +We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨: + +- 🎨 Update the design of Data Grid column headers (#14293) +- 🧠 Add the `slots` concept introduction documentation page (#13881) +- 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid +- 🐞 Bugfixes +- 📚 Documentation improvements + + + +### Data Grid + +#### `@mui/x-data-grid@7.16.0` + +- [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855 +- [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi +- [DataGrid] Column header design updates (#14293) @KenanYusuf +- [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii +- [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf +- [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari +- [DataGrid] Restore reselect behavior (#14410) @romgrk +- [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs +- [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot + +#### `@mui/x-data-grid-pro@7.16.0` [![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@7.16.0`, plus: + +- [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi + +#### `@mui/x-data-grid-premium@7.16.0` [![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@7.16.0`. + +### Date and Time Pickers + +#### `@mui/x-date-pickers@7.16.0` + +- [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle +- [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle +- [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle + +#### `@mui/x-date-pickers-pro@7.16.0` [![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@7.16.0`. + +### Charts + +#### `@mui/x-charts@7.16.0` + +- [charts] Fix JSDoc typos (#14497) @alexfauquette +- [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas +- [charts] Fix theme augmentation (#14372) @alexfauquette +- [charts] Pass all props to legend (#14392) @JCQuintas +- [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette +- [charts] Update `package.json` for vendor package (#14465) @alexfauquette + +#### `@mui/x-charts-pro@7.0.0-beta.0` [![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@7.16.0`, plus: + +- [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas + +### Tree View + +#### `@mui/x-tree-view@7.16.0` + +- [TreeView] Clean label editing code (#14264) @flaviendelangle + +### `@mui/x-codemod@7.16.0` + +- [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi + +### Docs + +- [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle +- [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle +- [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19 +- [docs] Remove notion of seats (#14351) @oliviertassinari +- [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas + +### Core + +- [core] Fix changelog spelling @oliviertassinari +- [core] Fix failing tests on the pickers (#14457) @flaviendelangle +- [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari +- [code-infra] Add babel runtime version check (#14483) @Janpot +- [code-infra] Fully resolve imports in ESM target (#14234) @Janpot +- [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas +- [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen +- [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen +- [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen + ## 7.15.0 _Aug 29, 2024_ diff --git a/package.json b/package.json index 00146fb546dbb..5f358bf2fae5a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "7.15.0", + "version": "7.16.0", "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 765359ab82d35..6f142b0001d67 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": "7.0.0-alpha.3", + "version": "7.0.0-beta.0", "description": "The Pro plan edition of the Charts components (MUI X).", "author": "MUI Team", "main": "src/index.ts", diff --git a/packages/x-charts-vendor/package.json b/packages/x-charts-vendor/package.json index 0da2f9aa3fd0a..d7a322bfbccb0 100644 --- a/packages/x-charts-vendor/package.json +++ b/packages/x-charts-vendor/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-charts-vendor", - "version": "7.15.0", + "version": "7.16.0", "description": "Vendored dependencies for MUI X Charts", "author": "MUI Team", "keywords": [ diff --git a/packages/x-charts/package.json b/packages/x-charts/package.json index a6600e79f27f2..ebd5bd8c47d77 100644 --- a/packages/x-charts/package.json +++ b/packages/x-charts/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-charts", - "version": "7.15.0", + "version": "7.16.0", "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 bac5d2322c374..7a400bf3f38a3 100644 --- a/packages/x-codemod/package.json +++ b/packages/x-codemod/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-codemod", - "version": "7.15.0", + "version": "7.16.0", "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 8522cd2b980fc..a65319d22f278 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": "7.15.0", + "version": "7.16.0", "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 20658901315af..3ac6ab7e3b6ff 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": "7.15.0", + "version": "7.16.0", "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 2f247fca02d18..944d5bd4796b0 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": "7.15.0", + "version": "7.16.0", "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 9af9934e8531f..bf2f271889fb9 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": "7.15.0", + "version": "7.16.0", "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 594bd42a3bcfa..d1da1121ba92f 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": "7.15.0", + "version": "7.16.0", "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 065254e217354..2ac4fb9a50f57 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": "7.15.0", + "version": "7.16.0", "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-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx b/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx index 8332954d9937e..81833dfd0e525 100644 --- a/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx +++ b/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx @@ -9,7 +9,7 @@ import { createPickerRenderer, adapterToUse } from 'test/utils/pickers'; const isJSDOM = /jsdom/.test(window.navigator.userAgent); describe('', () => { - const { render } = createPickerRenderer(); + const { render, clock } = createPickerRenderer({ clockConfig: new Date(2019, 0, 2) }); it('switches between views uncontrolled', async () => { const handleViewChange = spy(); @@ -128,17 +128,13 @@ describe('', () => { }); describe('with fake timers', () => { - const { render: renderWithFakeTimers, clock } = createPickerRenderer({ - clock: 'fake', - clockConfig: new Date('2019-01-02'), - }); + clock.withFakeTimers(); + // test: https://github.com/mui/mui-x/issues/12373 it('should not reset day to `startOfDay` if value already exists when finding the closest enabled date', () => { const onChange = spy(); const defaultDate = adapterToUse.date('2019-01-02T11:12:13.550Z'); - renderWithFakeTimers( - , - ); + render(); fireEvent.click( screen.getByRole('button', { name: 'calendar view is open, switch to year view' }), diff --git a/packages/x-internals/package.json b/packages/x-internals/package.json index c25efbc16a3a7..a6fb90ead4d30 100644 --- a/packages/x-internals/package.json +++ b/packages/x-internals/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-internals", - "version": "7.15.0", + "version": "7.16.0", "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 20bbae4c3afb4..17c7affd0697a 100644 --- a/packages/x-license/package.json +++ b/packages/x-license/package.json @@ -1,6 +1,6 @@ { "name": "@mui/x-license", - "version": "7.15.0", + "version": "7.16.0", "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 4206477354586..a0feb93e2e3bb 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": "7.15.0", + "version": "7.16.0", "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 fb3ec5d1ed108..7eb2372532ed7 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": "7.15.0", + "version": "7.16.0", "description": "The community edition of the Tree View components (MUI X).", "author": "MUI Team", "main": "src/index.ts",