storybook 10.0.0-beta.4 → 10.0.0-beta.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 (97) hide show
  1. package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
  2. package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
  3. package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-AM4PZYVQ.js} +10 -63
  4. package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
  5. package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
  6. package/dist/_browser-chunks/chunk-GJ67EE65.js +67 -0
  7. package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
  8. package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
  9. package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
  10. package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
  11. package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
  12. package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
  13. package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-YQV3EGQ5.js} +5 -5
  14. package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-RJW7FE3A.js} +3 -2
  15. package/dist/_node-chunks/{builder-manager-IKHPPPFE.js → builder-manager-ZTS4EIKQ.js} +18 -13
  16. package/dist/_node-chunks/camelcase-K3BM7RII.js +18 -0
  17. package/dist/_node-chunks/{chunk-MOO2Y4GI.js → chunk-2VMDKLSW.js} +6 -6
  18. package/dist/_node-chunks/{chunk-7IIAUEWB.js → chunk-3VVGIILJ.js} +8 -8
  19. package/dist/_node-chunks/{chunk-SF2IETZ2.js → chunk-4KRR46V2.js} +36 -23
  20. package/dist/_node-chunks/{chunk-4VGW2SQA.js → chunk-4VDRH7SM.js} +7 -7
  21. package/dist/_node-chunks/chunk-7LG5CLCT.js +18 -0
  22. package/dist/_node-chunks/{chunk-AC3BNULF.js → chunk-ACUNHBEO.js} +22 -22
  23. package/dist/_node-chunks/{camelcase-O2O7JODG.js → chunk-AK5PHLUA.js} +9 -8
  24. package/dist/_node-chunks/{chunk-4FMOVB65.js → chunk-D7SDB4XE.js} +223 -243
  25. package/dist/_node-chunks/chunk-DWJ7TV2O.js +62 -0
  26. package/dist/_node-chunks/{chunk-JSSBBVU5.js → chunk-DZJNLBBL.js} +7 -7
  27. package/dist/_node-chunks/{chunk-YRPXGWKW.js → chunk-EIHJ5J3O.js} +8 -8
  28. package/dist/_node-chunks/{chunk-HAVE6SGK.js → chunk-F3WE3456.js} +7 -7
  29. package/dist/_node-chunks/{chunk-TTQRDWDJ.js → chunk-F7YW5W6B.js} +12 -12
  30. package/dist/_node-chunks/{chunk-AXFNB3AN.js → chunk-H52PBBSK.js} +7 -7
  31. package/dist/_node-chunks/{chunk-OL2HWCBH.js → chunk-J3DQMIO4.js} +7 -7
  32. package/dist/_node-chunks/{chunk-XT6O5CVI.js → chunk-K4YETNYJ.js} +30 -21
  33. package/dist/_node-chunks/{chunk-TBAIXCHN.js → chunk-KU3JBNPY.js} +8 -8
  34. package/dist/_node-chunks/{chunk-6COBULLV.js → chunk-KZB7ELL6.js} +162 -103
  35. package/dist/_node-chunks/{chunk-JECCFKKM.js → chunk-OC3TVLYU.js} +7 -7
  36. package/dist/_node-chunks/{chunk-N3GFXZDP.js → chunk-P3TWEOO5.js} +7 -7
  37. package/dist/_node-chunks/{chunk-NOSGJ5PL.js → chunk-P7YMEOXF.js} +7 -7
  38. package/dist/_node-chunks/{chunk-IB5AEYPX.js → chunk-PIKDGR3O.js} +7 -7
  39. package/dist/_node-chunks/{chunk-FWFQ2GU7.js → chunk-QHIU5I7C.js} +6 -6
  40. package/dist/_node-chunks/{chunk-NF3GXIEK.js → chunk-SW3VZAH7.js} +9 -9
  41. package/dist/_node-chunks/{chunk-XA4TAMUS.js → chunk-TBWOUVTA.js} +10 -9
  42. package/dist/_node-chunks/{chunk-YJHXEN7U.js → chunk-TKN5TEZV.js} +583 -180
  43. package/dist/_node-chunks/{chunk-JP4LEAXM.js → chunk-TVKUJ3SE.js} +623 -750
  44. package/dist/_node-chunks/{chunk-TYGVOW7L.js → chunk-UTCFHTQH.js} +8 -8
  45. package/dist/_node-chunks/{chunk-DCHFG5TX.js → chunk-VQN4WAIA.js} +7 -7
  46. package/dist/_node-chunks/{chunk-USDZSU5L.js → chunk-VWSUFVUF.js} +7 -7
  47. package/dist/_node-chunks/{chunk-3J7DQ6TI.js → chunk-VX5P3IYA.js} +7 -7
  48. package/dist/_node-chunks/{chunk-5OILJTZE.js → chunk-WCSHG2QT.js} +7 -7
  49. package/dist/_node-chunks/{default-browser-id-J4OIAAJ5.js → default-browser-id-4RZZMHJE.js} +7 -7
  50. package/dist/_node-chunks/{dist-BMKSKYDI.js → dist-OGRBL76N.js} +9 -9
  51. package/dist/_node-chunks/{globby-DASPUXWI.js → globby-65LOULA6.js} +9 -9
  52. package/dist/_node-chunks/{lib-L6BIH4EV.js → lib-TF7JCT3A.js} +36 -12
  53. package/dist/_node-chunks/{mdx-N42X6CFJ-2COTUDSL.js → mdx-N42X6CFJ-6ZJEUZMZ.js} +8 -8
  54. package/dist/_node-chunks/{p-limit-HVR3I7TJ.js → p-limit-PF7JSPDT.js} +7 -7
  55. package/dist/_node-chunks/{plugin-2XPSFYWZ.js → plugin-A6XAWMXN.js} +10 -10
  56. package/dist/_node-chunks/{plugin-FZOHPRK7.js → plugin-LGHGAC6J.js} +10 -10
  57. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-FGQM2EPC.js → webpack-inject-mocker-runtime-plugin-HDSEOU3Z.js} +1307 -847
  58. package/dist/_node-chunks/{webpack-mock-plugin-4HOAIYSX.js → webpack-mock-plugin-ZJJVMJUS.js} +9 -9
  59. package/dist/babel/index.d.ts +1 -1
  60. package/dist/babel/index.js +11 -11
  61. package/dist/bin/core.js +638 -187
  62. package/dist/bin/dispatcher.js +11 -11
  63. package/dist/bin/loader.js +8 -8
  64. package/dist/cli/index.d.ts +61 -74
  65. package/dist/cli/index.js +50 -43
  66. package/dist/common/index.js +21 -21
  67. package/dist/components/index.js +24 -20
  68. package/dist/core-server/index.js +3541 -3216
  69. package/dist/core-server/presets/common-manager.js +440 -720
  70. package/dist/core-server/presets/common-override-preset.js +9 -9
  71. package/dist/core-server/presets/common-preset.js +22 -22
  72. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  73. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  74. package/dist/csf/index.js +6 -6
  75. package/dist/csf-tools/index.js +9 -9
  76. package/dist/docs-tools/index.js +4 -4
  77. package/dist/instrumenter/index.js +1 -1
  78. package/dist/manager/globals-runtime.js +8910 -18107
  79. package/dist/manager/runtime.js +3256 -2945
  80. package/dist/manager-api/index.js +23 -20
  81. package/dist/node-logger/index.d.ts +1 -1
  82. package/dist/node-logger/index.js +1136 -661
  83. package/dist/preview/runtime.js +12061 -21584
  84. package/dist/preview-api/index.d.ts +68 -67
  85. package/dist/preview-api/index.js +6 -6
  86. package/dist/router/index.js +2 -2
  87. package/dist/server-errors.js +10 -10
  88. package/dist/telemetry/index.js +24 -24
  89. package/dist/test/index.js +1872 -4023
  90. package/dist/theming/index.d.ts +2 -2
  91. package/dist/theming/index.js +6 -6
  92. package/package.json +3 -3
  93. package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
  94. package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
  95. package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
  96. package/dist/_node-chunks/chunk-CHJLO2LV.js +0 -62
  97. package/dist/_node-chunks/chunk-MNG223PY.js +0 -18
