storybook 10.0.0-beta.4 → 10.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) 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-ERFLZL6W.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-MZNYTCNT.js → chunk-AM4PZYVQ.js} +10 -63
  6. package/dist/_browser-chunks/{chunk-EOILZP2R.js → chunk-BOOOPFZF.js} +7 -2
  7. package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
  8. package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
  9. package/dist/_browser-chunks/chunk-GJ67EE65.js +67 -0
  10. package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
  11. package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
  12. package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
  13. package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
  14. package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
  15. package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
  16. package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-YQV3EGQ5.js} +5 -5
  17. package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-RJW7FE3A.js} +3 -2
  18. package/dist/_node-chunks/{builder-manager-IKHPPPFE.js → builder-manager-V33CQT2M.js} +26 -151
  19. package/dist/_node-chunks/camelcase-BZ55OCHI.js +18 -0
  20. package/dist/_node-chunks/{chunk-5OILJTZE.js → chunk-2DMFI367.js} +7 -7
  21. package/dist/_node-chunks/{chunk-DCHFG5TX.js → chunk-4TOI4VSK.js} +7 -7
  22. package/dist/_node-chunks/{chunk-XA4TAMUS.js → chunk-55VWKF63.js} +710 -935
  23. package/dist/_node-chunks/{chunk-N3GFXZDP.js → chunk-5IEY46LQ.js} +7 -7
  24. package/dist/_node-chunks/{chunk-YRPXGWKW.js → chunk-6PTV7XGR.js} +8 -8
  25. package/dist/_node-chunks/{chunk-4FMOVB65.js → chunk-7NJGTQ3W.js} +223 -243
  26. package/dist/_node-chunks/{chunk-4VGW2SQA.js → chunk-7WH7AGOR.js} +7 -7
  27. package/dist/_node-chunks/{camelcase-O2O7JODG.js → chunk-A7CUP23N.js} +9 -8
  28. package/dist/_node-chunks/{chunk-XT6O5CVI.js → chunk-B3AMFGAL.js} +30 -21
  29. package/dist/_node-chunks/{chunk-IB5AEYPX.js → chunk-BNOZ3EKF.js} +7 -7
  30. package/dist/_node-chunks/{chunk-TTQRDWDJ.js → chunk-DC7OWBHB.js} +12 -12
  31. package/dist/_node-chunks/{chunk-3J7DQ6TI.js → chunk-E6TLN2J2.js} +7 -7
  32. package/dist/_node-chunks/{chunk-JP4LEAXM.js → chunk-EAOPWIKA.js} +623 -750
  33. package/dist/_node-chunks/{chunk-YJHXEN7U.js → chunk-EY5PTUZL.js} +583 -180
  34. package/dist/_node-chunks/{chunk-JSSBBVU5.js → chunk-F3PO67U3.js} +7 -7
  35. package/dist/_node-chunks/chunk-FDDJHDCE.js +62 -0
  36. package/dist/_node-chunks/{chunk-6COBULLV.js → chunk-HEBHWRWL.js} +162 -103
  37. package/dist/_node-chunks/{chunk-USDZSU5L.js → chunk-HPFXREVG.js} +7 -7
  38. package/dist/_node-chunks/{chunk-JECCFKKM.js → chunk-IINJT47N.js} +7 -7
  39. package/dist/_node-chunks/{chunk-OL2HWCBH.js → chunk-JNHUDBJL.js} +7 -7
  40. package/dist/_node-chunks/{chunk-NF3GXIEK.js → chunk-JOXYGIZK.js} +9 -9
  41. package/dist/_node-chunks/{chunk-NOSGJ5PL.js → chunk-MLBTKECD.js} +7 -7
  42. package/dist/_node-chunks/{chunk-TYGVOW7L.js → chunk-NJXBURX7.js} +8 -8
  43. package/dist/_node-chunks/{chunk-AXFNB3AN.js → chunk-NKZ4UPPV.js} +7 -7
  44. package/dist/_node-chunks/{chunk-HAVE6SGK.js → chunk-NUVGSFQI.js} +7 -7
  45. package/dist/_node-chunks/chunk-R5DIBOM6.js +18 -0
  46. package/dist/_node-chunks/{chunk-AC3BNULF.js → chunk-RIPA4LFD.js} +22 -22
  47. package/dist/_node-chunks/{chunk-TBAIXCHN.js → chunk-TJIMCNYJ.js} +8 -8
  48. package/dist/_node-chunks/{chunk-SF2IETZ2.js → chunk-UYKQJMQY.js} +36 -23
  49. package/dist/_node-chunks/{chunk-7IIAUEWB.js → chunk-VQH4ZFTS.js} +8 -8
  50. package/dist/_node-chunks/{chunk-FWFQ2GU7.js → chunk-VSC6LSCQ.js} +6 -6
  51. package/dist/_node-chunks/{chunk-MOO2Y4GI.js → chunk-XZTBG2TG.js} +6 -6
  52. package/dist/_node-chunks/{dist-BMKSKYDI.js → dist-CGGAYWME.js} +9 -9
  53. package/dist/_node-chunks/{globby-DASPUXWI.js → globby-3IFB7BJC.js} +17 -13
  54. package/dist/_node-chunks/{lib-L6BIH4EV.js → lib-IT6OBSID.js} +36 -12
  55. package/dist/_node-chunks/{mdx-N42X6CFJ-2COTUDSL.js → mdx-N42X6CFJ-WM36SSZ6.js} +8 -8
  56. package/dist/_node-chunks/{p-limit-HVR3I7TJ.js → p-limit-3V5XIKA7.js} +7 -7
  57. package/dist/_node-chunks/{plugin-FZOHPRK7.js → plugin-3YREMMJJ.js} +10 -10
  58. package/dist/_node-chunks/{plugin-2XPSFYWZ.js → plugin-GJUBUKCT.js} +10 -10
  59. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-FGQM2EPC.js → webpack-inject-mocker-runtime-plugin-DCJQFJQ5.js} +1307 -847
  60. package/dist/_node-chunks/{webpack-mock-plugin-4HOAIYSX.js → webpack-mock-plugin-XJNFAHBI.js} +9 -9
  61. package/dist/babel/index.d.ts +1 -1
  62. package/dist/babel/index.js +11 -11
  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 +61 -74
  67. package/dist/cli/index.js +56 -44
  68. package/dist/common/index.js +21 -21
  69. package/dist/components/index.js +27 -23
  70. package/dist/core-events/index.d.ts +18 -2
  71. package/dist/core-events/index.js +7 -1
  72. package/dist/core-server/index.js +4545 -4115
  73. package/dist/core-server/presets/common-manager.js +507 -747
  74. package/dist/core-server/presets/common-override-preset.js +9 -9
  75. package/dist/core-server/presets/common-preset.js +691 -29
  76. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  77. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  78. package/dist/csf/index.js +6 -6
  79. package/dist/csf-tools/index.js +9 -9
  80. package/dist/docs-tools/index.js +4 -4
  81. package/dist/instrumenter/index.js +1 -1
  82. package/dist/manager/globals-runtime.js +9164 -18083
  83. package/dist/manager/globals.d.ts +0 -4
  84. package/dist/manager/globals.js +1 -6
  85. package/dist/manager/runtime.js +12967 -11396
  86. package/dist/manager-api/index.d.ts +2 -0
  87. package/dist/manager-api/index.js +303 -64
  88. package/dist/node-logger/index.d.ts +1 -1
  89. package/dist/node-logger/index.js +1136 -661
  90. package/dist/preview/runtime.js +12068 -21585
  91. package/dist/preview-api/index.d.ts +68 -67
  92. package/dist/preview-api/index.js +6 -6
  93. package/dist/router/index.js +2 -2
  94. package/dist/server-errors.js +10 -10
  95. package/dist/telemetry/index.d.ts +1 -1
  96. package/dist/telemetry/index.js +24 -24
  97. package/dist/test/index.js +1872 -4023
  98. package/dist/theming/index.d.ts +2 -2
  99. package/dist/theming/index.js +6 -6
  100. package/dist/types/index.d.ts +4 -0
  101. package/package.json +7 -6
  102. package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
  103. package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
  104. package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
  105. package/dist/_node-chunks/chunk-CHJLO2LV.js +0 -62
  106. package/dist/_node-chunks/chunk-MNG223PY.js +0 -18
  107. package/dist/_node-chunks/default-browser-id-J4OIAAJ5.js +0 -1719
