storybook 10.2.0-alpha.9 → 10.2.0-beta.1

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-E5XDEOX4.js → Color-XESOIGZP.js} +57 -3
  2. package/dist/_browser-chunks/chunk-AFVOZMXQ.js +23 -0
  3. package/dist/_browser-chunks/{chunk-3PJE6VLG.js → chunk-ASKQZAOS.js} +1 -12
  4. package/dist/_browser-chunks/chunk-IYCKG66Y.js +171 -0
  5. package/dist/_browser-chunks/chunk-LCHBOIHN.js +64 -0
  6. package/dist/_browser-chunks/{chunk-IPA5A322.js → chunk-MEXTPDJG.js} +1 -1
  7. package/dist/_browser-chunks/{chunk-54PNNATT.js → chunk-NQJGOFZV.js} +18 -1
  8. package/dist/_browser-chunks/{chunk-VUZYLZ4B.js → chunk-QOXZ7W26.js} +31 -15
  9. package/dist/_browser-chunks/{chunk-LOTN4ZCW.js → chunk-SI6AKD4S.js} +2 -2
  10. package/dist/_browser-chunks/chunk-YK43Z22A.js +263 -0
  11. package/dist/_node-chunks/{builder-manager-FTCODGJP.js → builder-manager-IRBMORML.js} +15 -12
  12. package/dist/_node-chunks/camelcase-JM3BJBI7.js +62 -0
  13. package/dist/_node-chunks/{chunk-RF3L36MK.js → chunk-2SAOTVFT.js} +125 -73
  14. package/dist/_node-chunks/chunk-34APMFOU.js +23 -0
  15. package/dist/_node-chunks/chunk-5IZBWBDT.js +144 -0
  16. package/dist/_node-chunks/chunk-5M5YVBOE.js +18 -0
  17. package/dist/_node-chunks/{chunk-6ABJZZWS.js → chunk-6T5JWO53.js} +7 -7
  18. package/dist/_node-chunks/{chunk-D4TCQXIF.js → chunk-7WSC72DT.js} +7 -7
  19. package/dist/_node-chunks/{chunk-YN6FEZAF.js → chunk-AEAT43LP.js} +7 -7
  20. package/dist/_node-chunks/{chunk-3Y5VHKPI.js → chunk-B3ABITJT.js} +9 -9
  21. package/dist/_node-chunks/chunk-E4NS75V2.js +126 -0
  22. package/dist/_node-chunks/{chunk-LRBEW57O.js → chunk-EXJYKVMZ.js} +7 -7
  23. package/dist/_node-chunks/{chunk-NYUFS6LX.js → chunk-FK46E6BJ.js} +10 -10
  24. package/dist/_node-chunks/{chunk-CO7N5AG7.js → chunk-FLAGIDCN.js} +36 -14
  25. package/dist/_node-chunks/{chunk-FGI35IGB.js → chunk-FOSOWVVY.js} +15 -69
  26. package/dist/_node-chunks/{chunk-33XC4R6P.js → chunk-FWBRRVW6.js} +9 -9
  27. package/dist/_node-chunks/{chunk-73GYSTNZ.js → chunk-GKB6BXCD.js} +6 -6
  28. package/dist/_node-chunks/{chunk-SBPB3VWI.js → chunk-H444EFIP.js} +6 -6
  29. package/dist/_node-chunks/{chunk-6SH5SI6S.js → chunk-KRXWB32F.js} +7 -7
  30. package/dist/_node-chunks/{chunk-3DPKKQ6P.js → chunk-L5NAVTEK.js} +6 -6
  31. package/dist/_node-chunks/{chunk-MWWAQ5S4.js → chunk-M5BK3KV6.js} +5262 -1480
  32. package/dist/_node-chunks/{chunk-OUDQWDHY.js → chunk-MTJISVX7.js} +7 -7
  33. package/dist/_node-chunks/{chunk-IIBBQZLT.js → chunk-NFE2FV3C.js} +6 -6
  34. package/dist/_node-chunks/{chunk-PZCWRKQE.js → chunk-PZT42DUC.js} +6 -6
  35. package/dist/_node-chunks/{chunk-XZ6V3G6J.js → chunk-QO37JOCL.js} +533 -143
  36. package/dist/_node-chunks/{chunk-LB74XOLW.js → chunk-RP5L2ZGT.js} +6 -6
  37. package/dist/_node-chunks/chunk-RVYIMZDI.js +61 -0
  38. package/dist/_node-chunks/{chunk-BQX766MA.js → chunk-WLBZMVKZ.js} +260 -162
  39. package/dist/_node-chunks/{chunk-WTQGSYRO.js → chunk-WRGLNCF7.js} +12 -571
  40. package/dist/_node-chunks/{chunk-SPOUBCPJ.js → chunk-YR6V5CGX.js} +18 -14
  41. package/dist/_node-chunks/{globby-AXGFF6I5.js → globby-EHB62LWZ.js} +11 -20
  42. package/dist/_node-chunks/{lib-ESB7KQ6D.js → lib-F2QE2E3S.js} +7 -7
  43. package/dist/_node-chunks/{mdx-N42X6CFJ-XXQ6YIDF.js → mdx-N42X6CFJ-SV23TYXC.js} +8 -8
  44. package/dist/_node-chunks/{p-limit-P6ND7SUA.js → p-limit-T7DGUJ4I.js} +18 -14
  45. package/dist/babel/index.js +10 -10
  46. package/dist/bin/core.js +12 -12
  47. package/dist/bin/dispatcher.js +11 -11
  48. package/dist/bin/loader.js +9 -9
  49. package/dist/cli/index.d.ts +1504 -424
  50. package/dist/cli/index.js +18 -18
  51. package/dist/common/index.d.ts +1319 -271
  52. package/dist/common/index.js +19 -19
  53. package/dist/components/index.d.ts +4 -1
  54. package/dist/components/index.js +228 -227
  55. package/dist/core-events/index.d.ts +23 -7
  56. package/dist/core-events/index.js +5 -1
  57. package/dist/core-server/index.d.ts +105 -3
  58. package/dist/core-server/index.js +992 -613
  59. package/dist/core-server/presets/common-manager.js +208 -160
  60. package/dist/core-server/presets/common-override-preset.js +11 -11
  61. package/dist/core-server/presets/common-preset.js +558 -4534
  62. package/dist/csf/index.d.ts +147 -15
  63. package/dist/csf/index.js +52 -23
  64. package/dist/csf-tools/index.d.ts +19 -1
  65. package/dist/csf-tools/index.js +11 -9
  66. package/dist/docs-tools/index.d.ts +2 -2
  67. package/dist/docs-tools/index.js +4 -5
  68. package/dist/manager/globals-runtime.js +2749 -6907
  69. package/dist/manager/runtime.js +2939 -2295
  70. package/dist/manager-api/index.d.ts +89 -21
  71. package/dist/manager-api/index.js +82 -23
  72. package/dist/mocking-utils/index.js +8 -8
  73. package/dist/node-logger/index.d.ts +1453 -108
  74. package/dist/node-logger/index.js +9 -9
  75. package/dist/preview/runtime.js +784 -5059
  76. package/dist/preview-api/index.d.ts +93 -69
  77. package/dist/preview-api/index.js +11 -8
  78. package/dist/router/index.js +5 -4
  79. package/dist/server-errors.js +11 -11
  80. package/dist/telemetry/index.d.ts +14 -2
  81. package/dist/telemetry/index.js +23 -22
  82. package/dist/theming/index.d.ts +5 -5
  83. package/dist/theming/index.js +21 -2
  84. package/dist/types/index.d.ts +21 -9
  85. package/dist/viewport/index.d.ts +5 -3
  86. package/dist/viewport/index.js +12 -3
  87. package/package.json +27 -26
  88. package/dist/_browser-chunks/chunk-2NDLAB5X.js +0 -363
  89. package/dist/_browser-chunks/chunk-CLSHX4VX.js +0 -4140
  90. package/dist/_browser-chunks/chunk-HPYUT3WS.js +0 -199
  91. package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
  92. package/dist/_node-chunks/camelcase-5XDKQT3J.js +0 -37
  93. package/dist/_node-chunks/chunk-GXQRT5M6.js +0 -61
  94. package/dist/_node-chunks/chunk-MOQRBTWA.js +0 -70
  95. package/dist/_node-chunks/chunk-PRNP2HO6.js +0 -23
  96. package/dist/_node-chunks/chunk-VKMYOVNS.js +0 -18
  97. package/dist/_node-chunks/dist-YRSVYE5A.js +0 -121
