storybook 10.0.0-beta.7 → 10.0.0-beta.8
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-VFP7HSCF.js → builder-manager-Y34L3HC4.js} +30 -15
- package/dist/_node-chunks/camelcase-W6EWLMZP.js +18 -0
- package/dist/_node-chunks/{chunk-IGWCAXA2.js → chunk-3VCGPS3V.js} +7 -7
- package/dist/_node-chunks/{chunk-DH7BCQMG.js → chunk-4QSDBUYK.js} +8 -8
- package/dist/_node-chunks/{chunk-RP3VMQPF.js → chunk-4SIVISOF.js} +21 -27
- package/dist/_node-chunks/{chunk-TFIGR2HH.js → chunk-5SPDSTWP.js} +7 -7
- package/dist/_node-chunks/{chunk-3QZ7KLON.js → chunk-6NAUDAPE.js} +8 -8
- package/dist/_node-chunks/{chunk-KVOP6ASA.js → chunk-6SXRGPL6.js} +7 -7
- package/dist/_node-chunks/{chunk-U6MJQ7C6.js → chunk-7JZFWQN4.js} +72 -8
- package/dist/_node-chunks/{chunk-46BWYN3K.js → chunk-7Q5EKYUL.js} +7 -7
- package/dist/_node-chunks/{chunk-I7SRMFT5.js → chunk-AND2M2X5.js} +7 -7
- package/dist/_node-chunks/{chunk-XXVKM2ZR.js → chunk-AZWKFSEJ.js} +104 -75
- package/dist/_node-chunks/{chunk-ZPNXCXIT.js → chunk-CL53RP5L.js} +8 -8
- package/dist/_node-chunks/{chunk-C4EOB63P.js → chunk-CZLW5B2W.js} +7 -7
- package/dist/_node-chunks/{chunk-GCWAGPDV.js → chunk-DRNU7FEF.js} +12 -12
- package/dist/_node-chunks/{chunk-YWU65VY4.js → chunk-EMCS3ZKS.js} +6 -6
- package/dist/_node-chunks/{chunk-IEFSRAX2.js → chunk-F43CI3CD.js} +10 -10
- package/dist/_node-chunks/{chunk-ZM2HT2RW.js → chunk-FRTUAT3V.js} +6 -6
- package/dist/_node-chunks/{chunk-FCNWWJV7.js → chunk-HRBWZFVH.js} +7 -7
- package/dist/_node-chunks/{chunk-5YUTWYNI.js → chunk-IE2VBA4V.js} +9 -9
- package/dist/_node-chunks/{chunk-Z3PLI7S2.js → chunk-JEIQPNWQ.js} +7 -7
- package/dist/_node-chunks/{chunk-3NIQHNDU.js → chunk-JG7IEUS3.js} +7 -7
- package/dist/_node-chunks/{chunk-BID2X7MU.js → chunk-LKGWQEHR.js} +7 -7
- package/dist/_node-chunks/{chunk-GBZZSL2K.js → chunk-MIJKYKSO.js} +8 -8
- package/dist/_node-chunks/{chunk-MHVF6Y35.js → chunk-O33XSHQE.js} +7 -7
- package/dist/_node-chunks/{chunk-3XXQRL3A.js → chunk-SOIRRZYG.js} +7 -7
- package/dist/_node-chunks/chunk-T46D5USU.js +18 -0
- package/dist/_node-chunks/{chunk-MRCMZPA2.js → chunk-T5VNV7FG.js} +7 -7
- package/dist/_node-chunks/{chunk-4DIDWIST.js → chunk-TL5UYDH2.js} +7 -7
- package/dist/_node-chunks/{chunk-TXDIOSHI.js → chunk-UORO6DG4.js} +9 -9
- package/dist/_node-chunks/chunk-USP6T4QU.js +62 -0
- package/dist/_node-chunks/{chunk-A2DKPKBY.js → chunk-WS3L7DA7.js} +7 -7
- package/dist/_node-chunks/{chunk-2GCKJYK6.js → chunk-YMZK6547.js} +7 -7
- package/dist/_node-chunks/{dist-PG4I7ZDU.js → dist-RINWIIFC.js} +9 -9
- package/dist/_node-chunks/{globby-HXB6X43W.js → globby-G3CLKE4Y.js} +9 -9
- package/dist/_node-chunks/{lib-4JJTZC7T.js → lib-67I574Z7.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3JBJ7PQF.js → mdx-N42X6CFJ-6DP2YFMY.js} +8 -8
- package/dist/_node-chunks/{p-limit-WBBNX4KI.js → p-limit-JBOY5PGK.js} +7 -7
- package/dist/_node-chunks/{plugin-SG6I7RFC.js → plugin-2IR6AOYP.js} +10 -10
- package/dist/_node-chunks/{plugin-SEQ2OPRK.js → plugin-5XCSTKS6.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-5O25VYCQ.js → webpack-inject-mocker-runtime-plugin-5FUND5HJ.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-35I32SAF.js → webpack-mock-plugin-JVWSZ2PI.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.js +20 -20
- package/dist/common/index.js +20 -21
- package/dist/components/index.js +2 -2
- package/dist/core-server/index.js +34 -35
- package/dist/core-server/presets/common-manager.js +551 -512
- 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 +3 -3
- package/dist/manager/runtime.js +42 -15
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +4 -4
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/globals.js +1 -1
- package/dist/preview/runtime.js +1 -1
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +23 -24
- package/package.json +1 -33
- package/dist/_node-chunks/camelcase-ZLZNQMDD.js +0 -18
- package/dist/_node-chunks/chunk-BC23FKU4.js +0 -80
- package/dist/_node-chunks/chunk-IYOHZPPC.js +0 -18
- package/dist/_node-chunks/chunk-RNHUADRS.js +0 -62
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.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-6SXRGPL6.js";
|
|
15
15
|
import {
|
|
16
16
|
boxen,
|
|
17
17
|
require_string_width
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
19
|
-
import "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-4QSDBUYK.js";
|
|
19
|
+
import "../_node-chunks/chunk-3VCGPS3V.js";
|
|
20
20
|
import {
|
|
21
21
|
StatusTypeIdMismatchError,
|
|
22
22
|
StorybookError
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
23
|
+
} from "../_node-chunks/chunk-UORO6DG4.js";
|
|
24
24
|
import {
|
|
25
25
|
getErrorLevel,
|
|
26
26
|
mapStaticDir,
|
|
@@ -28,60 +28,59 @@ import {
|
|
|
28
28
|
sendTelemetryError,
|
|
29
29
|
useStatics,
|
|
30
30
|
withTelemetry
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-DRNU7FEF.js";
|
|
32
|
+
import "../_node-chunks/chunk-YMZK6547.js";
|
|
33
33
|
import {
|
|
34
34
|
telemetry
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-4SIVISOF.js";
|
|
36
|
+
import "../_node-chunks/chunk-T46D5USU.js";
|
|
37
37
|
import {
|
|
38
38
|
userOrAutoTitleFromSpecifier
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-ZPNXCXIT.js";
|
|
39
|
+
} from "../_node-chunks/chunk-AZWKFSEJ.js";
|
|
40
|
+
import "../_node-chunks/chunk-7Q5EKYUL.js";
|
|
41
|
+
import "../_node-chunks/chunk-USP6T4QU.js";
|
|
42
|
+
import "../_node-chunks/chunk-CL53RP5L.js";
|
|
44
43
|
import {
|
|
45
44
|
optionalEnvToBoolean,
|
|
46
45
|
require_cross_spawn
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-IE2VBA4V.js";
|
|
48
47
|
import {
|
|
49
48
|
up2 as up
|
|
50
|
-
} from "../_node-chunks/chunk-
|
|
49
|
+
} from "../_node-chunks/chunk-O33XSHQE.js";
|
|
51
50
|
import {
|
|
52
51
|
invariant
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-SOIRRZYG.js";
|
|
54
53
|
import {
|
|
55
54
|
importModule,
|
|
56
55
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-7JZFWQN4.js";
|
|
58
57
|
import {
|
|
59
58
|
resolve
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
59
|
+
} from "../_node-chunks/chunk-WS3L7DA7.js";
|
|
61
60
|
import {
|
|
62
61
|
require_prompts
|
|
63
|
-
} from "../_node-chunks/chunk-
|
|
64
|
-
import "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-TL5UYDH2.js";
|
|
63
|
+
import "../_node-chunks/chunk-T5VNV7FG.js";
|
|
65
64
|
import {
|
|
66
65
|
slash
|
|
67
|
-
} from "../_node-chunks/chunk-
|
|
66
|
+
} from "../_node-chunks/chunk-HRBWZFVH.js";
|
|
68
67
|
import {
|
|
69
68
|
require_dist
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
69
|
+
} from "../_node-chunks/chunk-5SPDSTWP.js";
|
|
71
70
|
import {
|
|
72
71
|
require_lib,
|
|
73
72
|
require_src
|
|
74
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-JG7IEUS3.js";
|
|
75
74
|
import {
|
|
76
75
|
require_picocolors
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
76
|
+
} from "../_node-chunks/chunk-JEIQPNWQ.js";
|
|
78
77
|
import {
|
|
79
78
|
__commonJS,
|
|
80
79
|
__export,
|
|
81
80
|
__name,
|
|
82
81
|
__require,
|
|
83
82
|
__toESM
|
|
84
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-FRTUAT3V.js";
|
|
85
84
|
|
|
86
85
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
87
86
|
var require_filesystem = __commonJS({
|
|
@@ -8716,7 +8715,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8716
8715
|
}
|
|
8717
8716
|
const pathToSubIndex = {};
|
|
8718
8717
|
const fullGlob = slash(join(specifier.directory, specifier.files));
|
|
8719
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
8718
|
+
const { globby } = await import("../_node-chunks/globby-G3CLKE4Y.js");
|
|
8720
8719
|
const files = await globby(fullGlob, {
|
|
8721
8720
|
absolute: true,
|
|
8722
8721
|
cwd: workingDir,
|
|
@@ -8965,7 +8964,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8965
8964
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
8966
8965
|
const importPath = slash(normalizedPath);
|
|
8967
8966
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
8968
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
8967
|
+
const { analyze } = await import("../_node-chunks/dist-RINWIIFC.js");
|
|
8969
8968
|
const result2 = await analyze(content);
|
|
8970
8969
|
if (result2.isTemplate) {
|
|
8971
8970
|
return false;
|
|
@@ -9308,7 +9307,7 @@ __name(print, "print");
|
|
|
9308
9307
|
// src/core-server/utils/get-builders.ts
|
|
9309
9308
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9310
9309
|
async function getManagerBuilder() {
|
|
9311
|
-
return await import("../_node-chunks/builder-manager-
|
|
9310
|
+
return await import("../_node-chunks/builder-manager-Y34L3HC4.js");
|
|
9312
9311
|
}
|
|
9313
9312
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9314
9313
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -16552,7 +16551,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
16552
16551
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
16553
16552
|
basename2(specifier.files)
|
|
16554
16553
|
);
|
|
16555
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
16554
|
+
const { globby } = await import("../_node-chunks/globby-G3CLKE4Y.js");
|
|
16556
16555
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
16557
16556
|
addedFiles.forEach((filePath) => {
|
|
16558
16557
|
const fileImportPath = toImportPath(filePath);
|