storybook 10.2.0-alpha.13 → 10.2.0-alpha.14
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-YTW4R3NB.js → builder-manager-5XVPVHCY.js} +12 -12
- package/dist/_node-chunks/{camelcase-ALOK3DTL.js → camelcase-FFGUJRYA.js} +7 -7
- package/dist/_node-chunks/chunk-2YADPD4P.js +20 -0
- package/dist/_node-chunks/{chunk-XX6B7MPS.js → chunk-3VHD3RGW.js} +8 -8
- package/dist/_node-chunks/{chunk-QV7LTTOW.js → chunk-5QADKW4W.js} +20 -20
- package/dist/_node-chunks/{chunk-X2PNK4N4.js → chunk-6GTCCSGS.js} +7 -7
- package/dist/_node-chunks/{chunk-ZSUT22UW.js → chunk-AAS5TNPH.js} +7 -7
- package/dist/_node-chunks/{chunk-NL75DTGM.js → chunk-AKBKA7MR.js} +6 -6
- package/dist/_node-chunks/{chunk-QMDFRT4S.js → chunk-APXUJGPH.js} +10 -10
- package/dist/_node-chunks/{chunk-TWCN75ID.js → chunk-BVSGQAFJ.js} +9 -9
- package/dist/_node-chunks/{chunk-B3NH4IRY.js → chunk-CMIHYY2B.js} +6 -6
- package/dist/_node-chunks/{chunk-KXFFKIVX.js → chunk-E6HZLFOP.js} +6 -6
- package/dist/_node-chunks/{chunk-FCBELYHM.js → chunk-GCGJVMS3.js} +12 -12
- package/dist/_node-chunks/{chunk-5CARBEGS.js → chunk-GCZN63RS.js} +9 -9
- package/dist/_node-chunks/{chunk-NRCGIPSW.js → chunk-HCZ44VWL.js} +6 -6
- package/dist/_node-chunks/{chunk-OOTLIMKW.js → chunk-HMYS7PGR.js} +6 -6
- package/dist/_node-chunks/{chunk-5E6TIJW7.js → chunk-JFZSVDUQ.js} +6 -6
- package/dist/_node-chunks/{chunk-NGFKU3PK.js → chunk-MBD6J24T.js} +7 -7
- package/dist/_node-chunks/chunk-N72VKZTH.js +23 -0
- package/dist/_node-chunks/chunk-NKHFAHA7.js +18 -0
- package/dist/_node-chunks/{chunk-VOVBTC53.js → chunk-NTVADDN6.js} +6 -6
- package/dist/_node-chunks/{chunk-L4JVY7CQ.js → chunk-OYPD7MWQ.js} +7 -7
- package/dist/_node-chunks/{chunk-WKDY7YZY.js → chunk-QIMAARKG.js} +7 -7
- package/dist/_node-chunks/{chunk-TOLCEUYZ.js → chunk-QMQVY3KQ.js} +7 -7
- package/dist/_node-chunks/{chunk-BIJENBOW.js → chunk-TXHI4M3M.js} +9 -9
- package/dist/_node-chunks/{chunk-AOMUVL33.js → chunk-WSH26TMB.js} +12 -12
- package/dist/_node-chunks/{chunk-OWZXELHP.js → chunk-XDKXHH75.js} +13 -13
- package/dist/_node-chunks/{chunk-AE6TGTGX.js → chunk-YTUKBZV2.js} +7 -7
- package/dist/_node-chunks/{chunk-2VHYFREG.js → chunk-YUBIHW7G.js} +7 -7
- package/dist/_node-chunks/chunk-ZJ3OV7OO.js +61 -0
- package/dist/_node-chunks/{dist-I4XBT6AL.js → dist-OBG2P3MZ.js} +9 -9
- package/dist/_node-chunks/{globby-RG2TFVNI.js → globby-WIEDAEV7.js} +9 -9
- package/dist/_node-chunks/{lib-E2AGGQV3.js → lib-2RMM65EQ.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-SGUMZ4YL.js → mdx-N42X6CFJ-AFWG3A6F.js} +8 -8
- package/dist/_node-chunks/{p-limit-J4UZO65T.js → p-limit-JNVCICJD.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 +33 -33
- 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 +10 -10
- 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-api/index.d.ts +68 -67
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +22 -22
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-5U7IR6W2.js +0 -61
- package/dist/_node-chunks/chunk-JUCUYWH2.js +0 -23
- package/dist/_node-chunks/chunk-KTAHXSER.js +0 -18
- package/dist/_node-chunks/chunk-XQU357NR.js +0 -20
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bgtyoteey4s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bgtyoteey4s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bgtyoteey4s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bgtyoteey4s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bgtyoteey4s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bgtyoteey4s.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-HMYS7PGR.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-YUBIHW7G.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-E6HZLFOP.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_bgtyoteey4s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bgtyoteey4s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bgtyoteey4s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bgtyoteey4s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bgtyoteey4s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bgtyoteey4s.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-GCGJVMS3.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-N72VKZTH.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-BVSGQAFJ.js";
|
|
45
|
+
import "../_node-chunks/chunk-NTVADDN6.js";
|
|
46
|
+
import "../_node-chunks/chunk-HCZ44VWL.js";
|
|
47
|
+
import "../_node-chunks/chunk-AAS5TNPH.js";
|
|
48
|
+
import "../_node-chunks/chunk-AKBKA7MR.js";
|
|
49
|
+
import "../_node-chunks/chunk-YUBIHW7G.js";
|
|
50
|
+
import "../_node-chunks/chunk-GCZN63RS.js";
|
|
51
|
+
import "../_node-chunks/chunk-MBD6J24T.js";
|
|
52
|
+
import "../_node-chunks/chunk-6GTCCSGS.js";
|
|
53
|
+
import "../_node-chunks/chunk-E6HZLFOP.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_bgtyoteey4s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bgtyoteey4s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bgtyoteey4s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bgtyoteey4s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bgtyoteey4s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bgtyoteey4s.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-5QADKW4W.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-ZJ3OV7OO.js";
|
|
109
|
+
import "../_node-chunks/chunk-OYPD7MWQ.js";
|
|
110
|
+
import "../_node-chunks/chunk-3VHD3RGW.js";
|
|
111
|
+
import "../_node-chunks/chunk-NTVADDN6.js";
|
|
112
112
|
import {
|
|
113
113
|
groupBy,
|
|
114
114
|
invariant
|
|
115
|
-
} from "../_node-chunks/chunk-
|
|
115
|
+
} from "../_node-chunks/chunk-HCZ44VWL.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-AAS5TNPH.js";
|
|
122
|
+
import "../_node-chunks/chunk-AKBKA7MR.js";
|
|
123
|
+
import "../_node-chunks/chunk-YTUKBZV2.js";
|
|
124
|
+
import "../_node-chunks/chunk-2YADPD4P.js";
|
|
125
|
+
import "../_node-chunks/chunk-YUBIHW7G.js";
|
|
126
|
+
import "../_node-chunks/chunk-6GTCCSGS.js";
|
|
127
|
+
import "../_node-chunks/chunk-E6HZLFOP.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_bgtyoteey4s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bgtyoteey4s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bgtyoteey4s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bgtyoteey4s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bgtyoteey4s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bgtyoteey4s.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-APXUJGPH.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,68 +21,68 @@ import {
|
|
|
21
21
|
sendTelemetryError,
|
|
22
22
|
useStatics,
|
|
23
23
|
withTelemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-XDKXHH75.js";
|
|
25
25
|
import {
|
|
26
26
|
detectPnp
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-N72VKZTH.js";
|
|
28
|
+
import "../_node-chunks/chunk-QMQVY3KQ.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-JFZSVDUQ.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-WSH26TMB.js";
|
|
35
|
+
import "../_node-chunks/chunk-NKHFAHA7.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-5QADKW4W.js";
|
|
43
|
+
import "../_node-chunks/chunk-ZJ3OV7OO.js";
|
|
44
|
+
import "../_node-chunks/chunk-OYPD7MWQ.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-3VHD3RGW.js";
|
|
48
|
+
import "../_node-chunks/chunk-BVSGQAFJ.js";
|
|
49
49
|
import {
|
|
50
50
|
invariant,
|
|
51
51
|
up2 as up
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-NTVADDN6.js";
|
|
53
|
+
import "../_node-chunks/chunk-HCZ44VWL.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-AAS5TNPH.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-AKBKA7MR.js";
|
|
64
|
+
import "../_node-chunks/chunk-YTUKBZV2.js";
|
|
65
65
|
import {
|
|
66
66
|
slash
|
|
67
|
-
} from "../_node-chunks/chunk-
|
|
67
|
+
} from "../_node-chunks/chunk-2YADPD4P.js";
|
|
68
68
|
import {
|
|
69
69
|
Tag
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
70
|
+
} from "../_node-chunks/chunk-CMIHYY2B.js";
|
|
71
71
|
import {
|
|
72
72
|
require_dist
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-YUBIHW7G.js";
|
|
74
74
|
import {
|
|
75
75
|
require_lib,
|
|
76
76
|
require_src
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
77
|
+
} from "../_node-chunks/chunk-MBD6J24T.js";
|
|
78
78
|
import {
|
|
79
79
|
require_picocolors
|
|
80
|
-
} from "../_node-chunks/chunk-
|
|
80
|
+
} from "../_node-chunks/chunk-6GTCCSGS.js";
|
|
81
81
|
import {
|
|
82
82
|
__commonJS,
|
|
83
83
|
__require,
|
|
84
84
|
__toESM
|
|
85
|
-
} from "../_node-chunks/chunk-
|
|
85
|
+
} from "../_node-chunks/chunk-E6HZLFOP.js";
|
|
86
86
|
|
|
87
87
|
// ../../node_modules/glob-to-regexp/index.js
|
|
88
88
|
var require_glob_to_regexp = __commonJS({
|
|
@@ -4539,7 +4539,7 @@ function print(p) {
|
|
|
4539
4539
|
// src/core-server/utils/get-builders.ts
|
|
4540
4540
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
4541
4541
|
async function getManagerBuilder() {
|
|
4542
|
-
return await import("../_node-chunks/builder-manager-
|
|
4542
|
+
return await import("../_node-chunks/builder-manager-5XVPVHCY.js");
|
|
4543
4543
|
}
|
|
4544
4544
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
4545
4545
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -4603,7 +4603,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
4603
4603
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
4604
4604
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
4605
4605
|
basename(specifier.files)
|
|
4606
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
4606
|
+
), { globby } = await import("../_node-chunks/globby-WIEDAEV7.js");
|
|
4607
4607
|
(await globby(slash(dirGlob), commonGlobOptions(dirGlob))).forEach((filePath) => {
|
|
4608
4608
|
let fileImportPath = toImportPath(filePath);
|
|
4609
4609
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(fileImportPath, removed);
|
|
@@ -5658,7 +5658,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5658
5658
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5659
5659
|
if (cached)
|
|
5660
5660
|
return cached;
|
|
5661
|
-
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5661
|
+
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-WIEDAEV7.js"), files = await globby(globPattern, {
|
|
5662
5662
|
absolute: !0,
|
|
5663
5663
|
cwd: globCwd,
|
|
5664
5664
|
...commonGlobOptions2(globPattern)
|
|
@@ -5845,7 +5845,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5845
5845
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5846
5846
|
let relativePath = relative4(this.options.workingDir, absolutePath);
|
|
5847
5847
|
try {
|
|
5848
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5848
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-OBG2P3MZ.js"), result = await analyze(content);
|
|
5849
5849
|
if (result.isTemplate)
|
|
5850
5850
|
return !1;
|
|
5851
5851
|
let absoluteImports = result.imports.map(
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bgtyoteey4s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bgtyoteey4s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bgtyoteey4s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bgtyoteey4s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bgtyoteey4s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bgtyoteey4s.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-YTUKBZV2.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-2YADPD4P.js";
|
|
18
|
+
import "../../_node-chunks/chunk-E6HZLFOP.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bgtyoteey4s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bgtyoteey4s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bgtyoteey4s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bgtyoteey4s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bgtyoteey4s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bgtyoteey4s.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-GCGJVMS3.js";
|
|
13
13
|
import {
|
|
14
14
|
parseStaticDir,
|
|
15
15
|
sendTelemetryError,
|
|
16
16
|
throttle
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
19
|
-
import "../../_node-chunks/chunk-
|
|
20
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-XDKXHH75.js";
|
|
18
|
+
import "../../_node-chunks/chunk-N72VKZTH.js";
|
|
19
|
+
import "../../_node-chunks/chunk-QMQVY3KQ.js";
|
|
20
|
+
import "../../_node-chunks/chunk-JFZSVDUQ.js";
|
|
21
21
|
import {
|
|
22
22
|
globalSettings
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-BVSGQAFJ.js";
|
|
24
24
|
import {
|
|
25
25
|
invariant
|
|
26
|
-
} from "../../_node-chunks/chunk-
|
|
27
|
-
import "../../_node-chunks/chunk-
|
|
26
|
+
} from "../../_node-chunks/chunk-NTVADDN6.js";
|
|
27
|
+
import "../../_node-chunks/chunk-HCZ44VWL.js";
|
|
28
28
|
import {
|
|
29
29
|
resolvePackageDir
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-AAS5TNPH.js";
|
|
31
31
|
import {
|
|
32
32
|
isAbsolute,
|
|
33
33
|
join
|
|
34
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
+
} from "../../_node-chunks/chunk-AKBKA7MR.js";
|
|
35
35
|
import {
|
|
36
36
|
loadConfig
|
|
37
|
-
} from "../../_node-chunks/chunk-
|
|
38
|
-
import "../../_node-chunks/chunk-
|
|
37
|
+
} from "../../_node-chunks/chunk-TXHI4M3M.js";
|
|
38
|
+
import "../../_node-chunks/chunk-CMIHYY2B.js";
|
|
39
39
|
import {
|
|
40
40
|
require_dist
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
42
|
-
import "../../_node-chunks/chunk-
|
|
43
|
-
import "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-YUBIHW7G.js";
|
|
42
|
+
import "../../_node-chunks/chunk-GCZN63RS.js";
|
|
43
|
+
import "../../_node-chunks/chunk-MBD6J24T.js";
|
|
44
44
|
import {
|
|
45
45
|
require_picocolors
|
|
46
|
-
} from "../../_node-chunks/chunk-
|
|
46
|
+
} from "../../_node-chunks/chunk-6GTCCSGS.js";
|
|
47
47
|
import {
|
|
48
48
|
__commonJS,
|
|
49
49
|
__require,
|
|
50
50
|
__toESM
|
|
51
|
-
} from "../../_node-chunks/chunk-
|
|
51
|
+
} from "../../_node-chunks/chunk-E6HZLFOP.js";
|
|
52
52
|
|
|
53
53
|
// ../../node_modules/shell-quote/quote.js
|
|
54
54
|
var require_quote = __commonJS({
|
|
@@ -516,7 +516,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
516
516
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
517
517
|
|
|
518
518
|
// src/core-server/utils/get-component-variable-name.ts
|
|
519
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
519
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-FFGUJRYA.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
520
520
|
|
|
521
521
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
522
522
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -781,7 +781,7 @@ async function searchFiles({
|
|
|
781
781
|
ignoredFiles = IGNORED_FILES,
|
|
782
782
|
fileExtensions = FILE_EXTENSIONS
|
|
783
783
|
}) {
|
|
784
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
784
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-WIEDAEV7.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
785
785
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
786
786
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
787
787
|
];
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bgtyoteey4s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bgtyoteey4s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bgtyoteey4s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bgtyoteey4s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bgtyoteey4s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bgtyoteey4s.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -38,10 +38,10 @@ 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-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-TXHI4M3M.js";
|
|
42
|
+
import "../_node-chunks/chunk-CMIHYY2B.js";
|
|
43
|
+
import "../_node-chunks/chunk-YUBIHW7G.js";
|
|
44
|
+
import "../_node-chunks/chunk-E6HZLFOP.js";
|
|
45
45
|
export {
|
|
46
46
|
BadMetaError,
|
|
47
47
|
ConfigFile,
|
|
@@ -62130,7 +62130,7 @@ init_dist();
|
|
|
62130
62130
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
62131
62131
|
|
|
62132
62132
|
// src/manager-api/version.ts
|
|
62133
|
-
var version = "10.2.0-alpha.
|
|
62133
|
+
var version = "10.2.0-alpha.14";
|
|
62134
62134
|
|
|
62135
62135
|
// src/manager-api/modules/versions.ts
|
|
62136
62136
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|
|
@@ -2382,7 +2382,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
2382
2382
|
import semver from "semver";
|
|
2383
2383
|
|
|
2384
2384
|
// src/manager-api/version.ts
|
|
2385
|
-
var version = "10.2.0-alpha.
|
|
2385
|
+
var version = "10.2.0-alpha.14";
|
|
2386
2386
|
|
|
2387
2387
|
// src/manager-api/modules/versions.ts
|
|
2388
2388
|
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_bgtyoteey4s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bgtyoteey4s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bgtyoteey4s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bgtyoteey4s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bgtyoteey4s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bgtyoteey4s.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-AKBKA7MR.js";
|
|
20
|
+
import "../_node-chunks/chunk-E6HZLFOP.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_bgtyoteey4s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bgtyoteey4s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bgtyoteey4s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bgtyoteey4s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bgtyoteey4s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bgtyoteey4s.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-3VHD3RGW.js";
|
|
26
|
+
import "../_node-chunks/chunk-6GTCCSGS.js";
|
|
27
|
+
import "../_node-chunks/chunk-E6HZLFOP.js";
|
|
28
28
|
var export_instance = import_npmlog.default;
|
|
29
29
|
export {
|
|
30
30
|
CLI_COLORS,
|