storybook 10.0.0-beta.3 → 10.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
- package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
- package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-AM4PZYVQ.js} +10 -63
- 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-GJ67EE65.js +67 -0
- 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-QK3L5AXO.js +372 -0
- 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/{chunk-PYK5ZTFK.js → chunk-YQV3EGQ5.js} +5 -5
- package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-RJW7FE3A.js} +3 -2
- package/dist/_node-chunks/{builder-manager-DXAEQZJB.js → builder-manager-ZTS4EIKQ.js} +18 -13
- package/dist/_node-chunks/camelcase-K3BM7RII.js +18 -0
- package/dist/_node-chunks/{chunk-XRAB2RZN.js → chunk-2VMDKLSW.js} +6 -6
- package/dist/_node-chunks/{chunk-EI44VA3U.js → chunk-3VVGIILJ.js} +8 -8
- package/dist/_node-chunks/{chunk-KQXC7XVZ.js → chunk-4KRR46V2.js} +50 -89
- package/dist/_node-chunks/{chunk-EVY6P65U.js → chunk-4VDRH7SM.js} +7 -7
- package/dist/_node-chunks/chunk-7LG5CLCT.js +18 -0
- package/dist/_node-chunks/{chunk-DNOOZ2LS.js → chunk-ACUNHBEO.js} +552 -717
- package/dist/_node-chunks/{camelcase-CMMT6PHY.js → chunk-AK5PHLUA.js} +9 -8
- package/dist/_node-chunks/{chunk-RUCPXDO3.js → chunk-D7SDB4XE.js} +223 -243
- package/dist/_node-chunks/chunk-DWJ7TV2O.js +62 -0
- package/dist/_node-chunks/chunk-DZJNLBBL.js +79 -0
- package/dist/_node-chunks/{chunk-5XVEWBRA.js → chunk-EIHJ5J3O.js} +8 -8
- package/dist/_node-chunks/{chunk-3SUJKLRV.js → chunk-F3WE3456.js} +7 -7
- package/dist/_node-chunks/{chunk-QI3AVWUV.js → chunk-F7YW5W6B.js} +12 -12
- package/dist/_node-chunks/{chunk-6Z44ODDR.js → chunk-H52PBBSK.js} +7 -7
- package/dist/_node-chunks/{chunk-WRSYICUI.js → chunk-J3DQMIO4.js} +7 -7
- package/dist/_node-chunks/{chunk-PA26PSV2.js → chunk-K4YETNYJ.js} +30 -21
- package/dist/_node-chunks/{chunk-LRQFELIZ.js → chunk-KU3JBNPY.js} +8 -8
- package/dist/_node-chunks/{chunk-4TGAX5W7.js → chunk-KZB7ELL6.js} +162 -103
- package/dist/_node-chunks/{chunk-PAZJQ2GH.js → chunk-OC3TVLYU.js} +7 -7
- package/dist/_node-chunks/{chunk-7EGB7ALG.js → chunk-P3TWEOO5.js} +7 -7
- package/dist/_node-chunks/{chunk-BV4J7FF6.js → chunk-P7YMEOXF.js} +7 -7
- package/dist/_node-chunks/{chunk-CNKVQCQJ.js → chunk-PIKDGR3O.js} +7 -7
- package/dist/_node-chunks/{chunk-R6TLLF24.js → chunk-QHIU5I7C.js} +6 -6
- package/dist/_node-chunks/{chunk-AKW5OJ2T.js → chunk-SW3VZAH7.js} +9 -9
- package/dist/_node-chunks/chunk-TBWOUVTA.js +4967 -0
- package/dist/_node-chunks/{chunk-TL5RNPZW.js → chunk-TKN5TEZV.js} +583 -180
- package/dist/_node-chunks/{chunk-SHXAIHPO.js → chunk-TVKUJ3SE.js} +623 -750
- package/dist/_node-chunks/{chunk-MVPVYHBT.js → chunk-UTCFHTQH.js} +8 -8
- package/dist/_node-chunks/{chunk-PK6SVDYW.js → chunk-VQN4WAIA.js} +7 -7
- package/dist/_node-chunks/{chunk-IA7M33LK.js → chunk-VWSUFVUF.js} +7 -7
- package/dist/_node-chunks/{chunk-ICETGZAR.js → chunk-VX5P3IYA.js} +7 -7
- package/dist/_node-chunks/{chunk-ICFGNVW7.js → chunk-WCSHG2QT.js} +7 -7
- package/dist/_node-chunks/{default-browser-id-2X5XLPPS.js → default-browser-id-4RZZMHJE.js} +7 -7
- package/dist/_node-chunks/{dist-JSBOOVQK.js → dist-OGRBL76N.js} +9 -9
- package/dist/_node-chunks/{globby-YYTLHNUO.js → globby-65LOULA6.js} +9 -9
- package/dist/_node-chunks/{lib-DJHADRPZ.js → lib-TF7JCT3A.js} +36 -12
- package/dist/_node-chunks/{mdx-N42X6CFJ-WT6XCDU6.js → mdx-N42X6CFJ-6ZJEUZMZ.js} +8 -8
- package/dist/_node-chunks/{p-limit-HTXI4SGX.js → p-limit-PF7JSPDT.js} +76 -10
- package/dist/_node-chunks/{plugin-NNRMQ2YK.js → plugin-A6XAWMXN.js} +10 -10
- package/dist/_node-chunks/{plugin-W22F3FQV.js → plugin-LGHGAC6J.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-VFNVWMAM.js → webpack-inject-mocker-runtime-plugin-HDSEOU3Z.js} +1307 -847
- package/dist/_node-chunks/{webpack-mock-plugin-Q4ED2M25.js → webpack-mock-plugin-ZJJVMJUS.js} +9 -9
- package/dist/babel/index.d.ts +1 -1
- package/dist/babel/index.js +11 -11
- 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 +60 -54
- package/dist/common/index.d.ts +3 -1
- package/dist/common/index.js +23 -22
- package/dist/components/index.js +24 -20
- package/dist/core-server/index.js +3544 -3220
- package/dist/core-server/presets/common-manager.js +440 -720
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- 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 +6 -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 +8910 -18107
- package/dist/manager/runtime.js +3256 -2945
- package/dist/manager-api/index.js +23 -20
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +1136 -662
- package/dist/preview/runtime.js +12061 -21584
- package/dist/preview-api/index.js +6 -6
- package/dist/router/index.js +2 -2
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -25
- package/dist/test/index.js +1872 -4023
- package/dist/theming/index.d.ts +2 -2
- package/dist/theming/index.js +6 -6
- package/package.json +4 -8
- 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-ALWVSNSK.js +0 -62
- package/dist/_node-chunks/chunk-MHNUEOON.js +0 -87
- package/dist/_node-chunks/chunk-VDFQYNPZ.js +0 -266
- package/dist/_node-chunks/chunk-WELIADWR.js +0 -2377
- package/dist/_node-chunks/chunk-YRXKNGPR.js +0 -18
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-2VMDKLSW.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/balanced-match/index.js
|
|
19
19
|
var require_balanced_match = __commonJS({
|
|
@@ -161,7 +161,7 @@ var require_brace_expansion = __commonJS({
|
|
|
161
161
|
var isSequence = isNumericSequence || isAlphaSequence;
|
|
162
162
|
var isOptions = m.body.indexOf(",") >= 0;
|
|
163
163
|
if (!isSequence && !isOptions) {
|
|
164
|
-
if (m.post.match(
|
|
164
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
165
165
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
166
166
|
return expand2(str);
|
|
167
167
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-2VMDKLSW.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/totalist/sync/index.js
|
|
19
19
|
var require_sync = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-2VMDKLSW.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
|
|
17
17
|
var isProduction = process.env.NODE_ENV === "production";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-2VMDKLSW.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/kleur/index.js
|
|
19
19
|
var require_kleur = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-2VMDKLSW.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/exsolve/dist/index.mjs
|
|
17
17
|
import fs, { realpathSync, statSync, lstatSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name,
|
|
16
16
|
__require,
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2VMDKLSW.js";
|
|
19
19
|
|
|
20
20
|
// ../node_modules/big-integer/BigInteger.js
|
|
21
21
|
var require_BigInteger = __commonJS({
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-PIKDGR3O.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2VMDKLSW.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-6ZJEUZMZ.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_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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_6q9nmfaplv7.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
require_picomatch,
|
|
14
14
|
require_utils
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OC3TVLYU.js";
|
|
16
16
|
import {
|
|
17
17
|
slash
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J3DQMIO4.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__name,
|
|
22
22
|
__require,
|
|
23
23
|
__toESM
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2VMDKLSW.js";
|
|
25
25
|
|
|
26
26
|
// ../node_modules/fast-glob/out/utils/array.js
|
|
27
27
|
var require_array = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-2VMDKLSW.js";
|
|
18
18
|
|
|
19
19
|
// ../node_modules/app-root-dir/lib/index.js
|
|
20
20
|
var require_lib = __commonJS({
|
|
@@ -58,7 +58,7 @@ var require_package = __commonJS({
|
|
|
58
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
|
},
|
|
@@ -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_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-PIKDGR3O.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2VMDKLSW.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_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-MHNUEOON.js";
|
|
15
12
|
import {
|
|
16
13
|
__name
|
|
17
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2VMDKLSW.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_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-KU3JBNPY.js";
|
|
15
|
+
import "./chunk-4VDRH7SM.js";
|
|
16
16
|
import {
|
|
17
17
|
require_dist
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-P7YMEOXF.js";
|
|
19
19
|
import {
|
|
20
20
|
__name,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2VMDKLSW.js";
|
|
23
23
|
|
|
24
24
|
// src/core-server/presets/vitePlugins/vite-inject-mocker/plugin.ts
|
|
25
25
|
import { readFileSync } from "node:fs";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-K4YETNYJ.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser,
|
|
17
17
|
extractMockCalls,
|
|
18
18
|
getRealPath,
|
|
19
19
|
rewriteSbMockImportCalls
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3VVGIILJ.js";
|
|
21
21
|
import {
|
|
22
22
|
normalize
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4VDRH7SM.js";
|
|
24
24
|
import {
|
|
25
25
|
__name
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2VMDKLSW.js";
|
|
27
27
|
|
|
28
28
|
// src/core-server/presets/vitePlugins/vite-mock/plugin.ts
|
|
29
29
|
import { readFileSync } from "node:fs";
|