@flamingo-stack/openframe-frontend-core 0.0.693 → 0.0.694-2513.7695.1

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 (165) hide show
  1. package/dist/{chunk-GDZ7IC5B.js → chunk-234IIQIS.js} +2 -2
  2. package/dist/{chunk-DVEFZ5DU.cjs → chunk-2EQED5SZ.cjs} +34 -34
  3. package/dist/{chunk-DVEFZ5DU.cjs.map → chunk-2EQED5SZ.cjs.map} +1 -1
  4. package/dist/{chunk-JUNOY5HK.js → chunk-2HX6AADM.js} +15 -17
  5. package/dist/chunk-2HX6AADM.js.map +1 -0
  6. package/dist/{chunk-EZFSUHNP.js → chunk-33L2IR62.js} +3 -3
  7. package/dist/{chunk-TFSRPBVT.js → chunk-42LIHMRA.js} +4 -4
  8. package/dist/{chunk-MIZU2OTO.cjs → chunk-63BLVGXZ.cjs} +4 -4
  9. package/dist/{chunk-MIZU2OTO.cjs.map → chunk-63BLVGXZ.cjs.map} +1 -1
  10. package/dist/{chunk-BFV4L3D7.js → chunk-6ZSDKDOV.js} +8 -8
  11. package/dist/{chunk-UVUNBXS6.js → chunk-7IINE3MK.js} +48 -5
  12. package/dist/chunk-7IINE3MK.js.map +1 -0
  13. package/dist/{chunk-N3526CTH.cjs → chunk-7TO3CWPM.cjs} +3 -3
  14. package/dist/{chunk-N3526CTH.cjs.map → chunk-7TO3CWPM.cjs.map} +1 -1
  15. package/dist/{chunk-WJAMBSMW.js → chunk-7VO6NC67.js} +4 -4
  16. package/dist/{chunk-SC44YJCF.js → chunk-A7RKT5SO.js} +2 -2
  17. package/dist/{chunk-ID5QPM3X.js → chunk-BW6YBATM.js} +102 -69
  18. package/dist/chunk-BW6YBATM.js.map +1 -0
  19. package/dist/{chunk-CMA74BXW.cjs → chunk-C27F6GBZ.cjs} +751 -718
  20. package/dist/{chunk-CMA74BXW.cjs.map → chunk-C27F6GBZ.cjs.map} +1 -1
  21. package/dist/{chunk-DVSPRY2V.cjs → chunk-ESMDIJIN.cjs} +3 -3
  22. package/dist/{chunk-DVSPRY2V.cjs.map → chunk-ESMDIJIN.cjs.map} +1 -1
  23. package/dist/{chunk-FMPH6G3E.cjs → chunk-FNGX5WZM.cjs} +497 -474
  24. package/dist/chunk-FNGX5WZM.cjs.map +1 -0
  25. package/dist/{chunk-5NUOZZRR.js → chunk-GWQCUC53.js} +4 -4
  26. package/dist/{chunk-XI2BAIKJ.js → chunk-HBMGSGZY.js} +6 -6
  27. package/dist/{chunk-HM7ZGABI.js → chunk-HEBLLLLD.js} +2 -2
  28. package/dist/{chunk-HRGG56GC.cjs → chunk-HJZ3UTUE.cjs} +83 -83
  29. package/dist/{chunk-HRGG56GC.cjs.map → chunk-HJZ3UTUE.cjs.map} +1 -1
  30. package/dist/{chunk-3HGVRJTC.cjs → chunk-JB25CCOB.cjs} +47 -47
  31. package/dist/{chunk-3HGVRJTC.cjs.map → chunk-JB25CCOB.cjs.map} +1 -1
  32. package/dist/{chunk-BDGNKIHU.cjs → chunk-JISKS7RJ.cjs} +26 -26
  33. package/dist/{chunk-BDGNKIHU.cjs.map → chunk-JISKS7RJ.cjs.map} +1 -1
  34. package/dist/{chunk-DDCQG3WO.cjs → chunk-K5GSLGV2.cjs} +18 -18
  35. package/dist/{chunk-DDCQG3WO.cjs.map → chunk-K5GSLGV2.cjs.map} +1 -1
  36. package/dist/{chunk-SG57SBYG.cjs → chunk-K5K2FRQK.cjs} +19 -19
  37. package/dist/{chunk-SG57SBYG.cjs.map → chunk-K5K2FRQK.cjs.map} +1 -1
  38. package/dist/{chunk-WSYCPIRG.cjs → chunk-KBSL4FCL.cjs} +9 -9
  39. package/dist/{chunk-WSYCPIRG.cjs.map → chunk-KBSL4FCL.cjs.map} +1 -1
  40. package/dist/{chunk-SDORFSFK.cjs → chunk-KDUDL4PB.cjs} +37 -37
  41. package/dist/{chunk-SDORFSFK.cjs.map → chunk-KDUDL4PB.cjs.map} +1 -1
  42. package/dist/{chunk-RKIMG67Q.cjs → chunk-KJHIFF6H.cjs} +16 -16
  43. package/dist/{chunk-RKIMG67Q.cjs.map → chunk-KJHIFF6H.cjs.map} +1 -1
  44. package/dist/{chunk-QDH62H4N.js → chunk-LHYOESIQ.js} +4 -4
  45. package/dist/{chunk-6H5PPQWP.cjs → chunk-LPFU6U7O.cjs} +5 -5
  46. package/dist/{chunk-6H5PPQWP.cjs.map → chunk-LPFU6U7O.cjs.map} +1 -1
  47. package/dist/{chunk-I72FRMF6.js → chunk-N7HFUBOV.js} +3 -3
  48. package/dist/{chunk-53O6PQ3F.cjs → chunk-NDLFK57D.cjs} +7 -7
  49. package/dist/{chunk-53O6PQ3F.cjs.map → chunk-NDLFK57D.cjs.map} +1 -1
  50. package/dist/{chunk-XWAT6ZP5.js → chunk-O4RDXDVS.js} +12 -12
  51. package/dist/{chunk-4KM5MVBM.cjs → chunk-Q2B2MGFU.cjs} +7 -7
  52. package/dist/{chunk-4KM5MVBM.cjs.map → chunk-Q2B2MGFU.cjs.map} +1 -1
  53. package/dist/{chunk-5CZZ4JLE.js → chunk-QP54LMXJ.js} +38 -15
  54. package/dist/{chunk-5CZZ4JLE.js.map → chunk-QP54LMXJ.js.map} +1 -1
  55. package/dist/{chunk-QRA2JXE4.cjs → chunk-RE6PGOSS.cjs} +6 -8
  56. package/dist/chunk-RE6PGOSS.cjs.map +1 -0
  57. package/dist/{chunk-C2SVJVEB.js → chunk-SH5GPYSV.js} +2 -2
  58. package/dist/{chunk-UWJZRI5J.cjs → chunk-SJFB4Z4L.cjs} +105 -105
  59. package/dist/{chunk-UWJZRI5J.cjs.map → chunk-SJFB4Z4L.cjs.map} +1 -1
  60. package/dist/{chunk-7EPGJOKN.js → chunk-TA3JJFEO.js} +4 -4
  61. package/dist/{chunk-PPRD3PTW.js → chunk-TBR3UTFY.js} +6 -6
  62. package/dist/{chunk-USKQURNF.cjs → chunk-TG3VBMDG.cjs} +3 -3
  63. package/dist/{chunk-USKQURNF.cjs.map → chunk-TG3VBMDG.cjs.map} +1 -1
  64. package/dist/{chunk-F2ZBNRTF.js → chunk-TV5SZJ3N.js} +12 -12
  65. package/dist/{chunk-GVMVPMDE.js → chunk-TXSQLORA.js} +6 -6
  66. package/dist/{chunk-INVP4WLX.js → chunk-UCXZRJIE.js} +7 -7
  67. package/dist/{chunk-I27PWVWE.cjs → chunk-WT4HURQN.cjs} +46 -3
  68. package/dist/chunk-WT4HURQN.cjs.map +1 -0
  69. package/dist/{chunk-XAOAYDGR.js → chunk-WZJWIZVH.js} +4 -4
  70. package/dist/{chunk-IC2SDW6U.js → chunk-XKNKGBUX.js} +10 -8
  71. package/dist/{chunk-IC2SDW6U.js.map → chunk-XKNKGBUX.js.map} +1 -1
  72. package/dist/{chunk-LNKLB7GM.cjs → chunk-XNTQHC26.cjs} +28 -28
  73. package/dist/{chunk-LNKLB7GM.cjs.map → chunk-XNTQHC26.cjs.map} +1 -1
  74. package/dist/{chunk-2YVTGPM7.js → chunk-XZILGCXJ.js} +2 -2
  75. package/dist/{chunk-JAQK3GQJ.cjs → chunk-Y5AFMYYN.cjs} +46 -44
  76. package/dist/chunk-Y5AFMYYN.cjs.map +1 -0
  77. package/dist/{chunk-7BC3NJAV.cjs → chunk-ZCPMWXIB.cjs} +25 -25
  78. package/dist/{chunk-7BC3NJAV.cjs.map → chunk-ZCPMWXIB.cjs.map} +1 -1
  79. package/dist/{chunk-S54QA2VE.cjs → chunk-ZUGAHQDB.cjs} +7 -7
  80. package/dist/{chunk-S54QA2VE.cjs.map → chunk-ZUGAHQDB.cjs.map} +1 -1
  81. package/dist/components/case-studies/index.cjs +21 -21
  82. package/dist/components/case-studies/index.js +8 -8
  83. package/dist/components/chat/chat-message-list.d.ts.map +1 -1
  84. package/dist/components/chat/chat-typing-indicator.d.ts.map +1 -1
  85. package/dist/components/chat/cycling-phrase.d.ts.map +1 -1
  86. package/dist/components/chat/index.cjs +5 -5
  87. package/dist/components/chat/index.js +4 -4
  88. package/dist/components/contact/index.cjs +9 -9
  89. package/dist/components/contact/index.js +8 -8
  90. package/dist/components/docs/index.cjs +12 -12
  91. package/dist/components/docs/index.js +11 -11
  92. package/dist/components/embeds/index.cjs +9 -9
  93. package/dist/components/embeds/index.js +8 -8
  94. package/dist/components/faq/index.cjs +10 -10
  95. package/dist/components/faq/index.js +9 -9
  96. package/dist/components/features/index.cjs +8 -8
  97. package/dist/components/features/index.js +7 -7
  98. package/dist/components/help-center-pages/index.cjs +107 -107
  99. package/dist/components/help-center-pages/index.js +22 -22
  100. package/dist/components/index.cjs +69 -69
  101. package/dist/components/index.js +22 -22
  102. package/dist/components/meeting-scheduler/index.cjs +59 -59
  103. package/dist/components/meeting-scheduler/index.js +9 -9
  104. package/dist/components/navigation/app-layout-drawer.d.ts.map +1 -1
  105. package/dist/components/navigation/index.cjs +11 -11
  106. package/dist/components/navigation/index.js +10 -10
  107. package/dist/components/onboarding-guides/index.cjs +12 -12
  108. package/dist/components/onboarding-guides/index.js +11 -11
  109. package/dist/components/related-content/index.cjs +6 -6
  110. package/dist/components/related-content/index.js +5 -5
  111. package/dist/components/tickets/index.cjs +13 -13
  112. package/dist/components/tickets/index.js +12 -12
  113. package/dist/components/ui/index.cjs +8 -8
  114. package/dist/components/ui/index.js +7 -7
  115. package/dist/components/ui/markdown/engine.d.ts +0 -21
  116. package/dist/components/ui/markdown/engine.d.ts.map +1 -1
  117. package/dist/hooks/index.cjs +6 -6
  118. package/dist/hooks/index.cjs.map +1 -1
  119. package/dist/hooks/index.js +5 -5
  120. package/dist/hooks/use-authed-asset-src.d.ts.map +1 -1
  121. package/dist/index.cjs +15 -15
  122. package/dist/index.cjs.map +1 -1
  123. package/dist/index.js +12 -12
  124. package/dist/tailwind.config.cjs +14 -1
  125. package/dist/tailwind.config.cjs.map +1 -1
  126. package/dist/tailwind.config.js +14 -1
  127. package/dist/tailwind.config.js.map +1 -1
  128. package/package.json +1 -1
  129. package/src/components/chat/chat-message-enhanced.tsx +1 -1
  130. package/src/components/chat/chat-message-list.tsx +55 -14
  131. package/src/components/chat/chat-typing-indicator.tsx +18 -29
  132. package/src/components/chat/cycling-phrase.tsx +1 -11
  133. package/src/components/chat/embeddable-chat.tsx +9 -6
  134. package/src/components/navigation/app-layout-drawer.tsx +53 -7
  135. package/src/components/ui/__tests__/__snapshots__/markdown-parity.test.tsx.snap +29 -29
  136. package/src/components/ui/markdown/engine.tsx +56 -12
  137. package/src/hooks/use-authed-asset-src.ts +58 -6
  138. package/tailwind.config.ts +13 -0
  139. package/dist/chunk-FMPH6G3E.cjs.map +0 -1
  140. package/dist/chunk-I27PWVWE.cjs.map +0 -1
  141. package/dist/chunk-ID5QPM3X.js.map +0 -1
  142. package/dist/chunk-JAQK3GQJ.cjs.map +0 -1
  143. package/dist/chunk-JUNOY5HK.js.map +0 -1
  144. package/dist/chunk-QRA2JXE4.cjs.map +0 -1
  145. package/dist/chunk-UVUNBXS6.js.map +0 -1
  146. /package/dist/{chunk-GDZ7IC5B.js.map → chunk-234IIQIS.js.map} +0 -0
  147. /package/dist/{chunk-EZFSUHNP.js.map → chunk-33L2IR62.js.map} +0 -0
  148. /package/dist/{chunk-TFSRPBVT.js.map → chunk-42LIHMRA.js.map} +0 -0
  149. /package/dist/{chunk-BFV4L3D7.js.map → chunk-6ZSDKDOV.js.map} +0 -0
  150. /package/dist/{chunk-WJAMBSMW.js.map → chunk-7VO6NC67.js.map} +0 -0
  151. /package/dist/{chunk-SC44YJCF.js.map → chunk-A7RKT5SO.js.map} +0 -0
  152. /package/dist/{chunk-5NUOZZRR.js.map → chunk-GWQCUC53.js.map} +0 -0
  153. /package/dist/{chunk-XI2BAIKJ.js.map → chunk-HBMGSGZY.js.map} +0 -0
  154. /package/dist/{chunk-HM7ZGABI.js.map → chunk-HEBLLLLD.js.map} +0 -0
  155. /package/dist/{chunk-QDH62H4N.js.map → chunk-LHYOESIQ.js.map} +0 -0
  156. /package/dist/{chunk-I72FRMF6.js.map → chunk-N7HFUBOV.js.map} +0 -0
  157. /package/dist/{chunk-XWAT6ZP5.js.map → chunk-O4RDXDVS.js.map} +0 -0
  158. /package/dist/{chunk-C2SVJVEB.js.map → chunk-SH5GPYSV.js.map} +0 -0
  159. /package/dist/{chunk-7EPGJOKN.js.map → chunk-TA3JJFEO.js.map} +0 -0
  160. /package/dist/{chunk-PPRD3PTW.js.map → chunk-TBR3UTFY.js.map} +0 -0
  161. /package/dist/{chunk-F2ZBNRTF.js.map → chunk-TV5SZJ3N.js.map} +0 -0
  162. /package/dist/{chunk-GVMVPMDE.js.map → chunk-TXSQLORA.js.map} +0 -0
  163. /package/dist/{chunk-INVP4WLX.js.map → chunk-UCXZRJIE.js.map} +0 -0
  164. /package/dist/{chunk-XAOAYDGR.js.map → chunk-WZJWIZVH.js.map} +0 -0
  165. /package/dist/{chunk-2YVTGPM7.js.map → chunk-XZILGCXJ.js.map} +0 -0
