storybook 10.5.7 → 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 (99) hide show
  1. package/dist/_browser-chunks/{chunk-SNLGT2ZI.js → chunk-NJBAF4HP.js} +10 -7
  2. package/dist/_node-chunks/{builder-manager-SYUIZ3YR.js → builder-manager-44N3IKMA.js} +13 -13
  3. package/dist/_node-chunks/{camelcase-56MHUKLD.js → camelcase-U3VGLPYQ.js} +7 -7
  4. package/dist/_node-chunks/{chunk-VRYTK5KC.js → chunk-2ABO45HU.js} +7 -7
  5. package/dist/_node-chunks/{chunk-5EYNHKVG.js → chunk-2B4WNTOI.js} +7 -7
  6. package/dist/_node-chunks/{chunk-HXJGHWQF.js → chunk-2I6SY37H.js} +6 -6
  7. package/dist/_node-chunks/{chunk-GTBJHD7H.js → chunk-43DTN3ZZ.js} +6 -6
  8. package/dist/_node-chunks/{chunk-BKV2AHET.js → chunk-4FGOCELA.js} +9 -9
  9. package/dist/_node-chunks/{chunk-UWEHU3AF.js → chunk-5GSH4K42.js} +7 -7
  10. package/dist/_node-chunks/{chunk-STC3JUUJ.js → chunk-5WLZGZKH.js} +7 -7
  11. package/dist/_node-chunks/{chunk-IDSUOV3G.js → chunk-6YX2ILY6.js} +6 -6
  12. package/dist/_node-chunks/{chunk-LEFX2TGG.js → chunk-743IQCI4.js} +322 -160
  13. package/dist/_node-chunks/{chunk-3KWZUKIJ.js → chunk-7XINS6RM.js} +7 -7
  14. package/dist/_node-chunks/{chunk-YGMEVHTF.js → chunk-AH2YLHOO.js} +7 -7
  15. package/dist/_node-chunks/{chunk-TWWDCALS.js → chunk-AWTLUFLC.js} +7 -7
  16. package/dist/_node-chunks/chunk-AZR2AJBV.js +20 -0
  17. package/dist/_node-chunks/{chunk-XYZ5NBEV.js → chunk-BJAFYWQI.js} +184 -80
  18. package/dist/_node-chunks/{chunk-HGQEN5BB.js → chunk-C6FI67XQ.js} +6 -6
  19. package/dist/_node-chunks/{chunk-I3EOE2DR.js → chunk-CWATHPJP.js} +6 -6
  20. package/dist/_node-chunks/{chunk-BOL6OWVM.js → chunk-D23EKETS.js} +9 -9
  21. package/dist/_node-chunks/{chunk-DMSSK5V7.js → chunk-EFUHZI3D.js} +7 -7
  22. package/dist/_node-chunks/{chunk-LISHZJOF.js → chunk-F53KKBXR.js} +10 -10
  23. package/dist/_node-chunks/{chunk-QEBWU6LU.js → chunk-GHITJKMO.js} +6 -6
  24. package/dist/_node-chunks/{chunk-UMBKBPP5.js → chunk-GIDBUWFN.js} +7 -7
  25. package/dist/_node-chunks/{chunk-FDJYLTPT.js → chunk-H5YVY55M.js} +9 -9
  26. package/dist/_node-chunks/{chunk-VLAMGE2J.js → chunk-HEJVBJXU.js} +10 -10
  27. package/dist/_node-chunks/{chunk-LQX45LAM.js → chunk-JLQ7YVOB.js} +9 -9
  28. package/dist/_node-chunks/{chunk-RW6CS4VF.js → chunk-JPGCTRIB.js} +6 -6
  29. package/dist/_node-chunks/{chunk-IN7NJS2T.js → chunk-KIVIKJIQ.js} +6 -6
  30. package/dist/_node-chunks/{chunk-FVPBTK6Q.js → chunk-KPNFDZF4.js} +8 -8
  31. package/dist/_node-chunks/{chunk-ZGQ7HJL4.js → chunk-KRI7SJEV.js} +6 -6
  32. package/dist/_node-chunks/{chunk-KIY3O3SC.js → chunk-L4JF77FH.js} +7 -7
  33. package/dist/_node-chunks/{chunk-TWPZPMFT.js → chunk-LR7QCVP4.js} +44 -7
  34. package/dist/_node-chunks/{chunk-4XX73STB.js → chunk-MHFYNNS5.js} +6 -6
  35. package/dist/_node-chunks/{chunk-KD5NGLH7.js → chunk-MRSHC5GK.js} +6 -6
  36. package/dist/_node-chunks/{chunk-BVQV5AQI.js → chunk-N7TILUYW.js} +14 -14
  37. package/dist/_node-chunks/{chunk-5SSDLDTJ.js → chunk-Q4AAMLOA.js} +6 -6
  38. package/dist/_node-chunks/{chunk-U4OORGLD.js → chunk-QY4HXHQ5.js} +7 -7
  39. package/dist/_node-chunks/{chunk-57EPATSG.js → chunk-SDUJ3TQK.js} +9 -9
  40. package/dist/_node-chunks/{chunk-MMWXZYX6.js → chunk-SKRC6ZND.js} +13 -48
  41. package/dist/_node-chunks/{chunk-OS6I5BZG.js → chunk-VZDXMKU7.js} +8 -8
  42. package/dist/_node-chunks/{chunk-Z35MCY7K.js → chunk-WGFB6YFF.js} +6 -6
  43. package/dist/_node-chunks/chunk-X2JCF6MH.js +85 -0
  44. package/dist/_node-chunks/{chunk-DPXVO6NW.js → chunk-X6JP55RX.js} +6 -6
  45. package/dist/_node-chunks/{chunk-Y6WAHW2B.js → chunk-XT7UQEM4.js} +17 -17
  46. package/dist/_node-chunks/{globby-5UZDOYO6.js → globby-EYZ5FW6I.js} +9 -9
  47. package/dist/_node-chunks/{lib-4TDV2HIG.js → lib-OKQRWYES.js} +7 -7
  48. package/dist/_node-chunks/{monorepo-7R4NQ2IG.js → monorepo-JILVLQN2.js} +11 -11
  49. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-XW2MTZDH.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-3IY6KXXL.js → pattern-copy-play-Y75CLJ5M.js} +10 -10
  53. package/dist/_node-chunks/{relaxed-limits-PUF3NMZ4.js → relaxed-limits-LHOKQOZA.js} +11 -11
  54. package/dist/_node-chunks/session-id-46RFONDR.js +23 -0
  55. package/dist/_node-chunks/{setup-XCCD5YHG.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-Cp-ouEY1.d.ts → chunk-BoIbUcxL.d.ts} +100 -25
  61. package/dist/{chunk-BoJt3T-D.d.ts → chunk-D3VfcBZj.d.ts} +1 -1
  62. package/dist/{chunk-CkNMGLRh.d.ts → chunk-DEJsEo3q.d.ts} +68 -68
  63. package/dist/{chunk-DPAvE_Bb.d.ts → chunk-DIHce1pT.d.ts} +1 -1
  64. package/dist/cli/index.d.ts +1 -1
  65. package/dist/cli/index.js +21 -21
  66. package/dist/common/index.d.ts +21 -3
  67. package/dist/common/index.js +31 -25
  68. package/dist/core-events/index.d.ts +1 -1
  69. package/dist/core-server/index.d.ts +24 -24
  70. package/dist/core-server/index.js +42 -42
  71. package/dist/core-server/presets/common-override-preset.js +9 -9
  72. package/dist/core-server/presets/common-preset.js +33 -33
  73. package/dist/csf/index.d.ts +2 -2
  74. package/dist/csf/index.js +10 -2
  75. package/dist/csf-tools/index.js +10 -10
  76. package/dist/manager/globals-runtime.js +1 -1
  77. package/dist/manager-api/index.d.ts +1 -1
  78. package/dist/manager-api/index.js +1 -1
  79. package/dist/manager-errors.d.ts +1 -1
  80. package/dist/mocking-utils/index.js +9 -9
  81. package/dist/node-logger/index.js +9 -9
  82. package/dist/oxc-parser/index.js +11 -11
  83. package/dist/oxc-parser/worker.js +11 -11
  84. package/dist/preview/runtime.js +19 -8
  85. package/dist/preview-api/index.d.ts +1 -1
  86. package/dist/preview-api/index.js +1 -1
  87. package/dist/preview-errors.d.ts +1 -1
  88. package/dist/server-errors.d.ts +1 -1
  89. package/dist/server-errors.js +10 -10
  90. package/dist/shared/open-service/index.d.ts +1 -1
  91. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  92. package/dist/telemetry/index.js +31 -31
  93. package/dist/types/index.d.ts +1 -1
  94. package/package.json +1 -1
  95. package/dist/_node-chunks/chunk-2ZXZGW35.js +0 -20
  96. package/dist/_node-chunks/chunk-DRKKE7WX.js +0 -85
  97. package/dist/_node-chunks/optimized-tests-5J6VSNWX.js +0 -22
  98. package/dist/_node-chunks/p-limit-YO2INT34.js +0 -20
  99. package/dist/_node-chunks/session-id-QG3BH4RA.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_o3kjpxmk9t from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_o3kjpxmk9t from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_o3kjpxmk9t 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_o3kjpxmk9t.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_o3kjpxmk9t.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_o3kjpxmk9t.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-I3EOE2DR.js";
