storybook 10.0.4 → 10.0.5
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-TLHTVHEZ.js → builder-manager-BQKW23WS.js} +12 -12
- package/dist/_node-chunks/camelcase-K7FL3FGB.js +18 -0
- package/dist/_node-chunks/{chunk-E6X227GT.js → chunk-2FEHHQWR.js} +7 -7
- package/dist/_node-chunks/{chunk-AJXHJIQB.js → chunk-35SLFIQV.js} +7 -7
- package/dist/_node-chunks/{chunk-KAOO6H2Y.js → chunk-3RGO4AAD.js} +7 -7
- package/dist/_node-chunks/chunk-3WGZOSZI.js +61 -0
- package/dist/_node-chunks/{chunk-EQF4GJEA.js → chunk-67PBZUUS.js} +6 -6
- package/dist/_node-chunks/{chunk-GCITKSOH.js → chunk-6HBKONR7.js} +9 -9
- package/dist/_node-chunks/{chunk-AEJQCMUB.js → chunk-7KVBPQLP.js} +8 -8
- package/dist/_node-chunks/{chunk-PVLQPTW2.js → chunk-7N53RHGS.js} +8 -8
- package/dist/_node-chunks/{chunk-MESRJ2FJ.js → chunk-ALHPYGYU.js} +7 -7
- package/dist/_node-chunks/{chunk-6OZ7PM6U.js → chunk-AOVN24BT.js} +8 -8
- package/dist/_node-chunks/{chunk-3JDJHMFF.js → chunk-C54YAO7H.js} +7 -7
- package/dist/_node-chunks/{chunk-K74AJMJL.js → chunk-CIADIQ6F.js} +21 -21
- package/dist/_node-chunks/{chunk-YZQS6KQF.js → chunk-CWTRQZTU.js} +9 -9
- package/dist/_node-chunks/chunk-D2RKDVXH.js +18 -0
- package/dist/_node-chunks/{chunk-222IW72E.js → chunk-DF53JQZU.js} +8 -8
- package/dist/_node-chunks/{chunk-KRKU2BRJ.js → chunk-DQEQYUAT.js} +15 -15
- package/dist/_node-chunks/{chunk-5YDJHNJV.js → chunk-GJU3UNCG.js} +12 -12
- package/dist/_node-chunks/{chunk-HS5SBWIB.js → chunk-HSJOTBKX.js} +7 -7
- package/dist/_node-chunks/{chunk-WNYIV6J2.js → chunk-IMHUIAVE.js} +7 -7
- package/dist/_node-chunks/{chunk-B2VWNE6A.js → chunk-KABHBSS3.js} +7 -7
- package/dist/_node-chunks/{chunk-NCTZ52WV.js → chunk-KCF2Q4OQ.js} +7 -7
- package/dist/_node-chunks/{chunk-NED6N56K.js → chunk-L3JBAJIP.js} +7 -7
- package/dist/_node-chunks/{chunk-KP63VZPN.js → chunk-LMQEOO5W.js} +7 -7
- package/dist/_node-chunks/{chunk-4WHWOQIK.js → chunk-MB5KTO7X.js} +6 -6
- package/dist/_node-chunks/{chunk-S3LCHRAF.js → chunk-R33VBU5H.js} +7 -7
- package/dist/_node-chunks/{chunk-G7OHM4NC.js → chunk-RF57GVT2.js} +12 -12
- package/dist/_node-chunks/{chunk-ZIHOYEID.js → chunk-SM76KKDZ.js} +10 -10
- package/dist/_node-chunks/{chunk-X4F7B426.js → chunk-TNNFJ72G.js} +7 -7
- package/dist/_node-chunks/{chunk-S744X6QQ.js → chunk-U4S5ZJMR.js} +8 -8
- package/dist/_node-chunks/{chunk-AUFNFGVS.js → chunk-UXQJJRYH.js} +7 -7
- package/dist/_node-chunks/{chunk-NDR6CJ2O.js → chunk-XANJ6OPT.js} +7 -7
- package/dist/_node-chunks/{chunk-YAYYIUOL.js → chunk-ZHQALUV5.js} +7 -7
- package/dist/_node-chunks/{chunk-DQS7GIBV.js → chunk-ZJVEXDYR.js} +7 -7
- package/dist/_node-chunks/{dist-CHMZWMGF.js → dist-VRVBLN6G.js} +9 -9
- package/dist/_node-chunks/{globby-LHP4I7VR.js → globby-RBUNLUI2.js} +9 -9
- package/dist/_node-chunks/{lib-3VTYN55Z.js → lib-5EXUBK3B.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-4W5R6G4L.js → mdx-N42X6CFJ-AXQYNRQN.js} +8 -8
- package/dist/_node-chunks/{p-limit-W7UEIFAU.js → p-limit-4YLI2MML.js} +7 -7
- package/dist/_node-chunks/{plugin-M6DBRWDC.js → plugin-APERPUBY.js} +10 -10
- package/dist/_node-chunks/{plugin-BFAUW6VL.js → plugin-LW72M2ZP.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-EPIBTYDS.js → webpack-inject-mocker-runtime-plugin-ERTFMWK2.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-PJOUVLIC.js → webpack-mock-plugin-OO2UQIKX.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 +21 -21
- package/dist/common/index.js +20 -20
- package/dist/core-server/index.js +36 -36
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +23 -23
- 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/index.js +11 -4
- 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 +14 -14
- package/dist/preview/runtime.js +11 -4
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-KGP6XNUQ.js +0 -18
- package/dist/_node-chunks/chunk-2FUNGPJA.js +0 -61
- package/dist/_node-chunks/chunk-4MH3277D.js +0 -18
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_q99y7iqlbzn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_q99y7iqlbzn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_q99y7iqlbzn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_q99y7iqlbzn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_q99y7iqlbzn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_q99y7iqlbzn.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
|
detectPnp
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-RF57GVT2.js";
|
|
15
15
|
import {
|
|
16
16
|
require_pretty_hrtime
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-XANJ6OPT.js";
|
|
18
18
|
import {
|
|
19
19
|
boxen,
|
|
20
20
|
require_string_width
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-7KVBPQLP.js";
|
|
22
|
+
import "../_node-chunks/chunk-TNNFJ72G.js";
|
|
23
23
|
import {
|
|
24
24
|
StatusTypeIdMismatchError,
|
|
25
25
|
StorybookError
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-6HBKONR7.js";
|
|
27
27
|
import {
|
|
28
28
|
getErrorLevel,
|
|
29
29
|
mapStaticDir,
|
|
@@ -31,61 +31,61 @@ import {
|
|
|
31
31
|
sendTelemetryError,
|
|
32
32
|
useStatics,
|
|
33
33
|
withTelemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-GJU3UNCG.js";
|
|
35
|
+
import "../_node-chunks/chunk-UXQJJRYH.js";
|
|
36
36
|
import {
|
|
37
37
|
telemetry
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-DQEQYUAT.js";
|
|
39
|
+
import "../_node-chunks/chunk-D2RKDVXH.js";
|
|
40
40
|
import {
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
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-CIADIQ6F.js";
|
|
43
|
+
import "../_node-chunks/chunk-HSJOTBKX.js";
|
|
44
|
+
import "../_node-chunks/chunk-3WGZOSZI.js";
|
|
45
|
+
import "../_node-chunks/chunk-AOVN24BT.js";
|
|
46
46
|
import {
|
|
47
47
|
optionalEnvToBoolean,
|
|
48
48
|
require_cross_spawn
|
|
49
|
-
} from "../_node-chunks/chunk-
|
|
49
|
+
} from "../_node-chunks/chunk-CWTRQZTU.js";
|
|
50
50
|
import {
|
|
51
51
|
up2 as up
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-ZJVEXDYR.js";
|
|
53
|
+
import "../_node-chunks/chunk-ZHQALUV5.js";
|
|
54
54
|
import {
|
|
55
55
|
invariant
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-35SLFIQV.js";
|
|
57
57
|
import {
|
|
58
58
|
importModule,
|
|
59
59
|
resolvePackageDir
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
60
|
+
} from "../_node-chunks/chunk-7N53RHGS.js";
|
|
61
61
|
import {
|
|
62
62
|
join,
|
|
63
63
|
relative,
|
|
64
64
|
resolve
|
|
65
|
-
} from "../_node-chunks/chunk-
|
|
65
|
+
} from "../_node-chunks/chunk-LMQEOO5W.js";
|
|
66
66
|
import {
|
|
67
67
|
require_prompts
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
69
|
-
import "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-KCF2Q4OQ.js";
|
|
69
|
+
import "../_node-chunks/chunk-2FEHHQWR.js";
|
|
70
70
|
import {
|
|
71
71
|
slash
|
|
72
|
-
} from "../_node-chunks/chunk-
|
|
72
|
+
} from "../_node-chunks/chunk-ALHPYGYU.js";
|
|
73
73
|
import {
|
|
74
74
|
require_dist
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-IMHUIAVE.js";
|
|
76
76
|
import {
|
|
77
77
|
require_lib,
|
|
78
78
|
require_src
|
|
79
|
-
} from "../_node-chunks/chunk-
|
|
79
|
+
} from "../_node-chunks/chunk-R33VBU5H.js";
|
|
80
80
|
import {
|
|
81
81
|
require_picocolors
|
|
82
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-KABHBSS3.js";
|
|
83
83
|
import {
|
|
84
84
|
__commonJS,
|
|
85
85
|
__name,
|
|
86
86
|
__require,
|
|
87
87
|
__toESM
|
|
88
|
-
} from "../_node-chunks/chunk-
|
|
88
|
+
} from "../_node-chunks/chunk-MB5KTO7X.js";
|
|
89
89
|
|
|
90
90
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
91
91
|
var require_filesystem = __commonJS({
|
|
@@ -8719,7 +8719,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8719
8719
|
}
|
|
8720
8720
|
const pathToSubIndex = {};
|
|
8721
8721
|
const fullGlob = slash(join2(specifier.directory, specifier.files));
|
|
8722
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
8722
|
+
const { globby } = await import("../_node-chunks/globby-RBUNLUI2.js");
|
|
8723
8723
|
const files = await globby(fullGlob, {
|
|
8724
8724
|
absolute: true,
|
|
8725
8725
|
cwd: workingDir,
|
|
@@ -8977,7 +8977,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8977
8977
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
8978
8978
|
const importPath = slash(normalizedPath);
|
|
8979
8979
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
8980
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
8980
|
+
const { analyze } = await import("../_node-chunks/dist-VRVBLN6G.js");
|
|
8981
8981
|
const result = await analyze(content);
|
|
8982
8982
|
if (result.isTemplate) {
|
|
8983
8983
|
return false;
|
|
@@ -9320,7 +9320,7 @@ __name(print, "print");
|
|
|
9320
9320
|
// src/core-server/utils/get-builders.ts
|
|
9321
9321
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9322
9322
|
async function getManagerBuilder() {
|
|
9323
|
-
return await import("../_node-chunks/builder-manager-
|
|
9323
|
+
return await import("../_node-chunks/builder-manager-BQKW23WS.js");
|
|
9324
9324
|
}
|
|
9325
9325
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9326
9326
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -9559,7 +9559,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
9559
9559
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
9560
9560
|
basename2(specifier.files)
|
|
9561
9561
|
);
|
|
9562
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
9562
|
+
const { globby } = await import("../_node-chunks/globby-RBUNLUI2.js");
|
|
9563
9563
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
9564
9564
|
addedFiles.forEach((filePath) => {
|
|
9565
9565
|
const fileImportPath = toImportPath(filePath);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_q99y7iqlbzn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_q99y7iqlbzn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_q99y7iqlbzn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_q99y7iqlbzn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_q99y7iqlbzn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_q99y7iqlbzn.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-2FEHHQWR.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-ALHPYGYU.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-MB5KTO7X.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_q99y7iqlbzn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_q99y7iqlbzn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_q99y7iqlbzn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_q99y7iqlbzn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_q99y7iqlbzn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_q99y7iqlbzn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,38 +12,38 @@ var require = CJS_COMPAT_NODE_MODULE_wtyt7p2y5en.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-GJU3UNCG.js";
|
|
16
|
+
import "../../_node-chunks/chunk-UXQJJRYH.js";
|
|
17
17
|
import {
|
|
18
18
|
getLastEvents,
|
|
19
19
|
getSessionId
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-ZHQALUV5.js";
|
|
21
21
|
import {
|
|
22
22
|
invariant
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-35SLFIQV.js";
|
|
24
24
|
import {
|
|
25
25
|
resolvePackageDir
|
|
26
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
+
} from "../../_node-chunks/chunk-7N53RHGS.js";
|
|
27
27
|
import {
|
|
28
28
|
isAbsolute,
|
|
29
29
|
join
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
31
|
-
import "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-LMQEOO5W.js";
|
|
31
|
+
import "../../_node-chunks/chunk-KCF2Q4OQ.js";
|
|
32
32
|
import {
|
|
33
33
|
loadConfig
|
|
34
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
+
} from "../../_node-chunks/chunk-DF53JQZU.js";
|
|
35
35
|
import {
|
|
36
36
|
require_dist
|
|
37
|
-
} from "../../_node-chunks/chunk-
|
|
37
|
+
} from "../../_node-chunks/chunk-IMHUIAVE.js";
|
|
38
38
|
import {
|
|
39
39
|
require_picocolors
|
|
40
|
-
} from "../../_node-chunks/chunk-
|
|
40
|
+
} from "../../_node-chunks/chunk-KABHBSS3.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__name,
|
|
44
44
|
__require,
|
|
45
45
|
__toESM
|
|
46
|
-
} from "../../_node-chunks/chunk-
|
|
46
|
+
} from "../../_node-chunks/chunk-MB5KTO7X.js";
|
|
47
47
|
|
|
48
48
|
// ../node_modules/shell-quote/quote.js
|
|
49
49
|
var require_quote = __commonJS({
|
|
@@ -703,7 +703,7 @@ var import_ts_dedent = __toESM(require_dist(), 1);
|
|
|
703
703
|
|
|
704
704
|
// src/core-server/utils/get-component-variable-name.ts
|
|
705
705
|
var getComponentVariableName = /* @__PURE__ */ __name(async (name) => {
|
|
706
|
-
const camelCase = await import("../../_node-chunks/camelcase-
|
|
706
|
+
const camelCase = await import("../../_node-chunks/camelcase-K7FL3FGB.js");
|
|
707
707
|
const camelCased = camelCase.default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: true });
|
|
708
708
|
const sanitized = camelCased.replace(/[^a-zA-Z_$]+/, "");
|
|
709
709
|
return sanitized;
|
|
@@ -1050,7 +1050,7 @@ async function searchFiles({
|
|
|
1050
1050
|
ignoredFiles = IGNORED_FILES,
|
|
1051
1051
|
fileExtensions = FILE_EXTENSIONS
|
|
1052
1052
|
}) {
|
|
1053
|
-
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
1053
|
+
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-RBUNLUI2.js");
|
|
1054
1054
|
const hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd });
|
|
1055
1055
|
const hasFileExtensionRegex = /(\.[a-z]+)$/i;
|
|
1056
1056
|
const searchQueryHasExtension = hasFileExtensionRegex.test(searchQuery);
|
|
@@ -1833,8 +1833,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1833
1833
|
if (!previewConfigPath) {
|
|
1834
1834
|
return existing;
|
|
1835
1835
|
}
|
|
1836
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1837
|
-
const { viteMockPlugin } = await import("../../_node-chunks/plugin-
|
|
1836
|
+
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-LW72M2ZP.js");
|
|
1837
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-APERPUBY.js");
|
|
1838
1838
|
const coreOptions = await options.presets.apply("core");
|
|
1839
1839
|
return {
|
|
1840
1840
|
...existing,
|
|
@@ -1852,8 +1852,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1852
1852
|
if (!previewConfigPath) {
|
|
1853
1853
|
return config;
|
|
1854
1854
|
}
|
|
1855
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1856
|
-
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-
|
|
1855
|
+
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-OO2UQIKX.js");
|
|
1856
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-ERTFMWK2.js");
|
|
1857
1857
|
config.plugins = config.plugins || [];
|
|
1858
1858
|
config.module.rules.push({
|
|
1859
1859
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_q99y7iqlbzn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_q99y7iqlbzn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_q99y7iqlbzn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_q99y7iqlbzn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_q99y7iqlbzn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_q99y7iqlbzn.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-U4S5ZJMR.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-LMQEOO5W.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-MB5KTO7X.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_q99y7iqlbzn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_q99y7iqlbzn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_q99y7iqlbzn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_q99y7iqlbzn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_q99y7iqlbzn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_q99y7iqlbzn.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-L3JBAJIP.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-U4S5ZJMR.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-LMQEOO5W.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-MB5KTO7X.js";
|
|
22
22
|
|
|
23
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
24
24
|
function webpackAutomockLoader(source) {
|
package/dist/csf/index.js
CHANGED
|
@@ -2341,20 +2341,27 @@ var enhanceContext = /* @__PURE__ */ __name(async (context) => {
|
|
|
2341
2341
|
get: /* @__PURE__ */ __name(() => clipboard, "get"),
|
|
2342
2342
|
configurable: true
|
|
2343
2343
|
});
|
|
2344
|
-
let currentFocus = HTMLElement.prototype.focus;
|
|
2345
2344
|
if (!patchedFocus) {
|
|
2345
|
+
const originalFocus = HTMLElement.prototype.focus;
|
|
2346
|
+
let currentFocus = HTMLElement.prototype.focus;
|
|
2347
|
+
const focusingElements = /* @__PURE__ */ new Set();
|
|
2346
2348
|
Object.defineProperties(HTMLElement.prototype, {
|
|
2347
2349
|
focus: {
|
|
2348
2350
|
configurable: true,
|
|
2349
2351
|
set: /* @__PURE__ */ __name((newFocus) => {
|
|
2350
2352
|
currentFocus = newFocus;
|
|
2351
|
-
patchedFocus = true;
|
|
2352
2353
|
}, "set"),
|
|
2353
|
-
get
|
|
2354
|
+
get() {
|
|
2355
|
+
if (focusingElements.has(this)) {
|
|
2356
|
+
return originalFocus;
|
|
2357
|
+
}
|
|
2358
|
+
focusingElements.add(this);
|
|
2359
|
+
setTimeout(() => focusingElements.delete(this), 0);
|
|
2354
2360
|
return currentFocus;
|
|
2355
|
-
}
|
|
2361
|
+
}
|
|
2356
2362
|
}
|
|
2357
2363
|
});
|
|
2364
|
+
patchedFocus = true;
|
|
2358
2365
|
}
|
|
2359
2366
|
}
|
|
2360
2367
|
}, "enhanceContext");
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_q99y7iqlbzn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_q99y7iqlbzn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_q99y7iqlbzn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_q99y7iqlbzn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_q99y7iqlbzn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_q99y7iqlbzn.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-DF53JQZU.js";
|
|
42
|
+
import "../_node-chunks/chunk-IMHUIAVE.js";
|
|
43
|
+
import "../_node-chunks/chunk-MB5KTO7X.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -82702,7 +82702,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
82702
82702
|
var import_semver = __toESM(require_semver2(), 1);
|
|
82703
82703
|
|
|
82704
82704
|
// src/manager-api/version.ts
|
|
82705
|
-
var version = "10.0.
|
|
82705
|
+
var version = "10.0.5";
|
|
82706
82706
|
|
|
82707
82707
|
// src/manager-api/modules/versions.ts
|
|
82708
82708
|
var { VERSIONCHECK } = scope;
|
|
@@ -3262,7 +3262,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
3262
3262
|
import semver from "semver";
|
|
3263
3263
|
|
|
3264
3264
|
// src/manager-api/version.ts
|
|
3265
|
-
var version = "10.0.
|
|
3265
|
+
var version = "10.0.5";
|
|
3266
3266
|
|
|
3267
3267
|
// src/manager-api/modules/versions.ts
|
|
3268
3268
|
var { VERSIONCHECK } = global8;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_q99y7iqlbzn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_q99y7iqlbzn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_q99y7iqlbzn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_q99y7iqlbzn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_q99y7iqlbzn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_q99y7iqlbzn.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-XANJ6OPT.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-7KVBPQLP.js";
|
|
21
|
+
import "../_node-chunks/chunk-TNNFJ72G.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-CWTRQZTU.js";
|
|
26
|
+
import "../_node-chunks/chunk-ZJVEXDYR.js";
|
|
27
27
|
import {
|
|
28
28
|
require_prompts,
|
|
29
29
|
require_src
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-KCF2Q4OQ.js";
|
|
31
31
|
import {
|
|
32
32
|
require_picocolors
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-KABHBSS3.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-MB5KTO7X.js";
|
|
41
41
|
|
|
42
42
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
43
43
|
var require_tracker_base = __commonJS({
|
package/dist/preview/runtime.js
CHANGED
|
@@ -42370,20 +42370,27 @@ var enhanceContext = /* @__PURE__ */ __name(async (context) => {
|
|
|
42370
42370
|
get: /* @__PURE__ */ __name(() => clipboard, "get"),
|
|
42371
42371
|
configurable: true
|
|
42372
42372
|
});
|
|
42373
|
-
let currentFocus = HTMLElement.prototype.focus;
|
|
42374
42373
|
if (!patchedFocus) {
|
|
42374
|
+
const originalFocus = HTMLElement.prototype.focus;
|
|
42375
|
+
let currentFocus = HTMLElement.prototype.focus;
|
|
42376
|
+
const focusingElements = /* @__PURE__ */ new Set();
|
|
42375
42377
|
Object.defineProperties(HTMLElement.prototype, {
|
|
42376
42378
|
focus: {
|
|
42377
42379
|
configurable: true,
|
|
42378
42380
|
set: /* @__PURE__ */ __name((newFocus) => {
|
|
42379
42381
|
currentFocus = newFocus;
|
|
42380
|
-
patchedFocus = true;
|
|
42381
42382
|
}, "set"),
|
|
42382
|
-
get
|
|
42383
|
+
get() {
|
|
42384
|
+
if (focusingElements.has(this)) {
|
|
42385
|
+
return originalFocus;
|
|
42386
|
+
}
|
|
42387
|
+
focusingElements.add(this);
|
|
42388
|
+
setTimeout(() => focusingElements.delete(this), 0);
|
|
42383
42389
|
return currentFocus;
|
|
42384
|
-
}
|
|
42390
|
+
}
|
|
42385
42391
|
}
|
|
42386
42392
|
});
|
|
42393
|
+
patchedFocus = true;
|
|
42387
42394
|
}
|
|
42388
42395
|
}
|
|
42389
42396
|
}, "enhanceContext");
|