storybook 10.2.0-alpha.7 → 10.2.0-alpha.8
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/{chunk-EUPBEOK3.js → chunk-VUZYLZ4B.js} +5 -5
- package/dist/_node-chunks/{builder-manager-CUNI3ZJ4.js → builder-manager-2XASU3VS.js} +12 -12
- package/dist/_node-chunks/{camelcase-4GVAWYWU.js → camelcase-KIWRHB2G.js} +7 -7
- package/dist/_node-chunks/chunk-2ANLCK4Y.js +18 -0
- package/dist/_node-chunks/{chunk-ZNQQBZIL.js → chunk-2KSITKBI.js} +7 -7
- package/dist/_node-chunks/{chunk-2TPGTNH3.js → chunk-2OC7H5MZ.js} +7 -7
- package/dist/_node-chunks/{chunk-VRAZAZEV.js → chunk-3K6P75SS.js} +7 -7
- package/dist/_node-chunks/{chunk-M5E3YC4T.js → chunk-3TW66YXG.js} +6 -6
- package/dist/_node-chunks/{chunk-VCZD6QSG.js → chunk-5BRYY6XB.js} +9 -9
- package/dist/_node-chunks/{chunk-PGJHGLNH.js → chunk-5GRHJJHD.js} +9 -9
- package/dist/_node-chunks/{chunk-YPUOZX6Y.js → chunk-5WQXPM6D.js} +6 -6
- package/dist/_node-chunks/{chunk-JVSFH4RF.js → chunk-6TJUL42C.js} +12 -12
- package/dist/_node-chunks/{chunk-Y6L7H22H.js → chunk-7B4JYHGV.js} +6 -6
- package/dist/_node-chunks/{chunk-PQM4RHC4.js → chunk-COGO4JMD.js} +7 -7
- package/dist/_node-chunks/{chunk-LPSISNQS.js → chunk-DTM4A3DJ.js} +12 -12
- package/dist/_node-chunks/{chunk-PYUJOHPH.js → chunk-DYQ6QR45.js} +13 -13
- package/dist/_node-chunks/{chunk-R3N2GWVX.js → chunk-IJ34563N.js} +20 -20
- package/dist/_node-chunks/{chunk-NYGO6SRI.js → chunk-JWL5NLJU.js} +6 -6
- package/dist/_node-chunks/{chunk-RCTV2GMQ.js → chunk-LEZENLG7.js} +7 -7
- package/dist/_node-chunks/{chunk-TBPJCWU7.js → chunk-LOXLI4XT.js} +6 -6
- package/dist/_node-chunks/{chunk-P445LZJB.js → chunk-MLYPMYG5.js} +6 -6
- package/dist/_node-chunks/{chunk-BUUY73HB.js → chunk-Q6WPGVIW.js} +6 -6
- package/dist/_node-chunks/{chunk-Y53XRTM4.js → chunk-S7FIFCTX.js} +10 -10
- package/dist/_node-chunks/{chunk-56LVYN72.js → chunk-TTGXODEY.js} +7 -7
- package/dist/_node-chunks/chunk-UFXCGC4W.js +23 -0
- package/dist/_node-chunks/{chunk-QJ6C6Y4J.js → chunk-UNHOAAXU.js} +7 -7
- package/dist/_node-chunks/{chunk-DF3MHTVA.js → chunk-VJFHZL2T.js} +8 -8
- package/dist/_node-chunks/{chunk-FVVGYCVC.js → chunk-WKC523P7.js} +7 -7
- package/dist/_node-chunks/chunk-X4YDIHYE.js +61 -0
- package/dist/_node-chunks/{chunk-BVT57OPU.js → chunk-ZKB7MQRR.js} +8 -8
- package/dist/_node-chunks/{dist-5DA7I4HZ.js → dist-GICI6ZHU.js} +9 -9
- package/dist/_node-chunks/{globby-UXUG5UXW.js → globby-FWMT4OOQ.js} +9 -9
- package/dist/_node-chunks/{lib-JGWMRG56.js → lib-YCGXIMW5.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-SS3BBRSA.js → mdx-N42X6CFJ-CRGM5LTU.js} +8 -8
- package/dist/_node-chunks/{p-limit-QEWD3I7K.js → p-limit-UJIYI4QT.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 +32 -32
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +24 -24
- package/dist/csf/index.js +8 -4
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +5 -5
- package/dist/preview-api/index.js +1 -1
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +22 -22
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-AT23E4EQ.js +0 -61
- package/dist/_node-chunks/chunk-LZSDDOT4.js +0 -23
- package/dist/_node-chunks/chunk-TTG4OTIQ.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_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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-JWL5NLJU.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-TTGXODEY.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-5WQXPM6D.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_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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-6TJUL42C.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-UFXCGC4W.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-5GRHJJHD.js";
|
|
45
|
+
import "../_node-chunks/chunk-3TW66YXG.js";
|
|
46
|
+
import "../_node-chunks/chunk-2OC7H5MZ.js";
|
|
47
|
+
import "../_node-chunks/chunk-MLYPMYG5.js";
|
|
48
|
+
import "../_node-chunks/chunk-7B4JYHGV.js";
|
|
49
|
+
import "../_node-chunks/chunk-TTGXODEY.js";
|
|
50
|
+
import "../_node-chunks/chunk-5BRYY6XB.js";
|
|
51
|
+
import "../_node-chunks/chunk-COGO4JMD.js";
|
|
52
|
+
import "../_node-chunks/chunk-2KSITKBI.js";
|
|
53
|
+
import "../_node-chunks/chunk-5WQXPM6D.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_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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-IJ34563N.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-X4YDIHYE.js";
|
|
109
|
+
import "../_node-chunks/chunk-WKC523P7.js";
|
|
110
|
+
import "../_node-chunks/chunk-ZKB7MQRR.js";
|
|
111
|
+
import "../_node-chunks/chunk-3TW66YXG.js";
|
|
112
112
|
import {
|
|
113
113
|
importMetaResolve,
|
|
114
114
|
importModule,
|
|
115
115
|
resolvePackageDir,
|
|
116
116
|
safeResolveModule
|
|
117
|
-
} from "../_node-chunks/chunk-
|
|
117
|
+
} from "../_node-chunks/chunk-2OC7H5MZ.js";
|
|
118
118
|
import {
|
|
119
119
|
groupBy,
|
|
120
120
|
invariant
|
|
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-MLYPMYG5.js";
|
|
122
|
+
import "../_node-chunks/chunk-7B4JYHGV.js";
|
|
123
|
+
import "../_node-chunks/chunk-3K6P75SS.js";
|
|
124
|
+
import "../_node-chunks/chunk-LOXLI4XT.js";
|
|
125
|
+
import "../_node-chunks/chunk-TTGXODEY.js";
|
|
126
|
+
import "../_node-chunks/chunk-2KSITKBI.js";
|
|
127
|
+
import "../_node-chunks/chunk-5WQXPM6D.js";
|
|
128
128
|
export {
|
|
129
129
|
DEFAULT_FILES_PATTERN,
|
|
130
130
|
FileSystemCache,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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
|
StatusTypeIdMismatchError
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-S7FIFCTX.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,65 +21,65 @@ import {
|
|
|
21
21
|
sendTelemetryError,
|
|
22
22
|
useStatics,
|
|
23
23
|
withTelemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-DYQ6QR45.js";
|
|
25
|
+
import "../_node-chunks/chunk-LEZENLG7.js";
|
|
26
26
|
import {
|
|
27
27
|
detectPnp
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-UFXCGC4W.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-Q6WPGVIW.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-DTM4A3DJ.js";
|
|
35
|
+
import "../_node-chunks/chunk-2ANLCK4Y.js";
|
|
36
36
|
import {
|
|
37
37
|
optionalEnvToBoolean,
|
|
38
38
|
require_cross_spawn,
|
|
39
39
|
resolveImport,
|
|
40
40
|
supportedExtensions,
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-IJ34563N.js";
|
|
43
|
+
import "../_node-chunks/chunk-X4YDIHYE.js";
|
|
44
|
+
import "../_node-chunks/chunk-WKC523P7.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-ZKB7MQRR.js";
|
|
48
|
+
import "../_node-chunks/chunk-5GRHJJHD.js";
|
|
49
49
|
import {
|
|
50
50
|
invariant,
|
|
51
51
|
up2 as up
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-3TW66YXG.js";
|
|
53
53
|
import {
|
|
54
54
|
importModule,
|
|
55
55
|
resolvePackageDir
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
57
|
-
import "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-2OC7H5MZ.js";
|
|
57
|
+
import "../_node-chunks/chunk-MLYPMYG5.js";
|
|
58
58
|
import {
|
|
59
59
|
dirname,
|
|
60
60
|
join,
|
|
61
61
|
relative,
|
|
62
62
|
resolve
|
|
63
|
-
} from "../_node-chunks/chunk-
|
|
64
|
-
import "../_node-chunks/chunk-
|
|
63
|
+
} from "../_node-chunks/chunk-7B4JYHGV.js";
|
|
64
|
+
import "../_node-chunks/chunk-3K6P75SS.js";
|
|
65
65
|
import {
|
|
66
66
|
slash
|
|
67
|
-
} from "../_node-chunks/chunk-
|
|
67
|
+
} from "../_node-chunks/chunk-LOXLI4XT.js";
|
|
68
68
|
import {
|
|
69
69
|
require_dist
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
70
|
+
} from "../_node-chunks/chunk-TTGXODEY.js";
|
|
71
71
|
import {
|
|
72
72
|
require_lib,
|
|
73
73
|
require_src
|
|
74
|
-
} from "../_node-chunks/chunk-
|
|
74
|
+
} from "../_node-chunks/chunk-COGO4JMD.js";
|
|
75
75
|
import {
|
|
76
76
|
require_picocolors
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
77
|
+
} from "../_node-chunks/chunk-2KSITKBI.js";
|
|
78
78
|
import {
|
|
79
79
|
__commonJS,
|
|
80
80
|
__require,
|
|
81
81
|
__toESM
|
|
82
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-5WQXPM6D.js";
|
|
83
83
|
|
|
84
84
|
// ../../node_modules/tsconfig-paths/lib/filesystem.js
|
|
85
85
|
var require_filesystem = __commonJS({
|
|
@@ -5146,7 +5146,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5146
5146
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5147
5147
|
if (cached)
|
|
5148
5148
|
return cached;
|
|
5149
|
-
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5149
|
+
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-FWMT4OOQ.js"), files = await globby(globPattern, {
|
|
5150
5150
|
absolute: !0,
|
|
5151
5151
|
cwd: globCwd,
|
|
5152
5152
|
...commonGlobOptions(globPattern)
|
|
@@ -5335,7 +5335,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5335
5335
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5336
5336
|
let relativePath = relative2(this.options.workingDir, absolutePath);
|
|
5337
5337
|
try {
|
|
5338
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5338
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-GICI6ZHU.js"), result = await analyze(content);
|
|
5339
5339
|
if (result.isTemplate)
|
|
5340
5340
|
return !1;
|
|
5341
5341
|
let absoluteImports = result.imports.map(
|
|
@@ -5595,7 +5595,7 @@ function print(p) {
|
|
|
5595
5595
|
// src/core-server/utils/get-builders.ts
|
|
5596
5596
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
5597
5597
|
async function getManagerBuilder() {
|
|
5598
|
-
return await import("../_node-chunks/builder-manager-
|
|
5598
|
+
return await import("../_node-chunks/builder-manager-2XASU3VS.js");
|
|
5599
5599
|
}
|
|
5600
5600
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
5601
5601
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -5695,7 +5695,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
5695
5695
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
5696
5696
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
5697
5697
|
basename2(specifier.files)
|
|
5698
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
5698
|
+
), { globby } = await import("../_node-chunks/globby-FWMT4OOQ.js");
|
|
5699
5699
|
(await globby(slash(dirGlob), commonGlobOptions2(dirGlob))).forEach((filePath) => {
|
|
5700
5700
|
let fileImportPath = toImportPath(filePath);
|
|
5701
5701
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(specifier, fileImportPath, removed);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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-3K6P75SS.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-LOXLI4XT.js";
|
|
18
|
+
import "../../_node-chunks/chunk-5WQXPM6D.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_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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-6TJUL42C.js";
|
|
13
13
|
import {
|
|
14
14
|
AbortError,
|
|
15
15
|
after,
|
|
@@ -32,41 +32,41 @@ import {
|
|
|
32
32
|
sendTelemetryError,
|
|
33
33
|
throttle,
|
|
34
34
|
unary
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
36
|
-
import "../../_node-chunks/chunk-
|
|
37
|
-
import "../../_node-chunks/chunk-
|
|
38
|
-
import "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-DYQ6QR45.js";
|
|
36
|
+
import "../../_node-chunks/chunk-LEZENLG7.js";
|
|
37
|
+
import "../../_node-chunks/chunk-UFXCGC4W.js";
|
|
38
|
+
import "../../_node-chunks/chunk-Q6WPGVIW.js";
|
|
39
39
|
import {
|
|
40
40
|
globalSettings
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-5GRHJJHD.js";
|
|
42
42
|
import {
|
|
43
43
|
invariant
|
|
44
|
-
} from "../../_node-chunks/chunk-
|
|
44
|
+
} from "../../_node-chunks/chunk-3TW66YXG.js";
|
|
45
45
|
import {
|
|
46
46
|
resolvePackageDir
|
|
47
|
-
} from "../../_node-chunks/chunk-
|
|
48
|
-
import "../../_node-chunks/chunk-
|
|
47
|
+
} from "../../_node-chunks/chunk-2OC7H5MZ.js";
|
|
48
|
+
import "../../_node-chunks/chunk-MLYPMYG5.js";
|
|
49
49
|
import {
|
|
50
50
|
isAbsolute,
|
|
51
51
|
join
|
|
52
|
-
} from "../../_node-chunks/chunk-
|
|
52
|
+
} from "../../_node-chunks/chunk-7B4JYHGV.js";
|
|
53
53
|
import {
|
|
54
54
|
loadConfig
|
|
55
|
-
} from "../../_node-chunks/chunk-
|
|
55
|
+
} from "../../_node-chunks/chunk-VJFHZL2T.js";
|
|
56
56
|
import {
|
|
57
57
|
require_dist
|
|
58
|
-
} from "../../_node-chunks/chunk-
|
|
59
|
-
import "../../_node-chunks/chunk-
|
|
60
|
-
import "../../_node-chunks/chunk-
|
|
58
|
+
} from "../../_node-chunks/chunk-TTGXODEY.js";
|
|
59
|
+
import "../../_node-chunks/chunk-5BRYY6XB.js";
|
|
60
|
+
import "../../_node-chunks/chunk-COGO4JMD.js";
|
|
61
61
|
import {
|
|
62
62
|
require_picocolors
|
|
63
|
-
} from "../../_node-chunks/chunk-
|
|
63
|
+
} from "../../_node-chunks/chunk-2KSITKBI.js";
|
|
64
64
|
import {
|
|
65
65
|
__commonJS,
|
|
66
66
|
__export,
|
|
67
67
|
__require,
|
|
68
68
|
__toESM
|
|
69
|
-
} from "../../_node-chunks/chunk-
|
|
69
|
+
} from "../../_node-chunks/chunk-5WQXPM6D.js";
|
|
70
70
|
|
|
71
71
|
// ../../node_modules/shell-quote/quote.js
|
|
72
72
|
var require_quote = __commonJS({
|
|
@@ -533,7 +533,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
533
533
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
534
534
|
|
|
535
535
|
// src/core-server/utils/get-component-variable-name.ts
|
|
536
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
536
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-KIWRHB2G.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
537
537
|
|
|
538
538
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
539
539
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -798,7 +798,7 @@ async function searchFiles({
|
|
|
798
798
|
ignoredFiles = IGNORED_FILES,
|
|
799
799
|
fileExtensions = FILE_EXTENSIONS
|
|
800
800
|
}) {
|
|
801
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
801
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-FWMT4OOQ.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
802
802
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
803
803
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
804
804
|
];
|
package/dist/csf/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
mountDestructured,
|
|
11
11
|
normalizeArrays,
|
|
12
12
|
normalizeProjectAnnotations
|
|
13
|
-
} from "../_browser-chunks/chunk-
|
|
13
|
+
} from "../_browser-chunks/chunk-VUZYLZ4B.js";
|
|
14
14
|
import "../_browser-chunks/chunk-IPA5A322.js";
|
|
15
15
|
import "../_browser-chunks/chunk-XLJZ7AOP.js";
|
|
16
16
|
import {
|
|
@@ -1878,9 +1878,13 @@ function defineStory(input, meta) {
|
|
|
1878
1878
|
await compose().run(context);
|
|
1879
1879
|
},
|
|
1880
1880
|
test(name, overridesOrTestFn, testFn) {
|
|
1881
|
-
let annotations = typeof overridesOrTestFn != "function" ? overridesOrTestFn : {}, testFunction = typeof overridesOrTestFn != "function" ? testFn : overridesOrTestFn, play = mountDestructured(this.play) || mountDestructured(testFunction) ?
|
|
1882
|
-
|
|
1883
|
-
|
|
1881
|
+
let annotations = typeof overridesOrTestFn != "function" ? overridesOrTestFn : {}, testFunction = typeof overridesOrTestFn != "function" ? testFn : overridesOrTestFn, play = mountDestructured(this.play) || mountDestructured(testFunction) ? (
|
|
1882
|
+
// mount needs to be explicitly destructured
|
|
1883
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1884
|
+
async ({ mount, context }) => {
|
|
1885
|
+
await this.play?.(context), await testFunction(context);
|
|
1886
|
+
}
|
|
1887
|
+
) : async (context) => {
|
|
1884
1888
|
await this.play?.(context), await testFunction(context);
|
|
1885
1889
|
}, test = this.extend({
|
|
1886
1890
|
...annotations,
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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-VJFHZL2T.js";
|
|
42
|
+
import "../_node-chunks/chunk-TTGXODEY.js";
|
|
43
|
+
import "../_node-chunks/chunk-5WQXPM6D.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -66335,7 +66335,7 @@ init_dist();
|
|
|
66335
66335
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
66336
66336
|
|
|
66337
66337
|
// src/manager-api/version.ts
|
|
66338
|
-
var version = "10.2.0-alpha.
|
|
66338
|
+
var version = "10.2.0-alpha.8";
|
|
66339
66339
|
|
|
66340
66340
|
// src/manager-api/modules/versions.ts
|
|
66341
66341
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|
|
@@ -2338,7 +2338,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
2338
2338
|
import semver from "semver";
|
|
2339
2339
|
|
|
2340
2340
|
// src/manager-api/version.ts
|
|
2341
|
-
var version = "10.2.0-alpha.
|
|
2341
|
+
var version = "10.2.0-alpha.8";
|
|
2342
2342
|
|
|
2343
2343
|
// src/manager-api/modules/versions.ts
|
|
2344
2344
|
var { VERSIONCHECK } = global8, getVersionCheckData = (0, import_memoizerific2.default)(1)(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
join,
|
|
17
17
|
normalize,
|
|
18
18
|
resolve
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-7B4JYHGV.js";
|
|
20
|
+
import "../_node-chunks/chunk-5WQXPM6D.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
23
23
|
var comma = 44, semicolon = 59, chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = new Uint8Array(64), charToInt = new Uint8Array(128);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
once,
|
|
23
23
|
prompt,
|
|
24
24
|
protectUrls
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-ZKB7MQRR.js";
|
|
26
|
+
import "../_node-chunks/chunk-2KSITKBI.js";
|
|
27
|
+
import "../_node-chunks/chunk-5WQXPM6D.js";
|
|
28
28
|
var export_instance = import_npmlog.default;
|
|
29
29
|
export {
|
|
30
30
|
CLI_COLORS,
|
package/dist/preview/runtime.js
CHANGED
|
@@ -39150,20 +39150,20 @@ var checkGlobals = (parameters2) => {
|
|
|
39150
39150
|
parameters2 && (checkGlobals(parameters2), checkStorySort(parameters2));
|
|
39151
39151
|
};
|
|
39152
39152
|
function processCSFFile(moduleExports, importPath, title) {
|
|
39153
|
-
let { default: defaultExport, __namedExportsOrder, ...namedExports } = moduleExports,
|
|
39154
|
-
if (
|
|
39155
|
-
let meta2 = normalizeComponentAnnotations(
|
|
39153
|
+
let { default: defaultExport, __namedExportsOrder, ...namedExports } = moduleExports, factoryStory = Object.values(namedExports).find((it) => isStory(it));
|
|
39154
|
+
if (factoryStory) {
|
|
39155
|
+
let meta2 = normalizeComponentAnnotations(factoryStory.meta.input, title, importPath);
|
|
39156
39156
|
checkDisallowedParameters(meta2.parameters);
|
|
39157
39157
|
let csfFile2 = { meta: meta2, stories: {}, moduleExports };
|
|
39158
39158
|
return Object.keys(namedExports).forEach((key) => {
|
|
39159
|
-
if (isExportStory(key, meta2)) {
|
|
39159
|
+
if (isExportStory(key, meta2) && isStory(namedExports[key])) {
|
|
39160
39160
|
let story = namedExports[key], storyMeta = normalizeStory(key, story.input, meta2);
|
|
39161
39161
|
checkDisallowedParameters(storyMeta.parameters), csfFile2.stories[storyMeta.id] = storyMeta, getStoryChildren(story).forEach((child) => {
|
|
39162
39162
|
let name = child.input.name, childId = toTestId(storyMeta.id, name);
|
|
39163
39163
|
child.input.parameters ??= {}, child.input.parameters.__id = childId, csfFile2.stories[childId] = normalizeStory(name, child.input, meta2);
|
|
39164
39164
|
});
|
|
39165
39165
|
}
|
|
39166
|
-
}), csfFile2.projectAnnotations =
|
|
39166
|
+
}), csfFile2.projectAnnotations = factoryStory.meta.preview.composed, csfFile2;
|
|
39167
39167
|
}
|
|
39168
39168
|
let meta = normalizeComponentAnnotations(
|
|
39169
39169
|
defaultExport,
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -46,13 +46,13 @@ import {
|
|
|
46
46
|
WebpackCompilationError,
|
|
47
47
|
WebpackInvocationError,
|
|
48
48
|
WebpackMissingStatsError
|
|
49
|
-
} from "./_node-chunks/chunk-
|
|
49
|
+
} from "./_node-chunks/chunk-S7FIFCTX.js";
|
|
50
50
|
import {
|
|
51
51
|
StorybookError
|
|
52
|
-
} from "./_node-chunks/chunk-
|
|
53
|
-
import "./_node-chunks/chunk-
|
|
54
|
-
import "./_node-chunks/chunk-
|
|
55
|
-
import "./_node-chunks/chunk-
|
|
52
|
+
} from "./_node-chunks/chunk-Q6WPGVIW.js";
|
|
53
|
+
import "./_node-chunks/chunk-TTGXODEY.js";
|
|
54
|
+
import "./_node-chunks/chunk-2KSITKBI.js";
|
|
55
|
+
import "./_node-chunks/chunk-5WQXPM6D.js";
|
|
56
56
|
export {
|
|
57
57
|
AddonVitestPostinstallConfigUpdateError,
|
|
58
58
|
AddonVitestPostinstallError,
|