@@ -0,0 +1,62 @@
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+
13
+ // src/common/versions.ts
14
+ var versions_default = {
15
+ "@storybook/addon-a11y": "10.0.0-beta.5",
16
+ "@storybook/addon-docs": "10.0.0-beta.5",
17
+ "@storybook/addon-jest": "10.0.0-beta.5",
18
+ "@storybook/addon-links": "10.0.0-beta.5",
19
+ "@storybook/addon-onboarding": "10.0.0-beta.5",
20
+ "storybook-addon-pseudo-states": "10.0.0-beta.5",
21
+ "@storybook/addon-themes": "10.0.0-beta.5",
22
+ "@storybook/addon-vitest": "10.0.0-beta.5",
23
+ "@storybook/builder-vite": "10.0.0-beta.5",
24
+ "@storybook/builder-webpack5": "10.0.0-beta.5",
25
+ storybook: "10.0.0-beta.5",
26
+ "@storybook/angular": "10.0.0-beta.5",
27
+ "@storybook/ember": "10.0.0-beta.5",
28
+ "@storybook/html-vite": "10.0.0-beta.5",
29
+ "@storybook/nextjs": "10.0.0-beta.5",
30
+ "@storybook/nextjs-vite": "10.0.0-beta.5",
31
+ "@storybook/preact-vite": "10.0.0-beta.5",
32
+ "@storybook/react-native-web-vite": "10.0.0-beta.5",
33
+ "@storybook/react-vite": "10.0.0-beta.5",
34
+ "@storybook/react-webpack5": "10.0.0-beta.5",
35
+ "@storybook/server-webpack5": "10.0.0-beta.5",
36
+ "@storybook/svelte-vite": "10.0.0-beta.5",
37
+ "@storybook/sveltekit": "10.0.0-beta.5",
38
+ "@storybook/vue3-vite": "10.0.0-beta.5",
39
+ "@storybook/web-components-vite": "10.0.0-beta.5",
40
+ sb: "10.0.0-beta.5",
41
+ "@storybook/cli": "10.0.0-beta.5",
42
+ "@storybook/codemod": "10.0.0-beta.5",
43
+ "@storybook/core-webpack": "10.0.0-beta.5",
44
+ "create-storybook": "10.0.0-beta.5",
45
+ "@storybook/csf-plugin": "10.0.0-beta.5",
46
+ "eslint-plugin-storybook": "10.0.0-beta.5",
47
+ "@storybook/react-dom-shim": "10.0.0-beta.5",
48
+ "@storybook/preset-create-react-app": "10.0.0-beta.5",
49
+ "@storybook/preset-react-webpack": "10.0.0-beta.5",
50
+ "@storybook/preset-server-webpack": "10.0.0-beta.5",
51
+ "@storybook/html": "10.0.0-beta.5",
52
+ "@storybook/preact": "10.0.0-beta.5",
53
+ "@storybook/react": "10.0.0-beta.5",
54
+ "@storybook/server": "10.0.0-beta.5",
55
+ "@storybook/svelte": "10.0.0-beta.5",
56
+ "@storybook/vue3": "10.0.0-beta.5",
57
+ "@storybook/web-components": "10.0.0-beta.5"
58
+ };
59
+
60
+ export {
61
+ versions_default
62
+ };
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-MOO2Y4GI.js";
14
+ } from "./chunk-2VMDKLSW.js";
15
15
 
