storybook 10.5.8 → 10.5.9

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 (95) hide show
  1. package/dist/_browser-chunks/{chunk-SNLGT2ZI.js → chunk-NJBAF4HP.js} +10 -7
  2. package/dist/_node-chunks/{builder-manager-FHEEQZDI.js → builder-manager-44N3IKMA.js} +13 -13
  3. package/dist/_node-chunks/{camelcase-4NFBJ4ZM.js → camelcase-U3VGLPYQ.js} +7 -7
  4. package/dist/_node-chunks/{chunk-VSNX7ZYL.js → chunk-2ABO45HU.js} +7 -7
  5. package/dist/_node-chunks/{chunk-VAN7EYD5.js → chunk-2B4WNTOI.js} +7 -7
  6. package/dist/_node-chunks/{chunk-BYLB4VFE.js → chunk-2I6SY37H.js} +6 -6
  7. package/dist/_node-chunks/{chunk-ULZJNCJ2.js → chunk-43DTN3ZZ.js} +6 -6
  8. package/dist/_node-chunks/{chunk-WHUX7XKJ.js → chunk-4FGOCELA.js} +9 -9
  9. package/dist/_node-chunks/{chunk-2QMDP3ZK.js → chunk-5GSH4K42.js} +7 -7
  10. package/dist/_node-chunks/{chunk-YKNWFMJU.js → chunk-5WLZGZKH.js} +7 -7
  11. package/dist/_node-chunks/{chunk-ZHMU7QZX.js → chunk-6YX2ILY6.js} +6 -6
  12. package/dist/_node-chunks/{chunk-7ATDBJYQ.js → chunk-743IQCI4.js} +21 -21
  13. package/dist/_node-chunks/{chunk-WSLVLAPN.js → chunk-7XINS6RM.js} +7 -7
  14. package/dist/_node-chunks/{chunk-2IJTSAEZ.js → chunk-AH2YLHOO.js} +7 -7
  15. package/dist/_node-chunks/{chunk-NWFXWJ65.js → chunk-AWTLUFLC.js} +7 -7
  16. package/dist/_node-chunks/chunk-AZR2AJBV.js +20 -0
  17. package/dist/_node-chunks/{chunk-BDBVBZK5.js → chunk-BJAFYWQI.js} +184 -80
  18. package/dist/_node-chunks/{chunk-NTYP6MGK.js → chunk-C6FI67XQ.js} +6 -6
  19. package/dist/_node-chunks/{chunk-HHQNKXGG.js → chunk-CWATHPJP.js} +6 -6
  20. package/dist/_node-chunks/{chunk-CDAGUDC4.js → chunk-D23EKETS.js} +9 -9
  21. package/dist/_node-chunks/{chunk-ML3XMZXF.js → chunk-EFUHZI3D.js} +7 -7
  22. package/dist/_node-chunks/{chunk-E65ZEBQ6.js → chunk-F53KKBXR.js} +10 -10
  23. package/dist/_node-chunks/{chunk-SIHNE35S.js → chunk-GHITJKMO.js} +6 -6
  24. package/dist/_node-chunks/{chunk-MNPBWO5E.js → chunk-GIDBUWFN.js} +7 -7
  25. package/dist/_node-chunks/{chunk-GPMQVKS3.js → chunk-H5YVY55M.js} +9 -9
  26. package/dist/_node-chunks/{chunk-OJ4R56TK.js → chunk-HEJVBJXU.js} +10 -10
  27. package/dist/_node-chunks/{chunk-SH6RWRE2.js → chunk-JLQ7YVOB.js} +9 -9
  28. package/dist/_node-chunks/{chunk-23Q6WMEG.js → chunk-JPGCTRIB.js} +6 -6
  29. package/dist/_node-chunks/{chunk-VEO37EIT.js → chunk-KIVIKJIQ.js} +6 -6
  30. package/dist/_node-chunks/{chunk-M54DHASI.js → chunk-KPNFDZF4.js} +8 -8
  31. package/dist/_node-chunks/{chunk-VQFUINWY.js → chunk-KRI7SJEV.js} +6 -6
  32. package/dist/_node-chunks/{chunk-JNDFU5TN.js → chunk-L4JF77FH.js} +7 -7
  33. package/dist/_node-chunks/{chunk-CSTFW4VR.js → chunk-LR7QCVP4.js} +6 -6
  34. package/dist/_node-chunks/{chunk-ASGYHCII.js → chunk-MHFYNNS5.js} +6 -6
  35. package/dist/_node-chunks/{chunk-UK3RBY3T.js → chunk-MRSHC5GK.js} +6 -6
  36. package/dist/_node-chunks/{chunk-NC5RP4VU.js → chunk-N7TILUYW.js} +14 -14
  37. package/dist/_node-chunks/{chunk-XNBLOTKQ.js → chunk-Q4AAMLOA.js} +6 -6
  38. package/dist/_node-chunks/{chunk-ZPFBPPUP.js → chunk-QY4HXHQ5.js} +7 -7
  39. package/dist/_node-chunks/{chunk-OCRVDB6D.js → chunk-SDUJ3TQK.js} +9 -9
  40. package/dist/_node-chunks/{chunk-GRMXFUPR.js → chunk-SKRC6ZND.js} +12 -12
  41. package/dist/_node-chunks/{chunk-N43P2MRA.js → chunk-VZDXMKU7.js} +8 -8
  42. package/dist/_node-chunks/{chunk-NX3NE3E6.js → chunk-WGFB6YFF.js} +6 -6
  43. package/dist/_node-chunks/chunk-X2JCF6MH.js +85 -0
  44. package/dist/_node-chunks/{chunk-BVYBOUJD.js → chunk-X6JP55RX.js} +6 -6
  45. package/dist/_node-chunks/{chunk-7FS4L7AP.js → chunk-XT7UQEM4.js} +17 -17
  46. package/dist/_node-chunks/{globby-6T7BFTWL.js → globby-EYZ5FW6I.js} +9 -9
  47. package/dist/_node-chunks/{lib-GVIVXADX.js → lib-OKQRWYES.js} +7 -7
  48. package/dist/_node-chunks/{monorepo-A3T2UI7Q.js → monorepo-JILVLQN2.js} +11 -11
  49. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-A4BFPGNL.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-W4C4MSGS.js} +11 -11
  50. package/dist/_node-chunks/optimized-tests-KOLJ4A3I.js +22 -0
  51. package/dist/_node-chunks/p-limit-74LY4FIS.js +20 -0
  52. package/dist/_node-chunks/{pattern-copy-play-3THOAXIX.js → pattern-copy-play-Y75CLJ5M.js} +10 -10
  53. package/dist/_node-chunks/{relaxed-limits-KK4JXLQH.js → relaxed-limits-LHOKQOZA.js} +11 -11
  54. package/dist/_node-chunks/session-id-46RFONDR.js +23 -0
  55. package/dist/_node-chunks/{setup-SPF6PPZL.js → setup-GWYYTN4W.js} +9 -9
  56. package/dist/babel/index.js +10 -10
  57. package/dist/bin/core.js +25 -25
  58. package/dist/bin/dispatcher.js +12 -12
  59. package/dist/bin/loader.js +9 -9
  60. package/dist/{chunk-Dt_DMkuc.d.ts → chunk-BoIbUcxL.d.ts} +99 -24
  61. package/dist/{chunk-gbUzGPEM.d.ts → chunk-D3VfcBZj.d.ts} +1 -1
  62. package/dist/cli/index.d.ts +1 -1
  63. package/dist/cli/index.js +21 -21
  64. package/dist/common/index.d.ts +2 -2
  65. package/dist/common/index.js +25 -25
  66. package/dist/core-server/index.d.ts +24 -24
  67. package/dist/core-server/index.js +42 -42
  68. package/dist/core-server/presets/common-override-preset.js +9 -9
  69. package/dist/core-server/presets/common-preset.js +33 -33
  70. package/dist/csf/index.js +1 -1
  71. package/dist/csf-tools/index.js +10 -10
  72. package/dist/manager/globals-runtime.js +1 -1
  73. package/dist/manager-api/index.d.ts +1 -1
  74. package/dist/manager-api/index.js +1 -1
  75. package/dist/manager-errors.d.ts +1 -1
  76. package/dist/mocking-utils/index.js +9 -9
  77. package/dist/node-logger/index.js +9 -9
  78. package/dist/oxc-parser/index.js +11 -11
  79. package/dist/oxc-parser/worker.js +11 -11
  80. package/dist/preview/runtime.js +10 -7
  81. package/dist/preview-api/index.d.ts +1 -1
  82. package/dist/preview-api/index.js +1 -1
  83. package/dist/preview-errors.d.ts +1 -1
  84. package/dist/server-errors.d.ts +1 -1
  85. package/dist/server-errors.js +10 -10
  86. package/dist/shared/open-service/index.d.ts +1 -1
  87. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  88. package/dist/telemetry/index.js +31 -31
  89. package/dist/types/index.d.ts +1 -1
  90. package/package.json +1 -1
  91. package/dist/_node-chunks/chunk-CIRBJAL2.js +0 -85
  92. package/dist/_node-chunks/chunk-ZV47IKQ6.js +0 -20
  93. package/dist/_node-chunks/optimized-tests-GAORXAD3.js +0 -22
  94. package/dist/_node-chunks/p-limit-KD2KOC75.js +0 -20
  95. package/dist/_node-chunks/session-id-CBOXYBNJ.js +0 -23
