storybook 10.2.0-beta.5 → 10.2.1
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-6HNC5XRN.js → builder-manager-Y7WDBY2S.js} +12 -12
- package/dist/_node-chunks/{camelcase-IYCRRXA5.js → camelcase-LCSBROGS.js} +7 -7
- package/dist/_node-chunks/chunk-5U7A7FRD.js +23 -0
- package/dist/_node-chunks/{chunk-Y6FR5UWD.js → chunk-632PAV7G.js} +7 -7
- package/dist/_node-chunks/{chunk-DMYLXMGZ.js → chunk-6L4XZTSD.js} +6 -6
- package/dist/_node-chunks/{chunk-UQ7G5JAB.js → chunk-AQXSSPXS.js} +6 -6
- package/dist/_node-chunks/{chunk-OLBWWB7V.js → chunk-B66GDH5E.js} +7 -7
- package/dist/_node-chunks/{chunk-6NGDJBHX.js → chunk-EC6HAISG.js} +6 -6
- package/dist/_node-chunks/{chunk-GQ3W7RNH.js → chunk-F5VZNTJU.js} +7 -7
- package/dist/_node-chunks/{chunk-NW4ZFC4G.js → chunk-FFXDUKTP.js} +12 -12
- package/dist/_node-chunks/{chunk-CMQAD4WN.js → chunk-FLT5MUVI.js} +9 -9
- package/dist/_node-chunks/chunk-GNB7JDQ6.js +61 -0
- package/dist/_node-chunks/{chunk-FILQYYM4.js → chunk-HOWS7AD5.js} +7 -7
- package/dist/_node-chunks/{chunk-T7IXSAG3.js → chunk-J3J4PSPT.js} +8 -8
- package/dist/_node-chunks/chunk-KMYEEIKB.js +18 -0
- package/dist/_node-chunks/{chunk-XFRIIIR5.js → chunk-KNMEGL7N.js} +16 -16
- package/dist/_node-chunks/{chunk-BQLJQU5S.js → chunk-KYZVFZ4V.js} +7 -7
- package/dist/_node-chunks/{chunk-3UIUEILA.js → chunk-PZLHWGHT.js} +6 -6
- package/dist/_node-chunks/{chunk-OHVVMOY4.js → chunk-QBODOFYE.js} +10 -10
- package/dist/_node-chunks/{chunk-KXY4T45O.js → chunk-R3KAQRS5.js} +20 -20
- package/dist/_node-chunks/{chunk-G555WVXU.js → chunk-SEEMWADK.js} +6 -6
- package/dist/_node-chunks/{chunk-2JDPJ6YT.js → chunk-T2BOJQA5.js} +6 -6
- package/dist/_node-chunks/{chunk-TL7YS5OJ.js → chunk-TWGRJVH3.js} +7 -7
- package/dist/_node-chunks/{chunk-SVOF2HZJ.js → chunk-ULROOZH7.js} +6 -6
- package/dist/_node-chunks/{chunk-ZHRPEVJJ.js → chunk-UYNE5BST.js} +13 -13
- package/dist/_node-chunks/{chunk-OQRIJVFV.js → chunk-V4QQTJHD.js} +6 -6
- package/dist/_node-chunks/{chunk-JA7NYZ5J.js → chunk-V5SFXULX.js} +9 -9
- package/dist/_node-chunks/{chunk-WQ6RUO2U.js → chunk-VNWEGP4S.js} +8 -8
- package/dist/_node-chunks/{chunk-RX5EJSWN.js → chunk-YNBNXSYI.js} +7 -7
- package/dist/_node-chunks/{chunk-MMY6BHPB.js → chunk-YRVTTAPQ.js} +7 -7
- package/dist/_node-chunks/{globby-FBLNM57G.js → globby-MKVLNYKA.js} +9 -9
- package/dist/_node-chunks/{lib-GDCHT75J.js → lib-LLKM6LMW.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-MCJFRV3K.js → mdx-N42X6CFJ-CLZ7QIRS.js} +8 -8
- package/dist/_node-chunks/{p-limit-AURGZ6D4.js → p-limit-IAOFNB4G.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.js +35 -35
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.d.ts +7 -1
- package/dist/mocking-utils/index.js +161 -29
- package/dist/mocking-utils/mocker-runtime.js +1254 -0
- package/dist/node-logger/index.js +9 -9
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/package.json +3 -1
- package/assets/server/mocker-runtime.template.js +0 -89
- package/dist/_node-chunks/chunk-62RIBMM5.js +0 -61
- package/dist/_node-chunks/chunk-MMY3MCUW.js +0 -23
- package/dist/_node-chunks/chunk-SMNCEA3Q.js +0 -18
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jgrudkhi9dn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jgrudkhi9dn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jgrudkhi9dn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jgrudkhi9dn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jgrudkhi9dn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jgrudkhi9dn.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
|
NODE_TARGET
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-T2BOJQA5.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-632PAV7G.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-SEEMWADK.js";
|
|
21
21
|
|
|
22
22
|
// src/bin/loader.ts
|
|
23
23
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jgrudkhi9dn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jgrudkhi9dn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jgrudkhi9dn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jgrudkhi9dn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jgrudkhi9dn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jgrudkhi9dn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
readFileAsJson,
|
|
34
34
|
suggestESLintPlugin,
|
|
35
35
|
writeFileAsJson
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-FFXDUKTP.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-5U7A7FRD.js";
|
|
40
40
|
import {
|
|
41
41
|
Settings,
|
|
42
42
|
_clearGlobalSettings,
|
|
43
43
|
globalSettings
|
|
44
|
-
} from "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
50
|
-
import "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
44
|
+
} from "../_node-chunks/chunk-V5SFXULX.js";
|
|
45
|
+
import "../_node-chunks/chunk-V4QQTJHD.js";
|
|
46
|
+
import "../_node-chunks/chunk-6L4XZTSD.js";
|
|
47
|
+
import "../_node-chunks/chunk-KYZVFZ4V.js";
|
|
48
|
+
import "../_node-chunks/chunk-PZLHWGHT.js";
|
|
49
|
+
import "../_node-chunks/chunk-632PAV7G.js";
|
|
50
|
+
import "../_node-chunks/chunk-FLT5MUVI.js";
|
|
51
|
+
import "../_node-chunks/chunk-YNBNXSYI.js";
|
|
52
|
+
import "../_node-chunks/chunk-B66GDH5E.js";
|
|
53
|
+
import "../_node-chunks/chunk-SEEMWADK.js";
|
|
54
54
|
export {
|
|
55
55
|
ANGULAR_JSON_PATH,
|
|
56
56
|
AddonVitestService,
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jgrudkhi9dn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jgrudkhi9dn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jgrudkhi9dn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jgrudkhi9dn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jgrudkhi9dn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jgrudkhi9dn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -102,29 +102,29 @@ import {
|
|
|
102
102
|
validateConfigurationFiles,
|
|
103
103
|
validateFrameworkName,
|
|
104
104
|
wrapValueWithGetAbsolutePathWrapper
|
|
105
|
-
} from "../_node-chunks/chunk-
|
|
105
|
+
} from "../_node-chunks/chunk-R3KAQRS5.js";
|
|
106
106
|
import {
|
|
107
107
|
versions_default
|
|
108
|
-
} from "../_node-chunks/chunk-
|
|
109
|
-
import "../_node-chunks/chunk-
|
|
110
|
-
import "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
108
|
+
} from "../_node-chunks/chunk-GNB7JDQ6.js";
|
|
109
|
+
import "../_node-chunks/chunk-HOWS7AD5.js";
|
|
110
|
+
import "../_node-chunks/chunk-VNWEGP4S.js";
|
|
111
|
+
import "../_node-chunks/chunk-V4QQTJHD.js";
|
|
112
112
|
import {
|
|
113
113
|
groupBy,
|
|
114
114
|
invariant
|
|
115
|
-
} from "../_node-chunks/chunk-
|
|
115
|
+
} from "../_node-chunks/chunk-6L4XZTSD.js";
|
|
116
116
|
import {
|
|
117
117
|
importMetaResolve,
|
|
118
118
|
importModule,
|
|
119
119
|
resolvePackageDir,
|
|
120
120
|
safeResolveModule
|
|
121
|
-
} from "../_node-chunks/chunk-
|
|
122
|
-
import "../_node-chunks/chunk-
|
|
123
|
-
import "../_node-chunks/chunk-
|
|
124
|
-
import "../_node-chunks/chunk-
|
|
125
|
-
import "../_node-chunks/chunk-
|
|
126
|
-
import "../_node-chunks/chunk-
|
|
127
|
-
import "../_node-chunks/chunk-
|
|
121
|
+
} from "../_node-chunks/chunk-KYZVFZ4V.js";
|
|
122
|
+
import "../_node-chunks/chunk-PZLHWGHT.js";
|
|
123
|
+
import "../_node-chunks/chunk-EC6HAISG.js";
|
|
124
|
+
import "../_node-chunks/chunk-F5VZNTJU.js";
|
|
125
|
+
import "../_node-chunks/chunk-632PAV7G.js";
|
|
126
|
+
import "../_node-chunks/chunk-B66GDH5E.js";
|
|
127
|
+
import "../_node-chunks/chunk-SEEMWADK.js";
|
|
128
128
|
export {
|
|
129
129
|
DEFAULT_FILES_PATTERN,
|
|
130
130
|
FileSystemCache,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jgrudkhi9dn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jgrudkhi9dn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jgrudkhi9dn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jgrudkhi9dn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jgrudkhi9dn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jgrudkhi9dn.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
|
toEstree
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-YRVTTAPQ.js";
|
|
15
15
|
import {
|
|
16
16
|
StatusTypeIdMismatchError
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-QBODOFYE.js";
|
|
18
18
|
import {
|
|
19
19
|
debounce,
|
|
20
20
|
generateStoryFile,
|
|
@@ -25,69 +25,69 @@ import {
|
|
|
25
25
|
sendTelemetryError,
|
|
26
26
|
useStatics,
|
|
27
27
|
withTelemetry
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-KNMEGL7N.js";
|
|
29
29
|
import {
|
|
30
30
|
detectPnp
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-5U7A7FRD.js";
|
|
32
|
+
import "../_node-chunks/chunk-TWGRJVH3.js";
|
|
33
33
|
import {
|
|
34
34
|
StorybookError
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-AQXSSPXS.js";
|
|
36
36
|
import {
|
|
37
37
|
telemetry
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-UYNE5BST.js";
|
|
39
|
+
import "../_node-chunks/chunk-KMYEEIKB.js";
|
|
40
40
|
import {
|
|
41
41
|
optionalEnvToBoolean,
|
|
42
42
|
require_cross_spawn,
|
|
43
43
|
resolveImport,
|
|
44
44
|
supportedExtensions,
|
|
45
45
|
userOrAutoTitleFromSpecifier
|
|
46
|
-
} from "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-R3KAQRS5.js";
|
|
47
|
+
import "../_node-chunks/chunk-GNB7JDQ6.js";
|
|
48
|
+
import "../_node-chunks/chunk-HOWS7AD5.js";
|
|
49
49
|
import {
|
|
50
50
|
require_pretty_hrtime
|
|
51
|
-
} from "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
51
|
+
} from "../_node-chunks/chunk-VNWEGP4S.js";
|
|
52
|
+
import "../_node-chunks/chunk-ULROOZH7.js";
|
|
53
|
+
import "../_node-chunks/chunk-V5SFXULX.js";
|
|
54
54
|
import {
|
|
55
55
|
invariant,
|
|
56
56
|
up2 as up
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-V4QQTJHD.js";
|
|
58
|
+
import "../_node-chunks/chunk-6L4XZTSD.js";
|
|
59
59
|
import {
|
|
60
60
|
importModule,
|
|
61
61
|
resolvePackageDir
|
|
62
|
-
} from "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-KYZVFZ4V.js";
|
|
63
63
|
import {
|
|
64
64
|
dirname,
|
|
65
65
|
join,
|
|
66
66
|
relative,
|
|
67
67
|
resolve
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-PZLHWGHT.js";
|
|
69
69
|
import {
|
|
70
70
|
slash
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
72
|
-
import "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-EC6HAISG.js";
|
|
72
|
+
import "../_node-chunks/chunk-F5VZNTJU.js";
|
|
73
73
|
import {
|
|
74
74
|
Tag
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-J3J4PSPT.js";
|
|
76
76
|
import {
|
|
77
77
|
require_dist
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-632PAV7G.js";
|
|
79
79
|
import {
|
|
80
80
|
require_lib,
|
|
81
81
|
require_src
|
|
82
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-YNBNXSYI.js";
|
|
83
83
|
import {
|
|
84
84
|
require_picocolors
|
|
85
|
-
} from "../_node-chunks/chunk-
|
|
85
|
+
} from "../_node-chunks/chunk-B66GDH5E.js";
|
|
86
86
|
import {
|
|
87
87
|
__commonJS,
|
|
88
88
|
__require,
|
|
89
89
|
__toESM
|
|
90
|
-
} from "../_node-chunks/chunk-
|
|
90
|
+
} from "../_node-chunks/chunk-SEEMWADK.js";
|
|
91
91
|
|
|
92
92
|
// ../../node_modules/glob-to-regexp/index.js
|
|
93
93
|
var require_glob_to_regexp = __commonJS({
|
|
@@ -4544,7 +4544,7 @@ function print(p) {
|
|
|
4544
4544
|
// src/core-server/utils/get-builders.ts
|
|
4545
4545
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
4546
4546
|
async function getManagerBuilder() {
|
|
4547
|
-
return await import("../_node-chunks/builder-manager-
|
|
4547
|
+
return await import("../_node-chunks/builder-manager-Y7WDBY2S.js");
|
|
4548
4548
|
}
|
|
4549
4549
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
4550
4550
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -4608,7 +4608,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
4608
4608
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
4609
4609
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
4610
4610
|
basename(specifier.files)
|
|
4611
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
4611
|
+
), { globby } = await import("../_node-chunks/globby-MKVLNYKA.js");
|
|
4612
4612
|
(await globby(slash(dirGlob), commonGlobOptions(dirGlob))).forEach((filePath) => {
|
|
4613
4613
|
let fileImportPath = toImportPath(filePath);
|
|
4614
4614
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(fileImportPath, removed);
|
|
@@ -5627,7 +5627,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
|
|
|
5627
5627
|
isTemplate: !1,
|
|
5628
5628
|
metaTags: void 0,
|
|
5629
5629
|
imports: void 0
|
|
5630
|
-
}, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-
|
|
5630
|
+
}, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-CLZ7QIRS.js");
|
|
5631
5631
|
await compile(code, {
|
|
5632
5632
|
rehypePlugins: [[plugin, store]]
|
|
5633
5633
|
});
|
|
@@ -5772,7 +5772,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5772
5772
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5773
5773
|
if (cached)
|
|
5774
5774
|
return cached;
|
|
5775
|
-
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5775
|
+
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-MKVLNYKA.js"), files = await globby(globPattern, {
|
|
5776
5776
|
absolute: !0,
|
|
5777
5777
|
cwd: globCwd,
|
|
5778
5778
|
...commonGlobOptions2(globPattern)
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jgrudkhi9dn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jgrudkhi9dn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jgrudkhi9dn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jgrudkhi9dn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jgrudkhi9dn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jgrudkhi9dn.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
|
slash
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-EC6HAISG.js";
|
|
15
15
|
import {
|
|
16
16
|
glob
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-F5VZNTJU.js";
|
|
18
|
+
import "../../_node-chunks/chunk-SEEMWADK.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jgrudkhi9dn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jgrudkhi9dn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jgrudkhi9dn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jgrudkhi9dn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jgrudkhi9dn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jgrudkhi9dn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-FFXDUKTP.js";
|
|
13
13
|
import {
|
|
14
14
|
doesStoryFileExist,
|
|
15
15
|
generateStoryFile,
|
|
@@ -17,47 +17,47 @@ import {
|
|
|
17
17
|
parseStaticDir,
|
|
18
18
|
sendTelemetryError,
|
|
19
19
|
throttle
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
21
|
-
import "../../_node-chunks/chunk-
|
|
22
|
-
import "../../_node-chunks/chunk-
|
|
23
|
-
import "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-KNMEGL7N.js";
|
|
21
|
+
import "../../_node-chunks/chunk-5U7A7FRD.js";
|
|
22
|
+
import "../../_node-chunks/chunk-TWGRJVH3.js";
|
|
23
|
+
import "../../_node-chunks/chunk-AQXSSPXS.js";
|
|
24
24
|
import {
|
|
25
25
|
isI18nPackage,
|
|
26
26
|
isRouterPackage,
|
|
27
27
|
isStateManagementPackage,
|
|
28
28
|
isStylingPackage
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-ULROOZH7.js";
|
|
30
30
|
import {
|
|
31
31
|
globalSettings
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-V5SFXULX.js";
|
|
33
33
|
import {
|
|
34
34
|
invariant
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
36
|
-
import "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-V4QQTJHD.js";
|
|
36
|
+
import "../../_node-chunks/chunk-6L4XZTSD.js";
|
|
37
37
|
import {
|
|
38
38
|
resolvePackageDir
|
|
39
|
-
} from "../../_node-chunks/chunk-
|
|
39
|
+
} from "../../_node-chunks/chunk-KYZVFZ4V.js";
|
|
40
40
|
import {
|
|
41
41
|
isAbsolute,
|
|
42
42
|
join
|
|
43
|
-
} from "../../_node-chunks/chunk-
|
|
43
|
+
} from "../../_node-chunks/chunk-PZLHWGHT.js";
|
|
44
44
|
import {
|
|
45
45
|
glob
|
|
46
|
-
} from "../../_node-chunks/chunk-
|
|
47
|
-
import "../../_node-chunks/chunk-
|
|
46
|
+
} from "../../_node-chunks/chunk-F5VZNTJU.js";
|
|
47
|
+
import "../../_node-chunks/chunk-J3J4PSPT.js";
|
|
48
48
|
import {
|
|
49
49
|
require_dist
|
|
50
|
-
} from "../../_node-chunks/chunk-
|
|
51
|
-
import "../../_node-chunks/chunk-
|
|
52
|
-
import "../../_node-chunks/chunk-
|
|
50
|
+
} from "../../_node-chunks/chunk-632PAV7G.js";
|
|
51
|
+
import "../../_node-chunks/chunk-FLT5MUVI.js";
|
|
52
|
+
import "../../_node-chunks/chunk-YNBNXSYI.js";
|
|
53
53
|
import {
|
|
54
54
|
require_picocolors
|
|
55
|
-
} from "../../_node-chunks/chunk-
|
|
55
|
+
} from "../../_node-chunks/chunk-B66GDH5E.js";
|
|
56
56
|
import {
|
|
57
57
|
__commonJS,
|
|
58
58
|
__require,
|
|
59
59
|
__toESM
|
|
60
|
-
} from "../../_node-chunks/chunk-
|
|
60
|
+
} from "../../_node-chunks/chunk-SEEMWADK.js";
|
|
61
61
|
|
|
62
62
|
// ../../node_modules/shell-quote/quote.js
|
|
63
63
|
var require_quote = __commonJS({
|
|
@@ -650,7 +650,7 @@ async function searchFiles({
|
|
|
650
650
|
ignoredFiles = IGNORED_FILES,
|
|
651
651
|
fileExtensions = FILE_EXTENSIONS
|
|
652
652
|
}) {
|
|
653
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
653
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-MKVLNYKA.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
654
654
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
655
655
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
656
656
|
];
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jgrudkhi9dn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jgrudkhi9dn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jgrudkhi9dn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jgrudkhi9dn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jgrudkhi9dn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jgrudkhi9dn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -39,9 +39,9 @@ import {
|
|
|
39
39
|
vitestTransform,
|
|
40
40
|
writeConfig,
|
|
41
41
|
writeCsf
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-J3J4PSPT.js";
|
|
43
|
+
import "../_node-chunks/chunk-632PAV7G.js";
|
|
44
|
+
import "../_node-chunks/chunk-SEEMWADK.js";
|
|
45
45
|
export {
|
|
46
46
|
BadMetaError,
|
|
47
47
|
ConfigFile,
|
|
@@ -62174,7 +62174,7 @@ init_dist();
|
|
|
62174
62174
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
62175
62175
|
|
|
62176
62176
|
// src/manager-api/version.ts
|
|
62177
|
-
var version = "10.2.
|
|
62177
|
+
var version = "10.2.1";
|
|
62178
62178
|
|
|
62179
62179
|
// src/manager-api/modules/versions.ts
|
|
62180
62180
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|
|
@@ -405,7 +405,7 @@ interface SubState$5 {
|
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
declare const controlOrMetaSymbol: () => "⌘" | "ctrl";
|
|
408
|
-
declare const controlOrMetaKey: () => "
|
|
408
|
+
declare const controlOrMetaKey: () => "meta" | "control";
|
|
409
409
|
declare const optionOrAltSymbol: () => "⌥" | "alt";
|
|
410
410
|
declare const isShortcutTaken: (arr1: string[], arr2: string[]) => boolean;
|
|
411
411
|
type KeyboardEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'key' | 'code' | 'keyCode' | 'preventDefault'>;
|
|
@@ -2396,7 +2396,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
2396
2396
|
import semver from "semver";
|
|
2397
2397
|
|
|
2398
2398
|
// src/manager-api/version.ts
|
|
2399
|
-
var version = "10.2.
|
|
2399
|
+
var version = "10.2.1";
|
|
2400
2400
|
|
|
2401
2401
|
// src/manager-api/modules/versions.ts
|
|
2402
2402
|
var { VERSIONCHECK } = global8, getVersionCheckData = (0, import_memoizerific2.default)(1)(() => {
|
|
@@ -1121,6 +1121,12 @@ declare function isFunctionNode(node: Node$1): node is Function;
|
|
|
1121
1121
|
declare function isInDestructuringAssignment(parent: Node$1, parentStack: Node$1[]): boolean;
|
|
1122
1122
|
declare function getArbitraryModuleIdentifier(node: Identifier | Literal): string;
|
|
1123
1123
|
|
|
1124
|
+
/**
|
|
1125
|
+
* Returns the bundled mocker runtime script content. This is used by builders (webpack5, vite,
|
|
1126
|
+
* etc.) to inject the mocker runtime into the preview iframe.
|
|
1127
|
+
*/
|
|
1124
1128
|
declare function getMockerRuntime(): string;
|
|
1125
1129
|
|
|
1126
|
-
|
|
1130
|
+
declare function findMockRedirect(root: string, mockPath: string, external: string | null): string | null;
|
|
1131
|
+
|
|
1132
|
+
export { type ArrayExpression, type ArrayPattern, type ArrowFunctionExpression, type AssignmentExpression, type AssignmentOperator, type AssignmentPattern, type AssignmentProperty, type AwaitExpression, type BaseCallExpression, type BaseClass, type BaseDeclaration, type BaseExpression, type BaseForXStatement, type BaseFunction, type BaseModuleDeclaration, type BaseModuleSpecifier, type BaseNode, type BaseNodeWithoutComments, type BasePattern, type BaseStatement, type BigIntLiteral, type BinaryExpression, type BinaryOperator, type BlockStatement, type BreakStatement, type CallExpression, type CatchClause, type ChainElement, type ChainExpression, type Class, type ClassBody, type ClassDeclaration, type ClassExpression, type Comment, type ConditionalExpression, type ContinueStatement, type DebuggerStatement, type Declaration, type Directive, type DoWhileStatement, type EmptyStatement, type ExportAllDeclaration, type ExportDefaultDeclaration, type ExportNamedDeclaration, type ExportSpecifier, type Expression, type ExpressionMap, type ExpressionStatement, type ForInStatement, type ForOfStatement, type ForStatement, type Function, type FunctionDeclaration, type FunctionExpression, type Identifier, type IfStatement, type ImportAttribute, type ImportDeclaration, type ImportDefaultSpecifier, type ImportExpression, type ImportNamespaceSpecifier, type ImportSpecifier, type LabeledStatement, type Literal, type LogicalExpression, type LogicalOperator, type MaybeNamedClassDeclaration, type MaybeNamedFunctionDeclaration, type MemberExpression, type MetaProperty, type MethodDefinition, type MockCall, type ModuleDeclaration, type ModuleSpecifier, type NewExpression, type Node, type NodeMap, type ObjectExpression, type ObjectPattern, type Pattern, type Position, type Positioned, type PrivateIdentifier, type Program, type Property, type PropertyDefinition, type RegExpLiteral, type RestElement, type ReturnStatement, type SequenceExpression, type SimpleCallExpression, type SimpleLiteral, type SourceLocation, type SpreadElement, type Statement, type StaticBlock, type Super, type SwitchCase, type SwitchStatement, type TaggedTemplateExpression, type TemplateElement, type TemplateLiteral, type ThisExpression, type ThrowStatement, type TryStatement, type UnaryExpression, type UnaryOperator, type UpdateExpression, type UpdateOperator, type VariableDeclaration, type VariableDeclarator, type WhileStatement, type WithStatement, type YieldExpression, __STORYBOOK_GLOBAL_THIS_ACCESSOR__, automockModule, babelParser, esmWalker, extractMockCalls, findMockRedirect, getArbitraryModuleIdentifier, getAutomockCode, getIsExternal, getMockerRuntime, getRealPath, isExternal, isFunctionNode, isInDestructuringAssignment, isModuleDirectory, isNodeInPattern, isStaticProperty, isStaticPropertyKey, resolveExternalModule, resolveMock, resolveWithExtensions, rewriteSbMockImportCalls, setIsNodeInPattern };
|