storybook 10.0.0-beta.4 → 10.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
  2. package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
  3. package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-AM4PZYVQ.js} +10 -63
  4. package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
  5. package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
  6. package/dist/_browser-chunks/chunk-GJ67EE65.js +67 -0
  7. package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
  8. package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
  9. package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
  10. package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
  11. package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
  12. package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
  13. package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-YQV3EGQ5.js} +5 -5
  14. package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-RJW7FE3A.js} +3 -2
  15. package/dist/_node-chunks/{builder-manager-IKHPPPFE.js → builder-manager-ZTS4EIKQ.js} +18 -13
  16. package/dist/_node-chunks/camelcase-K3BM7RII.js +18 -0
  17. package/dist/_node-chunks/{chunk-MOO2Y4GI.js → chunk-2VMDKLSW.js} +6 -6
  18. package/dist/_node-chunks/{chunk-7IIAUEWB.js → chunk-3VVGIILJ.js} +8 -8
  19. package/dist/_node-chunks/{chunk-SF2IETZ2.js → chunk-4KRR46V2.js} +36 -23
  20. package/dist/_node-chunks/{chunk-4VGW2SQA.js → chunk-4VDRH7SM.js} +7 -7
  21. package/dist/_node-chunks/chunk-7LG5CLCT.js +18 -0
  22. package/dist/_node-chunks/{chunk-AC3BNULF.js → chunk-ACUNHBEO.js} +22 -22
  23. package/dist/_node-chunks/{camelcase-O2O7JODG.js → chunk-AK5PHLUA.js} +9 -8
  24. package/dist/_node-chunks/{chunk-4FMOVB65.js → chunk-D7SDB4XE.js} +223 -243
  25. package/dist/_node-chunks/chunk-DWJ7TV2O.js +62 -0
  26. package/dist/_node-chunks/{chunk-JSSBBVU5.js → chunk-DZJNLBBL.js} +7 -7
  27. package/dist/_node-chunks/{chunk-YRPXGWKW.js → chunk-EIHJ5J3O.js} +8 -8
  28. package/dist/_node-chunks/{chunk-HAVE6SGK.js → chunk-F3WE3456.js} +7 -7
  29. package/dist/_node-chunks/{chunk-TTQRDWDJ.js → chunk-F7YW5W6B.js} +12 -12
  30. package/dist/_node-chunks/{chunk-AXFNB3AN.js → chunk-H52PBBSK.js} +7 -7
  31. package/dist/_node-chunks/{chunk-OL2HWCBH.js → chunk-J3DQMIO4.js} +7 -7
  32. package/dist/_node-chunks/{chunk-XT6O5CVI.js → chunk-K4YETNYJ.js} +30 -21
  33. package/dist/_node-chunks/{chunk-TBAIXCHN.js → chunk-KU3JBNPY.js} +8 -8
  34. package/dist/_node-chunks/{chunk-6COBULLV.js → chunk-KZB7ELL6.js} +162 -103
  35. package/dist/_node-chunks/{chunk-JECCFKKM.js → chunk-OC3TVLYU.js} +7 -7
  36. package/dist/_node-chunks/{chunk-N3GFXZDP.js → chunk-P3TWEOO5.js} +7 -7
  37. package/dist/_node-chunks/{chunk-NOSGJ5PL.js → chunk-P7YMEOXF.js} +7 -7
  38. package/dist/_node-chunks/{chunk-IB5AEYPX.js → chunk-PIKDGR3O.js} +7 -7
  39. package/dist/_node-chunks/{chunk-FWFQ2GU7.js → chunk-QHIU5I7C.js} +6 -6
  40. package/dist/_node-chunks/{chunk-NF3GXIEK.js → chunk-SW3VZAH7.js} +9 -9
  41. package/dist/_node-chunks/{chunk-XA4TAMUS.js → chunk-TBWOUVTA.js} +10 -9
  42. package/dist/_node-chunks/{chunk-YJHXEN7U.js → chunk-TKN5TEZV.js} +583 -180
  43. package/dist/_node-chunks/{chunk-JP4LEAXM.js → chunk-TVKUJ3SE.js} +623 -750
  44. package/dist/_node-chunks/{chunk-TYGVOW7L.js → chunk-UTCFHTQH.js} +8 -8
  45. package/dist/_node-chunks/{chunk-DCHFG5TX.js → chunk-VQN4WAIA.js} +7 -7
  46. package/dist/_node-chunks/{chunk-USDZSU5L.js → chunk-VWSUFVUF.js} +7 -7
  47. package/dist/_node-chunks/{chunk-3J7DQ6TI.js → chunk-VX5P3IYA.js} +7 -7
  48. package/dist/_node-chunks/{chunk-5OILJTZE.js → chunk-WCSHG2QT.js} +7 -7
  49. package/dist/_node-chunks/{default-browser-id-J4OIAAJ5.js → default-browser-id-4RZZMHJE.js} +7 -7
  50. package/dist/_node-chunks/{dist-BMKSKYDI.js → dist-OGRBL76N.js} +9 -9
  51. package/dist/_node-chunks/{globby-DASPUXWI.js → globby-65LOULA6.js} +9 -9
  52. package/dist/_node-chunks/{lib-L6BIH4EV.js → lib-TF7JCT3A.js} +36 -12
  53. package/dist/_node-chunks/{mdx-N42X6CFJ-2COTUDSL.js → mdx-N42X6CFJ-6ZJEUZMZ.js} +8 -8
  54. package/dist/_node-chunks/{p-limit-HVR3I7TJ.js → p-limit-PF7JSPDT.js} +7 -7
  55. package/dist/_node-chunks/{plugin-2XPSFYWZ.js → plugin-A6XAWMXN.js} +10 -10
  56. package/dist/_node-chunks/{plugin-FZOHPRK7.js → plugin-LGHGAC6J.js} +10 -10
  57. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-FGQM2EPC.js → webpack-inject-mocker-runtime-plugin-HDSEOU3Z.js} +1307 -847
  58. package/dist/_node-chunks/{webpack-mock-plugin-4HOAIYSX.js → webpack-mock-plugin-ZJJVMJUS.js} +9 -9
  59. package/dist/babel/index.d.ts +1 -1
  60. package/dist/babel/index.js +11 -11
  61. package/dist/bin/core.js +638 -187
  62. package/dist/bin/dispatcher.js +11 -11
  63. package/dist/bin/loader.js +8 -8
  64. package/dist/cli/index.d.ts +61 -74
  65. package/dist/cli/index.js +50 -43
  66. package/dist/common/index.js +21 -21
  67. package/dist/components/index.js +24 -20
  68. package/dist/core-server/index.js +3541 -3216
  69. package/dist/core-server/presets/common-manager.js +440 -720
  70. package/dist/core-server/presets/common-override-preset.js +9 -9
  71. package/dist/core-server/presets/common-preset.js +22 -22
  72. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  73. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  74. package/dist/csf/index.js +6 -6
  75. package/dist/csf-tools/index.js +9 -9
  76. package/dist/docs-tools/index.js +4 -4
  77. package/dist/instrumenter/index.js +1 -1
  78. package/dist/manager/globals-runtime.js +8910 -18107
  79. package/dist/manager/runtime.js +3256 -2945
  80. package/dist/manager-api/index.js +23 -20
  81. package/dist/node-logger/index.d.ts +1 -1
  82. package/dist/node-logger/index.js +1136 -661
  83. package/dist/preview/runtime.js +12061 -21584
  84. package/dist/preview-api/index.d.ts +68 -67
  85. package/dist/preview-api/index.js +6 -6
  86. package/dist/router/index.js +2 -2
  87. package/dist/server-errors.js +10 -10
  88. package/dist/telemetry/index.js +24 -24
  89. package/dist/test/index.js +1872 -4023
  90. package/dist/theming/index.d.ts +2 -2
  91. package/dist/theming/index.js +6 -6
  92. package/package.json +3 -3
  93. package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
  94. package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
  95. package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
  96. package/dist/_node-chunks/chunk-CHJLO2LV.js +0 -62
  97. package/dist/_node-chunks/chunk-MNG223PY.js +0 -18
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,23 +13,23 @@ import {
13
13
  BROWSER_TARGETS,
14
14
  NODE_TARGET,
15
15
  SUPPORTED_FEATURES
16
- } from "./chunk-FWFQ2GU7.js";
16
+ } from "./chunk-QHIU5I7C.js";
17
17
  import {
18
18
  require_build
19
- } from "./chunk-DCHFG5TX.js";
19
+ } from "./chunk-VQN4WAIA.js";
20
20
  import {
21
21
  resolveModulePath
22
- } from "./chunk-5OILJTZE.js";
22
+ } from "./chunk-WCSHG2QT.js";
23
23
  import {
24
24
  resolvePackageDir
25
- } from "./chunk-TBAIXCHN.js";
25
+ } from "./chunk-KU3JBNPY.js";
26
26
  import {
27
27
  join,
28
28
  parse
29
- } from "./chunk-4VGW2SQA.js";
29
+ } from "./chunk-4VDRH7SM.js";
30
30
  import {
31
31
  slash
32
- } from "./chunk-OL2HWCBH.js";
32
+ } from "./chunk-J3DQMIO4.js";
33
33
  import {
34
34
  __commonJS,
35
35
  __esm,
@@ -38,7 +38,7 @@ import {
38
38
  __require,
39
39
  __toCommonJS,
40
40
  __toESM
41
- } from "./chunk-MOO2Y4GI.js";
41
+ } from "./chunk-2VMDKLSW.js";
42
42
 
