storybook 9.0.0-alpha.20 → 9.0.0-alpha.21

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 (72) hide show
  1. package/assets/server/base-preview-head.html +1 -3
  2. package/dist/actions/decorator.js +34 -38
  3. package/dist/actions/index.cjs +1 -4
  4. package/dist/actions/index.js +1 -4
  5. package/dist/actions/preview.cjs +1 -4
  6. package/dist/actions/preview.js +1 -4
  7. package/dist/babel/index.cjs +822 -816
  8. package/dist/babel/index.js +822 -816
  9. package/dist/backgrounds/index.cjs +16 -16
  10. package/dist/backgrounds/index.js +14 -14
  11. package/dist/backgrounds/preview.cjs +34 -34
  12. package/dist/backgrounds/preview.js +29 -29
  13. package/dist/bin/index.cjs +67 -65
  14. package/dist/bin/index.js +61 -59
  15. package/dist/builder-manager/index.cjs +482 -472
  16. package/dist/builder-manager/index.js +283 -273
  17. package/dist/channels/index.js +941 -919
  18. package/dist/cli/bin/index.cjs +1 -1
  19. package/dist/cli/bin/index.js +1 -1
  20. package/dist/cli/index.cjs +61752 -7591
  21. package/dist/cli/index.d.ts +22 -14
  22. package/dist/cli/index.js +61775 -7614
  23. package/dist/common/index.cjs +16015 -8979
  24. package/dist/common/index.d.ts +30 -1
  25. package/dist/common/index.js +16105 -9063
  26. package/dist/components/index.cjs +3694 -3643
  27. package/dist/components/index.d.ts +5 -2
  28. package/dist/components/index.js +2352 -2294
  29. package/dist/core-server/index.cjs +3540 -3540
  30. package/dist/core-server/index.js +730 -730
  31. package/dist/core-server/presets/common-manager.js +2642 -2592
  32. package/dist/core-server/presets/common-preset.cjs +723 -715
  33. package/dist/core-server/presets/common-preset.js +10 -2
  34. package/dist/docs-tools/index.js +640 -632
  35. package/dist/highlight/index.cjs +16 -16
  36. package/dist/highlight/index.d.ts +45 -1
  37. package/dist/highlight/index.js +2 -2
  38. package/dist/highlight/preview.cjs +522 -68
  39. package/dist/highlight/preview.js +508 -56
  40. package/dist/instrumenter/index.js +1179 -1170
  41. package/dist/manager/globals-module-info.cjs +1 -0
  42. package/dist/manager/globals-module-info.js +1 -0
  43. package/dist/manager/globals-runtime.js +19385 -19190
  44. package/dist/manager/runtime.js +2084 -2079
  45. package/dist/manager-api/index.cjs +352 -352
  46. package/dist/manager-api/index.js +1694 -1663
  47. package/dist/manager-errors.js +41 -37
  48. package/dist/measure/index.cjs +99 -97
  49. package/dist/measure/index.js +95 -93
  50. package/dist/measure/preview.cjs +127 -125
  51. package/dist/measure/preview.js +125 -123
  52. package/dist/outline/index.cjs +41 -41
  53. package/dist/outline/index.js +12 -12
  54. package/dist/outline/preview.cjs +23 -23
  55. package/dist/outline/preview.js +7 -7
  56. package/dist/preview/runtime.js +13577 -12959
  57. package/dist/preview-api/index.cjs +0 -1
  58. package/dist/preview-api/index.d.ts +120 -385
  59. package/dist/preview-api/index.js +827 -812
  60. package/dist/preview-errors.cjs +65 -51
  61. package/dist/preview-errors.d.ts +6 -2
  62. package/dist/preview-errors.js +176 -142
  63. package/dist/server-errors.cjs +105 -72
  64. package/dist/server-errors.d.ts +9 -1
  65. package/dist/server-errors.js +87 -54
  66. package/dist/telemetry/index.cjs +374 -370
  67. package/dist/telemetry/index.js +460 -456
  68. package/dist/test/index.js +9831 -9743
  69. package/dist/test/preview.d.ts +0 -6
  70. package/dist/test/preview.js +3628 -3568
  71. package/dist/types/index.d.ts +72 -6
  72. package/package.json +1 -1
@@ -1,53 +1,53 @@
1
- var re = Object.defineProperty;
2
- var t = (u, s) => re(u, "name", { value: s, configurable: !0 });
1
+ var M = Object.defineProperty;
2
+ var o = (t, n) => M(t, "name", { value: n, configurable: !0 });
3
3
 
