storybook 10.2.0-alpha.3 → 10.2.0-alpha.5

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 (73) hide show
  1. package/dist/_browser-chunks/{chunk-Y6HZAT53.js → chunk-HX32VQZR.js} +1 -1
  2. package/dist/{_node-chunks/chunk-MUWHX7GN.js → _browser-chunks/chunk-JVRDBUUP.js} +20 -13
  3. package/dist/_browser-chunks/{chunk-DOSERVNW.js → chunk-UXVP56J6.js} +1 -1
  4. package/dist/_browser-chunks/{chunk-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
  5. package/dist/_node-chunks/{builder-manager-U6SN6ZED.js → builder-manager-OWA7PM5D.js} +13 -12
  6. package/dist/_node-chunks/{camelcase-GLXVGCEV.js → camelcase-2LEK4OOC.js} +7 -7
  7. package/dist/_node-chunks/{chunk-DO56XDMZ.js → chunk-3NPQ2Y77.js} +72 -11
  8. package/dist/_node-chunks/chunk-4P6JV5PD.js +61 -0
  9. package/dist/_node-chunks/{chunk-N3O3HJMU.js → chunk-53QZPC5B.js} +7 -7
  10. package/dist/_node-chunks/{chunk-LHBDNMEP.js → chunk-5MG7AO5M.js} +12 -12
  11. package/dist/_node-chunks/{chunk-HKTRFCJD.js → chunk-APNNQRRU.js} +6 -6
  12. package/dist/_node-chunks/{chunk-6RXAFKLM.js → chunk-BPLKNOG7.js} +7 -7
  13. package/dist/_node-chunks/{chunk-Q47IIVLL.js → chunk-FUGUVTSE.js} +8 -8
  14. package/dist/_node-chunks/{chunk-XYVZIRZC.js → chunk-HT3TF35B.js} +6 -6
  15. package/dist/_node-chunks/chunk-IMOJACVP.js +23 -0
  16. package/dist/_node-chunks/chunk-IV4K2PSX.js +18 -0
  17. package/dist/{_browser-chunks/chunk-FQ7SLVLR.js → _node-chunks/chunk-J7VMFLRZ.js} +32 -1
  18. package/dist/_node-chunks/{chunk-NKUDIVPF.js → chunk-JRJT7Q2N.js} +7 -7
  19. package/dist/_node-chunks/{chunk-B6AJKALV.js → chunk-LOJ6VLWV.js} +6 -6
  20. package/dist/_node-chunks/{chunk-E6CKDKNL.js → chunk-MJEVYN6O.js} +7 -7
  21. package/dist/_node-chunks/{chunk-KP6H4S3L.js → chunk-O72O5WMW.js} +7 -7
  22. package/dist/_node-chunks/{chunk-Q27GKV7Y.js → chunk-Q2N5EUMK.js} +7 -7
  23. package/dist/_node-chunks/{chunk-H4BZRGVO.js → chunk-Q4YMOGYF.js} +8 -8
  24. package/dist/_node-chunks/{chunk-YPCGEC3N.js → chunk-QUCPWX6N.js} +21 -17
  25. package/dist/_node-chunks/{chunk-5SCVRD6U.js → chunk-RJ6MVIQ7.js} +6 -6
  26. package/dist/_node-chunks/{chunk-5ZGZ22PV.js → chunk-SKKDMIEL.js} +9 -9
  27. package/dist/_node-chunks/{chunk-2IFACTU4.js → chunk-TM67IYGR.js} +7 -7
  28. package/dist/_node-chunks/{chunk-4VZME5CV.js → chunk-TUFR2XYI.js} +6 -6
  29. package/dist/_node-chunks/{chunk-HGYHQF7Z.js → chunk-TX3LEYMY.js} +9 -9
  30. package/dist/_node-chunks/{chunk-IKSK6CEY.js → chunk-UIW2C2AI.js} +6 -6
  31. package/dist/_node-chunks/{chunk-SM7QXYN4.js → chunk-VG22ND3P.js} +13 -13
  32. package/dist/_node-chunks/{chunk-HYH2IT7K.js → chunk-WAM2AUH6.js} +7 -7
  33. package/dist/_node-chunks/{chunk-C2G5ML5F.js → chunk-WMGB2RD3.js} +7 -7
  34. package/dist/_node-chunks/{chunk-VKFEIIOF.js → chunk-ZRAJ6YTG.js} +40 -22
  35. package/dist/_node-chunks/{dist-GGDI7EVD.js → dist-KMT22HT2.js} +9 -9
  36. package/dist/_node-chunks/{globby-DY2UCDKN.js → globby-MSDE3LN6.js} +9 -9
  37. package/dist/_node-chunks/{lib-PFKECSVA.js → lib-2BTWTGXL.js} +7 -7
  38. package/dist/_node-chunks/{mdx-N42X6CFJ-OPAAI5WZ.js → mdx-N42X6CFJ-RO5JQN35.js} +8 -8
  39. package/dist/_node-chunks/{p-limit-PMYE6ZFC.js → p-limit-6ZDUMRV5.js} +7 -7
  40. package/dist/babel/index.js +10 -10
  41. package/dist/bin/core.js +12 -12
  42. package/dist/bin/dispatcher.js +11 -11
  43. package/dist/bin/loader.js +9 -9
  44. package/dist/cli/index.js +18 -18
  45. package/dist/common/index.js +19 -19
  46. package/dist/components/index.js +10 -4
  47. package/dist/core-events/index.d.ts +4 -2
  48. package/dist/core-events/index.js +4 -2
  49. package/dist/core-server/index.d.ts +68 -1
  50. package/dist/core-server/index.js +35 -35
  51. package/dist/core-server/presets/common-manager.js +1 -1
  52. package/dist/core-server/presets/common-override-preset.js +9 -9
  53. package/dist/core-server/presets/common-preset.js +25 -25
  54. package/dist/csf/index.js +1 -1
  55. package/dist/csf-tools/index.js +9 -9
  56. package/dist/manager/globals-runtime.js +35 -8
  57. package/dist/manager/runtime.js +20 -5
  58. package/dist/manager-api/index.js +4 -4
  59. package/dist/manager-errors.d.ts +24 -0
  60. package/dist/manager-errors.js +2 -2
  61. package/dist/mocking-utils/index.js +8 -8
  62. package/dist/node-logger/index.js +9 -9
  63. package/dist/preview/runtime.js +30 -5
  64. package/dist/preview-api/index.js +1 -1
  65. package/dist/preview-errors.d.ts +24 -0
  66. package/dist/preview-errors.js +2 -2
  67. package/dist/server-errors.d.ts +59 -3
  68. package/dist/server-errors.js +22 -11
  69. package/dist/telemetry/index.js +23 -23
  70. package/package.json +1 -1
  71. package/dist/_node-chunks/chunk-6WHPDWFA.js +0 -61
  72. package/dist/_node-chunks/chunk-CFCZ5PKC.js +0 -18
  73. package/dist/_node-chunks/chunk-O5OIO47U.js +0 -23
@@ -1,18 +1,18 @@
1
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  toEstree
14
- } from "./chunk-C2G5ML5F.js";
15
- import "./chunk-4VZME5CV.js";
14
+ } from "./chunk-WMGB2RD3.js";
15
+ import "./chunk-TUFR2XYI.js";
16
16
 
