@flamingo-stack/openframe-frontend-core 0.0.828 → 0.0.830

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 (166) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-DU6AF77X.cjs → chunk-2BGLALP5.cjs} +14 -14
  3. package/dist/{chunk-QMQWXGCH.cjs → chunk-56EP4QM2.cjs} +29 -25
  4. package/dist/{chunk-4ZH7RPEA.cjs → chunk-5KSPG3TV.cjs} +388 -388
  5. package/dist/{chunk-BGT6JFMP.cjs → chunk-5LED4QHZ.cjs} +527 -434
  6. package/dist/{chunk-6ZLCEIIC.cjs → chunk-CAGQAMJ6.cjs} +23 -23
  7. package/dist/{chunk-ALRX2VIY.cjs → chunk-D2LXFMZI.cjs} +26 -26
  8. package/dist/{chunk-VAIML6YU.cjs → chunk-DUGOOTER.cjs} +13 -13
  9. package/dist/{chunk-XPF74L76.cjs → chunk-E6W4YDPS.cjs} +2 -2
  10. package/dist/{chunk-UULSSD56.cjs → chunk-FFFN4IY2.cjs} +5 -5
  11. package/dist/{chunk-UWGPYAB3.cjs → chunk-HYCMMECU.cjs} +51 -51
  12. package/dist/{chunk-DR4P7AEU.cjs → chunk-HYGWRUEM.cjs} +3 -3
  13. package/dist/chunk-IX2E3AN7.cjs +77 -0
  14. package/dist/{chunk-YKUL6JBI.cjs → chunk-M75723HD.cjs} +46 -34
  15. package/dist/{chunk-RPKWEBHC.cjs → chunk-PUXYAHH3.cjs} +3 -3
  16. package/dist/{chunk-3B6ZE4EZ.cjs → chunk-QTLWU6FY.cjs} +5 -5
  17. package/dist/{chunk-3WKQ2GCR.cjs → chunk-RRPID7Z7.cjs} +6 -8
  18. package/dist/{chunk-6SFCI6D4.cjs → chunk-SAW7V7CU.cjs} +14 -16
  19. package/dist/{chunk-B5H7RKFF.cjs → chunk-TUMSVFVS.cjs} +4 -4
  20. package/dist/{chunk-7VC5FVWT.cjs → chunk-ULF4ZOUM.cjs} +65 -65
  21. package/dist/{chunk-ZT7JHN7G.cjs → chunk-WCCE4WF3.cjs} +57 -62
  22. package/dist/{chunk-7PZQ7SHB.cjs → chunk-WWDNLMB7.cjs} +16 -16
  23. package/dist/{chunk-K6X7VP2Y.cjs → chunk-WZYBUJJG.cjs} +43 -43
  24. package/dist/{chunk-SVCTAOJR.cjs → chunk-X425BGXS.cjs} +2 -2
  25. package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
  26. package/dist/{cloud-tenants-LKTWIZNS.cjs → cloud-tenants-4KQQPXPM.cjs} +12 -11
  27. package/dist/components/case-studies/index.cjs +24 -23
  28. package/dist/components/chat/assistant-ask-prompts.d.ts +5 -1
  29. package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
  30. package/dist/components/chat/assistant-ask-prompts.js +3 -1
  31. package/dist/components/chat/embeddable-chat.d.ts +3 -3
  32. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  33. package/dist/components/chat/embeddable-chat.js +22 -14
  34. package/dist/components/chat/guide-welcome.d.ts +14 -16
  35. package/dist/components/chat/guide-welcome.d.ts.map +1 -1
  36. package/dist/components/chat/guide-welcome.js +9 -24
  37. package/dist/components/chat/hooks/use-empty-state-config.d.ts +13 -3
  38. package/dist/components/chat/hooks/use-empty-state-config.d.ts.map +1 -1
  39. package/dist/components/chat/hooks/use-empty-state-config.js +10 -2
  40. package/dist/components/chat/index.cjs +13 -5
  41. package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
  42. package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
  43. package/dist/components/chat/mingo-quick-action-wall.js +105 -19
  44. package/dist/components/chat/mingo-welcome.d.ts +6 -13
  45. package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
  46. package/dist/components/chat/mingo-welcome.js +5 -9
  47. package/dist/components/chat/quick-action-chip.d.ts +8 -2
  48. package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
  49. package/dist/components/chat/quick-action-chip.js +18 -8
  50. package/dist/components/contact/index.cjs +13 -12
  51. package/dist/components/docs/index.cjs +16 -15
  52. package/dist/components/embeds/index.cjs +13 -12
  53. package/dist/components/faq/faq-ask-card.d.ts +2 -13
  54. package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
  55. package/dist/components/faq/faq-ask-card.js +1 -2
  56. package/dist/components/faq/faq-document-page.d.ts +2 -4
  57. package/dist/components/faq/faq-document-page.d.ts.map +1 -1
  58. package/dist/components/faq/faq-document-page.js +0 -2
  59. package/dist/components/faq/faq-section.d.ts +16 -29
  60. package/dist/components/faq/faq-section.d.ts.map +1 -1
  61. package/dist/components/faq/faq-section.js +23 -15
  62. package/dist/components/faq/index.cjs +14 -13
  63. package/dist/components/faq/index.d.ts +1 -1
  64. package/dist/components/faq/index.d.ts.map +1 -1
  65. package/dist/components/faq/index.js +2 -2
  66. package/dist/components/features/index.cjs +12 -11
  67. package/dist/components/help-center-pages/delivery-page.d.ts +1 -8
  68. package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -1
  69. package/dist/components/help-center-pages/delivery-page.js +4 -16
  70. package/dist/components/help-center-pages/download-apps-page.d.ts +1 -8
  71. package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
  72. package/dist/components/help-center-pages/download-apps-page.js +3 -4
  73. package/dist/components/help-center-pages/index.cjs +123 -171
  74. package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +1 -8
  75. package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts.map +1 -1
  76. package/dist/components/help-center-pages/onboarding-guides-catalog-page.js +14 -26
  77. package/dist/components/help-center-pages/product-releases-list-page.d.ts +1 -8
  78. package/dist/components/help-center-pages/product-releases-list-page.d.ts.map +1 -1
  79. package/dist/components/help-center-pages/product-releases-list-page.js +12 -24
  80. package/dist/components/help-center-pages/roadmap-page.d.ts +1 -8
  81. package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -1
  82. package/dist/components/help-center-pages/roadmap-page.js +13 -25
  83. package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
  84. package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
  85. package/dist/components/index.cjs +58 -49
  86. package/dist/components/index.d.ts +1 -0
  87. package/dist/components/index.d.ts.map +1 -1
  88. package/dist/components/index.js +1 -0
  89. package/dist/components/meeting-scheduler/index.cjs +50 -49
  90. package/dist/components/navigation/index.cjs +15 -14
  91. package/dist/components/onboarding-guides/index.cjs +14 -13
  92. package/dist/components/page-topic-label.d.ts +13 -0
  93. package/dist/components/page-topic-label.d.ts.map +1 -0
  94. package/dist/components/page-topic-label.js +20 -0
  95. package/dist/components/product-demo/index.cjs +23 -22
  96. package/dist/components/shared/dev-section/dev-section-page.d.ts +1 -8
  97. package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
  98. package/dist/components/shared/dev-section/dev-section-page.js +2 -3
  99. package/dist/components/shared/legal-document/legal-document-page.d.ts +2 -10
  100. package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
  101. package/dist/components/shared/legal-document/legal-document-page.js +2 -5
  102. package/dist/components/shared/legal-document/use-legal-documents.d.ts +0 -2
  103. package/dist/components/shared/legal-document/use-legal-documents.d.ts.map +1 -1
  104. package/dist/components/shared/legal-document/use-legal-documents.js +0 -1
  105. package/dist/components/tickets/index.cjs +17 -16
  106. package/dist/components/ui/actions-menu.d.ts.map +1 -1
  107. package/dist/components/ui/actions-menu.js +27 -1
  108. package/dist/components/ui/index.cjs +18 -11
  109. package/dist/contexts/endpoints-runtime-context.d.ts +5 -0
  110. package/dist/contexts/endpoints-runtime-context.d.ts.map +1 -1
  111. package/dist/contexts/index.cjs +10 -1
  112. package/dist/contexts/index.d.ts +1 -0
  113. package/dist/contexts/index.d.ts.map +1 -1
  114. package/dist/contexts/index.js +4 -0
  115. package/dist/contexts/page-topics-context.d.ts +30 -0
  116. package/dist/contexts/page-topics-context.d.ts.map +1 -0
  117. package/dist/contexts/page-topics-context.js +27 -0
  118. package/dist/{devices-JWG72ANF.cjs → devices-H6C4NMIY.cjs} +13 -12
  119. package/dist/{embeddable-chat-5UT6UHEO.cjs → embeddable-chat-KUESE7P6.cjs} +107 -97
  120. package/dist/hooks/index.cjs +3 -3
  121. package/dist/index.cjs +33 -15
  122. package/dist/{knowledge-DQXVSHME.cjs → knowledge-O6IBO5Y5.cjs} +13 -12
  123. package/dist/{logs-Z33VBTVX.cjs → logs-Y2UCF24Z.cjs} +19 -18
  124. package/dist/{policies-XE4UMH6Z.cjs → policies-J6O3RLJT.cjs} +16 -15
  125. package/dist/{remote-session-QGFG5WAL.cjs → remote-session-RVTFWSU4.cjs} +5 -5
  126. package/dist/{scripts-MECQG5GG.cjs → scripts-N67MM4T2.cjs} +19 -18
  127. package/dist/{software-update-PCSIA6BP.cjs → software-update-HB7F6KNG.cjs} +16 -15
  128. package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-2K3PBCNW.cjs} +8 -8
  129. package/dist/utils/index.cjs +46 -0
  130. package/dist/utils/index.d.ts +1 -0
  131. package/dist/utils/index.d.ts.map +1 -1
  132. package/dist/utils/index.js +12 -0
  133. package/dist/utils/page-topics.cjs +48 -0
  134. package/dist/utils/page-topics.d.ts +34 -0
  135. package/dist/utils/page-topics.d.ts.map +1 -0
  136. package/dist/utils/page-topics.js +46 -0
  137. package/package.json +7 -1
  138. package/src/components/chat/assistant-ask-prompts.tsx +8 -2
  139. package/src/components/chat/embeddable-chat.tsx +32 -45
  140. package/src/components/chat/guide-welcome.tsx +28 -49
  141. package/src/components/chat/hooks/use-empty-state-config.ts +22 -5
  142. package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
  143. package/src/components/chat/mingo-welcome.tsx +16 -35
  144. package/src/components/chat/quick-action-chip.tsx +32 -8
  145. package/src/components/faq/faq-ask-card.tsx +2 -12
  146. package/src/components/faq/faq-document-page.tsx +1 -5
  147. package/src/components/faq/faq-section.tsx +47 -50
  148. package/src/components/faq/index.ts +1 -2
  149. package/src/components/help-center-pages/delivery-page.tsx +1 -16
  150. package/src/components/help-center-pages/download-apps-page.tsx +2 -9
  151. package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +1 -16
  152. package/src/components/help-center-pages/product-releases-list-page.tsx +1 -16
  153. package/src/components/help-center-pages/roadmap-page.tsx +1 -16
  154. package/src/components/help-center-pages/trust-center-page.tsx +1 -1
  155. package/src/components/index.ts +1 -0
  156. package/src/components/page-topic-label.tsx +30 -0
  157. package/src/components/shared/dev-section/dev-section-page.tsx +2 -9
  158. package/src/components/shared/legal-document/legal-document-page.tsx +3 -13
  159. package/src/components/shared/legal-document/use-legal-documents.ts +0 -3
  160. package/src/components/ui/actions-menu.tsx +35 -1
  161. package/src/contexts/endpoints-runtime-context.tsx +5 -0
  162. package/src/contexts/index.ts +1 -0
  163. package/src/contexts/page-topics-context.tsx +68 -0
  164. package/src/utils/index.ts +8 -0
  165. package/src/utils/page-topics.ts +81 -0
  166. package/dist/{chunk-IKWQW3YJ.cjs → chunk-AY6XJOIN.cjs} +4 -4
@@ -1,64 +1,199 @@
1
1
  'use client';
2
2
 
3
+ import type { ReactNode } from 'react';
4
+ import { usePageTopicStamp } from '../../contexts/page-topics-context';
3
5
  import { cn } from '../../utils/cn';
6
+ import { Ellipsis01Icon } from '../icons-v2-generated';
7
+ import { PageTopicLabel } from '../page-topic-label';
8
+ import { ActionsMenuDropdown } from '../ui/actions-menu';
9
+ import { Button } from '../ui/button';
10
+ import { LoadingItems, useLoadingScope } from '../ui/loading-scope';
4
11
  import type { MingoQuickAction } from './mingo-welcome';
5
- import { QuickActionWall } from './quick-action-wall';
12
+ import {
13
+ QuickActionChipButton,
14
+ QuickActionChipFromData,
15
+ type QuickActionChip,
16
+ type QuickActionThemeSpec,
17
+ isQuickActionIconSpec,
18
+ renderQuickActionIcon,
19
+ } from './quick-action-chip';
20
+ import { WALL_SKELETON_LABEL_CH } from './quick-action-wall';
21
+
22
+ /**
23
+ * The slots a chat's quick-action set holds: what it shows, and what it reserves. Suggested-prompt research and
24
+ * every leading AI chat show three to five starters at once (NN/g, "Designing use-case prompt suggestions", 2025;
25
+ * ChatGPT, Claude, Gemini, Copilot), so four slots, the last one "More" when there are more actions.
26
+ */
27
+ export const QUICK_ACTION_SET_SLOTS = 4;
28
+
29
+ export interface QuickActionSetProps {
30
+ /** The actions, in the order to show them (the host puts the page topic's own first). */
31
+ chips: ReadonlyArray<QuickActionChip>;
32
+ /** Default theme for chips without their own (the agent's accent). */
33
+ theme?: QuickActionThemeSpec;
34
+ /** The actions are still read: every slot draws its chip's loading form. */
35
+ loading?: boolean;
36
+ /** The group's accessible name. */
37
+ label?: string;
38
+ /** Print the page's topic (`PageTopicLabel`, the stamp the FAQ block prints) over the set, right-aligned, so
39
+ * whoever tags quick actions on the hub sees which topic this page asks for. Default: the host's choice
40
+ * (`PageTopicsProvider showTopic`), so every surface that draws the set prints it alike. Drawn in the loading
41
+ * form too, so the set is the same box either way. */
42
+ showTopic?: boolean;
43
+ className?: string;
44
+ }
45
+
46
+ /**
47
+ * A chat's quick actions: a STATIC set of {@link QUICK_ACTION_SET_SLOTS} fixed slots above the composer, never a
48
+ * moving wall. Its height is decided by its container's width alone (one column under 18rem, two under 48rem, four
49
+ * above), never by the actions: fewer actions leave their slots empty, more turn the last slot into "More (n)", which
50
+ * opens the rest in a menu that floats over the page, and a long name clips on its one line (its tooltip shows it
51
+ * whole). Loading draws the same slots, each the chip's own loading form. So the set is the same box loading,
52
+ * loaded, with 1 action or 40, and opening "More" moves nothing.
53
+ *
54
+ * A click on a chip, or on a row of the "More" menu, calls its `onSelect` (the chat puts the action's prompt into the
55
+ * composer to edit and send).
56
+ */
57
+ export function QuickActionSet({
58
+ chips,
59
+ theme,
60
+ loading: loadingProp = false,
61
+ label = 'Quick actions',
62
+ showTopic: showTopicProp,
63
+ className,
64
+ }: QuickActionSetProps) {
65
+ const loading = useLoadingScope() || loadingProp;
66
+ const topicStamp = usePageTopicStamp();
67
+ const showTopic = showTopicProp ?? topicStamp;
68
+ const overflows = chips.length > QUICK_ACTION_SET_SLOTS;
69
+ const shown = overflows ? chips.slice(0, QUICK_ACTION_SET_SLOTS - 1) : chips;
70
+ const rest = overflows ? chips.slice(QUICK_ACTION_SET_SLOTS - 1) : [];
71
+ const empty = loading ? 0 : QUICK_ACTION_SET_SLOTS - shown.length - (overflows ? 1 : 0);
72
+
73
+ const moreItems = rest.map(chip => {
74
+ const icon =
75
+ theme && isQuickActionIconSpec(chip.icon) && !chip.icon.accent
76
+ ? { ...chip.icon, accent: theme.accent }
77
+ : chip.icon;
78
+ return { id: chip.id, label: chip.label, icon: renderQuickActionIcon(icon), onClick: chip.onSelect };
79
+ });
80
+
81
+ return (
82
+ <div
83
+ role="group"
84
+ aria-label={label}
85
+ className={cn('flex shrink-0 flex-col gap-[var(--spacing-system-xxs)] @container', className)}
86
+ >
87
+ {showTopic && <PageTopicLabel className="text-right" />}
88
+ <div className="grid grid-cols-1 gap-[var(--spacing-system-xs)] @[18rem]:grid-cols-2 @[48rem]:grid-cols-4">
89
+ {loading ? (
90
+ <LoadingItems count={QUICK_ACTION_SET_SLOTS}>
91
+ {i => (
92
+ <Slot>
93
+ <QuickActionChipButton
94
+ loading
95
+ fill
96
+ label=""
97
+ icon
98
+ labelCh={WALL_SKELETON_LABEL_CH[i % WALL_SKELETON_LABEL_CH.length]}
99
+ data-loading-item
100
+ />
101
+ </Slot>
102
+ )}
103
+ </LoadingItems>
104
+ ) : (
105
+ <>
106
+ {shown.map(chip => (
107
+ <Slot key={chip.id}>
108
+ <QuickActionChipFromData chip={chip} defaultTheme={theme} fill data-loading-item />
109
+ </Slot>
110
+ ))}
111
+ {overflows && (
112
+ <Slot>
113
+ <ActionsMenuDropdown
114
+ groups={[{ items: moreItems }]}
115
+ align="end"
116
+ side="top"
117
+ customTrigger={
118
+ <Button
119
+ variant="card"
120
+ type="button"
121
+ aria-label={`More quick actions (${rest.length})`}
122
+ className="w-full min-w-0"
123
+ >
124
+ <QuickActionChipButton
125
+ interactive={false}
126
+ fill
127
+ label={`More (${rest.length})`}
128
+ icon={<Ellipsis01Icon size={16} />}
129
+ />
130
+ </Button>
131
+ }
132
+ />
133
+ </Slot>
134
+ )}
135
+ {/* Unused slots keep their place, so the set never shrinks: the chip's own box, unseen. */}
136
+ {Array.from({ length: empty }, (_, i) => (
137
+ <Slot key={`empty-${i}`} unused>
138
+ <QuickActionChipButton loading fill label="" icon />
139
+ </Slot>
140
+ ))}
141
+ </>
142
+ )}
143
+ </div>
144
+ </div>
145
+ );
146
+ }
147
+
148
+ /** One cell of the set's grid: whatever it holds (a chip, its loading form, "More", or an unused slot's unseen box)
149
+ * fills it. */
150
+ function Slot({ unused = false, children }: { unused?: boolean; children: ReactNode }) {
151
+ return (
152
+ <div
153
+ data-testid="quick-action-slot"
154
+ aria-hidden={unused || undefined}
155
+ className={cn('min-w-0', unused && 'invisible')}
156
+ >
157
+ {children}
158
+ </div>
159
+ );
160
+ }
6
161
 
