@storybook/types 8.1.0-alpha.4 → 8.1.0-alpha.6
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 +14 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2326,9 +2326,19 @@ interface API_SidebarOptions {
|
|
|
2326
2326
|
}
|
|
2327
2327
|
interface OnClearOptions {
|
|
2328
2328
|
/**
|
|
2329
|
-
* True when the user dismissed the notification.
|
|
2329
|
+
* True when the user manually dismissed the notification.
|
|
2330
2330
|
*/
|
|
2331
2331
|
dismissed: boolean;
|
|
2332
|
+
/**
|
|
2333
|
+
* True when the notification timed out after the set duration.
|
|
2334
|
+
*/
|
|
2335
|
+
timeout: boolean;
|
|
2336
|
+
}
|
|
2337
|
+
interface OnClickOptions {
|
|
2338
|
+
/**
|
|
2339
|
+
* Function to dismiss the notification.
|
|
2340
|
+
*/
|
|
2341
|
+
onDismiss: () => void;
|
|
2332
2342
|
}
|
|
2333
2343
|
/**
|
|
2334
2344
|
* @deprecated Use ReactNode for the icon instead.
|
|
@@ -2340,13 +2350,15 @@ interface DeprecatedIconType {
|
|
|
2340
2350
|
}
|
|
2341
2351
|
interface API_Notification {
|
|
2342
2352
|
id: string;
|
|
2343
|
-
link: string;
|
|
2344
2353
|
content: {
|
|
2345
2354
|
headline: string;
|
|
2346
2355
|
subHeadline?: string | any;
|
|
2347
2356
|
};
|
|
2357
|
+
duration?: number;
|
|
2358
|
+
link?: string;
|
|
2348
2359
|
icon?: React.ReactNode | DeprecatedIconType;
|
|
2349
2360
|
onClear?: (options: OnClearOptions) => void;
|
|
2361
|
+
onClick?: (options: OnClickOptions) => void;
|
|
2350
2362
|
}
|
|
2351
2363
|
type API_Versions = Record<string, string>;
|
|
2352
2364
|
type API_SetRefData = Partial<API_ComposedRef & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/types",
|
|
3
|
-
"version": "8.1.0-alpha.
|
|
3
|
+
"version": "8.1.0-alpha.6",
|
|
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.1.0-alpha.
|
|
47
|
+
"@storybook/channels": "8.1.0-alpha.6",
|
|
48
48
|
"@types/express": "^4.7.0",
|
|
49
49
|
"file-system-cache": "2.3.0"
|
|
50
50
|
},
|