@flamingo-stack/openframe-frontend-core 0.0.453 → 0.0.454-snapshot.20260719120410
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.
- package/dist/{chunk-5DMY2VQ6.cjs → chunk-2Y4Q3HLP.cjs} +73 -73
- package/dist/{chunk-5DMY2VQ6.cjs.map → chunk-2Y4Q3HLP.cjs.map} +1 -1
- package/dist/{chunk-RZRTEEQV.cjs → chunk-3NCDJ4JC.cjs} +15 -15
- package/dist/{chunk-RZRTEEQV.cjs.map → chunk-3NCDJ4JC.cjs.map} +1 -1
- package/dist/{chunk-ID7Q7V2S.js → chunk-4DCGHCUH.js} +3 -3
- package/dist/{chunk-INK4TMYM.cjs → chunk-5GGKXOR5.cjs} +5 -5
- package/dist/{chunk-INK4TMYM.cjs.map → chunk-5GGKXOR5.cjs.map} +1 -1
- package/dist/{chunk-TCURBPIB.cjs → chunk-6MHHZIZI.cjs} +18 -18
- package/dist/{chunk-TCURBPIB.cjs.map → chunk-6MHHZIZI.cjs.map} +1 -1
- package/dist/{chunk-62TEHLGM.js → chunk-ALN43I56.js} +6 -6
- package/dist/{chunk-MLFFBQ5B.js → chunk-BD3JBEUC.js} +65 -135
- package/dist/chunk-BD3JBEUC.js.map +1 -0
- package/dist/{chunk-XKJBWXZF.js → chunk-BWL5X64L.js} +3 -3
- package/dist/{chunk-F5PGXJOZ.js → chunk-COYOWJWY.js} +4 -4
- package/dist/{chunk-VKYO33AL.cjs → chunk-DFI7OPXH.cjs} +29 -29
- package/dist/{chunk-VKYO33AL.cjs.map → chunk-DFI7OPXH.cjs.map} +1 -1
- package/dist/{chunk-SIXNLTOP.js → chunk-DGW6SIB5.js} +2 -2
- package/dist/{chunk-MJW35ZHU.cjs → chunk-EOLIBSMM.cjs} +32 -32
- package/dist/{chunk-MJW35ZHU.cjs.map → chunk-EOLIBSMM.cjs.map} +1 -1
- package/dist/{chunk-CYELTGAD.js → chunk-EU6ZGX7Y.js} +5 -5
- package/dist/{chunk-WPZ5PYCR.cjs → chunk-FW4H5KXF.cjs} +7 -7
- package/dist/{chunk-WPZ5PYCR.cjs.map → chunk-FW4H5KXF.cjs.map} +1 -1
- package/dist/{chunk-G3CEGH65.js → chunk-HKNSBWMN.js} +5412 -5540
- package/dist/{chunk-SN3IAT34.cjs.map → chunk-HKNSBWMN.js.map} +1 -1
- package/dist/{chunk-SN3IAT34.cjs → chunk-JTDCDN4S.cjs} +531 -659
- package/dist/chunk-JTDCDN4S.cjs.map +1 -0
- package/dist/{chunk-QF3NQW7C.cjs → chunk-KTGGM5WA.cjs} +2 -72
- package/dist/chunk-KTGGM5WA.cjs.map +1 -0
- package/dist/{chunk-UPRY4I63.cjs → chunk-RT7DIGTN.cjs} +3 -3
- package/dist/{chunk-UPRY4I63.cjs.map → chunk-RT7DIGTN.cjs.map} +1 -1
- package/dist/{chunk-RAYQK645.cjs → chunk-SGEWUU4I.cjs} +40 -40
- package/dist/{chunk-RAYQK645.cjs.map → chunk-SGEWUU4I.cjs.map} +1 -1
- package/dist/{chunk-5AQ56GTT.js → chunk-TORNWTFY.js} +2 -2
- package/dist/{chunk-BKQVBFJ4.js → chunk-VIIQADTG.js} +3 -3
- package/dist/{chunk-GRT5WY5H.js → chunk-WEO3LUK4.js} +5 -5
- package/dist/{chunk-TG3K26F7.cjs → chunk-WIVLOR63.cjs} +73 -73
- package/dist/{chunk-TG3K26F7.cjs.map → chunk-WIVLOR63.cjs.map} +1 -1
- package/dist/{chunk-NYNG34OX.js → chunk-WVBT5H7W.js} +2 -2
- package/dist/{chunk-EQWE64RJ.js → chunk-X62ICFPJ.js} +2 -2
- package/dist/{chunk-HRW2BMTC.cjs → chunk-XBQD7S5Y.cjs} +12 -12
- package/dist/{chunk-HRW2BMTC.cjs.map → chunk-XBQD7S5Y.cjs.map} +1 -1
- package/dist/{chunk-Y3XBZEDX.cjs → chunk-YNTCCIB4.cjs} +40 -40
- package/dist/{chunk-Y3XBZEDX.cjs.map → chunk-YNTCCIB4.cjs.map} +1 -1
- package/dist/{chunk-BN5744HA.js → chunk-ZN5PM2AZ.js} +6 -6
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -9
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.d.ts +0 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +2 -8
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.d.ts +48 -0
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-marquee.d.ts.map +1 -1
- package/dist/components/chat/quick-action-wall.d.ts +1 -2
- package/dist/components/chat/quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +0 -12
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +135 -141
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +11 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/header.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +3 -9
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +2 -8
- package/dist/hooks/index.cjs +2 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -3
- package/dist/index.cjs +3 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -10
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +14 -2
- package/src/components/chat/guide-welcome.tsx +22 -13
- package/src/components/chat/index.ts +0 -2
- package/src/components/chat/mingo-welcome.tsx +40 -26
- package/src/components/chat/quick-action-chip.tsx +77 -0
- package/src/components/chat/quick-action-marquee.tsx +1 -2
- package/src/components/chat/quick-action-wall.tsx +6 -4
- package/src/components/chat/types/component.types.ts +0 -15
- package/src/components/navigation/header.tsx +12 -1
- package/src/hooks/.index.md +0 -1
- package/src/hooks/index.ts +0 -1
- package/src/stories/ChatContainer.stories.tsx +15 -12
- package/src/stories/QuickActionWall.stories.tsx +1 -2
- package/dist/chunk-G3CEGH65.js.map +0 -1
- package/dist/chunk-MLFFBQ5B.js.map +0 -1
- package/dist/chunk-QF3NQW7C.cjs.map +0 -1
- package/dist/components/chat/chat-quick-action-row.d.ts +0 -84
- package/dist/components/chat/chat-quick-action-row.d.ts.map +0 -1
- package/dist/components/chat/chat-quick-action.d.ts +0 -11
- package/dist/components/chat/chat-quick-action.d.ts.map +0 -1
- package/dist/hooks/use-quick-action-hint.d.ts +0 -25
- package/dist/hooks/use-quick-action-hint.d.ts.map +0 -1
- package/src/components/chat/.chat-quick-action.md +0 -46
- package/src/components/chat/chat-quick-action-row.tsx +0 -282
- package/src/components/chat/chat-quick-action.tsx +0 -59
- package/src/hooks/.use-quick-action-hint.md +0 -43
- package/src/hooks/use-quick-action-hint.ts +0 -126
- /package/dist/{chunk-ID7Q7V2S.js.map → chunk-4DCGHCUH.js.map} +0 -0
- /package/dist/{chunk-62TEHLGM.js.map → chunk-ALN43I56.js.map} +0 -0
- /package/dist/{chunk-XKJBWXZF.js.map → chunk-BWL5X64L.js.map} +0 -0
- /package/dist/{chunk-F5PGXJOZ.js.map → chunk-COYOWJWY.js.map} +0 -0
- /package/dist/{chunk-SIXNLTOP.js.map → chunk-DGW6SIB5.js.map} +0 -0
- /package/dist/{chunk-CYELTGAD.js.map → chunk-EU6ZGX7Y.js.map} +0 -0
- /package/dist/{chunk-5AQ56GTT.js.map → chunk-TORNWTFY.js.map} +0 -0
- /package/dist/{chunk-BKQVBFJ4.js.map → chunk-VIIQADTG.js.map} +0 -0
- /package/dist/{chunk-GRT5WY5H.js.map → chunk-WEO3LUK4.js.map} +0 -0
- /package/dist/{chunk-NYNG34OX.js.map → chunk-WVBT5H7W.js.map} +0 -0
- /package/dist/{chunk-EQWE64RJ.js.map → chunk-X62ICFPJ.js.map} +0 -0
- /package/dist/{chunk-BN5744HA.js.map → chunk-ZN5PM2AZ.js.map} +0 -0
|
@@ -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 {
|
|
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
|
|
107
|
-
//
|
|
108
|
-
//
|
|
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) => ({
|
|
@@ -192,17 +194,24 @@ export function GuideWelcome({
|
|
|
192
194
|
<ScrollFadeOverlay edge="bottom" visible={fadeBottom} className="h-12" />
|
|
193
195
|
</div>
|
|
194
196
|
|
|
195
|
-
{/* Pinned quick-action
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
-
<
|
|
203
|
-
wrap
|
|
206
|
+
<QuickActionWall
|
|
204
207
|
chips={chipItems}
|
|
205
|
-
|
|
208
|
+
rows={4}
|
|
209
|
+
pauseOnHover
|
|
210
|
+
fade={['left', 'right']}
|
|
211
|
+
fadeSize={{ left: 32 }}
|
|
212
|
+
fadeColor="var(--color-bg)"
|
|
213
|
+
copyGap="var(--spacing-system-xxs)"
|
|
214
|
+
className="max-h-44 shrink-0"
|
|
206
215
|
/>
|
|
207
216
|
)}
|
|
208
217
|
</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'
|
|
@@ -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'
|
|
@@ -307,32 +307,46 @@ export function MingoWelcome({
|
|
|
307
307
|
</div>
|
|
308
308
|
)}
|
|
309
309
|
|
|
310
|
-
{/* Quick
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
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
|
-
<
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
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
|
+
fade={['left', 'right']}
|
|
343
|
+
fadeSize={{ left: 32 }}
|
|
344
|
+
fadeColor="var(--color-bg)"
|
|
345
|
+
copyGap="var(--spacing-system-xxs)"
|
|
346
|
+
className="max-h-44 shrink-0"
|
|
347
|
+
/>
|
|
348
|
+
)}
|
|
349
|
+
</div>
|
|
336
350
|
)}
|
|
337
351
|
</div>
|
|
338
352
|
)}
|
|
@@ -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 {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
@@ -582,21 +582,6 @@ export interface ModelUsageBreakdown {
|
|
|
582
582
|
haikuSummarizer?: { input: number; output: number }
|
|
583
583
|
}
|
|
584
584
|
|
|
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
585
|
// ========== Dialog Item Props ==========
|
|
601
586
|
|
|
602
587
|
export interface DialogItem {
|
|
@@ -277,7 +277,18 @@ export function Header({ config, platform }: HeaderProps) {
|
|
|
277
277
|
// 72px = unified-header spec height (Figma 4033-90260); the right
|
|
278
278
|
// cluster self-stretches so the Mingo launcher can sit flush.
|
|
279
279
|
"w-full h-[72px] flex items-center justify-between",
|
|
280
|
-
|
|
280
|
+
// NOTE: no `backdrop-blur` here. Every platform ships an OPAQUE
|
|
281
|
+
// header background (`backgroundColor` below resolves to an opaque
|
|
282
|
+
// ODS token — bg-ods-bg / bg-ods-card), so a backdrop-filter would
|
|
283
|
+
// blur a backdrop that is then fully painted over: zero visual
|
|
284
|
+
// effect, but it still forces the browser to keep a backdrop-filter
|
|
285
|
+
// surface and re-rasterize the strip behind this sticky bar every
|
|
286
|
+
// scroll frame. That surface desyncs a frame against the scrolling
|
|
287
|
+
// content and makes content flicker as it passes under the header
|
|
288
|
+
// (most visible on large high-contrast headings, e.g. /pricing).
|
|
289
|
+
// If a consumer ever wants a translucent "glass" header, add the
|
|
290
|
+
// blur together with a translucent `backgroundColor` deliberately.
|
|
291
|
+
"border-b border-ods-border",
|
|
281
292
|
"pl-6",
|
|
282
293
|
!config.mingo?.enabled && "pr-6",
|
|
283
294
|
// Background color (configurable via backgroundColor prop)
|
package/src/hooks/.index.md
CHANGED
|
@@ -9,7 +9,6 @@ Central barrel export file for the hooks package, re-exporting all custom React
|
|
|
9
9
|
| `./platform` | Platform-specific hooks |
|
|
10
10
|
| `./use-toast` | Toast notification hook |
|
|
11
11
|
| `./use-contact-submission` | Contact form submission hook |
|
|
12
|
-
| `./use-quick-action-hint` | Quick action hint display hook |
|
|
13
12
|
| `./use-copy-to-clipboard` | Clipboard write hook |
|
|
14
13
|
| `./use-batch-images` | Authenticated batch image loading |
|
|
15
14
|
| `./use-authenticated-image` | Single authenticated image hook |
|
package/src/hooks/index.ts
CHANGED
|
@@ -9,11 +9,8 @@ import {
|
|
|
9
9
|
} from '../components/chat/chat-container'
|
|
10
10
|
import { ChatInput } from '../components/chat/chat-input'
|
|
11
11
|
import { ChatMessageList } from '../components/chat/chat-message-list'
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
ChatQuickActionRowSkeleton,
|
|
15
|
-
type QuickActionChip,
|
|
16
|
-
} from '../components/chat/chat-quick-action-row'
|
|
12
|
+
import { QuickActionWall } from '../components/chat/quick-action-wall'
|
|
13
|
+
import type { QuickActionChip } from '../components/chat/quick-action-chip'
|
|
17
14
|
import { ModelDisplay, ModelDisplaySkeleton } from '../components/chat/model-display'
|
|
18
15
|
import type { Message } from '../components/chat/types/message.types'
|
|
19
16
|
import { cn } from '../utils/cn'
|
|
@@ -145,13 +142,19 @@ function FaeChatShell({
|
|
|
145
142
|
/>
|
|
146
143
|
</ChatContent>
|
|
147
144
|
<ChatFooter fullWidth={fullWidth}>
|
|
148
|
-
{/* Quick
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
145
|
+
{/* Quick actions above the composer — the shared `QuickActionWall`
|
|
146
|
+
(its own 1:1 skeleton drives the loading variant, same pattern as
|
|
147
|
+
ModelDisplay). */}
|
|
148
|
+
<QuickActionWall
|
|
149
|
+
className="mb-[var(--spacing-system-s)] max-h-28"
|
|
150
|
+
chips={SAMPLE_QUICK_ACTIONS}
|
|
151
|
+
loading={modelLoading}
|
|
152
|
+
rows={2}
|
|
153
|
+
fade={['left', 'right']}
|
|
154
|
+
fadeSize={{ left: 32 }}
|
|
155
|
+
fadeColor="var(--color-bg)"
|
|
156
|
+
copyGap="var(--spacing-system-xxs)"
|
|
157
|
+
/>
|
|
155
158
|
<ChatInput
|
|
156
159
|
onSend={handleSend}
|
|
157
160
|
placeholder="Message Fae..."
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
|
2
2
|
import { QuickActionWall, interleave } from '../components/chat/quick-action-wall'
|
|
3
|
-
import type { QuickActionChip } from '../components/chat/
|
|
4
|
-
import type { QuickActionThemeSpec } from '../components/chat/quick-action-chip'
|
|
3
|
+
import type { QuickActionChip, QuickActionThemeSpec } from '../components/chat/quick-action-chip'
|
|
5
4
|
|
|
6
5
|
// Theme specs are CALLER-supplied (the lib ships no registry, no fallbacks):
|
|
7
6
|
// these are this story's own demo specs — real consumers resolve agent
|