storybook 10.0.0-beta.3 → 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 (100) 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-DXAEQZJB.js → builder-manager-ZTS4EIKQ.js} +18 -13
  16. package/dist/_node-chunks/camelcase-K3BM7RII.js +18 -0
  17. package/dist/_node-chunks/{chunk-XRAB2RZN.js → chunk-2VMDKLSW.js} +6 -6
  18. package/dist/_node-chunks/{chunk-EI44VA3U.js → chunk-3VVGIILJ.js} +8 -8
  19. package/dist/_node-chunks/{chunk-KQXC7XVZ.js → chunk-4KRR46V2.js} +50 -89
  20. package/dist/_node-chunks/{chunk-EVY6P65U.js → chunk-4VDRH7SM.js} +7 -7
  21. package/dist/_node-chunks/chunk-7LG5CLCT.js +18 -0
  22. package/dist/_node-chunks/{chunk-DNOOZ2LS.js → chunk-ACUNHBEO.js} +552 -717
  23. package/dist/_node-chunks/{camelcase-CMMT6PHY.js → chunk-AK5PHLUA.js} +9 -8
  24. package/dist/_node-chunks/{chunk-RUCPXDO3.js → chunk-D7SDB4XE.js} +223 -243
  25. package/dist/_node-chunks/chunk-DWJ7TV2O.js +62 -0
  26. package/dist/_node-chunks/chunk-DZJNLBBL.js +79 -0
  27. package/dist/_node-chunks/{chunk-5XVEWBRA.js → chunk-EIHJ5J3O.js} +8 -8
  28. package/dist/_node-chunks/{chunk-3SUJKLRV.js → chunk-F3WE3456.js} +7 -7
  29. package/dist/_node-chunks/{chunk-QI3AVWUV.js → chunk-F7YW5W6B.js} +12 -12
  30. package/dist/_node-chunks/{chunk-6Z44ODDR.js → chunk-H52PBBSK.js} +7 -7
  31. package/dist/_node-chunks/{chunk-WRSYICUI.js → chunk-J3DQMIO4.js} +7 -7
  32. package/dist/_node-chunks/{chunk-PA26PSV2.js → chunk-K4YETNYJ.js} +30 -21
  33. package/dist/_node-chunks/{chunk-LRQFELIZ.js → chunk-KU3JBNPY.js} +8 -8
  34. package/dist/_node-chunks/{chunk-4TGAX5W7.js → chunk-KZB7ELL6.js} +162 -103
  35. package/dist/_node-chunks/{chunk-PAZJQ2GH.js → chunk-OC3TVLYU.js} +7 -7
  36. package/dist/_node-chunks/{chunk-7EGB7ALG.js → chunk-P3TWEOO5.js} +7 -7
  37. package/dist/_node-chunks/{chunk-BV4J7FF6.js → chunk-P7YMEOXF.js} +7 -7
  38. package/dist/_node-chunks/{chunk-CNKVQCQJ.js → chunk-PIKDGR3O.js} +7 -7
  39. package/dist/_node-chunks/{chunk-R6TLLF24.js → chunk-QHIU5I7C.js} +6 -6
  40. package/dist/_node-chunks/{chunk-AKW5OJ2T.js → chunk-SW3VZAH7.js} +9 -9
  41. package/dist/_node-chunks/chunk-TBWOUVTA.js +4967 -0
  42. package/dist/_node-chunks/{chunk-TL5RNPZW.js → chunk-TKN5TEZV.js} +583 -180
  43. package/dist/_node-chunks/{chunk-SHXAIHPO.js → chunk-TVKUJ3SE.js} +623 -750
  44. package/dist/_node-chunks/{chunk-MVPVYHBT.js → chunk-UTCFHTQH.js} +8 -8
  45. package/dist/_node-chunks/{chunk-PK6SVDYW.js → chunk-VQN4WAIA.js} +7 -7
  46. package/dist/_node-chunks/{chunk-IA7M33LK.js → chunk-VWSUFVUF.js} +7 -7
  47. package/dist/_node-chunks/{chunk-ICETGZAR.js → chunk-VX5P3IYA.js} +7 -7
  48. package/dist/_node-chunks/{chunk-ICFGNVW7.js → chunk-WCSHG2QT.js} +7 -7
  49. package/dist/_node-chunks/{default-browser-id-2X5XLPPS.js → default-browser-id-4RZZMHJE.js} +7 -7
  50. package/dist/_node-chunks/{dist-JSBOOVQK.js → dist-OGRBL76N.js} +9 -9
  51. package/dist/_node-chunks/{globby-YYTLHNUO.js → globby-65LOULA6.js} +9 -9
  52. package/dist/_node-chunks/{lib-DJHADRPZ.js → lib-TF7JCT3A.js} +36 -12
  53. package/dist/_node-chunks/{mdx-N42X6CFJ-WT6XCDU6.js → mdx-N42X6CFJ-6ZJEUZMZ.js} +8 -8
  54. package/dist/_node-chunks/{p-limit-HTXI4SGX.js → p-limit-PF7JSPDT.js} +76 -10
  55. package/dist/_node-chunks/{plugin-NNRMQ2YK.js → plugin-A6XAWMXN.js} +10 -10
  56. package/dist/_node-chunks/{plugin-W22F3FQV.js → plugin-LGHGAC6J.js} +10 -10
  57. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-VFNVWMAM.js → webpack-inject-mocker-runtime-plugin-HDSEOU3Z.js} +1307 -847
  58. package/dist/_node-chunks/{webpack-mock-plugin-Q4ED2M25.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 +62 -75
  65. package/dist/cli/index.js +60 -54
  66. package/dist/common/index.d.ts +3 -1
  67. package/dist/common/index.js +23 -22
  68. package/dist/components/index.js +24 -20
  69. package/dist/core-server/index.js +3544 -3220
  70. package/dist/core-server/presets/common-manager.js +440 -720
  71. package/dist/core-server/presets/common-override-preset.js +9 -9
  72. package/dist/core-server/presets/common-preset.js +22 -22
  73. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  74. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  75. package/dist/csf/index.js +6 -6
  76. package/dist/csf-tools/index.js +9 -9
  77. package/dist/docs-tools/index.js +4 -4
  78. package/dist/instrumenter/index.js +1 -1
  79. package/dist/manager/globals-runtime.js +8910 -18107
  80. package/dist/manager/runtime.js +3256 -2945
  81. package/dist/manager-api/index.js +23 -20
  82. package/dist/node-logger/index.d.ts +1 -1
  83. package/dist/node-logger/index.js +1136 -662
  84. package/dist/preview/runtime.js +12061 -21584
  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 -25
  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 +4 -8
  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-ALWVSNSK.js +0 -62
  97. package/dist/_node-chunks/chunk-MHNUEOON.js +0 -87
  98. package/dist/_node-chunks/chunk-VDFQYNPZ.js +0 -266
  99. package/dist/_node-chunks/chunk-WELIADWR.js +0 -2377
  100. package/dist/_node-chunks/chunk-YRXKNGPR.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
+ };
@@ -0,0 +1,79 @@
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
+ import {
13
+ __name
14
+ } from "./chunk-2VMDKLSW.js";
15
+
16
+ // ../node_modules/empathic/resolve.mjs
17
+ import { createRequire } from "node:module";
18
+ import { isAbsolute, join, resolve } from "node:path";
19
+ import { fileURLToPath } from "node:url";
20
+ function absolute(input, root) {
21
+ return isAbsolute(input) ? input : resolve(root || ".", input);
22
+ }
23
+ __name(absolute, "absolute");
24
+ function from(root, ident, silent) {
25
+ try {
26
+ let r = root instanceof URL || root.startsWith("file://") ? join(fileURLToPath(root), "noop.js") : join(absolute(root), "noop.js");
27
+ return createRequire(r).resolve(ident);
28
+ } catch (err) {
29
+ if (!silent) throw err;
30
+ }
31
+ }
32
+ __name(from, "from");
33
+
34
+ // ../node_modules/empathic/walk.mjs
35
+ import { dirname } from "node:path";
36
+ function up(base, options) {
37
+ let { last, cwd } = options || {};
38
+ let tmp = absolute(base, cwd);
39
+ let root = absolute(last || "/", cwd);
40
+ let prev, arr = [];
41
+ while (prev !== root) {
42
+ arr.push(tmp);
43
+ tmp = dirname(prev = tmp);
44
+ if (tmp === prev) break;
45
+ }
46
+ return arr;
47
+ }
48
+ __name(up, "up");
49
+
50
+ // ../node_modules/empathic/find.mjs
51
+ import { join as join2 } from "node:path";
52
+ import { existsSync, statSync } from "node:fs";
53
+ function up2(name, options) {
54
+ let dir, tmp;
55
+ let start = options && options.cwd || "";
56
+ for (dir of up(start, options)) {
57
+ tmp = join2(dir, name);
58
+ if (existsSync(tmp)) return tmp;
59
+ }
60
+ }
61
+ __name(up2, "up");
62
+ function any(names, options) {
63
+ let dir, start = options && options.cwd || "";
64
+ let j = 0, len = names.length, tmp;
65
+ for (dir of up(start, options)) {
66
+ for (j = 0; j < len; j++) {
67
+ tmp = join2(dir, names[j]);
68
+ if (existsSync(tmp)) return tmp;
69
+ }
70
+ }
71
+ }
72
+ __name(any, "any");
73
+
74
+ export {
75
+ from,
76
+ up,
77
+ up2,
78
+ any
79
+ };
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 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_6q9nmfaplv7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-BV4J7FF6.js";
14
+ } from "./chunk-P7YMEOXF.js";
15
15
  import {
16
16
  __name,
17
17
  __toESM
18
- } from "./chunk-XRAB2RZN.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_6q9nmfaplv7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 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_6q9nmfaplv7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-XRAB2RZN.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_6q9nmfaplv7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 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_6q9nmfaplv7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-PK6SVDYW.js";
14
+ } from "./chunk-VQN4WAIA.js";
15
15
  import {
16
16
  resolvePackageDir
17
- } from "./chunk-LRQFELIZ.js";
17
+ } from "./chunk-KU3JBNPY.js";
18
18
  import {
19
19
  require_prompts
20
- } from "./chunk-ICETGZAR.js";
20
+ } from "./chunk-VX5P3IYA.js";
21
21
  import {
22
22
  require_dist
23
- } from "./chunk-BV4J7FF6.js";
23
+ } from "./chunk-P7YMEOXF.js";
24
24
  import {
25
25
  require_picocolors
26
- } from "./chunk-7EGB7ALG.js";
26
+ } from "./chunk-P3TWEOO5.js";
27
27
  import {
28
28
  __name,
29
29
  __toESM
30
- } from "./chunk-XRAB2RZN.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_6q9nmfaplv7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 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_6q9nmfaplv7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-XRAB2RZN.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_6q9nmfaplv7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 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_6q9nmfaplv7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-XRAB2RZN.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_6q9nmfaplv7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 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_6q9nmfaplv7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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-XRAB2RZN.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_6q9nmfaplv7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 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_6q9nmfaplv7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.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_6q9nmfaplv7.createRequire(import.meta.url);
12
12
  import {
13
13
  dirname,
14
14
  join
15
- } from "./chunk-EVY6P65U.js";
15
+ } from "./chunk-4VDRH7SM.js";
16
16
  import {
17
17
  __name
18
- } from "./chunk-XRAB2RZN.js";
18
+ } from "./chunk-2VMDKLSW.js";
19
19
 
20
20
  // src/shared/utils/module.ts
21
21
  import { statSync } from "node:fs";