storybook 10.1.0-beta.5 → 10.1.0

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 (58) hide show
  1. package/dist/_node-chunks/{builder-manager-DKZOFL36.js → builder-manager-TBVQZVCU.js} +12 -12
  2. package/dist/_node-chunks/{camelcase-OYLEV2Q6.js → camelcase-GL7MRGAO.js} +7 -7
  3. package/dist/_node-chunks/{chunk-DKJWN7NS.js → chunk-27P77OTT.js} +9 -9
  4. package/dist/_node-chunks/{chunk-IKGF3NTB.js → chunk-3H6TSCUK.js} +36 -20
  5. package/dist/_node-chunks/{chunk-WXJLEHGP.js → chunk-3KKQC5PO.js} +7 -7
  6. package/dist/_node-chunks/{chunk-Q6Q7GGYG.js → chunk-43EZZW55.js} +6 -6
  7. package/dist/_node-chunks/{chunk-VEUCEGV5.js → chunk-4HOGBBWW.js} +6 -6
  8. package/dist/_node-chunks/{chunk-3VCEM4KX.js → chunk-5TTETS4K.js} +6 -6
  9. package/dist/_node-chunks/{chunk-3R7S7OBR.js → chunk-AY574RLF.js} +7 -7
  10. package/dist/_node-chunks/{chunk-RV4TIB2A.js → chunk-BUM2PW4Q.js} +7 -7
  11. package/dist/_node-chunks/{chunk-LE77BUC7.js → chunk-D66GRLGY.js} +16 -16
  12. package/dist/_node-chunks/{chunk-UAAE3CFN.js → chunk-ECQTJTVF.js} +6 -6
  13. package/dist/_node-chunks/chunk-EYPUSWTN.js +20 -0
  14. package/dist/_node-chunks/{chunk-5ZLC6NEA.js → chunk-EZFFXFBR.js} +7 -7
  15. package/dist/_node-chunks/{chunk-WP2HYYIX.js → chunk-G2K7S3M2.js} +9 -9
  16. package/dist/_node-chunks/{chunk-U55VVTKI.js → chunk-ID62YRSB.js} +7 -7
  17. package/dist/_node-chunks/{chunk-WP55QOFC.js → chunk-IEYUK7LB.js} +7 -7
  18. package/dist/_node-chunks/chunk-L2IGA3QO.js +61 -0
  19. package/dist/_node-chunks/chunk-LPS2U25K.js +18 -0
  20. package/dist/_node-chunks/{chunk-LGS44CQ3.js → chunk-OOIMV6PC.js} +14 -21
  21. package/dist/_node-chunks/{chunk-VVQNCKWG.js → chunk-OZOF7Z4L.js} +8 -8
  22. package/dist/_node-chunks/{chunk-ITQ5LAB5.js → chunk-S5WYA56W.js} +6 -6
  23. package/dist/_node-chunks/{chunk-O4VEAB4L.js → chunk-SE2MGKVJ.js} +6 -6
  24. package/dist/_node-chunks/{chunk-O6MAIGNQ.js → chunk-SF2DKOPT.js} +13 -13
  25. package/dist/_node-chunks/chunk-SJZFPUUP.js +23 -0
  26. package/dist/_node-chunks/{chunk-AWAJ6MNP.js → chunk-SMFX664O.js} +10 -10
  27. package/dist/_node-chunks/{chunk-FPWWB56H.js → chunk-TLS5NEN4.js} +10 -9
  28. package/dist/_node-chunks/{chunk-ULRPJDQG.js → chunk-UUGKJ4LL.js} +7 -7
  29. package/dist/_node-chunks/{chunk-XEZ4YPF3.js → chunk-ZM6IRVDJ.js} +7 -7
  30. package/dist/_node-chunks/{chunk-S3FEVISB.js → chunk-ZQBOEJL3.js} +6 -6
  31. package/dist/_node-chunks/{dist-CYJGIQZ4.js → dist-7C7BHY55.js} +9 -9
  32. package/dist/_node-chunks/{globby-QGM6GHYQ.js → globby-QG573UKS.js} +9 -9
  33. package/dist/_node-chunks/{lib-R7D5AM5W.js → lib-LFINDS7W.js} +7 -7
  34. package/dist/_node-chunks/{mdx-N42X6CFJ-WSYY7WM6.js → mdx-N42X6CFJ-Z5CA274Q.js} +8 -8
  35. package/dist/_node-chunks/{p-limit-S3E66PR5.js → p-limit-WBJVQT4H.js} +7 -7
  36. package/dist/babel/index.js +10 -10
  37. package/dist/bin/core.js +12 -12
  38. package/dist/bin/dispatcher.js +11 -11
  39. package/dist/bin/loader.js +9 -9
  40. package/dist/cli/index.d.ts +3 -1
  41. package/dist/cli/index.js +18 -18
  42. package/dist/common/index.d.ts +3 -1
  43. package/dist/common/index.js +19 -19
  44. package/dist/core-server/index.js +33 -33
  45. package/dist/core-server/presets/common-override-preset.js +9 -9
  46. package/dist/core-server/presets/common-preset.js +25 -25
  47. package/dist/csf-tools/index.js +9 -9
  48. package/dist/manager/globals-runtime.js +1 -1
  49. package/dist/manager-api/index.js +1 -1
  50. package/dist/mocking-utils/index.js +8 -8
  51. package/dist/node-logger/index.js +9 -9
  52. package/dist/server-errors.js +11 -11
  53. package/dist/telemetry/index.js +23 -23
  54. package/package.json +1 -1
  55. package/dist/_node-chunks/chunk-3SEQ2GLE.js +0 -20
  56. package/dist/_node-chunks/chunk-BQ4MHK5P.js +0 -23
  57. package/dist/_node-chunks/chunk-LJNPOMKR.js +0 -61
  58. package/dist/_node-chunks/chunk-P5K26BIZ.js +0 -18
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,26 +13,26 @@ import {
13
13
  BROWSER_TARGETS,
14
14
  NODE_TARGET,
15
15
  SUPPORTED_FEATURES
16
- } from "./chunk-Q6Q7GGYG.js";
16
+ } from "./chunk-43EZZW55.js";
17
17
  import {
18
18
  require_build
19
- } from "./chunk-ULRPJDQG.js";
19
+ } from "./chunk-UUGKJ4LL.js";
20
20
  import {
21
21
  resolveModulePath,
22
22
  resolvePackageDir
23
- } from "./chunk-XEZ4YPF3.js";
23
+ } from "./chunk-ZM6IRVDJ.js";
24
24
  import {
25
25
  join,
26
26
  parse
27
- } from "./chunk-VEUCEGV5.js";
27
+ } from "./chunk-4HOGBBWW.js";
28
28
  import {
29
29
  slash
30
- } from "./chunk-3SEQ2GLE.js";
30
+ } from "./chunk-EYPUSWTN.js";
31
31
  import {
32
32
  __commonJS,
33
33
  __require,
34
34
  __toESM
35
- } from "./chunk-S3FEVISB.js";
35
+ } from "./chunk-ZQBOEJL3.js";
36
36
 
