storybook 10.1.0-beta.4 → 10.1.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/_browser-chunks/{Color-FTG7SQDA.js → Color-TNPFN3FC.js} +2 -2
  2. package/dist/_browser-chunks/{WithTooltip-LMROHDUP.js → WithTooltip-IO6J4KBT.js} +2 -2
  3. package/dist/_node-chunks/{builder-manager-T3A7QLUO.js → builder-manager-OYPBAOYY.js} +13 -13
  4. package/dist/_node-chunks/{camelcase-WMMYRUH4.js → camelcase-KHLD4CBZ.js} +7 -7
  5. package/dist/_node-chunks/{chunk-TC7X5DN2.js → chunk-3YPPVXVV.js} +10 -10
  6. package/dist/_node-chunks/chunk-4JHERXHJ.js +61 -0
  7. package/dist/_node-chunks/{chunk-TBYOSPAV.js → chunk-4K5Y3HIQ.js} +6 -6
  8. package/dist/_node-chunks/{chunk-VW25O2YM.js → chunk-5VOKWTHJ.js} +6 -6
  9. package/dist/_node-chunks/{chunk-NORFPLB6.js → chunk-676RYYTC.js} +7 -7
  10. package/dist/_node-chunks/{chunk-C6RLDV2P.js → chunk-6O2EILDG.js} +8 -8
  11. package/dist/_node-chunks/{chunk-JYAXWHGH.js → chunk-6SDCYDUQ.js} +9 -9
  12. package/dist/_node-chunks/{chunk-HT32VUX7.js → chunk-AIU56TIK.js} +7 -7
  13. package/dist/_node-chunks/{chunk-RSJK2D7X.js → chunk-CDT6SGHG.js} +6 -6
  14. package/dist/_node-chunks/{chunk-EFTR6VSG.js → chunk-DCDE2LZP.js} +9 -9
  15. package/dist/_node-chunks/{chunk-TCLOOFNE.js → chunk-F67RSVRX.js} +7 -7
  16. package/dist/_node-chunks/{chunk-WGBDDI6W.js → chunk-GRWEJWC6.js} +10 -9
  17. package/dist/_node-chunks/{chunk-67VVNDJJ.js → chunk-IZ4CTLAY.js} +6 -6
  18. package/dist/_node-chunks/{chunk-KAVR7KJP.js → chunk-JKZ5HEMT.js} +36 -20
  19. package/dist/_node-chunks/{chunk-YZ3XRP4N.js → chunk-K43XPHKR.js} +6 -6
  20. package/dist/_node-chunks/{chunk-VN7SAKM4.js → chunk-KNKOGWDU.js} +6 -6
  21. package/dist/_node-chunks/chunk-KXDN7S7Y.js +23 -0
  22. package/dist/_node-chunks/chunk-L3S6HFZ7.js +18 -0
  23. package/dist/_node-chunks/{chunk-CSFSQ2I4.js → chunk-MKHH5E6J.js} +7 -7
  24. package/dist/_node-chunks/{chunk-CM44JL5Z.js → chunk-NHZRDKD5.js} +6 -6
  25. package/dist/_node-chunks/{chunk-KI6KY2ZN.js → chunk-OR5YQT2Y.js} +13 -13
  26. package/dist/_node-chunks/{chunk-5DEFF2GB.js → chunk-QWPDENGK.js} +7 -7
  27. package/dist/_node-chunks/{chunk-HDMHX5QM.js → chunk-R4N2FLEZ.js} +7 -7
  28. package/dist/_node-chunks/{chunk-EFN4RLWH.js → chunk-RNG6NQRW.js} +7 -7
  29. package/dist/_node-chunks/{chunk-YTTOTUWC.js → chunk-VZ6EDE7M.js} +6 -6
  30. package/dist/_node-chunks/{chunk-3MVB5IZX.js → chunk-WXWHNHZE.js} +16 -16
  31. package/dist/_node-chunks/{chunk-EJPOXNSG.js → chunk-XC4RJ4LY.js} +14 -21
  32. package/dist/_node-chunks/{chunk-PMZEJJNX.js → chunk-YOAOSHXI.js} +7 -7
  33. package/dist/_node-chunks/{dist-L6XLFQOU.js → dist-BS45SS3Y.js} +9 -9
  34. package/dist/_node-chunks/{globby-7IXLXFEA.js → globby-WIEUQD7O.js} +9 -9
  35. package/dist/_node-chunks/{lib-T5L2ZSAG.js → lib-UNDA723W.js} +7 -7
  36. package/dist/_node-chunks/{mdx-N42X6CFJ-GOOKUTSA.js → mdx-N42X6CFJ-ABE6VGZM.js} +8 -8
  37. package/dist/_node-chunks/{p-limit-7GKATDEW.js → p-limit-XD6JNZJT.js} +7 -7
  38. package/dist/babel/index.js +10 -10
  39. package/dist/bin/core.js +12 -12
  40. package/dist/bin/dispatcher.js +11 -11
  41. package/dist/bin/loader.js +9 -9
  42. package/dist/cli/index.d.ts +3 -1
  43. package/dist/cli/index.js +18 -18
  44. package/dist/common/index.d.ts +3 -1
  45. package/dist/common/index.js +19 -19
  46. package/dist/components/index.d.ts +131 -117
  47. package/dist/components/index.js +514 -449
  48. package/dist/core-server/index.js +33 -33
  49. package/dist/core-server/presets/common-manager.js +2 -2
  50. package/dist/core-server/presets/common-override-preset.js +9 -9
  51. package/dist/core-server/presets/common-preset.js +25 -25
  52. package/dist/csf-tools/index.js +9 -9
  53. package/dist/manager/globals-runtime.js +7207 -7142
  54. package/dist/manager/runtime.js +156 -232
  55. package/dist/manager-api/index.d.ts +178 -178
  56. package/dist/manager-api/index.js +1 -1
  57. package/dist/mocking-utils/index.js +8 -8
  58. package/dist/node-logger/index.js +9 -9
  59. package/dist/preview-api/index.d.ts +67 -68
  60. package/dist/server-errors.js +11 -11
  61. package/dist/telemetry/index.js +23 -23
  62. package/package.json +1 -1
  63. package/dist/_node-chunks/chunk-IQFN7VY4.js +0 -23
  64. package/dist/_node-chunks/chunk-K7U3BSTR.js +0 -61
  65. package/dist/_node-chunks/chunk-YN3C74EA.js +0 -18