16
16
  // ../node_modules/empathic/resolve.mjs
17
17
  import { createRequire } from "node:module";
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-NOSGJ5PL.js";
14
+ } from "./chunk-P7YMEOXF.js";
15
15
  import {
16
16
  __name,
17
17
  __toESM
18
- } from "./chunk-MOO2Y4GI.js";
18
+ } from "./chunk-2VMDKLSW.js";
19
19
 
20
20
  // src/csf-tools/CsfFile.ts
21
21
  var import_ts_dedent = __toESM(require_dist(), 1);
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-MOO2Y4GI.js";
14
+ } from "./chunk-2VMDKLSW.js";
15
15
 
16
16
  // ../node_modules/pretty-hrtime/index.js
17
17
  var require_pretty_hrtime = __commonJS({
@@ -1,33 +1,33 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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_build
14
- } from "./chunk-DCHFG5TX.js";
14
+ } from "./chunk-VQN4WAIA.js";
15
15
  import {
16
16
  resolvePackageDir
17
- } from "./chunk-TBAIXCHN.js";
17
+ } from "./chunk-KU3JBNPY.js";
18
18
  import {
19
19
  require_prompts
20
- } from "./chunk-3J7DQ6TI.js";
20
+ } from "./chunk-VX5P3IYA.js";
21
21
  import {
22
22
  require_dist
23
- } from "./chunk-NOSGJ5PL.js";
23
+ } from "./chunk-P7YMEOXF.js";
24
24
  import {
25
25
  require_picocolors
26
- } from "./chunk-N3GFXZDP.js";
26
+ } from "./chunk-P3TWEOO5.js";
27
27
  import {
28
28
  __name,
29
29
  __toESM
30
- } from "./chunk-MOO2Y4GI.js";
30
+ } from "./chunk-2VMDKLSW.js";
31
31
 
32
32
  // src/core-server/utils/server-statics.ts
33
33
  var import_picocolors = __toESM(require_picocolors(), 1);
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-MOO2Y4GI.js";
16
+ } from "./chunk-2VMDKLSW.js";
17
17
 
18
18
  // ../node_modules/ms/index.js
