@storybook/types 8.0.2 → 8.0.3
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/dist/index.d.ts +9 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2330,6 +2330,14 @@ interface OnClearOptions {
|
|
|
2330
2330
|
*/
|
|
2331
2331
|
dismissed: boolean;
|
|
2332
2332
|
}
|
|
2333
|
+
/**
|
|
2334
|
+
* @deprecated Use ReactNode for the icon instead.
|
|
2335
|
+
* @see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#icons-is-deprecated
|
|
2336
|
+
*/
|
|
2337
|
+
interface DeprecatedIconType {
|
|
2338
|
+
name: string;
|
|
2339
|
+
color?: string;
|
|
2340
|
+
}
|
|
2333
2341
|
interface API_Notification {
|
|
2334
2342
|
id: string;
|
|
2335
2343
|
link: string;
|
|
@@ -2337,10 +2345,7 @@ interface API_Notification {
|
|
|
2337
2345
|
headline: string;
|
|
2338
2346
|
subHeadline?: string | any;
|
|
2339
2347
|
};
|
|
2340
|
-
icon?:
|
|
2341
|
-
name: string;
|
|
2342
|
-
color?: string;
|
|
2343
|
-
};
|
|
2348
|
+
icon?: React.ReactNode | DeprecatedIconType;
|
|
2344
2349
|
onClear?: (options: OnClearOptions) => void;
|
|
2345
2350
|
}
|
|
2346
2351
|
type API_Versions = Record<string, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/types",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"description": "Core Storybook TS Types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@storybook/channels": "8.0.
|
|
47
|
+
"@storybook/channels": "8.0.3",
|
|
48
48
|
"@types/express": "^4.7.0",
|
|
49
49
|
"file-system-cache": "2.3.0"
|
|
50
50
|
},
|