storybook 10.2.0-alpha.17 → 10.2.0-alpha.18

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 (62) hide show
  1. package/dist/_node-chunks/{builder-manager-Q4F5VX5J.js → builder-manager-RC5VXLE2.js} +12 -12
  2. package/dist/_node-chunks/{camelcase-FL6OBJRZ.js → camelcase-3YERF6B7.js} +7 -7
  3. package/dist/_node-chunks/chunk-2H33L3XJ.js +61 -0
  4. package/dist/_node-chunks/{chunk-JBRILZWU.js → chunk-2M7TBZBZ.js} +6 -6
  5. package/dist/_node-chunks/{chunk-XYONORVT.js → chunk-4HG57EIN.js} +7 -7
  6. package/dist/_node-chunks/{chunk-IWM3WHZE.js → chunk-4PWGJYBL.js} +7 -7
  7. package/dist/_node-chunks/{chunk-FAARRTOD.js → chunk-54FLVGBQ.js} +6 -6
  8. package/dist/_node-chunks/{chunk-25OWI2RR.js → chunk-5BYTBW23.js} +6 -6
  9. package/dist/_node-chunks/{chunk-EYPTVKFI.js → chunk-5QNVOHBZ.js} +15 -14
  10. package/dist/_node-chunks/{chunk-KKNWPXMS.js → chunk-6TOW3ZMZ.js} +6 -6
  11. package/dist/_node-chunks/{chunk-XI7HDOMY.js → chunk-A2364FS2.js} +7 -7
  12. package/dist/_node-chunks/{chunk-2XSHQN7K.js → chunk-BWA66NDS.js} +10 -10
  13. package/dist/_node-chunks/{chunk-3D4SLKEE.js → chunk-DIZCVGPK.js} +7 -7
  14. package/dist/_node-chunks/{chunk-IRMNO3QS.js → chunk-F347QVLI.js} +9 -9
  15. package/dist/_node-chunks/{chunk-GYJ7LPFJ.js → chunk-GJRLPTXZ.js} +13 -13
  16. package/dist/_node-chunks/{chunk-VK4OWRKU.js → chunk-H4TYBETM.js} +9 -9
  17. package/dist/_node-chunks/{chunk-V3SFCYKQ.js → chunk-HXE2FZ3F.js} +7 -7
  18. package/dist/_node-chunks/{chunk-CCJGKJ27.js → chunk-IHBEBZVB.js} +12 -12
  19. package/dist/_node-chunks/chunk-JK62DOZL.js +23 -0
  20. package/dist/_node-chunks/{chunk-MU4E5UBA.js → chunk-LMYIILVH.js} +7 -7
  21. package/dist/_node-chunks/{chunk-5Q5JEISY.js → chunk-N73BCSUL.js} +6 -6
  22. package/dist/_node-chunks/{chunk-ZOUBYBCH.js → chunk-OT3P3RDM.js} +8 -8
  23. package/dist/_node-chunks/{chunk-C3FPVGL4.js → chunk-OZGI27C5.js} +6 -6
  24. package/dist/_node-chunks/{chunk-DJ3RRSJ7.js → chunk-OZHRGJKY.js} +7 -7
  25. package/dist/_node-chunks/chunk-Q3WHGQXN.js +18 -0
  26. package/dist/_node-chunks/{chunk-VTBZVEBF.js → chunk-QNYGS5WG.js} +8 -8
  27. package/dist/_node-chunks/{chunk-VT2FICF4.js → chunk-QXDUEJWP.js} +6 -6
  28. package/dist/_node-chunks/{chunk-PWI3ORDV.js → chunk-USLMTVEL.js} +20 -20
  29. package/dist/_node-chunks/{chunk-G7P42ZEY.js → chunk-XH6HLMNG.js} +7 -7
  30. package/dist/_node-chunks/{chunk-XTIFAWOB.js → chunk-ZUTW3EKD.js} +16 -16
  31. package/dist/_node-chunks/{globby-4BDMCAAD.js → globby-IVEL6LAU.js} +9 -9
  32. package/dist/_node-chunks/{lib-XS2XQMOO.js → lib-IDUN2DHZ.js} +7 -7
  33. package/dist/_node-chunks/{mdx-N42X6CFJ-JFERGMQH.js → mdx-N42X6CFJ-V7NAUWUX.js} +8 -8
  34. package/dist/_node-chunks/{p-limit-I4CLTHWH.js → p-limit-VA3OYXXM.js} +7 -7
  35. package/dist/babel/index.js +10 -10
  36. package/dist/bin/core.js +12 -12
  37. package/dist/bin/dispatcher.js +11 -11
  38. package/dist/bin/loader.js +9 -9
  39. package/dist/cli/index.js +18 -18
  40. package/dist/common/index.js +19 -19
  41. package/dist/components/index.d.ts +2 -1
  42. package/dist/components/index.js +55 -60
  43. package/dist/core-server/index.d.ts +6 -1
  44. package/dist/core-server/index.js +36 -35
  45. package/dist/core-server/presets/common-override-preset.js +9 -9
  46. package/dist/core-server/presets/common-preset.js +87 -100
  47. package/dist/csf-tools/index.js +9 -9
  48. package/dist/manager/globals-runtime.js +102 -80
  49. package/dist/manager/runtime.js +812 -69
  50. package/dist/manager-api/index.d.ts +2 -0
  51. package/dist/manager-api/index.js +10 -2
  52. package/dist/mocking-utils/index.js +8 -8
  53. package/dist/node-logger/index.js +9 -9
  54. package/dist/server-errors.js +11 -11
  55. package/dist/telemetry/index.d.ts +1 -0
  56. package/dist/telemetry/index.js +23 -23
  57. package/dist/theming/index.js +16 -0
  58. package/dist/types/index.d.ts +2 -0
  59. package/package.json +2 -1
  60. package/dist/_node-chunks/chunk-CBPOKBOR.js +0 -18
  61. package/dist/_node-chunks/chunk-EG3WZ464.js +0 -23
  62. package/dist/_node-chunks/chunk-RGEHGZS6.js +0 -61
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_w8tq4vh9mzk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_bfa4dw0yocr from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_bfa4dw0yocr from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_bfa4dw0yocr from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_bfa4dw0yocr.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_bfa4dw0yocr.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_bfa4dw0yocr.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
  NODE_TARGET