@@ -3091,12 +3091,15 @@ var VALIDATION_REGEXP = /^[a-zA-Z0-9 _-]*$/, NUMBER_REGEXP = /^-?[0-9]+(\.[0-9]+
3091
3091
  };
3092
3092
 
3093
3093
  // src/preview-api/modules/preview-web/UrlStore.ts
3094
- var { history, document: document2 } = global7;
3094
+ var { history, document: document2 } = global7, PATH_REGEX = /^\/(story|docs)\/(.+)/;
3095
3095
  function pathToId(path) {
3096
- let match = (path || "").match(/^\/story\/(.+)/);
3096
+ let match = (path || "").match(PATH_REGEX);
3097
3097
  if (!match)
3098
- throw new Error(`Invalid path '${path}', must start with '/story/'`);
3099
- return match[1];
3098
+ throw new Error(`Invalid path '${path}', must start with '/story/' or '/docs/'`);
3099
+ return match[2];
3100
+ }
3101
+ function pathToViewMode(path) {
3102
+ return (path || "").match(PATH_REGEX)?.[1];
3100
3103
  }
3101
3104
  var getQueryString = ({
3102
3105
  selection,
@@ -3126,12 +3129,12 @@ var getQueryString = ({
3126
3129
  }
3127
3130
  }, getSelectionSpecifierFromPath = () => {
3128
3131
  if (typeof document2 < "u") {
3129
- let queryStr = document2.location.search.slice(1), query = parse(queryStr), args = typeof query.args == "string" ? parseArgsParam(query.args) : void 0, globals = typeof query.globals == "string" ? parseArgsParam(query.globals) : void 0, viewMode = getFirstString(query.viewMode);
3132
+ let queryStr = document2.location.search.slice(1), query = parse(queryStr), args = typeof query.args == "string" ? parseArgsParam(query.args) : void 0, globals = typeof query.globals == "string" ? parseArgsParam(query.globals) : void 0, path = getFirstString(query.path), viewMode = getFirstString(query.viewMode);
3130
3133
  if (typeof viewMode != "string" || !viewMode)
3131
- viewMode = "story";
3134
+ viewMode = path && pathToViewMode(path) || "story";
3132
3135
  else if (!viewMode.match(/docs|story/))
3133
3136
  return null;
3134
- let path = getFirstString(query.path), storyId = path ? pathToId(path) : getFirstString(query.id);
3137
+ let storyId = path ? pathToId(path) : getFirstString(query.id);
3135
3138
  if (storyId)
3136
3139
  return { storySpecifier: storyId, args, globals, viewMode };
3137
3140
  }
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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
  BROWSER_TARGETS,
14
14
  NODE_TARGET,
15
15
  SUPPORTED_FEATURES
16
- } from "./chunk-HHQNKXGG.js";
16
+ } from "./chunk-CWATHPJP.js";
17
17
  import {
18
18
  require_build
19
- } from "./chunk-JNDFU5TN.js";
19
+ } from "./chunk-L4JF77FH.js";
20
20
  import {
21
21
  resolveModulePath,
22
22
  resolvePackageDir
23
- } from "./chunk-N43P2MRA.js";
24
- import "./chunk-ULZJNCJ2.js";
23
+ } from "./chunk-VZDXMKU7.js";
24
+ import "./chunk-43DTN3ZZ.js";
25
25
  import {
26
26
  join,
27
27
  parse
28
- } from "./chunk-ASGYHCII.js";
28
+ } from "./chunk-MHFYNNS5.js";
29
29
  import {
30
30
  slash
31
- } from "./chunk-ZV47IKQ6.js";
31
+ } from "./chunk-AZR2AJBV.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
35
35
  __toESM