7
162
  export interface MingoQuickActionWallProps {
8
163
  quickActions: ReadonlyArray<MingoQuickAction>;
9
- /** Pointer/keyboard focus enters a chip — e.g. preview its prompt in the composer. */
10
- onQuickActionHover?: (action: MingoQuickAction) => void;
11
- /** Pointer/keyboard focus leaves the chip. */
12
- onQuickActionHoverEnd?: () => void;
13
- /** A built-in agent (`'fae'`/`'mingo'`) caps the wall at 2 rows. Default `'mingo'`. */
14
- agentSlug?: string;
15
164
  /**
16
- * The actions are still being read: the wall draws its chips' loading form at its full
17
- * row count, so a host that holds its layout around the wall (a composer under it, a
18
- * greeting centred above) does not move when the actions land.
165
+ * The actions are still being read: the set draws its chips' loading form in every slot, so a host that holds its
166
+ * layout around it (a composer under it, a greeting centred above) does not move when the actions land.
19
167
  */
20
168
  loading?: boolean;
169
+ /** See {@link QuickActionSetProps.showTopic}. */
170
+ showTopic?: boolean;
21
171
  className?: string;
22
172
  }
23
173
 
24
174
  /**
25
- * Mingo's quick actions as the chat's empty state draws them (`MingoWelcome`): the
26
- * shared {@link QuickActionWall} in BRICK mode — stacked row marquees (2 for a built-in
27
- * agent) under left/right edge fades, so a long action set gets "reach" without
28
- * squeezing the composer. `pauseOnHover` freezes the hovered row so a moving chip
29
- * never dodges a click. One component, so a host that shows the actions outside the
30
- * chat (a docked composer's home) draws the very same wall.
175
+ * Mingo's quick actions as the chat's empty state draws them (`MingoWelcome`): the {@link QuickActionSet}. One
176
+ * component, so a host that shows the actions outside the chat (a docked composer's home) draws the very same set.
31
177
  */