19
19
  var require_ms = __commonJS({
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-MOO2Y4GI.js";
14
+ } from "./chunk-2VMDKLSW.js";
15
15
 
16
16
  // ../node_modules/slash/index.js
17
17
  function slash(path) {
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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-MOO2Y4GI.js";
14
+ } from "./chunk-2VMDKLSW.js";
15
15
 
16
16
  // ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
17
17
  var comma = ",".charCodeAt(0);
@@ -30,8 +30,7 @@ function encodeInteger(builder, num, relative) {
30
30
  do {
31
31
  let clamped = delta & 31;
32
32
  delta >>>= 5;
33
- if (delta > 0)
34
- clamped |= 32;
33
+ if (delta > 0) clamped |= 32;
35
34
  builder.write(intToChar[clamped]);
36
35
  } while (delta > 0);
37
36
  return num;
@@ -82,23 +81,18 @@ function encode(decoded) {
82
81
  let namesIndex = 0;
83
82
  for (let i = 0; i < decoded.length; i++) {
84
83
  const line = decoded[i];
85
- if (i > 0)
86
- writer.write(semicolon);
87
- if (line.length === 0)
88
- continue;
84
+ if (i > 0) writer.write(semicolon);
85
+ if (line.length === 0) continue;
89
86
  let genColumn = 0;
90
87
  for (let j = 0; j < line.length; j++) {
91
88
  const segment = line[j];
92
- if (j > 0)
93
- writer.write(comma);
89
+ if (j > 0) writer.write(comma);
94
90
  genColumn = encodeInteger(writer, segment[0], genColumn);
95
- if (segment.length === 1)
96
- continue;
91
+ if (segment.length === 1) continue;
97
92
  sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
98
93
  sourceLine = encodeInteger(writer, segment[2], sourceLine);
99
94
  sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
100
- if (segment.length === 4)
101
- continue;
95
+ if (segment.length === 4) continue;
102
96
  namesIndex = encodeInteger(writer, segment[4], namesIndex);
103
97
  }
104
98
  }
@@ -563,6 +557,9 @@ var MagicString = class _MagicString {
563
557
  }
564
558
  if (chunk.outro.length) mappings.advance(chunk.outro);
565
559
  });
560
+ if (this.outro) {
561
+ mappings.advance(this.outro);
562
+ }
566
563
  return {
567
564
  file: options.file ? options.file.split(/[/\\]/).pop() : void 0,
568
565
  sources: [
@@ -920,10 +917,13 @@ var MagicString = class _MagicString {
920
917
  _split(index) {
921
918
  if (this.byStart[index] || this.byEnd[index]) return;
922
919
  let chunk = this.lastSearchedChunk;
920
+ let previousChunk = chunk;
923
921
  const searchForward = index > chunk.end;
924
922
  while (chunk) {
925
923
  if (chunk.contains(index)) return this._splitChunk(chunk, index);
926
924
  chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
925
+ if (chunk === previousChunk) return;
926
+ previousChunk = chunk;
927
927
  }
928
928
  }
929
929
  _splitChunk(chunk, index) {
@@ -1072,7 +1072,12 @@ var MagicString = class _MagicString {
1072
1072
  const { original } = this;
1073
1073
  const index = original.indexOf(string);
1074
1074
  if (index !== -1) {
1075
- this.overwrite(index, index + string.length, replacement);
1075
+ if (typeof replacement === "function") {
1076
+ replacement = replacement(string, index, original);
1077
+ }
1078
+ if (string !== replacement) {
1079
+ this.overwrite(index, index + string.length, replacement);
1080
+ }
1076
1081
  }
1077
1082
  return this;
1078
1083
  }
@@ -1087,7 +1092,11 @@ var MagicString = class _MagicString {
1087
1092
  const stringLength = string.length;
1088
1093
  for (let index = original.indexOf(string); index !== -1; index = original.indexOf(string, index + stringLength)) {
1089
1094
  const previous = original.slice(index, index + stringLength);
1090
- if (previous !== replacement) this.overwrite(index, index + stringLength, replacement);
1095
+ let _replacement = replacement;
1096
+ if (typeof replacement === "function") {
1097
+ _replacement = replacement(previous, index, original);
1098
+ }
1099
+ if (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement);
1091
1100
  }
1092
1101
  return this;
1093
1102
  }
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.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_bdftjtsviyb.createRequire(import.meta.url);
12
12
  import {
13
13
  dirname,
14
14
  join
15
- } from "./chunk-4VGW2SQA.js";
15
+ } from "./chunk-4VDRH7SM.js";
16
16
  import {
17
17
  __name
18
- } from "./chunk-MOO2Y4GI.js";
18
+ } from "./chunk-2VMDKLSW.js";
19
19
 
20
20
  // src/shared/utils/module.ts
21
21
  import { statSync } from "node:fs";