storybook 10.0.0-beta.0 → 10.0.0-beta.10

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 (126) hide show
  1. package/assets/server/openBrowser.applescript +94 -0
  2. package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
  3. package/dist/_browser-chunks/{WithTooltip-2E62HIBN.js → WithTooltip-SK46ZJ2J.js} +1 -1
  4. package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
  5. package/dist/_browser-chunks/{chunk-FWKO3E35.js → chunk-BOOOPFZF.js} +10 -3
  6. package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
  7. package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
  8. package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-HMIIJ6UD.js} +6 -6
  9. package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
  10. package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
  11. package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
  12. package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-PS3AOQI4.js} +48 -25
  13. package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
  14. package/dist/_browser-chunks/chunk-SHR3NNR3.js +5810 -0
  15. package/dist/_browser-chunks/{chunk-O5R5CGFA.js → chunk-TMDZCWME.js} +1 -2
  16. package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
  17. package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
  18. package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-R46XOLMC.js} +1 -1
  19. package/dist/_node-chunks/{builder-manager-OW6YGKXV.js → builder-manager-SJGIDEN6.js} +45 -155
  20. package/dist/_node-chunks/camelcase-VZHWABQV.js +18 -0
  21. package/dist/_node-chunks/{chunk-6JSVPEAU.js → chunk-6CZW7AGN.js} +7 -7
  22. package/dist/_node-chunks/{chunk-CD3IP6HA.js → chunk-6XT5OLNL.js} +12 -12
  23. package/dist/_node-chunks/{chunk-2H7LZ2SD.js → chunk-AHRH5RPR.js} +7 -7
  24. package/dist/_node-chunks/{chunk-5HLANIBM.js → chunk-AOH6ABSV.js} +7 -7
  25. package/dist/_node-chunks/chunk-C5V22GP7.js +79 -0
  26. package/dist/_node-chunks/{chunk-IBXERYDG.js → chunk-FIROF4DV.js} +7 -7
  27. package/dist/_node-chunks/{chunk-I3YCPGZJ.js → chunk-GUJVZUYI.js} +7 -7
  28. package/dist/_node-chunks/chunk-IHPLRRAR.js +4741 -0
  29. package/dist/_node-chunks/{chunk-7TISOZS6.js → chunk-JMXKCRWR.js} +30 -21
  30. package/dist/_node-chunks/{chunk-YWGNEBRO.js → chunk-JUMUXWEV.js} +162 -103
  31. package/dist/_node-chunks/{chunk-UIREEOC7.js → chunk-KGX33KXX.js} +7 -7
  32. package/dist/_node-chunks/{chunk-3QB3ZG6H.js → chunk-KLVABNEU.js} +7 -7
  33. package/dist/_node-chunks/{chunk-H5LTFJHQ.js → chunk-OL6DY6BT.js} +631 -752
  34. package/dist/_node-chunks/{chunk-X5GAZ3EW.js → chunk-ONJV3K2L.js} +399 -116
  35. package/dist/_node-chunks/{chunk-LKB7KRSV.js → chunk-PTHTD4RO.js} +223 -243
  36. package/dist/_node-chunks/{chunk-UHHZPSP7.js → chunk-QQ3Z5KGJ.js} +6 -6
  37. package/dist/_node-chunks/{chunk-MUD3GH3L.js → chunk-QRTDDTZJ.js} +9 -9
  38. package/dist/_node-chunks/chunk-R54K4KSM.js +1540 -0
  39. package/dist/_node-chunks/{chunk-IQAUGVYR.js → chunk-S2LZC6JK.js} +8 -8
  40. package/dist/_node-chunks/chunk-SFJFSPRT.js +62 -0
  41. package/dist/_node-chunks/{chunk-LH3BEEIR.js → chunk-SSN5PKIY.js} +6 -6
  42. package/dist/_node-chunks/{chunk-NOQITS3C.js → chunk-SXR2DITB.js} +7 -7
  43. package/dist/_node-chunks/{chunk-FWUE7SRE.js → chunk-TH5QVQRL.js} +7 -7
  44. package/dist/_node-chunks/chunk-U34NWAU2.js +18 -0
  45. package/dist/_node-chunks/{chunk-FBMMEEO4.js → chunk-UV3CZ3KS.js} +7 -7
  46. package/dist/_node-chunks/{chunk-NZGJJABJ.js → chunk-UVUGJDAI.js} +60 -102
  47. package/dist/_node-chunks/{chunk-GZUNYRFU.js → chunk-VOUNSD2E.js} +7 -7
  48. package/dist/_node-chunks/chunk-WFCPBKQJ.js +64656 -0
  49. package/dist/_node-chunks/{chunk-BFXER3XW.js → chunk-XHF3WWNP.js} +623 -750
  50. package/dist/_node-chunks/{chunk-ANEKBWDX.js → chunk-XU45KXNQ.js} +16 -25
  51. package/dist/_node-chunks/{camelcase-2K3EMR6G.js → chunk-YHO6XR7U.js} +9 -8
  52. package/dist/_node-chunks/{dist-465RSKRC.js → dist-IIC5PBL7.js} +9 -9
  53. package/dist/_node-chunks/{globby-LJ3MVB6M.js → globby-CJACC3HJ.js} +17 -13
  54. package/dist/_node-chunks/{lib-OW3DENXB.js → lib-ZY4TKSOR.js} +40 -16
  55. package/dist/_node-chunks/{mdx-N42X6CFJ-PYX2IFUO.js → mdx-N42X6CFJ-3XNW3DFO.js} +8 -8
  56. package/dist/_node-chunks/{p-limit-X4OG45RB.js → p-limit-R2OFT5HE.js} +76 -10
  57. package/dist/_node-chunks/{plugin-ALTIQMDE.js → plugin-5XD5R2KD.js} +10 -10
  58. package/dist/_node-chunks/{plugin-GE36R32R.js → plugin-WAWVQMVR.js} +10 -12
  59. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-NLCAF7S6.js → webpack-inject-mocker-runtime-plugin-SCRGJLIS.js} +1307 -847
  60. package/dist/_node-chunks/{webpack-mock-plugin-BRYODMCC.js → webpack-mock-plugin-3VAXEGG2.js} +9 -11
  61. package/dist/babel/index.d.ts +1 -1
  62. package/dist/babel/index.js +11 -12
  63. package/dist/bin/core.js +638 -187
  64. package/dist/bin/dispatcher.js +11 -11
  65. package/dist/bin/loader.js +8 -8
  66. package/dist/cli/index.d.ts +62 -75
  67. package/dist/cli/index.js +66 -56
  68. package/dist/common/index.d.ts +3 -1
  69. package/dist/common/index.js +22 -22
  70. package/dist/components/index.d.ts +234 -2
  71. package/dist/components/index.js +74 -5741
  72. package/dist/core-events/index.d.ts +18 -2
  73. package/dist/core-events/index.js +7 -1
  74. package/dist/core-server/index.d.ts +540 -39
  75. package/dist/core-server/index.js +4647 -4182
  76. package/dist/core-server/presets/common-manager.js +1570 -1272
  77. package/dist/core-server/presets/common-override-preset.js +9 -9
  78. package/dist/core-server/presets/common-preset.js +691 -38
  79. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -11
  80. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -12
  81. package/dist/csf/index.d.ts +9 -4
  82. package/dist/csf/index.js +50 -15
  83. package/dist/csf-tools/index.d.ts +47 -6
  84. package/dist/csf-tools/index.js +9 -9
  85. package/dist/docs-tools/index.js +4 -4
  86. package/dist/instrumenter/index.js +1 -1
  87. package/dist/manager/globals-runtime.js +9233 -18113
  88. package/dist/manager/globals.d.ts +0 -4
  89. package/dist/manager/globals.js +1 -6
  90. package/dist/manager/runtime.js +13396 -11518
  91. package/dist/manager-api/index.d.ts +540 -32
  92. package/dist/manager-api/index.js +364 -90
  93. package/dist/manager-errors.d.ts +527 -0
  94. package/dist/node-logger/index.d.ts +1 -1
  95. package/dist/node-logger/index.js +1136 -662
  96. package/dist/preview/globals.js +1 -1
  97. package/dist/preview/runtime.js +12103 -21579
  98. package/dist/preview-api/index.d.ts +3 -3
  99. package/dist/preview-api/index.js +10 -10
  100. package/dist/preview-errors.d.ts +527 -0
  101. package/dist/router/index.d.ts +668 -10
  102. package/dist/router/index.js +2 -2
  103. package/dist/server-errors.d.ts +527 -0
  104. package/dist/server-errors.js +10 -10
  105. package/dist/telemetry/index.d.ts +1 -1
  106. package/dist/telemetry/index.js +23 -25
  107. package/dist/test/index.js +1874 -4024
  108. package/dist/theming/index.d.ts +2 -2
  109. package/dist/theming/index.js +6 -6
  110. package/dist/types/index.d.ts +553 -16
  111. package/dist/viewport/index.d.ts +36 -4
  112. package/dist/viewport/index.js +1 -1
  113. package/package.json +9 -46
  114. package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
  115. package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
  116. package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
  117. package/dist/_node-chunks/chunk-27W2Z6VL.js +0 -28502
  118. package/dist/_node-chunks/chunk-G46DWX7Z.js +0 -266
  119. package/dist/_node-chunks/chunk-GZZDIJIB.js +0 -80
  120. package/dist/_node-chunks/chunk-JDKH3XYB.js +0 -9845
  121. package/dist/_node-chunks/chunk-R7RKO2DC.js +0 -35783
  122. package/dist/_node-chunks/chunk-T23YQHYB.js +0 -62
  123. package/dist/_node-chunks/chunk-VKKLKNFC.js +0 -2377
  124. package/dist/_node-chunks/chunk-W6GKFQ7F.js +0 -87
  125. package/dist/_node-chunks/chunk-YUYBO6S7.js +0 -18
  126. package/dist/_node-chunks/default-browser-id-Z6WQ7DZA.js +0 -1719
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_qlimw951jq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_qlimw951jq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_qlimw951jq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_qlimw951jq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_qlimw951jq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_qlimw951jq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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-LH3BEEIR.js";
16
+ } from "./chunk-SSN5PKIY.js";
17
17
 