@@ -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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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_bdftjtsviyb.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __name
15
- } from "./chunk-MOO2Y4GI.js";
15
+ } from "./chunk-XZTBG2TG.js";
16
16
 
17
17
  // ../node_modules/ts-dedent/dist/index.js
18
18
  var require_dist = __commonJS({
@@ -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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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-MOO2Y4GI.js";
16
+ } from "./chunk-XZTBG2TG.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
  }
@@ -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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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-XZTBG2TG.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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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-XZTBG2TG.js";
15
15
 
16
16
  // ../node_modules/pretty-hrtime/index.js
17
17
  var require_pretty_hrtime = __commonJS({
@@ -0,0 +1,18 @@
1
+ import CJS_COMPAT_NODE_URL_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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.6";
15
+
16
+ export {
17
+ version
18
+ };
@@ -1,23 +1,23 @@
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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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-JECCFKKM.js";
14
+ } from "./chunk-IINJT47N.js";
15
15
  import {
16
16
  resolveModulePath
17
- } from "./chunk-5OILJTZE.js";
17
+ } from "./chunk-2DMFI367.js";
18
18
  import {
19
19
  versions_default
20
- } from "./chunk-CHJLO2LV.js";
20
+ } from "./chunk-FDDJHDCE.js";
21
21
  import {
22
22
  BUN_LOCKFILE,
23
23
  BUN_LOCKFILE_BINARY,
@@ -30,41 +30,41 @@ import {
30
30
  getProjectRoot,
31
31
  normalizeStoryPath,
32
32
  require_cross_spawn
33
- } from "./chunk-XA4TAMUS.js";
33
+ } from "./chunk-55VWKF63.js";
34
34
  import {
35
35
  any,
36
36
  from,
37
37
  up2 as up
38
- } from "./chunk-JSSBBVU5.js";
38
+ } from "./chunk-F3PO67U3.js";
39
39
  import {
40
40
  invariant
41
- } from "./chunk-USDZSU5L.js";
41
+ } from "./chunk-HPFXREVG.js";
42
42
  import {
43
43
  importModule,
44
44
  resolvePackageDir,
45
45
  safeResolveModule
46
- } from "./chunk-TBAIXCHN.js";
46
+ } from "./chunk-TJIMCNYJ.js";
47
47
  import {
48
48
  join,
49
49
  parse,
50
50
  resolve
51
- } from "./chunk-4VGW2SQA.js";
51
+ } from "./chunk-7WH7AGOR.js";
52
52
  import {
53
53
  require_prompts
54
- } from "./chunk-3J7DQ6TI.js";
54
+ } from "./chunk-E6TLN2J2.js";
55
55
  import {
56
56
  glob,
57
57
  globSync
58
- } from "./chunk-TYGVOW7L.js";
58
+ } from "./chunk-NJXBURX7.js";
59
59
  import {
60
60
  slash
61
- } from "./chunk-OL2HWCBH.js";
61
+ } from "./chunk-JNHUDBJL.js";
62
62
  import {
63
63
  require_dist
64
- } from "./chunk-NOSGJ5PL.js";
64
+ } from "./chunk-MLBTKECD.js";
65
65
  import {
66
66
  require_picocolors
67
- } from "./chunk-N3GFXZDP.js";
67
+ } from "./chunk-5IEY46LQ.js";
68
68
  import {
69
69
  __commonJS,
70
70
  __esm,
@@ -73,7 +73,7 @@ import {
73
73
  __require,
74
74
  __toCommonJS,
75
75
  __toESM
76
- } from "./chunk-MOO2Y4GI.js";
76
+ } from "./chunk-XZTBG2TG.js";
77
77
 
