@flamingo-stack/openframe-frontend-core 0.0.449-snapshot.20260718143201 → 0.0.449

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 (142) hide show
  1. package/dist/{chunk-DQ5U6DCR.cjs → chunk-47AMTR2S.cjs} +18 -18
  2. package/dist/{chunk-DQ5U6DCR.cjs.map → chunk-47AMTR2S.cjs.map} +1 -1
  3. package/dist/{chunk-PCW2TRZ4.js → chunk-4IMXFDRI.js} +3 -3
  4. package/dist/{chunk-XITG5ICQ.cjs → chunk-4S4RR7XC.cjs} +40 -40
  5. package/dist/{chunk-XITG5ICQ.cjs.map → chunk-4S4RR7XC.cjs.map} +1 -1
  6. package/dist/{chunk-HXCQHMS5.js → chunk-5SJGFLL2.js} +6032 -6386
  7. package/dist/chunk-5SJGFLL2.js.map +1 -0
  8. package/dist/{chunk-6RA4NRBA.cjs → chunk-6TS4AIDX.cjs} +15 -15
  9. package/dist/{chunk-6RA4NRBA.cjs.map → chunk-6TS4AIDX.cjs.map} +1 -1
  10. package/dist/{chunk-QF3NQW7C.cjs → chunk-AN7MCJTV.cjs} +29 -122
  11. package/dist/chunk-AN7MCJTV.cjs.map +1 -0
  12. package/dist/{chunk-J5BYYZVM.cjs → chunk-AZKVNRZP.cjs} +32 -32
  13. package/dist/{chunk-J5BYYZVM.cjs.map → chunk-AZKVNRZP.cjs.map} +1 -1
  14. package/dist/{chunk-VUDZOCPW.js → chunk-BSBWBQ7M.js} +6 -6
  15. package/dist/{chunk-26JSJMMZ.cjs → chunk-DJP5HYFG.cjs} +7 -7
  16. package/dist/{chunk-26JSJMMZ.cjs.map → chunk-DJP5HYFG.cjs.map} +1 -1
  17. package/dist/{chunk-5HW5HMNF.cjs → chunk-DRKQNXSZ.cjs} +5 -5
  18. package/dist/{chunk-5HW5HMNF.cjs.map → chunk-DRKQNXSZ.cjs.map} +1 -1
  19. package/dist/{chunk-ROBGJH52.cjs → chunk-EOFENGSZ.cjs} +12 -12
  20. package/dist/{chunk-ROBGJH52.cjs.map → chunk-EOFENGSZ.cjs.map} +1 -1
  21. package/dist/{chunk-N5M72LJX.cjs → chunk-H56AEHFC.cjs} +1266 -1620
  22. package/dist/chunk-H56AEHFC.cjs.map +1 -0
  23. package/dist/{chunk-RQHHACP2.js → chunk-HQ7S6JG5.js} +3 -3
  24. package/dist/{chunk-K3GXIGN6.js → chunk-JAASDJOF.js} +5 -5
  25. package/dist/{chunk-5OY7HYII.cjs → chunk-KKJRBMG3.cjs} +73 -73
  26. package/dist/{chunk-5OY7HYII.cjs.map → chunk-KKJRBMG3.cjs.map} +1 -1
  27. package/dist/{chunk-VLDZ4363.cjs → chunk-LQTX7EJS.cjs} +29 -29
  28. package/dist/{chunk-VLDZ4363.cjs.map → chunk-LQTX7EJS.cjs.map} +1 -1
  29. package/dist/{chunk-4VSTLJDO.js → chunk-LWT6G75Q.js} +2 -2
  30. package/dist/{chunk-4SZDO3TE.js → chunk-MWRFPLNB.js} +3 -3
  31. package/dist/{chunk-3ITY2LBM.js → chunk-NPBTNWRA.js} +4 -4
  32. package/dist/{chunk-UPRY4I63.cjs → chunk-ROCJMSJI.cjs} +3 -3
  33. package/dist/{chunk-UPRY4I63.cjs.map → chunk-ROCJMSJI.cjs.map} +1 -1
  34. package/dist/{chunk-MLFFBQ5B.js → chunk-TKGCTDQY.js} +87 -180
  35. package/dist/chunk-TKGCTDQY.js.map +1 -0
  36. package/dist/{chunk-M3AKWFAO.js → chunk-UNQVTGVG.js} +2 -2
  37. package/dist/{chunk-HYIHXXF3.js → chunk-VSWFYFIG.js} +5 -5
  38. package/dist/{chunk-6GJKSYM2.cjs → chunk-WYPROXL4.cjs} +73 -73
  39. package/dist/{chunk-6GJKSYM2.cjs.map → chunk-WYPROXL4.cjs.map} +1 -1
  40. package/dist/{chunk-76EN3GEH.cjs → chunk-X754WDWO.cjs} +40 -40
  41. package/dist/{chunk-76EN3GEH.cjs.map → chunk-X754WDWO.cjs.map} +1 -1
  42. package/dist/{chunk-N53FC732.js → chunk-XLFAFH2B.js} +2 -2
  43. package/dist/{chunk-EQWE64RJ.js → chunk-YHNBJ3F3.js} +2 -2
  44. package/dist/{chunk-CM5XKHHS.js → chunk-YSNMV53O.js} +6 -6
  45. package/dist/components/case-studies/index.cjs +9 -9
  46. package/dist/components/case-studies/index.js +3 -3
  47. package/dist/components/chat/chat-quick-action-row.d.ts +1 -26
  48. package/dist/components/chat/chat-quick-action-row.d.ts.map +1 -1
  49. package/dist/components/chat/index.cjs +3 -15
  50. package/dist/components/chat/index.cjs.map +1 -1
  51. package/dist/components/chat/index.d.ts +0 -1
  52. package/dist/components/chat/index.d.ts.map +1 -1
  53. package/dist/components/chat/index.js +2 -14
  54. package/dist/components/chat/quick-action-chip.d.ts +4 -45
  55. package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
  56. package/dist/components/chat/quick-action-marquee.d.ts +9 -24
  57. package/dist/components/chat/quick-action-marquee.d.ts.map +1 -1
  58. package/dist/components/contact/index.cjs +4 -4
  59. package/dist/components/contact/index.js +3 -3
  60. package/dist/components/content-loading-container.d.ts +1 -1
  61. package/dist/components/docs/index.cjs +6 -6
  62. package/dist/components/docs/index.js +5 -5
  63. package/dist/components/embeds/index.cjs +4 -4
  64. package/dist/components/embeds/index.js +3 -3
  65. package/dist/components/faq/index.cjs +5 -5
  66. package/dist/components/faq/index.js +4 -4
  67. package/dist/components/features/cards-strip.d.ts.map +1 -1
  68. package/dist/components/features/index.cjs +3 -3
  69. package/dist/components/features/index.js +2 -2
  70. package/dist/components/form.d.ts +1 -1
  71. package/dist/components/form.d.ts.map +1 -1
  72. package/dist/components/help-center-pages/index.cjs +22 -22
  73. package/dist/components/help-center-pages/index.js +13 -13
  74. package/dist/components/index.cjs +135 -159
  75. package/dist/components/index.cjs.map +1 -1
  76. package/dist/components/index.js +11 -35
  77. package/dist/components/index.js.map +1 -1
  78. package/dist/components/navigation/index.cjs +3 -3
  79. package/dist/components/navigation/index.js +2 -2
  80. package/dist/components/onboarding-guides/index.cjs +7 -7
  81. package/dist/components/onboarding-guides/index.js +6 -6
  82. package/dist/components/related-content/index.cjs +5 -5
  83. package/dist/components/related-content/index.js +4 -4
  84. package/dist/components/tickets/index.cjs +6 -6
  85. package/dist/components/tickets/index.js +5 -5
  86. package/dist/components/ui/index.cjs +3 -27
  87. package/dist/components/ui/index.cjs.map +1 -1
  88. package/dist/components/ui/index.d.ts +0 -1
  89. package/dist/components/ui/index.d.ts.map +1 -1
  90. package/dist/components/ui/index.js +2 -26
  91. package/dist/hooks/index.cjs +2 -6
  92. package/dist/hooks/index.cjs.map +1 -1
  93. package/dist/hooks/index.js +1 -5
  94. package/dist/hooks/ui/index.d.ts +0 -2
  95. package/dist/hooks/ui/index.d.ts.map +1 -1
  96. package/dist/index.cjs +3 -31
  97. package/dist/index.cjs.map +1 -1
  98. package/dist/index.js +2 -30
  99. package/dist/tailwind.config.cjs +8 -1
  100. package/dist/tailwind.config.cjs.map +1 -1
  101. package/dist/tailwind.config.js +8 -1
  102. package/dist/tailwind.config.js.map +1 -1
  103. package/package.json +1 -1
  104. package/src/components/chat/chat-quick-action-row.tsx +3 -47
  105. package/src/components/chat/index.ts +0 -1
  106. package/src/components/chat/quick-action-chip.tsx +13 -81
  107. package/src/components/chat/quick-action-marquee.tsx +47 -54
  108. package/src/components/features/cards-strip.tsx +158 -88
  109. package/src/components/ui/index.ts +0 -1
  110. package/src/hooks/ui/index.ts +0 -2
  111. package/src/stories/QuickActionMarquee.stories.tsx +7 -8
  112. package/tailwind.config.ts +7 -0
  113. package/dist/chunk-HXCQHMS5.js.map +0 -1
  114. package/dist/chunk-MLFFBQ5B.js.map +0 -1
  115. package/dist/chunk-N5M72LJX.cjs.map +0 -1
  116. package/dist/chunk-QF3NQW7C.cjs.map +0 -1
  117. package/dist/components/chat/quick-action-wall.d.ts +0 -96
  118. package/dist/components/chat/quick-action-wall.d.ts.map +0 -1
  119. package/dist/components/ui/marquee-wall.d.ts +0 -159
  120. package/dist/components/ui/marquee-wall.d.ts.map +0 -1
  121. package/dist/hooks/ui/use-marquee-engine.d.ts +0 -73
  122. package/dist/hooks/ui/use-marquee-engine.d.ts.map +0 -1
  123. package/dist/hooks/ui/use-suppress-clone-focus.d.ts +0 -24
  124. package/dist/hooks/ui/use-suppress-clone-focus.d.ts.map +0 -1
  125. package/src/components/chat/quick-action-wall.tsx +0 -247
  126. package/src/components/ui/marquee-wall.tsx +0 -522
  127. package/src/hooks/ui/use-marquee-engine.ts +0 -158
  128. package/src/hooks/ui/use-suppress-clone-focus.ts +0 -61
  129. package/src/stories/MarqueeWall.stories.tsx +0 -132
  130. package/src/stories/QuickActionWall.stories.tsx +0 -116
  131. /package/dist/{chunk-PCW2TRZ4.js.map → chunk-4IMXFDRI.js.map} +0 -0
  132. /package/dist/{chunk-VUDZOCPW.js.map → chunk-BSBWBQ7M.js.map} +0 -0
  133. /package/dist/{chunk-RQHHACP2.js.map → chunk-HQ7S6JG5.js.map} +0 -0
  134. /package/dist/{chunk-K3GXIGN6.js.map → chunk-JAASDJOF.js.map} +0 -0
  135. /package/dist/{chunk-4VSTLJDO.js.map → chunk-LWT6G75Q.js.map} +0 -0
  136. /package/dist/{chunk-4SZDO3TE.js.map → chunk-MWRFPLNB.js.map} +0 -0
  137. /package/dist/{chunk-3ITY2LBM.js.map → chunk-NPBTNWRA.js.map} +0 -0
  138. /package/dist/{chunk-M3AKWFAO.js.map → chunk-UNQVTGVG.js.map} +0 -0
  139. /package/dist/{chunk-HYIHXXF3.js.map → chunk-VSWFYFIG.js.map} +0 -0
  140. /package/dist/{chunk-N53FC732.js.map → chunk-XLFAFH2B.js.map} +0 -0
  141. /package/dist/{chunk-EQWE64RJ.js.map → chunk-YHNBJ3F3.js.map} +0 -0
  142. /package/dist/{chunk-CM5XKHHS.js.map → chunk-YSNMV53O.js.map} +0 -0
@@ -598,71 +598,6 @@ function useLocalStorage(key, initialValue) {
598
598
  return [storedValue, setValue];
599
599
  }
600
600
 
601
- // src/hooks/ui/use-marquee-engine.ts
602
-
603
- var RESYNC_EPSILON = 1.5;
604
- function useMarqueeEngine(options) {
605
- const posRef = _react.useRef.call(void 0, 0);
606
- const glideRemainingRef = _react.useRef.call(void 0, 0);
607
- const speedEnvRef = _react.useRef.call(void 0, 0);
608
- const optsRef = _react.useRef.call(void 0, options);
609
- optsRef.current = options;
610
- const wrap = _react.useCallback.call(void 0, (pos) => {
611
- const half = optsRef.current.getWrapSize();
612
- if (half <= 0) return pos;
613
- const min = _nullishCoalesce(_optionalChain([optsRef, 'access', _8 => _8.current, 'access', _9 => _9.getWrapMin, 'optionalCall', _10 => _10()]), () => ( 0));
614
- while (pos >= min + half) pos -= half;
615
- while (pos < min) pos += half;
616
- return pos;
617
- }, []);
618
- const glideBy = _react.useCallback.call(void 0, (px) => {
619
- glideRemainingRef.current += px;
620
- }, []);
621
- const active = options.active;
622
- _react.useEffect.call(void 0, () => {
623
- if (!active) return;
624
- let raf = 0;
625
- let last = performance.now();
626
- const readBack = optsRef.current.readBack;
627
- if (readBack) posRef.current = readBack();
628
- const tick = (now) => {
629
- const opts = optsRef.current;
630
- const dt = Math.min(now - last, 100) / 1e3;
631
- last = now;
632
- const paused = opts.isPaused(now);
633
- const targetSpeed = paused ? 0 : opts.speed;
634
- speedEnvRef.current += (targetSpeed - speedEnvRef.current) * Math.min(1, dt / 0.25);
635
- if (targetSpeed === 0 && speedEnvRef.current < 0.5) speedEnvRef.current = 0;
636
- const external = opts.readBack ? opts.readBack() : null;
637
- const resync = () => {
638
- if (external !== null && Math.abs(external - posRef.current) > RESYNC_EPSILON) {
639
- posRef.current = external;
640
- }
641
- };
642
- const glide = glideRemainingRef.current;
643
- if (glide !== 0) {
644
- resync();
645
- const speed = Math.max(Math.abs(glide) * 6, 240);
646
- const step = Math.sign(glide) * Math.min(Math.abs(glide), speed * dt);
647
- glideRemainingRef.current = Math.abs(glide - step) < 0.5 ? 0 : glide - step;
648
- posRef.current = wrap(posRef.current + step);
649
- opts.apply(posRef.current);
650
- } else if (speedEnvRef.current > 0) {
651
- resync();
652
- posRef.current = wrap(posRef.current + speedEnvRef.current * dt);
653
- opts.apply(posRef.current);
654
- } else if (external !== null) {
655
- posRef.current = external;
656
- }
657
- _optionalChain([opts, 'access', _11 => _11.onAfterFrame, 'optionalCall', _12 => _12()]);
658
- raf = requestAnimationFrame(tick);
659
- };
660
- raf = requestAnimationFrame(tick);
661
- return () => cancelAnimationFrame(raf);
662
- }, [active, wrap]);
663
- return { posRef, glideBy, wrap };
664
- }
665
-
666
601
  // src/hooks/ui/use-media-query.ts
667
602
 
668
603
  function useMediaQuery(query) {
@@ -723,16 +658,16 @@ function useNotificationPermission() {
723
658
  sync();
724
659
  let cancelled = false;
725
660
  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) => {
661
+ _optionalChain([navigator, 'access', _8 => _8.permissions, 'optionalAccess', _9 => _9.query, 'call', _10 => _10({ name: "notifications" }), 'access', _11 => _11.then, 'call', _12 => _12((s) => {
727
662
  if (cancelled) return;
728
663
  status = s;
729
664
  s.addEventListener("change", sync);
730
- }), 'access', _18 => _18.catch, 'call', _19 => _19(() => void 0)]);
665
+ }), 'access', _13 => _13.catch, 'call', _14 => _14(() => void 0)]);
731
666
  document.addEventListener("visibilitychange", sync);
732
667
  window.addEventListener("focus", sync);
733
668
  return () => {
734
669
  cancelled = true;
735
- _optionalChain([status, 'optionalAccess', _20 => _20.removeEventListener, 'call', _21 => _21("change", sync)]);
670
+ _optionalChain([status, 'optionalAccess', _15 => _15.removeEventListener, 'call', _16 => _16("change", sync)]);
736
671
  document.removeEventListener("visibilitychange", sync);
737
672
  window.removeEventListener("focus", sync);
738
673
  };
@@ -937,32 +872,6 @@ function useSearch(config) {
937
872
  return { query, setQuery, results, isLoading, error, clearResults };
938
873
  }
939
874
 
940
- // src/hooks/ui/use-suppress-clone-focus.ts
941
-
942
- var CLONE_FOCUSABLE_SELECTOR = 'a[href],button,input,select,textarea,iframe,summary,audio[controls],video[controls],[tabindex],[contenteditable]:not([contenteditable="false"])';
943
- function useSuppressCloneFocus(active) {
944
- const ref = _react.useRef.call(void 0, null);
945
- _react.useEffect.call(void 0, () => {
946
- const root = ref.current;
947
- if (!root || !active) return;
948
- const suppress = () => {
949
- root.querySelectorAll(CLONE_FOCUSABLE_SELECTOR).forEach((el) => {
950
- if (el.getAttribute("tabindex") !== "-1") el.setAttribute("tabindex", "-1");
951
- });
952
- };
953
- suppress();
954
- const mo = new MutationObserver(suppress);
955
- mo.observe(root, {
956
- childList: true,
957
- subtree: true,
958
- attributes: true,
959
- attributeFilter: ["href", "tabindex", "contenteditable", "controls"]
960
- });
961
- return () => mo.disconnect();
962
- }, [active]);
963
- return ref;
964
- }
965
-
966
875
  // src/hooks/ui/use-table-pagination.ts