14
- } from "../_node-chunks/chunk-VT2FICF4.js";
14
+ } from "../_node-chunks/chunk-QXDUEJWP.js";
15
15
  import {
16
16
  require_dist
17
- } from "../_node-chunks/chunk-G7P42ZEY.js";
17
+ } from "../_node-chunks/chunk-XH6HLMNG.js";
18
18
  import {
19
19
  __toESM
20
- } from "../_node-chunks/chunk-25OWI2RR.js";
20
+ } from "../_node-chunks/chunk-5BYTBW23.js";
21
21
 
22
22
  // src/bin/loader.ts
23
23
  var import_ts_dedent = __toESM(require_dist(), 1);
package/dist/cli/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_w8tq4vh9mzk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_bfa4dw0yocr from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_bfa4dw0yocr from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_bfa4dw0yocr from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_bfa4dw0yocr.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_bfa4dw0yocr.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_bfa4dw0yocr.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -33,24 +33,24 @@ import {
33
33
  readFileAsJson,
34
34
  suggestESLintPlugin,
35
35
  writeFileAsJson
36
- } from "../_node-chunks/chunk-CCJGKJ27.js";
36
+ } from "../_node-chunks/chunk-IHBEBZVB.js";
37
37
  import {
38
38
  detectPnp
39
- } from "../_node-chunks/chunk-EG3WZ464.js";
39
+ } from "../_node-chunks/chunk-JK62DOZL.js";
40
40
  import {
41
41
  Settings,
42
42
  _clearGlobalSettings,
43
43
  globalSettings
44
- } from "../_node-chunks/chunk-VK4OWRKU.js";
45
- import "../_node-chunks/chunk-C3FPVGL4.js";
46
- import "../_node-chunks/chunk-KKNWPXMS.js";
47
- import "../_node-chunks/chunk-3D4SLKEE.js";
48
- import "../_node-chunks/chunk-5Q5JEISY.js";
49
- import "../_node-chunks/chunk-G7P42ZEY.js";
50
- import "../_node-chunks/chunk-IRMNO3QS.js";
51
- import "../_node-chunks/chunk-MU4E5UBA.js";
52
- import "../_node-chunks/chunk-XI7HDOMY.js";
53
- import "../_node-chunks/chunk-25OWI2RR.js";
44
+ } from "../_node-chunks/chunk-H4TYBETM.js";
45
+ import "../_node-chunks/chunk-OZGI27C5.js";
46
+ import "../_node-chunks/chunk-6TOW3ZMZ.js";
47
+ import "../_node-chunks/chunk-DIZCVGPK.js";
48
+ import "../_node-chunks/chunk-N73BCSUL.js";
49
+ import "../_node-chunks/chunk-XH6HLMNG.js";
50
+ import "../_node-chunks/chunk-F347QVLI.js";
51
+ import "../_node-chunks/chunk-LMYIILVH.js";
52
+ import "../_node-chunks/chunk-A2364FS2.js";
53
+ import "../_node-chunks/chunk-5BYTBW23.js";
54
54
  export {
55
55
  ANGULAR_JSON_PATH,
56
56
  AddonVitestService,
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_w8tq4vh9mzk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_bfa4dw0yocr from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_bfa4dw0yocr from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_bfa4dw0yocr from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_bfa4dw0yocr.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_bfa4dw0yocr.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_bfa4dw0yocr.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -102,29 +102,29 @@ import {
102
102
  validateConfigurationFiles,
103
103
  validateFrameworkName,
104
104
  wrapValueWithGetAbsolutePathWrapper
105
- } from "../_node-chunks/chunk-PWI3ORDV.js";
105
+ } from "../_node-chunks/chunk-USLMTVEL.js";
106
106
  import {
107
107
  versions_default
108
- } from "../_node-chunks/chunk-RGEHGZS6.js";
109
- import "../_node-chunks/chunk-XYONORVT.js";
110
- import "../_node-chunks/chunk-ZOUBYBCH.js";
111
- import "../_node-chunks/chunk-C3FPVGL4.js";
108
+ } from "../_node-chunks/chunk-2H33L3XJ.js";
109
+ import "../_node-chunks/chunk-4HG57EIN.js";
110
+ import "../_node-chunks/chunk-OT3P3RDM.js";
111
+ import "../_node-chunks/chunk-OZGI27C5.js";
112
112
  import {
113
113
  groupBy,
114
114
  invariant
115
- } from "../_node-chunks/chunk-KKNWPXMS.js";
115
+ } from "../_node-chunks/chunk-6TOW3ZMZ.js";
116
116
  import {
117
117
  importMetaResolve,
118
118
  importModule,
119
119
  resolvePackageDir,
120
120
  safeResolveModule
121
- } from "../_node-chunks/chunk-3D4SLKEE.js";
122
- import "../_node-chunks/chunk-5Q5JEISY.js";
123
- import "../_node-chunks/chunk-JBRILZWU.js";
124
- import "../_node-chunks/chunk-DJ3RRSJ7.js";
125
- import "../_node-chunks/chunk-G7P42ZEY.js";
126
- import "../_node-chunks/chunk-XI7HDOMY.js";
127
- import "../_node-chunks/chunk-25OWI2RR.js";
121
+ } from "../_node-chunks/chunk-DIZCVGPK.js";
122
+ import "../_node-chunks/chunk-N73BCSUL.js";
123
+ import "../_node-chunks/chunk-2M7TBZBZ.js";
124
+ import "../_node-chunks/chunk-OZHRGJKY.js";
125
+ import "../_node-chunks/chunk-XH6HLMNG.js";
126
+ import "../_node-chunks/chunk-A2364FS2.js";
127
+ import "../_node-chunks/chunk-5BYTBW23.js";
128
128
  export {
129
129
  DEFAULT_FILES_PATTERN,
130
130
  FileSystemCache,
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { ComponentProps, AnchorHTMLAttributes, MouseEvent as MouseEvent$1, ReactNode, ReactElement, SyntheticEvent, HTMLAttributes, Component, RefObject, DOMAttributes, FC, PropsWithChildren, ForwardRefExoticComponent, ButtonHTMLAttributes, RefAttributes, ElementType } from 'react';
2
+ import React__default, { ComponentProps, AnchorHTMLAttributes, MouseEvent as MouseEvent$1, ReactNode, ReactElement, SyntheticEvent, DOMAttributes, HTMLAttributes, Component, RefObject, FC, PropsWithChildren, ForwardRefExoticComponent, ButtonHTMLAttributes, RefAttributes, ElementType } from 'react';
3
3
  import { API_KeyCollection } from 'storybook/manager-api';
4
4
  import { color, CSSObject, FunctionInterpolation } from 'storybook/theming';
5
5
  import { DecoratorFunction } from 'storybook/internal/csf';
@@ -455,6 +455,7 @@ declare const CardContent: StyledComponent<{
455
455
  interface CardProps extends ComponentProps<typeof CardContent> {
456
456
  outlineAnimation?: 'none' | 'rainbow' | 'spin';
457
457
  outlineColor?: keyof typeof color;
458
+ outlineAttrs?: DOMAttributes<HTMLDivElement>;
458
459
  }
459
460
  declare const Card: React__default.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React__default.RefAttributes<HTMLDivElement>> & {
460
461
  Content: StyledComponent<{
@@ -1160,39 +1160,26 @@ import $HgANd$react from "react";
1160
1160
  var $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document < "u" ? $HgANd$react.useLayoutEffect : () => {
1161
1161
  };
1162
1162
 
1163
- // ../../node_modules/@react-aria/utils/dist/useEffectEvent.mjs
1164
- import $lmaYr$react, { useRef as $lmaYr$useRef, useCallback as $lmaYr$useCallback } from "react";
1165
- var $8ae05eaa5c114e9c$var$_React_useInsertionEffect, $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = $lmaYr$react.useInsertionEffect) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
1166
- function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
1167
- let ref = $lmaYr$useRef(null);
1168
- return $8ae05eaa5c114e9c$var$useEarlyEffect(() => {
1169
- ref.current = fn;
1170
- }, [
1171
- fn
1172
- ]), $lmaYr$useCallback((...args) => {
1173
- let f = ref.current;
1174
- return f?.(...args);
1175
- }, []);
1176
- }
1177
-
1178
1163
  // ../../node_modules/@react-aria/utils/dist/useValueEffect.mjs
1179
- import { useState as $fCAlL$useState, useRef as $fCAlL$useRef } from "react";
1164
+ import { useState as $fCAlL$useState, useRef as $fCAlL$useRef, useCallback as $fCAlL$useCallback } from "react";
1180
1165
  function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
1181
- let [value, setValue] = $fCAlL$useState(defaultValue), effect = $fCAlL$useRef(null), nextRef = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
1166
+ let [value, setValue] = $fCAlL$useState(defaultValue), currValue = $fCAlL$useRef(value), effect = $fCAlL$useRef(null), nextRef = $fCAlL$useRef(() => {
1182
1167
  if (!effect.current) return;
1183
1168
  let newValue = effect.current.next();
1184
1169
  if (newValue.done) {
1185
1170
  effect.current = null;
1186
1171
  return;
1187
1172
  }
1188
- value === newValue.value ? nextRef() : setValue(newValue.value);
1173
+ currValue.current === newValue.value ? nextRef.current() : setValue(newValue.value);
1189
1174
  });
1190
1175
  $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
1191
- effect.current && nextRef();
1192
- });
1193
- let queue = $8ae05eaa5c114e9c$export$7f54fc3180508a52((fn) => {
1194
- effect.current = fn(value), nextRef();
1176
+ currValue.current = value, effect.current && nextRef.current();
1195
1177
  });