18
18
  // ../node_modules/balanced-match/index.js
19
19
  var require_balanced_match = __commonJS({
@@ -161,7 +161,7 @@ var require_brace_expansion = __commonJS({
161
161
  var isSequence = isNumericSequence || isAlphaSequence;
162
162
  var isOptions = m.body.indexOf(",") >= 0;
163
163
  if (!isSequence && !isOptions) {
164
- if (m.post.match(/,.*\}/)) {
164
+ if (m.post.match(/,(?!,).*\}/)) {
165
165
  str = m.pre + "{" + m.body + escClose + m.post;
166
166
  return expand2(str);
167
167
  }
@@ -0,0 +1,62 @@
1
+ import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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.10",
16
+ "@storybook/addon-docs": "10.0.0-beta.10",
17
+ "@storybook/addon-jest": "10.0.0-beta.10",
18
+ "@storybook/addon-links": "10.0.0-beta.10",
19
+ "@storybook/addon-onboarding": "10.0.0-beta.10",
20
+ "storybook-addon-pseudo-states": "10.0.0-beta.10",
21
+ "@storybook/addon-themes": "10.0.0-beta.10",
22
+ "@storybook/addon-vitest": "10.0.0-beta.10",
23
+ "@storybook/builder-vite": "10.0.0-beta.10",
24
+ "@storybook/builder-webpack5": "10.0.0-beta.10",
25
+ storybook: "10.0.0-beta.10",
26
+ "@storybook/angular": "10.0.0-beta.10",
27
+ "@storybook/ember": "10.0.0-beta.10",
28
+ "@storybook/html-vite": "10.0.0-beta.10",
29
+ "@storybook/nextjs": "10.0.0-beta.10",
30
+ "@storybook/nextjs-vite": "10.0.0-beta.10",
31
+ "@storybook/preact-vite": "10.0.0-beta.10",
32
+ "@storybook/react-native-web-vite": "10.0.0-beta.10",
33
+ "@storybook/react-vite": "10.0.0-beta.10",
34
+ "@storybook/react-webpack5": "10.0.0-beta.10",
35
+ "@storybook/server-webpack5": "10.0.0-beta.10",
36
+ "@storybook/svelte-vite": "10.0.0-beta.10",
37
+ "@storybook/sveltekit": "10.0.0-beta.10",
38
+ "@storybook/vue3-vite": "10.0.0-beta.10",
39
+ "@storybook/web-components-vite": "10.0.0-beta.10",
40
+ sb: "10.0.0-beta.10",
41
+ "@storybook/cli": "10.0.0-beta.10",
42
+ "@storybook/codemod": "10.0.0-beta.10",
43
+ "@storybook/core-webpack": "10.0.0-beta.10",
44
+ "create-storybook": "10.0.0-beta.10",
45
+ "@storybook/csf-plugin": "10.0.0-beta.10",
46
+ "eslint-plugin-storybook": "10.0.0-beta.10",
47
+ "@storybook/react-dom-shim": "10.0.0-beta.10",
48
+ "@storybook/preset-create-react-app": "10.0.0-beta.10",
49
+ "@storybook/preset-react-webpack": "10.0.0-beta.10",
50
+ "@storybook/preset-server-webpack": "10.0.0-beta.10",
51
+ "@storybook/html": "10.0.0-beta.10",
52
+ "@storybook/preact": "10.0.0-beta.10",
53
+ "@storybook/react": "10.0.0-beta.10",
54
+ "@storybook/server": "10.0.0-beta.10",
55
+ "@storybook/svelte": "10.0.0-beta.10",
56
+ "@storybook/vue3": "10.0.0-beta.10",
57
+ "@storybook/web-components": "10.0.0-beta.10"
58
+ };
59
+
60
+ export {
61
+ versions_default
62
+ };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_qlimw951jq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_qlimw951jq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_qlimw951jq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_qlimw951jq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_qlimw951jq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_qlimw951jq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_qlimw951jq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_qlimw951jq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_qlimw951jq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_qlimw951jq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_qlimw951jq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_qlimw951jq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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-LH3BEEIR.js";
16
+ } from "./chunk-SSN5PKIY.js";
17
17
 
18
18
  // ../node_modules/totalist/sync/index.js
19
19
  var require_sync = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_qlimw951jq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_qlimw951jq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_qlimw951jq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_qlimw951jq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_qlimw951jq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_qlimw951jq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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-LH3BEEIR.js";
16
+ } from "./chunk-SSN5PKIY.js";
17
17
 
18
18
  // ../node_modules/picomatch/lib/constants.js
19
19
  var require_constants = __commonJS({
@@ -0,0 +1,18 @@
1
+ import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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.0.0-beta.10";
15
+
16
+ export {
17
+ version
18
+ };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_qlimw951jq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_qlimw951jq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_qlimw951jq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_qlimw951jq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_qlimw951jq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_qlimw951jq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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-LH3BEEIR.js";
16
+ } from "./chunk-SSN5PKIY.js";
17
17
 
18
18
  // ../node_modules/kleur/index.js
19
19
  var require_kleur = __commonJS({
@@ -1,48 +1,43 @@
1
- import CJS_COMPAT_NODE_URL_qlimw951jq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_qlimw951jq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_qlimw951jq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_qlimw951jq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_qlimw951jq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_qlimw951jq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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 "./chunk-YUYBO6S7.js";
14
+ } from "./chunk-U34NWAU2.js";
15
15
  import {
16
16
  createFileSystemCache,
17
- resolvePathInStorybookCache
18
- } from "./chunk-H5LTFJHQ.js";
17
+ resolvePathInStorybookCache,
18
+ up
19
+ } from "./chunk-OL6DY6BT.js";
19
20
  import {
20
21
  globalSettings
21
- } from "./chunk-LKB7KRSV.js";
22
+ } from "./chunk-PTHTD4RO.js";
22
23
  import {
23
24
  execaCommand,
24
25
  getProjectRoot
25
- } from "./chunk-VKKLKNFC.js";
26
- import {
27
- findUp
28
- } from "./chunk-G46DWX7Z.js";
26
+ } from "./chunk-IHPLRRAR.js";
29
27
  import {
30
28
  resolvePackageDir
31
- } from "./chunk-GZZDIJIB.js";
32
- import {
33
- join
34
- } from "./chunk-5HLANIBM.js";
29
+ } from "./chunk-R54K4KSM.js";
35
30
  import {
36
31
  slash
37
- } from "./chunk-3QB3ZG6H.js";
32
+ } from "./chunk-KLVABNEU.js";
38
33
  import {
39
34
  require_picocolors
40
- } from "./chunk-IBXERYDG.js";
35
+ } from "./chunk-FIROF4DV.js";
41
36
  import {
42
37
  __commonJS,
43
38
  __name,
44
39
  __toESM
45
- } from "./chunk-LH3BEEIR.js";
40
+ } from "./chunk-SSN5PKIY.js";
46
41
 
