storybook 10.2.0-alpha.16 → 10.2.0-alpha.18
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-DQ6DNDHX.js → builder-manager-RC5VXLE2.js} +14 -12
- package/dist/_node-chunks/{camelcase-ILOVTISA.js → camelcase-3YERF6B7.js} +7 -7
- package/dist/_node-chunks/chunk-2H33L3XJ.js +61 -0
- package/dist/_node-chunks/{chunk-47ZRY4XW.js → chunk-2M7TBZBZ.js} +6 -6
- package/dist/_node-chunks/{chunk-TTACLBSG.js → chunk-4HG57EIN.js} +7 -7
- package/dist/_node-chunks/{chunk-CFXIZS6A.js → chunk-4PWGJYBL.js} +7 -7
- package/dist/_node-chunks/{chunk-K6FMM5LS.js → chunk-54FLVGBQ.js} +6 -6
- package/dist/_node-chunks/{chunk-3PMH6BEP.js → chunk-5BYTBW23.js} +6 -6
- package/dist/_node-chunks/{chunk-TDBTCAEB.js → chunk-5QNVOHBZ.js} +125 -73
- package/dist/_node-chunks/{chunk-SWN4HCJE.js → chunk-6TOW3ZMZ.js} +6 -6
- package/dist/_node-chunks/{chunk-FNQ5WLS5.js → chunk-A2364FS2.js} +7 -7
- package/dist/_node-chunks/{chunk-ZN5DGHF3.js → chunk-BWA66NDS.js} +10 -10
- package/dist/_node-chunks/{chunk-RIEIAV32.js → chunk-DIZCVGPK.js} +7 -7
- package/dist/_node-chunks/{chunk-PGYIGHRK.js → chunk-F347QVLI.js} +9 -9
- package/dist/_node-chunks/chunk-GJRLPTXZ.js +144 -0
- package/dist/_node-chunks/{chunk-LOJ73E6E.js → chunk-H4TYBETM.js} +9 -9
- package/dist/_node-chunks/{chunk-IVYTDHSW.js → chunk-HXE2FZ3F.js} +7 -7
- package/dist/_node-chunks/{chunk-KAAWGCHX.js → chunk-IHBEBZVB.js} +12 -12
- package/dist/_node-chunks/chunk-JK62DOZL.js +23 -0
- package/dist/_node-chunks/{chunk-WVXPIXUS.js → chunk-LMYIILVH.js} +7 -7
- package/dist/_node-chunks/{chunk-XWGABQX7.js → chunk-N73BCSUL.js} +6 -6
- package/dist/_node-chunks/{chunk-OKUHCLLJ.js → chunk-OT3P3RDM.js} +9 -9
- package/dist/_node-chunks/{chunk-JXU4P6K3.js → chunk-OZGI27C5.js} +6 -6
- package/dist/_node-chunks/{chunk-6QEWR44T.js → chunk-OZHRGJKY.js} +7 -7
- package/dist/_node-chunks/chunk-Q3WHGQXN.js +18 -0
- package/dist/_node-chunks/{chunk-TLGG6YAX.js → chunk-QNYGS5WG.js} +511 -127
- package/dist/_node-chunks/{chunk-WIOSV6HC.js → chunk-QXDUEJWP.js} +6 -6
- package/dist/_node-chunks/{chunk-M6AUSQA3.js → chunk-USLMTVEL.js} +22 -22
- package/dist/_node-chunks/{chunk-YFUVKP3W.js → chunk-XH6HLMNG.js} +7 -7
- package/dist/_node-chunks/{chunk-XJMJA2L4.js → chunk-ZUTW3EKD.js} +250 -14
- package/dist/_node-chunks/{globby-A35XB3PP.js → globby-IVEL6LAU.js} +9 -9
- package/dist/_node-chunks/{lib-D5I6ETBH.js → lib-IDUN2DHZ.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-DZ4EAFAE.js → mdx-N42X6CFJ-V7NAUWUX.js} +8 -8
- package/dist/_node-chunks/{p-limit-2CRKZRXN.js → p-limit-VA3OYXXM.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.d.ts +2 -1
- package/dist/components/index.js +55 -60
- package/dist/core-events/index.d.ts +19 -3
- package/dist/core-events/index.js +5 -1
- package/dist/core-server/index.d.ts +69 -2
- package/dist/core-server/index.js +38 -34
- package/dist/core-server/presets/common-override-preset.js +11 -11
- package/dist/core-server/presets/common-preset.js +519 -234
- package/dist/csf/index.d.ts +15 -3
- package/dist/csf/index.js +37 -13
- package/dist/csf-tools/index.d.ts +19 -1
- package/dist/csf-tools/index.js +11 -10
- package/dist/manager/globals-runtime.js +107 -81
- package/dist/manager/runtime.js +829 -167
- package/dist/manager-api/index.d.ts +2 -0
- package/dist/manager-api/index.js +10 -2
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +33 -6
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +14 -2
- package/dist/telemetry/index.js +23 -22
- package/dist/theming/index.js +16 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -1
- package/dist/_node-chunks/chunk-5E2HAJXY.js +0 -35
- package/dist/_node-chunks/chunk-DGLVYUKY.js +0 -61
- package/dist/_node-chunks/chunk-MSK3YTQT.js +0 -23
- package/dist/_node-chunks/chunk-SPPXK6CQ.js +0 -18
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bfa4dw0yocr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bfa4dw0yocr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bfa4dw0yocr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bfa4dw0yocr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bfa4dw0yocr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bfa4dw0yocr.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
|
toEstree
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-HXE2FZ3F.js";
|
|
15
15
|
import {
|
|
16
16
|
StatusTypeIdMismatchError
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-BWA66NDS.js";
|
|
18
18
|
import {
|
|
19
19
|
debounce,
|
|
20
|
+
generateStoryFile,
|
|
20
21
|
getErrorLevel,
|
|
21
22
|
isTelemetryEnabled,
|
|
22
23
|
mapStaticDir,
|
|
@@ -24,68 +25,69 @@ import {
|
|
|
24
25
|
sendTelemetryError,
|
|
25
26
|
useStatics,
|
|
26
27
|
withTelemetry
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-ZUTW3EKD.js";
|
|
28
29
|
import {
|
|
29
30
|
detectPnp
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-JK62DOZL.js";
|
|
32
|
+
import "../_node-chunks/chunk-4PWGJYBL.js";
|
|
32
33
|
import {
|
|
33
34
|
StorybookError
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-54FLVGBQ.js";
|
|
35
36
|
import {
|
|
36
37
|
telemetry
|
|
37
|
-
} from "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-5QNVOHBZ.js";
|
|
39
|
+
import "../_node-chunks/chunk-Q3WHGQXN.js";
|
|
39
40
|
import {
|
|
40
41
|
optionalEnvToBoolean,
|
|
41
42
|
require_cross_spawn,
|
|
42
43
|
resolveImport,
|
|
43
44
|
supportedExtensions,
|
|
44
45
|
userOrAutoTitleFromSpecifier
|
|
45
|
-
} from "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-USLMTVEL.js";
|
|
47
|
+
import "../_node-chunks/chunk-2H33L3XJ.js";
|
|
48
|
+
import "../_node-chunks/chunk-4HG57EIN.js";
|
|
48
49
|
import {
|
|
49
50
|
require_pretty_hrtime
|
|
50
|
-
} from "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
51
|
+
} from "../_node-chunks/chunk-OT3P3RDM.js";
|
|
52
|
+
import "../_node-chunks/chunk-GJRLPTXZ.js";
|
|
53
|
+
import "../_node-chunks/chunk-H4TYBETM.js";
|
|
52
54
|
import {
|
|
53
55
|
invariant,
|
|
54
56
|
up2 as up
|
|
55
|
-
} from "../_node-chunks/chunk-
|
|
56
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-OZGI27C5.js";
|
|
58
|
+
import "../_node-chunks/chunk-6TOW3ZMZ.js";
|
|
57
59
|
import {
|
|
58
60
|
importModule,
|
|
59
61
|
resolvePackageDir
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-DIZCVGPK.js";
|
|
61
63
|
import {
|
|
62
64
|
dirname,
|
|
63
65
|
join,
|
|
64
66
|
relative,
|
|
65
67
|
resolve
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
67
|
-
import "../_node-chunks/chunk-6QEWR44T.js";
|
|
68
|
+
} from "../_node-chunks/chunk-N73BCSUL.js";
|
|
68
69
|
import {
|
|
69
70
|
slash
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-2M7TBZBZ.js";
|
|
72
|
+
import "../_node-chunks/chunk-OZHRGJKY.js";
|
|
71
73
|
import {
|
|
72
74
|
Tag
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-QNYGS5WG.js";
|
|
74
76
|
import {
|
|
75
77
|
require_dist
|
|
76
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-XH6HLMNG.js";
|
|
77
79
|
import {
|
|
78
80
|
require_lib,
|
|
79
81
|
require_src
|
|
80
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-LMYIILVH.js";
|
|
81
83
|
import {
|
|
82
84
|
require_picocolors
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
85
|
+
} from "../_node-chunks/chunk-A2364FS2.js";
|
|
84
86
|
import {
|
|
85
87
|
__commonJS,
|
|
86
88
|
__require,
|
|
87
89
|
__toESM
|
|
88
|
-
} from "../_node-chunks/chunk-
|
|
90
|
+
} from "../_node-chunks/chunk-5BYTBW23.js";
|
|
89
91
|
|
|
90
92
|
// ../../node_modules/glob-to-regexp/index.js
|
|
91
93
|
var require_glob_to_regexp = __commonJS({
|
|
@@ -4542,7 +4544,7 @@ function print(p) {
|
|
|
4542
4544
|
// src/core-server/utils/get-builders.ts
|
|
4543
4545
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
4544
4546
|
async function getManagerBuilder() {
|
|
4545
|
-
return await import("../_node-chunks/builder-manager-
|
|
4547
|
+
return await import("../_node-chunks/builder-manager-RC5VXLE2.js");
|
|
4546
4548
|
}
|
|
4547
4549
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
4548
4550
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -4606,7 +4608,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
4606
4608
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
4607
4609
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
4608
4610
|
basename(specifier.files)
|
|
4609
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
4611
|
+
), { globby } = await import("../_node-chunks/globby-IVEL6LAU.js");
|
|
4610
4612
|
(await globby(slash(dirGlob), commonGlobOptions(dirGlob))).forEach((filePath) => {
|
|
4611
4613
|
let fileImportPath = toImportPath(filePath);
|
|
4612
4614
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(fileImportPath, removed);
|
|
@@ -5625,7 +5627,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
|
|
|
5625
5627
|
isTemplate: !1,
|
|
5626
5628
|
metaTags: void 0,
|
|
5627
5629
|
imports: void 0
|
|
5628
|
-
}, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-
|
|
5630
|
+
}, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-V7NAUWUX.js");
|
|
5629
5631
|
await compile(code, {
|
|
5630
5632
|
rehypePlugins: [[plugin, store]]
|
|
5631
5633
|
});
|
|
@@ -5770,7 +5772,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5770
5772
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5771
5773
|
if (cached)
|
|
5772
5774
|
return cached;
|
|
5773
|
-
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5775
|
+
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-IVEL6LAU.js"), files = await globby(globPattern, {
|
|
5774
5776
|
absolute: !0,
|
|
5775
5777
|
cwd: globCwd,
|
|
5776
5778
|
...commonGlobOptions2(globPattern)
|
|
@@ -7982,9 +7984,11 @@ export {
|
|
|
7982
7984
|
getStatusStoreByTypeId as experimental_getStatusStore,
|
|
7983
7985
|
getTestProviderStoreById as experimental_getTestProviderStore,
|
|
7984
7986
|
loadStorybook as experimental_loadStorybook,
|
|
7987
|
+
generateStoryFile,
|
|
7985
7988
|
getErrorLevel,
|
|
7986
7989
|
getPreviewBodyTemplate,
|
|
7987
7990
|
getPreviewHeadTemplate,
|
|
7991
|
+
getServerPort,
|
|
7988
7992
|
fullStatusStore as internal_fullStatusStore,
|
|
7989
7993
|
fullTestProviderStore as internal_fullTestProviderStore,
|
|
7990
7994
|
universalStatusStore as internal_universalStatusStore,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bfa4dw0yocr from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bfa4dw0yocr from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bfa4dw0yocr from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bfa4dw0yocr.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bfa4dw0yocr.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bfa4dw0yocr.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-6QEWR44T.js";
|
|
15
12
|
import {
|
|
16
13
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import
|
|
14
|
+
} from "../../_node-chunks/chunk-2M7TBZBZ.js";
|
|
15
|
+
import {
|
|
16
|
+
glob
|
|
17
|
+
} from "../../_node-chunks/chunk-OZHRGJKY.js";
|
|
18
|
+
import "../../_node-chunks/chunk-5BYTBW23.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|