36
- } from "./chunk-XNBLOTKQ.js";
36
+ } from "./chunk-Q4AAMLOA.js";
37
37
 
38
38
  // ../../node_modules/ejs/lib/utils.js
39
39
  var require_utils = __commonJS({
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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-XNBLOTKQ.js";
12
+ import "./chunk-Q4AAMLOA.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}])/u, SEPARATORS = /[_.\- ]+/, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp(String.raw`\d+` + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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
  normalize
14
- } from "./chunk-ASGYHCII.js";
14
+ } from "./chunk-MHFYNNS5.js";
15
15
 
16
16
  // src/shared/open-service/services/module-graph/types.ts
17
17
  import { posix, win32 } from "node:path";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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_x4zmn749tn.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __toESM
15
- } from "./chunk-XNBLOTKQ.js";
15
+ } from "./chunk-Q4AAMLOA.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_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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-NWFXWJ65.js";
14
+ } from "./chunk-AWTLUFLC.js";
15
15
  import {
16
16
  require_picocolors
17
- } from "./chunk-YKNWFMJU.js";
17
+ } from "./chunk-5WLZGZKH.js";
18
18
  import {
19
19
  __toESM
20
- } from "./chunk-XNBLOTKQ.js";
20
+ } from "./chunk-Q4AAMLOA.js";
21
21
 
