Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mui/utils

Package Overview
Dependencies
Maintainers
6
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/utils - npm Package Compare versions

Comparing version 5.7.0 to 5.8.0

ClassNameGenerator/ClassNameGenerator.d.ts

0

chainPropTypes.d.ts
import PropTypes from 'prop-types';
export default function chainPropTypes<A, B>(propType1: PropTypes.Validator<A>, propType2: PropTypes.Validator<B>): PropTypes.Validator<A & B>;

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ export declare function isPlainObject(item: unknown): item is Record<keyof any, unknown>;

import PropTypes from 'prop-types';
declare const elementAcceptingRef: PropTypes.Requireable<unknown>;
export default elementAcceptingRef;
import PropTypes from 'prop-types';
declare const _default: PropTypes.Validator<PropTypes.ReactComponentLike | null | undefined>;
export default _default;

@@ -33,2 +33,7 @@ export { default as chainPropTypes } from './chainPropTypes';

export { default as integerPropType } from './integerPropType';
export { default as internal_resolveProps } from './resolveProps';
export { default as internal_resolveProps } from './resolveProps';
export { default as unstable_composeClasses } from './composeClasses';
export { default as unstable_generateUtilityClass } from './generateUtilityClass';
export * from './generateUtilityClass';
export { default as unstable_generateUtilityClasses } from './generateUtilityClasses';
export { default as unstable_ClassNameGenerator } from './ClassNameGenerator';
import { ValidationMap } from 'prop-types';
export default function exactProp<T>(propTypes: ValidationMap<T>): ValidationMap<T>;

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import * as React from 'react';

export default function getScrollbarSize(doc: Document): number;
export default function HTMLElementType(props: {
[key: string]: unknown;
}, propName: string, componentName: string, location: string, propFullName: string): Error | null;

@@ -34,1 +34,6 @@ export { default as chainPropTypes } from './chainPropTypes';

export { default as internal_resolveProps } from './resolveProps';
export { default as unstable_composeClasses } from './composeClasses';
export { default as unstable_generateUtilityClass } from './generateUtilityClass';
export * from './generateUtilityClass';
export { default as unstable_generateUtilityClasses } from './generateUtilityClasses';
export { default as unstable_ClassNameGenerator } from './ClassNameGenerator';

@@ -1,2 +0,2 @@

