@flamingo-stack/openframe-frontend-core 0.0.467 → 0.0.468-snapshot.20260723144726
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-VERK32MO.cjs → chunk-2WZAR2MB.cjs} +37 -37
- package/dist/{chunk-VERK32MO.cjs.map → chunk-2WZAR2MB.cjs.map} +1 -1
- package/dist/{chunk-G2H4AKL3.cjs → chunk-3I34MUEG.cjs} +62 -62
- package/dist/{chunk-G2H4AKL3.cjs.map → chunk-3I34MUEG.cjs.map} +1 -1
- package/dist/{chunk-WWC75D3J.cjs → chunk-3PLQWO4H.cjs} +858 -732
- package/dist/chunk-3PLQWO4H.cjs.map +1 -0
- package/dist/{chunk-4DFPQKKJ.js → chunk-3TU6QURP.js} +2 -2
- package/dist/{chunk-BIDOIPIT.js → chunk-AEM7ADDG.js} +2 -2
- package/dist/{chunk-ILZ66CS6.js → chunk-CLW2S55N.js} +4 -4
- package/dist/{chunk-G5D7NRH5.cjs → chunk-ELIY4AO2.cjs} +26 -26
- package/dist/{chunk-G5D7NRH5.cjs.map → chunk-ELIY4AO2.cjs.map} +1 -1
- package/dist/{chunk-ABU37QSG.js → chunk-EZESVVIM.js} +4 -4
- package/dist/{chunk-NYOQNYSI.js → chunk-HTSWLPMU.js} +2 -2
- package/dist/{chunk-O7LQYYUA.cjs → chunk-HVLMAT4T.cjs} +5 -5
- package/dist/{chunk-O7LQYYUA.cjs.map → chunk-HVLMAT4T.cjs.map} +1 -1
- package/dist/{chunk-3L44PPMF.js → chunk-IUMPVRSH.js} +2 -2
- package/dist/{chunk-6DZ5QOUM.cjs → chunk-J6CE6HZS.cjs} +11 -11
- package/dist/{chunk-6DZ5QOUM.cjs.map → chunk-J6CE6HZS.cjs.map} +1 -1
- package/dist/{chunk-GXXLJHQX.js → chunk-JW3UNHGW.js} +2 -2
- package/dist/{chunk-72NEN4G4.cjs → chunk-L3BWGFHT.cjs} +15 -15
- package/dist/{chunk-72NEN4G4.cjs.map → chunk-L3BWGFHT.cjs.map} +1 -1
- package/dist/{chunk-SGDXS7VT.cjs → chunk-MULVIGIN.cjs} +59 -59
- package/dist/{chunk-SGDXS7VT.cjs.map → chunk-MULVIGIN.cjs.map} +1 -1
- package/dist/{chunk-QJ7NIL6A.js → chunk-O2QOC5FA.js} +4 -4
- package/dist/{chunk-CZFPPNYV.js → chunk-P5SLNM3C.js} +5230 -5104
- package/dist/chunk-P5SLNM3C.js.map +1 -0
- package/dist/{chunk-TZSPLSDU.js → chunk-QTGYQ2U7.js} +2 -2
- package/dist/{chunk-LOWJWKM5.js → chunk-QZJN5OHK.js} +4 -4
- package/dist/{chunk-QITN43HN.cjs → chunk-TISXEAGH.cjs} +7 -7
- package/dist/{chunk-QITN43HN.cjs.map → chunk-TISXEAGH.cjs.map} +1 -1
- package/dist/{chunk-YGW7T57C.cjs → chunk-VHFH3BG6.cjs} +31 -31
- package/dist/{chunk-YGW7T57C.cjs.map → chunk-VHFH3BG6.cjs.map} +1 -1
- package/dist/{chunk-UWW4PQQS.cjs → chunk-VRJXY6TM.cjs} +26 -26
- package/dist/{chunk-UWW4PQQS.cjs.map → chunk-VRJXY6TM.cjs.map} +1 -1
- package/dist/{chunk-25YYEVSE.js → chunk-VYUEOKI6.js} +2 -2
- package/dist/{chunk-ZYPHZ3R3.cjs → chunk-X77X3RKH.cjs} +9 -9
- package/dist/{chunk-ZYPHZ3R3.cjs.map → chunk-X77X3RKH.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/chat-composer.d.ts +8 -1
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-context-memory-bar.d.ts +37 -0
- package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -0
- package/dist/components/chat/embeddable-chat.d.ts +14 -6
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +4 -2
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +3 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- 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/help-center-pages/index.cjs +20 -20
- package/dist/components/help-center-pages/index.js +11 -11
- package/dist/components/index.cjs +134 -132
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +13 -11
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/index.cjs +4 -2
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +3 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/tailwind.config.cjs +4 -0
- package/dist/tailwind.config.cjs.map +1 -1
- package/dist/tailwind.config.js +4 -0
- package/dist/tailwind.config.js.map +1 -1
- package/package.json +1 -1
- package/src/components/categories-cart.tsx +1 -1
- package/src/components/category-card.tsx +1 -1
- package/src/components/chat/chat-composer.tsx +32 -5
- package/src/components/chat/chat-context-memory-bar.tsx +159 -0
- package/src/components/chat/embeddable-chat.tsx +17 -15
- package/src/components/chat/index.ts +1 -0
- package/src/components/ui/tab-selector.tsx +8 -8
- package/tailwind.config.ts +4 -0
- package/dist/chunk-CZFPPNYV.js.map +0 -1
- package/dist/chunk-WWC75D3J.cjs.map +0 -1
- /package/dist/{chunk-4DFPQKKJ.js.map → chunk-3TU6QURP.js.map} +0 -0
- /package/dist/{chunk-BIDOIPIT.js.map → chunk-AEM7ADDG.js.map} +0 -0
- /package/dist/{chunk-ILZ66CS6.js.map → chunk-CLW2S55N.js.map} +0 -0
- /package/dist/{chunk-ABU37QSG.js.map → chunk-EZESVVIM.js.map} +0 -0
- /package/dist/{chunk-NYOQNYSI.js.map → chunk-HTSWLPMU.js.map} +0 -0
- /package/dist/{chunk-3L44PPMF.js.map → chunk-IUMPVRSH.js.map} +0 -0
- /package/dist/{chunk-GXXLJHQX.js.map → chunk-JW3UNHGW.js.map} +0 -0
- /package/dist/{chunk-QJ7NIL6A.js.map → chunk-O2QOC5FA.js.map} +0 -0
- /package/dist/{chunk-TZSPLSDU.js.map → chunk-QTGYQ2U7.js.map} +0 -0
- /package/dist/{chunk-LOWJWKM5.js.map → chunk-QZJN5OHK.js.map} +0 -0
- /package/dist/{chunk-25YYEVSE.js.map → chunk-VYUEOKI6.js.map} +0 -0
|
@@ -379,13 +379,21 @@ export interface EmbeddableChatProps {
|
|
|
379
379
|
*/
|
|
380
380
|
onGuidePromptConsumed?: () => void
|
|
381
381
|
/**
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
*
|
|
385
|
-
*
|
|
386
|
-
*
|
|
382
|
+
* CONTEXT MEMORY (Figma 271:38656) — the entities the host collected from the
|
|
383
|
+
* user's navigation history and rides out on every message. Rendered as a
|
|
384
|
+
* summary strip at the top of the composer card ("N recently viewed items in
|
|
385
|
+
* context") with a `⋯` dropdown listing them all, each removable via
|
|
386
|
+
* `onRemove`. Replaces the old under-the-header "current page context" banner.
|
|
387
|
+
*
|
|
388
|
+
* Host-owned data (it lives in the host's navigation store); the lib only
|
|
389
|
+
* places and styles it, resolving lead glyphs from `contextPicker.entityTypes`.
|
|
390
|
+
* Shown only alongside an active `contextPicker` (i.e. Mingo mode); an empty
|
|
391
|
+
* `items` array renders nothing. Keep the object identity stable (`useMemo`).
|
|
387
392
|
*/
|
|
388
|
-
|
|
393
|
+
contextMemory?: {
|
|
394
|
+
items: ChatContextItem[]
|
|
395
|
+
onRemove?: (item: ChatContextItem) => void
|
|
396
|
+
}
|
|
389
397
|
}
|
|
390
398
|
|
|
391
399
|
// =============================================================================
|
|
@@ -918,7 +926,7 @@ function EmbeddableChatInner({
|
|
|
918
926
|
renderContextItem,
|
|
919
927
|
guidePendingPrompt,
|
|
920
928
|
onGuidePromptConsumed,
|
|
921
|
-
|
|
929
|
+
contextMemory,
|
|
922
930
|
}: EmbeddableChatProps) {
|
|
923
931
|
// `shell === 'none'` means the consumer hosts us inside their own panel
|
|
924
932
|
// (e.g. AppLayoutDrawer in openframe-frontend). Several drawer-shell
|
|
@@ -2197,14 +2205,6 @@ function EmbeddableChatInner({
|
|
|
2197
2205
|
<GuideModeBanner className="animate-in fade-in-0 duration-200" />
|
|
2198
2206
|
)}
|
|
2199
2207
|
|
|
2200
|
-
{/* Mingo-mode current-page context banner (Figma 192:51006) —
|
|
2201
|
-
full-bleed row under the header naming the entity whose detail
|
|
2202
|
-
page the user is currently viewing, so they can ask Mingo to
|
|
2203
|
-
recall it. Host-rendered (it reads the host's navigation-context
|
|
2204
|
-
store) and host-gated to "has an open view"; this slot just
|
|
2205
|
-
places it, mirroring `GuideModeBanner` above. */}
|
|
2206
|
-
{activeMode === 'mingo' && mingoContextBanner}
|
|
2207
|
-
|
|
2208
2208
|
{/* Chat-panel row. In the wide Mingo layout (`splitActive`) the
|
|
2209
2209
|
dialog history is hoisted into a fixed 320px "Current Chats"
|
|
2210
2210
|
rail on the left; the stacked layout keeps it inline in the
|
|
@@ -2532,6 +2532,8 @@ function EmbeddableChatInner({
|
|
|
2532
2532
|
selectedContextItems={contextItems}
|
|
2533
2533
|
onToggleContextItem={toggleContextItem}
|
|
2534
2534
|
onRemoveContextItem={removeContextItem}
|
|
2535
|
+
contextMemoryItems={contextMemory?.items}
|
|
2536
|
+
onRemoveContextMemoryItem={contextMemory?.onRemove}
|
|
2535
2537
|
contextPickerOpen={contextPickerOpen}
|
|
2536
2538
|
onOpenContextPicker={openContextPicker}
|
|
2537
2539
|
onCloseContextPicker={closeContextPicker}
|
|
@@ -37,6 +37,7 @@ export * from './chat-header-search-field'
|
|
|
37
37
|
export * from './chat-panel-header'
|
|
38
38
|
export * from './chat-composer'
|
|
39
39
|
export * from './chat-context-picker'
|
|
40
|
+
export * from './chat-context-memory-bar'
|
|
40
41
|
export * from './context-items-list'
|
|
41
42
|
export * from './chat-archive-page'
|
|
42
43
|
export * from './model-display'
|
|
@@ -46,15 +46,15 @@ export function TabSelector({
|
|
|
46
46
|
}: TabSelectorProps) {
|
|
47
47
|
return (
|
|
48
48
|
<div
|
|
49
|
-
className={cn('flex flex-col gap-
|
|
49
|
+
className={cn('flex flex-col gap-[var(--spacing-system-xxs)]', disabled && 'opacity-50', className)}
|
|
50
50
|
aria-disabled={disabled || undefined}
|
|
51
51
|
>
|
|
52
52
|
{label && (
|
|
53
|
-
<p className="text-ods-text-primary text-
|
|
53
|
+
<p className="text-ods-text-primary text-h4">
|
|
54
54
|
{label}
|
|
55
55
|
</p>
|
|
56
56
|
)}
|
|
57
|
-
<div className="flex w-full bg-ods-bg border border-ods-border rounded-md p-
|
|
57
|
+
<div className="flex w-full bg-ods-bg border border-ods-border rounded-md p-[var(--spacing-system-xxs)] gap-[var(--spacing-system-xxs)] h-11 md:h-12">
|
|
58
58
|
{items.map((item) => {
|
|
59
59
|
const isActive = value === item.id
|
|
60
60
|
const isDisabled = disabled || item.disabled
|
|
@@ -67,10 +67,10 @@ export function TabSelector({
|
|
|
67
67
|
onClick={() => onValueChange(item.id)}
|
|
68
68
|
aria-label={!item.label ? item.ariaLabel : undefined}
|
|
69
69
|
className={cn(
|
|
70
|
-
// Bold on BOTH states — a medium↔bold
|
|
71
|
-
// and inactive tabs read as inconsistent
|
|
72
|
-
// label widths on every switch).
|
|
73
|
-
'flex flex-1 items-center justify-center gap-
|
|
70
|
+
// Bold on BOTH states (text-h3 = DM Sans bold) — a medium↔bold
|
|
71
|
+
// flip between the active and inactive tabs read as inconsistent
|
|
72
|
+
// weight (and nudged label widths on every switch).
|
|
73
|
+
'flex flex-1 items-center justify-center gap-[var(--spacing-system-xs)] rounded-xs p-[var(--spacing-system-xsf)] text-h4 transition-colors duration-200 whitespace-nowrap',
|
|
74
74
|
isDisabled
|
|
75
75
|
? isActive
|
|
76
76
|
? 'cursor-not-allowed bg-ods-bg-surface text-ods-text-secondary'
|
|
@@ -83,7 +83,7 @@ export function TabSelector({
|
|
|
83
83
|
)}
|
|
84
84
|
>
|
|
85
85
|
{item.icon && (
|
|
86
|
-
<span className="shrink-0 size-6 flex items-center justify-center">
|
|
86
|
+
<span className="shrink-0 size-4 md:size-6 flex items-center justify-center">
|
|
87
87
|
{item.icon}
|
|
88
88
|
</span>
|
|
89
89
|
)}
|
package/tailwind.config.ts
CHANGED
|
@@ -243,7 +243,11 @@ const config: Config = {
|
|
|
243
243
|
},
|
|
244
244
|
"open-yellow": {
|
|
245
245
|
DEFAULT: "var(--ods-open-yellow-base)",
|
|
246
|
+
hover: "var(--ods-open-yellow-hover)",
|
|
247
|
+
action: "var(--ods-open-yellow-action)",
|
|
246
248
|
secondary: "var(--ods-open-yellow-secondary)",
|
|
249
|
+
"secondary-hover": "var(--ods-open-yellow-secondary-hover)",
|
|
250
|
+
"secondary-action": "var(--ods-open-yellow-secondary-action)",
|
|
247
251
|
light: "var(--ods-open-yellow-light)",
|
|
248
252
|
"light-hover": "var(--ods-open-yellow-light-hover)",
|
|
249
253
|
"light-action": "var(--ods-open-yellow-light-action)",
|