1178
+ let queue = $fCAlL$useCallback((fn) => {
1179
+ effect.current = fn(currValue.current), nextRef.current();
1180
+ }, [
1181
+ nextRef
1182
+ ]);
1196
1183
  return [
1197
1184
  value,
1198
1185
  queue
@@ -1586,7 +1573,7 @@ var $65484d02dcb7eb3e$var$DOMPropNames = /* @__PURE__ */ new Set([
1586
1573
  ]), $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
1587
1574
  function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
1588
1575
  let { labelable, isLink: isLink2, global: global2, events = global2, propNames } = opts, filteredProps = {};
1589
- for (let prop in props) Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink2 && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || global2 && $65484d02dcb7eb3e$var$globalAttrs.has(prop) || events && $65484d02dcb7eb3e$var$globalEvents.has(prop) || prop.endsWith("Capture") && $65484d02dcb7eb3e$var$globalEvents.has(prop.slice(0, -7)) || propNames?.has(prop) || $65484d02dcb7eb3e$var$propRe.test(prop)) && (filteredProps[prop] = props[prop]);
1576
+ for (let prop in props) Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink2 && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || global2 && $65484d02dcb7eb3e$var$globalAttrs.has(prop) || events && ($65484d02dcb7eb3e$var$globalEvents.has(prop) || prop.endsWith("Capture") && $65484d02dcb7eb3e$var$globalEvents.has(prop.slice(0, -7))) || propNames?.has(prop) || $65484d02dcb7eb3e$var$propRe.test(prop)) && (filteredProps[prop] = props[prop]);
1590
1577
  return filteredProps;