@@ -1,54 +1,54 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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-K7U3BSTR.js";
14
+ } from "./chunk-4JHERXHJ.js";
15
15
  import {
16
16
  require_picomatch
17
- } from "./chunk-HT32VUX7.js";
17
+ } from "./chunk-AIU56TIK.js";
18
18
  import {
19
19
  logger
20
- } from "./chunk-WGBDDI6W.js";
20
+ } from "./chunk-GRWEJWC6.js";
21
21
  import {
22
22
  any,
23
23
  from,
24
24
  invariant,
25
25
  up,
26
26
  up2
27
- } from "./chunk-YTTOTUWC.js";
27
+ } from "./chunk-VZ6EDE7M.js";
28
28
  import {
29
29
  importModule,
30
30
  resolveModulePath,
31
31
  resolvePackageDir,
32
32
  safeResolveModule
33
- } from "./chunk-NORFPLB6.js";
33
+ } from "./chunk-676RYYTC.js";
34
34
  import {
35
35
  join,
36
36
  parse,
37
37
  resolve
38
- } from "./chunk-TBYOSPAV.js";
38
+ } from "./chunk-4K5Y3HIQ.js";
39
39
  import {
40
40
  glob,
41
41
  globSync
42
- } from "./chunk-CSFSQ2I4.js";
42
+ } from "./chunk-MKHH5E6J.js";
43
43
  import {
44
44
  slash
45
- } from "./chunk-YZ3XRP4N.js";
45
+ } from "./chunk-K43XPHKR.js";
46
46
  import {
47
47
  require_dist
48
- } from "./chunk-HDMHX5QM.js";
48
+ } from "./chunk-R4N2FLEZ.js";
49
49
  import {
50
50
  require_picocolors
51
- } from "./chunk-TCLOOFNE.js";
51
+ } from "./chunk-F67RSVRX.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-VW25O2YM.js";
59
+ } from "./chunk-5VOKWTHJ.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-T5L2ZSAG.js"), defaultNodeEnv = options.production ? "production" : "development", env2 = {
11089
+ let { getEnvironment } = await import("./lib-UNDA723W.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-7IXLXFEA.js")).globby, sourceFiles = await globby([glob2], {
14746
+ let globby = (await import("./globby-WIEUQD7O.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-7GKATDEW.js"), limit = pLimit(10);
14767
+ let errors = [], { default: pLimit } = await import("./p-limit-XD6JNZJT.js"), limit = pLimit(10);
14752
14768
  return await Promise.all(
14753
14769
  files.map(
14754
14770
  (file) => limit(async () => {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -0,0 +1,23 @@
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ any
14
+ } from "./chunk-VZ6EDE7M.js";
15
+
16
+ // src/cli/detect.ts
17
+ async function detectPnp() {
18
+ return !!any([".pnp.js", ".pnp.cjs"]);
19
+ }
20
+
21
+ export {
22
+ detectPnp
23
+ };
@@ -0,0 +1,18 @@
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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.1.0-beta.6";
15
+
16
+ export {
17
+ version
18
+ };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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_a6gceaz3qeh.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __toESM
15
- } from "./chunk-VW25O2YM.js";
15
+ } from "./chunk-5VOKWTHJ.js";
16
16
 
17
17
  // ../node_modules/balanced-match/index.js
18
18
  var require_balanced_match = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,35 +1,35 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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_build
14
- } from "./chunk-EFN4RLWH.js";
14
+ } from "./chunk-RNG6NQRW.js";
15
15
  import {
16
16
  StorybookError
17
- } from "./chunk-RSJK2D7X.js";
17
+ } from "./chunk-CDT6SGHG.js";
18
18
  import {
19
19
  resolvePackageDir
20
- } from "./chunk-NORFPLB6.js";
20
+ } from "./chunk-676RYYTC.js";
21
21
  import {
22
22
  relative
23
- } from "./chunk-TBYOSPAV.js";
23
+ } from "./chunk-4K5Y3HIQ.js";
24
24
  import {
25
25
  require_dist
26
- } from "./chunk-HDMHX5QM.js";
26
+ } from "./chunk-R4N2FLEZ.js";
27
27
  import {
28
28
  require_picocolors
29
- } from "./chunk-TCLOOFNE.js";
29
+ } from "./chunk-F67RSVRX.js";
30
30
  import {
31
31
  __toESM
32
- } from "./chunk-VW25O2YM.js";
32
+ } from "./chunk-5VOKWTHJ.js";
33
33
 
