Skip to content

Commit

Permalink
v7.0.0-beta.4 (mui#12183)
Browse files Browse the repository at this point in the history
Signed-off-by: Bilal Shafi <[email protected]>
Co-authored-by: Andrew Cherniavskii <[email protected]>
Co-authored-by: Michel Engelen <[email protected]>
Co-authored-by: Alexandre Fauquette <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: Flavien DELANGLE <[email protected]>
  • Loading branch information
6 people authored and thomasmoon committed Sep 6, 2024
1 parent caeb337 commit acc9cc0
Show file tree
Hide file tree
Showing 10 changed files with 237 additions and 26 deletions.
235 changes: 223 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,157 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## v7.0.0-beta.3
## 7.0.0-beta.4

_Feb 23, 2024_

We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:

- 🎁 Introduce a new DOM structure for the field components that provides a better accessibility
- 🚀 Simplify Data Grid DOM structure for improved performance (#12013) @romgrk
- 🕥 The support for IE11 has been removed (#12151) @flaviendelangle
- 🐞 Bugfixes
- 📚 Documentation improvements

### Breaking changes

- The support for IE11 has been removed from all MUI X packages. The `legacy` bundle that used to support old browsers like IE11 is no longer included.

### Data Grid

#### Breaking changes

- The cell inner wrapper `.MuiDataGrid-cellContent` has been removed, use `.MuiDataGrid-cell` to style the cells.

#### `@mui/[email protected]`

- [DataGrid] Simplify cell DOM structure (#12013) @romgrk
- [DataGrid] Fix values labels in `is any of` filter operator (#11939) @gitstart

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

#### `@mui/[email protected]` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')

Same changes as in `@mui/[email protected]`.

### Date Pickers

#### Breaking changes

- The `selectedSections` prop no longer accepts start and end indexes.
When selecting several — but not all — sections, the field components were not behaving correctly, you can now only select one or all sections:

```diff
<DateField
- selectedSections={{ startIndex: 0, endIndex: 0 }}
+ selectedSections={0}

// If the field has 3 sections
- selectedSections={{ startIndex: 0, endIndex: 2 }}
+ selectedSections="all"
/>
```

- The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure. Learn more about this new [accessible DOM structure](/x/react-date-pickers/fields/#accessible-dom-structure).

When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:

```diff
function MyCustomTextField(props) {
const {
+ // Should be ignored
+ enableAccessibleFieldDOMStructure,
// ... rest of the props you are using
} = props;

return ( /* Some UI to edit the date */ )
}

function MyCustomField(props) {
const fieldResponse = useDateField<Dayjs, false, typeof textFieldProps>({
...props,
+ // If you only support one DOM structure, we advise you to hardcode it here to avoid unwanted switches in your application
+ enableAccessibleFieldDOMStructure: false,
});

return <MyCustomTextField ref={ref} {...fieldResponse} />;
}

function App() {
return <DatePicker slots={{ field: MyCustomField }} />;
}
```

- The following internal types were exported by mistake and have been removed from the public API:

- `UseDateFieldDefaultizedProps`
- `UseTimeFieldDefaultizedProps`
- `UseDateTimeFieldDefaultizedProps`
- `UseSingleInputDateRangeFieldComponentProps`
- `UseSingleInputTimeRangeFieldComponentProps`
- `UseSingleInputDateTimeRangeFieldComponentProps`

#### `@mui/[email protected]`

- [fields] Add a11y support to multi-HTML field (#12173) @LukasTy
- [fields] Use the `PickersTextField` component in the fields (#10649) @flaviendelangle
- [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12096) @LukasTy

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

### Charts / `@mui/[email protected]`

#### Breaking changes

These components are no longer exported from `@mui/x-charts`:

- `CartesianContextProvider`
- `DrawingProvider`

#### `@mui/[email protected]`

- [charts] Don't display text if no value is provided (#12127) @alexfauquette
- [charts] Remove export of context providers (#12123) @oliviertassinari

### Tree View / `@mui/[email protected]`

- [TreeView] Stop using custom `findIndex` to support IE11 (#12129) @flaviendelangle

### Docs

- [docs] Add recipe for hiding separator on non-resizable columns (#12134) @michelengelen
- [docs] Add small improvements to the Gauge Chart page (#12076) @danilo-leal
- [docs] Add the 'point' scaleType to the axis documentation (#12179) @alexfauquette
- [docs] Clarify Pickers 'Component composition' section (#12097) @LukasTy
- [docs] Fix "Licensing" page link (#12156) @LukasTy
- [docs] Fix the Treemap illustration (#12185) @danilo-leal
- [docs] Fix error raised by Grammarly on the page @oliviertassinari
- [docs] Improve performance on Charts entry point @oliviertassinari
- [docs] Link to React Transition Group with https @oliviertassinari
- [docs] Move Heatmap to `pro` plan (#12047) @alexfauquette
- [docs] Reduce number of Vale errors @oliviertassinari
- [docs] Remove default value set to `undefined` (#12128) @alexfauquette

### Core

- [core] Fix docs link check (#12135) @LukasTy
- [core] Fix missing context display names (#12124) @oliviertassinari
- [core] Fix shortcuts when Caps Lock enabled (#12121) @oliviertassinari
- [core] Remove IE 11 compat logic (#12119) @oliviertassinari
- [core] Simplify key utils (#12120) @oliviertassinari
- [core] Use the @mui/internal-scripts package (#12142) @michaldudak
- [all components] Remove legacy IE 11 bundle (#12151) @flaviendelangle
- [code-infra] Bump monorepo (#11880) @Janpot
- [code-infra] Use `experimental.cpus` to control amount of export workers in Next.js (#12095) @Janpot
- [docs-infra] Remove randomized API page layout (#11876) @alexfauquette
- [test] Create local wrapper over `describeConformance` (#12130) @michaldudak

## 7.0.0-beta.3

_Feb 16, 2024_

Expand Down Expand Up @@ -67,7 +217,7 @@ Same changes as in `@mui/[email protected]`.
- [core] Sort prop asc (#12033) @oliviertassinari
- [core] Bump monorepo (#12055) @alexfauquette

## v7.0.0-beta.2
## 7.0.0-beta.2

_Feb 9, 2024_

Expand Down Expand Up @@ -2202,7 +2352,68 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
- [license] Correctly throw errors (#10924) @oliviertassinari

## v6.19.4
## 6.19.5

_Feb 23, 2024_

We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:

- 🐞 Bugfixes
- 📚 Documentation improvements

### Data Grid

#### `@mui/[email protected]`

- [DataGrid] Fix styling grid filter input single select (#12079) @FreakDroid

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

#### `@mui/[email protected]` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')

Same changes as in `@mui/[email protected]`.

### Date Pickers

#### `@mui/[email protected]`

- [pickers] Fix `referenceDate` day calendar focus (#12136) @LukasTy
- [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12131) @LukasTy

#### `@mui/[email protected]` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')

Same changes as in `@mui/[email protected]`.

### Charts / `@mui/[email protected]`

- [charts] Allow to skip animation on sparkline bar (#12160) @alexfauquette

### Docs

- [docs] Clarify Pickers 'Component composition' section (#12147) @LukasTy
- [docs] Fix 301 redirection to StackBlitz @oliviertassinari
- [docs] Fix 301 to Material UI @oliviertassinari
- [docs] Fix 301 to Material UI @oliviertassinari
- [docs] Fix 404 links to translation source @oliviertassinari
- [docs] Fix dead link to translations @oliviertassinari
- [docs] Fix the Treemap illustration (#12189) @danilo-leal
- [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
- [docs] Improve performance on Charts entry point @oliviertassinari
- [docs] Move Heatmap to pro (#12170) @alexfauquette
- [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
- [docs] Removed `focused` prop from demo (#12126) @michelengelen
- [docs] Add missing Heatmap pro icon @oliviertassinari
- [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
- [docs] Avoid use of shorthand (#12009) @oliviertassinari

### Core

- [core] Fix CI @oliviertassinari
- [core] Fix docs link check (#12137) @LukasTy

## 6.19.4

_Feb 9, 2024_

Expand All @@ -2214,36 +2425,36 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos

### Data Grid

#### `@mui/x-data-grid@v6.19.4`
#### `@mui/x-data-grid@6.19.4`

- [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
- [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
- [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
- [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH

#### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
#### `@mui/x-data-grid-pro@6.19.4` [![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@v6.19.4`.
Same changes as in `@mui/x-data-grid@6.19.4`.

#### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
#### `@mui/x-data-grid-premium@6.19.4` [![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@v6.19.4`, plus:
Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:

- [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
- [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii

### Date Pickers

#### `@mui/x-date-pickers@v6.19.4`
#### `@mui/x-date-pickers@6.19.4`

- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy

#### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
#### `@mui/x-date-pickers-pro@6.19.4` [![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@v6.19.4`.
Same changes as in `@mui/x-date-pickers@6.19.4`.

### Charts / `@mui/x-charts@v6.19.4`
### Charts / `@mui/x-charts@6.19.4`

- [charts] Add `reverse` property to axes (#11959) @alexfauquette
- [charts] Allow series ids to be numbers (#11960) @alexfauquette
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"private": true,
"scripts": {
"start": "yarn && yarn docs:dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-charts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-charts",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"description": "The community edition of the charts components (MUI X).",
"author": "MUI Team",
"main": "./src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/x-data-grid-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-data-grid-generator",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"description": "Generate fake data for demo purposes only.",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@babel/runtime": "^7.23.9",
"@mui/base": "^5.0.0-beta.36",
"@mui/x-data-grid-premium": "7.0.0-beta.3",
"@mui/x-data-grid-premium": "7.0.0-beta.4",
"chance": "^1.1.11",
"clsx": "^2.1.0",
"lru-cache": "^7.18.3"
Expand Down
6 changes: 3 additions & 3 deletions packages/x-data-grid-premium/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-data-grid-premium",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"description": "The Premium plan edition of the data grid component (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down Expand Up @@ -45,8 +45,8 @@
"@babel/runtime": "^7.23.9",
"@mui/system": "^5.15.9",
"@mui/utils": "^5.15.9",
"@mui/x-data-grid": "7.0.0-beta.3",
"@mui/x-data-grid-pro": "7.0.0-beta.3",
"@mui/x-data-grid": "7.0.0-beta.4",
"@mui/x-data-grid-pro": "7.0.0-beta.4",
"@mui/x-license": "7.0.0-beta.2",
"@types/format-util": "^1.0.4",
"clsx": "^2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/x-data-grid-pro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-data-grid-pro",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"description": "The Pro plan edition of the data grid component (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down Expand Up @@ -45,7 +45,7 @@
"@babel/runtime": "^7.23.9",
"@mui/system": "^5.15.9",
"@mui/utils": "^5.15.9",
"@mui/x-data-grid": "7.0.0-beta.3",
"@mui/x-data-grid": "7.0.0-beta.4",
"@mui/x-license": "7.0.0-beta.2",
"@types/format-util": "^1.0.4",
"clsx": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-data-grid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-data-grid",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"description": "The community edition of the data grid component (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/x-date-pickers-pro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-date-pickers-pro",
"version": "7.0.0-beta.2",
"version": "7.0.0-beta.4",
"description": "The commercial edition of the date picker components (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down Expand Up @@ -45,7 +45,7 @@
"@mui/base": "^5.0.0-beta.36",
"@mui/system": "^5.15.9",
"@mui/utils": "^5.15.9",
"@mui/x-date-pickers": "7.0.0-beta.2",
"@mui/x-date-pickers": "7.0.0-beta.4",
"@mui/x-license": "7.0.0-beta.2",
"clsx": "^2.1.0",
"prop-types": "^15.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-date-pickers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-date-pickers",
"version": "7.0.0-beta.2",
"version": "7.0.0-beta.4",
"description": "The community edition of the date picker components (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-tree-view/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mui/x-tree-view",
"version": "7.0.0-beta.3",
"version": "7.0.0-beta.4",
"description": "The community edition of the tree view components (MUI X).",
"author": "MUI Team",
"main": "src/index.ts",
Expand Down

0 comments on commit acc9cc0

Please sign in to comment.