@@ -0,0 +1,144 @@
1
+ import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+
13
+ // src/shared/utils/ecosystem-identifier.ts
14
+ var TEST_PACKAGES = [
15
+ "*playwright*",
16
+ "@playwright/*",
17
+ "*vitest*",
18
+ "@vitest/*",
19
+ "jest",
20
+ "cypress",
21
+ "nightwatch",
22
+ "webdriver",
23
+ "@web/test-runner",
24
+ "puppeteer",
25
+ "karma",
26
+ "jasmine",
27
+ "chai",
28
+ "@testing-library/*",
29
+ "@ngneat/spectator",
30
+ "wdio*",
31
+ "msw",
32
+ "miragejs",
33
+ "sinon",
34
+ "chromatic"
35
+ ], STYLING_PACKAGES = [
36
+ "postcss",
37
+ "tailwindcss",
38
+ "autoprefixer",
39
+ "sass",
40
+ "emotion",
41
+ "@emotion/*",
42
+ "less",
43
+ "styled-components",
44
+ "bootstrap",
45
+ "goober",
46
+ "stylus",
47
+ "jss",
48
+ "linaria",
49
+ "bulma",
50
+ "aphrodite",
51
+ "semantic-ui",
52
+ "foundation-sites",
53
+ "fela"
54
+ ], STATE_MANAGEMENT_PACKAGES = [
55
+ "*redux*",
56
+ "@reduxjs/*",
57
+ "zustand",
58
+ "jotai",
59
+ "recoil",
60
+ "mobx*",
61
+ "valtio",
62
+ "xstate",
63
+ "@xstate/*",
64
+ "effector",
65
+ "effector-react",
66
+ "easy-peasy"
67
+ ], DATA_FETCHING_PACKAGES = [
68
+ "axios",
69
+ "@tanstack/react-query",
70
+ "superagent",
71
+ "swr",
72
+ "isomorphic-fetch",
73
+ "*graphql*",
74
+ "ky",
75
+ "@apollo/*",
76
+ "relay-runtime",
77
+ "react-query",
78
+ "urql",
79
+ "react-relay"
80
+ ], UI_LIBRARY_PACKAGES = [
81
+ "@mui/*",
82
+ "@headlessui/*",
83
+ "antd",
84
+ "radix-ui",
85
+ "@radix-ui/*",
86
+ "react-bootstrap",
87
+ "@mantine/*",
88
+ "@chakra-ui/*",
89
+ "shadcn",
90
+ "@blueprintjs/*",
91
+ "semantic-ui-react",
92
+ "primereact",
93
+ "@fluentui/*",
94
+ "rsuite",
95
+ "react-aria*",
96
+ "@react-aria/*",
97
+ "@heroui/*",
98
+ "@carbon/*",
99
+ "theme-ui",
100
+ "rebass"
101
+ ], I18N_PACKAGES = ["*i18n*", "*intl", "@lingui/*"], ROUTER_PACKAGES = [
102
+ "react-router",
103
+ "react-router-dom",
104
+ "react-easy-router",
105
+ "@remix-run/router",
106
+ "expo-router",
107
+ "@tanstack/*-router",
108
+ "wouter",
109
+ "@reach/router"
110
+ ];
111
+ function globToRegex(pattern) {
112
+ let regexPattern = pattern.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
113
+ return new RegExp(`^${regexPattern}$`);
114
+ }
115
+ function matchesPackagePattern(dependencyName, patterns) {
116
+ return patterns.some((pattern) => globToRegex(pattern).test(dependencyName));
117
+ }
118
+ function isStateManagementPackage(dependencyName) {
119
+ return matchesPackagePattern(dependencyName, STATE_MANAGEMENT_PACKAGES);
120
+ }
121
+ function isStylingPackage(dependencyName) {
122
+ return matchesPackagePattern(dependencyName, STYLING_PACKAGES);
123
+ }
124
+ function isRouterPackage(dependencyName) {
125
+ return matchesPackagePattern(dependencyName, ROUTER_PACKAGES);
126
+ }
127
+ function isI18nPackage(dependencyName) {
128
+ return matchesPackagePattern(dependencyName, I18N_PACKAGES);
129
+ }
130
+
131
+ export {
132
+ TEST_PACKAGES,
133
+ STYLING_PACKAGES,
134
+ STATE_MANAGEMENT_PACKAGES,
135
+ DATA_FETCHING_PACKAGES,
136
+ UI_LIBRARY_PACKAGES,
137
+ I18N_PACKAGES,
138
+ ROUTER_PACKAGES,
139
+ matchesPackagePattern,
140
+ isStateManagementPackage,
141
+ isStylingPackage,
142
+ isRouterPackage,
143
+ isI18nPackage
144
+ };
@@ -0,0 +1,18 @@
1
+ import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.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.2.0-beta.1";
15
+
16
+ export {
17
+ version
18
+ };
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_3h3bsnbtanf from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_3h3bsnbtanf from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_3h3bsnbtanf from "node:module";
1
+ import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_3h3bsnbtanf.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_3h3bsnbtanf.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_3h3bsnbtanf.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.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-PZCWRKQE.js";
14
+ } from "./chunk-PZT42DUC.js";
15
15
 