17
17
  // ../../node_modules/@storybook/docs-mdx/dist/index.js
18
18
  var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute" && n.name.name === what), getAttrValue = (elt, what) => getAttr(elt, what)?.value, getAttrLiteral = (elt, what) => {
@@ -107,7 +107,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
107
107
  isTemplate: !1,
108
108
  metaTags: void 0,
109
109
  imports: void 0
110
- }, { compile } = await import("./mdx-N42X6CFJ-OPAAI5WZ.js");
110
+ }, { compile } = await import("./mdx-N42X6CFJ-RO5JQN35.js");
111
111
  await compile(code, {
112
112
  rehypePlugins: [[plugin, store]]
113
113
  });
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,15 +12,15 @@ var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
12
12
  import {
13
13
  require_picomatch,
14
14
  require_utils
15
- } from "./chunk-2IFACTU4.js";
15
+ } from "./chunk-TM67IYGR.js";
16
16
  import {
17
17
  slash
18
- } from "./chunk-B6AJKALV.js";
18
+ } from "./chunk-LOJ6VLWV.js";
19
19
  import {
20
20
  __commonJS,
21
21
  __require,
22
22
  __toESM
23
- } from "./chunk-4VZME5CV.js";
23
+ } from "./chunk-TUFR2XYI.js";
24
24
 
25
25
  // ../../node_modules/fast-glob/out/utils/array.js
