@mui/utils 5.16.8 → 5.16.12

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,54 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v5.16.12
4
+
5
+ <!-- generated comparing v5.16.11..v5.x -->
6
+
7
+ _Dec 16, 2024_
8
+
9
+ Material UI v5 is now compatible with React 19 (#44720) @DiegoAndai
10
+
11
+ ### Core
12
+
13
+ - Bump react 19 in v5 (#44720) @DiegoAndai
14
+ - Add `latest-v5` tag to v5 releases (#44757) @DiegoAndai
15
+
16
+ All contributors of this release in alphabetical order: @DiegoAndai
17
+
18
+ ## 5.16.11
19
+
20
+ <!-- generated comparing v5.16.9..v5.x -->
21
+
22
+ _Dec 11, 2024_
23
+
24
+ A big thanks to the contributor who made this release possible.
25
+
26
+ ### Core
27
+
28
+ - Bump pnpm to 9.14.4 in v5 (#44705) @DiegoAndai
29
+ - Fix UMD examples (#44706) @DiegoAndai
30
+ - [typescript] Rescue missing backports v5 (#44712) @DiegoAndai
31
+
32
+ All contributors of this release in alphabetical order: @DiegoAndai
33
+
34
+ ## 5.16.9
35
+
36
+ <!-- generated comparing v5.16.8..v5.x -->
37
+
38
+ _Dec 3, 2024_
39
+
40
+ A big thanks to the 2 contributors who made this release possible.
41
+
42
+ ### `@mui/material@5.16.9`
43
+
44
+ - [Tabs] Cherry pick `ScrollbarSize` ref being overridden fix (#44595) @DiegoAndai
45
+
46
+ ### Core
47
+
48
+ - Ignore browserslist and remove tag latest (#44589) @siriwatknp
49
+
50
+ All contributors of this release in alphabetical order: @DiegoAndai, @siriwatknp
51
+
3
52
  ## 5.16.8
4
53
 
5
54
  <!-- generated comparing v5.16.7..v5.x -->
@@ -5,4 +5,4 @@ import * as React from 'react';
5
5
  *
6
6
  * @param children the children
7
7
  */
8
- export default function getValidReactChildren(children: React.ReactNode): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
8
+ export default function getValidReactChildren(children: React.ReactNode): React.ReactElement<unknown>[];
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/utils v5.16.8
2
+ * @mui/utils v5.16.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -2,5 +2,5 @@ import * as React from 'react';
2
2
  /**
3
3
  * Determines if a given element is a DOM element name (i.e. not a React component).
4
4
  */
5
- declare function isHostComponent(element: React.ElementType): boolean;
5
+ declare function isHostComponent(element: React.ElementType): element is "symbol" | "object" | "center" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "clipPath" | "filter" | "menuitem" | "mask" | "marker" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "sup" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view";
6
6
  export default isHostComponent;
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/utils v5.16.8
2
+ * @mui/utils v5.16.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/utils v5.16.8
2
+ * @mui/utils v5.16.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/utils",
3
- "version": "5.16.8",
3
+ "version": "5.16.12",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Utility functions for React components.",
@@ -30,7 +30,7 @@
30
30
  "@types/prop-types": "^15.7.12",
31
31
  "clsx": "^2.1.1",
32
32
  "prop-types": "^15.8.1",
33
- "react-is": "^18.3.1",
33
+ "react-is": "^19.0.0",
34
34
  "@mui/types": "^7.2.15"
35
35
  },
36
36
  "peerDependencies": {
@@ -6,4 +6,4 @@ import * as React from 'react';
6
6
  * @usage
7
7
  * const ref = useLazyRef(sortColumns, columns)
8
8
  */
9
- export default function useLazyRef<T, U>(init: (arg?: U) => T, initArg?: U): React.MutableRefObject<T>;
9
+ export default function useLazyRef<T, U>(init: (arg?: U) => T, initArg?: U): React.RefObject<T>;
@@ -31,10 +31,10 @@ export type UseSlotPropsResult<ElementType extends React.ElementType, SlotProps,
31
31
  * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.
32
32
  */
33
33
  declare function useSlotProps<ElementType extends React.ElementType, SlotProps, AdditionalProps, OwnerState>(parameters: UseSlotPropsParameters<ElementType, SlotProps, object, WithCommonProps<Record<string, any>>, AdditionalProps, OwnerState>): import("@mui/types").Simplify<import("@mui/types").Simplify<SlotProps & object & AdditionalProps & {
34
- className?: string | undefined;
35
- style?: React.CSSProperties | undefined;
34
+ className?: string;
35
+ style?: React.CSSProperties;
36
36
  }> & {
37
- ref: ((instance: any) => void) | null;
37
+ ref: ((instance: any | null) => void) | null;
38
38
  } & {
39
39
  ownerState: ElementType extends React.ComponentType<any> ? OwnerState : ElementType extends keyof React.JSX.IntrinsicElements ? undefined : OwnerState | undefined;
40
40
  }>;