1591
1578
  }
1592
1579
 
@@ -1703,6 +1690,7 @@ function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening
1703
1690
  ctrlKey,
1704
1691
  altKey,
1705
1692
  shiftKey,
1693
+ detail: 1,
1706
1694
  bubbles: !0,
1707
1695
  cancelable: !0
1708
1696
  });
@@ -1850,6 +1838,21 @@ function $df56164dff5785e2$export$4338b53315abf666(ref) {
1850
1838
  ]);
1851
1839
  }
1852
1840
 
1841
+ // ../../node_modules/@react-aria/utils/dist/useEffectEvent.mjs
1842
+ import $lmaYr$react, { useRef as $lmaYr$useRef, useCallback as $lmaYr$useCallback } from "react";
1843
+ var $8ae05eaa5c114e9c$var$_React_useInsertionEffect, $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = $lmaYr$react.useInsertionEffect) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
1844
+ function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
1845
+ let ref = $lmaYr$useRef(null);
1846
+ return $8ae05eaa5c114e9c$var$useEarlyEffect(() => {
1847
+ ref.current = fn;
1848
+ }, [
1849
+ fn
1850
+ ]), $lmaYr$useCallback((...args) => {
1851
+ let f = ref.current;
1852
+ return f?.(...args);
1853
+ }, []);
1854
+ }
1855
+
1853
1856
  // ../../node_modules/@react-aria/utils/dist/useUpdateEffect.mjs
1854
1857
  import { useRef as $9vW05$useRef, useEffect as $9vW05$useEffect } from "react";
1855
1858
 
@@ -1870,13 +1873,13 @@ function $9daab02d461809db$var$hasResizeObserver() {
1870
1873
  return typeof window.ResizeObserver < "u";
1871
1874
  }
1872
1875
  function $9daab02d461809db$export$683480f191c0e3ea(options) {
1873
- let { ref, box, onResize } = options;
1876
+ let { ref, box, onResize } = options, onResizeEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onResize);
1874
1877
  $Vsl8o$useEffect(() => {
1875
1878
  let element = ref?.current;
1876
1879
  if (element)
1877
1880
  if ($9daab02d461809db$var$hasResizeObserver()) {
1878
1881
  let resizeObserverInstance = new window.ResizeObserver((entries) => {
1879
- entries.length && onResize();
1882
+ entries.length && onResizeEvent();
1880
1883
  });
1881
1884
  return resizeObserverInstance.observe(element, {
1882
1885
  box
@@ -1884,11 +1887,10 @@ function $9daab02d461809db$export$683480f191c0e3ea(options) {
1884
1887
  element && resizeObserverInstance.unobserve(element);
1885
1888
  };
1886
1889
  } else
1887
- return window.addEventListener("resize", onResize, !1), () => {
1888
- window.removeEventListener("resize", onResize, !1);
1890
+ return window.addEventListener("resize", onResizeEvent, !1), () => {
1891
+ window.removeEventListener("resize", onResizeEvent, !1);
1889
1892
  };
1890
1893
  }, [
1891
- onResize,
1892
1894
  ref,
1893
1895
  box
1894
1896
  ]);
@@ -1992,22 +1994,14 @@ function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options)
1992
1994
  ref,
1993
1995
  event,
1994
1996
  options,
1995
- isDisabled,
1996
- handleEvent
1997
+ isDisabled
1997
1998
  ]);
1998
1999
  }
1999
2000
 
2000
2001
  // ../../node_modules/@react-aria/utils/dist/scrollIntoView.mjs
