storybook 10.1.0-alpha.3 → 10.1.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/_node-chunks/{builder-manager-GBWCUYRR.js → builder-manager-P652CU5Z.js} +12 -12
  2. package/dist/_node-chunks/camelcase-VADCJSEY.js +18 -0
  3. package/dist/_node-chunks/{chunk-5X7FGASE.js → chunk-3GTBPTCZ.js} +7 -7
  4. package/dist/_node-chunks/chunk-3OPGVNKX.js +18 -0
  5. package/dist/_node-chunks/{chunk-AX2PCJZ2.js → chunk-5A6EYMRK.js} +6 -6
  6. package/dist/_node-chunks/{chunk-GMO24NTJ.js → chunk-5E5YDTCQ.js} +7 -7
  7. package/dist/_node-chunks/{chunk-C4UVY6FF.js → chunk-5NGUGC3U.js} +7 -7
  8. package/dist/_node-chunks/{chunk-2JHIUWIN.js → chunk-6DHXOOK2.js} +7 -7
  9. package/dist/_node-chunks/{chunk-NYXHMPY4.js → chunk-6VWT3H7R.js} +7 -7
  10. package/dist/_node-chunks/{chunk-NCHBSJG3.js → chunk-7332Y23R.js} +21 -21
  11. package/dist/_node-chunks/{chunk-MPUDYIDW.js → chunk-7C52H6S6.js} +7 -7
  12. package/dist/_node-chunks/{chunk-BNO5FB6B.js → chunk-7NSBLADO.js} +8 -8
  13. package/dist/_node-chunks/{chunk-YJJWZPL7.js → chunk-BHHNQ5GJ.js} +36 -43
  14. package/dist/_node-chunks/{chunk-JKWP2FKQ.js → chunk-CAKHJEH6.js} +7 -7
  15. package/dist/_node-chunks/{chunk-TSKLBMF3.js → chunk-CPI4IKLK.js} +8 -8
  16. package/dist/_node-chunks/{chunk-TDLKTACT.js → chunk-FMLH3V5B.js} +7 -7
  17. package/dist/_node-chunks/{chunk-CKXP5RYA.js → chunk-FU2KCZJG.js} +9 -9
  18. package/dist/_node-chunks/{chunk-YFBIEJ33.js → chunk-GDOIF7E6.js} +7 -7
  19. package/dist/_node-chunks/{chunk-S32G4TCP.js → chunk-HPERTMWB.js} +7 -7
  20. package/dist/_node-chunks/{chunk-SQAKXWVV.js → chunk-ICT62CX5.js} +7 -7
  21. package/dist/_node-chunks/{chunk-NTX43F34.js → chunk-JS5I7ZY6.js} +7 -7
  22. package/dist/_node-chunks/{chunk-ZQY3BNST.js → chunk-K3K6H2BF.js} +12 -12
  23. package/dist/_node-chunks/{chunk-N7XYNLCJ.js → chunk-LPBJHVNR.js} +7 -7
  24. package/dist/_node-chunks/{chunk-MDXYV4OF.js → chunk-OXPHRY7P.js} +15 -15
  25. package/dist/_node-chunks/{chunk-5KDXQR2J.js → chunk-PCXGFAQ3.js} +7 -7
  26. package/dist/_node-chunks/{chunk-NTH76OZA.js → chunk-PW7ECOTU.js} +12 -12
  27. package/dist/_node-chunks/{chunk-RLMJDF6S.js → chunk-RFAREF3S.js} +8 -8
  28. package/dist/_node-chunks/{chunk-TZ7GUTJ4.js → chunk-T6VOUSIY.js} +7 -7
  29. package/dist/_node-chunks/{chunk-6U2QTN2E.js → chunk-TFBHPN6J.js} +7 -7
  30. package/dist/_node-chunks/{chunk-B63HGQAB.js → chunk-TXDBGO2X.js} +9 -9
  31. package/dist/_node-chunks/{chunk-T7KB265F.js → chunk-VAAX75EL.js} +6 -6
  32. package/dist/_node-chunks/chunk-VCC35ZLQ.js +61 -0
  33. package/dist/_node-chunks/{chunk-HH57J4TX.js → chunk-XCTASIYK.js} +8 -8
  34. package/dist/_node-chunks/{chunk-APKZWRTX.js → chunk-XPBE544K.js} +7 -7
  35. package/dist/_node-chunks/{chunk-FJWQKOXX.js → chunk-YXC7LAMZ.js} +10 -10
  36. package/dist/_node-chunks/{dist-SQENNWFY.js → dist-MCOAOC3B.js} +9 -9
  37. package/dist/_node-chunks/{globby-CVPDLQ5Z.js → globby-L3NPKIS7.js} +9 -9
  38. package/dist/_node-chunks/{lib-4BTTMYE2.js → lib-ITTSFFC5.js} +7 -7
  39. package/dist/_node-chunks/{mdx-N42X6CFJ-ENVHI6CC.js → mdx-N42X6CFJ-YP4YCIZM.js} +8 -8
  40. package/dist/_node-chunks/{p-limit-I2XW6GST.js → p-limit-TTLWUU6D.js} +7 -7
  41. package/dist/_node-chunks/{plugin-O5PHZ367.js → plugin-C2OCVZYN.js} +10 -10
  42. package/dist/_node-chunks/{plugin-4NIE24IO.js → plugin-OC5KWEJQ.js} +10 -10
  43. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-SVBN7WFH.js → webpack-inject-mocker-runtime-plugin-IRAPT6HV.js} +10 -10
  44. package/dist/_node-chunks/{webpack-mock-plugin-XBV3VXVD.js → webpack-mock-plugin-CFITLD44.js} +9 -9
  45. package/dist/babel/index.js +11 -11
  46. package/dist/bin/core.js +11 -11
  47. package/dist/bin/dispatcher.js +11 -11
  48. package/dist/bin/loader.js +9 -9
  49. package/dist/cli/index.js +21 -21
  50. package/dist/common/index.js +20 -20
  51. package/dist/components/index.js +5744 -73
  52. package/dist/core-server/index.js +211 -90
  53. package/dist/core-server/presets/common-manager.js +14 -20
  54. package/dist/core-server/presets/common-override-preset.js +9 -9
  55. package/dist/core-server/presets/common-preset.js +23 -23
  56. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  57. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  58. package/dist/csf/index.js +2 -2
  59. package/dist/csf-tools/index.d.ts +7 -0
  60. package/dist/csf-tools/index.js +9 -9
  61. package/dist/manager/globals-runtime.js +1 -1
  62. package/dist/manager-api/index.d.ts +1 -1
  63. package/dist/manager-api/index.js +1 -1
  64. package/dist/node-logger/index.js +14 -14
  65. package/dist/preview-api/index.d.ts +68 -67
  66. package/dist/preview-api/index.js +5 -5
  67. package/dist/server-errors.js +10 -10
  68. package/dist/telemetry/index.js +24 -24
  69. package/dist/types/index.d.ts +2 -2
  70. package/package.json +1 -1
  71. package/dist/_browser-chunks/chunk-B3S3ROIP.js +0 -5810
  72. package/dist/_node-chunks/camelcase-2N6MD2HZ.js +0 -18
  73. package/dist/_node-chunks/chunk-D3NGJQDZ.js +0 -18
  74. package/dist/_node-chunks/chunk-LPNJ7PJY.js +0 -61
  75. package/dist/_browser-chunks/{chunk-W4QKLQSC.js → chunk-RW5PKMWM.js} +5 -5
  76. package/dist/_browser-chunks/{syntaxhighlighter-DK2ODWXH.js → syntaxhighlighter-CAVLW7PM.js} +4 -4
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,21 +13,21 @@ import {
13
13
  BROWSER_TARGETS,
14
14
  NODE_TARGET,
15
15
  SUPPORTED_FEATURES
16
- } from "./chunk-AX2PCJZ2.js";
16
+ } from "./chunk-5A6EYMRK.js";
17
17
  import {
18
18
  require_build
19
- } from "./chunk-N7XYNLCJ.js";
19
+ } from "./chunk-LPBJHVNR.js";
20
20
  import {
21
21
  resolveModulePath,
22
22
  resolvePackageDir
23
- } from "./chunk-TSKLBMF3.js";
23
+ } from "./chunk-CPI4IKLK.js";
24
24
  import {
25
25
  join,
26
26
  parse
27
- } from "./chunk-6U2QTN2E.js";
27
+ } from "./chunk-TFBHPN6J.js";
28
28
  import {
29
29
  slash
30
- } from "./chunk-MPUDYIDW.js";
30
+ } from "./chunk-7C52H6S6.js";
31
31
  import {
32
32
  __commonJS,
33
33
  __esm,
@@ -36,7 +36,7 @@ import {
36
36
  __require,
37
37
  __toCommonJS,
38
38
  __toESM
39
- } from "./chunk-T7KB265F.js";
39
+ } from "./chunk-VAAX75EL.js";
40
40
 
