storybook 10.0.0-beta.6 → 10.0.0-beta.7
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/{chunk-YQV3EGQ5.js → chunk-OQ6NCFPL.js} +38 -15
- package/dist/_browser-chunks/{chunk-O5R5CGFA.js → chunk-TMDZCWME.js} +1 -2
- package/dist/_node-chunks/{builder-manager-V33CQT2M.js → builder-manager-VFP7HSCF.js} +13 -13
- package/dist/_node-chunks/camelcase-ZLZNQMDD.js +18 -0
- package/dist/_node-chunks/{chunk-4TOI4VSK.js → chunk-2GCKJYK6.js} +7 -7
- package/dist/_node-chunks/{chunk-NKZ4UPPV.js → chunk-3NIQHNDU.js} +7 -7
- package/dist/_node-chunks/{chunk-VQH4ZFTS.js → chunk-3QZ7KLON.js} +8 -8
- package/dist/_node-chunks/{chunk-HPFXREVG.js → chunk-3XXQRL3A.js} +7 -7
- package/dist/_node-chunks/{chunk-IINJT47N.js → chunk-46BWYN3K.js} +7 -7
- package/dist/_node-chunks/{chunk-E6TLN2J2.js → chunk-4DIDWIST.js} +7 -7
- package/dist/_node-chunks/{chunk-55VWKF63.js → chunk-5YUTWYNI.js} +9 -9
- package/dist/_node-chunks/{chunk-7WH7AGOR.js → chunk-A2DKPKBY.js} +7 -7
- package/dist/_node-chunks/{chunk-TJIMCNYJ.js → chunk-BC23FKU4.js} +8 -8
- package/dist/_node-chunks/{chunk-HEBHWRWL.js → chunk-BID2X7MU.js} +7 -7
- package/dist/_node-chunks/{chunk-BNOZ3EKF.js → chunk-C4EOB63P.js} +7 -7
- package/dist/_node-chunks/{chunk-EAOPWIKA.js → chunk-DH7BCQMG.js} +8 -8
- package/dist/_node-chunks/{chunk-JNHUDBJL.js → chunk-FCNWWJV7.js} +7 -7
- package/dist/_node-chunks/{chunk-6PTV7XGR.js → chunk-GBZZSL2K.js} +264 -109
- package/dist/_node-chunks/{chunk-DC7OWBHB.js → chunk-GCWAGPDV.js} +12 -12
- package/dist/_node-chunks/{chunk-B3AMFGAL.js → chunk-I7SRMFT5.js} +7 -7
- package/dist/_node-chunks/{chunk-EY5PTUZL.js → chunk-IEFSRAX2.js} +10 -10
- package/dist/_node-chunks/{chunk-A7CUP23N.js → chunk-IGWCAXA2.js} +7 -7
- package/dist/_node-chunks/chunk-IYOHZPPC.js +18 -0
- package/dist/_node-chunks/{chunk-NUVGSFQI.js → chunk-KVOP6ASA.js} +7 -7
- package/dist/_node-chunks/{chunk-F3PO67U3.js → chunk-MHVF6Y35.js} +7 -7
- package/dist/_node-chunks/{chunk-NJXBURX7.js → chunk-MRCMZPA2.js} +7 -7
- package/dist/_node-chunks/chunk-RNHUADRS.js +62 -0
- package/dist/_node-chunks/{chunk-UYKQJMQY.js → chunk-RP3VMQPF.js} +15 -15
- package/dist/_node-chunks/{chunk-MLBTKECD.js → chunk-TFIGR2HH.js} +7 -7
- package/dist/_node-chunks/{chunk-JOXYGIZK.js → chunk-TXDIOSHI.js} +9 -9
- package/dist/_node-chunks/{chunk-2DMFI367.js → chunk-U6MJQ7C6.js} +7 -7
- package/dist/_node-chunks/{chunk-RIPA4LFD.js → chunk-XXVKM2ZR.js} +26 -23
- package/dist/_node-chunks/{chunk-VSC6LSCQ.js → chunk-YWU65VY4.js} +6 -6
- package/dist/_node-chunks/{chunk-5IEY46LQ.js → chunk-Z3PLI7S2.js} +7 -7
- package/dist/_node-chunks/{chunk-XZTBG2TG.js → chunk-ZM2HT2RW.js} +6 -6
- package/dist/_node-chunks/{chunk-7NJGTQ3W.js → chunk-ZPNXCXIT.js} +8 -8
- package/dist/_node-chunks/{dist-CGGAYWME.js → dist-PG4I7ZDU.js} +9 -9
- package/dist/_node-chunks/{globby-3IFB7BJC.js → globby-HXB6X43W.js} +9 -9
- package/dist/_node-chunks/{lib-IT6OBSID.js → lib-4JJTZC7T.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-WM36SSZ6.js → mdx-N42X6CFJ-3JBJ7PQF.js} +8 -8
- package/dist/_node-chunks/{p-limit-3V5XIKA7.js → p-limit-WBBNX4KI.js} +7 -7
- package/dist/_node-chunks/{plugin-GJUBUKCT.js → plugin-SEQ2OPRK.js} +10 -10
- package/dist/_node-chunks/{plugin-3YREMMJJ.js → plugin-SG6I7RFC.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-DCJQFJQ5.js → webpack-inject-mocker-runtime-plugin-5O25VYCQ.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-XJNFAHBI.js → webpack-mock-plugin-35I32SAF.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.js +20 -20
- package/dist/common/index.js +21 -21
- package/dist/components/index.js +5 -1
- package/dist/core-server/index.js +91 -63
- package/dist/core-server/presets/common-manager.js +25 -20
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf/index.d.ts +9 -4
- package/dist/csf/index.js +37 -8
- package/dist/csf-tools/index.d.ts +13 -6
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +71 -32
- package/dist/manager/runtime.js +459 -242
- package/dist/manager-api/index.d.ts +10 -5
- package/dist/manager-api/index.js +66 -31
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/runtime.js +96 -62
- package/dist/preview-api/index.d.ts +70 -71
- package/dist/preview-api/index.js +1 -1
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/types/index.d.ts +24 -7
- package/dist/viewport/index.d.ts +36 -4
- package/dist/viewport/index.js +1 -1
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-BZ55OCHI.js +0 -18
- package/dist/_node-chunks/chunk-FDDJHDCE.js +0 -62
- package/dist/_node-chunks/chunk-R5DIBOM6.js +0 -18
|
@@ -1,8 +1,7 @@
|
|
|
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
|
|
5
|
-
import { CleanupCallback, StoryContext as StoryContext$1, Args as Args$1 } from 'storybook/internal/csf';
|
|
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
|
|
|
8
7
|
declare class AddonStore {
|
|
@@ -415,13 +414,13 @@ declare function createPlaywrightTest<TFixture extends {
|
|
|
415
414
|
extend: any;
|
|
416
415
|
}>(baseTest: TFixture): TFixture;
|
|
417
416
|
|
|
418
|
-
declare function getCsfFactoryAnnotations<TRenderer extends Renderer = Renderer, TArgs extends Args = Args>(story: LegacyStoryAnnotationsOrFn<TRenderer>, meta?: ComponentAnnotations<TRenderer, TArgs>, projectAnnotations?: ProjectAnnotations<TRenderer>): {
|
|
419
|
-
story:
|
|
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>): {
|
|
418
|
+
story: storybook_internal_types.StoryAnnotations<Renderer, unknown>;
|
|
420
419
|
meta: ComponentAnnotations<Renderer, unknown>;
|
|
421
420
|
preview: storybook_internal_types.NormalizedProjectAnnotations<Renderer>;
|
|
422
421
|
} | {
|
|
423
422
|
story: LegacyStoryAnnotationsOrFn<TRenderer>;
|
|
424
|
-
meta: ComponentAnnotations<TRenderer, TArgs> | undefined;
|
|
423
|
+
meta: ComponentAnnotations<Renderer, unknown> | ComponentAnnotations<TRenderer, TArgs> | undefined;
|
|
425
424
|
preview: ProjectAnnotations<TRenderer> | undefined;
|
|
426
425
|
};
|
|
427
426
|
|
|
@@ -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
|
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_srln17sp2zh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_srln17sp2zh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_srln17sp2zh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_srln17sp2zh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_srln17sp2zh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_srln17sp2zh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
WebpackCompilationError,
|
|
40
40
|
WebpackInvocationError,
|
|
41
41
|
WebpackMissingStatsError
|
|
42
|
-
} from "./_node-chunks/chunk-
|
|
43
|
-
import "./_node-chunks/chunk-
|
|
44
|
-
import "./_node-chunks/chunk-
|
|
45
|
-
import "./_node-chunks/chunk-
|
|
42
|
+
} from "./_node-chunks/chunk-TXDIOSHI.js";
|
|
43
|
+
import "./_node-chunks/chunk-TFIGR2HH.js";
|
|
44
|
+
import "./_node-chunks/chunk-Z3PLI7S2.js";
|
|
45
|
+
import "./_node-chunks/chunk-ZM2HT2RW.js";
|
|
46
46
|
export {
|
|
47
47
|
AngularLegacyBuildOptionsError,
|
|
48
48
|
Category,
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_srln17sp2zh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_srln17sp2zh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_srln17sp2zh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_srln17sp2zh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_srln17sp2zh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_srln17sp2zh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,24 +22,24 @@ import {
|
|
|
22
22
|
sanitizeAddonName,
|
|
23
23
|
sanitizeError,
|
|
24
24
|
telemetry
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_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-
|
|
25
|
+
} from "../_node-chunks/chunk-RP3VMQPF.js";
|
|
26
|
+
import "../_node-chunks/chunk-IYOHZPPC.js";
|
|
27
|
+
import "../_node-chunks/chunk-XXVKM2ZR.js";
|
|
28
|
+
import "../_node-chunks/chunk-46BWYN3K.js";
|
|
29
|
+
import "../_node-chunks/chunk-U6MJQ7C6.js";
|
|
30
|
+
import "../_node-chunks/chunk-RNHUADRS.js";
|
|
31
|
+
import "../_node-chunks/chunk-ZPNXCXIT.js";
|
|
32
|
+
import "../_node-chunks/chunk-5YUTWYNI.js";
|
|
33
|
+
import "../_node-chunks/chunk-MHVF6Y35.js";
|
|
34
|
+
import "../_node-chunks/chunk-3XXQRL3A.js";
|
|
35
|
+
import "../_node-chunks/chunk-BC23FKU4.js";
|
|
36
|
+
import "../_node-chunks/chunk-A2DKPKBY.js";
|
|
37
|
+
import "../_node-chunks/chunk-4DIDWIST.js";
|
|
38
|
+
import "../_node-chunks/chunk-MRCMZPA2.js";
|
|
39
|
+
import "../_node-chunks/chunk-FCNWWJV7.js";
|
|
40
|
+
import "../_node-chunks/chunk-TFIGR2HH.js";
|
|
41
|
+
import "../_node-chunks/chunk-Z3PLI7S2.js";
|
|
42
|
+
import "../_node-chunks/chunk-ZM2HT2RW.js";
|
|
43
43
|
export {
|
|
44
44
|
addToGlobalContext,
|
|
45
45
|
cleanPaths,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoryId as StoryId$1, StoryName, ComponentTitle, Tag as Tag$1, Parameters, Args, ArgTypes, ComponentId, StoryKind, Globals as Globals$1, GlobalTypes as GlobalTypes$1, InputType, Renderer, StoryContext, PartialStoryFn, LegacyStoryFn, ArgsStoryFn, StoryFn, DecoratorFunction, LoaderFunction as LoaderFunction$1, ViewMode as ViewMode$1, StoryIdentifier, ProjectAnnotations as ProjectAnnotations$1, StrictArgTypes, StrictGlobalTypes, StepRunner, BeforeAll, ComponentAnnotations, StoryAnnotations, StoryContextForEnhancers, CleanupCallback, Canvas, StoryAnnotationsOrFn, AnnotatedStoryFn } from 'storybook/internal/csf';
|
|
2
|
-
export { AfterEach, AnnotatedStoryFn, ArgTypes, ArgTypesEnhancer, Args, ArgsEnhancer, ArgsFromMeta, ArgsStoryFn, BaseAnnotations, ProjectAnnotations as BaseProjectAnnotations, BeforeAll, BeforeEach, Canvas, CleanupCallback, ComponentAnnotations, ComponentId, ComponentTitle, Conditional, DecoratorApplicator, DecoratorFunction, GlobalTypes, Globals, IncludeExcludeOptions, InputType, LegacyAnnotatedStoryFn, LegacyStoryAnnotationsOrFn, LegacyStoryFn, LoaderFunction, Parameters, PartialStoryFn, PlayFunction, PlayFunctionContext, Renderer, SBArrayType, SBEnumType, SBIntersectionType, SBObjectType, SBOtherType, SBScalarType, SBType, SBUnionType, SeparatorOptions, StepFunction, StepLabel, StepRunner, StoryAnnotations, StoryAnnotationsOrFn, StoryContext, StoryContextForEnhancers, StoryContextForLoaders, StoryContextUpdate, StoryFn, StoryId, StoryIdentifier, StoryKind, StoryName, StrictArgTypes, StrictArgs, StrictGlobalTypes, StrictInputType, Tag } from 'storybook/internal/csf';
|
|
2
|
+
export { AfterEach, AnnotatedStoryFn, ArgTypes, ArgTypesEnhancer, Args, ArgsEnhancer, ArgsFromMeta, ArgsStoryFn, BaseAnnotations, ProjectAnnotations as BaseProjectAnnotations, BeforeAll, BeforeEach, Canvas, CleanupCallback, ComponentAnnotations, ComponentId, ComponentTitle, Conditional, DecoratorApplicator, DecoratorFunction, GlobalTypes, Globals, IncludeExcludeOptions, InputType, LegacyAnnotatedStoryFn, LegacyStoryAnnotationsOrFn, LegacyStoryFn, LoaderFunction, Parameters, PartialStoryFn, PlayFunction, PlayFunctionContext, Renderer, SBArrayType, SBEnumType, SBIntersectionType, SBObjectType, SBOtherType, SBScalarType, SBType, SBUnionType, SeparatorOptions, StepFunction, StepLabel, StepRunner, StoryAnnotations, StoryAnnotationsOrFn, StoryContext, StoryContextForEnhancers, StoryContextForLoaders, StoryContextUpdate, StoryFn, StoryId, StoryIdentifier, StoryKind, StoryName, StrictArgTypes, StrictArgs, StrictGlobalTypes, StrictInputType, Tag, TestFunction } from 'storybook/internal/csf';
|
|
3
3
|
import { ReactElement, FC, ReactNode, PropsWithChildren } from 'react';
|
|
4
4
|
import { RouterData as RouterData$1 } from 'storybook/internal/router';
|
|
5
5
|
import { Globals, GlobalTypes, API_Layout as API_Layout$1, API_LayoutCustomisations as API_LayoutCustomisations$1, API_UI as API_UI$1, API_Notification as API_Notification$1, API_Refs as API_Refs$1, API_Settings as API_Settings$1, API_LoadedRefData as API_LoadedRefData$1, StoryId, API_PreparedStoryIndex as API_PreparedStoryIndex$1, API_ViewMode as API_ViewMode$1, API_FilterFunction as API_FilterFunction$1, API_Versions as API_Versions$2, API_UnknownEntries as API_UnknownEntries$1, API_OptionsData as API_OptionsData$1, NormalizedProjectAnnotations as NormalizedProjectAnnotations$1, ProjectAnnotations as ProjectAnnotations$2, ComposedStoryFn as ComposedStoryFn$1 } from 'storybook/internal/types';
|
|
@@ -2064,6 +2064,9 @@ interface BaseIndexEntry {
|
|
|
2064
2064
|
}
|
|
2065
2065
|
type StoryIndexEntry = BaseIndexEntry & {
|
|
2066
2066
|
type: 'story';
|
|
2067
|
+
subtype: 'story' | 'test';
|
|
2068
|
+
parent?: StoryId$1;
|
|
2069
|
+
parentName?: StoryName;
|
|
2067
2070
|
};
|
|
2068
2071
|
type DocsIndexEntry = BaseIndexEntry & {
|
|
2069
2072
|
storiesImports: Path[];
|
|
@@ -2073,6 +2076,7 @@ type IndexEntry = StoryIndexEntry | DocsIndexEntry;
|
|
|
2073
2076
|
interface IndexInputStats {
|
|
2074
2077
|
loaders?: boolean;
|
|
2075
2078
|
play?: boolean;
|
|
2079
|
+
tests?: boolean;
|
|
2076
2080
|
render?: boolean;
|
|
2077
2081
|
storyFn?: boolean;
|
|
2078
2082
|
mount?: boolean;
|
|
@@ -2116,6 +2120,9 @@ type BaseIndexInput = {
|
|
|
2116
2120
|
/** The input for indexing a story entry. */
|
|
2117
2121
|
type StoryIndexInput = BaseIndexInput & {
|
|
2118
2122
|
type: 'story';
|
|
2123
|
+
subtype: 'story' | 'test';
|
|
2124
|
+
parent?: StoryId$1;
|
|
2125
|
+
parentName?: StoryName;
|
|
2119
2126
|
};
|
|
2120
2127
|
/** The input for indexing a docs entry. */
|
|
2121
2128
|
type DocsIndexInput = BaseIndexInput & {
|
|
@@ -2124,7 +2131,7 @@ type DocsIndexInput = BaseIndexInput & {
|
|
|
2124
2131
|
storiesImports?: Path[];
|
|
2125
2132
|
};
|
|
2126
2133
|
type IndexInput = StoryIndexInput | DocsIndexInput;
|
|
2127
|
-
interface V3CompatIndexEntry extends Omit<StoryIndexEntry, 'type' | 'tags'> {
|
|
2134
|
+
interface V3CompatIndexEntry extends Omit<StoryIndexEntry, 'type' | 'tags' | 'subtype'> {
|
|
2128
2135
|
kind: ComponentTitle;
|
|
2129
2136
|
story: StoryName;
|
|
2130
2137
|
parameters: Parameters;
|
|
@@ -2394,6 +2401,8 @@ interface TestBuildConfig {
|
|
|
2394
2401
|
}
|
|
2395
2402
|
type Tag = string;
|
|
2396
2403
|
interface TagOptions {
|
|
2404
|
+
/** Visually include or exclude stories with this tag in the sidebar by default */
|
|
2405
|
+
defaultFilterSelection?: 'include' | 'exclude';
|
|
2397
2406
|
excludeFromSidebar: boolean;
|
|
2398
2407
|
excludeFromDocsStories: boolean;
|
|
2399
2408
|
}
|
|
@@ -2668,7 +2677,7 @@ interface API_BaseEntry {
|
|
|
2668
2677
|
name: string;
|
|
2669
2678
|
tags: Tag$1[];
|
|
2670
2679
|
refId?: string;
|
|
2671
|
-
renderLabel?: (item:
|
|
2680
|
+
renderLabel?: (item: API_HashEntry, api: any) => any;
|
|
2672
2681
|
}
|
|
2673
2682
|
interface API_RootEntry extends API_BaseEntry {
|
|
2674
2683
|
type: 'root';
|
|
@@ -2684,6 +2693,7 @@ interface API_ComponentEntry extends API_BaseEntry {
|
|
|
2684
2693
|
type: 'component';
|
|
2685
2694
|
parent?: StoryId$1;
|
|
2686
2695
|
children: StoryId$1[];
|
|
2696
|
+
importPath?: Path;
|
|
2687
2697
|
}
|
|
2688
2698
|
interface API_DocsEntry extends API_BaseEntry {
|
|
2689
2699
|
type: 'docs';
|
|
@@ -2697,6 +2707,7 @@ interface API_DocsEntry extends API_BaseEntry {
|
|
|
2697
2707
|
}
|
|
2698
2708
|
interface API_StoryEntry extends API_BaseEntry {
|
|
2699
2709
|
type: 'story';
|
|
2710
|
+
subtype: 'story';
|
|
2700
2711
|
parent: StoryId$1;
|
|
2701
2712
|
title: ComponentTitle;
|
|
2702
2713
|
importPath: Path;
|
|
@@ -2708,9 +2719,13 @@ interface API_StoryEntry extends API_BaseEntry {
|
|
|
2708
2719
|
args?: Args;
|
|
2709
2720
|
argTypes?: ArgTypes;
|
|
2710
2721
|
initialArgs?: Args;
|
|
2722
|
+
children?: StoryId$1[];
|
|
2723
|
+
}
|
|
2724
|
+
interface API_TestEntry extends Omit<API_StoryEntry, 'subtype' | 'children'> {
|
|
2725
|
+
subtype: 'test';
|
|
2711
2726
|
}
|
|
2712
|
-
type API_LeafEntry = API_DocsEntry | API_StoryEntry;
|
|
2713
|
-
type API_HashEntry = API_RootEntry | API_GroupEntry | API_ComponentEntry | API_DocsEntry | API_StoryEntry;
|
|
2727
|
+
type API_LeafEntry = API_DocsEntry | API_StoryEntry | API_TestEntry;
|
|
2728
|
+
type API_HashEntry = API_RootEntry | API_GroupEntry | API_ComponentEntry | API_DocsEntry | API_StoryEntry | API_TestEntry;
|
|
2714
2729
|
/**
|
|
2715
2730
|
* The `IndexHash` is our manager-side representation of the `StoryIndex`. We create entries in the
|
|
2716
2731
|
* hash not only for each story or docs entry, but also for each "group" of the component (split on
|
|
@@ -2880,6 +2895,7 @@ interface API_Layout {
|
|
|
2880
2895
|
showToolbar: boolean;
|
|
2881
2896
|
}
|
|
2882
2897
|
interface API_LayoutCustomisations {
|
|
2898
|
+
showPanel?: (state: State, defaultValue: boolean) => boolean | undefined;
|
|
2883
2899
|
showSidebar?: (state: State, defaultValue: boolean) => boolean | undefined;
|
|
2884
2900
|
showToolbar?: (state: State, defaultValue: boolean) => boolean | undefined;
|
|
2885
2901
|
}
|
|
@@ -3297,7 +3313,8 @@ interface Addon_ToolbarConfig {
|
|
|
3297
3313
|
}
|
|
3298
3314
|
interface Addon_Config {
|
|
3299
3315
|
theme?: ThemeVars;
|
|
3300
|
-
|
|
3316
|
+
layoutCustomisations?: {
|
|
3317
|
+
showPanel?: API_LayoutCustomisations['showPanel'];
|
|
3301
3318
|
showSidebar?: API_LayoutCustomisations['showSidebar'];
|
|
3302
3319
|
showToolbar?: API_LayoutCustomisations['showToolbar'];
|
|
3303
3320
|
};
|
|
@@ -3593,4 +3610,4 @@ type SupportedFrameworks = 'angular' | 'ember' | 'html-vite' | 'nextjs' | 'nextj
|
|
|
3593
3610
|
|
|
3594
3611
|
type SupportedRenderers = 'react' | 'react-native' | 'vue3' | 'angular' | 'ember' | 'preact' | 'svelte' | 'qwik' | 'html' | 'web-components' | 'server' | 'solid' | 'nuxt';
|
|
3595
3612
|
|
|
3596
|
-
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_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 ComposeStoryFn, type ComposedStoryFn, type CoreCommon_AddonEntry, type CoreCommon_AddonInfo, type CoreCommon_OptionsEntry, type CoreCommon_ResolvedAddonPreset, type CoreCommon_ResolvedAddonVirtual, type CoreCommon_StorybookInfo, type CoreConfig, type DocsContextProps, type DocsIndexEntry, type DocsIndexInput, type DocsOptions, type DocsPreparedPayload, type DocsRenderFunction, type Entry, type Event, type EventInfo, type GlobalsUpdatedPayload, type IndexEntry, type IndexEntryLegacy, type IndexInput, type IndexInputStats, type IndexedCSFFile, type IndexedStory, type Indexer, type IndexerOptions, type LoadOptions, type LoadedPreset, 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 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, type SupportedFrameworks, type SupportedRenderers, 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 };
|
|
3613
|
+
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 ComposeStoryFn, type ComposedStoryFn, type CoreCommon_AddonEntry, type CoreCommon_AddonInfo, type CoreCommon_OptionsEntry, type CoreCommon_ResolvedAddonPreset, type CoreCommon_ResolvedAddonVirtual, type CoreCommon_StorybookInfo, type CoreConfig, type DocsContextProps, type DocsIndexEntry, type DocsIndexInput, type DocsOptions, type DocsPreparedPayload, type DocsRenderFunction, type Entry, type Event, type EventInfo, type GlobalsUpdatedPayload, type IndexEntry, type IndexEntryLegacy, type IndexInput, type IndexInputStats, type IndexedCSFFile, type IndexedStory, type Indexer, type IndexerOptions, type LoadOptions, type LoadedPreset, 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 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, type SupportedFrameworks, type SupportedRenderers, 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
|
@@ -60,7 +60,7 @@ interface ViewportTypes {
|
|
|
60
60
|
globals: ViewportGlobals;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
declare const
|
|
63
|
+
declare const INITIAL_VIEWPORTS: {
|
|
64
64
|
readonly iphone5: {
|
|
65
65
|
readonly name: "iPhone 5";
|
|
66
66
|
readonly styles: {
|
|
@@ -286,10 +286,42 @@ declare const INITIAL_VIEWPORTS_DATA: {
|
|
|
286
286
|
readonly type: "mobile";
|
|
287
287
|
};
|
|
288
288
|
};
|
|
289
|
-
type InitialViewportKeys = keyof typeof
|
|
290
|
-
declare const INITIAL_VIEWPORTS: ViewportMap;
|
|
289
|
+
type InitialViewportKeys = keyof typeof INITIAL_VIEWPORTS;
|
|
291
290
|
declare const DEFAULT_VIEWPORT = "responsive";
|
|
292
|
-
declare const MINIMAL_VIEWPORTS:
|
|
291
|
+
declare const MINIMAL_VIEWPORTS: {
|
|
292
|
+
readonly mobile1: {
|
|
293
|
+
readonly name: "Small mobile";
|
|
294
|
+
readonly styles: {
|
|
295
|
+
readonly height: "568px";
|
|
296
|
+
readonly width: "320px";
|
|
297
|
+
};
|
|
298
|
+
readonly type: "mobile";
|
|
299
|
+
};
|
|
300
|
+
readonly mobile2: {
|
|
301
|
+
readonly name: "Large mobile";
|
|
302
|
+
readonly styles: {
|
|
303
|
+
readonly height: "896px";
|
|
304
|
+
readonly width: "414px";
|
|
305
|
+
};
|
|
306
|
+
readonly type: "mobile";
|
|
307
|
+
};
|
|
308
|
+
readonly tablet: {
|
|
309
|
+
readonly name: "Tablet";
|
|
310
|
+
readonly styles: {
|
|
311
|
+
readonly height: "1112px";
|
|
312
|
+
readonly width: "834px";
|
|
313
|
+
};
|
|
314
|
+
readonly type: "tablet";
|
|
315
|
+
};
|
|
316
|
+
readonly desktop: {
|
|
317
|
+
readonly name: "Desktop";
|
|
318
|
+
readonly styles: {
|
|
319
|
+
readonly height: "1024px";
|
|
320
|
+
readonly width: "1280px";
|
|
321
|
+
};
|
|
322
|
+
readonly type: "desktop";
|
|
323
|
+
};
|
|
324
|
+
};
|
|
293
325
|
|
|
294
326
|
declare const responsiveViewport: Viewport;
|
|
295
327
|
|
package/dist/viewport/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0v1evul49qdo from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0v1evul49qdo from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0v1evul49qdo.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
camelCase
|
|
14
|
-
} from "./chunk-A7CUP23N.js";
|
|
15
|
-
import "./chunk-XZTBG2TG.js";
|
|
16
|
-
export {
|
|
17
|
-
camelCase as default
|
|
18
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0v1evul49qdo from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0v1evul49qdo from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0v1evul49qdo.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// src/common/versions.ts
|
|
14
|
-
var versions_default = {
|
|
15
|
-
"@storybook/addon-a11y": "10.0.0-beta.6",
|
|
16
|
-
"@storybook/addon-docs": "10.0.0-beta.6",
|
|
17
|
-
"@storybook/addon-jest": "10.0.0-beta.6",
|
|
18
|
-
"@storybook/addon-links": "10.0.0-beta.6",
|
|
19
|
-
"@storybook/addon-onboarding": "10.0.0-beta.6",
|
|
20
|
-
"storybook-addon-pseudo-states": "10.0.0-beta.6",
|
|
21
|
-
"@storybook/addon-themes": "10.0.0-beta.6",
|
|
22
|
-
"@storybook/addon-vitest": "10.0.0-beta.6",
|
|
23
|
-
"@storybook/builder-vite": "10.0.0-beta.6",
|
|
24
|
-
"@storybook/builder-webpack5": "10.0.0-beta.6",
|
|
25
|
-
storybook: "10.0.0-beta.6",
|
|
26
|
-
"@storybook/angular": "10.0.0-beta.6",
|
|
27
|
-
"@storybook/ember": "10.0.0-beta.6",
|
|
28
|
-
"@storybook/html-vite": "10.0.0-beta.6",
|
|
29
|
-
"@storybook/nextjs": "10.0.0-beta.6",
|
|
30
|
-
"@storybook/nextjs-vite": "10.0.0-beta.6",
|
|
31
|
-
"@storybook/preact-vite": "10.0.0-beta.6",
|
|
32
|
-
"@storybook/react-native-web-vite": "10.0.0-beta.6",
|
|
33
|
-
"@storybook/react-vite": "10.0.0-beta.6",
|
|
34
|
-
"@storybook/react-webpack5": "10.0.0-beta.6",
|
|
35
|
-
"@storybook/server-webpack5": "10.0.0-beta.6",
|
|
36
|
-
"@storybook/svelte-vite": "10.0.0-beta.6",
|
|
37
|
-
"@storybook/sveltekit": "10.0.0-beta.6",
|
|
38
|
-
"@storybook/vue3-vite": "10.0.0-beta.6",
|
|
39
|
-
"@storybook/web-components-vite": "10.0.0-beta.6",
|
|
40
|
-
sb: "10.0.0-beta.6",
|
|
41
|
-
"@storybook/cli": "10.0.0-beta.6",
|
|
42
|
-
"@storybook/codemod": "10.0.0-beta.6",
|
|
43
|
-
"@storybook/core-webpack": "10.0.0-beta.6",
|
|
44
|
-
"create-storybook": "10.0.0-beta.6",
|
|
45
|
-
"@storybook/csf-plugin": "10.0.0-beta.6",
|
|
46
|
-
"eslint-plugin-storybook": "10.0.0-beta.6",
|
|
47
|
-
"@storybook/react-dom-shim": "10.0.0-beta.6",
|
|
48
|
-
"@storybook/preset-create-react-app": "10.0.0-beta.6",
|
|
49
|
-
"@storybook/preset-react-webpack": "10.0.0-beta.6",
|
|
50
|
-
"@storybook/preset-server-webpack": "10.0.0-beta.6",
|
|
51
|
-
"@storybook/html": "10.0.0-beta.6",
|
|
52
|
-
"@storybook/preact": "10.0.0-beta.6",
|
|
53
|
-
"@storybook/react": "10.0.0-beta.6",
|
|
54
|
-
"@storybook/server": "10.0.0-beta.6",
|
|
55
|
-
"@storybook/svelte": "10.0.0-beta.6",
|
|
56
|
-
"@storybook/vue3": "10.0.0-beta.6",
|
|
57
|
-
"@storybook/web-components": "10.0.0-beta.6"
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export {
|
|
61
|
-
versions_default
|
|
62
|
-
};
|