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
@@ -2502,13 +2502,13 @@ var Ie = Symbol("incompatible"), Zr = /* @__PURE__ */ s((r, e) => {
2502
2502
  return lr.once.error(Qr.dedent`
2503
2503
  Invalid argType: '${o}.options' should be an array.
2504
2504
 
2505
- More info: https://storybook.js.org/docs/api/arg-types
2505
+ More info: https://storybook.js.org/docs/api/arg-types?ref=error
2506
2506
  `), i();
2507
2507
  if (n.some((p) => p && ["object", "function"].includes(typeof p)))
2508
2508
  return lr.once.error(Qr.dedent`
2509
2509
  Invalid argType: '${o}.options' should only contain primitives. Use a 'mapping' for complex values.
2510
2510
 
2511
- More info: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
2511
+ More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
2512
2512
  `), i();
2513
2513
  let a = Array.isArray(r[o]), l = a && r[o].findIndex((p) => !n.includes(p)), d = a && l === -1;
2514
2514
  if (r[o] === void 0 || n.includes(r[o]) || d)
@@ -3512,7 +3512,7 @@ function tn(r) {
3512
3512
  do:
3513
3513
  await mount(<MyComponent foo="bar"/>)
3514
3514
 
3515
- More info: https://storybook.js.org/docs/api/portable-stories-playwright
3515
+ More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
3516
3516
  `);
3517
3517
  let { props: a, ...l } = n;
3518
3518
  await t.evaluate(async (c) => {
@@ -4948,7 +4948,7 @@ r, t)) : N(e) ? Object.entries(e).every(([t, o]) => gt(t, o)) : !1, "validateArg
4948
4948
  return Object.entries((0, jn.parse)(e.join(";"), Wi)).reduce((t, [o, n]) => gt(o, n) ? Object.assign(t, { [o]: n }) : (Mn.once.warn(_n.dedent`
4949
4949
  Omitted potentially unsafe URL args.
4950
4950
 
4951
- More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
4951
+ More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url?ref=error
4952
4952
  `), t), {});
4953
4953
  }, "parseArgsParam");
4954
4954
 
@@ -2473,13 +2473,13 @@ var fe = Symbol("incompatible"), Nr = /* @__PURE__ */ n((r, e) => {
2473
2473
  return _r.error(P`
2474
2474
  Invalid argType: '${o}.options' should be an array.
2475
2475
 
2476
- More info: https://storybook.js.org/docs/api/arg-types
2476
+ More info: https://storybook.js.org/docs/api/arg-types?ref=error
2477
2477
  `), i();
2478
2478
  if (s.some((u) => u && ["object", "function"].includes(typeof u)))
2479
2479
  return _r.error(P`
2480
2480
  Invalid argType: '${o}.options' should only contain primitives. Use a 'mapping' for complex values.
2481
2481
 
2482
- More info: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
2482
+ More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
2483
2483
  `), i();
2484
2484
  let a = Array.isArray(r[o]), l = a && r[o].findIndex((u) => !s.includes(u)), c = a && l === -1;
2485
2485
  if (r[o] === void 0 || s.includes(r[o]) || c)
@@ -3486,7 +3486,7 @@ function Zs(r) {
3486
3486
  do:
3487
3487
  await mount(<MyComponent foo="bar"/>)
3488
3488
 
3489
- More info: https://storybook.js.org/docs/api/portable-stories-playwright
3489
+ More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
3490
3490
  `);
3491
3491
  let { props: a, ...l } = s;
3492
3492
  await t.evaluate(async (d) => {
@@ -4964,7 +4964,7 @@ r, t)) : j(e) ? Object.entries(e).every(([t, o]) => ut(t, o)) : !1, "validateArg
4964
4964
  return Object.entries((0, Qo.parse)(e.join(";"), Ia)).reduce((t, [o, s]) => ut(o, s) ? Object.assign(t, { [o]: s }) : (Pa.warn(P`
4965
4965
  Omitted potentially unsafe URL args.
4966
4966
 
4967
- More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
4967
+ More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url?ref=error
4968
4968
  `), t), {});
4969
4969
  }, "parseArgsParam");
4970
4970
 
@@ -1,30 +1,30 @@
1
1
  "use strict";
2
- var U = Object.create;
2
+ var K = Object.create;
3
3
  var g = Object.defineProperty;