32
178
  export function MingoQuickActionWall({
33
179
  quickActions,
34
- onQuickActionHover,
35
- onQuickActionHoverEnd,
36
- agentSlug = 'mingo',
37
180
  loading = false,
181
+ showTopic,
38
182
  className,
39
183
  }: MingoQuickActionWallProps) {
40
184
  if (quickActions.length === 0 && !loading) return null;
41
185
  return (
42
- <QuickActionWall
186
+ <QuickActionSet
43
187
  chips={quickActions.map(action => ({
44
188
  id: action.id,
45
189
  label: action.label,
46
190
  icon: action.icon,
47
191
  variant: action.variant,
48
192
  onSelect: action.onClick,
49
- onHoverStart: () => onQuickActionHover?.(action),
50
- onHoverEnd: () => onQuickActionHoverEnd?.(),
51
193
  }))}
52
- agentSlug={agentSlug}
53
194
  loading={loading}
54
- rows={4}
55
- pauseOnHover
56
- dragScroll
57
- fade={['left', 'right']}
58
- fadeSize={{ left: 32 }}
59
- fadeColor="var(--color-bg)"
60
- copyGap="var(--spacing-system-xxs)"
61
- className={cn('max-h-44 shrink-0', className)}
195
+ showTopic={showTopic}
196
+ className={className}
62
197
  />
63
198
  );
64
199
  }
