storybook 9.1.2 → 9.1.4

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.
Files changed (38) hide show
  1. package/README.md +28 -41
  2. package/dist/bin/index.cjs +43 -43
  3. package/dist/bin/index.js +43 -43
  4. package/dist/cli/bin/index.cjs +1211 -1211
  5. package/dist/cli/bin/index.js +1214 -1214
  6. package/dist/common/index.cjs +43 -43
  7. package/dist/common/index.js +43 -43
  8. package/dist/core-server/index.cjs +3105 -3094
  9. package/dist/core-server/index.js +3409 -3398
  10. package/dist/core-server/presets/common-manager.js +142 -119
  11. package/dist/core-server/presets/common-preset.cjs +25406 -52976
  12. package/dist/core-server/presets/common-preset.js +25495 -53063
  13. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.cjs +84 -28647
  14. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +75 -28646
  15. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.cjs +691 -28987
  16. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +672 -28967
  17. package/dist/csf-tools/index.cjs +4 -4
  18. package/dist/csf-tools/index.js +4 -4
  19. package/dist/manager/globals-runtime.js +7376 -7365
  20. package/dist/manager/runtime.js +32 -18
  21. package/dist/manager-api/index.cjs +546 -535
  22. package/dist/manager-api/index.js +653 -642
  23. package/dist/manager-errors.js +44 -33
  24. package/dist/preview/runtime.js +5559 -5548
  25. package/dist/preview-api/index.cjs +4 -4
  26. package/dist/preview-api/index.js +4 -4
  27. package/dist/preview-errors.cjs +82 -71
  28. package/dist/preview-errors.js +89 -78
  29. package/dist/router/index.cjs +1 -1
  30. package/dist/router/index.js +1 -1
  31. package/dist/server-errors.cjs +121 -77
  32. package/dist/server-errors.d.ts +14 -1
  33. package/dist/server-errors.js +135 -91
  34. package/dist/telemetry/index.cjs +1 -1
  35. package/dist/telemetry/index.js +1 -1
  36. package/dist/test/index.cjs +1 -1
  37. package/dist/test/index.js +1 -1
  38. package/package.json +17 -3
@@ -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 ae = Object.create;
7
+ var ue = Object.create;
8
8
  var R = Object.defineProperty;
