storybook 10.0.0-beta.0 → 10.0.0-beta.10
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/assets/server/openBrowser.applescript +94 -0
- package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
- package/dist/_browser-chunks/{WithTooltip-2E62HIBN.js → WithTooltip-SK46ZJ2J.js} +1 -1
- package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
- package/dist/_browser-chunks/{chunk-FWKO3E35.js → chunk-BOOOPFZF.js} +10 -3
- package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
- package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
- package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-HMIIJ6UD.js} +6 -6
- package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
- package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
- package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
- package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-PS3AOQI4.js} +48 -25
- package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
- package/dist/_browser-chunks/chunk-SHR3NNR3.js +5810 -0
- package/dist/_browser-chunks/{chunk-O5R5CGFA.js → chunk-TMDZCWME.js} +1 -2
- package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
- package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
- package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-R46XOLMC.js} +1 -1
- package/dist/_node-chunks/{builder-manager-OW6YGKXV.js → builder-manager-SJGIDEN6.js} +45 -155
- package/dist/_node-chunks/camelcase-VZHWABQV.js +18 -0
- package/dist/_node-chunks/{chunk-6JSVPEAU.js → chunk-6CZW7AGN.js} +7 -7
- package/dist/_node-chunks/{chunk-CD3IP6HA.js → chunk-6XT5OLNL.js} +12 -12
- package/dist/_node-chunks/{chunk-2H7LZ2SD.js → chunk-AHRH5RPR.js} +7 -7
- package/dist/_node-chunks/{chunk-5HLANIBM.js → chunk-AOH6ABSV.js} +7 -7
- package/dist/_node-chunks/chunk-C5V22GP7.js +79 -0
- package/dist/_node-chunks/{chunk-IBXERYDG.js → chunk-FIROF4DV.js} +7 -7
- package/dist/_node-chunks/{chunk-I3YCPGZJ.js → chunk-GUJVZUYI.js} +7 -7
- package/dist/_node-chunks/chunk-IHPLRRAR.js +4741 -0
- package/dist/_node-chunks/{chunk-7TISOZS6.js → chunk-JMXKCRWR.js} +30 -21
- package/dist/_node-chunks/{chunk-YWGNEBRO.js → chunk-JUMUXWEV.js} +162 -103
- package/dist/_node-chunks/{chunk-UIREEOC7.js → chunk-KGX33KXX.js} +7 -7
- package/dist/_node-chunks/{chunk-3QB3ZG6H.js → chunk-KLVABNEU.js} +7 -7
- package/dist/_node-chunks/{chunk-H5LTFJHQ.js → chunk-OL6DY6BT.js} +631 -752
- package/dist/_node-chunks/{chunk-X5GAZ3EW.js → chunk-ONJV3K2L.js} +399 -116
- package/dist/_node-chunks/{chunk-LKB7KRSV.js → chunk-PTHTD4RO.js} +223 -243
- package/dist/_node-chunks/{chunk-UHHZPSP7.js → chunk-QQ3Z5KGJ.js} +6 -6
- package/dist/_node-chunks/{chunk-MUD3GH3L.js → chunk-QRTDDTZJ.js} +9 -9
- package/dist/_node-chunks/chunk-R54K4KSM.js +1540 -0
- package/dist/_node-chunks/{chunk-IQAUGVYR.js → chunk-S2LZC6JK.js} +8 -8
- package/dist/_node-chunks/chunk-SFJFSPRT.js +62 -0
- package/dist/_node-chunks/{chunk-LH3BEEIR.js → chunk-SSN5PKIY.js} +6 -6
- package/dist/_node-chunks/{chunk-NOQITS3C.js → chunk-SXR2DITB.js} +7 -7
- package/dist/_node-chunks/{chunk-FWUE7SRE.js → chunk-TH5QVQRL.js} +7 -7
- package/dist/_node-chunks/chunk-U34NWAU2.js +18 -0
- package/dist/_node-chunks/{chunk-FBMMEEO4.js → chunk-UV3CZ3KS.js} +7 -7
- package/dist/_node-chunks/{chunk-NZGJJABJ.js → chunk-UVUGJDAI.js} +60 -102
- package/dist/_node-chunks/{chunk-GZUNYRFU.js → chunk-VOUNSD2E.js} +7 -7
- package/dist/_node-chunks/chunk-WFCPBKQJ.js +64656 -0
- package/dist/_node-chunks/{chunk-BFXER3XW.js → chunk-XHF3WWNP.js} +623 -750
- package/dist/_node-chunks/{chunk-ANEKBWDX.js → chunk-XU45KXNQ.js} +16 -25
- package/dist/_node-chunks/{camelcase-2K3EMR6G.js → chunk-YHO6XR7U.js} +9 -8
- package/dist/_node-chunks/{dist-465RSKRC.js → dist-IIC5PBL7.js} +9 -9
- package/dist/_node-chunks/{globby-LJ3MVB6M.js → globby-CJACC3HJ.js} +17 -13
- package/dist/_node-chunks/{lib-OW3DENXB.js → lib-ZY4TKSOR.js} +40 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-PYX2IFUO.js → mdx-N42X6CFJ-3XNW3DFO.js} +8 -8
- package/dist/_node-chunks/{p-limit-X4OG45RB.js → p-limit-R2OFT5HE.js} +76 -10
- package/dist/_node-chunks/{plugin-ALTIQMDE.js → plugin-5XD5R2KD.js} +10 -10
- package/dist/_node-chunks/{plugin-GE36R32R.js → plugin-WAWVQMVR.js} +10 -12
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-NLCAF7S6.js → webpack-inject-mocker-runtime-plugin-SCRGJLIS.js} +1307 -847
- package/dist/_node-chunks/{webpack-mock-plugin-BRYODMCC.js → webpack-mock-plugin-3VAXEGG2.js} +9 -11
- package/dist/babel/index.d.ts +1 -1
- package/dist/babel/index.js +11 -12
- package/dist/bin/core.js +638 -187
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.d.ts +62 -75
- package/dist/cli/index.js +66 -56
- package/dist/common/index.d.ts +3 -1
- package/dist/common/index.js +22 -22
- package/dist/components/index.d.ts +234 -2
- package/dist/components/index.js +74 -5741
- package/dist/core-events/index.d.ts +18 -2
- package/dist/core-events/index.js +7 -1
- package/dist/core-server/index.d.ts +540 -39
- package/dist/core-server/index.js +4647 -4182
- package/dist/core-server/presets/common-manager.js +1570 -1272
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +691 -38
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -11
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -12
- package/dist/csf/index.d.ts +9 -4
- package/dist/csf/index.js +50 -15
- package/dist/csf-tools/index.d.ts +47 -6
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +4 -4
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +9233 -18113
- package/dist/manager/globals.d.ts +0 -4
- package/dist/manager/globals.js +1 -6
- package/dist/manager/runtime.js +13396 -11518
- package/dist/manager-api/index.d.ts +540 -32
- package/dist/manager-api/index.js +364 -90
- package/dist/manager-errors.d.ts +527 -0
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +1136 -662
- package/dist/preview/globals.js +1 -1
- package/dist/preview/runtime.js +12103 -21579
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +10 -10
- package/dist/preview-errors.d.ts +527 -0
- package/dist/router/index.d.ts +668 -10
- package/dist/router/index.js +2 -2
- package/dist/server-errors.d.ts +527 -0
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +23 -25
- package/dist/test/index.js +1874 -4024
- package/dist/theming/index.d.ts +2 -2
- package/dist/theming/index.js +6 -6
- package/dist/types/index.d.ts +553 -16
- package/dist/viewport/index.d.ts +36 -4
- package/dist/viewport/index.js +1 -1
- package/package.json +9 -46
- package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
- package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
- package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
- package/dist/_node-chunks/chunk-27W2Z6VL.js +0 -28502
- package/dist/_node-chunks/chunk-G46DWX7Z.js +0 -266
- package/dist/_node-chunks/chunk-GZZDIJIB.js +0 -80
- package/dist/_node-chunks/chunk-JDKH3XYB.js +0 -9845
- package/dist/_node-chunks/chunk-R7RKO2DC.js +0 -35783
- package/dist/_node-chunks/chunk-T23YQHYB.js +0 -62
- package/dist/_node-chunks/chunk-VKKLKNFC.js +0 -2377
- package/dist/_node-chunks/chunk-W6GKFQ7F.js +0 -87
- package/dist/_node-chunks/chunk-YUYBO6S7.js +0 -18
- package/dist/_node-chunks/default-browser-id-Z6WQ7DZA.js +0 -1719
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,16 +16,10 @@ import {
|
|
|
16
16
|
join,
|
|
17
17
|
normalize,
|
|
18
18
|
resolve
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AOH6ABSV.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
require_lib4 as require_lib3
|
|
24
|
-
} from "./chunk-R7RKO2DC.js";
|
|
25
|
-
import {
|
|
26
|
-
__name,
|
|
27
|
-
__toESM
|
|
28
|
-
} from "./chunk-LH3BEEIR.js";
|
|
21
|
+
__name
|
|
22
|
+
} from "./chunk-SSN5PKIY.js";
|
|
29
23
|
|
|
30
24
|
// src/core-server/mocking-utils/resolve.ts
|
|
31
25
|
import { readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
@@ -84,9 +78,8 @@ function o(e2, r2, t3) {
|
|
|
84
78
|
__name(o, "o");
|
|
85
79
|
|
|
86
80
|
// src/core-server/mocking-utils/extract.ts
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var t2 = __toESM(require_lib(), 1);
|
|
81
|
+
import { readFileSync } from "node:fs";
|
|
82
|
+
import { generate, parser, types as t2 } from "storybook/internal/babel";
|
|
90
83
|
import { logger } from "storybook/internal/node-logger";
|
|
91
84
|
import { telemetry } from "storybook/internal/telemetry";
|
|
92
85
|
import { transformSync } from "esbuild";
|
|
@@ -252,7 +245,6 @@ function walk(ast, { enter, leave }) {
|
|
|
252
245
|
__name(walk, "walk");
|
|
253
246
|
|
|
254
247
|
// src/core-server/mocking-utils/extract.ts
|
|
255
|
-
import { readFileSync } from "fs";
|
|
256
248
|
var DEFAULT_MODULE_DIRECTORIES = ["/node_modules/"];
|
|
257
249
|
function isModuleDirectory(path) {
|
|
258
250
|
const normalizedPath = normalize(path);
|
|
@@ -260,13 +252,12 @@ function isModuleDirectory(path) {
|
|
|
260
252
|
}
|
|
261
253
|
__name(isModuleDirectory, "isModuleDirectory");
|
|
262
254
|
var babelParser = /* @__PURE__ */ __name((code) => {
|
|
263
|
-
|
|
255
|
+
return parser.parse(code, {
|
|
264
256
|
sourceType: "module",
|
|
265
257
|
// Enable plugins to handle modern JavaScript features, including TSX.
|
|
266
258
|
plugins: ["typescript", "jsx", "classProperties", "objectRestSpread"],
|
|
267
259
|
errorRecovery: true
|
|
268
|
-
};
|
|
269
|
-
return (0, import_parser.parse)(code, parserOptions).program;
|
|
260
|
+
}).program;
|
|
270
261
|
}, "babelParser");
|
|
271
262
|
function rewriteSbMockImportCalls(code) {
|
|
272
263
|
const ast = babelParser(code);
|
|
@@ -277,10 +268,10 @@ function rewriteSbMockImportCalls(code) {
|
|
|
277
268
|
}
|
|
278
269
|
}
|
|
279
270
|
});
|
|
280
|
-
return
|
|
271
|
+
return generate(ast, {}, code);
|
|
281
272
|
}
|
|
282
273
|
__name(rewriteSbMockImportCalls, "rewriteSbMockImportCalls");
|
|
283
|
-
function extractMockCalls(options,
|
|
274
|
+
function extractMockCalls(options, parse, root) {
|
|
284
275
|
try {
|
|
285
276
|
let hasSpyTrue2 = function(objectExpression) {
|
|
286
277
|
if (!objectExpression || !objectExpression.properties) {
|
|
@@ -297,7 +288,7 @@ function extractMockCalls(options, parse2, root) {
|
|
|
297
288
|
__name(hasSpyTrue2, "hasSpyTrue");
|
|
298
289
|
const previewConfigCode = readFileSync(options.previewConfigPath, "utf-8");
|
|
299
290
|
const { code: jsCode } = transformSync(previewConfigCode, { loader: "tsx", format: "esm" });
|
|
300
|
-
const ast =
|
|
291
|
+
const ast = parse(jsCode);
|
|
301
292
|
const mocks = [];
|
|
302
293
|
walk(ast, {
|
|
303
294
|
// @ts-expect-error - Node comes from babel
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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-SSN5PKIY.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/camelcase/index.js
|
|
17
17
|
var UPPERCASE = /[\p{Lu}]/u;
|
|
@@ -95,6 +95,7 @@ function camelCase(input, options) {
|
|
|
95
95
|
return postProcess(input, toUpperCase);
|
|
96
96
|
}
|
|
97
97
|
__name(camelCase, "camelCase");
|
|
98
|
+
|
|
98
99
|
export {
|
|
99
|
-
camelCase
|
|
100
|
+
camelCase
|
|
100
101
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
toEstree
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6CZW7AGN.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SSN5PKIY.js";
|
|
18
18
|
|
|
19
19
|
// ../node_modules/@storybook/docs-mdx/dist/index.js
|
|
20
20
|
var getAttr = /* @__PURE__ */ __name((elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute" && n.name.name === what), "getAttr");
|
|
@@ -161,7 +161,7 @@ var analyze = /* @__PURE__ */ __name(async (code) => {
|
|
|
161
161
|
metaTags: void 0,
|
|
162
162
|
imports: void 0
|
|
163
163
|
};
|
|
164
|
-
const { compile } = await import("./mdx-N42X6CFJ-
|
|
164
|
+
const { compile } = await import("./mdx-N42X6CFJ-3XNW3DFO.js");
|
|
165
165
|
await compile(code, {
|
|
166
166
|
rehypePlugins: [[plugin, store]]
|
|
167
167
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,16 +12,16 @@ var require = CJS_COMPAT_NODE_MODULE_qlimw951jq.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
require_picomatch,
|
|
14
14
|
require_utils
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TH5QVQRL.js";
|
|
16
16
|
import {
|
|
17
17
|
slash
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KLVABNEU.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__name,
|
|
22
22
|
__require,
|
|
23
23
|
__toESM
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SSN5PKIY.js";
|
|
25
25
|
|
|
26
26
|
// ../node_modules/fast-glob/out/utils/array.js
|
|
27
27
|
var require_array = __commonJS({
|
|
@@ -4672,18 +4672,22 @@ var require_ignore = __commonJS({
|
|
|
4672
4672
|
};
|
|
4673
4673
|
var factory = /* @__PURE__ */ __name((options) => new Ignore(options), "factory");
|
|
4674
4674
|
var isPathValid = /* @__PURE__ */ __name((path2) => checkPath(path2 && checkPath.convert(path2), path2, RETURN_FALSE), "isPathValid");
|
|
4675
|
-
|
|
4676
|
-
// Detect `process` so that it can run in browsers.
|
|
4677
|
-
typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
|
|
4678
|
-
) {
|
|
4675
|
+
var setupWindows = /* @__PURE__ */ __name(() => {
|
|
4679
4676
|
const makePosix = /* @__PURE__ */ __name((str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"), "makePosix");
|
|
4680
4677
|
checkPath.convert = makePosix;
|
|
4681
4678
|
const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
4682
4679
|
checkPath.isNotRelative = (path2) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path2) || isNotRelative(path2);
|
|
4680
|
+
}, "setupWindows");
|
|
4681
|
+
if (
|
|
4682
|
+
// Detect `process` so that it can run in browsers.
|
|
4683
|
+
typeof process !== "undefined" && process.platform === "win32"
|
|
4684
|
+
) {
|
|
4685
|
+
setupWindows();
|
|
4683
4686
|
}
|
|
4684
4687
|
module.exports = factory;
|
|
4685
4688
|
factory.default = factory;
|
|
4686
4689
|
module.exports.isPathValid = isPathValid;
|
|
4690
|
+
define(module.exports, Symbol.for("setupWindows"), setupWindows);
|
|
4687
4691
|
}
|
|
4688
4692
|
});
|
|
4689
4693
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__name,
|
|
15
15
|
__require,
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SSN5PKIY.js";
|
|
18
18
|
|
|
19
19
|
// ../node_modules/app-root-dir/lib/index.js
|
|
20
20
|
var require_lib = __commonJS({
|
|
@@ -53,12 +53,12 @@ var require_lib = __commonJS({
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
// ../node_modules/
|
|
56
|
+
// ../node_modules/dotenv/package.json
|
|
57
57
|
var require_package = __commonJS({
|
|
58
|
-
"../node_modules/
|
|
58
|
+
"../node_modules/dotenv/package.json"(exports, module) {
|
|
59
59
|
module.exports = {
|
|
60
60
|
name: "dotenv",
|
|
61
|
-
version: "16.
|
|
61
|
+
version: "16.6.1",
|
|
62
62
|
description: "Loads environment variables from .env file",
|
|
63
63
|
main: "lib/main.js",
|
|
64
64
|
types: "lib/main.d.ts",
|
|
@@ -81,7 +81,7 @@ var require_package = __commonJS({
|
|
|
81
81
|
lint: "standard",
|
|
82
82
|
pretest: "npm run lint && npm run dts-check",
|
|
83
83
|
test: "tap run --allow-empty-coverage --disable-coverage --timeout=60000",
|
|
84
|
-
"test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",
|
|
84
|
+
"test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",
|
|
85
85
|
prerelease: "npm test",
|
|
86
86
|
release: "standard-version"
|
|
87
87
|
},
|
|
@@ -121,9 +121,9 @@ var require_package = __commonJS({
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
// ../node_modules/
|
|
124
|
+
// ../node_modules/dotenv/lib/main.js
|
|
125
125
|
var require_main = __commonJS({
|
|
126
|
-
"../node_modules/
|
|
126
|
+
"../node_modules/dotenv/lib/main.js"(exports, module) {
|
|
127
127
|
var fs2 = __require("fs");
|
|
128
128
|
var path2 = __require("path");
|
|
129
129
|
var os = __require("os");
|
|
@@ -152,8 +152,10 @@ var require_main = __commonJS({
|
|
|
152
152
|
}
|
|
153
153
|
__name(parse, "parse");
|
|
154
154
|
function _parseVault(options) {
|
|
155
|
+
options = options || {};
|
|
155
156
|
const vaultPath = _vaultPath(options);
|
|
156
|
-
|
|
157
|
+
options.path = vaultPath;
|
|
158
|
+
const result = DotenvModule.configDotenv(options);
|
|
157
159
|
if (!result.parsed) {
|
|
158
160
|
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
159
161
|
err.code = "MISSING_DATA";
|
|
@@ -185,6 +187,10 @@ var require_main = __commonJS({
|
|
|
185
187
|
console.log(`[dotenv@${version}][DEBUG] ${message}`);
|
|
186
188
|
}
|
|
187
189
|
__name(_debug, "_debug");
|
|
190
|
+
function _log(message) {
|
|
191
|
+
console.log(`[dotenv@${version}] ${message}`);
|
|
192
|
+
}
|
|
193
|
+
__name(_log, "_log");
|
|
188
194
|
function _dotenvKey(options) {
|
|
189
195
|
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
190
196
|
return options.DOTENV_KEY;
|
|
@@ -256,8 +262,9 @@ var require_main = __commonJS({
|
|
|
256
262
|
__name(_resolveHome, "_resolveHome");
|
|
257
263
|
function _configVault(options) {
|
|
258
264
|
const debug = Boolean(options && options.debug);
|
|
259
|
-
|
|
260
|
-
|
|
265
|
+
const quiet = options && "quiet" in options ? options.quiet : true;
|
|
266
|
+
if (debug || !quiet) {
|
|
267
|
+
_log("Loading env from encrypted .env.vault");
|
|
261
268
|
}
|
|
262
269
|
const parsed = DotenvModule._parseVault(options);
|
|
263
270
|
let processEnv = process.env;
|
|
@@ -272,6 +279,7 @@ var require_main = __commonJS({
|
|
|
272
279
|
const dotenvPath = path2.resolve(process.cwd(), ".env");
|
|
273
280
|
let encoding = "utf8";
|
|
274
281
|
const debug = Boolean(options && options.debug);
|
|
282
|
+
const quiet = options && "quiet" in options ? options.quiet : true;
|
|
275
283
|
if (options && options.encoding) {
|
|
276
284
|
encoding = options.encoding;
|
|
277
285
|
} else {
|
|
@@ -308,6 +316,22 @@ var require_main = __commonJS({
|
|
|
308
316
|
processEnv = options.processEnv;
|
|
309
317
|
}
|
|
310
318
|
DotenvModule.populate(processEnv, parsedAll, options);
|
|
319
|
+
if (debug || !quiet) {
|
|
320
|
+
const keysCount = Object.keys(parsedAll).length;
|
|
321
|
+
const shortPaths = [];
|
|
322
|
+
for (const filePath of optionPaths) {
|
|
323
|
+
try {
|
|
324
|
+
const relative = path2.relative(process.cwd(), filePath);
|
|
325
|
+
shortPaths.push(relative);
|
|
326
|
+
} catch (e) {
|
|
327
|
+
if (debug) {
|
|
328
|
+
_debug(`Failed to load ${filePath} ${e.message}`);
|
|
329
|
+
}
|
|
330
|
+
lastError = e;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(",")}`);
|
|
334
|
+
}
|
|
311
335
|
if (lastError) {
|
|
312
336
|
return { parsed: parsedAll, error: lastError };
|
|
313
337
|
} else {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
start,
|
|
24
24
|
toEstree,
|
|
25
25
|
unreachable
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6CZW7AGN.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SSN5PKIY.js";
|
|
30
30
|
|
|
31
31
|
// ../node_modules/@storybook/docs-mdx/dist/mdx-N42X6CFJ.js
|
|
32
32
|
import { default as default2 } from "path";
|
|
@@ -1,20 +1,86 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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 {
|
|
13
|
-
Queue
|
|
14
|
-
} from "./chunk-W6GKFQ7F.js";
|
|
15
12
|
import {
|
|
16
13
|
__name
|
|
17
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SSN5PKIY.js";
|
|
15
|
+
|
|
16
|
+
// ../node_modules/yocto-queue/index.js
|
|
17
|
+
var Node = class {
|
|
18
|
+
static {
|
|
19
|
+
__name(this, "Node");
|
|
20
|
+
}
|
|
21
|
+
value;
|
|
22
|
+
next;
|
|
23
|
+
constructor(value) {
|
|
24
|
+
this.value = value;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var Queue = class {
|
|
28
|
+
static {
|
|
29
|
+
__name(this, "Queue");
|
|
30
|
+
}
|
|
31
|
+
#head;
|
|
32
|
+
#tail;
|
|
33
|
+
#size;
|
|
34
|
+
constructor() {
|
|
35
|
+
this.clear();
|
|
36
|
+
}
|
|
37
|
+
enqueue(value) {
|
|
38
|
+
const node = new Node(value);
|
|
39
|
+
if (this.#head) {
|
|
40
|
+
this.#tail.next = node;
|
|
41
|
+
this.#tail = node;
|
|
42
|
+
} else {
|
|
43
|
+
this.#head = node;
|
|
44
|
+
this.#tail = node;
|
|
45
|
+
}
|
|
46
|
+
this.#size++;
|
|
47
|
+
}
|
|
48
|
+
dequeue() {
|
|
49
|
+
const current = this.#head;
|
|
50
|
+
if (!current) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this.#head = this.#head.next;
|
|
54
|
+
this.#size--;
|
|
55
|
+
return current.value;
|
|
56
|
+
}
|
|
57
|
+
peek() {
|
|
58
|
+
if (!this.#head) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
return this.#head.value;
|
|
62
|
+
}
|
|
63
|
+
clear() {
|
|
64
|
+
this.#head = void 0;
|
|
65
|
+
this.#tail = void 0;
|
|
66
|
+
this.#size = 0;
|
|
67
|
+
}
|
|
68
|
+
get size() {
|
|
69
|
+
return this.#size;
|
|
70
|
+
}
|
|
71
|
+
*[Symbol.iterator]() {
|
|
72
|
+
let current = this.#head;
|
|
73
|
+
while (current) {
|
|
74
|
+
yield current.value;
|
|
75
|
+
current = current.next;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
*drain() {
|
|
79
|
+
while (this.#head) {
|
|
80
|
+
yield this.dequeue();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
18
84
|
|
|
19
85
|
// ../node_modules/p-limit/index.js
|
|
20
86
|
function pLimit(concurrency) {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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
|
resolvePackageDir
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-R54K4KSM.js";
|
|
15
|
+
import "./chunk-AOH6ABSV.js";
|
|
16
16
|
import {
|
|
17
17
|
require_dist
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GUJVZUYI.js";
|
|
19
19
|
import {
|
|
20
20
|
__name,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SSN5PKIY.js";
|
|
23
23
|
|
|
24
24
|
// src/core-server/presets/vitePlugins/vite-inject-mocker/plugin.ts
|
|
25
25
|
import { readFileSync } from "node:fs";
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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
|
getAutomockCode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JMXKCRWR.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser,
|
|
17
17
|
extractMockCalls,
|
|
18
18
|
getRealPath,
|
|
19
19
|
rewriteSbMockImportCalls
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XU45KXNQ.js";
|
|
21
21
|
import {
|
|
22
22
|
normalize
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-R7RKO2DC.js";
|
|
25
|
-
import "./chunk-YWGNEBRO.js";
|
|
23
|
+
} from "./chunk-AOH6ABSV.js";
|
|
26
24
|
import {
|
|
27
25
|
__name
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SSN5PKIY.js";
|
|
29
27
|
|
|
30
28
|
// src/core-server/presets/vitePlugins/vite-mock/plugin.ts
|
|
31
29
|
import { readFileSync } from "node:fs";
|