2001
2002
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
2002
- let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "left"), offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "top"), width = element.offsetWidth, height = element.offsetHeight, x = scrollView.scrollLeft, y = scrollView.scrollTop, { borderTopWidth, borderLeftWidth, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft } = getComputedStyle(scrollView), { scrollMarginTop, scrollMarginRight, scrollMarginBottom, scrollMarginLeft } = getComputedStyle(element), borderAdjustedX = x + parseInt(borderLeftWidth, 10), borderAdjustedY = y + parseInt(borderTopWidth, 10), maxX = borderAdjustedX + scrollView.clientWidth, maxY = borderAdjustedY + scrollView.clientHeight, scrollPaddingTopNumber = parseInt(scrollPaddingTop, 10) || 0, scrollPaddingBottomNumber = parseInt(scrollPaddingBottom, 10) || 0, scrollPaddingRightNumber = parseInt(scrollPaddingRight, 10) || 0, scrollPaddingLeftNumber = parseInt(scrollPaddingLeft, 10) || 0, scrollMarginTopNumber = parseInt(scrollMarginTop, 10) || 0, scrollMarginBottomNumber = parseInt(scrollMarginBottom, 10) || 0, scrollMarginRightNumber = parseInt(scrollMarginRight, 10) || 0, scrollMarginLeftNumber = parseInt(scrollMarginLeft, 10) || 0, targetLeft = offsetX - scrollMarginLeftNumber, targetRight = offsetX + width + scrollMarginRightNumber, targetTop = offsetY - scrollMarginTopNumber, targetBottom = offsetY + height + scrollMarginBottomNumber, scrollPortLeft = x + parseInt(borderLeftWidth, 10) + scrollPaddingLeftNumber, scrollPortRight = maxX - scrollPaddingRightNumber, scrollPortTop = y + parseInt(borderTopWidth, 10) + scrollPaddingTopNumber, scrollPortBottom = maxY - scrollPaddingBottomNumber;
2003
- if ((targetLeft > scrollPortLeft || targetRight < scrollPortRight) && (targetLeft <= x + scrollPaddingLeftNumber ? x = targetLeft - parseInt(borderLeftWidth, 10) - scrollPaddingLeftNumber : targetRight > maxX - scrollPaddingRightNumber && (x += targetRight - maxX + scrollPaddingRightNumber)), (targetTop > scrollPortTop || targetBottom < scrollPortBottom) && (targetTop <= borderAdjustedY + scrollPaddingTopNumber ? y = targetTop - parseInt(borderTopWidth, 10) - scrollPaddingTopNumber : targetBottom > maxY - scrollPaddingBottomNumber && (y += targetBottom - maxY + scrollPaddingBottomNumber)), process.env.NODE_ENV === "test") {
2004
- scrollView.scrollLeft = x, scrollView.scrollTop = y;
2005
- return;
2006
- }
2007
- scrollView.scrollTo({
2008
- left: x,
2009
- top: y
2010
- });
2003
+ let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "left"), offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "top"), width = element.offsetWidth, height = element.offsetHeight, x = scrollView.scrollLeft, y = scrollView.scrollTop, { borderTopWidth, borderLeftWidth, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft } = getComputedStyle(scrollView), borderAdjustedX = x + parseInt(borderLeftWidth, 10), borderAdjustedY = y + parseInt(borderTopWidth, 10), maxX = borderAdjustedX + scrollView.clientWidth, maxY = borderAdjustedY + scrollView.clientHeight, scrollPaddingTopNumber = parseInt(scrollPaddingTop, 10) || 0, scrollPaddingBottomNumber = parseInt(scrollPaddingBottom, 10) || 0, scrollPaddingRightNumber = parseInt(scrollPaddingRight, 10) || 0, scrollPaddingLeftNumber = parseInt(scrollPaddingLeft, 10) || 0;
2004
+ offsetX <= x + scrollPaddingLeftNumber ? x = offsetX - parseInt(borderLeftWidth, 10) - scrollPaddingLeftNumber : offsetX + width > maxX - scrollPaddingRightNumber && (x += offsetX + width - maxX + scrollPaddingRightNumber), offsetY <= borderAdjustedY + scrollPaddingTopNumber ? y = offsetY - parseInt(borderTopWidth, 10) - scrollPaddingTopNumber : offsetY + height > maxY - scrollPaddingBottomNumber && (y += offsetY + height - maxY + scrollPaddingBottomNumber), scrollView.scrollLeft = x, scrollView.scrollTop = y;
2011
2005
  }
2012
2006
  function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {
2013
2007
  let prop = axis === "left" ? "offsetLeft" : "offsetTop", sum = 0;
@@ -2022,8 +2016,12 @@ function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {
2022
2016
  }
2023
2017
  function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
2024
2018
  if (targetElement && document.contains(targetElement)) {
2025
- let root = document.scrollingElement || document.documentElement;
2026
- if (!(window.getComputedStyle(root).overflow === "hidden") && !$c87311424ea30a05$export$6446a186d09e379e()) {
2019
+ let root = document.scrollingElement || document.documentElement, isScrollPrevented = window.getComputedStyle(root).overflow === "hidden";
2020
+ if (isScrollPrevented) {
2021
+ let scrollParents = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(targetElement);
2022
+ isScrollPrevented || scrollParents.push(root);
2023
+ for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);
2024
+ } else {
2027
2025
  var _targetElement_scrollIntoView;
2028
2026
  let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
2029
2027
  targetElement == null || (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 || _targetElement_scrollIntoView.call(targetElement, {
@@ -2039,9 +2037,6 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
2039
2037
  block: "nearest"
2040
2038
  });
2041
2039
  }
2042
- } else {
2043
- let scrollParents = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(targetElement);
2044
- for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);
2045
2040
  }
2046
2041
  }