26
26
  var require_array = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,7 +13,7 @@ import {
13
13
  __commonJS,
14
14
  __require,
15
15
  __toESM
16
- } from "./chunk-4VZME5CV.js";
16
+ } from "./chunk-TUFR2XYI.js";
17
17
 
18
18
  // ../../node_modules/app-root-dir/lib/index.js
19
19
  var require_lib = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -21,8 +21,8 @@ import {
21
21
  position,
22
22
  start,
23
23
  toEstree
24
- } from "./chunk-C2G5ML5F.js";
25
- import "./chunk-4VZME5CV.js";
24
+ } from "./chunk-WMGB2RD3.js";
25
+ import "./chunk-TUFR2XYI.js";
26
26
 
27
27
  // ../../node_modules/@storybook/docs-mdx/dist/mdx-N42X6CFJ.js
28
28
  import { default as default2 } from "path";
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
- import "./chunk-4VZME5CV.js";
12
+ import "./chunk-TUFR2XYI.js";
13
13
 
14
14
  // ../../node_modules/yocto-queue/index.js
15
15
  var Node = class {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -22,10 +22,10 @@ import {
22
22
  recast,
23
23
  traverse,
24
24
  types
25
- } from "../_node-chunks/chunk-HGYHQF7Z.js";
26
- import "../_node-chunks/chunk-HYH2IT7K.js";
27
- import "../_node-chunks/chunk-Q27GKV7Y.js";
28
- import "../_node-chunks/chunk-4VZME5CV.js";
25
+ } from "../_node-chunks/chunk-TX3LEYMY.js";
26
+ import "../_node-chunks/chunk-WAM2AUH6.js";
27
+ import "../_node-chunks/chunk-Q2N5EUMK.js";
28
+ import "../_node-chunks/chunk-TUFR2XYI.js";
29
29
  var export_transformSync = import_core.transformSync;
30
30
  export {
31
31
  BabelFileClass,
package/dist/bin/core.js CHANGED
@@ -1,32 +1,32 @@
1
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  version
14
- } from "../_node-chunks/chunk-CFCZ5PKC.js";
14
+ } from "../_node-chunks/chunk-IV4K2PSX.js";
15
15
  import {
16
16
  globalSettings
17
- } from "../_node-chunks/chunk-5ZGZ22PV.js";
18
- import "../_node-chunks/chunk-XYVZIRZC.js";
17
+ } from "../_node-chunks/chunk-SKKDMIEL.js";
18
+ import "../_node-chunks/chunk-HT3TF35B.js";
19
19
  import {
20
20
  require_dist
21
- } from "../_node-chunks/chunk-N3O3HJMU.js";
21
+ } from "../_node-chunks/chunk-53QZPC5B.js";
22
22
  import {
23
23
  require_picocolors
24
- } from "../_node-chunks/chunk-Q27GKV7Y.js";
24
+ } from "../_node-chunks/chunk-Q2N5EUMK.js";
25
25
  import {
26
26
  __commonJS,
27
27
  __require,
28
28
  __toESM
29
- } from "../_node-chunks/chunk-4VZME5CV.js";
29
+ } from "../_node-chunks/chunk-TUFR2XYI.js";
30
30
 
31
31
  // ../../node_modules/commander/lib/error.js
32
32
  var require_error = __commonJS({
@@ -1,30 +1,30 @@
1
1
  #!/usr/bin/env node
2
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
3
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
4
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
2
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
3
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
4
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
5
5
 
6
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
7
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
8
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
6
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
7
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
8
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
9
9
 
10
10
  // ------------------------------------------------------------
11
11
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
12
12
  // ------------------------------------------------------------
13
13
  import {
14
14
  versions_default
15
- } from "../_node-chunks/chunk-6WHPDWFA.js";
15
+ } from "../_node-chunks/chunk-4P6JV5PD.js";
16
16
  import {
17
17
  resolvePackageDir
18
- } from "../_node-chunks/chunk-E6CKDKNL.js";
18
+ } from "../_node-chunks/chunk-MJEVYN6O.js";
19
19
  import {
20
20
  join
21
- } from "../_node-chunks/chunk-5SCVRD6U.js";
21
+ } from "../_node-chunks/chunk-RJ6MVIQ7.js";
22
22
  import {
23
23
  require_dist
24
- } from "../_node-chunks/chunk-N3O3HJMU.js";
24
+ } from "../_node-chunks/chunk-53QZPC5B.js";
25
25
  import {
26
26
  __toESM
27
- } from "../_node-chunks/chunk-4VZME5CV.js";
27
+ } from "../_node-chunks/chunk-TUFR2XYI.js";
28
28
 
