storybook 10.0.1 → 10.0.3

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 (75) hide show
  1. package/dist/_node-chunks/{builder-manager-DR2RPQ4B.js → builder-manager-E4GQADE3.js} +12 -12
  2. package/dist/_node-chunks/camelcase-OHE5UKDS.js +18 -0
  3. package/dist/_node-chunks/{chunk-PO2UPJBZ.js → chunk-2LBTK4WC.js} +6 -6
  4. package/dist/_node-chunks/{chunk-VD2J3X4C.js → chunk-2R3IKO2U.js} +9 -9
  5. package/dist/_node-chunks/chunk-3GGHF3GB.js +61 -0
  6. package/dist/_node-chunks/chunk-3NVSSI6P.js +18 -0
  7. package/dist/_node-chunks/{chunk-KTSSIF7Y.js → chunk-4A2MRLKF.js} +7 -7
  8. package/dist/_node-chunks/{chunk-N3WVW3QB.js → chunk-4JELMOWY.js} +12 -12
  9. package/dist/_node-chunks/{chunk-XWVRU2IK.js → chunk-4OM5HH7C.js} +7 -7
  10. package/dist/_node-chunks/{chunk-U3IFUXZ6.js → chunk-6CXT2WNC.js} +10 -10
  11. package/dist/_node-chunks/{chunk-SQL6MCLB.js → chunk-6FLER2RK.js} +7 -7
  12. package/dist/_node-chunks/{chunk-KMMSVT6C.js → chunk-AAI7GAKC.js} +15 -15
  13. package/dist/_node-chunks/{chunk-ALAKQHSL.js → chunk-B4V7TTVD.js} +7 -7
  14. package/dist/_node-chunks/{chunk-TZ4UIEXE.js → chunk-CSY3WJXM.js} +7 -7
  15. package/dist/_node-chunks/{chunk-3WVO2BEW.js → chunk-EJMSHHNX.js} +7 -7
  16. package/dist/_node-chunks/{chunk-H7T5PULI.js → chunk-FJIMK54N.js} +9 -9
  17. package/dist/_node-chunks/{chunk-LHE3P5D2.js → chunk-HJVHA6UV.js} +7 -7
  18. package/dist/_node-chunks/{chunk-3VZU4AAT.js → chunk-HQPOTMHL.js} +36 -43
  19. package/dist/_node-chunks/{chunk-Z4E4GMT4.js → chunk-HVWOO2MA.js} +7 -7
  20. package/dist/_node-chunks/{chunk-PGIKVXE4.js → chunk-JO5FEXMV.js} +8 -8
  21. package/dist/_node-chunks/{chunk-MIQYCSH7.js → chunk-KDCKTIEA.js} +8 -8
  22. package/dist/_node-chunks/{chunk-5XEXP6NE.js → chunk-KHBCZXHG.js} +7 -7
  23. package/dist/_node-chunks/{chunk-66QE27AA.js → chunk-LWPHQ56E.js} +6 -6
  24. package/dist/_node-chunks/{chunk-2JPQ2CE4.js → chunk-OOOQPZ6Z.js} +25 -7
  25. package/dist/_node-chunks/{chunk-UJ4ZMDJ4.js → chunk-QAOM3DO5.js} +8 -8
  26. package/dist/_node-chunks/{chunk-FRIAWOAY.js → chunk-QQJAAKUD.js} +21 -21
  27. package/dist/_node-chunks/{chunk-SLGIE3DQ.js → chunk-S2SBPOU7.js} +7 -7
  28. package/dist/_node-chunks/{chunk-7KB3AWJU.js → chunk-TWSFNGL6.js} +7 -7
  29. package/dist/_node-chunks/{chunk-CH4AJIRC.js → chunk-UXEZ5D26.js} +8 -8
  30. package/dist/_node-chunks/{chunk-WBKG2WYK.js → chunk-VKPUBN6X.js} +12 -12
  31. package/dist/_node-chunks/{chunk-T2FMLYDK.js → chunk-VMJKE4R6.js} +7 -7
  32. package/dist/_node-chunks/{chunk-K2XXTVMC.js → chunk-WQESBUOQ.js} +7 -7
  33. package/dist/_node-chunks/{chunk-RS5NK4UP.js → chunk-XWWVIMQ7.js} +7 -7
  34. package/dist/_node-chunks/{chunk-KBHZ3GEC.js → chunk-YTKYZK7T.js} +7 -7
  35. package/dist/_node-chunks/{chunk-BZKNXOCX.js → chunk-ZXI44ZBV.js} +7 -7
  36. package/dist/_node-chunks/{dist-YCWHNHED.js → dist-TTYJRHMC.js} +9 -9
  37. package/dist/_node-chunks/{globby-C6VT7FAK.js → globby-RQKPSV62.js} +9 -9
  38. package/dist/_node-chunks/{lib-GV2USFDI.js → lib-NBPM4XMA.js} +7 -7
  39. package/dist/_node-chunks/{mdx-N42X6CFJ-FALWHS63.js → mdx-N42X6CFJ-JZMYU3TK.js} +8 -8
  40. package/dist/_node-chunks/{p-limit-ZLIA3PMB.js → p-limit-G7RUWL5Q.js} +7 -7
  41. package/dist/_node-chunks/{plugin-VBK5MDIY.js → plugin-75MDANON.js} +10 -10
  42. package/dist/_node-chunks/{plugin-TTZELBHN.js → plugin-WKVGUVZF.js} +10 -10
  43. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-PSO63NLP.js → webpack-inject-mocker-runtime-plugin-VU5RC5QA.js} +10 -10
  44. package/dist/_node-chunks/{webpack-mock-plugin-RGGBGU33.js → webpack-mock-plugin-OAQT3XX3.js} +9 -9
  45. package/dist/babel/index.js +11 -11
  46. package/dist/bin/core.js +11 -11
  47. package/dist/bin/dispatcher.js +11 -11
  48. package/dist/bin/loader.js +9 -9
  49. package/dist/cli/index.js +21 -21
  50. package/dist/common/index.js +20 -20
  51. package/dist/components/index.js +5743 -73
  52. package/dist/core-server/index.js +96 -97
  53. package/dist/core-server/presets/common-manager.js +14 -20
  54. package/dist/core-server/presets/common-override-preset.js +9 -9
  55. package/dist/core-server/presets/common-preset.js +27 -27
  56. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  57. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  58. package/dist/csf/index.js +2 -2
  59. package/dist/csf-tools/index.d.ts +7 -0
  60. package/dist/csf-tools/index.js +9 -9
  61. package/dist/manager/globals-runtime.js +1 -1
  62. package/dist/manager-api/index.d.ts +1 -1
  63. package/dist/manager-api/index.js +1 -1
  64. package/dist/node-logger/index.js +14 -14
  65. package/dist/preview-api/index.d.ts +67 -68
  66. package/dist/preview-api/index.js +5 -5
  67. package/dist/server-errors.js +10 -10
  68. package/dist/telemetry/index.js +24 -24
  69. package/package.json +1 -1
  70. package/dist/_browser-chunks/chunk-I74EUU5O.js +0 -5809
  71. package/dist/_node-chunks/camelcase-KA7E7LOC.js +0 -18
  72. package/dist/_node-chunks/chunk-DQGSFKJM.js +0 -18
  73. package/dist/_node-chunks/chunk-M5Q5VRK5.js +0 -61
  74. package/dist/_browser-chunks/{chunk-W4QKLQSC.js → chunk-RW5PKMWM.js} +5 -5
  75. package/dist/_browser-chunks/{syntaxhighlighter-DK2ODWXH.js → syntaxhighlighter-CAVLW7PM.js} +4 -4
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.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_dist
14
- } from "./chunk-RS5NK4UP.js";
14
+ } from "./chunk-XWWVIMQ7.js";
15
15
  import {
16
16
  __name,
17
17
  __toESM
18
- } from "./chunk-66QE27AA.js";
18
+ } from "./chunk-LWPHQ56E.js";
19
19
 