2047
2042
  }
@@ -2191,26 +2186,25 @@ function $b4b717babfbb907b$var$isInert(element) {
2191
2186
  }
2192
2187
 
2193
2188
  // ../../node_modules/@react-stately/utils/dist/useControlledState.mjs
2194
- import { useState as $3whtM$useState, useRef as $3whtM$useRef, useEffect as $3whtM$useEffect, useCallback as $3whtM$useCallback } from "react";
2189
+ import $3whtM$react, { useState as $3whtM$useState, useRef as $3whtM$useRef, useEffect as $3whtM$useEffect, useReducer as $3whtM$useReducer, useCallback as $3whtM$useCallback } from "react";
2190
+ var $458b0a5536c1a7cf$var$_React_useInsertionEffect, $458b0a5536c1a7cf$var$useEarlyEffect = typeof document < "u" ? ($458b0a5536c1a7cf$var$_React_useInsertionEffect = $3whtM$react.useInsertionEffect) !== null && $458b0a5536c1a7cf$var$_React_useInsertionEffect !== void 0 ? $458b0a5536c1a7cf$var$_React_useInsertionEffect : $3whtM$react.useLayoutEffect : () => {
2191
+ };
2195
2192
  function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {
2196
- let [stateValue, setStateValue] = $3whtM$useState(value || defaultValue), isControlledRef = $3whtM$useRef(value !== void 0), isControlled = value !== void 0;
2193
+ let [stateValue, setStateValue] = $3whtM$useState(value || defaultValue), valueRef = $3whtM$useRef(stateValue), isControlledRef = $3whtM$useRef(value !== void 0), isControlled = value !== void 0;
2197
2194
  $3whtM$useEffect(() => {
2198
2195
  let wasControlled = isControlledRef.current;
2199
2196
  wasControlled !== isControlled && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${wasControlled ? "controlled" : "uncontrolled"} to ${isControlled ? "controlled" : "uncontrolled"}.`), isControlledRef.current = isControlled;
2200
2197
  }, [
2201
2198
  isControlled
2202
2199
  ]);
2203
- let currentValue = isControlled ? value : stateValue, setValue = $3whtM$useCallback((value2, ...args) => {
2204
- let onChangeCaller = (value3, ...onChangeArgs) => {
2205
- onChange && (Object.is(currentValue, value3) || onChange(value3, ...onChangeArgs)), isControlled || (currentValue = value3);
2206
- };
2207
- typeof value2 == "function" ? (process.env.NODE_ENV !== "production" && console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), setStateValue((oldValue, ...functionArgs) => {
2208
- let interceptedValue = value2(isControlled ? currentValue : oldValue, ...functionArgs);
2209
- return onChangeCaller(interceptedValue, ...args), isControlled ? oldValue : interceptedValue;
2210
- })) : (isControlled || setStateValue(value2), onChangeCaller(value2, ...args));
2200
+ let currentValue = isControlled ? value : stateValue;
2201
+ $458b0a5536c1a7cf$var$useEarlyEffect(() => {
2202
+ valueRef.current = currentValue;
2203
+ });
2204
+ let [, forceUpdate] = $3whtM$useReducer(() => ({}), {}), setValue = $3whtM$useCallback((value2, ...args) => {
2205
+ let newValue = typeof value2 == "function" ? value2(valueRef.current) : value2;
2206
+ Object.is(valueRef.current, newValue) || (valueRef.current = newValue, setStateValue(newValue), forceUpdate(), onChange?.(newValue, ...args));
2211
2207
  }, [
2212
- isControlled,
2213
- currentValue,
2214
2208
  onChange
2215
2209
  ]);
2216
2210
  return [
@@ -9119,8 +9113,8 @@ var fadeInOut = keyframes({
9119
9113
  }
9120
9114
  }
9121
9115
  })), Card = Object.assign(
9122
- forwardRef7(function({ outlineAnimation = "none", outlineColor, ...props }, ref) {
9123
- return React18.createElement(CardOutline, { animation: outlineAnimation, color: outlineColor, ref }, React18.createElement(CardContent, { ...props }));
9116
+ forwardRef7(function({ outlineAnimation = "none", outlineColor, outlineAttrs = {}, ...props }, ref) {
9117
+ return React18.createElement(CardOutline, { animation: outlineAnimation, color: outlineColor, ref, ...outlineAttrs }, React18.createElement(CardContent, { ...props }));
9124
9118
  }),
9125
9119
  {
9126
9120
  Content: CardContent,
@@ -9955,8 +9949,9 @@ var sizes = (({ size }) => {
9955
9949
  outline: "1px solid highlight"
9956
9950
  }
9957
9951
  },
9958
- "&[disabled]": {
9959
- background: theme.base === "light" ? theme.color.lighter : "transparent"
9952
+ '&[disabled], &[aria-disabled="true"]': {
9953
+ background: theme.base === "light" ? theme.color.lighter : "transparent",
9954
+ cursor: "not-allowed"
9960
9955
  },
9961
9956
  "&:-webkit-autofill": { WebkitBoxShadow: `0 0 0 3em ${theme.color.lightest} inset` },
9962
9957
  "&::placeholder": {
@@ -1406,4 +1406,9 @@ declare const fullTestProviderStore: {
1406
1406
  declare const getTestProviderStoreById: (testProviderId: TestProviderId) => TestProviderStoreById;
1407
1407
  declare const universalTestProviderStore: UniversalStore<TestProviderStateByProviderId, TestProviderStoreEvent>;
1408
1408
 
1409
- export { type BuildIndexOptions, type BuildStaticStandaloneOptions, type ComponentArgTypesData, type GenerateStoryOptions, type GenerateStoryResult, StoryIndexGenerator, Tag, analyze as analyzeMdx, build, buildDevStandalone, buildIndex, buildIndexStandalone, buildStaticStandalone, MockUniversalStore as experimental_MockUniversalStore, UniversalStore as experimental_UniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, loadStorybook as experimental_loadStorybook, generateStoryFile, getErrorLevel, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, isTelemetryEnabled, mapStaticDir, sendTelemetryError, withTelemetry };
1409
+ interface PortOptions {
1410
+ exactPort?: boolean;
1411
+ }
1412
+ declare const getServerPort: (port?: number, { exactPort }?: PortOptions) => Promise<number>;
1413
+
1414
+ export { type BuildIndexOptions, type BuildStaticStandaloneOptions, type ComponentArgTypesData, type GenerateStoryOptions, type GenerateStoryResult, StoryIndexGenerator, Tag, analyze as analyzeMdx, build, buildDevStandalone, buildIndex, buildIndexStandalone, buildStaticStandalone, MockUniversalStore as experimental_MockUniversalStore, UniversalStore as experimental_UniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, loadStorybook as experimental_loadStorybook, generateStoryFile, getErrorLevel, getServerPort, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, isTelemetryEnabled, mapStaticDir, sendTelemetryError, withTelemetry };
@@ -1,20 +1,20 @@
1
- import CJS_COMPAT_NODE_URL_w8tq4vh9mzk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_bfa4dw0yocr from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_bfa4dw0yocr from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_bfa4dw0yocr from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_bfa4dw0yocr.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_bfa4dw0yocr.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_bfa4dw0yocr.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 "../_node-chunks/chunk-V3SFCYKQ.js";
14
+ } from "../_node-chunks/chunk-HXE2FZ3F.js";
15
15
  import {
16
16
  StatusTypeIdMismatchError
17
- } from "../_node-chunks/chunk-2XSHQN7K.js";
17
+ } from "../_node-chunks/chunk-BWA66NDS.js";
18
18
  import {
19
19
  debounce,
20
20
  generateStoryFile,
@@ -25,69 +25,69 @@ import {
25
25
  sendTelemetryError,
26
26
  useStatics,
27
27
  withTelemetry
28
- } from "../_node-chunks/chunk-XTIFAWOB.js";
28
+ } from "../_node-chunks/chunk-ZUTW3EKD.js";
29
29
  import {
30
30
  detectPnp
31
- } from "../_node-chunks/chunk-EG3WZ464.js";
32
- import "../_node-chunks/chunk-IWM3WHZE.js";
31
+ } from "../_node-chunks/chunk-JK62DOZL.js";
32
+ import "../_node-chunks/chunk-4PWGJYBL.js";
33
33
  import {
34
34
  StorybookError
35
- } from "../_node-chunks/chunk-FAARRTOD.js";
35
+ } from "../_node-chunks/chunk-54FLVGBQ.js";
36
36
  import {
37
37
  telemetry
38
- } from "../_node-chunks/chunk-EYPTVKFI.js";
39
- import "../_node-chunks/chunk-CBPOKBOR.js";
38
+ } from "../_node-chunks/chunk-5QNVOHBZ.js";
39
+ import "../_node-chunks/chunk-Q3WHGQXN.js";
40
40
  import {
41
41
  optionalEnvToBoolean,
42
42
  require_cross_spawn,
43
43
  resolveImport,
44
44
  supportedExtensions,
45
45
  userOrAutoTitleFromSpecifier
46
- } from "../_node-chunks/chunk-PWI3ORDV.js";
47
- import "../_node-chunks/chunk-RGEHGZS6.js";
48
- import "../_node-chunks/chunk-XYONORVT.js";
46
+ } from "../_node-chunks/chunk-USLMTVEL.js";
47
+ import "../_node-chunks/chunk-2H33L3XJ.js";
48
+ import "../_node-chunks/chunk-4HG57EIN.js";
49
49
  import {
50
50
  require_pretty_hrtime
51
- } from "../_node-chunks/chunk-ZOUBYBCH.js";
52
- import "../_node-chunks/chunk-GYJ7LPFJ.js";
53
- import "../_node-chunks/chunk-VK4OWRKU.js";
51
+ } from "../_node-chunks/chunk-OT3P3RDM.js";
52
+ import "../_node-chunks/chunk-GJRLPTXZ.js";
53
+ import "../_node-chunks/chunk-H4TYBETM.js";
54
54
  import {
55
55
  invariant,
56
56
  up2 as up
57
- } from "../_node-chunks/chunk-C3FPVGL4.js";
58
- import "../_node-chunks/chunk-KKNWPXMS.js";
57
+ } from "../_node-chunks/chunk-OZGI27C5.js";
58
+ import "../_node-chunks/chunk-6TOW3ZMZ.js";
59
59
  import {
60
60
  importModule,
61
61
  resolvePackageDir
62
- } from "../_node-chunks/chunk-3D4SLKEE.js";
62
+ } from "../_node-chunks/chunk-DIZCVGPK.js";
63
63
  import {
64
64
  dirname,
65
65
  join,
66
66
  relative,
67
67
  resolve
68
- } from "../_node-chunks/chunk-5Q5JEISY.js";
68
+ } from "../_node-chunks/chunk-N73BCSUL.js";
69
69
  import {
70
70
  slash
71
- } from "../_node-chunks/chunk-JBRILZWU.js";
72
- import "../_node-chunks/chunk-DJ3RRSJ7.js";
71
+ } from "../_node-chunks/chunk-2M7TBZBZ.js";
72
+ import "../_node-chunks/chunk-OZHRGJKY.js";
73
73
  import {
74
74
  Tag
75
- } from "../_node-chunks/chunk-VTBZVEBF.js";
75
+ } from "../_node-chunks/chunk-QNYGS5WG.js";
76
76
  import {
77
77
  require_dist
78
- } from "../_node-chunks/chunk-G7P42ZEY.js";
78
+ } from "../_node-chunks/chunk-XH6HLMNG.js";
79
79
  import {
80
80
  require_lib,
81
81
  require_src
82
- } from "../_node-chunks/chunk-MU4E5UBA.js";
82
+ } from "../_node-chunks/chunk-LMYIILVH.js";
83
83
  import {
84
84
  require_picocolors
85
- } from "../_node-chunks/chunk-XI7HDOMY.js";
85
+ } from "../_node-chunks/chunk-A2364FS2.js";
86
86
  import {
87
87
  __commonJS,
88
88
  __require,
89
89
  __toESM
90
- } from "../_node-chunks/chunk-25OWI2RR.js";
90
+ } from "../_node-chunks/chunk-5BYTBW23.js";
91
91
 
92
92
  // ../../node_modules/glob-to-regexp/index.js
93
93
  var require_glob_to_regexp = __commonJS({
@@ -4544,7 +4544,7 @@ function print(p) {
4544
4544
  // src/core-server/utils/get-builders.ts
4545
4545
  import { MissingBuilderError } from "storybook/internal/server-errors";
4546
4546
  async function getManagerBuilder() {
4547
- return await import("../_node-chunks/builder-manager-Q4F5VX5J.js");
4547
+ return await import("../_node-chunks/builder-manager-RC5VXLE2.js");
4548
4548
  }
4549
4549
  async function getPreviewBuilder(resolvedPreviewBuilder) {
4550
4550
  return await importModule(resolvedPreviewBuilder);
@@ -4608,7 +4608,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
4608
4608
  // files can be e.g. '**/foo/*/*.js' so we just want the last bit,
4609
4609
  // because the directory could already be within the files part (e.g. './x/foo/bar')
4610
4610
  basename(specifier.files)
4611
- ), { globby } = await import("../_node-chunks/globby-4BDMCAAD.js");
4611
+ ), { globby } = await import("../_node-chunks/globby-IVEL6LAU.js");
4612
4612
  (await globby(slash(dirGlob), commonGlobOptions(dirGlob))).forEach((filePath) => {
4613
4613
  let fileImportPath = toImportPath(filePath);
4614
4614
  specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(fileImportPath, removed);
@@ -5627,7 +5627,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
5627
5627
  isTemplate: !1,
5628
5628
  metaTags: void 0,
5629
5629
  imports: void 0
5630
- }, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-JFERGMQH.js");
5630
+ }, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-V7NAUWUX.js");
5631
5631
  await compile(code, {
5632
5632
  rehypePlugins: [[plugin, store]]
5633
5633
  });
@@ -5772,7 +5772,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
5772
5772
  let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
5773
5773
  if (cached)
5774
5774
  return cached;
5775
- let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-4BDMCAAD.js"), files = await globby(globPattern, {
5775
+ let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-IVEL6LAU.js"), files = await globby(globPattern, {
5776
5776
  absolute: !0,
5777
5777
  cwd: globCwd,
5778
5778
  ...commonGlobOptions2(globPattern)
@@ -7988,6 +7988,7 @@ export {
7988
7988
  getErrorLevel,
7989
7989
  getPreviewBodyTemplate,
7990
7990
  getPreviewHeadTemplate,
7991
+ getServerPort,
7991
7992
  fullStatusStore as internal_fullStatusStore,
7992
7993
  fullTestProviderStore as internal_fullTestProviderStore,
7993
7994
  universalStatusStore as internal_universalStatusStore,
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_w8tq4vh9mzk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_bfa4dw0yocr from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_bfa4dw0yocr from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_bfa4dw0yocr from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_bfa4dw0yocr.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_bfa4dw0yocr.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_bfa4dw0yocr.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
  slash
14
- } from "../../_node-chunks/chunk-JBRILZWU.js";
14
+ } from "../../_node-chunks/chunk-2M7TBZBZ.js";
15
15
  import {
16
16
  glob
17
- } from "../../_node-chunks/chunk-DJ3RRSJ7.js";
18
- import "../../_node-chunks/chunk-25OWI2RR.js";
17
+ } from "../../_node-chunks/chunk-OZHRGJKY.js";
18
+ import "../../_node-chunks/chunk-5BYTBW23.js";
19
19
 
20
20
  // src/core-server/utils/remove-mdx-entries.ts
21
21
  import { isAbsolute, join, relative } from "node:path";