29
29
  // src/bin/dispatcher.ts
30
30
  import { pathToFileURL } from "node:url";
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  NODE_TARGET
14
- } from "../_node-chunks/chunk-IKSK6CEY.js";
14
+ } from "../_node-chunks/chunk-UIW2C2AI.js";
15
15
  import {
16
16
  require_dist
17
- } from "../_node-chunks/chunk-N3O3HJMU.js";
17
+ } from "../_node-chunks/chunk-53QZPC5B.js";
18
18
  import {
19
19
  __toESM
20
- } from "../_node-chunks/chunk-4VZME5CV.js";
20
+ } from "../_node-chunks/chunk-TUFR2XYI.js";
21
21
 
22
22
  // src/bin/loader.ts
23
23
  var import_ts_dedent = __toESM(require_dist(), 1);
package/dist/cli/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -33,24 +33,24 @@ import {
33
33
  readFileAsJson,
34
34
  suggestESLintPlugin,
35
35
  writeFileAsJson
36
- } from "../_node-chunks/chunk-LHBDNMEP.js";
36
+ } from "../_node-chunks/chunk-5MG7AO5M.js";
37
37
  import {
38
38
  detectPnp
39
- } from "../_node-chunks/chunk-O5OIO47U.js";
39
+ } from "../_node-chunks/chunk-IMOJACVP.js";
40
40
  import {
41
41
  Settings,
42
42
  _clearGlobalSettings,
43
43
  globalSettings
44
- } from "../_node-chunks/chunk-5ZGZ22PV.js";
45
- import "../_node-chunks/chunk-HKTRFCJD.js";
46
- import "../_node-chunks/chunk-E6CKDKNL.js";
47
- import "../_node-chunks/chunk-XYVZIRZC.js";
48
- import "../_node-chunks/chunk-5SCVRD6U.js";
49
- import "../_node-chunks/chunk-N3O3HJMU.js";
50
- import "../_node-chunks/chunk-HGYHQF7Z.js";
51
- import "../_node-chunks/chunk-HYH2IT7K.js";
52
- import "../_node-chunks/chunk-Q27GKV7Y.js";
53
- import "../_node-chunks/chunk-4VZME5CV.js";
44
+ } from "../_node-chunks/chunk-SKKDMIEL.js";
45
+ import "../_node-chunks/chunk-APNNQRRU.js";
46
+ import "../_node-chunks/chunk-MJEVYN6O.js";
47
+ import "../_node-chunks/chunk-HT3TF35B.js";
48
+ import "../_node-chunks/chunk-RJ6MVIQ7.js";
49
+ import "../_node-chunks/chunk-53QZPC5B.js";
50
+ import "../_node-chunks/chunk-TX3LEYMY.js";
51
+ import "../_node-chunks/chunk-WAM2AUH6.js";
52
+ import "../_node-chunks/chunk-Q2N5EUMK.js";
53
+ import "../_node-chunks/chunk-TUFR2XYI.js";
54
54
  export {
55
55
  ANGULAR_JSON_PATH,
56
56
  AddonVitestService,
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
1
+ import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -102,29 +102,29 @@ import {
102
102
  validateConfigurationFiles,
103
103
  validateFrameworkName,
104
104
  wrapValueWithGetAbsolutePathWrapper
105
- } from "../_node-chunks/chunk-VKFEIIOF.js";
105
+ } from "../_node-chunks/chunk-ZRAJ6YTG.js";
106
106
  import {
107
107
  versions_default
108
- } from "../_node-chunks/chunk-6WHPDWFA.js";
109
- import "../_node-chunks/chunk-2IFACTU4.js";
110
- import "../_node-chunks/chunk-Q47IIVLL.js";
111
- import "../_node-chunks/chunk-HKTRFCJD.js";
108
+ } from "../_node-chunks/chunk-4P6JV5PD.js";
109
+ import "../_node-chunks/chunk-TM67IYGR.js";
110
+ import "../_node-chunks/chunk-FUGUVTSE.js";
111
+ import "../_node-chunks/chunk-APNNQRRU.js";
112
112
  import {
113
113
  importMetaResolve,
114
114
  importModule,
115
115
  resolvePackageDir,
116
116
  safeResolveModule
117
- } from "../_node-chunks/chunk-E6CKDKNL.js";
117
+ } from "../_node-chunks/chunk-MJEVYN6O.js";
118
118
  import {
119
119
  groupBy,
120
120
  invariant
121
- } from "../_node-chunks/chunk-XYVZIRZC.js";
122
- import "../_node-chunks/chunk-5SCVRD6U.js";
123
- import "../_node-chunks/chunk-NKUDIVPF.js";
124
- import "../_node-chunks/chunk-B6AJKALV.js";
125
- import "../_node-chunks/chunk-N3O3HJMU.js";
126
- import "../_node-chunks/chunk-Q27GKV7Y.js";
127
- import "../_node-chunks/chunk-4VZME5CV.js";
121
+ } from "../_node-chunks/chunk-HT3TF35B.js";
122
+ import "../_node-chunks/chunk-RJ6MVIQ7.js";
123
+ import "../_node-chunks/chunk-JRJT7Q2N.js";
124
+ import "../_node-chunks/chunk-LOJ6VLWV.js";
125
+ import "../_node-chunks/chunk-53QZPC5B.js";
126
+ import "../_node-chunks/chunk-Q2N5EUMK.js";
127
+ import "../_node-chunks/chunk-TUFR2XYI.js";
128
128
  export {
129
129
  DEFAULT_FILES_PATTERN,
130
130
  FileSystemCache,
@@ -9463,7 +9463,10 @@ function BaseModal({
9463
9463
  shouldBeOpen && !isMounted ? toggle(!0) : !shouldBeOpen && isMounted && toggle(!1);
9464
9464
  }, [open, defaultOpen, isMounted, toggle]), useEffect4(() => {
9465
9465
  isMounted && (open || defaultOpen) && onOpenChange?.(!0);
9466
- }, [isMounted]), !isMounted || status === "exited" || status === "unmounted")
9466
+ }, [isMounted]), useEffect4(() => {
9467
+ if (isMounted && (open || defaultOpen) && overlayRef.current)
9468
+ return $5e3802645cc19319$export$1c3ebcada18427bf([overlayRef.current], { shouldUseInert: !0 });
9469
+ }, [isMounted, open, defaultOpen, overlayRef]), !isMounted || status === "exited" || status === "unmounted")
9467
9470
  return null;
