storybook 10.0.0-beta.11 → 10.0.0-beta.13
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-VLFDK43H.js → builder-manager-L3MZVMZ5.js} +12 -12
- package/dist/_node-chunks/camelcase-SBGRHZU6.js +18 -0
- package/dist/_node-chunks/{chunk-7MUMULSR.js → chunk-2PVUQY5V.js} +7 -7
- package/dist/_node-chunks/{chunk-SDZVOIZI.js → chunk-66ENUZM3.js} +9 -9
- package/dist/_node-chunks/{chunk-EBLOP2C5.js → chunk-6EM7SHCK.js} +7 -7
- package/dist/_node-chunks/{chunk-ER2UQBIA.js → chunk-6R3ENJUF.js} +7 -7
- package/dist/_node-chunks/{chunk-HYMBYTGJ.js → chunk-A4LTSGWA.js} +7 -7
- package/dist/_node-chunks/{chunk-UAMXREF3.js → chunk-AWXGSZGM.js} +8 -8
- package/dist/_node-chunks/{chunk-H2YBWE3T.js → chunk-BM3XDPHW.js} +12 -12
- package/dist/_node-chunks/{chunk-XYFEBEHY.js → chunk-CE25WRUD.js} +7 -7
- package/dist/_node-chunks/{chunk-XKPJCSPD.js → chunk-CKZNJYLM.js} +8 -8
- package/dist/_node-chunks/{chunk-S2RQAF7K.js → chunk-EIAGLK2S.js} +9 -9
- package/dist/_node-chunks/{chunk-DVY3VWHZ.js → chunk-EJX3QGDP.js} +29 -26
- package/dist/_node-chunks/{chunk-Q5IJJX3T.js → chunk-ETYXUFUN.js} +6 -6
- package/dist/_node-chunks/{chunk-5NSMDC6F.js → chunk-H3OKFQ7Y.js} +7 -7
- package/dist/_node-chunks/chunk-H7H5VH4N.js +18 -0
- package/dist/_node-chunks/{chunk-QLRMR54O.js → chunk-KBIRRRF3.js} +7 -7
- package/dist/_node-chunks/{chunk-EF56ZUQY.js → chunk-KHRYPC5C.js} +7 -7
- package/dist/_node-chunks/{chunk-XWCQWB3R.js → chunk-MJUX6QTP.js} +7 -7
- package/dist/_node-chunks/{chunk-4WZFG35Z.js → chunk-NR3HISO5.js} +7 -7
- package/dist/_node-chunks/{chunk-7QAAJL75.js → chunk-OCVLGT5T.js} +14 -10
- package/dist/_node-chunks/chunk-OGLI2H2L.js +61 -0
- package/dist/_node-chunks/{chunk-UC6O5PNX.js → chunk-OJHR3DEG.js} +8 -8
- package/dist/_node-chunks/{chunk-ZHBCPKYD.js → chunk-ROPO5JHR.js} +7 -7
- package/dist/_node-chunks/{chunk-VFUP6Z4J.js → chunk-RQM73BBF.js} +7 -7
- package/dist/_node-chunks/{chunk-U2UIPLJI.js → chunk-TZLQJVUQ.js} +7 -7
- package/dist/_node-chunks/{chunk-SGJZDMJW.js → chunk-VV7UYTM2.js} +6 -6
- package/dist/_node-chunks/{chunk-4SPBIDJV.js → chunk-VWAQR7SK.js} +7 -7
- package/dist/_node-chunks/{chunk-5THWZTEL.js → chunk-VWDE4KGF.js} +7 -7
- package/dist/_node-chunks/{chunk-GYBN5GXT.js → chunk-WONPUF7K.js} +8 -8
- package/dist/_node-chunks/{chunk-TJOIDMXP.js → chunk-XFXHZ5JF.js} +14 -14
- package/dist/_node-chunks/{chunk-5K7G6NFK.js → chunk-XIGLO64N.js} +10 -10
- package/dist/_node-chunks/{chunk-QSNDRP62.js → chunk-YQWCYFNY.js} +7 -7
- package/dist/_node-chunks/{dist-A2RPEHEC.js → dist-4LTP5352.js} +9 -9
- package/dist/_node-chunks/{globby-3TWPXGQS.js → globby-YL2WN4IM.js} +9 -9
- package/dist/_node-chunks/{lib-MUNM6ZJ6.js → lib-H6VRT3L6.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-QQDHJZQ3.js → mdx-N42X6CFJ-PUU6DJRU.js} +8 -8
- package/dist/_node-chunks/{p-limit-FEN55OV6.js → p-limit-B4XGNEDI.js} +7 -7
- package/dist/_node-chunks/{plugin-GDMP3JPR.js → plugin-FTK7LQSU.js} +10 -10
- package/dist/_node-chunks/{plugin-ESAYNJ5V.js → plugin-WPIGKPJE.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-5AKTLYIV.js → webpack-inject-mocker-runtime-plugin-ZVJPX75F.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-AWGZ65AQ.js → webpack-mock-plugin-BYKVULFT.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 +9 -9
- package/dist/cli/index.js +20 -20
- package/dist/common/index.d.ts +5 -3
- 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 +24 -21
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.js +24 -21
- package/dist/node-logger/index.js +18 -15
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-RENSEFK6.js +0 -18
- package/dist/_node-chunks/chunk-GHICGP2P.js +0 -18
- package/dist/_node-chunks/chunk-YAEIMHFX.js +0 -62
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-KBIRRRF3.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-WONPUF7K.js";
|
|
19
|
+
import "../_node-chunks/chunk-A4LTSGWA.js";
|
|
20
20
|
import {
|
|
21
21
|
StatusTypeIdMismatchError,
|
|
22
22
|
StorybookError
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
23
|
+
} from "../_node-chunks/chunk-66ENUZM3.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-BM3XDPHW.js";
|
|
32
|
+
import "../_node-chunks/chunk-CE25WRUD.js";
|
|
33
33
|
import {
|
|
34
34
|
telemetry
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-XFXHZ5JF.js";
|
|
36
|
+
import "../_node-chunks/chunk-H7H5VH4N.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-EJX3QGDP.js";
|
|
40
|
+
import "../_node-chunks/chunk-H3OKFQ7Y.js";
|
|
41
|
+
import "../_node-chunks/chunk-OGLI2H2L.js";
|
|
42
|
+
import "../_node-chunks/chunk-CKZNJYLM.js";
|
|
43
43
|
import {
|
|
44
44
|
optionalEnvToBoolean,
|
|
45
45
|
require_cross_spawn
|
|
46
|
-
} from "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-EIAGLK2S.js";
|
|
47
47
|
import {
|
|
48
48
|
up2 as up
|
|
49
|
-
} from "../_node-chunks/chunk-
|
|
49
|
+
} from "../_node-chunks/chunk-2PVUQY5V.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-RQM73BBF.js";
|
|
53
53
|
import {
|
|
54
54
|
importModule,
|
|
55
55
|
resolvePackageDir
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-OCVLGT5T.js";
|
|
57
57
|
import {
|
|
58
58
|
resolve
|
|
59
|
-
} from "../_node-chunks/chunk-
|
|
59
|
+
} from "../_node-chunks/chunk-TZLQJVUQ.js";
|
|
60
60
|
import {
|
|
61
61
|
require_prompts
|
|
62
|
-
} from "../_node-chunks/chunk-
|
|
63
|
-
import "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-YQWCYFNY.js";
|
|
63
|
+
import "../_node-chunks/chunk-MJUX6QTP.js";
|
|
64
64
|
import {
|
|
65
65
|
slash
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
66
|
+
} from "../_node-chunks/chunk-VWDE4KGF.js";
|
|
67
67
|
import {
|
|
68
68
|
require_dist
|
|
69
|
-
} from "../_node-chunks/chunk-
|
|
69
|
+
} from "../_node-chunks/chunk-6EM7SHCK.js";
|
|
70
70
|
import {
|
|
71
71
|
require_lib,
|
|
72
72
|
require_src
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-KHRYPC5C.js";
|
|
74
74
|
import {
|
|
75
75
|
require_picocolors
|
|
76
|
-
} from "../_node-chunks/chunk-
|
|
76
|
+
} from "../_node-chunks/chunk-ROPO5JHR.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-ETYXUFUN.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-YL2WN4IM.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-4LTP5352.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-L3MZVMZ5.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-YL2WN4IM.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_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-MJUX6QTP.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-VWDE4KGF.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-ETYXUFUN.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_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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_91hxho9jtpf.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-BM3XDPHW.js";
|
|
16
|
+
import "../../_node-chunks/chunk-CE25WRUD.js";
|
|
17
17
|
import {
|
|
18
18
|
invariant
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-RQM73BBF.js";
|
|
20
20
|
import {
|
|
21
21
|
resolvePackageDir
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-OCVLGT5T.js";
|
|
23
23
|
import {
|
|
24
24
|
join
|
|
25
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
-
import "../../_node-chunks/chunk-
|
|
25
|
+
} from "../../_node-chunks/chunk-TZLQJVUQ.js";
|
|
26
|
+
import "../../_node-chunks/chunk-YQWCYFNY.js";
|
|
27
27
|
import {
|
|
28
28
|
loadConfig
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-OJHR3DEG.js";
|
|
30
30
|
import {
|
|
31
31
|
require_dist
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-6EM7SHCK.js";
|
|
33
33
|
import {
|
|
34
34
|
require_picocolors
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-ROPO5JHR.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-ETYXUFUN.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-SBGRHZU6.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-YL2WN4IM.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-WPIGKPJE.js");
|
|
1797
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-FTK7LQSU.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-BYKVULFT.js");
|
|
1816
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-ZVJPX75F.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_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-AWXGSZGM.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-TZLQJVUQ.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-ETYXUFUN.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_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-NR3HISO5.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-AWXGSZGM.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-TZLQJVUQ.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-ETYXUFUN.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_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-OJHR3DEG.js";
|
|
42
|
+
import "../_node-chunks/chunk-6EM7SHCK.js";
|
|
43
|
+
import "../_node-chunks/chunk-ETYXUFUN.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -147910,12 +147910,12 @@ var init12 = /* @__PURE__ */ __name(({
|
|
|
147910
147910
|
return parameters2 || void 0;
|
|
147911
147911
|
}, "getCurrentParameter"),
|
|
147912
147912
|
jumpToComponent: /* @__PURE__ */ __name((direction) => {
|
|
147913
|
-
const {
|
|
147913
|
+
const { filteredIndex, storyId, refs, refId } = store2.getState();
|
|
147914
147914
|
const story = api.getData(storyId, refId);
|
|
147915
147915
|
if (!story) {
|
|
147916
147916
|
return;
|
|
147917
147917
|
}
|
|
147918
|
-
const hash4 = refId ? refs[refId].
|
|
147918
|
+
const hash4 = refId ? refs[refId].filteredIndex || {} : filteredIndex;
|
|
147919
147919
|
if (!hash4) {
|
|
147920
147920
|
return;
|
|
147921
147921
|
}
|
|
@@ -147925,12 +147925,12 @@ var init12 = /* @__PURE__ */ __name(({
|
|
|
147925
147925
|
}
|
|
147926
147926
|
}, "jumpToComponent"),
|
|
147927
147927
|
jumpToStory: /* @__PURE__ */ __name((direction) => {
|
|
147928
|
-
const {
|
|
147928
|
+
const { filteredIndex, storyId, refs, refId } = store2.getState();
|
|
147929
147929
|
const story = api.getData(storyId, refId);
|
|
147930
147930
|
if (!story) {
|
|
147931
147931
|
return;
|
|
147932
147932
|
}
|
|
147933
|
-
const hash4 = story.refId ? refs[story.refId].
|
|
147933
|
+
const hash4 = story.refId ? refs[story.refId].filteredIndex : filteredIndex;
|
|
147934
147934
|
if (!hash4) {
|
|
147935
147935
|
return;
|
|
147936
147936
|
}
|
|
@@ -147953,10 +147953,19 @@ var init12 = /* @__PURE__ */ __name(({
|
|
|
147953
147953
|
}, "selectFirstStory"),
|
|
147954
147954
|
selectStory: /* @__PURE__ */ __name((titleOrId = void 0, name = void 0, options = {}) => {
|
|
147955
147955
|
const { ref } = options;
|
|
147956
|
-
const { storyId, index: index4, refs } = store2.getState();
|
|
147957
|
-
const
|
|
147956
|
+
const { storyId, index: index4, filteredIndex, refs, settings } = store2.getState();
|
|
147957
|
+
const gotoStory = /* @__PURE__ */ __name((entry) => {
|
|
147958
|
+
if (entry?.type === "docs" || entry?.type === "story") {
|
|
147959
|
+
store2.setState({ settings: { ...settings, lastTrackedStoryId: entry.id } });
|
|
147960
|
+
navigate(`/${entry.type}/${entry.refId ? `${entry.refId}_${entry.id}` : entry.id}`);
|
|
147961
|
+
return true;
|
|
147962
|
+
}
|
|
147963
|
+
return false;
|
|
147964
|
+
}, "gotoStory");
|
|
147958
147965
|
const kindSlug = storyId?.split("--", 2)[0];
|
|
147959
|
-
|
|
147966
|
+
const hash4 = ref ? refs[ref].index : index4;
|
|
147967
|
+
const filteredHash = ref ? refs[ref].filteredIndex : filteredIndex;
|
|
147968
|
+
if (!hash4 || !filteredHash) {
|
|
147960
147969
|
return;
|
|
147961
147970
|
}
|
|
147962
147971
|
if (!name) {
|
|
@@ -147964,26 +147973,20 @@ var init12 = /* @__PURE__ */ __name(({
|
|
|
147964
147973
|
if (!entry) {
|
|
147965
147974
|
throw new Error(`Unknown id or title: '${titleOrId}'`);
|
|
147966
147975
|
}
|
|
147967
|
-
|
|
147968
|
-
|
|
147969
|
-
}
|
|
147970
|
-
const leafEntry = api.findLeafEntry(hash4, entry.id);
|
|
147971
|
-
const fullId = leafEntry.refId ? `${leafEntry.refId}_${leafEntry.id}` : leafEntry.id;
|
|
147972
|
-
navigate(`/${leafEntry.type}/${fullId}`);
|
|
147976
|
+
if (!gotoStory(entry)) {
|
|
147977
|
+
gotoStory(api.findLeafEntry(filteredHash, entry.id));
|
|
147978
|
+
}
|
|
147973
147979
|
} else if (!titleOrId) {
|
|
147974
|
-
|
|
147975
|
-
api.selectStory(id, void 0, options);
|
|
147980
|
+
gotoStory(hash4[toId(kindSlug, name)]);
|
|
147976
147981
|
} else {
|
|
147977
147982
|
const id = ref ? `${ref}_${toId(titleOrId, name)}` : toId(titleOrId, name);
|
|
147978
147983
|
if (hash4[id]) {
|
|
147979
|
-
|
|
147984
|
+
gotoStory(hash4[id]);
|
|
147980
147985
|
} else {
|
|
147981
147986
|
const entry = hash4[sanitize(titleOrId)];
|
|
147982
147987
|
if (entry?.type === "component") {
|
|
147983
147988
|
const foundId = entry.children.find((childId) => hash4[childId].name === name);
|
|
147984
|
-
|
|
147985
|
-
api.selectStory(foundId, void 0, options);
|
|
147986
|
-
}
|
|
147989
|
+
gotoStory(foundId ? hash4[foundId] : void 0);
|
|
147987
147990
|
}
|
|
147988
147991
|
}
|
|
147989
147992
|
}
|
|
@@ -147993,7 +147996,7 @@ var init12 = /* @__PURE__ */ __name(({
|
|
|
147993
147996
|
if (entry.type === "docs" || entry.type === "story") {
|
|
147994
147997
|
return entry;
|
|
147995
147998
|
}
|
|
147996
|
-
const childStoryId = entry.children[0];
|
|
147999
|
+
const childStoryId = entry.children.find((childId) => index4[childId]) || entry.children[0];
|
|
147997
148000
|
return api.findLeafEntry(index4, childStoryId);
|
|
147998
148001
|
},
|
|
147999
148002
|
findLeafStoryId(index4, storyId) {
|
|
@@ -148528,7 +148531,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
148528
148531
|
var import_semver = __toESM(require_semver2(), 1);
|
|
148529
148532
|
|
|
148530
148533
|
// src/manager-api/version.ts
|
|
148531
|
-
var version = "10.0.0-beta.
|
|
148534
|
+
var version = "10.0.0-beta.13";
|
|
148532
148535
|
|
|
148533
148536
|
// src/manager-api/modules/versions.ts
|
|
148534
148537
|
var { VERSIONCHECK } = scope;
|
package/dist/manager/runtime.js
CHANGED
|
@@ -17998,7 +17998,7 @@ var TagsFilterPanel = /* @__PURE__ */ __name(({
|
|
|
17998
17998
|
title: "Learn how to add tags",
|
|
17999
17999
|
icon: react_default.createElement(DocumentIcon, null),
|
|
18000
18000
|
right: react_default.createElement(ShareAltIcon, null),
|
|
18001
|
-
href: api.getDocsUrl({ subpath: "writing-stories/tags#
|
|
18001
|
+
href: api.getDocsUrl({ subpath: "writing-stories/tags#custom-tags" })
|
|
18002
18002
|
}
|
|
18003
18003
|
]);
|
|
18004
18004
|
}
|
|
@@ -2663,12 +2663,12 @@ var init11 = /* @__PURE__ */ __name(({
|
|
|
2663
2663
|
return parameters || void 0;
|
|
2664
2664
|
}, "getCurrentParameter"),
|
|
2665
2665
|
jumpToComponent: /* @__PURE__ */ __name((direction) => {
|
|
2666
|
-
const {
|
|
2666
|
+
const { filteredIndex, storyId, refs, refId } = store2.getState();
|
|
2667
2667
|
const story = api.getData(storyId, refId);
|
|
2668
2668
|
if (!story) {
|
|
2669
2669
|
return;
|
|
2670
2670
|
}
|
|
2671
|
-
const hash = refId ? refs[refId].
|
|
2671
|
+
const hash = refId ? refs[refId].filteredIndex || {} : filteredIndex;
|
|
2672
2672
|
if (!hash) {
|
|
2673
2673
|
return;
|
|
2674
2674
|
}
|
|
@@ -2678,12 +2678,12 @@ var init11 = /* @__PURE__ */ __name(({
|
|
|
2678
2678
|
}
|
|
2679
2679
|
}, "jumpToComponent"),
|
|
2680
2680
|
jumpToStory: /* @__PURE__ */ __name((direction) => {
|
|
2681
|
-
const {
|
|
2681
|
+
const { filteredIndex, storyId, refs, refId } = store2.getState();
|
|
2682
2682
|
const story = api.getData(storyId, refId);
|
|
2683
2683
|
if (!story) {
|
|
2684
2684
|
return;
|
|
2685
2685
|
}
|
|
2686
|
-
const hash = story.refId ? refs[story.refId].
|
|
2686
|
+
const hash = story.refId ? refs[story.refId].filteredIndex : filteredIndex;
|
|
2687
2687
|
if (!hash) {
|
|
2688
2688
|
return;
|
|
2689
2689
|
}
|
|
@@ -2706,10 +2706,19 @@ var init11 = /* @__PURE__ */ __name(({
|
|
|
2706
2706
|
}, "selectFirstStory"),
|
|
2707
2707
|
selectStory: /* @__PURE__ */ __name((titleOrId = void 0, name = void 0, options = {}) => {
|
|
2708
2708
|
const { ref } = options;
|
|
2709
|
-
const { storyId, index, refs } = store2.getState();
|
|
2710
|
-
const
|
|
2709
|
+
const { storyId, index, filteredIndex, refs, settings } = store2.getState();
|
|
2710
|
+
const gotoStory = /* @__PURE__ */ __name((entry) => {
|
|
2711
|
+
if (entry?.type === "docs" || entry?.type === "story") {
|
|
2712
|
+
store2.setState({ settings: { ...settings, lastTrackedStoryId: entry.id } });
|
|
2713
|
+
navigate(`/${entry.type}/${entry.refId ? `${entry.refId}_${entry.id}` : entry.id}`);
|
|
2714
|
+
return true;
|
|
2715
|
+
}
|
|
2716
|
+
return false;
|
|
2717
|
+
}, "gotoStory");
|
|
2711
2718
|
const kindSlug = storyId?.split("--", 2)[0];
|
|
2712
|
-
|
|
2719
|
+
const hash = ref ? refs[ref].index : index;
|
|
2720
|
+
const filteredHash = ref ? refs[ref].filteredIndex : filteredIndex;
|
|
2721
|
+
if (!hash || !filteredHash) {
|
|
2713
2722
|
return;
|
|
2714
2723
|
}
|
|
2715
2724
|
if (!name) {
|
|
@@ -2717,26 +2726,20 @@ var init11 = /* @__PURE__ */ __name(({
|
|
|
2717
2726
|
if (!entry) {
|
|
2718
2727
|
throw new Error(`Unknown id or title: '${titleOrId}'`);
|
|
2719
2728
|
}
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
}
|
|
2723
|
-
const leafEntry = api.findLeafEntry(hash, entry.id);
|
|
2724
|
-
const fullId = leafEntry.refId ? `${leafEntry.refId}_${leafEntry.id}` : leafEntry.id;
|
|
2725
|
-
navigate(`/${leafEntry.type}/${fullId}`);
|
|
2729
|
+
if (!gotoStory(entry)) {
|
|
2730
|
+
gotoStory(api.findLeafEntry(filteredHash, entry.id));
|
|
2731
|
+
}
|
|
2726
2732
|
} else if (!titleOrId) {
|
|
2727
|
-
|
|
2728
|
-
api.selectStory(id, void 0, options);
|
|
2733
|
+
gotoStory(hash[toId(kindSlug, name)]);
|
|
2729
2734
|
} else {
|
|
2730
2735
|
const id = ref ? `${ref}_${toId(titleOrId, name)}` : toId(titleOrId, name);
|
|
2731
2736
|
if (hash[id]) {
|
|
2732
|
-
|
|
2737
|
+
gotoStory(hash[id]);
|
|
2733
2738
|
} else {
|
|
2734
2739
|
const entry = hash[sanitize2(titleOrId)];
|
|
2735
2740
|
if (entry?.type === "component") {
|
|
2736
2741
|
const foundId = entry.children.find((childId) => hash[childId].name === name);
|
|
2737
|
-
|
|
2738
|
-
api.selectStory(foundId, void 0, options);
|
|
2739
|
-
}
|
|
2742
|
+
gotoStory(foundId ? hash[foundId] : void 0);
|
|
2740
2743
|
}
|
|
2741
2744
|
}
|
|
2742
2745
|
}
|
|
@@ -2746,7 +2749,7 @@ var init11 = /* @__PURE__ */ __name(({
|
|
|
2746
2749
|
if (entry.type === "docs" || entry.type === "story") {
|
|
2747
2750
|
return entry;
|
|
2748
2751
|
}
|
|
2749
|
-
const childStoryId = entry.children[0];
|
|
2752
|
+
const childStoryId = entry.children.find((childId) => index[childId]) || entry.children[0];
|
|
2750
2753
|
return api.findLeafEntry(index, childStoryId);
|
|
2751
2754
|
},
|
|
2752
2755
|
findLeafStoryId(index, storyId) {
|
|
@@ -3289,7 +3292,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
3289
3292
|
import semver from "semver";
|
|
3290
3293
|
|
|
3291
3294
|
// src/manager-api/version.ts
|
|
3292
|
-
var version = "10.0.0-beta.
|
|
3295
|
+
var version = "10.0.0-beta.13";
|
|
3293
3296
|
|
|
3294
3297
|
// src/manager-api/modules/versions.ts
|
|
3295
3298
|
var { VERSIONCHECK } = global8;
|