20
20
  // src/csf-tools/CsfFile.ts
21
21
  var import_ts_dedent = __toESM(require_dist(), 1);
@@ -845,12 +845,6 @@ var propKey = /* @__PURE__ */ __name((p) => {
845
845
  }
846
846
  return null;
847
847
  }, "propKey");
848
- var unwrap = /* @__PURE__ */ __name((node) => {
849
- if (t3.isTSAsExpression(node) || t3.isTSSatisfiesExpression(node)) {
850
- return unwrap(node.expression);
851
- }
852
- return node;
853
- }, "unwrap");
854
848
  var _getPath = /* @__PURE__ */ __name((path, node) => {
855
849
  if (path.length === 0) {
856
850
  return node;
@@ -937,6 +931,25 @@ var ConfigFile = class {
937
931
  // for that. But rather than refactor the whole thing, we just use this as a stopgap.
938
932
  this._exportDecls = {};
939
933
  this.hasDefaultExport = false;
934
+ /** Unwraps TS assertions/satisfies from a node, to get the underlying node. */
935
+ this._unwrap = /* @__PURE__ */ __name((node) => {
936
+ if (t3.isTSAsExpression(node) || t3.isTSSatisfiesExpression(node)) {
937
+ return this._unwrap(node.expression);
938
+ }
939
+ return node;
940
+ }, "_unwrap");
941
+ /**
942
+ * Resolve a declaration node by unwrapping TS assertions/satisfies and following identifiers to
943
+ * resolve the correct node in case it's an identifier.
944
+ */
945
+ this._resolveDeclaration = /* @__PURE__ */ __name((node, parent = this._ast.program) => {
946
+ const decl = this._unwrap(node);
947
+ if (t3.isIdentifier(decl) && t3.isProgram(parent)) {
948
+ const initialization = _findVarInitialization(decl.name, parent);
949
+ return initialization ? this._unwrap(initialization) : decl;
950
+ }
951
+ return decl;
952
+ }, "_resolveDeclaration");
940
953
  this._ast = ast;
941
954
  this._code = code;
942
955
  this.fileName = fileName;
@@ -949,10 +962,7 @@ var ConfigFile = class {
949
962
  exportsObject.properties.forEach((p) => {
950
963
  const exportName = propKey(p);
951
964
  if (exportName) {
952
- let exportVal = p.value;
953
- if (t3.isIdentifier(exportVal)) {
954
- exportVal = _findVarInitialization(exportVal.name, this._ast.program);
955
- }
965
+ const exportVal = this._resolveDeclaration(p.value);
956
966
  this._exports[exportName] = exportVal;
957
967
  }
958
968
  });
@@ -963,8 +973,7 @@ var ConfigFile = class {
963
973
  ExportDefaultDeclaration: {
964
974
  enter({ node, parent }) {
965
975
  self.hasDefaultExport = true;
966
- let decl = t3.isIdentifier(node.declaration) && t3.isProgram(parent) ? _findVarInitialization(node.declaration.name, parent) : node.declaration;
967
- decl = unwrap(decl);
976
+ let decl = self._resolveDeclaration(node.declaration, parent);
968
977
  if (t3.isCallExpression(decl) && t3.isObjectExpression(decl.arguments[0])) {
969
978
  decl = decl.arguments[0];
970
979
  }
@@ -987,10 +996,7 @@ var ConfigFile = class {
987
996
  node.declaration.declarations.forEach((decl) => {
988
997
  if (t3.isVariableDeclarator(decl) && t3.isIdentifier(decl.id)) {
989
998
  const { name: exportName } = decl.id;
990
- let exportVal = decl.init;
991
- if (t3.isIdentifier(exportVal)) {
992
- exportVal = _findVarInitialization(exportVal.name, parent);
993
- }
999
+ const exportVal = self._resolveDeclaration(decl.init, parent);
994
1000
  self._exports[exportName] = exportVal;
995
1001
  self._exportDecls[exportName] = decl;
996
1002
  }
@@ -1008,7 +1014,7 @@ var ConfigFile = class {
1008
1014
  const { name: exportName } = spec.exported;
1009
1015
  const decl = _findVarDeclarator(localName, parent);
1010
1016
  if (decl) {
1011
- self._exports[exportName] = decl.init;
1017
+ self._exports[exportName] = self._resolveDeclaration(decl.init, parent);
1012
1018
  self._exportDecls[exportName] = decl;
1013
1019
  }
1014
1020
  }
@@ -1030,22 +1036,13 @@ var ConfigFile = class {
1030
1036
  const { left, right } = node.expression;
1031
1037
  if (t3.isMemberExpression(left) && t3.isIdentifier(left.object) && left.object.name === "module" && t3.isIdentifier(left.property) && left.property.name === "exports") {
1032
1038
  let exportObject = right;
1033
- if (t3.isIdentifier(right)) {
1034
- exportObject = _findVarInitialization(right.name, parent);
1035
- }
1036
- exportObject = unwrap(exportObject);
1039
+ exportObject = self._resolveDeclaration(exportObject, parent);
1037
1040
  if (t3.isObjectExpression(exportObject)) {
1038
1041
  self._exportsObject = exportObject;
1039
1042
  exportObject.properties.forEach((p) => {
1040
1043
  const exportName = propKey(p);
1041
1044
  if (exportName) {
1042
- let exportVal = p.value;
1043
- if (t3.isIdentifier(exportVal)) {
1044
- exportVal = _findVarInitialization(
1045
- exportVal.name,
1046
- parent
1047
- );
1048
- }
1045
+ const exportVal = self._resolveDeclaration(p.value, parent);
1049
1046
  self._exports[exportName] = exportVal;
1050
1047
  }
1051
1048
  });
@@ -1256,13 +1253,9 @@ var ConfigFile = class {
1256
1253
  }
1257
1254
  }
1258
1255
  if (t3.isExportDefaultDeclaration(node)) {
1259
- let decl = node.declaration;
1260
- if (t3.isIdentifier(decl)) {
1261
- decl = _findVarInitialization(decl.name, this._ast.program);
1262
- }
1263
- decl = unwrap(decl);
1264
- if (t3.isObjectExpression(decl)) {
1265
- const properties2 = decl.properties;
1256
+ const resolved = this._resolveDeclaration(node.declaration);
1257
+ if (t3.isObjectExpression(resolved)) {
1258
+ const properties2 = resolved.properties;
1266
1259
  removeProperty(properties2, path[0]);
1267
1260
  removedRootProperty = true;
1268
1261
  }
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "./chunk-66QE27AA.js";
14
+ } from "./chunk-LWPHQ56E.js";
15
15
 
16
16
  // src/telemetry/event-cache.ts
17
17
  import { cache } from "storybook/internal/common";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -16,10 +16,10 @@ import {
16
16
  join,
17
17
  normalize,
18
18
  resolve
19
- } from "./chunk-2JPQ2CE4.js";
19
+ } from "./chunk-OOOQPZ6Z.js";
20
20
  import {
21
21
  __name
22
- } from "./chunk-66QE27AA.js";
22
+ } from "./chunk-LWPHQ56E.js";
23
23
 
24
24
  // src/core-server/mocking-utils/resolve.ts
25
25
  import { readFileSync as readFileSync2, realpathSync } from "node:fs";
@@ -1,22 +1,22 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.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_dist
14
- } from "./chunk-RS5NK4UP.js";
14
+ } from "./chunk-XWWVIMQ7.js";
15
15
  import {
16
16
  __export,
17
17
  __name,
18
18
  __toESM
19
- } from "./chunk-66QE27AA.js";
19
+ } from "./chunk-LWPHQ56E.js";
20
20
 
21
21
  // src/cli/globalSettings.ts
22
22
  var import_ts_dedent = __toESM(require_dist(), 1);
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,7 +13,7 @@ import {
13
13
  __commonJS,
14
14
  __name,
15
15
  __require
16
- } from "./chunk-66QE27AA.js";
16
+ } from "./chunk-LWPHQ56E.js";
17
17
 
18
18
  // ../node_modules/picomatch/lib/constants.js
19
19
  var require_constants = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "./chunk-66QE27AA.js";
14
+ } from "./chunk-LWPHQ56E.js";
15
15
 
16
16
  // ../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
17
17
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
@@ -25,6 +25,7 @@ __name(normalizeWindowsPath, "normalizeWindowsPath");
25
25
  var _UNC_REGEX = /^[/\\]{2}/;
26
26
  var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
27
27
  var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
28
+ var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
28
29
  var normalize = /* @__PURE__ */ __name(function(path2) {
29
30
  if (path2.length === 0) {
30
31
  return ".";
@@ -167,6 +168,22 @@ var extname = /* @__PURE__ */ __name(function(p) {
167
168
  const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
168
169
  return match && match[1] || "";
169
170
  }, "extname");
171
+ var relative = /* @__PURE__ */ __name(function(from, to) {
172
+ const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
173
+ const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
174
+ if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
175
+ return _to.join("/");
176
+ }
177
+ const _fromCopy = [..._from];
178
+ for (const segment of _fromCopy) {
179
+ if (_to[0] !== segment) {
180
+ break;
181
+ }
182
+ _from.shift();
183
+ _to.shift();
184
+ }
185
+ return [..._from.map(() => ".."), ..._to].join("/");
186
+ }, "relative");
170
187
  var dirname = /* @__PURE__ */ __name(function(p) {
171
188
  const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
172
189
  if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
@@ -196,6 +213,7 @@ export {
196
213
  join,
197
214
  resolve,
198
215
  isAbsolute,
216
+ relative,
199
217
  dirname,
200
218
  basename,
201
219
  parse
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
12
12
  import {
13
13
  dirname,
14
14
  join
15
- } from "./chunk-2JPQ2CE4.js";
15
+ } from "./chunk-OOOQPZ6Z.js";
16
16
  import {
17
17
  __name
18
- } from "./chunk-66QE27AA.js";
18
+ } from "./chunk-LWPHQ56E.js";
19
19
 
20
20
  // ../node_modules/exsolve/dist/index.mjs
21
21
  import fs, { realpathSync, statSync, lstatSync } from "node:fs";
@@ -1,20 +1,20 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  require_picomatch
14
- } from "./chunk-5XEXP6NE.js";
14
+ } from "./chunk-KHBCZXHG.js";
15
15
  import {
16
16
  versions_default
17
- } from "./chunk-M5Q5VRK5.js";
17
+ } from "./chunk-3GGHF3GB.js";
18
18
  import {
19
19
  BUN_LOCKFILE,
20
20
  BUN_LOCKFILE_BINARY,
@@ -27,42 +27,42 @@ import {
27
27
  getProjectRoot,
28
28
  normalizeStoryPath,
29
29
  require_cross_spawn
30
- } from "./chunk-H7T5PULI.js";
30
+ } from "./chunk-FJIMK54N.js";
31
31
  import {
32
32
  any,
33
33
  from,
34
34
  up2 as up
35
- } from "./chunk-BZKNXOCX.js";
35
+ } from "./chunk-ZXI44ZBV.js";
36
36
  import {
37
37
  invariant
38
- } from "./chunk-TZ4UIEXE.js";
38
+ } from "./chunk-CSY3WJXM.js";
39
39
  import {
40
40
  importModule,
41
41
  resolveModulePath,
42
42
  resolvePackageDir,
43
43
  safeResolveModule
44
- } from "./chunk-UJ4ZMDJ4.js";
44
+ } from "./chunk-QAOM3DO5.js";
45
45
  import {
46
46
  join,
47
47
  parse,
48
48
  resolve
49
- } from "./chunk-2JPQ2CE4.js";
49
+ } from "./chunk-OOOQPZ6Z.js";
50
50
  import {
51
51
  require_prompts
52
- } from "./chunk-KBHZ3GEC.js";
52
+ } from "./chunk-YTKYZK7T.js";
53
53
  import {
54
54
  glob,
55
55
  globSync
56
- } from "./chunk-SLGIE3DQ.js";
56
+ } from "./chunk-S2SBPOU7.js";
57
57
  import {
58
58
  slash
59
- } from "./chunk-3WVO2BEW.js";
59
+ } from "./chunk-EJMSHHNX.js";
60
60
  import {
61
61
  require_dist
62
- } from "./chunk-RS5NK4UP.js";
62
+ } from "./chunk-XWWVIMQ7.js";
63
63
  import {
64
64
  require_picocolors
65
- } from "./chunk-SQL6MCLB.js";
65
+ } from "./chunk-6FLER2RK.js";
66
66
  import {
67
67
  __commonJS,
68
68
  __esm,
@@ -71,7 +71,7 @@ import {
71
71
  __require,
72
72
  __toCommonJS,
73
73
  __toESM
74
- } from "./chunk-66QE27AA.js";
74
+ } from "./chunk-LWPHQ56E.js";
75
75
 