22
22
  // src/server-errors.ts
23
23
  var import_picocolors = __toESM(require_picocolors(), 1), import_ts_dedent = __toESM(require_dist(), 1);
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -42,7 +42,7 @@ async function isWithinInitialSession(events) {
42
42
  let eventTypes = Array.isArray(events) ? events : [events], lastEvents = await getLastEvents(), lastRelevantEvent = lastEvent(lastEvents, eventTypes);
43
43
  if (!lastRelevantEvent)
44
44
  return !1;
45
- let { getSessionId } = await import("./session-id-CBOXYBNJ.js"), sessionId = await getSessionId();
45
+ let { getSessionId } = await import("./session-id-46RFONDR.js"), sessionId = await getSessionId();
46
46
  return !(lastRelevantEvent.body?.sessionId && lastRelevantEvent.body.sessionId !== sessionId);
47
47
  } catch {
48
48
  return !1;
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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-XNBLOTKQ.js";
14
+ } from "./chunk-Q4AAMLOA.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_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,13 +13,13 @@ import {
13
13
  require_picomatch,
14
14
  toPath,
15
15
  traversePathUp
16
- } from "./chunk-2IJTSAEZ.js";
16
+ } from "./chunk-AH2YLHOO.js";
17
17
  import {
18
18
  versions_default
19
- } from "./chunk-CIRBJAL2.js";
19
+ } from "./chunk-X2JCF6MH.js";
20
20
  import {
21
21
  logger
22
- } from "./chunk-M54DHASI.js";
22
+ } from "./chunk-KPNFDZF4.js";
23
23
  import {
24
24
  BUN_LOCKFILE,
25
25
  BUN_LOCKFILE_BINARY,
@@ -29,7 +29,7 @@ import {
29
29
  findFilesUp,
30
30
  getProjectRoot,
31
31
  normalizeStoryPath
32
- } from "./chunk-NC5RP4VU.js";
32
+ } from "./chunk-N7TILUYW.js";
33
33
  import {
34
34
  any,
35
35
  detectIndent,
@@ -38,35 +38,35 @@ import {
38
38
  stripJsonComments,
39
39
  up,
40
40
  up2
41
- } from "./chunk-CSTFW4VR.js";
41
+ } from "./chunk-LR7QCVP4.js";
42
42
  import {
43
43
  importModule,
44
44
  resolveModulePath,
45
45
  resolvePackageDir,
46
46
  safeResolveModule
47
- } from "./chunk-N43P2MRA.js";
47
+ } from "./chunk-VZDXMKU7.js";
48
48
  import {
49
49
  jsModuleExtensions,
50
50
  storybookConfigExtensions
51
- } from "./chunk-ULZJNCJ2.js";
51
+ } from "./chunk-43DTN3ZZ.js";
52
52
  import {
53
53
  require_dist
54
- } from "./chunk-NWFXWJ65.js";
54
+ } from "./chunk-AWTLUFLC.js";
55
55
  import {
56
56
  require_picocolors
57
- } from "./chunk-YKNWFMJU.js";
57
+ } from "./chunk-5WLZGZKH.js";
58
58
  import {
59
59
  join,
60
60
  parse,
61
61
  resolve
62
- } from "./chunk-ASGYHCII.js";
62
+ } from "./chunk-MHFYNNS5.js";
63
63
  import {
64
64
  slash
65
- } from "./chunk-ZV47IKQ6.js";
65
+ } from "./chunk-AZR2AJBV.js";
66
66
  import {
67
67
  glob,
68
68
  globSync
69
- } from "./chunk-VAN7EYD5.js";
69
+ } from "./chunk-2B4WNTOI.js";
70
70
  import {
71
71
  __commonJS,
72
72
  __esm,
@@ -74,7 +74,7 @@ import {
74
74
  __require,
75
75
  __toCommonJS,
76
76
  __toESM
77
- } from "./chunk-XNBLOTKQ.js";
77
+ } from "./chunk-Q4AAMLOA.js";
78
78
 
