storybook 10.1.0-beta.3 → 10.1.0-beta.4
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-OAF6SRKJ.js → builder-manager-T3A7QLUO.js} +24 -26
- package/dist/_node-chunks/{camelcase-UG5ZJHCD.js → camelcase-WMMYRUH4.js} +7 -7
- package/dist/_node-chunks/{chunk-WBULWRM7.js → chunk-3MVB5IZX.js} +28 -24
- package/dist/_node-chunks/{chunk-N5IE6WWR.js → chunk-5DEFF2GB.js} +7 -7
- package/dist/_node-chunks/{chunk-JOOO54RB.js → chunk-67VVNDJJ.js} +6 -6
- package/dist/_node-chunks/{chunk-SUILKNPA.js → chunk-C6RLDV2P.js} +8 -8
- package/dist/_node-chunks/{chunk-473LXK7O.js → chunk-CM44JL5Z.js} +6 -6
- package/dist/_node-chunks/{chunk-XS5QCZP7.js → chunk-CSFSQ2I4.js} +7 -7
- package/dist/_node-chunks/{chunk-H6HVK5J2.js → chunk-EFN4RLWH.js} +7 -7
- package/dist/_node-chunks/{chunk-WYLXFNIP.js → chunk-EFTR6VSG.js} +9 -9
- package/dist/_node-chunks/{chunk-SKFAHEPX.js → chunk-EJPOXNSG.js} +15 -15
- package/dist/_node-chunks/{chunk-7WOMK33B.js → chunk-HDMHX5QM.js} +7 -7
- package/dist/_node-chunks/{chunk-U24W5IIW.js → chunk-HT32VUX7.js} +7 -7
- package/dist/_node-chunks/chunk-IQFN7VY4.js +23 -0
- package/dist/_node-chunks/{chunk-RABBUYPA.js → chunk-JYAXWHGH.js} +9 -9
- package/dist/_node-chunks/chunk-K7U3BSTR.js +61 -0
- package/dist/_node-chunks/{chunk-CRJ7M6EO.js → chunk-KAVR7KJP.js} +285 -280
- package/dist/_node-chunks/{chunk-6YYH64IJ.js → chunk-KI6KY2ZN.js} +13 -13
- package/dist/_node-chunks/{chunk-Y7VDA7NY.js → chunk-NORFPLB6.js} +7 -7
- package/dist/_node-chunks/{chunk-LZ2HPFRB.js → chunk-PMZEJJNX.js} +7 -7
- package/dist/_node-chunks/{chunk-NOTIBODG.js → chunk-RSJK2D7X.js} +6 -6
- package/dist/_node-chunks/{chunk-UWK6Z4VL.js → chunk-TBYOSPAV.js} +6 -6
- package/dist/_node-chunks/{chunk-STYUJSG3.js → chunk-TC7X5DN2.js} +10 -10
- package/dist/_node-chunks/{chunk-TUQOGYET.js → chunk-TCLOOFNE.js} +7 -7
- package/dist/_node-chunks/{chunk-WSIZMTN2.js → chunk-VN7SAKM4.js} +6 -6
- package/dist/_node-chunks/{chunk-745GFLCZ.js → chunk-VW25O2YM.js} +6 -6
- package/dist/_node-chunks/{chunk-A5VW7257.js → chunk-WGBDDI6W.js} +642 -639
- package/dist/_node-chunks/chunk-YN3C74EA.js +18 -0
- package/dist/_node-chunks/{chunk-NKT3R6IH.js → chunk-YTTOTUWC.js} +6 -6
- package/dist/_node-chunks/{chunk-Q65ED3UK.js → chunk-YZ3XRP4N.js} +6 -6
- package/dist/_node-chunks/{dist-N33YQ3NH.js → dist-L6XLFQOU.js} +9 -9
- package/dist/_node-chunks/{globby-5IBS67N3.js → globby-7IXLXFEA.js} +9 -9
- package/dist/_node-chunks/{lib-2XH6KQ2B.js → lib-T5L2ZSAG.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3GGSRLVV.js → mdx-N42X6CFJ-GOOKUTSA.js} +8 -8
- package/dist/_node-chunks/{p-limit-Z3A7N5MY.js → p-limit-7GKATDEW.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.d.ts +1 -2
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +553 -560
- package/dist/common/index.js +19 -21
- 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 +9 -9
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +70 -96
- package/dist/manager-api/index.d.ts +178 -178
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.d.ts +3 -1
- package/dist/node-logger/index.js +9 -9
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/_node-chunks/chunk-5N3H43LE.js +0 -23
- package/dist/_node-chunks/chunk-DRN5YXX5.js +0 -18
- package/dist/_node-chunks/chunk-LJRIVT23.js +0 -61
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -41,7 +41,6 @@ import {
|
|
|
41
41
|
getAddonNames,
|
|
42
42
|
getAutoRefs,
|
|
43
43
|
getBuilderOptions,
|
|
44
|
-
getCoercedStorybookVersion,
|
|
45
44
|
getConfigInfo,
|
|
46
45
|
getDirectoryFromWorkingDir,
|
|
47
46
|
getEnvConfig,
|
|
@@ -103,29 +102,29 @@ import {
|
|
|
103
102
|
validateConfigurationFiles,
|
|
104
103
|
validateFrameworkName,
|
|
105
104
|
wrapValueWithGetAbsolutePathWrapper
|
|
106
|
-
} from "../_node-chunks/chunk-
|
|
105
|
+
} from "../_node-chunks/chunk-KAVR7KJP.js";
|
|
107
106
|
import {
|
|
108
107
|
versions_default
|
|
109
|
-
} from "../_node-chunks/chunk-
|
|
110
|
-
import "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
112
|
-
import "../_node-chunks/chunk-
|
|
108
|
+
} from "../_node-chunks/chunk-K7U3BSTR.js";
|
|
109
|
+
import "../_node-chunks/chunk-HT32VUX7.js";
|
|
110
|
+
import "../_node-chunks/chunk-WGBDDI6W.js";
|
|
111
|
+
import "../_node-chunks/chunk-YTTOTUWC.js";
|
|
113
112
|
import {
|
|
114
113
|
importMetaResolve,
|
|
115
114
|
importModule,
|
|
116
115
|
resolvePackageDir,
|
|
117
116
|
safeResolveModule
|
|
118
|
-
} from "../_node-chunks/chunk-
|
|
117
|
+
} from "../_node-chunks/chunk-NORFPLB6.js";
|
|
119
118
|
import {
|
|
120
119
|
groupBy,
|
|
121
120
|
invariant
|
|
122
|
-
} from "../_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-
|
|
128
|
-
import "../_node-chunks/chunk-
|
|
121
|
+
} from "../_node-chunks/chunk-VN7SAKM4.js";
|
|
122
|
+
import "../_node-chunks/chunk-TBYOSPAV.js";
|
|
123
|
+
import "../_node-chunks/chunk-CSFSQ2I4.js";
|
|
124
|
+
import "../_node-chunks/chunk-YZ3XRP4N.js";
|
|
125
|
+
import "../_node-chunks/chunk-HDMHX5QM.js";
|
|
126
|
+
import "../_node-chunks/chunk-TCLOOFNE.js";
|
|
127
|
+
import "../_node-chunks/chunk-VW25O2YM.js";
|
|
129
128
|
export {
|
|
130
129
|
DEFAULT_FILES_PATTERN,
|
|
131
130
|
FileSystemCache,
|
|
@@ -158,7 +157,6 @@ export {
|
|
|
158
157
|
getAddonNames,
|
|
159
158
|
getAutoRefs,
|
|
160
159
|
getBuilderOptions,
|
|
161
|
-
getCoercedStorybookVersion,
|
|
162
160
|
getConfigInfo,
|
|
163
161
|
getDirectoryFromWorkingDir,
|
|
164
162
|
getEnvConfig,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.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-TC7X5DN2.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,66 +21,66 @@ 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-KI6KY2ZN.js";
|
|
25
|
+
import "../_node-chunks/chunk-EFN4RLWH.js";
|
|
26
26
|
import {
|
|
27
27
|
detectPnp
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-IQFN7VY4.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-RSJK2D7X.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-EJPOXNSG.js";
|
|
35
|
+
import "../_node-chunks/chunk-YN3C74EA.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-KAVR7KJP.js";
|
|
43
|
+
import "../_node-chunks/chunk-K7U3BSTR.js";
|
|
44
|
+
import "../_node-chunks/chunk-HT32VUX7.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-WGBDDI6W.js";
|
|
48
|
+
import "../_node-chunks/chunk-67VVNDJJ.js";
|
|
49
|
+
import "../_node-chunks/chunk-JYAXWHGH.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant,
|
|
52
52
|
up2 as up
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
53
|
+
} from "../_node-chunks/chunk-YTTOTUWC.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-NORFPLB6.js";
|
|
58
|
+
import "../_node-chunks/chunk-VN7SAKM4.js";
|
|
59
59
|
import {
|
|
60
60
|
dirname,
|
|
61
61
|
join,
|
|
62
62
|
relative,
|
|
63
63
|
resolve
|
|
64
|
-
} from "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
64
|
+
} from "../_node-chunks/chunk-TBYOSPAV.js";
|
|
65
|
+
import "../_node-chunks/chunk-CSFSQ2I4.js";
|
|
66
66
|
import {
|
|
67
67
|
slash
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-YZ3XRP4N.js";
|
|
69
69
|
import {
|
|
70
70
|
require_dist
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-HDMHX5QM.js";
|
|
72
72
|
import {
|
|
73
73
|
require_lib,
|
|
74
74
|
require_src
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-PMZEJJNX.js";
|
|
76
76
|
import {
|
|
77
77
|
require_picocolors
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-TCLOOFNE.js";
|
|
79
79
|
import {
|
|
80
80
|
__commonJS,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-VW25O2YM.js";
|
|
84
84
|
|
|
85
85
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
@@ -5147,7 +5147,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5147
5147
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5148
5148
|
if (cached)
|
|
5149
5149
|
return cached;
|
|
5150
|
-
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5150
|
+
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files, { globby } = await import("../_node-chunks/globby-7IXLXFEA.js"), files = await globby(globPattern, {
|
|
5151
5151
|
absolute: !0,
|
|
5152
5152
|
cwd: globCwd,
|
|
5153
5153
|
...commonGlobOptions(globPattern)
|
|
@@ -5336,7 +5336,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5336
5336
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5337
5337
|
let relativePath = relative2(this.options.workingDir, absolutePath);
|
|
5338
5338
|
try {
|
|
5339
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5339
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-L6XLFQOU.js"), result = await analyze(content);
|
|
5340
5340
|
if (result.isTemplate)
|
|
5341
5341
|
return !1;
|
|
5342
5342
|
let absoluteImports = result.imports.map(
|
|
@@ -5596,7 +5596,7 @@ function print(p) {
|
|
|
5596
5596
|
// src/core-server/utils/get-builders.ts
|
|
5597
5597
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
5598
5598
|
async function getManagerBuilder() {
|
|
5599
|
-
return await import("../_node-chunks/builder-manager-
|
|
5599
|
+
return await import("../_node-chunks/builder-manager-T3A7QLUO.js");
|
|
5600
5600
|
}
|
|
5601
5601
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
5602
5602
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -5696,7 +5696,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
5696
5696
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
5697
5697
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
5698
5698
|
basename2(specifier.files)
|
|
5699
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
5699
|
+
), { globby } = await import("../_node-chunks/globby-7IXLXFEA.js");
|
|
5700
5700
|
(await globby(slash(dirGlob), commonGlobOptions2(dirGlob))).forEach((filePath) => {
|
|
5701
5701
|
let fileImportPath = toImportPath(filePath);
|
|
5702
5702
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(specifier, fileImportPath, removed);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.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-CSFSQ2I4.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-YZ3XRP4N.js";
|
|
18
|
+
import "../../_node-chunks/chunk-VW25O2YM.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.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-3MVB5IZX.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-KI6KY2ZN.js";
|
|
18
|
+
import "../../_node-chunks/chunk-EFN4RLWH.js";
|
|
19
|
+
import "../../_node-chunks/chunk-IQFN7VY4.js";
|
|
20
|
+
import "../../_node-chunks/chunk-RSJK2D7X.js";
|
|
21
21
|
import {
|
|
22
22
|
getLastEvents,
|
|
23
23
|
getSessionId
|
|
24
|
-
} from "../../_node-chunks/chunk-
|
|
24
|
+
} from "../../_node-chunks/chunk-67VVNDJJ.js";
|
|
25
25
|
import {
|
|
26
26
|
globalSettings
|
|
27
|
-
} from "../../_node-chunks/chunk-
|
|
27
|
+
} from "../../_node-chunks/chunk-JYAXWHGH.js";
|
|
28
28
|
import {
|
|
29
29
|
invariant
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-YTTOTUWC.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePackageDir
|
|
33
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
-
import "../../_node-chunks/chunk-
|
|
33
|
+
} from "../../_node-chunks/chunk-NORFPLB6.js";
|
|
34
|
+
import "../../_node-chunks/chunk-VN7SAKM4.js";
|
|
35
35
|
import {
|
|
36
36
|
isAbsolute,
|
|
37
37
|
join
|
|
38
|
-
} from "../../_node-chunks/chunk-
|
|
38
|
+
} from "../../_node-chunks/chunk-TBYOSPAV.js";
|
|
39
39
|
import {
|
|
40
40
|
loadConfig
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-C6RLDV2P.js";
|
|
42
42
|
import {
|
|
43
43
|
require_dist
|
|
44
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
-
import "../../_node-chunks/chunk-
|
|
46
|
-
import "../../_node-chunks/chunk-
|
|
44
|
+
} from "../../_node-chunks/chunk-HDMHX5QM.js";
|
|
45
|
+
import "../../_node-chunks/chunk-EFTR6VSG.js";
|
|
46
|
+
import "../../_node-chunks/chunk-PMZEJJNX.js";
|
|
47
47
|
import {
|
|
48
48
|
require_picocolors
|
|
49
|
-
} from "../../_node-chunks/chunk-
|
|
49
|
+
} from "../../_node-chunks/chunk-TCLOOFNE.js";
|
|
50
50
|
import {
|
|
51
51
|
__commonJS,
|
|
52
52
|
__require,
|
|
53
53
|
__toESM
|
|
54
|
-
} from "../../_node-chunks/chunk-
|
|
54
|
+
} from "../../_node-chunks/chunk-VW25O2YM.js";
|
|
55
55
|
|
|
56
56
|
// ../node_modules/shell-quote/quote.js
|
|
57
57
|
var require_quote = __commonJS({
|
|
@@ -518,7 +518,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
518
518
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
519
519
|
|
|
520
520
|
// src/core-server/utils/get-component-variable-name.ts
|
|
521
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
521
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-WMMYRUH4.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
522
522
|
|
|
523
523
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
524
524
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -783,7 +783,7 @@ async function searchFiles({
|
|
|
783
783
|
ignoredFiles = IGNORED_FILES,
|
|
784
784
|
fileExtensions = FILE_EXTENSIONS
|
|
785
785
|
}) {
|
|
786
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
786
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-7IXLXFEA.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
787
787
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
788
788
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
789
789
|
];
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.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-C6RLDV2P.js";
|
|
42
|
+
import "../_node-chunks/chunk-HDMHX5QM.js";
|
|
43
|
+
import "../_node-chunks/chunk-VW25O2YM.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -61093,7 +61093,7 @@ init_dist();
|
|
|
61093
61093
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
61094
61094
|
|
|
61095
61095
|
// src/manager-api/version.ts
|
|
61096
|
-
var version = "10.1.0-beta.
|
|
61096
|
+
var version = "10.1.0-beta.4";
|
|
61097
61097
|
|
|
61098
61098
|
// src/manager-api/modules/versions.ts
|
|
61099
61099
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|