storybook 10.0.0-beta.0 → 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/_browser-chunks/{WithTooltip-2E62HIBN.js → WithTooltip-ERFLZL6W.js} +1 -1
- package/dist/_browser-chunks/{chunk-FWKO3E35.js → chunk-EOILZP2R.js} +3 -1
- package/dist/_node-chunks/{builder-manager-OW6YGKXV.js → builder-manager-KCNW2J74.js} +13 -13
- package/dist/_node-chunks/{camelcase-2K3EMR6G.js → camelcase-FH5EGUIB.js} +7 -7
- package/dist/_node-chunks/{chunk-6JSVPEAU.js → chunk-2E5IZBC2.js} +7 -7
- package/dist/_node-chunks/{chunk-JDKH3XYB.js → chunk-2VH25RMB.js} +7 -7
- package/dist/_node-chunks/{chunk-FWUE7SRE.js → chunk-2VOEBWNF.js} +7 -7
- package/dist/_node-chunks/{chunk-IQAUGVYR.js → chunk-63VGATS4.js} +7 -7
- package/dist/_node-chunks/{chunk-5HLANIBM.js → chunk-6A2WP6N7.js} +7 -7
- package/dist/_node-chunks/{chunk-YWGNEBRO.js → chunk-6B3CXS7K.js} +7 -7
- package/dist/_node-chunks/{chunk-G46DWX7Z.js → chunk-6FPFMFFH.js} +8 -8
- package/dist/_node-chunks/{chunk-UHHZPSP7.js → chunk-7DWWXKIE.js} +6 -6
- package/dist/_node-chunks/{chunk-MUD3GH3L.js → chunk-B7L5A4BQ.js} +9 -9
- package/dist/_node-chunks/{chunk-GZZDIJIB.js → chunk-CGY2ITTD.js} +8 -8
- package/dist/_node-chunks/{chunk-GZUNYRFU.js → chunk-CIIY3F53.js} +7 -7
- package/dist/_node-chunks/{chunk-CD3IP6HA.js → chunk-CMFB2H3U.js} +12 -12
- package/dist/_node-chunks/{chunk-3QB3ZG6H.js → chunk-DPF2NDLD.js} +7 -7
- package/dist/_node-chunks/{chunk-2H7LZ2SD.js → chunk-FXPYWCQE.js} +7 -7
- package/dist/_node-chunks/{chunk-ANEKBWDX.js → chunk-HSI4BG2J.js} +16 -25
- package/dist/_node-chunks/{chunk-UIREEOC7.js → chunk-HSS67Y6T.js} +7 -7
- package/dist/_node-chunks/chunk-IAAPNJG4.js +62 -0
- package/dist/_node-chunks/{chunk-W6GKFQ7F.js → chunk-IBC4BVDB.js} +7 -7
- package/dist/_node-chunks/{chunk-NOQITS3C.js → chunk-JWFNAC5N.js} +7 -7
- package/dist/_node-chunks/{chunk-I3YCPGZJ.js → chunk-JZ7ZEAK6.js} +7 -7
- package/dist/_node-chunks/{chunk-IBXERYDG.js → chunk-KDKM7KMS.js} +7 -7
- package/dist/_node-chunks/{chunk-H5LTFJHQ.js → chunk-MX77OTGN.js} +46 -45
- package/dist/_node-chunks/chunk-NNJMYLJM.js +18 -0
- package/dist/_node-chunks/{chunk-FBMMEEO4.js → chunk-NTXIDMDM.js} +7 -7
- package/dist/_node-chunks/{chunk-7TISOZS6.js → chunk-NUODGCJN.js} +7 -7
- package/dist/_node-chunks/{chunk-X5GAZ3EW.js → chunk-NWTLWMJN.js} +8 -8
- package/dist/_node-chunks/{chunk-LH3BEEIR.js → chunk-PTT3CRNJ.js} +6 -6
- package/dist/_node-chunks/{chunk-NZGJJABJ.js → chunk-RSG3AEWL.js} +16 -16
- package/dist/_node-chunks/{chunk-VKKLKNFC.js → chunk-TLM4ECJN.js} +9 -9
- package/dist/_node-chunks/{chunk-R7RKO2DC.js → chunk-WBRWBEAS.js} +47029 -18559
- package/dist/_node-chunks/{chunk-LKB7KRSV.js → chunk-XWJNZVOR.js} +8 -8
- package/dist/_node-chunks/{chunk-BFXER3XW.js → chunk-ZF6AXYHM.js} +7 -7
- package/dist/_node-chunks/{default-browser-id-Z6WQ7DZA.js → default-browser-id-YRAH7IMC.js} +7 -7
- package/dist/_node-chunks/{dist-465RSKRC.js → dist-G5THJIW5.js} +9 -9
- package/dist/_node-chunks/{globby-LJ3MVB6M.js → globby-FGF2JG5Z.js} +9 -9
- package/dist/_node-chunks/{lib-OW3DENXB.js → lib-OPOVJQIO.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-PYX2IFUO.js → mdx-N42X6CFJ-N5MJA4NM.js} +8 -8
- package/dist/_node-chunks/{p-limit-X4OG45RB.js → p-limit-JNDYEQZX.js} +8 -8
- package/dist/_node-chunks/{plugin-GE36R32R.js → plugin-6GW4GYGS.js} +10 -12
- package/dist/_node-chunks/{plugin-ALTIQMDE.js → plugin-ZL4ZLDWE.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-NLCAF7S6.js → webpack-inject-mocker-runtime-plugin-F6BXWV4R.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-BRYODMCC.js → webpack-mock-plugin-5QNP4V3B.js} +9 -11
- package/dist/babel/index.js +11 -12
- 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 -21
- package/dist/common/index.js +22 -22
- package/dist/components/index.d.ts +234 -2
- package/dist/components/index.js +3 -6
- package/dist/core-server/index.d.ts +540 -39
- 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 -11
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -12
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +4 -5
- package/dist/manager/runtime.js +90 -48
- package/dist/manager-api/index.d.ts +527 -26
- package/dist/manager-api/index.js +1 -1
- package/dist/manager-errors.d.ts +527 -0
- package/dist/node-logger/index.js +14 -14
- package/dist/preview-errors.d.ts +527 -0
- package/dist/router/index.d.ts +668 -10
- package/dist/server-errors.d.ts +527 -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-27W2Z6VL.js +0 -28502
- package/dist/_node-chunks/chunk-T23YQHYB.js +0 -62
- package/dist/_node-chunks/chunk-YUYBO6S7.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_qlimw951jq.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,23 +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-
|
|
16
|
-
import "../../../../_node-chunks/chunk-R7RKO2DC.js";
|
|
17
|
-
import "../../../../_node-chunks/chunk-YWGNEBRO.js";
|
|
14
|
+
} from "../../../../_node-chunks/chunk-HSI4BG2J.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-6A2WP6N7.js";
|
|
18
16
|
import {
|
|
19
17
|
__name
|
|
20
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-PTT3CRNJ.js";
|
|
21
19
|
|
|
22
20
|
// src/core-server/presets/webpack/loaders/storybook-mock-transform-loader.ts
|
|
23
21
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,26 +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-
|
|
19
|
-
import "../../../../_node-chunks/chunk-R7RKO2DC.js";
|
|
20
|
-
import "../../../../_node-chunks/chunk-YWGNEBRO.js";
|
|
17
|
+
} from "../../../../_node-chunks/chunk-HSI4BG2J.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-6A2WP6N7.js";
|
|
21
19
|
import {
|
|
22
20
|
__name
|
|
23
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-PTT3CRNJ.js";
|
|
24
22
|
|
|
25
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
26
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,
|
|
@@ -80240,6 +80240,7 @@ var init_WithTooltip = __esm({
|
|
|
80240
80240
|
strategy,
|
|
80241
80241
|
followCursor,
|
|
80242
80242
|
onVisibleChange,
|
|
80243
|
+
portalContainer,
|
|
80243
80244
|
...props
|
|
80244
80245
|
}) => {
|
|
80245
80246
|
const Container4 = svg ? TargetSvgContainer : TargetContainer;
|
|
@@ -80271,6 +80272,7 @@ var init_WithTooltip = __esm({
|
|
|
80271
80272
|
strategy
|
|
80272
80273
|
}
|
|
80273
80274
|
);
|
|
80275
|
+
const portalTarget = (typeof portalContainer === "string" ? document5.querySelector(portalContainer) : portalContainer) || document5.body;
|
|
80274
80276
|
const tooltipComponent = isVisible2 ? import_react43.default.createElement(
|
|
80275
80277
|
Tooltip,
|
|
80276
80278
|
{
|
|
@@ -80283,7 +80285,7 @@ var init_WithTooltip = __esm({
|
|
|
80283
80285
|
},
|
|
80284
80286
|
typeof tooltip === "function" ? tooltip({ onHide: /* @__PURE__ */ __name(() => onVisibleChange(false), "onHide") }) : tooltip
|
|
80285
80287
|
) : null;
|
|
80286
|
-
return import_react43.default.createElement(import_react43.default.Fragment, null, import_react43.default.createElement(Container4, { trigger, ref: setTriggerRef, ...props }, children), isVisible2 && import_react_dom2.default.createPortal(tooltipComponent,
|
|
80288
|
+
return import_react43.default.createElement(import_react43.default.Fragment, null, import_react43.default.createElement(Container4, { trigger, ref: setTriggerRef, ...props }, children), isVisible2 && import_react_dom2.default.createPortal(tooltipComponent, portalTarget));
|
|
80287
80289
|
}, "WithTooltipPure");
|
|
80288
80290
|
WithToolTipState = /* @__PURE__ */ __name(({
|
|
80289
80291
|
startOpen = false,
|
|
@@ -120346,9 +120348,6 @@ var Right = newStyled.span({
|
|
|
120346
120348
|
width: 12,
|
|
120347
120349
|
margin: "3px 0",
|
|
120348
120350
|
verticalAlign: "top"
|
|
120349
|
-
},
|
|
120350
|
-
"& path": {
|
|
120351
|
-
fill: "inherit"
|
|
120352
120351
|
}
|
|
120353
120352
|
});
|
|
120354
120353
|
var Center = newStyled.span(
|
|
@@ -157418,7 +157417,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
157418
157417
|
var import_semver = __toESM(require_semver2(), 1);
|
|
157419
157418
|
|
|
157420
157419
|
// src/manager-api/version.ts
|
|
157421
|
-
var version = "10.0.0-beta.
|
|
157420
|
+
var version = "10.0.0-beta.2";
|
|
157422
157421
|
|
|
157423
157422
|
// src/manager-api/modules/versions.ts
|
|
157424
157423
|
var { VERSIONCHECK } = scope;
|