4
4
  // ../node_modules/ts-dedent/esm/index.js
5
- function n(u) {
6
- for (var s = [], e = 1; e < arguments.length; e++)
7
- s[e - 1] = arguments[e];
8
- var a = Array.from(typeof u == "string" ? [u] : u);
9
- a[a.length - 1] = a[a.length - 1].replace(/\r?\n([\t ]*)$/, "");
10
- var p = a.reduce(function(i, m) {
11
- var y = m.match(/\n([\t ]+|(?!\s).)/g);
12
- return y ? i.concat(y.map(function(E) {
13
- var l, d;
14
- return (d = (l = E.match(/[\t ]/g)) === null || l === void 0 ? void 0 : l.length) !== null && d !== void 0 ? d : 0;
15
- })) : i;
5
+ function a(t) {
6
+ for (var n = [], e = 1; e < arguments.length; e++)
7
+ n[e - 1] = arguments[e];
8
+ var i = Array.from(typeof t == "string" ? [t] : t);
9
+ i[i.length - 1] = i[i.length - 1].replace(/\r?\n([\t ]*)$/, "");
10
+ var p = i.reduce(function(c, h) {
11
+ var y = h.match(/\n([\t ]+|(?!\s).)/g);
12
+ return y ? c.concat(y.map(function(m) {
13
+ var d, l;
14
+ return (l = (d = m.match(/[\t ]/g)) === null || d === void 0 ? void 0 : d.length) !== null && l !== void 0 ? l : 0;
15
+ })) : c;
16
16
  }, []);
17
17
  if (p.length) {
18
- var h = new RegExp(`
18
+ var g = new RegExp(`
19
19
  [ ]{` + Math.min.apply(Math, p) + "}", "g");
20
- a = a.map(function(i) {
21
- return i.replace(h, `
20
+ i = i.map(function(c) {
21
+ return c.replace(g, `
22
22
  `);
23
23
  });
24
24
  }
25
- a[0] = a[0].replace(/^\r?\n/, "");
26
- var c = a[0];
27
- return s.forEach(function(i, m) {
28
- var y = c.match(/(?:^|\n)( *)$/), E = y ? y[1] : "", l = i;
29
- typeof i == "string" && i.includes(`
30
- `) && (l = String(i).split(`
31
- `).map(function(d, se) {
32
- return se === 0 ? d : "" + E + d;
25
+ i[0] = i[0].replace(/^\r?\n/, "");
26
+ var u = i[0];
27
+ return n.forEach(function(c, h) {
28
+ var y = u.match(/(?:^|\n)( *)$/), m = y ? y[1] : "", d = c;
29
+ typeof c == "string" && c.includes(`
30
+ `) && (d = String(c).split(`
31
+ `).map(function(l, j) {
32
+ return j === 0 ? l : "" + m + l;
33
33
  }).join(`
34
- `)), c += l + a[m + 1];
35
- }), c;
34
+ `)), u += d + i[h + 1];
35
+ }), u;
36
36
  }
37
- t(n, "dedent");
37
+ o(a, "dedent");
38
38
 
39
39
  // src/storybook-error.ts
40
- function D({
41
- code: u,
42
- category: s
40
+ function E({
41
+ code: t,
42
+ category: n
43
43
  }) {
44
- let e = String(u).padStart(4, "0");
45
- return `SB_${s}_${e}`;
44
+ let e = String(t).padStart(4, "0");
45
+ return `SB_${n}_${e}`;
46
46
  }
47
- t(D, "parseErrorCode");
48
- var g = class g extends Error {
47
+ o(E, "parseErrorCode");
48
+ var s = class t extends Error {
49
49
  constructor(e) {
50
- super(g.getFullMessage(e));
50
+ super(t.getFullMessage(e));
51
51
  /**
52
52
  * Data associated with the error. Used to provide additional information in the error message or
53
53
  * to be passed to telemetry.
@@ -57,8 +57,11 @@ var g = class g extends Error {
57
57
  this.fromStorybook = !0;
58
58
  this.category = e.category, this.documentation = e.documentation ?? !1, this.code = e.code;
59
59
  }
60
+ static {
61
+ o(this, "StorybookError");
62
+ }
60
63
  get fullErrorCode() {
61
- return D({ code: this.code, category: this.category });
64
+ return E({ code: this.code, category: this.category });
62
65
  }
63
66
  /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
64
67
  get name() {
@@ -68,35 +71,33 @@ var g = class g extends Error {
68
71
  /** Generates the error message along with additional documentation link (if applicable). */
69
72
  static getFullMessage({
70
73
  documentation: e,
71
- code: a,
74
+ code: i,
72
75
  category: p,
73
- message: h
76
+ message: g
74
77
  }) {
75
- let c;
76
- return e === !0 ? c = `https://storybook.js.org/error/${D({ code: a, category: p })}` : typeof e == "string" ? c = e : Array.isArray(e) &&
77
- (c = `
78
- ${e.map((i) => ` - ${i}`).join(`
79
- `)}`), `${h}${c != null ? `
78
+ let u;
79
+ return e === !0 ? u = `https://storybook.js.org/error/${E({ code: i, category: p })}` : typeof e == "string" ? u = e : Array.isArray(e) &&
80
+ (u = `
81
+ ${e.map((c) => ` - ${c}`).join(`
82
+ `)}`), `${g}${u != null ? `
80
83
 
81
- More info: ${c}
84
+ More info: ${u}
82
85
  ` : ""}`;
83
86
  }
84
87
  };
85
- t(g, "StorybookError");
86
- var o = g;
87
88
 
88
89
  // src/preview-errors.ts
89
- var ne = /* @__PURE__ */ ((r) => (r.BLOCKS = "BLOCKS", r.DOCS_TOOLS = "DOCS-TOOLS", r.PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER", r.PREVIEW_CHANNELS =
90
+ var L = /* @__PURE__ */ ((r) => (r.BLOCKS = "BLOCKS", r.DOCS_TOOLS = "DOCS-TOOLS", r.PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER", r.PREVIEW_CHANNELS =
90
91
  "PREVIEW_CHANNELS", r.PREVIEW_CORE_EVENTS = "PREVIEW_CORE-EVENTS", r.PREVIEW_INSTRUMENTER = "PREVIEW_INSTRUMENTER", r.PREVIEW_API = "PREVIEW\
91
92
  _API", r.PREVIEW_REACT_DOM_SHIM = "PREVIEW_REACT-DOM-SHIM", r.PREVIEW_ROUTER = "PREVIEW_ROUTER", r.PREVIEW_THEMING = "PREVIEW_THEMING", r.RENDERER_HTML =
92
93
  "RENDERER_HTML", r.RENDERER_PREACT = "RENDERER_PREACT", r.RENDERER_REACT = "RENDERER_REACT", r.RENDERER_SERVER = "RENDERER_SERVER", r.RENDERER_SVELTE =
93
94
  "RENDERER_SVELTE", r.RENDERER_VUE = "RENDERER_VUE", r.RENDERER_VUE3 = "RENDERER_VUE3", r.RENDERER_WEB_COMPONENTS = "RENDERER_WEB-COMPONENTS",
94
- r.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", r.ADDON_VITEST = "ADDON_VITEST", r))(ne || {}), f = class f extends o {
95
+ r.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", r.ADDON_VITEST = "ADDON_VITEST", r.ADDON_A11Y = "ADDON_A11Y", r))(L || {}), f = class extends s {
95
96
  constructor(e) {
96
97
  super({
97
98
  category: "PREVIEW_API",
98
99
  code: 1,
99
- message: n`
100
+ message: a`
100
101
  Couldn't find story matching id '${e.storyId}' after HMR.
101
102
  - Did you just rename a story?
102
103
  - Did you remove it from your CSF file?
@@ -106,16 +107,17 @@ r.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", r.ADDON_VITEST = "ADDON_VITEST", r))(ne
106
107
  });
107
108
  this.data = e;
108
109
  }
109
- };
110
- t(f, "MissingStoryAfterHmrError");
111
- var j = f, R = class R extends o {
110
+ static {
111
+ o(this, "MissingStoryAfterHmrError");
112
+ }
113
+ }, R = class extends s {
112
114
  constructor(e) {
113
115
  super({
114
116
  category: "PREVIEW_API",
115
117
  code: 2,
116
118
  documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-\
117
119
  for-example-in-the-play-function",
118
- message: n`
120
+ message: a`
119
121
  We detected that you use an implicit action arg while ${e.phase} of your story.
120
122
  ${e.deprecated ? `
121
123
  This is deprecated and won't work in Storybook 8 anymore.
@@ -129,41 +131,44 @@ This is deprecated and won't work in Storybook 8 anymore.
129
131
  });
130
132
  this.data = e;
131
133
  }
132
- };
133
- t(R, "ImplicitActionsDuringRendering");
134
- var L = R, b = class b extends o {
134
+ static {
135
+ o(this, "ImplicitActionsDuringRendering");
136
+ }
137
+ }, b = class extends s {
138
+ static {
139
+ o(this, "CalledExtractOnStoreError");
140
+ }
135
141
  constructor() {
136
142
  super({
137
143
  category: "PREVIEW_API",
138
144
  code: 3,
139
- message: n`
145
+ message: a`
140
146
  Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
141
147
 
142
148
  You probably meant to call \`await preview.extract()\` which does the above for you.`
143
149
  });
144
150
  }
145
- };
146
- t(b, "CalledExtractOnStoreError");
147
- var G = b, I = class I extends o {
151
+ }, I = class extends s {
152
+ static {
153
+ o(this, "MissingRenderToCanvasError");
154
+ }
148
155
  constructor() {
149
156
  super({
150
157
  category: "PREVIEW_API",
151
158
  code: 4,
152
- message: n`
159
+ message: a`
153
160
  Expected your framework's preset to export a \`renderToCanvas\` field.
154
161
 
155
162
  Perhaps it needs to be upgraded for Storybook 7.0?`,
156
163
  documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"
157
164
  });
158
165
  }
159
- };
160
- t(I, "MissingRenderToCanvasError");
161
- var Y = I, P = class P extends o {
166
+ }, x = class extends s {
162
167
  constructor(e) {
163
168
  super({
164
169
  category: "PREVIEW_API",
165
170
  code: 5,
166
- message: n`
171
+ message: a`
167
172
  Called \`Preview.${e.methodName}()\` before initialization.
168
173
 
169
174
  The preview needs to load the story index before most methods can be called. If you want
@@ -174,14 +179,15 @@ var Y = I, P = class P extends o {
174
179
  });
175
180
  this.data = e;
176
181
  }
177
- };
178
- t(P, "CalledPreviewMethodBeforeInitializationError");
179
- var F = P, x = class x extends o {
182
+ static {
183
+ o(this, "CalledPreviewMethodBeforeInitializationError");
184
+ }
185
+ }, _ = class extends s {
180
186
  constructor(e) {
181
187
  super({
182
188
  category: "PREVIEW_API",
183
189
  code: 6,
184
- message: n`
190
+ message: a`
185
191
  Error fetching \`/index.json\`:
186
192
 
187
193
  ${e.text}
@@ -194,14 +200,15 @@ var F = P, x = class x extends o {
194
200
  });
195
201
  this.data = e;
196
202
  }
197
- };
198
- t(x, "StoryIndexFetchError");
199
- var H = x, w = class w extends o {
203
+ static {
204
+ o(this, "StoryIndexFetchError");
205
+ }
206
+ }, S = class extends s {
200
207
  constructor(e) {
201
208
  super({
202
209
  category: "PREVIEW_API",
203
210
  code: 7,
204
- message: n`
211
+ message: a`
205
212
  Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
206
213
  references, or autodocs for a CSF file that some doesn't refer to itself.
207
214
 
@@ -210,28 +217,30 @@ var H = x, w = class w extends o {
210
217
  });
211
218
  this.data = e;
212
219
  }
213
- };
214
- t(w, "MdxFileWithNoCsfReferencesError");
215
- var K = w, T = class T extends o {
220
+ static {
221
+ o(this, "MdxFileWithNoCsfReferencesError");
222
+ }
223
+ }, P = class extends s {
224
+ static {
225
+ o(this, "EmptyIndexError");
226
+ }
216
227
  constructor() {
217
228
  super({
218
229
  category: "PREVIEW_API",
219
230
  code: 8,
220
- message: n`
231
+ message: a`
221
232
  Couldn't find any stories in your Storybook.
222
233
 
223
234
  - Please check your stories field of your main.js config: does it match correctly?
224
235
  - Also check the browser console and terminal for error messages.`
225
236
  });
226
237
  }
227
- };
228
- t(T, "EmptyIndexError");
229
- var M = T, S = class S extends o {
238
+ }, w = class extends s {
230
239
  constructor(e) {
231
240
  super({
232
241
  category: "PREVIEW_API",
233
242
  code: 9,
234
- message: n`
243
+ message: a`
235
244
  Couldn't find story matching '${e.storySpecifier}'.
236
245
 
237
246
  - Are you sure a story with that id exists?
@@ -240,14 +249,15 @@ var M = T, S = class S extends o {
240
249
  });
241
250
  this.data = e;
242
251
  }
243
- };
244
- t(S, "NoStoryMatchError");
245
- var X = S, k = class k extends o {
252
+ static {
253
+ o(this, "NoStoryMatchError");
254
+ }
255
+ }, T = class extends s {
246
256
  constructor(e) {
247
257
  super({
248
258
  category: "PREVIEW_API",
249
259
  code: 10,
250
- message: n`
260
+ message: a`
251
261
  Couldn't find story matching id '${e.storyId}' after importing a CSF file.
252
262
 
253
263
  The file was indexed as if the story was there, but then after importing the file in the browser
@@ -259,28 +269,30 @@ var X = S, k = class k extends o {
259
269
  });
260
270
  this.data = e;
261
271
  }
262
- };
263
- t(k, "MissingStoryFromCsfFileError");
264
- var J = k, v = class v extends o {
272
+ static {
273
+ o(this, "MissingStoryFromCsfFileError");
274
+ }
275
+ }, k = class extends s {
276
+ static {
277
+ o(this, "StoryStoreAccessedBeforeInitializationError");
278
+ }
265
279
  constructor() {
266
280
  super({
267
281
  category: "PREVIEW_API",
268
282
  code: 11,
269
- message: n`
283
+ message: a`
270
284
  Cannot access the Story Store until the index is ready.
271
285
 
272
286
  It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
273
287
  remove access to the store entirely`
274
288
  });
275
289
  }
276
- };
277
- t(v, "StoryStoreAccessedBeforeInitializationError");
278
- var U = v, V = class V extends o {
290
+ }, N = class extends s {
279
291
  constructor(e) {
280
292
  super({
281
293
  category: "PREVIEW_API",
282
294
  code: 12,
283
- message: n`
295
+ message: a`
284
296
  Incorrect use of mount in the play function.
285
297
 
286
298
  To use mount in the play function, you must satisfy the following two requirements:
@@ -301,27 +313,32 @@ var U = v, V = class V extends o {
301
313
  });
302
314
  this.data = e;
303
315
  }
304
- };
305
- t(V, "MountMustBeDestructuredError");
306
- var q = V, _ = class _ extends o {
316
+ static {
317
+ o(this, "MountMustBeDestructuredError");
318
+ }
319
+ }, v = class extends s {
307
320
  constructor(e) {
308
321
  super({
309
322
  category: "PREVIEW_API",
310
323
  code: 14,
311
- message: n`
324
+ message: a`
312
325
  No render function available for storyId '${e.id}'
313
326
  `
314
327
  });
315
328
  this.data = e;
316
329
  }
317
- };
318
- t(_, "NoRenderFunctionError");
319
- var z = _, N = class N extends o {
330
+ static {
331
+ o(this, "NoRenderFunctionError");
332
+ }
333
+ }, A = class extends s {
334
+ static {
335
+ o(this, "NoStoryMountedError");
336
+ }
320
337
  constructor() {
321
338
  super({
322
339
  category: "PREVIEW_API",
323
340
  code: 15,
324
- message: n`
341
+ message: a`
325
342
  No component is mounted in your story.
326
343
 
327
344
  This usually occurs when you destructure mount in the play function, but forget to call it.
@@ -339,9 +356,7 @@ var z = _, N = class N extends o {
339
356
  `
340
357
  });
341
358
  }
342
- };
343
- t(N, "NoStoryMountedError");
344
- var B = N, A = class A extends o {
359
+ }, V = class extends s {
345
360
  constructor(e) {
346
361
  super({
347
362
  category: "PREVIEW_API",
@@ -354,43 +369,46 @@ var B = N, A = class A extends o {
354
369
  });
355
370
  this.data = e;
356
371
  }
357
- };
358
- t(A, "StatusTypeIdMismatchError");
359
- var Q = A, W = class W extends o {
372
+ static {
373
+ o(this, "StatusTypeIdMismatchError");
374
+ }
375
+ }, O = class extends s {
376
+ static {
377
+ o(this, "NextJsSharpError");
378
+ }
360
379
  constructor() {
361
380
  super({
362
381
  category: "FRAMEWORK_NEXTJS",
363
382
  code: 1,
364
383
  documentation: "https://storybook.js.org/docs/get-started/nextjs#faq",
365
- message: n`
384
+ message: a`
366
385
  You are importing avif images, but you don't have sharp installed.
367
386
 
368
387
  You have to install sharp in order to use image optimization features in Next.js.
369
388
  `
370
389
  });
371
390
  }
372
- };
373
- t(W, "NextJsSharpError");
374
- var Z = W, $ = class $ extends o {
391
+ }, W = class extends s {
375
392
  constructor(e) {
376
393
  super({
377
394
  category: "FRAMEWORK_NEXTJS",
378
395
  code: 2,
379
- message: n`
396
+ message: a`
380
397
  Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
381
398
  `
382
399
  });
383
400
  this.data = e;
384
401
  }
385
- };
386
- t($, "NextjsRouterMocksNotAvailable");
387
- var ee = $, O = class O extends o {
402
+ static {
403
+ o(this, "NextjsRouterMocksNotAvailable");
404
+ }
405
+ }, $ = class extends s {
388
406
  constructor(e) {
389
407
  super({
390
408
  category: "DOCS-TOOLS",
391
409
  code: 1,
392
410
  documentation: "https://github.com/storybookjs/storybook/issues/26606",
393
- message: n`
411
+ message: a`
394
412
  There was a failure when generating detailed ArgTypes in ${e.language} for:
395
413
  ${JSON.stringify(e.type, null, 2)}
396
414
 
@@ -402,16 +420,17 @@ var ee = $, O = class O extends o {
402
420
  });
403
421
  this.data = e;
404
422
  }
405
- };
406
- t(O, "UnknownArgTypesError");
407
- var te = O, C = class C extends o {
423
+ static {
424
+ o(this, "UnknownArgTypesError");
425
+ }
426
+ }, D = class extends s {
408
427
  constructor(e) {
409
428
  super({
410
429
  category: "ADDON_VITEST",
411
430
  code: 1,
412
431
  // TODO: Add documentation about viewports support
413
432
  // documentation: '',
414
- message: n`
433
+ message: a`
415
434
  Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
416
435
 
417
436
  The Storybook plugin only supports values in the following units:
@@ -422,28 +441,43 @@ var te = O, C = class C extends o {
422
441
  });
423
442
  this.data = e;
424
443
  }
444
+ static {
445
+ o(this, "UnsupportedViewportDimensionError");
446
+ }
447
+ }, C = class extends s {
448
+ static {
449
+ o(this, "ElementA11yParameterError");
450
+ }
451
+ constructor() {
452
+ super({
453
+ category: "ADDON_A11Y",
454
+ code: 1,
455
+ documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-para\
456
+ meter",
457
+ message: 'The "element" parameter in parameters.a11y has been removed. Use "context" instead.'
458
+ });
459
+ }
425
460
  };
426
- t(C, "UnsupportedViewportDimensionError");
427
- var oe = C;
428
461
  export {
429
- G as CalledExtractOnStoreError,
430
- F as CalledPreviewMethodBeforeInitializationError,
431
- ne as Category,
432
- M as EmptyIndexError,
433
- L as ImplicitActionsDuringRendering,
434
- K as MdxFileWithNoCsfReferencesError,
435
- Y as MissingRenderToCanvasError,
436
- j as MissingStoryAfterHmrError,
437
- J as MissingStoryFromCsfFileError,
438
- q as MountMustBeDestructuredError,
439
- Z as NextJsSharpError,
440
- ee as NextjsRouterMocksNotAvailable,
441
- z as NoRenderFunctionError,
442
- X as NoStoryMatchError,
443
- B as NoStoryMountedError,
444
- Q as StatusTypeIdMismatchError,
445
- H as StoryIndexFetchError,
446
- U as StoryStoreAccessedBeforeInitializationError,
447
- te as UnknownArgTypesError,
448
- oe as UnsupportedViewportDimensionError
462
+ b as CalledExtractOnStoreError,
463
+ x as CalledPreviewMethodBeforeInitializationError,
464
+ L as Category,
465
+ C as ElementA11yParameterError,
466
+ P as EmptyIndexError,
467
+ R as ImplicitActionsDuringRendering,
468
+ S as MdxFileWithNoCsfReferencesError,
469
+ I as MissingRenderToCanvasError,
470
+ f as MissingStoryAfterHmrError,
471
+ T as MissingStoryFromCsfFileError,
472
+ N as MountMustBeDestructuredError,
473
+ O as NextJsSharpError,
474
+ W as NextjsRouterMocksNotAvailable,
475
+ v as NoRenderFunctionError,
476
+ w as NoStoryMatchError,
477
+ A as NoStoryMountedError,
478
+ V as StatusTypeIdMismatchError,
479
+ _ as StoryIndexFetchError,
480
+ k as StoryStoreAccessedBeforeInitializationError,
481
+ $ as UnknownArgTypesError,
482
+ D as UnsupportedViewportDimensionError
449
483
  };