storybook 10.1.0-alpha.2 → 10.1.0-alpha.4
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/_node-chunks/{builder-manager-XRIDLU42.js → builder-manager-P652CU5Z.js} +12 -12
- package/dist/_node-chunks/camelcase-VADCJSEY.js +18 -0
- package/dist/_node-chunks/{chunk-D43KJFPO.js → chunk-3GTBPTCZ.js} +7 -7
- package/dist/_node-chunks/chunk-3OPGVNKX.js +18 -0
- package/dist/_node-chunks/{chunk-QFET4WIW.js → chunk-5A6EYMRK.js} +6 -6
- package/dist/_node-chunks/{chunk-ZN2EDLIJ.js → chunk-5E5YDTCQ.js} +7 -7
- package/dist/_node-chunks/{chunk-FWBIPR34.js → chunk-5NGUGC3U.js} +7 -7
- package/dist/_node-chunks/{chunk-2L3QAN3W.js → chunk-6DHXOOK2.js} +7 -7
- package/dist/_node-chunks/{chunk-BB3ZKTWJ.js → chunk-6VWT3H7R.js} +7 -7
- package/dist/_node-chunks/{chunk-GWSFLQQQ.js → chunk-7332Y23R.js} +1466 -148
- package/dist/_node-chunks/{chunk-EKPHXLN6.js → chunk-7C52H6S6.js} +7 -7
- package/dist/_node-chunks/{chunk-BAE27Z3H.js → chunk-7NSBLADO.js} +8 -8
- package/dist/_node-chunks/{chunk-VEZ6C62C.js → chunk-BHHNQ5GJ.js} +36 -43
- package/dist/_node-chunks/{chunk-Q5JSLT56.js → chunk-CAKHJEH6.js} +7 -7
- package/dist/_node-chunks/{chunk-ZI3WVJBS.js → chunk-CPI4IKLK.js} +8 -8
- package/dist/_node-chunks/{chunk-QS5MMNF7.js → chunk-FMLH3V5B.js} +7 -7
- package/dist/_node-chunks/{chunk-HFHQNHRU.js → chunk-FU2KCZJG.js} +9 -9
- package/dist/_node-chunks/{chunk-RIPSSVT6.js → chunk-GDOIF7E6.js} +7 -7
- package/dist/_node-chunks/{chunk-IK3K67LJ.js → chunk-HPERTMWB.js} +7 -7
- package/dist/_node-chunks/{chunk-OM4TBMP7.js → chunk-ICT62CX5.js} +7 -7
- package/dist/_node-chunks/{chunk-5RN3IJGF.js → chunk-JS5I7ZY6.js} +7 -7
- package/dist/_node-chunks/{chunk-ZTHTAFLY.js → chunk-K3K6H2BF.js} +12 -12
- package/dist/_node-chunks/{chunk-RQKELEE4.js → chunk-LPBJHVNR.js} +7 -7
- package/dist/_node-chunks/{chunk-FI6CLUVL.js → chunk-OXPHRY7P.js} +15 -15
- package/dist/_node-chunks/{chunk-3AR5SJTX.js → chunk-PCXGFAQ3.js} +7 -7
- package/dist/_node-chunks/{chunk-6TX2TV3E.js → chunk-PW7ECOTU.js} +12 -12
- package/dist/_node-chunks/{chunk-BYQZFXRF.js → chunk-RFAREF3S.js} +8 -8
- package/dist/_node-chunks/{chunk-XVXUF5GE.js → chunk-T6VOUSIY.js} +7 -7
- package/dist/_node-chunks/{chunk-LJPS53G5.js → chunk-TFBHPN6J.js} +7 -7
- package/dist/_node-chunks/{chunk-S6RYOO4I.js → chunk-TXDBGO2X.js} +9 -9
- package/dist/_node-chunks/{chunk-RUJOX3JR.js → chunk-VAAX75EL.js} +6 -6
- package/dist/_node-chunks/chunk-VCC35ZLQ.js +61 -0
- package/dist/_node-chunks/{chunk-L5J4RBU5.js → chunk-XCTASIYK.js} +8 -8
- package/dist/_node-chunks/{chunk-WHOPLOGE.js → chunk-XPBE544K.js} +7 -7
- package/dist/_node-chunks/{chunk-6WXUZSNC.js → chunk-YXC7LAMZ.js} +10 -10
- package/dist/_node-chunks/{dist-Q25SOSXX.js → dist-MCOAOC3B.js} +9 -9
- package/dist/_node-chunks/{globby-I54LIY47.js → globby-L3NPKIS7.js} +9 -9
- package/dist/_node-chunks/{lib-KQD2WJWJ.js → lib-ITTSFFC5.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-CT3A7SBK.js → mdx-N42X6CFJ-YP4YCIZM.js} +8 -8
- package/dist/_node-chunks/{p-limit-2NBKFARM.js → p-limit-TTLWUU6D.js} +7 -7
- package/dist/_node-chunks/{plugin-RF5FICSG.js → plugin-C2OCVZYN.js} +10 -10
- package/dist/_node-chunks/{plugin-2CCCBGGB.js → plugin-OC5KWEJQ.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-RY56E77L.js → webpack-inject-mocker-runtime-plugin-IRAPT6HV.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-6VDFRSC4.js → webpack-mock-plugin-CFITLD44.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.d.ts +190 -2
- package/dist/common/index.js +26 -20
- package/dist/components/index.js +5744 -73
- package/dist/core-server/index.js +833 -46
- 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 +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +14 -14
- 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/types/index.d.ts +4 -2
- package/package.json +2 -1
- package/dist/_browser-chunks/chunk-B3S3ROIP.js +0 -5810
- package/dist/_node-chunks/camelcase-3IIGGJ6N.js +0 -18
- package/dist/_node-chunks/chunk-N3ZE2FCS.js +0 -61
- package/dist/_node-chunks/chunk-U6VJQXTG.js +0 -18
- 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_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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-FU2KCZJG.js";
|
|
43
|
+
import "./_node-chunks/chunk-HPERTMWB.js";
|
|
44
|
+
import "./_node-chunks/chunk-6DHXOOK2.js";
|
|
45
|
+
import "./_node-chunks/chunk-VAAX75EL.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_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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-OXPHRY7P.js";
|
|
25
|
+
import "../_node-chunks/chunk-3OPGVNKX.js";
|
|
26
|
+
import "../_node-chunks/chunk-7332Y23R.js";
|
|
27
|
+
import "../_node-chunks/chunk-T6VOUSIY.js";
|
|
28
|
+
import "../_node-chunks/chunk-VCC35ZLQ.js";
|
|
29
|
+
import "../_node-chunks/chunk-XCTASIYK.js";
|
|
30
|
+
import "../_node-chunks/chunk-TXDBGO2X.js";
|
|
31
|
+
import "../_node-chunks/chunk-PCXGFAQ3.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-ICT62CX5.js";
|
|
35
|
+
import "../_node-chunks/chunk-3GTBPTCZ.js";
|
|
36
|
+
import "../_node-chunks/chunk-CPI4IKLK.js";
|
|
37
|
+
import "../_node-chunks/chunk-TFBHPN6J.js";
|
|
38
|
+
import "../_node-chunks/chunk-6VWT3H7R.js";
|
|
39
|
+
import "../_node-chunks/chunk-CAKHJEH6.js";
|
|
40
|
+
import "../_node-chunks/chunk-7C52H6S6.js";
|
|
41
|
+
import "../_node-chunks/chunk-HPERTMWB.js";
|
|
42
|
+
import "../_node-chunks/chunk-6DHXOOK2.js";
|
|
43
|
+
import "../_node-chunks/chunk-VAAX75EL.js";
|
|
44
44
|
export {
|
|
45
45
|
addToGlobalContext,
|
|
46
46
|
cleanPaths,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2421,15 +2421,17 @@ 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
2427
|
error?: {
|
|
2428
|
+
name: string;
|
|
2428
2429
|
message: string;
|
|
2429
2430
|
};
|
|
2430
2431
|
}[];
|
|
2431
2432
|
jsDocTags: Record<string, string[]>;
|
|
2432
2433
|
error?: {
|
|
2434
|
+
name: string;
|
|
2433
2435
|
message: string;
|
|
2434
2436
|
};
|
|
2435
2437
|
}
|
|
@@ -2452,7 +2454,7 @@ interface StorybookConfigRaw {
|
|
|
2452
2454
|
*/
|
|
2453
2455
|
addons?: Preset[];
|
|
2454
2456
|
core?: CoreConfig;
|
|
2455
|
-
|
|
2457
|
+
experimental_componentManifestGenerator?: ComponentManifestGenerator;
|
|
2456
2458
|
experimental_enrichCsf?: CsfEnricher;
|
|
2457
2459
|
staticDirs?: (DirectoryMapping | string)[];
|
|
2458
2460
|
logLevel?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook",
|
|
3
|
-
"version": "10.1.0-alpha.
|
|
3
|
+
"version": "10.1.0-alpha.4",
|
|
4
4
|
"description": "Storybook: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -314,6 +314,7 @@
|
|
|
314
314
|
"react-textarea-autosize": "^8.3.0",
|
|
315
315
|
"react-transition-group": "^4.4.5",
|
|
316
316
|
"require-from-string": "^2.0.2",
|
|
317
|
+
"resolve": "^1.22.11",
|
|
317
318
|
"resolve.exports": "^2.0.3",
|
|
318
319
|
"sirv": "^2.0.4",
|
|
319
320
|
"slash": "^5.0.0",
|