9468
9471
  let finalModalProps = $3ef42575df84b30b$export$9d1611c77c2fe928(modalProps, {
9469
9472
  onKeyDown: (e) => {
@@ -10492,7 +10495,10 @@ var StyledButton3 = styled48(Button)(
10492
10495
  $e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
10493
10496
  ref: popoverRef,
10494
10497
  onInteractOutside: handleClose
10495
- });
10498
+ }), useEffect7(() => {
10499
+ if (popoverRef.current)
10500
+ return $5e3802645cc19319$export$1c3ebcada18427bf([popoverRef.current], { shouldUseInert: !0 });
10501
+ }, []);
10496
10502
  let { overlayProps: positionProps } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
10497
10503
  targetRef: triggerRef,
10498
10504
  overlayRef: popoverRef,
@@ -10582,7 +10588,7 @@ var StyledButton3 = styled48(Button)(
10582
10588
  return;
10583
10589
  }
10584
10590
  let currentIndex = options.findIndex(
10585
- (option) => externalToValue(option.value) === activeOption.value
10591
+ (option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
10586
10592
  ), nextIndex = currentIndex + step, newActiveOption;
10587
10593
  nextIndex >= options.length && currentIndex === options.length - 1 ? newActiveOption = options[0] : newActiveOption = options[Math.min(options.length - 1, nextIndex)], setActiveOption(newActiveOption);
10588
10594
  },
@@ -10594,7 +10600,7 @@ var StyledButton3 = styled48(Button)(
10594
10600
  return;
10595
10601
  }
10596
10602
  let currentIndex = options.findIndex(
10597
- (option) => externalToValue(option.value) === activeOption.value
10603
+ (option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
10598
10604
  ), nextIndex = currentIndex - step, newActiveOption;
10599
10605
  nextIndex < 0 && currentIndex === 0 ? newActiveOption = options[options.length - 1] : newActiveOption = options[Math.max(0, nextIndex)], setActiveOption(newActiveOption);
10600
10606
  },