43
43
  // ../node_modules/tslib/tslib.es6.mjs
44
44
  var tslib_es6_exports = {};
@@ -1665,6 +1665,7 @@ var exports_default = {
1665
1665
  "BoxIcon",
1666
1666
  "BranchIcon",
1667
1667
  "BrowserIcon",
1668
+ "BugIcon",
1668
1669
  "ButtonIcon",
1669
1670
  "CPUIcon",
1670
1671
  "CalendarIcon",
@@ -1738,6 +1739,7 @@ var exports_default = {
1738
1739
  "FolderIcon",
1739
1740
  "FormIcon",
1740
1741
  "GDriveIcon",
1742
+ "GiftIcon",
1741
1743
  "GithubIcon",
1742
1744
  "GitlabIcon",
1743
1745
  "GlobeIcon",
@@ -1778,6 +1780,7 @@ var exports_default = {
1778
1780
  "NutIcon",
1779
1781
  "OutboxIcon",
1780
1782
  "OutlineIcon",
1783
+ "PaintBrushAltIcon",
1781
1784
  "PaintBrushIcon",
1782
1785
  "PaperClipIcon",
1783
1786
  "ParagraphIcon",
@@ -1821,6 +1824,8 @@ var exports_default = {
1821
1824
  "SidebarAltToggleIcon",
1822
1825
  "SidebarIcon",
1823
1826
  "SidebarToggleIcon",
1827
+ "SortDownIcon",
1828
+ "SortUpIcon",
1824
1829
  "SpeakerIcon",
1825
1830
  "StackedIcon",
1826
1831
  "StarHollowIcon",
@@ -0,0 +1,18 @@
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
+ camelCase
14
+ } from "./chunk-AK5PHLUA.js";
15
+ import "./chunk-2VMDKLSW.js";
16
+ export {
17
+ camelCase as default
18
+ };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -16,10 +16,10 @@ import {
16
16
  join,
17
17
  normalize,
18
18
  resolve
19
- } from "./chunk-4VGW2SQA.js";
19
+ } from "./chunk-4VDRH7SM.js";
20
20
  import {
21
21
  __name
22
- } from "./chunk-MOO2Y4GI.js";
22
+ } from "./chunk-2VMDKLSW.js";
23
23
 
24
24
  // src/core-server/mocking-utils/resolve.ts
25
25
  import { readFileSync as readFileSync2, realpathSync } 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_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  version
14
- } from "./chunk-MNG223PY.js";
14
+ } from "./chunk-7LG5CLCT.js";
15
15
  import {
16
16
  createFileSystemCache,
17
17
  resolvePathInStorybookCache,
18
18
  up
19
- } from "./chunk-AC3BNULF.js";
19
+ } from "./chunk-ACUNHBEO.js";
20
20
  import {
21
21
  globalSettings
22
- } from "./chunk-4FMOVB65.js";
22
+ } from "./chunk-D7SDB4XE.js";
23
23
  import {
24
24
  execaCommand,
25
25
  getProjectRoot
26
- } from "./chunk-XA4TAMUS.js";
26
+ } from "./chunk-TBWOUVTA.js";
27
27
  import {
28
28
  resolvePackageDir
29
- } from "./chunk-TBAIXCHN.js";
29
+ } from "./chunk-KU3JBNPY.js";
30
30
  import {
31
31
  join
32
- } from "./chunk-4VGW2SQA.js";
32
+ } from "./chunk-4VDRH7SM.js";
33
33
  import {
34
34
  slash
35
- } from "./chunk-OL2HWCBH.js";
35
+ } from "./chunk-J3DQMIO4.js";
36
36
  import {
37
37
  require_picocolors
38
- } from "./chunk-N3GFXZDP.js";
38
+ } from "./chunk-P3TWEOO5.js";
39
39
  import {
40
40
  __commonJS,
41
41
  __name,
42
42
  __toESM
43
- } from "./chunk-MOO2Y4GI.js";
43
+ } from "./chunk-2VMDKLSW.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,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "./chunk-MOO2Y4GI.js";
14
+ } from "./chunk-2VMDKLSW.js";
15
15
 
