storybook 10.1.2 → 10.1.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-4QKD5MM3.js → builder-manager-7ZU5KYAD.js} +12 -12
- package/dist/_node-chunks/{camelcase-IRQCWULJ.js → camelcase-YSJ5EORN.js} +7 -7
- package/dist/_node-chunks/{chunk-JTVV3ILI.js → chunk-2IIRK2OT.js} +6 -6
- package/dist/_node-chunks/chunk-4FAPWW5I.js +61 -0
- package/dist/_node-chunks/{chunk-RGS3LXAW.js → chunk-4X3VTYIW.js} +7 -7
- package/dist/_node-chunks/chunk-5UYX4ZF6.js +23 -0
- package/dist/_node-chunks/{chunk-U5ZVDYGC.js → chunk-6KX7N5UF.js} +13 -13
- package/dist/_node-chunks/{chunk-AKO6A5CQ.js → chunk-6O3OB2PO.js} +16 -16
- package/dist/_node-chunks/{chunk-ZYCQYU5P.js → chunk-76KIYDRU.js} +7 -7
- package/dist/_node-chunks/{chunk-4EINUCZX.js → chunk-7KESMTGS.js} +43 -27
- package/dist/_node-chunks/chunk-CMI5GRPA.js +18 -0
- package/dist/_node-chunks/{chunk-SKFB37NZ.js → chunk-COZFRL72.js} +7 -7
- package/dist/_node-chunks/{chunk-TTOU3O3G.js → chunk-DMPGFWI4.js} +10 -10
- package/dist/_node-chunks/{chunk-OUCADXTV.js → chunk-F2RDEFFH.js} +7 -7
- package/dist/_node-chunks/{chunk-TXYTWWZH.js → chunk-FMYFRXPU.js} +6 -6
- package/dist/_node-chunks/{chunk-QZH7V7G5.js → chunk-FY6IUM4S.js} +8 -8
- package/dist/_node-chunks/chunk-GVOXGNOU.js +20 -0
- package/dist/_node-chunks/{chunk-TPC5WFN2.js → chunk-J4VC4I2M.js} +6 -6
- package/dist/_node-chunks/{chunk-M5WCOOCM.js → chunk-LJRKMWYC.js} +6 -6
- package/dist/_node-chunks/{chunk-NHMTWL5A.js → chunk-MZL4HRPC.js} +7 -7
- package/dist/_node-chunks/{chunk-5K3HCA3T.js → chunk-N54KYQ6P.js} +6 -6
- package/dist/_node-chunks/{chunk-GKZHMXCG.js → chunk-Q6B5LJGA.js} +7 -7
- package/dist/_node-chunks/{chunk-GGJB53L3.js → chunk-QIY6TMKF.js} +7 -7
- package/dist/_node-chunks/{chunk-2ROLNOX5.js → chunk-QZJSO2TW.js} +39 -24
- package/dist/_node-chunks/{chunk-HIQU6BTN.js → chunk-RZ2YFNVH.js} +7 -7
- package/dist/_node-chunks/{chunk-TAK5JLJT.js → chunk-S3DQCJWT.js} +9 -9
- package/dist/_node-chunks/{chunk-3E6FUWUR.js → chunk-T5WYRHJT.js} +6 -6
- package/dist/_node-chunks/{chunk-U255RR5H.js → chunk-VBZIULNK.js} +6 -6
- package/dist/_node-chunks/{chunk-QTUMNOBG.js → chunk-VUIYVJKC.js} +12 -16
- package/dist/_node-chunks/{chunk-QXZ53NSP.js → chunk-W6O6RFMF.js} +9 -9
- package/dist/_node-chunks/{dist-YCWFOINJ.js → dist-NF4P7GPD.js} +9 -9
- package/dist/_node-chunks/{globby-DJRLVC5S.js → globby-54L4JJRV.js} +9 -9
- package/dist/_node-chunks/{lib-IAG3XT2U.js → lib-GX44WIWA.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-QMOKL6WQ.js → mdx-N42X6CFJ-WJFAHXML.js} +8 -8
- package/dist/_node-chunks/{p-limit-5RGYVFOA.js → p-limit-QB7Q2I4D.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +24 -18
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +25 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.js +9 -17
- package/dist/core-server/index.js +33 -33
- 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 +10 -18
- package/dist/manager/runtime.js +2 -1
- 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.d.ts +3 -3
- 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/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-2SKUXRHZ.js +0 -23
- package/dist/_node-chunks/chunk-4ROB3WCB.js +0 -61
- package/dist/_node-chunks/chunk-HLP3H23G.js +0 -20
- package/dist/_node-chunks/chunk-NUXVDK4C.js +0 -18
|
@@ -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.
|
|
2332
|
+
var version = "10.1.4";
|
|
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_yr66iw5gef from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.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-VBZIULNK.js";
|
|
20
|
+
import "../_node-chunks/chunk-J4VC4I2M.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);
|
|
@@ -407,14 +407,14 @@ declare const prompt: {
|
|
|
407
407
|
error: string;
|
|
408
408
|
success: string;
|
|
409
409
|
abortable?: boolean;
|
|
410
|
-
}) => Promise<void>;
|
|
410
|
+
}) => Promise<"aborted" | void>;
|
|
411
411
|
executeTaskWithSpinner: (childProcessFactories: ((signal?: AbortSignal) => ExecaChildProcess) | ((signal?: AbortSignal) => ExecaChildProcess)[], { id, intro, error, success, abortable, }: {
|
|
412
412
|
id: string;
|
|
413
413
|
intro: string;
|
|
414
414
|
error: string;
|
|
415
415
|
success: string;
|
|
416
416
|
abortable?: boolean;
|
|
417
|
-
}) => Promise<void>;
|
|
417
|
+
}) => Promise<"aborted" | void>;
|
|
418
418
|
setPromptLibrary: (library: "clack") => void;
|
|
419
419
|
getPromptLibrary: () => "clack";
|
|
420
420
|
getPromptProvider: () => PromptProvider;
|
|
@@ -677,4 +677,4 @@ declare const once: {
|
|
|
677
677
|
};
|
|
678
678
|
declare const deprecate: (message: string) => void;
|
|
679
679
|
|
|
680
|
-
export { CLI_COLORS, ConsoleLogger, type SpinnerInstance, StyledConsoleLogger, type TaskLogInstance, colors, createHyperlink, deprecate, npmlog as instance, logTracker, logger, once, prompt, protectUrls };
|
|
680
|
+
export { CLI_COLORS, ConsoleLogger, type LogLevel, type SpinnerInstance, StyledConsoleLogger, type TaskLogInstance, colors, createHyperlink, deprecate, npmlog as instance, logTracker, logger, once, prompt, protectUrls };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yr66iw5gef from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.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-VUIYVJKC.js";
|
|
26
|
+
import "../_node-chunks/chunk-RZ2YFNVH.js";
|
|
27
|
+
import "../_node-chunks/chunk-J4VC4I2M.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_yr66iw5gef from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.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-DMPGFWI4.js";
|
|
46
|
+
import "./_node-chunks/chunk-LJRKMWYC.js";
|
|
47
|
+
import "./_node-chunks/chunk-76KIYDRU.js";
|
|
48
|
+
import "./_node-chunks/chunk-RZ2YFNVH.js";
|
|
49
|
+
import "./_node-chunks/chunk-J4VC4I2M.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_yr66iw5gef from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.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-7KESMTGS.js";
|
|
26
|
+
import "../_node-chunks/chunk-CMI5GRPA.js";
|
|
27
|
+
import "../_node-chunks/chunk-QZJSO2TW.js";
|
|
28
|
+
import "../_node-chunks/chunk-4FAPWW5I.js";
|
|
29
|
+
import "../_node-chunks/chunk-4X3VTYIW.js";
|
|
30
|
+
import "../_node-chunks/chunk-VUIYVJKC.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-N54KYQ6P.js";
|
|
34
|
+
import "../_node-chunks/chunk-S3DQCJWT.js";
|
|
35
|
+
import "../_node-chunks/chunk-2IIRK2OT.js";
|
|
36
|
+
import "../_node-chunks/chunk-Q6B5LJGA.js";
|
|
37
|
+
import "../_node-chunks/chunk-FMYFRXPU.js";
|
|
38
|
+
import "../_node-chunks/chunk-VBZIULNK.js";
|
|
39
|
+
import "../_node-chunks/chunk-F2RDEFFH.js";
|
|
40
|
+
import "../_node-chunks/chunk-GVOXGNOU.js";
|
|
41
|
+
import "../_node-chunks/chunk-76KIYDRU.js";
|
|
42
|
+
import "../_node-chunks/chunk-RZ2YFNVH.js";
|
|
43
|
+
import "../_node-chunks/chunk-J4VC4I2M.js";
|
|
44
44
|
export {
|
|
45
45
|
ErrorCollector,
|
|
46
46
|
addToGlobalContext,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { WhatsNewData } from 'storybook/internal/core-events';
|
|
|
8
8
|
import { FileSystemCache } from 'storybook/internal/common';
|
|
9
9
|
import { StoryIndexGenerator } from 'storybook/internal/core-server';
|
|
10
10
|
import { CsfFile } from 'storybook/internal/csf-tools';
|
|
11
|
+
import { LogLevel } from 'storybook/internal/node-logger';
|
|
11
12
|
import { Server, IncomingMessage, ServerResponse } from 'http';
|
|
12
13
|
import { Server as Server$1 } from 'net';
|
|
13
14
|
import { Channel as Channel$1 } from 'storybook/internal/channels';
|
|
@@ -2312,7 +2313,8 @@ interface CLIBaseOptions {
|
|
|
2312
2313
|
disableTelemetry?: boolean;
|
|
2313
2314
|
enableCrashReports?: boolean;
|
|
2314
2315
|
configDir?: string;
|
|
2315
|
-
loglevel?:
|
|
2316
|
+
loglevel?: LogLevel;
|
|
2317
|
+
logfile?: string | boolean;
|
|
2316
2318
|
quiet?: boolean;
|
|
2317
2319
|
}
|
|
2318
2320
|
interface CLIOptions extends CLIBaseOptions {
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.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-JTVV3ILI.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
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.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.1.2",
|
|
16
|
-
"@storybook/addon-docs": "10.1.2",
|
|
17
|
-
"@storybook/addon-links": "10.1.2",
|
|
18
|
-
"@storybook/addon-onboarding": "10.1.2",
|
|
19
|
-
"storybook-addon-pseudo-states": "10.1.2",
|
|
20
|
-
"@storybook/addon-themes": "10.1.2",
|
|
21
|
-
"@storybook/addon-vitest": "10.1.2",
|
|
22
|
-
"@storybook/builder-vite": "10.1.2",
|
|
23
|
-
"@storybook/builder-webpack5": "10.1.2",
|
|
24
|
-
storybook: "10.1.2",
|
|
25
|
-
"@storybook/angular": "10.1.2",
|
|
26
|
-
"@storybook/ember": "10.1.2",
|
|
27
|
-
"@storybook/html-vite": "10.1.2",
|
|
28
|
-
"@storybook/nextjs": "10.1.2",
|
|
29
|
-
"@storybook/nextjs-vite": "10.1.2",
|
|
30
|
-
"@storybook/preact-vite": "10.1.2",
|
|
31
|
-
"@storybook/react-native-web-vite": "10.1.2",
|
|
32
|
-
"@storybook/react-vite": "10.1.2",
|
|
33
|
-
"@storybook/react-webpack5": "10.1.2",
|
|
34
|
-
"@storybook/server-webpack5": "10.1.2",
|
|
35
|
-
"@storybook/svelte-vite": "10.1.2",
|
|
36
|
-
"@storybook/sveltekit": "10.1.2",
|
|
37
|
-
"@storybook/vue3-vite": "10.1.2",
|
|
38
|
-
"@storybook/web-components-vite": "10.1.2",
|
|
39
|
-
sb: "10.1.2",
|
|
40
|
-
"@storybook/cli": "10.1.2",
|
|
41
|
-
"@storybook/codemod": "10.1.2",
|
|
42
|
-
"@storybook/core-webpack": "10.1.2",
|
|
43
|
-
"create-storybook": "10.1.2",
|
|
44
|
-
"@storybook/csf-plugin": "10.1.2",
|
|
45
|
-
"eslint-plugin-storybook": "10.1.2",
|
|
46
|
-
"@storybook/react-dom-shim": "10.1.2",
|
|
47
|
-
"@storybook/preset-create-react-app": "10.1.2",
|
|
48
|
-
"@storybook/preset-react-webpack": "10.1.2",
|
|
49
|
-
"@storybook/preset-server-webpack": "10.1.2",
|
|
50
|
-
"@storybook/html": "10.1.2",
|
|
51
|
-
"@storybook/preact": "10.1.2",
|
|
52
|
-
"@storybook/react": "10.1.2",
|
|
53
|
-
"@storybook/server": "10.1.2",
|
|
54
|
-
"@storybook/svelte": "10.1.2",
|
|
55
|
-
"@storybook/vue3": "10.1.2",
|
|
56
|
-
"@storybook/web-components": "10.1.2"
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export {
|
|
60
|
-
versions_default
|
|
61
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// ../node_modules/slash/index.js
|
|
14
|
-
function slash(path) {
|
|
15
|
-
return path.startsWith("\\\\?\\") ? path : path.replace(/\\/g, "/");
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
slash
|
|
20
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.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.2";
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
version
|
|
18
|
-
};
|