@flamingo-stack/openframe-frontend-core 0.0.289 → 0.0.290
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-6NL7TTDR.cjs → chunk-2V6RCQ5M.cjs} +23 -23
- package/dist/{chunk-6NL7TTDR.cjs.map → chunk-2V6RCQ5M.cjs.map} +1 -1
- package/dist/{chunk-PYHCHGM5.js → chunk-4F3X2AOB.js} +2 -2
- package/dist/{chunk-7YLTJXMQ.js → chunk-4XMYOZFO.js} +2 -2
- package/dist/{chunk-HIABEYRE.cjs → chunk-7L22MF3U.cjs} +3 -3
- package/dist/{chunk-HIABEYRE.cjs.map → chunk-7L22MF3U.cjs.map} +1 -1
- package/dist/{chunk-OV3ZCU6X.cjs → chunk-AAK6IY6Y.cjs} +4 -4
- package/dist/{chunk-OV3ZCU6X.cjs.map → chunk-AAK6IY6Y.cjs.map} +1 -1
- package/dist/{chunk-UBFYGWFP.js → chunk-KJF7SRKH.js} +2 -2
- package/dist/{chunk-Q6S6DCVP.js → chunk-LVOBI2M5.js} +2 -2
- package/dist/{chunk-LZQ4HSOR.cjs → chunk-OYXZIPNM.cjs} +25 -25
- package/dist/{chunk-LZQ4HSOR.cjs.map → chunk-OYXZIPNM.cjs.map} +1 -1
- package/dist/{chunk-P2SO7ADJ.js → chunk-R4CLIWAU.js} +27 -1
- package/dist/{chunk-P2SO7ADJ.js.map → chunk-R4CLIWAU.js.map} +1 -1
- package/dist/{chunk-DFAMTCC4.cjs → chunk-UC5GB255.cjs} +5 -5
- package/dist/{chunk-DFAMTCC4.cjs.map → chunk-UC5GB255.cjs.map} +1 -1
- package/dist/{chunk-KLXCXNLW.cjs → chunk-VJ4ZWD5G.cjs} +221 -195
- package/dist/{chunk-KLXCXNLW.cjs.map → chunk-VJ4ZWD5G.cjs.map} +1 -1
- package/dist/{chunk-BZR546EB.js → chunk-Z5QIVHJW.js} +2 -2
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/index.cjs +46 -46
- package/dist/components/index.js +5 -5
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +45 -45
- package/dist/components/tickets/index.js +3 -3
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +42 -0
- /package/dist/{chunk-PYHCHGM5.js.map → chunk-4F3X2AOB.js.map} +0 -0
- /package/dist/{chunk-7YLTJXMQ.js.map → chunk-4XMYOZFO.js.map} +0 -0
- /package/dist/{chunk-UBFYGWFP.js.map → chunk-KJF7SRKH.js.map} +0 -0
- /package/dist/{chunk-Q6S6DCVP.js.map → chunk-LVOBI2M5.js.map} +0 -0
- /package/dist/{chunk-BZR546EB.js.map → chunk-Z5QIVHJW.js.map} +0 -0
|
@@ -74,6 +74,7 @@ import { MingoIcon } from '../../icons'
|
|
|
74
74
|
import { EyeIcon } from '../../icons-v2-generated/interface/eye-icon'
|
|
75
75
|
import { ArrowRightUpIcon } from '../../icons-v2-generated/arrows/arrow-right-up-icon'
|
|
76
76
|
import { TagIcon } from '../../icons-v2-generated/shopping/tag-icon'
|
|
77
|
+
import { QuestionCircleIcon } from '../../icons-v2-generated/signs-and-symbols/question-circle-icon'
|
|
77
78
|
import { SlackLogoGreyIcon } from '../../icons-v2-generated/brand-logos/slack-logo-grey-icon'
|
|
78
79
|
import { FileContentIcon } from '../../icons-v2-generated/documents/file-content-icon'
|
|
79
80
|
import { ChartBar01VerIcon } from '../../icons-v2-generated/charts/chart-bar-01-ver-icon'
|
|
@@ -354,6 +355,39 @@ function HubspotTicketChatCard({
|
|
|
354
355
|
)
|
|
355
356
|
}
|
|
356
357
|
|
|
358
|
+
/** FAQ Q&A — title=question, body=answer preview, optional section pill.
|
|
359
|
+
* No-fetch card: every field the renderer needs already lives on the
|
|
360
|
+
* ChatRef (hub's `FAQ_MAPPER.toRetrievedDoc` populates `title` /
|
|
361
|
+
* `preview` / `url` / `targetPlatform`, and the section name is threaded
|
|
362
|
+
* through `metadata.section` for the badge). The card itself stays pure
|
|
363
|
+
* presentation — same shape as `SlackChatCard` / `HubspotTicketChatCard`. */
|
|
364
|
+
function FaqChatCard({
|
|
365
|
+
chatRef,
|
|
366
|
+
isNewTab,
|
|
367
|
+
discuss,
|
|
368
|
+
}: {
|
|
369
|
+
chatRef: ChatRef
|
|
370
|
+
isNewTab: boolean
|
|
371
|
+
discuss?: CardDiscussAction
|
|
372
|
+
}) {
|
|
373
|
+
const section =
|
|
374
|
+
typeof chatRef.metadata?.section === 'string'
|
|
375
|
+
? (chatRef.metadata.section as string).trim()
|
|
376
|
+
: undefined
|
|
377
|
+
const statusLabel = section && section.length > 0 ? section : 'FAQ'
|
|
378
|
+
return (
|
|
379
|
+
<MingoInfoCard
|
|
380
|
+
title={chatRef.title}
|
|
381
|
+
description={chatRef.preview ?? undefined}
|
|
382
|
+
icon={<QuestionCircleIcon size={24} />}
|
|
383
|
+
status={{ label: statusLabel, variant: 'grey' }}
|
|
384
|
+
anchorProps={buildAnchorProps(chatRef.url, isNewTab)}
|
|
385
|
+
menuGroups={cardMenuGroups(chatRef.url, discuss)}
|
|
386
|
+
menuAriaLabel="FAQ actions"
|
|
387
|
+
/>
|
|
388
|
+
)
|
|
389
|
+
}
|
|
390
|
+
|
|
357
391
|
function SlackChatCard({
|
|
358
392
|
chatRef,
|
|
359
393
|
isNewTab,
|
|
@@ -1121,6 +1155,14 @@ const CHAT_CARD_REGISTRY: Record<string, ChatCardRegistryEntry> = {
|
|
|
1121
1155
|
discuss={opts.discuss} />
|
|
1122
1156
|
),
|
|
1123
1157
|
},
|
|
1158
|
+
faq: {
|
|
1159
|
+
mode: 'no-fetch',
|
|
1160
|
+
label: 'FAQ',
|
|
1161
|
+
bareInline: true,
|
|
1162
|
+
render: (chatRef, opts) => (
|
|
1163
|
+
<FaqChatCard chatRef={chatRef} isNewTab={opts.isNewTab} discuss={opts.discuss} />
|
|
1164
|
+
),
|
|
1165
|
+
},
|
|
1124
1166
|
hubspot_ticket: {
|
|
1125
1167
|
mode: 'no-fetch',
|
|
1126
1168
|
label: 'HubSpot ticket',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|