@mui/toolpad-utils
Advanced tools
Comparing version 0.1.36 to 0.1.37
@@ -24,1 +24,2 @@ import * as React from 'react'; | ||
export declare function useTraceUpdates<P extends object>(prefix: string, props: P): void; | ||
export default function getComponentDisplayName(Component: React.ComponentType<any> | string): string; |
@@ -78,5 +78,12 @@ import { | ||
} | ||
function getComponentDisplayName(Component) { | ||
if (typeof Component === "string") { | ||
return Component || "Unknown"; | ||
} | ||
return Component.displayName || Component.name; | ||
} | ||
export { | ||
createGlobalState, | ||
createProvidedContext, | ||
getComponentDisplayName as default, | ||
interleave, | ||
@@ -83,0 +90,0 @@ useAssertedContext, |
{ | ||
"name": "@mui/toolpad-utils", | ||
"version": "0.1.36", | ||
"version": "0.1.37", | ||
"description": "Build MUI apps quickly", | ||
@@ -58,3 +58,3 @@ "author": "MUI Toolpad team", | ||
"react-is": "18.2.0", | ||
"yaml": "2.3.3", | ||
"yaml": "2.3.4", | ||
"yaml-diff-patch": "2.0.0" | ||
@@ -65,6 +65,6 @@ }, | ||
"@types/prettier": "2.7.3", | ||
"@types/react": "18.2.33", | ||
"@types/react": "18.2.34", | ||
"@types/react-is": "18.2.3" | ||
}, | ||
"gitHead": "7cf5a9449fd7a7416279c8cb957e9ad2727c157d" | ||
"gitHead": "6425acc7aee82da33674108a8e346952f3aa7f22" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
243836
2856
+ Addedyaml@2.3.4(transitive)
- Removedyaml@2.3.3(transitive)
Updatedyaml@2.3.4