Socket
Socket
Sign inDemoInstall

@mui/utils

Package Overview
Dependencies
Maintainers
6
Versions
110
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.11.1 to 5.11.2

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 @@ declare const ClassNameGenerator: {

export { default } from './ClassNameGenerator';
export default function composeClasses<ClassKey extends string>(slots: Record<ClassKey, ReadonlyArray<string | false | undefined | null>>, getUtilityClass: (slot: string) => string, classes: Record<string, string> | undefined): Record<ClassKey, string>;
export { default } from './composeClasses';

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

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

12

deepmerge.js

@@ -13,2 +13,12 @@ "use strict";

}
function deepClone(source) {
if (!isPlainObject(source)) {
return source;
}
const output = {};
Object.keys(source).forEach(key => {
output[key] = deepClone(source[key]);
});
return output;
}
function deepmerge(target, source, options = {

@@ -27,2 +37,4 @@ clone: true

output[key] = deepmerge(target[key], source[key], options);
} else if (options.clone) {
output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
} else {

@@ -29,0 +41,0 @@ output[key] = source[key];

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;

@@ -5,2 +5,12 @@ import _extends from "@babel/runtime/helpers/esm/extends";

}
function deepClone(source) {
if (!isPlainObject(source)) {
return source;
}
const output = {};
Object.keys(source).forEach(key => {
output[key] = deepClone(source[key]);
});
return output;
}
export default function deepmerge(target, source, options = {

@@ -19,2 +29,4 @@ clone: true

output[key] = deepmerge(target[key], source[key], options);
} else if (options.clone) {
output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
} else {

@@ -21,0 +33,0 @@ output[key] = source[key];

import { ValidationMap } from 'prop-types';
export default function exactProp<T>(propTypes: ValidationMap<T>): ValidationMap<T>;

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

export type GlobalStateSlot = 'active' | 'checked' | 'completed' | 'disabled' | 'error' | 'expanded' | 'focused' | 'focusVisible' | 'required' | 'selected';
export default function generateUtilityClass(componentName: string, slot: string, globalStatePrefix?: string): string;
export { default } from './generateUtilityClass';
export * from './generateUtilityClass';
export default function generateUtilityClasses<T extends string>(componentName: string, slots: T[], globalStatePrefix?: string): Record<T, string>;
export { default } from './generateUtilityClasses';

@@ -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;

@@ -0,0 +0,0 @@ export { default as chainPropTypes } from './chainPropTypes';

2

index.js

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

/** @license MUI v5.11.1
/** @license MUI v5.11.2
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

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

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

@@ -6,2 +6,12 @@ import _extends from "@babel/runtime/helpers/esm/extends";

}
function deepClone(source) {
if (!isPlainObject(source)) {
return source;
}
var output = {};
Object.keys(source).forEach(function (key) {
output[key] = deepClone(source[key]);
});
return output;
}
export default function deepmerge(target, source) {

@@ -21,2 +31,4 @@ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {

output[key] = deepmerge(target[key], source[key], options);
} else if (options.clone) {
output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
} else {

@@ -23,0 +35,0 @@ output[key] = source[key];

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

/** @license MUI v5.11.1
/** @license MUI v5.11.2
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -5,2 +5,12 @@ import _extends from "@babel/runtime/helpers/esm/extends";

}
function deepClone(source) {
if (!isPlainObject(source)) {
return source;
}
const output = {};
Object.keys(source).forEach(key => {
output[key] = deepClone(source[key]);
});
return output;
}
export default function deepmerge(target, source, options = {

@@ -19,2 +29,4 @@ clone: true

output[key] = deepmerge(target[key], source[key], options);
} else if (options.clone) {
output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
} else {

@@ -21,0 +33,0 @@ output[key] = source[key];

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

/** @license MUI v5.11.1
/** @license MUI v5.11.2
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

export default function ownerDocument(node: Node | null | undefined): Document;
export default function ownerWindow(node: Node | undefined): Window;
{
"name": "@mui/utils",
"version": "5.11.1",
"version": "5.11.2",
"private": false,

@@ -32,3 +32,3 @@ "author": "MUI Team",

"dependencies": {
"@babel/runtime": "^7.20.6",
"@babel/runtime": "^7.20.7",
"@types/prop-types": "^15.7.5",

@@ -35,0 +35,0 @@ "@types/react-is": "^16.7.1 || ^17.0.0",

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<Instance>(...refs: Array<React.Ref<Instance> | undefined>): React.RefCallback<Instance> | 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