storybook 10.1.0-alpha.1 → 10.1.0-alpha.11

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 (202) hide show
  1. package/dist/_browser-chunks/Color-FTG7SQDA.js +1097 -0
  2. package/dist/_browser-chunks/WithTooltip-LMROHDUP.js +1651 -0
  3. package/dist/_browser-chunks/chunk-2FRVAXCZ.js +7 -0
  4. package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
  5. package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
  6. package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
  7. package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
  8. package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
  9. package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-74YHFU5B.js} +44 -109
  10. package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
  11. package/dist/_browser-chunks/chunk-AIOS4NGK.js +252 -0
  12. package/dist/_browser-chunks/chunk-AS2HQEYC.js +14 -0
  13. package/dist/_browser-chunks/chunk-AXG2BOBL.js +836 -0
  14. package/dist/_browser-chunks/chunk-BE2DAXKJ.js +2966 -0
  15. package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
  16. package/dist/_browser-chunks/chunk-EBHB6RPS.js +61 -0
  17. package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
  18. package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
  19. package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
  20. package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
  21. package/dist/_browser-chunks/{chunk-L2D73C6Z.js → chunk-H6XK3RSC.js} +13 -21
  22. package/dist/_browser-chunks/chunk-IPA5A322.js +71 -0
  23. package/dist/_browser-chunks/chunk-JP7NCOJX.js +37 -0
  24. package/dist/_browser-chunks/chunk-KJHJLCBK.js +11 -0
  25. package/dist/_browser-chunks/chunk-L4RMQ7D7.js +223 -0
  26. package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
  27. package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
  28. package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
  29. package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
  30. package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
  31. package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
  32. package/dist/_browser-chunks/chunk-WXP2XJ3O.js +950 -0
  33. package/dist/_browser-chunks/chunk-X3DUQ5RA.js +47 -0
  34. package/dist/_browser-chunks/chunk-XJNX76GA.js +85 -0
  35. package/dist/_browser-chunks/{chunk-F4Q6SGTB.js → chunk-YKE5S47A.js} +177 -399
  36. package/dist/_browser-chunks/{chunk-SN4J4IQ3.js → chunk-ZUWEVLDX.js} +1 -7
  37. package/dist/_browser-chunks/{formatter-OMEEQ6HG.js → formatter-QJ4M4OGQ.js} +4 -9
  38. package/dist/_browser-chunks/{syntaxhighlighter-DK2ODWXH.js → syntaxhighlighter-WKBQ5RC7.js} +707 -1851
  39. package/dist/_node-chunks/{builder-manager-6UBDPV7P.js → builder-manager-PMPHOSM2.js} +495 -1013
  40. package/dist/_node-chunks/camelcase-K3IOOFQW.js +18 -0
  41. package/dist/_node-chunks/{chunk-QNUGJO6L.js → chunk-32NE3UE3.js} +15 -24
  42. package/dist/_node-chunks/chunk-4GZCFQFG.js +58 -0
  43. package/dist/_node-chunks/chunk-5QK5MSOI.js +943 -0
  44. package/dist/_node-chunks/{chunk-3FPF5Y2F.js → chunk-6ZOLETQK.js} +8 -10
  45. package/dist/_node-chunks/chunk-7I22Y76Z.js +1047 -0
  46. package/dist/_node-chunks/chunk-AKTRSR3O.js +72 -0
  47. package/dist/_node-chunks/chunk-BBOP3XCK.js +119 -0
  48. package/dist/_node-chunks/chunk-C2GQVDWI.js +34 -0
  49. package/dist/_node-chunks/{chunk-SCTKVDWR.js → chunk-GG2WQZSG.js} +4619 -7350
  50. package/dist/_node-chunks/chunk-GQJOWVVR.js +3214 -0
  51. package/dist/_node-chunks/chunk-JCRM2YVK.js +3009 -0
  52. package/dist/_node-chunks/chunk-KK4AT5F3.js +1029 -0
  53. package/dist/_node-chunks/chunk-L7MYXJUM.js +1114 -0
  54. package/dist/_node-chunks/{chunk-LAU7VVPC.js → chunk-LCZO45L7.js} +469 -983
  55. package/dist/_node-chunks/chunk-LR3QITDI.js +209 -0
  56. package/dist/_node-chunks/chunk-LXG4DK35.js +3171 -0
  57. package/dist/_node-chunks/chunk-MJ3WOS6F.js +37 -0
  58. package/dist/_node-chunks/chunk-PHOZWZZO.js +61 -0
  59. package/dist/_node-chunks/chunk-QECOQWRJ.js +936 -0
  60. package/dist/_node-chunks/chunk-QH4V5YDB.js +20 -0
  61. package/dist/_node-chunks/chunk-R6HWGZWD.js +26 -0
  62. package/dist/_node-chunks/chunk-SPQXMU2Q.js +759 -0
  63. package/dist/_node-chunks/chunk-TXZY6V6O.js +1564 -0
  64. package/dist/_node-chunks/chunk-UGDPX5LE.js +756 -0
  65. package/dist/_node-chunks/chunk-UY26MQLT.js +603 -0
  66. package/dist/_node-chunks/chunk-WK3EMYK6.js +61 -0
  67. package/dist/_node-chunks/{chunk-CJHAP7SE.js → chunk-WLHMN7AP.js} +292 -688
  68. package/dist/_node-chunks/chunk-XGVLB4UJ.js +54 -0
  69. package/dist/_node-chunks/{chunk-J7N7PD5Q.js → chunk-YHRFI6BE.js} +87 -227
  70. package/dist/_node-chunks/chunk-YK4KVMFW.js +18 -0
  71. package/dist/_node-chunks/chunk-ZZALGOA6.js +4523 -0
  72. package/dist/_node-chunks/chunk-ZZPBSYA5.js +301 -0
  73. package/dist/_node-chunks/chunk-ZZSRFAC6.js +45571 -0
  74. package/dist/_node-chunks/dist-4DWOCZUD.js +121 -0
  75. package/dist/_node-chunks/globby-AAARUKEU.js +3452 -0
  76. package/dist/_node-chunks/lib-HEUKGL62.js +366 -0
  77. package/dist/_node-chunks/mdx-N42X6CFJ-DCVRPS6N.js +14329 -0
  78. package/dist/_node-chunks/p-limit-F5ZKJ6WZ.js +116 -0
  79. package/dist/_node-chunks/plugin-7YY7JXCH.js +123 -0
  80. package/dist/_node-chunks/{plugin-HJLCLGNT.js → plugin-SZP3CW6W.js} +36 -56
  81. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-TGKNDPO6.js +46623 -0
  82. package/dist/_node-chunks/webpack-mock-plugin-LNTZZFBE.js +92 -0
  83. package/dist/actions/decorator.js +21 -42
  84. package/dist/actions/index.js +3 -3
  85. package/dist/babel/index.d.ts +671 -335
  86. package/dist/babel/index.js +11 -11
  87. package/dist/bin/core.js +592 -1546
  88. package/dist/bin/dispatcher.js +26 -37
  89. package/dist/bin/loader.js +23 -34
  90. package/dist/channels/index.js +98 -234
  91. package/dist/cli/index.js +1966 -5347
  92. package/dist/client-logger/index.js +31 -61
  93. package/dist/common/index.d.ts +210 -3
  94. package/dist/common/index.js +28 -20
  95. package/dist/components/index.d.ts +472 -280
  96. package/dist/components/index.js +15992 -75
  97. package/dist/core-events/index.js +2 -66
  98. package/dist/core-server/index.js +3837 -7191
  99. package/dist/core-server/presets/common-manager.css +2 -2
  100. package/dist/core-server/presets/common-manager.js +2511 -5219
  101. package/dist/core-server/presets/common-override-preset.js +31 -60
  102. package/dist/core-server/presets/common-preset.js +434 -924
  103. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +15 -19
  104. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +12 -17
  105. package/dist/csf/index.js +534 -1172
  106. package/dist/csf-tools/index.d.ts +15 -4
  107. package/dist/csf-tools/index.js +9 -9
  108. package/dist/docs-tools/index.js +6 -6
  109. package/dist/highlight/index.js +2 -2
  110. package/dist/instrumenter/index.js +199 -415
  111. package/dist/manager/globals-runtime.js +47968 -56484
  112. package/dist/manager/globals.js +2 -3
  113. package/dist/manager/runtime.js +4901 -10318
  114. package/dist/manager-api/index.d.ts +11 -3
  115. package/dist/manager-api/index.js +1250 -2397
  116. package/dist/manager-errors.d.ts +3 -0
  117. package/dist/manager-errors.js +3 -3
  118. package/dist/node-logger/index.d.ts +1 -1
  119. package/dist/node-logger/index.js +1270 -2593
  120. package/dist/preview/globals.js +2 -3
  121. package/dist/preview/runtime.js +10767 -22386
  122. package/dist/preview-api/index.d.ts +67 -68
  123. package/dist/preview-api/index.js +15 -15
  124. package/dist/preview-errors.d.ts +3 -0
  125. package/dist/preview-errors.js +4 -4
  126. package/dist/router/index.js +347 -899
  127. package/dist/server-errors.d.ts +3 -0
  128. package/dist/server-errors.js +10 -10
  129. package/dist/telemetry/index.js +24 -24
  130. package/dist/test/index.js +6129 -11914
  131. package/dist/theming/create.d.ts +4 -2
  132. package/dist/theming/create.js +4 -4
  133. package/dist/theming/index.d.ts +3397 -2628
  134. package/dist/theming/index.js +502 -1091
  135. package/dist/types/index.d.ts +50 -5
  136. package/dist/types/index.js +2 -11
  137. package/dist/viewport/index.js +3 -3
  138. package/package.json +17 -9
  139. package/dist/_browser-chunks/Color-7ZNS6F6B.js +0 -1676
  140. package/dist/_browser-chunks/WithTooltip-SK46ZJ2J.js +0 -13
  141. package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
  142. package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
  143. package/dist/_browser-chunks/chunk-BOOOPFZF.js +0 -2335
  144. package/dist/_browser-chunks/chunk-C4XOKMDU.js +0 -270
  145. package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
  146. package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
  147. package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
  148. package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
  149. package/dist/_browser-chunks/chunk-I74EUU5O.js +0 -5809
  150. package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
  151. package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
  152. package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
  153. package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
  154. package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
  155. package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
  156. package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
  157. package/dist/_browser-chunks/chunk-RNE2IUTB.js +0 -1300
  158. package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
  159. package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
  160. package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
  161. package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
  162. package/dist/_browser-chunks/chunk-W4QKLQSC.js +0 -4182
  163. package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
  164. package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
  165. package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
  166. package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
  167. package/dist/_node-chunks/camelcase-WKJOVNPM.js +0 -18
  168. package/dist/_node-chunks/chunk-2RIKHYCS.js +0 -304
  169. package/dist/_node-chunks/chunk-3JCSHYSU.js +0 -1657
  170. package/dist/_node-chunks/chunk-4GE6Q4MX.js +0 -1531
  171. package/dist/_node-chunks/chunk-5SEHHENC.js +0 -64656
  172. package/dist/_node-chunks/chunk-6GD23U64.js +0 -420
  173. package/dist/_node-chunks/chunk-6OAXYS5T.js +0 -1544
  174. package/dist/_node-chunks/chunk-7TNUMFKR.js +0 -4741
  175. package/dist/_node-chunks/chunk-BCDHUXAJ.js +0 -4272
  176. package/dist/_node-chunks/chunk-BYVQZ2HU.js +0 -220
  177. package/dist/_node-chunks/chunk-DAMVKHAC.js +0 -101
  178. package/dist/_node-chunks/chunk-FEOC7OX2.js +0 -1586
  179. package/dist/_node-chunks/chunk-FY7XZPLY.js +0 -2248
  180. package/dist/_node-chunks/chunk-GD2FXWDF.js +0 -697
  181. package/dist/_node-chunks/chunk-HM6B7FE5.js +0 -18
  182. package/dist/_node-chunks/chunk-HORWITP7.js +0 -90
  183. package/dist/_node-chunks/chunk-II4AFH3V.js +0 -28
  184. package/dist/_node-chunks/chunk-MF2PUEWG.js +0 -5029
  185. package/dist/_node-chunks/chunk-RVE4UTVQ.js +0 -1518
  186. package/dist/_node-chunks/chunk-TUFWZUTO.js +0 -69
  187. package/dist/_node-chunks/chunk-TXHNWNH4.js +0 -79
  188. package/dist/_node-chunks/chunk-ULWNTI6M.js +0 -1198
  189. package/dist/_node-chunks/chunk-VYRFXLRO.js +0 -6712
  190. package/dist/_node-chunks/chunk-WNOSTIYP.js +0 -34
  191. package/dist/_node-chunks/chunk-X67VGZN4.js +0 -1250
  192. package/dist/_node-chunks/chunk-XCEBYOA4.js +0 -61
  193. package/dist/_node-chunks/chunk-XW7YMR7I.js +0 -111
  194. package/dist/_node-chunks/chunk-ZRFYQ46H.js +0 -61
  195. package/dist/_node-chunks/dist-APCKHSY3.js +0 -175
  196. package/dist/_node-chunks/globby-TSGXGDA2.js +0 -5222
  197. package/dist/_node-chunks/lib-DZ5TVIU5.js +0 -518
  198. package/dist/_node-chunks/mdx-N42X6CFJ-Z6BYQCPN.js +0 -22017
  199. package/dist/_node-chunks/p-limit-MLJNGG2K.js +0 -168
  200. package/dist/_node-chunks/plugin-J3JI3ZKJ.js +0 -159
  201. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-3QHNTM5B.js +0 -69102
  202. package/dist/_node-chunks/webpack-mock-plugin-4Y3MWPJ6.js +0 -124