16
16
  // ../../node_modules/picocolors/picocolors.js
17
17
  var require_picocolors = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_3h3bsnbtanf from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_3h3bsnbtanf from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_3h3bsnbtanf from "node:module";
1
+ import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_3h3bsnbtanf.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_3h3bsnbtanf.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_3h3bsnbtanf.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.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_3h3bsnbtanf.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-PZCWRKQE.js";
15
+ } from "./chunk-PZT42DUC.js";
16
16
 
17
17
  // ../../node_modules/ms/index.js
18
18
  var require_ms = __commonJS({
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_3h3bsnbtanf from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_3h3bsnbtanf from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_3h3bsnbtanf from "node:module";
1
+ import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_3h3bsnbtanf.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_3h3bsnbtanf.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_3h3bsnbtanf.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.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
14
- } from "./chunk-PZCWRKQE.js";
14
+ } from "./chunk-PZT42DUC.js";
15
15
 
16
16
  // ../../node_modules/@storybook/docs-mdx/dist/chunk-H6DQNFQR.js
17
17
  var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __require2 = ((x) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(x, {
@@ -1,24 +1,24 @@
1
- import CJS_COMPAT_NODE_URL_3h3bsnbtanf from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_3h3bsnbtanf from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_3h3bsnbtanf from "node:module";
1
+ import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_3h3bsnbtanf.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_3h3bsnbtanf.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_3h3bsnbtanf.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.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
  invariant
14
- } from "./chunk-3DPKKQ6P.js";
14
+ } from "./chunk-L5NAVTEK.js";
15
15
  import {
16
16
  require_dist
17
- } from "./chunk-LRBEW57O.js";
17
+ } from "./chunk-EXJYKVMZ.js";
18
18
  import {
19
19
  __export,
20
20
  __toESM
21
- } from "./chunk-PZCWRKQE.js";
21
+ } from "./chunk-PZT42DUC.js";
22
22
 
