@storybook/types 8.1.0-beta.0 → 8.1.0
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 +4 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2204,7 +2204,7 @@ interface API_BaseEntry {
|
|
|
2204
2204
|
depth: number;
|
|
2205
2205
|
name: string;
|
|
2206
2206
|
refId?: string;
|
|
2207
|
-
renderLabel?: (item: API_BaseEntry) => any;
|
|
2207
|
+
renderLabel?: (item: API_BaseEntry, api: any) => any;
|
|
2208
2208
|
}
|
|
2209
2209
|
interface API_RootEntry extends API_BaseEntry {
|
|
2210
2210
|
type: 'root';
|
|
@@ -2388,7 +2388,7 @@ interface API_Provider<API> {
|
|
|
2388
2388
|
renderPreview?: API_IframeRenderer;
|
|
2389
2389
|
handleAPI(api: API): void;
|
|
2390
2390
|
getConfig(): {
|
|
2391
|
-
sidebar?: API_SidebarOptions
|
|
2391
|
+
sidebar?: API_SidebarOptions<API>;
|
|
2392
2392
|
theme?: ThemeVars;
|
|
2393
2393
|
StoryMapper?: API_StoryMapper;
|
|
2394
2394
|
[k: string]: any;
|
|
@@ -2436,11 +2436,11 @@ interface API_UI {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
type API_PanelPositions = 'bottom' | 'right';
|
|
2438
2438
|
type API_ActiveTabsType = 'sidebar' | 'canvas' | 'addons';
|
|
2439
|
-
interface API_SidebarOptions {
|
|
2439
|
+
interface API_SidebarOptions<API = any> {
|
|
2440
2440
|
showRoots?: boolean;
|
|
2441
2441
|
filters?: Record<string, API_FilterFunction>;
|
|
2442
2442
|
collapsedRoots?: string[];
|
|
2443
|
-
renderLabel?: (item: API_HashEntry) => any;
|
|
2443
|
+
renderLabel?: (item: API_HashEntry, api: API) => any;
|
|
2444
2444
|
}
|
|
2445
2445
|
interface OnClearOptions {
|
|
2446
2446
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/types",
|
|
3
|
-
"version": "8.1.0
|
|
3
|
+
"version": "8.1.0",
|
|
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
|
|
47
|
+
"@storybook/channels": "8.1.0",
|
|
48
48
|
"@types/express": "^4.7.0",
|
|
49
49
|
"file-system-cache": "2.3.0"
|
|
50
50
|
},
|