storybook 10.0.0-beta.10 → 10.0.0-beta.11
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-SJGIDEN6.js → builder-manager-VLFDK43H.js} +12 -12
- package/dist/_node-chunks/camelcase-RENSEFK6.js +18 -0
- package/dist/_node-chunks/{chunk-JUMUXWEV.js → chunk-4SPBIDJV.js} +7 -7
- package/dist/_node-chunks/{chunk-JMXKCRWR.js → chunk-4WZFG35Z.js} +7 -7
- package/dist/_node-chunks/{chunk-WFCPBKQJ.js → chunk-5K7G6NFK.js} +10 -10
- package/dist/_node-chunks/{chunk-TH5QVQRL.js → chunk-5NSMDC6F.js} +7 -7
- package/dist/_node-chunks/{chunk-KLVABNEU.js → chunk-5THWZTEL.js} +7 -7
- package/dist/_node-chunks/{chunk-C5V22GP7.js → chunk-7MUMULSR.js} +7 -7
- package/dist/_node-chunks/{chunk-R54K4KSM.js → chunk-7QAAJL75.js} +8 -8
- package/dist/_node-chunks/{chunk-OL6DY6BT.js → chunk-DVY3VWHZ.js} +21 -21
- package/dist/_node-chunks/{chunk-GUJVZUYI.js → chunk-EBLOP2C5.js} +7 -7
- package/dist/_node-chunks/{chunk-VOUNSD2E.js → chunk-EF56ZUQY.js} +7 -7
- package/dist/_node-chunks/{chunk-6CZW7AGN.js → chunk-ER2UQBIA.js} +7 -7
- package/dist/_node-chunks/chunk-GHICGP2P.js +18 -0
- package/dist/_node-chunks/{chunk-XHF3WWNP.js → chunk-GYBN5GXT.js} +8 -8
- package/dist/_node-chunks/{chunk-6XT5OLNL.js → chunk-H2YBWE3T.js} +12 -12
- package/dist/_node-chunks/{chunk-YHO6XR7U.js → chunk-HYMBYTGJ.js} +7 -7
- package/dist/_node-chunks/{chunk-SSN5PKIY.js → chunk-Q5IJJX3T.js} +6 -6
- package/dist/_node-chunks/{chunk-AHRH5RPR.js → chunk-QLRMR54O.js} +7 -7
- package/dist/_node-chunks/{chunk-UV3CZ3KS.js → chunk-QSNDRP62.js} +7 -7
- package/dist/_node-chunks/{chunk-IHPLRRAR.js → chunk-S2RQAF7K.js} +9 -9
- package/dist/_node-chunks/{chunk-QRTDDTZJ.js → chunk-SDZVOIZI.js} +9 -9
- package/dist/_node-chunks/{chunk-QQ3Z5KGJ.js → chunk-SGJZDMJW.js} +6 -6
- package/dist/_node-chunks/{chunk-UVUGJDAI.js → chunk-TJOIDMXP.js} +14 -14
- package/dist/_node-chunks/{chunk-AOH6ABSV.js → chunk-U2UIPLJI.js} +7 -7
- package/dist/_node-chunks/{chunk-XU45KXNQ.js → chunk-UAMXREF3.js} +8 -8
- package/dist/_node-chunks/{chunk-ONJV3K2L.js → chunk-UC6O5PNX.js} +8 -8
- package/dist/_node-chunks/{chunk-KGX33KXX.js → chunk-VFUP6Z4J.js} +7 -7
- package/dist/_node-chunks/{chunk-PTHTD4RO.js → chunk-XKPJCSPD.js} +8 -8
- package/dist/_node-chunks/{chunk-S2LZC6JK.js → chunk-XWCQWB3R.js} +7 -7
- package/dist/_node-chunks/{chunk-SXR2DITB.js → chunk-XYFEBEHY.js} +7 -7
- package/dist/_node-chunks/chunk-YAEIMHFX.js +62 -0
- package/dist/_node-chunks/{chunk-FIROF4DV.js → chunk-ZHBCPKYD.js} +7 -7
- package/dist/_node-chunks/{dist-IIC5PBL7.js → dist-A2RPEHEC.js} +9 -9
- package/dist/_node-chunks/{globby-CJACC3HJ.js → globby-3TWPXGQS.js} +9 -9
- package/dist/_node-chunks/{lib-ZY4TKSOR.js → lib-MUNM6ZJ6.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3XNW3DFO.js → mdx-N42X6CFJ-QQDHJZQ3.js} +8 -8
- package/dist/_node-chunks/{p-limit-R2OFT5HE.js → p-limit-FEN55OV6.js} +7 -7
- package/dist/_node-chunks/{plugin-5XD5R2KD.js → plugin-ESAYNJ5V.js} +11 -11
- package/dist/_node-chunks/{plugin-WAWVQMVR.js → plugin-GDMP3JPR.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-SCRGJLIS.js → webpack-inject-mocker-runtime-plugin-5AKTLYIV.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-3VAXEGG2.js → webpack-mock-plugin-AWGZ65AQ.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 +77 -12
- package/dist/cli/index.js +21 -20
- package/dist/common/index.js +20 -20
- package/dist/core-server/index.js +34 -34
- 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/runtime.js +8 -6
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +14 -14
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-VZHWABQV.js +0 -18
- package/dist/_node-chunks/chunk-SFJFSPRT.js +0 -62
- package/dist/_node-chunks/chunk-U34NWAU2.js +0 -18
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_91hxho9jtpf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_91hxho9jtpf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_91hxho9jtpf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_91hxho9jtpf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_91hxho9jtpf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_91hxho9jtpf.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-QLRMR54O.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-GYBN5GXT.js";
|
|
19
|
+
import "../_node-chunks/chunk-HYMBYTGJ.js";
|
|
20
20
|
import {
|
|
21
21
|
StatusTypeIdMismatchError,
|
|
22
22
|
StorybookError
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
23
|
+
} from "../_node-chunks/chunk-SDZVOIZI.js";
|
|
24
24
|
import {
|
|
25
25
|
getErrorLevel,
|
|
26
26
|
mapStaticDir,
|
|
@@ -28,59 +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-H2YBWE3T.js";
|
|
32
|
+
import "../_node-chunks/chunk-XYFEBEHY.js";
|
|
33
33
|
import {
|
|
34
34
|
telemetry
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-TJOIDMXP.js";
|
|
36
|
+
import "../_node-chunks/chunk-GHICGP2P.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-
|
|
39
|
+
} from "../_node-chunks/chunk-DVY3VWHZ.js";
|
|
40
|
+
import "../_node-chunks/chunk-5NSMDC6F.js";
|
|
41
|
+
import "../_node-chunks/chunk-YAEIMHFX.js";
|
|
42
|
+
import "../_node-chunks/chunk-XKPJCSPD.js";
|
|
43
43
|
import {
|
|
44
44
|
optionalEnvToBoolean,
|
|
45
45
|
require_cross_spawn
|
|
46
|
-
} from "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-S2RQAF7K.js";
|
|
47
47
|
import {
|
|
48
48
|
up2 as up
|
|
49
|
-
} from "../_node-chunks/chunk-
|
|
49
|
+
} from "../_node-chunks/chunk-7MUMULSR.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-VFUP6Z4J.js";
|
|
53
53
|
import {
|
|
54
54
|
importModule,
|
|
55
55
|
resolvePackageDir
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-7QAAJL75.js";
|
|
57
57
|
import {
|
|
58
58
|
resolve
|
|
59
|
-
} from "../_node-chunks/chunk-
|
|
59
|
+
} from "../_node-chunks/chunk-U2UIPLJI.js";
|
|
60
60
|
import {
|
|
61
61
|
require_prompts
|
|
62
|
-
} from "../_node-chunks/chunk-
|
|
63
|
-
import "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-QSNDRP62.js";
|
|
63
|
+
import "../_node-chunks/chunk-XWCQWB3R.js";
|
|
64
64
|
import {
|
|
65
65
|
slash
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
66
|
+
} from "../_node-chunks/chunk-5THWZTEL.js";
|
|
67
67
|
import {
|
|
68
68
|
require_dist
|
|
69
|
-
} from "../_node-chunks/chunk-
|
|
69
|
+
} from "../_node-chunks/chunk-EBLOP2C5.js";
|
|
70
70
|
import {
|
|
71
71
|
require_lib,
|
|
72
72
|
require_src
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-EF56ZUQY.js";
|
|
74
74
|
import {
|
|
75
75
|
require_picocolors
|
|
76
|
-
} from "../_node-chunks/chunk-
|
|
76
|
+
} from "../_node-chunks/chunk-ZHBCPKYD.js";
|
|
77
77
|
import {
|
|
78
78
|
__commonJS,
|
|
79
79
|
__export,
|
|
80
80
|
__name,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-Q5IJJX3T.js";
|
|
84
84
|
|
|
85
85
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
@@ -8715,7 +8715,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8715
8715
|
}
|
|
8716
8716
|
const pathToSubIndex = {};
|
|
8717
8717
|
const fullGlob = slash(join(specifier.directory, specifier.files));
|
|
8718
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
8718
|
+
const { globby } = await import("../_node-chunks/globby-3TWPXGQS.js");
|
|
8719
8719
|
const files = await globby(fullGlob, {
|
|
8720
8720
|
absolute: true,
|
|
8721
8721
|
cwd: workingDir,
|
|
@@ -8973,7 +8973,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8973
8973
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
8974
8974
|
const importPath = slash(normalizedPath);
|
|
8975
8975
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
8976
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
8976
|
+
const { analyze } = await import("../_node-chunks/dist-A2RPEHEC.js");
|
|
8977
8977
|
const result2 = await analyze(content);
|
|
8978
8978
|
if (result2.isTemplate) {
|
|
8979
8979
|
return false;
|
|
@@ -9316,7 +9316,7 @@ __name(print, "print");
|
|
|
9316
9316
|
// src/core-server/utils/get-builders.ts
|
|
9317
9317
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9318
9318
|
async function getManagerBuilder() {
|
|
9319
|
-
return await import("../_node-chunks/builder-manager-
|
|
9319
|
+
return await import("../_node-chunks/builder-manager-VLFDK43H.js");
|
|
9320
9320
|
}
|
|
9321
9321
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9322
9322
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -16560,7 +16560,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
16560
16560
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
16561
16561
|
basename2(specifier.files)
|
|
16562
16562
|
);
|
|
16563
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
16563
|
+
const { globby } = await import("../_node-chunks/globby-3TWPXGQS.js");
|
|
16564
16564
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
16565
16565
|
addedFiles.forEach((filePath) => {
|
|
16566
16566
|
const fileImportPath = toImportPath(filePath);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_91hxho9jtpf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_91hxho9jtpf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_91hxho9jtpf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_91hxho9jtpf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_91hxho9jtpf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_91hxho9jtpf.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
|
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-XWCQWB3R.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-5THWZTEL.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-Q5IJJX3T.js";
|
|
21
21
|
|
|
22
22
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
23
23
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_91hxho9jtpf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_91hxho9jtpf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_91hxho9jtpf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_91hxho9jtpf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_91hxho9jtpf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_91hxho9jtpf.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,33 +12,33 @@ var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
parseStaticDir,
|
|
14
14
|
sendTelemetryError
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-H2YBWE3T.js";
|
|
16
|
+
import "../../_node-chunks/chunk-XYFEBEHY.js";
|
|
17
17
|
import {
|
|
18
18
|
invariant
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-VFUP6Z4J.js";
|
|
20
20
|
import {
|
|
21
21
|
resolvePackageDir
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-7QAAJL75.js";
|
|
23
23
|
import {
|
|
24
24
|
join
|
|
25
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
-
import "../../_node-chunks/chunk-
|
|
25
|
+
} from "../../_node-chunks/chunk-U2UIPLJI.js";
|
|
26
|
+
import "../../_node-chunks/chunk-QSNDRP62.js";
|
|
27
27
|
import {
|
|
28
28
|
loadConfig
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-UC6O5PNX.js";
|
|
30
30
|
import {
|
|
31
31
|
require_dist
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-EBLOP2C5.js";
|
|
33
33
|
import {
|
|
34
34
|
require_picocolors
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-ZHBCPKYD.js";
|
|
36
36
|
import {
|
|
37
37
|
__commonJS,
|
|
38
38
|
__name,
|
|
39
39
|
__require,
|
|
40
40
|
__toESM
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-Q5IJJX3T.js";
|
|
42
42
|
|
|
43
43
|
// ../node_modules/shell-quote/quote.js
|
|
44
44
|
var require_quote = __commonJS({
|
|
@@ -699,7 +699,7 @@ var import_ts_dedent = __toESM(require_dist(), 1);
|
|
|
699
699
|
|
|
700
700
|
// src/core-server/utils/get-component-variable-name.ts
|
|
701
701
|
var getComponentVariableName = /* @__PURE__ */ __name(async (name) => {
|
|
702
|
-
const camelCase = await import("../../_node-chunks/camelcase-
|
|
702
|
+
const camelCase = await import("../../_node-chunks/camelcase-RENSEFK6.js");
|
|
703
703
|
const camelCased = camelCase.default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: true });
|
|
704
704
|
const sanitized = camelCased.replace(/[^a-zA-Z_$]+/, "");
|
|
705
705
|
return sanitized;
|
|
@@ -1046,7 +1046,7 @@ async function searchFiles({
|
|
|
1046
1046
|
ignoredFiles = IGNORED_FILES,
|
|
1047
1047
|
fileExtensions = FILE_EXTENSIONS
|
|
1048
1048
|
}) {
|
|
1049
|
-
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
1049
|
+
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-3TWPXGQS.js");
|
|
1050
1050
|
const hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd });
|
|
1051
1051
|
const hasFileExtensionRegex = /(\.[a-z]+)$/i;
|
|
1052
1052
|
const searchQueryHasExtension = hasFileExtensionRegex.test(searchQuery);
|
|
@@ -1793,8 +1793,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1793
1793
|
if (!previewConfigPath) {
|
|
1794
1794
|
return existing;
|
|
1795
1795
|
}
|
|
1796
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1797
|
-
const { viteMockPlugin } = await import("../../_node-chunks/plugin-
|
|
1796
|
+
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-ESAYNJ5V.js");
|
|
1797
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-GDMP3JPR.js");
|
|
1798
1798
|
const coreOptions = await options.presets.apply("core");
|
|
1799
1799
|
return {
|
|
1800
1800
|
...existing,
|
|
@@ -1812,8 +1812,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1812
1812
|
if (!previewConfigPath) {
|
|
1813
1813
|
return config;
|
|
1814
1814
|
}
|
|
1815
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1816
|
-
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-
|
|
1815
|
+
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-AWGZ65AQ.js");
|
|
1816
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-5AKTLYIV.js");
|
|
1817
1817
|
config.plugins = config.plugins || [];
|
|
1818
1818
|
config.module.rules.push({
|
|
1819
1819
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_91hxho9jtpf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_91hxho9jtpf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_91hxho9jtpf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_91hxho9jtpf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_91hxho9jtpf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_91hxho9jtpf.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
|
rewriteSbMockImportCalls
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
15
|
-
import "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-UAMXREF3.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-U2UIPLJI.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-Q5IJJX3T.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/presets/webpack/loaders/storybook-mock-transform-loader.ts
|
|
21
21
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_91hxho9jtpf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_91hxho9jtpf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_91hxho9jtpf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_91hxho9jtpf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_91hxho9jtpf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_91hxho9jtpf.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-4WZFG35Z.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-UAMXREF3.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-U2UIPLJI.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-Q5IJJX3T.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_91hxho9jtpf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_91hxho9jtpf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_91hxho9jtpf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_91hxho9jtpf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_91hxho9jtpf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_91hxho9jtpf.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-UC6O5PNX.js";
|
|
42
|
+
import "../_node-chunks/chunk-EBLOP2C5.js";
|
|
43
|
+
import "../_node-chunks/chunk-Q5IJJX3T.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -148528,7 +148528,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
148528
148528
|
var import_semver = __toESM(require_semver2(), 1);
|
|
148529
148529
|
|
|
148530
148530
|
// src/manager-api/version.ts
|
|
148531
|
-
var version = "10.0.0-beta.
|
|
148531
|
+
var version = "10.0.0-beta.11";
|
|
148532
148532
|
|
|
148533
148533
|
// src/manager-api/modules/versions.ts
|
|
148534
148534
|
var { VERSIONCHECK } = scope;
|
package/dist/manager/runtime.js
CHANGED
|
@@ -9218,7 +9218,8 @@ function ShareMenu({
|
|
|
9218
9218
|
baseUrl,
|
|
9219
9219
|
storyId,
|
|
9220
9220
|
queryParams,
|
|
9221
|
-
qrUrl
|
|
9221
|
+
qrUrl,
|
|
9222
|
+
isDevelopment
|
|
9222
9223
|
}) {
|
|
9223
9224
|
const api = useStorybookApi();
|
|
9224
9225
|
const shortcutKeys = api.getShortcutKeys();
|
|
@@ -9255,12 +9256,12 @@ function ShareMenu({
|
|
|
9255
9256
|
{
|
|
9256
9257
|
id: "qr-section",
|
|
9257
9258
|
// @ts-expect-error (non strict)
|
|
9258
|
-
content: react_default.createElement(QRContainer, null, react_default.createElement(QRImage, { value: qrUrl }), react_default.createElement(QRContent, null, react_default.createElement(QRTitle, null, "Scan
|
|
9259
|
+
content: react_default.createElement(QRContainer, null, react_default.createElement(QRImage, { value: qrUrl }), react_default.createElement(QRContent, null, react_default.createElement(QRTitle, null, "Scan to open"), react_default.createElement(QRDescription, null, isDevelopment ? "Device must be on the same network." : "View story on another device.")))
|
|
9259
9260
|
}
|
|
9260
9261
|
]);
|
|
9261
9262
|
return baseLinks;
|
|
9262
|
-
}, [baseUrl, storyId, queryParams, copied, qrUrl, enableShortcuts, copyStoryLink]);
|
|
9263
|
-
return react_default.createElement(TooltipLinkList, { links });
|
|
9263
|
+
}, [baseUrl, storyId, queryParams, copied, qrUrl, enableShortcuts, copyStoryLink, isDevelopment]);
|
|
9264
|
+
return react_default.createElement(TooltipLinkList, { links, style: { width: 210 } });
|
|
9264
9265
|
}
|
|
9265
9266
|
__name(ShareMenu, "ShareMenu");
|
|
9266
9267
|
var shareTool = {
|
|
@@ -9270,13 +9271,14 @@ var shareTool = {
|
|
|
9270
9271
|
match: /* @__PURE__ */ __name(({ viewMode, tabId }) => viewMode === "story" && !tabId, "match"),
|
|
9271
9272
|
render: /* @__PURE__ */ __name(() => {
|
|
9272
9273
|
return react_default.createElement(Consumer, { filter: mapper3 }, ({ baseUrl, storyId, queryParams }) => {
|
|
9273
|
-
const
|
|
9274
|
+
const isDevelopment = scope.CONFIG_TYPE === "DEVELOPMENT";
|
|
9275
|
+
const storyUrl = scope.STORYBOOK_NETWORK_ADDRESS ? new URL(window.location.search, scope.STORYBOOK_NETWORK_ADDRESS).href : window.location.href;
|
|
9274
9276
|
return storyId ? react_default.createElement(
|
|
9275
9277
|
WithTooltip,
|
|
9276
9278
|
{
|
|
9277
9279
|
hasChrome: true,
|
|
9278
9280
|
placement: "bottom",
|
|
9279
|
-
tooltip: react_default.createElement(ShareMenu, { ...{ baseUrl, storyId, queryParams, qrUrl: storyUrl } })
|
|
9281
|
+
tooltip: react_default.createElement(ShareMenu, { ...{ baseUrl, storyId, queryParams, qrUrl: storyUrl, isDevelopment } })
|
|
9280
9282
|
},
|
|
9281
9283
|
react_default.createElement(IconButton, { title: "Share" }, react_default.createElement(ShareIcon, null))
|
|
9282
9284
|
) : null;
|
|
@@ -3289,7 +3289,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
3289
3289
|
import semver from "semver";
|
|
3290
3290
|
|
|
3291
3291
|
// src/manager-api/version.ts
|
|
3292
|
-
var version = "10.0.0-beta.
|
|
3292
|
+
var version = "10.0.0-beta.11";
|
|
3293
3293
|
|
|
3294
3294
|
// src/manager-api/modules/versions.ts
|
|
3295
3295
|
var { VERSIONCHECK } = global8;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_91hxho9jtpf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_91hxho9jtpf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_91hxho9jtpf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_91hxho9jtpf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_91hxho9jtpf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_91hxho9jtpf.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-QLRMR54O.js";
|
|
15
15
|
import {
|
|
16
16
|
ansi_styles_default,
|
|
17
17
|
boxen,
|
|
18
18
|
require_string_width,
|
|
19
19
|
stripAnsi
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-GYBN5GXT.js";
|
|
21
|
+
import "../_node-chunks/chunk-HYMBYTGJ.js";
|
|
22
22
|
import {
|
|
23
23
|
execaSync,
|
|
24
24
|
optionalEnvToBoolean
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-S2RQAF7K.js";
|
|
26
|
+
import "../_node-chunks/chunk-7MUMULSR.js";
|
|
27
27
|
import {
|
|
28
28
|
require_prompts,
|
|
29
29
|
require_src
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-QSNDRP62.js";
|
|
31
31
|
import {
|
|
32
32
|
require_picocolors
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-ZHBCPKYD.js";
|
|
34
34
|
import {
|
|
35
35
|
__commonJS,
|
|
36
36
|
__export,
|
|
37
37
|
__name,
|
|
38
38
|
__require,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "../_node-chunks/chunk-
|
|
40
|
+
} from "../_node-chunks/chunk-Q5IJJX3T.js";
|
|
41
41
|
|
|
42
42
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
43
43
|
var require_tracker_base = __commonJS({
|