967
876
 
968
877
  function useTablePagination(config) {
@@ -1352,7 +1261,7 @@ var toolIconMap = {
1352
1261
  [ToolTypeValues.OSQUERY]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.OsqueryLogoGreyIcon, { size, className }),
1353
1262
  [ToolTypeValues.SYSTEM]: () => null
1354
1263
  };
1355
- 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)) });
1264
+ var ToolIcon = ({ toolType, size = 16, className }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([toolIconMap, 'access', _17 => _17[toolType], 'optionalCall', _18 => _18(size, className)]), () => ( null)) });
1356
1265
  ToolIcon.displayName = "ToolIcon";
1357
1266
 
1358
1267
  // src/components/ui/toaster.tsx
@@ -1471,11 +1380,11 @@ function CommandApprovalToast({
1471
1380
  }) {
1472
1381
  const [expanded, setExpanded] = React2.useState(defaultExpanded);
1473
1382
  const handleApprove = () => {
1474
- _optionalChain([onApprove, 'optionalCall', _24 => _24()]);
1383
+ _optionalChain([onApprove, 'optionalCall', _19 => _19()]);
1475
1384
  _sonner.toast.dismiss(id);
1476
1385
  };
1477
1386
  const handleReject = () => {
1478
- _optionalChain([onReject, 'optionalCall', _25 => _25()]);
1387
+ _optionalChain([onReject, 'optionalCall', _20 => _20()]);
1479
1388
  _sonner.toast.dismiss(id);
1480
1389
  };
1481
1390
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -1698,7 +1607,7 @@ function createLocalStorageAdapter(options) {
1698
1607
  const tag = _nullishCoalesce(options.logTag, () => ( "[local-storage]"));
1699
1608
  const backend = _nullishCoalesce(options.backend, () => ( "local"));
1700
1609
  const resolveKey = () => {
1701
- const ns = _optionalChain([options, 'access', _26 => _26.namespace, 'optionalCall', _27 => _27()]);
1610
+ const ns = _optionalChain([options, 'access', _21 => _21.namespace, 'optionalCall', _22 => _22()]);
1702
1611
  return ns ? `${ns}.${options.key}` : options.key;
1703
1612
  };
1704
1613
  return {
@@ -1789,7 +1698,7 @@ function getEmbedProxyAuth() {
1789
1698
  }
1790
1699
  function getPersistedProxyEmail() {
1791
1700
  const persisted = adapter.load();
1792
- return _nullishCoalesce(_optionalChain([persisted, 'optionalAccess', _28 => _28.email, 'access', _29 => _29.trim, 'call', _30 => _30(), 'access', _31 => _31.toLowerCase, 'call', _32 => _32()]), () => ( null));
1701
+ return _nullishCoalesce(_optionalChain([persisted, 'optionalAccess', _23 => _23.email, 'access', _24 => _24.trim, 'call', _25 => _25(), 'access', _26 => _26.toLowerCase, 'call', _27 => _27()]), () => ( null));
1793
1702
  }
1794
1703
  function setEmbedProxyAuth(value) {
1795
1704
  adapter.save({
@@ -1806,15 +1715,15 @@ function clearEmbedProxyAuth() {
1806
1715
  function applyProxyAuth(url, baseHeaders = { "Content-Type": "application/json" }) {
1807
1716
  const auth = getEmbedProxyAuth();
1808
1717
  const headers = { ...baseHeaders };
1809
- if (_optionalChain([auth, 'optionalAccess', _33 => _33.secret])) {
1718
+ if (_optionalChain([auth, 'optionalAccess', _28 => _28.secret])) {
1810
1719
  headers.Authorization = `Bearer ${auth.secret}`;
1811
1720
  }
1812
- if (_optionalChain([auth, 'optionalAccess', _34 => _34.email])) {
1721
+ if (_optionalChain([auth, 'optionalAccess', _29 => _29.email])) {
1813
1722
  headers["X-Chat-Act-As"] = auth.email;
1814
1723
  }
1815
- if (_optionalChain([auth, 'optionalAccess', _35 => _35.firstName])) headers["X-Chat-First-Name"] = auth.firstName;
1816
- if (_optionalChain([auth, 'optionalAccess', _36 => _36.lastName])) headers["X-Chat-Last-Name"] = auth.lastName;
1817
- if (_optionalChain([auth, 'optionalAccess', _37 => _37.avatarUrl])) headers["X-Chat-Avatar-Url"] = auth.avatarUrl;
1724
+ if (_optionalChain([auth, 'optionalAccess', _30 => _30.firstName])) headers["X-Chat-First-Name"] = auth.firstName;
1725
+ if (_optionalChain([auth, 'optionalAccess', _31 => _31.lastName])) headers["X-Chat-Last-Name"] = auth.lastName;
1726
+ if (_optionalChain([auth, 'optionalAccess', _32 => _32.avatarUrl])) headers["X-Chat-Avatar-Url"] = auth.avatarUrl;
1818
1727
  return { url, headers };
1819
1728
  }
1820
1729
 
@@ -1869,7 +1778,7 @@ function setInFlightRefresh(refresh) {
1869
1778
  }
1870
1779
  function dedupedRefresh() {
1871
1780
  const adapter2 = getRegisteredAuthAdapter();
1872
- if (!_optionalChain([adapter2, 'optionalAccess', _38 => _38.refresh])) return Promise.resolve(false);
1781
+ if (!_optionalChain([adapter2, 'optionalAccess', _33 => _33.refresh])) return Promise.resolve(false);
1873
1782
  let inFlightRefresh = getInFlightRefresh();
1874
1783
  if (!inFlightRefresh) {
1875
1784
  inFlightRefresh = Promise.resolve().then(() => adapter2.refresh()).catch(() => false).finally(() => {
@@ -1882,12 +1791,12 @@ function dedupedRefresh() {
1882
1791
  async function fetchWithRefresh(url, init, baseHeaders, isRetry) {
1883
1792
  const { url: authedUrl, headers } = applyProxyAuth(url, { ...baseHeaders });
1884
1793
  const adapter2 = getRegisteredAuthAdapter();
1885
- if (_optionalChain([adapter2, 'optionalAccess', _39 => _39.getHeaders])) {
1794
+ if (_optionalChain([adapter2, 'optionalAccess', _34 => _34.getHeaders])) {
1886
1795
  for (const [k, v] of Object.entries(adapter2.getHeaders())) {
1887
1796
  if (v !== void 0) headers[k] = v;
1888
1797
  }
1889
1798
  }
1890
- const credentials = _nullishCoalesce(_nullishCoalesce(_optionalChain([adapter2, 'optionalAccess', _40 => _40.credentials]), () => ( init.credentials)), () => ( "same-origin"));
1799
+ const credentials = _nullishCoalesce(_nullishCoalesce(_optionalChain([adapter2, 'optionalAccess', _35 => _35.credentials]), () => ( init.credentials)), () => ( "same-origin"));
1891
1800
  const response = await fetch(authedUrl, {
1892
1801
  ...init,
1893
1802
  headers,
@@ -1898,7 +1807,7 @@ async function fetchWithRefresh(url, init, baseHeaders, isRetry) {
1898
1807
  // `SameSite=None` must be configured server-side for that to work).
1899
1808
  credentials
1900
1809
  });
1901
- if (response.status === 401 && !isRetry && _optionalChain([adapter2, 'optionalAccess', _41 => _41.refresh])) {
1810
+ if (response.status === 401 && !isRetry && _optionalChain([adapter2, 'optionalAccess', _36 => _36.refresh])) {
1902
1811
  const refreshed = await dedupedRefresh();
1903
1812
  if (refreshed) {
1904
1813
  return fetchWithRefresh(url, init, baseHeaders, true);
@@ -1922,7 +1831,7 @@ function assertSameOrigin(url) {
1922
1831
  );
1923
1832
  }
1924
1833
  if (target.origin !== pageOrigin) {
1925
- if (_optionalChain([getRegisteredAuthAdapter, 'call', _42 => _42(), 'optionalAccess', _43 => _43.allowedOrigins, 'optionalAccess', _44 => _44.includes, 'call', _45 => _45(target.origin)])) {
1834
+ if (_optionalChain([getRegisteredAuthAdapter, 'call', _37 => _37(), 'optionalAccess', _38 => _38.allowedOrigins, 'optionalAccess', _39 => _39.includes, 'call', _40 => _40(target.origin)])) {
1926
1835
  return;
1927
1836
  }
1928
1837
  if (process.env.NODE_ENV !== "production") {
@@ -2590,7 +2499,7 @@ function setNestedValue(obj, path, value) {
2590
2499
  }
2591
2500
  function getNestedValue(obj, path) {
2592
2501
  return path.split(".").reduce((current, key) => {
2593
- return _optionalChain([current, 'optionalAccess', _46 => _46[key]]);
2502
+ return _optionalChain([current, 'optionalAccess', _41 => _41[key]]);
2594
2503
  }, obj);
2595
2504
  }
2596
2505
  function mergeVariables(currentVariables, updates, schema) {
@@ -3358,7 +3267,7 @@ function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN) {
3358
3267
  const stillOurs = subscribers.get(prev);
3359
3268
  if (stillOurs) {
3360
3269
  subscribers.delete(prev);
3361
- _optionalChain([observers, 'access', _47 => _47.get, 'call', _48 => _48(rootMargin), 'optionalAccess', _49 => _49.unobserve, 'call', _50 => _50(prev)]);
3270
+ _optionalChain([observers, 'access', _42 => _42.get, 'call', _43 => _43(rootMargin), 'optionalAccess', _44 => _44.unobserve, 'call', _45 => _45(prev)]);
3362
3271
  }
3363
3272
  }
3364
3273
  elRef.current = node;
@@ -3375,7 +3284,7 @@ function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN) {
3375
3284
  if (!el) return;
3376
3285
  if (subscribers.get(el)) {
3377
3286
  subscribers.delete(el);
3378
- _optionalChain([observers, 'access', _51 => _51.get, 'call', _52 => _52(rootMargin), 'optionalAccess', _53 => _53.unobserve, 'call', _54 => _54(el)]);
3287
+ _optionalChain([observers, 'access', _46 => _46.get, 'call', _47 => _47(rootMargin), 'optionalAccess', _48 => _48.unobserve, 'call', _49 => _49(el)]);
3379
3288
  }
3380
3289
  };
3381
3290
  }, [rootMargin]);
@@ -3490,8 +3399,8 @@ function useAccessCodeIntegration() {
3490
3399
  // src/utils/og-placeholder.ts
3491
3400
  var DEFAULT_OG_PLACEHOLDER_PATH = "/api/og-placeholder";
3492
3401
  function resolveOgPlaceholderBase(endpoints) {
3493
- if (_optionalChain([endpoints, 'optionalAccess', _55 => _55.ogPlaceholderUrl])) return endpoints.ogPlaceholderUrl;
3494
- const imageProxy = _optionalChain([endpoints, 'optionalAccess', _56 => _56.imageProxyUrlPrefix]);
3402
+ if (_optionalChain([endpoints, 'optionalAccess', _50 => _50.ogPlaceholderUrl])) return endpoints.ogPlaceholderUrl;
3403
+ const imageProxy = _optionalChain([endpoints, 'optionalAccess', _51 => _51.imageProxyUrlPrefix]);
3495
3404
  if (imageProxy) {
3496
3405
  const derived = imageProxy.replace(/\/image-proxy(?=$|[?/])/, "/og-placeholder");
3497
3406
  if (derived !== imageProxy) return derived;
@@ -3519,7 +3428,7 @@ function useOgPlaceholderUrl({
3519
3428
  aspect = "wide",
3520
3429
  enabled = true
3521
3430
  }) {
3522
- const endpoints = _optionalChain([_chunk2B6773QMcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _57 => _57.endpoints]);
3431
+ const endpoints = _optionalChain([_chunk2B6773QMcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _52 => _52.endpoints]);
3523
3432
  return _react.useMemo.call(void 0, () => {
3524
3433
  if (!enabled || !title) return null;
3525
3434
  return buildOgPlaceholderUrl(endpoints, title, { site: siteName || void 0, aspect });
@@ -3664,7 +3573,7 @@ function navigateSamePageHash(target, options = {}) {
3664
3573
  // src/hooks/use-scroll-to-hash.ts
3665
3574
  var MAX_POLL_FRAMES = 60;
3666
3575
  function useScrollToHash(readyDep = true, options) {
3667
- const headerOffset = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _58 => _58.headerOffset]), () => ( 0));
3576
+ const headerOffset = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _53 => _53.headerOffset]), () => ( 0));
3668
3577
  _react.useEffect.call(void 0, () => {
3669
3578
  if (typeof window === "undefined") return;
3670
3579
  if (readyDep === null || readyDep === false) return;
@@ -3725,7 +3634,7 @@ function evaluateHumanitySignals(body, opts) {
3725
3634
  if (elapsedMs !== null && elapsedMs < opts.minFillMs) return { ok: false, reason: "too_fast" };
3726
3635
  return { ok: true };
3727
3636
  }
3728
- var splitCsvEnv = (s) => _nullishCoalesce(_optionalChain([s, 'optionalAccess', _59 => _59.split, 'call', _60 => _60(","), 'access', _61 => _61.map, 'call', _62 => _62((t) => t.trim()), 'access', _63 => _63.filter, 'call', _64 => _64(Boolean)]), () => ( []));
3637
+ var splitCsvEnv = (s) => _nullishCoalesce(_optionalChain([s, 'optionalAccess', _54 => _54.split, 'call', _55 => _55(","), 'access', _56 => _56.map, 'call', _57 => _57((t) => t.trim()), 'access', _58 => _58.filter, 'call', _59 => _59(Boolean)]), () => ( []));
3729
3638
 
3730
3639
  // src/hooks/use-humanity-signals.ts
3731
3640
  function useHumanitySignals() {
@@ -3733,7 +3642,7 @@ function useHumanitySignals() {
3733
3642
  const mountedAt = _react.useRef.call(void 0, typeof performance !== "undefined" ? performance.now() : 0);
3734
3643
  const getSignals = _react.useCallback.call(void 0,
3735
3644
  () => ({
3736
- [HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _65 => _65.current, 'optionalAccess', _66 => _66.value]), () => ( "")),
3645
+ [HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _60 => _60.current, 'optionalAccess', _61 => _61.value]), () => ( "")),
3737
3646
  [ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - mountedAt.current) : 0
3738
3647
  }),
3739
3648
  []
@@ -3861,7 +3770,5 @@ function useHumanitySignals() {
3861
3770
 
3862
3771
 
3863
3772
 
3864
-
3865
-
3866
- 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.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.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.useQuickActionHint = useQuickActionHint; exports.useCopyToClipboard = useCopyToClipboard; exports.configureBatchImageFetch = configureBatchImageFetch; exports.batchFetchAuthenticatedImages = batchFetchAuthenticatedImages; exports.useBatchImages = useBatchImages; exports.configureAuthenticatedImage = configureAuthenticatedImage; exports.useAuthenticatedImage = useAuthenticatedImage; 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;
3867
- //# sourceMappingURL=chunk-QF3NQW7C.cjs.map
3773
+ 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.useMediaQuery = useMediaQuery; exports.breakpoints = breakpoints; exports.useSmUp = useSmUp; exports.useMdUp = useMdUp; exports.useLgUp = useLgUp; exports.useMemoizedCallback = useMemoizedCallback; exports.useNotificationPermission = useNotificationPermission; exports.useOnboardingState = useOnboardingState; exports.useSearch = useSearch; 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.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.useQuickActionHint = useQuickActionHint; exports.useCopyToClipboard = useCopyToClipboard; exports.configureBatchImageFetch = configureBatchImageFetch; exports.batchFetchAuthenticatedImages = batchFetchAuthenticatedImages; exports.useBatchImages = useBatchImages; exports.configureAuthenticatedImage = configureAuthenticatedImage; exports.useAuthenticatedImage = useAuthenticatedImage; 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;
3774
+ //# sourceMappingURL=chunk-AN7MCJTV.cjs.map