47
42
  // ../node_modules/fetch-retry/index.js
48
43
  var require_fetch_retry = __commonJS({
@@ -96,19 +91,19 @@ var require_fetch_retry = __commonJS({
96
91
  throw new ArgumentError("retryOn property expects an array or function");
97
92
  }
98
93
  }
99
- return new Promise(function(resolve3, reject) {
94
+ return new Promise(function(resolve, reject) {
100
95
  var wrappedFetch = /* @__PURE__ */ __name(function(attempt) {
101
96
  var _input = typeof Request !== "undefined" && input instanceof Request ? input.clone() : input;
102
97
  fetch2(_input, init).then(function(response) {
103
98
  if (Array.isArray(retryOn) && retryOn.indexOf(response.status) === -1) {
104
- resolve3(response);
99
+ resolve(response);
105
100
  } else if (typeof retryOn === "function") {
106
101
  try {
107
102
  return Promise.resolve(retryOn(attempt, null, response)).then(function(retryOnResponse) {
108
103
  if (retryOnResponse) {
109
104
  retry2(attempt, null, response);
110
105
  } else {
111
- resolve3(response);
106
+ resolve(response);
112
107
  }
113
108
  }).catch(reject);
114
109
  } catch (error) {
@@ -118,7 +113,7 @@ var require_fetch_retry = __commonJS({
118
113
  if (attempt < retries) {
119
114
  retry2(attempt, null, response);
120
115
  } else {
121
- resolve3(response);
116
+ resolve(response);
122
117
  }
123
118
  }
124
119
  }).catch(function(error) {
@@ -235,7 +230,8 @@ function sanitizeError(error, pathSeparator = path.sep) {
235
230
  __name(sanitizeError, "sanitizeError");
236
231
 
237
232
  // src/telemetry/storybook-metadata.ts
238
- import { dirname as dirname2 } from "node:path";
233
+ import { readFile } from "node:fs/promises";
234
+ import { dirname } from "node:path";
239
235
  import {
240
236
  getStorybookConfiguration,
241
237
  getStorybookInfo,
@@ -245,57 +241,6 @@ import {
245
241
  } from "storybook/internal/common";
246
242
  import { readConfig } from "storybook/internal/csf-tools";
247
243
 
248
- // ../node_modules/walk-up-path/dist/mjs/index.js
249
- import { dirname, resolve } from "path";
250
- var walkUp = /* @__PURE__ */ __name(function* (path3) {
251
- for (path3 = resolve(path3); path3; ) {
252
- yield path3;
253
- const pp = dirname(path3);
254
- if (pp === path3) {
255
- break;
256
- } else {
257
- path3 = pp;
258
- }
259
- }
260
- }, "walkUp");
261
-
262
- // ../node_modules/fd-package-json/dist/esm/main.js
263
- import { resolve as resolve2 } from "node:path";
264
- import { stat, readFile } from "node:fs/promises";
265
- async function fileExists(path3) {
266
- try {
267
- const stats = await stat(path3);
268
- return stats.isFile();
269
- } catch (_err) {
270
- return false;
271
- }
272
- }
273
- __name(fileExists, "fileExists");
274
- async function findPackagePath(cwd) {
275
- for (const path3 of walkUp(cwd)) {
276
- const packagePath = resolve2(path3, "package.json");
277
- const hasPackageJson = await fileExists(packagePath);
278
- if (hasPackageJson) {
279
- return packagePath;
280
- }
281
- }
282
- return null;
283
- }
284
- __name(findPackagePath, "findPackagePath");
285
- async function findPackage(cwd) {
286
- const packagePath = await findPackagePath(cwd);
287
- if (!packagePath) {
288
- return null;
289
- }
290
- try {
291
- const source = await readFile(packagePath, { encoding: "utf8" });
292
- return JSON.parse(source);
293
- } catch (_err) {
294
- return null;
295
- }
296
- }
297
- __name(findPackage, "findPackage");
298
-
299
244
  // src/telemetry/get-application-file-count.ts
300
245
  import { sep } from "node:path";
301
246
 
@@ -396,14 +341,11 @@ var getActualPackageVersion = /* @__PURE__ */ __name(async (packageName) => {
396
341
  }, "getActualPackageVersion");
397
342
  var getActualPackageJson = /* @__PURE__ */ __name(async (packageName) => {
398
343
  try {
399
- let resolvedPackageJsonPath = await findUp("package.json", {
344
+ let resolvedPackageJsonPath = up({
400
345
  cwd: fileURLToPath(import.meta.resolve(packageName, process.cwd()))
401
346
  });
402
347
  if (!resolvedPackageJsonPath) {
403
- resolvedPackageJsonPath = import.meta.resolve(
404
- join(packageName, "package.json"),
405
- process.cwd()
406
- );
348
+ resolvedPackageJsonPath = import.meta.resolve(`${packageName}/package.json`, process.cwd());
407
349
  }
408
350
  const { default: packageJson } = await import(pathToFileURL(resolvedPackageJsonPath).href, {
409
351
  with: { type: "json" }
@@ -505,7 +447,7 @@ __name(getHasRouterPackage, "getHasRouterPackage");
505
447
 
506
448
  // src/telemetry/get-monorepo-type.ts
507
449
  import { existsSync, readFileSync } from "node:fs";
508
- import { join as join2 } from "node:path";
450
+ import { join } from "node:path";
509
451
  import { getProjectRoot as getProjectRoot2 } from "storybook/internal/common";
510
452
  var monorepoConfigs = {
511
453
  Nx: "nx.json",
@@ -517,17 +459,17 @@ var monorepoConfigs = {
517
459
  var getMonorepoType = /* @__PURE__ */ __name(() => {
518
460
  const keys = Object.keys(monorepoConfigs);
519
461
  const monorepoType = keys.find((monorepo) => {
520
- const configFile = join2(getProjectRoot2(), monorepoConfigs[monorepo]);
462
+ const configFile = join(getProjectRoot2(), monorepoConfigs[monorepo]);
521
463
  return existsSync(configFile);
522
464
  });
523
465
  if (monorepoType) {
524
466
  return monorepoType;
525
467
  }
526
- if (!existsSync(join2(getProjectRoot2(), "package.json"))) {
468
+ if (!existsSync(join(getProjectRoot2(), "package.json"))) {
527
469
  return void 0;
528
470
  }
529
471
  const packageJson = JSON.parse(
530
- readFileSync(join2(getProjectRoot2(), "package.json"), { encoding: "utf8" })
472
+ readFileSync(join(getProjectRoot2(), "package.json"), { encoding: "utf8" })
531
473
  );
532
474
  if (packageJson?.workspaces) {
533
475
  return "Workspaces";
@@ -536,16 +478,16 @@ var getMonorepoType = /* @__PURE__ */ __name(() => {
536
478
  }, "getMonorepoType");
537
479
 
538
480
  // ../node_modules/package-manager-detector/dist/commands.mjs
539
- function npmRun(agent) {
481
+ function dashDashArg(agent, agentCommand) {
540
482
  return (args) => {
541
483
  if (args.length > 1) {
542
- return [agent, "run", args[0], "--", ...args.slice(1)];
484
+ return [agent, agentCommand, args[0], "--", ...args.slice(1)];
543
485
  } else {
544
- return [agent, "run", args[0]];
486
+ return [agent, agentCommand, args[0]];
545
487
  }
546
488
  };
547
489
  }
548
- __name(npmRun, "npmRun");
490
+ __name(dashDashArg, "dashDashArg");
549
491
  function denoExecute() {
550
492
  return (args) => {
551
493
  return ["deno", "run", `npm:${args[0]}`, ...args.slice(1)];
@@ -554,7 +496,7 @@ function denoExecute() {
554
496
  __name(denoExecute, "denoExecute");
555
497
  var npm = {
556
498
  "agent": ["npm", 0],
557
- "run": npmRun("npm"),
499
+ "run": dashDashArg("npm", "run"),
558
500
  "install": ["npm", "i", 0],
559
501
  "frozen": ["npm", "ci", 0],
560
502
  "global": ["npm", "i", "-g", 0],
@@ -576,7 +518,7 @@ var yarn = {
576
518
  "upgrade": ["yarn", "upgrade", 0],
577
519
  "upgrade-interactive": ["yarn", "upgrade-interactive", 0],
578
520
  "execute": ["npx", 0],
579
- "execute-local": ["yarn", "exec", 0],
521
+ "execute-local": dashDashArg("yarn", "exec"),
580
522
  "uninstall": ["yarn", "remove", 0],
581
523
  "global_uninstall": ["yarn", "global", "remove", 0]
582
524
  };
@@ -641,7 +583,7 @@ var COMMANDS = {
641
583
  // pnpm v6.x or below
642
584
  "pnpm@6": {
643
585
  ...pnpm,
644
- run: npmRun("pnpm")
586
+ run: dashDashArg("pnpm", "run")
645
587
  },
646
588
  "bun": bun,
647
589
  "deno": deno
@@ -689,8 +631,8 @@ import path2 from "node:path";
689
631
  import process2 from "node:process";
690
632
  async function pathExists(path22, type) {
691
633
  try {
692
- const stat2 = await fs.stat(path22);
693
- return type === "file" ? stat2.isFile() : stat2.isDirectory();
634
+ const stat = await fs.stat(path22);
635
+ return type === "file" ? stat.isFile() : stat.isDirectory();
694
636
  } catch {
695
637
  return false;
696
638
  }
@@ -710,7 +652,18 @@ async function parsePackageJson(filepath, onUnknown) {
710
652
  }
711
653
  __name(parsePackageJson, "parsePackageJson");
712
654
  async function detect(options = {}) {
713
- const { cwd, strategies = ["lockfile", "packageManager-field", "devEngines-field"], onUnknown } = options;
655
+ const {
656
+ cwd,
657
+ strategies = ["lockfile", "packageManager-field", "devEngines-field"],
658
+ onUnknown
659
+ } = options;
660
+ let stopDir;
661
+ if (typeof options.stopDir === "string") {
662
+ const resolved = path2.resolve(options.stopDir);
663
+ stopDir = /* @__PURE__ */ __name((dir) => dir === resolved, "stopDir");
664
+ } else {
665
+ stopDir = options.stopDir;
666
+ }
714
667
  for (const directory of lookup(cwd)) {
715
668
  for (const strategy of strategies) {
716
669
  switch (strategy) {
@@ -747,6 +700,8 @@ async function detect(options = {}) {
747
700
  }
748
701
  }
749
702
  }
703
+ if (stopDir?.(directory))
704
+ break;
750
705
  }
751
706
  return null;
752
707
  }
@@ -856,7 +811,10 @@ var metaFrameworks = {
856
811
  "@nuxtjs/storybook": "nuxt",
857
812
  "@nrwl/storybook": "nx",
858
813
  "@vue/cli-service": "vue-cli",
859
- "@sveltejs/kit": "sveltekit"
814
+ "@sveltejs/kit": "sveltekit",
815
+ "@tanstack/react-router": "tanstack-react",
816
+ "@react-router/dev": "react-router",
817
+ "@remix-run/dev": "remix"
860
818
  };
861
819
  var sanitizeAddonName = /* @__PURE__ */ __name((name) => {
862
820
  return cleanPaths(name).replace(/\/dist\/.*/, "").replace(/\.[mc]?[tj]?s[x]?$/, "").replace(/\/register$/, "").replace(/\/manager$/, "").replace(/\/preset$/, "");
@@ -1008,7 +966,7 @@ var computeStorybookMetadata = /* @__PURE__ */ __name(async ({
1008
966
  } catch (e) {
1009
967
  }
1010
968
  const portableStoriesFileCount = await getPortableStoriesFileCount();
1011
- const applicationFileCount = await getApplicationFileCount(dirname2(packageJsonPath));
969
+ const applicationFileCount = await getApplicationFileCount(dirname(packageJsonPath));
1012
970
  return {
1013
971
  ...metadata,
1014
972
  ...frameworkInfo,
@@ -1023,11 +981,11 @@ var computeStorybookMetadata = /* @__PURE__ */ __name(async ({
1023
981
  };
1024
982
  }, "computeStorybookMetadata");
1025
983
  async function getPackageJsonDetails() {
1026
- const packageJsonPath = await findPackagePath(process.cwd());
984
+ const packageJsonPath = up();
1027
985
  if (packageJsonPath) {
1028
986
  return {
1029
987
  packageJsonPath,
1030
- packageJson: await findPackage(packageJsonPath) || {}
988
+ packageJson: JSON.parse(await readFile(packageJsonPath, "utf8"))
1031
989
  };
1032
990
  }
1033
991
  return {
@@ -1061,7 +1019,7 @@ var getStorybookMetadata = /* @__PURE__ */ __name(async (_configDir) => {
1061
1019
  var import_fetch_retry = __toESM(require_fetch_retry(), 1);
1062
1020
  import { readFileSync as readFileSync2 } from "node:fs";
1063
1021
  import * as os from "node:os";
1064
- import { join as join3 } from "node:path";
1022
+ import { join as join2 } from "node:path";
1065
1023
  import { isCI as isCI2 } from "storybook/internal/common";
1066
1024
 
1067
1025
  // ../node_modules/nanoid/index.js
@@ -1244,7 +1202,7 @@ var prepareRequest = /* @__PURE__ */ __name(async (data, context, options) => {
1244
1202
  }, "prepareRequest");
1245
1203
  function getVersionNumber() {
1246
1204
  try {
1247
- return JSON.parse(readFileSync2(join3(resolvePackageDir("storybook"), "package.json"), "utf8")).version;
1205
+ return JSON.parse(readFileSync2(join2(resolvePackageDir("storybook"), "package.json"), "utf8")).version;
1248
1206
  } catch (e) {
1249
1207
  return version;
1250
1208
  }
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_qlimw951jq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_qlimw951jq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_qlimw951jq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_qlimw951jq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_qlimw951jq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_qlimw951jq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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-LH3BEEIR.js";
16
+ } from "./chunk-SSN5PKIY.js";
17
17
 
18
18
  // ../node_modules/ms/index.js
19
19
  var require_ms = __commonJS({