@@ -33,9 +33,8 @@ export interface MingoQuickAction {
33
33
  /** `'primary'` = accent (yellow) chip, `'outline'` = bordered chip. */
34
34
  variant?: 'primary' | 'outline';
35
35
  onClick?: () => void;
36
- /** Full prompt text previewed as ghost text in the composer on hover/focus.
37
- * The chip `label` is short; this reveals what the action will actually ask.
38
- * Omitted → falls back to `label`. */
36
+ /** The full prompt the action asks: in `EmbeddableChat` a click puts it into the composer to edit and send. The
37
+ * chip `label` is short. Omitted → falls back to `label`. */
39
38
  prompt?: string;
40
39
  }
41
40
 
@@ -55,11 +54,6 @@ export interface MingoWelcomeProps {
55
54
  promoStorage?: 'local' | 'session';
56
55
  /** Extra quick-action chips appended after the "Start Guide Chat" chip. */
57
56
  quickActions?: ReadonlyArray<MingoQuickAction>;
58
- /** Pointer/keyboard focus enters a quick-action chip — e.g. preview the
59
- * action's full `prompt` in the composer input. */
60
- onQuickActionHover?: (action: MingoQuickAction) => void;
61
- /** Pointer/keyboard focus leaves the chip — e.g. restore the composer. */
62
- onQuickActionHoverEnd?: () => void;
63
57
  /** Returning-user variation: the user already has chats. Hides the
64
58
  * "New to OpenFrame?" notification entirely and renders the "Start Guide
65
59
  * Chat" chip in the muted `outline` style instead of the accent yellow. */
@@ -88,10 +82,9 @@ export interface MingoWelcomeProps {
88
82
  * action — switches the host chat to Guide mode) and enables the default
89
83
  * promo notification. When omitted, both are suppressed. */
90
84
  onStartGuideChat?: () => void;
91
- /** Agent this empty state belongs to — forwarded to the quick-action
92
- * {@link QuickActionWall} so a built-in agent (`'fae'`/`'mingo'`) caps the
93
- * brick stack at 2 rows. Defaults to `'mingo'` (this is the Mingo surface). */
94
- agentSlug?: string;
85
+ /** The host is still reading the quick actions: the set draws its loading form in every slot, so the empty state
86
+ * keeps its height when they land. */
87
+ quickActionsLoading?: boolean;
95
88
  /** Appended to the root element. */
96
89
  className?: string;
97
90
  }