41
41
  // ../node_modules/tslib/tslib.es6.mjs
42
42
  var tslib_es6_exports = {};
@@ -0,0 +1,18 @@
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ camelCase
14
+ } from "./chunk-JS5I7ZY6.js";
15
+ import "./chunk-VAAX75EL.js";
16
+ export {
17
+ camelCase as default
18
+ };
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
  __name
14
- } from "./chunk-T7KB265F.js";
14
+ } from "./chunk-VAAX75EL.js";
15
15
 
16
16
  // ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
17
17
  var isProduction = process.env.NODE_ENV === "production";
@@ -0,0 +1,18 @@
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+
13
+ // package.json
14
+ var version = "10.1.0-alpha.4";
15
+
16
+ export {
17
+ version
18
+ };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
  __commonJS
14
- } from "./chunk-T7KB265F.js";
14
+ } from "./chunk-VAAX75EL.js";
15
15
 
16
16
  // ../node_modules/pretty-hrtime/index.js
17
17
  var require_pretty_hrtime = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __name
15
- } from "./chunk-T7KB265F.js";
15
+ } from "./chunk-VAAX75EL.js";
16
16
 
17
17
  // ../node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js
18
18
  var require_resolve_uri_umd = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __name
15
- } from "./chunk-T7KB265F.js";
15
+ } from "./chunk-VAAX75EL.js";
16
16
 
