Socket
Socket
Sign inDemoInstall

@mui/styles

Package Overview
Dependencies
Maintainers
0
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/styles - npm Package Compare versions

Comparing version 6.0.0-beta.5 to 6.0.0-beta.6

2

index.js
/**
* @mui/styles v6.0.0-beta.5
* @mui/styles v6.0.0-beta.6
*

@@ -4,0 +4,0 @@ * @license MIT

@@ -155,2 +155,3 @@ import * as React from 'react';

// Store "generation" key. Just returns a new object every time
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
const currentKey = React.useMemo(() => ({}), values); // eslint-disable-line react-hooks/exhaustive-deps

@@ -219,3 +220,4 @@

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 -- process.env never changes
React.useDebugValue(classes);

@@ -222,0 +224,0 @@ }

/**
* @mui/styles v6.0.0-beta.5
* @mui/styles v6.0.0-beta.6
*

@@ -4,0 +4,0 @@ * @license MIT

@@ -155,2 +155,3 @@ import * as React from 'react';

// Store "generation" key. Just returns a new object every time
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
const currentKey = React.useMemo(() => ({}), values); // eslint-disable-line react-hooks/exhaustive-deps

@@ -219,3 +220,4 @@

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 -- process.env never changes
React.useDebugValue(classes);

@@ -222,0 +224,0 @@ }

@@ -80,2 +80,3 @@ import * as React from 'react';

const head = document.head;
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- injectFirstNode is called inside callback
injectFirstNode = document.createComment('mui-inject-first');

@@ -82,0 +83,0 @@ head.insertBefore(injectFirstNode, head.firstChild);

@@ -58,2 +58,3 @@ import * as React from 'react';

// name and withTheme are invariant in the outer scope
// 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

@@ -60,0 +61,0 @@ theme = useTheme() || defaultTheme;

/**
* @mui/styles v6.0.0-beta.5
* @mui/styles v6.0.0-beta.6
*

@@ -4,0 +4,0 @@ * @license MIT

@@ -164,2 +164,3 @@ "use strict";

// Store "generation" key. Just returns a new object every time
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
const currentKey = React.useMemo(() => ({}), values); // eslint-disable-line react-hooks/exhaustive-deps

@@ -228,3 +229,4 @@

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 -- process.env never changes
React.useDebugValue(classes);

@@ -231,0 +233,0 @@ }

@@ -90,2 +90,3 @@ "use strict";

const head = document.head;
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- injectFirstNode is called inside callback
injectFirstNode = document.createComment('mui-inject-first');

@@ -92,0 +93,0 @@ head.insertBefore(injectFirstNode, head.firstChild);

@@ -10,5 +10,4 @@ "use strict";

function useTheme() {
var _privateTheme$$$mater;
const privateTheme = (0, _useTheme.default)();
return (_privateTheme$$$mater = privateTheme == null ? void 0 : privateTheme.$$material) != null ? _privateTheme$$$mater : privateTheme;
return privateTheme?.$$material ?? privateTheme;
}

@@ -66,2 +66,3 @@ "use strict";

// name and withTheme are invariant in the outer scope
// 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

@@ -68,0 +69,0 @@ theme = (0, _useTheme.default)() || defaultTheme;

{
"name": "@mui/styles",
"version": "6.0.0-beta.5",
"version": "6.0.0-beta.6",
"private": false,

@@ -43,9 +43,9 @@ "author": "MUI Team",

"prop-types": "^15.8.1",
"@mui/types": "^7.2.14",
"@mui/utils": "6.0.0-beta.5",
"@mui/private-theming": "6.0.0-beta.5"
"@mui/utils": "6.0.0-beta.6",
"@mui/private-theming": "6.0.0-beta.6",
"@mui/types": "^7.2.15"
},
"peerDependencies": {
"@types/react": "^17.0.0 || ^18.0.0",
"react": "^17.0.0"
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
},

@@ -52,0 +52,0 @@ "peerDependenciesMeta": {

@@ -80,2 +80,3 @@ import * as React from 'react';

const head = document.head;
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- injectFirstNode is called inside callback
injectFirstNode = document.createComment('mui-inject-first');

@@ -82,0 +83,0 @@ head.insertBefore(injectFirstNode, head.firstChild);

@@ -58,2 +58,3 @@ import * as React from 'react';

// name and withTheme are invariant in the outer scope
// 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

@@ -60,0 +61,0 @@ theme = useTheme() || defaultTheme;

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc