@flamingo-stack/openframe-frontend-core 0.0.490 → 0.0.491

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 (154) hide show
  1. package/dist/{chunk-VUXNXWOQ.cjs → chunk-2RTNC3KP.cjs} +1036 -873
  2. package/dist/chunk-2RTNC3KP.cjs.map +1 -0
  3. package/dist/{chunk-VDZO6IDR.js → chunk-2YQK6LHR.js} +5 -5
  4. package/dist/{chunk-BZMOEWWS.js → chunk-35CTCUJ7.js} +6 -6
  5. package/dist/{chunk-GUTYUMGV.cjs → chunk-6O3YTVLG.cjs} +12 -12
  6. package/dist/{chunk-GUTYUMGV.cjs.map → chunk-6O3YTVLG.cjs.map} +1 -1
  7. package/dist/{chunk-RW2LPL72.js → chunk-6WTCJI5R.js} +2 -2
  8. package/dist/{chunk-WLM3F3WU.js → chunk-6XNWT2KC.js} +3 -3
  9. package/dist/{chunk-IEZ3YBAP.cjs → chunk-7NRRONK5.cjs} +32 -32
  10. package/dist/{chunk-IEZ3YBAP.cjs.map → chunk-7NRRONK5.cjs.map} +1 -1
  11. package/dist/{chunk-OQIMH2WQ.js → chunk-CYIUPI7J.js} +1167 -1004
  12. package/dist/{chunk-OQIMH2WQ.js.map → chunk-CYIUPI7J.js.map} +1 -1
  13. package/dist/{chunk-6CJ2K7BD.js → chunk-CZTKQVIQ.js} +3 -3
  14. package/dist/{chunk-3IEVA5AO.cjs → chunk-EHHX22JL.cjs} +93 -93
  15. package/dist/{chunk-3IEVA5AO.cjs.map → chunk-EHHX22JL.cjs.map} +1 -1
  16. package/dist/{chunk-7I42V2OD.cjs → chunk-GL33BHGZ.cjs} +73 -73
  17. package/dist/{chunk-7I42V2OD.cjs.map → chunk-GL33BHGZ.cjs.map} +1 -1
  18. package/dist/{chunk-AIRNG27G.js → chunk-GTMW4KY7.js} +6 -6
  19. package/dist/{chunk-EJQUYZXF.cjs → chunk-HRMOCJKU.cjs} +12 -12
  20. package/dist/{chunk-EJQUYZXF.cjs.map → chunk-HRMOCJKU.cjs.map} +1 -1
  21. package/dist/{chunk-AW63ET2A.cjs → chunk-ITV6LSG7.cjs} +19 -19
  22. package/dist/{chunk-AW63ET2A.cjs.map → chunk-ITV6LSG7.cjs.map} +1 -1
  23. package/dist/{chunk-6CFFISUC.js → chunk-IUGJAILN.js} +3 -3
  24. package/dist/{chunk-FY5XAW3H.cjs → chunk-J2V4B6FF.cjs} +18 -18
  25. package/dist/{chunk-FY5XAW3H.cjs.map → chunk-J2V4B6FF.cjs.map} +1 -1
  26. package/dist/{chunk-UZZT65PQ.cjs → chunk-PVSXTCJY.cjs} +40 -40
  27. package/dist/{chunk-UZZT65PQ.cjs.map → chunk-PVSXTCJY.cjs.map} +1 -1
  28. package/dist/{chunk-VL2YMDPH.js → chunk-QF54RPHZ.js} +6 -6
  29. package/dist/{chunk-GZK7FWJJ.js → chunk-QKWOBV55.js} +12 -12
  30. package/dist/chunk-QKWOBV55.js.map +1 -0
  31. package/dist/{chunk-D5LQMRPU.cjs → chunk-QNFAZIFC.cjs} +5 -5
  32. package/dist/{chunk-D5LQMRPU.cjs.map → chunk-QNFAZIFC.cjs.map} +1 -1
  33. package/dist/{chunk-STYA77PH.cjs → chunk-SGL6URIJ.cjs} +12 -12
  34. package/dist/chunk-SGL6URIJ.cjs.map +1 -0
  35. package/dist/{chunk-EGXCWZYP.js → chunk-T4BUS6JV.js} +3 -3
  36. package/dist/{chunk-KP5KRRD6.cjs → chunk-THC3K262.cjs} +3 -3
  37. package/dist/{chunk-KP5KRRD6.cjs.map → chunk-THC3K262.cjs.map} +1 -1
  38. package/dist/{chunk-BIKOJ4FH.cjs → chunk-TTYJAZ7P.cjs} +58 -32
  39. package/dist/chunk-TTYJAZ7P.cjs.map +1 -0
  40. package/dist/{chunk-MPYDX5WX.js → chunk-U2JIGUXF.js} +4 -4
  41. package/dist/{chunk-2MKUHJ3O.cjs → chunk-VD4QDSP7.cjs} +40 -40
  42. package/dist/{chunk-2MKUHJ3O.cjs.map → chunk-VD4QDSP7.cjs.map} +1 -1
  43. package/dist/{chunk-PB3BTZDU.js → chunk-WEUNPE3S.js} +139 -113
  44. package/dist/chunk-WEUNPE3S.js.map +1 -0
  45. package/dist/{chunk-GMPYR3MX.cjs → chunk-YKE2KZ2Y.cjs} +33 -33
  46. package/dist/{chunk-GMPYR3MX.cjs.map → chunk-YKE2KZ2Y.cjs.map} +1 -1
  47. package/dist/{chunk-NGEFYPY7.js → chunk-ZDUJ6BDI.js} +4 -4
  48. package/dist/{chunk-6QK3ONDD.js → chunk-ZEC5U5T7.js} +2 -2
  49. package/dist/components/case-studies/index.cjs +10 -10
  50. package/dist/components/case-studies/index.js +4 -4
  51. package/dist/components/chat/index.cjs +4 -4
  52. package/dist/components/chat/index.js +3 -3
  53. package/dist/components/contact/index.cjs +5 -5
  54. package/dist/components/contact/index.js +4 -4
  55. package/dist/components/docs/index.cjs +7 -7
  56. package/dist/components/docs/index.js +6 -6
  57. package/dist/components/embeds/index.cjs +5 -5
  58. package/dist/components/embeds/index.js +4 -4
  59. package/dist/components/faq/index.cjs +6 -6
  60. package/dist/components/faq/index.js +5 -5
  61. package/dist/components/features/index.cjs +4 -4
  62. package/dist/components/features/index.js +3 -3
  63. package/dist/components/features/select-button.d.ts.map +1 -1
  64. package/dist/components/help-center-pages/index.cjs +23 -23
  65. package/dist/components/help-center-pages/index.js +14 -14
  66. package/dist/components/index.cjs +161 -161
  67. package/dist/components/index.js +12 -12
  68. package/dist/components/layout/page-layout.d.ts +7 -1
  69. package/dist/components/layout/page-layout.d.ts.map +1 -1
  70. package/dist/components/layout/title-block.d.ts +23 -1
  71. package/dist/components/layout/title-block.d.ts.map +1 -1
  72. package/dist/components/navigation/index.cjs +4 -4
  73. package/dist/components/navigation/index.js +3 -3
  74. package/dist/components/onboarding-guides/index.cjs +8 -8
  75. package/dist/components/onboarding-guides/index.js +7 -7
  76. package/dist/components/related-content/index.cjs +6 -6
  77. package/dist/components/related-content/index.js +5 -5
  78. package/dist/components/tickets/index.cjs +7 -7
  79. package/dist/components/tickets/index.js +6 -6
  80. package/dist/components/ui/autocomplete.d.ts.map +1 -1
  81. package/dist/components/ui/checkbox-block.d.ts.map +1 -1
  82. package/dist/components/ui/date-picker.d.ts.map +1 -1
  83. package/dist/components/ui/field-wrapper.d.ts +10 -1
  84. package/dist/components/ui/field-wrapper.d.ts.map +1 -1
  85. package/dist/components/ui/file-manager/index.cjs +50 -50
  86. package/dist/components/ui/file-manager/index.js +1 -1
  87. package/dist/components/ui/floating-tooltip.d.ts +8 -1
  88. package/dist/components/ui/floating-tooltip.d.ts.map +1 -1
  89. package/dist/components/ui/index.cjs +4 -4
  90. package/dist/components/ui/index.js +3 -3
  91. package/dist/components/ui/input-trigger.d.ts.map +1 -1
  92. package/dist/components/ui/input.d.ts.map +1 -1
  93. package/dist/components/ui/page-actions.d.ts +7 -1
  94. package/dist/components/ui/page-actions.d.ts.map +1 -1
  95. package/dist/components/ui/radio-group.d.ts.map +1 -1
  96. package/dist/components/ui/search-input.d.ts.map +1 -1
  97. package/dist/components/ui/select.d.ts.map +1 -1
  98. package/dist/components/ui/tab-navigation.d.ts +10 -1
  99. package/dist/components/ui/tab-navigation.d.ts.map +1 -1
  100. package/dist/components/ui/tag-search-input.d.ts.map +1 -1
  101. package/dist/components/ui/textarea.d.ts.map +1 -1
  102. package/dist/components/ui/truncate-text.d.ts +2 -2
  103. package/dist/components/ui/truncate-text.d.ts.map +1 -1
  104. package/dist/hooks/index.cjs +4 -2
  105. package/dist/hooks/index.cjs.map +1 -1
  106. package/dist/hooks/index.js +3 -1
  107. package/dist/hooks/ui/index.d.ts +1 -0
  108. package/dist/hooks/ui/index.d.ts.map +1 -1
  109. package/dist/hooks/ui/use-is-truncated.d.ts +33 -0
  110. package/dist/hooks/ui/use-is-truncated.d.ts.map +1 -0
  111. package/dist/index.cjs +6 -4
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.js +5 -3
  114. package/package.json +1 -1
  115. package/src/components/features/select-button.tsx +4 -1
  116. package/src/components/layout/page-layout.tsx +16 -0
  117. package/src/components/layout/title-block.tsx +106 -7
  118. package/src/components/ui/.field-wrapper.md +5 -4
  119. package/src/components/ui/.tab-navigation.md +14 -1
  120. package/src/components/ui/autocomplete.tsx +13 -1
  121. package/src/components/ui/button/button.tsx +1 -1
  122. package/src/components/ui/checkbox-block.tsx +27 -3
  123. package/src/components/ui/date-picker.tsx +15 -1
  124. package/src/components/ui/field-wrapper.tsx +12 -6
  125. package/src/components/ui/floating-tooltip.tsx +9 -1
  126. package/src/components/ui/input-trigger.tsx +8 -1
  127. package/src/components/ui/input.tsx +8 -1
  128. package/src/components/ui/page-actions.tsx +142 -30
  129. package/src/components/ui/radio-group.tsx +28 -3
  130. package/src/components/ui/search-input.tsx +2 -1
  131. package/src/components/ui/select.tsx +7 -0
  132. package/src/components/ui/tab-navigation.tsx +26 -4
  133. package/src/components/ui/tag-search-input.tsx +9 -2
  134. package/src/components/ui/textarea.tsx +8 -1
  135. package/src/components/ui/truncate-text.tsx +3 -18
  136. package/src/hooks/ui/index.ts +1 -0
  137. package/src/hooks/ui/use-is-truncated.ts +66 -0
  138. package/dist/chunk-BIKOJ4FH.cjs.map +0 -1
  139. package/dist/chunk-GZK7FWJJ.js.map +0 -1
  140. package/dist/chunk-PB3BTZDU.js.map +0 -1
  141. package/dist/chunk-STYA77PH.cjs.map +0 -1
  142. package/dist/chunk-VUXNXWOQ.cjs.map +0 -1
  143. /package/dist/{chunk-VDZO6IDR.js.map → chunk-2YQK6LHR.js.map} +0 -0
  144. /package/dist/{chunk-BZMOEWWS.js.map → chunk-35CTCUJ7.js.map} +0 -0
  145. /package/dist/{chunk-RW2LPL72.js.map → chunk-6WTCJI5R.js.map} +0 -0
  146. /package/dist/{chunk-WLM3F3WU.js.map → chunk-6XNWT2KC.js.map} +0 -0
  147. /package/dist/{chunk-6CJ2K7BD.js.map → chunk-CZTKQVIQ.js.map} +0 -0
  148. /package/dist/{chunk-AIRNG27G.js.map → chunk-GTMW4KY7.js.map} +0 -0
  149. /package/dist/{chunk-6CFFISUC.js.map → chunk-IUGJAILN.js.map} +0 -0
  150. /package/dist/{chunk-VL2YMDPH.js.map → chunk-QF54RPHZ.js.map} +0 -0
  151. /package/dist/{chunk-EGXCWZYP.js.map → chunk-T4BUS6JV.js.map} +0 -0
  152. /package/dist/{chunk-MPYDX5WX.js.map → chunk-U2JIGUXF.js.map} +0 -0
  153. /package/dist/{chunk-NGEFYPY7.js.map → chunk-ZDUJ6BDI.js.map} +0 -0
  154. /package/dist/{chunk-6QK3ONDD.js.map → chunk-ZEC5U5T7.js.map} +0 -0
