storybook 10.0.0-beta.1 → 10.0.0-beta.2
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-KCNW2J74.js} +13 -13
- package/dist/_node-chunks/{camelcase-VZZFWA2L.js → camelcase-FH5EGUIB.js} +7 -7
- package/dist/_node-chunks/{chunk-F5J33SXQ.js → chunk-2E5IZBC2.js} +7 -7
- package/dist/_node-chunks/{chunk-ZMV3WY6R.js → chunk-2VH25RMB.js} +7 -7
- package/dist/_node-chunks/{chunk-FZP2YGG3.js → chunk-2VOEBWNF.js} +7 -7
- package/dist/_node-chunks/{chunk-24TGL6EX.js → chunk-63VGATS4.js} +7 -7
- package/dist/_node-chunks/{chunk-ICPKUV5G.js → chunk-6A2WP6N7.js} +7 -7
- package/dist/_node-chunks/{chunk-5ZX5SJOP.js → chunk-6B3CXS7K.js} +7 -7
- package/dist/_node-chunks/{chunk-QJTT4OC2.js → chunk-6FPFMFFH.js} +8 -8
- package/dist/_node-chunks/{chunk-VNLBDN2Z.js → chunk-7DWWXKIE.js} +6 -6
- package/dist/_node-chunks/{chunk-2QZOLZDJ.js → chunk-B7L5A4BQ.js} +9 -9
- package/dist/_node-chunks/{chunk-32JYCD74.js → chunk-CGY2ITTD.js} +8 -8
- package/dist/_node-chunks/{chunk-EDBXIJN5.js → chunk-CIIY3F53.js} +7 -7
- package/dist/_node-chunks/{chunk-2G5THETV.js → chunk-CMFB2H3U.js} +12 -12
- package/dist/_node-chunks/{chunk-6CCUFDHU.js → chunk-DPF2NDLD.js} +7 -7
- package/dist/_node-chunks/{chunk-U45F2NP6.js → chunk-FXPYWCQE.js} +7 -7
- package/dist/_node-chunks/{chunk-3SGKBLOL.js → chunk-HSI4BG2J.js} +8 -8
- package/dist/_node-chunks/{chunk-CM3UGTR5.js → chunk-HSS67Y6T.js} +7 -7
- package/dist/_node-chunks/chunk-IAAPNJG4.js +62 -0
- package/dist/_node-chunks/{chunk-LAUOYAOX.js → chunk-IBC4BVDB.js} +7 -7
- package/dist/_node-chunks/{chunk-QC5FE2D7.js → chunk-JWFNAC5N.js} +7 -7
- package/dist/_node-chunks/{chunk-WDKWVNL2.js → chunk-JZ7ZEAK6.js} +7 -7
- package/dist/_node-chunks/{chunk-5V6QH7WC.js → chunk-KDKM7KMS.js} +7 -7
- package/dist/_node-chunks/{chunk-EO4S3VXL.js → chunk-MX77OTGN.js} +22 -22
- package/dist/_node-chunks/chunk-NNJMYLJM.js +18 -0
- package/dist/_node-chunks/{chunk-XTSBFCVE.js → chunk-NTXIDMDM.js} +7 -7
- package/dist/_node-chunks/{chunk-PMEEE3UE.js → chunk-NUODGCJN.js} +7 -7
- package/dist/_node-chunks/{chunk-GVCXNIAA.js → chunk-NWTLWMJN.js} +8 -8
- package/dist/_node-chunks/{chunk-SUMFFLGF.js → chunk-PTT3CRNJ.js} +6 -6
- package/dist/_node-chunks/{chunk-PL2PKDRO.js → chunk-RSG3AEWL.js} +16 -16
- package/dist/_node-chunks/{chunk-V2ZF4DUD.js → chunk-TLM4ECJN.js} +9 -9
- package/dist/_node-chunks/{chunk-WP7DV5JT.js → chunk-WBRWBEAS.js} +10 -10
- package/dist/_node-chunks/{chunk-3ZKQWDCG.js → chunk-XWJNZVOR.js} +8 -8
- package/dist/_node-chunks/{chunk-4WNZYNQY.js → chunk-ZF6AXYHM.js} +7 -7
- package/dist/_node-chunks/{default-browser-id-JNATP42X.js → default-browser-id-YRAH7IMC.js} +7 -7
- package/dist/_node-chunks/{dist-VZL6D6Y3.js → dist-G5THJIW5.js} +9 -9
- package/dist/_node-chunks/{globby-GZXJJ4W6.js → globby-FGF2JG5Z.js} +9 -9
- package/dist/_node-chunks/{lib-PHT5GCV2.js → lib-OPOVJQIO.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-EPDIV4A2.js → mdx-N42X6CFJ-N5MJA4NM.js} +8 -8
- package/dist/_node-chunks/{p-limit-AJIFSZTI.js → p-limit-JNDYEQZX.js} +8 -8
- package/dist/_node-chunks/{plugin-AV4OEKYM.js → plugin-6GW4GYGS.js} +10 -10
- package/dist/_node-chunks/{plugin-3VI56CEF.js → plugin-ZL4ZLDWE.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-E7J5FKLA.js → webpack-inject-mocker-runtime-plugin-F6BXWV4R.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-VTYGW7HO.js → webpack-mock-plugin-5QNP4V3B.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-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -12
- package/dist/manager-api/index.d.ts +502 -1
- 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-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/types/index.d.ts +523 -9
- package/package.json +1 -3
- package/dist/_node-chunks/chunk-GE6I3YYG.js +0 -62
- package/dist/_node-chunks/chunk-KXCNXWXI.js +0 -18
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qfbekemo7ri from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qfbekemo7ri from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qfbekemo7ri from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qfbekemo7ri.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qfbekemo7ri.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qfbekemo7ri.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-FXPYWCQE.js";
|
|
15
15
|
import {
|
|
16
16
|
boxen,
|
|
17
17
|
require_string_width
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-ZF6AXYHM.js";
|
|
19
19
|
import {
|
|
20
20
|
StatusTypeIdMismatchError,
|
|
21
21
|
StorybookError
|
|
22
|
-
} from "../_node-chunks/chunk-
|
|
22
|
+
} from "../_node-chunks/chunk-B7L5A4BQ.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-CMFB2H3U.js";
|
|
31
|
+
import "../_node-chunks/chunk-JWFNAC5N.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-RSG3AEWL.js";
|
|
35
|
+
import "../_node-chunks/chunk-NNJMYLJM.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-MX77OTGN.js";
|
|
39
|
+
import "../_node-chunks/chunk-2VOEBWNF.js";
|
|
40
|
+
import "../_node-chunks/chunk-2VH25RMB.js";
|
|
41
|
+
import "../_node-chunks/chunk-IAAPNJG4.js";
|
|
42
|
+
import "../_node-chunks/chunk-XWJNZVOR.js";
|
|
43
43
|
import {
|
|
44
44
|
optionalEnvToBoolean
|
|
45
|
-
} from "../_node-chunks/chunk-
|
|
45
|
+
} from "../_node-chunks/chunk-TLM4ECJN.js";
|
|
46
46
|
import {
|
|
47
47
|
findUp
|
|
48
|
-
} from "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
48
|
+
} from "../_node-chunks/chunk-6FPFMFFH.js";
|
|
49
|
+
import "../_node-chunks/chunk-IBC4BVDB.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-HSS67Y6T.js";
|
|
53
53
|
import {
|
|
54
54
|
importModule,
|
|
55
55
|
resolvePackageDir
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-CGY2ITTD.js";
|
|
57
57
|
import {
|
|
58
58
|
resolve
|
|
59
|
-
} from "../_node-chunks/chunk-
|
|
59
|
+
} from "../_node-chunks/chunk-6A2WP6N7.js";
|
|
60
60
|
import {
|
|
61
61
|
require_prompts
|
|
62
|
-
} from "../_node-chunks/chunk-
|
|
63
|
-
import "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-NTXIDMDM.js";
|
|
63
|
+
import "../_node-chunks/chunk-63VGATS4.js";
|
|
64
64
|
import {
|
|
65
65
|
slash
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
66
|
+
} from "../_node-chunks/chunk-DPF2NDLD.js";
|
|
67
67
|
import {
|
|
68
68
|
require_dist
|
|
69
|
-
} from "../_node-chunks/chunk-
|
|
69
|
+
} from "../_node-chunks/chunk-JZ7ZEAK6.js";
|
|
70
70
|
import {
|
|
71
71
|
require_lib,
|
|
72
72
|
require_src
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-CIIY3F53.js";
|
|
74
74
|
import {
|
|
75
75
|
require_picocolors
|
|
76
|
-
} from "../_node-chunks/chunk-
|
|
76
|
+
} from "../_node-chunks/chunk-KDKM7KMS.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-PTT3CRNJ.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-YRAH7IMC.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-FGF2JG5Z.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-G5THJIW5.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-KCNW2J74.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-FGF2JG5Z.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_qfbekemo7ri from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qfbekemo7ri from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qfbekemo7ri from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qfbekemo7ri.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qfbekemo7ri.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qfbekemo7ri.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-63VGATS4.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-DPF2NDLD.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-PTT3CRNJ.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_qfbekemo7ri from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qfbekemo7ri from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qfbekemo7ri from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qfbekemo7ri.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qfbekemo7ri.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qfbekemo7ri.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-CMFB2H3U.js";
|
|
16
|
+
import "../../_node-chunks/chunk-JWFNAC5N.js";
|
|
17
17
|
import {
|
|
18
18
|
invariant
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-HSS67Y6T.js";
|
|
20
20
|
import {
|
|
21
21
|
resolvePackageDir
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-CGY2ITTD.js";
|
|
23
23
|
import {
|
|
24
24
|
join
|
|
25
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
-
import "../../_node-chunks/chunk-
|
|
25
|
+
} from "../../_node-chunks/chunk-6A2WP6N7.js";
|
|
26
|
+
import "../../_node-chunks/chunk-NTXIDMDM.js";
|
|
27
27
|
import {
|
|
28
28
|
loadConfig
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-NWTLWMJN.js";
|
|
30
30
|
import {
|
|
31
31
|
require_dist
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
33
|
-
import "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-JZ7ZEAK6.js";
|
|
33
|
+
import "../../_node-chunks/chunk-KDKM7KMS.js";
|
|
34
34
|
import {
|
|
35
35
|
__name,
|
|
36
36
|
__toESM
|
|
37
|
-
} from "../../_node-chunks/chunk-
|
|
37
|
+
} from "../../_node-chunks/chunk-PTT3CRNJ.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-FH5EGUIB.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-FGF2JG5Z.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-ZL4ZLDWE.js");
|
|
1135
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-6GW4GYGS.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-5QNP4V3B.js");
|
|
1154
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-F6BXWV4R.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_qfbekemo7ri from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qfbekemo7ri from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qfbekemo7ri from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qfbekemo7ri.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qfbekemo7ri.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qfbekemo7ri.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-HSI4BG2J.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-6A2WP6N7.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-PTT3CRNJ.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_qfbekemo7ri from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qfbekemo7ri from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qfbekemo7ri from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qfbekemo7ri.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qfbekemo7ri.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qfbekemo7ri.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-NUODGCJN.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-HSI4BG2J.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-6A2WP6N7.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-PTT3CRNJ.js";
|
|
22
22
|
|
|
23
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
24
24
|
function webpackAutomockLoader(source) {
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qfbekemo7ri from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qfbekemo7ri from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qfbekemo7ri from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qfbekemo7ri.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qfbekemo7ri.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qfbekemo7ri.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-NWTLWMJN.js";
|
|
42
|
+
import "../_node-chunks/chunk-JZ7ZEAK6.js";
|
|
43
|
+
import "../_node-chunks/chunk-PTT3CRNJ.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -157417,7 +157417,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
157417
157417
|
var import_semver = __toESM(require_semver2(), 1);
|
|
157418
157418
|
|
|
157419
157419
|
// src/manager-api/version.ts
|
|
157420
|
-
var version = "10.0.0-beta.
|
|
157420
|
+
var version = "10.0.0-beta.2";
|
|
157421
157421
|
|
|
157422
157422
|
// src/manager-api/modules/versions.ts
|
|
157423
157423
|
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
|
});
|