storybook 10.0.0-beta.3 → 10.0.0-beta.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-DXAEQZJB.js → builder-manager-IKHPPPFE.js} +13 -13
- package/dist/_node-chunks/{camelcase-CMMT6PHY.js → camelcase-O2O7JODG.js} +7 -7
- package/dist/_node-chunks/{chunk-ICETGZAR.js → chunk-3J7DQ6TI.js} +7 -7
- package/dist/_node-chunks/{chunk-RUCPXDO3.js → chunk-4FMOVB65.js} +8 -8
- package/dist/_node-chunks/{chunk-EVY6P65U.js → chunk-4VGW2SQA.js} +7 -7
- package/dist/_node-chunks/{chunk-ICFGNVW7.js → chunk-5OILJTZE.js} +7 -7
- package/dist/_node-chunks/{chunk-4TGAX5W7.js → chunk-6COBULLV.js} +7 -7
- package/dist/_node-chunks/{chunk-EI44VA3U.js → chunk-7IIAUEWB.js} +8 -8
- package/dist/_node-chunks/{chunk-DNOOZ2LS.js → chunk-AC3BNULF.js} +552 -717
- package/dist/_node-chunks/{chunk-6Z44ODDR.js → chunk-AXFNB3AN.js} +7 -7
- package/dist/_node-chunks/chunk-CHJLO2LV.js +62 -0
- package/dist/_node-chunks/{chunk-PK6SVDYW.js → chunk-DCHFG5TX.js} +7 -7
- package/dist/_node-chunks/{chunk-R6TLLF24.js → chunk-FWFQ2GU7.js} +6 -6
- package/dist/_node-chunks/{chunk-3SUJKLRV.js → chunk-HAVE6SGK.js} +7 -7
- package/dist/_node-chunks/{chunk-CNKVQCQJ.js → chunk-IB5AEYPX.js} +7 -7
- package/dist/_node-chunks/{chunk-PAZJQ2GH.js → chunk-JECCFKKM.js} +7 -7
- package/dist/_node-chunks/{chunk-SHXAIHPO.js → chunk-JP4LEAXM.js} +7 -7
- package/dist/_node-chunks/chunk-JSSBBVU5.js +79 -0
- package/dist/_node-chunks/chunk-MNG223PY.js +18 -0
- package/dist/_node-chunks/{chunk-XRAB2RZN.js → chunk-MOO2Y4GI.js} +6 -6
- package/dist/_node-chunks/{chunk-7EGB7ALG.js → chunk-N3GFXZDP.js} +7 -7
- package/dist/_node-chunks/{chunk-AKW5OJ2T.js → chunk-NF3GXIEK.js} +9 -9
- package/dist/_node-chunks/{chunk-BV4J7FF6.js → chunk-NOSGJ5PL.js} +7 -7
- package/dist/_node-chunks/{chunk-WRSYICUI.js → chunk-OL2HWCBH.js} +7 -7
- package/dist/_node-chunks/{chunk-KQXC7XVZ.js → chunk-SF2IETZ2.js} +29 -81
- package/dist/_node-chunks/{chunk-LRQFELIZ.js → chunk-TBAIXCHN.js} +8 -8
- package/dist/_node-chunks/{chunk-QI3AVWUV.js → chunk-TTQRDWDJ.js} +12 -12
- package/dist/_node-chunks/{chunk-MVPVYHBT.js → chunk-TYGVOW7L.js} +7 -7
- package/dist/_node-chunks/{chunk-IA7M33LK.js → chunk-USDZSU5L.js} +7 -7
- package/dist/_node-chunks/chunk-XA4TAMUS.js +4966 -0
- package/dist/_node-chunks/{chunk-PA26PSV2.js → chunk-XT6O5CVI.js} +7 -7
- package/dist/_node-chunks/{chunk-TL5RNPZW.js → chunk-YJHXEN7U.js} +10 -10
- package/dist/_node-chunks/{chunk-5XVEWBRA.js → chunk-YRPXGWKW.js} +8 -8
- package/dist/_node-chunks/{default-browser-id-2X5XLPPS.js → default-browser-id-J4OIAAJ5.js} +7 -7
- package/dist/_node-chunks/{dist-JSBOOVQK.js → dist-BMKSKYDI.js} +9 -9
- package/dist/_node-chunks/{globby-YYTLHNUO.js → globby-DASPUXWI.js} +9 -9
- package/dist/_node-chunks/{lib-DJHADRPZ.js → lib-L6BIH4EV.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-WT6XCDU6.js → mdx-N42X6CFJ-2COTUDSL.js} +8 -8
- package/dist/_node-chunks/{p-limit-HTXI4SGX.js → p-limit-HVR3I7TJ.js} +76 -10
- package/dist/_node-chunks/{plugin-NNRMQ2YK.js → plugin-2XPSFYWZ.js} +10 -10
- package/dist/_node-chunks/{plugin-W22F3FQV.js → plugin-FZOHPRK7.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-VFNVWMAM.js → webpack-inject-mocker-runtime-plugin-FGQM2EPC.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-Q4ED2M25.js → webpack-mock-plugin-4HOAIYSX.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +29 -30
- package/dist/common/index.d.ts +3 -1
- package/dist/common/index.js +23 -22
- package/dist/core-server/index.js +38 -39
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf-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 +13 -14
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -25
- package/package.json +2 -6
- package/dist/_node-chunks/chunk-ALWVSNSK.js +0 -62
- package/dist/_node-chunks/chunk-MHNUEOON.js +0 -87
- package/dist/_node-chunks/chunk-VDFQYNPZ.js +0 -266
- package/dist/_node-chunks/chunk-WELIADWR.js +0 -2377
- package/dist/_node-chunks/chunk-YRXKNGPR.js +0 -18
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
getAutomockCode
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-XT6O5CVI.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-7IIAUEWB.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-4VGW2SQA.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-MOO2Y4GI.js";
|
|
22
22
|
|
|
23
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
24
24
|
function webpackAutomockLoader(source) {
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -38,9 +38,9 @@ import {
|
|
|
38
38
|
vitestTransform,
|
|
39
39
|
writeConfig,
|
|
40
40
|
writeCsf
|
|
41
|
-
} from "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-YRPXGWKW.js";
|
|
42
|
+
import "../_node-chunks/chunk-NOSGJ5PL.js";
|
|
43
|
+
import "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -157418,7 +157418,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
157418
157418
|
var import_semver = __toESM(require_semver2(), 1);
|
|
157419
157419
|
|
|
157420
157420
|
// src/manager-api/version.ts
|
|
157421
|
-
var version = "10.0.0-beta.
|
|
157421
|
+
var version = "10.0.0-beta.4";
|
|
157422
157422
|
|
|
157423
157423
|
// src/manager-api/modules/versions.ts
|
|
157424
157424
|
var { VERSIONCHECK } = scope;
|
|
@@ -3016,7 +3016,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
3016
3016
|
import semver from "semver";
|
|
3017
3017
|
|
|
3018
3018
|
// src/manager-api/version.ts
|
|
3019
|
-
var version = "10.0.0-beta.
|
|
3019
|
+
var version = "10.0.0-beta.4";
|
|
3020
3020
|
|
|
3021
3021
|
// src/manager-api/modules/versions.ts
|
|
3022
3022
|
var { VERSIONCHECK } = global8;
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_pretty_hrtime
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-HAVE6SGK.js";
|
|
15
15
|
import {
|
|
16
16
|
boxen,
|
|
17
17
|
require_string_width,
|
|
18
18
|
wrapAnsi
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-JP4LEAXM.js";
|
|
20
20
|
import {
|
|
21
21
|
execaSync,
|
|
22
22
|
optionalEnvToBoolean
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
24
|
-
import "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-MHNUEOON.js";
|
|
23
|
+
} from "../_node-chunks/chunk-XA4TAMUS.js";
|
|
24
|
+
import "../_node-chunks/chunk-JSSBBVU5.js";
|
|
26
25
|
import {
|
|
27
26
|
require_prompts,
|
|
28
27
|
require_src
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-3J7DQ6TI.js";
|
|
30
29
|
import {
|
|
31
30
|
require_picocolors
|
|
32
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-N3GFXZDP.js";
|
|
33
32
|
import {
|
|
34
33
|
__commonJS,
|
|
35
34
|
__export,
|
|
36
35
|
__name,
|
|
37
36
|
__require,
|
|
38
37
|
__toESM
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
40
39
|
|
|
41
40
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
42
41
|
var require_tracker_base = __commonJS({
|
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
import { CleanupCallback, StoryContext as StoryContext$1, Args as Args$1 } from 'storybook/internal/csf';
|
|
6
5
|
import { RequestData, ArgTypesRequestPayload } from 'storybook/internal/core-events';
|
|
7
6
|
|
|
@@ -416,7 +415,7 @@ declare function createPlaywrightTest<TFixture extends {
|
|
|
416
415
|
}>(baseTest: TFixture): TFixture;
|
|
417
416
|
|
|
418
417
|
declare function getCsfFactoryAnnotations<TRenderer extends Renderer = Renderer, TArgs extends Args = Args>(story: LegacyStoryAnnotationsOrFn<TRenderer>, meta?: ComponentAnnotations<TRenderer, TArgs>, projectAnnotations?: ProjectAnnotations<TRenderer>): {
|
|
419
|
-
story:
|
|
418
|
+
story: storybook_internal_types.StoryAnnotations<Renderer, unknown>;
|
|
420
419
|
meta: ComponentAnnotations<Renderer, unknown>;
|
|
421
420
|
preview: storybook_internal_types.NormalizedProjectAnnotations<Renderer>;
|
|
422
421
|
} | {
|
|
@@ -478,10 +477,10 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
478
477
|
getStoryContext(story: PreparedStory<TRenderer>, { forceInitialArgs }?: {
|
|
479
478
|
forceInitialArgs?: boolean | undefined;
|
|
480
479
|
}): {
|
|
481
|
-
args:
|
|
482
|
-
initialGlobals:
|
|
483
|
-
globalTypes: (
|
|
484
|
-
userGlobals:
|
|
480
|
+
args: storybook_internal_types.Args;
|
|
481
|
+
initialGlobals: storybook_internal_types.Globals;
|
|
482
|
+
globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
|
|
483
|
+
userGlobals: storybook_internal_types.Globals;
|
|
485
484
|
reporting: ReporterAPI;
|
|
486
485
|
globals: {
|
|
487
486
|
[x: string]: any;
|
|
@@ -493,31 +492,31 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
493
492
|
subcomponents?: Record<string, (TRenderer & {
|
|
494
493
|
T: any;
|
|
495
494
|
})["component"]> | undefined;
|
|
496
|
-
parameters:
|
|
497
|
-
initialArgs:
|
|
498
|
-
argTypes:
|
|
499
|
-
componentId:
|
|
500
|
-
title:
|
|
501
|
-
kind:
|
|
495
|
+
parameters: storybook_internal_types.Parameters;
|
|
496
|
+
initialArgs: storybook_internal_types.Args;
|
|
497
|
+
argTypes: storybook_internal_types.StrictArgTypes<storybook_internal_types.Args>;
|
|
498
|
+
componentId: storybook_internal_types.ComponentId;
|
|
499
|
+
title: storybook_internal_types.ComponentTitle;
|
|
500
|
+
kind: storybook_internal_types.ComponentTitle;
|
|
502
501
|
id: StoryId;
|
|
503
|
-
name:
|
|
504
|
-
story:
|
|
505
|
-
tags:
|
|
502
|
+
name: storybook_internal_types.StoryName;
|
|
503
|
+
story: storybook_internal_types.StoryName;
|
|
504
|
+
tags: storybook_internal_types.Tag[];
|
|
506
505
|
moduleExport: storybook_internal_types.ModuleExport;
|
|
507
|
-
originalStoryFn:
|
|
508
|
-
undecoratedStoryFn:
|
|
509
|
-
unboundStoryFn:
|
|
510
|
-
applyLoaders: (context:
|
|
511
|
-
applyBeforeEach: (context:
|
|
512
|
-
applyAfterEach: (context:
|
|
513
|
-
playFunction?: ((context:
|
|
514
|
-
runStep:
|
|
515
|
-
mount: (context:
|
|
506
|
+
originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
|
|
507
|
+
undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
508
|
+
unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
509
|
+
applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<Record<string, any>>;
|
|
510
|
+
applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<CleanupCallback[]>;
|
|
511
|
+
applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void>;
|
|
512
|
+
playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void> | void) | undefined;
|
|
513
|
+
runStep: storybook_internal_types.StepRunner<TRenderer>;
|
|
514
|
+
mount: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => () => Promise<storybook_internal_types.Canvas>;
|
|
516
515
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
517
516
|
renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
|
|
518
517
|
usesMount: boolean;
|
|
519
|
-
storyGlobals:
|
|
520
|
-
} & Pick<
|
|
518
|
+
storyGlobals: storybook_internal_types.Globals;
|
|
519
|
+
} & Pick<storybook_internal_types.StoryContextForLoaders<Renderer, storybook_internal_types.Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
|
|
521
520
|
addCleanupCallbacks(story: PreparedStory<TRenderer>, ...callbacks: CleanupCallback[]): void;
|
|
522
521
|
cleanupStory(story: PreparedStory<TRenderer>): Promise<void>;
|
|
523
522
|
extract(options?: {
|
|
@@ -533,7 +532,7 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
533
532
|
declare const combineParameters: (...parameterSets: (Parameters | undefined)[]) => Parameters;
|
|
534
533
|
|
|
535
534
|
type PropDescriptor = string[] | RegExp;
|
|
536
|
-
declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<
|
|
535
|
+
declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<storybook_internal_types.Args>>;
|
|
537
536
|
|
|
538
537
|
declare const inferControls: ArgTypesEnhancer<Renderer>;
|
|
539
538
|
|
|
@@ -583,10 +582,10 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
|
|
|
583
582
|
getStoryContext: (story: PreparedStory<TRenderer>) => {
|
|
584
583
|
loaded: {};
|
|
585
584
|
viewMode: string;
|
|
586
|
-
args:
|
|
587
|
-
initialGlobals:
|
|
588
|
-
globalTypes: (
|
|
589
|
-
userGlobals:
|
|
585
|
+
args: storybook_internal_types.Args;
|
|
586
|
+
initialGlobals: storybook_internal_types.Globals;
|
|
587
|
+
globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
|
|
588
|
+
userGlobals: storybook_internal_types.Globals;
|
|
590
589
|
reporting: ReporterAPI;
|
|
591
590
|
globals: {
|
|
592
591
|
[x: string]: any;
|
|
@@ -598,30 +597,30 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
|
|
|
598
597
|
subcomponents?: Record<string, (TRenderer & {
|
|
599
598
|
T: any;
|
|
600
599
|
})["component"]> | undefined;
|
|
601
|
-
parameters:
|
|
602
|
-
initialArgs:
|
|
603
|
-
argTypes:
|
|
604
|
-
componentId:
|
|
605
|
-
title:
|
|
606
|
-
kind:
|
|
600
|
+
parameters: storybook_internal_types.Parameters;
|
|
601
|
+
initialArgs: storybook_internal_types.Args;
|
|
602
|
+
argTypes: storybook_internal_types.StrictArgTypes<storybook_internal_types.Args>;
|
|
603
|
+
componentId: storybook_internal_types.ComponentId;
|
|
604
|
+
title: storybook_internal_types.ComponentTitle;
|
|
605
|
+
kind: storybook_internal_types.ComponentTitle;
|
|
607
606
|
id: StoryId;
|
|
608
607
|
name: StoryName;
|
|
609
608
|
story: StoryName;
|
|
610
|
-
tags:
|
|
609
|
+
tags: storybook_internal_types.Tag[];
|
|
611
610
|
moduleExport: ModuleExport;
|
|
612
|
-
originalStoryFn:
|
|
613
|
-
undecoratedStoryFn:
|
|
614
|
-
unboundStoryFn:
|
|
615
|
-
applyLoaders: (context:
|
|
616
|
-
applyBeforeEach: (context:
|
|
617
|
-
applyAfterEach: (context:
|
|
618
|
-
playFunction?: ((context:
|
|
619
|
-
runStep:
|
|
620
|
-
mount: (context:
|
|
611
|
+
originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
|
|
612
|
+
undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
613
|
+
unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
614
|
+
applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<Record<string, any>>;
|
|
615
|
+
applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<storybook_internal_types.CleanupCallback[]>;
|
|
616
|
+
applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void>;
|
|
617
|
+
playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void> | void) | undefined;
|
|
618
|
+
runStep: storybook_internal_types.StepRunner<TRenderer>;
|
|
619
|
+
mount: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => () => Promise<storybook_internal_types.Canvas>;
|
|
621
620
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
622
621
|
renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
|
|
623
622
|
usesMount: boolean;
|
|
624
|
-
storyGlobals:
|
|
623
|
+
storyGlobals: storybook_internal_types.Globals;
|
|
625
624
|
allArgs: any;
|
|
626
625
|
argsByTarget: any;
|
|
627
626
|
unmappedArgs: any;
|
|
@@ -843,7 +842,7 @@ declare class Preview<TRenderer extends Renderer> {
|
|
|
843
842
|
}): {
|
|
844
843
|
args: Args;
|
|
845
844
|
initialGlobals: Globals;
|
|
846
|
-
globalTypes: (
|
|
845
|
+
globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
|
|
847
846
|
userGlobals: Globals;
|
|
848
847
|
reporting: ReporterAPI;
|
|
849
848
|
globals: {
|
|
@@ -856,34 +855,34 @@ declare class Preview<TRenderer extends Renderer> {
|
|
|
856
855
|
subcomponents?: Record<string, (TRenderer & {
|
|
857
856
|
T: any;
|
|
858
857
|
})["component"]> | undefined;
|
|
859
|
-
parameters:
|
|
858
|
+
parameters: storybook_internal_types.Parameters;
|
|
860
859
|
initialArgs: Args;
|
|
861
|
-
argTypes:
|
|
862
|
-
componentId:
|
|
863
|
-
title:
|
|
864
|
-
kind:
|
|
860
|
+
argTypes: storybook_internal_types.StrictArgTypes<Args>;
|
|
861
|
+
componentId: storybook_internal_types.ComponentId;
|
|
862
|
+
title: storybook_internal_types.ComponentTitle;
|
|
863
|
+
kind: storybook_internal_types.ComponentTitle;
|
|
865
864
|
id: StoryId;
|
|
866
|
-
name:
|
|
867
|
-
story:
|
|
868
|
-
tags:
|
|
865
|
+
name: storybook_internal_types.StoryName;
|
|
866
|
+
story: storybook_internal_types.StoryName;
|
|
867
|
+
tags: storybook_internal_types.Tag[];
|
|
869
868
|
moduleExport: storybook_internal_types.ModuleExport;
|
|
870
|
-
originalStoryFn:
|
|
871
|
-
undecoratedStoryFn:
|
|
872
|
-
unboundStoryFn:
|
|
873
|
-
applyLoaders: (context:
|
|
874
|
-
applyBeforeEach: (context:
|
|
875
|
-
applyAfterEach: (context:
|
|
876
|
-
playFunction?: ((context:
|
|
877
|
-
runStep:
|
|
878
|
-
mount: (context:
|
|
869
|
+
originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
|
|
870
|
+
undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
871
|
+
unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
872
|
+
applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<Record<string, any>>;
|
|
873
|
+
applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<CleanupCallback[]>;
|
|
874
|
+
applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<void>;
|
|
875
|
+
playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<void> | void) | undefined;
|
|
876
|
+
runStep: storybook_internal_types.StepRunner<TRenderer>;
|
|
877
|
+
mount: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => () => Promise<storybook_internal_types.Canvas>;
|
|
879
878
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
880
879
|
renderToCanvas?: RenderToCanvas<TRenderer> | undefined;
|
|
881
880
|
usesMount: boolean;
|
|
882
881
|
storyGlobals: Globals;
|
|
883
|
-
} & Pick<
|
|
882
|
+
} & Pick<storybook_internal_types.StoryContextForLoaders<Renderer, Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
|
|
884
883
|
extract(options?: {
|
|
885
884
|
includeDocsOnly: boolean;
|
|
886
|
-
}): Promise<Record<string,
|
|
885
|
+
}): Promise<Record<string, storybook_internal_types.StoryContextForEnhancers<TRenderer, Args>>>;
|
|
887
886
|
renderPreviewEntryError(reason: string, err: Error): void;
|
|
888
887
|
}
|
|
889
888
|
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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-NF3GXIEK.js";
|
|
43
|
+
import "./_node-chunks/chunk-NOSGJ5PL.js";
|
|
44
|
+
import "./_node-chunks/chunk-N3GFXZDP.js";
|
|
45
|
+
import "./_node-chunks/chunk-MOO2Y4GI.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_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,25 +22,24 @@ import {
|
|
|
22
22
|
sanitizeAddonName,
|
|
23
23
|
sanitizeError,
|
|
24
24
|
telemetry
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
29
|
-
import "../_node-chunks/chunk-
|
|
30
|
-
import "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
33
|
-
import "../_node-chunks/chunk-
|
|
34
|
-
import "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
37
|
-
import "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-XRAB2RZN.js";
|
|
25
|
+
} from "../_node-chunks/chunk-SF2IETZ2.js";
|
|
26
|
+
import "../_node-chunks/chunk-MNG223PY.js";
|
|
27
|
+
import "../_node-chunks/chunk-AC3BNULF.js";
|
|
28
|
+
import "../_node-chunks/chunk-JECCFKKM.js";
|
|
29
|
+
import "../_node-chunks/chunk-5OILJTZE.js";
|
|
30
|
+
import "../_node-chunks/chunk-CHJLO2LV.js";
|
|
31
|
+
import "../_node-chunks/chunk-4FMOVB65.js";
|
|
32
|
+
import "../_node-chunks/chunk-XA4TAMUS.js";
|
|
33
|
+
import "../_node-chunks/chunk-JSSBBVU5.js";
|
|
34
|
+
import "../_node-chunks/chunk-USDZSU5L.js";
|
|
35
|
+
import "../_node-chunks/chunk-TBAIXCHN.js";
|
|
36
|
+
import "../_node-chunks/chunk-4VGW2SQA.js";
|
|
37
|
+
import "../_node-chunks/chunk-3J7DQ6TI.js";
|
|
38
|
+
import "../_node-chunks/chunk-TYGVOW7L.js";
|
|
39
|
+
import "../_node-chunks/chunk-OL2HWCBH.js";
|
|
40
|
+
import "../_node-chunks/chunk-NOSGJ5PL.js";
|
|
41
|
+
import "../_node-chunks/chunk-N3GFXZDP.js";
|
|
42
|
+
import "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
44
43
|
export {
|
|
45
44
|
addToGlobalContext,
|
|
46
45
|
cleanPaths,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.4",
|
|
4
4
|
"description": "Storybook: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -271,7 +271,6 @@
|
|
|
271
271
|
"@types/detect-port": "^1.3.0",
|
|
272
272
|
"@types/diff": "^5.0.9",
|
|
273
273
|
"@types/ejs": "^3.1.1",
|
|
274
|
-
"@types/find-cache-dir": "^5.0.0",
|
|
275
274
|
"@types/js-yaml": "^4.0.5",
|
|
276
275
|
"@types/node": "^22.0.0",
|
|
277
276
|
"@types/npmlog": "^7.0.0",
|
|
@@ -305,14 +304,12 @@
|
|
|
305
304
|
"diff": "^5.2.0",
|
|
306
305
|
"downshift": "^9.0.4",
|
|
307
306
|
"ejs": "^3.1.10",
|
|
307
|
+
"empathic": "^2.0.0",
|
|
308
308
|
"es-toolkit": "^1.36.0",
|
|
309
309
|
"esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0",
|
|
310
310
|
"execa": "^8.0.1",
|
|
311
311
|
"exsolve": "^1.0.7",
|
|
312
|
-
"fd-package-json": "^1.2.0",
|
|
313
312
|
"fetch-retry": "^6.0.0",
|
|
314
|
-
"find-cache-dir": "^5.0.0",
|
|
315
|
-
"find-up": "^7.0.0",
|
|
316
313
|
"flush-promises": "^1.0.2",
|
|
317
314
|
"fuse.js": "^3.6.1",
|
|
318
315
|
"get-npm-tarball-url": "^2.0.3",
|
|
@@ -348,7 +345,6 @@
|
|
|
348
345
|
"react-textarea-autosize": "^8.3.0",
|
|
349
346
|
"react-transition-group": "^4.4.5",
|
|
350
347
|
"require-from-string": "^2.0.2",
|
|
351
|
-
"resolve-from": "^5.0.0",
|
|
352
348
|
"resolve.exports": "^2.0.3",
|
|
353
349
|
"sirv": "^2.0.4",
|
|
354
350
|
"slash": "^5.0.0",
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// src/common/versions.ts
|
|
14
|
-
var versions_default = {
|
|
15
|
-
"@storybook/addon-a11y": "10.0.0-beta.3",
|
|
16
|
-
"@storybook/addon-docs": "10.0.0-beta.3",
|
|
17
|
-
"@storybook/addon-jest": "10.0.0-beta.3",
|
|
18
|
-
"@storybook/addon-links": "10.0.0-beta.3",
|
|
19
|
-
"@storybook/addon-onboarding": "10.0.0-beta.3",
|
|
20
|
-
"storybook-addon-pseudo-states": "10.0.0-beta.3",
|
|
21
|
-
"@storybook/addon-themes": "10.0.0-beta.3",
|
|
22
|
-
"@storybook/addon-vitest": "10.0.0-beta.3",
|
|
23
|
-
"@storybook/builder-vite": "10.0.0-beta.3",
|
|
24
|
-
"@storybook/builder-webpack5": "10.0.0-beta.3",
|
|
25
|
-
storybook: "10.0.0-beta.3",
|
|
26
|
-
"@storybook/angular": "10.0.0-beta.3",
|
|
27
|
-
"@storybook/ember": "10.0.0-beta.3",
|
|
28
|
-
"@storybook/html-vite": "10.0.0-beta.3",
|
|
29
|
-
"@storybook/nextjs": "10.0.0-beta.3",
|
|
30
|
-
"@storybook/nextjs-vite": "10.0.0-beta.3",
|
|
31
|
-
"@storybook/preact-vite": "10.0.0-beta.3",
|
|
32
|
-
"@storybook/react-native-web-vite": "10.0.0-beta.3",
|
|
33
|
-
"@storybook/react-vite": "10.0.0-beta.3",
|
|
34
|
-
"@storybook/react-webpack5": "10.0.0-beta.3",
|
|
35
|
-
"@storybook/server-webpack5": "10.0.0-beta.3",
|
|
36
|
-
"@storybook/svelte-vite": "10.0.0-beta.3",
|
|
37
|
-
"@storybook/sveltekit": "10.0.0-beta.3",
|
|
38
|
-
"@storybook/vue3-vite": "10.0.0-beta.3",
|
|
39
|
-
"@storybook/web-components-vite": "10.0.0-beta.3",
|
|
40
|
-
sb: "10.0.0-beta.3",
|
|
41
|
-
"@storybook/cli": "10.0.0-beta.3",
|
|
42
|
-
"@storybook/codemod": "10.0.0-beta.3",
|
|
43
|
-
"@storybook/core-webpack": "10.0.0-beta.3",
|
|
44
|
-
"create-storybook": "10.0.0-beta.3",
|
|
45
|
-
"@storybook/csf-plugin": "10.0.0-beta.3",
|
|
46
|
-
"eslint-plugin-storybook": "10.0.0-beta.3",
|
|
47
|
-
"@storybook/react-dom-shim": "10.0.0-beta.3",
|
|
48
|
-
"@storybook/preset-create-react-app": "10.0.0-beta.3",
|
|
49
|
-
"@storybook/preset-react-webpack": "10.0.0-beta.3",
|
|
50
|
-
"@storybook/preset-server-webpack": "10.0.0-beta.3",
|
|
51
|
-
"@storybook/html": "10.0.0-beta.3",
|
|
52
|
-
"@storybook/preact": "10.0.0-beta.3",
|
|
53
|
-
"@storybook/react": "10.0.0-beta.3",
|
|
54
|
-
"@storybook/server": "10.0.0-beta.3",
|
|
55
|
-
"@storybook/svelte": "10.0.0-beta.3",
|
|
56
|
-
"@storybook/vue3": "10.0.0-beta.3",
|
|
57
|
-
"@storybook/web-components": "10.0.0-beta.3"
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export {
|
|
61
|
-
versions_default
|
|
62
|
-
};
|