/** @license MUI v5.7.0
/** @license MUI v5.8.0
*

@@ -13,2 +13,42 @@ * This source code is licensed under the MIT license found in the

});
var _exportNames = {
chainPropTypes: true,
deepmerge: true,
isPlainObject: true,
elementAcceptingRef: true,
elementTypeAcceptingRef: true,
exactProp: true,
formatMuiErrorMessage: true,
getDisplayName: true,
HTMLElementType: true,
ponyfillGlobal: true,
refType: true,
unstable_capitalize: true,
unstable_createChainedFunction: true,
unstable_debounce: true,
unstable_deprecatedPropType: true,
unstable_isMuiElement: true,
unstable_ownerDocument: true,
unstable_ownerWindow: true,
unstable_requirePropFactory: true,
unstable_setRef: true,
unstable_useEnhancedEffect: true,
unstable_useId: true,
unstable_unsupportedProp: true,
unstable_useControlled: true,
unstable_useEventCallback: true,
unstable_useForkRef: true,
unstable_useIsFocusVisible: true,
unstable_getScrollbarSize: true,
unstable_detectScrollType: true,
unstable_getNormalizedScrollLeft: true,
usePreviousProps: true,
visuallyHidden: true,
integerPropType: true,
internal_resolveProps: true,
unstable_composeClasses: true,
unstable_generateUtilityClass: true,
unstable_generateUtilityClasses: true,
unstable_ClassNameGenerator: true
};
Object.defineProperty(exports, "HTMLElementType", {

@@ -92,2 +132,8 @@ enumerable: true,

});
Object.defineProperty(exports, "unstable_ClassNameGenerator", {
enumerable: true,
get: function () {
return _ClassNameGenerator.default;
}
});
Object.defineProperty(exports, "unstable_capitalize", {

@@ -99,2 +145,8 @@ enumerable: true,

});
Object.defineProperty(exports, "unstable_composeClasses", {
enumerable: true,
get: function () {
return _composeClasses.default;
}
});
Object.defineProperty(exports, "unstable_createChainedFunction", {

@@ -124,2 +176,14 @@ enumerable: true,

});
Object.defineProperty(exports, "unstable_generateUtilityClass", {
enumerable: true,
get: function () {
return _generateUtilityClass.default;
}
});
Object.defineProperty(exports, "unstable_generateUtilityClasses", {
enumerable: true,
get: function () {
return _generateUtilityClasses.default;
}
});
Object.defineProperty(exports, "unstable_getNormalizedScrollLeft", {

@@ -286,4 +350,24 @@ enumerable: true,

var _composeClasses = _interopRequireDefault(require("./composeClasses"));
var _generateUtilityClass = _interopRequireWildcard(require("./generateUtilityClass"));
Object.keys(_generateUtilityClass).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _generateUtilityClass[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _generateUtilityClass[key];
}
});
});
var _generateUtilityClasses = _interopRequireDefault(require("./generateUtilityClasses"));
var _ClassNameGenerator = _interopRequireDefault(require("./ClassNameGenerator"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

@@ -0,0 +0,0 @@ export function getTypeByValue(value: any): any;

export default function isMuiElement(element: any, muiNames: readonly string[]): boolean;

9

legacy/index.js

@@ -1,2 +0,2 @@

/** @license MUI v5.7.0
/** @license MUI v5.8.0
*

@@ -38,2 +38,7 @@ * This source code is licensed under the MIT license found in the

export { default as integerPropType } from './integerPropType';
export { default as internal_resolveProps } from './resolveProps';
export { default as internal_resolveProps } from './resolveProps';
export { default as unstable_composeClasses } from './composeClasses';
export { default as unstable_generateUtilityClass } from './generateUtilityClass';
export * from './generateUtilityClass';
export { default as unstable_generateUtilityClasses } from './generateUtilityClasses';
export { default as unstable_ClassNameGenerator } from './ClassNameGenerator';

@@ -1,2 +0,2 @@

/** @license MUI v5.7.0
/** @license MUI v5.8.0
*

@@ -38,2 +38,7 @@ * This source code is licensed under the MIT license found in the

export { default as integerPropType } from './integerPropType';
export { default as internal_resolveProps } from './resolveProps';
export { default as internal_resolveProps } from './resolveProps';
export { default as unstable_composeClasses } from './composeClasses';
export { default as unstable_generateUtilityClass } from './generateUtilityClass';
export * from './generateUtilityClass';
export { default as unstable_generateUtilityClasses } from './generateUtilityClasses';
export { default as unstable_ClassNameGenerator } from './ClassNameGenerator';
export default function ownerDocument(node: Node | null | undefined): Document;
export default function ownerWindow(node: Node | undefined): Window;
{
"name": "@mui/utils",
"version": "5.7.0",
"version": "5.8.0",
"private": false,

@@ -5,0 +5,0 @@ "author": "MUI Team",

declare const _default: any;
export default _default;
import PropTypes from 'prop-types';
declare const refType: PropTypes.Requireable<object>;
export default refType;

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ /**

import * as React from 'react';
export default function useForkRef<InstanceA, InstanceB>(refA: React.Ref<InstanceA> | null | undefined, refB: React.Ref<InstanceB> | null | undefined): React.Ref<InstanceA & InstanceB> | null;

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import * as React from 'react';

declare const usePreviousProps: (value: object) => object;
export default usePreviousProps;
declare const visuallyHidden: import('react').CSSProperties;
export default visuallyHidden;

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