storybook 10.1.0-alpha.2 → 10.1.0-alpha.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-XRIDLU42.js → builder-manager-P652CU5Z.js} +12 -12
- package/dist/_node-chunks/camelcase-VADCJSEY.js +18 -0
- package/dist/_node-chunks/{chunk-D43KJFPO.js → chunk-3GTBPTCZ.js} +7 -7
- package/dist/_node-chunks/chunk-3OPGVNKX.js +18 -0
- package/dist/_node-chunks/{chunk-QFET4WIW.js → chunk-5A6EYMRK.js} +6 -6
- package/dist/_node-chunks/{chunk-ZN2EDLIJ.js → chunk-5E5YDTCQ.js} +7 -7
- package/dist/_node-chunks/{chunk-FWBIPR34.js → chunk-5NGUGC3U.js} +7 -7
- package/dist/_node-chunks/{chunk-2L3QAN3W.js → chunk-6DHXOOK2.js} +7 -7
- package/dist/_node-chunks/{chunk-BB3ZKTWJ.js → chunk-6VWT3H7R.js} +7 -7
- package/dist/_node-chunks/{chunk-GWSFLQQQ.js → chunk-7332Y23R.js} +1466 -148
- package/dist/_node-chunks/{chunk-EKPHXLN6.js → chunk-7C52H6S6.js} +7 -7
- package/dist/_node-chunks/{chunk-BAE27Z3H.js → chunk-7NSBLADO.js} +8 -8
- package/dist/_node-chunks/{chunk-VEZ6C62C.js → chunk-BHHNQ5GJ.js} +36 -43
- package/dist/_node-chunks/{chunk-Q5JSLT56.js → chunk-CAKHJEH6.js} +7 -7
- package/dist/_node-chunks/{chunk-ZI3WVJBS.js → chunk-CPI4IKLK.js} +8 -8
- package/dist/_node-chunks/{chunk-QS5MMNF7.js → chunk-FMLH3V5B.js} +7 -7
- package/dist/_node-chunks/{chunk-HFHQNHRU.js → chunk-FU2KCZJG.js} +9 -9
- package/dist/_node-chunks/{chunk-RIPSSVT6.js → chunk-GDOIF7E6.js} +7 -7
- package/dist/_node-chunks/{chunk-IK3K67LJ.js → chunk-HPERTMWB.js} +7 -7
- package/dist/_node-chunks/{chunk-OM4TBMP7.js → chunk-ICT62CX5.js} +7 -7
- package/dist/_node-chunks/{chunk-5RN3IJGF.js → chunk-JS5I7ZY6.js} +7 -7
- package/dist/_node-chunks/{chunk-ZTHTAFLY.js → chunk-K3K6H2BF.js} +12 -12
- package/dist/_node-chunks/{chunk-RQKELEE4.js → chunk-LPBJHVNR.js} +7 -7
- package/dist/_node-chunks/{chunk-FI6CLUVL.js → chunk-OXPHRY7P.js} +15 -15
- package/dist/_node-chunks/{chunk-3AR5SJTX.js → chunk-PCXGFAQ3.js} +7 -7
- package/dist/_node-chunks/{chunk-6TX2TV3E.js → chunk-PW7ECOTU.js} +12 -12
- package/dist/_node-chunks/{chunk-BYQZFXRF.js → chunk-RFAREF3S.js} +8 -8
- package/dist/_node-chunks/{chunk-XVXUF5GE.js → chunk-T6VOUSIY.js} +7 -7
- package/dist/_node-chunks/{chunk-LJPS53G5.js → chunk-TFBHPN6J.js} +7 -7
- package/dist/_node-chunks/{chunk-S6RYOO4I.js → chunk-TXDBGO2X.js} +9 -9
- package/dist/_node-chunks/{chunk-RUJOX3JR.js → chunk-VAAX75EL.js} +6 -6
- package/dist/_node-chunks/chunk-VCC35ZLQ.js +61 -0
- package/dist/_node-chunks/{chunk-L5J4RBU5.js → chunk-XCTASIYK.js} +8 -8
- package/dist/_node-chunks/{chunk-WHOPLOGE.js → chunk-XPBE544K.js} +7 -7
- package/dist/_node-chunks/{chunk-6WXUZSNC.js → chunk-YXC7LAMZ.js} +10 -10
- package/dist/_node-chunks/{dist-Q25SOSXX.js → dist-MCOAOC3B.js} +9 -9
- package/dist/_node-chunks/{globby-I54LIY47.js → globby-L3NPKIS7.js} +9 -9
- package/dist/_node-chunks/{lib-KQD2WJWJ.js → lib-ITTSFFC5.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-CT3A7SBK.js → mdx-N42X6CFJ-YP4YCIZM.js} +8 -8
- package/dist/_node-chunks/{p-limit-2NBKFARM.js → p-limit-TTLWUU6D.js} +7 -7
- package/dist/_node-chunks/{plugin-RF5FICSG.js → plugin-C2OCVZYN.js} +10 -10
- package/dist/_node-chunks/{plugin-2CCCBGGB.js → plugin-OC5KWEJQ.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-RY56E77L.js → webpack-inject-mocker-runtime-plugin-IRAPT6HV.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-6VDFRSC4.js → webpack-mock-plugin-CFITLD44.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +21 -21
- package/dist/common/index.d.ts +190 -2
- package/dist/common/index.js +26 -20
- package/dist/components/index.js +5744 -73
- package/dist/core-server/index.js +833 -46
- package/dist/core-server/presets/common-manager.js +14 -20
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +23 -23
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf/index.js +2 -2
- package/dist/csf-tools/index.d.ts +7 -0
- 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/node-logger/index.js +14 -14
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/preview-api/index.js +5 -5
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/types/index.d.ts +4 -2
- package/package.json +2 -1
- package/dist/_browser-chunks/chunk-B3S3ROIP.js +0 -5810
- package/dist/_node-chunks/camelcase-3IIGGJ6N.js +0 -18
- package/dist/_node-chunks/chunk-N3ZE2FCS.js +0 -61
- package/dist/_node-chunks/chunk-U6VJQXTG.js +0 -18
- package/dist/_browser-chunks/{chunk-W4QKLQSC.js → chunk-RW5PKMWM.js} +5 -5
- package/dist/_browser-chunks/{syntaxhighlighter-DK2ODWXH.js → syntaxhighlighter-CAVLW7PM.js} +4 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VAAX75EL.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/slash/index.js
|
|
17
17
|
function slash(path) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
join,
|
|
17
17
|
normalize,
|
|
18
18
|
resolve
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TFBHPN6J.js";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VAAX75EL.js";
|
|
23
23
|
|
|
24
24
|
// src/core-server/mocking-utils/resolve.ts
|
|
25
25
|
import { readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_dist
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HPERTMWB.js";
|
|
15
15
|
import {
|
|
16
16
|
__name,
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VAAX75EL.js";
|
|
19
19
|
|
|
20
20
|
// src/csf-tools/CsfFile.ts
|
|
21
21
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -859,12 +859,6 @@ var propKey = /* @__PURE__ */ __name((p) => {
|
|
|
859
859
|
}
|
|
860
860
|
return null;
|
|
861
861
|
}, "propKey");
|
|
862
|
-
var unwrap = /* @__PURE__ */ __name((node) => {
|
|
863
|
-
if (t3.isTSAsExpression(node) || t3.isTSSatisfiesExpression(node)) {
|
|
864
|
-
return unwrap(node.expression);
|
|
865
|
-
}
|
|
866
|
-
return node;
|
|
867
|
-
}, "unwrap");
|
|
868
862
|
var _getPath = /* @__PURE__ */ __name((path, node) => {
|
|
869
863
|
if (path.length === 0) {
|
|
870
864
|
return node;
|
|
@@ -951,6 +945,25 @@ var ConfigFile = class {
|
|
|
951
945
|
// for that. But rather than refactor the whole thing, we just use this as a stopgap.
|
|
952
946
|
this._exportDecls = {};
|
|
953
947
|
this.hasDefaultExport = false;
|
|
948
|
+
/** Unwraps TS assertions/satisfies from a node, to get the underlying node. */
|
|
949
|
+
this._unwrap = /* @__PURE__ */ __name((node) => {
|
|
950
|
+
if (t3.isTSAsExpression(node) || t3.isTSSatisfiesExpression(node)) {
|
|
951
|
+
return this._unwrap(node.expression);
|
|
952
|
+
}
|
|
953
|
+
return node;
|
|
954
|
+
}, "_unwrap");
|
|
955
|
+
/**
|
|
956
|
+
* Resolve a declaration node by unwrapping TS assertions/satisfies and following identifiers to
|
|
957
|
+
* resolve the correct node in case it's an identifier.
|
|
958
|
+
*/
|
|
959
|
+
this._resolveDeclaration = /* @__PURE__ */ __name((node, parent = this._ast.program) => {
|
|
960
|
+
const decl = this._unwrap(node);
|
|
961
|
+
if (t3.isIdentifier(decl) && t3.isProgram(parent)) {
|
|
962
|
+
const initialization = _findVarInitialization(decl.name, parent);
|
|
963
|
+
return initialization ? this._unwrap(initialization) : decl;
|
|
964
|
+
}
|
|
965
|
+
return decl;
|
|
966
|
+
}, "_resolveDeclaration");
|
|
954
967
|
this._ast = ast;
|
|
955
968
|
this._code = code;
|
|
956
969
|
this.fileName = fileName;
|
|
@@ -963,10 +976,7 @@ var ConfigFile = class {
|
|
|
963
976
|
exportsObject.properties.forEach((p) => {
|
|
964
977
|
const exportName = propKey(p);
|
|
965
978
|
if (exportName) {
|
|
966
|
-
|
|
967
|
-
if (t3.isIdentifier(exportVal)) {
|
|
968
|
-
exportVal = _findVarInitialization(exportVal.name, this._ast.program);
|
|
969
|
-
}
|
|
979
|
+
const exportVal = this._resolveDeclaration(p.value);
|
|
970
980
|
this._exports[exportName] = exportVal;
|
|
971
981
|
}
|
|
972
982
|
});
|
|
@@ -977,8 +987,7 @@ var ConfigFile = class {
|
|
|
977
987
|
ExportDefaultDeclaration: {
|
|
978
988
|
enter({ node, parent }) {
|
|
979
989
|
self.hasDefaultExport = true;
|
|
980
|
-
let decl =
|
|
981
|
-
decl = unwrap(decl);
|
|
990
|
+
let decl = self._resolveDeclaration(node.declaration, parent);
|
|
982
991
|
if (t3.isCallExpression(decl) && t3.isObjectExpression(decl.arguments[0])) {
|
|
983
992
|
decl = decl.arguments[0];
|
|
984
993
|
}
|
|
@@ -1001,10 +1010,7 @@ var ConfigFile = class {
|
|
|
1001
1010
|
node.declaration.declarations.forEach((decl) => {
|
|
1002
1011
|
if (t3.isVariableDeclarator(decl) && t3.isIdentifier(decl.id)) {
|
|
1003
1012
|
const { name: exportName } = decl.id;
|
|
1004
|
-
|
|
1005
|
-
if (t3.isIdentifier(exportVal)) {
|
|
1006
|
-
exportVal = _findVarInitialization(exportVal.name, parent);
|
|
1007
|
-
}
|
|
1013
|
+
const exportVal = self._resolveDeclaration(decl.init, parent);
|
|
1008
1014
|
self._exports[exportName] = exportVal;
|
|
1009
1015
|
self._exportDecls[exportName] = decl;
|
|
1010
1016
|
}
|
|
@@ -1022,7 +1028,7 @@ var ConfigFile = class {
|
|
|
1022
1028
|
const { name: exportName } = spec.exported;
|
|
1023
1029
|
const decl = _findVarDeclarator(localName, parent);
|
|
1024
1030
|
if (decl) {
|
|
1025
|
-
self._exports[exportName] = decl.init;
|
|
1031
|
+
self._exports[exportName] = self._resolveDeclaration(decl.init, parent);
|
|
1026
1032
|
self._exportDecls[exportName] = decl;
|
|
1027
1033
|
}
|
|
1028
1034
|
}
|
|
@@ -1044,22 +1050,13 @@ var ConfigFile = class {
|
|
|
1044
1050
|
const { left, right } = node.expression;
|
|
1045
1051
|
if (t3.isMemberExpression(left) && t3.isIdentifier(left.object) && left.object.name === "module" && t3.isIdentifier(left.property) && left.property.name === "exports") {
|
|
1046
1052
|
let exportObject = right;
|
|
1047
|
-
|
|
1048
|
-
exportObject = _findVarInitialization(right.name, parent);
|
|
1049
|
-
}
|
|
1050
|
-
exportObject = unwrap(exportObject);
|
|
1053
|
+
exportObject = self._resolveDeclaration(exportObject, parent);
|
|
1051
1054
|
if (t3.isObjectExpression(exportObject)) {
|
|
1052
1055
|
self._exportsObject = exportObject;
|
|
1053
1056
|
exportObject.properties.forEach((p) => {
|
|
1054
1057
|
const exportName = propKey(p);
|
|
1055
1058
|
if (exportName) {
|
|
1056
|
-
|
|
1057
|
-
if (t3.isIdentifier(exportVal)) {
|
|
1058
|
-
exportVal = _findVarInitialization(
|
|
1059
|
-
exportVal.name,
|
|
1060
|
-
parent
|
|
1061
|
-
);
|
|
1062
|
-
}
|
|
1059
|
+
const exportVal = self._resolveDeclaration(p.value, parent);
|
|
1063
1060
|
self._exports[exportName] = exportVal;
|
|
1064
1061
|
}
|
|
1065
1062
|
});
|
|
@@ -1270,13 +1267,9 @@ var ConfigFile = class {
|
|
|
1270
1267
|
}
|
|
1271
1268
|
}
|
|
1272
1269
|
if (t3.isExportDefaultDeclaration(node)) {
|
|
1273
|
-
|
|
1274
|
-
if (t3.
|
|
1275
|
-
|
|
1276
|
-
}
|
|
1277
|
-
decl = unwrap(decl);
|
|
1278
|
-
if (t3.isObjectExpression(decl)) {
|
|
1279
|
-
const properties2 = decl.properties;
|
|
1270
|
+
const resolved = this._resolveDeclaration(node.declaration);
|
|
1271
|
+
if (t3.isObjectExpression(resolved)) {
|
|
1272
|
+
const properties2 = resolved.properties;
|
|
1280
1273
|
removeProperty(properties2, path[0]);
|
|
1281
1274
|
removedRootProperty = true;
|
|
1282
1275
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VAAX75EL.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/balanced-match/index.js
|
|
19
19
|
var require_balanced_match = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TFBHPN6J.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VAAX75EL.js";
|
|
19
19
|
|
|
20
20
|
// ../node_modules/exsolve/dist/index.mjs
|
|
21
21
|
import fs, { realpathSync, statSync, lstatSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VAAX75EL.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/ms/index.js
|
|
19
19
|
var require_ms = __commonJS({
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_dist
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HPERTMWB.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6DHXOOK2.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VAAX75EL.js";
|
|
22
22
|
|
|
23
23
|
// src/server-errors.ts
|
|
24
24
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__name,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VAAX75EL.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/@storybook/docs-mdx/dist/chunk-H6DQNFQR.js
|
|
18
18
|
var __create = Object.create;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VAAX75EL.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/ts-dedent/dist/index.js
|
|
18
18
|
var require_dist = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VAAX75EL.js";
|
|
15
15
|
|
|
16
16
|
// src/telemetry/event-cache.ts
|
|
17
17
|
import { cache } from "storybook/internal/common";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VAAX75EL.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/camelcase/index.js
|
|
17
17
|
var UPPERCASE = /[\p{Lu}]/u;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_build
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LPBJHVNR.js";
|
|
15
15
|
import {
|
|
16
16
|
resolvePackageDir
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CPI4IKLK.js";
|
|
18
18
|
import {
|
|
19
19
|
require_prompts
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6VWT3H7R.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HPERTMWB.js";
|
|
24
24
|
import {
|
|
25
25
|
require_picocolors
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6DHXOOK2.js";
|
|
27
27
|
import {
|
|
28
28
|
__name,
|
|
29
29
|
__toESM
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VAAX75EL.js";
|
|
31
31
|
|
|
32
32
|
// src/core-server/utils/server-statics.ts
|
|
33
33
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VAAX75EL.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/totalist/sync/index.js
|
|
19
19
|
var require_sync = __commonJS({
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
|
version
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3OPGVNKX.js";
|
|
15
15
|
import {
|
|
16
16
|
createFileSystemCache,
|
|
17
17
|
resolvePathInStorybookCache,
|
|
18
18
|
up
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7332Y23R.js";
|
|
20
20
|
import {
|
|
21
21
|
globalSettings
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XCTASIYK.js";
|
|
23
23
|
import {
|
|
24
24
|
execaCommand,
|
|
25
25
|
getProjectRoot
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TXDBGO2X.js";
|
|
27
27
|
import {
|
|
28
28
|
getSessionId,
|
|
29
29
|
nanoid,
|
|
30
30
|
set
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ICT62CX5.js";
|
|
32
32
|
import {
|
|
33
33
|
resolvePackageDir
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-CPI4IKLK.js";
|
|
35
35
|
import {
|
|
36
36
|
slash
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7C52H6S6.js";
|
|
38
38
|
import {
|
|
39
39
|
require_picocolors
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6DHXOOK2.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__name,
|
|
44
44
|
__toESM
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-VAAX75EL.js";
|
|
46
46
|
|
|
47
47
|
// ../node_modules/fetch-retry/index.js
|
|
48
48
|
var require_fetch_retry = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VAAX75EL.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/empathic/resolve.mjs
|
|
17
17
|
import { createRequire } from "node:module";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,23 +12,23 @@ var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
any,
|
|
14
14
|
up2 as up
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PCXGFAQ3.js";
|
|
16
16
|
import {
|
|
17
17
|
invariant
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3GTBPTCZ.js";
|
|
19
19
|
import {
|
|
20
20
|
resolvePackageDir
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CPI4IKLK.js";
|
|
22
22
|
import {
|
|
23
23
|
require_prompts
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6VWT3H7R.js";
|
|
25
25
|
import {
|
|
26
26
|
require_picocolors
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6DHXOOK2.js";
|
|
28
28
|
import {
|
|
29
29
|
__name,
|
|
30
30
|
__toESM
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VAAX75EL.js";
|
|
32
32
|
|
|
33
33
|
// src/cli/project_types.ts
|
|
34
34
|
import { minVersion, validRange } from "semver";
|