76
76
  // ../node_modules/@yarnpkg/fslib/node_modules/tslib/tslib.es6.js
77
77
  var tslib_es6_exports = {};
@@ -14164,7 +14164,7 @@ async function scanAndTransformFiles({
14164
14164
  initial: defaultGlob
14165
14165
  });
14166
14166
  console.log("Scanning for affected files...");
14167
- const globby = (await import("./globby-C6VT7FAK.js")).globby;
14167
+ const globby = (await import("./globby-RQKPSV62.js")).globby;
14168
14168
  const sourceFiles = await globby([glob2], {
14169
14169
  ...commonGlobOptions(""),
14170
14170
  ignore: ["**/node_modules/**"],
@@ -14194,7 +14194,7 @@ function transformImports(source, renamedImports) {
14194
14194
  __name(transformImports, "transformImports");
14195
14195
  var transformImportFiles = /* @__PURE__ */ __name(async (files, renamedImports, dryRun) => {
14196
14196
  const errors = [];
14197
- const { default: pLimit } = await import("./p-limit-ZLIA3PMB.js");
14197
+ const { default: pLimit } = await import("./p-limit-G7RUWL5Q.js");
14198
14198
  const limit = pLimit(10);
14199
14199
  await Promise.all(
14200
14200
  files.map(
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,7 +13,7 @@ import {
13
13
  __commonJS,
14
14
  __name,
15
15
  __toESM
16
- } from "./chunk-66QE27AA.js";
16
+ } from "./chunk-LWPHQ56E.js";
17
17
 
18
18
  // ../node_modules/balanced-match/index.js
19
19
  var require_balanced_match = __commonJS({
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "./chunk-66QE27AA.js";
14
+ } from "./chunk-LWPHQ56E.js";
15
15
 
16
16
  // ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
17
17
  var comma = ",".charCodeAt(0);
@@ -1,22 +1,22 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.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
  camelCase
14
- } from "./chunk-LHE3P5D2.js";
14
+ } from "./chunk-HJVHA6UV.js";
15
15
  import {
16
16
  __commonJS,
17
17
  __name,
18
18
  __toESM
19
- } from "./chunk-66QE27AA.js";
19
+ } from "./chunk-LWPHQ56E.js";
20
20
 
21
21
  // ../node_modules/boxen/node_modules/emoji-regex/index.js
22
22
  var require_emoji_regex = __commonJS({
@@ -1,33 +1,33 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.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-K2XXTVMC.js";
14
+ } from "./chunk-WQESBUOQ.js";
15
15
  import {
16
16
  resolvePackageDir
17
- } from "./chunk-UJ4ZMDJ4.js";
17
+ } from "./chunk-QAOM3DO5.js";
18
18
  import {
19
19
  require_prompts
20
- } from "./chunk-KBHZ3GEC.js";
20
+ } from "./chunk-YTKYZK7T.js";
21
21
  import {
22
22
  require_dist
23
- } from "./chunk-RS5NK4UP.js";
23
+ } from "./chunk-XWWVIMQ7.js";
24
24
  import {
25
25
  require_picocolors
26
- } from "./chunk-SQL6MCLB.js";
26
+ } from "./chunk-6FLER2RK.js";
27
27
  import {
28
28
  __name,
29
29
  __toESM
30
- } from "./chunk-66QE27AA.js";
30
+ } from "./chunk-LWPHQ56E.js";
31
31
 
32
32
  // src/core-server/utils/server-statics.ts
33
33
  var import_picocolors = __toESM(require_picocolors(), 1);
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_cwg9097nbiq from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_cwg9097nbiq from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_cwg9097nbiq from "node:module";
1
+ import CJS_COMPAT_NODE_URL_blcpg4hqjve from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_blcpg4hqjve from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_blcpg4hqjve from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_cwg9097nbiq.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_cwg9097nbiq.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_cwg9097nbiq.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_blcpg4hqjve.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_blcpg4hqjve.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_blcpg4hqjve.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,7 +13,7 @@ import {
13
13
  __commonJS,
14
14
  __name,
15
15
  __require
16
- } from "./chunk-66QE27AA.js";
16
+ } from "./chunk-LWPHQ56E.js";
17
17
 
18
18
  // ../node_modules/ms/index.js
19
19
  var require_ms = __commonJS({