storybook 10.2.0-alpha.9 → 10.2.0-beta.1
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/_browser-chunks/{Color-E5XDEOX4.js → Color-XESOIGZP.js} +57 -3
- package/dist/_browser-chunks/chunk-AFVOZMXQ.js +23 -0
- package/dist/_browser-chunks/{chunk-3PJE6VLG.js → chunk-ASKQZAOS.js} +1 -12
- package/dist/_browser-chunks/chunk-IYCKG66Y.js +171 -0
- package/dist/_browser-chunks/chunk-LCHBOIHN.js +64 -0
- package/dist/_browser-chunks/{chunk-IPA5A322.js → chunk-MEXTPDJG.js} +1 -1
- package/dist/_browser-chunks/{chunk-54PNNATT.js → chunk-NQJGOFZV.js} +18 -1
- package/dist/_browser-chunks/{chunk-VUZYLZ4B.js → chunk-QOXZ7W26.js} +31 -15
- package/dist/_browser-chunks/{chunk-LOTN4ZCW.js → chunk-SI6AKD4S.js} +2 -2
- package/dist/_browser-chunks/chunk-YK43Z22A.js +263 -0
- package/dist/_node-chunks/{builder-manager-FTCODGJP.js → builder-manager-IRBMORML.js} +15 -12
- package/dist/_node-chunks/camelcase-JM3BJBI7.js +62 -0
- package/dist/_node-chunks/{chunk-RF3L36MK.js → chunk-2SAOTVFT.js} +125 -73
- package/dist/_node-chunks/chunk-34APMFOU.js +23 -0
- package/dist/_node-chunks/chunk-5IZBWBDT.js +144 -0
- package/dist/_node-chunks/chunk-5M5YVBOE.js +18 -0
- package/dist/_node-chunks/{chunk-6ABJZZWS.js → chunk-6T5JWO53.js} +7 -7
- package/dist/_node-chunks/{chunk-D4TCQXIF.js → chunk-7WSC72DT.js} +7 -7
- package/dist/_node-chunks/{chunk-YN6FEZAF.js → chunk-AEAT43LP.js} +7 -7
- package/dist/_node-chunks/{chunk-3Y5VHKPI.js → chunk-B3ABITJT.js} +9 -9
- package/dist/_node-chunks/chunk-E4NS75V2.js +126 -0
- package/dist/_node-chunks/{chunk-LRBEW57O.js → chunk-EXJYKVMZ.js} +7 -7
- package/dist/_node-chunks/{chunk-NYUFS6LX.js → chunk-FK46E6BJ.js} +10 -10
- package/dist/_node-chunks/{chunk-CO7N5AG7.js → chunk-FLAGIDCN.js} +36 -14
- package/dist/_node-chunks/{chunk-FGI35IGB.js → chunk-FOSOWVVY.js} +15 -69
- package/dist/_node-chunks/{chunk-33XC4R6P.js → chunk-FWBRRVW6.js} +9 -9
- package/dist/_node-chunks/{chunk-73GYSTNZ.js → chunk-GKB6BXCD.js} +6 -6
- package/dist/_node-chunks/{chunk-SBPB3VWI.js → chunk-H444EFIP.js} +6 -6
- package/dist/_node-chunks/{chunk-6SH5SI6S.js → chunk-KRXWB32F.js} +7 -7
- package/dist/_node-chunks/{chunk-3DPKKQ6P.js → chunk-L5NAVTEK.js} +6 -6
- package/dist/_node-chunks/{chunk-MWWAQ5S4.js → chunk-M5BK3KV6.js} +5262 -1480
- package/dist/_node-chunks/{chunk-OUDQWDHY.js → chunk-MTJISVX7.js} +7 -7
- package/dist/_node-chunks/{chunk-IIBBQZLT.js → chunk-NFE2FV3C.js} +6 -6
- package/dist/_node-chunks/{chunk-PZCWRKQE.js → chunk-PZT42DUC.js} +6 -6
- package/dist/_node-chunks/{chunk-XZ6V3G6J.js → chunk-QO37JOCL.js} +533 -143
- package/dist/_node-chunks/{chunk-LB74XOLW.js → chunk-RP5L2ZGT.js} +6 -6
- package/dist/_node-chunks/chunk-RVYIMZDI.js +61 -0
- package/dist/_node-chunks/{chunk-BQX766MA.js → chunk-WLBZMVKZ.js} +260 -162
- package/dist/_node-chunks/{chunk-WTQGSYRO.js → chunk-WRGLNCF7.js} +12 -571
- package/dist/_node-chunks/{chunk-SPOUBCPJ.js → chunk-YR6V5CGX.js} +18 -14
- package/dist/_node-chunks/{globby-AXGFF6I5.js → globby-EHB62LWZ.js} +11 -20
- package/dist/_node-chunks/{lib-ESB7KQ6D.js → lib-F2QE2E3S.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-XXQ6YIDF.js → mdx-N42X6CFJ-SV23TYXC.js} +8 -8
- package/dist/_node-chunks/{p-limit-P6ND7SUA.js → p-limit-T7DGUJ4I.js} +18 -14
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +1504 -424
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +1319 -271
- package/dist/common/index.js +19 -19
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +228 -227
- package/dist/core-events/index.d.ts +23 -7
- package/dist/core-events/index.js +5 -1
- package/dist/core-server/index.d.ts +105 -3
- package/dist/core-server/index.js +992 -613
- package/dist/core-server/presets/common-manager.js +208 -160
- package/dist/core-server/presets/common-override-preset.js +11 -11
- package/dist/core-server/presets/common-preset.js +558 -4534
- package/dist/csf/index.d.ts +147 -15
- package/dist/csf/index.js +52 -23
- package/dist/csf-tools/index.d.ts +19 -1
- package/dist/csf-tools/index.js +11 -9
- package/dist/docs-tools/index.d.ts +2 -2
- package/dist/docs-tools/index.js +4 -5
- package/dist/manager/globals-runtime.js +2749 -6907
- package/dist/manager/runtime.js +2939 -2295
- package/dist/manager-api/index.d.ts +89 -21
- package/dist/manager-api/index.js +82 -23
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.d.ts +1453 -108
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +784 -5059
- package/dist/preview-api/index.d.ts +93 -69
- package/dist/preview-api/index.js +11 -8
- package/dist/router/index.js +5 -4
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +14 -2
- package/dist/telemetry/index.js +23 -22
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +21 -2
- package/dist/types/index.d.ts +21 -9
- package/dist/viewport/index.d.ts +5 -3
- package/dist/viewport/index.js +12 -3
- package/package.json +27 -26
- package/dist/_browser-chunks/chunk-2NDLAB5X.js +0 -363
- package/dist/_browser-chunks/chunk-CLSHX4VX.js +0 -4140
- package/dist/_browser-chunks/chunk-HPYUT3WS.js +0 -199
- package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
- package/dist/_node-chunks/camelcase-5XDKQT3J.js +0 -37
- package/dist/_node-chunks/chunk-GXQRT5M6.js +0 -61
- package/dist/_node-chunks/chunk-MOQRBTWA.js +0 -70
- package/dist/_node-chunks/chunk-PRNP2HO6.js +0 -23
- package/dist/_node-chunks/chunk-VKMYOVNS.js +0 -18
- package/dist/_node-chunks/dist-YRSVYE5A.js +0 -121
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Channel } from 'storybook/internal/channels';
|
|
2
2
|
import * as storybook_internal_types from 'storybook/internal/types';
|
|
3
3
|
import { Args, Renderer, StoryContext, DecoratorApplicator, StoryId, Addon_StoryWrapper, PreparedStory, Globals, GlobalTypes, StoryIndex, StoryName, ComponentTitle, IndexEntry, Path, StoryAnnotationsOrFn, NormalizedComponentAnnotations, NormalizedStoryAnnotations, ModuleExports, CSFFile, NormalizedProjectAnnotations, ModuleExport, PreparedMeta, ProjectAnnotations, StepRunner, ComposedStoryFn, Store_CSFExports, ComposeStoryFn, LegacyStoryAnnotationsOrFn, ComponentAnnotations, NamedOrDefaultProjectAnnotations, ModuleImportFn, StoryContextForEnhancers, Parameters, StrictArgTypes, ArgTypesEnhancer, LegacyStoryFn, DecoratorFunction, PartialStoryFn, StoryContextUpdate, NormalizedStoriesSpecifier, Addon_StorySortParameterV7, DocsContextProps, ResolvedModuleExportType, ResolvedModuleExportFromType, StoryRenderOptions, RenderContextCallbacks, RenderToCanvas, ViewMode } from 'storybook/internal/types';
|
|
4
|
-
import * as storybook_internal_csf from 'storybook/internal/csf';
|
|
5
4
|
import { Story, Meta, CleanupCallback, StoryContext as StoryContext$1, Args as Args$1 } from 'storybook/internal/csf';
|
|
6
5
|
import { RequestData, ArgTypesRequestPayload } from 'storybook/internal/core-events';
|
|
7
6
|
|
|
@@ -416,7 +415,7 @@ declare function createPlaywrightTest<TFixture extends {
|
|
|
416
415
|
}>(baseTest: TFixture): TFixture;
|
|
417
416
|
|
|
418
417
|
declare function getCsfFactoryAnnotations<TRenderer extends Renderer = Renderer, TArgs extends Args = Args>(story: LegacyStoryAnnotationsOrFn<TRenderer> | Story<Renderer>, meta?: ComponentAnnotations<TRenderer, TArgs> | Meta<Renderer>, projectAnnotations?: ProjectAnnotations<TRenderer>): {
|
|
419
|
-
story:
|
|
418
|
+
story: storybook_internal_types.StoryAnnotations<Renderer, unknown>;
|
|
420
419
|
meta: ComponentAnnotations<Renderer, unknown>;
|
|
421
420
|
preview: storybook_internal_types.NormalizedProjectAnnotations<Renderer>;
|
|
422
421
|
} | {
|
|
@@ -478,10 +477,10 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
478
477
|
getStoryContext(story: PreparedStory<TRenderer>, { forceInitialArgs }?: {
|
|
479
478
|
forceInitialArgs?: boolean | undefined;
|
|
480
479
|
}): {
|
|
481
|
-
args:
|
|
482
|
-
initialGlobals:
|
|
483
|
-
globalTypes: (
|
|
484
|
-
userGlobals:
|
|
480
|
+
args: storybook_internal_types.Args;
|
|
481
|
+
initialGlobals: storybook_internal_types.Globals;
|
|
482
|
+
globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
|
|
483
|
+
userGlobals: storybook_internal_types.Globals;
|
|
485
484
|
reporting: ReporterAPI;
|
|
486
485
|
globals: {
|
|
487
486
|
[x: string]: any;
|
|
@@ -493,31 +492,31 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
493
492
|
subcomponents?: Record<string, (TRenderer & {
|
|
494
493
|
T: any;
|
|
495
494
|
})["component"]> | undefined;
|
|
496
|
-
parameters:
|
|
497
|
-
initialArgs:
|
|
498
|
-
argTypes:
|
|
499
|
-
componentId:
|
|
500
|
-
title:
|
|
501
|
-
kind:
|
|
495
|
+
parameters: storybook_internal_types.Parameters;
|
|
496
|
+
initialArgs: storybook_internal_types.Args;
|
|
497
|
+
argTypes: storybook_internal_types.StrictArgTypes<storybook_internal_types.Args>;
|
|
498
|
+
componentId: storybook_internal_types.ComponentId;
|
|
499
|
+
title: storybook_internal_types.ComponentTitle;
|
|
500
|
+
kind: storybook_internal_types.ComponentTitle;
|
|
502
501
|
id: StoryId;
|
|
503
|
-
name:
|
|
504
|
-
story:
|
|
505
|
-
tags:
|
|
502
|
+
name: storybook_internal_types.StoryName;
|
|
503
|
+
story: storybook_internal_types.StoryName;
|
|
504
|
+
tags: storybook_internal_types.Tag[];
|
|
506
505
|
moduleExport: storybook_internal_types.ModuleExport;
|
|
507
|
-
originalStoryFn:
|
|
508
|
-
undecoratedStoryFn:
|
|
509
|
-
unboundStoryFn:
|
|
510
|
-
applyLoaders: (context:
|
|
511
|
-
applyBeforeEach: (context:
|
|
512
|
-
applyAfterEach: (context:
|
|
513
|
-
playFunction?: ((context:
|
|
514
|
-
runStep:
|
|
515
|
-
mount: (context:
|
|
506
|
+
originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
|
|
507
|
+
undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
508
|
+
unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
509
|
+
applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<Record<string, any>>;
|
|
510
|
+
applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<CleanupCallback[]>;
|
|
511
|
+
applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void>;
|
|
512
|
+
playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void> | void) | undefined;
|
|
513
|
+
runStep: storybook_internal_types.StepRunner<TRenderer>;
|
|
514
|
+
mount: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => () => Promise<storybook_internal_types.Canvas>;
|
|
516
515
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
517
516
|
renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
|
|
518
517
|
usesMount: boolean;
|
|
519
|
-
storyGlobals:
|
|
520
|
-
} & Pick<
|
|
518
|
+
storyGlobals: storybook_internal_types.Globals;
|
|
519
|
+
} & Pick<storybook_internal_types.StoryContextForLoaders<Renderer, storybook_internal_types.Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
|
|
521
520
|
addCleanupCallbacks(story: PreparedStory<TRenderer>, ...callbacks: CleanupCallback[]): void;
|
|
522
521
|
cleanupStory(story: PreparedStory<TRenderer>): Promise<void>;
|
|
523
522
|
extract(options?: {
|
|
@@ -533,7 +532,7 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
533
532
|
declare const combineParameters: (...parameterSets: (Parameters | undefined)[]) => Parameters;
|
|
534
533
|
|
|
535
534
|
type PropDescriptor = string[] | RegExp;
|
|
536
|
-
declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<
|
|
535
|
+
declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<storybook_internal_types.Args>>;
|
|
537
536
|
|
|
538
537
|
declare const inferControls: ArgTypesEnhancer<Renderer>;
|
|
539
538
|
|
|
@@ -583,10 +582,10 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
|
|
|
583
582
|
getStoryContext: (story: PreparedStory<TRenderer>) => {
|
|
584
583
|
loaded: {};
|
|
585
584
|
viewMode: string;
|
|
586
|
-
args:
|
|
587
|
-
initialGlobals:
|
|
588
|
-
globalTypes: (
|
|
589
|
-
userGlobals:
|
|
585
|
+
args: storybook_internal_types.Args;
|
|
586
|
+
initialGlobals: storybook_internal_types.Globals;
|
|
587
|
+
globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
|
|
588
|
+
userGlobals: storybook_internal_types.Globals;
|
|
590
589
|
reporting: ReporterAPI;
|
|
591
590
|
globals: {
|
|
592
591
|
[x: string]: any;
|
|
@@ -598,30 +597,30 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
|
|
|
598
597
|
subcomponents?: Record<string, (TRenderer & {
|
|
599
598
|
T: any;
|
|
600
599
|
})["component"]> | undefined;
|
|
601
|
-
parameters:
|
|
602
|
-
initialArgs:
|
|
603
|
-
argTypes:
|
|
604
|
-
componentId:
|
|
605
|
-
title:
|
|
606
|
-
kind:
|
|
600
|
+
parameters: storybook_internal_types.Parameters;
|
|
601
|
+
initialArgs: storybook_internal_types.Args;
|
|
602
|
+
argTypes: storybook_internal_types.StrictArgTypes<storybook_internal_types.Args>;
|
|
603
|
+
componentId: storybook_internal_types.ComponentId;
|
|
604
|
+
title: storybook_internal_types.ComponentTitle;
|
|
605
|
+
kind: storybook_internal_types.ComponentTitle;
|
|
607
606
|
id: StoryId;
|
|
608
607
|
name: StoryName;
|
|
609
608
|
story: StoryName;
|
|
610
|
-
tags:
|
|
609
|
+
tags: storybook_internal_types.Tag[];
|
|
611
610
|
moduleExport: ModuleExport;
|
|
612
|
-
originalStoryFn:
|
|
613
|
-
undecoratedStoryFn:
|
|
614
|
-
unboundStoryFn:
|
|
615
|
-
applyLoaders: (context:
|
|
616
|
-
applyBeforeEach: (context:
|
|
617
|
-
applyAfterEach: (context:
|
|
618
|
-
playFunction?: ((context:
|
|
619
|
-
runStep:
|
|
620
|
-
mount: (context:
|
|
611
|
+
originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
|
|
612
|
+
undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
613
|
+
unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
614
|
+
applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<Record<string, any>>;
|
|
615
|
+
applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<storybook_internal_types.CleanupCallback[]>;
|
|
616
|
+
applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void>;
|
|
617
|
+
playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void> | void) | undefined;
|
|
618
|
+
runStep: storybook_internal_types.StepRunner<TRenderer>;
|
|
619
|
+
mount: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => () => Promise<storybook_internal_types.Canvas>;
|
|
621
620
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
622
621
|
renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
|
|
623
622
|
usesMount: boolean;
|
|
624
|
-
storyGlobals:
|
|
623
|
+
storyGlobals: storybook_internal_types.Globals;
|
|
625
624
|
allArgs: any;
|
|
626
625
|
argsByTarget: any;
|
|
627
626
|
unmappedArgs: any;
|
|
@@ -843,7 +842,7 @@ declare class Preview<TRenderer extends Renderer> {
|
|
|
843
842
|
}): {
|
|
844
843
|
args: Args;
|
|
845
844
|
initialGlobals: Globals;
|
|
846
|
-
globalTypes: (
|
|
845
|
+
globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
|
|
847
846
|
userGlobals: Globals;
|
|
848
847
|
reporting: ReporterAPI;
|
|
849
848
|
globals: {
|
|
@@ -856,34 +855,34 @@ declare class Preview<TRenderer extends Renderer> {
|
|
|
856
855
|
subcomponents?: Record<string, (TRenderer & {
|
|
857
856
|
T: any;
|
|
858
857
|
})["component"]> | undefined;
|
|
859
|
-
parameters:
|
|
858
|
+
parameters: storybook_internal_types.Parameters;
|
|
860
859
|
initialArgs: Args;
|
|
861
|
-
argTypes:
|
|
862
|
-
componentId:
|
|
863
|
-
title:
|
|
864
|
-
kind:
|
|
860
|
+
argTypes: storybook_internal_types.StrictArgTypes<Args>;
|
|
861
|
+
componentId: storybook_internal_types.ComponentId;
|
|
862
|
+
title: storybook_internal_types.ComponentTitle;
|
|
863
|
+
kind: storybook_internal_types.ComponentTitle;
|
|
865
864
|
id: StoryId;
|
|
866
|
-
name:
|
|
867
|
-
story:
|
|
868
|
-
tags:
|
|
865
|
+
name: storybook_internal_types.StoryName;
|
|
866
|
+
story: storybook_internal_types.StoryName;
|
|
867
|
+
tags: storybook_internal_types.Tag[];
|
|
869
868
|
moduleExport: storybook_internal_types.ModuleExport;
|
|
870
|
-
originalStoryFn:
|
|
871
|
-
undecoratedStoryFn:
|
|
872
|
-
unboundStoryFn:
|
|
873
|
-
applyLoaders: (context:
|
|
874
|
-
applyBeforeEach: (context:
|
|
875
|
-
applyAfterEach: (context:
|
|
876
|
-
playFunction?: ((context:
|
|
877
|
-
runStep:
|
|
878
|
-
mount: (context:
|
|
869
|
+
originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
|
|
870
|
+
undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
871
|
+
unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
872
|
+
applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<Record<string, any>>;
|
|
873
|
+
applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<CleanupCallback[]>;
|
|
874
|
+
applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<void>;
|
|
875
|
+
playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<void> | void) | undefined;
|
|
876
|
+
runStep: storybook_internal_types.StepRunner<TRenderer>;
|
|
877
|
+
mount: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => () => Promise<storybook_internal_types.Canvas>;
|
|
879
878
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
880
879
|
renderToCanvas?: RenderToCanvas<TRenderer> | undefined;
|
|
881
880
|
usesMount: boolean;
|
|
882
881
|
storyGlobals: Globals;
|
|
883
|
-
} & Pick<
|
|
882
|
+
} & Pick<storybook_internal_types.StoryContextForLoaders<Renderer, Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
|
|
884
883
|
extract(options?: {
|
|
885
884
|
includeDocsOnly: boolean;
|
|
886
|
-
}): Promise<Record<string,
|
|
885
|
+
}): Promise<Record<string, storybook_internal_types.StoryContextForEnhancers<TRenderer, Args>>>;
|
|
887
886
|
renderPreviewEntryError(reason: string, err: Error): void;
|
|
888
887
|
}
|
|
889
888
|
|
|
@@ -1050,4 +1049,29 @@ declare function emitTransformCode(source: string | undefined, context: ReducedS
|
|
|
1050
1049
|
declare function pauseAnimations(atEnd?: boolean): CleanupCallback;
|
|
1051
1050
|
declare function waitForAnimations(signal?: AbortSignal): Promise<void>;
|
|
1052
1051
|
|
|
1053
|
-
|
|
1052
|
+
/** System tags used throughout Storybook for categorizing and filtering stories and docs entries. */
|
|
1053
|
+
declare const Tag: {
|
|
1054
|
+
/** Indicates that autodocs should be generated for this component */
|
|
1055
|
+
readonly AUTODOCS: "autodocs";
|
|
1056
|
+
/** MDX documentation attached to a component's stories file */
|
|
1057
|
+
readonly ATTACHED_MDX: "attached-mdx";
|
|
1058
|
+
/** Standalone MDX documentation not attached to stories */
|
|
1059
|
+
readonly UNATTACHED_MDX: "unattached-mdx";
|
|
1060
|
+
/** Story has a play function */
|
|
1061
|
+
readonly PLAY_FN: "play-fn";
|
|
1062
|
+
/** Story has a test function */
|
|
1063
|
+
readonly TEST_FN: "test-fn";
|
|
1064
|
+
/** Development environment tag */
|
|
1065
|
+
readonly DEV: "dev";
|
|
1066
|
+
/** Test environment tag */
|
|
1067
|
+
readonly TEST: "test";
|
|
1068
|
+
/** Manifest generation tag */
|
|
1069
|
+
readonly MANIFEST: "manifest";
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* Tags can be any string, including custom user-defined tags. The Tag constant above defines the
|
|
1073
|
+
* system tags used by Storybook.
|
|
1074
|
+
*/
|
|
1075
|
+
type Tag = string;
|
|
1076
|
+
|
|
1077
|
+
export { DocsContext, HooksContext, Preview, PreviewWeb, PreviewWithSelection, type PropDescriptor, type Report, ReporterAPI, type SelectionStore, StoryStore, Tag, UrlStore, type View, WebView, addons, applyHooks, combineArgs, combineParameters, composeConfigs, composeStepRunners, composeStories, composeStory, createPlaywrightTest, decorateStory, defaultDecorateStory, emitTransformCode, filterArgTypes, getCsfFactoryAnnotations, inferControls, makeDecorator, mockChannel, normalizeArrays, normalizeProjectAnnotations, normalizeStory, pauseAnimations, prepareMeta, prepareStory, sanitizeStoryContextUpdate, setDefaultProjectAnnotations, setProjectAnnotations, simulateDOMContentLoaded, simulatePageLoad, sortStoriesV7, useArgs, useCallback, useChannel, useEffect, useGlobals, useMemo, useParameter, useReducer, useRef, useState, useStoryContext, userOrAutoTitle, userOrAutoTitleFromSpecifier, waitForAnimations };
|
|
@@ -48,22 +48,24 @@ import {
|
|
|
48
48
|
useStoryContext,
|
|
49
49
|
userOrAutoTitle,
|
|
50
50
|
userOrAutoTitleFromSpecifier
|
|
51
|
-
} from "../_browser-chunks/chunk-
|
|
51
|
+
} from "../_browser-chunks/chunk-QOXZ7W26.js";
|
|
52
52
|
import {
|
|
53
53
|
pauseAnimations,
|
|
54
54
|
waitForAnimations
|
|
55
|
-
} from "../_browser-chunks/chunk-
|
|
55
|
+
} from "../_browser-chunks/chunk-MEXTPDJG.js";
|
|
56
|
+
import {
|
|
57
|
+
Tag
|
|
58
|
+
} from "../_browser-chunks/chunk-AFVOZMXQ.js";
|
|
56
59
|
import "../_browser-chunks/chunk-XLJZ7AOP.js";
|
|
57
60
|
import {
|
|
58
61
|
combineParameters
|
|
59
|
-
} from "../_browser-chunks/chunk-
|
|
60
|
-
import "../_browser-chunks/chunk-
|
|
62
|
+
} from "../_browser-chunks/chunk-SI6AKD4S.js";
|
|
63
|
+
import "../_browser-chunks/chunk-IYCKG66Y.js";
|
|
64
|
+
import "../_browser-chunks/chunk-NZMVUW5T.js";
|
|
61
65
|
import "../_browser-chunks/chunk-IWQGIXJS.js";
|
|
62
66
|
import "../_browser-chunks/chunk-V2VKKSMQ.js";
|
|
63
|
-
import "../_browser-chunks/chunk-
|
|
64
|
-
import "../_browser-chunks/chunk-
|
|
65
|
-
import "../_browser-chunks/chunk-2NDLAB5X.js";
|
|
66
|
-
import "../_browser-chunks/chunk-NZMVUW5T.js";
|
|
67
|
+
import "../_browser-chunks/chunk-YK43Z22A.js";
|
|
68
|
+
import "../_browser-chunks/chunk-LCHBOIHN.js";
|
|
67
69
|
import "../_browser-chunks/chunk-ZCFV7BZB.js";
|
|
68
70
|
import "../_browser-chunks/chunk-3LY4VQVK.js";
|
|
69
71
|
import "../_browser-chunks/chunk-A242L54C.js";
|
|
@@ -75,6 +77,7 @@ export {
|
|
|
75
77
|
PreviewWithSelection,
|
|
76
78
|
ReporterAPI,
|
|
77
79
|
StoryStore,
|
|
80
|
+
Tag,
|
|
78
81
|
UrlStore,
|
|
79
82
|
WebView,
|
|
80
83
|
addons,
|
package/dist/router/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_main
|
|
3
3
|
} from "../_browser-chunks/chunk-XLJZ7AOP.js";
|
|
4
|
-
import "../_browser-chunks/chunk-XCZK5QUJ.js";
|
|
5
4
|
import {
|
|
6
|
-
isEqual
|
|
7
|
-
|
|
8
|
-
} from "../_browser-chunks/chunk-2NDLAB5X.js";
|
|
5
|
+
isEqual
|
|
6
|
+
} from "../_browser-chunks/chunk-IYCKG66Y.js";
|
|
9
7
|
import "../_browser-chunks/chunk-NZMVUW5T.js";
|
|
8
|
+
import {
|
|
9
|
+
isPlainObject
|
|
10
|
+
} from "../_browser-chunks/chunk-LCHBOIHN.js";
|
|
10
11
|
import {
|
|
11
12
|
require_memoizerific
|
|
12
13
|
} from "../_browser-chunks/chunk-ZCFV7BZB.js";
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -46,13 +46,13 @@ import {
|
|
|
46
46
|
WebpackCompilationError,
|
|
47
47
|
WebpackInvocationError,
|
|
48
48
|
WebpackMissingStatsError
|
|
49
|
-
} from "./_node-chunks/chunk-
|
|
49
|
+
} from "./_node-chunks/chunk-FK46E6BJ.js";
|
|
50
50
|
import {
|
|
51
51
|
StorybookError
|
|
52
|
-
} from "./_node-chunks/chunk-
|
|
53
|
-
import "./_node-chunks/chunk-
|
|
54
|
-
import "./_node-chunks/chunk-
|
|
55
|
-
import "./_node-chunks/chunk-
|
|
52
|
+
} from "./_node-chunks/chunk-NFE2FV3C.js";
|
|
53
|
+
import "./_node-chunks/chunk-EXJYKVMZ.js";
|
|
54
|
+
import "./_node-chunks/chunk-6T5JWO53.js";
|
|
55
|
+
import "./_node-chunks/chunk-PZT42DUC.js";
|
|
56
56
|
export {
|
|
57
57
|
AddonVitestPostinstallConfigUpdateError,
|
|
58
58
|
AddonVitestPostinstallError,
|
|
@@ -23,6 +23,17 @@ interface DetectResult {
|
|
|
23
23
|
version?: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
type PackageGroupResult = Record<string, string | null | undefined>;
|
|
27
|
+
type KnownPackagesList = {
|
|
28
|
+
testPackages?: PackageGroupResult;
|
|
29
|
+
stylingPackages?: PackageGroupResult;
|
|
30
|
+
stateManagementPackages?: PackageGroupResult;
|
|
31
|
+
dataFetchingPackages?: PackageGroupResult;
|
|
32
|
+
uiLibraryPackages?: PackageGroupResult;
|
|
33
|
+
i18nPackages?: PackageGroupResult;
|
|
34
|
+
routerPackages?: PackageGroupResult;
|
|
35
|
+
};
|
|
36
|
+
|
|
26
37
|
declare const monorepoConfigs: {
|
|
27
38
|
readonly Nx: "nx.json";
|
|
28
39
|
readonly Turborepo: "turbo.json";
|
|
@@ -32,7 +43,7 @@ declare const monorepoConfigs: {
|
|
|
32
43
|
};
|
|
33
44
|
type MonorepoType = keyof typeof monorepoConfigs | 'Workspaces' | undefined;
|
|
34
45
|
|
|
35
|
-
type EventType = 'boot' | 'add' | 'dev' | 'build' | 'index' | 'upgrade' | 'multi-upgrade' | 'init' | 'init-step' | 'scaffolded-empty' | 'browser' | 'canceled' | 'error' | 'error-metadata' | 'version-update' | 'core-config' | 'remove' | 'save-story' | 'create-new-story-file' | 'create-new-story-file-search' | 'open-in-editor' | 'testing-module-watch-mode' | 'testing-module-completed-report' | 'testing-module-crash-report' | 'addon-test' | 'test-run' | 'addon-onboarding' | 'onboarding-survey' | 'onboarding-checklist-muted' | 'onboarding-checklist-status' | 'mocking' | 'automigrate' | 'migrate' | 'preview-first-load' | 'doctor';
|
|
46
|
+
type EventType = 'boot' | 'add' | 'dev' | 'build' | 'index' | 'upgrade' | 'multi-upgrade' | 'init' | 'init-step' | 'scaffolded-empty' | 'browser' | 'canceled' | 'error' | 'error-metadata' | 'version-update' | 'core-config' | 'remove' | 'save-story' | 'create-new-story-file' | 'create-new-story-file-search' | 'open-in-editor' | 'testing-module-watch-mode' | 'testing-module-completed-report' | 'testing-module-crash-report' | 'addon-test' | 'test-run' | 'addon-onboarding' | 'onboarding-survey' | 'onboarding-checklist-muted' | 'onboarding-checklist-status' | 'mocking' | 'automigrate' | 'migrate' | 'preview-first-load' | 'doctor' | 'ghost-stories';
|
|
36
47
|
interface Dependency {
|
|
37
48
|
version: string | undefined;
|
|
38
49
|
versionSpecifier?: string;
|
|
@@ -67,7 +78,8 @@ type StorybookMetadata = {
|
|
|
67
78
|
packageName: string;
|
|
68
79
|
version: string;
|
|
69
80
|
};
|
|
70
|
-
|
|
81
|
+
packageJsonType?: 'unknown' | 'module' | 'commonjs';
|
|
82
|
+
knownPackages?: KnownPackagesList;
|
|
71
83
|
hasRouterPackage?: boolean;
|
|
72
84
|
hasStorybookEslint?: boolean;
|
|
73
85
|
hasStaticDirs?: boolean;
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -25,22 +25,23 @@ import {
|
|
|
25
25
|
sanitizeAddonName,
|
|
26
26
|
sanitizeError,
|
|
27
27
|
telemetry
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
29
|
-
import "../_node-chunks/chunk-
|
|
30
|
-
import "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
33
|
-
import "../_node-chunks/chunk-
|
|
34
|
-
import "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
37
|
-
import "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-2SAOTVFT.js";
|
|
29
|
+
import "../_node-chunks/chunk-5M5YVBOE.js";
|
|
30
|
+
import "../_node-chunks/chunk-M5BK3KV6.js";
|
|
31
|
+
import "../_node-chunks/chunk-RVYIMZDI.js";
|
|
32
|
+
import "../_node-chunks/chunk-FLAGIDCN.js";
|
|
33
|
+
import "../_node-chunks/chunk-YR6V5CGX.js";
|
|
34
|
+
import "../_node-chunks/chunk-5IZBWBDT.js";
|
|
35
|
+
import "../_node-chunks/chunk-B3ABITJT.js";
|
|
36
|
+
import "../_node-chunks/chunk-E4NS75V2.js";
|
|
37
|
+
import "../_node-chunks/chunk-L5NAVTEK.js";
|
|
38
|
+
import "../_node-chunks/chunk-MTJISVX7.js";
|
|
39
|
+
import "../_node-chunks/chunk-RP5L2ZGT.js";
|
|
40
|
+
import "../_node-chunks/chunk-GKB6BXCD.js";
|
|
41
|
+
import "../_node-chunks/chunk-WRGLNCF7.js";
|
|
42
|
+
import "../_node-chunks/chunk-EXJYKVMZ.js";
|
|
43
|
+
import "../_node-chunks/chunk-6T5JWO53.js";
|
|
44
|
+
import "../_node-chunks/chunk-PZT42DUC.js";
|
|
44
45
|
export {
|
|
45
46
|
ErrorCollector,
|
|
46
47
|
addToGlobalContext,
|
package/dist/theming/index.d.ts
CHANGED
|
@@ -12764,9 +12764,9 @@ type InterpolationEnhanced<T = {}> = Interpolation<T & {
|
|
|
12764
12764
|
}>;
|
|
12765
12765
|
|
|
12766
12766
|
declare const ignoreSsrWarning = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";
|
|
12767
|
+
declare module '.' {
|
|
12768
|
+
interface Theme extends StorybookTheme {
|
|
12769
|
+
}
|
|
12770
|
+
}
|
|
12767
12771
|
|
|
12768
|
-
export { type Animation, type Background, type Brand, type CSSObject, CacheProvider, ClassNames, type Color, type Easing, type FunctionInterpolationEnhanced as FunctionInterpolation, Global, type InterpolationEnhanced as Interpolation, type Keyframes$1 as Keyframes, type StorybookTheme, type StyledComponent, type TextSize, ThemeProvider, type ThemeVars, type ThemeVarsColors, type ThemeVarsPartial, type Typography, background, color, convert, create, createCache, createGlobal, createReset, css, darkenColor as darken, ensure, getPreferredColorScheme, ignoreSsrWarning, isPropValid, jsx, keyframes, lightenColor as lighten, styled, themes, tokens, typography, useTheme, withTheme };
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
interface Theme extends StorybookTheme {}
|
|
12772
|
-
export type { Theme };
|
|
12772
|
+
export { type Animation, type Background, type Brand, type CSSObject, CacheProvider, ClassNames, type Color, type Easing, type FunctionInterpolationEnhanced as FunctionInterpolation, Global, type InterpolationEnhanced as Interpolation, type Keyframes$1 as Keyframes, type StorybookTheme, type StyledComponent, type TextSize, type Theme, ThemeProvider, type ThemeVars, type ThemeVarsColors, type ThemeVarsPartial, type Typography, background, color, convert, create, createCache, createGlobal, createReset, css, darkenColor as darken, ensure, getPreferredColorScheme, ignoreSsrWarning, isPropValid, jsx, keyframes, lightenColor as lighten, styled, themes, tokens, typography, useTheme, withTheme };
|
package/dist/theming/index.js
CHANGED
|
@@ -1678,9 +1678,12 @@ var import_memoizerific = __toESM(require_memoizerific(), 1), createReset = (0,
|
|
|
1678
1678
|
...resetStyles,
|
|
1679
1679
|
body: {
|
|
1680
1680
|
...resetStyles.body,
|
|
1681
|
+
position: "fixed",
|
|
1682
|
+
width: "100vw",
|
|
1683
|
+
height: "100vh",
|
|
1684
|
+
overflow: "hidden",
|
|
1681
1685
|
color: color2.defaultText,
|
|
1682
|
-
background: background2.app
|
|
1683
|
-
overflow: "hidden"
|
|
1686
|
+
background: background2.app
|
|
1684
1687
|
},
|
|
1685
1688
|
hr: {
|
|
1686
1689
|
...resetStyles.hr,
|
|
@@ -1705,6 +1708,22 @@ var import_memoizerific = __toESM(require_memoizerific(), 1), createReset = (0,
|
|
|
1705
1708
|
".sb-hidden-until-focus:focus": {
|
|
1706
1709
|
opacity: 1
|
|
1707
1710
|
},
|
|
1711
|
+
"[data-sb-landmark]": {
|
|
1712
|
+
position: "relative"
|
|
1713
|
+
},
|
|
1714
|
+
"[data-sb-landmark]:focus-visible": {
|
|
1715
|
+
outline: "none"
|
|
1716
|
+
},
|
|
1717
|
+
"[data-sb-landmark]:focus-visible::after": {
|
|
1718
|
+
outline: `2px solid ${color2.primary}`,
|
|
1719
|
+
outlineOffset: "-2px"
|
|
1720
|
+
},
|
|
1721
|
+
"[data-sb-landmark]::after": {
|
|
1722
|
+
content: "''",
|
|
1723
|
+
position: "absolute",
|
|
1724
|
+
inset: 0,
|
|
1725
|
+
pointerEvents: "none"
|
|
1726
|
+
},
|
|
1708
1727
|
".react-aria-Popover:focus-visible": {
|
|
1709
1728
|
outline: "none"
|
|
1710
1729
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -684,7 +684,10 @@ interface API_Shortcuts {
|
|
|
684
684
|
expandAll: API_KeyCollection;
|
|
685
685
|
remount: API_KeyCollection;
|
|
686
686
|
openInEditor: API_KeyCollection;
|
|
687
|
+
openInIsolation: API_KeyCollection;
|
|
687
688
|
copyStoryLink: API_KeyCollection;
|
|
689
|
+
goToPreviousLandmark: API_KeyCollection;
|
|
690
|
+
goToNextLandmark: API_KeyCollection;
|
|
688
691
|
}
|
|
689
692
|
|
|
690
693
|
interface SubState$3 extends API_LoadedRefData$1 {
|
|
@@ -2467,14 +2470,14 @@ interface ComponentManifest {
|
|
|
2467
2470
|
id: string;
|
|
2468
2471
|
path: string;
|
|
2469
2472
|
name: string;
|
|
2470
|
-
description?: string;
|
|
2471
|
-
import?: string;
|
|
2472
|
-
summary?: string;
|
|
2473
|
+
description?: string | undefined;
|
|
2474
|
+
import?: string | undefined;
|
|
2475
|
+
summary?: string | undefined;
|
|
2473
2476
|
stories: {
|
|
2474
2477
|
name: string;
|
|
2475
|
-
snippet?: string;
|
|
2476
|
-
description?: string;
|
|
2477
|
-
summary?: string;
|
|
2478
|
+
snippet?: string | undefined;
|
|
2479
|
+
description?: string | undefined;
|
|
2480
|
+
summary?: string | undefined;
|
|
2478
2481
|
error?: {
|
|
2479
2482
|
name: string;
|
|
2480
2483
|
message: string;
|
|
@@ -2490,7 +2493,10 @@ interface ComponentsManifest {
|
|
|
2490
2493
|
v: number;
|
|
2491
2494
|
components: Record<string, ComponentManifest>;
|
|
2492
2495
|
}
|
|
2493
|
-
type
|
|
2496
|
+
type ManifestName = string;
|
|
2497
|
+
type Manifests = {
|
|
2498
|
+
components?: ComponentsManifest;
|
|
2499
|
+
} & Record<ManifestName, unknown>;
|
|
2494
2500
|
type CsfEnricher = (csf: CsfFile, csfSource: CsfFile) => Promise<void>;
|
|
2495
2501
|
interface StorybookConfigRaw {
|
|
2496
2502
|
/**
|
|
@@ -2505,7 +2511,7 @@ interface StorybookConfigRaw {
|
|
|
2505
2511
|
*/
|
|
2506
2512
|
addons?: Preset[];
|
|
2507
2513
|
core?: CoreConfig;
|
|
2508
|
-
|
|
2514
|
+
experimental_manifests?: Manifests;
|
|
2509
2515
|
experimental_enrichCsf?: CsfEnricher;
|
|
2510
2516
|
staticDirs?: (DirectoryMapping | string)[];
|
|
2511
2517
|
logLevel?: string;
|
|
@@ -2558,6 +2564,12 @@ interface StorybookConfigRaw {
|
|
|
2558
2564
|
* @default true
|
|
2559
2565
|
*/
|
|
2560
2566
|
actions?: boolean;
|
|
2567
|
+
/**
|
|
2568
|
+
* Enable the onboarding checklist sidebar widget
|
|
2569
|
+
*
|
|
2570
|
+
* @default true
|
|
2571
|
+
*/
|
|
2572
|
+
sidebarOnboardingChecklist?: boolean;
|
|
2561
2573
|
/**
|
|
2562
2574
|
* @temporary This feature flag is a migration assistant, and is scheduled to be removed.
|
|
2563
2575
|
*
|
|
@@ -3725,4 +3737,4 @@ declare enum SupportedLanguage {
|
|
|
3725
3737
|
TYPESCRIPT = "typescript"
|
|
3726
3738
|
}
|
|
3727
3739
|
|
|
3728
|
-
export { type API_ActiveTabsType, type API_BaseEntry, type API_ComponentEntry, type API_ComposedRef, type API_ComposedRefUpdate, type API_DocsEntry, type API_FilterFunction, type API_GroupEntry, type API_HashEntry, type API_IframeRenderer, type API_IndexHash, type API_Layout, type API_LayoutCustomisations, type API_LeafEntry, type API_LoadedRefData, type API_MatchOptions, type API_Notification, type API_OptionsData, type API_PanelPositions, type API_PreparedIndexEntry, type API_PreparedStoryIndex, type API_Provider, type API_ProviderData, type API_RefId, type API_RefUrl, type API_Refs, type API_ReleaseNotes, type API_RenderOptions, type API_RootEntry, type API_RouteOptions, type API_SetRefData, type API_Settings, type API_SidebarOptions, type API_StateMerger, type API_StoryEntry, type API_StoryMapper, type API_TestEntry, type API_UI, type API_UIOptions, type API_UnknownEntries, type API_Version, type API_Versions$1 as API_Versions, type API_ViewMode, type Actor, type Addon_AddStoryArgs, type Addon_Annotations, type Addon_ArgType, type Addon_ArgsStoryFn, type Addon_BaseAnnotations, type Addon_BaseDecorators, type Addon_BaseMeta, type Addon_BaseStoryFn, type Addon_BaseStoryObject, type Addon_BaseType, type Addon_ClientApiAddon, type Addon_ClientApiAddons, type Addon_ClientApiReturnFn, type Addon_ClientStoryApi, type Addon_Collection, type Addon_Comparator, type Addon_Config, type Addon_DecoratorFunction, type Addon_Elements, type Addon_LegacyStoryFn, type Addon_LoadFn, type Addon_Loadable, type Addon_Loader, type Addon_LoaderFunction, type Addon_Loaders, type Addon_MakeDecoratorResult, type Addon_OptionsParameter, type Addon_OptionsParameterV7, type Addon_PageType, type Addon_PartialStoryFn, type Addon_RenderOptions, type Addon_RequireContext, type Addon_StoryApi, type Addon_StoryContext, type Addon_StoryContextUpdate, type Addon_StoryFn, type Addon_StorySortComparator, type Addon_StorySortComparatorV7, type Addon_StorySortMethod, type Addon_StorySortObjectParameter, type Addon_StorySortParameter, type Addon_StorySortParameterV7, type Addon_StoryWrapper, type Addon_TestProviderType, type Addon_ToolbarConfig, type Addon_Type, type Addon_Types, Addon_TypesEnum, type Addon_TypesMapping, type Addon_WrapperSettings, type Addon_WrapperType, type Addons_ArgTypes, type BaseIndexEntry, type BaseIndexInput, type BaseStory, type BoundStory, type Builder, type BuilderName, type BuilderOptions, type BuilderResult, type BuilderStats, type Builder_EnvsRaw, type Builder_Unpromise, type Builder_WithRequiredProperty, type CLIBaseOptions, type CLIOptions, type CSFFile, type CompatibleString, type ComponentManifest, type
|
|
3740
|
+
export { type API_ActiveTabsType, type API_BaseEntry, type API_ComponentEntry, type API_ComposedRef, type API_ComposedRefUpdate, type API_DocsEntry, type API_FilterFunction, type API_GroupEntry, type API_HashEntry, type API_IframeRenderer, type API_IndexHash, type API_Layout, type API_LayoutCustomisations, type API_LeafEntry, type API_LoadedRefData, type API_MatchOptions, type API_Notification, type API_OptionsData, type API_PanelPositions, type API_PreparedIndexEntry, type API_PreparedStoryIndex, type API_Provider, type API_ProviderData, type API_RefId, type API_RefUrl, type API_Refs, type API_ReleaseNotes, type API_RenderOptions, type API_RootEntry, type API_RouteOptions, type API_SetRefData, type API_Settings, type API_SidebarOptions, type API_StateMerger, type API_StoryEntry, type API_StoryMapper, type API_TestEntry, type API_UI, type API_UIOptions, type API_UnknownEntries, type API_Version, type API_Versions$1 as API_Versions, type API_ViewMode, type Actor, type Addon_AddStoryArgs, type Addon_Annotations, type Addon_ArgType, type Addon_ArgsStoryFn, type Addon_BaseAnnotations, type Addon_BaseDecorators, type Addon_BaseMeta, type Addon_BaseStoryFn, type Addon_BaseStoryObject, type Addon_BaseType, type Addon_ClientApiAddon, type Addon_ClientApiAddons, type Addon_ClientApiReturnFn, type Addon_ClientStoryApi, type Addon_Collection, type Addon_Comparator, type Addon_Config, type Addon_DecoratorFunction, type Addon_Elements, type Addon_LegacyStoryFn, type Addon_LoadFn, type Addon_Loadable, type Addon_Loader, type Addon_LoaderFunction, type Addon_Loaders, type Addon_MakeDecoratorResult, type Addon_OptionsParameter, type Addon_OptionsParameterV7, type Addon_PageType, type Addon_PartialStoryFn, type Addon_RenderOptions, type Addon_RequireContext, type Addon_StoryApi, type Addon_StoryContext, type Addon_StoryContextUpdate, type Addon_StoryFn, type Addon_StorySortComparator, type Addon_StorySortComparatorV7, type Addon_StorySortMethod, type Addon_StorySortObjectParameter, type Addon_StorySortParameter, type Addon_StorySortParameterV7, type Addon_StoryWrapper, type Addon_TestProviderType, type Addon_ToolbarConfig, type Addon_Type, type Addon_Types, Addon_TypesEnum, type Addon_TypesMapping, type Addon_WrapperSettings, type Addon_WrapperType, type Addons_ArgTypes, type BaseIndexEntry, type BaseIndexInput, type BaseStory, type BoundStory, type Builder, type BuilderName, type BuilderOptions, type BuilderResult, type BuilderStats, type Builder_EnvsRaw, type Builder_Unpromise, type Builder_WithRequiredProperty, type CLIBaseOptions, type CLIOptions, type CSFFile, type CompatibleString, type ComponentManifest, type ComponentsManifest, type ComposeStoryFn, type ComposedStoryFn, type CoreCommon_AddonEntry, type CoreCommon_AddonInfo, type CoreCommon_OptionsEntry, type CoreCommon_ResolvedAddonPreset, type CoreCommon_ResolvedAddonVirtual, type CoreCommon_StorybookInfo, type CoreConfig, CoreWebpackCompiler, type CsfEnricher, type DocsContextProps, type DocsIndexEntry, type DocsIndexInput, type DocsOptions, type DocsPreparedPayload, type DocsRenderFunction, type Entry, type Event, type EventInfo, Feature, type GlobalsUpdatedPayload, type IndexEntry, type IndexEntryLegacy, type IndexInput, type IndexInputStats, type IndexedCSFFile, type IndexedStory, type Indexer, type IndexerOptions, type LoadOptions, type LoadedPreset, type Manifests, type Middleware, MockUniversalStore, type ModuleExport, type ModuleExports, type ModuleImportFn, type NamedOrDefaultProjectAnnotations, type NormalizedComponentAnnotations, type NormalizedProjectAnnotations, type NormalizedStoriesSpecifier, type NormalizedStoryAnnotations, type Options, type PackageJson, type PartialArgsStoryFn, type Path, type PreparedMeta, type PreparedStory, type Preset, type PresetConfig, type PresetProperty, type PresetPropertyFn, type PresetValue, type Presets, type PreviewAnnotation, type ProjectAnnotations, type Ref, type RenderContext, type RenderContextCallbacks, type RenderToCanvas, type RendererName, type ResolvedModuleExport, type ResolvedModuleExportFromType, type ResolvedModuleExportType, type ServerApp, type SetGlobalsPayload, type SetStoriesPayload, type SetStoriesStory, type SetStoriesStoryData, type Stats, type Status, type StatusByTypeId, type StatusStore, type StatusStoreByTypeId, type StatusTypeId, type StatusValue, type StatusesByStoryIdAndTypeId, type StoreOptions, type Store_CSFExports, type StoriesEntry, type StoriesSpecifier, type StoriesWithPartialProps, type StoryIndex, type StoryIndexEntry, type StoryIndexInput, type StoryIndexV2, type StoryIndexV3, type StoryPreparedPayload, type StoryRenderOptions, type StorybookConfig, type StorybookConfigOptions, type StorybookConfigRaw, type StorybookInternalParameters, type StorybookParameters, type StorybookTypes, SupportedBuilder, SupportedFramework, SupportedLanguage, SupportedRenderer, type TagOptions, type TagsOptions, type TeardownRenderToCanvas, type TestBuildConfig, type TestBuildFlags, type TestProviderId, type TestProviderState, type TestProviderStateByProviderId, type TestProviderStoreById, type TypescriptOptions, UniversalStore, type UseStatusStore, type UseTestProviderStore, type V3CompatIndexEntry, type VersionCheck, type ViewMode, type WebRenderer };
|
package/dist/viewport/index.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ declare const TOOL_ID = "storybook/viewport/tool";
|
|
|
6
6
|
interface Viewport {
|
|
7
7
|
name: string;
|
|
8
8
|
styles: ViewportStyles;
|
|
9
|
-
type?:
|
|
9
|
+
type?: ViewportType;
|
|
10
10
|
}
|
|
11
|
+
type ViewportType = 'desktop' | 'mobile' | 'tablet' | 'watch' | 'other';
|
|
11
12
|
interface ViewportStyles {
|
|
12
13
|
height: string;
|
|
13
14
|
width: string;
|
|
@@ -16,7 +17,8 @@ type ViewportMap = Record<string, Viewport>;
|
|
|
16
17
|
type GlobalState = {
|
|
17
18
|
/**
|
|
18
19
|
* When set, the viewport is applied and cannot be changed using the toolbar. Must match the key
|
|
19
|
-
* of one of the available viewports.
|
|
20
|
+
* of one of the available viewports or follow the format '{width}-{height}', e.g. '320-480' which
|
|
21
|
+
* may include a unit (e.g. '100vw' or '100pct').
|
|
20
22
|
*/
|
|
21
23
|
value: string | undefined;
|
|
22
24
|
/**
|
|
@@ -325,4 +327,4 @@ declare const MINIMAL_VIEWPORTS: {
|
|
|
325
327
|
|
|
326
328
|
declare const responsiveViewport: Viewport;
|
|
327
329
|
|
|
328
|
-
export { ADDON_ID, DEFAULT_VIEWPORT, type GlobalState, type GlobalStateUpdate, INITIAL_VIEWPORTS, type InitialViewportKeys, MINIMAL_VIEWPORTS, PANEL_ID, PARAM_KEY, TOOL_ID, type Viewport, type ViewportGlobals, type ViewportMap, type ViewportParameters, type ViewportStyles, type ViewportTypes, responsiveViewport };
|
|
330
|
+
export { ADDON_ID, DEFAULT_VIEWPORT, type GlobalState, type GlobalStateUpdate, INITIAL_VIEWPORTS, type InitialViewportKeys, MINIMAL_VIEWPORTS, PANEL_ID, PARAM_KEY, TOOL_ID, type Viewport, type ViewportGlobals, type ViewportMap, type ViewportParameters, type ViewportStyles, type ViewportType, type ViewportTypes, responsiveViewport };
|