@@ -518,6 +518,31 @@ function useImageEdgeColor(imageUrl, fallback = "#000000") {
518
518
  return color;
519
519
  }
520
520
 
521
+ // src/hooks/ui/use-is-truncated.ts
522
+
523
+ function useIsTruncated(value, options) {
524
+ const multiline = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _8 => _8.multiline]), () => ( false));
525
+ const [element, setElement] = _react.useState.call(void 0, null);
526
+ const [isTruncated, setIsTruncated] = _react.useState.call(void 0, false);
527
+ const ref = _react.useCallback.call(void 0, (node) => setElement(node), []);
528
+ _react.useEffect.call(void 0, () => {
529
+ if (!element) {
530
+ setIsTruncated(false);
531
+ return;
532
+ }
533
+ const check = () => {
534
+ setIsTruncated(
535
+ multiline ? element.scrollHeight > element.clientHeight + 1 : element.scrollWidth > element.clientWidth + 1
536
+ );
537
+ };
538
+ check();
539
+ const observer = new ResizeObserver(check);
540
+ observer.observe(element);
541
+ return () => observer.disconnect();
542
+ }, [element, value, multiline]);
543
+ return { ref, isTruncated };
544
+ }
545
+
521
546
  // src/hooks/ui/use-local-storage.ts
522
547
 
523
548
  function useLocalStorage(key, initialValue) {
@@ -610,7 +635,7 @@ function useMarqueeEngine(options) {
610
635
  const wrap = _react.useCallback.call(void 0, (pos) => {
611
636
  const half = optsRef.current.getWrapSize();
612
637
  if (half <= 0) return pos;
613
- const min = _nullishCoalesce(_optionalChain([optsRef, 'access', _8 => _8.current, 'access', _9 => _9.getWrapMin, 'optionalCall', _10 => _10()]), () => ( 0));
638
+ const min = _nullishCoalesce(_optionalChain([optsRef, 'access', _9 => _9.current, 'access', _10 => _10.getWrapMin, 'optionalCall', _11 => _11()]), () => ( 0));
614
639
  while (pos >= min + half) pos -= half;
615
640
  while (pos < min) pos += half;
616
641
  return pos;
@@ -654,7 +679,7 @@ function useMarqueeEngine(options) {
654
679
  } else if (external !== null) {
655
680
  posRef.current = external;
656
681
  }
657
- _optionalChain([opts, 'access', _11 => _11.onAfterFrame, 'optionalCall', _12 => _12()]);
682
+ _optionalChain([opts, 'access', _12 => _12.onAfterFrame, 'optionalCall', _13 => _13()]);
658
683
  raf = requestAnimationFrame(tick);
659
684
  };
660
685
  raf = requestAnimationFrame(tick);
@@ -723,16 +748,16 @@ function useNotificationPermission() {
723
748
  sync();
724
749
  let cancelled = false;
725
750
  let status;
726
- _optionalChain([navigator, 'access', _13 => _13.permissions, 'optionalAccess', _14 => _14.query, 'call', _15 => _15({ name: "notifications" }), 'access', _16 => _16.then, 'call', _17 => _17((s) => {
751
+ _optionalChain([navigator, 'access', _14 => _14.permissions, 'optionalAccess', _15 => _15.query, 'call', _16 => _16({ name: "notifications" }), 'access', _17 => _17.then, 'call', _18 => _18((s) => {
727
752
  if (cancelled) return;
728
753
  status = s;
729
754
  s.addEventListener("change", sync);
730
- }), 'access', _18 => _18.catch, 'call', _19 => _19(() => void 0)]);
755
+ }), 'access', _19 => _19.catch, 'call', _20 => _20(() => void 0)]);
731
756
  document.addEventListener("visibilitychange", sync);
732
757
  window.addEventListener("focus", sync);
733
758
  return () => {
734
759
  cancelled = true;
735
- _optionalChain([status, 'optionalAccess', _20 => _20.removeEventListener, 'call', _21 => _21("change", sync)]);
760
+ _optionalChain([status, 'optionalAccess', _21 => _21.removeEventListener, 'call', _22 => _22("change", sync)]);
736
761
  document.removeEventListener("visibilitychange", sync);
737
762
  window.removeEventListener("focus", sync);
738
763
  };
@@ -1368,7 +1393,7 @@ var toolIconMap = {
1368
1393
  [ToolTypeValues.OSQUERY]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.OsqueryLogoGreyIcon, { size, className }),
1369
1394
  [ToolTypeValues.SYSTEM]: () => null
1370
1395
  };
1371
- var ToolIcon = ({ toolType, size = 16, className }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([toolIconMap, 'access', _22 => _22[toolType], 'optionalCall', _23 => _23(size, className)]), () => ( null)) });
1396
+ var ToolIcon = ({ toolType, size = 16, className }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([toolIconMap, 'access', _23 => _23[toolType], 'optionalCall', _24 => _24(size, className)]), () => ( null)) });
1372
1397
  ToolIcon.displayName = "ToolIcon";
