@flamingo-stack/openframe-frontend-core 0.0.454 → 0.0.455-snapshot.20260719161719

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 (163) hide show
  1. package/dist/{chunk-UGFB5EAW.js → chunk-2I3GN7WW.js} +4 -4
  2. package/dist/{chunk-44AD5D3C.cjs → chunk-6K6LAD6H.cjs} +18 -18
  3. package/dist/{chunk-44AD5D3C.cjs.map → chunk-6K6LAD6H.cjs.map} +1 -1
  4. package/dist/{chunk-UPRY4I63.cjs → chunk-6TI3DCOG.cjs} +3 -3
  5. package/dist/{chunk-UPRY4I63.cjs.map → chunk-6TI3DCOG.cjs.map} +1 -1
  6. package/dist/{chunk-YAZIVPUF.cjs → chunk-A7FTNFBX.cjs} +73 -73
  7. package/dist/{chunk-YAZIVPUF.cjs.map → chunk-A7FTNFBX.cjs.map} +1 -1
  8. package/dist/{chunk-YJ7SPS7I.js → chunk-DAEKUR3J.js} +2 -2
  9. package/dist/{chunk-PT233TJV.js → chunk-DU6R7XNU.js} +2 -2
  10. package/dist/{chunk-OZZ4VQ52.cjs → chunk-DYBATZJP.cjs} +5 -5
  11. package/dist/{chunk-OZZ4VQ52.cjs.map → chunk-DYBATZJP.cjs.map} +1 -1
  12. package/dist/{chunk-PB24PKG2.cjs → chunk-F2CCUPKC.cjs} +29 -29
  13. package/dist/{chunk-PB24PKG2.cjs.map → chunk-F2CCUPKC.cjs.map} +1 -1
  14. package/dist/{chunk-OGKDOG5D.js → chunk-F3IBBAKV.js} +2 -2
  15. package/dist/{chunk-IM5A5F2E.cjs → chunk-GC63K4VD.cjs} +73 -73
  16. package/dist/{chunk-IM5A5F2E.cjs.map → chunk-GC63K4VD.cjs.map} +1 -1
  17. package/dist/{chunk-N2UFIQAD.cjs → chunk-GQZGCMRF.cjs} +7 -7
  18. package/dist/{chunk-N2UFIQAD.cjs.map → chunk-GQZGCMRF.cjs.map} +1 -1
  19. package/dist/{chunk-EQWE64RJ.js → chunk-ILUX3DXS.js} +2 -2
  20. package/dist/{chunk-NUT3HRKS.cjs → chunk-INH6SIP5.cjs} +12 -12
  21. package/dist/{chunk-NUT3HRKS.cjs.map → chunk-INH6SIP5.cjs.map} +1 -1
  22. package/dist/{chunk-QF3NQW7C.cjs → chunk-IOHQJOLR.cjs} +35 -81
  23. package/dist/chunk-IOHQJOLR.cjs.map +1 -0
  24. package/dist/{chunk-TMST2WFZ.js → chunk-JHIT44TA.js} +3 -3
  25. package/dist/{chunk-ACUD4XVZ.cjs → chunk-KH5VTGCS.cjs} +40 -40
  26. package/dist/{chunk-ACUD4XVZ.cjs.map → chunk-KH5VTGCS.cjs.map} +1 -1
  27. package/dist/{chunk-MX2ITMKK.js → chunk-LAFCXJVT.js} +5 -5
  28. package/dist/{chunk-55ISAJFV.js → chunk-LMBPJAQ2.js} +6 -6
  29. package/dist/{chunk-MLFFBQ5B.js → chunk-MK2YWJAA.js} +98 -144
  30. package/dist/chunk-MK2YWJAA.js.map +1 -0
  31. package/dist/{chunk-5HQV2F5K.cjs → chunk-TXS2AMFV.cjs} +32 -32
  32. package/dist/{chunk-5HQV2F5K.cjs.map → chunk-TXS2AMFV.cjs.map} +1 -1
  33. package/dist/{chunk-GOWE4WSU.js → chunk-U27TXTAK.js} +6 -6
  34. package/dist/{chunk-UOTHXOCS.js → chunk-UEKCD6WV.js} +5539 -5559
  35. package/dist/chunk-UEKCD6WV.js.map +1 -0
  36. package/dist/{chunk-XH33VG5A.cjs → chunk-UHVVNVUE.cjs} +40 -40
  37. package/dist/{chunk-XH33VG5A.cjs.map → chunk-UHVVNVUE.cjs.map} +1 -1
  38. package/dist/{chunk-AJAF456I.js → chunk-UXKSOJR7.js} +3 -3
  39. package/dist/{chunk-WLUIXASU.cjs → chunk-VZNJ3RYI.cjs} +15 -15
  40. package/dist/{chunk-WLUIXASU.cjs.map → chunk-VZNJ3RYI.cjs.map} +1 -1
  41. package/dist/{chunk-YED55PQY.js → chunk-YLTY4Z4B.js} +3 -3
  42. package/dist/{chunk-72VDY6MM.cjs → chunk-YMGOTPY7.cjs} +1431 -1451
  43. package/dist/chunk-YMGOTPY7.cjs.map +1 -0
  44. package/dist/{chunk-JUNKHNWE.js → chunk-ZQHGSR3H.js} +5 -5
  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-message-list.d.ts.map +1 -1
  48. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  49. package/dist/components/chat/guide-welcome.d.ts.map +1 -1
  50. package/dist/components/chat/index.cjs +3 -9
  51. package/dist/components/chat/index.cjs.map +1 -1
  52. package/dist/components/chat/index.d.ts +0 -2
  53. package/dist/components/chat/index.d.ts.map +1 -1
  54. package/dist/components/chat/index.js +2 -8
  55. package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
  56. package/dist/components/chat/quick-action-chip.d.ts +48 -0
  57. package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
  58. package/dist/components/chat/quick-action-marquee.d.ts.map +1 -1
  59. package/dist/components/chat/quick-action-wall.d.ts +6 -3
  60. package/dist/components/chat/quick-action-wall.d.ts.map +1 -1
  61. package/dist/components/chat/types/component.types.d.ts +17 -12
  62. package/dist/components/chat/types/component.types.d.ts.map +1 -1
  63. package/dist/components/contact/index.cjs +4 -4
  64. package/dist/components/contact/index.js +3 -3
  65. package/dist/components/docs/index.cjs +6 -6
  66. package/dist/components/docs/index.js +5 -5
  67. package/dist/components/embeds/index.cjs +4 -4
  68. package/dist/components/embeds/index.js +3 -3
  69. package/dist/components/faq/index.cjs +5 -5
  70. package/dist/components/faq/index.js +4 -4
  71. package/dist/components/features/cards-strip.d.ts.map +1 -1
  72. package/dist/components/features/index.cjs +3 -3
  73. package/dist/components/features/index.js +2 -2
  74. package/dist/components/help-center-pages/index.cjs +22 -22
  75. package/dist/components/help-center-pages/index.js +13 -13
  76. package/dist/components/index.cjs +135 -141
  77. package/dist/components/index.cjs.map +1 -1
  78. package/dist/components/index.js +11 -17
  79. package/dist/components/index.js.map +1 -1
  80. package/dist/components/navigation/index.cjs +3 -3
  81. package/dist/components/navigation/index.js +2 -2
  82. package/dist/components/onboarding-guides/index.cjs +7 -7
  83. package/dist/components/onboarding-guides/index.js +6 -6
  84. package/dist/components/related-content/index.cjs +5 -5
  85. package/dist/components/related-content/index.js +4 -4
  86. package/dist/components/tickets/index.cjs +6 -6
  87. package/dist/components/tickets/index.js +5 -5
  88. package/dist/components/ui/index.cjs +3 -9
  89. package/dist/components/ui/index.cjs.map +1 -1
  90. package/dist/components/ui/index.js +2 -8
  91. package/dist/components/ui/marquee-wall.d.ts +8 -1
  92. package/dist/components/ui/marquee-wall.d.ts.map +1 -1
  93. package/dist/hooks/index.cjs +2 -2
  94. package/dist/hooks/index.cjs.map +1 -1
  95. package/dist/hooks/index.d.ts +0 -1
  96. package/dist/hooks/index.d.ts.map +1 -1
  97. package/dist/hooks/index.js +3 -3
  98. package/dist/hooks/ui/index.d.ts +1 -0
  99. package/dist/hooks/ui/index.d.ts.map +1 -1
  100. package/dist/hooks/ui/use-reset-on-page-hidden.d.ts +19 -0
  101. package/dist/hooks/ui/use-reset-on-page-hidden.d.ts.map +1 -0
  102. package/dist/hooks/use-near-viewport.d.ts +3 -1
  103. package/dist/hooks/use-near-viewport.d.ts.map +1 -1
  104. package/dist/index.cjs +3 -9
  105. package/dist/index.cjs.map +1 -1
  106. package/dist/index.js +4 -10
  107. package/package.json +1 -1
  108. package/src/components/chat/approval-request-message.tsx +1 -1
  109. package/src/components/chat/chat-context-picker.tsx +1 -1
  110. package/src/components/chat/chat-input.tsx +1 -1
  111. package/src/components/chat/chat-message-list.tsx +47 -0
  112. package/src/components/chat/chat-message-skeleton.tsx +1 -1
  113. package/src/components/chat/chat-sidebar-skeleton.tsx +1 -1
  114. package/src/components/chat/chat-sidebar.tsx +2 -2
  115. package/src/components/chat/chat-ticket-list.tsx +1 -1
  116. package/src/components/chat/context-items-list.tsx +1 -1
  117. package/src/components/chat/embeddable-chat.tsx +46 -6
  118. package/src/components/chat/guide-welcome.tsx +24 -14
  119. package/src/components/chat/index.ts +0 -2
  120. package/src/components/chat/mingo-chat-history.tsx +1 -1
  121. package/src/components/chat/mingo-welcome.tsx +42 -27
  122. package/src/components/chat/quick-action-chip.tsx +77 -0
  123. package/src/components/chat/quick-action-marquee.tsx +1 -2
  124. package/src/components/chat/quick-action-wall.tsx +13 -4
  125. package/src/components/chat/slash-command-suggestions.tsx +1 -1
  126. package/src/components/chat/tool-call-blocks.tsx +1 -1
  127. package/src/components/chat/types/component.types.ts +17 -15
  128. package/src/components/features/cards-strip.tsx +16 -0
  129. package/src/components/ui/marquee-wall.tsx +160 -10
  130. package/src/hooks/.index.md +0 -1
  131. package/src/hooks/index.ts +0 -1
  132. package/src/hooks/ui/index.ts +1 -0
  133. package/src/hooks/ui/use-reset-on-page-hidden.ts +32 -0
  134. package/src/hooks/use-near-viewport.ts +36 -12
  135. package/src/stories/ChatContainer.stories.tsx +15 -12
  136. package/src/stories/QuickActionWall.stories.tsx +1 -2
  137. package/dist/chunk-72VDY6MM.cjs.map +0 -1
  138. package/dist/chunk-MLFFBQ5B.js.map +0 -1
  139. package/dist/chunk-QF3NQW7C.cjs.map +0 -1
  140. package/dist/chunk-UOTHXOCS.js.map +0 -1
  141. package/dist/components/chat/chat-quick-action-row.d.ts +0 -84
  142. package/dist/components/chat/chat-quick-action-row.d.ts.map +0 -1
  143. package/dist/components/chat/chat-quick-action.d.ts +0 -11
  144. package/dist/components/chat/chat-quick-action.d.ts.map +0 -1
  145. package/dist/hooks/use-quick-action-hint.d.ts +0 -25
  146. package/dist/hooks/use-quick-action-hint.d.ts.map +0 -1
  147. package/src/components/chat/.chat-quick-action.md +0 -46
  148. package/src/components/chat/chat-quick-action-row.tsx +0 -282
  149. package/src/components/chat/chat-quick-action.tsx +0 -59
  150. package/src/hooks/.use-quick-action-hint.md +0 -43
  151. package/src/hooks/use-quick-action-hint.ts +0 -126
  152. /package/dist/{chunk-UGFB5EAW.js.map → chunk-2I3GN7WW.js.map} +0 -0
  153. /package/dist/{chunk-YJ7SPS7I.js.map → chunk-DAEKUR3J.js.map} +0 -0
  154. /package/dist/{chunk-PT233TJV.js.map → chunk-DU6R7XNU.js.map} +0 -0
  155. /package/dist/{chunk-OGKDOG5D.js.map → chunk-F3IBBAKV.js.map} +0 -0
  156. /package/dist/{chunk-EQWE64RJ.js.map → chunk-ILUX3DXS.js.map} +0 -0
  157. /package/dist/{chunk-TMST2WFZ.js.map → chunk-JHIT44TA.js.map} +0 -0
  158. /package/dist/{chunk-MX2ITMKK.js.map → chunk-LAFCXJVT.js.map} +0 -0
  159. /package/dist/{chunk-55ISAJFV.js.map → chunk-LMBPJAQ2.js.map} +0 -0
  160. /package/dist/{chunk-GOWE4WSU.js.map → chunk-U27TXTAK.js.map} +0 -0
  161. /package/dist/{chunk-AJAF456I.js.map → chunk-UXKSOJR7.js.map} +0 -0
  162. /package/dist/{chunk-YED55PQY.js.map → chunk-YLTY4Z4B.js.map} +0 -0
  163. /package/dist/{chunk-JUNKHNWE.js.map → chunk-ZQHGSR3H.js.map} +0 -0