23
23
  // src/cli/globalSettings.ts
24
24
  var import_ts_dedent = __toESM(require_dist(), 1);
@@ -0,0 +1,126 @@
1
+ import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+
13
+ // ../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
14
+ var isProduction = process.env.NODE_ENV === "production", prefix = "Invariant failed";
15
+ function invariant(condition, message) {
16
+ if (!condition) {
17
+ if (isProduction)
18
+ throw new Error(prefix);
19
+ var provided = typeof message == "function" ? message() : message, value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
20
+ throw new Error(value);
21
+ }
22
+ }
23
+
24
+ // ../../node_modules/empathic/resolve.mjs
25
+ import { createRequire } from "node:module";
26
+ import { isAbsolute, join, resolve } from "node:path";
27
+ import { fileURLToPath } from "node:url";
28
+ function absolute(input, root) {
29
+ return isAbsolute(input) ? input : resolve(root || ".", input);
30
+ }
31
+ function from(root, ident, silent) {
32
+ try {
33
+ let r = root instanceof URL || root.startsWith("file://") ? join(fileURLToPath(root), "noop.js") : join(absolute(root), "noop.js");
34
+ return createRequire(r).resolve(ident);
35
+ } catch (err) {
36
+ if (!silent) throw err;
37
+ }
38
+ }
39
+
40
+ // ../../node_modules/empathic/walk.mjs
41
+ import { dirname } from "node:path";
42
+ function up(base, options) {
43
+ let { last, cwd } = options || {}, tmp = absolute(base, cwd), root = absolute(last || "/", cwd), prev, arr = [];
44
+ for (; prev !== root && (arr.push(tmp), tmp = dirname(prev = tmp), tmp !== prev); )
45
+ ;
46
+ return arr;
47
+ }
48
+
49
+ // ../../node_modules/empathic/find.mjs
50
+ import { join as join2 } from "node:path";
51
+ import { existsSync, statSync } from "node:fs";
52
+ function up2(name, options) {
53
+ let dir, tmp, start = options && options.cwd || "";
54
+ for (dir of up(start, options))
55
+ if (tmp = join2(dir, name), existsSync(tmp)) return tmp;
56
+ }
57
+ function any(names, options) {
58
+ let dir, start = options && options.cwd || "", j = 0, len = names.length, tmp;
59
+ for (dir of up(start, options))
60
+ for (j = 0; j < len; j++)
61
+ if (tmp = join2(dir, names[j]), existsSync(tmp)) return tmp;
62
+ }
63
+
64
+ // ../../node_modules/detect-indent/index.js
65
+ var INDENT_REGEX = /^(?:( )+|\t+)/, INDENT_TYPE_SPACE = "space";
66
+ function makeIndentsMap(string, ignoreSingleSpaces) {
67
+ let indents = /* @__PURE__ */ new Map(), previousSize = 0, previousIndentType, key;
68
+ for (let line of string.split(/\n/g)) {
69
+ if (!line)
70
+ continue;
71
+ let indent, indentType, use, weight, entry, matches = line.match(INDENT_REGEX);
72
+ if (matches === null)
73
+ previousSize = 0, previousIndentType = "";
74
+ else {
75
+ if (indent = matches[0].length, indentType = matches[1] ? INDENT_TYPE_SPACE : "tab", ignoreSingleSpaces && indentType === INDENT_TYPE_SPACE && indent === 1)
76
+ continue;
77
+ indentType !== previousIndentType && (previousSize = 0), previousIndentType = indentType, use = 1, weight = 0;
78
+ let indentDifference = indent - previousSize;
79
+ if (previousSize = indent, indentDifference === 0)
80
+ use = 0, weight = 1;
81
+ else {
82
+ let absoluteIndentDifference = indentDifference > 0 ? indentDifference : -indentDifference;
83
+ key = encodeIndentsKey(indentType, absoluteIndentDifference);
84
+ }
85
+ entry = indents.get(key), entry = entry === void 0 ? [1, 0] : [entry[0] + use, entry[1] + weight], indents.set(key, entry);
86
+ }
87
+ }
88
+ return indents;
89
+ }
90
+ function encodeIndentsKey(indentType, indentAmount) {
91
+ return (indentType === INDENT_TYPE_SPACE ? "s" : "t") + String(indentAmount);
92
+ }
93
+ function decodeIndentsKey(indentsKey) {
94
+ let type = indentsKey[0] === "s" ? INDENT_TYPE_SPACE : "tab", amount = Number(indentsKey.slice(1));
95
+ return { type, amount };
96
+ }
97
+ function getMostUsedKey(indents) {
98
+ let result, maxUsed = 0, maxWeight = 0;
99
+ for (let [key, [usedCount, weight]] of indents)
100
+ (usedCount > maxUsed || usedCount === maxUsed && weight > maxWeight) && (maxUsed = usedCount, maxWeight = weight, result = key);
101
+ return result;
102
+ }
103
+ function makeIndentString(type, amount) {
104
+ return (type === INDENT_TYPE_SPACE ? " " : " ").repeat(amount);
105
+ }
106
+ function detectIndent(string) {
107
+ if (typeof string != "string")
108
+ throw new TypeError("Expected a string");
109
+ let indents = makeIndentsMap(string, !0);
110
+ indents.size === 0 && (indents = makeIndentsMap(string, !1));
111
+ let keyOfMostUsedIndent = getMostUsedKey(indents), type, amount = 0, indent = "";
112
+ return keyOfMostUsedIndent !== void 0 && ({ type, amount } = decodeIndentsKey(keyOfMostUsedIndent), indent = makeIndentString(type, amount)), {
113
+ amount,
114
+ type,
115
+ indent
116
+ };
117
+ }
118
+
119
+ export {
120
+ invariant,
121
+ from,
122
+ up,
123
+ up2,
124
+ any,
125
+ detectIndent
126
+ };
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_3h3bsnbtanf from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_3h3bsnbtanf from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_3h3bsnbtanf from "node:module";
1
+ import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_3h3bsnbtanf.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_3h3bsnbtanf.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_3h3bsnbtanf.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.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-PZCWRKQE.js";
14
+ } from "./chunk-PZT42DUC.js";
15
15
 
