storybook 9.1.2 → 9.1.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/README.md +28 -41
- package/dist/bin/index.cjs +43 -43
- package/dist/bin/index.js +43 -43
- package/dist/cli/bin/index.cjs +1211 -1211
- package/dist/cli/bin/index.js +1214 -1214
- package/dist/common/index.cjs +58 -58
- package/dist/common/index.js +104 -104
- package/dist/core-server/index.cjs +3105 -3094
- package/dist/core-server/index.js +3409 -3398
- package/dist/core-server/presets/common-manager.js +142 -119
- package/dist/core-server/presets/common-preset.cjs +2489 -2483
- package/dist/core-server/presets/common-preset.js +7445 -7439
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.cjs +57 -51
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +60 -52
- package/dist/csf-tools/index.cjs +4 -4
- package/dist/csf-tools/index.js +4 -4
- package/dist/manager/globals-runtime.js +7376 -7365
- package/dist/manager/runtime.js +32 -18
- package/dist/manager-api/index.cjs +546 -535
- package/dist/manager-api/index.js +653 -642
- package/dist/manager-errors.js +44 -33
- package/dist/preview/runtime.js +5559 -5548
- package/dist/preview-api/index.cjs +4 -4
- package/dist/preview-api/index.js +4 -4
- package/dist/preview-errors.cjs +82 -71
- package/dist/preview-errors.js +89 -78
- package/dist/router/index.cjs +1 -1
- package/dist/router/index.js +1 -1
- package/dist/server-errors.cjs +121 -77
- package/dist/server-errors.d.ts +14 -1
- package/dist/server-errors.js +135 -91
- package/dist/telemetry/index.cjs +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/test/index.cjs +1 -1
- package/dist/test/index.js +1 -1
- package/package.json +17 -3
package/dist/server-errors.js
CHANGED
|
@@ -4,20 +4,20 @@ import { dirname as ESM_COMPAT_dirname } from 'node:path';
|
|
|
4
4
|
const __filename = ESM_COMPAT_fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = ESM_COMPAT_dirname(__filename);
|
|
6
6
|
const require = ESM_COMPAT_Module.createRequire(import.meta.url);
|
|
7
|
-
var
|
|
7
|
+
var ue = Object.create;
|
|
8
8
|
var R = Object.defineProperty;
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
9
|
+
var le = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var me = Object.getOwnPropertyNames;
|
|
11
|
+
var ge = Object.getPrototypeOf, be = Object.prototype.hasOwnProperty;
|
|
12
12
|
var r = (t, e) => R(t, "name", { value: e, configurable: !0 });
|
|
13
13
|
var O = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
|
|
14
|
-
var
|
|
14
|
+
var de = (t, e, o, n) => {
|
|
15
15
|
if (e && typeof e == "object" || typeof e == "function")
|
|
16
|
-
for (let c of
|
|
17
|
-
!
|
|
16
|
+
for (let c of me(e))
|
|
17
|
+
!be.call(t, c) && c !== o && R(t, c, { get: () => e[c], enumerable: !(n = le(e, c)) || n.enumerable });
|
|
18
18
|
return t;
|
|
19
19
|
};
|
|
20
|
-
var A = (t, e, o) => (o = t != null ?
|
|
20
|
+
var A = (t, e, o) => (o = t != null ? ue(ge(t)) : {}, de(
|
|
21
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
23
23
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -27,19 +27,19 @@ var A = (t, e, o) => (o = t != null ? ae(ue(t)) : {}, me(
|
|
|
27
27
|
));
|
|
28
28
|
|
|
29
29
|
// ../node_modules/picocolors/picocolors.js
|
|
30
|
-
var C = O((
|
|
31
|
-
var
|
|
32
|
-
"--color") ||
|
|
30
|
+
var C = O((xe, k) => {
|
|
31
|
+
var f = process || {}, _ = f.argv || [], h = f.env || {}, pe = !(h.NO_COLOR || _.includes("--no-color")) && (!!h.FORCE_COLOR || _.includes(
|
|
32
|
+
"--color") || f.platform === "win32" || (f.stdout || {}).isTTY && h.TERM !== "dumb" || !!h.CI), ye = /* @__PURE__ */ r((t, e, o = t) => (n) => {
|
|
33
33
|
let c = "" + n, u = c.indexOf(e, t.length);
|
|
34
|
-
return ~u ? t +
|
|
35
|
-
}, "formatter"),
|
|
34
|
+
return ~u ? t + he(c, e, o, u) + e : t + c + e;
|
|
35
|
+
}, "formatter"), he = /* @__PURE__ */ r((t, e, o, n) => {
|
|
36
36
|
let c = "", u = 0;
|
|
37
37
|
do
|
|
38
38
|
c += t.substring(u, n) + o, u = n + e.length, n = t.indexOf(e, u);
|
|
39
39
|
while (~n);
|
|
40
40
|
return c + t.substring(u);
|
|
41
|
-
}, "replaceClose"), w = /* @__PURE__ */ r((t =
|
|
42
|
-
let e = t ?
|
|
41
|
+
}, "replaceClose"), w = /* @__PURE__ */ r((t = pe) => {
|
|
42
|
+
let e = t ? ye : () => String;
|
|
43
43
|
return {
|
|
44
44
|
isColorSupported: t,
|
|
45
45
|
reset: e("\x1B[0m", "\x1B[0m"),
|
|
@@ -99,11 +99,11 @@ var I = O((y) => {
|
|
|
99
99
|
e[o - 1] = arguments[o];
|
|
100
100
|
var n = Array.from(typeof t == "string" ? [t] : t);
|
|
101
101
|
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
102
|
-
var c = n.reduce(function(m,
|
|
103
|
-
var p =
|
|
104
|
-
return p ? m.concat(p.map(function(
|
|
105
|
-
var
|
|
106
|
-
return (d = (
|
|
102
|
+
var c = n.reduce(function(m, E) {
|
|
103
|
+
var p = E.match(/\n([\t ]+|(?!\s).)/g);
|
|
104
|
+
return p ? m.concat(p.map(function(x) {
|
|
105
|
+
var b, d;
|
|
106
|
+
return (d = (b = x.match(/[\t ]/g)) === null || b === void 0 ? void 0 : b.length) !== null && d !== void 0 ? d : 0;
|
|
107
107
|
})) : m;
|
|
108
108
|
}, []);
|
|
109
109
|
if (c.length) {
|
|
@@ -115,16 +115,16 @@ var I = O((y) => {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
n[0] = n[0].replace(/^\r?\n/, "");
|
|
118
|
-
var
|
|
119
|
-
return e.forEach(function(m,
|
|
120
|
-
var p =
|
|
118
|
+
var g = n[0];
|
|
119
|
+
return e.forEach(function(m, E) {
|
|
120
|
+
var p = g.match(/(?:^|\n)( *)$/), x = p ? p[1] : "", b = m;
|
|
121
121
|
typeof m == "string" && m.includes(`
|
|
122
|
-
`) && (
|
|
123
|
-
`).map(function(d,
|
|
124
|
-
return
|
|
122
|
+
`) && (b = String(m).split(`
|
|
123
|
+
`).map(function(d, ce) {
|
|
124
|
+
return ce === 0 ? d : "" + x + d;
|
|
125
125
|
}).join(`
|
|
126
|
-
`)),
|
|
127
|
-
}),
|
|
126
|
+
`)), g += b + n[E + 1];
|
|
127
|
+
}), g;
|
|
128
128
|
}
|
|
129
129
|
r(S, "dedent");
|
|
130
130
|
y.dedent = S;
|
|
@@ -143,6 +143,17 @@ function M({
|
|
|
143
143
|
return `SB_${e}_${o}`;
|
|
144
144
|
}
|
|
145
145
|
r(M, "parseErrorCode");
|
|
146
|
+
function T(t) {
|
|
147
|
+
if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(t))
|
|
148
|
+
return t;
|
|
149
|
+
try {
|
|
150
|
+
let e = new URL(t);
|
|
151
|
+
return e.searchParams.set("ref", "error"), e.toString();
|
|
152
|
+
} catch {
|
|
153
|
+
return t;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
r(T, "appendErrorRef");
|
|
146
157
|
var a = class t extends Error {
|
|
147
158
|
constructor(o) {
|
|
148
159
|
super(t.getFullMessage(o));
|
|
@@ -173,19 +184,19 @@ var a = class t extends Error {
|
|
|
173
184
|
category: c,
|
|
174
185
|
message: u
|
|
175
186
|
}) {
|
|
176
|
-
let
|
|
177
|
-
return o === !0 ?
|
|
178
|
-
(
|
|
179
|
-
${o.map((m) => ` - ${m}`).join(`
|
|
180
|
-
`)}`), `${u}${
|
|
187
|
+
let g;
|
|
188
|
+
return o === !0 ? g = `https://storybook.js.org/error/${M({ code: n, category: c })}?ref=error` : typeof o == "string" ? g = T(o) : Array.
|
|
189
|
+
isArray(o) && (g = `
|
|
190
|
+
${o.map((m) => ` - ${T(m)}`).join(`
|
|
191
|
+
`)}`), `${u}${g != null ? `
|
|
181
192
|
|
|
182
|
-
More info: ${
|
|
193
|
+
More info: ${g}
|
|
183
194
|
` : ""}`;
|
|
184
195
|
}
|
|
185
196
|
};
|
|
186
197
|
|
|
187
198
|
// src/server-errors.ts
|
|
188
|
-
var
|
|
199
|
+
var fe = /* @__PURE__ */ ((s) => (s.CLI = "CLI", s.CLI_INIT = "CLI_INIT", s.CLI_AUTOMIGRATE = "CLI_AUTOMIGRATE", s.CLI_UPGRADE = "CLI_UPGRAD\
|
|
189
200
|
E", s.CLI_ADD = "CLI_ADD", s.CODEMOD = "CODEMOD", s.CORE_SERVER = "CORE-SERVER", s.CSF_PLUGIN = "CSF-PLUGIN", s.CSF_TOOLS = "CSF-TOOLS", s.CORE_COMMON =
|
|
190
201
|
"CORE-COMMON", s.NODE_LOGGER = "NODE-LOGGER", s.TELEMETRY = "TELEMETRY", s.BUILDER_MANAGER = "BUILDER-MANAGER", s.BUILDER_VITE = "BUILDER-VI\
|
|
191
202
|
TE", s.BUILDER_WEBPACK5 = "BUILDER-WEBPACK5", s.SOURCE_LOADER = "SOURCE-LOADER", s.POSTINSTALL = "POSTINSTALL", s.DOCS_TOOLS = "DOCS-TOOLS",
|
|
@@ -195,7 +206,7 @@ FRAMEWORK_HTML-VITE", s.FRAMEWORK_HTML_WEBPACK5 = "FRAMEWORK_HTML-WEBPACK5", s.F
|
|
|
195
206
|
"FRAMEWORK_REACT-WEBPACK5", s.FRAMEWORK_SERVER_WEBPACK5 = "FRAMEWORK_SERVER-WEBPACK5", s.FRAMEWORK_SVELTE_VITE = "FRAMEWORK_SVELTE-VITE", s.
|
|
196
207
|
FRAMEWORK_SVELTEKIT = "FRAMEWORK_SVELTEKIT", s.FRAMEWORK_VUE_VITE = "FRAMEWORK_VUE-VITE", s.FRAMEWORK_VUE_WEBPACK5 = "FRAMEWORK_VUE-WEBPACK5",
|
|
197
208
|
s.FRAMEWORK_VUE3_VITE = "FRAMEWORK_VUE3-VITE", s.FRAMEWORK_VUE3_WEBPACK5 = "FRAMEWORK_VUE3-WEBPACK5", s.FRAMEWORK_WEB_COMPONENTS_VITE = "FRA\
|
|
198
|
-
MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WEB-COMPONENTS-WEBPACK5", s))(
|
|
209
|
+
MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WEB-COMPONENTS-WEBPACK5", s))(fe || {}), W = class extends a {
|
|
199
210
|
static {
|
|
200
211
|
r(this, "NxProjectDetectedError");
|
|
201
212
|
}
|
|
@@ -209,7 +220,7 @@ MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WE
|
|
|
209
220
|
Run "nx g @nx/storybook:configuration <your-project-name>" to add Storybook to a given Nx app or lib.`
|
|
210
221
|
});
|
|
211
222
|
}
|
|
212
|
-
},
|
|
223
|
+
}, v = class extends a {
|
|
213
224
|
static {
|
|
214
225
|
r(this, "MissingFrameworkFieldError");
|
|
215
226
|
}
|
|
@@ -241,7 +252,7 @@ MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WE
|
|
|
241
252
|
static {
|
|
242
253
|
r(this, "InvalidFrameworkNameError");
|
|
243
254
|
}
|
|
244
|
-
},
|
|
255
|
+
}, L = class extends a {
|
|
245
256
|
constructor(o) {
|
|
246
257
|
super({
|
|
247
258
|
category: "CORE-COMMON",
|
|
@@ -274,7 +285,7 @@ MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WE
|
|
|
274
285
|
Please remove the CLI flag from your storybook script and use only the 'staticDirs' option instead.`
|
|
275
286
|
});
|
|
276
287
|
}
|
|
277
|
-
},
|
|
288
|
+
}, P = class extends a {
|
|
278
289
|
static {
|
|
279
290
|
r(this, "InvalidStoriesEntryError");
|
|
280
291
|
}
|
|
@@ -290,7 +301,7 @@ MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WE
|
|
|
290
301
|
Please check your main configuration file and make sure it exports a 'stories' field that is not an empty array.`
|
|
291
302
|
});
|
|
292
303
|
}
|
|
293
|
-
},
|
|
304
|
+
}, j = class extends a {
|
|
294
305
|
static {
|
|
295
306
|
r(this, "WebpackMissingStatsError");
|
|
296
307
|
}
|
|
@@ -307,7 +318,7 @@ MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WE
|
|
|
307
318
|
Storybook needs Webpack stats (including errors) in order to build correctly.`
|
|
308
319
|
});
|
|
309
320
|
}
|
|
310
|
-
},
|
|
321
|
+
}, N = class extends a {
|
|
311
322
|
constructor(o) {
|
|
312
323
|
super({
|
|
313
324
|
category: "BUILDER-WEBPACK5",
|
|
@@ -320,16 +331,16 @@ MEWORK_WEB-COMPONENTS-VITE", s.FRAMEWORK_WEB_COMPONENTS_WEBPACK5 = "FRAMEWORK_WE
|
|
|
320
331
|
r(this, "WebpackInvocationError");
|
|
321
332
|
}
|
|
322
333
|
};
|
|
323
|
-
function
|
|
334
|
+
function V(t = "") {
|
|
324
335
|
return t.replace(/\u001B\[[0-9;]*m/g, "");
|
|
325
336
|
}
|
|
326
|
-
r(
|
|
327
|
-
var
|
|
337
|
+
r(V, "removeAnsiEscapeCodes");
|
|
338
|
+
var $ = class extends a {
|
|
328
339
|
constructor(o) {
|
|
329
340
|
o.errors = o.errors.map((n) => ({
|
|
330
341
|
...n,
|
|
331
|
-
message:
|
|
332
|
-
stack:
|
|
342
|
+
message: V(n.message),
|
|
343
|
+
stack: V(n.stack),
|
|
333
344
|
name: n.name
|
|
334
345
|
}));
|
|
335
346
|
super({
|
|
@@ -346,12 +357,12 @@ var V = class extends a {
|
|
|
346
357
|
static {
|
|
347
358
|
r(this, "WebpackCompilationError");
|
|
348
359
|
}
|
|
349
|
-
},
|
|
360
|
+
}, F = class extends a {
|
|
350
361
|
constructor(o) {
|
|
351
362
|
super({
|
|
352
363
|
category: "CLI_INIT",
|
|
353
364
|
code: 2,
|
|
354
|
-
documentation: "https://storybook.js.org/docs/faq#error-no-angularjson-file-found",
|
|
365
|
+
documentation: "https://storybook.js.org/docs/faq#error-no-angularjson-file-found?ref=error",
|
|
355
366
|
message: i.dedent`
|
|
356
367
|
An angular.json file was not found in the current working directory: ${o.path}
|
|
357
368
|
Storybook needs it to work properly, so please rerun the command at the root of your project, where the angular.json file is located.`
|
|
@@ -361,7 +372,7 @@ var V = class extends a {
|
|
|
361
372
|
static {
|
|
362
373
|
r(this, "MissingAngularJsonError");
|
|
363
374
|
}
|
|
364
|
-
},
|
|
375
|
+
}, U = class extends a {
|
|
365
376
|
static {
|
|
366
377
|
r(this, "AngularLegacyBuildOptionsError");
|
|
367
378
|
}
|
|
@@ -400,7 +411,7 @@ var V = class extends a {
|
|
|
400
411
|
static {
|
|
401
412
|
r(this, "CriticalPresetLoadError");
|
|
402
413
|
}
|
|
403
|
-
},
|
|
414
|
+
}, G = class extends a {
|
|
404
415
|
static {
|
|
405
416
|
r(this, "MissingBuilderError");
|
|
406
417
|
}
|
|
@@ -421,7 +432,7 @@ var V = class extends a {
|
|
|
421
432
|
If you believe this is a bug, please describe your issue in detail on Github.`
|
|
422
433
|
});
|
|
423
434
|
}
|
|
424
|
-
},
|
|
435
|
+
}, Y = class extends a {
|
|
425
436
|
constructor(o) {
|
|
426
437
|
super({
|
|
427
438
|
category: "FRAMEWORK_NEXTJS",
|
|
@@ -435,7 +446,7 @@ var V = class extends a {
|
|
|
435
446
|
static {
|
|
436
447
|
r(this, "GoogleFontsDownloadError");
|
|
437
448
|
}
|
|
438
|
-
},
|
|
449
|
+
}, J = class extends a {
|
|
439
450
|
constructor(o) {
|
|
440
451
|
super({
|
|
441
452
|
category: "FRAMEWORK_NEXTJS",
|
|
@@ -451,7 +462,7 @@ var V = class extends a {
|
|
|
451
462
|
static {
|
|
452
463
|
r(this, "GoogleFontsLoadingError");
|
|
453
464
|
}
|
|
454
|
-
},
|
|
465
|
+
}, X = class extends a {
|
|
455
466
|
static {
|
|
456
467
|
r(this, "SvelteViteWithSvelteKitError");
|
|
457
468
|
}
|
|
@@ -465,7 +476,7 @@ var V = class extends a {
|
|
|
465
476
|
Please use the @storybook/sveltekit framework instead.`
|
|
466
477
|
});
|
|
467
478
|
}
|
|
468
|
-
},
|
|
479
|
+
}, H = class extends a {
|
|
469
480
|
constructor(o) {
|
|
470
481
|
super({
|
|
471
482
|
category: "CORE-SERVER",
|
|
@@ -488,7 +499,7 @@ var V = class extends a {
|
|
|
488
499
|
static {
|
|
489
500
|
r(this, "NoMatchingExportError");
|
|
490
501
|
}
|
|
491
|
-
},
|
|
502
|
+
}, z = class extends a {
|
|
492
503
|
constructor(o) {
|
|
493
504
|
let n = [
|
|
494
505
|
`Storybook failed to load ${o.location}`,
|
|
@@ -525,17 +536,17 @@ var V = class extends a {
|
|
|
525
536
|
static {
|
|
526
537
|
r(this, "MainFileESMOnlyImportError");
|
|
527
538
|
}
|
|
528
|
-
},
|
|
539
|
+
}, q = class extends a {
|
|
529
540
|
constructor(o) {
|
|
530
541
|
let n = {
|
|
531
542
|
storybook: {
|
|
532
543
|
helperMessage: "You can pass a --config-dir flag to tell Storybook, where your main.js file is located at.",
|
|
533
|
-
documentation: "https://storybook.js.org/docs/configure"
|
|
544
|
+
documentation: "https://storybook.js.org/docs/configure?ref=error"
|
|
534
545
|
},
|
|
535
546
|
vitest: {
|
|
536
547
|
helperMessage: "You can pass a configDir plugin option to tell where your main.js file is located at.",
|
|
537
548
|
// TODO: add proper docs once available
|
|
538
|
-
documentation: "https://storybook.js.org/docs/configure"
|
|
549
|
+
documentation: "https://storybook.js.org/docs/configure?ref=error"
|
|
539
550
|
}
|
|
540
551
|
}, { documentation: c, helperMessage: u } = n[o.source || "storybook"];
|
|
541
552
|
super({
|
|
@@ -553,7 +564,7 @@ var V = class extends a {
|
|
|
553
564
|
static {
|
|
554
565
|
r(this, "MainFileMissingError");
|
|
555
566
|
}
|
|
556
|
-
},
|
|
567
|
+
}, Q = class extends a {
|
|
557
568
|
constructor(o) {
|
|
558
569
|
let n = l.default.white(
|
|
559
570
|
(o.error.stack || o.error.message).replaceAll(process.cwd(), "")
|
|
@@ -572,7 +583,7 @@ var V = class extends a {
|
|
|
572
583
|
static {
|
|
573
584
|
r(this, "MainFileEvaluationError");
|
|
574
585
|
}
|
|
575
|
-
},
|
|
586
|
+
}, Z = class extends a {
|
|
576
587
|
constructor(o) {
|
|
577
588
|
super({
|
|
578
589
|
category: "CORE-SERVER",
|
|
@@ -588,7 +599,7 @@ var V = class extends a {
|
|
|
588
599
|
static {
|
|
589
600
|
r(this, "StatusTypeIdMismatchError");
|
|
590
601
|
}
|
|
591
|
-
},
|
|
602
|
+
}, ee = class extends a {
|
|
592
603
|
constructor(o) {
|
|
593
604
|
super({
|
|
594
605
|
category: "CLI_INIT",
|
|
@@ -604,7 +615,7 @@ var V = class extends a {
|
|
|
604
615
|
static {
|
|
605
616
|
r(this, "GenerateNewProjectOnInitError");
|
|
606
617
|
}
|
|
607
|
-
},
|
|
618
|
+
}, oe = class extends a {
|
|
608
619
|
constructor(o) {
|
|
609
620
|
super({
|
|
610
621
|
category: "CLI_UPGRADE",
|
|
@@ -626,7 +637,7 @@ var V = class extends a {
|
|
|
626
637
|
static {
|
|
627
638
|
r(this, "UpgradeStorybookToLowerVersionError");
|
|
628
639
|
}
|
|
629
|
-
},
|
|
640
|
+
}, te = class extends a {
|
|
630
641
|
static {
|
|
631
642
|
r(this, "UpgradeStorybookUnknownCurrentVersionError");
|
|
632
643
|
}
|
|
@@ -641,7 +652,7 @@ var V = class extends a {
|
|
|
641
652
|
It might help if you specify your Storybook config directory with the --config-dir flag.`
|
|
642
653
|
});
|
|
643
654
|
}
|
|
644
|
-
},
|
|
655
|
+
}, re = class extends a {
|
|
645
656
|
static {
|
|
646
657
|
r(this, "NoStatsForViteDevError");
|
|
647
658
|
}
|
|
@@ -655,7 +666,7 @@ var V = class extends a {
|
|
|
655
666
|
Please remove the \`--stats-json\` flag when running in dev mode.`
|
|
656
667
|
});
|
|
657
668
|
}
|
|
658
|
-
},
|
|
669
|
+
}, se = class extends a {
|
|
659
670
|
constructor(o) {
|
|
660
671
|
super({
|
|
661
672
|
category: "CLI",
|
|
@@ -669,7 +680,7 @@ var V = class extends a {
|
|
|
669
680
|
static {
|
|
670
681
|
r(this, "FindPackageVersionsError");
|
|
671
682
|
}
|
|
672
|
-
},
|
|
683
|
+
}, ne = class extends a {
|
|
673
684
|
constructor(o) {
|
|
674
685
|
super({
|
|
675
686
|
category: "FRAMEWORK_NEXTJS",
|
|
@@ -701,34 +712,67 @@ var V = class extends a {
|
|
|
701
712
|
static {
|
|
702
713
|
r(this, "IncompatiblePostCssConfigError");
|
|
703
714
|
}
|
|
715
|
+
}, ae = class extends a {
|
|
716
|
+
constructor(o) {
|
|
717
|
+
super({
|
|
718
|
+
category: "CORE-SERVER",
|
|
719
|
+
code: 1,
|
|
720
|
+
message: i.dedent`
|
|
721
|
+
Unable to save global settings file to ${o.filePath}
|
|
722
|
+
${o.error && `Reason: ${o.error}`}`
|
|
723
|
+
});
|
|
724
|
+
this.data = o;
|
|
725
|
+
}
|
|
726
|
+
static {
|
|
727
|
+
r(this, "SavingGlobalSettingsFileError");
|
|
728
|
+
}
|
|
729
|
+
}, ie = class extends a {
|
|
730
|
+
static {
|
|
731
|
+
r(this, "CommonJsConfigNotSupportedError");
|
|
732
|
+
}
|
|
733
|
+
constructor() {
|
|
734
|
+
super({
|
|
735
|
+
category: "CLI_AUTOMIGRATE",
|
|
736
|
+
code: 1,
|
|
737
|
+
documentation: "https://storybook.js.org/docs/configure/overview?ref=error#es-modules",
|
|
738
|
+
message: i.dedent`
|
|
739
|
+
Support for CommonJS Storybook config files has been removed in Storybook 10.0.0.
|
|
740
|
+
Please migrate your config to a valid ESM file.
|
|
741
|
+
|
|
742
|
+
CommonJS files (ending in .cjs, .cts, .cjsx, .ctsx) or files containing 'module.exports' are no longer supported.
|
|
743
|
+
Please convert your config to use ES modules (import/export syntax).`
|
|
744
|
+
});
|
|
745
|
+
}
|
|
704
746
|
};
|
|
705
747
|
export {
|
|
706
|
-
|
|
707
|
-
|
|
748
|
+
U as AngularLegacyBuildOptionsError,
|
|
749
|
+
fe as Category,
|
|
750
|
+
ie as CommonJsConfigNotSupportedError,
|
|
708
751
|
B as ConflictingStaticDirConfigError,
|
|
709
|
-
|
|
752
|
+
L as CouldNotEvaluateFrameworkError,
|
|
710
753
|
D as CriticalPresetLoadError,
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
754
|
+
se as FindPackageVersionsError,
|
|
755
|
+
ee as GenerateNewProjectOnInitError,
|
|
756
|
+
Y as GoogleFontsDownloadError,
|
|
757
|
+
J as GoogleFontsLoadingError,
|
|
758
|
+
ne as IncompatiblePostCssConfigError,
|
|
716
759
|
K as InvalidFrameworkNameError,
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
oe as
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
N as
|
|
760
|
+
P as InvalidStoriesEntryError,
|
|
761
|
+
z as MainFileESMOnlyImportError,
|
|
762
|
+
Q as MainFileEvaluationError,
|
|
763
|
+
q as MainFileMissingError,
|
|
764
|
+
F as MissingAngularJsonError,
|
|
765
|
+
G as MissingBuilderError,
|
|
766
|
+
v as MissingFrameworkFieldError,
|
|
767
|
+
H as NoMatchingExportError,
|
|
768
|
+
re as NoStatsForViteDevError,
|
|
769
|
+
W as NxProjectDetectedError,
|
|
770
|
+
ae as SavingGlobalSettingsFileError,
|
|
771
|
+
Z as StatusTypeIdMismatchError,
|
|
772
|
+
X as SvelteViteWithSvelteKitError,
|
|
773
|
+
oe as UpgradeStorybookToLowerVersionError,
|
|
774
|
+
te as UpgradeStorybookUnknownCurrentVersionError,
|
|
775
|
+
$ as WebpackCompilationError,
|
|
776
|
+
N as WebpackInvocationError,
|
|
777
|
+
j as WebpackMissingStatsError
|
|
734
778
|
};
|
package/dist/telemetry/index.cjs
CHANGED
|
@@ -4128,7 +4128,7 @@ async function qn(t) {
|
|
|
4128
4128
|
o(qn, "findPackage");
|
|
4129
4129
|
|
|
4130
4130
|
// package.json
|
|
4131
|
-
var wt = "9.1.
|
|
4131
|
+
var wt = "9.1.3";
|
|
4132
4132
|
|
|
4133
4133
|
// src/cli/globalSettings.ts
|
|
4134
4134
|
var At = T(require("node:fs/promises"), 1), xs = require("node:os"), Zt = require("node:path"), vs = T(Gn(), 1), Ne = T(gs(), 1);
|
package/dist/telemetry/index.js
CHANGED
package/dist/test/index.cjs
CHANGED
|
@@ -34948,7 +34948,7 @@ qE.screen = new Proxy(qE.screen, {
|
|
|
34948
34948
|
get(e, t, r) {
|
|
34949
34949
|
return sB.once.warn(lB.default`
|
|
34950
34950
|
You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
|
|
34951
|
-
More info: https://storybook.js.org/docs/
|
|
34951
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error
|
|
34952
34952
|
`), Reflect.get(e, t, r);
|
|
34953
34953
|
}
|
|
34954
34954
|
});
|
package/dist/test/index.js
CHANGED
|
@@ -32919,7 +32919,7 @@ pg.screen = new Proxy(pg.screen, {
|
|
|
32919
32919
|
get(e, t, r) {
|
|
32920
32920
|
return Cne.warn(WI`
|
|
32921
32921
|
You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
|
|
32922
|
-
More info: https://storybook.js.org/docs/
|
|
32922
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error
|
|
32923
32923
|
`), Reflect.get(e, t, r);
|
|
32924
32924
|
}
|
|
32925
32925
|
});
|
package/package.json
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook",
|
|
3
|
-
"version": "9.1.
|
|
4
|
-
"description": "Storybook
|
|
3
|
+
"version": "9.1.3",
|
|
4
|
+
"description": "Storybook: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"storybook"
|
|
6
|
+
"storybook",
|
|
7
|
+
"component",
|
|
8
|
+
"components",
|
|
9
|
+
"design-systems",
|
|
10
|
+
"component-testing",
|
|
11
|
+
"react",
|
|
12
|
+
"next",
|
|
13
|
+
"next.js",
|
|
14
|
+
"react-native",
|
|
15
|
+
"react-native-web",
|
|
16
|
+
"vue",
|
|
17
|
+
"angular",
|
|
18
|
+
"svelte",
|
|
19
|
+
"sveltekit",
|
|
20
|
+
"web-components"
|
|
7
21
|
],
|
|
8
22
|
"homepage": "https://storybook.js.org",
|
|
9
23
|
"bugs": {
|