@@ -96,6 +96,8 @@ const ChatMessageList = forwardRef<HTMLDivElement, ChatMessageListProps>(
96
96
  isLoading = false,
97
97
  isTyping = false,
98
98
  autoScroll = true,
99
+ overscrollContain = true,
100
+ pinBottom = false,
99
101
  showAvatars = true,
100
102
  fullWidth = false,
101
103
  contentClassName,
@@ -254,6 +256,42 @@ const ChatMessageList = forwardRef<HTMLDivElement, ChatMessageListProps>(
254
256
  }
255
257
  }, [autoScroll, messages, dialogId, scrollToBottom, contentRef])
256
258
 
259
+ // ---- Passive-demo hard pin (pinBottom) ---------------------------
260
+ // Scripted in-page replays (the Fae/Mingo demos) have no human at the
261
+ // keyboard, so the newest streamed content must ALWAYS sit at the
262
+ // bottom. `useStickToBottom`'s smart follow only tracks while the
263
+ // viewer is "at bottom", which is unreliable for an assistant-only
264
+ // stream from a cold, non-bottom mount (the exact bug where the last
265
+ // reply landed below the fold). When `pinBottom` is set we snap the
266
+ // scroller to its full height — the SAME mechanism for BOTH demo
267
+ // surfaces, so Fae and Mingo behave 1:1.
268
+ //
269
+ // CRUCIAL: only re-pin when the content HEIGHT actually changed (a
270
+ // streamed token appended, or the conversation swapped/reset). A parent
271
+ // that recreates props on every render — EmbeddableChat in previewMode
272
+ // rebuilds its scripted state each render, churning the `messages` array
273
+ // identity — would otherwise fire this effect on every re-render and snap
274
+ // the scroller back to the bottom, trapping the visitor and blocking
275
+ // internal scroll (Mingo couldn't scroll while Fae, with stable memoized
276
+ // props, could). Skipping the pin when the height is UNCHANGED means an
277
+ // idle re-render leaves the scroller alone, so once the stream settles the
278
+ // visitor can scroll up in BOTH surfaces; a real growth (streaming) or a
279
+ // shrink (a new conversation) still re-pins to the fresh bottom.
280
+ // `useLayoutEffect` so the write lands before paint (no visible jump).
281
+ // Pair with `autoScroll={false}` so the library's spring doesn't fight.
282
+ const pinPrevHeightRef = useRef(0)
283
+ useLayoutEffect(() => {
284
+ if (!pinBottom) {
285
+ pinPrevHeightRef.current = 0
286
+ return
287
+ }
288
+ const el = scrollRef.current
289
+ if (!el) return
290
+ if (el.scrollHeight === pinPrevHeightRef.current) return
291
+ pinPrevHeightRef.current = el.scrollHeight
292
+ el.scrollTop = el.scrollHeight
293
+ }, [pinBottom, messages, isTyping, pendingApprovals, scrollRef])
294
+
257
295
  // ---- Prepend anchoring (load-older) ------------------------------