37
37
  // ../node_modules/ejs/lib/utils.js
38
38
  var require_utils = __commonJS({
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
- import "./chunk-S3FEVISB.js";
12
+ import "./chunk-ZQBOEJL3.js";
13
13
 
14
14
  // ../node_modules/camelcase/index.js
15
15
  var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, SEPARATORS = /[_.\- ]+/, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
@@ -1,24 +1,24 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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-O4VEAB4L.js";
14
+ } from "./chunk-SE2MGKVJ.js";
15
15
  import {
16
16
  require_dist
17
- } from "./chunk-RV4TIB2A.js";
17
+ } from "./chunk-BUM2PW4Q.js";
18
18
  import {
19
19
  __export,
20
20
  __toESM
21
- } from "./chunk-S3FEVISB.js";
21
+ } from "./chunk-ZQBOEJL3.js";
22
22
 
23
23
  // src/cli/globalSettings.ts
24
24
  var import_ts_dedent = __toESM(require_dist(), 1);
@@ -1,54 +1,54 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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
  versions_default
14
- } from "./chunk-LJNPOMKR.js";
14
+ } from "./chunk-L2IGA3QO.js";
15
15
  import {
16
16
  require_picomatch
17
- } from "./chunk-3R7S7OBR.js";
17
+ } from "./chunk-AY574RLF.js";
18
18
  import {
19
19
  logger
20
- } from "./chunk-FPWWB56H.js";
20
+ } from "./chunk-TLS5NEN4.js";
21
21
  import {
22
22
  any,
23
23
  from,
24
24
  invariant,
25
25
  up,
26
26
  up2
27
- } from "./chunk-UAAE3CFN.js";
27
+ } from "./chunk-ECQTJTVF.js";
28
28
  import {
29
29
  importModule,
30
30
  resolveModulePath,
31
31
  resolvePackageDir,
32
32
  safeResolveModule
33
- } from "./chunk-XEZ4YPF3.js";
33
+ } from "./chunk-ZM6IRVDJ.js";
34
34
  import {
35
35
  join,
36
36
  parse,
37
37
  resolve
38
- } from "./chunk-VEUCEGV5.js";
38
+ } from "./chunk-4HOGBBWW.js";
39
39
  import {
40
40
  glob,
41
41
  globSync
42
- } from "./chunk-U55VVTKI.js";
42
+ } from "./chunk-ID62YRSB.js";
43
43
  import {
44
44
  slash
45
- } from "./chunk-3SEQ2GLE.js";
45
+ } from "./chunk-EYPUSWTN.js";
46
46
  import {
47
47
  require_dist
48
- } from "./chunk-RV4TIB2A.js";
48
+ } from "./chunk-BUM2PW4Q.js";
49
49
  import {
50
50
  require_picocolors
51
- } from "./chunk-WXJLEHGP.js";
51
+ } from "./chunk-3KKQC5PO.js";
52
52
  import {
53
53
  __commonJS,
54
54
  __esm,
@@ -56,7 +56,7 @@ import {
56
56
  __require,
57
57
  __toCommonJS,
58
58
  __toESM
59
- } from "./chunk-S3FEVISB.js";
59
+ } from "./chunk-ZQBOEJL3.js";
60
60
 
