storybook 9.1.0-beta.1 → 9.1.0-beta.3
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 +43 -43
- package/dist/bin/index.js +43 -43
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +66 -66
- package/dist/common/index.js +112 -112
- package/dist/core-server/presets/common-manager.js +2034 -2069
- package/dist/core-server/presets/common-preset.cjs +14028 -13945
- package/dist/core-server/presets/common-preset.js +14188 -14105
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.d.ts +534 -8
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +19 -13
- package/dist/preview-api/index.cjs +18 -14
- package/dist/preview-api/index.d.ts +4 -0
- package/dist/preview-api/index.js +19 -13
- package/dist/telemetry/index.cjs +1 -1
- package/dist/telemetry/index.js +1 -1
- package/package.json +2 -1
package/dist/common/index.js
CHANGED
|
@@ -229,7 +229,7 @@ var Rr = ue(() => {
|
|
|
229
229
|
});
|
|
230
230
|
|
|
231
231
|
// ../node_modules/resolve-from/index.js
|
|
232
|
-
var Og = m((
|
|
232
|
+
var Og = m((D1, Jg) => {
|
|
233
233
|
"use strict";
|
|
234
234
|
var QE = v("path"), fE = v("module"), xb = v("fs"), dE = /* @__PURE__ */ s((t, A, e) => {
|
|
235
235
|
if (typeof t != "string")
|
|
@@ -265,7 +265,7 @@ var Og = m((DH, Jg) => {
|
|
|
265
265
|
});
|
|
266
266
|
|
|
267
267
|
// ../node_modules/common-path-prefix/index.js
|
|
268
|
-
var LE = m((
|
|
268
|
+
var LE = m((V1, vE) => {
|
|
269
269
|
"use strict";
|
|
270
270
|
var { sep: Ak } = v("path"), ek = /* @__PURE__ */ s((t) => {
|
|
271
271
|
for (let A of t) {
|
|
@@ -1105,7 +1105,7 @@ var aQ = m((ZW, gQ) => {
|
|
|
1105
1105
|
});
|
|
1106
1106
|
|
|
1107
1107
|
// ../node_modules/picomatch/lib/constants.js
|
|
1108
|
-
var Hi = m((
|
|
1108
|
+
var Hi = m((_3, KQ) => {
|
|
1109
1109
|
"use strict";
|
|
1110
1110
|
var QR = v("path"), ze = "\\\\/", mQ = `[^${ze}]`, ht = "\\.", fR = "\\+", dR = "\\?", Fn = "\\/", pR = "(?=.)", yQ = "[^/]", za = `(?:${Fn}\
|
|
1111
1111
|
|$)`, DQ = `(?:^|${Fn})`, Wa = `${ht}{1,2}${za}`, wR = `(?!${ht})`, mR = `(?!${DQ}${Wa})`, yR = `(?!${ht}{0,1}${za})`, DR = `(?!${Wa})`, SR = `\
|
|
@@ -1316,7 +1316,7 @@ var ji = m((se) => {
|
|
|
1316
1316
|
});
|
|
1317
1317
|
|
|
1318
1318
|
// ../node_modules/picomatch/lib/scan.js
|
|
1319
|
-
var LQ = m((
|
|
1319
|
+
var LQ = m((J3, vQ) => {
|
|
1320
1320
|
"use strict";
|
|
1321
1321
|
var FQ = ji(), {
|
|
1322
1322
|
CHAR_ASTERISK: Va,
|
|
@@ -1506,7 +1506,7 @@ var LQ = m((J4, vQ) => {
|
|
|
1506
1506
|
});
|
|
1507
1507
|
|
|
1508
1508
|
// ../node_modules/picomatch/lib/parse.js
|
|
1509
|
-
var PQ = m((
|
|
1509
|
+
var PQ = m((T3, YQ) => {
|
|
1510
1510
|
"use strict";
|
|
1511
1511
|
var bn = Hi(), le = ji(), {
|
|
1512
1512
|
MAX_LENGTH: kn,
|
|
@@ -1972,7 +1972,7 @@ slash", value: "/", output: "" });
|
|
|
1972
1972
|
});
|
|
1973
1973
|
|
|
1974
1974
|
// ../node_modules/picomatch/lib/picomatch.js
|
|
1975
|
-
var _Q = m((
|
|
1975
|
+
var _Q = m((j3, UQ) => {
|
|
1976
1976
|
"use strict";
|
|
1977
1977
|
var qR = v("path"), zR = LQ(), tC = PQ(), rC = ji(), WR = Hi(), VR = /* @__PURE__ */ s((t) => t && typeof t == "object" && !Array.isArray(
|
|
1978
1978
|
t), "isObject"), kA = /* @__PURE__ */ s((t, A, e = !1) => {
|
|
@@ -2046,7 +2046,7 @@ ion" && i.onIgnore(D), D.isMatch = !1, Q ? D : !1) : (typeof i.onMatch == "funct
|
|
|
2046
2046
|
});
|
|
2047
2047
|
|
|
2048
2048
|
// ../node_modules/picomatch/index.js
|
|
2049
|
-
var Nn = m((
|
|
2049
|
+
var Nn = m((z3, GQ) => {
|
|
2050
2050
|
"use strict";
|
|
2051
2051
|
GQ.exports = _Q();
|
|
2052
2052
|
});
|
|
@@ -18599,49 +18599,49 @@ var cK = ue(() => {
|
|
|
18599
18599
|
|
|
18600
18600
|
// src/common/versions.ts
|
|
18601
18601
|
var ot = {
|
|
18602
|
-
"@storybook/addon-a11y": "9.1.0-beta.
|
|
18603
|
-
"@storybook/addon-docs": "9.1.0-beta.
|
|
18604
|
-
"@storybook/addon-jest": "9.1.0-beta.
|
|
18605
|
-
"@storybook/addon-links": "9.1.0-beta.
|
|
18606
|
-
"@storybook/addon-onboarding": "9.1.0-beta.
|
|
18607
|
-
"storybook-addon-pseudo-states": "9.1.0-beta.
|
|
18608
|
-
"@storybook/addon-themes": "9.1.0-beta.
|
|
18609
|
-
"@storybook/addon-vitest": "9.1.0-beta.
|
|
18610
|
-
"@storybook/builder-vite": "9.1.0-beta.
|
|
18611
|
-
"@storybook/builder-webpack5": "9.1.0-beta.
|
|
18612
|
-
storybook: "9.1.0-beta.
|
|
18613
|
-
"@storybook/angular": "9.1.0-beta.
|
|
18614
|
-
"@storybook/ember": "9.1.0-beta.
|
|
18615
|
-
"@storybook/html-vite": "9.1.0-beta.
|
|
18616
|
-
"@storybook/nextjs": "9.1.0-beta.
|
|
18617
|
-
"@storybook/nextjs-vite": "9.1.0-beta.
|
|
18618
|
-
"@storybook/preact-vite": "9.1.0-beta.
|
|
18619
|
-
"@storybook/react-native-web-vite": "9.1.0-beta.
|
|
18620
|
-
"@storybook/react-vite": "9.1.0-beta.
|
|
18621
|
-
"@storybook/react-webpack5": "9.1.0-beta.
|
|
18622
|
-
"@storybook/server-webpack5": "9.1.0-beta.
|
|
18623
|
-
"@storybook/svelte-vite": "9.1.0-beta.
|
|
18624
|
-
"@storybook/sveltekit": "9.1.0-beta.
|
|
18625
|
-
"@storybook/vue3-vite": "9.1.0-beta.
|
|
18626
|
-
"@storybook/web-components-vite": "9.1.0-beta.
|
|
18627
|
-
sb: "9.1.0-beta.
|
|
18628
|
-
"@storybook/cli": "9.1.0-beta.
|
|
18629
|
-
"@storybook/codemod": "9.1.0-beta.
|
|
18630
|
-
"@storybook/core-webpack": "9.1.0-beta.
|
|
18631
|
-
"create-storybook": "9.1.0-beta.
|
|
18632
|
-
"@storybook/csf-plugin": "9.1.0-beta.
|
|
18633
|
-
"eslint-plugin-storybook": "9.1.0-beta.
|
|
18634
|
-
"@storybook/react-dom-shim": "9.1.0-beta.
|
|
18635
|
-
"@storybook/preset-create-react-app": "9.1.0-beta.
|
|
18636
|
-
"@storybook/preset-react-webpack": "9.1.0-beta.
|
|
18637
|
-
"@storybook/preset-server-webpack": "9.1.0-beta.
|
|
18638
|
-
"@storybook/html": "9.1.0-beta.
|
|
18639
|
-
"@storybook/preact": "9.1.0-beta.
|
|
18640
|
-
"@storybook/react": "9.1.0-beta.
|
|
18641
|
-
"@storybook/server": "9.1.0-beta.
|
|
18642
|
-
"@storybook/svelte": "9.1.0-beta.
|
|
18643
|
-
"@storybook/vue3": "9.1.0-beta.
|
|
18644
|
-
"@storybook/web-components": "9.1.0-beta.
|
|
18602
|
+
"@storybook/addon-a11y": "9.1.0-beta.3",
|
|
18603
|
+
"@storybook/addon-docs": "9.1.0-beta.3",
|
|
18604
|
+
"@storybook/addon-jest": "9.1.0-beta.3",
|
|
18605
|
+
"@storybook/addon-links": "9.1.0-beta.3",
|
|
18606
|
+
"@storybook/addon-onboarding": "9.1.0-beta.3",
|
|
18607
|
+
"storybook-addon-pseudo-states": "9.1.0-beta.3",
|
|
18608
|
+
"@storybook/addon-themes": "9.1.0-beta.3",
|
|
18609
|
+
"@storybook/addon-vitest": "9.1.0-beta.3",
|
|
18610
|
+
"@storybook/builder-vite": "9.1.0-beta.3",
|
|
18611
|
+
"@storybook/builder-webpack5": "9.1.0-beta.3",
|
|
18612
|
+
storybook: "9.1.0-beta.3",
|
|
18613
|
+
"@storybook/angular": "9.1.0-beta.3",
|
|
18614
|
+
"@storybook/ember": "9.1.0-beta.3",
|
|
18615
|
+
"@storybook/html-vite": "9.1.0-beta.3",
|
|
18616
|
+
"@storybook/nextjs": "9.1.0-beta.3",
|
|
18617
|
+
"@storybook/nextjs-vite": "9.1.0-beta.3",
|
|
18618
|
+
"@storybook/preact-vite": "9.1.0-beta.3",
|
|
18619
|
+
"@storybook/react-native-web-vite": "9.1.0-beta.3",
|
|
18620
|
+
"@storybook/react-vite": "9.1.0-beta.3",
|
|
18621
|
+
"@storybook/react-webpack5": "9.1.0-beta.3",
|
|
18622
|
+
"@storybook/server-webpack5": "9.1.0-beta.3",
|
|
18623
|
+
"@storybook/svelte-vite": "9.1.0-beta.3",
|
|
18624
|
+
"@storybook/sveltekit": "9.1.0-beta.3",
|
|
18625
|
+
"@storybook/vue3-vite": "9.1.0-beta.3",
|
|
18626
|
+
"@storybook/web-components-vite": "9.1.0-beta.3",
|
|
18627
|
+
sb: "9.1.0-beta.3",
|
|
18628
|
+
"@storybook/cli": "9.1.0-beta.3",
|
|
18629
|
+
"@storybook/codemod": "9.1.0-beta.3",
|
|
18630
|
+
"@storybook/core-webpack": "9.1.0-beta.3",
|
|
18631
|
+
"create-storybook": "9.1.0-beta.3",
|
|
18632
|
+
"@storybook/csf-plugin": "9.1.0-beta.3",
|
|
18633
|
+
"eslint-plugin-storybook": "9.1.0-beta.3",
|
|
18634
|
+
"@storybook/react-dom-shim": "9.1.0-beta.3",
|
|
18635
|
+
"@storybook/preset-create-react-app": "9.1.0-beta.3",
|
|
18636
|
+
"@storybook/preset-react-webpack": "9.1.0-beta.3",
|
|
18637
|
+
"@storybook/preset-server-webpack": "9.1.0-beta.3",
|
|
18638
|
+
"@storybook/html": "9.1.0-beta.3",
|
|
18639
|
+
"@storybook/preact": "9.1.0-beta.3",
|
|
18640
|
+
"@storybook/react": "9.1.0-beta.3",
|
|
18641
|
+
"@storybook/server": "9.1.0-beta.3",
|
|
18642
|
+
"@storybook/svelte": "9.1.0-beta.3",
|
|
18643
|
+
"@storybook/vue3": "9.1.0-beta.3",
|
|
18644
|
+
"@storybook/web-components": "9.1.0-beta.3"
|
|
18645
18645
|
};
|
|
18646
18646
|
|
|
18647
18647
|
// src/common/presets.ts
|
|
@@ -19651,7 +19651,7 @@ ing it to other APIs that use AbortController/AbortSignal might have undesirable
|
|
|
19651
19651
|
NING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", A));
|
|
19652
19652
|
}, "warnACPolyfill");
|
|
19653
19653
|
}
|
|
19654
|
-
var VF = /* @__PURE__ */ s((t) => !Hl.has(t), "shouldWarn"),
|
|
19654
|
+
var VF = /* @__PURE__ */ s((t) => !Hl.has(t), "shouldWarn"), hH = Symbol("type"), kt = /* @__PURE__ */ s((t) => t && t === Math.floor(t) && t >
|
|
19655
19655
|
0 && isFinite(t), "isPosInt"), ql = /* @__PURE__ */ s((t) => kt(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array :
|
|
19656
19656
|
t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Sr : null : null, "getUintArray"), Sr = class extends Array {
|
|
19657
19657
|
static {
|
|
@@ -22489,7 +22489,7 @@ nE : t.isBlockDevice() ? oE : t.isSocket() ? aE : t.isFIFO() ? sE : fe, "entToTy
|
|
|
22489
22489
|
let { nocase: r = !0 } = e;
|
|
22490
22490
|
super(A, { ...e, nocase: r });
|
|
22491
22491
|
}
|
|
22492
|
-
},
|
|
22492
|
+
}, KH = process.platform === "win32" ? _s : Gs, cE = process.platform === "win32" ? br : process.platform === "darwin" ? Ki : kr;
|
|
22493
22493
|
|
|
22494
22494
|
// ../node_modules/glob/dist/esm/pattern.js
|
|
22495
22495
|
var mb = /* @__PURE__ */ s((t) => t.length >= 1, "isPatternList"), yb = /* @__PURE__ */ s((t) => t.length >= 1, "isGlobList"), Nr = class t {
|
|
@@ -23564,7 +23564,7 @@ async function qb(t, A) {
|
|
|
23564
23564
|
};
|
|
23565
23565
|
}
|
|
23566
23566
|
s(qb, "getPresets");
|
|
23567
|
-
async function
|
|
23567
|
+
async function _1(t) {
|
|
23568
23568
|
let { corePresets: A = [], overridePresets: e = [], ...r } = t, i = [
|
|
23569
23569
|
...A,
|
|
23570
23570
|
...BE(t),
|
|
@@ -23574,7 +23574,7 @@ async function _H(t) {
|
|
|
23574
23574
|
"Storybook now supports TypeScript natively. You can safely remove `@storybook/preset-typescript`."
|
|
23575
23575
|
), qb(n, r);
|
|
23576
23576
|
}
|
|
23577
|
-
s(
|
|
23577
|
+
s(_1, "loadAllPresets");
|
|
23578
23578
|
|
|
23579
23579
|
// src/common/utils/file-cache.ts
|
|
23580
23580
|
import { createHash as bE, randomBytes as zb } from "node:crypto";
|
|
@@ -26014,7 +26014,7 @@ function hQ({ nodeEnv: t, buildTarget: A } = {}) {
|
|
|
26014
26014
|
s(hQ, "getEnvironment");
|
|
26015
26015
|
|
|
26016
26016
|
// src/common/utils/envs.ts
|
|
26017
|
-
function
|
|
26017
|
+
function o3(t = {}) {
|
|
26018
26018
|
let A = t.production ? "production" : "development", e = {
|
|
26019
26019
|
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
26020
26020
|
NODE_ENV: process.env.NODE_ENV || A,
|
|
@@ -26038,8 +26038,8 @@ function o4(t = {}) {
|
|
|
26038
26038
|
raw: o
|
|
26039
26039
|
};
|
|
26040
26040
|
}
|
|
26041
|
-
s(
|
|
26042
|
-
var
|
|
26041
|
+
s(o3, "loadEnvs");
|
|
26042
|
+
var g3 = /* @__PURE__ */ s((t) => Object.entries(t).reduce((A, [e, r]) => (A[e] = JSON.stringify(r), A), {}), "stringifyEnvs"), a3 = /* @__PURE__ */ s(
|
|
26043
26043
|
(t) => Object.entries(t).reduce((e, [r, i]) => (e[`process.env.${r}`] = JSON.stringify(i), e), {}), "stringifyProcessEnvs");
|
|
26044
26044
|
|
|
26045
26045
|
// src/common/utils/common-glob-options.ts
|
|
@@ -26079,14 +26079,14 @@ var EQ = {
|
|
|
26079
26079
|
};
|
|
26080
26080
|
|
|
26081
26081
|
// src/common/utils/get-builder-options.ts
|
|
26082
|
-
async function
|
|
26082
|
+
async function E3(t) {
|
|
26083
26083
|
let A = await t.presets.apply("framework", {}, t);
|
|
26084
26084
|
if (typeof A != "string" && A?.options?.builder)
|
|
26085
26085
|
return A.options.builder;
|
|
26086
26086
|
let { builder: e } = await t.presets.apply("core", {}, t);
|
|
26087
26087
|
return typeof e != "string" && e?.options ? e.options : {};
|
|
26088
26088
|
}
|
|
26089
|
-
s(
|
|
26089
|
+
s(E3, "getBuilderOptions");
|
|
26090
26090
|
|
|
26091
26091
|
// src/common/utils/get-framework-name.ts
|
|
26092
26092
|
var BQ = cA(gt(), 1);
|
|
@@ -26116,16 +26116,16 @@ var fQ = /* @__PURE__ */ s((t) => {
|
|
|
26116
26116
|
}, "extractProperFrameworkName");
|
|
26117
26117
|
|
|
26118
26118
|
// src/common/utils/get-renderer-name.ts
|
|
26119
|
-
async function
|
|
26119
|
+
async function F3(t) {
|
|
26120
26120
|
let A = await t.presets.apply("core", {}, t);
|
|
26121
26121
|
return !A || !A.renderer ? QQ(t) : A.renderer;
|
|
26122
26122
|
}
|
|
26123
|
-
s(
|
|
26124
|
-
async function
|
|
26123
|
+
s(F3, "getRendererName");
|
|
26124
|
+
async function b3(t) {
|
|
26125
26125
|
let A = fQ(t), e = Yr[A];
|
|
26126
26126
|
return e ? EQ[e] : null;
|
|
26127
26127
|
}
|
|
26128
|
-
s(
|
|
26128
|
+
s(b3, "extractProperRendererNameFromFramework");
|
|
26129
26129
|
|
|
26130
26130
|
// src/common/utils/get-storybook-refs.ts
|
|
26131
26131
|
import { readFile as dQ } from "node:fs/promises";
|
|
@@ -26185,7 +26185,7 @@ var ER = /* @__PURE__ */ s(async (t) => {
|
|
|
26185
26185
|
let A = t.replace(/[A-Z]/g, (e) => ` ${e}`).replace(/[-_][A-Z]/gi, (e) => ` ${e.toUpperCase()}`).replace(/-/g, " ").replace(/_/g, " ");
|
|
26186
26186
|
return `${A.substring(0, 1).toUpperCase()}${A.substring(1)}`.trim();
|
|
26187
26187
|
}, "toTitle");
|
|
26188
|
-
async function
|
|
26188
|
+
async function Y3(t) {
|
|
26189
26189
|
if (t.test)
|
|
26190
26190
|
return {};
|
|
26191
26191
|
let A = await t.presets.apply("refs", await ER(t));
|
|
@@ -26207,7 +26207,7 @@ async function Y4(t) {
|
|
|
26207
26207
|
})
|
|
26208
26208
|
), A;
|
|
26209
26209
|
}
|
|
26210
|
-
s(
|
|
26210
|
+
s(Y3, "getRefs");
|
|
26211
26211
|
|
|
26212
26212
|
// src/common/utils/glob-to-regexp.ts
|
|
26213
26213
|
var JQ = cA(Nn(), 1);
|
|
@@ -26226,7 +26226,7 @@ function OQ(t) {
|
|
|
26226
26226
|
s(OQ, "globToRegexp");
|
|
26227
26227
|
|
|
26228
26228
|
// src/common/utils/interpolate.ts
|
|
26229
|
-
var
|
|
26229
|
+
var X3 = /* @__PURE__ */ s((t, A) => Object.entries(A).reduce((e, [r, i]) => {
|
|
26230
26230
|
let n = i.replace(/\\/g, "/").replace(/\$/g, "$$$");
|
|
26231
26231
|
return e.replace(new RegExp(`{{${r}}}`, "g"), n);
|
|
26232
26232
|
}, t), "interpolate");
|
|
@@ -26238,7 +26238,7 @@ import {
|
|
|
26238
26238
|
MainFileESMOnlyImportError as ZR,
|
|
26239
26239
|
MainFileEvaluationError as A0
|
|
26240
26240
|
} from "storybook/internal/server-errors";
|
|
26241
|
-
async function
|
|
26241
|
+
async function s4({
|
|
26242
26242
|
configDir: t = ".storybook",
|
|
26243
26243
|
noCache: A = !1,
|
|
26244
26244
|
cwd: e
|
|
@@ -26271,13 +26271,13 @@ async function s3({
|
|
|
26271
26271
|
});
|
|
26272
26272
|
}
|
|
26273
26273
|
}
|
|
26274
|
-
s(
|
|
26274
|
+
s(s4, "loadMainConfig");
|
|
26275
26275
|
|
|
26276
26276
|
// src/common/utils/load-manager-or-addons-file.ts
|
|
26277
26277
|
var HQ = cA(gt(), 1);
|
|
26278
26278
|
import { resolve as iC } from "node:path";
|
|
26279
26279
|
import { logger as e0 } from "storybook/internal/node-logger";
|
|
26280
|
-
function
|
|
26280
|
+
function c4({ configDir: t }) {
|
|
26281
26281
|
let A = wr(iC(t, "addons")), e = wr(iC(t, "manager"));
|
|
26282
26282
|
if ((A || e) && e0.info("=> Loading custom manager config"), A && e)
|
|
26283
26283
|
throw new Error(HQ.dedent`
|
|
@@ -26287,12 +26287,12 @@ function c3({ configDir: t }) {
|
|
|
26287
26287
|
)})`);
|
|
26288
26288
|
return e || A;
|
|
26289
26289
|
}
|
|
26290
|
-
s(
|
|
26290
|
+
s(c4, "loadManagerOrAddonsFile");
|
|
26291
26291
|
|
|
26292
26292
|
// src/common/utils/load-preview-or-config-file.ts
|
|
26293
26293
|
var jQ = cA(gt(), 1);
|
|
26294
26294
|
import { resolve as sC } from "node:path";
|
|
26295
|
-
function
|
|
26295
|
+
function u4({ configDir: t }) {
|
|
26296
26296
|
let A = wr(sC(t, "config")), e = wr(sC(t, "preview"));
|
|
26297
26297
|
if (A && e)
|
|
26298
26298
|
throw new Error(jQ.dedent`
|
|
@@ -26302,12 +26302,12 @@ function u3({ configDir: t }) {
|
|
|
26302
26302
|
)})`);
|
|
26303
26303
|
return e || A;
|
|
26304
26304
|
}
|
|
26305
|
-
s(
|
|
26305
|
+
s(u4, "loadPreviewOrConfigFile");
|
|
26306
26306
|
|
|
26307
26307
|
// src/common/utils/log.ts
|
|
26308
26308
|
var or = cA(_i(), 1);
|
|
26309
26309
|
import { logger as Mn } from "storybook/internal/node-logger";
|
|
26310
|
-
var
|
|
26310
|
+
var d4 = /* @__PURE__ */ s((t) => (process.stdout.write(or.default.cyan(" \u2022 ") + t), (A, e) => {
|
|
26311
26311
|
if (A) {
|
|
26312
26312
|
if (process.stdout.write(`. ${or.default.red("\u2716")}
|
|
26313
26313
|
`), Mn.error(`
|
|
@@ -26323,13 +26323,13 @@ var d3 = /* @__PURE__ */ s((t) => (process.stdout.write(or.default.cyan(" \u2022
|
|
|
26323
26323
|
process.stdout.write(`. ${or.default.green("\u2713")}
|
|
26324
26324
|
`);
|
|
26325
26325
|
}), "commandLog");
|
|
26326
|
-
function
|
|
26326
|
+
function p4(t) {
|
|
26327
26327
|
let A = t.split(`
|
|
26328
26328
|
`).map((e) => ` ${e}`).join(`
|
|
26329
26329
|
`);
|
|
26330
26330
|
Mn.log(A);
|
|
26331
26331
|
}
|
|
26332
|
-
s(
|
|
26332
|
+
s(p4, "paddedLog");
|
|
26333
26333
|
function qQ(t, A) {
|
|
26334
26334
|
let e = "";
|
|
26335
26335
|
for (let r = 0; r < A; r += 1)
|
|
@@ -26337,7 +26337,7 @@ function qQ(t, A) {
|
|
|
26337
26337
|
return e;
|
|
26338
26338
|
}
|
|
26339
26339
|
s(qQ, "getChars");
|
|
26340
|
-
function
|
|
26340
|
+
function w4(t, A) {
|
|
26341
26341
|
let e = 0, i = t.map((n) => (e = n.length > e ? n.length : e, n)).map((n) => {
|
|
26342
26342
|
let o = e - n.length, g = n + qQ(" ", o);
|
|
26343
26343
|
return g = qQ(" ", A || 2) + or.default.inverse(` ${g} `), g;
|
|
@@ -26345,14 +26345,14 @@ function w3(t, A) {
|
|
|
26345
26345
|
`);
|
|
26346
26346
|
Mn.log(i);
|
|
26347
26347
|
}
|
|
26348
|
-
s(
|
|
26348
|
+
s(w4, "codeLog");
|
|
26349
26349
|
|
|
26350
26350
|
// src/common/utils/log-config.ts
|
|
26351
26351
|
var zQ = cA(_i(), 1);
|
|
26352
|
-
function
|
|
26352
|
+
function D4(t, A) {
|
|
26353
26353
|
console.log(zQ.default.cyan(String(t))), console.dir(A, { depth: null });
|
|
26354
26354
|
}
|
|
26355
|
-
s(
|
|
26355
|
+
s(D4, "logConfig");
|
|
26356
26356
|
|
|
26357
26357
|
// src/common/utils/normalize-stories.ts
|
|
26358
26358
|
var VQ = cA(Nn(), 1);
|
|
@@ -26411,7 +26411,7 @@ var Rn = "", o0 = "**/*.@(mdx|stories.@(js|jsx|mjs|ts|tsx))", g0 = /* @__PURE__
|
|
|
26411
26411
|
directory: g,
|
|
26412
26412
|
importPathMatcher: C
|
|
26413
26413
|
};
|
|
26414
|
-
}, "normalizeStoriesEntry"),
|
|
26414
|
+
}, "normalizeStoriesEntry"), v4 = /* @__PURE__ */ s((t, A) => {
|
|
26415
26415
|
if (!t || Array.isArray(t) && t.length === 0)
|
|
26416
26416
|
throw new n0();
|
|
26417
26417
|
return t.map((e) => C0(e, A));
|
|
@@ -26419,18 +26419,18 @@ var Rn = "", o0 = "**/*.@(mdx|stories.@(js|jsx|mjs|ts|tsx))", g0 = /* @__PURE__
|
|
|
26419
26419
|
|
|
26420
26420
|
// src/common/utils/readTemplate.ts
|
|
26421
26421
|
import { readFile as c0 } from "node:fs/promises";
|
|
26422
|
-
async function
|
|
26422
|
+
async function P4(t) {
|
|
26423
26423
|
return c0(t, {
|
|
26424
26424
|
encoding: "utf8"
|
|
26425
26425
|
});
|
|
26426
26426
|
}
|
|
26427
|
-
s(
|
|
26427
|
+
s(P4, "readTemplate");
|
|
26428
26428
|
|
|
26429
26429
|
// src/common/utils/remove.ts
|
|
26430
26430
|
var XQ = cA(gt(), 1);
|
|
26431
26431
|
import { readConfig as I0, writeConfig as h0 } from "storybook/internal/csf-tools";
|
|
26432
26432
|
import { logger as vn } from "storybook/internal/node-logger";
|
|
26433
|
-
async function
|
|
26433
|
+
async function T4(t, A) {
|
|
26434
26434
|
let { packageManager: e, skipInstall: r } = A, { mainConfigPath: i, configDir: n } = Ga(A.configDir);
|
|
26435
26435
|
if (typeof n > "u")
|
|
26436
26436
|
throw new Error(XQ.dedent`
|
|
@@ -26451,31 +26451,31 @@ async function T3(t, A) {
|
|
|
26451
26451
|
}
|
|
26452
26452
|
}
|
|
26453
26453
|
}
|
|
26454
|
-
s(
|
|
26454
|
+
s(T4, "removeAddon");
|
|
26455
26455
|
|
|
26456
26456
|
// src/common/utils/symlinks.ts
|
|
26457
|
-
function
|
|
26457
|
+
function q4() {
|
|
26458
26458
|
let { NODE_OPTIONS: t, NODE_PRESERVE_SYMLINKS: A } = process.env;
|
|
26459
26459
|
return !!A || t?.includes("--preserve-symlinks");
|
|
26460
26460
|
}
|
|
26461
|
-
s(
|
|
26461
|
+
s(q4, "isPreservingSymlinks");
|
|
26462
26462
|
|
|
26463
26463
|
// src/common/utils/template.ts
|
|
26464
26464
|
import { existsSync as $Q, readFileSync as Ln } from "node:fs";
|
|
26465
26465
|
import { dirname as ZQ, resolve as Af } from "node:path";
|
|
26466
26466
|
var ef = /* @__PURE__ */ s((t, A = {}) => Object.entries(A).reduce((e, [r, i]) => e.replace(new RegExp(`%${r}%`, "g"), i), t), "interpolate");
|
|
26467
|
-
function $
|
|
26467
|
+
function $4(t, A) {
|
|
26468
26468
|
let e = ZQ(v.resolve("storybook/internal/package.json")), r = Ln(`${e}/assets/server/base-preview-body.html`, "utf8"), i = Af(t, "preview-\
|
|
26469
26469
|
body.html"), n = r;
|
|
26470
26470
|
return $Q(i) && (n = Ln(i, "utf8") + n), ef(n, A);
|
|
26471
26471
|
}
|
|
26472
|
-
s($
|
|
26473
|
-
function
|
|
26472
|
+
s($4, "getPreviewBodyTemplate");
|
|
26473
|
+
function Z4(t, A) {
|
|
26474
26474
|
let e = ZQ(v.resolve("storybook/internal/package.json")), r = Ln(`${e}/assets/server/base-preview-head.html`, "utf8"), i = Af(t, "preview-\
|
|
26475
26475
|
head.html"), n = r;
|
|
26476
26476
|
return $Q(i) && (n += Ln(i, "utf8")), ef(n, A);
|
|
26477
26477
|
}
|
|
26478
|
-
s(
|
|
26478
|
+
s(Z4, "getPreviewHeadTemplate");
|
|
26479
26479
|
|
|
26480
26480
|
// src/common/utils/validate-config.ts
|
|
26481
26481
|
import { join as l0 } from "node:path";
|
|
@@ -27847,13 +27847,13 @@ export {
|
|
|
27847
27847
|
SW as builderPackages,
|
|
27848
27848
|
Oj as cache,
|
|
27849
27849
|
jW as checkAddonOrder,
|
|
27850
|
-
|
|
27851
|
-
|
|
27850
|
+
w4 as codeLog,
|
|
27851
|
+
d4 as commandLog,
|
|
27852
27852
|
lQ as commonGlobOptions,
|
|
27853
27853
|
jg as createFileSystemCache,
|
|
27854
27854
|
GW as createLogStream,
|
|
27855
27855
|
fQ as extractProperFrameworkName,
|
|
27856
|
-
|
|
27856
|
+
b3 as extractProperRendererNameFromFramework,
|
|
27857
27857
|
Jb as filterPresetsConfig,
|
|
27858
27858
|
Ua as findConfigFile,
|
|
27859
27859
|
cV as formatFileContent,
|
|
@@ -27861,7 +27861,7 @@ export {
|
|
|
27861
27861
|
EQ as frameworkToRenderer,
|
|
27862
27862
|
Cf as getAddonNames,
|
|
27863
27863
|
ER as getAutoRefs,
|
|
27864
|
-
|
|
27864
|
+
E3 as getBuilderOptions,
|
|
27865
27865
|
qQ as getChars,
|
|
27866
27866
|
UW as getCoercedStorybookVersion,
|
|
27867
27867
|
Ga as getConfigInfo,
|
|
@@ -27872,11 +27872,11 @@ export {
|
|
|
27872
27872
|
Bl as getInterpretedFileWithExt,
|
|
27873
27873
|
qB as getPackageDetails,
|
|
27874
27874
|
qb as getPresets,
|
|
27875
|
-
$
|
|
27876
|
-
|
|
27875
|
+
$4 as getPreviewBodyTemplate,
|
|
27876
|
+
Z4 as getPreviewHeadTemplate,
|
|
27877
27877
|
pA as getProjectRoot,
|
|
27878
|
-
|
|
27879
|
-
|
|
27878
|
+
Y3 as getRefs,
|
|
27879
|
+
F3 as getRendererName,
|
|
27880
27880
|
SV as getStoryId,
|
|
27881
27881
|
k0 as getStoryTitle,
|
|
27882
27882
|
zB as getStorybookConfiguration,
|
|
@@ -27884,28 +27884,28 @@ export {
|
|
|
27884
27884
|
Y0 as getSyncedStorybookAddons,
|
|
27885
27885
|
OQ as globToRegexp,
|
|
27886
27886
|
dg as interopRequireDefault,
|
|
27887
|
-
|
|
27887
|
+
X3 as interpolate,
|
|
27888
27888
|
iW as invalidateProjectRootCache,
|
|
27889
27889
|
$B as isCorePackage,
|
|
27890
|
-
|
|
27890
|
+
q4 as isPreservingSymlinks,
|
|
27891
27891
|
JW as isSatelliteAddon,
|
|
27892
|
-
|
|
27892
|
+
_1 as loadAllPresets,
|
|
27893
27893
|
BE as loadCustomPresets,
|
|
27894
|
-
|
|
27895
|
-
|
|
27896
|
-
|
|
27894
|
+
o3 as loadEnvs,
|
|
27895
|
+
s4 as loadMainConfig,
|
|
27896
|
+
c4 as loadManagerOrAddonsFile,
|
|
27897
27897
|
jb as loadPreset,
|
|
27898
|
-
|
|
27899
|
-
|
|
27898
|
+
u4 as loadPreviewOrConfigFile,
|
|
27899
|
+
D4 as logConfig,
|
|
27900
27900
|
JB as nodePathsToArray,
|
|
27901
|
-
|
|
27901
|
+
v4 as normalizeStories,
|
|
27902
27902
|
C0 as normalizeStoriesEntry,
|
|
27903
27903
|
OB as normalizeStoryPath,
|
|
27904
|
-
|
|
27904
|
+
p4 as paddedLog,
|
|
27905
27905
|
PW as parseList,
|
|
27906
27906
|
gf as posix,
|
|
27907
|
-
|
|
27908
|
-
|
|
27907
|
+
P4 as readTemplate,
|
|
27908
|
+
T4 as removeAddon,
|
|
27909
27909
|
_a as rendererPackages,
|
|
27910
27910
|
Ob as resolveAddonName,
|
|
27911
27911
|
VE as resolvePathInStorybookCache,
|
|
@@ -27913,8 +27913,8 @@ export {
|
|
|
27913
27913
|
KAA as scanAndTransformFiles,
|
|
27914
27914
|
hi as serverRequire,
|
|
27915
27915
|
li as serverResolve,
|
|
27916
|
-
|
|
27917
|
-
|
|
27916
|
+
g3 as stringifyEnvs,
|
|
27917
|
+
a3 as stringifyProcessEnvs,
|
|
27918
27918
|
mE as stripAbsNodeModulesPath,
|
|
27919
27919
|
_V as syncStorybookAddons,
|
|
27920
27920
|
JM as temporaryDirectory,
|