78
78
  // ../node_modules/@yarnpkg/fslib/node_modules/tslib/tslib.es6.js
79
79
  var tslib_es6_exports = {};
@@ -14127,7 +14127,7 @@ async function scanAndTransformFiles({
14127
14127
  initial: defaultGlob
14128
14128
  });
14129
14129
  console.log("Scanning for affected files...");
14130
- const globby = (await import("./globby-DASPUXWI.js")).globby;
14130
+ const globby = (await import("./globby-3IFB7BJC.js")).globby;
14131
14131
  const sourceFiles = await globby([glob2], {
14132
14132
  ...commonGlobOptions(""),
14133
14133
  ignore: ["**/node_modules/**"],
@@ -14157,7 +14157,7 @@ function transformImports(source, renamedImports) {
14157
14157
  __name(transformImports, "transformImports");
14158
14158
  var transformImportFiles = /* @__PURE__ */ __name(async (files, renamedImports, dryRun) => {
14159
14159
  const errors = [];
14160
- const { default: pLimit } = await import("./p-limit-HVR3I7TJ.js");
14160
+ const { default: pLimit } = await import("./p-limit-3V5XIKA7.js");
14161
14161
  const limit = pLimit(10);
14162
14162
  await Promise.all(
14163
14163
  files.map(
@@ -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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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-7WH7AGOR.js";
16
16
  import {
17
17
  __name
18
- } from "./chunk-MOO2Y4GI.js";
18
+ } from "./chunk-XZTBG2TG.js";
19
19
 
20
20
  // src/shared/utils/module.ts
21
21
  import { statSync } from "node:fs";
@@ -1,46 +1,46 @@
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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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-MNG223PY.js";
14
+ } from "./chunk-R5DIBOM6.js";
15
15
  import {
16
16
  createFileSystemCache,
17
17
  resolvePathInStorybookCache,
18
18
  up
19
- } from "./chunk-AC3BNULF.js";
19
+ } from "./chunk-RIPA4LFD.js";
20
20
  import {
21
21
  globalSettings
22
- } from "./chunk-4FMOVB65.js";
22
+ } from "./chunk-7NJGTQ3W.js";
23
23
  import {
24
24
  execaCommand,
25
25
  getProjectRoot
26
- } from "./chunk-XA4TAMUS.js";
26
+ } from "./chunk-55VWKF63.js";
27
27
  import {
28
28
  resolvePackageDir
29
- } from "./chunk-TBAIXCHN.js";
29
+ } from "./chunk-TJIMCNYJ.js";
30
30
  import {
31
31
  join
32
- } from "./chunk-4VGW2SQA.js";
32
+ } from "./chunk-7WH7AGOR.js";
33
33
  import {
34
34
  slash
35
- } from "./chunk-OL2HWCBH.js";
35
+ } from "./chunk-JNHUDBJL.js";
36
36
  import {
37
37
  require_picocolors
38
- } from "./chunk-N3GFXZDP.js";
38
+ } from "./chunk-5IEY46LQ.js";
39
39
  import {
40
40
  __commonJS,
41
41
  __name,
42
42
  __toESM
43
- } from "./chunk-MOO2Y4GI.js";
43
+ } from "./chunk-XZTBG2TG.js";
44
44
 
