storybook 10.1.0-alpha.3 → 10.1.0-alpha.5
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-C4XOKMDU.js → chunk-OWPZQM2D.js} +6 -3
- package/dist/_node-chunks/{builder-manager-GBWCUYRR.js → builder-manager-HXWPSC26.js} +13 -12
- package/dist/_node-chunks/camelcase-EPBTPRKM.js +18 -0
- package/dist/_node-chunks/chunk-5J4A3TMT.js +61 -0
- package/dist/_node-chunks/{chunk-YFBIEJ33.js → chunk-5N5IOGP5.js} +7 -7
- package/dist/_node-chunks/{chunk-JKWP2FKQ.js → chunk-6PMHAMVH.js} +7 -7
- package/dist/_node-chunks/{chunk-GMO24NTJ.js → chunk-AGAEDIW3.js} +7 -7
- package/dist/_node-chunks/{chunk-2JHIUWIN.js → chunk-ALUDPZO7.js} +7 -7
- package/dist/_node-chunks/{chunk-TZ7GUTJ4.js → chunk-B2ZH4DAZ.js} +7 -7
- package/dist/_node-chunks/{chunk-YJJWZPL7.js → chunk-BI2ELK6M.js} +36 -43
- package/dist/_node-chunks/{chunk-NYXHMPY4.js → chunk-BTM6MC3G.js} +7 -7
- package/dist/_node-chunks/{chunk-AX2PCJZ2.js → chunk-BXVT2NM5.js} +6 -6
- package/dist/_node-chunks/{chunk-NTX43F34.js → chunk-C7ZCWXID.js} +7 -7
- package/dist/_node-chunks/{chunk-5X7FGASE.js → chunk-CACFLAKV.js} +7 -7
- package/dist/_node-chunks/{chunk-5KDXQR2J.js → chunk-CPKCCBQ2.js} +7 -7
- package/dist/_node-chunks/{chunk-MDXYV4OF.js → chunk-E4M5YSPI.js} +15 -15
- package/dist/_node-chunks/{chunk-RLMJDF6S.js → chunk-ENL6NO7V.js} +8 -8
- package/dist/_node-chunks/{chunk-BNO5FB6B.js → chunk-F74NOPTY.js} +8 -8
- package/dist/_node-chunks/{chunk-HH57J4TX.js → chunk-GHP33MSW.js} +8 -8
- package/dist/_node-chunks/{chunk-TDLKTACT.js → chunk-H7C65LNN.js} +7 -7
- package/dist/_node-chunks/{chunk-C4UVY6FF.js → chunk-I7KSYHUC.js} +7 -7
- package/dist/_node-chunks/{chunk-SQAKXWVV.js → chunk-IQY7L7HV.js} +7 -7
- package/dist/_node-chunks/{chunk-ZQY3BNST.js → chunk-LNNX4NF3.js} +12 -12
- package/dist/_node-chunks/{chunk-N7XYNLCJ.js → chunk-MK7DAIA6.js} +7 -7
- package/dist/_node-chunks/{chunk-NCHBSJG3.js → chunk-MRNEYOX6.js} +21 -21
- package/dist/_node-chunks/{chunk-CKXP5RYA.js → chunk-N6PPZW7K.js} +9 -9
- package/dist/_node-chunks/{chunk-APKZWRTX.js → chunk-NAJMTFFS.js} +7 -7
- package/dist/_node-chunks/{chunk-TSKLBMF3.js → chunk-NBNSA2WK.js} +8 -8
- package/dist/_node-chunks/{chunk-B63HGQAB.js → chunk-PNFSTYNY.js} +9 -9
- package/dist/_node-chunks/{chunk-MPUDYIDW.js → chunk-R4SSZN6U.js} +7 -7
- package/dist/_node-chunks/{chunk-6U2QTN2E.js → chunk-TCQ4YEBJ.js} +7 -7
- package/dist/_node-chunks/{chunk-S32G4TCP.js → chunk-TKJXOGPC.js} +7 -7
- package/dist/_node-chunks/{chunk-FJWQKOXX.js → chunk-VGEK4ULN.js} +10 -10
- package/dist/_node-chunks/{chunk-NTH76OZA.js → chunk-Y3HWBQFU.js} +12 -12
- package/dist/_node-chunks/chunk-YEG4ZWC4.js +18 -0
- package/dist/_node-chunks/{chunk-T7KB265F.js → chunk-ZHTORJLU.js} +6 -6
- package/dist/_node-chunks/{dist-SQENNWFY.js → dist-5OMEVXWG.js} +9 -9
- package/dist/_node-chunks/{globby-CVPDLQ5Z.js → globby-JOCJRFYY.js} +9 -9
- package/dist/_node-chunks/{lib-4BTTMYE2.js → lib-DK7FCOVF.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-ENVHI6CC.js → mdx-N42X6CFJ-2ORYN25H.js} +8 -8
- package/dist/_node-chunks/{p-limit-I2XW6GST.js → p-limit-ORC5I6UZ.js} +7 -7
- package/dist/_node-chunks/{plugin-O5PHZ367.js → plugin-CSHCSNVB.js} +10 -10
- package/dist/_node-chunks/{plugin-4NIE24IO.js → plugin-UGAK7KQM.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-SVBN7WFH.js → webpack-inject-mocker-runtime-plugin-QALMSMBH.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-XBV3VXVD.js → webpack-mock-plugin-OI4E4SOX.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 +9 -9
- package/dist/cli/index.js +21 -21
- package/dist/common/index.js +20 -20
- package/dist/components/index.js +5744 -73
- package/dist/core-server/index.js +418 -251
- package/dist/core-server/presets/common-manager.js +14 -20
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +23 -23
- 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.js +2 -2
- package/dist/csf-tools/index.d.ts +7 -0
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +9 -5
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +19 -19
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/preview-api/index.js +5 -5
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/theming/create.d.ts +3 -2
- package/dist/theming/create.js +1 -1
- package/dist/theming/index.d.ts +5 -3
- package/dist/theming/index.js +2 -1
- package/dist/types/index.d.ts +4 -2
- package/package.json +1 -1
- package/dist/_browser-chunks/chunk-B3S3ROIP.js +0 -5810
- package/dist/_node-chunks/camelcase-2N6MD2HZ.js +0 -18
- package/dist/_node-chunks/chunk-D3NGJQDZ.js +0 -18
- package/dist/_node-chunks/chunk-LPNJ7PJY.js +0 -61
- package/dist/_browser-chunks/{chunk-W4QKLQSC.js → chunk-RW5PKMWM.js} +5 -5
- package/dist/_browser-chunks/{syntaxhighlighter-DK2ODWXH.js → syntaxhighlighter-CAVLW7PM.js} +4 -4
|
@@ -1,6 +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 * as storybook_internal_csf from 'storybook/internal/csf';
|
|
4
5
|
import { Story, Meta, CleanupCallback, StoryContext as StoryContext$1, Args as Args$1 } from 'storybook/internal/csf';
|
|
5
6
|
import { RequestData, ArgTypesRequestPayload } from 'storybook/internal/core-events';
|
|
6
7
|
|
|
@@ -415,7 +416,7 @@ declare function createPlaywrightTest<TFixture extends {
|
|
|
415
416
|
}>(baseTest: TFixture): TFixture;
|
|
416
417
|
|
|
417
418
|
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:
|
|
419
|
+
story: storybook_internal_csf.StoryAnnotations<Renderer, unknown>;
|
|
419
420
|
meta: ComponentAnnotations<Renderer, unknown>;
|
|
420
421
|
preview: storybook_internal_types.NormalizedProjectAnnotations<Renderer>;
|
|
421
422
|
} | {
|
|
@@ -477,10 +478,10 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
477
478
|
getStoryContext(story: PreparedStory<TRenderer>, { forceInitialArgs }?: {
|
|
478
479
|
forceInitialArgs?: boolean | undefined;
|
|
479
480
|
}): {
|
|
480
|
-
args:
|
|
481
|
-
initialGlobals:
|
|
482
|
-
globalTypes: (
|
|
483
|
-
userGlobals:
|
|
481
|
+
args: storybook_internal_csf.Args;
|
|
482
|
+
initialGlobals: storybook_internal_csf.Globals;
|
|
483
|
+
globalTypes: (storybook_internal_csf.GlobalTypes & storybook_internal_csf.StrictGlobalTypes) | undefined;
|
|
484
|
+
userGlobals: storybook_internal_csf.Globals;
|
|
484
485
|
reporting: ReporterAPI;
|
|
485
486
|
globals: {
|
|
486
487
|
[x: string]: any;
|
|
@@ -492,31 +493,31 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
492
493
|
subcomponents?: Record<string, (TRenderer & {
|
|
493
494
|
T: any;
|
|
494
495
|
})["component"]> | undefined;
|
|
495
|
-
parameters:
|
|
496
|
-
initialArgs:
|
|
497
|
-
argTypes:
|
|
498
|
-
componentId:
|
|
499
|
-
title:
|
|
500
|
-
kind:
|
|
496
|
+
parameters: storybook_internal_csf.Parameters;
|
|
497
|
+
initialArgs: storybook_internal_csf.Args;
|
|
498
|
+
argTypes: storybook_internal_csf.StrictArgTypes<storybook_internal_csf.Args>;
|
|
499
|
+
componentId: storybook_internal_csf.ComponentId;
|
|
500
|
+
title: storybook_internal_csf.ComponentTitle;
|
|
501
|
+
kind: storybook_internal_csf.ComponentTitle;
|
|
501
502
|
id: StoryId;
|
|
502
|
-
name:
|
|
503
|
-
story:
|
|
504
|
-
tags:
|
|
503
|
+
name: storybook_internal_csf.StoryName;
|
|
504
|
+
story: storybook_internal_csf.StoryName;
|
|
505
|
+
tags: storybook_internal_csf.Tag[];
|
|
505
506
|
moduleExport: storybook_internal_types.ModuleExport;
|
|
506
|
-
originalStoryFn:
|
|
507
|
-
undecoratedStoryFn:
|
|
508
|
-
unboundStoryFn:
|
|
509
|
-
applyLoaders: (context:
|
|
510
|
-
applyBeforeEach: (context:
|
|
511
|
-
applyAfterEach: (context:
|
|
512
|
-
playFunction?: ((context:
|
|
513
|
-
runStep:
|
|
514
|
-
mount: (context:
|
|
507
|
+
originalStoryFn: storybook_internal_csf.ArgsStoryFn<TRenderer>;
|
|
508
|
+
undecoratedStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
509
|
+
unboundStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
510
|
+
applyLoaders: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<Record<string, any>>;
|
|
511
|
+
applyBeforeEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<CleanupCallback[]>;
|
|
512
|
+
applyAfterEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void>;
|
|
513
|
+
playFunction?: ((context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void> | void) | undefined;
|
|
514
|
+
runStep: storybook_internal_csf.StepRunner<TRenderer>;
|
|
515
|
+
mount: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => () => Promise<storybook_internal_csf.Canvas>;
|
|
515
516
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
516
517
|
renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
|
|
517
518
|
usesMount: boolean;
|
|
518
|
-
storyGlobals:
|
|
519
|
-
} & Pick<
|
|
519
|
+
storyGlobals: storybook_internal_csf.Globals;
|
|
520
|
+
} & Pick<storybook_internal_csf.StoryContextForLoaders<Renderer, storybook_internal_csf.Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
|
|
520
521
|
addCleanupCallbacks(story: PreparedStory<TRenderer>, ...callbacks: CleanupCallback[]): void;
|
|
521
522
|
cleanupStory(story: PreparedStory<TRenderer>): Promise<void>;
|
|
522
523
|
extract(options?: {
|
|
@@ -532,7 +533,7 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
532
533
|
declare const combineParameters: (...parameterSets: (Parameters | undefined)[]) => Parameters;
|
|
533
534
|
|
|
534
535
|
type PropDescriptor = string[] | RegExp;
|
|
535
|
-
declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<
|
|
536
|
+
declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<storybook_internal_csf.Args>>;
|
|
536
537
|
|
|
537
538
|
declare const inferControls: ArgTypesEnhancer<Renderer>;
|
|
538
539
|
|
|
@@ -582,10 +583,10 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
|
|
|
582
583
|
getStoryContext: (story: PreparedStory<TRenderer>) => {
|
|
583
584
|
loaded: {};
|
|
584
585
|
viewMode: string;
|
|
585
|
-
args:
|
|
586
|
-
initialGlobals:
|
|
587
|
-
globalTypes: (
|
|
588
|
-
userGlobals:
|
|
586
|
+
args: storybook_internal_csf.Args;
|
|
587
|
+
initialGlobals: storybook_internal_csf.Globals;
|
|
588
|
+
globalTypes: (storybook_internal_csf.GlobalTypes & storybook_internal_csf.StrictGlobalTypes) | undefined;
|
|
589
|
+
userGlobals: storybook_internal_csf.Globals;
|
|
589
590
|
reporting: ReporterAPI;
|
|
590
591
|
globals: {
|
|
591
592
|
[x: string]: any;
|
|
@@ -597,30 +598,30 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
|
|
|
597
598
|
subcomponents?: Record<string, (TRenderer & {
|
|
598
599
|
T: any;
|
|
599
600
|
})["component"]> | undefined;
|
|
600
|
-
parameters:
|
|
601
|
-
initialArgs:
|
|
602
|
-
argTypes:
|
|
603
|
-
componentId:
|
|
604
|
-
title:
|
|
605
|
-
kind:
|
|
601
|
+
parameters: storybook_internal_csf.Parameters;
|
|
602
|
+
initialArgs: storybook_internal_csf.Args;
|
|
603
|
+
argTypes: storybook_internal_csf.StrictArgTypes<storybook_internal_csf.Args>;
|
|
604
|
+
componentId: storybook_internal_csf.ComponentId;
|
|
605
|
+
title: storybook_internal_csf.ComponentTitle;
|
|
606
|
+
kind: storybook_internal_csf.ComponentTitle;
|
|
606
607
|
id: StoryId;
|
|
607
608
|
name: StoryName;
|
|
608
609
|
story: StoryName;
|
|
609
|
-
tags:
|
|
610
|
+
tags: storybook_internal_csf.Tag[];
|
|
610
611
|
moduleExport: ModuleExport;
|
|
611
|
-
originalStoryFn:
|
|
612
|
-
undecoratedStoryFn:
|
|
613
|
-
unboundStoryFn:
|
|
614
|
-
applyLoaders: (context:
|
|
615
|
-
applyBeforeEach: (context:
|
|
616
|
-
applyAfterEach: (context:
|
|
617
|
-
playFunction?: ((context:
|
|
618
|
-
runStep:
|
|
619
|
-
mount: (context:
|
|
612
|
+
originalStoryFn: storybook_internal_csf.ArgsStoryFn<TRenderer>;
|
|
613
|
+
undecoratedStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
614
|
+
unboundStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
615
|
+
applyLoaders: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<Record<string, any>>;
|
|
616
|
+
applyBeforeEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<storybook_internal_csf.CleanupCallback[]>;
|
|
617
|
+
applyAfterEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void>;
|
|
618
|
+
playFunction?: ((context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void> | void) | undefined;
|
|
619
|
+
runStep: storybook_internal_csf.StepRunner<TRenderer>;
|
|
620
|
+
mount: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => () => Promise<storybook_internal_csf.Canvas>;
|
|
620
621
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
621
622
|
renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
|
|
622
623
|
usesMount: boolean;
|
|
623
|
-
storyGlobals:
|
|
624
|
+
storyGlobals: storybook_internal_csf.Globals;
|
|
624
625
|
allArgs: any;
|
|
625
626
|
argsByTarget: any;
|
|
626
627
|
unmappedArgs: any;
|
|
@@ -842,7 +843,7 @@ declare class Preview<TRenderer extends Renderer> {
|
|
|
842
843
|
}): {
|
|
843
844
|
args: Args;
|
|
844
845
|
initialGlobals: Globals;
|
|
845
|
-
globalTypes: (
|
|
846
|
+
globalTypes: (storybook_internal_csf.GlobalTypes & storybook_internal_csf.StrictGlobalTypes) | undefined;
|
|
846
847
|
userGlobals: Globals;
|
|
847
848
|
reporting: ReporterAPI;
|
|
848
849
|
globals: {
|
|
@@ -855,34 +856,34 @@ declare class Preview<TRenderer extends Renderer> {
|
|
|
855
856
|
subcomponents?: Record<string, (TRenderer & {
|
|
856
857
|
T: any;
|
|
857
858
|
})["component"]> | undefined;
|
|
858
|
-
parameters:
|
|
859
|
+
parameters: storybook_internal_csf.Parameters;
|
|
859
860
|
initialArgs: Args;
|
|
860
|
-
argTypes:
|
|
861
|
-
componentId:
|
|
862
|
-
title:
|
|
863
|
-
kind:
|
|
861
|
+
argTypes: storybook_internal_csf.StrictArgTypes<Args>;
|
|
862
|
+
componentId: storybook_internal_csf.ComponentId;
|
|
863
|
+
title: storybook_internal_csf.ComponentTitle;
|
|
864
|
+
kind: storybook_internal_csf.ComponentTitle;
|
|
864
865
|
id: StoryId;
|
|
865
|
-
name:
|
|
866
|
-
story:
|
|
867
|
-
tags:
|
|
866
|
+
name: storybook_internal_csf.StoryName;
|
|
867
|
+
story: storybook_internal_csf.StoryName;
|
|
868
|
+
tags: storybook_internal_csf.Tag[];
|
|
868
869
|
moduleExport: storybook_internal_types.ModuleExport;
|
|
869
|
-
originalStoryFn:
|
|
870
|
-
undecoratedStoryFn:
|
|
871
|
-
unboundStoryFn:
|
|
872
|
-
applyLoaders: (context:
|
|
873
|
-
applyBeforeEach: (context:
|
|
874
|
-
applyAfterEach: (context:
|
|
875
|
-
playFunction?: ((context:
|
|
876
|
-
runStep:
|
|
877
|
-
mount: (context:
|
|
870
|
+
originalStoryFn: storybook_internal_csf.ArgsStoryFn<TRenderer>;
|
|
871
|
+
undecoratedStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
872
|
+
unboundStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
873
|
+
applyLoaders: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<Record<string, any>>;
|
|
874
|
+
applyBeforeEach: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<CleanupCallback[]>;
|
|
875
|
+
applyAfterEach: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<void>;
|
|
876
|
+
playFunction?: ((context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<void> | void) | undefined;
|
|
877
|
+
runStep: storybook_internal_csf.StepRunner<TRenderer>;
|
|
878
|
+
mount: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => () => Promise<storybook_internal_csf.Canvas>;
|
|
878
879
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
879
880
|
renderToCanvas?: RenderToCanvas<TRenderer> | undefined;
|
|
880
881
|
usesMount: boolean;
|
|
881
882
|
storyGlobals: Globals;
|
|
882
|
-
} & Pick<
|
|
883
|
+
} & Pick<storybook_internal_csf.StoryContextForLoaders<Renderer, Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
|
|
883
884
|
extract(options?: {
|
|
884
885
|
includeDocsOnly: boolean;
|
|
885
|
-
}): Promise<Record<string,
|
|
886
|
+
}): Promise<Record<string, storybook_internal_csf.StoryContextForEnhancers<TRenderer, Args>>>;
|
|
886
887
|
renderPreviewEntryError(reason: string, err: Error): void;
|
|
887
888
|
}
|
|
888
889
|
|
|
@@ -48,7 +48,11 @@ import {
|
|
|
48
48
|
useStoryContext,
|
|
49
49
|
userOrAutoTitle,
|
|
50
50
|
userOrAutoTitleFromSpecifier
|
|
51
|
-
} from "../_browser-chunks/chunk-
|
|
51
|
+
} from "../_browser-chunks/chunk-RW5PKMWM.js";
|
|
52
|
+
import {
|
|
53
|
+
pauseAnimations,
|
|
54
|
+
waitForAnimations
|
|
55
|
+
} from "../_browser-chunks/chunk-LYCSRYYR.js";
|
|
52
56
|
import "../_browser-chunks/chunk-Y3M7TW6K.js";
|
|
53
57
|
import {
|
|
54
58
|
combineParameters
|
|
@@ -57,10 +61,6 @@ import "../_browser-chunks/chunk-ZNRFDIVA.js";
|
|
|
57
61
|
import "../_browser-chunks/chunk-FUOHXXZT.js";
|
|
58
62
|
import "../_browser-chunks/chunk-AB7OOPUX.js";
|
|
59
63
|
import "../_browser-chunks/chunk-F4Q6SGTB.js";
|
|
60
|
-
import {
|
|
61
|
-
pauseAnimations,
|
|
62
|
-
waitForAnimations
|
|
63
|
-
} from "../_browser-chunks/chunk-LYCSRYYR.js";
|
|
64
64
|
import "../_browser-chunks/chunk-UTNZYD2N.js";
|
|
65
65
|
import "../_browser-chunks/chunk-FSBVR7H5.js";
|
|
66
66
|
import "../_browser-chunks/chunk-NVV6MIOE.js";
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_m7rjtu9xiiq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_m7rjtu9xiiq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_m7rjtu9xiiq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_m7rjtu9xiiq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_m7rjtu9xiiq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_m7rjtu9xiiq.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-N6PPZW7K.js";
|
|
43
|
+
import "./_node-chunks/chunk-TKJXOGPC.js";
|
|
44
|
+
import "./_node-chunks/chunk-ALUDPZO7.js";
|
|
45
|
+
import "./_node-chunks/chunk-ZHTORJLU.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_m7rjtu9xiiq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_m7rjtu9xiiq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_m7rjtu9xiiq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_m7rjtu9xiiq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_m7rjtu9xiiq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_m7rjtu9xiiq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -21,26 +21,26 @@ import {
|
|
|
21
21
|
sanitizeAddonName,
|
|
22
22
|
sanitizeError,
|
|
23
23
|
telemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_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-
|
|
24
|
+
} from "../_node-chunks/chunk-E4M5YSPI.js";
|
|
25
|
+
import "../_node-chunks/chunk-YEG4ZWC4.js";
|
|
26
|
+
import "../_node-chunks/chunk-MRNEYOX6.js";
|
|
27
|
+
import "../_node-chunks/chunk-B2ZH4DAZ.js";
|
|
28
|
+
import "../_node-chunks/chunk-5J4A3TMT.js";
|
|
29
|
+
import "../_node-chunks/chunk-GHP33MSW.js";
|
|
30
|
+
import "../_node-chunks/chunk-PNFSTYNY.js";
|
|
31
|
+
import "../_node-chunks/chunk-CPKCCBQ2.js";
|
|
32
32
|
import {
|
|
33
33
|
getPrecedingUpgrade
|
|
34
|
-
} from "../_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-
|
|
34
|
+
} from "../_node-chunks/chunk-IQY7L7HV.js";
|
|
35
|
+
import "../_node-chunks/chunk-CACFLAKV.js";
|
|
36
|
+
import "../_node-chunks/chunk-NBNSA2WK.js";
|
|
37
|
+
import "../_node-chunks/chunk-TCQ4YEBJ.js";
|
|
38
|
+
import "../_node-chunks/chunk-BTM6MC3G.js";
|
|
39
|
+
import "../_node-chunks/chunk-6PMHAMVH.js";
|
|
40
|
+
import "../_node-chunks/chunk-R4SSZN6U.js";
|
|
41
|
+
import "../_node-chunks/chunk-TKJXOGPC.js";
|
|
42
|
+
import "../_node-chunks/chunk-ALUDPZO7.js";
|
|
43
|
+
import "../_node-chunks/chunk-ZHTORJLU.js";
|
|
44
44
|
export {
|
|
45
45
|
addToGlobalContext,
|
|
46
46
|
cleanPaths,
|
package/dist/theming/create.d.ts
CHANGED
|
@@ -37,11 +37,12 @@ interface ThemeVarsColors {
|
|
|
37
37
|
gridCellSize?: number;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
interface Themes {
|
|
41
41
|
light: ThemeVars;
|
|
42
42
|
dark: ThemeVars;
|
|
43
43
|
normal: ThemeVars;
|
|
44
|
-
}
|
|
44
|
+
}
|
|
45
|
+
declare const themes: Themes;
|
|
45
46
|
interface Rest {
|
|
46
47
|
[key: string]: any;
|
|
47
48
|
}
|
package/dist/theming/create.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create,
|
|
3
3
|
themes
|
|
4
|
-
} from "../_browser-chunks/chunk-
|
|
4
|
+
} from "../_browser-chunks/chunk-OWPZQM2D.js";
|
|
5
5
|
import "../_browser-chunks/chunk-OBXWFEPB.js";
|
|
6
6
|
import "../_browser-chunks/chunk-MH6AXFXB.js";
|
|
7
7
|
import "../_browser-chunks/chunk-MM7DTO55.js";
|
package/dist/theming/index.d.ts
CHANGED
|
@@ -11907,11 +11907,12 @@ declare const createGlobal: ({ color, background, typography, }: {
|
|
|
11907
11907
|
typography: Typography;
|
|
11908
11908
|
}) => Return;
|
|
11909
11909
|
|
|
11910
|
-
|
|
11910
|
+
interface Themes {
|
|
11911
11911
|
light: ThemeVars;
|
|
11912
11912
|
dark: ThemeVars;
|
|
11913
11913
|
normal: ThemeVars;
|
|
11914
|
-
}
|
|
11914
|
+
}
|
|
11915
|
+
declare const themes: Themes;
|
|
11915
11916
|
interface Rest {
|
|
11916
11917
|
[key: string]: any;
|
|
11917
11918
|
}
|
|
@@ -11923,6 +11924,7 @@ declare const ensure: (input: ThemeVars) => StorybookTheme;
|
|
|
11923
11924
|
|
|
11924
11925
|
declare const lightenColor: (color: string) => string;
|
|
11925
11926
|
declare const darkenColor: (color: string) => string;
|
|
11927
|
+
declare const getPreferredColorScheme: () => "light" | "dark";
|
|
11926
11928
|
|
|
11927
11929
|
type FunctionInterpolationEnhanced<T = {}> = FunctionInterpolation<T & {
|
|
11928
11930
|
theme: StorybookTheme;
|
|
@@ -11933,7 +11935,7 @@ type InterpolationEnhanced<T = {}> = Interpolation<T & {
|
|
|
11933
11935
|
|
|
11934
11936
|
declare const ignoreSsrWarning = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";
|
|
11935
11937
|
|
|
11936
|
-
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, ignoreSsrWarning, isPropValid, jsx, keyframes, lightenColor as lighten, styled, themes, typography, useTheme, withTheme };
|
|
11938
|
+
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, typography, useTheme, withTheme };
|
|
11937
11939
|
|
|
11938
11940
|
|
|
11939
11941
|
interface Theme extends StorybookTheme {}
|
package/dist/theming/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
mkColor,
|
|
10
10
|
themes,
|
|
11
11
|
typography
|
|
12
|
-
} from "../_browser-chunks/chunk-
|
|
12
|
+
} from "../_browser-chunks/chunk-OWPZQM2D.js";
|
|
13
13
|
import {
|
|
14
14
|
curriedOpacify$1
|
|
15
15
|
} from "../_browser-chunks/chunk-OBXWFEPB.js";
|
|
@@ -2699,6 +2699,7 @@ export {
|
|
|
2699
2699
|
css,
|
|
2700
2700
|
darkenColor as darken,
|
|
2701
2701
|
ensure,
|
|
2702
|
+
getPreferredColorScheme,
|
|
2702
2703
|
ignoreSsrWarning,
|
|
2703
2704
|
isPropValid,
|
|
2704
2705
|
jsx,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2421,9 +2421,11 @@ interface ComponentManifest {
|
|
|
2421
2421
|
description?: string;
|
|
2422
2422
|
import?: string;
|
|
2423
2423
|
summary?: string;
|
|
2424
|
-
|
|
2424
|
+
stories: {
|
|
2425
2425
|
name: string;
|
|
2426
2426
|
snippet?: string;
|
|
2427
|
+
description?: string;
|
|
2428
|
+
summary?: string;
|
|
2427
2429
|
error?: {
|
|
2428
2430
|
name: string;
|
|
2429
2431
|
message: string;
|
|
@@ -2454,7 +2456,7 @@ interface StorybookConfigRaw {
|
|
|
2454
2456
|
*/
|
|
2455
2457
|
addons?: Preset[];
|
|
2456
2458
|
core?: CoreConfig;
|
|
2457
|
-
|
|
2459
|
+
experimental_componentManifestGenerator?: ComponentManifestGenerator;
|
|
2458
2460
|
experimental_enrichCsf?: CsfEnricher;
|
|
2459
2461
|
staticDirs?: (DirectoryMapping | string)[];
|
|
2460
2462
|
logLevel?: string;
|