16
16
  // ../../node_modules/ts-dedent/dist/index.js
17
17
  var require_dist = __commonJS({
@@ -1,26 +1,26 @@
1
- import CJS_COMPAT_NODE_URL_3h3bsnbtanf from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_3h3bsnbtanf from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_3h3bsnbtanf from "node:module";
1
+ import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_3h3bsnbtanf.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_3h3bsnbtanf.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_3h3bsnbtanf.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.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
  StorybookError
14
- } from "./chunk-IIBBQZLT.js";
14
+ } from "./chunk-NFE2FV3C.js";
15
15
  import {
16
16
  require_dist
17
- } from "./chunk-LRBEW57O.js";
17
+ } from "./chunk-EXJYKVMZ.js";
18
18
  import {
19
19
  require_picocolors
20
- } from "./chunk-6ABJZZWS.js";
20
+ } from "./chunk-6T5JWO53.js";
21
21
  import {
22
22
  __toESM
23
- } from "./chunk-PZCWRKQE.js";
23
+ } from "./chunk-PZT42DUC.js";
24
24
 
25
25
  // src/server-errors.ts
26
26
  var import_picocolors = __toESM(require_picocolors(), 1), import_ts_dedent = __toESM(require_dist(), 1);
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_3h3bsnbtanf from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_3h3bsnbtanf from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_3h3bsnbtanf from "node:module";
1
+ import CJS_COMPAT_NODE_URL_6oizoa9gi2s from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6oizoa9gi2s from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6oizoa9gi2s from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_3h3bsnbtanf.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_3h3bsnbtanf.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_3h3bsnbtanf.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_6oizoa9gi2s.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6oizoa9gi2s.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6oizoa9gi2s.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,13 +12,13 @@ var require = CJS_COMPAT_NODE_MODULE_3h3bsnbtanf.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-PZCWRKQE.js";
15
+ } from "./chunk-PZT42DUC.js";
16
16
 
