@mui/material-nextjs 6.0.0-beta.3 → 6.0.0-beta.6
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
|
@@ -1,5 +1,216 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 6.0.0-beta.6
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-beta.5..next -->
|
|
6
|
+
|
|
7
|
+
_Aug 16, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 18 contributors who made this release possible.
|
|
10
|
+
|
|
11
|
+
### `@mui/material@6.0.0-beta.6`
|
|
12
|
+
|
|
13
|
+
- [Autocomplete] Improve the `options` prop description (#41591) @pluvio72
|
|
14
|
+
- [Autocomplete] Remove autocomplete warning regarding value not equal to option (#43314) @ZeeshanTamboli
|
|
15
|
+
- [Divider] Add aria-orientation (#43241) @aarongarciah
|
|
16
|
+
- [IconButton] Fix hover background color behavior (#43271) @mnajdova
|
|
17
|
+
- [TypeScript] Refactor types so they're compatible with upcoming React 19 (#43276) @DiegoAndai
|
|
18
|
+
- [Typography] Replace dot notation color value to work with Pigment CSS (#43288) @siriwatknp
|
|
19
|
+
- [pigment-css] Fix `getSelector` prefers-color-scheme to be object (#43237) @siriwatknp
|
|
20
|
+
- Remove `display="block"` usage to work with Pigment CSS (#43307) @siriwatknp
|
|
21
|
+
|
|
22
|
+
### `@mui/codemod@6.0.0-beta.6`
|
|
23
|
+
|
|
24
|
+
- [codemod] Skip sx spread transformation (#43291) @siriwatknp
|
|
25
|
+
|
|
26
|
+
### `@mui/styles@6.0.0-beta.6`
|
|
27
|
+
|
|
28
|
+
- [styles] Fix issues reported by eslint-plugin-react-compiler (#43118) @jlewins
|
|
29
|
+
|
|
30
|
+
### Docs
|
|
31
|
+
|
|
32
|
+
- [material-ui] Audit and copyedit the v6 migration doc (#43073) @samuelsycamore
|
|
33
|
+
- [material-ui] Fix Material Icon search lag and other improvements (#41330) @anle9650
|
|
34
|
+
- [material-ui][Popover] Fix description and title of hover interaction section (#43290) @ZeeshanTamboli
|
|
35
|
+
- [material-ui] Refine and unify custom template themes (#43220) @zanivan
|
|
36
|
+
- [joy-ui] Fix data grid redirection (#43247) @sai6855
|
|
37
|
+
- [mui-system] Add import statement in docs (#43223) @sai6855
|
|
38
|
+
- Update babel config (#43286) @romgrk
|
|
39
|
+
- Fix outdated references to Materal UI version (#43321) @oliviertassinari
|
|
40
|
+
- Polish migration git diff experience @oliviertassinari
|
|
41
|
+
- Update LTS to match format (#43212) @oliviertassinari
|
|
42
|
+
- Fix Pigment CSS migration content (#43217) @siriwatknp
|
|
43
|
+
|
|
44
|
+
### Core
|
|
45
|
+
|
|
46
|
+
- [code-infra] Remove `userEvent` export from `@mui/internal-test-utils` (#43313) @LukasTy
|
|
47
|
+
- [code-infra] Remove unnecessary alias (#43320) @Janpot
|
|
48
|
+
- [code-infra] Fix utils bundle size entrypoint (#43304) @Janpot
|
|
49
|
+
- [core] missing and incorrect scripts (#43209) @Jay-Karia
|
|
50
|
+
- [core] Set Node 14 as minimum version in all browserslist envs (#43326) @aarongarciah
|
|
51
|
+
- [core] Add React 19 as peer dependency (#43216) @aarongarciah
|
|
52
|
+
- [core] Pin `eslint-plugin-jsx-a11y` version to 6.7.1 (#43292) @Janpot
|
|
53
|
+
- [core] Update supported Node.js version to 14 (#43315) @Janpot
|
|
54
|
+
- [core] Use fs instead of fs-extra in script utils (#43234) @DiegoAndai
|
|
55
|
+
- [core] Refactor system theme props (#43120) @romgrk
|
|
56
|
+
- [docs-infra] Fix some TS issues for X docs (#43285) @Janpot
|
|
57
|
+
- [docs-infra] Move API pages to TS (#43199) @alexfauquette
|
|
58
|
+
- [docs-infra] Fix broken sandboxes with relative module imports (#42767) @bharatkashyap
|
|
59
|
+
- [docs-infra] Simplify API sections typing (#43128) @alexfauquette
|
|
60
|
+
- [examples] Fix import (#43316) @aarongarciah
|
|
61
|
+
- [examples] Add material-ui-pigment-css for Next.js and Vite (#43065) @siriwatknp
|
|
62
|
+
- [examples] Replace wrong import with `@mui/material/styles` (#43236) @siriwatknp
|
|
63
|
+
- [useMediaQuery] Adapt test implementation for React 19 (#43269) @aarongarciah
|
|
64
|
+
- [test] Update `matchMedia` mocks (#43240) @cherniavskii
|
|
65
|
+
- [test] Remove unnecessary ref param (#43282) @aarongarciah
|
|
66
|
+
- [website] Update showcase to include Toolpad Core (#43226) @bharatkashyap
|
|
67
|
+
- [website] Replace React.MutableRefObject with React.RefObject (#43284) @aarongarciah
|
|
68
|
+
|
|
69
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @anle9650, @bharatkashyap, @cherniavskii, @DiegoAndai, @Janpot, @Jay-Karia, @jlewins, @mnajdova, @oliviertassinari, @pluvio72, @renovate[bot], @romgrk, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
|
|
70
|
+
|
|
71
|
+
## 6.0.0-beta.5
|
|
72
|
+
|
|
73
|
+
<!-- generated comparing v6.0.0-beta.4..next -->
|
|
74
|
+
|
|
75
|
+
_Aug 8, 2024_
|
|
76
|
+
|
|
77
|
+
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
78
|
+
|
|
79
|
+
- Remove some deprecated props from the ListItem component (#41566) @thathva
|
|
80
|
+
- Bumped the minimum supported version of TypeScript (#43116) @mnajdova
|
|
81
|
+
|
|
82
|
+
### `@mui/material@6.0.0-beta.5`
|
|
83
|
+
|
|
84
|
+
#### BREAKING CHANGES
|
|
85
|
+
|
|
86
|
+
- ​<!-- 14 -->[material-ui][ListItem] Removing deprecated props (#41566) @thathva
|
|
87
|
+
|
|
88
|
+
`ListItem`'s props `autoFocus`, `button`, `disabled`, and `selected`, deprecated in v5, have been removed. To replace the `button` prop, use `ListItemButton` instead. The other removed props are available in the `ListItemButton` component as well.
|
|
89
|
+
|
|
90
|
+
```diff
|
|
91
|
+
-<ListItem button />
|
|
92
|
+
+<ListItemButton />
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Use this codemod to migrate your project to the `ListItemButton` component:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
npx @mui/codemod@next v6.0.0/list-item-button-prop <path/to/folder>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
As the `ListItem` no longer supports these props, the class names related to these props were removed. You should use the `listItemButtonClasses` object instead.
|
|
102
|
+
|
|
103
|
+
```diff
|
|
104
|
+
-import { listItemClasses } from '@mui/material/ListItem';
|
|
105
|
+
+import { listItemButtonClasses } from '@mui/material/ListItemButton';
|
|
106
|
+
|
|
107
|
+
- listItemClasses.button
|
|
108
|
+
+ listItemButtonClasses.root
|
|
109
|
+
|
|
110
|
+
- listItemClasses.focusVisible
|
|
111
|
+
+ listItemButtonClasses.focusVisible
|
|
112
|
+
|
|
113
|
+
- listItemClasses.disabled
|
|
114
|
+
+ listItemButtonClasses.disabled
|
|
115
|
+
|
|
116
|
+
- listItemClasses.selected
|
|
117
|
+
+ listItemButtonClasses.selected
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### Changes
|
|
121
|
+
|
|
122
|
+
- ​<!-- 36 -->[material-ui][Autocomplete] Fix default value for multiple mode getting redefined with React 19 (#43189) @DiegoAndai
|
|
123
|
+
- ​<!-- 12 -->[material-ui] Merge `CssVarsProvider` into `ThemeProvider` (#43115) @siriwatknp
|
|
124
|
+
- ​<!-- 11 -->[material-ui] Make tests compatible with React 19 (#43155) @DiegoAndai
|
|
125
|
+
- ​<!-- 10 -->[material-ui] Refine Blog template (#42825) @zanivan
|
|
126
|
+
- ​<!-- 09 -->[material-ui] Element ref access React 19 compatibility (#43132) @DiegoAndai
|
|
127
|
+
- ​<!-- 08 -->[material-ui][mui-system] Add support for version runtime checks (#43190) @DiegoAndai
|
|
128
|
+
|
|
129
|
+
### `@mui/material-pigment-css@6.0.0-beta.5`
|
|
130
|
+
|
|
131
|
+
- ​<!-- 13 -->Reexport Pigment CSS from index file (#43218) @siriwatknp
|
|
132
|
+
|
|
133
|
+
### `@mui/codemod@6.0.0-beta.5`
|
|
134
|
+
|
|
135
|
+
- ​<!-- 31 -->Fix codemod crash on MuiDivider property (#43125) @Janpot
|
|
136
|
+
|
|
137
|
+
### Docs
|
|
138
|
+
|
|
139
|
+
- ​<!-- 37 -->Fix resolution of @mui/material-ui in docs (#43108) @Janpot
|
|
140
|
+
- ​<!-- 25 -->Refine and polish out Templates page (#43131) @zanivan
|
|
141
|
+
- ​<!-- 24 -->Fix the link test script (#43195) @alexfauquette
|
|
142
|
+
- ​<!-- 23 -->Fix alpha usage (#43194) @siriwatknp
|
|
143
|
+
- ​<!-- 22 -->Link Toolpad Core components from Material UI docs (#43036) @prakhargupta1
|
|
144
|
+
- ​<!-- 21 -->Link Toolpad core docs to the docs menu (#42952) @prakhargupta1
|
|
145
|
+
- ​<!-- 20 -->Polish migration guide (#43021) @oliviertassinari
|
|
146
|
+
- ​<!-- 19 -->Fix 404 link to migration pages @oliviertassinari
|
|
147
|
+
- ​<!-- 18 -->Support inject dynamic theme (#42879) @Vxee
|
|
148
|
+
- ​<!-- 17 -->Fix 301 @oliviertassinari
|
|
149
|
+
- ​<!-- 35 -->[blog] Announcing pricing changes Sep 2024 (#43061) @joserodolfofreitas
|
|
150
|
+
- ​<!-- 15 -->[material-ui][TextField] Remove mentions of `redux-form` from TextField documentation (#43176) @AbdurRahman2004
|
|
151
|
+
|
|
152
|
+
### Core
|
|
153
|
+
|
|
154
|
+
- ​<!-- 34 -->[code-infra] Fix `@mui/internal-test-utils` `screen` export type (#43150) @LukasTy
|
|
155
|
+
- ​<!-- 33 -->[code-infra] Do not look for changes with previous commit when releasing a canary version (#43129) @michaldudak
|
|
156
|
+
- ​<!-- 32 -->[code-infra] Automate canary releases (#43066) @michaldudak
|
|
157
|
+
- ​<!-- 30 -->[core] Apply top-level eslint rule to docs and fix violations (#43126) @Janpot
|
|
158
|
+
- ​<!-- 29 -->[core] Patch styled-components to use React.JSX namespace (#43205) @aarongarciah
|
|
159
|
+
- ​<!-- 28 -->[core] Replace JSX namespace usages with React.JSX (#43204) @aarongarciah
|
|
160
|
+
- ​<!-- 27 -->[core] Remove `react-router` package from `pigment-css-vite-app` (#43201) @ZeeshanTamboli
|
|
161
|
+
- ​<!-- 26 -->[core] Remove unnecessary types packages from `@mui/internal-babel-macros` (#43193) @ZeeshanTamboli
|
|
162
|
+
- ​<!-- 16 -->[docs-infra] Move `ApiPage` to TS (#43149) @alexfauquette
|
|
163
|
+
- ​<!-- 07 -->[test] Remove unnecessary prop type check in test (#43211) @aarongarciah
|
|
164
|
+
- ​<!-- 06 -->[test] Make conformance tests work with async render function (#43156) @michaldudak
|
|
165
|
+
- ​<!-- 05 -->[typescript] Update the minimum supported version (#43116) @mnajdova
|
|
166
|
+
- ​<!-- 04 -->[website] Add icons to core page products (#43151) @zanivan
|
|
167
|
+
- ​<!-- 03 -->[website] Copyedit Docs and Product menu taglines (#43075) @samuelsycamore
|
|
168
|
+
- ​<!-- 02 -->[website] Fix wrong link in pricing table (#43141) @zanivan
|
|
169
|
+
- ​<!-- 01 -->[website] Add blog link to pricing table (#43123) @zanivan
|
|
170
|
+
|
|
171
|
+
All contributors of this release in alphabetical order: @aarongarciah, @AbdurRahman2004, @alexfauquette, @DiegoAndai, @Janpot, @joserodolfofreitas, @LukasTy, @michaldudak, @mnajdova, @oliviertassinari, @prakhargupta1, @samuelsycamore, @siriwatknp, @thathva, @Vxee, @zanivan, @ZeeshanTamboli
|
|
172
|
+
|
|
173
|
+
## 6.0.0-beta.4
|
|
174
|
+
|
|
175
|
+
<!-- generated comparing v6.0.0-beta.3..next -->
|
|
176
|
+
|
|
177
|
+
_Jul 30, 2024_
|
|
178
|
+
|
|
179
|
+
A big thanks to the 12 contributors who made this release possible.
|
|
180
|
+
|
|
181
|
+
### `@mui/material@6.0.0-beta.4`
|
|
182
|
+
|
|
183
|
+
- [Accordion] Render a heading wrapping `AccordionSummary` button per W3C Accordion Pattern standards (#42914) @ZeeshanTamboli
|
|
184
|
+
- [Divider] Enable borderStyle enhancement in divider with children (#42715) @anuujj
|
|
185
|
+
- [ImageListItemBar] Deprecate composed classes (#42905) @sai6855
|
|
186
|
+
- Attach selector for default color scheme (#43035) @siriwatknp
|
|
187
|
+
- Stabilize Grid v2 and deprecate Grid v1 (#43054) @DiegoAndai
|
|
188
|
+
|
|
189
|
+
### `@mui/system@6.0.0-beta.4`
|
|
190
|
+
|
|
191
|
+
- Make `createBreakpoints` independent for stringify theme (#43048) @siriwatknp
|
|
192
|
+
|
|
193
|
+
### `@mui/utils@6.0.0-beta.4`
|
|
194
|
+
|
|
195
|
+
- Fix issues reported by the React Compiler (#43051) @markliu2013
|
|
196
|
+
|
|
197
|
+
### Docs
|
|
198
|
+
|
|
199
|
+
- [material-ui] Replace deprecated `<ListItem button/>` with `ListItemButton` component in routing libraries list example (#43110) @aliharis99
|
|
200
|
+
- [material-ui][Card] Update CardMedia description (#43067) @shahzaibdev1
|
|
201
|
+
- [material-ui] Polish out data table demo (#43072) @zanivan
|
|
202
|
+
- [material-ui][Snackbar] Improve reason type in demos (#43077) @sai6855
|
|
203
|
+
- [pigment-css] Fix syntax in migrating-to-pigment-css guide (#43107) @KevinVandy
|
|
204
|
+
- Fix page description line break @oliviertassinari
|
|
205
|
+
|
|
206
|
+
### Core
|
|
207
|
+
|
|
208
|
+
- Fix event naming convention @oliviertassinari
|
|
209
|
+
- [docs-infra] Move ads to the `@mui/docs` package (#42944) @alexfauquette
|
|
210
|
+
- [website] Fine-tune button styles on the branding theme (#43082) @zanivan
|
|
211
|
+
|
|
212
|
+
All contributors of this release in alphabetical order: @alexfauquette, @aliharis99, @anuujj, @DiegoAndai, @KevinVandy, @markliu2013, @oliviertassinari, @sai6855, @shahzaibdev1, @siriwatknp, @zanivan, @ZeeshanTamboli
|
|
213
|
+
|
|
3
214
|
## 6.0.0-beta.3
|
|
4
215
|
|
|
5
216
|
<!-- generated comparing v6.0.0-beta.2..next -->
|
|
@@ -1699,6 +1910,7 @@ This release was mostly about 🐛 bug fixes and 📚 documentation improvements
|
|
|
1699
1910
|
- [core] Fix TypeScript spelling in changelog @oliviertassinari
|
|
1700
1911
|
- [core] Fix small detail in the autocomplete demo @oliviertassinari
|
|
1701
1912
|
- [core] Increase node memory limit on Netlify build (#41111) @michaldudak
|
|
1913
|
+
- [core] Fix Netlify build cache issue (#43281) @LukasTy
|
|
1702
1914
|
- [core][Tooltip] Remove incorrect code comment (#41179) @ZeeshanTamboli
|
|
1703
1915
|
- [core] Fix missing context display names (#41168) @oliviertassinari
|
|
1704
1916
|
- [core][base-ui] Remove `@mui/base` dev dependency from Base UI workspace (#41216) @ZeeshanTamboli
|
|
@@ -25,17 +25,16 @@ function AppRouterCacheProvider(props) {
|
|
|
25
25
|
children
|
|
26
26
|
} = props;
|
|
27
27
|
const [registry] = React.useState(() => {
|
|
28
|
-
var _options$key;
|
|
29
28
|
const cache = (0, _cache.default)({
|
|
30
29
|
...options,
|
|
31
|
-
key:
|
|
30
|
+
key: options?.key ?? 'mui'
|
|
32
31
|
});
|
|
33
32
|
cache.compat = true;
|
|
34
33
|
const prevInsert = cache.insert;
|
|
35
34
|
let inserted = [];
|
|
36
35
|
// Override the insert method to support streaming SSR with flush().
|
|
37
36
|
cache.insert = (...args) => {
|
|
38
|
-
if (options
|
|
37
|
+
if (options?.enableCssLayer) {
|
|
39
38
|
args[1].styles = `@layer mui {${args[1].styles}}`;
|
|
40
39
|
}
|
|
41
40
|
const [selector, serialized] = args;
|
|
@@ -87,7 +86,7 @@ function AppRouterCacheProvider(props) {
|
|
|
87
86
|
name,
|
|
88
87
|
style
|
|
89
88
|
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)("style", {
|
|
90
|
-
nonce: options
|
|
89
|
+
nonce: options?.nonce,
|
|
91
90
|
"data-emotion": `${registry.cache.key}-global ${name}`
|
|
92
91
|
// eslint-disable-next-line react/no-danger
|
|
93
92
|
,
|
|
@@ -95,7 +94,7 @@ function AppRouterCacheProvider(props) {
|
|
|
95
94
|
__html: style
|
|
96
95
|
}
|
|
97
96
|
}, name)), styles && /*#__PURE__*/(0, _jsxRuntime.jsx)("style", {
|
|
98
|
-
nonce: options
|
|
97
|
+
nonce: options?.nonce,
|
|
99
98
|
"data-emotion": dataEmotionAttribute
|
|
100
99
|
// eslint-disable-next-line react/no-danger
|
|
101
100
|
,
|
|
@@ -15,7 +15,7 @@ function createEmotionCache() {
|
|
|
15
15
|
let insertionPoint;
|
|
16
16
|
if (isBrowser) {
|
|
17
17
|
const emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
|
|
18
|
-
insertionPoint = emotionInsertionPoint
|
|
18
|
+
insertionPoint = emotionInsertionPoint ?? undefined;
|
|
19
19
|
}
|
|
20
20
|
return (0, _cache.default)({
|
|
21
21
|
key: 'mui',
|
|
@@ -41,7 +41,6 @@ function DocumentHeadTags(props) {
|
|
|
41
41
|
// `getInitialProps` belongs to `_document` (instead of `_app`),
|
|
42
42
|
// it's compatible with static-site generation (SSG).
|
|
43
43
|
async function documentGetInitialProps(ctx, options) {
|
|
44
|
-
var _options$emotionCache, _options$plugins;
|
|
45
44
|
// Resolution order
|
|
46
45
|
//
|
|
47
46
|
// On the server:
|
|
@@ -66,7 +65,7 @@ async function documentGetInitialProps(ctx, options) {
|
|
|
66
65
|
|
|
67
66
|
// You can consider sharing the same Emotion cache between all the SSR requests to speed up performance.
|
|
68
67
|
// However, be aware that it can have global side effects.
|
|
69
|
-
const cache =
|
|
68
|
+
const cache = options?.emotionCache ?? (0, _createCache.default)();
|
|
70
69
|
// The createEmotionServer has to be called directly after the cache creation due to the side effect of cache.compat = true,
|
|
71
70
|
// otherwise the <style> tag will not come with the HTML string from the server.
|
|
72
71
|
const {
|
|
@@ -94,5 +93,5 @@ async function documentGetInitialProps(ctx, options) {
|
|
|
94
93
|
}, style.key))
|
|
95
94
|
};
|
|
96
95
|
}
|
|
97
|
-
}, ...(
|
|
96
|
+
}, ...(options?.plugins ?? [])])(ctx);
|
|
98
97
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material-nextjs",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Collection of utilities for integration between Material UI and Next.js.",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"url": "https://opencollective.com/mui-org"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/runtime": "^7.
|
|
27
|
+
"@babel/runtime": "^7.25.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@emotion/cache": "^11.11.0",
|
|
31
31
|
"@emotion/react": "^11.11.4",
|
|
32
32
|
"@emotion/server": "^11.11.0",
|
|
33
|
-
"@types/react": "^17.0.0 || ^18.0.0",
|
|
33
|
+
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
34
34
|
"next": "^13.0.0 || ^14.0.0",
|
|
35
|
-
"react": "^17.0.0 || ^18.0.0"
|
|
35
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
38
38
|
"@types/react": {
|