258
296
  // The library doesn't preserve user position when content grows ABOVE
259
297
  // the viewport. We do: from the pre-load geometry snapshot (taken in the
@@ -495,6 +533,15 @@ const ChatMessageList = forwardRef<HTMLDivElement, ChatMessageListProps>(
495
533
  ref={setScrollRef}
496
534
  className={cn(
497
535
  "flex h-full w-full flex-col overflow-y-auto overflow-x-hidden flex-1",
536
+ // `overscroll-contain` (default ON, opt-out via `overscrollContain={false}`):
537
+ // reaching the top/bottom of the thread must NOT chain the wheel/
538
+ // touch scroll to the page behind the chat — e.g. the company-hub
539
+ // deck (native body scroll + sticky slide panels) would otherwise
540
+ // advance slides while you scroll the chat (fixed in #1501; kept as
541
+ // the prop default here). Passive in-page DEMO chats disable it so
542
+ // the surrounding page keeps scrolling normally when the pointer is
543
+ // over the (non-interactive) thread.
544
+ overscrollContain && "overscroll-contain",
498
545
  "scrollbar-thin scrollbar-track-transparent scrollbar-thumb-ods-border/30 hover:scrollbar-thumb-ods-text-secondary/30",
499
546
  className,
500
547
  )}
@@ -110,7 +110,7 @@ export function ChatMessageListSkeleton({
110
110
  "flex h-full w-full flex-col flex-1",
111
111
  fill
112
112
  ? "overflow-hidden"
113
- : "overflow-y-auto overflow-x-hidden [scroll-behavior:smooth] scrollbar-thin scrollbar-track-transparent scrollbar-thumb-ods-border/30 hover:scrollbar-thumb-ods-text-secondary/30",
113
+ : "overflow-y-auto overflow-x-hidden overscroll-contain [scroll-behavior:smooth] scrollbar-thin scrollbar-track-transparent scrollbar-thumb-ods-border/30 hover:scrollbar-thumb-ods-text-secondary/30",
114
114
  className,
115
115
  )}
116
116
  >
@@ -75,7 +75,7 @@ const ChatSidebarSkeleton = React.forwardRef<HTMLDivElement, ChatSidebarSkeleton
75
75
 
76
76
  {/* Dialogs List Skeleton */}
77
77
  <div className="flex-1 flex flex-col min-h-0">
78
- <div className="flex-1 overflow-y-auto min-h-0">
78
+ <div className="flex-1 overflow-y-auto overscroll-contain min-h-0">
79
79
  <div className="flex flex-col">
80
80
  {Array.from({ length: dialogCount }).map((_, index) => (
81
81
  <DialogListItemSkeleton key={index} />
@@ -154,12 +154,12 @@ const ChatSidebar = forwardRef<HTMLDivElement, ChatSidebarProps>(
154
154
  </div>
155
155
  ) : children ? (
156
156
  /* Custom children content */
157
- <div className="flex-1 overflow-y-auto">
157
+ <div className="flex-1 overflow-y-auto overscroll-contain">
158
158
  {children}
159
159
  </div>
160
160
  ) : (
161
161
  /* Dialogs List */
162
- <div ref={scrollContainerRef} className="flex-1 overflow-y-auto min-h-0">
162
+ <div ref={scrollContainerRef} className="flex-1 overflow-y-auto overscroll-contain min-h-0">
163
163
  <div className="flex flex-col">
164
164
  {dialogs.map((dialog) => (
165
165
  <DialogListItem
@@ -46,7 +46,7 @@ const ChatTicketList = React.forwardRef<HTMLDivElement, ChatTicketListProps>(
46
46
  !fadeBottom && "border-b rounded-b-md",
47
47
  )}
48
48
  >
49
- <div ref={scrollRef} className="overflow-y-auto h-full" onScroll={updateFade}>
49
+ <div ref={scrollRef} className="overflow-y-auto overscroll-contain h-full" onScroll={updateFade}>
50
50
  {tickets.map((ticket) => (
51
51
  <ChatTicketItem
52
52
  key={ticket.id}
@@ -148,7 +148,7 @@ export function ContextItemsList({
148
148
  // Cap to 340px but never exceed ~half the viewport, so on short screens the
149
149
  // results list (inside the bottom-anchored picker popover) still fits and
150
150
  // scrolls instead of overflowing past the top edge.
151
- className={cn('max-h-[min(340px,45vh)] overflow-y-auto', className)}
151
+ className={cn('max-h-[min(340px,45vh)] overflow-y-auto overscroll-contain', className)}
152
152
  >
153
153
  {items.map(item => {
154
154
  const selected = selectedKeys.has(itemKey(item))
@@ -112,6 +112,18 @@ import { resolveIcon } from './utils/icon-library'
112
112
  import { getSourceIconName } from './utils/source-icons'
113
113
  import { formatSingularLookupInvocation } from './utils/slash-dispatch-utils'
114
114
 
115
+ // Desktop drawer opens at this fraction of the viewport width (clamped to the
116
+ // Drawer's own min/max). The user can still resize (persisted per DRAWER_WIDTH_KEY).
117
+ const DRAWER_DEFAULT_WIDTH_RATIO = 0.5
118
+ // Bump the suffix whenever the default policy changes so previously-persisted
119
+ // widths (e.g. the old fixed 750px / earlier 30% default) reset on next open.
120
+ const DRAWER_WIDTH_KEY = 'mingo-chat-width-v3'
121
+ const DRAWER_DEFAULT_WIDTH_PX = 750 // SSR fallback before the viewport is known
122
+ function drawerDefaultWidth(): number {
123
+ if (typeof window === 'undefined') return DRAWER_DEFAULT_WIDTH_PX
124
+ return Math.round(window.innerWidth * DRAWER_DEFAULT_WIDTH_RATIO)
125
+ }
126
+
115
127
 
116
128
  // =============================================================================
117
129
  // Types
@@ -806,7 +818,7 @@ function SourceChips({
806
818
  Sources
807
819
  </span>
808
820
  <div
809
- className={`flex flex-wrap gap-1.5 ${expanded ? 'max-h-[200px] overflow-y-auto' : ''}`}
821
+ className={`flex flex-wrap gap-1.5 ${expanded ? 'max-h-[200px] overflow-y-auto overscroll-contain' : ''}`}
810
822
  >
811
823
  {cited.map((src) => (
812
824
  <SourceChip
@@ -2252,7 +2264,19 @@ function EmbeddableChatInner({
2252
2264
  <ChatMessageList
2253
2265
  messages={messages}
2254
2266
  isTyping={chatLoading}
2255
- autoScroll={true}
2267
+ // Real drawer: the library's smart follow. Passive in-page
2268
+ // demo (previewMode): deterministic hard pin instead — a
2269
+ // scripted assistant-only stream from a cold mount never
2270
+ // satisfies the library's "at bottom" gate, so the reply
2271
+ // landed below the fold. `pinBottom` snaps to bottom on
2272
+ // every frame; identical mechanism to the Fae demo box, so
2273
+ // both surfaces behave 1:1.
2274
+ autoScroll={!previewMode}
2275
+ pinBottom={previewMode}
2276
+ // Passive in-page demos (previewMode) let the surrounding
2277
+ // page scroll over the thread; the real drawer keeps
2278
+ // containment (deck slide-scroll fix).
2279
+ overscrollContain={!previewMode}
2256
2280
  assistantType="mingo"
2257
2281
  assistantIcon={mingoAssistantIcon}
2258
2282
  renderEntityCard={renderEntityCard}
@@ -2260,11 +2284,27 @@ function EmbeddableChatInner({
2260
2284
  renderContextItem={renderContextItem}
2261
2285
  renderMention={renderMention}
2262
2286
  NavLinkAnchor={NavLinkAnchorViaRuntime}
2263
- // Hide the message-list scrollbar for the Mingo panel
2287
+ // Real Mingo drawer: hide the message-list scrollbar
2264
2288
  // (scroll stays functional). Scoped here via `className`
2265
2289
  // instead of `ChatMessageList` itself, so other list
2266
2290
  // consumers (host chat, tickets) keep their thin bar.
2267
- className="flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
2291
+ //
2292
+ // `previewMode` (the passive in-page demo) instead:
2293
+ // • KEEP the default thin scrollbar — the "elevator" —
2294
+ // so the Mingo demo's scroll controls match the Fae
2295
+ // demo box (which renders the default ChatMessageList
2296
+ // scrollbar) 1:1.
2297
+ // • Re-enable pointer events on the scroller: previewMode
2298
+ // puts `pointer-events-none` on the whole panel (line
2299
+ // ~1981) so the demo doesn't trap clicks, but that also
2300
+ // killed wheel/touch scroll on the thread (the Mingo
2301
+ // embed couldn't scroll while the Fae box could). Only
2302
+ // the scroller re-enables; composer + chrome stay inert.
2303
+ className={
2304
+ previewMode
2305
+ ? 'flex-1 pointer-events-auto'
2306
+ : 'flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden'
2307
+ }
2268
2308
  // No inner `px`/`pb`: the panel wrapper already pads with
2269
2309
  // `p-[var(--spacing-system-m)]`. The default content class
2270
2310
  // adds `px-[var(--spacing-system-m)]` + `pb-…xs`, which
@@ -2515,8 +2555,8 @@ function EmbeddableChatInner({
2515
2555
  resizable
2516
2556
  minSize={480}
2517
2557
  maxSize={1600}
2518
- defaultSize={750}
2519
- storageKey="mingo-chat-width"
2558
+ defaultSize={drawerDefaultWidth()}
2559
+ storageKey={DRAWER_WIDTH_KEY}
2520
2560
  resizeAriaLabel="Resize chat panel"
2521
2561
  overlayClassName="mingo-chat-overlay"
2522
2562
  aria-describedby={undefined}
@@ -5,7 +5,7 @@ import { cn } from '../../utils/cn'
5
5
  import { MingoIcon } from '../icons'
6
6
  import { ScrollFadeOverlay, useScrollFade } from '../ui/scroll-fade'
7
7
  import { Skeleton } from '../ui/skeleton'
8
- import { ChatQuickActionRow } from './chat-quick-action-row'
8
+ import { QuickActionWall } from './quick-action-wall'
9
9
  import { EntityIcon } from '../icon-display'
10
10
  import { accentFromIdentityIcon, type QuickActionAccent } from './quick-action-chip'
11
11
 
@@ -103,9 +103,11 @@ export function GuideWelcome({
103
103
  // direction. (Same behaviour as MingoWelcome.)
104
104
  const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = useScrollFade<HTMLDivElement>()
105
105
 
106
- // Map to the shared `ChatQuickActionRow` chip shape. In `wrap` mode every chip
107
- // renders (no overflow), and `onHoverStart`/`onHoverEnd` drive the composer
108
- // prompt preview.
106
+ // Map to the shared {@link QuickActionChip} shape consumed by the unified
107
+ // `QuickActionWall` — the SAME chip wall the website hero + deck render, so
108
+ // the chat's quick actions read as "the work the agent does". Every chip
109
+ // stays interactive (clone copies included); `onHoverStart`/`onHoverEnd` drive
110
+ // the composer prompt preview and `onSelect` sends.
109
111
  const chipItems = React.useMemo(
110
112
  () =>
111
113
  quickActions.map((action) => ({
@@ -142,7 +144,7 @@ export function GuideWelcome({
142
144
  <div
143
145
  ref={scrollRef}
144
146
  onScroll={updateScrollFade}
145
- className="flex flex-1 min-h-0 flex-col gap-[var(--spacing-system-m)] overflow-y-auto"
147
+ className="flex flex-1 min-h-0 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain"
146
148
  >
147
149
  {/* Greeting grows to fill (`flex-1`) so the slash-command list stays
148
150
  anchored below it — but its content is anchored at the TOP of the
@@ -192,17 +194,25 @@ export function GuideWelcome({
192
194
  <ScrollFadeOverlay edge="bottom" visible={fadeBottom} className="h-12" />
193
195
  </div>
194
196
 
195
- {/* Pinned quick-action chips above the composer — the shared
196
- `ChatQuickActionRow` in `wrap` mode: ALL chips render (no "⋯" overflow
197
- collapse) so every action is directly hoverable; hover/focus previews
198
- the action's full prompt in the composer, click sends it. Capped height
199
- + internal scroll (scrollbar-hide: scrollable, bar never shows) so a
200
- long list can't squeeze the composer on short screens. */}
197
+ {/* Pinned quick-action wall above the composer — the shared
198
+ {@link QuickActionWall} in BRICK mode (the SAME "wall of the work
199
+ agents do" the website hero renders): up to 4 stacked row marquees,
200
+ chips packed edge-to-edge, drifting under left/right edge fades so a
201
+ long agent action set gets "reach" without squeezing the composer.
202
+ Chips stay directly hoverable — hover/focus previews the action's full
203
+ prompt in the composer, click sends it — and `pauseOnHover` freezes
204
+ the hovered row so a moving chip never dodges a click. */}
201
205
  {quickActions.length > 0 && (
202
- <ChatQuickActionRow
203
- wrap
206
+ <QuickActionWall
204
207
  chips={chipItems}
205
- className="max-h-28 overflow-y-auto scrollbar-hide"
208
+ rows={4}
209
+ pauseOnHover
210
+ dragScroll
211
+ fade={['left', 'right']}
212
+ fadeSize={{ left: 32 }}
213
+ fadeColor="var(--color-bg)"
214
+ copyGap="var(--spacing-system-xxs)"
215
+ className="max-h-44 shrink-0"
206
216
  />
207
217
  )}
208
218
  </div>
@@ -15,8 +15,6 @@ export * from './chat-message-list'
15
15
  export * from './chat-message-row'
16
16
  export * from './chat-message-skeleton'
17
17
 
18
- export * from './chat-quick-action'
19
- export * from './chat-quick-action-row'
20
18
  export * from './quick-action-chip'
21
19
  export * from './quick-action-marquee'
22
20
  export * from './quick-action-wall'
@@ -341,7 +341,7 @@ export function MingoChatHistory({
341
341
  <div
342
342
  ref={scrollRef}
343
343
  onScroll={updateFade}
344
- className="flex flex-1 min-h-0 flex-col gap-[var(--spacing-system-m)] overflow-y-auto"
344
+ className="flex flex-1 min-h-0 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain"
345
345
  >
346
346
  {noSearchResults ? (
347
347
  // No search matches — same centred glyph + title + caption layout as
@@ -4,8 +4,8 @@ import * as React from 'react'
4
4
  import { cn } from '../../utils/cn'
5
5
  import { MingoIcon } from '../icons'
6
6
  import { MingoChatHistorySkeleton } from './mingo-chat-history'
7
- import { ChatQuickActionRow } from './chat-quick-action-row'
8
7
  import { QuickActionChipButton } from './quick-action-chip'
8
+ import { QuickActionWall } from './quick-action-wall'
9
9
  import { Button } from '../ui/button'
10
10
  import { ScrollFadeOverlay, useScrollFade } from '../ui/scroll-fade'
11
11
  import { XmarkIcon } from '../icons-v2-generated/signs-and-symbols/xmark-icon'
@@ -242,7 +242,7 @@ export function MingoWelcome({
242
242
  <div
243
243
  ref={scrollRef}
244
244
  onScroll={updateScrollFade}
245
- className="flex flex-1 min-h-0 flex-col gap-[var(--spacing-system-m)] overflow-y-auto"
245
+ className="flex flex-1 min-h-0 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain"
246
246
  >
247
247
  {/* Greeting — grows to fill (`flex-1`) so it centres vertically,
248
248
  keeping the grid anchored at the bottom of the scroll area. Default
@@ -307,32 +307,47 @@ export function MingoWelcome({
307
307
  </div>
308
308
  )}
309
309
 
310
- {/* Quick-action chips. "Start Guide Chat" stays pinned (the `leading`
311
- slot — never collapses); any caller `quickActions` fit inline and the
312
- rest collapse under a "⋯" overflow menu, width-measured like the
313
- Autocomplete tag row. */}
310
+ {/* Quick actions. "Start Guide Chat" stays pinned above the wall — it's
311
+ the primary mode switch and must never scroll out of reach. The rest
312
+ render in the shared {@link QuickActionWall} in BRICK mode (the SAME
313
+ chip wall the website hero uses): 2 stacked row marquees under left/
314
+ right edge fades, so a long agent action set gets "reach" without
315
+ squeezing the composer. `pauseOnHover` freezes the hovered row so a
316
+ moving chip never dodges a click; hover/focus previews the action's
317
+ full prompt in the composer. */}
314
318
  {(onStartGuideChat || (quickActions && quickActions.length > 0)) && (
315
- <ChatQuickActionRow
316
- leading={
317
- onStartGuideChat && (
318
- <QuickActionChipButton
319
- label="Start Guide Chat"
320
- icon={<CompassIcon size={16} />}
321
- variant={hasExistingChats ? 'outline' : 'primary'}
322
- onSelect={onStartGuideChat}
323
- />
324
- )
325
- }
326
- chips={(quickActions ?? []).map((action) => ({
327
- id: action.id,
328
- label: action.label,
329
- icon: action.icon,
330
- variant: action.variant,
331
- onSelect: action.onClick,
332
- onHoverStart: () => onQuickActionHover?.(action),
333
- onHoverEnd: () => onQuickActionHoverEnd?.(),
334
- }))}
335
- />
319
+ <div className="flex shrink-0 flex-col gap-[var(--spacing-system-xsf)]">
320
+ {onStartGuideChat && (
321
+ <QuickActionChipButton
322
+ label="Start Guide Chat"
323
+ icon={<CompassIcon size={16} />}
324
+ variant={hasExistingChats ? 'outline' : 'primary'}
325
+ onSelect={onStartGuideChat}
326
+ className="self-start"
327
+ />
328
+ )}
329
+ {quickActions && quickActions.length > 0 && (
330
+ <QuickActionWall
331
+ chips={quickActions.map((action) => ({
332
+ id: action.id,
333
+ label: action.label,
334
+ icon: action.icon,
335
+ variant: action.variant,
336
+ onSelect: action.onClick,
337
+ onHoverStart: () => onQuickActionHover?.(action),
338
+ onHoverEnd: () => onQuickActionHoverEnd?.(),
339
+ }))}
340
+ rows={4}
341
+ pauseOnHover
342
+ dragScroll
343
+ fade={['left', 'right']}
344
+ fadeSize={{ left: 32 }}
345
+ fadeColor="var(--color-bg)"
346
+ copyGap="var(--spacing-system-xxs)"
347
+ className="max-h-44 shrink-0"
348
+ />
349
+ )}
350
+ </div>
336
351
  )}
337
352
  </div>
338
353
  )}
@@ -299,3 +299,80 @@ export function QuickActionChipButton({
299
299
  </button>
300
300
  )
301
301
  }
302
+
303
+ // =============================================================================
304
+ // Chip data shape + data→button mapper
305
+ // =============================================================================
306
+
307
+ /**
308
+ * THE quick-action chip DATA shape — one declarative description of a chip that
309
+ * every quick-action surface builds (chat empty states, {@link QuickActionWall},
310
+ * {@link QuickActionMarquee}). Maps 1:1 to {@link QuickActionChipButton} props
311
+ * via {@link QuickActionChipFromData}, so adding a chip capability means editing
312
+ * exactly these two.
313
+ */
314
+ export interface QuickActionChip {
315
+ /** Stable React key + menu-item id. */
316
+ id: string
317
+ label: string
318
+ /** Pre-rendered node OR a declarative {@link QuickActionIconSpec} (resolved
319
+ * via the unified `<EntityIcon>` path). */
320
+ icon?: React.ReactNode | QuickActionIconSpec
321
+ /** Caller-supplied {@link QuickActionThemeSpec} (accent + optional
322
+ * lozenge) — per-chip so mixed walls (interleaved IT/SEC streams) work.
323
+ * The lib ships no theme registry; consumers define their own specs. */
324
+ theme?: QuickActionThemeSpec
325
+ /** Classification affix at the label's leading edge; `true` = the theme's. */
326
+ lozenge?: QuickActionChipLozenge | boolean
327
+ /** `'primary'` = accent (yellow) chip, `'outline'` = bordered chip (default). */
328
+ variant?: 'primary' | 'outline'
329
+ /** Active single-select state — renders the accented `selected` skin
330
+ * (overrides `variant`). */
331
+ selected?: boolean
332
+ /** Accent for the `selected` skin (`'cyan'` = cyan twin, else pink). */
333
+ selectedAccent?: QuickActionAccent
334
+ onSelect?: () => void
335
+ /** Pointer/keyboard focus enters the chip — e.g. preview the full prompt in
336
+ * the composer. */
337
+ onHoverStart?: () => void
338
+ /** Pointer/keyboard focus leaves the chip — e.g. restore the composer. */
339
+ onHoverEnd?: () => void
340
+ }
341
+
342
+ /**
343
+ * THE {@link QuickActionChip}-data → {@link QuickActionChipButton} mapper —
344
+ * one prop-plumbing spelling shared by every chat empty state, `QuickActionWall`,
345
+ * and `QuickActionMarquee` (adding a chip field means editing exactly here).
346
+ * `defaultTheme`/`defaultLozenge` fill gaps for wall-level theming;
347
+ * `interactive={false}` renders the decorative Tag form (loop-clone copies).
348
+ */
349
+ export function QuickActionChipFromData({
350
+ chip,
351
+ defaultTheme,
352
+ defaultLozenge,
353
+ interactive = true,
354
+ className,
355
+ }: {
356
+ chip: QuickActionChip
357
+ defaultTheme?: QuickActionThemeSpec
358
+ defaultLozenge?: boolean
359
+ interactive?: boolean
360
+ className?: string
361
+ }) {
362
+ return (
363
+ <QuickActionChipButton
364
+ label={chip.label}
365
+ icon={chip.icon}
366
+ theme={chip.theme ?? defaultTheme}
367
+ lozenge={chip.lozenge ?? (defaultLozenge || undefined)}
368
+ variant={chip.variant ?? 'outline'}
369
+ selected={chip.selected}
370
+ selectedAccent={chip.selectedAccent}
371
+ onSelect={chip.onSelect}
372
+ onHoverStart={chip.onHoverStart}
373
+ onHoverEnd={chip.onHoverEnd}
374
+ interactive={interactive}
375
+ className={className}
376
+ />
377
+ )
378
+ }
@@ -2,8 +2,7 @@
2
2
 
3
3
  import * as React from 'react'
4
4
  import type { MarqueeSyncController } from '../ui/marquee-wall'
5
- import type { QuickActionIconSpec } from './quick-action-chip'
6
- import type { QuickActionChip } from './chat-quick-action-row'
5
+ import type { QuickActionIconSpec, QuickActionChip } from './quick-action-chip'
7
6
  import { QuickActionWall } from './quick-action-wall'
8
7
 
9
8
  // =============================================================================
@@ -9,10 +9,12 @@ import {
9
9
  type MarqueeWallFadeEdge,
10
10
  type MarqueeWallProps,
11
11
  } from '../ui/marquee-wall'
12
- import { QuickActionChipSkeleton } from './quick-action-chip'
13
- import type { QuickActionThemeSpec } from './quick-action-chip'
14
- import { QuickActionChipFromData } from './chat-quick-action-row'
15
- import type { QuickActionChip } from './chat-quick-action-row'
12
+ import {
13
+ QuickActionChipSkeleton,
14
+ QuickActionChipFromData,
15
+ type QuickActionThemeSpec,
16
+ type QuickActionChip,
17
+ } from './quick-action-chip'
16
18
 
17
19
  // =============================================================================
18
20
  // Shared wall constants
@@ -69,6 +71,10 @@ export interface QuickActionWallProps {
69
71
  /** Marquee on/off (auto-off when content fits / reduced motion / loading). */
70
72
  animate?: boolean
71
73
  pauseOnHover?: boolean
74
+ /** Opt-in manual drag + wheel scroll (forwarded to {@link MarqueeWall}) — the
75
+ * auto-marquee pauses while the user drags/wheels and resumes from there.
76
+ * Enabled on the embeddable-chat quick-action walls. */
77
+ dragScroll?: boolean
72
78
  fade?: MarqueeWallFadeEdge | ReadonlyArray<MarqueeWallFadeEdge>
73
79
  /** Color behind the wall — the fades blend into it. */
74
80
  fadeColor?: string
@@ -137,6 +143,7 @@ export function QuickActionWall({
137
143
  speed,
138
144
  animate = true,
139
145
  pauseOnHover,
146
+ dragScroll = false,
140
147
  fade,
141
148
  fadeColor,
142
149
  fadeSize,
@@ -204,6 +211,7 @@ export function QuickActionWall({
204
211
  speed={speed}
205
212
  animate={animate && !loading}
206
213
  pauseOnHover={pauseOnHover}
214
+ dragScroll={dragScroll}
207
215
  copyGap={gap}
208
216
  contentClassName={cn('flex items-center', contentClassName)}
209
217
  contentStyle={{ gap }}
@@ -227,6 +235,7 @@ export function QuickActionWall({
227
235
  // Skeleton walls stay put — the marquee starts when real chips land.
228
236
  animate={animate && !loading}
229
237
  pauseOnHover={pauseOnHover}
238
+ dragScroll={dragScroll}
230
239
  fade={fade}
231
240
  fadeColor={fadeColor}
232
241
  fadeSize={fadeSize}
@@ -79,7 +79,7 @@ export function SlashCommandSuggestions({
79
79
  role="menu"
80
80
  aria-label="Slash command suggestions"
81
81
  className={cn(
82
- 'absolute bottom-full mb-2 left-0 right-0 z-50 max-h-96 overflow-y-auto',
82
+ 'absolute bottom-full mb-2 left-0 right-0 z-50 max-h-96 overflow-y-auto overscroll-contain',
83
83
  'rounded-md border border-ods-border bg-ods-card shadow-lg',
84
84
  className,
85
85
  )}
@@ -10,7 +10,7 @@ import { formatToolArgValue, formatToolResult } from "./utils/tool-call-helpers"
10
10
  * scale, no transform) — the token this file was originally flagged for.
11
11
  */
12
12
  const CODE_PRE_CLASS =
13
- "bg-ods-bg border border-ods-border rounded-md p-[var(--spacing-system-sf)] w-full max-h-64 overflow-auto text-code text-ods-text-primary whitespace-pre"
13
+ "bg-ods-bg border border-ods-border rounded-md p-[var(--spacing-system-sf)] w-full max-h-64 overflow-auto overscroll-contain text-code text-ods-text-primary whitespace-pre"
14
14
 
15
15
  /**
16
16
  * Single arg row: inline `key: value` or labeled `<pre>` block.
@@ -222,6 +222,23 @@ export interface ChatMessageListProps extends HTMLAttributes<HTMLDivElement> {
222
222
  typingMessage?: string
223
223
  smoothScroll?: boolean
224
224
  autoScroll?: boolean
225
+ /** `overscroll-behavior: contain` on the scroller (default true) — stops
226
+ * wheel/touch scroll from chaining to the page at the thread's edges (the
227
+ * deck / drawer need this). Passive in-page demo chats set `false` so the
228
+ * page keeps scrolling normally over the non-interactive thread. */
229
+ overscrollContain?: boolean
230
+ /** Deterministic stick-to-bottom for PASSIVE scripted replays (the in-page
231
+ * Fae/Mingo demos). Whenever the scroll HEIGHT changes — a streamed token
232
+ * grows the thread, or a new conversation replaces it — the scroller is
233
+ * hard-snapped to its full height, so the newest streamed line is always
234
+ * visible even though no human is at the keyboard. Unlike `autoScroll` (the
235
+ * library's smart follow, which only tracks while the viewer is "at bottom"
236
+ * and is unreliable for an assistant-only stream from a cold, non-bottom
237
+ * mount), this pins on real growth without that gate. A same-height idle
238
+ * re-render does NOT re-pin, so once the stream settles the viewer can freely
239
+ * scroll up. Pair with `autoScroll={false}` so the library's spring doesn't
240
+ * run in parallel. */
241
+ pinBottom?: boolean
225
242
  showAvatars?: boolean
226
243
  /** Same `fullWidth` semantics as `ChatHeaderProps.fullWidth` — drops
227
244
  * the inner content wrapper's `max-w-ods-content-narrow` so messages
@@ -582,21 +599,6 @@ export interface ModelUsageBreakdown {
582
599
  haikuSummarizer?: { input: number; output: number }
583
600
  }
584
601
 
585
- // ========== Chat Quick Action Props ==========
586
-
587
- export interface ChatQuickActionProps extends HTMLAttributes<HTMLButtonElement> {
588
- text: string
589
- icon?: React.ReactNode
590
- onAction?: (text: string) => void
591
- onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void
592
- /** Whether this action should show the hint animation */
593
- isHintActive?: boolean
594
- /** Callback when user clicks the action - stops hint */
595
- onHintInteraction?: () => void
596
- disabled?: boolean
597
- loading?: boolean
598
- }
599
-
600
602
  // ========== Dialog Item Props ==========
601
603
 
602
604
  export interface DialogItem {
@@ -45,6 +45,7 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
45
45
  import { cn } from '../../utils/cn';
46
46
  import { NEAR_VIEWPORT_ROOT_MARGIN } from '../../hooks/use-near-viewport';
47
47
  import { useMarqueeEngine } from '../../hooks/ui/use-marquee-engine';
48
+ import { useResetOnPageHidden } from '../../hooks/ui/use-reset-on-page-hidden';
48
49
  import { useSuppressCloneFocus } from '../../hooks/ui/use-suppress-clone-focus';
49
50
  import { Button } from '../ui/button';
50
51
  import { SECTION_HEADING_CLASS } from '../layout/page-heading';
@@ -424,6 +425,20 @@ export function CardsStrip<T = unknown>(props: CardsStripProps<T>): React.ReactE
424
425
  const current = activeKeyRef.current;
425
426
  if (current !== null) deactivate(current);
426
427
  }, [deactivate]);
428
+ // Unconditional hover-clear (any pointer type) — the self-heal for a MISSED
429
+ // `pointerleave`. A leave can be swallowed by a tab blur, an interrupted
430
+ // pointer (pointercancel), or an overlay mounting under the cursor, leaving
431
+ // `inside` stuck true so the marquee freezes FOREVER ("gets stuck every once
432
+ // in a while"). Reset it on pointercancel + whenever the tab hides / the
433
+ // window loses focus; the next real hover re-arms it. Can only un-stick.
434
+ const clearHover = useCallback(() => {
435
+ hoverPointerRef.current.inside = false;
436
+ const current = activeKeyRef.current;
437
+ if (current !== null) deactivate(current);
438
+ }, [deactivate]);
439
+ // Shared SSOT self-heal: un-stick the hover flag whenever the tab hides / the
440
+ // window loses focus (a `pointerleave`/`pointercancel` can be swallowed).
441
+ useResetOnPageHidden(clearHover);
427
442
  /** Re-sync hover only when the track actually moved under the pointer.
428
443
  * KNOWN HOT-PATH COST (intentional): while the marquee runs with the
429
444
  * pointer parked over strip whitespace (no card → not paused), scrollLeft
@@ -654,6 +669,7 @@ export function CardsStrip<T = unknown>(props: CardsStripProps<T>): React.ReactE
654
669
  onPointerEnter={onHoverPointerEnter}
655
670
  onPointerMove={onHoverPointerMove}
656
671
  onPointerLeave={onHoverPointerLeave}
672
+ onPointerCancel={clearHover}
657
673
  onScroll={onSeamWarp}
658
674
  >
659
675
  <div ref={trackRef} data-copies={copies} className="flex w-max items-stretch gap-4">