storybook 10.0.0-beta.2 → 10.0.0-beta.3
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-KCNW2J74.js → builder-manager-DXAEQZJB.js} +16 -16
- package/dist/_node-chunks/{camelcase-FH5EGUIB.js → camelcase-CMMT6PHY.js} +7 -7
- package/dist/_node-chunks/{chunk-FXPYWCQE.js → chunk-3SUJKLRV.js} +7 -7
- package/dist/_node-chunks/{chunk-6B3CXS7K.js → chunk-4TGAX5W7.js} +7 -7
- package/dist/_node-chunks/{chunk-NWTLWMJN.js → chunk-5XVEWBRA.js} +143 -15
- package/dist/_node-chunks/{chunk-CIIY3F53.js → chunk-6Z44ODDR.js} +7 -7
- package/dist/_node-chunks/{chunk-KDKM7KMS.js → chunk-7EGB7ALG.js} +7 -7
- package/dist/_node-chunks/{chunk-B7L5A4BQ.js → chunk-AKW5OJ2T.js} +9 -9
- package/dist/_node-chunks/chunk-ALWVSNSK.js +62 -0
- package/dist/_node-chunks/{chunk-JZ7ZEAK6.js → chunk-BV4J7FF6.js} +7 -7
- package/dist/_node-chunks/{chunk-2E5IZBC2.js → chunk-CNKVQCQJ.js} +7 -7
- package/dist/_node-chunks/{chunk-MX77OTGN.js → chunk-DNOOZ2LS.js} +58 -47
- package/dist/_node-chunks/{chunk-HSI4BG2J.js → chunk-EI44VA3U.js} +8 -8
- package/dist/_node-chunks/{chunk-6A2WP6N7.js → chunk-EVY6P65U.js} +7 -7
- package/dist/_node-chunks/{chunk-HSS67Y6T.js → chunk-IA7M33LK.js} +7 -7
- package/dist/_node-chunks/{chunk-NTXIDMDM.js → chunk-ICETGZAR.js} +7 -7
- package/dist/_node-chunks/chunk-ICFGNVW7.js +1476 -0
- package/dist/_node-chunks/{chunk-RSG3AEWL.js → chunk-KQXC7XVZ.js} +16 -16
- package/dist/_node-chunks/{chunk-CGY2ITTD.js → chunk-LRQFELIZ.js} +8 -8
- package/dist/_node-chunks/{chunk-IBC4BVDB.js → chunk-MHNUEOON.js} +7 -7
- package/dist/_node-chunks/{chunk-63VGATS4.js → chunk-MVPVYHBT.js} +7 -7
- package/dist/_node-chunks/{chunk-NUODGCJN.js → chunk-PA26PSV2.js} +7 -7
- package/dist/_node-chunks/{chunk-2VOEBWNF.js → chunk-PAZJQ2GH.js} +7 -7
- package/dist/_node-chunks/{chunk-JWFNAC5N.js → chunk-PK6SVDYW.js} +7 -7
- package/dist/_node-chunks/{chunk-CMFB2H3U.js → chunk-QI3AVWUV.js} +12 -12
- package/dist/_node-chunks/{chunk-7DWWXKIE.js → chunk-R6TLLF24.js} +6 -6
- package/dist/_node-chunks/{chunk-XWJNZVOR.js → chunk-RUCPXDO3.js} +8 -8
- package/dist/_node-chunks/{chunk-ZF6AXYHM.js → chunk-SHXAIHPO.js} +7 -7
- package/dist/_node-chunks/{chunk-WBRWBEAS.js → chunk-TL5RNPZW.js} +10 -10
- package/dist/_node-chunks/{chunk-6FPFMFFH.js → chunk-VDFQYNPZ.js} +8 -8
- package/dist/_node-chunks/{chunk-TLM4ECJN.js → chunk-WELIADWR.js} +9 -9
- package/dist/_node-chunks/{chunk-DPF2NDLD.js → chunk-WRSYICUI.js} +7 -7
- package/dist/_node-chunks/{chunk-PTT3CRNJ.js → chunk-XRAB2RZN.js} +6 -6
- package/dist/_node-chunks/chunk-YRXKNGPR.js +18 -0
- package/dist/_node-chunks/{default-browser-id-YRAH7IMC.js → default-browser-id-2X5XLPPS.js} +7 -7
- package/dist/_node-chunks/{dist-G5THJIW5.js → dist-JSBOOVQK.js} +9 -9
- package/dist/_node-chunks/{globby-FGF2JG5Z.js → globby-YYTLHNUO.js} +9 -9
- package/dist/_node-chunks/{lib-OPOVJQIO.js → lib-DJHADRPZ.js} +11 -11
- package/dist/_node-chunks/{mdx-N42X6CFJ-N5MJA4NM.js → mdx-N42X6CFJ-WT6XCDU6.js} +8 -8
- package/dist/_node-chunks/{p-limit-JNDYEQZX.js → p-limit-HTXI4SGX.js} +8 -8
- package/dist/_node-chunks/{plugin-ZL4ZLDWE.js → plugin-NNRMQ2YK.js} +10 -10
- package/dist/_node-chunks/{plugin-6GW4GYGS.js → plugin-W22F3FQV.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-F6BXWV4R.js → webpack-inject-mocker-runtime-plugin-VFNVWMAM.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-5QNP4V3B.js → webpack-mock-plugin-Q4ED2M25.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 +22 -22
- 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 +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/index.js +7 -1
- package/dist/csf-tools/index.d.ts +34 -0
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +3 -2
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/runtime.js +9 -2
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +25 -25
- package/dist/test/index.js +2 -1
- package/package.json +2 -2
- package/dist/_node-chunks/chunk-2VH25RMB.js +0 -9845
- package/dist/_node-chunks/chunk-IAAPNJG4.js +0 -62
- package/dist/_node-chunks/chunk-NNJMYLJM.js +0 -18
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-3SUJKLRV.js";
|
|
15
15
|
import {
|
|
16
16
|
boxen,
|
|
17
17
|
require_string_width
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-SHXAIHPO.js";
|
|
19
19
|
import {
|
|
20
20
|
StatusTypeIdMismatchError,
|
|
21
21
|
StorybookError
|
|
22
|
-
} from "../_node-chunks/chunk-
|
|
22
|
+
} from "../_node-chunks/chunk-AKW5OJ2T.js";
|
|
23
23
|
import {
|
|
24
24
|
getErrorLevel,
|
|
25
25
|
mapStaticDir,
|
|
@@ -27,60 +27,60 @@ import {
|
|
|
27
27
|
sendTelemetryError,
|
|
28
28
|
useStatics,
|
|
29
29
|
withTelemetry
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-QI3AVWUV.js";
|
|
31
|
+
import "../_node-chunks/chunk-PK6SVDYW.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-KQXC7XVZ.js";
|
|
35
|
+
import "../_node-chunks/chunk-YRXKNGPR.js";
|
|
36
36
|
import {
|
|
37
37
|
userOrAutoTitleFromSpecifier
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-DNOOZ2LS.js";
|
|
39
|
+
import "../_node-chunks/chunk-PAZJQ2GH.js";
|
|
40
|
+
import "../_node-chunks/chunk-ICFGNVW7.js";
|
|
41
|
+
import "../_node-chunks/chunk-ALWVSNSK.js";
|
|
42
|
+
import "../_node-chunks/chunk-RUCPXDO3.js";
|
|
43
43
|
import {
|
|
44
44
|
optionalEnvToBoolean
|
|
45
|
-
} from "../_node-chunks/chunk-
|
|
45
|
+
} from "../_node-chunks/chunk-WELIADWR.js";
|
|
46
46
|
import {
|
|
47
47
|
findUp
|
|
48
|
-
} from "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
48
|
+
} from "../_node-chunks/chunk-VDFQYNPZ.js";
|
|
49
|
+
import "../_node-chunks/chunk-MHNUEOON.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-IA7M33LK.js";
|
|
53
53
|
import {
|
|
54
54
|
importModule,
|
|
55
55
|
resolvePackageDir
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-LRQFELIZ.js";
|
|
57
57
|
import {
|
|
58
58
|
resolve
|
|
59
|
-
} from "../_node-chunks/chunk-
|
|
59
|
+
} from "../_node-chunks/chunk-EVY6P65U.js";
|
|
60
60
|
import {
|
|
61
61
|
require_prompts
|
|
62
|
-
} from "../_node-chunks/chunk-
|
|
63
|
-
import "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-ICETGZAR.js";
|
|
63
|
+
import "../_node-chunks/chunk-MVPVYHBT.js";
|
|
64
64
|
import {
|
|
65
65
|
slash
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
66
|
+
} from "../_node-chunks/chunk-WRSYICUI.js";
|
|
67
67
|
import {
|
|
68
68
|
require_dist
|
|
69
|
-
} from "../_node-chunks/chunk-
|
|
69
|
+
} from "../_node-chunks/chunk-BV4J7FF6.js";
|
|
70
70
|
import {
|
|
71
71
|
require_lib,
|
|
72
72
|
require_src
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-6Z44ODDR.js";
|
|
74
74
|
import {
|
|
75
75
|
require_picocolors
|
|
76
|
-
} from "../_node-chunks/chunk-
|
|
76
|
+
} from "../_node-chunks/chunk-7EGB7ALG.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-XRAB2RZN.js";
|
|
84
84
|
|
|
85
85
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
@@ -6439,7 +6439,7 @@ var require_detect_windows = __commonJS({
|
|
|
6439
6439
|
// ../node_modules/@aw-web-design/x-default-browser/src/detect-mac.js
|
|
6440
6440
|
var require_detect_mac = __commonJS({
|
|
6441
6441
|
"../node_modules/@aw-web-design/x-default-browser/src/detect-mac.js"(exports, module) {
|
|
6442
|
-
var defaultBrowserId = import("../_node-chunks/default-browser-id-
|
|
6442
|
+
var defaultBrowserId = import("../_node-chunks/default-browser-id-2X5XLPPS.js");
|
|
6443
6443
|
module.exports = async function(callback) {
|
|
6444
6444
|
const id = await defaultBrowserId.then((res) => res.default());
|
|
6445
6445
|
if (id) {
|
|
@@ -9221,7 +9221,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
9221
9221
|
}
|
|
9222
9222
|
const pathToSubIndex = {};
|
|
9223
9223
|
const fullGlob = slash(join(specifier.directory, specifier.files));
|
|
9224
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
9224
|
+
const { globby } = await import("../_node-chunks/globby-YYTLHNUO.js");
|
|
9225
9225
|
const files = await globby(fullGlob, {
|
|
9226
9226
|
absolute: true,
|
|
9227
9227
|
cwd: workingDir,
|
|
@@ -9460,7 +9460,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
9460
9460
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
9461
9461
|
const importPath = slash(normalizedPath);
|
|
9462
9462
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
9463
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
9463
|
+
const { analyze } = await import("../_node-chunks/dist-JSBOOVQK.js");
|
|
9464
9464
|
const result = await analyze(content);
|
|
9465
9465
|
if (result.isTemplate) {
|
|
9466
9466
|
return false;
|
|
@@ -9803,7 +9803,7 @@ __name(print, "print");
|
|
|
9803
9803
|
// src/core-server/utils/get-builders.ts
|
|
9804
9804
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9805
9805
|
async function getManagerBuilder() {
|
|
9806
|
-
return await import("../_node-chunks/builder-manager-
|
|
9806
|
+
return await import("../_node-chunks/builder-manager-DXAEQZJB.js");
|
|
9807
9807
|
}
|
|
9808
9808
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9809
9809
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -16750,7 +16750,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
16750
16750
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
16751
16751
|
basename2(specifier.files)
|
|
16752
16752
|
);
|
|
16753
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
16753
|
+
const { globby } = await import("../_node-chunks/globby-YYTLHNUO.js");
|
|
16754
16754
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
16755
16755
|
addedFiles.forEach((filePath) => {
|
|
16756
16756
|
const fileImportPath = toImportPath(filePath);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-MVPVYHBT.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-WRSYICUI.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-XRAB2RZN.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_6q9nmfaplv7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,29 +12,29 @@ var require = CJS_COMPAT_NODE_MODULE_qfbekemo7ri.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-QI3AVWUV.js";
|
|
16
|
+
import "../../_node-chunks/chunk-PK6SVDYW.js";
|
|
17
17
|
import {
|
|
18
18
|
invariant
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-IA7M33LK.js";
|
|
20
20
|
import {
|
|
21
21
|
resolvePackageDir
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-LRQFELIZ.js";
|
|
23
23
|
import {
|
|
24
24
|
join
|
|
25
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
-
import "../../_node-chunks/chunk-
|
|
25
|
+
} from "../../_node-chunks/chunk-EVY6P65U.js";
|
|
26
|
+
import "../../_node-chunks/chunk-ICETGZAR.js";
|
|
27
27
|
import {
|
|
28
28
|
loadConfig
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-5XVEWBRA.js";
|
|
30
30
|
import {
|
|
31
31
|
require_dist
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
33
|
-
import "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-BV4J7FF6.js";
|
|
33
|
+
import "../../_node-chunks/chunk-7EGB7ALG.js";
|
|
34
34
|
import {
|
|
35
35
|
__name,
|
|
36
36
|
__toESM
|
|
37
|
-
} from "../../_node-chunks/chunk-
|
|
37
|
+
} from "../../_node-chunks/chunk-XRAB2RZN.js";
|
|
38
38
|
|
|
39
39
|
// src/core-server/presets/common-preset.ts
|
|
40
40
|
import { existsSync as existsSync3 } from "node:fs";
|
|
@@ -84,7 +84,7 @@ var import_ts_dedent = __toESM(require_dist(), 1);
|
|
|
84
84
|
|
|
85
85
|
// src/core-server/utils/get-component-variable-name.ts
|
|
86
86
|
var getComponentVariableName = /* @__PURE__ */ __name(async (name) => {
|
|
87
|
-
const camelCase = await import("../../_node-chunks/camelcase-
|
|
87
|
+
const camelCase = await import("../../_node-chunks/camelcase-CMMT6PHY.js");
|
|
88
88
|
const camelCased = camelCase.default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: true });
|
|
89
89
|
const sanitized = camelCased.replace(/[^a-zA-Z_$]+/, "");
|
|
90
90
|
return sanitized;
|
|
@@ -431,7 +431,7 @@ async function searchFiles({
|
|
|
431
431
|
ignoredFiles = IGNORED_FILES,
|
|
432
432
|
fileExtensions = FILE_EXTENSIONS
|
|
433
433
|
}) {
|
|
434
|
-
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
434
|
+
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-YYTLHNUO.js");
|
|
435
435
|
const hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd });
|
|
436
436
|
const hasFileExtensionRegex = /(\.[a-z]+)$/i;
|
|
437
437
|
const searchQueryHasExtension = hasFileExtensionRegex.test(searchQuery);
|
|
@@ -1131,8 +1131,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1131
1131
|
if (!previewConfigPath) {
|
|
1132
1132
|
return existing;
|
|
1133
1133
|
}
|
|
1134
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1135
|
-
const { viteMockPlugin } = await import("../../_node-chunks/plugin-
|
|
1134
|
+
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-NNRMQ2YK.js");
|
|
1135
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-W22F3FQV.js");
|
|
1136
1136
|
const coreOptions = await options.presets.apply("core");
|
|
1137
1137
|
return {
|
|
1138
1138
|
...existing,
|
|
@@ -1150,8 +1150,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1150
1150
|
if (!previewConfigPath) {
|
|
1151
1151
|
return config;
|
|
1152
1152
|
}
|
|
1153
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1154
|
-
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-
|
|
1153
|
+
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-Q4ED2M25.js");
|
|
1154
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-VFNVWMAM.js");
|
|
1155
1155
|
config.plugins = config.plugins || [];
|
|
1156
1156
|
config.module.rules.push({
|
|
1157
1157
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-EI44VA3U.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-EVY6P65U.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-XRAB2RZN.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_6q9nmfaplv7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-PA26PSV2.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-EI44VA3U.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-EVY6P65U.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-XRAB2RZN.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
|
@@ -230,6 +230,9 @@ var logActionsWhenMockCalled = /* @__PURE__ */ __name((context) => {
|
|
|
230
230
|
if (name === "spy") {
|
|
231
231
|
return;
|
|
232
232
|
}
|
|
233
|
+
if (name === "vi.fn()") {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
233
236
|
if (!/^next\/.*::/.test(name) || [
|
|
234
237
|
"next/router::useRouter()",
|
|
235
238
|
"next/navigation::useRouter()",
|
|
@@ -2328,7 +2331,10 @@ var enhanceContext = /* @__PURE__ */ __name(async (context) => {
|
|
|
2328
2331
|
if (clipboard) {
|
|
2329
2332
|
context.userEvent = instrument2(
|
|
2330
2333
|
{ userEvent: uninstrumentedUserEvent.setup() },
|
|
2331
|
-
{
|
|
2334
|
+
{
|
|
2335
|
+
intercept: true,
|
|
2336
|
+
getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys")
|
|
2337
|
+
}
|
|
2332
2338
|
).userEvent;
|
|
2333
2339
|
Object.defineProperty(globalThis.window.navigator, "clipboard", {
|
|
2334
2340
|
get: /* @__PURE__ */ __name(() => clipboard, "get"),
|
|
@@ -204,6 +204,40 @@ declare class ConfigFile {
|
|
|
204
204
|
setImport(importSpecifier: string[] | string | {
|
|
205
205
|
namespace: string;
|
|
206
206
|
} | null, fromImport: string): void;
|
|
207
|
+
_removeRequireImport(importSpecifier: string[] | string | {
|
|
208
|
+
namespace: string;
|
|
209
|
+
} | null, fromImport: string): void;
|
|
210
|
+
_removeImport(importSpecifier: string[] | string | {
|
|
211
|
+
namespace: string;
|
|
212
|
+
} | null, fromImport: string): void;
|
|
213
|
+
/**
|
|
214
|
+
* Remove import specifiers for a given import statement.
|
|
215
|
+
*
|
|
216
|
+
* Does not support removing type imports (yet)
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
*
|
|
220
|
+
* ```ts
|
|
221
|
+
* // import { foo } from 'bar';
|
|
222
|
+
* setImport(['foo'], 'bar');
|
|
223
|
+
*
|
|
224
|
+
* // import foo from 'bar';
|
|
225
|
+
* setImport('foo', 'bar');
|
|
226
|
+
*
|
|
227
|
+
* // import * as foo from 'bar';
|
|
228
|
+
* setImport({ namespace: 'foo' }, 'bar');
|
|
229
|
+
*
|
|
230
|
+
* // import 'bar';
|
|
231
|
+
* setImport(null, 'bar');
|
|
232
|
+
* ```
|
|
233
|
+
*
|
|
234
|
+
* @param importSpecifiers - The import specifiers to remove. If a string is passed in, will only
|
|
235
|
+
* remove the default import. Otherwise, named imports matching the array will be removed.
|
|
236
|
+
* @param fromImport - The module to import from
|
|
237
|
+
*/
|
|
238
|
+
removeImport(importSpecifier: string[] | string | {
|
|
239
|
+
namespace: string;
|
|
240
|
+
} | null, fromImport: string): void;
|
|
207
241
|
}
|
|
208
242
|
declare const loadConfig: (code: string, fileName?: string) => ConfigFile;
|
|
209
243
|
declare const formatConfig: (config: ConfigFile) => string;
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-5XVEWBRA.js";
|
|
42
|
+
import "../_node-chunks/chunk-BV4J7FF6.js";
|
|
43
|
+
import "../_node-chunks/chunk-XRAB2RZN.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -150192,6 +150192,7 @@ init_esm();
|
|
|
150192
150192
|
var testingLibrary = instrument(
|
|
150193
150193
|
{ ...dom_esm_exports },
|
|
150194
150194
|
{
|
|
150195
|
+
getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys"),
|
|
150195
150196
|
intercept: /* @__PURE__ */ __name((method2, path) => path[0] === "fireEvent" || method2.startsWith("find") || method2.startsWith("waitFor"), "intercept")
|
|
150196
150197
|
}
|
|
150197
150198
|
);
|
|
@@ -150281,7 +150282,7 @@ var {
|
|
|
150281
150282
|
var uninstrumentedUserEvent = userEvent;
|
|
150282
150283
|
var { userEvent: userEvent2 } = instrument(
|
|
150283
150284
|
{ userEvent },
|
|
150284
|
-
{ intercept: true }
|
|
150285
|
+
{ intercept: true, getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys") }
|
|
150285
150286
|
);
|
|
150286
150287
|
|
|
150287
150288
|
// src/test/index.ts
|
|
@@ -157417,7 +157418,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
157417
157418
|
var import_semver = __toESM(require_semver2(), 1);
|
|
157418
157419
|
|
|
157419
157420
|
// src/manager-api/version.ts
|
|
157420
|
-
var version = "10.0.0-beta.
|
|
157421
|
+
var version = "10.0.0-beta.3";
|
|
157421
157422
|
|
|
157422
157423
|
// src/manager-api/modules/versions.ts
|
|
157423
157424
|
var { VERSIONCHECK } = scope;
|
|
@@ -388,7 +388,7 @@ interface SubState$5 {
|
|
|
388
388
|
|
|
389
389
|
declare const isMacLike: () => boolean;
|
|
390
390
|
declare const controlOrMetaSymbol: () => "⌘" | "ctrl";
|
|
391
|
-
declare const controlOrMetaKey: () => "
|
|
391
|
+
declare const controlOrMetaKey: () => "control" | "meta";
|
|
392
392
|
declare const optionOrAltSymbol: () => "⌥" | "alt";
|
|
393
393
|
declare const isShortcutTaken: (arr1: string[], arr2: string[]) => boolean;
|
|
394
394
|
type KeyboardEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'key' | 'code' | 'keyCode' | 'preventDefault'>;
|
|
@@ -3016,7 +3016,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
3016
3016
|
import semver from "semver";
|
|
3017
3017
|
|
|
3018
3018
|
// src/manager-api/version.ts
|
|
3019
|
-
var version = "10.0.0-beta.
|
|
3019
|
+
var version = "10.0.0-beta.3";
|
|
3020
3020
|
|
|
3021
3021
|
// src/manager-api/modules/versions.ts
|
|
3022
3022
|
var { VERSIONCHECK } = global8;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-3SUJKLRV.js";
|
|
15
15
|
import {
|
|
16
16
|
boxen,
|
|
17
17
|
require_string_width,
|
|
18
18
|
wrapAnsi
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-SHXAIHPO.js";
|
|
20
20
|
import {
|
|
21
21
|
execaSync,
|
|
22
22
|
optionalEnvToBoolean
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
24
|
-
import "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
23
|
+
} from "../_node-chunks/chunk-WELIADWR.js";
|
|
24
|
+
import "../_node-chunks/chunk-VDFQYNPZ.js";
|
|
25
|
+
import "../_node-chunks/chunk-MHNUEOON.js";
|
|
26
26
|
import {
|
|
27
27
|
require_prompts,
|
|
28
28
|
require_src
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-ICETGZAR.js";
|
|
30
30
|
import {
|
|
31
31
|
require_picocolors
|
|
32
|
-
} from "../_node-chunks/chunk-
|
|
32
|
+
} from "../_node-chunks/chunk-7EGB7ALG.js";
|
|
33
33
|
import {
|
|
34
34
|
__commonJS,
|
|
35
35
|
__export,
|
|
36
36
|
__name,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-XRAB2RZN.js";
|
|
40
40
|
|
|
41
41
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
42
42
|
var require_tracker_base = __commonJS({
|
package/dist/preview/runtime.js
CHANGED
|
@@ -50139,6 +50139,7 @@ var userEvent = {
|
|
|
50139
50139
|
var testingLibrary = instrument(
|
|
50140
50140
|
{ ...dom_esm_exports },
|
|
50141
50141
|
{
|
|
50142
|
+
getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys"),
|
|
50142
50143
|
intercept: /* @__PURE__ */ __name((method2, path) => path[0] === "fireEvent" || method2.startsWith("find") || method2.startsWith("waitFor"), "intercept")
|
|
50143
50144
|
}
|
|
50144
50145
|
);
|
|
@@ -50228,7 +50229,7 @@ var {
|
|
|
50228
50229
|
var uninstrumentedUserEvent = userEvent;
|
|
50229
50230
|
var { userEvent: userEvent2 } = instrument(
|
|
50230
50231
|
{ userEvent },
|
|
50231
|
-
{ intercept: true }
|
|
50232
|
+
{ intercept: true, getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys") }
|
|
50232
50233
|
);
|
|
50233
50234
|
|
|
50234
50235
|
// src/test/index.ts
|
|
@@ -50270,6 +50271,9 @@ var logActionsWhenMockCalled = /* @__PURE__ */ __name((context) => {
|
|
|
50270
50271
|
if (name === "spy") {
|
|
50271
50272
|
return;
|
|
50272
50273
|
}
|
|
50274
|
+
if (name === "vi.fn()") {
|
|
50275
|
+
return;
|
|
50276
|
+
}
|
|
50273
50277
|
if (!/^next\/.*::/.test(name) || [
|
|
50274
50278
|
"next/router::useRouter()",
|
|
50275
50279
|
"next/navigation::useRouter()",
|
|
@@ -52359,7 +52363,10 @@ var enhanceContext = /* @__PURE__ */ __name(async (context) => {
|
|
|
52359
52363
|
if (clipboard) {
|
|
52360
52364
|
context.userEvent = instrument(
|
|
52361
52365
|
{ userEvent: uninstrumentedUserEvent.setup() },
|
|
52362
|
-
{
|
|
52366
|
+
{
|
|
52367
|
+
intercept: true,
|
|
52368
|
+
getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys")
|
|
52369
|
+
}
|
|
52363
52370
|
).userEvent;
|
|
52364
52371
|
Object.defineProperty(globalThis.window.navigator, "clipboard", {
|
|
52365
52372
|
get: /* @__PURE__ */ __name(() => clipboard, "get"),
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
WebpackCompilationError,
|
|
40
40
|
WebpackInvocationError,
|
|
41
41
|
WebpackMissingStatsError
|
|
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-AKW5OJ2T.js";
|
|
43
|
+
import "./_node-chunks/chunk-BV4J7FF6.js";
|
|
44
|
+
import "./_node-chunks/chunk-7EGB7ALG.js";
|
|
45
|
+
import "./_node-chunks/chunk-XRAB2RZN.js";
|
|
46
46
|
export {
|
|
47
47
|
AngularLegacyBuildOptionsError,
|
|
48
48
|
Category,
|