@flamingo-stack/openframe-frontend-core 0.0.578 → 0.0.579-1952.5335.1

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 (172) hide show
  1. package/dist/chat-protocol/decode.d.ts.map +1 -1
  2. package/dist/chat-protocol/events.d.ts +1 -47
  3. package/dist/chat-protocol/events.d.ts.map +1 -1
  4. package/dist/chat-protocol/index.cjs +0 -51
  5. package/dist/chat-protocol/index.cjs.map +1 -1
  6. package/dist/chat-protocol/index.js +1 -48
  7. package/dist/chat-protocol/index.js.map +1 -1
  8. package/dist/chat-protocol/leading-frames.d.ts +3 -9
  9. package/dist/chat-protocol/leading-frames.d.ts.map +1 -1
  10. package/dist/chat-protocol/nats-decoder.d.ts +0 -41
  11. package/dist/chat-protocol/nats-decoder.d.ts.map +1 -1
  12. package/dist/{chunk-IBSOYTGZ.js → chunk-2ML5QEDH.js} +3 -3
  13. package/dist/{chunk-NPNYQSCG.cjs → chunk-3B42TFEE.cjs} +21 -21
  14. package/dist/{chunk-NPNYQSCG.cjs.map → chunk-3B42TFEE.cjs.map} +1 -1
  15. package/dist/{chunk-POB6GNIR.cjs → chunk-3XFMM34I.cjs} +43 -43
  16. package/dist/{chunk-POB6GNIR.cjs.map → chunk-3XFMM34I.cjs.map} +1 -1
  17. package/dist/{chunk-R7OJZCE6.cjs → chunk-4C3MS2G6.cjs} +69 -69
  18. package/dist/{chunk-R7OJZCE6.cjs.map → chunk-4C3MS2G6.cjs.map} +1 -1
  19. package/dist/{chunk-G3AJXLKH.cjs → chunk-653A7FPP.cjs} +22 -22
  20. package/dist/{chunk-G3AJXLKH.cjs.map → chunk-653A7FPP.cjs.map} +1 -1
  21. package/dist/{chunk-KPE277X2.js → chunk-6QDW4CDG.js} +2 -2
  22. package/dist/{chunk-E5QAU63Y.cjs → chunk-7WKFLOC7.cjs} +9 -9
  23. package/dist/{chunk-E5QAU63Y.cjs.map → chunk-7WKFLOC7.cjs.map} +1 -1
  24. package/dist/{chunk-ABWA3W3M.cjs → chunk-AAHKPPGQ.cjs} +32 -32
  25. package/dist/{chunk-ABWA3W3M.cjs.map → chunk-AAHKPPGQ.cjs.map} +1 -1
  26. package/dist/{chunk-JJH4H4CJ.js → chunk-AT4WAFJO.js} +5 -5
  27. package/dist/{chunk-5IAGT5LB.js → chunk-C4KL7OQI.js} +2 -2
  28. package/dist/{chunk-SETRICAM.cjs → chunk-C7Q2PVHD.cjs} +4 -4
  29. package/dist/{chunk-SETRICAM.cjs.map → chunk-C7Q2PVHD.cjs.map} +1 -1
  30. package/dist/{chunk-AJ67T7LI.js → chunk-CGVPUA4X.js} +3 -3
  31. package/dist/{chunk-BFJBE4PQ.js → chunk-CSBNQJSI.js} +4 -4
  32. package/dist/{chunk-LPFA56WY.js → chunk-DBP7S75Q.js} +1317 -1480
  33. package/dist/chunk-DBP7S75Q.js.map +1 -0
  34. package/dist/{chunk-KQBYQBQN.cjs → chunk-DGB2FLFH.cjs} +10 -10
  35. package/dist/{chunk-KQBYQBQN.cjs.map → chunk-DGB2FLFH.cjs.map} +1 -1
  36. package/dist/{chunk-GOEBT72V.cjs → chunk-EVTRRDIH.cjs} +15 -15
  37. package/dist/{chunk-GOEBT72V.cjs.map → chunk-EVTRRDIH.cjs.map} +1 -1
  38. package/dist/{chunk-UQPA2XT7.cjs → chunk-GP2QLZIN.cjs} +24 -24
  39. package/dist/{chunk-UQPA2XT7.cjs.map → chunk-GP2QLZIN.cjs.map} +1 -1
  40. package/dist/{chunk-KLG3MGRP.js → chunk-KXLJT5U5.js} +3 -3
  41. package/dist/{chunk-SNZZ6Q6G.js → chunk-L66XBQM6.js} +2 -2
  42. package/dist/{chunk-SHJXC7A4.js → chunk-NWAUHBYH.js} +3 -3
  43. package/dist/{chunk-YOYHJQX3.cjs → chunk-OCSAB6NT.cjs} +5 -5
  44. package/dist/{chunk-YOYHJQX3.cjs.map → chunk-OCSAB6NT.cjs.map} +1 -1
  45. package/dist/{chunk-5NG2P2KI.js → chunk-PFTEG6L7.js} +5 -5
  46. package/dist/{chunk-BLPGMX2L.cjs → chunk-PITZMTGE.cjs} +159 -159
  47. package/dist/{chunk-BLPGMX2L.cjs.map → chunk-PITZMTGE.cjs.map} +1 -1
  48. package/dist/{chunk-ZBVMPVJF.js → chunk-QOPQ6BCA.js} +3 -3
  49. package/dist/{chunk-IWK2NFVR.js → chunk-RXZWUJEB.js} +2 -2
  50. package/dist/{chunk-OIJWSYKP.cjs → chunk-SY5HCZZO.cjs} +3 -3
  51. package/dist/{chunk-OIJWSYKP.cjs.map → chunk-SY5HCZZO.cjs.map} +1 -1
  52. package/dist/{chunk-ESXUEMPA.js → chunk-TYJITV3H.js} +2 -2
  53. package/dist/{chunk-M7FNT5AC.cjs → chunk-VLRXLTR4.cjs} +167 -330
  54. package/dist/chunk-VLRXLTR4.cjs.map +1 -0
  55. package/dist/{chunk-WUZQYZXI.cjs → chunk-WHSSI3S7.cjs} +3 -3
  56. package/dist/{chunk-WUZQYZXI.cjs.map → chunk-WHSSI3S7.cjs.map} +1 -1
  57. package/dist/{chunk-LEUJNBWU.js → chunk-XJ45MHWI.js} +6 -6
  58. package/dist/{chunk-NJDL7F7K.cjs → chunk-YYEVFC3K.cjs} +10 -10
  59. package/dist/{chunk-NJDL7F7K.cjs.map → chunk-YYEVFC3K.cjs.map} +1 -1
  60. package/dist/{chunk-QHGARH6P.js → chunk-ZCEQLHU3.js} +5 -5
  61. package/dist/components/case-studies/index.cjs +9 -9
  62. package/dist/components/case-studies/index.js +3 -3
  63. package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
  64. package/dist/components/chat/index.cjs +2 -10
  65. package/dist/components/chat/index.cjs.map +1 -1
  66. package/dist/components/chat/index.d.ts +0 -1
  67. package/dist/components/chat/index.d.ts.map +1 -1
  68. package/dist/components/chat/index.js +1 -9
  69. package/dist/components/chat/stream/chat-stream-reducer.d.ts +0 -9
  70. package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
  71. package/dist/components/chat/stream/delta-batcher.d.ts +3 -3
  72. package/dist/components/chat/stream/delta-batcher.d.ts.map +1 -1
  73. package/dist/components/chat/stream/message-mutations.d.ts.map +1 -1
  74. package/dist/components/chat/types/component.types.d.ts +0 -6
  75. package/dist/components/chat/types/component.types.d.ts.map +1 -1
  76. package/dist/components/chat/types/message.types.d.ts +2 -30
  77. package/dist/components/chat/types/message.types.d.ts.map +1 -1
  78. package/dist/components/chat/types/network.types.d.ts +1 -3
  79. package/dist/components/chat/types/network.types.d.ts.map +1 -1
  80. package/dist/components/chat/types/processing.types.d.ts +1 -4
  81. package/dist/components/chat/types/processing.types.d.ts.map +1 -1
  82. package/dist/components/chat/utils/approval-display.d.ts +8 -36
  83. package/dist/components/chat/utils/approval-display.d.ts.map +1 -1
  84. package/dist/components/chat/utils/extract-incomplete-message-state.d.ts.map +1 -1
  85. package/dist/components/chat/utils/index.d.ts +1 -1
  86. package/dist/components/chat/utils/index.d.ts.map +1 -1
  87. package/dist/components/chat/utils/message-segment-accumulator.d.ts +4 -16
  88. package/dist/components/chat/utils/message-segment-accumulator.d.ts.map +1 -1
  89. package/dist/components/chat/utils/process-historical-messages.d.ts.map +1 -1
  90. package/dist/components/chat/utils/resolve-fetched-card-href.d.ts +1 -1
  91. package/dist/components/contact/index.cjs +4 -4
  92. package/dist/components/contact/index.js +3 -3
  93. package/dist/components/docs/index.cjs +7 -7
  94. package/dist/components/docs/index.js +6 -6
  95. package/dist/components/embeds/index.cjs +4 -4
  96. package/dist/components/embeds/index.js +3 -3
  97. package/dist/components/faq/index.cjs +4 -4
  98. package/dist/components/faq/index.js +3 -3
  99. package/dist/components/features/index.cjs +3 -3
  100. package/dist/components/features/index.js +2 -2
  101. package/dist/components/help-center-pages/index.cjs +23 -23
  102. package/dist/components/help-center-pages/index.js +14 -14
  103. package/dist/components/index.cjs +121 -129
  104. package/dist/components/index.cjs.map +1 -1
  105. package/dist/components/index.js +13 -21
  106. package/dist/components/index.js.map +1 -1
  107. package/dist/components/meeting-scheduler/index.cjs +21 -21
  108. package/dist/components/meeting-scheduler/index.js +2 -2
  109. package/dist/components/navigation/index.cjs +6 -6
  110. package/dist/components/navigation/index.js +5 -5
  111. package/dist/components/onboarding-guides/index.cjs +6 -6
  112. package/dist/components/onboarding-guides/index.js +5 -5
  113. package/dist/components/tickets/index.cjs +7 -7
  114. package/dist/components/tickets/index.js +6 -6
  115. package/dist/components/ui/index.cjs +3 -11
  116. package/dist/components/ui/index.cjs.map +1 -1
  117. package/dist/components/ui/index.js +2 -10
  118. package/dist/index.cjs +7 -15
  119. package/dist/index.cjs.map +1 -1
  120. package/dist/index.js +6 -14
  121. package/dist/index.js.map +1 -1
  122. package/dist/schemas/meeting-booking-schema.d.ts +2 -2
  123. package/dist/utils/index.cjs.map +1 -1
  124. package/dist/utils/index.js.map +1 -1
  125. package/package.json +1 -1
  126. package/src/chat-protocol/__tests__/__snapshots__/nats-decoder-golden.test.ts.snap +0 -80
  127. package/src/chat-protocol/__tests__/nats-decoder-golden.test.ts +1 -118
  128. package/src/chat-protocol/decode.ts +3 -4
  129. package/src/chat-protocol/events.ts +0 -51
  130. package/src/chat-protocol/leading-frames.ts +3 -9
  131. package/src/chat-protocol/nats-decoder.ts +1 -110
  132. package/src/components/chat/__tests__/chat-pending-turn.test.tsx +0 -19
  133. package/src/components/chat/chat-message-enhanced.tsx +1 -13
  134. package/src/components/chat/index.ts +0 -1
  135. package/src/components/chat/stream/__tests__/chat-stream-reducer.test.ts +0 -90
  136. package/src/components/chat/stream/chat-dialog-store.ts +1 -1
  137. package/src/components/chat/stream/chat-stream-reducer.ts +11 -49
  138. package/src/components/chat/stream/delta-batcher.ts +4 -9
  139. package/src/components/chat/stream/message-mutations.ts +0 -2
  140. package/src/components/chat/types/component.types.ts +0 -9
  141. package/src/components/chat/types/message.types.ts +0 -32
  142. package/src/components/chat/types/network.types.ts +1 -3
  143. package/src/components/chat/types/processing.types.ts +1 -4
  144. package/src/components/chat/utils/__tests__/process-historical-messages-approvals.test.ts +0 -93
  145. package/src/components/chat/utils/__tests__/process-historical-messages-golden.test.ts +1 -78
  146. package/src/components/chat/utils/approval-display.ts +8 -53
  147. package/src/components/chat/utils/extract-incomplete-message-state.ts +0 -1
  148. package/src/components/chat/utils/index.ts +1 -6
  149. package/src/components/chat/utils/message-segment-accumulator.ts +3 -37
  150. package/src/components/chat/utils/process-historical-messages.ts +7 -44
  151. package/src/components/chat/utils/resolve-fetched-card-href.ts +1 -1
  152. package/src/stories/ChatMessageEnhanced.stories.tsx +3 -7
  153. package/dist/chunk-LPFA56WY.js.map +0 -1
  154. package/dist/chunk-M7FNT5AC.cjs.map +0 -1
  155. package/dist/components/chat/guide-display.d.ts +0 -14
  156. package/dist/components/chat/guide-display.d.ts.map +0 -1
  157. package/src/components/chat/guide-display.tsx +0 -42
  158. /package/dist/{chunk-IBSOYTGZ.js.map → chunk-2ML5QEDH.js.map} +0 -0
  159. /package/dist/{chunk-KPE277X2.js.map → chunk-6QDW4CDG.js.map} +0 -0
  160. /package/dist/{chunk-JJH4H4CJ.js.map → chunk-AT4WAFJO.js.map} +0 -0
  161. /package/dist/{chunk-5IAGT5LB.js.map → chunk-C4KL7OQI.js.map} +0 -0
  162. /package/dist/{chunk-AJ67T7LI.js.map → chunk-CGVPUA4X.js.map} +0 -0
  163. /package/dist/{chunk-BFJBE4PQ.js.map → chunk-CSBNQJSI.js.map} +0 -0
  164. /package/dist/{chunk-KLG3MGRP.js.map → chunk-KXLJT5U5.js.map} +0 -0
  165. /package/dist/{chunk-SNZZ6Q6G.js.map → chunk-L66XBQM6.js.map} +0 -0
  166. /package/dist/{chunk-SHJXC7A4.js.map → chunk-NWAUHBYH.js.map} +0 -0
  167. /package/dist/{chunk-5NG2P2KI.js.map → chunk-PFTEG6L7.js.map} +0 -0
  168. /package/dist/{chunk-ZBVMPVJF.js.map → chunk-QOPQ6BCA.js.map} +0 -0
  169. /package/dist/{chunk-IWK2NFVR.js.map → chunk-RXZWUJEB.js.map} +0 -0
  170. /package/dist/{chunk-ESXUEMPA.js.map → chunk-TYJITV3H.js.map} +0 -0
  171. /package/dist/{chunk-LEUJNBWU.js.map → chunk-XJ45MHWI.js.map} +0 -0
  172. /package/dist/{chunk-QHGARH6P.js.map → chunk-ZCEQLHU3.js.map} +0 -0
@@ -1,14 +0,0 @@
1
- import type { GuideDisplayProps } from './types';
2
- /**
3
- * `GUIDE` segment — the assistant's how-to/documentation answer, framed as a
4
- * titled card instead of a bare paragraph.
5
- *
6
- * Chrome only: the caller renders the markdown body and passes it as children,
7
- * so a guide goes through the SAME body pipeline as a text segment
8
- * (`[card://]` splitting + hoisted entity cards + mention chips). Rendering the
9
- * raw markdown here instead would bypass that plan and degrade every card
10
- * marker inside a guide to a bare title.
11
- */
12
- declare const GuideDisplay: import("react").ForwardRefExoticComponent<GuideDisplayProps & import("react").RefAttributes<HTMLDivElement>>;
13
- export { GuideDisplay };
14
- //# sourceMappingURL=guide-display.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guide-display.d.ts","sourceRoot":"","sources":["../../../src/components/chat/guide-display.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAIjD;;;;;;;;;GASG;AACH,QAAA,MAAM,YAAY,8GAiBhB,CAAC;AAIH,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,42 +0,0 @@
1
- 'use client';
2
-
3
- import { forwardRef } from 'react';
4
-
5
- import { cn } from '../../utils/cn';
6
- import { CompassIcon } from '../icons-v2-generated';
7
- import type { GuideDisplayProps } from './types';
8
-
9
- const GUIDE_LABEL = 'OpenFrame Guide';
10
-
11
- /**
12
- * `GUIDE` segment — the assistant's how-to/documentation answer, framed as a
13
- * titled card instead of a bare paragraph.
14
- *
15
- * Chrome only: the caller renders the markdown body and passes it as children,
16
- * so a guide goes through the SAME body pipeline as a text segment
17
- * (`[card://]` splitting + hoisted entity cards + mention chips). Rendering the
18
- * raw markdown here instead would bypass that plan and degrade every card
19
- * marker inside a guide to a bare title.
20
- */
21
- const GuideDisplay = forwardRef<HTMLDivElement, GuideDisplayProps>(({ className, children, ...props }, ref) => {
22
- return (
23
- <div
24
- ref={ref}
25
- className={cn(
26
- 'flex flex-col gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-m)]',
27
- className,
28
- )}
29
- {...props}
30
- >
31
- <div className="flex items-center gap-[var(--spacing-system-xs)]">
32
- <CompassIcon size={16} className="shrink-0 text-ods-open-yellow" />
33
- <span className="text-ods-open-yellow text-h5">{GUIDE_LABEL}</span>
34
- </div>
35
- <div className="w-full min-w-0 break-words text-ods-text-primary text-h4">{children}</div>
36
- </div>
37
- );
38
- });
39
-
40
- GuideDisplay.displayName = 'GuideDisplay';
41
-
42
- export { GuideDisplay };