1373
1398
 
1374
1399
  // src/components/ui/toaster.tsx
@@ -1487,11 +1512,11 @@ function CommandApprovalToast({
1487
1512
  }) {
1488
1513
  const [expanded, setExpanded] = React2.useState(defaultExpanded);
1489
1514
  const handleApprove = () => {
1490
- _optionalChain([onApprove, 'optionalCall', _24 => _24()]);
1515
+ _optionalChain([onApprove, 'optionalCall', _25 => _25()]);
1491
1516
  _sonner.toast.dismiss(id);
1492
1517
  };
1493
1518
  const handleReject = () => {
1494
- _optionalChain([onReject, 'optionalCall', _25 => _25()]);
1519
+ _optionalChain([onReject, 'optionalCall', _26 => _26()]);
1495
1520
  _sonner.toast.dismiss(id);
1496
1521
  };
1497
1522
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -1714,7 +1739,7 @@ function createLocalStorageAdapter(options) {
1714
1739
  const tag = _nullishCoalesce(options.logTag, () => ( "[local-storage]"));
1715
1740
  const backend = _nullishCoalesce(options.backend, () => ( "local"));
1716
1741
  const resolveKey = () => {
1717
- const ns = _optionalChain([options, 'access', _26 => _26.namespace, 'optionalCall', _27 => _27()]);
1742
+ const ns = _optionalChain([options, 'access', _27 => _27.namespace, 'optionalCall', _28 => _28()]);
1718
1743
  return ns ? `${ns}.${options.key}` : options.key;
1719
1744
  };
1720
1745
  return {
@@ -1805,7 +1830,7 @@ function getEmbedProxyAuth() {
1805
1830
  }
1806
1831
  function getPersistedProxyEmail() {
1807
1832
  const persisted = adapter.load();
1808
- return _nullishCoalesce(_optionalChain([persisted, 'optionalAccess', _28 => _28.email, 'access', _29 => _29.trim, 'call', _30 => _30(), 'access', _31 => _31.toLowerCase, 'call', _32 => _32()]), () => ( null));
1833
+ return _nullishCoalesce(_optionalChain([persisted, 'optionalAccess', _29 => _29.email, 'access', _30 => _30.trim, 'call', _31 => _31(), 'access', _32 => _32.toLowerCase, 'call', _33 => _33()]), () => ( null));
1809
1834
  }
1810
1835
  function setEmbedProxyAuth(value) {
1811
1836
  adapter.save({
@@ -1822,15 +1847,15 @@ function clearEmbedProxyAuth() {
1822
1847
  function applyProxyAuth(url, baseHeaders = { "Content-Type": "application/json" }) {
1823
1848
  const auth = getEmbedProxyAuth();
1824
1849
  const headers = { ...baseHeaders };
1825
- if (_optionalChain([auth, 'optionalAccess', _33 => _33.secret])) {
1850
+ if (_optionalChain([auth, 'optionalAccess', _34 => _34.secret])) {
1826
1851
  headers.Authorization = `Bearer ${auth.secret}`;
1827
1852
  }
1828
- if (_optionalChain([auth, 'optionalAccess', _34 => _34.email])) {
1853
+ if (_optionalChain([auth, 'optionalAccess', _35 => _35.email])) {
1829
1854
  headers["X-Chat-Act-As"] = auth.email;
1830
1855
  }
1831
- if (_optionalChain([auth, 'optionalAccess', _35 => _35.firstName])) headers["X-Chat-First-Name"] = auth.firstName;
1832
- if (_optionalChain([auth, 'optionalAccess', _36 => _36.lastName])) headers["X-Chat-Last-Name"] = auth.lastName;
1833
- if (_optionalChain([auth, 'optionalAccess', _37 => _37.avatarUrl])) headers["X-Chat-Avatar-Url"] = auth.avatarUrl;
1856
+ if (_optionalChain([auth, 'optionalAccess', _36 => _36.firstName])) headers["X-Chat-First-Name"] = auth.firstName;
1857
+ if (_optionalChain([auth, 'optionalAccess', _37 => _37.lastName])) headers["X-Chat-Last-Name"] = auth.lastName;
1858
+ if (_optionalChain([auth, 'optionalAccess', _38 => _38.avatarUrl])) headers["X-Chat-Avatar-Url"] = auth.avatarUrl;
1834
1859
  return { url, headers };
1835
1860
  }
1836
1861
 
@@ -1858,7 +1883,7 @@ function hasEmbedAuthAdapter() {
1858
1883
  function needsBearerAssetFetch(url) {
1859
1884
  if (typeof window === "undefined") return false;
1860
1885
  const adapter2 = getRegisteredAuthAdapter();
1861
- if (!_optionalChain([adapter2, 'optionalAccess', _38 => _38.allowedOrigins, 'optionalAccess', _39 => _39.length]) || _optionalChain([adapter2, 'access', _40 => _40.getHeaders, 'optionalCall', _41 => _41(), 'access', _42 => _42.Authorization]) === void 0) {
1886
+ if (!_optionalChain([adapter2, 'optionalAccess', _39 => _39.allowedOrigins, 'optionalAccess', _40 => _40.length]) || _optionalChain([adapter2, 'access', _41 => _41.getHeaders, 'optionalCall', _42 => _42(), 'access', _43 => _43.Authorization]) === void 0) {
1862
1887
  return false;
1863
1888
  }
1864
1889
  let target;
@@ -1900,7 +1925,7 @@ function setInFlightRefresh(refresh) {
1900
1925
  }
1901
1926
  function dedupedRefresh() {
1902
1927
  const adapter2 = getRegisteredAuthAdapter();
1903
- if (!_optionalChain([adapter2, 'optionalAccess', _43 => _43.refresh])) return Promise.resolve(false);
1928
+ if (!_optionalChain([adapter2, 'optionalAccess', _44 => _44.refresh])) return Promise.resolve(false);
1904
1929
  let inFlightRefresh = getInFlightRefresh();
1905
1930
  if (!inFlightRefresh) {
1906
1931
  inFlightRefresh = Promise.resolve().then(() => adapter2.refresh()).catch(() => false).finally(() => {
@@ -1913,12 +1938,12 @@ function dedupedRefresh() {
1913
1938
  async function fetchWithRefresh(url, init, baseHeaders, isRetry) {
1914
1939
  const { url: authedUrl, headers } = applyProxyAuth(url, { ...baseHeaders });
1915
1940
  const adapter2 = getRegisteredAuthAdapter();
1916
- if (_optionalChain([adapter2, 'optionalAccess', _44 => _44.getHeaders])) {
1941
+ if (_optionalChain([adapter2, 'optionalAccess', _45 => _45.getHeaders])) {
1917
1942
  for (const [k, v] of Object.entries(adapter2.getHeaders())) {
1918
1943
  if (v !== void 0) headers[k] = v;
1919
1944
  }
1920
1945
  }
1921
- const credentials = _nullishCoalesce(_nullishCoalesce(_optionalChain([adapter2, 'optionalAccess', _45 => _45.credentials]), () => ( init.credentials)), () => ( "same-origin"));
1946
+ const credentials = _nullishCoalesce(_nullishCoalesce(_optionalChain([adapter2, 'optionalAccess', _46 => _46.credentials]), () => ( init.credentials)), () => ( "same-origin"));
1922
1947
  const response = await fetch(authedUrl, {
1923
1948
  ...init,
1924
1949
  headers,
@@ -1929,7 +1954,7 @@ async function fetchWithRefresh(url, init, baseHeaders, isRetry) {
1929
1954
  // `SameSite=None` must be configured server-side for that to work).
1930
1955
  credentials
1931
1956
  });
1932
- if (response.status === 401 && !isRetry && _optionalChain([adapter2, 'optionalAccess', _46 => _46.refresh])) {
1957
+ if (response.status === 401 && !isRetry && _optionalChain([adapter2, 'optionalAccess', _47 => _47.refresh])) {
1933
1958
  const refreshed = await dedupedRefresh();
1934
1959
  if (refreshed) {
1935
1960
  return fetchWithRefresh(url, init, baseHeaders, true);
@@ -1953,7 +1978,7 @@ function assertSameOrigin(url) {
1953
1978
  );
1954
1979
  }
1955
1980
  if (target.origin !== pageOrigin) {
1956
- if (_optionalChain([getRegisteredAuthAdapter, 'call', _47 => _47(), 'optionalAccess', _48 => _48.allowedOrigins, 'optionalAccess', _49 => _49.includes, 'call', _50 => _50(target.origin)])) {
1981
+ if (_optionalChain([getRegisteredAuthAdapter, 'call', _48 => _48(), 'optionalAccess', _49 => _49.allowedOrigins, 'optionalAccess', _50 => _50.includes, 'call', _51 => _51(target.origin)])) {
1957
1982
  return;
1958
1983
  }
1959
1984
  if (process.env.NODE_ENV !== "production") {
@@ -2601,7 +2626,7 @@ function setNestedValue(obj, path, value) {
2601
2626
  }
2602
2627
  function getNestedValue(obj, path) {
2603
2628
  return path.split(".").reduce((current, key) => {
2604
- return _optionalChain([current, 'optionalAccess', _51 => _51[key]]);
2629
+ return _optionalChain([current, 'optionalAccess', _52 => _52[key]]);
2605
2630
  }, obj);
2606
2631
  }
2607
2632
  function mergeVariables(currentVariables, updates, schema) {
@@ -3376,7 +3401,7 @@ function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN, threshold = 0)
3376
3401
  const stillOurs = subscribers.get(prev);
3377
3402
  if (stillOurs) {
3378
3403
  subscribers.delete(prev);
3379
- _optionalChain([observers, 'access', _52 => _52.get, 'call', _53 => _53(key), 'optionalAccess', _54 => _54.unobserve, 'call', _55 => _55(prev)]);
3404
+ _optionalChain([observers, 'access', _53 => _53.get, 'call', _54 => _54(key), 'optionalAccess', _55 => _55.unobserve, 'call', _56 => _56(prev)]);
3380
3405
  }
3381
3406
  }
3382
3407
  elRef.current = node;
@@ -3393,7 +3418,7 @@ function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN, threshold = 0)
3393
3418
  if (!el) return;
3394
3419
  if (subscribers.get(el)) {
3395
3420
  subscribers.delete(el);
3396
- _optionalChain([observers, 'access', _56 => _56.get, 'call', _57 => _57(key), 'optionalAccess', _58 => _58.unobserve, 'call', _59 => _59(el)]);
3421
+ _optionalChain([observers, 'access', _57 => _57.get, 'call', _58 => _58(key), 'optionalAccess', _59 => _59.unobserve, 'call', _60 => _60(el)]);
3397
3422
  }
3398
3423
  };
3399
3424
  }, [key]);
@@ -3508,8 +3533,8 @@ function useAccessCodeIntegration() {
3508
3533
  // src/utils/og-placeholder.ts
3509
3534
  var DEFAULT_OG_PLACEHOLDER_PATH = "/api/og-placeholder";
3510
3535
  function resolveOgPlaceholderBase(endpoints) {
3511
- if (_optionalChain([endpoints, 'optionalAccess', _60 => _60.ogPlaceholderUrl])) return endpoints.ogPlaceholderUrl;
3512
- const imageProxy = _optionalChain([endpoints, 'optionalAccess', _61 => _61.imageProxyUrlPrefix]);
3536
+ if (_optionalChain([endpoints, 'optionalAccess', _61 => _61.ogPlaceholderUrl])) return endpoints.ogPlaceholderUrl;
3537
+ const imageProxy = _optionalChain([endpoints, 'optionalAccess', _62 => _62.imageProxyUrlPrefix]);
3513
3538
  if (imageProxy) {
3514
3539
  const derived = imageProxy.replace(/\/image-proxy(?=$|[?/])/, "/og-placeholder");
3515
3540
  if (derived !== imageProxy) return derived;
@@ -3537,7 +3562,7 @@ function useOgPlaceholderUrl({
3537
3562
  aspect = "wide",
3538
3563
  enabled = true
3539
3564
  }) {
3540
- const endpoints = _optionalChain([_chunkLILQJ3UZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _62 => _62.endpoints]);
3565
+ const endpoints = _optionalChain([_chunkLILQJ3UZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _63 => _63.endpoints]);
3541
3566
  return _react.useMemo.call(void 0, () => {
3542
3567
  if (!enabled || !title) return null;
3543
3568
  return buildOgPlaceholderUrl(endpoints, title, { site: siteName || void 0, aspect });
@@ -3682,7 +3707,7 @@ function navigateSamePageHash(target, options = {}) {
3682
3707
  // src/hooks/use-scroll-to-hash.ts
3683
3708
  var MAX_POLL_FRAMES = 60;
3684
3709
  function useScrollToHash(readyDep = true, options) {
3685
- const headerOffset = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _63 => _63.headerOffset]), () => ( 0));
3710
+ const headerOffset = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _64 => _64.headerOffset]), () => ( 0));
3686
3711
  _react.useEffect.call(void 0, () => {
3687
3712
  if (typeof window === "undefined") return;
3688
3713
  if (readyDep === null || readyDep === false) return;
@@ -3743,7 +3768,7 @@ function evaluateHumanitySignals(body, opts) {
3743
3768
  if (elapsedMs !== null && elapsedMs < opts.minFillMs) return { ok: false, reason: "too_fast" };
3744
3769
  return { ok: true };
3745
3770
  }
3746
- var splitCsvEnv = (s) => _nullishCoalesce(_optionalChain([s, 'optionalAccess', _64 => _64.split, 'call', _65 => _65(","), 'access', _66 => _66.map, 'call', _67 => _67((t) => t.trim()), 'access', _68 => _68.filter, 'call', _69 => _69(Boolean)]), () => ( []));
3771
+ var splitCsvEnv = (s) => _nullishCoalesce(_optionalChain([s, 'optionalAccess', _65 => _65.split, 'call', _66 => _66(","), 'access', _67 => _67.map, 'call', _68 => _68((t) => t.trim()), 'access', _69 => _69.filter, 'call', _70 => _70(Boolean)]), () => ( []));
3747
3772
 
3748
3773
  // src/hooks/use-humanity-signals.ts
3749
3774
  function useHumanitySignals() {
@@ -3751,7 +3776,7 @@ function useHumanitySignals() {
3751
3776
  const mountedAt = _react.useRef.call(void 0, typeof performance !== "undefined" ? performance.now() : 0);
3752
3777
  const getSignals = _react.useCallback.call(void 0,
3753
3778
  () => ({
3754
- [HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _70 => _70.current, 'optionalAccess', _71 => _71.value]), () => ( "")),
3779
+ [HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _71 => _71.current, 'optionalAccess', _72 => _72.value]), () => ( "")),
3755
3780
  [ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - mountedAt.current) : 0
3756
3781
  }),
3757
3782
  []
@@ -3884,5 +3909,6 @@ function useHumanitySignals() {
3884
3909
 
3885
3910
 
3886
3911
 
3887
- exports.useAutoLimitTags = useAutoLimitTags; exports.useDebounce = useDebounce; exports.useDeferredError = useDeferredError; exports.useFocusTrap = useFocusTrap; exports.useHeaderHeight = useHeaderHeight; exports.useHorizontalScrollbar = useHorizontalScrollbar; exports.useImageEdgeColor = useImageEdgeColor; exports.useLocalStorage = useLocalStorage; exports.useMarqueeEngine = useMarqueeEngine; exports.useMediaQuery = useMediaQuery; exports.breakpoints = breakpoints; exports.useSmUp = useSmUp; exports.useMdUp = useMdUp; exports.useLgUp = useLgUp; exports.useMemoizedCallback = useMemoizedCallback; exports.useNotificationPermission = useNotificationPermission; exports.useOnboardingState = useOnboardingState; exports.useResetOnPageHidden = useResetOnPageHidden; exports.useSearch = useSearch; exports.useSuppressCloneFocus = useSuppressCloneFocus; exports.useTablePagination = useTablePagination; exports.useThrottle = useThrottle; exports.useWindowSize = useWindowSize; exports.usePreventScroll = _overlays.usePreventScroll; exports.platformIcons = platformIcons; exports.platformColors = platformColors; exports.platformDisplayNames = platformDisplayNames; exports.platformDescriptions = platformDescriptions; exports.platformSlogans = platformSlogans; exports.platformHexColors = platformHexColors; exports.platformIconNames = platformIconNames; exports.getDefaultColorForPlatform = getDefaultColorForPlatform; exports.getDefaultIconForPlatform = getDefaultIconForPlatform; exports.transformPlatformConfigsToOptions = transformPlatformConfigsToOptions; exports.getPlatformIcon = getPlatformIcon; exports.getPlatformColor = getPlatformColor; exports.getPlatformDisplayName = getPlatformDisplayName; exports.getPlatformDescription = getPlatformDescription; exports.getPlatformSlogan = getPlatformSlogan; exports.getSmallPlatformIcon = getSmallPlatformIcon; exports.getPlatformIconComponent = getPlatformIconComponent; exports.usePlatformConfig = usePlatformConfig; exports.usePlatformByValue = usePlatformByValue; exports.useValidatePlatform = useValidatePlatform; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.ToolIcon = ToolIcon; exports.dotColorByVariant = dotColorByVariant; exports.progressColorByVariant = progressColorByVariant; exports.ToastCard = ToastCard; exports.CommandApprovalToast = CommandApprovalToast; exports.Toaster = Toaster; exports.showToast = showToast; exports.showCommandApprovalToast = showCommandApprovalToast; exports.toast = toast; exports.useToast = useToast; exports.createLocalStorageAdapter = createLocalStorageAdapter; exports.getAppType = getAppType; exports.getEmbedProxyAuth = getEmbedProxyAuth; exports.getPersistedProxyEmail = getPersistedProxyEmail; exports.setEmbedProxyAuth = setEmbedProxyAuth; exports.clearEmbedProxyAuth = clearEmbedProxyAuth; exports.applyProxyAuth = applyProxyAuth; exports.setEmbedAuthAdapter = setEmbedAuthAdapter; exports.embedAuthedFetch = embedAuthedFetch; exports.contentFetch = contentFetch; exports.useContactSubmission = useContactSubmission; exports.useCopyToClipboard = useCopyToClipboard; exports.configureBatchImageFetch = configureBatchImageFetch; exports.batchFetchAuthenticatedImages = batchFetchAuthenticatedImages; exports.useBatchImages = useBatchImages; exports.configureAuthenticatedImage = configureAuthenticatedImage; exports.useAuthenticatedImage = useAuthenticatedImage; exports.clearAuthedImageCache = clearAuthedImageCache; exports.useAuthedImageSrc = useAuthedImageSrc; exports.extractVariablesFromQuery = extractVariablesFromQuery; exports.isScalarType = isScalarType; exports.isInputObjectType = isInputObjectType; exports.flattenQueryVariables = flattenQueryVariables; exports.mergeDefaults = mergeDefaults; exports.validateSchema = validateSchema; exports.getArrayParams = getArrayParams; exports.getRequiredParams = getRequiredParams; exports.shouldIncludeInUrl = shouldIncludeInUrl; exports.urlParamsToVariables = urlParamsToVariables; exports.variablesToUrlParams = variablesToUrlParams; exports.coerceValue = coerceValue; exports.setNestedValue = setNestedValue; exports.getNestedValue = getNestedValue; exports.mergeVariables = mergeVariables; exports.clearParams = clearParams; exports.validateVariables = validateVariables; exports.GraphQLIntrospector = GraphQLIntrospector; exports.introspector = introspector; exports.useQueryParams = useQueryParams; exports.useApiParams = useApiParams; exports.createSearchParams = createSearchParams; exports.useCursorPaginationState = useCursorPaginationState; exports.useNatsClient = useNatsClient; exports.NEAR_VIEWPORT_ROOT_MARGIN = NEAR_VIEWPORT_ROOT_MARGIN; exports.useNearViewport = useNearViewport; exports.validateAccessCode = validateAccessCode; exports.consumeAccessCode = consumeAccessCode; exports.validateAndConsumeAccessCode = validateAndConsumeAccessCode; exports.useAccessCodeIntegration = useAccessCodeIntegration; exports.buildOgPlaceholderUrl = buildOgPlaceholderUrl; exports.useOgPlaceholderUrl = useOgPlaceholderUrl; exports.scrollElementIntoView = scrollElementIntoView; exports.STICKY_HEADER_OFFSET_PX = STICKY_HEADER_OFFSET_PX; exports.HUB_HEADER_OFFSET_PX = HUB_HEADER_OFFSET_PX; exports.normalizeHashFragment = normalizeHashFragment; exports.navigateSamePageHash = navigateSamePageHash; exports.useScrollToHash = useScrollToHash; exports.HONEYPOT_FIELD = HONEYPOT_FIELD; exports.ELAPSED_MS_FIELD = ELAPSED_MS_FIELD; exports.DEFAULT_MIN_FILL_MS = DEFAULT_MIN_FILL_MS; exports.extractHumanitySignals = extractHumanitySignals; exports.evaluateHumanitySignals = evaluateHumanitySignals; exports.splitCsvEnv = splitCsvEnv; exports.useHumanitySignals = useHumanitySignals;
3888
- //# sourceMappingURL=chunk-BIKOJ4FH.cjs.map
3912
+
3913
+ exports.useAutoLimitTags = useAutoLimitTags; exports.useDebounce = useDebounce; exports.useDeferredError = useDeferredError; exports.useFocusTrap = useFocusTrap; exports.useHeaderHeight = useHeaderHeight; exports.useHorizontalScrollbar = useHorizontalScrollbar; exports.useImageEdgeColor = useImageEdgeColor; exports.useIsTruncated = useIsTruncated; exports.useLocalStorage = useLocalStorage; exports.useMarqueeEngine = useMarqueeEngine; exports.useMediaQuery = useMediaQuery; exports.breakpoints = breakpoints; exports.useSmUp = useSmUp; exports.useMdUp = useMdUp; exports.useLgUp = useLgUp; exports.useMemoizedCallback = useMemoizedCallback; exports.useNotificationPermission = useNotificationPermission; exports.useOnboardingState = useOnboardingState; exports.useResetOnPageHidden = useResetOnPageHidden; exports.useSearch = useSearch; exports.useSuppressCloneFocus = useSuppressCloneFocus; exports.useTablePagination = useTablePagination; exports.useThrottle = useThrottle; exports.useWindowSize = useWindowSize; exports.usePreventScroll = _overlays.usePreventScroll; exports.platformIcons = platformIcons; exports.platformColors = platformColors; exports.platformDisplayNames = platformDisplayNames; exports.platformDescriptions = platformDescriptions; exports.platformSlogans = platformSlogans; exports.platformHexColors = platformHexColors; exports.platformIconNames = platformIconNames; exports.getDefaultColorForPlatform = getDefaultColorForPlatform; exports.getDefaultIconForPlatform = getDefaultIconForPlatform; exports.transformPlatformConfigsToOptions = transformPlatformConfigsToOptions; exports.getPlatformIcon = getPlatformIcon; exports.getPlatformColor = getPlatformColor; exports.getPlatformDisplayName = getPlatformDisplayName; exports.getPlatformDescription = getPlatformDescription; exports.getPlatformSlogan = getPlatformSlogan; exports.getSmallPlatformIcon = getSmallPlatformIcon; exports.getPlatformIconComponent = getPlatformIconComponent; exports.usePlatformConfig = usePlatformConfig; exports.usePlatformByValue = usePlatformByValue; exports.useValidatePlatform = useValidatePlatform; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.ToolIcon = ToolIcon; exports.dotColorByVariant = dotColorByVariant; exports.progressColorByVariant = progressColorByVariant; exports.ToastCard = ToastCard; exports.CommandApprovalToast = CommandApprovalToast; exports.Toaster = Toaster; exports.showToast = showToast; exports.showCommandApprovalToast = showCommandApprovalToast; exports.toast = toast; exports.useToast = useToast; exports.createLocalStorageAdapter = createLocalStorageAdapter; exports.getAppType = getAppType; exports.getEmbedProxyAuth = getEmbedProxyAuth; exports.getPersistedProxyEmail = getPersistedProxyEmail; exports.setEmbedProxyAuth = setEmbedProxyAuth; exports.clearEmbedProxyAuth = clearEmbedProxyAuth; exports.applyProxyAuth = applyProxyAuth; exports.setEmbedAuthAdapter = setEmbedAuthAdapter; exports.embedAuthedFetch = embedAuthedFetch; exports.contentFetch = contentFetch; exports.useContactSubmission = useContactSubmission; exports.useCopyToClipboard = useCopyToClipboard; exports.configureBatchImageFetch = configureBatchImageFetch; exports.batchFetchAuthenticatedImages = batchFetchAuthenticatedImages; exports.useBatchImages = useBatchImages; exports.configureAuthenticatedImage = configureAuthenticatedImage; exports.useAuthenticatedImage = useAuthenticatedImage; exports.clearAuthedImageCache = clearAuthedImageCache; exports.useAuthedImageSrc = useAuthedImageSrc; exports.extractVariablesFromQuery = extractVariablesFromQuery; exports.isScalarType = isScalarType; exports.isInputObjectType = isInputObjectType; exports.flattenQueryVariables = flattenQueryVariables; exports.mergeDefaults = mergeDefaults; exports.validateSchema = validateSchema; exports.getArrayParams = getArrayParams; exports.getRequiredParams = getRequiredParams; exports.shouldIncludeInUrl = shouldIncludeInUrl; exports.urlParamsToVariables = urlParamsToVariables; exports.variablesToUrlParams = variablesToUrlParams; exports.coerceValue = coerceValue; exports.setNestedValue = setNestedValue; exports.getNestedValue = getNestedValue; exports.mergeVariables = mergeVariables; exports.clearParams = clearParams; exports.validateVariables = validateVariables; exports.GraphQLIntrospector = GraphQLIntrospector; exports.introspector = introspector; exports.useQueryParams = useQueryParams; exports.useApiParams = useApiParams; exports.createSearchParams = createSearchParams; exports.useCursorPaginationState = useCursorPaginationState; exports.useNatsClient = useNatsClient; exports.NEAR_VIEWPORT_ROOT_MARGIN = NEAR_VIEWPORT_ROOT_MARGIN; exports.useNearViewport = useNearViewport; exports.validateAccessCode = validateAccessCode; exports.consumeAccessCode = consumeAccessCode; exports.validateAndConsumeAccessCode = validateAndConsumeAccessCode; exports.useAccessCodeIntegration = useAccessCodeIntegration; exports.buildOgPlaceholderUrl = buildOgPlaceholderUrl; exports.useOgPlaceholderUrl = useOgPlaceholderUrl; exports.scrollElementIntoView = scrollElementIntoView; exports.STICKY_HEADER_OFFSET_PX = STICKY_HEADER_OFFSET_PX; exports.HUB_HEADER_OFFSET_PX = HUB_HEADER_OFFSET_PX; exports.normalizeHashFragment = normalizeHashFragment; exports.navigateSamePageHash = navigateSamePageHash; exports.useScrollToHash = useScrollToHash; exports.HONEYPOT_FIELD = HONEYPOT_FIELD; exports.ELAPSED_MS_FIELD = ELAPSED_MS_FIELD; exports.DEFAULT_MIN_FILL_MS = DEFAULT_MIN_FILL_MS; exports.extractHumanitySignals = extractHumanitySignals; exports.evaluateHumanitySignals = evaluateHumanitySignals; exports.splitCsvEnv = splitCsvEnv; exports.useHumanitySignals = useHumanitySignals;
3914
+ //# sourceMappingURL=chunk-TTYJAZ7P.cjs.map