@mui/material-nextjs 6.0.0-alpha.1 → 6.0.0-dev.20240529-082515-213b5e33ab
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 +37 -2
- package/modern/v13-appRouter/appRouterV13.js +3 -3
- package/modern/v13-pagesRouter/pagesRouterV13Document.js +7 -6
- package/node/v13-appRouter/appRouterV13.js +3 -3
- package/node/v13-pagesRouter/pagesRouterV13Document.js +7 -6
- package/package.json +3 -3
- package/v13-appRouter/appRouterV13.js +3 -3
- package/v13-pagesRouter/pagesRouterV13Document.d.ts +2 -2
- package/v13-pagesRouter/pagesRouterV13Document.js +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.8
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.7..next -->
|
|
6
|
+
|
|
7
|
+
_May 21, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 7 contributors who made this release possible.
|
|
10
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
11
|
+
|
|
12
|
+
### `@mui/material@6.0.0-alpha.7`
|
|
13
|
+
|
|
14
|
+
- ​<!-- 04 -->[material-ui] Filter only valid theme palette for generating styles (#42147) @siriwatknp
|
|
15
|
+
- ​<!-- 03 -->[material-ui] Remove UMD bundle (#42172) @ZeeshanTamboli
|
|
16
|
+
- ​<!-- 02 -->[material-ui][TextField] Deprecate `*Props` props (#42062) @DiegoAndai
|
|
17
|
+
|
|
18
|
+
### Docs
|
|
19
|
+
|
|
20
|
+
- ​<!-- 08 -->[docs] Remove Base UI from the README (#42307) @danilo-leal
|
|
21
|
+
- ​<!-- 07 -->[docs][material-ui] Fix typo in style interoperability with Tailwind CSS docs (#42279) @ZeeshanTamboli
|
|
22
|
+
- ​<!-- 06 -->[docs][material-ui] Add supported browsers section to migration guide (#42194) @DiegoAndai
|
|
23
|
+
- ​<!-- 05 -->[docs][material-ui][Pagination] Clarify pagination `page` prop API (#42220) @Mandar-Pandya
|
|
24
|
+
|
|
25
|
+
### Core
|
|
26
|
+
|
|
27
|
+
- ​<!-- 12 -->[blog] Update blog post OG image (#42270) @danilo-leal
|
|
28
|
+
- ​<!-- 11 -->[blog] Update Pigment CSS post (#42266) @danilo-leal
|
|
29
|
+
- ​<!-- 10 -->[docs] Remove LocalMonero (#42224) @oliviertassinari
|
|
30
|
+
- ​<!-- 08 -->[docs-infra] Fix keyboard navigation on page tabs (#42152) @danilo-leal
|
|
31
|
+
- ​<!-- 10 -->[code-infra] Remove raw-loader (#42275) @Janpot
|
|
32
|
+
- ​<!-- 09 -->[core] Remove outdated Babel plugins (#42140) @ZeeshanTamboli
|
|
33
|
+
- ​<!-- 12 -->[core] Fix a few more key spread issues (#42168) @oliviertassinari
|
|
34
|
+
- ​<!-- 01 -->[website] Avoid duplicate simple vs. rich (#42100) @oliviertassinari
|
|
35
|
+
|
|
36
|
+
All contributors of this release in alphabetical order: @danilo-leal, @DiegoAndai, @Janpot, @Mandar-Pandya, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
|
|
37
|
+
|
|
3
38
|
## v6.0.0-alpha.7
|
|
4
39
|
|
|
5
40
|
<!-- generated comparing v6.0.0-alpha.6..next -->
|
|
@@ -53,7 +88,7 @@ All contributors of this release in alphabetical order: @aarongarciah, @alexfauq
|
|
|
53
88
|
|
|
54
89
|
_May 8, 2024_
|
|
55
90
|
|
|
56
|
-
A big thanks to the 10 contributors who made this release possible.
|
|
91
|
+
A big thanks to the 10 contributors who made this release possible.
|
|
57
92
|
|
|
58
93
|
### `@mui/material@6.0.0-alpha.6`
|
|
59
94
|
|
|
@@ -101,7 +136,7 @@ All contributors of this release in alphabetical order: @aarongarciah, @danilo-l
|
|
|
101
136
|
|
|
102
137
|
_May 1, 2024_
|
|
103
138
|
|
|
104
|
-
A big thanks to the 9 contributors who made this release possible.
|
|
139
|
+
A big thanks to the 9 contributors who made this release possible.
|
|
105
140
|
|
|
106
141
|
### `@mui/material@6.0.0-alpha.5`
|
|
107
142
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import createCache from '@emotion/cache';
|
|
6
5
|
import { CacheProvider as DefaultCacheProvider } from '@emotion/react';
|
|
@@ -18,9 +17,10 @@ export default function AppRouterCacheProvider(props) {
|
|
|
18
17
|
children
|
|
19
18
|
} = props;
|
|
20
19
|
const [registry] = React.useState(() => {
|
|
21
|
-
const cache = createCache(
|
|
20
|
+
const cache = createCache({
|
|
21
|
+
...options,
|
|
22
22
|
key: options?.key ?? 'mui'
|
|
23
|
-
})
|
|
23
|
+
});
|
|
24
24
|
cache.compat = true;
|
|
25
25
|
const prevInsert = cache.insert;
|
|
26
26
|
let inserted = [];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
var _meta;
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import createEmotionServer from '@emotion/server/create-instance';
|
|
@@ -63,15 +62,17 @@ export async function documentGetInitialProps(ctx, options) {
|
|
|
63
62
|
} = createEmotionServer(cache);
|
|
64
63
|
return createGetInitialProps([{
|
|
65
64
|
enhanceApp: App => function EnhanceApp(props) {
|
|
66
|
-
return /*#__PURE__*/_jsx(App,
|
|
67
|
-
emotionCache: cache
|
|
68
|
-
|
|
65
|
+
return /*#__PURE__*/_jsx(App, {
|
|
66
|
+
emotionCache: cache,
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
69
|
},
|
|
70
70
|
resolveProps: async initialProps => {
|
|
71
71
|
const {
|
|
72
72
|
styles
|
|
73
73
|
} = extractCriticalToChunks(initialProps.html);
|
|
74
|
-
return
|
|
74
|
+
return {
|
|
75
|
+
...initialProps,
|
|
75
76
|
emotionStyleTags: styles.map(style => /*#__PURE__*/_jsx("style", {
|
|
76
77
|
"data-emotion": `${style.key} ${style.ids.join(' ')}`,
|
|
77
78
|
// eslint-disable-next-line react/no-danger
|
|
@@ -79,7 +80,7 @@ export async function documentGetInitialProps(ctx, options) {
|
|
|
79
80
|
__html: style.css
|
|
80
81
|
}
|
|
81
82
|
}, style.key))
|
|
82
|
-
}
|
|
83
|
+
};
|
|
83
84
|
}
|
|
84
85
|
}, ...(options?.plugins ?? [])])(ctx);
|
|
85
86
|
}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = AppRouterCacheProvider;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
9
|
var React = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _cache = _interopRequireDefault(require("@emotion/cache"));
|
|
12
11
|
var _react2 = require("@emotion/react");
|
|
@@ -27,9 +26,10 @@ function AppRouterCacheProvider(props) {
|
|
|
27
26
|
} = props;
|
|
28
27
|
const [registry] = React.useState(() => {
|
|
29
28
|
var _options$key;
|
|
30
|
-
const cache = (0, _cache.default)(
|
|
29
|
+
const cache = (0, _cache.default)({
|
|
30
|
+
...options,
|
|
31
31
|
key: (_options$key = options == null ? void 0 : options.key) != null ? _options$key : 'mui'
|
|
32
|
-
})
|
|
32
|
+
});
|
|
33
33
|
cache.compat = true;
|
|
34
34
|
const prevInsert = cache.insert;
|
|
35
35
|
let inserted = [];
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.DocumentHeadTags = DocumentHeadTags;
|
|
8
8
|
exports.createGetInitialProps = createGetInitialProps;
|
|
9
9
|
exports.documentGetInitialProps = documentGetInitialProps;
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
10
|
var React = _interopRequireWildcard(require("react"));
|
|
12
11
|
var _createInstance = _interopRequireDefault(require("@emotion/server/create-instance"));
|
|
13
12
|
var _document = _interopRequireDefault(require("next/document"));
|
|
@@ -75,15 +74,17 @@ async function documentGetInitialProps(ctx, options) {
|
|
|
75
74
|
} = (0, _createInstance.default)(cache);
|
|
76
75
|
return createGetInitialProps([{
|
|
77
76
|
enhanceApp: App => function EnhanceApp(props) {
|
|
78
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(App,
|
|
79
|
-
emotionCache: cache
|
|
80
|
-
|
|
77
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(App, {
|
|
78
|
+
emotionCache: cache,
|
|
79
|
+
...props
|
|
80
|
+
});
|
|
81
81
|
},
|
|
82
82
|
resolveProps: async initialProps => {
|
|
83
83
|
const {
|
|
84
84
|
styles
|
|
85
85
|
} = extractCriticalToChunks(initialProps.html);
|
|
86
|
-
return
|
|
86
|
+
return {
|
|
87
|
+
...initialProps,
|
|
87
88
|
emotionStyleTags: styles.map(style => /*#__PURE__*/(0, _jsxRuntime.jsx)("style", {
|
|
88
89
|
"data-emotion": `${style.key} ${style.ids.join(' ')}`,
|
|
89
90
|
// eslint-disable-next-line react/no-danger
|
|
@@ -91,7 +92,7 @@ async function documentGetInitialProps(ctx, options) {
|
|
|
91
92
|
__html: style.css
|
|
92
93
|
}
|
|
93
94
|
}, style.key))
|
|
94
|
-
}
|
|
95
|
+
};
|
|
95
96
|
}
|
|
96
97
|
}, ...((_options$plugins = options == null ? void 0 : options.plugins) != null ? _options$plugins : [])])(ctx);
|
|
97
98
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material-nextjs",
|
|
3
|
-
"version": "6.0.0-
|
|
3
|
+
"version": "6.0.0-dev.20240529-082515-213b5e33ab",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Collection of utilities for integration between Material UI and Next.js.",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "https://opencollective.com/mui-org"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/runtime": "^7.24.
|
|
27
|
+
"@babel/runtime": "^7.24.6"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@emotion/cache": "^11.11.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
33
33
|
"next": "^13.0.0 || ^14.0.0",
|
|
34
34
|
"react": "^17.0.0 || ^18.0.0",
|
|
35
|
-
"@mui/material": "^6.0.0-
|
|
35
|
+
"@mui/material": "^6.0.0-dev.20240529-082515-213b5e33ab"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
38
38
|
"@types/react": {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import createCache from '@emotion/cache';
|
|
6
5
|
import { CacheProvider as DefaultCacheProvider } from '@emotion/react';
|
|
@@ -18,9 +17,10 @@ export default function AppRouterCacheProvider(props) {
|
|
|
18
17
|
children
|
|
19
18
|
} = props;
|
|
20
19
|
const [registry] = React.useState(() => {
|
|
21
|
-
const cache = createCache(
|
|
20
|
+
const cache = createCache({
|
|
21
|
+
...options,
|
|
22
22
|
key: options?.key ?? 'mui'
|
|
23
|
-
})
|
|
23
|
+
});
|
|
24
24
|
cache.compat = true;
|
|
25
25
|
const prevInsert = cache.insert;
|
|
26
26
|
let inserted = [];
|
|
@@ -3,7 +3,7 @@ import { AppType } from 'next/app';
|
|
|
3
3
|
import { EmotionCache } from '@emotion/react';
|
|
4
4
|
import { DocumentContext, DocumentInitialProps } from 'next/document';
|
|
5
5
|
interface Plugin {
|
|
6
|
-
enhanceApp: (App: React.ComponentType<React.ComponentProps<AppType>>) => (props: any) => JSX.Element;
|
|
6
|
+
enhanceApp: (App: React.ComponentType<React.ComponentProps<AppType>>) => (props: any) => React.JSX.Element;
|
|
7
7
|
resolveProps: (initialProps: DocumentInitialProps) => Promise<DocumentInitialProps>;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
@@ -11,7 +11,7 @@ interface Plugin {
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function createGetInitialProps(plugins: Plugin[]): (ctx: DocumentContext) => Promise<DocumentInitialProps>;
|
|
13
13
|
export interface DocumentHeadTagsProps {
|
|
14
|
-
emotionStyleTags: React.ReactElement[];
|
|
14
|
+
emotionStyleTags: React.ReactElement<any>[];
|
|
15
15
|
}
|
|
16
16
|
export declare function DocumentHeadTags(props: DocumentHeadTagsProps): React.JSX.Element;
|
|
17
17
|
export declare function documentGetInitialProps(ctx: DocumentContext, options?: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
var _meta;
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import createEmotionServer from '@emotion/server/create-instance';
|
|
@@ -63,15 +62,17 @@ export async function documentGetInitialProps(ctx, options) {
|
|
|
63
62
|
} = createEmotionServer(cache);
|
|
64
63
|
return createGetInitialProps([{
|
|
65
64
|
enhanceApp: App => function EnhanceApp(props) {
|
|
66
|
-
return /*#__PURE__*/_jsx(App,
|
|
67
|
-
emotionCache: cache
|
|
68
|
-
|
|
65
|
+
return /*#__PURE__*/_jsx(App, {
|
|
66
|
+
emotionCache: cache,
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
69
|
},
|
|
70
70
|
resolveProps: async initialProps => {
|
|
71
71
|
const {
|
|
72
72
|
styles
|
|
73
73
|
} = extractCriticalToChunks(initialProps.html);
|
|
74
|
-
return
|
|
74
|
+
return {
|
|
75
|
+
...initialProps,
|
|
75
76
|
emotionStyleTags: styles.map(style => /*#__PURE__*/_jsx("style", {
|
|
76
77
|
"data-emotion": `${style.key} ${style.ids.join(' ')}`,
|
|
77
78
|
// eslint-disable-next-line react/no-danger
|
|
@@ -79,7 +80,7 @@ export async function documentGetInitialProps(ctx, options) {
|
|
|
79
80
|
__html: style.css
|
|
80
81
|
}
|
|
81
82
|
}, style.key))
|
|
82
|
-
}
|
|
83
|
+
};
|
|
83
84
|
}
|
|
84
85
|
}, ...(options?.plugins ?? [])])(ctx);
|
|
85
86
|
}
|