@@ -137,8 +130,6 @@ export function MingoWelcome({
137
130
  promoStorageKey = DEFAULT_PROMO_STORAGE_KEY,
138
131
  promoStorage = 'local',
139
132
  quickActions,
140
- onQuickActionHover,
141
- onQuickActionHoverEnd,
142
133
  hasExistingChats = false,
143
134
  dialogHistory,
144
135
  isLoadingHistory = false,
@@ -146,7 +137,7 @@ export function MingoWelcome({
146
137
  loadError = false,
147
138
  onRetry,
148
139
  onStartGuideChat,
149
- agentSlug = 'mingo',
140
+ quickActionsLoading = false,
150
141
  className,
151
142
  }: MingoWelcomeProps) {
152
143
  // Greeting never weaves the user's name in — always the plain "Hey, I'm
@@ -316,18 +307,12 @@ export function MingoWelcome({
316
307
  </div>
317
308
  )}
318
309
 
319
- {/* Quick actions. "Start Guide Chat" stays pinned above the wall — it's
320
- the primary mode switch and must never scroll out of reach. The rest
321
- render in the shared {@link QuickActionWall} in BRICK mode (the SAME
322
- chip wall the website hero uses): 2 stacked row marquees under left/
323
- right edge fades, so a long agent action set gets "reach" without
324
- squeezing the composer. `pauseOnHover` freezes the hovered row so a
325
- moving chip never dodges a click; hover/focus previews the action's
326
- full prompt in the composer. */}
327
- {/* The standalone chip sits one WALL PITCH above the wall, so it reads
328
- as that wall's first row rather than a separate control. */}
329
- {(onStartGuideChat || (quickActions && quickActions.length > 0)) && (
330
- <div className="flex shrink-0 flex-col gap-[var(--chip-wall-gap)]">
310
+ {/* Quick actions. "Start Guide Chat" stays pinned above the set: it is the primary mode switch and must
311
+ never move out of reach. The rest are the static {@link QuickActionSet} (fixed slots, "More" for the
312
+ rest); a click puts the action's prompt into the composer. The standalone chip sits one
313
+ chip gap above the set, so it reads as its first row rather than a separate control. */}
314
+ {(onStartGuideChat || (quickActions && quickActions.length > 0) || quickActionsLoading) && (
315
+ <div className="flex shrink-0 flex-col gap-[var(--spacing-system-xs)]">
331
316
  {onStartGuideChat && (
332
317
  <QuickActionChipButton
333
318
  label="Start Guide Chat"
@@ -337,14 +322,10 @@ export function MingoWelcome({
337
322
  className="self-start"
338
323
  />
339
324
  )}
340
- {quickActions && quickActions.length > 0 && (
341
- <MingoQuickActionWall
342
- quickActions={quickActions}
343
- onQuickActionHover={onQuickActionHover}
344
- onQuickActionHoverEnd={onQuickActionHoverEnd}
345
- agentSlug={agentSlug}
346
- />
347
- )}
325
+ <MingoQuickActionWall
326
+ quickActions={quickActions ?? []}
327
+ loading={quickActionsLoading && !quickActions?.length}
328
+ />
348
329
  </div>
349
330
  )}
350
331
  </div>
@@ -188,6 +188,10 @@ export interface QuickActionChipButtonProps {
188
188
  loading?: boolean;
189
189
  /** While loading, the label placeholder's width in `ch` (see {@link QuickActionChipSkeletonProps.labelCh}). */
190
190
  labelCh?: number;
191
+ /** The chip fills its slot: full width and a FIXED two-line height, the label in sentence type as it was
192
+ * written (not the uppercase label type), wrapping to at most two lines. The quick-action set's fixed grid draws
193
+ * its chips this way, so a long name never changes the slot's size. */
194
+ fill?: boolean;
191
195
  /** The list's markers (`data-loading-item`), forwarded in both forms. */
192
196
  [marker: `data-${string}`]: unknown;
193
197
  }
@@ -208,11 +212,23 @@ interface QuickActionChipSkeletonProps {
208
212
  size?: 'default' | 'large';
209
213
  /** `'question'`: the placeholder of a `variant="question"` chip (its height and padding). */
210
214
  variant?: 'outline' | 'question';
215
+ /** The loaded chip fills its slot ({@link QuickActionChipButtonProps.fill}): so does its placeholder. */
216
+ fill?: boolean;
211
217
  className?: string;
212
218
  /** The list's markers (`data-loading-item`), forwarded like the loaded chip's. */
213
219
  [marker: `data-${string}`]: unknown;
214
220
  }
215
221
 
222
+ /** A chip that fills its slot: the tag spans the slot at a fixed two-line height, its content at the leading edge.
223
+ * Prompts read better in sentence case and whole than uppercase and cut (NN/g, "glanceable fonts"; AWS Cloudscape,
224
+ * support prompts), so a filled chip uses the sentence type and wraps instead of clipping on one line. */
225
+ const FILL_TAG_CLASS = 'h-14 w-full min-w-0 justify-start text-left';
226
+
227
+ /** A filled chip's label: at most two lines, broken anywhere a long word needs it. */
228
+ function fillLabel(label: ReactNode): ReactNode {
229
+ return <span className="line-clamp-2 whitespace-normal [overflow-wrap:anywhere]">{label}</span>;
230
+ }
231
+
216
232
  /**
217
233
  * Loading placeholder for {@link QuickActionChipButton} — renders the REAL
218
234
  * `Tag` (same height, padding, border, radius, icon box) with `UnifiedSkeleton`
@@ -227,6 +243,7 @@ function QuickActionChipSkeleton({
227
243
  lozenge = false,
228
244
  size = 'default',
229
245
  variant = 'outline',
246
+ fill = false,
230
247
  className,
231
248
  ...props
232
249
  }: QuickActionChipSkeletonProps) {
@@ -235,8 +252,8 @@ function QuickActionChipSkeleton({
235
252
  <Tag
236
253
  {...loadingItemProps(props)}
237
254
  variant="outline"
238
- size={question ? 'sentence' : size}
239
- className={cn(question && 'max-w-full', className)}
255
+ size={question || fill ? 'sentence' : size}
256
+ className={cn(question && 'max-w-full', fill && FILL_TAG_CLASS, className)}
240
257
  icon={
241
258
  icon && !question ? (
242
259
  <UnifiedSkeleton as="span" aria-hidden className={size === 'large' ? 'block size-5' : 'block size-4'} />
@@ -287,6 +304,7 @@ export function QuickActionChipButton({
287
304
  className,
288
305
  loading: loadingProp = false,
289
306
  labelCh,
307
+ fill = false,
290
308
  ...props
291
309
  }: QuickActionChipButtonProps) {
292
310
  // ONE switch: in a page's loading state, or while the host reads the label, the chip is its skeleton (same box).
@@ -301,7 +319,8 @@ export function QuickActionChipButton({
301
319
  lozenge={!!lozenge}
302
320
  size={size}
303
321
  variant={variant === 'question' ? 'question' : 'outline'}
304
- className={className}
322
+ fill={fill}
323
+ className={cn(fill && 'w-full', className)}
305
324
  />
306
325
  );
307
326
  // The theme's accent only fills the gap — an icon spec's own accent
@@ -309,7 +328,8 @@ export function QuickActionChipButton({
309
328
  const themedIcon = theme && isQuickActionIconSpec(icon) && !icon.accent ? { ...icon, accent: theme.accent } : icon;
310
329
  const resolvedLozenge = lozenge === true ? theme?.lozenge : lozenge === false ? undefined : lozenge;
311
330
  const resolvedIcon = renderQuickActionIcon(themedIcon);
312
- const resolvedLabel = composeChipLabel(label, resolvedLozenge);
331
+ const composedLabel = composeChipLabel(label, resolvedLozenge);
332
+ const resolvedLabel = fill ? fillLabel(composedLabel) : composedLabel;
313
333
  const question = variant === 'question';
314
334
  const tagVariant = selected
315
335
  ? selectedAccent === 'cyan'
@@ -318,7 +338,7 @@ export function QuickActionChipButton({
318
338
  : question
319
339
  ? 'outline'
320
340
  : variant;
321
- const tagSize = question ? 'sentence' : size;
341
+ const tagSize = question || fill ? 'sentence' : size;
322
342
  if (!interactive) {
323
343
  return (
324
344
  <Tag
@@ -327,7 +347,7 @@ export function QuickActionChipButton({
327
347
  size={tagSize}
328
348
  icon={resolvedIcon}
329
349
  label={resolvedLabel}
330
- className={className}
350
+ className={cn(fill && FILL_TAG_CLASS, className)}
331
351
  />
332
352
  );
333
353
  }
@@ -344,7 +364,7 @@ export function QuickActionChipButton({
344
364
  aria-pressed={selected || undefined}
345
365
  className={cn(
346
366
  // A question may be longer than a narrow column: it shrinks and clips there, read from its start.
347
- question ? 'w-auto min-w-0 max-w-full' : 'w-auto shrink-0',
367
+ fill ? 'w-full min-w-0' : question ? 'w-auto min-w-0 max-w-full' : 'w-auto shrink-0',
348
368
  className,
349
369
  )}
350
370
  >
@@ -353,7 +373,7 @@ export function QuickActionChipButton({
353
373
  size={tagSize}
354
374
  icon={resolvedIcon}
355
375
  label={resolvedLabel}
356
- className={question ? 'max-w-full' : undefined}
376
+ className={fill ? FILL_TAG_CLASS : question ? 'max-w-full' : undefined}
357
377
  />
358
378
  </Button>
359
379
  );
@@ -410,6 +430,7 @@ export function QuickActionChipFromData({
410
430
  defaultTheme,
411
431
  defaultLozenge,
412
432
  interactive = true,
433
+ fill,
413
434
  className,
414
435
  ...props
415
436
  }: {
@@ -417,6 +438,8 @@ export function QuickActionChipFromData({
417
438
  defaultTheme?: QuickActionThemeSpec;
418
439
  defaultLozenge?: boolean;
419
440
  interactive?: boolean;
441
+ /** See {@link QuickActionChipButtonProps.fill}. */
442
+ fill?: boolean;
420
443
  className?: string;
421
444
  /** The list's markers (`data-loading-item`), forwarded to the chip. */
422
445
  [marker: `data-${string}`]: unknown;
@@ -435,6 +458,7 @@ export function QuickActionChipFromData({
435
458
  onHoverStart={chip.onHoverStart}
436
459
  onHoverEnd={chip.onHoverEnd}
437
460
  interactive={interactive}
461
+ fill={fill}
438
462
  className={className}
439
463
  />
440
464
  );
@@ -6,17 +6,8 @@ import { useInView } from '../../hooks/ui/use-in-view';
6
6
  import { AssistantAskPrompts } from '../chat/assistant-ask-prompts';
7
7
  import { assistantAvailable } from '../chat/hooks/use-ask-prompts';
8
8
 
9
- /** The card beside a FAQ, as a host may shape it. Every field is optional. */
9
+ /** The card beside a FAQ, as a host may shape it. Every field is optional; its topic is the page's (`usePageTopic`). */
10
10
  export interface FaqAskOptions {
11
- /**
12
- * What this FAQ is about: ANY string the host's questions endpoint knows (it
13
- * is sent as `topic`, and reported with every click). Questions written
14
- * for the topic are picked first. Absent: the FAQ's own topic
15
- * (`FaqSection`'s `topic`), else the entity the FAQ is attached to (its
16
- * `entityType`). With none, the FAQ has no card: the lib names no topic of
17
- * its own.
18
- */
19
- topic?: string;
20
11
  /**
21
12
  * Ids of questions never to offer. Absent: the ones the page's other "ask"
22
13
  * surfaces show, which the card waits for. `null`: wait.
@@ -50,7 +41,7 @@ export function faqAskCardShown(assistant: AssistantRuntime | null): assistant i
50
41
  * card then leaves out every question the page above already shows. The card
51
42
  * is the same height before and after the questions arrive.
52
43
  */
53
- export function FaqAskCard({ topic, exclude, count, title, description, onOpen }: FaqAskOptions & { topic: string }) {
44
+ export function FaqAskCard({ exclude, count, title, description, onOpen }: FaqAskOptions) {
54
45
  const { ref, inView } = useInView<HTMLDivElement>({ rootMargin: PICK_ROOT_MARGIN });
55
46
  const [reached, setReached] = useState(false);
56
47
  if (inView && !reached) setReached(true);
@@ -58,7 +49,6 @@ export function FaqAskCard({ topic, exclude, count, title, description, onOpen }
58
49
  <div ref={ref}>
59
50
  <AssistantAskPrompts
60
51
  variant="card"
61
- topic={topic}
62
52
  count={count}
63
53
  exclude={exclude}
64
54
  enabled={reached}
@@ -49,15 +49,13 @@ export interface FaqDocumentPageProps {
49
49
  jsonLd?: FaqSchemaOptions;
50
50
  /** Base URL `FaqSection` appends `/api/faqs` to (reverse-proxy embedders). */
51
51
  apiBaseUrl?: string;
52
- /** What the page is about (forwarded to `FaqSection`): its FAQs and its ask card are the ones written for the topic. */
53
- topic?: string;
54
52
  /** Optional entity scoping forwarded to `FaqSection`. */
55
53
  entityType?: string;
56
54
  entityId?: number | string;
57
55
  /** Minimum FAQ count before the section renders (forwarded to `FaqSection`). */
58
56
  minResults?: number;
59
57
  /** The "ask the assistant" card beside the questions (forwarded to `FaqSection`): `false` switches it off, an
60
- * object states its topic, wording and the chat it opens. */
58
+ * object states its wording and the chat it opens; its topic is the page's (`usePageTopic`). */
61
59
  ask?: FaqSectionProps['ask'];
62
60
  /** The FAQ's loading state, group by group (forwarded to `FaqSection`). */
63
61
  skeletonShape?: FaqSectionProps['skeletonShape'];
@@ -76,7 +74,6 @@ export function FaqDocumentPage({
76
74
  entityType,
77
75
  entityId,
78
76
  minResults,
79
- topic,
80
77
  ask,
81
78
  skeletonShape,
82
79
  skeletonNav,
@@ -106,7 +103,6 @@ export function FaqDocumentPage({
106
103
  entityType={entityType}
107
104
  entityId={entityId}
108
105
  minResults={minResults}
109
- topic={topic}
110
106
  ask={ask}
111
107
  skeletonShape={skeletonShape}
112
108
  skeletonNav={skeletonNav}