storybook 9.0.0-alpha.8 → 9.0.0-alpha.9
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/bin/index.cjs +63 -63
- package/dist/bin/index.js +63 -63
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +179 -165
- package/dist/common/index.d.ts +2 -1
- package/dist/common/index.js +179 -165
- package/dist/core-server/index.cjs +1412 -1390
- package/dist/core-server/index.js +1833 -1812
- package/dist/instrumenter/index.cjs +7 -4
- package/dist/instrumenter/index.js +7 -4
- package/dist/manager/globals-runtime.js +8 -5
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +7 -4
- package/dist/telemetry/index.cjs +33 -33
- package/dist/telemetry/index.js +33 -33
- package/dist/types/index.d.ts +0 -4
- package/package.json +1 -1
package/dist/common/index.js
CHANGED
|
@@ -11497,69 +11497,69 @@ var nB = j((Ot) => {
|
|
|
11497
11497
|
|
|
11498
11498
|
// src/common/versions.ts
|
|
11499
11499
|
var Me = {
|
|
11500
|
-
"@storybook/addon-a11y": "9.0.0-alpha.
|
|
11501
|
-
"@storybook/addon-backgrounds": "9.0.0-alpha.
|
|
11502
|
-
"@storybook/addon-controls": "9.0.0-alpha.
|
|
11503
|
-
"@storybook/addon-docs": "9.0.0-alpha.
|
|
11504
|
-
"@storybook/addon-essentials": "9.0.0-alpha.
|
|
11505
|
-
"@storybook/addon-mdx-gfm": "9.0.0-alpha.
|
|
11506
|
-
"@storybook/addon-highlight": "9.0.0-alpha.
|
|
11507
|
-
"@storybook/addon-interactions": "9.0.0-alpha.
|
|
11508
|
-
"@storybook/addon-jest": "9.0.0-alpha.
|
|
11509
|
-
"@storybook/addon-links": "9.0.0-alpha.
|
|
11510
|
-
"@storybook/addon-measure": "9.0.0-alpha.
|
|
11511
|
-
"@storybook/addon-onboarding": "9.0.0-alpha.
|
|
11512
|
-
"@storybook/addon-outline": "9.0.0-alpha.
|
|
11513
|
-
"@storybook/addon-storysource": "9.0.0-alpha.
|
|
11514
|
-
"@storybook/addon-test": "9.0.0-alpha.
|
|
11515
|
-
"@storybook/addon-themes": "9.0.0-alpha.
|
|
11516
|
-
"@storybook/addon-toolbars": "9.0.0-alpha.
|
|
11517
|
-
"@storybook/addon-viewport": "9.0.0-alpha.
|
|
11518
|
-
"@storybook/builder-vite": "9.0.0-alpha.
|
|
11519
|
-
"@storybook/builder-webpack5": "9.0.0-alpha.
|
|
11520
|
-
storybook: "9.0.0-alpha.
|
|
11521
|
-
"@storybook/angular": "9.0.0-alpha.
|
|
11522
|
-
"@storybook/ember": "9.0.0-alpha.
|
|
11523
|
-
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.
|
|
11524
|
-
"@storybook/html-vite": "9.0.0-alpha.
|
|
11525
|
-
"@storybook/html-webpack5": "9.0.0-alpha.
|
|
11526
|
-
"@storybook/nextjs": "9.0.0-alpha.
|
|
11527
|
-
"@storybook/preact-vite": "9.0.0-alpha.
|
|
11528
|
-
"@storybook/preact-webpack5": "9.0.0-alpha.
|
|
11529
|
-
"@storybook/react-native-web-vite": "9.0.0-alpha.
|
|
11530
|
-
"@storybook/react-vite": "9.0.0-alpha.
|
|
11531
|
-
"@storybook/react-webpack5": "9.0.0-alpha.
|
|
11532
|
-
"@storybook/server-webpack5": "9.0.0-alpha.
|
|
11533
|
-
"@storybook/svelte-vite": "9.0.0-alpha.
|
|
11534
|
-
"@storybook/svelte-webpack5": "9.0.0-alpha.
|
|
11535
|
-
"@storybook/sveltekit": "9.0.0-alpha.
|
|
11536
|
-
"@storybook/vue3-vite": "9.0.0-alpha.
|
|
11537
|
-
"@storybook/vue3-webpack5": "9.0.0-alpha.
|
|
11538
|
-
"@storybook/web-components-vite": "9.0.0-alpha.
|
|
11539
|
-
"@storybook/web-components-webpack5": "9.0.0-alpha.
|
|
11540
|
-
"@storybook/blocks": "9.0.0-alpha.
|
|
11541
|
-
sb: "9.0.0-alpha.
|
|
11542
|
-
"@storybook/cli": "9.0.0-alpha.
|
|
11543
|
-
"@storybook/codemod": "9.0.0-alpha.
|
|
11544
|
-
"@storybook/core-webpack": "9.0.0-alpha.
|
|
11545
|
-
"create-storybook": "9.0.0-alpha.
|
|
11546
|
-
"@storybook/csf-plugin": "9.0.0-alpha.
|
|
11547
|
-
"@storybook/react-dom-shim": "9.0.0-alpha.
|
|
11548
|
-
"@storybook/source-loader": "9.0.0-alpha.
|
|
11549
|
-
"@storybook/preset-create-react-app": "9.0.0-alpha.
|
|
11550
|
-
"@storybook/preset-html-webpack": "9.0.0-alpha.
|
|
11551
|
-
"@storybook/preset-preact-webpack": "9.0.0-alpha.
|
|
11552
|
-
"@storybook/preset-react-webpack": "9.0.0-alpha.
|
|
11553
|
-
"@storybook/preset-server-webpack": "9.0.0-alpha.
|
|
11554
|
-
"@storybook/preset-svelte-webpack": "9.0.0-alpha.
|
|
11555
|
-
"@storybook/preset-vue3-webpack": "9.0.0-alpha.
|
|
11556
|
-
"@storybook/html": "9.0.0-alpha.
|
|
11557
|
-
"@storybook/preact": "9.0.0-alpha.
|
|
11558
|
-
"@storybook/react": "9.0.0-alpha.
|
|
11559
|
-
"@storybook/server": "9.0.0-alpha.
|
|
11560
|
-
"@storybook/svelte": "9.0.0-alpha.
|
|
11561
|
-
"@storybook/vue3": "9.0.0-alpha.
|
|
11562
|
-
"@storybook/web-components": "9.0.0-alpha.
|
|
11500
|
+
"@storybook/addon-a11y": "9.0.0-alpha.9",
|
|
11501
|
+
"@storybook/addon-backgrounds": "9.0.0-alpha.9",
|
|
11502
|
+
"@storybook/addon-controls": "9.0.0-alpha.9",
|
|
11503
|
+
"@storybook/addon-docs": "9.0.0-alpha.9",
|
|
11504
|
+
"@storybook/addon-essentials": "9.0.0-alpha.9",
|
|
11505
|
+
"@storybook/addon-mdx-gfm": "9.0.0-alpha.9",
|
|
11506
|
+
"@storybook/addon-highlight": "9.0.0-alpha.9",
|
|
11507
|
+
"@storybook/addon-interactions": "9.0.0-alpha.9",
|
|
11508
|
+
"@storybook/addon-jest": "9.0.0-alpha.9",
|
|
11509
|
+
"@storybook/addon-links": "9.0.0-alpha.9",
|
|
11510
|
+
"@storybook/addon-measure": "9.0.0-alpha.9",
|
|
11511
|
+
"@storybook/addon-onboarding": "9.0.0-alpha.9",
|
|
11512
|
+
"@storybook/addon-outline": "9.0.0-alpha.9",
|
|
11513
|
+
"@storybook/addon-storysource": "9.0.0-alpha.9",
|
|
11514
|
+
"@storybook/addon-test": "9.0.0-alpha.9",
|
|
11515
|
+
"@storybook/addon-themes": "9.0.0-alpha.9",
|
|
11516
|
+
"@storybook/addon-toolbars": "9.0.0-alpha.9",
|
|
11517
|
+
"@storybook/addon-viewport": "9.0.0-alpha.9",
|
|
11518
|
+
"@storybook/builder-vite": "9.0.0-alpha.9",
|
|
11519
|
+
"@storybook/builder-webpack5": "9.0.0-alpha.9",
|
|
11520
|
+
storybook: "9.0.0-alpha.9",
|
|
11521
|
+
"@storybook/angular": "9.0.0-alpha.9",
|
|
11522
|
+
"@storybook/ember": "9.0.0-alpha.9",
|
|
11523
|
+
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.9",
|
|
11524
|
+
"@storybook/html-vite": "9.0.0-alpha.9",
|
|
11525
|
+
"@storybook/html-webpack5": "9.0.0-alpha.9",
|
|
11526
|
+
"@storybook/nextjs": "9.0.0-alpha.9",
|
|
11527
|
+
"@storybook/preact-vite": "9.0.0-alpha.9",
|
|
11528
|
+
"@storybook/preact-webpack5": "9.0.0-alpha.9",
|
|
11529
|
+
"@storybook/react-native-web-vite": "9.0.0-alpha.9",
|
|
11530
|
+
"@storybook/react-vite": "9.0.0-alpha.9",
|
|
11531
|
+
"@storybook/react-webpack5": "9.0.0-alpha.9",
|
|
11532
|
+
"@storybook/server-webpack5": "9.0.0-alpha.9",
|
|
11533
|
+
"@storybook/svelte-vite": "9.0.0-alpha.9",
|
|
11534
|
+
"@storybook/svelte-webpack5": "9.0.0-alpha.9",
|
|
11535
|
+
"@storybook/sveltekit": "9.0.0-alpha.9",
|
|
11536
|
+
"@storybook/vue3-vite": "9.0.0-alpha.9",
|
|
11537
|
+
"@storybook/vue3-webpack5": "9.0.0-alpha.9",
|
|
11538
|
+
"@storybook/web-components-vite": "9.0.0-alpha.9",
|
|
11539
|
+
"@storybook/web-components-webpack5": "9.0.0-alpha.9",
|
|
11540
|
+
"@storybook/blocks": "9.0.0-alpha.9",
|
|
11541
|
+
sb: "9.0.0-alpha.9",
|
|
11542
|
+
"@storybook/cli": "9.0.0-alpha.9",
|
|
11543
|
+
"@storybook/codemod": "9.0.0-alpha.9",
|
|
11544
|
+
"@storybook/core-webpack": "9.0.0-alpha.9",
|
|
11545
|
+
"create-storybook": "9.0.0-alpha.9",
|
|
11546
|
+
"@storybook/csf-plugin": "9.0.0-alpha.9",
|
|
11547
|
+
"@storybook/react-dom-shim": "9.0.0-alpha.9",
|
|
11548
|
+
"@storybook/source-loader": "9.0.0-alpha.9",
|
|
11549
|
+
"@storybook/preset-create-react-app": "9.0.0-alpha.9",
|
|
11550
|
+
"@storybook/preset-html-webpack": "9.0.0-alpha.9",
|
|
11551
|
+
"@storybook/preset-preact-webpack": "9.0.0-alpha.9",
|
|
11552
|
+
"@storybook/preset-react-webpack": "9.0.0-alpha.9",
|
|
11553
|
+
"@storybook/preset-server-webpack": "9.0.0-alpha.9",
|
|
11554
|
+
"@storybook/preset-svelte-webpack": "9.0.0-alpha.9",
|
|
11555
|
+
"@storybook/preset-vue3-webpack": "9.0.0-alpha.9",
|
|
11556
|
+
"@storybook/html": "9.0.0-alpha.9",
|
|
11557
|
+
"@storybook/preact": "9.0.0-alpha.9",
|
|
11558
|
+
"@storybook/react": "9.0.0-alpha.9",
|
|
11559
|
+
"@storybook/server": "9.0.0-alpha.9",
|
|
11560
|
+
"@storybook/svelte": "9.0.0-alpha.9",
|
|
11561
|
+
"@storybook/vue3": "9.0.0-alpha.9",
|
|
11562
|
+
"@storybook/web-components": "9.0.0-alpha.9"
|
|
11563
11563
|
};
|
|
11564
11564
|
|
|
11565
11565
|
// src/common/presets.ts
|
|
@@ -17668,7 +17668,7 @@ import { existsSync as fs, readFileSync as Nd } from "node:fs";
|
|
|
17668
17668
|
import { readFile as kd, writeFile as Md } from "node:fs/promises";
|
|
17669
17669
|
import { dirname as Rd, resolve as bd } from "node:path";
|
|
17670
17670
|
|
|
17671
|
-
//
|
|
17671
|
+
// node_modules/execa/index.js
|
|
17672
17672
|
var zE = CA(Hg(), 1);
|
|
17673
17673
|
import { Buffer as md } from "node:buffer";
|
|
17674
17674
|
import yd from "node:path";
|
|
@@ -17683,12 +17683,12 @@ function jg(r) {
|
|
|
17683
17683
|
}
|
|
17684
17684
|
g(jg, "stripFinalNewline");
|
|
17685
17685
|
|
|
17686
|
-
//
|
|
17686
|
+
// node_modules/npm-run-path/index.js
|
|
17687
17687
|
import Mi from "node:process";
|
|
17688
17688
|
import yr from "node:path";
|
|
17689
17689
|
import Iw from "node:url";
|
|
17690
17690
|
|
|
17691
|
-
//
|
|
17691
|
+
// node_modules/path-key/index.js
|
|
17692
17692
|
function ki(r = {}) {
|
|
17693
17693
|
let {
|
|
17694
17694
|
env: A = process.env,
|
|
@@ -17698,7 +17698,7 @@ function ki(r = {}) {
|
|
|
17698
17698
|
}
|
|
17699
17699
|
g(ki, "pathKey");
|
|
17700
17700
|
|
|
17701
|
-
//
|
|
17701
|
+
// node_modules/npm-run-path/index.js
|
|
17702
17702
|
function aw(r = {}) {
|
|
17703
17703
|
let {
|
|
17704
17704
|
cwd: A = Mi.cwd(),
|
|
@@ -17717,7 +17717,7 @@ function CE({ env: r = Mi.env, ...A } = {}) {
|
|
|
17717
17717
|
}
|
|
17718
17718
|
g(CE, "npmRunPathEnv");
|
|
17719
17719
|
|
|
17720
|
-
//
|
|
17720
|
+
// node_modules/mimic-fn/index.js
|
|
17721
17721
|
var Ew = /* @__PURE__ */ g((r, A, e, t) => {
|
|
17722
17722
|
if (e === "length" || e === "prototype" || e === "arguments" || e === "caller")
|
|
17723
17723
|
return;
|
|
@@ -17743,7 +17743,7 @@ function qg(r, A, { ignoreNonConfigurable: e = !1 } = {}) {
|
|
|
17743
17743
|
}
|
|
17744
17744
|
g(qg, "mimicFunction");
|
|
17745
17745
|
|
|
17746
|
-
//
|
|
17746
|
+
// node_modules/onetime/index.js
|
|
17747
17747
|
var Ri = /* @__PURE__ */ new WeakMap(), IE = /* @__PURE__ */ g((r, A = {}) => {
|
|
17748
17748
|
if (typeof r != "function")
|
|
17749
17749
|
throw new TypeError("Expected a function");
|
|
@@ -17763,13 +17763,13 @@ IE.callCount = (r) => {
|
|
|
17763
17763
|
};
|
|
17764
17764
|
var aE = IE;
|
|
17765
17765
|
|
|
17766
|
-
//
|
|
17766
|
+
// node_modules/execa/lib/error.js
|
|
17767
17767
|
import Fw from "node:process";
|
|
17768
17768
|
|
|
17769
|
-
//
|
|
17769
|
+
// node_modules/human-signals/build/src/main.js
|
|
17770
17770
|
import { constants as pw } from "node:os";
|
|
17771
17771
|
|
|
17772
|
-
//
|
|
17772
|
+
// node_modules/human-signals/build/src/realtime.js
|
|
17773
17773
|
var EE = /* @__PURE__ */ g(() => {
|
|
17774
17774
|
let r = zg - cE + 1;
|
|
17775
17775
|
return Array.from({ length: r }, fw);
|
|
@@ -17781,10 +17781,10 @@ var EE = /* @__PURE__ */ g(() => {
|
|
|
17781
17781
|
standard: "posix"
|
|
17782
17782
|
}), "getRealtimeSignal"), cE = 34, zg = 64;
|
|
17783
17783
|
|
|
17784
|
-
//
|
|
17784
|
+
// node_modules/human-signals/build/src/signals.js
|
|
17785
17785
|
import { constants as ww } from "node:os";
|
|
17786
17786
|
|
|
17787
|
-
//
|
|
17787
|
+
// node_modules/human-signals/build/src/core.js
|
|
17788
17788
|
var BE = [
|
|
17789
17789
|
{
|
|
17790
17790
|
name: "SIGHUP",
|
|
@@ -18057,7 +18057,7 @@ var BE = [
|
|
|
18057
18057
|
}
|
|
18058
18058
|
];
|
|
18059
18059
|
|
|
18060
|
-
//
|
|
18060
|
+
// node_modules/human-signals/build/src/signals.js
|
|
18061
18061
|
var Wg = /* @__PURE__ */ g(() => {
|
|
18062
18062
|
let r = EE();
|
|
18063
18063
|
return [...BE, ...r].map(dw);
|
|
@@ -18075,7 +18075,7 @@ var Wg = /* @__PURE__ */ g(() => {
|
|
|
18075
18075
|
return { name: r, number: I ? s : A, description: e, supported: I, action: t, forced: i, standard: o };
|
|
18076
18076
|
}, "normalizeSignal");
|
|
18077
18077
|
|
|
18078
|
-
//
|
|
18078
|
+
// node_modules/human-signals/build/src/main.js
|
|
18079
18079
|
var mw = /* @__PURE__ */ g(() => {
|
|
18080
18080
|
let r = Wg();
|
|
18081
18081
|
return Object.fromEntries(r.map(yw));
|
|
@@ -18115,7 +18115,7 @@ var mw = /* @__PURE__ */ g(() => {
|
|
|
18115
18115
|
return e !== void 0 ? e : A.find((t) => t.number === r);
|
|
18116
18116
|
}, "findSignalByNumber"), p0 = Dw();
|
|
18117
18117
|
|
|
18118
|
-
//
|
|
18118
|
+
// node_modules/execa/lib/error.js
|
|
18119
18119
|
var Nw = /* @__PURE__ */ g(({ timedOut: r, timeout: A, errorCode: e, signal: t, signalDescription: i, exitCode: o, isCanceled: s }) => r ? `\
|
|
18120
18120
|
timed out after ${A} milliseconds` : s ? "was canceled" : e !== void 0 ? `failed with ${e}` : t !== void 0 ? `was killed with ${t} (${i})` :
|
|
18121
18121
|
o !== void 0 ? `failed with exit code ${o}` : "failed", "getErrorPrefix"), Dr = /* @__PURE__ */ g(({
|
|
@@ -18142,7 +18142,7 @@ ${t.message}` : U, M = [T, A, r].filter(Boolean).join(`
|
|
|
18142
18142
|
bufferedData, t.failed = !0, t.timedOut = !!E, t.isCanceled = B, t.killed = h && !E, t;
|
|
18143
18143
|
}, "makeError");
|
|
18144
18144
|
|
|
18145
|
-
//
|
|
18145
|
+
// node_modules/execa/lib/stdio.js
|
|
18146
18146
|
var bi = ["stdin", "stdout", "stderr"], kw = /* @__PURE__ */ g((r) => bi.some((A) => r[A] !== void 0), "hasAlias"), hE = /* @__PURE__ */ g((r) => {
|
|
18147
18147
|
if (!r)
|
|
18148
18148
|
return;
|
|
@@ -18159,10 +18159,10 @@ var bi = ["stdin", "stdout", "stderr"], kw = /* @__PURE__ */ g((r) => bi.some((A
|
|
|
18159
18159
|
return Array.from({ length: e }, (t, i) => A[i]);
|
|
18160
18160
|
}, "normalizeStdio");
|
|
18161
18161
|
|
|
18162
|
-
//
|
|
18162
|
+
// node_modules/execa/lib/kill.js
|
|
18163
18163
|
import bw from "node:os";
|
|
18164
18164
|
|
|
18165
|
-
//
|
|
18165
|
+
// node_modules/signal-exit/dist/mjs/signals.js
|
|
18166
18166
|
var It = [];
|
|
18167
18167
|
It.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
18168
18168
|
process.platform !== "win32" && It.push(
|
|
@@ -18182,7 +18182,7 @@ process.platform !== "win32" && It.push(
|
|
|
18182
18182
|
);
|
|
18183
18183
|
process.platform === "linux" && It.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
18184
18184
|
|
|
18185
|
-
//
|
|
18185
|
+
// node_modules/signal-exit/dist/mjs/index.js
|
|
18186
18186
|
var Li = /* @__PURE__ */ g((r) => !!r && typeof r == "object" && typeof r.removeListener == "function" && typeof r.emit == "function" && typeof r.
|
|
18187
18187
|
reallyExit == "function" && typeof r.listeners == "function" && typeof r.kill == "function" && typeof r.pid == "number" && typeof r.on == "f\
|
|
18188
18188
|
unction", "processOk"), Xg = Symbol.for("signal-exit emitter"), Vg = globalThis, Mw = Object.defineProperty.bind(Object), Zg = class {
|
|
@@ -18355,7 +18355,7 @@ unction", "processOk"), Xg = Symbol.for("signal-exit emitter"), Vg = globalThis,
|
|
|
18355
18355
|
unload: L0
|
|
18356
18356
|
} = Rw(Li(es) ? new As(es) : new $g());
|
|
18357
18357
|
|
|
18358
|
-
//
|
|
18358
|
+
// node_modules/execa/lib/kill.js
|
|
18359
18359
|
var Lw = 1e3 * 5, uE = /* @__PURE__ */ g((r, A = "SIGTERM", e = {}) => {
|
|
18360
18360
|
let t = r(A);
|
|
18361
18361
|
return Yw(r, A, e, t), t;
|
|
@@ -18402,11 +18402,11 @@ var Lw = 1e3 * 5, uE = /* @__PURE__ */ g((r, A = "SIGTERM", e = {}) => {
|
|
|
18402
18402
|
});
|
|
18403
18403
|
}, "setExitHandler");
|
|
18404
18404
|
|
|
18405
|
-
//
|
|
18405
|
+
// node_modules/execa/lib/pipe.js
|
|
18406
18406
|
import { createWriteStream as xw } from "node:fs";
|
|
18407
18407
|
import { ChildProcess as Pw } from "node:child_process";
|
|
18408
18408
|
|
|
18409
|
-
//
|
|
18409
|
+
// node_modules/is-stream/index.js
|
|
18410
18410
|
function Ui(r) {
|
|
18411
18411
|
return r !== null && typeof r == "object" && typeof r.pipe == "function";
|
|
18412
18412
|
}
|
|
@@ -18416,7 +18416,7 @@ function ts(r) {
|
|
|
18416
18416
|
}
|
|
18417
18417
|
g(ts, "isWritableStream");
|
|
18418
18418
|
|
|
18419
|
-
//
|
|
18419
|
+
// node_modules/execa/lib/pipe.js
|
|
18420
18420
|
var Ow = /* @__PURE__ */ g((r) => r instanceof Pw && typeof r.then == "function", "isExecaChildProcess"), rs = /* @__PURE__ */ g((r, A, e) => {
|
|
18421
18421
|
if (typeof e == "string")
|
|
18422
18422
|
return r[A].pipe(xw(e)), r;
|
|
@@ -18432,11 +18432,11 @@ var Ow = /* @__PURE__ */ g((r) => r instanceof Pw && typeof r.then == "function"
|
|
|
18432
18432
|
all !== void 0 && (r.pipeAll = rs.bind(void 0, r, "all"));
|
|
18433
18433
|
}, "addPipeMethods");
|
|
18434
18434
|
|
|
18435
|
-
//
|
|
18435
|
+
// node_modules/execa/lib/stream.js
|
|
18436
18436
|
import { createReadStream as sd, readFileSync as nd } from "node:fs";
|
|
18437
18437
|
import { setTimeout as Cd } from "node:timers/promises";
|
|
18438
18438
|
|
|
18439
|
-
//
|
|
18439
|
+
// node_modules/get-stream/source/contents.js
|
|
18440
18440
|
var Sr = /* @__PURE__ */ g(async (r, { init: A, convertChunk: e, getSize: t, truncateChunk: i, addChunk: o, getFinalChunk: s, finalize: I }, {
|
|
18441
18441
|
maxBuffer: E = Number.POSITIVE_INFINITY } = {}) => {
|
|
18442
18442
|
if (!Tw(r))
|
|
@@ -18487,13 +18487,13 @@ cIterable"), Hw = /* @__PURE__ */ g((r) => {
|
|
|
18487
18487
|
}
|
|
18488
18488
|
};
|
|
18489
18489
|
|
|
18490
|
-
//
|
|
18490
|
+
// node_modules/get-stream/source/utils.js
|
|
18491
18491
|
var is = /* @__PURE__ */ g((r) => r, "identity"), os = /* @__PURE__ */ g(() => {
|
|
18492
18492
|
}, "noop"), gs = /* @__PURE__ */ g(({ contents: r }) => r, "getContentsProp"), Ji = /* @__PURE__ */ g((r) => {
|
|
18493
18493
|
throw new Error(`Streams in object mode are not supported: ${String(r)}`);
|
|
18494
18494
|
}, "throwObjectStream"), vi = /* @__PURE__ */ g((r) => r.length, "getLengthProp");
|
|
18495
18495
|
|
|
18496
|
-
//
|
|
18496
|
+
// node_modules/get-stream/source/array-buffer.js
|
|
18497
18497
|
async function ss(r, A) {
|
|
18498
18498
|
return Sr(r, Ad, A);
|
|
18499
18499
|
}
|
|
@@ -18533,7 +18533,7 @@ Xw = /* @__PURE__ */ g((r, { contents: A, length: e }, t) => {
|
|
|
18533
18533
|
finalize: $w
|
|
18534
18534
|
};
|
|
18535
18535
|
|
|
18536
|
-
//
|
|
18536
|
+
// node_modules/get-stream/source/buffer.js
|
|
18537
18537
|
async function xi(r, A) {
|
|
18538
18538
|
if (!("Buffer" in globalThis))
|
|
18539
18539
|
throw new Error("getStreamAsBuffer() is only supported in Node.js");
|
|
@@ -18546,7 +18546,7 @@ async function xi(r, A) {
|
|
|
18546
18546
|
g(xi, "getStreamAsBuffer");
|
|
18547
18547
|
var RE = /* @__PURE__ */ g((r) => globalThis.Buffer.from(r), "arrayBufferToNodeBuffer");
|
|
18548
18548
|
|
|
18549
|
-
//
|
|
18549
|
+
// node_modules/get-stream/source/string.js
|
|
18550
18550
|
async function ns(r, A) {
|
|
18551
18551
|
return Sr(r, od, A);
|
|
18552
18552
|
}
|
|
@@ -18573,7 +18573,7 @@ decode(r, { stream: !0 }), "useTextDecoder"), td = /* @__PURE__ */ g((r, { conte
|
|
|
18573
18573
|
finalize: gs
|
|
18574
18574
|
};
|
|
18575
18575
|
|
|
18576
|
-
//
|
|
18576
|
+
// node_modules/execa/lib/stream.js
|
|
18577
18577
|
var YE = CA(LE(), 1);
|
|
18578
18578
|
var UE = /* @__PURE__ */ g((r) => {
|
|
18579
18579
|
if (r !== void 0)
|
|
@@ -18621,7 +18621,7 @@ async ({ stdout: r, stderr: A, all: e }, { encoding: t, buffer: i, maxBuffer: o
|
|
|
18621
18621
|
}
|
|
18622
18622
|
}, "getSpawnedResult");
|
|
18623
18623
|
|
|
18624
|
-
//
|
|
18624
|
+
// node_modules/execa/lib/promise.js
|
|
18625
18625
|
var cd = (async () => {
|
|
18626
18626
|
})().constructor.prototype, Bd = ["then", "catch", "finally"].map((r) => [
|
|
18627
18627
|
r,
|
|
@@ -18641,7 +18641,7 @@ var cd = (async () => {
|
|
|
18641
18641
|
});
|
|
18642
18642
|
}), "getSpawnedPromise");
|
|
18643
18643
|
|
|
18644
|
-
//
|
|
18644
|
+
// node_modules/execa/lib/command.js
|
|
18645
18645
|
import { Buffer as Qd } from "node:buffer";
|
|
18646
18646
|
import { ChildProcess as hd } from "node:child_process";
|
|
18647
18647
|
var TE = /* @__PURE__ */ g((r, A = []) => Array.isArray(A) ? [r, ...A] : [r], "normalizeArgs"), ld = /^[\w.-]+$/, ud = /* @__PURE__ */ g((r) => typeof r !=
|
|
@@ -18693,7 +18693,7 @@ d"), cs = /* @__PURE__ */ g((r, A) => TE(r, A).map((e) => ud(e)).join(" "), "get
|
|
|
18693
18693
|
return e;
|
|
18694
18694
|
}, "parseTemplates");
|
|
18695
18695
|
|
|
18696
|
-
//
|
|
18696
|
+
// node_modules/execa/lib/verbose.js
|
|
18697
18697
|
import { debuglog as wd } from "node:util";
|
|
18698
18698
|
import dd from "node:process";
|
|
18699
18699
|
var jE = wd("execa").enabled, Oi = /* @__PURE__ */ g((r, A) => String(r).padStart(A, "0"), "padField"), pd = /* @__PURE__ */ g(() => {
|
|
@@ -18704,7 +18704,7 @@ var jE = wd("execa").enabled, Oi = /* @__PURE__ */ g((r, A) => String(r).padStar
|
|
|
18704
18704
|
`);
|
|
18705
18705
|
}, "logCommand");
|
|
18706
18706
|
|
|
18707
|
-
//
|
|
18707
|
+
// node_modules/execa/index.js
|
|
18708
18708
|
var Dd = 1e3 * 1e3 * 100, Sd = /* @__PURE__ */ g(({ env: r, extendEnv: A, preferLocal: e, localDir: t, execPath: i }) => {
|
|
18709
18709
|
let o = A ? { ..._i.env, ...r } : r;
|
|
18710
18710
|
return e ? CE({ env: o, cwd: t, execPath: i }) : o;
|
|
@@ -19020,27 +19020,31 @@ var ie = class {
|
|
|
19020
19020
|
* @param {Array} dependencies Contains a list of packages to add.
|
|
19021
19021
|
*/
|
|
19022
19022
|
async addDependencies(A, e) {
|
|
19023
|
-
let { skipInstall: t } = A;
|
|
19023
|
+
let { skipInstall: t, writeOutputToFile: i = !0 } = A;
|
|
19024
19024
|
if (t) {
|
|
19025
|
-
let { packageJson:
|
|
19026
|
-
Ti(
|
|
19027
|
-
let
|
|
19028
|
-
let [
|
|
19029
|
-
return { ...
|
|
19025
|
+
let { packageJson: o } = A;
|
|
19026
|
+
Ti(o, "Missing packageJson.");
|
|
19027
|
+
let s = e.reduce((I, E) => {
|
|
19028
|
+
let [B, h] = tc(E);
|
|
19029
|
+
return { ...I, [B]: h };
|
|
19030
19030
|
}, {});
|
|
19031
|
-
A.installAsDevDependencies ?
|
|
19032
|
-
...
|
|
19033
|
-
...
|
|
19034
|
-
} :
|
|
19035
|
-
...
|
|
19036
|
-
...
|
|
19037
|
-
}, await this.writePackageJson(
|
|
19031
|
+
A.installAsDevDependencies ? o.devDependencies = {
|
|
19032
|
+
...o.devDependencies,
|
|
19033
|
+
...s
|
|
19034
|
+
} : o.dependencies = {
|
|
19035
|
+
...o.dependencies,
|
|
19036
|
+
...s
|
|
19037
|
+
}, await this.writePackageJson(o);
|
|
19038
19038
|
} else
|
|
19039
19039
|
try {
|
|
19040
|
-
await this.runAddDeps(
|
|
19041
|
-
|
|
19040
|
+
await this.runAddDeps(
|
|
19041
|
+
e,
|
|
19042
|
+
!!A.installAsDevDependencies,
|
|
19043
|
+
i
|
|
19044
|
+
);
|
|
19045
|
+
} catch (o) {
|
|
19042
19046
|
throw Ue.error(`
|
|
19043
|
-
An error occurred while installing dependencies:`), Ue.log(
|
|
19047
|
+
An error occurred while installing dependencies:`), Ue.log(o.message), new nt(o);
|
|
19044
19048
|
}
|
|
19045
19049
|
}
|
|
19046
19050
|
/**
|
|
@@ -19350,24 +19354,26 @@ var Od = /npm ERR! code (\w+)/, _d = {
|
|
|
19350
19354
|
})).trim();
|
|
19351
19355
|
return t === "undefined" ? void 0 : t;
|
|
19352
19356
|
}
|
|
19353
|
-
async runAddDeps(e, t) {
|
|
19354
|
-
let { logStream:
|
|
19355
|
-
t && (
|
|
19357
|
+
async runAddDeps(e, t, i = !0) {
|
|
19358
|
+
let { logStream: o, readLogFile: s, moveLogFile: I, removeLogFile: E } = await ye(), B = [...e];
|
|
19359
|
+
t && (B = ["-D", ...B]);
|
|
19356
19360
|
try {
|
|
19357
19361
|
await this.executeCommand({
|
|
19358
19362
|
command: "bun",
|
|
19359
|
-
args: ["add", ...
|
|
19360
|
-
stdio: process.env.CI ? "inherit" : ["ignore",
|
|
19363
|
+
args: ["add", ...B, ...this.getInstallArgs()],
|
|
19364
|
+
stdio: process.env.CI || !i ? "inherit" : ["ignore", o, o]
|
|
19361
19365
|
});
|
|
19362
|
-
} catch {
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
+
} catch (h) {
|
|
19367
|
+
if (!i)
|
|
19368
|
+
throw h;
|
|
19369
|
+
let u = await s(), f = this.parseErrorFromLogs(u);
|
|
19370
|
+
throw await I(), new Error(
|
|
19371
|
+
ic.dedent`${f}
|
|
19366
19372
|
|
|
19367
19373
|
Please check the logfile generated at ./storybook.log for troubleshooting and try again.`
|
|
19368
19374
|
);
|
|
19369
19375
|
}
|
|
19370
|
-
await
|
|
19376
|
+
await E();
|
|
19371
19377
|
}
|
|
19372
19378
|
async runRemoveDeps(e) {
|
|
19373
19379
|
let t = [...e];
|
|
@@ -19565,24 +19571,26 @@ var Vd = /npm (ERR!|error) (code|errno) (\w+)/i, Zd = {
|
|
|
19565
19571
|
})).trim();
|
|
19566
19572
|
return t === "undefined" ? void 0 : t;
|
|
19567
19573
|
}
|
|
19568
|
-
async runAddDeps(e, t) {
|
|
19569
|
-
let { logStream:
|
|
19570
|
-
t && (
|
|
19574
|
+
async runAddDeps(e, t, i = !0) {
|
|
19575
|
+
let { logStream: o, readLogFile: s, moveLogFile: I, removeLogFile: E } = await ye(), B = [...e];
|
|
19576
|
+
t && (B = ["-D", ...B]);
|
|
19571
19577
|
try {
|
|
19572
19578
|
await this.executeCommand({
|
|
19573
19579
|
command: "npm",
|
|
19574
|
-
args: ["install", ...
|
|
19575
|
-
stdio: process.env.CI ? "inherit" : ["ignore",
|
|
19580
|
+
args: ["install", ...B, ...this.getInstallArgs()],
|
|
19581
|
+
stdio: process.env.CI || !i ? "inherit" : ["ignore", o, o]
|
|
19576
19582
|
});
|
|
19577
|
-
} catch {
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19583
|
+
} catch (h) {
|
|
19584
|
+
if (!i)
|
|
19585
|
+
throw h;
|
|
19586
|
+
let u = await s(), f = this.parseErrorFromLogs(u);
|
|
19587
|
+
throw await I(), new Error(
|
|
19588
|
+
oc.dedent`${f}
|
|
19581
19589
|
|
|
19582
19590
|
Please check the logfile generated at ./storybook.log for troubleshooting and try again.`
|
|
19583
19591
|
);
|
|
19584
19592
|
}
|
|
19585
|
-
await
|
|
19593
|
+
await E();
|
|
19586
19594
|
}
|
|
19587
19595
|
async runRemoveDeps(e) {
|
|
19588
19596
|
let t = [...e];
|
|
@@ -19758,25 +19766,27 @@ var Ap = /(ELIFECYCLE|ERR_PNPM_[A-Z_]+)\s+(.*)/i, Nr = class extends ie {
|
|
|
19758
19766
|
stdio: "inherit"
|
|
19759
19767
|
});
|
|
19760
19768
|
}
|
|
19761
|
-
async runAddDeps(e, t) {
|
|
19762
|
-
let
|
|
19763
|
-
t && (
|
|
19764
|
-
let { logStream:
|
|
19769
|
+
async runAddDeps(e, t, i = !0) {
|
|
19770
|
+
let o = [...e];
|
|
19771
|
+
t && (o = ["-D", ...o]);
|
|
19772
|
+
let { logStream: s, readLogFile: I, moveLogFile: E, removeLogFile: B } = await ye();
|
|
19765
19773
|
try {
|
|
19766
19774
|
await this.executeCommand({
|
|
19767
19775
|
command: "pnpm",
|
|
19768
|
-
args: ["add", ...
|
|
19769
|
-
stdio: process.env.CI ? "inherit" : ["ignore",
|
|
19776
|
+
args: ["add", ...o, ...this.getInstallArgs()],
|
|
19777
|
+
stdio: process.env.CI || !i ? "inherit" : ["ignore", s, s]
|
|
19770
19778
|
});
|
|
19771
|
-
} catch {
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19779
|
+
} catch (h) {
|
|
19780
|
+
if (!i)
|
|
19781
|
+
throw h;
|
|
19782
|
+
let u = await I(), f = this.parseErrorFromLogs(u);
|
|
19783
|
+
throw await E(), new Error(
|
|
19784
|
+
Cc.dedent`${f}
|
|
19775
19785
|
|
|
19776
19786
|
Please check the logfile generated at ./storybook.log for troubleshooting and try again.`
|
|
19777
19787
|
);
|
|
19778
19788
|
}
|
|
19779
|
-
await
|
|
19789
|
+
await B();
|
|
19780
19790
|
}
|
|
19781
19791
|
async runRemoveDeps(e) {
|
|
19782
19792
|
let t = [...e];
|
|
@@ -19925,25 +19935,27 @@ var op = /^error\s(.*)$/gm, kr = class extends ie {
|
|
|
19925
19935
|
stdio: "inherit"
|
|
19926
19936
|
});
|
|
19927
19937
|
}
|
|
19928
|
-
async runAddDeps(e, t) {
|
|
19929
|
-
let
|
|
19930
|
-
t && (
|
|
19931
|
-
let { logStream:
|
|
19938
|
+
async runAddDeps(e, t, i = !0) {
|
|
19939
|
+
let o = [...e];
|
|
19940
|
+
t && (o = ["-D", ...o]);
|
|
19941
|
+
let { logStream: s, readLogFile: I, moveLogFile: E, removeLogFile: B } = await ye();
|
|
19932
19942
|
try {
|
|
19933
19943
|
await this.executeCommand({
|
|
19934
19944
|
command: "yarn",
|
|
19935
|
-
args: ["add", ...this.getInstallArgs(), ...
|
|
19936
|
-
stdio: process.env.CI ? "inherit" : ["ignore",
|
|
19945
|
+
args: ["add", ...this.getInstallArgs(), ...o],
|
|
19946
|
+
stdio: process.env.CI || !i ? "inherit" : ["ignore", s, s]
|
|
19937
19947
|
});
|
|
19938
|
-
} catch {
|
|
19939
|
-
|
|
19940
|
-
|
|
19941
|
-
|
|
19948
|
+
} catch (h) {
|
|
19949
|
+
if (!i)
|
|
19950
|
+
throw h;
|
|
19951
|
+
let u = await I(), f = this.parseErrorFromLogs(u);
|
|
19952
|
+
throw await E(), new Error(
|
|
19953
|
+
Ic.dedent`${f}
|
|
19942
19954
|
|
|
19943
19955
|
Please check the logfile generated at ./storybook.log for troubleshooting and try again.`
|
|
19944
19956
|
);
|
|
19945
19957
|
}
|
|
19946
|
-
await
|
|
19958
|
+
await B();
|
|
19947
19959
|
}
|
|
19948
19960
|
async runRemoveDeps(e) {
|
|
19949
19961
|
let t = [...e];
|
|
@@ -20139,25 +20151,27 @@ var IB = {
|
|
|
20139
20151
|
stdio: "inherit"
|
|
20140
20152
|
});
|
|
20141
20153
|
}
|
|
20142
|
-
async runAddDeps(e, t) {
|
|
20143
|
-
let
|
|
20144
|
-
t && (
|
|
20145
|
-
let { logStream:
|
|
20154
|
+
async runAddDeps(e, t, i = !0) {
|
|
20155
|
+
let o = [...e];
|
|
20156
|
+
t && (o = ["-D", ...o]);
|
|
20157
|
+
let { logStream: s, readLogFile: I, moveLogFile: E, removeLogFile: B } = await ye();
|
|
20146
20158
|
try {
|
|
20147
20159
|
await this.executeCommand({
|
|
20148
20160
|
command: "yarn",
|
|
20149
|
-
args: ["add", ...this.getInstallArgs(), ...
|
|
20150
|
-
stdio: process.env.CI ? "inherit" : ["ignore",
|
|
20161
|
+
args: ["add", ...this.getInstallArgs(), ...o],
|
|
20162
|
+
stdio: process.env.CI || !i ? "inherit" : ["ignore", s, s]
|
|
20151
20163
|
});
|
|
20152
|
-
} catch {
|
|
20153
|
-
|
|
20154
|
-
|
|
20155
|
-
|
|
20164
|
+
} catch (h) {
|
|
20165
|
+
if (!i)
|
|
20166
|
+
throw h;
|
|
20167
|
+
let u = await I(), f = this.parseErrorFromLogs(u);
|
|
20168
|
+
throw await E(), new Error(
|
|
20169
|
+
EB.dedent`${f}
|
|
20156
20170
|
|
|
20157
20171
|
Please check the logfile generated at ./storybook.log for troubleshooting and try again.`
|
|
20158
20172
|
);
|
|
20159
20173
|
}
|
|
20160
|
-
await
|
|
20174
|
+
await B();
|
|
20161
20175
|
}
|
|
20162
20176
|
async getRegistryURL() {
|
|
20163
20177
|
let t = (await this.executeCommand({
|