4
- var K = Object.getOwnPropertyDescriptor;
5
- var X = Object.getOwnPropertyNames;
6
- var J = Object.getPrototypeOf, B = Object.prototype.hasOwnProperty;
7
- var s = (t, o) => g(t, "name", { value: o, configurable: !0 });
8
- var z = (t, o) => () => (o || t((o = { exports: {} }).exports, o), o.exports), q = (t, o) => {
4
+ var X = Object.getOwnPropertyDescriptor;
5
+ var J = Object.getOwnPropertyNames;
6
+ var B = Object.getPrototypeOf, z = Object.prototype.hasOwnProperty;
7
+ var r = (t, o) => g(t, "name", { value: o, configurable: !0 });
8
+ var q = (t, o) => () => (o || t((o = { exports: {} }).exports, o), o.exports), Q = (t, o) => {
9
9
  for (var e in o)
10
10
  g(t, e, { get: o[e], enumerable: !0 });
11
11
  }, M = (t, o, e, i) => {
12
12
  if (o && typeof o == "object" || typeof o == "function")
13
- for (let u of X(o))
14
- !B.call(t, u) && u !== e && g(t, u, { get: () => o[u], enumerable: !(i = K(o, u)) || i.enumerable });
13
+ for (let u of J(o))
14
+ !z.call(t, u) && u !== e && g(t, u, { get: () => o[u], enumerable: !(i = X(o, u)) || i.enumerable });
15
15
  return t;
16
16
  };
17
- var Q = (t, o, e) => (e = t != null ? U(J(t)) : {}, M(
17
+ var Z = (t, o, e) => (e = t != null ? K(B(t)) : {}, M(
18
18
  // If the importer is in node compatibility mode or this is not an ESM
19
19
  // file that has been converted to a CommonJS file using a Babel-
20
20
  // compatible transform (i.e. "__esModule" has not been set), then set
21
21
  // "default" to the CommonJS "module.exports" for node compatibility.
22
22
  o || !t || !t.__esModule ? g(e, "default", { value: t, enumerable: !0 }) : e,
23
23
  t
24
- )), Z = (t) => M(g({}, "__esModule", { value: !0 }), t);
24
+ )), ee = (t) => M(g({}, "__esModule", { value: !0 }), t);
25
25
 
26
26
  // ../node_modules/ts-dedent/dist/index.js
27
- var F = z((h) => {
27
+ var F = q((h) => {
28
28
  "use strict";
29
29
  Object.defineProperty(h, "__esModule", { value: !0 });
30
30
  h.dedent = void 0;
@@ -54,29 +54,29 @@ var F = z((h) => {
54
54
  var p = d.match(/(?:^|\n)( *)$/), f = p ? p[1] : "", l = c;
55
55
  typeof c == "string" && c.includes(`
56
56
  `) && (l = String(c).split(`
57
- `).map(function(y, H) {
58
- return H === 0 ? y : "" + f + y;
57
+ `).map(function(y, U) {
58
+ return U === 0 ? y : "" + f + y;
59
59
  }).join(`
60
60
  `)), d += l + i[E + 1];
61
61
  }), d;
62
62
  }
63
- s(L, "dedent");
63
+ r(L, "dedent");
64
64
  h.dedent = L;
65
65
  h.default = L;
66
66
  });
67
67
 
68
68
  // src/preview-errors.ts
69
- var ee = {};
70
- q(ee, {
69
+ var te = {};
70
+ Q(te, {
71
71
  CalledExtractOnStoreError: () => I,
72
- CalledPreviewMethodBeforeInitializationError: () => x,
73
- Category: () => G,
72
+ CalledPreviewMethodBeforeInitializationError: () => _,
73
+ Category: () => H,
74
74
  ElementA11yParameterError: () => j,
75
75
  EmptyIndexError: () => w,
76
- ImplicitActionsDuringRendering: () => b,
76
+ ImplicitActionsDuringRendering: () => R,
77
77
  MdxFileWithNoCsfReferencesError: () => S,
78
- MissingRenderToCanvasError: () => _,
79
- MissingStoryAfterHmrError: () => R,
78
+ MissingRenderToCanvasError: () => x,
79
+ MissingStoryAfterHmrError: () => b,
80
80
  MissingStoryFromCsfFileError: () => k,
81
81
  MountMustBeDestructuredError: () => N,
82
82
  NextJsSharpError: () => W,
@@ -90,8 +90,8 @@ q(ee, {
90
90
  UnknownArgTypesError: () => D,
91
91
  UnsupportedViewportDimensionError: () => C
92
92
  });
93
- module.exports = Z(ee);
94
- var a = Q(F(), 1);
93
+ module.exports = ee(te);
94
+ var a = Z(F(), 1);
95
95
 
96
96
  // src/storybook-error.ts
97
97
  function Y({
@@ -101,8 +101,19 @@ function Y({
101
101
  let e = String(t).padStart(4, "0");
102
102
  return `SB_${o}_${e}`;
103
103
  }
104
- s(Y, "parseErrorCode");
105
- var r = class t extends Error {
104
+ r(Y, "parseErrorCode");
105
+ function G(t) {
106
+ if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(t))
107
+ return t;
108
+ try {
109
+ let o = new URL(t);
110
+ return o.searchParams.set("ref", "error"), o.toString();
111
+ } catch {
112
+ return t;
113
+ }
114
+ }
115
+ r(G, "appendErrorRef");
116
+ var s = class t extends Error {
106
117
  constructor(e) {
107
118
  super(t.getFullMessage(e));
108
119
  /**
@@ -115,7 +126,7 @@ var r = class t extends Error {
115
126
  this.category = e.category, this.documentation = e.documentation ?? !1, this.code = e.code;
116
127
  }
117
128
  static {
118
- s(this, "StorybookError");
129
+ r(this, "StorybookError");
119
130
  }
120
131
  get fullErrorCode() {
121
132
  return Y({ code: this.code, category: this.category });
@@ -133,9 +144,9 @@ var r = class t extends Error {
133
144
  message: m
134
145
  }) {
135
146
  let d;
136
- return e === !0 ? d = `https://storybook.js.org/error/${Y({ code: i, category: u })}` : typeof e == "string" ? d = e : Array.isArray(e) &&
137
- (d = `
138
- ${e.map((c) => ` - ${c}`).join(`
147
+ return e === !0 ? d = `https://storybook.js.org/error/${Y({ code: i, category: u })}?ref=error` : typeof e == "string" ? d = G(e) : Array.
148
+ isArray(e) && (d = `
149
+ ${e.map((c) => ` - ${G(c)}`).join(`
139
150
  `)}`), `${m}${d != null ? `
140
151
 
141
152
  More info: ${d}
@@ -144,12 +155,12 @@ More info: ${d}
144
155
  };
145
156
 
146
157
  // src/preview-errors.ts
147
- var G = /* @__PURE__ */ ((n) => (n.BLOCKS = "BLOCKS", n.DOCS_TOOLS = "DOCS-TOOLS", n.PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER", n.PREVIEW_CHANNELS =
158
+ var H = /* @__PURE__ */ ((n) => (n.BLOCKS = "BLOCKS", n.DOCS_TOOLS = "DOCS-TOOLS", n.PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER", n.PREVIEW_CHANNELS =
148
159
  "PREVIEW_CHANNELS", n.PREVIEW_CORE_EVENTS = "PREVIEW_CORE-EVENTS", n.PREVIEW_INSTRUMENTER = "PREVIEW_INSTRUMENTER", n.PREVIEW_API = "PREVIEW\
149
160
  _API", n.PREVIEW_REACT_DOM_SHIM = "PREVIEW_REACT-DOM-SHIM", n.PREVIEW_ROUTER = "PREVIEW_ROUTER", n.PREVIEW_THEMING = "PREVIEW_THEMING", n.RENDERER_HTML =
150
161
  "RENDERER_HTML", n.RENDERER_PREACT = "RENDERER_PREACT", n.RENDERER_REACT = "RENDERER_REACT", n.RENDERER_SERVER = "RENDERER_SERVER", n.RENDERER_SVELTE =
151
162
  "RENDERER_SVELTE", n.RENDERER_VUE = "RENDERER_VUE", n.RENDERER_VUE3 = "RENDERER_VUE3", n.RENDERER_WEB_COMPONENTS = "RENDERER_WEB-COMPONENTS",
152
- n.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", n.ADDON_VITEST = "ADDON_VITEST", n.ADDON_A11Y = "ADDON_A11Y", n))(G || {}), R = class extends r {
163
+ n.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", n.ADDON_VITEST = "ADDON_VITEST", n.ADDON_A11Y = "ADDON_A11Y", n))(H || {}), b = class extends s {
153
164
  constructor(e) {
154
165
  super({
155
166
  category: "PREVIEW_API",
@@ -165,9 +176,9 @@ n.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", n.ADDON_VITEST = "ADDON_VITEST", n.ADDO
165
176
  this.data = e;
166
177
  }
167
178
  static {
168
- s(this, "MissingStoryAfterHmrError");
179
+ r(this, "MissingStoryAfterHmrError");
169
180
  }
170
- }, b = class extends r {
181
+ }, R = class extends s {
171
182
  constructor(e) {
172
183
  super({
173
184
  category: "PREVIEW_API",
@@ -189,11 +200,11 @@ This is deprecated and won't work in Storybook 8 anymore.
189
200
  this.data = e;
190
201
  }
191
202
  static {
192
- s(this, "ImplicitActionsDuringRendering");
203
+ r(this, "ImplicitActionsDuringRendering");
193
204
  }
194
- }, I = class extends r {
205
+ }, I = class extends s {
195
206
  static {
196
- s(this, "CalledExtractOnStoreError");
207
+ r(this, "CalledExtractOnStoreError");
197
208
  }
198
209
  constructor() {
199
210
  super({
@@ -205,9 +216,9 @@ This is deprecated and won't work in Storybook 8 anymore.
205
216
  You probably meant to call \`await preview.extract()\` which does the above for you.`
206
217
  });
207
218
  }
208
- }, _ = class extends r {
219
+ }, x = class extends s {
209
220
  static {
210
- s(this, "MissingRenderToCanvasError");
221
+ r(this, "MissingRenderToCanvasError");
211
222
  }
212
223
  constructor() {
213
224
  super({
@@ -220,7 +231,7 @@ This is deprecated and won't work in Storybook 8 anymore.
220
231
  documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"
221
232
  });
222
233
  }
223
- }, x = class extends r {
234
+ }, _ = class extends s {
224
235
  constructor(e) {
225
236
  super({
226
237
  category: "PREVIEW_API",
@@ -237,9 +248,9 @@ This is deprecated and won't work in Storybook 8 anymore.
237
248
  this.data = e;
238
249
  }
239
250
  static {
240
- s(this, "CalledPreviewMethodBeforeInitializationError");
251
+ r(this, "CalledPreviewMethodBeforeInitializationError");
241
252
  }
242
- }, P = class extends r {
253
+ }, P = class extends s {
243
254
  constructor(e) {
244
255
  super({
245
256
  category: "PREVIEW_API",
@@ -258,9 +269,9 @@ This is deprecated and won't work in Storybook 8 anymore.
258
269
  this.data = e;
259
270
  }
260
271
  static {
261
- s(this, "StoryIndexFetchError");
272
+ r(this, "StoryIndexFetchError");
262
273
  }
263
- }, S = class extends r {
274
+ }, S = class extends s {
264
275
  constructor(e) {
265
276
  super({
266
277
  category: "PREVIEW_API",
@@ -275,11 +286,11 @@ This is deprecated and won't work in Storybook 8 anymore.
275
286
  this.data = e;
276
287
  }
277
288
  static {
278
- s(this, "MdxFileWithNoCsfReferencesError");
289
+ r(this, "MdxFileWithNoCsfReferencesError");
279
290
  }
280
- }, w = class extends r {
291
+ }, w = class extends s {
281
292
  static {
282
- s(this, "EmptyIndexError");
293
+ r(this, "EmptyIndexError");
283
294
  }
284
295
  constructor() {
285
296
  super({
@@ -292,7 +303,7 @@ This is deprecated and won't work in Storybook 8 anymore.
292
303
  - Also check the browser console and terminal for error messages.`
293
304
  });
294
305
  }
295
- }, T = class extends r {
306
+ }, T = class extends s {
296
307
  constructor(e) {
297
308
  super({
298
309
  category: "PREVIEW_API",
@@ -307,9 +318,9 @@ This is deprecated and won't work in Storybook 8 anymore.
307
318
  this.data = e;
308
319
  }
309
320
  static {
310
- s(this, "NoStoryMatchError");
321
+ r(this, "NoStoryMatchError");
311
322
  }
312
- }, k = class extends r {
323
+ }, k = class extends s {
313
324
  constructor(e) {
314
325
  super({
315
326
  category: "PREVIEW_API",
@@ -327,11 +338,11 @@ This is deprecated and won't work in Storybook 8 anymore.
327
338
  this.data = e;
328
339
  }
329
340
  static {
330
- s(this, "MissingStoryFromCsfFileError");
341
+ r(this, "MissingStoryFromCsfFileError");
331
342
  }
332
- }, v = class extends r {
343
+ }, v = class extends s {
333
344
  static {
334
- s(this, "StoryStoreAccessedBeforeInitializationError");
345
+ r(this, "StoryStoreAccessedBeforeInitializationError");
335
346
  }
336
347
  constructor() {
337
348
  super({
@@ -344,7 +355,7 @@ This is deprecated and won't work in Storybook 8 anymore.
344
355
  remove access to the store entirely`
345
356
  });
346
357
  }
347
- }, N = class extends r {
358
+ }, N = class extends s {
348
359
  constructor(e) {
349
360
  super({
350
361
  category: "PREVIEW_API",
@@ -363,7 +374,7 @@ This is deprecated and won't work in Storybook 8 anymore.
363
374
 
364
375
  Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
365
376
 
366
- More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered
377
+ More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
367
378
 
368
379
  Received the following play function:
369
380
  ${e.playFunction}`
@@ -371,9 +382,9 @@ This is deprecated and won't work in Storybook 8 anymore.
371
382
  this.data = e;
372
383
  }
373
384
  static {
374
- s(this, "MountMustBeDestructuredError");
385
+ r(this, "MountMustBeDestructuredError");
375
386
  }
376
- }, A = class extends r {
387
+ }, A = class extends s {
377
388
  constructor(e) {
378
389
  super({
379
390
  category: "PREVIEW_API",
@@ -385,11 +396,11 @@ This is deprecated and won't work in Storybook 8 anymore.
385
396
  this.data = e;
386
397
  }
387
398
  static {
388
- s(this, "NoRenderFunctionError");
399
+ r(this, "NoRenderFunctionError");
389
400
  }
390
- }, V = class extends r {
401
+ }, V = class extends s {
391
402
  static {
392
- s(this, "NoStoryMountedError");
403
+ r(this, "NoStoryMountedError");
393
404
  }
394
405
  constructor() {
395
406
  super({
@@ -413,7 +424,7 @@ This is deprecated and won't work in Storybook 8 anymore.
413
424
  `
414
425
  });
415
426
  }
416
- }, O = class extends r {
427
+ }, O = class extends s {
417
428
  constructor(e) {
418
429
  super({
419
430
  category: "PREVIEW_API",
@@ -427,11 +438,11 @@ This is deprecated and won't work in Storybook 8 anymore.
427
438
  this.data = e;
428
439
  }
429
440
  static {
430
- s(this, "StatusTypeIdMismatchError");
441
+ r(this, "StatusTypeIdMismatchError");
431
442
  }
432
- }, W = class extends r {
443
+ }, W = class extends s {
433
444
  static {
434
- s(this, "NextJsSharpError");
445
+ r(this, "NextJsSharpError");
435
446
  }
436
447
  constructor() {
437
448
  super({
@@ -445,7 +456,7 @@ This is deprecated and won't work in Storybook 8 anymore.
445
456
  `
446
457
  });
447
458
  }
448
- }, $ = class extends r {
459
+ }, $ = class extends s {
449
460
  constructor(e) {
450
461
  super({
451
462
  category: "FRAMEWORK_NEXTJS",
@@ -457,9 +468,9 @@ This is deprecated and won't work in Storybook 8 anymore.
457
468
  this.data = e;
458
469
  }
459
470
  static {
460
- s(this, "NextjsRouterMocksNotAvailable");
471
+ r(this, "NextjsRouterMocksNotAvailable");
461
472
  }
462
- }, D = class extends r {
473
+ }, D = class extends s {
463
474
  constructor(e) {
464
475
  super({
465
476
  category: "DOCS-TOOLS",
@@ -478,9 +489,9 @@ This is deprecated and won't work in Storybook 8 anymore.
478
489
  this.data = e;
479
490
  }
480
491
  static {
481
- s(this, "UnknownArgTypesError");
492
+ r(this, "UnknownArgTypesError");
482
493
  }
483
- }, C = class extends r {
494
+ }, C = class extends s {
484
495
  constructor(e) {
485
496
  super({
486
497
  category: "ADDON_VITEST",
@@ -499,11 +510,11 @@ This is deprecated and won't work in Storybook 8 anymore.
499
510
  this.data = e;
500
511
  }
501
512
  static {
502
- s(this, "UnsupportedViewportDimensionError");
513
+ r(this, "UnsupportedViewportDimensionError");
503
514
  }
504
- }, j = class extends r {
515
+ }, j = class extends s {
505
516
  static {
506
- s(this, "ElementA11yParameterError");
517
+ r(this, "ElementA11yParameterError");
507
518
  }
508
519
  constructor() {
509
520
  super({