@mui/private-theming
Advanced tools
Comparing version 6.0.0-dev.20240529-082515-213b5e33ab to 6.0.0-rc.0
/** | ||
* @mui/private-theming v6.0.0-dev.20240529-082515-213b5e33ab | ||
* @mui/private-theming v6.0.0-rc.0 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MIT |
/** | ||
* @mui/private-theming v6.0.0-dev.20240529-082515-213b5e33ab | ||
* @mui/private-theming v6.0.0-rc.0 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MIT |
@@ -43,3 +43,5 @@ import * as React from 'react'; | ||
const theme = React.useMemo(() => { | ||
const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme); | ||
const output = outerTheme === null ? { | ||
...localTheme | ||
} : mergeOuterLocalTheme(outerTheme, localTheme); | ||
if (output != null) { | ||
@@ -46,0 +48,0 @@ output[nested] = outerTheme !== null; |
@@ -6,3 +6,4 @@ import * as React from 'react'; | ||
if (process.env.NODE_ENV !== 'production') { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
// TODO: uncomment once we enable eslint-plugin-react-compiler eslint-disable-next-line react-compiler/react-compiler | ||
// eslint-disable-next-line react-hooks/rules-of-hooks -- It's not required to run React.useDebugValue in production | ||
React.useDebugValue(theme); | ||
@@ -9,0 +10,0 @@ } |
/** | ||
* @mui/private-theming v6.0.0-dev.20240529-082515-213b5e33ab | ||
* @mui/private-theming v6.0.0-rc.0 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MIT |
@@ -51,3 +51,5 @@ "use strict"; | ||
const theme = React.useMemo(() => { | ||
const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme); | ||
const output = outerTheme === null ? { | ||
...localTheme | ||
} : mergeOuterLocalTheme(outerTheme, localTheme); | ||
if (output != null) { | ||
@@ -54,0 +56,0 @@ output[_nested.default] = outerTheme !== null; |
@@ -15,3 +15,4 @@ "use strict"; | ||
if (process.env.NODE_ENV !== 'production') { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
// TODO: uncomment once we enable eslint-plugin-react-compiler eslint-disable-next-line react-compiler/react-compiler | ||
// eslint-disable-next-line react-hooks/rules-of-hooks -- It's not required to run React.useDebugValue in production | ||
React.useDebugValue(theme); | ||
@@ -18,0 +19,0 @@ } |
{ | ||
"name": "@mui/private-theming", | ||
"version": "6.0.0-dev.20240529-082515-213b5e33ab", | ||
"version": "6.0.0-rc.0", | ||
"private": false, | ||
@@ -29,9 +29,9 @@ "author": "MUI Team", | ||
"dependencies": { | ||
"@babel/runtime": "^7.24.6", | ||
"@babel/runtime": "^7.25.0", | ||
"prop-types": "^15.8.1", | ||
"@mui/utils": "^6.0.0-dev.20240529-082515-213b5e33ab" | ||
"@mui/utils": "6.0.0-rc.0" | ||
}, | ||
"peerDependencies": { | ||
"@types/react": "^17.0.0 || ^18.0.0", | ||
"react": "^17.0.0 || ^18.0.0" | ||
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", | ||
"react": "^17.0.0 || ^18.0.0 || ^19.0.0" | ||
}, | ||
@@ -49,3 +49,3 @@ "peerDependenciesMeta": { | ||
"engines": { | ||
"node": ">=12.0.0" | ||
"node": ">=14.0.0" | ||
}, | ||
@@ -52,0 +52,0 @@ "module": "./index.js", |
@@ -43,3 +43,5 @@ import * as React from 'react'; | ||
const theme = React.useMemo(() => { | ||
const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme); | ||
const output = outerTheme === null ? { | ||
...localTheme | ||
} : mergeOuterLocalTheme(outerTheme, localTheme); | ||
if (output != null) { | ||
@@ -46,0 +48,0 @@ output[nested] = outerTheme !== null; |
@@ -6,3 +6,4 @@ import * as React from 'react'; | ||
if (process.env.NODE_ENV !== 'production') { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
// TODO: uncomment once we enable eslint-plugin-react-compiler eslint-disable-next-line react-compiler/react-compiler | ||
// eslint-disable-next-line react-hooks/rules-of-hooks -- It's not required to run React.useDebugValue in production | ||
React.useDebugValue(theme); | ||
@@ -9,0 +10,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
873201
395
+ Added@mui/utils@6.0.0-rc.0(transitive)
- Removed@mui/utils@6.1.6(transitive)
Updated@babel/runtime@^7.25.0
Updated@mui/utils@6.0.0-rc.0