@mui/styled-engine 7.1.1 → 7.2.0
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,86 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 7.2.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v7.1.1..master -->
|
|
6
|
+
|
|
7
|
+
_Jun 26, 2025_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 17 contributors who made this release possible. Here are the highlights ✨:
|
|
10
|
+
|
|
11
|
+
- ⚡️ Added `modularCssLayers` theme option for splitting styles into multiple CSS layers (#46001) @siriwatknp.
|
|
12
|
+
- 📖 Added example for using Material UI with React Router v7 (#46406) @siriwatknp.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@7.2.0`
|
|
15
|
+
|
|
16
|
+
- [Backdrop] Fix handling of `component` prop (#46269) @sai6855
|
|
17
|
+
- [Chip] Explicitly define line-height (#46260) @DiegoAndai
|
|
18
|
+
- [Chip] Fix handling on event handlers (#46263) @sai6855
|
|
19
|
+
- [OutlinedInput][Input] Deprecate composed classes (#46316) @sai6855
|
|
20
|
+
- [Select] Pass MenuProps.slotProps.list alongside MenuListProps (#46274) @scousino
|
|
21
|
+
- [l10] Enable `labelDisplayedRows` translation for Romanian (#46377) @dhu-redwoodtech
|
|
22
|
+
- Skip generating `modularCssLayers` CSS var (#46329) @siriwatknp
|
|
23
|
+
|
|
24
|
+
### `@mui/system@7.2.0`
|
|
25
|
+
|
|
26
|
+
- Add `modularCssLayers` theme flag to split styles into multiple CSS layers (#46001) @siriwatknp
|
|
27
|
+
|
|
28
|
+
### `@mui/styled-engine@7.2.0`
|
|
29
|
+
|
|
30
|
+
- Do not reuse the emotion cache across SSR requests (#46276) @robbtraister
|
|
31
|
+
|
|
32
|
+
### `@mui/codemod@7.2.0`
|
|
33
|
+
|
|
34
|
+
- [Dialog] Add codemod for deprecated props (#46328) @sai6855
|
|
35
|
+
|
|
36
|
+
### Docs
|
|
37
|
+
|
|
38
|
+
- Don't forward `hasAiSuggestion` (#46415) @bharatkashyap
|
|
39
|
+
- Add introduction to MCP (#46224) @bharatkashyap
|
|
40
|
+
- Fallback for searchbar during SSR (#46364) @Janpot
|
|
41
|
+
- Update InitColorSchemeScript options to match colorSchemeSelector (#46302) @humble-barnacle001
|
|
42
|
+
- Add `ListItemButton` to make the deprecation clear (#46356) @siriwatknp
|
|
43
|
+
- Remove "Unstyled" section from component docs (#46272) @mapache-salvaje
|
|
44
|
+
- Add Testing section to Rating component doc (#46268) @0210shivam
|
|
45
|
+
- Fix fade modal demo (#46271) @brijeshb42
|
|
46
|
+
- [ai] Add suggestions to edit with MUI Chat (#46309) @bharatkashyap
|
|
47
|
+
- [Dialog] Fix form dialog uses ARIA roles on incompatible elements (#46307) @ZeeshanTamboli
|
|
48
|
+
- [Menu] Fix dark mode styling of grouped header demo (#46317) @sai6855
|
|
49
|
+
- [TextField] Removed type="number" demos (#46314) @KirankumarAmbati
|
|
50
|
+
- [examples] Add `material-ui-react-router-ts` example (#46406) @siriwatknp
|
|
51
|
+
|
|
52
|
+
### Core
|
|
53
|
+
|
|
54
|
+
- pnpm docs:sync-team (3641a0b) @oliviertassinari
|
|
55
|
+
- Add cross-env to eslint script (#46358) @ZeeshanTamboli
|
|
56
|
+
- Support merging of className and style from theme (#45975) @sai6855
|
|
57
|
+
- [code-infra] Create bundle size package (#45911) @Janpot
|
|
58
|
+
- [docs-infra] Add a script to generate Material UI `llms.txt` and docs markdown. (#46308) @siriwatknp
|
|
59
|
+
- [docs-infra] Fix stackblitz for js projects (#46220) @Janpot
|
|
60
|
+
- [infra] Add emotion as external for bundle monitor (#46372) @Janpot
|
|
61
|
+
- [infra] Create update PR on every canary publish for internal packages (#46367) @Janpot
|
|
62
|
+
- [infra] Remove deprecated esmExternals (#46365) @Janpot
|
|
63
|
+
- [infra] Support project-specific changelog in build scripts (#46425) @michaldudak
|
|
64
|
+
- [toolpad][website] Remove references to Toolpad (#46311) @prakhargupta1
|
|
65
|
+
|
|
66
|
+
All contributors of this release in alphabetical order: @0210shivam, @bharatkashyap, @brijeshb42, @dhu-redwoodtech, @DiegoAndai, @humble-barnacle001, @Janpot, @KirankumarAmbati, @mapache-salvaje, @michaldudak, @oliviertassinari, @prakhargupta1, @robbtraister, @sai6855, @scousino, @siriwatknp, @ZeeshanTamboli
|
|
67
|
+
|
|
68
|
+
## 7.1.2
|
|
69
|
+
|
|
70
|
+
_Jun 18, 2025_
|
|
71
|
+
|
|
72
|
+
A big thanks to the 2 contributors who made this release possible.
|
|
73
|
+
|
|
74
|
+
### `@mui/material@7.1.2`
|
|
75
|
+
|
|
76
|
+
- [Chip] Fix handling on event handlers (#46263) @sai6855
|
|
77
|
+
|
|
78
|
+
### Docs
|
|
79
|
+
|
|
80
|
+
- Fix fade modal demo (#46271) @brijeshb42
|
|
81
|
+
|
|
82
|
+
All contributors of this release in alphabetical order: @brijeshb42, @sai6855
|
|
83
|
+
|
|
3
84
|
## 7.1.1
|
|
4
85
|
|
|
5
86
|
<!-- generated comparing v7.1.0..master -->
|
|
@@ -90,7 +90,7 @@ function getCache(injectFirst, enableCssLayer) {
|
|
|
90
90
|
if (enableCssLayer) {
|
|
91
91
|
const prevInsert = emotionCache.insert;
|
|
92
92
|
emotionCache.insert = (...args) => {
|
|
93
|
-
if (!args[1].styles.
|
|
93
|
+
if (!args[1].styles.match(/^@layer\s+[^{]*$/)) {
|
|
94
94
|
// avoid nested @layer
|
|
95
95
|
args[1].styles = `@layer mui {${args[1].styles}}`;
|
|
96
96
|
}
|
|
@@ -109,7 +109,7 @@ function StyledEngineProvider(props) {
|
|
|
109
109
|
} = props;
|
|
110
110
|
const cache = React.useMemo(() => {
|
|
111
111
|
const cacheKey = `${injectFirst}-${enableCssLayer}`;
|
|
112
|
-
if (cacheMap.has(cacheKey)) {
|
|
112
|
+
if (typeof document === 'object' && cacheMap.has(cacheKey)) {
|
|
113
113
|
return cacheMap.get(cacheKey);
|
|
114
114
|
}
|
|
115
115
|
const fresh = getCache(injectFirst, enableCssLayer);
|
|
@@ -83,7 +83,7 @@ function getCache(injectFirst, enableCssLayer) {
|
|
|
83
83
|
if (enableCssLayer) {
|
|
84
84
|
const prevInsert = emotionCache.insert;
|
|
85
85
|
emotionCache.insert = (...args) => {
|
|
86
|
-
if (!args[1].styles.
|
|
86
|
+
if (!args[1].styles.match(/^@layer\s+[^{]*$/)) {
|
|
87
87
|
// avoid nested @layer
|
|
88
88
|
args[1].styles = `@layer mui {${args[1].styles}}`;
|
|
89
89
|
}
|
|
@@ -102,7 +102,7 @@ export default function StyledEngineProvider(props) {
|
|
|
102
102
|
} = props;
|
|
103
103
|
const cache = React.useMemo(() => {
|
|
104
104
|
const cacheKey = `${injectFirst}-${enableCssLayer}`;
|
|
105
|
-
if (cacheMap.has(cacheKey)) {
|
|
105
|
+
if (typeof document === 'object' && cacheMap.has(cacheKey)) {
|
|
106
106
|
return cacheMap.get(cacheKey);
|
|
107
107
|
}
|
|
108
108
|
const fresh = getCache(injectFirst, enableCssLayer);
|
package/esm/index.js
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/styled-engine",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "styled() API wrapper package for emotion.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"url": "https://opencollective.com/mui-org"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@babel/runtime": "^7.27.
|
|
29
|
-
"@emotion/cache": "^11.
|
|
28
|
+
"@babel/runtime": "^7.27.6",
|
|
29
|
+
"@emotion/cache": "^11.14.0",
|
|
30
30
|
"@emotion/serialize": "^1.3.3",
|
|
31
31
|
"@emotion/sheet": "^1.4.0",
|
|
32
32
|
"csstype": "^3.1.3",
|