16
16
  // ../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
17
17
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
@@ -0,0 +1,18 @@
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
+ // package.json
14
+ var version = "10.0.0-beta.5";
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_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  require_picomatch
14
- } from "./chunk-JECCFKKM.js";
14
+ } from "./chunk-OC3TVLYU.js";
15
15
  import {
16
16
  resolveModulePath
17
- } from "./chunk-5OILJTZE.js";
17
+ } from "./chunk-WCSHG2QT.js";
18
18
  import {
19
19
  versions_default
20
- } from "./chunk-CHJLO2LV.js";
20
+ } from "./chunk-DWJ7TV2O.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-TBWOUVTA.js";
34
34
  import {
35
35
  any,
36
36
  from,
37
37
  up2 as up
38
- } from "./chunk-JSSBBVU5.js";
38
+ } from "./chunk-DZJNLBBL.js";
39
39
  import {
40
40
  invariant
41
- } from "./chunk-USDZSU5L.js";
41
+ } from "./chunk-VWSUFVUF.js";
42
42
  import {
43
43
  importModule,
44
44
  resolvePackageDir,
45
45
  safeResolveModule
46
- } from "./chunk-TBAIXCHN.js";
46
+ } from "./chunk-KU3JBNPY.js";
47
47
  import {
48
48
  join,
49
49
  parse,
50
50
  resolve
51
- } from "./chunk-4VGW2SQA.js";
51
+ } from "./chunk-4VDRH7SM.js";
52
52
  import {
53
53
  require_prompts
54
- } from "./chunk-3J7DQ6TI.js";
54
+ } from "./chunk-VX5P3IYA.js";
55
55
  import {
56
56
  glob,
57
57
  globSync
58
- } from "./chunk-TYGVOW7L.js";
58
+ } from "./chunk-UTCFHTQH.js";
59
59
  import {
60
60
  slash
61
- } from "./chunk-OL2HWCBH.js";
61
+ } from "./chunk-J3DQMIO4.js";
62
62
  import {
63
63
  require_dist
64
- } from "./chunk-NOSGJ5PL.js";
64
+ } from "./chunk-P7YMEOXF.js";
65
65
  import {
66
66
  require_picocolors
67
- } from "./chunk-N3GFXZDP.js";
67
+ } from "./chunk-P3TWEOO5.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-2VMDKLSW.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-65LOULA6.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-PF7JSPDT.js");
14161
14161
  const limit = pLimit(10);
14162
14162
  await Promise.all(
14163
14163
  files.map(
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_0oz6lpav6bgq from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_0oz6lpav6bgq from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_0oz6lpav6bgq.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_0oz6lpav6bgq.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_0oz6lpav6bgq.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "./chunk-MOO2Y4GI.js";
14
+ } from "./chunk-2VMDKLSW.js";
15
15
 
16
16
  // ../node_modules/camelcase/index.js
17
17
  var UPPERCASE = /[\p{Lu}]/u;
@@ -95,6 +95,7 @@ function camelCase(input, options) {
95
95
  return postProcess(input, toUpperCase);
96
96
  }
97
97
  __name(camelCase, "camelCase");
98
+
98
99
  export {
99
- camelCase as default
100
+ camelCase
100
101
  };