@@ -301,7 +301,8 @@ declare enum events {
301
301
  CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest",
302
302
  CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse",
303
303
  OPEN_IN_EDITOR_REQUEST = "openInEditorRequest",
304
- OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse"
304
+ OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse",
305
+ MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged"
305
306
  }
306
307
 
307
308
  declare const CHANNEL_WS_DISCONNECT: events;
@@ -364,5 +365,6 @@ declare const ARGTYPES_INFO_REQUEST: events;
364
365
  declare const ARGTYPES_INFO_RESPONSE: events;
365
366
  declare const OPEN_IN_EDITOR_REQUEST: events;
366
367
  declare const OPEN_IN_EDITOR_RESPONSE: events;
368
+ declare const MANAGER_INERT_ATTRIBUTE_CHANGED: events;
367
369
 
368
- export { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, type ArgTypesRequestPayload, type ArgTypesResponsePayload, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, type CreateNewStoryErrorPayload, type CreateNewStoryRequestPayload, type CreateNewStoryResponsePayload, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, type FileComponentSearchRequestPayload, type FileComponentSearchResponsePayload, GLOBALS_UPDATED, NAVIGATE_URL, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, type OpenInEditorRequestPayload, type OpenInEditorResponsePayload, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_INITIALIZED, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, type RequestData, type ResponseData, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_HOT_UPDATED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, type SaveStoryRequestPayload, type SaveStoryResponsePayload, type StoryFinishedPayload, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default };
370
+ export { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, type ArgTypesRequestPayload, type ArgTypesResponsePayload, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, type CreateNewStoryErrorPayload, type CreateNewStoryRequestPayload, type CreateNewStoryResponsePayload, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, type FileComponentSearchRequestPayload, type FileComponentSearchResponsePayload, GLOBALS_UPDATED, MANAGER_INERT_ATTRIBUTE_CHANGED, NAVIGATE_URL, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, type OpenInEditorRequestPayload, type OpenInEditorResponsePayload, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_INITIALIZED, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, type RequestData, type ResponseData, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_HOT_UPDATED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, type SaveStoryRequestPayload, type SaveStoryResponsePayload, type StoryFinishedPayload, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default };
@@ -1,7 +1,7 @@
1
1
  import "../_browser-chunks/chunk-A242L54C.js";
2
2
 
3
3
  // src/core-events/index.ts
