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.cjs
CHANGED
|
@@ -11573,69 +11573,69 @@ module.exports = te(Zy);
|
|
|
11573
11573
|
|
|
11574
11574
|
// src/common/versions.ts
|
|
11575
11575
|
var De = {
|
|
11576
|
-
"@storybook/addon-a11y": "9.0.0-alpha.
|
|
11577
|
-
"@storybook/addon-backgrounds": "9.0.0-alpha.
|
|
11578
|
-
"@storybook/addon-controls": "9.0.0-alpha.
|
|
11579
|
-
"@storybook/addon-docs": "9.0.0-alpha.
|
|
11580
|
-
"@storybook/addon-essentials": "9.0.0-alpha.
|
|
11581
|
-
"@storybook/addon-mdx-gfm": "9.0.0-alpha.
|
|
11582
|
-
"@storybook/addon-highlight": "9.0.0-alpha.
|
|
11583
|
-
"@storybook/addon-interactions": "9.0.0-alpha.
|
|
11584
|
-
"@storybook/addon-jest": "9.0.0-alpha.
|
|
11585
|
-
"@storybook/addon-links": "9.0.0-alpha.
|
|
11586
|
-
"@storybook/addon-measure": "9.0.0-alpha.
|
|
11587
|
-
"@storybook/addon-onboarding": "9.0.0-alpha.
|
|
11588
|
-
"@storybook/addon-outline": "9.0.0-alpha.
|
|
11589
|
-
"@storybook/addon-storysource": "9.0.0-alpha.
|
|
11590
|
-
"@storybook/addon-test": "9.0.0-alpha.
|
|
11591
|
-
"@storybook/addon-themes": "9.0.0-alpha.
|
|
11592
|
-
"@storybook/addon-toolbars": "9.0.0-alpha.
|
|
11593
|
-
"@storybook/addon-viewport": "9.0.0-alpha.
|
|
11594
|
-
"@storybook/builder-vite": "9.0.0-alpha.
|
|
11595
|
-
"@storybook/builder-webpack5": "9.0.0-alpha.
|
|
11596
|
-
storybook: "9.0.0-alpha.
|
|
11597
|
-
"@storybook/angular": "9.0.0-alpha.
|
|
11598
|
-
"@storybook/ember": "9.0.0-alpha.
|
|
11599
|
-
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.
|
|
11600
|
-
"@storybook/html-vite": "9.0.0-alpha.
|
|
11601
|
-
"@storybook/html-webpack5": "9.0.0-alpha.
|
|
11602
|
-
"@storybook/nextjs": "9.0.0-alpha.
|
|
11603
|
-
"@storybook/preact-vite": "9.0.0-alpha.
|
|
11604
|
-
"@storybook/preact-webpack5": "9.0.0-alpha.
|
|
11605
|
-
"@storybook/react-native-web-vite": "9.0.0-alpha.
|
|
11606
|
-
"@storybook/react-vite": "9.0.0-alpha.
|
|
11607
|
-
"@storybook/react-webpack5": "9.0.0-alpha.
|
|
11608
|
-
"@storybook/server-webpack5": "9.0.0-alpha.
|
|
11609
|
-
"@storybook/svelte-vite": "9.0.0-alpha.
|
|
11610
|
-
"@storybook/svelte-webpack5": "9.0.0-alpha.
|
|
11611
|
-
"@storybook/sveltekit": "9.0.0-alpha.
|
|
11612
|
-
"@storybook/vue3-vite": "9.0.0-alpha.
|
|
11613
|
-
"@storybook/vue3-webpack5": "9.0.0-alpha.
|
|
11614
|
-
"@storybook/web-components-vite": "9.0.0-alpha.
|
|
11615
|
-
"@storybook/web-components-webpack5": "9.0.0-alpha.
|
|
11616
|
-
"@storybook/blocks": "9.0.0-alpha.
|
|
11617
|
-
sb: "9.0.0-alpha.
|
|
11618
|
-
"@storybook/cli": "9.0.0-alpha.
|
|
11619
|
-
"@storybook/codemod": "9.0.0-alpha.
|
|
11620
|
-
"@storybook/core-webpack": "9.0.0-alpha.
|
|
11621
|
-
"create-storybook": "9.0.0-alpha.
|
|
11622
|
-
"@storybook/csf-plugin": "9.0.0-alpha.
|
|
11623
|
-
"@storybook/react-dom-shim": "9.0.0-alpha.
|
|
11624
|
-
"@storybook/source-loader": "9.0.0-alpha.
|
|
11625
|
-
"@storybook/preset-create-react-app": "9.0.0-alpha.
|
|
11626
|
-
"@storybook/preset-html-webpack": "9.0.0-alpha.
|
|
11627
|
-
"@storybook/preset-preact-webpack": "9.0.0-alpha.
|
|
11628
|
-
"@storybook/preset-react-webpack": "9.0.0-alpha.
|
|
11629
|
-
"@storybook/preset-server-webpack": "9.0.0-alpha.
|
|
11630
|
-
"@storybook/preset-svelte-webpack": "9.0.0-alpha.
|
|
11631
|
-
"@storybook/preset-vue3-webpack": "9.0.0-alpha.
|
|
11632
|
-
"@storybook/html": "9.0.0-alpha.
|
|
11633
|
-
"@storybook/preact": "9.0.0-alpha.
|
|
11634
|
-
"@storybook/react": "9.0.0-alpha.
|
|
11635
|
-
"@storybook/server": "9.0.0-alpha.
|
|
11636
|
-
"@storybook/svelte": "9.0.0-alpha.
|
|
11637
|
-
"@storybook/vue3": "9.0.0-alpha.
|
|
11638
|
-
"@storybook/web-components": "9.0.0-alpha.
|
|
11576
|
+
"@storybook/addon-a11y": "9.0.0-alpha.9",
|
|
11577
|
+
"@storybook/addon-backgrounds": "9.0.0-alpha.9",
|
|
11578
|
+
"@storybook/addon-controls": "9.0.0-alpha.9",
|
|
11579
|
+
"@storybook/addon-docs": "9.0.0-alpha.9",
|
|
11580
|
+
"@storybook/addon-essentials": "9.0.0-alpha.9",
|
|
11581
|
+
"@storybook/addon-mdx-gfm": "9.0.0-alpha.9",
|
|
11582
|
+
"@storybook/addon-highlight": "9.0.0-alpha.9",
|
|
11583
|
+
"@storybook/addon-interactions": "9.0.0-alpha.9",
|
|
11584
|
+
"@storybook/addon-jest": "9.0.0-alpha.9",
|
|
11585
|
+
"@storybook/addon-links": "9.0.0-alpha.9",
|
|
11586
|
+
"@storybook/addon-measure": "9.0.0-alpha.9",
|
|
11587
|
+
"@storybook/addon-onboarding": "9.0.0-alpha.9",
|
|
11588
|
+
"@storybook/addon-outline": "9.0.0-alpha.9",
|
|
11589
|
+
"@storybook/addon-storysource": "9.0.0-alpha.9",
|
|
11590
|
+
"@storybook/addon-test": "9.0.0-alpha.9",
|
|
11591
|
+
"@storybook/addon-themes": "9.0.0-alpha.9",
|
|
11592
|
+
"@storybook/addon-toolbars": "9.0.0-alpha.9",
|
|
11593
|
+
"@storybook/addon-viewport": "9.0.0-alpha.9",
|
|
11594
|
+
"@storybook/builder-vite": "9.0.0-alpha.9",
|
|
11595
|
+
"@storybook/builder-webpack5": "9.0.0-alpha.9",
|
|
11596
|
+
storybook: "9.0.0-alpha.9",
|
|
11597
|
+
"@storybook/angular": "9.0.0-alpha.9",
|
|
11598
|
+
"@storybook/ember": "9.0.0-alpha.9",
|
|
11599
|
+
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.9",
|
|
11600
|
+
"@storybook/html-vite": "9.0.0-alpha.9",
|
|
11601
|
+
"@storybook/html-webpack5": "9.0.0-alpha.9",
|
|
11602
|
+
"@storybook/nextjs": "9.0.0-alpha.9",
|
|
11603
|
+
"@storybook/preact-vite": "9.0.0-alpha.9",
|
|
11604
|
+
"@storybook/preact-webpack5": "9.0.0-alpha.9",
|
|
11605
|
+
"@storybook/react-native-web-vite": "9.0.0-alpha.9",
|
|
11606
|
+
"@storybook/react-vite": "9.0.0-alpha.9",
|
|
11607
|
+
"@storybook/react-webpack5": "9.0.0-alpha.9",
|
|
11608
|
+
"@storybook/server-webpack5": "9.0.0-alpha.9",
|
|
11609
|
+
"@storybook/svelte-vite": "9.0.0-alpha.9",
|
|
11610
|
+
"@storybook/svelte-webpack5": "9.0.0-alpha.9",
|
|
11611
|
+
"@storybook/sveltekit": "9.0.0-alpha.9",
|
|
11612
|
+
"@storybook/vue3-vite": "9.0.0-alpha.9",
|
|
11613
|
+
"@storybook/vue3-webpack5": "9.0.0-alpha.9",
|
|
11614
|
+
"@storybook/web-components-vite": "9.0.0-alpha.9",
|
|
11615
|
+
"@storybook/web-components-webpack5": "9.0.0-alpha.9",
|
|
11616
|
+
"@storybook/blocks": "9.0.0-alpha.9",
|
|
11617
|
+
sb: "9.0.0-alpha.9",
|
|
11618
|
+
"@storybook/cli": "9.0.0-alpha.9",
|
|
11619
|
+
"@storybook/codemod": "9.0.0-alpha.9",
|
|
11620
|
+
"@storybook/core-webpack": "9.0.0-alpha.9",
|
|
11621
|
+
"create-storybook": "9.0.0-alpha.9",
|
|
11622
|
+
"@storybook/csf-plugin": "9.0.0-alpha.9",
|
|
11623
|
+
"@storybook/react-dom-shim": "9.0.0-alpha.9",
|
|
11624
|
+
"@storybook/source-loader": "9.0.0-alpha.9",
|
|
11625
|
+
"@storybook/preset-create-react-app": "9.0.0-alpha.9",
|
|
11626
|
+
"@storybook/preset-html-webpack": "9.0.0-alpha.9",
|
|
11627
|
+
"@storybook/preset-preact-webpack": "9.0.0-alpha.9",
|
|
11628
|
+
"@storybook/preset-react-webpack": "9.0.0-alpha.9",
|
|
11629
|
+
"@storybook/preset-server-webpack": "9.0.0-alpha.9",
|
|
11630
|
+
"@storybook/preset-svelte-webpack": "9.0.0-alpha.9",
|
|
11631
|
+
"@storybook/preset-vue3-webpack": "9.0.0-alpha.9",
|
|
11632
|
+
"@storybook/html": "9.0.0-alpha.9",
|
|
11633
|
+
"@storybook/preact": "9.0.0-alpha.9",
|
|
11634
|
+
"@storybook/react": "9.0.0-alpha.9",
|
|
11635
|
+
"@storybook/server": "9.0.0-alpha.9",
|
|
11636
|
+
"@storybook/svelte": "9.0.0-alpha.9",
|
|
11637
|
+
"@storybook/vue3": "9.0.0-alpha.9",
|
|
11638
|
+
"@storybook/web-components": "9.0.0-alpha.9"
|
|
11639
11639
|
};
|
|
11640
11640
|
|
|
11641
11641
|
// src/common/presets.ts
|
|
@@ -17698,7 +17698,7 @@ var SB = J(require("semver/functions/sort.js"), 1), KB = J(HA(), 1);
|
|
|
17698
17698
|
// src/common/js-package-manager/JsPackageManager.ts
|
|
17699
17699
|
var Ar = require("node:fs"), ko = require("node:fs/promises"), Mo = require("node:path");
|
|
17700
17700
|
|
|
17701
|
-
//
|
|
17701
|
+
// node_modules/execa/index.js
|
|
17702
17702
|
var EB = require("node:buffer"), cB = J(require("node:path"), 1), Fo = J(require("node:child_process"), 1), Vr = J(require("node:process"), 1),
|
|
17703
17703
|
BB = J(Ts(), 1);
|
|
17704
17704
|
|
|
@@ -17710,10 +17710,10 @@ function Hs(r) {
|
|
|
17710
17710
|
}
|
|
17711
17711
|
g(Hs, "stripFinalNewline");
|
|
17712
17712
|
|
|
17713
|
-
//
|
|
17713
|
+
// node_modules/npm-run-path/index.js
|
|
17714
17714
|
var zr = J(require("node:process"), 1), $t = J(require("node:path"), 1), Qc = J(require("node:url"), 1);
|
|
17715
17715
|
|
|
17716
|
-
//
|
|
17716
|
+
// node_modules/path-key/index.js
|
|
17717
17717
|
function Bo(r = {}) {
|
|
17718
17718
|
let {
|
|
17719
17719
|
env: A = process.env,
|
|
@@ -17723,7 +17723,7 @@ function Bo(r = {}) {
|
|
|
17723
17723
|
}
|
|
17724
17724
|
g(Bo, "pathKey");
|
|
17725
17725
|
|
|
17726
|
-
//
|
|
17726
|
+
// node_modules/npm-run-path/index.js
|
|
17727
17727
|
function Ww(r = {}) {
|
|
17728
17728
|
let {
|
|
17729
17729
|
cwd: A = zr.default.cwd(),
|
|
@@ -17742,7 +17742,7 @@ function hc({ env: r = zr.default.env, ...A } = {}) {
|
|
|
17742
17742
|
}
|
|
17743
17743
|
g(hc, "npmRunPathEnv");
|
|
17744
17744
|
|
|
17745
|
-
//
|
|
17745
|
+
// node_modules/mimic-fn/index.js
|
|
17746
17746
|
var Xw = /* @__PURE__ */ g((r, A, e, t) => {
|
|
17747
17747
|
if (e === "length" || e === "prototype" || e === "arguments" || e === "caller")
|
|
17748
17748
|
return;
|
|
@@ -17768,7 +17768,7 @@ function js(r, A, { ignoreNonConfigurable: e = !1 } = {}) {
|
|
|
17768
17768
|
}
|
|
17769
17769
|
g(js, "mimicFunction");
|
|
17770
17770
|
|
|
17771
|
-
//
|
|
17771
|
+
// node_modules/onetime/index.js
|
|
17772
17772
|
var Qo = /* @__PURE__ */ new WeakMap(), lc = /* @__PURE__ */ g((r, A = {}) => {
|
|
17773
17773
|
if (typeof r != "function")
|
|
17774
17774
|
throw new TypeError("Expected a function");
|
|
@@ -17788,13 +17788,13 @@ lc.callCount = (r) => {
|
|
|
17788
17788
|
};
|
|
17789
17789
|
var uc = lc;
|
|
17790
17790
|
|
|
17791
|
-
//
|
|
17791
|
+
// node_modules/execa/lib/error.js
|
|
17792
17792
|
var Dc = J(require("node:process"), 1);
|
|
17793
17793
|
|
|
17794
|
-
//
|
|
17794
|
+
// node_modules/human-signals/build/src/main.js
|
|
17795
17795
|
var mc = require("node:os");
|
|
17796
17796
|
|
|
17797
|
-
//
|
|
17797
|
+
// node_modules/human-signals/build/src/realtime.js
|
|
17798
17798
|
var fc = /* @__PURE__ */ g(() => {
|
|
17799
17799
|
let r = qs - wc + 1;
|
|
17800
17800
|
return Array.from({ length: r }, rd);
|
|
@@ -17806,10 +17806,10 @@ var fc = /* @__PURE__ */ g(() => {
|
|
|
17806
17806
|
standard: "posix"
|
|
17807
17807
|
}), "getRealtimeSignal"), wc = 34, qs = 64;
|
|
17808
17808
|
|
|
17809
|
-
//
|
|
17809
|
+
// node_modules/human-signals/build/src/signals.js
|
|
17810
17810
|
var pc = require("node:os");
|
|
17811
17811
|
|
|
17812
|
-
//
|
|
17812
|
+
// node_modules/human-signals/build/src/core.js
|
|
17813
17813
|
var dc = [
|
|
17814
17814
|
{
|
|
17815
17815
|
name: "SIGHUP",
|
|
@@ -18082,7 +18082,7 @@ var dc = [
|
|
|
18082
18082
|
}
|
|
18083
18083
|
];
|
|
18084
18084
|
|
|
18085
|
-
//
|
|
18085
|
+
// node_modules/human-signals/build/src/signals.js
|
|
18086
18086
|
var zs = /* @__PURE__ */ g(() => {
|
|
18087
18087
|
let r = fc();
|
|
18088
18088
|
return [...dc, ...r].map(id);
|
|
@@ -18100,7 +18100,7 @@ var zs = /* @__PURE__ */ g(() => {
|
|
|
18100
18100
|
return { name: r, number: I ? s : A, description: e, supported: I, action: t, forced: i, standard: o };
|
|
18101
18101
|
}, "normalizeSignal");
|
|
18102
18102
|
|
|
18103
|
-
//
|
|
18103
|
+
// node_modules/human-signals/build/src/main.js
|
|
18104
18104
|
var od = /* @__PURE__ */ g(() => {
|
|
18105
18105
|
let r = zs();
|
|
18106
18106
|
return Object.fromEntries(r.map(gd));
|
|
@@ -18140,7 +18140,7 @@ var od = /* @__PURE__ */ g(() => {
|
|
|
18140
18140
|
return e !== void 0 ? e : A.find((t) => t.number === r);
|
|
18141
18141
|
}, "findSignalByNumber"), BM = sd();
|
|
18142
18142
|
|
|
18143
|
-
//
|
|
18143
|
+
// node_modules/execa/lib/error.js
|
|
18144
18144
|
var Id = /* @__PURE__ */ g(({ timedOut: r, timeout: A, errorCode: e, signal: t, signalDescription: i, exitCode: o, isCanceled: s }) => r ? `\
|
|
18145
18145
|
timed out after ${A} milliseconds` : s ? "was canceled" : e !== void 0 ? `failed with ${e}` : t !== void 0 ? `was killed with ${t} (${i})` :
|
|
18146
18146
|
o !== void 0 ? `failed with exit code ${o}` : "failed", "getErrorPrefix"), Wr = /* @__PURE__ */ g(({
|
|
@@ -18167,7 +18167,7 @@ ${t.message}` : U, M = [T, A, r].filter(Boolean).join(`
|
|
|
18167
18167
|
bufferedData, t.failed = !0, t.timedOut = !!E, t.isCanceled = B, t.killed = h && !E, t;
|
|
18168
18168
|
}, "makeError");
|
|
18169
18169
|
|
|
18170
|
-
//
|
|
18170
|
+
// node_modules/execa/lib/stdio.js
|
|
18171
18171
|
var ho = ["stdin", "stdout", "stderr"], ad = /* @__PURE__ */ g((r) => ho.some((A) => r[A] !== void 0), "hasAlias"), Sc = /* @__PURE__ */ g((r) => {
|
|
18172
18172
|
if (!r)
|
|
18173
18173
|
return;
|
|
@@ -18184,10 +18184,10 @@ var ho = ["stdin", "stdout", "stderr"], ad = /* @__PURE__ */ g((r) => ho.some((A
|
|
|
18184
18184
|
return Array.from({ length: e }, (t, i) => A[i]);
|
|
18185
18185
|
}, "normalizeStdio");
|
|
18186
18186
|
|
|
18187
|
-
//
|
|
18187
|
+
// node_modules/execa/lib/kill.js
|
|
18188
18188
|
var Fc = J(require("node:os"), 1);
|
|
18189
18189
|
|
|
18190
|
-
//
|
|
18190
|
+
// node_modules/signal-exit/dist/mjs/signals.js
|
|
18191
18191
|
var ft = [];
|
|
18192
18192
|
ft.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
18193
18193
|
process.platform !== "win32" && ft.push(
|
|
@@ -18207,7 +18207,7 @@ process.platform !== "win32" && ft.push(
|
|
|
18207
18207
|
);
|
|
18208
18208
|
process.platform === "linux" && ft.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
18209
18209
|
|
|
18210
|
-
//
|
|
18210
|
+
// node_modules/signal-exit/dist/mjs/index.js
|
|
18211
18211
|
var lo = /* @__PURE__ */ g((r) => !!r && typeof r == "object" && typeof r.removeListener == "function" && typeof r.emit == "function" && typeof r.
|
|
18212
18212
|
reallyExit == "function" && typeof r.listeners == "function" && typeof r.kill == "function" && typeof r.pid == "number" && typeof r.on == "f\
|
|
18213
18213
|
unction", "processOk"), Ws = Symbol.for("signal-exit emitter"), Xs = globalThis, Ed = Object.defineProperty.bind(Object), Vs = class {
|
|
@@ -18380,7 +18380,7 @@ unction", "processOk"), Ws = Symbol.for("signal-exit emitter"), Xs = globalThis,
|
|
|
18380
18380
|
unload: DM
|
|
18381
18381
|
} = cd(lo(An) ? new $s(An) : new Zs());
|
|
18382
18382
|
|
|
18383
|
-
//
|
|
18383
|
+
// node_modules/execa/lib/kill.js
|
|
18384
18384
|
var Bd = 1e3 * 5, Nc = /* @__PURE__ */ g((r, A = "SIGTERM", e = {}) => {
|
|
18385
18385
|
let t = r(A);
|
|
18386
18386
|
return Qd(r, A, e, t), t;
|
|
@@ -18428,10 +18428,10 @@ var Bd = 1e3 * 5, Nc = /* @__PURE__ */ g((r, A = "SIGTERM", e = {}) => {
|
|
|
18428
18428
|
});
|
|
18429
18429
|
}, "setExitHandler");
|
|
18430
18430
|
|
|
18431
|
-
//
|
|
18431
|
+
// node_modules/execa/lib/pipe.js
|
|
18432
18432
|
var Lc = require("node:fs"), Yc = require("node:child_process");
|
|
18433
18433
|
|
|
18434
|
-
//
|
|
18434
|
+
// node_modules/is-stream/index.js
|
|
18435
18435
|
function fo(r) {
|
|
18436
18436
|
return r !== null && typeof r == "object" && typeof r.pipe == "function";
|
|
18437
18437
|
}
|
|
@@ -18441,7 +18441,7 @@ function en(r) {
|
|
|
18441
18441
|
}
|
|
18442
18442
|
g(en, "isWritableStream");
|
|
18443
18443
|
|
|
18444
|
-
//
|
|
18444
|
+
// node_modules/execa/lib/pipe.js
|
|
18445
18445
|
var wd = /* @__PURE__ */ g((r) => r instanceof Yc.ChildProcess && typeof r.then == "function", "isExecaChildProcess"), tn = /* @__PURE__ */ g(
|
|
18446
18446
|
(r, A, e) => {
|
|
18447
18447
|
if (typeof e == "string")
|
|
@@ -18458,10 +18458,10 @@ var wd = /* @__PURE__ */ g((r) => r instanceof Yc.ChildProcess && typeof r.then
|
|
|
18458
18458
|
all !== void 0 && (r.pipeAll = tn.bind(void 0, r, "all"));
|
|
18459
18459
|
}, "addPipeMethods");
|
|
18460
18460
|
|
|
18461
|
-
//
|
|
18461
|
+
// node_modules/execa/lib/stream.js
|
|
18462
18462
|
var So = require("node:fs"), zc = require("node:timers/promises");
|
|
18463
18463
|
|
|
18464
|
-
//
|
|
18464
|
+
// node_modules/get-stream/source/contents.js
|
|
18465
18465
|
var Xr = /* @__PURE__ */ g(async (r, { init: A, convertChunk: e, getSize: t, truncateChunk: i, addChunk: o, getFinalChunk: s, finalize: I }, {
|
|
18466
18466
|
maxBuffer: E = Number.POSITIVE_INFINITY } = {}) => {
|
|
18467
18467
|
if (!pd(r))
|
|
@@ -18512,13 +18512,13 @@ cIterable"), md = /* @__PURE__ */ g((r) => {
|
|
|
18512
18512
|
}
|
|
18513
18513
|
};
|
|
18514
18514
|
|
|
18515
|
-
//
|
|
18515
|
+
// node_modules/get-stream/source/utils.js
|
|
18516
18516
|
var rn = /* @__PURE__ */ g((r) => r, "identity"), on = /* @__PURE__ */ g(() => {
|
|
18517
18517
|
}, "noop"), gn = /* @__PURE__ */ g(({ contents: r }) => r, "getContentsProp"), po = /* @__PURE__ */ g((r) => {
|
|
18518
18518
|
throw new Error(`Streams in object mode are not supported: ${String(r)}`);
|
|
18519
18519
|
}, "throwObjectStream"), mo = /* @__PURE__ */ g((r) => r.length, "getLengthProp");
|
|
18520
18520
|
|
|
18521
|
-
//
|
|
18521
|
+
// node_modules/get-stream/source/array-buffer.js
|
|
18522
18522
|
async function sn(r, A) {
|
|
18523
18523
|
return Xr(r, Rd, A);
|
|
18524
18524
|
}
|
|
@@ -18558,7 +18558,7 @@ Fd = /* @__PURE__ */ g((r, { contents: A, length: e }, t) => {
|
|
|
18558
18558
|
finalize: Md
|
|
18559
18559
|
};
|
|
18560
18560
|
|
|
18561
|
-
//
|
|
18561
|
+
// node_modules/get-stream/source/buffer.js
|
|
18562
18562
|
async function yo(r, A) {
|
|
18563
18563
|
if (!("Buffer" in globalThis))
|
|
18564
18564
|
throw new Error("getStreamAsBuffer() is only supported in Node.js");
|
|
@@ -18571,7 +18571,7 @@ async function yo(r, A) {
|
|
|
18571
18571
|
g(yo, "getStreamAsBuffer");
|
|
18572
18572
|
var Hc = /* @__PURE__ */ g((r) => globalThis.Buffer.from(r), "arrayBufferToNodeBuffer");
|
|
18573
18573
|
|
|
18574
|
-
//
|
|
18574
|
+
// node_modules/get-stream/source/string.js
|
|
18575
18575
|
async function nn(r, A) {
|
|
18576
18576
|
return Xr(r, Gd, A);
|
|
18577
18577
|
}
|
|
@@ -18598,7 +18598,7 @@ decode(r, { stream: !0 }), "useTextDecoder"), Ld = /* @__PURE__ */ g((r, { conte
|
|
|
18598
18598
|
finalize: gn
|
|
18599
18599
|
};
|
|
18600
18600
|
|
|
18601
|
-
//
|
|
18601
|
+
// node_modules/execa/lib/stream.js
|
|
18602
18602
|
var Wc = J(qc(), 1);
|
|
18603
18603
|
var Xc = /* @__PURE__ */ g((r) => {
|
|
18604
18604
|
if (r !== void 0)
|
|
@@ -18646,7 +18646,7 @@ async ({ stdout: r, stderr: A, all: e }, { encoding: t, buffer: i, maxBuffer: o
|
|
|
18646
18646
|
}
|
|
18647
18647
|
}, "getSpawnedResult");
|
|
18648
18648
|
|
|
18649
|
-
//
|
|
18649
|
+
// node_modules/execa/lib/promise.js
|
|
18650
18650
|
var Od = (async () => {
|
|
18651
18651
|
})().constructor.prototype, _d = ["then", "catch", "finally"].map((r) => [
|
|
18652
18652
|
r,
|
|
@@ -18666,7 +18666,7 @@ var Od = (async () => {
|
|
|
18666
18666
|
});
|
|
18667
18667
|
}), "getSpawnedPromise");
|
|
18668
18668
|
|
|
18669
|
-
//
|
|
18669
|
+
// node_modules/execa/lib/command.js
|
|
18670
18670
|
var iB = require("node:buffer"), oB = require("node:child_process");
|
|
18671
18671
|
var gB = /* @__PURE__ */ g((r, A = []) => Array.isArray(A) ? [r, ...A] : [r], "normalizeArgs"), Td = /^[\w.-]+$/, Hd = /* @__PURE__ */ g((r) => typeof r !=
|
|
18672
18672
|
"string" || Td.test(r) ? r : `"${r.replaceAll('"', '\\"')}"`, "escapeArg"), En = /* @__PURE__ */ g((r, A) => gB(r, A).join(" "), "joinComman\
|
|
@@ -18717,7 +18717,7 @@ d"), cn = /* @__PURE__ */ g((r, A) => gB(r, A).map((e) => Hd(e)).join(" "), "get
|
|
|
18717
18717
|
return e;
|
|
18718
18718
|
}, "parseTemplates");
|
|
18719
18719
|
|
|
18720
|
-
//
|
|
18720
|
+
// node_modules/execa/lib/verbose.js
|
|
18721
18721
|
var nB = require("node:util"), CB = J(require("node:process"), 1);
|
|
18722
18722
|
var IB = (0, nB.debuglog)("execa").enabled, Ko = /* @__PURE__ */ g((r, A) => String(r).padStart(A, "0"), "padField"), qd = /* @__PURE__ */ g(
|
|
18723
18723
|
() => {
|
|
@@ -18728,7 +18728,7 @@ var IB = (0, nB.debuglog)("execa").enabled, Ko = /* @__PURE__ */ g((r, A) => Str
|
|
|
18728
18728
|
`);
|
|
18729
18729
|
}, "logCommand");
|
|
18730
18730
|
|
|
18731
|
-
//
|
|
18731
|
+
// node_modules/execa/index.js
|
|
18732
18732
|
var zd = 1e3 * 1e3 * 100, Wd = /* @__PURE__ */ g(({ env: r, extendEnv: A, preferLocal: e, localDir: t, execPath: i }) => {
|
|
18733
18733
|
let o = A ? { ...Vr.default.env, ...r } : r;
|
|
18734
18734
|
return e ? hc({ env: o, cwd: t, execPath: i }) : o;
|
|
@@ -19043,27 +19043,31 @@ var ee = class {
|
|
|
19043
19043
|
* @param {Array} dependencies Contains a list of packages to add.
|
|
19044
19044
|
*/
|
|
19045
19045
|
async addDependencies(A, e) {
|
|
19046
|
-
let { skipInstall: t } = A;
|
|
19046
|
+
let { skipInstall: t, writeOutputToFile: i = !0 } = A;
|
|
19047
19047
|
if (t) {
|
|
19048
|
-
let { packageJson:
|
|
19049
|
-
No(
|
|
19050
|
-
let
|
|
19051
|
-
let [
|
|
19052
|
-
return { ...
|
|
19048
|
+
let { packageJson: o } = A;
|
|
19049
|
+
No(o, "Missing packageJson.");
|
|
19050
|
+
let s = e.reduce((I, E) => {
|
|
19051
|
+
let [B, h] = fn(E);
|
|
19052
|
+
return { ...I, [B]: h };
|
|
19053
19053
|
}, {});
|
|
19054
|
-
A.installAsDevDependencies ?
|
|
19055
|
-
...
|
|
19056
|
-
...
|
|
19057
|
-
} :
|
|
19058
|
-
...
|
|
19059
|
-
...
|
|
19060
|
-
}, await this.writePackageJson(
|
|
19054
|
+
A.installAsDevDependencies ? o.devDependencies = {
|
|
19055
|
+
...o.devDependencies,
|
|
19056
|
+
...s
|
|
19057
|
+
} : o.dependencies = {
|
|
19058
|
+
...o.dependencies,
|
|
19059
|
+
...s
|
|
19060
|
+
}, await this.writePackageJson(o);
|
|
19061
19061
|
} else
|
|
19062
19062
|
try {
|
|
19063
|
-
await this.runAddDeps(
|
|
19064
|
-
|
|
19063
|
+
await this.runAddDeps(
|
|
19064
|
+
e,
|
|
19065
|
+
!!A.installAsDevDependencies,
|
|
19066
|
+
i
|
|
19067
|
+
);
|
|
19068
|
+
} catch (o) {
|
|
19065
19069
|
throw Pe.error(`
|
|
19066
|
-
An error occurred while installing dependencies:`), Pe.log(
|
|
19070
|
+
An error occurred while installing dependencies:`), Pe.log(o.message), new et(o);
|
|
19067
19071
|
}
|
|
19068
19072
|
}
|
|
19069
19073
|
/**
|
|
@@ -19373,24 +19377,26 @@ var Zd = /npm ERR! code (\w+)/, $d = {
|
|
|
19373
19377
|
})).trim();
|
|
19374
19378
|
return t === "undefined" ? void 0 : t;
|
|
19375
19379
|
}
|
|
19376
|
-
async runAddDeps(e, t) {
|
|
19377
|
-
let { logStream:
|
|
19378
|
-
t && (
|
|
19380
|
+
async runAddDeps(e, t, i = !0) {
|
|
19381
|
+
let { logStream: o, readLogFile: s, moveLogFile: I, removeLogFile: E } = await he(), B = [...e];
|
|
19382
|
+
t && (B = ["-D", ...B]);
|
|
19379
19383
|
try {
|
|
19380
19384
|
await this.executeCommand({
|
|
19381
19385
|
command: "bun",
|
|
19382
|
-
args: ["add", ...
|
|
19383
|
-
stdio: process.env.CI ? "inherit" : ["ignore",
|
|
19386
|
+
args: ["add", ...B, ...this.getInstallArgs()],
|
|
19387
|
+
stdio: process.env.CI || !i ? "inherit" : ["ignore", o, o]
|
|
19384
19388
|
});
|
|
19385
|
-
} catch {
|
|
19386
|
-
|
|
19387
|
-
|
|
19388
|
-
|
|
19389
|
+
} catch (h) {
|
|
19390
|
+
if (!i)
|
|
19391
|
+
throw h;
|
|
19392
|
+
let u = await s(), f = this.parseErrorFromLogs(u);
|
|
19393
|
+
throw await I(), new Error(
|
|
19394
|
+
KB.dedent`${f}
|
|
19389
19395
|
|
|
19390
19396
|
Please check the logfile generated at ./storybook.log for troubleshooting and try again.`
|
|
19391
19397
|
);
|
|
19392
19398
|
}
|
|
19393
|
-
await
|
|
19399
|
+
await E();
|
|
19394
19400
|
}
|
|
19395
19401
|
async runRemoveDeps(e) {
|
|
19396
19402
|
let t = [...e];
|
|
@@ -19583,24 +19589,26 @@ var Ap = /npm (ERR!|error) (code|errno) (\w+)/i, ep = {
|
|
|
19583
19589
|
})).trim();
|
|
19584
19590
|
return t === "undefined" ? void 0 : t;
|
|
19585
19591
|
}
|
|
19586
|
-
async runAddDeps(e, t) {
|
|
19587
|
-
let { logStream:
|
|
19588
|
-
t && (
|
|
19592
|
+
async runAddDeps(e, t, i = !0) {
|
|
19593
|
+
let { logStream: o, readLogFile: s, moveLogFile: I, removeLogFile: E } = await he(), B = [...e];
|
|
19594
|
+
t && (B = ["-D", ...B]);
|
|
19589
19595
|
try {
|
|
19590
19596
|
await this.executeCommand({
|
|
19591
19597
|
command: "npm",
|
|
19592
|
-
args: ["install", ...
|
|
19593
|
-
stdio: process.env.CI ? "inherit" : ["ignore",
|
|
19598
|
+
args: ["install", ...B, ...this.getInstallArgs()],
|
|
19599
|
+
stdio: process.env.CI || !i ? "inherit" : ["ignore", o, o]
|
|
19594
19600
|
});
|
|
19595
|
-
} catch {
|
|
19596
|
-
|
|
19597
|
-
|
|
19598
|
-
|
|
19601
|
+
} catch (h) {
|
|
19602
|
+
if (!i)
|
|
19603
|
+
throw h;
|
|
19604
|
+
let u = await s(), f = this.parseErrorFromLogs(u);
|
|
19605
|
+
throw await I(), new Error(
|
|
19606
|
+
bB.dedent`${f}
|
|
19599
19607
|
|
|
19600
19608
|
Please check the logfile generated at ./storybook.log for troubleshooting and try again.`
|
|
19601
19609
|
);
|
|
19602
19610
|
}
|
|
19603
|
-
await
|
|
19611
|
+
await E();
|
|
19604
19612
|
}
|
|
19605
19613
|
async runRemoveDeps(e) {
|
|
19606
19614
|
let t = [...e];
|
|
@@ -19774,25 +19782,27 @@ var tp = /(ELIFECYCLE|ERR_PNPM_[A-Z_]+)\s+(.*)/i, ei = class extends ee {
|
|
|
19774
19782
|
stdio: "inherit"
|
|
19775
19783
|
});
|
|
19776
19784
|
}
|
|
19777
|
-
async runAddDeps(e, t) {
|
|
19778
|
-
let
|
|
19779
|
-
t && (
|
|
19780
|
-
let { logStream:
|
|
19785
|
+
async runAddDeps(e, t, i = !0) {
|
|
19786
|
+
let o = [...e];
|
|
19787
|
+
t && (o = ["-D", ...o]);
|
|
19788
|
+
let { logStream: s, readLogFile: I, moveLogFile: E, removeLogFile: B } = await he();
|
|
19781
19789
|
try {
|
|
19782
19790
|
await this.executeCommand({
|
|
19783
19791
|
command: "pnpm",
|
|
19784
|
-
args: ["add", ...
|
|
19785
|
-
stdio: process.env.CI ? "inherit" : ["ignore",
|
|
19792
|
+
args: ["add", ...o, ...this.getInstallArgs()],
|
|
19793
|
+
stdio: process.env.CI || !i ? "inherit" : ["ignore", s, s]
|
|
19786
19794
|
});
|
|
19787
|
-
} catch {
|
|
19788
|
-
|
|
19789
|
-
|
|
19790
|
-
|
|
19795
|
+
} catch (h) {
|
|
19796
|
+
if (!i)
|
|
19797
|
+
throw h;
|
|
19798
|
+
let u = await I(), f = this.parseErrorFromLogs(u);
|
|
19799
|
+
throw await E(), new Error(
|
|
19800
|
+
YB.dedent`${f}
|
|
19791
19801
|
|
|
19792
19802
|
Please check the logfile generated at ./storybook.log for troubleshooting and try again.`
|
|
19793
19803
|
);
|
|
19794
19804
|
}
|
|
19795
|
-
await
|
|
19805
|
+
await B();
|
|
19796
19806
|
}
|
|
19797
19807
|
async runRemoveDeps(e) {
|
|
19798
19808
|
let t = [...e];
|
|
@@ -19939,25 +19949,27 @@ var rp = /^error\s(.*)$/gm, ti = class extends ee {
|
|
|
19939
19949
|
stdio: "inherit"
|
|
19940
19950
|
});
|
|
19941
19951
|
}
|
|
19942
|
-
async runAddDeps(e, t) {
|
|
19943
|
-
let
|
|
19944
|
-
t && (
|
|
19945
|
-
let { logStream:
|
|
19952
|
+
async runAddDeps(e, t, i = !0) {
|
|
19953
|
+
let o = [...e];
|
|
19954
|
+
t && (o = ["-D", ...o]);
|
|
19955
|
+
let { logStream: s, readLogFile: I, moveLogFile: E, removeLogFile: B } = await he();
|
|
19946
19956
|
try {
|
|
19947
19957
|
await this.executeCommand({
|
|
19948
19958
|
command: "yarn",
|
|
19949
|
-
args: ["add", ...this.getInstallArgs(), ...
|
|
19950
|
-
stdio: process.env.CI ? "inherit" : ["ignore",
|
|
19959
|
+
args: ["add", ...this.getInstallArgs(), ...o],
|
|
19960
|
+
stdio: process.env.CI || !i ? "inherit" : ["ignore", s, s]
|
|
19951
19961
|
});
|
|
19952
|
-
} catch {
|
|
19953
|
-
|
|
19954
|
-
|
|
19955
|
-
|
|
19962
|
+
} catch (h) {
|
|
19963
|
+
if (!i)
|
|
19964
|
+
throw h;
|
|
19965
|
+
let u = await I(), f = this.parseErrorFromLogs(u);
|
|
19966
|
+
throw await E(), new Error(
|
|
19967
|
+
JB.dedent`${f}
|
|
19956
19968
|
|
|
19957
19969
|
Please check the logfile generated at ./storybook.log for troubleshooting and try again.`
|
|
19958
19970
|
);
|
|
19959
19971
|
}
|
|
19960
|
-
await
|
|
19972
|
+
await B();
|
|
19961
19973
|
}
|
|
19962
19974
|
async runRemoveDeps(e) {
|
|
19963
19975
|
let t = [...e];
|
|
@@ -20150,25 +20162,27 @@ var GQ = {
|
|
|
20150
20162
|
stdio: "inherit"
|
|
20151
20163
|
});
|
|
20152
20164
|
}
|
|
20153
|
-
async runAddDeps(e, t) {
|
|
20154
|
-
let
|
|
20155
|
-
t && (
|
|
20156
|
-
let { logStream:
|
|
20165
|
+
async runAddDeps(e, t, i = !0) {
|
|
20166
|
+
let o = [...e];
|
|
20167
|
+
t && (o = ["-D", ...o]);
|
|
20168
|
+
let { logStream: s, readLogFile: I, moveLogFile: E, removeLogFile: B } = await he();
|
|
20157
20169
|
try {
|
|
20158
20170
|
await this.executeCommand({
|
|
20159
20171
|
command: "yarn",
|
|
20160
|
-
args: ["add", ...this.getInstallArgs(), ...
|
|
20161
|
-
stdio: process.env.CI ? "inherit" : ["ignore",
|
|
20172
|
+
args: ["add", ...this.getInstallArgs(), ...o],
|
|
20173
|
+
stdio: process.env.CI || !i ? "inherit" : ["ignore", s, s]
|
|
20162
20174
|
});
|
|
20163
|
-
} catch {
|
|
20164
|
-
|
|
20165
|
-
|
|
20166
|
-
|
|
20175
|
+
} catch (h) {
|
|
20176
|
+
if (!i)
|
|
20177
|
+
throw h;
|
|
20178
|
+
let u = await I(), f = this.parseErrorFromLogs(u);
|
|
20179
|
+
throw await E(), new Error(
|
|
20180
|
+
xQ.dedent`${f}
|
|
20167
20181
|
|
|
20168
20182
|
Please check the logfile generated at ./storybook.log for troubleshooting and try again.`
|
|
20169
20183
|
);
|
|
20170
20184
|
}
|
|
20171
|
-
await
|
|
20185
|
+
await B();
|
|
20172
20186
|
}
|
|
20173
20187
|
async getRegistryURL() {
|
|
20174
20188
|
let t = (await this.executeCommand({
|
package/dist/common/index.d.ts
CHANGED
|
@@ -534,6 +534,7 @@ declare abstract class JsPackageManager {
|
|
|
534
534
|
skipInstall?: boolean;
|
|
535
535
|
installAsDevDependencies?: boolean;
|
|
536
536
|
packageJson?: PackageJson;
|
|
537
|
+
writeOutputToFile?: boolean;
|
|
537
538
|
}, dependencies: string[]): Promise<void>;
|
|
538
539
|
/**
|
|
539
540
|
* Remove dependencies from a project using `yarn remove` or `npm uninstall`.
|
|
@@ -597,7 +598,7 @@ declare abstract class JsPackageManager {
|
|
|
597
598
|
addScripts(scripts: Record<string, string>): Promise<void>;
|
|
598
599
|
addPackageResolutions(versions: Record<string, string>): Promise<void>;
|
|
599
600
|
protected abstract runInstall(): Promise<void>;
|
|
600
|
-
protected abstract runAddDeps(dependencies: string[], installAsDevDependencies: boolean): Promise<void>;
|
|
601
|
+
protected abstract runAddDeps(dependencies: string[], installAsDevDependencies: boolean, writeOutputToFile?: boolean): Promise<void>;
|
|
601
602
|
protected abstract runRemoveDeps(dependencies: string[]): Promise<void>;
|
|
602
603
|
protected abstract getResolutions(packageJson: PackageJson, versions: Record<string, string>): Record<string, any>;
|
|
603
604
|
/**
|