9
- var ie = Object.getOwnPropertyDescriptor;
10
- var ce = Object.getOwnPropertyNames;
11
- var ue = Object.getPrototypeOf, le = Object.prototype.hasOwnProperty;
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 me = (t, e, o, n) => {
14
+ var de = (t, e, o, n) => {
15
15
  if (e && typeof e == "object" || typeof e == "function")
16
- for (let c of ce(e))
17
- !le.call(t, c) && c !== o && R(t, c, { get: () => e[c], enumerable: !(n = ie(e, c)) || n.enumerable });
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 ? ae(ue(t)) : {}, me(
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((he, k) => {
31
- var E = process || {}, _ = E.argv || [], h = E.env || {}, be = !(h.NO_COLOR || _.includes("--no-color")) && (!!h.FORCE_COLOR || _.includes(
32
- "--color") || E.platform === "win32" || (E.stdout || {}).isTTY && h.TERM !== "dumb" || !!h.CI), ge = /* @__PURE__ */ r((t, e, o = t) => (n) => {
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 + de(c, e, o, u) + e : t + c + e;
35
- }, "formatter"), de = /* @__PURE__ */ r((t, e, o, n) => {
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 = be) => {
42
- let e = t ? ge : () => String;
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, x) {
103
- var p = x.match(/\n([\t ]+|(?!\s).)/g);
104
- return p ? m.concat(p.map(function(f) {
105
- var g, d;
106
- return (d = (g = f.match(/[\t ]/g)) === null || g === void 0 ? void 0 : g.length) !== null && d !== void 0 ? d : 0;
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 b = n[0];
119
- return e.forEach(function(m, x) {
120
- var p = b.match(/(?:^|\n)( *)$/), f = p ? p[1] : "", g = m;
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
- `) && (g = String(m).split(`
123
- `).map(function(d, ne) {
124
- return ne === 0 ? d : "" + f + d;
122
+ `) && (b = String(m).split(`
123
+ `).map(function(d, ce) {
124
+ return ce === 0 ? d : "" + x + d;
125
125
  }).join(`
126
- `)), b += g + n[x + 1];
127
- }), b;
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 b;
177
- return o === !0 ? b = `https://storybook.js.org/error/${M({ code: n, category: c })}` : typeof o == "string" ? b = o : Array.isArray(o) &&
178
- (b = `
179
- ${o.map((m) => ` - ${m}`).join(`
180
- `)}`), `${u}${b != null ? `
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: ${b}
193
+ More info: ${g}
183
194
  ` : ""}`;
184
195
  }
185
196
  };
186
197
 
187
198
  // src/server-errors.ts
188
- var pe = /* @__PURE__ */ ((s) => (s.CLI = "CLI", s.CLI_INIT = "CLI_INIT", s.CLI_AUTOMIGRATE = "CLI_AUTOMIGRATE", s.CLI_UPGRADE = "CLI_UPGRAD\
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))(pe || {}), T = class extends a {
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
- }, W = class extends a {
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
- }, v = class extends a {
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
- }, L = class extends a {
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
- }, N = class extends a {
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
- }, P = class extends a {
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 j(t = "") {
334
+ function V(t = "") {
324
335
  return t.replace(/\u001B\[[0-9;]*m/g, "");
325
336
  }
326
- r(j, "removeAnsiEscapeCodes");
327
- var V = class extends a {
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: j(n.message),
332
- stack: j(n.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
- }, $ = class extends a {
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
- }, F = class extends a {
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
- }, U = class extends a {
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
- }, G = class extends a {
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
- }, Y = class extends a {
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
- }, J = class extends a {
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
- }, X = class extends a {
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
- }, H = class extends a {
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
- }, z = class extends a {
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
- }, q = class extends a {
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
- }, Q = class extends a {
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
- }, Z = class extends a {
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
- }, ee = class extends a {
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
- }, oe = class extends a {
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
- }, te = class extends a {
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
- }, re = class extends a {
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
- }, se = class extends a {
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
- F as AngularLegacyBuildOptionsError,
707
- pe as Category,
748
+ U as AngularLegacyBuildOptionsError,
749
+ fe as Category,
750
+ ie as CommonJsConfigNotSupportedError,
708
751
  B as ConflictingStaticDirConfigError,
709
- v as CouldNotEvaluateFrameworkError,
752
+ L as CouldNotEvaluateFrameworkError,
710
753
  D as CriticalPresetLoadError,
711
- re as FindPackageVersionsError,
712
- Z as GenerateNewProjectOnInitError,
713
- G as GoogleFontsDownloadError,
714
- Y as GoogleFontsLoadingError,
715
- se as IncompatiblePostCssConfigError,
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
- L as InvalidStoriesEntryError,
718
- H as MainFileESMOnlyImportError,
719
- q as MainFileEvaluationError,
720
- z as MainFileMissingError,
721
- $ as MissingAngularJsonError,
722
- U as MissingBuilderError,
723
- W as MissingFrameworkFieldError,
724
- X as NoMatchingExportError,
725
- te as NoStatsForViteDevError,
726
- T as NxProjectDetectedError,
727
- Q as StatusTypeIdMismatchError,
728
- J as SvelteViteWithSvelteKitError,
729
- ee as UpgradeStorybookToLowerVersionError,
730
- oe as UpgradeStorybookUnknownCurrentVersionError,
731
- V as WebpackCompilationError,
732
- P as WebpackInvocationError,
733
- N as WebpackMissingStatsError
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
  };
@@ -4128,7 +4128,7 @@ async function qn(t) {
4128
4128
  o(qn, "findPackage");
4129
4129
 
4130
4130
  // package.json
4131
- var wt = "9.1.2";
4131
+ var wt = "9.1.4";
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);
@@ -4134,7 +4134,7 @@ async function kn(t) {
4134
4134
  o(kn, "findPackage");
4135
4135
 
4136
4136
  // package.json
4137
- var ut = "9.1.2";
4137
+ var ut = "9.1.4";
4138
4138
 
4139
4139
  // src/cli/globalSettings.ts
4140
4140
  var Yn = H(In(), 1), Ee = H(Kn(), 1);
@@ -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/essentials/interactions
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
  });
@@ -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/essentials/interactions
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.2",
4
- "description": "Storybook framework-agnostic API",
3
+ "version": "9.1.4",
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": {