storybook 10.1.4 → 10.1.6

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 (74) hide show
  1. package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-7S2XPX5M.js} +1 -1
  2. package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-GPBRNGY5.js} +1 -1
  3. package/dist/{_node-chunks/chunk-LJRKMWYC.js → _browser-chunks/chunk-JVRDBUUP.js} +20 -13
  4. package/dist/_browser-chunks/{chunk-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
  5. package/dist/_node-chunks/{builder-manager-7ZU5KYAD.js → builder-manager-IP6Y4NMN.js} +13 -12
  6. package/dist/_node-chunks/{camelcase-YSJ5EORN.js → camelcase-GHUGWSTC.js} +7 -7
  7. package/dist/_node-chunks/chunk-2LMXIXHU.js +20 -0
  8. package/dist/_node-chunks/{chunk-MZL4HRPC.js → chunk-32COQDL3.js} +7 -7
  9. package/dist/{_browser-chunks/chunk-FQ7SLVLR.js → _node-chunks/chunk-4E7PJV6F.js} +32 -1
  10. package/dist/_node-chunks/chunk-5AYMJEEI.js +23 -0
  11. package/dist/_node-chunks/{chunk-T5WYRHJT.js → chunk-6IODXQ5I.js} +6 -6
  12. package/dist/_node-chunks/{chunk-S3DQCJWT.js → chunk-6X7LVWWF.js} +9 -9
  13. package/dist/_node-chunks/{chunk-7KESMTGS.js → chunk-7SZ6I5FR.js} +13 -13
  14. package/dist/_node-chunks/{chunk-6KX7N5UF.js → chunk-BV46V7UA.js} +21 -17
  15. package/dist/_node-chunks/{chunk-76KIYDRU.js → chunk-CQ7X72BT.js} +7 -7
  16. package/dist/_node-chunks/{chunk-RZ2YFNVH.js → chunk-FZPYAEAL.js} +7 -7
  17. package/dist/_node-chunks/{chunk-6O3OB2PO.js → chunk-IIIZ5MXT.js} +12 -12
  18. package/dist/_node-chunks/{chunk-N54KYQ6P.js → chunk-IMSWW5XU.js} +7 -7
  19. package/dist/_node-chunks/{chunk-FY6IUM4S.js → chunk-KPTRKV7Y.js} +8 -8
  20. package/dist/_node-chunks/{chunk-QIY6TMKF.js → chunk-LJZQUQY3.js} +7 -7
  21. package/dist/_node-chunks/{chunk-F2RDEFFH.js → chunk-M4UXZ375.js} +7 -7
  22. package/dist/_node-chunks/{chunk-VBZIULNK.js → chunk-MBCK5AH4.js} +6 -6
  23. package/dist/_node-chunks/{chunk-W6O6RFMF.js → chunk-MTQLLXLU.js} +9 -9
  24. package/dist/_node-chunks/{chunk-Q6B5LJGA.js → chunk-MZPY44R3.js} +7 -7
  25. package/dist/_node-chunks/{chunk-DMPGFWI4.js → chunk-NDRJR464.js} +72 -11
  26. package/dist/_node-chunks/{chunk-COZFRL72.js → chunk-OIIAKMWN.js} +7 -7
  27. package/dist/_node-chunks/chunk-PUOD3HAQ.js +18 -0
  28. package/dist/_node-chunks/{chunk-FMYFRXPU.js → chunk-QAHNTAID.js} +6 -6
  29. package/dist/_node-chunks/{chunk-QZJSO2TW.js → chunk-T4NL27CC.js} +21 -20
  30. package/dist/_node-chunks/{chunk-VUIYVJKC.js → chunk-V4R3AYR4.js} +8 -8
  31. package/dist/_node-chunks/{chunk-4X3VTYIW.js → chunk-WIXJW6LA.js} +7 -7
  32. package/dist/_node-chunks/{chunk-J4VC4I2M.js → chunk-YKVDPPMP.js} +6 -6
  33. package/dist/_node-chunks/chunk-ZQTC4IMW.js +61 -0
  34. package/dist/_node-chunks/{chunk-2IIRK2OT.js → chunk-ZZGFJUT5.js} +6 -6
  35. package/dist/_node-chunks/{dist-NF4P7GPD.js → dist-N6JBF72Y.js} +9 -9
  36. package/dist/_node-chunks/{globby-54L4JJRV.js → globby-EBHKFBTA.js} +9 -9
  37. package/dist/_node-chunks/{lib-GX44WIWA.js → lib-VKFW2NW5.js} +7 -7
  38. package/dist/_node-chunks/{mdx-N42X6CFJ-WJFAHXML.js → mdx-N42X6CFJ-GUFWY7P5.js} +8 -8
  39. package/dist/_node-chunks/{p-limit-QB7Q2I4D.js → p-limit-5QMUSCN6.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 +33 -33
  51. package/dist/core-server/presets/common-override-preset.js +9 -9
  52. package/dist/core-server/presets/common-preset.js +25 -25
  53. package/dist/csf/index.js +1 -1
  54. package/dist/csf-tools/index.js +9 -9
  55. package/dist/manager/globals-runtime.js +35 -8
  56. package/dist/manager/runtime.js +20 -5
  57. package/dist/manager-api/index.js +4 -4
  58. package/dist/manager-errors.d.ts +24 -0
  59. package/dist/manager-errors.js +2 -2
  60. package/dist/mocking-utils/index.js +8 -8
  61. package/dist/node-logger/index.js +9 -9
  62. package/dist/preview/runtime.js +30 -5
  63. package/dist/preview-api/index.d.ts +67 -68
  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-4FAPWW5I.js +0 -61
  72. package/dist/_node-chunks/chunk-5UYX4ZF6.js +0 -23
  73. package/dist/_node-chunks/chunk-CMI5GRPA.js +0 -18
  74. package/dist/_node-chunks/chunk-GVOXGNOU.js +0 -20
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_yr66iw5gef from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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_yr66iw5gef.createRequire(import.meta.url);
12
12
  import {
13
13
  require_picomatch,
14
14
  require_utils
15
- } from "./chunk-4X3VTYIW.js";
15
+ } from "./chunk-WIXJW6LA.js";
16
16
  import {
17
17
  slash
18
- } from "./chunk-GVOXGNOU.js";
18
+ } from "./chunk-2LMXIXHU.js";
19
19
  import {
20
20
  __commonJS,
21
21
  __require,
22
22
  __toESM
23
- } from "./chunk-J4VC4I2M.js";
23
+ } from "./chunk-YKVDPPMP.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_yr66iw5gef from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-J4VC4I2M.js";
16
+ } from "./chunk-YKVDPPMP.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_yr66iw5gef from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-QIY6TMKF.js";
25
- import "./chunk-J4VC4I2M.js";
24
+ } from "./chunk-LJZQUQY3.js";
25
+ import "./chunk-YKVDPPMP.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_yr66iw5gef from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-J4VC4I2M.js";
12
+ import "./chunk-YKVDPPMP.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_yr66iw5gef from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-W6O6RFMF.js";
26
- import "../_node-chunks/chunk-MZL4HRPC.js";
27
- import "../_node-chunks/chunk-RZ2YFNVH.js";
28
- import "../_node-chunks/chunk-J4VC4I2M.js";
25
+ } from "../_node-chunks/chunk-MTQLLXLU.js";
26
+ import "../_node-chunks/chunk-32COQDL3.js";
27
+ import "../_node-chunks/chunk-FZPYAEAL.js";
28
+ import "../_node-chunks/chunk-YKVDPPMP.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_yr66iw5gef from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-CMI5GRPA.js";
14
+ } from "../_node-chunks/chunk-PUOD3HAQ.js";
15
15
  import {
16
16
  globalSettings
17
- } from "../_node-chunks/chunk-S3DQCJWT.js";
18
- import "../_node-chunks/chunk-FMYFRXPU.js";
17
+ } from "../_node-chunks/chunk-6X7LVWWF.js";
18
+ import "../_node-chunks/chunk-QAHNTAID.js";
19
19
  import {
20
20
  require_dist
21
- } from "../_node-chunks/chunk-76KIYDRU.js";
21
+ } from "../_node-chunks/chunk-CQ7X72BT.js";
22
22
  import {
23
23
  require_picocolors
24
- } from "../_node-chunks/chunk-RZ2YFNVH.js";
24
+ } from "../_node-chunks/chunk-FZPYAEAL.js";
25
25
  import {
26
26
  __commonJS,
27
27
  __require,
28
28
  __toESM
29
- } from "../_node-chunks/chunk-J4VC4I2M.js";
29
+ } from "../_node-chunks/chunk-YKVDPPMP.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_yr66iw5gef from 'node:url';
3
- import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
4
- import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
2
+ import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
3
+ import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
4
+ import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
5
5
 