@@ -224,9 +224,7 @@ var INITIAL_VIEWPORTS = {
224
224
  },
225
225
  type: "mobile"
226
226
  }
227
- };
228
- var DEFAULT_VIEWPORT = "responsive";
229
- var MINIMAL_VIEWPORTS = {
227
+ }, DEFAULT_VIEWPORT = "responsive", MINIMAL_VIEWPORTS = {
230
228
  mobile1: {
231
229
  name: "Small mobile",
232
230
  styles: {
@@ -1,18 +1,13 @@
1
- import {
2
- __name
3
- } from "./chunk-MM7DTO55.js";
4
-
5
1
  // ../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
6
2
  function _objectWithoutPropertiesLoose(r, e) {
7
- if (null == r) return {};
3
+ if (r == null) return {};
8
4
  var t = {};
9
5
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
10
- if (-1 !== e.indexOf(n)) continue;
6
+ if (e.indexOf(n) !== -1) continue;
11
7
  t[n] = r[n];
12
8
  }
13
9
  return t;
14
10
  }
15
- __name(_objectWithoutPropertiesLoose, "_objectWithoutPropertiesLoose");
16
11
 
17
12
  export {
18
13
  _objectWithoutPropertiesLoose
@@ -0,0 +1,11 @@
1
+ // src/actions/constants.ts
2
+ var PARAM_KEY = "actions", ADDON_ID = "storybook/actions", PANEL_ID = `${ADDON_ID}/panel`, EVENT_ID = `${ADDON_ID}/action-event`, CLEAR_ID = `${ADDON_ID}/action-clear`, CYCLIC_KEY = "$___storybook.isCyclic";
3
+
4
+ export {
5
+ PARAM_KEY,
6
+ ADDON_ID,
7
+ PANEL_ID,
8
+ EVENT_ID,
9
+ CLEAR_ID,
10
+ CYCLIC_KEY
11
+ };
@@ -1,41 +1,15 @@
1
1
  import {
2
2
  StorybookError
3
- } from "./chunk-LASUB7TL.js";
3
+ } from "./chunk-EBHB6RPS.js";
4
4
  import {
5
5
  dedent
6
- } from "./chunk-OPCDBBL3.js";
7
- import {
8
- __name
9
- } from "./chunk-MM7DTO55.js";
6
+ } from "./chunk-JP7NCOJX.js";
10
7
 
11
8
  // src/preview-errors.ts
12
- var Category = /* @__PURE__ */ ((Category2) => {
13
- Category2["BLOCKS"] = "BLOCKS";
14
- Category2["DOCS_TOOLS"] = "DOCS-TOOLS";
15
- Category2["PREVIEW_CLIENT_LOGGER"] = "PREVIEW_CLIENT-LOGGER";
16
- Category2["PREVIEW_CHANNELS"] = "PREVIEW_CHANNELS";
17
- Category2["PREVIEW_CORE_EVENTS"] = "PREVIEW_CORE-EVENTS";
18
- Category2["PREVIEW_INSTRUMENTER"] = "PREVIEW_INSTRUMENTER";
19
- Category2["PREVIEW_API"] = "PREVIEW_API";
20
- Category2["PREVIEW_REACT_DOM_SHIM"] = "PREVIEW_REACT-DOM-SHIM";
21
- Category2["PREVIEW_ROUTER"] = "PREVIEW_ROUTER";
22
- Category2["PREVIEW_THEMING"] = "PREVIEW_THEMING";
23
- Category2["RENDERER_HTML"] = "RENDERER_HTML";
24
- Category2["RENDERER_PREACT"] = "RENDERER_PREACT";
25
- Category2["RENDERER_REACT"] = "RENDERER_REACT";
26
- Category2["RENDERER_SERVER"] = "RENDERER_SERVER";
27
- Category2["RENDERER_SVELTE"] = "RENDERER_SVELTE";
28
- Category2["RENDERER_VUE"] = "RENDERER_VUE";
29
- Category2["RENDERER_VUE3"] = "RENDERER_VUE3";
30
- Category2["RENDERER_WEB_COMPONENTS"] = "RENDERER_WEB-COMPONENTS";
31
- Category2["FRAMEWORK_NEXTJS"] = "FRAMEWORK_NEXTJS";
32
- Category2["ADDON_VITEST"] = "ADDON_VITEST";
33
- Category2["ADDON_A11Y"] = "ADDON_A11Y";
34
- return Category2;
35
- })(Category || {});
36
- var _MissingStoryAfterHmrError = class _MissingStoryAfterHmrError extends StorybookError {
9
+ var Category = /* @__PURE__ */ ((Category2) => (Category2.BLOCKS = "BLOCKS", Category2.DOCS_TOOLS = "DOCS-TOOLS", Category2.PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER", Category2.PREVIEW_CHANNELS = "PREVIEW_CHANNELS", Category2.PREVIEW_CORE_EVENTS = "PREVIEW_CORE-EVENTS", Category2.PREVIEW_INSTRUMENTER = "PREVIEW_INSTRUMENTER", Category2.PREVIEW_API = "PREVIEW_API", Category2.PREVIEW_REACT_DOM_SHIM = "PREVIEW_REACT-DOM-SHIM", Category2.PREVIEW_ROUTER = "PREVIEW_ROUTER", Category2.PREVIEW_THEMING = "PREVIEW_THEMING", Category2.RENDERER_HTML = "RENDERER_HTML", Category2.RENDERER_PREACT = "RENDERER_PREACT", Category2.RENDERER_REACT = "RENDERER_REACT", Category2.RENDERER_SERVER = "RENDERER_SERVER", Category2.RENDERER_SVELTE = "RENDERER_SVELTE", Category2.RENDERER_VUE = "RENDERER_VUE", Category2.RENDERER_VUE3 = "RENDERER_VUE3", Category2.RENDERER_WEB_COMPONENTS = "RENDERER_WEB-COMPONENTS", Category2.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", Category2.ADDON_VITEST = "ADDON_VITEST", Category2.ADDON_A11Y = "ADDON_A11Y", Category2))(Category || {}), MissingStoryAfterHmrError = class extends StorybookError {
37
10
  constructor(data) {
38
11
  super({
12
+ name: "MissingStoryAfterHmrError",
39
13
  category: "PREVIEW_API" /* PREVIEW_API */,
40
14
  code: 1,
41
15
  message: dedent`
@@ -48,12 +22,10 @@ var _MissingStoryAfterHmrError = class _MissingStoryAfterHmrError extends Storyb
48
22
  });
49
23
  this.data = data;
50
24
  }
51
- };
52
- __name(_MissingStoryAfterHmrError, "MissingStoryAfterHmrError");
53
- var MissingStoryAfterHmrError = _MissingStoryAfterHmrError;
54
- var _ImplicitActionsDuringRendering = class _ImplicitActionsDuringRendering extends StorybookError {
25
+ }, ImplicitActionsDuringRendering = class extends StorybookError {
55
26
  constructor(data) {
56
27
  super({
28
+ name: "ImplicitActionsDuringRendering",
57
29
  category: "PREVIEW_API" /* PREVIEW_API */,
58
30
  code: 2,
59
31
  documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",
@@ -61,7 +33,7 @@ var _ImplicitActionsDuringRendering = class _ImplicitActionsDuringRendering exte
61
33
  We detected that you use an implicit action arg while ${data.phase} of your story.
62
34
  ${data.deprecated ? `
63
35
  This is deprecated and won't work in Storybook 8 anymore.
64
- ` : ``}
36
+ ` : ""}
65
37
  Please provide an explicit spy to your args like this:
66
38
  import { fn } from 'storybook/test';
67
39
  ...
@@ -71,12 +43,10 @@ This is deprecated and won't work in Storybook 8 anymore.
71
43
  });
72
44
  this.data = data;
73
45
  }
74
- };
75
- __name(_ImplicitActionsDuringRendering, "ImplicitActionsDuringRendering");
76
- var ImplicitActionsDuringRendering = _ImplicitActionsDuringRendering;
77
- var _CalledExtractOnStoreError = class _CalledExtractOnStoreError extends StorybookError {
46
+ }, CalledExtractOnStoreError = class extends StorybookError {
78
47
  constructor() {
79
48
  super({
49
+ name: "CalledExtractOnStoreError",
80
50
  category: "PREVIEW_API" /* PREVIEW_API */,
81
51
  code: 3,
82
52
  message: dedent`
@@ -85,12 +55,10 @@ var _CalledExtractOnStoreError = class _CalledExtractOnStoreError extends Storyb
85
55
  You probably meant to call \`await preview.extract()\` which does the above for you.`
86
56
  });
87
57
  }
88
- };
89
- __name(_CalledExtractOnStoreError, "CalledExtractOnStoreError");
90
- var CalledExtractOnStoreError = _CalledExtractOnStoreError;
91
- var _MissingRenderToCanvasError = class _MissingRenderToCanvasError extends StorybookError {
58
+ }, MissingRenderToCanvasError = class extends StorybookError {
92
59
  constructor() {
93
60
  super({
61
+ name: "MissingRenderToCanvasError",
94
62
  category: "PREVIEW_API" /* PREVIEW_API */,
95
63
  code: 4,
96
64
  message: dedent`
@@ -100,12 +68,10 @@ var _MissingRenderToCanvasError = class _MissingRenderToCanvasError extends Stor
100
68
  documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"
101
69
  });
102
70
  }
103
- };
104
- __name(_MissingRenderToCanvasError, "MissingRenderToCanvasError");
105
- var MissingRenderToCanvasError = _MissingRenderToCanvasError;
106
- var _CalledPreviewMethodBeforeInitializationError = class _CalledPreviewMethodBeforeInitializationError extends StorybookError {
71
+ }, CalledPreviewMethodBeforeInitializationError = class extends StorybookError {
107
72
  constructor(data) {
108
73
  super({
74
+ name: "CalledPreviewMethodBeforeInitializationError",
109
75
  category: "PREVIEW_API" /* PREVIEW_API */,
110
76
  code: 5,
111
77
  message: dedent`
@@ -119,12 +85,10 @@ var _CalledPreviewMethodBeforeInitializationError = class _CalledPreviewMethodBe
119
85
  });
120
86
  this.data = data;
121
87
  }
122
- };
123
- __name(_CalledPreviewMethodBeforeInitializationError, "CalledPreviewMethodBeforeInitializationError");
124
- var CalledPreviewMethodBeforeInitializationError = _CalledPreviewMethodBeforeInitializationError;
125
- var _StoryIndexFetchError = class _StoryIndexFetchError extends StorybookError {
88
+ }, StoryIndexFetchError = class extends StorybookError {
126
89
  constructor(data) {
127
90
  super({
91
+ name: "StoryIndexFetchError",
128
92
  category: "PREVIEW_API" /* PREVIEW_API */,
129
93
  code: 6,
130
94
  message: dedent`
@@ -140,12 +104,10 @@ var _StoryIndexFetchError = class _StoryIndexFetchError extends StorybookError {
140
104
  });
141
105
  this.data = data;
142
106
  }
143
- };
144
- __name(_StoryIndexFetchError, "StoryIndexFetchError");
145
- var StoryIndexFetchError = _StoryIndexFetchError;
146
- var _MdxFileWithNoCsfReferencesError = class _MdxFileWithNoCsfReferencesError extends StorybookError {
107
+ }, MdxFileWithNoCsfReferencesError = class extends StorybookError {
147
108
  constructor(data) {
148
109
  super({
110
+ name: "MdxFileWithNoCsfReferencesError",
149
111
  category: "PREVIEW_API" /* PREVIEW_API */,
150
112
  code: 7,
151
113
  message: dedent`
@@ -157,12 +119,10 @@ var _MdxFileWithNoCsfReferencesError = class _MdxFileWithNoCsfReferencesError ex
157
119
  });
158
120
  this.data = data;
159
121
  }
160
- };
161
- __name(_MdxFileWithNoCsfReferencesError, "MdxFileWithNoCsfReferencesError");
162
- var MdxFileWithNoCsfReferencesError = _MdxFileWithNoCsfReferencesError;
163
- var _EmptyIndexError = class _EmptyIndexError extends StorybookError {
122
+ }, EmptyIndexError = class extends StorybookError {
164
123
  constructor() {
165
124
  super({
125
+ name: "EmptyIndexError",
166
126
  category: "PREVIEW_API" /* PREVIEW_API */,
167
127
  code: 8,
168
128
  message: dedent`
@@ -172,12 +132,10 @@ var _EmptyIndexError = class _EmptyIndexError extends StorybookError {
172
132
  - Also check the browser console and terminal for error messages.`
173
133
  });
174
134
  }
175
- };
176
- __name(_EmptyIndexError, "EmptyIndexError");
177
- var EmptyIndexError = _EmptyIndexError;
178
- var _NoStoryMatchError = class _NoStoryMatchError extends StorybookError {
135
+ }, NoStoryMatchError = class extends StorybookError {
179
136
  constructor(data) {
180
137
  super({
138
+ name: "NoStoryMatchError",
181
139
  category: "PREVIEW_API" /* PREVIEW_API */,
182
140
  code: 9,
183
141
  message: dedent`
@@ -189,12 +147,10 @@ var _NoStoryMatchError = class _NoStoryMatchError extends StorybookError {
189
147
  });
190
148
  this.data = data;
191
149
  }
192
- };
193
- __name(_NoStoryMatchError, "NoStoryMatchError");
194
- var NoStoryMatchError = _NoStoryMatchError;
195
- var _MissingStoryFromCsfFileError = class _MissingStoryFromCsfFileError extends StorybookError {
150
+ }, MissingStoryFromCsfFileError = class extends StorybookError {
196
151
  constructor(data) {
197
152
  super({
153
+ name: "MissingStoryFromCsfFileError",
198
154
  category: "PREVIEW_API" /* PREVIEW_API */,
199
155
  code: 10,
200
156
  message: dedent`
@@ -209,12 +165,10 @@ var _MissingStoryFromCsfFileError = class _MissingStoryFromCsfFileError extends
209
165
  });
210
166
  this.data = data;
211
167
  }
212
- };
213
- __name(_MissingStoryFromCsfFileError, "MissingStoryFromCsfFileError");
214
- var MissingStoryFromCsfFileError = _MissingStoryFromCsfFileError;
215
- var _StoryStoreAccessedBeforeInitializationError = class _StoryStoreAccessedBeforeInitializationError extends StorybookError {
168
+ }, StoryStoreAccessedBeforeInitializationError = class extends StorybookError {
216
169
  constructor() {
217
170
  super({
171
+ name: "StoryStoreAccessedBeforeInitializationError",
218
172
  category: "PREVIEW_API" /* PREVIEW_API */,
219
173
  code: 11,
220
174
  message: dedent`
@@ -224,12 +178,11 @@ var _StoryStoreAccessedBeforeInitializationError = class _StoryStoreAccessedBefo
224
178
  remove access to the store entirely`
225
179
  });
226
180
  }
227
- };
228
- __name(_StoryStoreAccessedBeforeInitializationError, "StoryStoreAccessedBeforeInitializationError");
229
- var StoryStoreAccessedBeforeInitializationError = _StoryStoreAccessedBeforeInitializationError;
230
- var _MountMustBeDestructuredError = class _MountMustBeDestructuredError extends StorybookError {
181
+ }, MountMustBeDestructuredError = class extends StorybookError {
182
+ // name: 'MountMustBeDestructuredError';
231
183
  constructor(data) {
232
184
  super({
185
+ name: "MountMustBeDestructuredError",
233
186
  category: "PREVIEW_API" /* PREVIEW_API */,
234
187
  code: 12,
235
188
  message: dedent`
@@ -253,12 +206,10 @@ var _MountMustBeDestructuredError = class _MountMustBeDestructuredError extends
253
206
  });
254
207
  this.data = data;
255
208
  }
256
- };
257
- __name(_MountMustBeDestructuredError, "MountMustBeDestructuredError");
258
- var MountMustBeDestructuredError = _MountMustBeDestructuredError;
259
- var _NoRenderFunctionError = class _NoRenderFunctionError extends StorybookError {
209
+ }, NoRenderFunctionError = class extends StorybookError {
260
210
  constructor(data) {
261
211
  super({
212
+ name: "NoRenderFunctionError",
262
213
  category: "PREVIEW_API" /* PREVIEW_API */,
263
214
  code: 14,
264
215
  message: dedent`
@@ -267,12 +218,10 @@ var _NoRenderFunctionError = class _NoRenderFunctionError extends StorybookError
267
218
  });
268
219
  this.data = data;
269
220
  }
270
- };
271
- __name(_NoRenderFunctionError, "NoRenderFunctionError");
272
- var NoRenderFunctionError = _NoRenderFunctionError;
273
- var _NoStoryMountedError = class _NoStoryMountedError extends StorybookError {
221
+ }, NoStoryMountedError = class extends StorybookError {
274
222
  constructor() {
275
223
  super({
224
+ name: "NoStoryMountedError",
276
225
  category: "PREVIEW_API" /* PREVIEW_API */,
277
226
  code: 15,
278
227
  message: dedent`
@@ -293,12 +242,10 @@ var _NoStoryMountedError = class _NoStoryMountedError extends StorybookError {
293
242
  `
294
243
  });
295
244
  }
296
- };
297
- __name(_NoStoryMountedError, "NoStoryMountedError");
298
- var NoStoryMountedError = _NoStoryMountedError;
299
- var _StatusTypeIdMismatchError = class _StatusTypeIdMismatchError extends StorybookError {
245
+ }, StatusTypeIdMismatchError = class extends StorybookError {
300
246
  constructor(data) {
301
247
  super({
248
+ name: "StatusTypeIdMismatchError",
302
249
  category: "PREVIEW_API" /* PREVIEW_API */,
303
250
  code: 16,
304
251
  message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
@@ -309,12 +256,10 @@ var _StatusTypeIdMismatchError = class _StatusTypeIdMismatchError extends Storyb
309
256
  });
310
257
  this.data = data;
311
258
  }
312
- };
313
- __name(_StatusTypeIdMismatchError, "StatusTypeIdMismatchError");
314
- var StatusTypeIdMismatchError = _StatusTypeIdMismatchError;
315
- var _NextJsSharpError = class _NextJsSharpError extends StorybookError {
259
+ }, NextJsSharpError = class extends StorybookError {
316
260
  constructor() {
317
261
  super({
262
+ name: "NextJsSharpError",
318
263
  category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
319
264
  code: 1,
320
265
  documentation: "https://storybook.js.org/docs/get-started/nextjs#faq",
@@ -325,12 +270,10 @@ var _NextJsSharpError = class _NextJsSharpError extends StorybookError {
325
270
  `
326
271
  });
327
272
  }
328
- };
329
- __name(_NextJsSharpError, "NextJsSharpError");
330
- var NextJsSharpError = _NextJsSharpError;
331
- var _NextjsRouterMocksNotAvailable = class _NextjsRouterMocksNotAvailable extends StorybookError {
273
+ }, NextjsRouterMocksNotAvailable = class extends StorybookError {
332
274
  constructor(data) {
333
275
  super({
276
+ name: "NextjsRouterMocksNotAvailable",
334
277
  category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
335
278
  code: 2,
336
279
  message: dedent`
@@ -339,12 +282,10 @@ var _NextjsRouterMocksNotAvailable = class _NextjsRouterMocksNotAvailable extend
339
282
  });
340
283
  this.data = data;
341
284
  }
342
- };
343
- __name(_NextjsRouterMocksNotAvailable, "NextjsRouterMocksNotAvailable");
344
- var NextjsRouterMocksNotAvailable = _NextjsRouterMocksNotAvailable;
345
- var _UnknownArgTypesError = class _UnknownArgTypesError extends StorybookError {
285
+ }, UnknownArgTypesError = class extends StorybookError {
346
286
  constructor(data) {
347
287
  super({
288
+ name: "UnknownArgTypesError",
348
289
  category: "DOCS-TOOLS" /* DOCS_TOOLS */,
349
290
  code: 1,
350
291
  documentation: "https://github.com/storybookjs/storybook/issues/26606",
@@ -360,12 +301,10 @@ var _UnknownArgTypesError = class _UnknownArgTypesError extends StorybookError {
360
301
  });
361
302
  this.data = data;
362
303
  }
363
- };
364
- __name(_UnknownArgTypesError, "UnknownArgTypesError");
365
- var UnknownArgTypesError = _UnknownArgTypesError;
366
- var _UnsupportedViewportDimensionError = class _UnsupportedViewportDimensionError extends StorybookError {
304
+ }, UnsupportedViewportDimensionError = class extends StorybookError {
367
305
  constructor(data) {
368
306
  super({
307
+ name: "UnsupportedViewportDimensionError",
369
308
  category: "ADDON_VITEST" /* ADDON_VITEST */,
370
309
  code: 1,
371
310
  // TODO: Add documentation about viewports support
@@ -381,12 +320,10 @@ var _UnsupportedViewportDimensionError = class _UnsupportedViewportDimensionErro
381
320
  });
382
321
  this.data = data;
383
322
  }
384
- };
385
- __name(_UnsupportedViewportDimensionError, "UnsupportedViewportDimensionError");
386
- var UnsupportedViewportDimensionError = _UnsupportedViewportDimensionError;
387
- var _ElementA11yParameterError = class _ElementA11yParameterError extends StorybookError {
323
+ }, ElementA11yParameterError = class extends StorybookError {
388
324
  constructor() {
389
325
  super({
326
+ name: "ElementA11yParameterError",
390
327
  category: "ADDON_A11Y" /* ADDON_A11Y */,
391
328
  code: 1,
392
329
  documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter",
@@ -394,8 +331,6 @@ var _ElementA11yParameterError = class _ElementA11yParameterError extends Storyb
394
331
  });
395
332
  }
396
333
  };
397
- __name(_ElementA11yParameterError, "ElementA11yParameterError");
398
- var ElementA11yParameterError = _ElementA11yParameterError;
399
334
 
400
335
  export {
401
336
  Category,
@@ -2,28 +2,23 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
7
+ get: (a, b) => (typeof require < "u" ? require : a)[b]
10
8
  }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
9
+ if (typeof require < "u") return require.apply(this, arguments);
12
10
  throw Error('Dynamic require of "' + x + '" is not supported');
13
11
  });
14
- var __commonJS = (cb, mod) => function __require2() {
12
+ var __commonJS = (cb, mod) => function() {
15
13
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
14
  };
17
15
  var __export = (target, all) => {
18
16
  for (var name in all)
19
- __defProp(target, name, { get: all[name], enumerable: true });
20
- };
21
- var __copyProps = (to, from, except, desc) => {
22
- if (from && typeof from === "object" || typeof from === "function") {
17
+ __defProp(target, name, { get: all[name], enumerable: !0 });
18
+ }, __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from == "object" || typeof from == "function")
23
20
  for (let key of __getOwnPropNames(from))
24
- if (!__hasOwnProp.call(to, key) && key !== except)
25
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26
- }
21
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
22
  return to;
28
23
  };
29
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
@@ -31,12 +26,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
26
  // file that has been converted to a CommonJS file using a Babel-
32
27
  // compatible transform (i.e. "__esModule" has not been set), then set
33
28
  // "default" to the CommonJS "module.exports" for node compatibility.
34
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
35
30
  mod
36
31
  ));
37
32
 
38
33
  export {
39
- __name,
40
34
  __require,
41
35
  __commonJS,
42
36
  __export,