45
45
  // ../node_modules/fetch-retry/index.js
46
46
  var require_fetch_retry = __commonJS({
@@ -484,16 +484,16 @@ var getMonorepoType = /* @__PURE__ */ __name(() => {
484
484
  }, "getMonorepoType");
485
485
 
486
486
  // ../node_modules/package-manager-detector/dist/commands.mjs
487
- function npmRun(agent) {
487
+ function dashDashArg(agent, agentCommand) {
488
488
  return (args) => {
489
489
  if (args.length > 1) {
490
- return [agent, "run", args[0], "--", ...args.slice(1)];
490
+ return [agent, agentCommand, args[0], "--", ...args.slice(1)];
491
491
  } else {
492
- return [agent, "run", args[0]];
492
+ return [agent, agentCommand, args[0]];
493
493
  }
494
494
  };
495
495
  }
496
- __name(npmRun, "npmRun");
496
+ __name(dashDashArg, "dashDashArg");
497
497
  function denoExecute() {
498
498
  return (args) => {
499
499
  return ["deno", "run", `npm:${args[0]}`, ...args.slice(1)];
@@ -502,7 +502,7 @@ function denoExecute() {
502
502
  __name(denoExecute, "denoExecute");
503
503
  var npm = {
504
504
  "agent": ["npm", 0],
505
- "run": npmRun("npm"),
505
+ "run": dashDashArg("npm", "run"),
506
506
  "install": ["npm", "i", 0],
507
507
  "frozen": ["npm", "ci", 0],
508
508
  "global": ["npm", "i", "-g", 0],
@@ -524,7 +524,7 @@ var yarn = {
524
524
  "upgrade": ["yarn", "upgrade", 0],
525
525
  "upgrade-interactive": ["yarn", "upgrade-interactive", 0],
526
526
  "execute": ["npx", 0],
527
- "execute-local": ["yarn", "exec", 0],
527
+ "execute-local": dashDashArg("yarn", "exec"),
528
528
  "uninstall": ["yarn", "remove", 0],
529
529
  "global_uninstall": ["yarn", "global", "remove", 0]
530
530
  };
@@ -589,7 +589,7 @@ var COMMANDS = {
589
589
  // pnpm v6.x or below
590
590
  "pnpm@6": {
591
591
  ...pnpm,
592
- run: npmRun("pnpm")
592
+ run: dashDashArg("pnpm", "run")
593
593
  },
594
594
  "bun": bun,
595
595
  "deno": deno
@@ -658,7 +658,18 @@ async function parsePackageJson(filepath, onUnknown) {
658
658
  }
659
659
  __name(parsePackageJson, "parsePackageJson");
660
660
  async function detect(options = {}) {
661
- const { cwd, strategies = ["lockfile", "packageManager-field", "devEngines-field"], onUnknown } = options;
661
+ const {
662
+ cwd,
663
+ strategies = ["lockfile", "packageManager-field", "devEngines-field"],
664
+ onUnknown
665
+ } = options;
666
+ let stopDir;
667
+ if (typeof options.stopDir === "string") {
668
+ const resolved = path2.resolve(options.stopDir);
669
+ stopDir = /* @__PURE__ */ __name((dir) => dir === resolved, "stopDir");
670
+ } else {
671
+ stopDir = options.stopDir;
672
+ }
662
673
  for (const directory of lookup(cwd)) {
663
674
  for (const strategy of strategies) {
664
675
  switch (strategy) {
@@ -695,6 +706,8 @@ async function detect(options = {}) {
695
706
  }
696
707
  }
697
708
  }
709
+ if (stopDir?.(directory))
710
+ break;
698
711
  }
699
712
  return null;
700
713
  }
@@ -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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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-4VGW2SQA.js";
19
+ } from "./chunk-7WH7AGOR.js";
20
20
  import {
21
21
  __name
22
- } from "./chunk-MOO2Y4GI.js";
22
+ } from "./chunk-XZTBG2TG.js";
23
23
 
24
24
  // src/core-server/mocking-utils/resolve.ts
25
25
  import { readFileSync as readFileSync2, realpathSync } from "node:fs";
@@ -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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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_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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,20 +1,20 @@
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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.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
  toEstree
14
- } from "./chunk-IB5AEYPX.js";
14
+ } from "./chunk-BNOZ3EKF.js";
15
15
  import {
16
16
  __name
17
- } from "./chunk-MOO2Y4GI.js";
17
+ } from "./chunk-XZTBG2TG.js";
18
18
 
19
19
  // ../node_modules/@storybook/docs-mdx/dist/index.js
20
20
  var getAttr = /* @__PURE__ */ __name((elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute" && n.name.name === what), "getAttr");
@@ -161,7 +161,7 @@ var analyze = /* @__PURE__ */ __name(async (code) => {
161
161
  metaTags: void 0,
162
162
  imports: void 0
163
163
  };
164
- const { compile } = await import("./mdx-N42X6CFJ-2COTUDSL.js");
164
+ const { compile } = await import("./mdx-N42X6CFJ-WM36SSZ6.js");
165
165
  await compile(code, {
166
166
  rehypePlugins: [[plugin, store]]
167
167
  });
@@ -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_0v1evul49qdo from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0v1evul49qdo 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_0v1evul49qdo.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,16 +12,16 @@ var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
12
12
  import {
13
13
  require_picomatch,
14
14
  require_utils
15
- } from "./chunk-JECCFKKM.js";
15
+ } from "./chunk-IINJT47N.js";
16
16
  import {
17
17
  slash
18
- } from "./chunk-OL2HWCBH.js";
18
+ } from "./chunk-JNHUDBJL.js";
19
19
  import {
20
20
  __commonJS,
21
21
  __name,
22
22
  __require,
23
23
  __toESM
24
- } from "./chunk-MOO2Y4GI.js";
24
+ } from "./chunk-XZTBG2TG.js";
25
25
 
26
26
  // ../node_modules/fast-glob/out/utils/array.js
27
27
  var require_array = __commonJS({
@@ -4672,18 +4672,22 @@ var require_ignore = __commonJS({
4672
4672
  };
4673
4673
  var factory = /* @__PURE__ */ __name((options) => new Ignore(options), "factory");
4674
4674
  var isPathValid = /* @__PURE__ */ __name((path2) => checkPath(path2 && checkPath.convert(path2), path2, RETURN_FALSE), "isPathValid");
4675
- if (
4676
- // Detect `process` so that it can run in browsers.
4677
- typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
4678
- ) {
4675
+ var setupWindows = /* @__PURE__ */ __name(() => {
4679
4676
  const makePosix = /* @__PURE__ */ __name((str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"), "makePosix");
4680
4677
  checkPath.convert = makePosix;
4681
4678
  const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
4682
4679
  checkPath.isNotRelative = (path2) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path2) || isNotRelative(path2);
4680
+ }, "setupWindows");
4681
+ if (
4682
+ // Detect `process` so that it can run in browsers.
4683
+ typeof process !== "undefined" && process.platform === "win32"
4684
+ ) {
4685
+ setupWindows();
4683
4686
  }
4684
4687
  module.exports = factory;
4685
4688
  factory.default = factory;
4686
4689
  module.exports.isPathValid = isPathValid;
4690
+ define(module.exports, Symbol.for("setupWindows"), setupWindows);
4687
4691
  }
4688
4692
  });
4689
4693