@@ -16,13 +16,12 @@ import {
16
16
  useDebounce,
17
17
  useHeaderHeight,
18
18
  useIsTruncated,
19
- useIsomorphicLayoutEffect,
20
19
  useMarqueeEngine,
21
20
  useMediaQuery,
22
21
  useNearViewport,
23
22
  useResetOnPageHidden,
24
23
  useSuppressCloneFocus
25
- } from "./chunk-JUNOY5HK.js";
24
+ } from "./chunk-2HX6AADM.js";
26
25
  import {
27
26
  useRouter
28
27
  } from "./chunk-XXMHLZ3Y.js";
@@ -198,7 +197,7 @@ import {
198
197
  trustFrameworkMonitoringEntry,
199
198
  trustFrameworksSummary,
200
199
  useCoverImageFallback
201
- } from "./chunk-2YVTGPM7.js";
200
+ } from "./chunk-XZILGCXJ.js";
202
201
  import {
203
202
  next_image_default
204
203
  } from "./chunk-MDKCTSDS.js";
@@ -213,8 +212,9 @@ import {
213
212
  getPlatformDisplayName,
214
213
  setEmbedProxyAuth,
215
214
  useAuthedAssetSrc,
216
- useAuthedImageSrc
217
- } from "./chunk-UVUNBXS6.js";
215
+ useAuthedImageSrc,
216
+ useIsomorphicLayoutEffect
217
+ } from "./chunk-7IINE3MK.js";
218
218
  import {
219
219
  OpenFrameLogo
220
220
  } from "./chunk-OTX6XNSA.js";