34
34
  // src/core-server/utils/server-statics.ts
35
35
  import { existsSync, statSync } from "node:fs";
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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-VW25O2YM.js";
14
+ } from "./chunk-5VOKWTHJ.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,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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-VW25O2YM.js";
14
+ } from "./chunk-5VOKWTHJ.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_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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_a6gceaz3qeh.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-VW25O2YM.js";
15
+ } from "./chunk-5VOKWTHJ.js";
16
16
 
17
17
  // ../node_modules/totalist/sync/index.js
18
18
  var require_sync = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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-YTTOTUWC.js";
16
+ } from "./chunk-VZ6EDE7M.js";
17
17
  import {
18
18
  resolvePackageDir
19
- } from "./chunk-NORFPLB6.js";
19
+ } from "./chunk-676RYYTC.js";
20
20
  import {
21
21
  require_dist
22
- } from "./chunk-HDMHX5QM.js";
22
+ } from "./chunk-R4N2FLEZ.js";
23
23
  import {
24
24
  babelParse,
25
25
  recast,
26
26
  traverse,
27
27
  types
28
- } from "./chunk-EFTR6VSG.js";
28
+ } from "./chunk-DCDE2LZP.js";
29
29
  import {
30
30
  require_picocolors
31
- } from "./chunk-TCLOOFNE.js";
31
+ } from "./chunk-F67RSVRX.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
35
35
  __toESM