17
17
  // ../../node_modules/picomatch/lib/constants.js
18
18
  var require_constants = __commonJS({
19
19
  "../../node_modules/picomatch/lib/constants.js"(exports, module) {
20
20
  "use strict";
21
- var path = __require("path"), WIN_SLASH = "\\\\/", WIN_NO_SLASH = `[^${WIN_SLASH}]`, DOT_LITERAL = "\\.", PLUS_LITERAL = "\\+", QMARK_LITERAL = "\\?", SLASH_LITERAL = "\\/", ONE_CHAR = "(?=.)", QMARK = "[^/]", END_ANCHOR = `(?:${SLASH_LITERAL}|$)`, START_ANCHOR = `(?:^|${SLASH_LITERAL})`, DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`, NO_DOT = `(?!${DOT_LITERAL})`, NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`, NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`, NO_DOTS_SLASH = `(?!${DOTS_SLASH})`, QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`, STAR = `${QMARK}*?`, POSIX_CHARS = {
21
+ var path2 = __require("path"), WIN_SLASH = "\\\\/", WIN_NO_SLASH = `[^${WIN_SLASH}]`, DOT_LITERAL = "\\.", PLUS_LITERAL = "\\+", QMARK_LITERAL = "\\?", SLASH_LITERAL = "\\/", ONE_CHAR = "(?=.)", QMARK = "[^/]", END_ANCHOR = `(?:${SLASH_LITERAL}|$)`, START_ANCHOR = `(?:^|${SLASH_LITERAL})`, DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`, NO_DOT = `(?!${DOT_LITERAL})`, NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`, NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`, NO_DOTS_SLASH = `(?!${DOTS_SLASH})`, QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`, STAR = `${QMARK}*?`, POSIX_CHARS = {
22
22
  DOT_LITERAL,
23
23
  PLUS_LITERAL,
24
24
  QMARK_LITERAL,
@@ -168,7 +168,7 @@ var require_constants = __commonJS({
168
168
  /* | */
169
169
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
170
170
  /* \uFEFF */
171
- SEP: path.sep,
171
+ SEP: path2.sep,
172
172
  /**
173
173
  * Create EXTGLOB_CHARS
174
174
  */
@@ -195,7 +195,7 @@ var require_constants = __commonJS({
195
195
  var require_utils = __commonJS({
196
196
  "../../node_modules/picomatch/lib/utils.js"(exports) {
197
197
  "use strict";
198
- var path = __require("path"), win32 = process.platform === "win32", {
198
+ var path2 = __require("path"), win32 = process.platform === "win32", {
199
199
  REGEX_BACKSLASH,
200
200
  REGEX_REMOVE_BACKSLASH,
201
201
  REGEX_SPECIAL_CHARS,
@@ -211,7 +211,7 @@ var require_utils = __commonJS({
211
211
  let segs = process.version.slice(1).split(".").map(Number);
212
212
  return segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10;
213
213
  };
214
- exports.isWindows = (options) => options && typeof options.windows == "boolean" ? options.windows : win32 === !0 || path.sep === "\\";
214
+ exports.isWindows = (options) => options && typeof options.windows == "boolean" ? options.windows : win32 === !0 || path2.sep === "\\";
215
215
  exports.escapeLast = (input, char, lastIdx) => {
216
216
  let idx = input.lastIndexOf(char, lastIdx);
217
217
  return idx === -1 ? input : input[idx - 1] === "\\" ? exports.escapeLast(input, char, idx - 1) : `${input.slice(0, idx)}\\${input.slice(idx)}`;
@@ -862,7 +862,7 @@ var require_parse = __commonJS({
862
862
  var require_picomatch = __commonJS({
863
863
  "../../node_modules/picomatch/lib/picomatch.js"(exports, module) {
864
864
  "use strict";
865
- var path = __require("path"), scan = require_scan(), parse = require_parse(), utils = require_utils(), constants = require_constants(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
865
+ var path2 = __require("path"), scan = require_scan(), parse = require_parse(), utils = require_utils(), constants = require_constants(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
866
866
  if (Array.isArray(glob)) {
867
867
  let fns = glob.map((input) => picomatch(input, options, returnState));
868
868
  return (str) => {
@@ -897,7 +897,7 @@ var require_picomatch = __commonJS({
897
897
  let opts = options || {}, format = opts.format || (posix ? utils.toPosixSlashes : null), match = input === glob, output = match && format ? format(input) : input;
898
898
  return match === !1 && (output = format ? format(input) : input, match = output === glob), (match === !1 || opts.capture === !0) && (opts.matchBase === !0 || opts.basename === !0 ? match = picomatch.matchBase(input, regex, options, posix) : match = regex.exec(output)), { isMatch: !!match, match, output };
899
899
  };
900
- picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path.basename(input));
900
+ picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path2.basename(input));
901
901
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
902
902
  picomatch.parse = (pattern, options) => Array.isArray(pattern) ? pattern.map((p) => picomatch.parse(p, options)) : parse(pattern, { ...options, fastpaths: !1 });
903
903
  picomatch.scan = (input, options) => scan(input, options);
@@ -937,7 +937,29 @@ var require_picomatch2 = __commonJS({
937
937
  }
938
938
  });
939
939
 
940
+ // ../../node_modules/unicorn-magic/node.js
941
+ import { promisify } from "node:util";
942
+ import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
943
+ import path from "node:path";
944
+ import { fileURLToPath } from "node:url";
945
+ var execFileOriginal = promisify(execFileCallback);
946
+ function toPath(urlOrPath) {
947
+ return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
948
+ }
949
+ function traversePathUp(startPath) {
950
+ return {
951
+ *[Symbol.iterator]() {
952
+ let currentPath = path.resolve(toPath(startPath)), previousPath;
953
+ for (; previousPath !== currentPath; )
954
+ yield currentPath, previousPath = currentPath, currentPath = path.resolve(currentPath, "..");
955
+ }
956
+ };
957
+ }
958
+ var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
959
+
940
960
  export {
941
961
  require_utils,
942
- require_picomatch2 as require_picomatch
962
+ require_picomatch2 as require_picomatch,
963
+ toPath,
964
+ traversePathUp
943
965
  };