79
79
  // ../../node_modules/isexe/windows.js
80
80
  var require_windows = __commonJS({
@@ -22396,7 +22396,7 @@ async function scanAndTransformFiles({
22396
22396
  initialValue: defaultGlob
22397
22397
  });
22398
22398
  logger17.log("Scanning for affected files...");
22399
- let globby = (await import("./globby-6T7BFTWL.js")).globby, sourceFiles = await globby([glob2], {
22399
+ let globby = (await import("./globby-EYZ5FW6I.js")).globby, sourceFiles = await globby([glob2], {
22400
22400
  ...commonGlobOptions(""),
22401
22401
  ignore: ["**/node_modules/**"],
22402
22402
  dot: !0,
@@ -22417,7 +22417,7 @@ function transformImports(source, renamedImports) {
22417
22417
  return hasChanges ? transformed : null;
22418
22418
  }
22419
22419
  var transformImportFiles = async (files, renamedImports, dryRun) => {
22420
- let errors = [], { default: pLimit } = await import("./p-limit-KD2KOC75.js"), limit = pLimit(10);
22420
+ let errors = [], { default: pLimit } = await import("./p-limit-74LY4FIS.js"), limit = pLimit(10);
22421
22421
  return await Promise.all(
22422
22422
  files.map(
22423
22423
  (file) => limit(async () => {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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_x4zmn749tn.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-XNBLOTKQ.js";
15
+ } from "./chunk-Q4AAMLOA.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_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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_x4zmn749tn.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-XNBLOTKQ.js";
15
+ } from "./chunk-Q4AAMLOA.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_x4zmn749tn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_x4zmn749tn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_x4zmn749tn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_x4zmn749tn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_x4zmn749tn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_x4zmn749tn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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-XNBLOTKQ.js";
14
+ } from "./chunk-Q4AAMLOA.js";
15
15
 
16
16
  // ../../node_modules/ts-dedent/dist/index.js
17
17
  var require_dist = __commonJS({
@@ -0,0 +1,20 @@
1
+ import CJS_COMPAT_NODE_URL_lpbd6hif5hp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lpbd6hif5hp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lpbd6hif5hp from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_lpbd6hif5hp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lpbd6hif5hp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lpbd6hif5hp.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
+ };