6
- var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
7
- var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
8
- var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.createRequire(import.meta.url);
6
+ var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
7
+ var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
8
+ var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-4FAPWW5I.js";
15
+ } from "../_node-chunks/chunk-ZQTC4IMW.js";
16
16
  import {
17
17
  resolvePackageDir
18
- } from "../_node-chunks/chunk-Q6B5LJGA.js";
18
+ } from "../_node-chunks/chunk-MZPY44R3.js";
19
19
  import {
20
20
  join
21
- } from "../_node-chunks/chunk-VBZIULNK.js";
21
+ } from "../_node-chunks/chunk-MBCK5AH4.js";
22
22
  import {
23
23
  require_dist
24
- } from "../_node-chunks/chunk-76KIYDRU.js";
24
+ } from "../_node-chunks/chunk-CQ7X72BT.js";
25
25
  import {
26
26
  __toESM
27
- } from "../_node-chunks/chunk-J4VC4I2M.js";
27
+ } from "../_node-chunks/chunk-YKVDPPMP.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_yr66iw5gef from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-T5WYRHJT.js";
14
+ } from "../_node-chunks/chunk-6IODXQ5I.js";
15
15
  import {
16
16
  require_dist
17
- } from "../_node-chunks/chunk-76KIYDRU.js";
17
+ } from "../_node-chunks/chunk-CQ7X72BT.js";
18
18
  import {
19
19
  __toESM
20
- } from "../_node-chunks/chunk-J4VC4I2M.js";
20
+ } from "../_node-chunks/chunk-YKVDPPMP.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_yr66iw5gef from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-6O3OB2PO.js";
36
+ } from "../_node-chunks/chunk-IIIZ5MXT.js";
37
37
  import {
38
38
  detectPnp
39
- } from "../_node-chunks/chunk-5UYX4ZF6.js";
39
+ } from "../_node-chunks/chunk-5AYMJEEI.js";
40
40
  import {
41
41
  Settings,
42
42
  _clearGlobalSettings,
43
43
  globalSettings
44
- } from "../_node-chunks/chunk-S3DQCJWT.js";
45
- import "../_node-chunks/chunk-2IIRK2OT.js";
46
- import "../_node-chunks/chunk-Q6B5LJGA.js";
47
- import "../_node-chunks/chunk-FMYFRXPU.js";
48
- import "../_node-chunks/chunk-VBZIULNK.js";
49
- import "../_node-chunks/chunk-76KIYDRU.js";
50
- import "../_node-chunks/chunk-W6O6RFMF.js";
51
- import "../_node-chunks/chunk-MZL4HRPC.js";
52
- import "../_node-chunks/chunk-RZ2YFNVH.js";
53
- import "../_node-chunks/chunk-J4VC4I2M.js";
44
+ } from "../_node-chunks/chunk-6X7LVWWF.js";
45
+ import "../_node-chunks/chunk-ZZGFJUT5.js";
46
+ import "../_node-chunks/chunk-MZPY44R3.js";
47
+ import "../_node-chunks/chunk-QAHNTAID.js";
48
+ import "../_node-chunks/chunk-MBCK5AH4.js";
49
+ import "../_node-chunks/chunk-CQ7X72BT.js";
50
+ import "../_node-chunks/chunk-MTQLLXLU.js";
51
+ import "../_node-chunks/chunk-32COQDL3.js";
52
+ import "../_node-chunks/chunk-FZPYAEAL.js";
53
+ import "../_node-chunks/chunk-YKVDPPMP.js";
54
54
  export {
55
55
  ANGULAR_JSON_PATH,
56
56
  AddonVitestService,
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_yr66iw5gef from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-QZJSO2TW.js";
105
+ } from "../_node-chunks/chunk-T4NL27CC.js";
106
106
  import {
107
107
  versions_default
108
- } from "../_node-chunks/chunk-4FAPWW5I.js";
109
- import "../_node-chunks/chunk-4X3VTYIW.js";
110
- import "../_node-chunks/chunk-VUIYVJKC.js";
111
- import "../_node-chunks/chunk-2IIRK2OT.js";
108
+ } from "../_node-chunks/chunk-ZQTC4IMW.js";
109
+ import "../_node-chunks/chunk-WIXJW6LA.js";
110
+ import "../_node-chunks/chunk-V4R3AYR4.js";
111
+ import "../_node-chunks/chunk-ZZGFJUT5.js";
112
112
  import {
113
113
  importMetaResolve,
114
114
  importModule,
115
115
  resolvePackageDir,
116
116
  safeResolveModule
117
- } from "../_node-chunks/chunk-Q6B5LJGA.js";
117
+ } from "../_node-chunks/chunk-MZPY44R3.js";
118
118
  import {
119
119
  groupBy,
120
120
  invariant
121
- } from "../_node-chunks/chunk-FMYFRXPU.js";
122
- import "../_node-chunks/chunk-VBZIULNK.js";
123
- import "../_node-chunks/chunk-F2RDEFFH.js";
124
- import "../_node-chunks/chunk-GVOXGNOU.js";
125
- import "../_node-chunks/chunk-76KIYDRU.js";
126
- import "../_node-chunks/chunk-RZ2YFNVH.js";
127
- import "../_node-chunks/chunk-J4VC4I2M.js";
121
+ } from "../_node-chunks/chunk-QAHNTAID.js";
122
+ import "../_node-chunks/chunk-MBCK5AH4.js";
123
+ import "../_node-chunks/chunk-M4UXZ375.js";
124
+ import "../_node-chunks/chunk-2LMXIXHU.js";
125
+ import "../_node-chunks/chunk-CQ7X72BT.js";
126
+ import "../_node-chunks/chunk-FZPYAEAL.js";
127
+ import "../_node-chunks/chunk-YKVDPPMP.js";
128
128
  export {
129
129
  DEFAULT_FILES_PATTERN,
130
130
  FileSystemCache,
@@ -9439,7 +9439,10 @@ function BaseModal({
9439
9439
  shouldBeOpen && !isMounted ? toggle(!0) : !shouldBeOpen && isMounted && toggle(!1);
9440
9440
  }, [open, defaultOpen, isMounted, toggle]), useEffect4(() => {
9441
9441
  isMounted && (open || defaultOpen) && onOpenChange?.(!0);
9442
- }, [isMounted]), !isMounted || status === "exited" || status === "unmounted")
9442
+ }, [isMounted]), useEffect4(() => {
9443
+ if (isMounted && (open || defaultOpen) && overlayRef.current)
9444
+ return $5e3802645cc19319$export$1c3ebcada18427bf([overlayRef.current], { shouldUseInert: !0 });
9445
+ }, [isMounted, open, defaultOpen, overlayRef]), !isMounted || status === "exited" || status === "unmounted")
9443
9446
  return null;