4
- var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", events2.CHANNEL_CREATED = "channelCreated", events2.CONFIG_ERROR = "configError", events2.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", events2.STORY_SPECIFIED = "storySpecified", events2.SET_CONFIG = "setConfig", events2.SET_STORIES = "setStories", events2.SET_INDEX = "setIndex", events2.SET_CURRENT_STORY = "setCurrentStory", events2.CURRENT_STORY_WAS_SET = "currentStoryWasSet", events2.FORCE_RE_RENDER = "forceReRender", events2.FORCE_REMOUNT = "forceRemount", events2.PRELOAD_ENTRIES = "preloadStories", events2.STORY_PREPARED = "storyPrepared", events2.DOCS_PREPARED = "docsPrepared", events2.STORY_CHANGED = "storyChanged", events2.STORY_UNCHANGED = "storyUnchanged", events2.STORY_RENDERED = "storyRendered", events2.STORY_FINISHED = "storyFinished", events2.STORY_MISSING = "storyMissing", events2.STORY_ERRORED = "storyErrored", events2.STORY_THREW_EXCEPTION = "storyThrewException", events2.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged", events2.STORY_HOT_UPDATED = "storyHotUpdated", events2.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", events2.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying", events2.UPDATE_STORY_ARGS = "updateStoryArgs", events2.STORY_ARGS_UPDATED = "storyArgsUpdated", events2.RESET_STORY_ARGS = "resetStoryArgs", events2.SET_FILTER = "setFilter", events2.SET_GLOBALS = "setGlobals", events2.UPDATE_GLOBALS = "updateGlobals", events2.GLOBALS_UPDATED = "globalsUpdated", events2.REGISTER_SUBSCRIPTION = "registerSubscription", events2.PREVIEW_INITIALIZED = "previewInitialized", events2.PREVIEW_KEYDOWN = "previewKeydown", events2.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", events2.SELECT_STORY = "selectStory", events2.STORIES_COLLAPSE_ALL = "storiesCollapseAll", events2.STORIES_EXPAND_ALL = "storiesExpandAll", events2.DOCS_RENDERED = "docsRendered", events2.SHARED_STATE_CHANGED = "sharedStateChanged", events2.SHARED_STATE_SET = "sharedStateSet", events2.NAVIGATE_URL = "navigateUrl", events2.UPDATE_QUERY_PARAMS = "updateQueryParams", events2.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", events2.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", events2.SET_WHATS_NEW_CACHE = "setWhatsNewCache", events2.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", events2.TELEMETRY_ERROR = "telemetryError", events2.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest", events2.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", events2.SAVE_STORY_REQUEST = "saveStoryRequest", events2.SAVE_STORY_RESPONSE = "saveStoryResponse", events2.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", events2.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", events2.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", events2.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", events2.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2))(events || {}), core_events_default = events, {
4
+ var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", events2.CHANNEL_CREATED = "channelCreated", events2.CONFIG_ERROR = "configError", events2.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", events2.STORY_SPECIFIED = "storySpecified", events2.SET_CONFIG = "setConfig", events2.SET_STORIES = "setStories", events2.SET_INDEX = "setIndex", events2.SET_CURRENT_STORY = "setCurrentStory", events2.CURRENT_STORY_WAS_SET = "currentStoryWasSet", events2.FORCE_RE_RENDER = "forceReRender", events2.FORCE_REMOUNT = "forceRemount", events2.PRELOAD_ENTRIES = "preloadStories", events2.STORY_PREPARED = "storyPrepared", events2.DOCS_PREPARED = "docsPrepared", events2.STORY_CHANGED = "storyChanged", events2.STORY_UNCHANGED = "storyUnchanged", events2.STORY_RENDERED = "storyRendered", events2.STORY_FINISHED = "storyFinished", events2.STORY_MISSING = "storyMissing", events2.STORY_ERRORED = "storyErrored", events2.STORY_THREW_EXCEPTION = "storyThrewException", events2.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged", events2.STORY_HOT_UPDATED = "storyHotUpdated", events2.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", events2.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying", events2.UPDATE_STORY_ARGS = "updateStoryArgs", events2.STORY_ARGS_UPDATED = "storyArgsUpdated", events2.RESET_STORY_ARGS = "resetStoryArgs", events2.SET_FILTER = "setFilter", events2.SET_GLOBALS = "setGlobals", events2.UPDATE_GLOBALS = "updateGlobals", events2.GLOBALS_UPDATED = "globalsUpdated", events2.REGISTER_SUBSCRIPTION = "registerSubscription", events2.PREVIEW_INITIALIZED = "previewInitialized", events2.PREVIEW_KEYDOWN = "previewKeydown", events2.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", events2.SELECT_STORY = "selectStory", events2.STORIES_COLLAPSE_ALL = "storiesCollapseAll", events2.STORIES_EXPAND_ALL = "storiesExpandAll", events2.DOCS_RENDERED = "docsRendered", events2.SHARED_STATE_CHANGED = "sharedStateChanged", events2.SHARED_STATE_SET = "sharedStateSet", events2.NAVIGATE_URL = "navigateUrl", events2.UPDATE_QUERY_PARAMS = "updateQueryParams", events2.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", events2.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", events2.SET_WHATS_NEW_CACHE = "setWhatsNewCache", events2.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", events2.TELEMETRY_ERROR = "telemetryError", events2.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest", events2.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", events2.SAVE_STORY_REQUEST = "saveStoryRequest", events2.SAVE_STORY_RESPONSE = "saveStoryResponse", events2.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", events2.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", events2.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", events2.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", events2.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2.MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged", events2))(events || {}), core_events_default = events, {
5
5
  CHANNEL_WS_DISCONNECT,
6
6
  CHANNEL_CREATED,
7
7
  CONFIG_ERROR,
@@ -61,7 +61,8 @@ var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "cha
61
61
  ARGTYPES_INFO_REQUEST,
62
62
  ARGTYPES_INFO_RESPONSE,
63
63
  OPEN_IN_EDITOR_REQUEST,
64
- OPEN_IN_EDITOR_RESPONSE
64
+ OPEN_IN_EDITOR_RESPONSE,
65
+ MANAGER_INERT_ATTRIBUTE_CHANGED
65
66
  } = events;
