storybook 10.1.0-beta.2 → 10.1.0-beta.3
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-L4RMQ7D7.js → chunk-BRX2HXH7.js} +75 -5
- package/dist/_node-chunks/{builder-manager-DE5CZGPU.js → builder-manager-OAF6SRKJ.js} +14 -579
- package/dist/_node-chunks/{camelcase-3GPWEIYB.js → camelcase-UG5ZJHCD.js} +7 -7
- package/dist/_node-chunks/{chunk-77QRXLGA.js → chunk-473LXK7O.js} +6 -6
- package/dist/_node-chunks/chunk-5N3H43LE.js +23 -0
- package/dist/_node-chunks/{chunk-HFPMBHAF.js → chunk-6YYH64IJ.js} +13 -13
- package/dist/_node-chunks/{chunk-3FVKDIQ7.js → chunk-745GFLCZ.js} +6 -6
- package/dist/_node-chunks/{chunk-6T6VTXDE.js → chunk-7WOMK33B.js} +7 -7
- package/dist/_node-chunks/{chunk-4CHMPSHM.js → chunk-A5VW7257.js} +8 -8
- package/dist/_node-chunks/{chunk-NOLZUVQN.js → chunk-CRJ7M6EO.js} +22 -21
- package/dist/_node-chunks/chunk-DRN5YXX5.js +18 -0
- package/dist/_node-chunks/{chunk-45XWOXXM.js → chunk-H6HVK5J2.js} +7 -7
- package/dist/_node-chunks/{chunk-3GUEJ3O3.js → chunk-JOOO54RB.js} +6 -6
- package/dist/_node-chunks/chunk-LJRIVT23.js +61 -0
- package/dist/_node-chunks/{chunk-ODJGHT54.js → chunk-LZ2HPFRB.js} +7 -7
- package/dist/_node-chunks/{chunk-RZEXP6OF.js → chunk-N5IE6WWR.js} +7 -7
- package/dist/_node-chunks/{chunk-INMOMYVB.js → chunk-NKT3R6IH.js} +6 -6
- package/dist/_node-chunks/{chunk-F4HHDWJV.js → chunk-NOTIBODG.js} +6 -6
- package/dist/_node-chunks/{chunk-PJAOEV2K.js → chunk-Q65ED3UK.js} +6 -6
- package/dist/_node-chunks/{chunk-YZEOU7D5.js → chunk-RABBUYPA.js} +9 -9
- package/dist/_node-chunks/{chunk-UWKUW2OJ.js → chunk-SKFAHEPX.js} +14 -14
- package/dist/_node-chunks/{chunk-KIW5GZKQ.js → chunk-STYUJSG3.js} +10 -10
- package/dist/_node-chunks/{chunk-RSFKUYLE.js → chunk-SUILKNPA.js} +8 -8
- package/dist/_node-chunks/{chunk-43AQPYQJ.js → chunk-TUQOGYET.js} +7 -7
- package/dist/_node-chunks/{chunk-EXJNST6P.js → chunk-U24W5IIW.js} +7 -7
- package/dist/_node-chunks/{chunk-PQF6TGKN.js → chunk-UWK6Z4VL.js} +6 -6
- package/dist/_node-chunks/{chunk-ZH4F5JWQ.js → chunk-WBULWRM7.js} +12 -12
- package/dist/_node-chunks/{chunk-QAX2QIAO.js → chunk-WSIZMTN2.js} +6 -6
- package/dist/_node-chunks/{chunk-D2CQN4LQ.js → chunk-WYLXFNIP.js} +9 -9
- package/dist/_node-chunks/{chunk-HGDN3STX.js → chunk-XS5QCZP7.js} +7 -7
- package/dist/_node-chunks/{chunk-Z7F5CZXW.js → chunk-Y7VDA7NY.js} +7 -7
- package/dist/_node-chunks/{dist-RFQRGJD5.js → dist-N33YQ3NH.js} +9 -9
- package/dist/_node-chunks/{globby-WIMKMN5Q.js → globby-5IBS67N3.js} +9 -9
- package/dist/_node-chunks/{lib-OBEY3MUM.js → lib-2XH6KQ2B.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-7XA7LOVG.js → mdx-N42X6CFJ-3GGSRLVV.js} +8 -8
- package/dist/_node-chunks/{p-limit-VII3MYEU.js → p-limit-Z3A7N5MY.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.js +35 -29
- package/dist/core-server/index.js +33 -33
- package/dist/core-server/presets/common-manager.js +74 -108
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +142 -65
- package/dist/manager/runtime.js +70 -20
- package/dist/manager-api/index.d.ts +178 -178
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/create.js +1 -1
- package/dist/theming/index.d.ts +65 -2
- package/dist/theming/index.js +6 -3
- package/package.json +1 -2
- package/dist/_node-chunks/chunk-CEFT3TLW.js +0 -18
- package/dist/_node-chunks/chunk-HG5BSY5V.js +0 -23
- package/dist/_node-chunks/chunk-Y35QWPHB.js +0 -61
|
@@ -2329,7 +2329,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
2329
2329
|
import semver from "semver";
|
|
2330
2330
|
|
|
2331
2331
|
// src/manager-api/version.ts
|
|
2332
|
-
var version = "10.1.0-beta.
|
|
2332
|
+
var version = "10.1.0-beta.3";
|
|
2333
2333
|
|
|
2334
2334
|
// src/manager-api/modules/versions.ts
|
|
2335
2335
|
var { VERSIONCHECK } = global8, getVersionCheckData = (0, import_memoizerific2.default)(1)(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_d4nrjz93tmm from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_d4nrjz93tmm from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_d4nrjz93tmm from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_d4nrjz93tmm.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_d4nrjz93tmm.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_d4nrjz93tmm.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
join,
|
|
17
17
|
normalize,
|
|
18
18
|
resolve
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-UWK6Z4VL.js";
|
|
20
|
+
import "../_node-chunks/chunk-745GFLCZ.js";
|
|
21
21
|
|
|
22
22
|
// ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
23
23
|
var comma = 44, semicolon = 59, chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = new Uint8Array(64), charToInt = new Uint8Array(128);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_d4nrjz93tmm from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_d4nrjz93tmm from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_d4nrjz93tmm from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_d4nrjz93tmm.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_d4nrjz93tmm.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_d4nrjz93tmm.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
once,
|
|
23
23
|
prompt,
|
|
24
24
|
protectUrls
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-A5VW7257.js";
|
|
26
|
+
import "../_node-chunks/chunk-TUQOGYET.js";
|
|
27
|
+
import "../_node-chunks/chunk-745GFLCZ.js";
|
|
28
28
|
var export_instance = import_npmlog.default;
|
|
29
29
|
export {
|
|
30
30
|
CLI_COLORS,
|
|
@@ -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
|
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_d4nrjz93tmm from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_d4nrjz93tmm from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_d4nrjz93tmm from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_d4nrjz93tmm.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_d4nrjz93tmm.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_d4nrjz93tmm.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -42,11 +42,11 @@ import {
|
|
|
42
42
|
WebpackCompilationError,
|
|
43
43
|
WebpackInvocationError,
|
|
44
44
|
WebpackMissingStatsError
|
|
45
|
-
} from "./_node-chunks/chunk-
|
|
46
|
-
import "./_node-chunks/chunk-
|
|
47
|
-
import "./_node-chunks/chunk-
|
|
48
|
-
import "./_node-chunks/chunk-
|
|
49
|
-
import "./_node-chunks/chunk-
|
|
45
|
+
} from "./_node-chunks/chunk-STYUJSG3.js";
|
|
46
|
+
import "./_node-chunks/chunk-NOTIBODG.js";
|
|
47
|
+
import "./_node-chunks/chunk-7WOMK33B.js";
|
|
48
|
+
import "./_node-chunks/chunk-TUQOGYET.js";
|
|
49
|
+
import "./_node-chunks/chunk-745GFLCZ.js";
|
|
50
50
|
export {
|
|
51
51
|
AddonVitestPostinstallError,
|
|
52
52
|
AddonVitestPostinstallPrerequisiteCheckError,
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_d4nrjz93tmm from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_d4nrjz93tmm from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_d4nrjz93tmm from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_d4nrjz93tmm.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_d4nrjz93tmm.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_d4nrjz93tmm.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,25 +22,25 @@ 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-
|
|
25
|
+
} from "../_node-chunks/chunk-SKFAHEPX.js";
|
|
26
|
+
import "../_node-chunks/chunk-DRN5YXX5.js";
|
|
27
|
+
import "../_node-chunks/chunk-CRJ7M6EO.js";
|
|
28
|
+
import "../_node-chunks/chunk-LJRIVT23.js";
|
|
29
|
+
import "../_node-chunks/chunk-U24W5IIW.js";
|
|
30
|
+
import "../_node-chunks/chunk-A5VW7257.js";
|
|
31
31
|
import {
|
|
32
32
|
getPrecedingUpgrade
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
34
|
-
import "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
37
|
-
import "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-JOOO54RB.js";
|
|
34
|
+
import "../_node-chunks/chunk-RABBUYPA.js";
|
|
35
|
+
import "../_node-chunks/chunk-NKT3R6IH.js";
|
|
36
|
+
import "../_node-chunks/chunk-Y7VDA7NY.js";
|
|
37
|
+
import "../_node-chunks/chunk-WSIZMTN2.js";
|
|
38
|
+
import "../_node-chunks/chunk-UWK6Z4VL.js";
|
|
39
|
+
import "../_node-chunks/chunk-XS5QCZP7.js";
|
|
40
|
+
import "../_node-chunks/chunk-Q65ED3UK.js";
|
|
41
|
+
import "../_node-chunks/chunk-7WOMK33B.js";
|
|
42
|
+
import "../_node-chunks/chunk-TUQOGYET.js";
|
|
43
|
+
import "../_node-chunks/chunk-745GFLCZ.js";
|
|
44
44
|
export {
|
|
45
45
|
ErrorCollector,
|
|
46
46
|
addToGlobalContext,
|
package/dist/theming/create.d.ts
CHANGED
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-BRX2HXH7.js";
|
|
5
5
|
import "../_browser-chunks/chunk-AXG2BOBL.js";
|
|
6
6
|
import "../_browser-chunks/chunk-CHUV5WSW.js";
|
|
7
7
|
import "../_browser-chunks/chunk-A242L54C.js";
|
package/dist/theming/index.d.ts
CHANGED
|
@@ -12486,6 +12486,66 @@ declare const typography: {
|
|
|
12486
12486
|
code: number;
|
|
12487
12487
|
};
|
|
12488
12488
|
};
|
|
12489
|
+
declare const tokens: {
|
|
12490
|
+
light: {
|
|
12491
|
+
fgColor: {
|
|
12492
|
+
default: string;
|
|
12493
|
+
muted: string;
|
|
12494
|
+
accent: string;
|
|
12495
|
+
inverse: string;
|
|
12496
|
+
positive: string;
|
|
12497
|
+
warning: string;
|
|
12498
|
+
negative: string;
|
|
12499
|
+
critical: string;
|
|
12500
|
+
};
|
|
12501
|
+
bgColor: {
|
|
12502
|
+
default: string;
|
|
12503
|
+
muted: string;
|
|
12504
|
+
positive: string;
|
|
12505
|
+
warning: string;
|
|
12506
|
+
negative: string;
|
|
12507
|
+
critical: string;
|
|
12508
|
+
};
|
|
12509
|
+
borderColor: {
|
|
12510
|
+
default: string;
|
|
12511
|
+
muted: string;
|
|
12512
|
+
inverse: string;
|
|
12513
|
+
positive: string;
|
|
12514
|
+
warning: string;
|
|
12515
|
+
negative: string;
|
|
12516
|
+
critical: string;
|
|
12517
|
+
};
|
|
12518
|
+
};
|
|
12519
|
+
dark: {
|
|
12520
|
+
fgColor: {
|
|
12521
|
+
default: string;
|
|
12522
|
+
muted: string;
|
|
12523
|
+
accent: string;
|
|
12524
|
+
inverse: string;
|
|
12525
|
+
positive: string;
|
|
12526
|
+
warning: string;
|
|
12527
|
+
negative: string;
|
|
12528
|
+
critical: string;
|
|
12529
|
+
};
|
|
12530
|
+
bgColor: {
|
|
12531
|
+
default: string;
|
|
12532
|
+
muted: string;
|
|
12533
|
+
positive: string;
|
|
12534
|
+
warning: string;
|
|
12535
|
+
negative: string;
|
|
12536
|
+
critical: string;
|
|
12537
|
+
};
|
|
12538
|
+
borderColor: {
|
|
12539
|
+
default: string;
|
|
12540
|
+
muted: string;
|
|
12541
|
+
inverse: string;
|
|
12542
|
+
positive: string;
|
|
12543
|
+
warning: string;
|
|
12544
|
+
negative: string;
|
|
12545
|
+
critical: string;
|
|
12546
|
+
};
|
|
12547
|
+
};
|
|
12548
|
+
};
|
|
12489
12549
|
|
|
12490
12550
|
interface ThemeVars extends ThemeVarsBase, ThemeVarsColors {
|
|
12491
12551
|
}
|
|
@@ -12540,6 +12600,9 @@ interface Brand {
|
|
|
12540
12600
|
}
|
|
12541
12601
|
interface StorybookTheme {
|
|
12542
12602
|
color: Color;
|
|
12603
|
+
fgColor: typeof tokens.light.fgColor;
|
|
12604
|
+
bgColor: typeof tokens.light.bgColor;
|
|
12605
|
+
borderColor: typeof tokens.light.borderColor;
|
|
12543
12606
|
background: Background;
|
|
12544
12607
|
typography: Typography;
|
|
12545
12608
|
animation: Animation;
|
|
@@ -12681,7 +12744,7 @@ interface Themes {
|
|
|
12681
12744
|
}
|
|
12682
12745
|
declare const themes: Themes;
|
|
12683
12746
|
interface Rest {
|
|
12684
|
-
[key: string]:
|
|
12747
|
+
[key: string]: unknown;
|
|
12685
12748
|
}
|
|
12686
12749
|
declare const create: (vars?: ThemeVarsPartial, rest?: Rest) => ThemeVars;
|
|
12687
12750
|
|
|
@@ -12702,7 +12765,7 @@ type InterpolationEnhanced<T = {}> = Interpolation<T & {
|
|
|
12702
12765
|
|
|
12703
12766
|
declare const ignoreSsrWarning = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";
|
|
12704
12767
|
|
|
12705
|
-
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 };
|
|
12768
|
+
export { type Animation, type Background, type Brand, type CSSObject, CacheProvider, ClassNames, type Color, type Easing, type FunctionInterpolationEnhanced as FunctionInterpolation, Global, type InterpolationEnhanced as Interpolation, type Keyframes$1 as Keyframes, type StorybookTheme, type StyledComponent, type TextSize, ThemeProvider, type ThemeVars, type ThemeVarsColors, type ThemeVarsPartial, type Typography, background, color, convert, create, createCache, createGlobal, createReset, css, darkenColor as darken, ensure, getPreferredColorScheme, ignoreSsrWarning, isPropValid, jsx, keyframes, lightenColor as lighten, styled, themes, tokens, typography, useTheme, withTheme };
|
|
12706
12769
|
|
|
12707
12770
|
|
|
12708
12771
|
interface Theme extends StorybookTheme {}
|
package/dist/theming/index.js
CHANGED
|
@@ -8,8 +8,9 @@ import {
|
|
|
8
8
|
lightenColor,
|
|
9
9
|
mkColor,
|
|
10
10
|
themes,
|
|
11
|
+
tokens,
|
|
11
12
|
typography
|
|
12
|
-
} from "../_browser-chunks/chunk-
|
|
13
|
+
} from "../_browser-chunks/chunk-BRX2HXH7.js";
|
|
13
14
|
import {
|
|
14
15
|
curriedOpacify$1
|
|
15
16
|
} from "../_browser-chunks/chunk-AXG2BOBL.js";
|
|
@@ -1984,6 +1985,7 @@ var lightSyntaxColors = {
|
|
|
1984
1985
|
return {
|
|
1985
1986
|
...rest,
|
|
1986
1987
|
base,
|
|
1988
|
+
...base === "dark" ? tokens.dark : tokens.light,
|
|
1987
1989
|
color: createColors(inherit),
|
|
1988
1990
|
background: {
|
|
1989
1991
|
app: appBg,
|
|
@@ -2038,13 +2040,13 @@ var lightSyntaxColors = {
|
|
|
2038
2040
|
target: brandTarget
|
|
2039
2041
|
},
|
|
2040
2042
|
code: create2({
|
|
2041
|
-
colors: base === "
|
|
2043
|
+
colors: base === "dark" ? darkSyntaxColors : lightSyntaxColors,
|
|
2042
2044
|
mono: fontCode
|
|
2043
2045
|
}),
|
|
2044
2046
|
// Addon actions theme
|
|
2045
2047
|
// API example https://github.com/storybookjs/react-inspector/blob/master/src/styles/themes/chromeLight.tsx
|
|
2046
2048
|
addonActionsTheme: {
|
|
2047
|
-
...base === "
|
|
2049
|
+
...base === "dark" ? chromeDark : chromeLight,
|
|
2048
2050
|
BASE_FONT_FAMILY: fontCode,
|
|
2049
2051
|
BASE_FONT_SIZE: typography.size.s2 - 1,
|
|
2050
2052
|
BASE_LINE_HEIGHT: "18px",
|
|
@@ -2117,6 +2119,7 @@ export {
|
|
|
2117
2119
|
lightenColor as lighten,
|
|
2118
2120
|
styled,
|
|
2119
2121
|
themes,
|
|
2122
|
+
tokens,
|
|
2120
2123
|
typography,
|
|
2121
2124
|
useTheme,
|
|
2122
2125
|
withTheme
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook",
|
|
3
|
-
"version": "10.1.0-beta.
|
|
3
|
+
"version": "10.1.0-beta.3",
|
|
4
4
|
"description": "Storybook: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -261,7 +261,6 @@
|
|
|
261
261
|
"@types/semver": "^7.5.8",
|
|
262
262
|
"@types/ws": "^8",
|
|
263
263
|
"@vitest/utils": "^3.2.4",
|
|
264
|
-
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.10",
|
|
265
264
|
"@yarnpkg/fslib": "2.10.3",
|
|
266
265
|
"@yarnpkg/libzip": "2.3.0",
|
|
267
266
|
"ansi-to-html": "^0.7.2",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// package.json
|
|
14
|
-
var version = "10.1.0-beta.2";
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
version
|
|
18
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
any
|
|
14
|
-
} from "./chunk-INMOMYVB.js";
|
|
15
|
-
|
|
16
|
-
// src/cli/detect.ts
|
|
17
|
-
async function detectPnp() {
|
|
18
|
-
return !!any([".pnp.js", ".pnp.cjs"]);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
detectPnp
|
|
23
|
-
};
|