17
17
  // ../node_modules/picocolors/picocolors.js
18
18
  var require_picocolors = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
  __name,
15
15
  __require
16
- } from "./chunk-T7KB265F.js";
16
+ } from "./chunk-VAAX75EL.js";
17
17
 
18
18
  // ../node_modules/kleur/index.js
19
19
  var require_kleur = __commonJS({
@@ -1,20 +1,20 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
  require_picomatch
14
- } from "./chunk-TZ7GUTJ4.js";
14
+ } from "./chunk-T6VOUSIY.js";
15
15
  import {
16
16
  versions_default
17
- } from "./chunk-LPNJ7PJY.js";
17
+ } from "./chunk-VCC35ZLQ.js";
18
18
  import {
19
19
  BUN_LOCKFILE,
20
20
  BUN_LOCKFILE_BINARY,
@@ -27,42 +27,42 @@ import {
27
27
  getProjectRoot,
28
28
  normalizeStoryPath,
29
29
  require_cross_spawn
30
- } from "./chunk-B63HGQAB.js";
30
+ } from "./chunk-TXDBGO2X.js";
31
31
  import {
32
32
  any,
33
33
  from,
34
34
  up2 as up
35
- } from "./chunk-5KDXQR2J.js";
35
+ } from "./chunk-PCXGFAQ3.js";
36
36
  import {
37
37
  invariant
38
- } from "./chunk-5X7FGASE.js";
38
+ } from "./chunk-3GTBPTCZ.js";
39
39
  import {
40
40
  importModule,
41
41
  resolveModulePath,
42
42
  resolvePackageDir,
43
43
  safeResolveModule
44
- } from "./chunk-TSKLBMF3.js";
44
+ } from "./chunk-CPI4IKLK.js";
45
45
  import {
46
46
  join,
47
47
  parse,
48
48
  resolve
49
- } from "./chunk-6U2QTN2E.js";
49
+ } from "./chunk-TFBHPN6J.js";
50
50
  import {
51
51
  require_prompts
52
- } from "./chunk-NYXHMPY4.js";
52
+ } from "./chunk-6VWT3H7R.js";
53
53
  import {
54
54
  glob,
55
55
  globSync
56
- } from "./chunk-JKWP2FKQ.js";
56
+ } from "./chunk-CAKHJEH6.js";
57
57
  import {
58
58
  slash
59
- } from "./chunk-MPUDYIDW.js";
59
+ } from "./chunk-7C52H6S6.js";
60
60
  import {
61
61
  require_dist
62
- } from "./chunk-S32G4TCP.js";
62
+ } from "./chunk-HPERTMWB.js";
63
63
  import {
64
64
  require_picocolors
65
- } from "./chunk-2JHIUWIN.js";
65
+ } from "./chunk-6DHXOOK2.js";
66
66
  import {
67
67
  __commonJS,
68
68
  __esm,
@@ -71,7 +71,7 @@ import {
71
71
  __require,
72
72
  __toCommonJS,
73
73
  __toESM
74
- } from "./chunk-T7KB265F.js";
74
+ } from "./chunk-VAAX75EL.js";
75
75
 
