storybook 10.0.0-beta.1 → 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-EXW4ETLN.js → builder-manager-DXAEQZJB.js} +16 -16
- package/dist/_node-chunks/{camelcase-VZZFWA2L.js → camelcase-CMMT6PHY.js} +7 -7
- package/dist/_node-chunks/{chunk-U45F2NP6.js → chunk-3SUJKLRV.js} +7 -7
- package/dist/_node-chunks/{chunk-5ZX5SJOP.js → chunk-4TGAX5W7.js} +7 -7
- package/dist/_node-chunks/{chunk-GVCXNIAA.js → chunk-5XVEWBRA.js} +143 -15
- package/dist/_node-chunks/{chunk-EDBXIJN5.js → chunk-6Z44ODDR.js} +7 -7
- package/dist/_node-chunks/{chunk-5V6QH7WC.js → chunk-7EGB7ALG.js} +7 -7
- package/dist/_node-chunks/{chunk-2QZOLZDJ.js → chunk-AKW5OJ2T.js} +9 -9
- package/dist/_node-chunks/chunk-ALWVSNSK.js +62 -0
- package/dist/_node-chunks/{chunk-WDKWVNL2.js → chunk-BV4J7FF6.js} +7 -7
- package/dist/_node-chunks/{chunk-F5J33SXQ.js → chunk-CNKVQCQJ.js} +7 -7
- package/dist/_node-chunks/{chunk-EO4S3VXL.js → chunk-DNOOZ2LS.js} +58 -47
- package/dist/_node-chunks/{chunk-3SGKBLOL.js → chunk-EI44VA3U.js} +8 -8
- package/dist/_node-chunks/{chunk-ICPKUV5G.js → chunk-EVY6P65U.js} +7 -7
- package/dist/_node-chunks/{chunk-CM3UGTR5.js → chunk-IA7M33LK.js} +7 -7
- package/dist/_node-chunks/{chunk-XTSBFCVE.js → chunk-ICETGZAR.js} +7 -7
- package/dist/_node-chunks/chunk-ICFGNVW7.js +1476 -0
- package/dist/_node-chunks/{chunk-PL2PKDRO.js → chunk-KQXC7XVZ.js} +16 -16
- package/dist/_node-chunks/{chunk-32JYCD74.js → chunk-LRQFELIZ.js} +8 -8
- package/dist/_node-chunks/{chunk-LAUOYAOX.js → chunk-MHNUEOON.js} +7 -7
- package/dist/_node-chunks/{chunk-24TGL6EX.js → chunk-MVPVYHBT.js} +7 -7
- package/dist/_node-chunks/{chunk-PMEEE3UE.js → chunk-PA26PSV2.js} +7 -7
- package/dist/_node-chunks/{chunk-FZP2YGG3.js → chunk-PAZJQ2GH.js} +7 -7
- package/dist/_node-chunks/{chunk-QC5FE2D7.js → chunk-PK6SVDYW.js} +7 -7
- package/dist/_node-chunks/{chunk-2G5THETV.js → chunk-QI3AVWUV.js} +12 -12
- package/dist/_node-chunks/{chunk-VNLBDN2Z.js → chunk-R6TLLF24.js} +6 -6
- package/dist/_node-chunks/{chunk-3ZKQWDCG.js → chunk-RUCPXDO3.js} +8 -8
- package/dist/_node-chunks/{chunk-4WNZYNQY.js → chunk-SHXAIHPO.js} +7 -7
- package/dist/_node-chunks/{chunk-WP7DV5JT.js → chunk-TL5RNPZW.js} +10 -10
- package/dist/_node-chunks/{chunk-QJTT4OC2.js → chunk-VDFQYNPZ.js} +8 -8
- package/dist/_node-chunks/{chunk-V2ZF4DUD.js → chunk-WELIADWR.js} +9 -9
- package/dist/_node-chunks/{chunk-6CCUFDHU.js → chunk-WRSYICUI.js} +7 -7
- package/dist/_node-chunks/{chunk-SUMFFLGF.js → chunk-XRAB2RZN.js} +6 -6
- package/dist/_node-chunks/chunk-YRXKNGPR.js +18 -0
- package/dist/_node-chunks/{default-browser-id-JNATP42X.js → default-browser-id-2X5XLPPS.js} +7 -7
- package/dist/_node-chunks/{dist-VZL6D6Y3.js → dist-JSBOOVQK.js} +9 -9
- package/dist/_node-chunks/{globby-GZXJJ4W6.js → globby-YYTLHNUO.js} +9 -9
- package/dist/_node-chunks/{lib-PHT5GCV2.js → lib-DJHADRPZ.js} +11 -11
- package/dist/_node-chunks/{mdx-N42X6CFJ-EPDIV4A2.js → mdx-N42X6CFJ-WT6XCDU6.js} +8 -8
- package/dist/_node-chunks/{p-limit-AJIFSZTI.js → p-limit-HTXI4SGX.js} +8 -8
- package/dist/_node-chunks/{plugin-3VI56CEF.js → plugin-NNRMQ2YK.js} +10 -10
- package/dist/_node-chunks/{plugin-AV4OEKYM.js → plugin-W22F3FQV.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-E7J5FKLA.js → webpack-inject-mocker-runtime-plugin-VFNVWMAM.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-VTYGW7HO.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/components/index.d.ts +228 -1
- package/dist/core-server/index.d.ts +515 -14
- 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 -31
- 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/runtime.js +1 -12
- package/dist/manager-api/index.d.ts +501 -0
- package/dist/manager-api/index.js +1 -1
- package/dist/manager-errors.d.ts +501 -0
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/runtime.js +9 -2
- package/dist/preview-errors.d.ts +501 -0
- package/dist/router/index.d.ts +668 -10
- package/dist/server-errors.d.ts +501 -0
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +25 -25
- package/dist/test/index.js +2 -1
- package/dist/types/index.d.ts +523 -9
- package/package.json +2 -4
- package/dist/_node-chunks/chunk-GE6I3YYG.js +0 -62
- package/dist/_node-chunks/chunk-KXCNXWXI.js +0 -18
- package/dist/_node-chunks/chunk-ZMV3WY6R.js +0 -9845
|
@@ -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_nodb7gfupnb.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);
|
|
@@ -1120,14 +1120,6 @@ var resolvedReact = /* @__PURE__ */ __name(async (existing) => {
|
|
|
1120
1120
|
return existing;
|
|
1121
1121
|
}
|
|
1122
1122
|
}, "resolvedReact");
|
|
1123
|
-
var tags = /* @__PURE__ */ __name(async (existing) => {
|
|
1124
|
-
return {
|
|
1125
|
-
...existing,
|
|
1126
|
-
"dev-only": { excludeFromDocsStories: true },
|
|
1127
|
-
"docs-only": { excludeFromSidebar: true },
|
|
1128
|
-
"test-only": { excludeFromSidebar: true, excludeFromDocsStories: true }
|
|
1129
|
-
};
|
|
1130
|
-
}, "tags");
|
|
1131
1123
|
var managerEntries = /* @__PURE__ */ __name(async (existing) => {
|
|
1132
1124
|
return [
|
|
1133
1125
|
join(resolvePackageDir("storybook"), "dist/core-server/presets/common-manager.js"),
|
|
@@ -1139,8 +1131,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1139
1131
|
if (!previewConfigPath) {
|
|
1140
1132
|
return existing;
|
|
1141
1133
|
}
|
|
1142
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1143
|
-
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");
|
|
1144
1136
|
const coreOptions = await options.presets.apply("core");
|
|
1145
1137
|
return {
|
|
1146
1138
|
...existing,
|
|
@@ -1158,8 +1150,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1158
1150
|
if (!previewConfigPath) {
|
|
1159
1151
|
return config;
|
|
1160
1152
|
}
|
|
1161
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1162
|
-
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");
|
|
1163
1155
|
config.plugins = config.plugins || [];
|
|
1164
1156
|
config.module.rules.push({
|
|
1165
1157
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1193,7 +1185,6 @@ export {
|
|
|
1193
1185
|
previewHead,
|
|
1194
1186
|
resolvedReact,
|
|
1195
1187
|
staticDirs,
|
|
1196
|
-
tags,
|
|
1197
1188
|
title,
|
|
1198
1189
|
typescript,
|
|
1199
1190
|
viteFinal,
|
|
@@ -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;
|
package/dist/manager/runtime.js
CHANGED
|
@@ -16393,9 +16393,6 @@ var SidebarBottom = /* @__PURE__ */ __name(({ isDevelopment }) => {
|
|
|
16393
16393
|
var BUILT_IN_TAGS = /* @__PURE__ */ new Set([
|
|
16394
16394
|
"dev",
|
|
16395
16395
|
"test",
|
|
16396
|
-
"dev-only",
|
|
16397
|
-
"test-only",
|
|
16398
|
-
"docs-only",
|
|
16399
16396
|
"autodocs",
|
|
16400
16397
|
"attached-mdx",
|
|
16401
16398
|
"unattached-mdx",
|
|
@@ -16489,15 +16486,7 @@ var TagsFilterPanel = /* @__PURE__ */ __name(({
|
|
|
16489
16486
|
|
|
16490
16487
|
// src/manager/components/sidebar/TagsFilter.tsx
|
|
16491
16488
|
var TAGS_FILTER = "tags-filter";
|
|
16492
|
-
var BUILT_IN_TAGS_HIDE = /* @__PURE__ */ new Set([
|
|
16493
|
-
"dev",
|
|
16494
|
-
"docs-only",
|
|
16495
|
-
"test-only",
|
|
16496
|
-
"autodocs",
|
|
16497
|
-
"test",
|
|
16498
|
-
"attached-mdx",
|
|
16499
|
-
"unattached-mdx"
|
|
16500
|
-
]);
|
|
16489
|
+
var BUILT_IN_TAGS_HIDE = /* @__PURE__ */ new Set(["dev", "autodocs", "test", "attached-mdx", "unattached-mdx"]);
|
|
16501
16490
|
var Wrapper4 = styled.div({
|
|
16502
16491
|
position: "relative"
|
|
16503
16492
|
});
|