9444
9447
  let finalModalProps = $3ef42575df84b30b$export$9d1611c77c2fe928(modalProps, {
9445
9448
  onKeyDown: (e) => {
@@ -10468,7 +10471,10 @@ var StyledButton3 = styled48(Button)(
10468
10471
  $e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
10469
10472
  ref: popoverRef,
10470
10473
  onInteractOutside: handleClose
10471
- });
10474
+ }), useEffect7(() => {
10475
+ if (popoverRef.current)
10476
+ return $5e3802645cc19319$export$1c3ebcada18427bf([popoverRef.current], { shouldUseInert: !0 });
10477
+ }, []);
10472
10478
  let { overlayProps: positionProps } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
10473
10479
  targetRef: triggerRef,
10474
10480
  overlayRef: popoverRef,
@@ -10558,7 +10564,7 @@ var StyledButton3 = styled48(Button)(
10558
10564
  return;
10559
10565
  }
10560
10566
  let currentIndex = options.findIndex(
10561
- (option) => externalToValue(option.value) === activeOption.value
10567
+ (option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
10562
10568
  ), nextIndex = currentIndex + step, newActiveOption;
10563
10569
  nextIndex >= options.length && currentIndex === options.length - 1 ? newActiveOption = options[0] : newActiveOption = options[Math.min(options.length - 1, nextIndex)], setActiveOption(newActiveOption);
10564
10570
  },
@@ -10570,7 +10576,7 @@ var StyledButton3 = styled48(Button)(
10570
10576
  return;
10571
10577
  }
10572
10578
  let currentIndex = options.findIndex(
10573
- (option) => externalToValue(option.value) === activeOption.value
10579
+ (option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
10574
10580
  ), nextIndex = currentIndex - step, newActiveOption;
10575
10581
  nextIndex < 0 && currentIndex === 0 ? newActiveOption = options[options.length - 1] : newActiveOption = options[Math.max(0, nextIndex)], setActiveOption(newActiveOption);
10576
10582
  },
@@ -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