16
+ } from "./chunk-CWATHPJP.js";
17
17
  import {
18
18
  require_build
19
- } from "./chunk-KIY3O3SC.js";
19
+ } from "./chunk-L4JF77FH.js";
20
20
  import {
21
21
  resolveModulePath,
22
22
  resolvePackageDir
23
- } from "./chunk-OS6I5BZG.js";
24
- import "./chunk-GTBJHD7H.js";
23
+ } from "./chunk-VZDXMKU7.js";
24
+ import "./chunk-43DTN3ZZ.js";
25
25
  import {
26
26
  join,
27
27
  parse
28
- } from "./chunk-4XX73STB.js";
28
+ } from "./chunk-MHFYNNS5.js";
29
29
  import {
30
30
  slash
31
- } from "./chunk-2ZXZGW35.js";
31
+ } from "./chunk-AZR2AJBV.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
35
35
  __toESM
36
- } from "./chunk-5SSDLDTJ.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_o3kjpxmk9t from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_o3kjpxmk9t from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_o3kjpxmk9t 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_o3kjpxmk9t.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_o3kjpxmk9t.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_o3kjpxmk9t.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-5SSDLDTJ.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_o3kjpxmk9t from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_o3kjpxmk9t from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_o3kjpxmk9t 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_o3kjpxmk9t.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_o3kjpxmk9t.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_o3kjpxmk9t.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-4XX73STB.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_o3kjpxmk9t from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_o3kjpxmk9t from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_o3kjpxmk9t 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_o3kjpxmk9t.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_o3kjpxmk9t.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_o3kjpxmk9t.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_o3kjpxmk9t.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __toESM
15
- } from "./chunk-5SSDLDTJ.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_o3kjpxmk9t from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_o3kjpxmk9t from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_o3kjpxmk9t 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_o3kjpxmk9t.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_o3kjpxmk9t.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_o3kjpxmk9t.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_o3kjpxmk9t from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_o3kjpxmk9t from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_o3kjpxmk9t 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_o3kjpxmk9t.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_o3kjpxmk9t.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_o3kjpxmk9t.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_o3kjpxmk9t from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_o3kjpxmk9t from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_o3kjpxmk9t 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_o3kjpxmk9t.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_o3kjpxmk9t.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_o3kjpxmk9t.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-TWWDCALS.js";
14
+ } from "./chunk-AWTLUFLC.js";
15
15
  import {
16
16
  require_picocolors
17
- } from "./chunk-STC3JUUJ.js";
17
+ } from "./chunk-5WLZGZKH.js";
18
18
  import {
19
19
  __toESM
20
- } from "./chunk-5SSDLDTJ.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_o3kjpxmk9t from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_o3kjpxmk9t from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_o3kjpxmk9t 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_o3kjpxmk9t.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_o3kjpxmk9t.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_o3kjpxmk9t.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-QG3BH4RA.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_o3kjpxmk9t from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_o3kjpxmk9t from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_o3kjpxmk9t 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_o3kjpxmk9t.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_o3kjpxmk9t.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_o3kjpxmk9t.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-5SSDLDTJ.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_o3kjpxmk9t from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_o3kjpxmk9t from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_o3kjpxmk9t 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_o3kjpxmk9t.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_o3kjpxmk9t.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_o3kjpxmk9t.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