76
76
  // node_modules/resolve/lib/homedir.js
77
77
  var require_homedir = __commonJS({
@@ -15459,7 +15459,7 @@ async function scanAndTransformFiles({
15459
15459
  initial: defaultGlob
15460
15460
  });
15461
15461
  console.log("Scanning for affected files...");
15462
- const globby = (await import("./globby-CVPDLQ5Z.js")).globby;
15462
+ const globby = (await import("./globby-L3NPKIS7.js")).globby;
15463
15463
  const sourceFiles = await globby([glob2], {
15464
15464
  ...commonGlobOptions(""),
15465
15465
  ignore: ["**/node_modules/**"],
@@ -15489,7 +15489,7 @@ function transformImports(source, renamedImports) {
15489
15489
  __name(transformImports, "transformImports");
15490
15490
  var transformImportFiles = /* @__PURE__ */ __name(async (files, renamedImports, dryRun) => {
15491
15491
  const errors = [];
15492
- const { default: pLimit } = await import("./p-limit-I2XW6GST.js");
15492
+ const { default: pLimit } = await import("./p-limit-TTLWUU6D.js");
15493
15493
  const limit = pLimit(10);
15494
15494
  await Promise.all(
15495
15495
  files.map(
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
  __name
14
- } from "./chunk-T7KB265F.js";
14
+ } from "./chunk-VAAX75EL.js";
15
15
 
16
16
  // ../node_modules/slash/index.js
17
17
  function slash(path) {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -16,10 +16,10 @@ import {
16
16
  join,
17
17
  normalize,
18
18
  resolve
19
- } from "./chunk-6U2QTN2E.js";
19
+ } from "./chunk-TFBHPN6J.js";
20
20
  import {
21
21
  __name
22
- } from "./chunk-T7KB265F.js";
22
+ } from "./chunk-VAAX75EL.js";
23
23
 
24
24
  // src/core-server/mocking-utils/resolve.ts
25
25
  import { readFileSync as readFileSync2, realpathSync } from "node:fs";
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
  require_dist
14
- } from "./chunk-S32G4TCP.js";
14
+ } from "./chunk-HPERTMWB.js";
15
15
  import {
16
16
  __name,
17
17
  __toESM
18
- } from "./chunk-T7KB265F.js";
18
+ } from "./chunk-VAAX75EL.js";
19
19
 
20
20
  // src/csf-tools/CsfFile.ts
21
21
  var import_ts_dedent = __toESM(require_dist(), 1);
@@ -859,12 +859,6 @@ var propKey = /* @__PURE__ */ __name((p) => {
859
859
  }
860
860
  return null;
861
861
  }, "propKey");
862
- var unwrap = /* @__PURE__ */ __name((node) => {
863
- if (t3.isTSAsExpression(node) || t3.isTSSatisfiesExpression(node)) {
864
- return unwrap(node.expression);
865
- }
866
- return node;
867
- }, "unwrap");
868
862
  var _getPath = /* @__PURE__ */ __name((path, node) => {
869
863
  if (path.length === 0) {
870
864
  return node;
@@ -951,6 +945,25 @@ var ConfigFile = class {
951
945
  // for that. But rather than refactor the whole thing, we just use this as a stopgap.
952
946
  this._exportDecls = {};
953
947
  this.hasDefaultExport = false;
948
+ /** Unwraps TS assertions/satisfies from a node, to get the underlying node. */
949
+ this._unwrap = /* @__PURE__ */ __name((node) => {
950
+ if (t3.isTSAsExpression(node) || t3.isTSSatisfiesExpression(node)) {
951
+ return this._unwrap(node.expression);
952
+ }
953
+ return node;
954
+ }, "_unwrap");
955
+ /**
956
+ * Resolve a declaration node by unwrapping TS assertions/satisfies and following identifiers to
957
+ * resolve the correct node in case it's an identifier.
958
+ */
959
+ this._resolveDeclaration = /* @__PURE__ */ __name((node, parent = this._ast.program) => {
960
+ const decl = this._unwrap(node);
961
+ if (t3.isIdentifier(decl) && t3.isProgram(parent)) {
962
+ const initialization = _findVarInitialization(decl.name, parent);
963
+ return initialization ? this._unwrap(initialization) : decl;
964
+ }
965
+ return decl;
966
+ }, "_resolveDeclaration");
954
967
  this._ast = ast;
955
968
  this._code = code;
956
969
  this.fileName = fileName;
@@ -963,10 +976,7 @@ var ConfigFile = class {
963
976
  exportsObject.properties.forEach((p) => {
964
977
  const exportName = propKey(p);
965
978
  if (exportName) {
966
- let exportVal = p.value;
967
- if (t3.isIdentifier(exportVal)) {
968
- exportVal = _findVarInitialization(exportVal.name, this._ast.program);
969
- }
979
+ const exportVal = this._resolveDeclaration(p.value);
970
980
  this._exports[exportName] = exportVal;
971
981
  }
972
982
  });
@@ -977,8 +987,7 @@ var ConfigFile = class {
977
987
  ExportDefaultDeclaration: {
978
988
  enter({ node, parent }) {
979
989
  self.hasDefaultExport = true;
980
- let decl = t3.isIdentifier(node.declaration) && t3.isProgram(parent) ? _findVarInitialization(node.declaration.name, parent) : node.declaration;
981
- decl = unwrap(decl);
990
+ let decl = self._resolveDeclaration(node.declaration, parent);
982
991
  if (t3.isCallExpression(decl) && t3.isObjectExpression(decl.arguments[0])) {
983
992
  decl = decl.arguments[0];
984
993
  }
@@ -1001,10 +1010,7 @@ var ConfigFile = class {
1001
1010
  node.declaration.declarations.forEach((decl) => {
1002
1011
  if (t3.isVariableDeclarator(decl) && t3.isIdentifier(decl.id)) {
1003
1012
  const { name: exportName } = decl.id;
1004
- let exportVal = decl.init;
1005
- if (t3.isIdentifier(exportVal)) {
1006
- exportVal = _findVarInitialization(exportVal.name, parent);
1007
- }
1013
+ const exportVal = self._resolveDeclaration(decl.init, parent);
1008
1014
  self._exports[exportName] = exportVal;
1009
1015
  self._exportDecls[exportName] = decl;
1010
1016
  }
@@ -1022,7 +1028,7 @@ var ConfigFile = class {
1022
1028
  const { name: exportName } = spec.exported;
1023
1029
  const decl = _findVarDeclarator(localName, parent);
1024
1030
  if (decl) {
1025
- self._exports[exportName] = decl.init;
1031
+ self._exports[exportName] = self._resolveDeclaration(decl.init, parent);
1026
1032
  self._exportDecls[exportName] = decl;
1027
1033
  }
1028
1034
  }
@@ -1044,22 +1050,13 @@ var ConfigFile = class {
1044
1050
  const { left, right } = node.expression;
1045
1051
  if (t3.isMemberExpression(left) && t3.isIdentifier(left.object) && left.object.name === "module" && t3.isIdentifier(left.property) && left.property.name === "exports") {
1046
1052
  let exportObject = right;
1047
- if (t3.isIdentifier(right)) {
1048
- exportObject = _findVarInitialization(right.name, parent);
1049
- }
1050
- exportObject = unwrap(exportObject);
1053
+ exportObject = self._resolveDeclaration(exportObject, parent);
1051
1054
  if (t3.isObjectExpression(exportObject)) {
1052
1055
  self._exportsObject = exportObject;
1053
1056
  exportObject.properties.forEach((p) => {
1054
1057
  const exportName = propKey(p);
1055
1058
  if (exportName) {
1056
- let exportVal = p.value;
1057
- if (t3.isIdentifier(exportVal)) {
1058
- exportVal = _findVarInitialization(
1059
- exportVal.name,
1060
- parent
1061
- );
1062
- }
1059
+ const exportVal = self._resolveDeclaration(p.value, parent);
1063
1060
  self._exports[exportName] = exportVal;
1064
1061
  }
1065
1062
  });
@@ -1270,13 +1267,9 @@ var ConfigFile = class {
1270
1267
  }
1271
1268
  }
1272
1269
  if (t3.isExportDefaultDeclaration(node)) {
1273
- let decl = node.declaration;
1274
- if (t3.isIdentifier(decl)) {
1275
- decl = _findVarInitialization(decl.name, this._ast.program);
1276
- }
1277
- decl = unwrap(decl);
1278
- if (t3.isObjectExpression(decl)) {
1279
- const properties2 = decl.properties;
1270
+ const resolved = this._resolveDeclaration(node.declaration);
1271
+ if (t3.isObjectExpression(resolved)) {
1272
+ const properties2 = resolved.properties;
1280
1273
  removeProperty(properties2, path[0]);
1281
1274
  removedRootProperty = true;
1282
1275
  }
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
  __name,
15
15
  __toESM
16
- } from "./chunk-T7KB265F.js";
16
+ } from "./chunk-VAAX75EL.js";
17
17
 
18
18
  // ../node_modules/balanced-match/index.js
19
19
  var require_balanced_match = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
12
12
  import {
13
13
  dirname,
14
14
  join
15
- } from "./chunk-6U2QTN2E.js";
15
+ } from "./chunk-TFBHPN6J.js";
16
16
  import {
17
17
  __name
18
- } from "./chunk-T7KB265F.js";
18
+ } from "./chunk-VAAX75EL.js";
19
19
 
20
20
  // ../node_modules/exsolve/dist/index.mjs
21
21
  import fs, { realpathSync, statSync, lstatSync } from "node:fs";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_1ale42sn21 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1ale42sn21 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1ale42sn21 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_1ale42sn21.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1ale42sn21.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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
  __name,
15
15
  __require
16
- } from "./chunk-T7KB265F.js";
16
+ } from "./chunk-VAAX75EL.js";
17
17
 
18
18
  // ../node_modules/ms/index.js
19
19
  var require_ms = __commonJS({