66
67
  export {
67
68
  ARGTYPES_INFO_REQUEST,
@@ -79,6 +80,7 @@ export {
79
80
  FORCE_REMOUNT,
80
81
  FORCE_RE_RENDER,
81
82
  GLOBALS_UPDATED,
83
+ MANAGER_INERT_ATTRIBUTE_CHANGED,
82
84
  NAVIGATE_URL,
83
85
  OPEN_IN_EDITOR_REQUEST,
84
86
  OPEN_IN_EDITOR_RESPONSE,
@@ -26,6 +26,73 @@ declare const buildIndexStandalone: (options: BuildIndexOptions & {
26
26
  outputFile: string;
27
27
  }) => Promise<void>;
28
28
 
29
+ declare abstract class StorybookError extends Error {
30
+ private _name;
31
+ /** Category of the error. Used to classify the type of error, e.g., 'PREVIEW_API'. */
32
+ readonly category: string;
33
+ /** Code representing the error. Used to uniquely identify the error, e.g., 1. */
34
+ readonly code: number;
35
+ /**
36
+ * Data associated with the error. Used to provide additional information in the error message or
37
+ * to be passed to telemetry.
38
+ */
39
+ readonly data: {};
40
+ /**
41
+ * Specifies the documentation for the error.
42
+ *
43
+ * - If `true`, links to a documentation page on the Storybook website (make sure it exists before
44
+ * enabling) – This is not implemented yet.
45
+ * - If a string, uses the provided URL for documentation (external or FAQ links).
46
+ * - If `false` (default), no documentation link is added.
47
+ */
48
+ readonly documentation: boolean | string | string[];
49
+ /** Flag used to easily determine if the error originates from Storybook. */
50
+ readonly fromStorybook: true;
51
+ /**
52
+ * Flag used to determine if the error is handled by us and should therefore not be shown to the
53
+ * user.
54
+ */
55
+ isHandledError: boolean;
56
+ get fullErrorCode(): `SB_${string}_${string}`;
57
+ /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
58
+ get name(): string;
59
+ set name(name: string);
60
+ /**
61
+ * A collection of sub errors which relate to a parent error.
62
+ *
63
+ * Sub-errors are used to represent multiple related errors that occurred together. When a
64
+ * StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
65
+ * are sent as separate telemetry events. This allows for better error tracking and debugging.
66
+ *
67
+ * @example
68
+ *
69
+ * ```ts
70
+ * const error1 = new SomeError();
71
+ * const error2 = new AnotherError();
72
+ * const parentError = new ParentError({
73
+ * // ... other props
74
+ * subErrors: [error1, error2],
75
+ * });
76
+ * ```
77
+ */
78
+ subErrors: StorybookError[];
79
+ constructor(props: {
80
+ category: string;
81
+ code: number;
82
+ message: string;
83
+ documentation?: boolean | string | string[];
84
+ isHandledError?: boolean;
85
+ name: string;
86
+ /**
87
+ * Optional array of sub-errors that are related to this error. When this error is sent to
88
+ * telemetry, each sub-error will be sent as a separate event.
89
+ */
90
+ subErrors?: StorybookError[];
91
+ });
92
+ /** Generates the error message along with additional documentation link (if applicable). */
93
+ static getFullMessage({ documentation, code, category, message, }: ConstructorParameters<typeof StorybookError>[0]): string;
94
+ }
95
+
29
96
  type TelemetryOptions = {
30
97
  cliOptions: CLIOptions;
31
98
  presetOptions?: Parameters<typeof loadAllPresets>[0];
@@ -34,7 +101,7 @@ type TelemetryOptions = {
34
101
  };
35
102
  type ErrorLevel = 'none' | 'error' | 'full';
36
103
  declare function getErrorLevel({ cliOptions, presetOptions, skipPrompt, }: TelemetryOptions): Promise<ErrorLevel>;
37
- declare function sendTelemetryError(_error: unknown, eventType: EventType, options: TelemetryOptions, blocking?: boolean): Promise<void>;
104
+ declare function sendTelemetryError(_error: unknown, eventType: EventType, options: TelemetryOptions, blocking?: boolean, parent?: StorybookError): Promise<void>;
38
105
  declare function isTelemetryEnabled(options: TelemetryOptions): boolean;
39
106
  declare function withTelemetry<T>(eventType: EventType, options: TelemetryOptions, run: () => Promise<T>): Promise<T | undefined>;
40
107