61
61
  // ../node_modules/resolve/lib/homedir.js
62
62
  var require_homedir = __commonJS({
@@ -11086,7 +11086,7 @@ function normalizeStoryPath(filename) {
11086
11086
 
11087
11087
  // src/common/utils/envs.ts
11088
11088
  async function loadEnvs(options = {}) {
11089
- let { getEnvironment } = await import("./lib-R7D5AM5W.js"), defaultNodeEnv = options.production ? "production" : "development", env2 = {
11089
+ let { getEnvironment } = await import("./lib-LFINDS7W.js"), defaultNodeEnv = options.production ? "production" : "development", env2 = {
11090
11090
  // eslint-disable-next-line @typescript-eslint/dot-notation
11091
11091
  NODE_ENV: process.env.NODE_ENV || defaultNodeEnv,
11092
11092
  NODE_PATH: process.env.NODE_PATH || "",
@@ -13719,6 +13719,9 @@ var NPM_ERROR_REGEX = /npm ERR! code (\w+)/, NPM_ERROR_CODES = {
13719
13719
  getRemoteRunCommand(pkg, args, specifier) {
13720
13720
  return `bunx ${pkg}${specifier ? `@${specifier}` : ""} ${args.join(" ")}`;
13721
13721
  }
13722
+ getPackageCommand(args) {
13723
+ return `bunx ${args.join(" ")}`;
13724
+ }
13722
13725
  async getModulePackageJSON(packageName) {
13723
13726
  let wantedPath = join11("node_modules", packageName, "package.json"), packageJsonPath = up2(wantedPath, {
13724
13727
  cwd: this.primaryPackageJson.operationDir,
@@ -13912,6 +13915,9 @@ var NPM_ERROR_REGEX2 = /npm (ERR!|error) (code|errno) (\w+)/i, NPM_ERROR_CODES2
13912
13915
  getInstallArgs() {
13913
13916
  return this.installArgs || (this.installArgs = []), this.installArgs;
13914
13917
  }
13918
+ getPackageCommand(args) {
13919
+ return `npx ${args.join(" ")}`;
13920
+ }
13915
13921
  runPackageCommand(options) {
13916
13922
  return executeCommand({
13917
13923
  command: "npx",
@@ -14066,6 +14072,9 @@ var PNPM_ERROR_REGEX = /(ELIFECYCLE|ERR_PNPM_[A-Z_]+)\s+(.*)/i, PNPMProxy = clas
14066
14072
  getInstallArgs() {
14067
14073
  return this.installArgs || (this.installArgs = [], this.detectWorkspaceRoot() && this.installArgs.push("-w")), this.installArgs;
14068
14074
  }
14075
+ getPackageCommand(args) {
14076
+ return `pnpm exec ${args.join(" ")}`;
14077
+ }
14069
14078
  runPackageCommand({
14070
14079
  args,
14071
14080
  ...options
@@ -14229,6 +14238,10 @@ var YARN1_ERROR_REGEX = /^error\s(.*)$/gm, Yarn1Proxy = class extends JsPackageM
14229
14238
  getRunCommand(command) {
14230
14239
  return `yarn ${command}`;
14231
14240
  }
14241
+ getPackageCommand(args) {
14242
+ let [command, ...rest] = args;
14243
+ return `yarn exec ${command} -- ${rest.join(" ")}`;
14244
+ }
14232
14245
  runPackageCommand({
14233
14246
  args,
14234
14247
  ...options
@@ -14419,6 +14432,9 @@ var CRITICAL_YARN2_ERROR_CODES = {
14419
14432
  getRunCommand(command) {
14420
14433
  return `yarn ${command}`;
14421
14434
  }
14435
+ getPackageCommand(args) {
14436
+ return `yarn exec ${args.join(" ")}`;
14437
+ }
14422
14438
  runPackageCommand({
14423
14439
  args,
14424
14440
  ...options
@@ -14727,7 +14743,7 @@ async function scanAndTransformFiles({
14727
14743
  initialValue: defaultGlob
14728
14744
  });
14729
14745
  logger13.log("Scanning for affected files...");
14730
- let globby = (await import("./globby-QGM6GHYQ.js")).globby, sourceFiles = await globby([glob2], {
14746
+ let globby = (await import("./globby-QG573UKS.js")).globby, sourceFiles = await globby([glob2], {
14731
14747
  ...commonGlobOptions(""),
14732
14748
  ignore: ["**/node_modules/**"],
14733
14749
  dot: !0,
@@ -14748,7 +14764,7 @@ function transformImports(source, renamedImports) {
14748
14764
  return hasChanges ? transformed : null;
14749
14765
  }
14750
14766
  var transformImportFiles = async (files, renamedImports, dryRun) => {
14751
- let errors = [], { default: pLimit } = await import("./p-limit-S3E66PR5.js"), limit = pLimit(10);
14767
+ let errors = [], { default: pLimit } = await import("./p-limit-WBJVQT4H.js"), limit = pLimit(10);
14752
14768
  return await Promise.all(
14753
14769
  files.map(
14754
14770
  (file) => limit(async () => {
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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-S3FEVISB.js";
14
+ } from "./chunk-ZQBOEJL3.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_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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_1232wqooqc3l.createRequire(import.meta.url)
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-S3FEVISB.js";
15
+ } from "./chunk-ZQBOEJL3.js";
16
16
 
17
17
  // ../node_modules/picomatch/lib/constants.js
18
18
  var require_constants = __commonJS({
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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-S3FEVISB.js";
14
+ } from "./chunk-ZQBOEJL3.js";
15
15
 
16
16
  // ../node_modules/ts-dedent/dist/index.js
17
17
  var require_dist = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,27 +13,27 @@ import {
13
13
  any,
14
14
  invariant,
15
15
  up2 as up
16
- } from "./chunk-UAAE3CFN.js";
16
+ } from "./chunk-ECQTJTVF.js";
17
17
  import {
18
18
  resolvePackageDir
19
- } from "./chunk-XEZ4YPF3.js";
19
+ } from "./chunk-ZM6IRVDJ.js";
20
20
  import {
21
21
  require_dist
22
- } from "./chunk-RV4TIB2A.js";
22
+ } from "./chunk-BUM2PW4Q.js";
23
23
  import {
24
24
  babelParse,
25
25
  recast,
26
26
  traverse,
27
27
  types
28
- } from "./chunk-WP2HYYIX.js";
28
+ } from "./chunk-G2K7S3M2.js";
29
29
  import {
30
30
  require_picocolors
31
- } from "./chunk-WXJLEHGP.js";
31
+ } from "./chunk-3KKQC5PO.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
35
35
  __toESM
36
- } from "./chunk-S3FEVISB.js";
36
+ } from "./chunk-ZQBOEJL3.js";
37
37
 
38
38
  // ../node_modules/esprima/dist/esprima.js
39
39
  var require_esprima = __commonJS({
@@ -5870,11 +5870,11 @@ var AddonVitestService = class {
5870
5870
  * @returns Array of error messages if installation fails
5871
5871
  */
5872
5872
  async installPlaywright(options = {}) {
5873
- let errors = [], playwrightCommand = ["playwright", "install", "chromium", "--with-deps"];
5873
+ let errors = [], playwrightCommand = ["playwright", "install", "chromium", "--with-deps"], playwrightCommandString = this.packageManager.getPackageCommand(playwrightCommand);
5874
5874
  try {
5875
5875
  (options.yes ? !0 : await (async () => (logger3.log(import_ts_dedent2.dedent`
5876
5876
  Playwright browser binaries are necessary for @storybook/addon-vitest. The download can take some time. If you don't want to wait, you can skip the installation and run the following command manually later:
5877
- ${CLI_COLORS.cta(`npx ${playwrightCommand.join(" ")}`)}
5877
+ ${CLI_COLORS.cta(playwrightCommandString)}
5878
5878
  `), prompt3.confirm({
5879
5879
  message: "Do you want to install Playwright with Chromium now?",
5880
5880
  initialValue: !0
@@ -5886,8 +5886,8 @@ var AddonVitestService = class {
5886
5886
  }),
5887
5887
  {
5888
5888
  id: "playwright-installation",
5889
- intro: 'Installing Playwright browser binaries (Press "c" to abort)',
5890
- error: `An error occurred while installing Playwright browser binaries. Please run the following command later: npx ${playwrightCommand.join(" ")}`,
5889
+ intro: 'Installing Playwright browser binaries (press "c" to abort)',
5890
+ error: `An error occurred while installing Playwright browser binaries. Please run the following command later: ${playwrightCommandString}`,
5891
5891
  success: "Playwright browser binaries installed successfully",
5892
5892
  abortable: !0
5893
5893
  }
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -0,0 +1,20 @@
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+
13
+ // ../node_modules/slash/index.js
14
+ function slash(path) {
15
+ return path.startsWith("\\\\?\\") ? path : path.replace(/\\/g, "/");
16
+ }
17
+
18
+ export {
19
+ slash
20
+ };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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_1232wqooqc3l.createRequire(import.meta.url)
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-S3FEVISB.js";
15
+ } from "./chunk-ZQBOEJL3.js";
16
16
 
17
17
  // ../node_modules/ms/index.js
18
18
  var require_ms = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,15 +12,15 @@ var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url)
12
12
  import {
13
13
  require_lib,
14
14
  require_src
15
- } from "./chunk-5ZLC6NEA.js";
15
+ } from "./chunk-EZFFXFBR.js";
16
16
  import {
17
17
  require_picocolors
18
- } from "./chunk-WXJLEHGP.js";
18
+ } from "./chunk-3KKQC5PO.js";
19
19
  import {
20
20
  __commonJS,
21
21
  __require,
22
22
  __toESM
23
- } from "./chunk-S3FEVISB.js";
23
+ } from "./chunk-ZQBOEJL3.js";
24
24
 
25
25
  // ../node_modules/@babel/types/lib/utils/shallowEqual.js
26
26
  var require_shallowEqual = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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_1232wqooqc3l.createRequire(import.meta.url)
12
12
  import {
13
13
  __commonJS,
14
14
  __toESM
15
- } from "./chunk-S3FEVISB.js";
15
+ } from "./chunk-ZQBOEJL3.js";
16
16
 
17
17
  // ../node_modules/balanced-match/index.js
18
18
  var require_balanced_match = __commonJS({
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_1232wqooqc3l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1232wqooqc3l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1232wqooqc3l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_eb0hv8ko635 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_eb0hv8ko635 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_eb0hv8ko635 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1232wqooqc3l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1232wqooqc3l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1232wqooqc3l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_eb0hv8ko635.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_eb0hv8ko635.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_eb0hv8ko635.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-S3FEVISB.js";
14
+ } from "./chunk-ZQBOEJL3.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, {