@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.
Files changed (106) hide show
  1. package/dist/{chunk-VERK32MO.cjs → chunk-2WZAR2MB.cjs} +37 -37
  2. package/dist/{chunk-VERK32MO.cjs.map → chunk-2WZAR2MB.cjs.map} +1 -1
  3. package/dist/{chunk-G2H4AKL3.cjs → chunk-3I34MUEG.cjs} +62 -62
  4. package/dist/{chunk-G2H4AKL3.cjs.map → chunk-3I34MUEG.cjs.map} +1 -1
  5. package/dist/{chunk-WWC75D3J.cjs → chunk-3PLQWO4H.cjs} +858 -732
  6. package/dist/chunk-3PLQWO4H.cjs.map +1 -0
  7. package/dist/{chunk-4DFPQKKJ.js → chunk-3TU6QURP.js} +2 -2
  8. package/dist/{chunk-BIDOIPIT.js → chunk-AEM7ADDG.js} +2 -2
  9. package/dist/{chunk-ILZ66CS6.js → chunk-CLW2S55N.js} +4 -4
  10. package/dist/{chunk-G5D7NRH5.cjs → chunk-ELIY4AO2.cjs} +26 -26
  11. package/dist/{chunk-G5D7NRH5.cjs.map → chunk-ELIY4AO2.cjs.map} +1 -1
  12. package/dist/{chunk-ABU37QSG.js → chunk-EZESVVIM.js} +4 -4
  13. package/dist/{chunk-NYOQNYSI.js → chunk-HTSWLPMU.js} +2 -2
  14. package/dist/{chunk-O7LQYYUA.cjs → chunk-HVLMAT4T.cjs} +5 -5
  15. package/dist/{chunk-O7LQYYUA.cjs.map → chunk-HVLMAT4T.cjs.map} +1 -1
  16. package/dist/{chunk-3L44PPMF.js → chunk-IUMPVRSH.js} +2 -2
  17. package/dist/{chunk-6DZ5QOUM.cjs → chunk-J6CE6HZS.cjs} +11 -11
  18. package/dist/{chunk-6DZ5QOUM.cjs.map → chunk-J6CE6HZS.cjs.map} +1 -1
  19. package/dist/{chunk-GXXLJHQX.js → chunk-JW3UNHGW.js} +2 -2
  20. package/dist/{chunk-72NEN4G4.cjs → chunk-L3BWGFHT.cjs} +15 -15
  21. package/dist/{chunk-72NEN4G4.cjs.map → chunk-L3BWGFHT.cjs.map} +1 -1
  22. package/dist/{chunk-SGDXS7VT.cjs → chunk-MULVIGIN.cjs} +59 -59
  23. package/dist/{chunk-SGDXS7VT.cjs.map → chunk-MULVIGIN.cjs.map} +1 -1
  24. package/dist/{chunk-QJ7NIL6A.js → chunk-O2QOC5FA.js} +4 -4
  25. package/dist/{chunk-CZFPPNYV.js → chunk-P5SLNM3C.js} +5230 -5104
  26. package/dist/chunk-P5SLNM3C.js.map +1 -0
  27. package/dist/{chunk-TZSPLSDU.js → chunk-QTGYQ2U7.js} +2 -2
  28. package/dist/{chunk-LOWJWKM5.js → chunk-QZJN5OHK.js} +4 -4
  29. package/dist/{chunk-QITN43HN.cjs → chunk-TISXEAGH.cjs} +7 -7
  30. package/dist/{chunk-QITN43HN.cjs.map → chunk-TISXEAGH.cjs.map} +1 -1
  31. package/dist/{chunk-YGW7T57C.cjs → chunk-VHFH3BG6.cjs} +31 -31
  32. package/dist/{chunk-YGW7T57C.cjs.map → chunk-VHFH3BG6.cjs.map} +1 -1
  33. package/dist/{chunk-UWW4PQQS.cjs → chunk-VRJXY6TM.cjs} +26 -26
  34. package/dist/{chunk-UWW4PQQS.cjs.map → chunk-VRJXY6TM.cjs.map} +1 -1
  35. package/dist/{chunk-25YYEVSE.js → chunk-VYUEOKI6.js} +2 -2
  36. package/dist/{chunk-ZYPHZ3R3.cjs → chunk-X77X3RKH.cjs} +9 -9
  37. package/dist/{chunk-ZYPHZ3R3.cjs.map → chunk-X77X3RKH.cjs.map} +1 -1
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/chat-composer.d.ts +8 -1
  41. package/dist/components/chat/chat-composer.d.ts.map +1 -1
  42. package/dist/components/chat/chat-context-memory-bar.d.ts +37 -0
  43. package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -0
  44. package/dist/components/chat/embeddable-chat.d.ts +14 -6
  45. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  46. package/dist/components/chat/index.cjs +4 -2
  47. package/dist/components/chat/index.cjs.map +1 -1
  48. package/dist/components/chat/index.d.ts +1 -0
  49. package/dist/components/chat/index.d.ts.map +1 -1
  50. package/dist/components/chat/index.js +3 -1
  51. package/dist/components/contact/index.cjs +3 -3
  52. package/dist/components/contact/index.js +2 -2
  53. package/dist/components/docs/index.cjs +5 -5
  54. package/dist/components/docs/index.js +4 -4
  55. package/dist/components/embeds/index.cjs +3 -3
  56. package/dist/components/embeds/index.js +2 -2
  57. package/dist/components/faq/index.cjs +3 -3
  58. package/dist/components/faq/index.js +2 -2
  59. package/dist/components/features/index.cjs +2 -2
  60. package/dist/components/features/index.js +1 -1
  61. package/dist/components/help-center-pages/index.cjs +20 -20
  62. package/dist/components/help-center-pages/index.js +11 -11
  63. package/dist/components/index.cjs +134 -132
  64. package/dist/components/index.cjs.map +1 -1
  65. package/dist/components/index.js +13 -11
  66. package/dist/components/index.js.map +1 -1
  67. package/dist/components/navigation/index.cjs +2 -2
  68. package/dist/components/navigation/index.js +1 -1
  69. package/dist/components/onboarding-guides/index.cjs +5 -5
  70. package/dist/components/onboarding-guides/index.js +4 -4
  71. package/dist/components/related-content/index.cjs +3 -3
  72. package/dist/components/related-content/index.js +2 -2
  73. package/dist/components/tickets/index.cjs +5 -5
  74. package/dist/components/tickets/index.js +4 -4
  75. package/dist/components/ui/index.cjs +4 -2
  76. package/dist/components/ui/index.cjs.map +1 -1
  77. package/dist/components/ui/index.js +3 -1
  78. package/dist/index.cjs +4 -2
  79. package/dist/index.cjs.map +1 -1
  80. package/dist/index.js +3 -1
  81. package/dist/tailwind.config.cjs +4 -0
  82. package/dist/tailwind.config.cjs.map +1 -1
  83. package/dist/tailwind.config.js +4 -0
  84. package/dist/tailwind.config.js.map +1 -1
  85. package/package.json +1 -1
  86. package/src/components/categories-cart.tsx +1 -1
  87. package/src/components/category-card.tsx +1 -1
  88. package/src/components/chat/chat-composer.tsx +32 -5
  89. package/src/components/chat/chat-context-memory-bar.tsx +159 -0
  90. package/src/components/chat/embeddable-chat.tsx +17 -15
  91. package/src/components/chat/index.ts +1 -0
  92. package/src/components/ui/tab-selector.tsx +8 -8
  93. package/tailwind.config.ts +4 -0
  94. package/dist/chunk-CZFPPNYV.js.map +0 -1
  95. package/dist/chunk-WWC75D3J.cjs.map +0 -1
  96. /package/dist/{chunk-4DFPQKKJ.js.map → chunk-3TU6QURP.js.map} +0 -0
  97. /package/dist/{chunk-BIDOIPIT.js.map → chunk-AEM7ADDG.js.map} +0 -0
  98. /package/dist/{chunk-ILZ66CS6.js.map → chunk-CLW2S55N.js.map} +0 -0
  99. /package/dist/{chunk-ABU37QSG.js.map → chunk-EZESVVIM.js.map} +0 -0
  100. /package/dist/{chunk-NYOQNYSI.js.map → chunk-HTSWLPMU.js.map} +0 -0
  101. /package/dist/{chunk-3L44PPMF.js.map → chunk-IUMPVRSH.js.map} +0 -0
  102. /package/dist/{chunk-GXXLJHQX.js.map → chunk-JW3UNHGW.js.map} +0 -0
  103. /package/dist/{chunk-QJ7NIL6A.js.map → chunk-O2QOC5FA.js.map} +0 -0
  104. /package/dist/{chunk-TZSPLSDU.js.map → chunk-QTGYQ2U7.js.map} +0 -0
  105. /package/dist/{chunk-LOWJWKM5.js.map → chunk-QZJN5OHK.js.map} +0 -0
  106. /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
- * Host-rendered banner shown as a full-bleed row directly under the panel
383
- * header in MINGO mode only (Figma 192:51006) — e.g. a "current page context"
384
- * tag naming the entity whose detail page the user is viewing. The host owns
385
- * the data + click; pass `null`/return `null` to render nothing. Mirrors the
386
- * built-in `GuideModeBanner`, which fills the same slot in Guide mode.
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
- mingoContextBanner?: React.ReactNode
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
- mingoContextBanner,
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-1', disabled && 'opacity-50', className)}
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-h3">
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-1 gap-1 h-12">
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 flip between the active
71
- // and inactive tabs read as inconsistent weight (and nudged
72
- // label widths on every switch).
73
- 'flex flex-1 items-center justify-center gap-2 rounded-xs p-2 text-h4 font-bold transition-colors duration-200 whitespace-nowrap',
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
  )}
@@ -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)",