36
- } from "./chunk-VW25O2YM.js";
36
+ } from "./chunk-5VOKWTHJ.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,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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-YN3C74EA.js";
14
+ } from "./chunk-L3S6HFZ7.js";
15
15
  import {
16
16
  createFileSystemCache,
17
17
  execa,
@@ -19,28 +19,25 @@ import {
19
19
  getProjectRoot,
20
20
  resolvePathInStorybookCache,
21
21
  up
22
- } from "./chunk-KAVR7KJP.js";
22
+ } from "./chunk-JKZ5HEMT.js";
23
23
  import {
24
24
  getSessionId,
25
25
  nanoid,
26
26
  set
27
- } from "./chunk-67VVNDJJ.js";
27
+ } from "./chunk-IZ4CTLAY.js";
28
28
  import {
29
29
  globalSettings
30
- } from "./chunk-JYAXWHGH.js";
30
+ } from "./chunk-6SDCYDUQ.js";
31
31
  import {
32
32
  resolvePackageDir
33
- } from "./chunk-NORFPLB6.js";
33
+ } from "./chunk-676RYYTC.js";
34
34
  import {
35
35
  slash
36
- } from "./chunk-YZ3XRP4N.js";
37
- import {
38
- require_dist
39
- } from "./chunk-HDMHX5QM.js";
36
+ } from "./chunk-K43XPHKR.js";
40
37
  import {
41
38
  __commonJS,
42
39
  __toESM
43
- } from "./chunk-VW25O2YM.js";
40
+ } from "./chunk-5VOKWTHJ.js";
44
41
 
45
42
  // ../node_modules/fetch-retry/index.js
46
43
  var require_fetch_retry = __commonJS({
@@ -132,15 +129,11 @@ var require_fetch_retry = __commonJS({
132
129
  import { logger as logger2 } from "storybook/internal/node-logger";
133
130
 
134
131
  // src/telemetry/notify.ts
135
- var import_ts_dedent = __toESM(require_dist(), 1);
136
132
  import { cache } from "storybook/internal/common";
137
133
  import { logger } from "storybook/internal/node-logger";
138
134
  var TELEMETRY_KEY_NOTIFY_DATE = "telemetry-notification-date", called = !1, notify = async () => {
139
135
  called || (called = !0, await cache.get(TELEMETRY_KEY_NOTIFY_DATE, null) || (cache.set(TELEMETRY_KEY_NOTIFY_DATE, Date.now()), logger.info(
140
- import_ts_dedent.dedent`
141
- Attention: Storybook collects completely anonymous telemetry regarding usage. This information is used to shape Storybook's roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
142
- https://storybook.js.org/telemetry
143
- `
136
+ "Storybook collects completely anonymous usage telemetry. We use it to shape Storybook's roadmap and prioritize features. You can learn more, including how to opt out, at https://storybook.js.org/telemetry"
144
137
  )));
145
138
  };
146
139
 
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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_a6gceaz3qeh.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-VW25O2YM.js";
15
+ } from "./chunk-5VOKWTHJ.js";
16
16
 
17
17
  // ../node_modules/ms/index.js
18
18
  var require_ms = __commonJS({
@@ -1,18 +1,18 @@
1
- import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
1
+ import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  toEstree
14
- } from "./chunk-5DEFF2GB.js";
15
- import "./chunk-VW25O2YM.js";
14
+ } from "./chunk-QWPDENGK.js";
15
+ import "./chunk-5VOKWTHJ.js";
16
16
 
17
17
  // ../node_modules/@storybook/docs-mdx/dist/index.js
18
18
  var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute" && n.name.name === what), getAttrValue = (elt, what) => getAttr(elt, what)?.value, getAttrLiteral = (elt, what) => {
@@ -107,7 +107,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
107
107
  isTemplate: !1,
108
108
  metaTags: void 0,
109
109
  imports: void 0
110
- }, { compile } = await import("./mdx-N42X6CFJ-GOOKUTSA.js");
110
+ }, { compile } = await import("./mdx-N42X6CFJ-ABE6VGZM.js");
111
111
  await compile(code, {
112
112
  rehypePlugins: [[plugin, store]]
113
113
  });