@@ -3785,6 +3785,25 @@ function resolveTextSizeConfig(config) {
3785
3785
  // src/components/ui/markdown/engine.tsx
3786
3786
  import { jsx as jsx15 } from "react/jsx-runtime";
3787
3787
  var NO_BROKEN_LINKS = [];
3788
+ var BARE_FENCE_LANGUAGE = "code";
3789
+ function rehypeLabelBareFences() {
3790
+ const visit4 = (node) => {
3791
+ for (const child of node.children) {
3792
+ if (child.type !== "element") continue;
3793
+ if (child.tagName === "pre") {
3794
+ for (const code of child.children) {
3795
+ if (code.type !== "element" || code.tagName !== "code") continue;
3796
+ const classes = Array.isArray(code.properties.className) ? code.properties.className : [];
3797
+ if (!classes.some((c) => String(c).startsWith("language-"))) {
3798
+ code.properties.className = [...classes, `language-${BARE_FENCE_LANGUAGE}`];
3799
+ }
3800
+ }
3801
+ }
3802
+ visit4(child);
3803
+ }
3804
+ };
3805
+ return (tree) => visit4(tree);
3806
+ }
3788
3807
  var StreamingBlockRenderer = memo(function StreamingBlockRendererImpl({
3789
3808
  text: text2,
3790
3809
  remarkPlugins,
@@ -3834,19 +3853,27 @@ var MarkdownEngineImpl = ({
3834
3853
  () => [remarkGfm, remarkBreaks, ...additionalRemarkPlugins ?? []],
3835
3854
  [additionalRemarkPlugins]
3836
3855
  );
3837
- const rehypePlugins = useMemo4(() => {
3856
+ const { rehypePlugins, liveRehypePlugins } = useMemo4(() => {
3838
3857
  const schema = buildSanitizeSchema({
3839
3858
  extraAllowedHtmlTags: extraTagsKey ? extraTagsKey.split("|") : void 0
3840
3859
  });
3841
- return [
3842
- // ORDER MATTERS: rehype-raw parses embedded raw HTML into HAST;
3843
- // rehypeSanitize is the allow-list boundary; rehypeStripUnsafe is
3844
- // defense-in-depth (srcset scanning, iframe[srcdoc]); highlight last.
3845
- rehypeRaw,
3846
- [rehypeSanitize, schema],
3847
- rehypeStripUnsafe,
3848
- [rehypeHighlight, { detect: true, ignoreMissing: true }]
3860
+ const safe = [rehypeRaw, [rehypeSanitize, schema], rehypeStripUnsafe, rehypeLabelBareFences];
3861
+ const highlighted = [
3862
+ ...safe,
3863
+ // No language detection: it ran highlightAuto over every registered
3864
+ // grammar for each unlabelled fence (~2.5x the cost of opening a
3865
+ // thread) and often guessed wrong (PowerShell shown as "VBNET").
3866
+ [rehypeHighlight, { plainText: [BARE_FENCE_LANGUAGE] }]
3849
3867
  ];
3868
+ return {
3869
+ rehypePlugins: highlighted,
3870
+ // The streaming tail re-parses on every chunk, and a code fence being
3871
+ // typed is one tail block — highlighting it every chunk was the
3872
+ // costliest step of a streamed reply. It is highlighted once it
3873
+ // completes: every block before the tail and the final parse use
3874
+ // `rehypePlugins`.
3875
+ liveRehypePlugins: safe
3876
+ };
3850
3877
  }, [extraTagsKey]);
3851
3878
  const components = useMemo4(
3852
3879
  () => ({
@@ -3872,7 +3899,7 @@ var MarkdownEngineImpl = ({
3872
3899
  // aria-live: readers announce coherent appended chunks, not per-token
3873
3900
  // spam (polite + additions). Streaming caret/pulse affordances live in
3874
3901
  // chat components and honor prefers-reduced-motion there.
3875
- /* @__PURE__ */ jsx15("div", { "aria-live": "polite", "aria-relevant": "additions text", children: streamingBlocks.map((block) => (
3902
+ /* @__PURE__ */ jsx15("div", { "aria-live": "polite", "aria-relevant": "additions text", children: streamingBlocks.map((block, i) => (
3876
3903
  // Each unit is parsed on its own, so hast positions restart at 1;
3877
3904
  // the offset maps them back onto the document-wide heading-id map.
3878
3905
  /* @__PURE__ */ jsx15(HeadingLineOffsetContext.Provider, { value: block.startLine - 1, children: block.memoizable ? /* @__PURE__ */ jsx15(
@@ -3887,7 +3914,7 @@ var MarkdownEngineImpl = ({
3887
3914
  ReactMarkdown,
3888
3915
  {
3889
3916
  remarkPlugins,
3890
- rehypePlugins,
3917
+ rehypePlugins: i === streamingBlocks.length - 1 ? liveRehypePlugins : rehypePlugins,
3891
3918
  urlTransform: cardAwareUrlTransform,
3892
3919
  components,
3893
3920
  children: block.text
@@ -5406,50 +5433,40 @@ var ChatTypingIndicator = forwardRef14(
5406
5433
  md: "h-6",
5407
5434
  lg: "h-8"
5408
5435
  };
5409
- const dotAnimation = `
5410
- @keyframes dotPulse {
5411
- 0%, 80%, 100% {
5412
- transform: scale(1);
5413
- opacity: 0.7;
5414
- }
5415
- 40% {
5416
- transform: scale(1.5);
5417
- opacity: 1;
5418
- }
5419
- }
5420
- `;
5421
5436
  return /* @__PURE__ */ jsxs19("div", { ref, className: cn("flex items-center gap-2", className), ...props, children: [
5422
- /* @__PURE__ */ jsx28("style", { dangerouslySetInnerHTML: { __html: dotAnimation } }),
5423
5437
  showText && /* @__PURE__ */ jsx28("span", { className: "text-ods-text-secondary text-h6", children: "Assistant is typing" }),
5424
5438
  /* @__PURE__ */ jsxs19("div", { className: cn("inline-flex items-center justify-center gap-1", containerSizeClasses[size2]), children: [
5425
5439
  /* @__PURE__ */ jsx28(
5426
5440
  "div",
5427
5441
  {
5428
- className: cn(dotSizeClasses[size2], "rounded-full", dotClassName || "bg-ods-text-primary"),
5429
- style: {
5430
- animation: "dotPulse 1.4s ease-in-out infinite",
5431
- animationDelay: "0ms"
5432
- }
5442
+ className: cn(
5443
+ dotSizeClasses[size2],
5444
+ "animate-dot-pulse rounded-full",
5445
+ dotClassName || "bg-ods-text-primary"
5446
+ ),
5447
+ style: { animationDelay: "0ms" }
5433
5448
  }
5434
5449
  ),
5435
5450
  /* @__PURE__ */ jsx28(
5436
5451
  "div",
5437
5452
  {
5438
- className: cn(dotSizeClasses[size2], "rounded-full", dotClassName || "bg-ods-text-primary"),
5439
- style: {
5440
- animation: "dotPulse 1.4s ease-in-out infinite",
5441
- animationDelay: "200ms"
5442
- }
5453
+ className: cn(
5454
+ dotSizeClasses[size2],
5455
+ "animate-dot-pulse rounded-full",
5456
+ dotClassName || "bg-ods-text-primary"
5457
+ ),
5458
+ style: { animationDelay: "200ms" }
5443
5459
  }
5444
5460
  ),
5445
5461
  /* @__PURE__ */ jsx28(
5446
5462
  "div",
5447
5463
  {
5448
- className: cn(dotSizeClasses[size2], "rounded-full", dotClassName || "bg-ods-text-primary"),
5449
- style: {
5450
- animation: "dotPulse 1.4s ease-in-out infinite",
5451
- animationDelay: "400ms"
5452
- }
5464
+ className: cn(
5465
+ dotSizeClasses[size2],
5466
+ "animate-dot-pulse rounded-full",
5467
+ dotClassName || "bg-ods-text-primary"
5468
+ ),
5469
+ style: { animationDelay: "400ms" }
5453
5470
  }
5454
5471
  )
5455
5472
  ] })
@@ -7710,7 +7727,7 @@ var ChatMessageEnhanced = forwardRef17(
7710
7727
  "span",
7711
7728
  {
7712
7729
  className: cn(
7713
- "flex-1 !font-mono !font-medium text-h3",
7730
+ "min-w-0 flex-1 truncate !font-mono !font-medium text-h3",
7714
7731
  authorType === "system" ? "text-ods-open-yellow" : authorType === "admin" ? "text-ods-open-yellow" : authorType === "mingo" ? "text-ods-flamingo-cyan" : authorType === "fae" ? "text-ods-flamingo-pink" : "text-ods-text-secondary"
7715
7732
  ),
7716
7733
  children: [
@@ -7917,11 +7934,6 @@ function ChatMessageListSkeleton({
7917
7934
  // src/components/chat/cycling-phrase.tsx
7918
7935
  import { useEffect as useEffect7, useMemo as useMemo10, useState as useState13 } from "react";
7919
7936
  import { jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
7920
- var BLINK_KEYFRAMES = `
7921
- @keyframes cyclingCursorBlink {
7922
- 50% { opacity: 0; }
7923
- }
7924
- `;
7925
7937
  function CyclingPhrase({ words, className, charMs = 60, holdMs = 4500 }) {
7926
7938
  const [wordIndex, setWordIndex] = useState13(0);
7927
7939
  const [text2, setText] = useState13("");
@@ -7962,19 +7974,17 @@ function CyclingPhrase({ words, className, charMs = 60, holdMs = 4500 }) {
7962
7974
  "span",
7963
7975
  {
7964
7976
  "aria-hidden": true,
7965
- className: "inline-block bg-current align-baseline",
7977
+ className: "inline-block animate-cursor-blink bg-current align-baseline",
7966
7978
  style: {
7967
7979
  width: "0.6em",
7968
7980
  height: "1em",
7969
7981
  verticalAlign: "-0.1em",
7970
7982
  marginLeft: "1px",
7971
- marginRight: "1px",
7972
- animation: "cyclingCursorBlink 1s steps(1) infinite"
7983
+ marginRight: "1px"
7973
7984
  }
7974
7985
  }
7975
7986
  );
7976
7987
  return /* @__PURE__ */ jsxs27("span", { className: cn("relative inline-block whitespace-nowrap", className), children: [
7977
- /* @__PURE__ */ jsx38("style", { dangerouslySetInnerHTML: { __html: BLINK_KEYFRAMES } }),
7978
7988
  /* @__PURE__ */ jsxs27("span", { "aria-hidden": true, className: "invisible", children: [
7979
7989
  placeholder,
7980
7990
  "..."
@@ -8004,6 +8014,8 @@ var STREAMING_WORDS = [
8004
8014
  ];
8005
8015
  var BOTTOM_THRESHOLD_PX = 70;
8006
8016
  var FOLLOW_RETAIN_MS = 350;
8017
+ var GROWTH_WATCH_IDLE_MS = 1e4;
8018
+ var MEDIA_SETTLE_EVENTS = ["load", "error", "loadedmetadata"];
8007
8019
  function hasNonEmptyContent(content) {
8008
8020
  if (typeof content === "string") return content.length > 0;
8009
8021
  if (!Array.isArray(content)) return false;
@@ -8081,6 +8093,7 @@ var ChatMessageList = forwardRef18(
8081
8093
  const dialogIdRef = useRef6(dialogId);
8082
8094
  dialogIdRef.current = dialogId;
8083
8095
  const followBottomRef = useRef6(false);
8096
+ const kickGrowthWatchRef = useRef6(null);
8084
8097
  const [atBottom, setAtBottom] = useState14(true);
8085
8098
  const prevRenderRef = useRef6({ dialogId: void 0, messageCount: 0, lastMessageId: void 0 });
8086
8099
  const loadOlderAnchorRef = useRef6(null);
@@ -8132,19 +8145,33 @@ var ChatMessageList = forwardRef18(
8132
8145
  }
8133
8146
  measure();
8134
8147
  };
8135
- const ro = new ResizeObserver(reassert);
8136
- ro.observe(content);
8137
- ro.observe(scroller);
8138
8148
  let growthRaf = 0;
8139
8149
  let lastScrollHeight = scroller.scrollHeight;
8140
- const watchGrowth = () => {
8141
- growthRaf = requestAnimationFrame(watchGrowth);
8150
+ let lastGrowthAt = performance.now();
8151
+ const watchGrowth = (now) => {
8142
8152
  const height = scroller.scrollHeight;
8143
- if (height === lastScrollHeight) return;
8144
- lastScrollHeight = height;
8145
- reassert();
8153
+ if (height !== lastScrollHeight) {
8154
+ lastScrollHeight = height;
8155
+ lastGrowthAt = now;
8156
+ reassert();
8157
+ } else if (now - lastGrowthAt > GROWTH_WATCH_IDLE_MS) {
8158
+ growthRaf = 0;
8159
+ return;
8160
+ }
8161
+ growthRaf = requestAnimationFrame(watchGrowth);
8162
+ };
8163
+ const kick = () => {
8164
+ lastGrowthAt = performance.now();
8165
+ if (!growthRaf) growthRaf = requestAnimationFrame(watchGrowth);
8146
8166
  };
8147
- growthRaf = requestAnimationFrame(watchGrowth);
8167
+ kick();
8168
+ kickGrowthWatchRef.current = kick;
8169
+ const ro = new ResizeObserver(() => {
8170
+ kick();
8171
+ reassert();
8172
+ });
8173
+ ro.observe(content);
8174
+ ro.observe(scroller);
8148
8175
  const disarm = () => {
8149
8176
  followBottomRef.current = false;
8150
8177
  stopScroll();
@@ -8180,6 +8207,7 @@ var ChatMessageList = forwardRef18(
8180
8207
  rearmIfAtBottom();
8181
8208
  };
8182
8209
  const onScroll = () => {
8210
+ kick();
8183
8211
  const st = scroller.scrollTop;
8184
8212
  if (pointerDown && st < lastScrollTop) disarm();
8185
8213
  lastScrollTop = st;
@@ -8196,23 +8224,29 @@ var ChatMessageList = forwardRef18(
8196
8224
  scroller.addEventListener("touchmove", onTouchMove, { passive: true });
8197
8225
  window.addEventListener("pointerdown", onPointerDown, winCapture);
8198
8226
  scroller.addEventListener("scroll", onScroll, { passive: true });
8227
+ for (const type of MEDIA_SETTLE_EVENTS) scroller.addEventListener(type, kick, { capture: true, passive: true });
8199
8228
  window.addEventListener("pointerup", endPointer, winCapture);
8200
8229
  window.addEventListener("pointercancel", endPointer, winCapture);
8201
8230
  window.addEventListener("blur", endPointer, { passive: true });
8202
8231
  return () => {
8203
8232
  ro.disconnect();
8204
8233
  cancelAnimationFrame(growthRaf);
8234
+ kickGrowthWatchRef.current = null;
8205
8235
  scroller.removeEventListener("wheel", onWheel);
8206
8236
  scroller.removeEventListener("keydown", onKeyDown);
8207
8237
  scroller.removeEventListener("touchstart", onTouchStart);
8208
8238
  scroller.removeEventListener("touchmove", onTouchMove);
8209
8239
  window.removeEventListener("pointerdown", onPointerDown, { capture: true });
8210
8240
  scroller.removeEventListener("scroll", onScroll);
8241
+ for (const type of MEDIA_SETTLE_EVENTS) scroller.removeEventListener(type, kick, { capture: true });
8211
8242
  window.removeEventListener("pointerup", endPointer, { capture: true });
8212
8243
  window.removeEventListener("pointercancel", endPointer, { capture: true });
8213
8244
  window.removeEventListener("blur", endPointer);
8214
8245
  };
8215
8246
  }, [autoScroll, scrollRef, contentRef, scrollToBottom, stopScroll, isLoading]);
8247
+ useEffect8(() => {
8248
+ kickGrowthWatchRef.current?.();
8249
+ }, [messages, isTyping]);
8216
8250
  const pinPrevHeightRef = useRef6(0);
8217
8251
  useLayoutEffect4(() => {
8218
8252
  if (!pinBottom) {
@@ -26448,19 +26482,19 @@ function EmbeddableChatInner({
26448
26482
  );
26449
26483
  const [portalHost, setPortalHost] = useState49(null);
26450
26484
  const [panelBoundary, setPanelBoundary] = useState49(null);
26451
- const [panelWidth, setPanelWidth] = useState49(0);
26485
+ const [canSplit, setCanSplit] = useState49(false);
26452
26486
  useEffect38(() => {
26453
26487
  if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
26454
26488
  const ro = new ResizeObserver((entries) => {
26455
26489
  const w = entries[0]?.contentRect?.width;
26456
- if (typeof w === "number") setPanelWidth(w);
26490
+ if (typeof w === "number") setCanSplit(w >= SPLIT_MIN_WIDTH);
26457
26491
  });
26458
26492
  ro.observe(panelBoundary);
26459
26493
  return () => ro.disconnect();
26460
26494
  }, [panelBoundary]);
26461
26495
  const setPanelNode = useCallback28((node) => {
26462
26496
  setPanelBoundary(node);
26463
- if (node) setPanelWidth(node.clientWidth);
26497
+ if (node) setCanSplit(node.clientWidth >= SPLIT_MIN_WIDTH);
26464
26498
  }, []);
26465
26499
  const [railCollapsed, setRailCollapsed] = useState49(false);
26466
26500
  const railStorageHydrated = useIsHydrated();
@@ -26484,7 +26518,6 @@ function EmbeddableChatInner({
26484
26518
  }, []);
26485
26519
  const [railSearchOpen, setRailSearchOpen] = useState49(false);
26486
26520
  const splitEligible = historyListMode;
26487
- const canSplit = panelWidth >= SPLIT_MIN_WIDTH;
26488
26521
  const wideMingo = splitEligible && canSplit && !previewMode;
26489
26522
  const splitActive = wideMingo && !railCollapsed;
26490
26523
  const railPresence = useRailPresence(splitActive);
@@ -26622,7 +26655,7 @@ function EmbeddableChatInner({
26622
26655
  // expand toggle + the chat-block header (the fill column shows
26623
26656
  // the chat / new-chat welcome). No back chevron — chat-list
26624
26657
  // navigation is the rail toggle. Shown whenever the panel is wide
26625
- // enough to split (`panelWidth ≥ SPLIT_MIN_WIDTH`), NOT gated on
26658
+ // enough to split (width ≥ `SPLIT_MIN_WIDTH`), NOT gated on
26626
26659
  // the viewport `md` breakpoint — otherwise a 720–799px panel on a
26627
26660
  // sub-`md` viewport would split the body yet drop to the mobile
26628
26661
  // single-bar header (no rail search / collapse controls).
@@ -27743,4 +27776,4 @@ export {
27743
27776
  EmbeddableChat,
27744
27777
  ProxyCredentialsPanel
27745
27778
  };
27746
- //# sourceMappingURL=chunk-ID5QPM3X.js.map
27779
+ //# sourceMappingURL=chunk-BW6YBATM.js.map