@flamingo-stack/openframe-frontend-core 0.0.288 → 0.0.289
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-6CSW5TMS.cjs → chunk-6NL7TTDR.cjs} +23 -23
- package/dist/{chunk-6CSW5TMS.cjs.map → chunk-6NL7TTDR.cjs.map} +1 -1
- package/dist/{chunk-TY2EB7VK.js → chunk-7YLTJXMQ.js} +2 -2
- package/dist/{chunk-ZYLQMCHW.js → chunk-BZR546EB.js} +2 -2
- package/dist/{chunk-JQ4I743L.cjs → chunk-DFAMTCC4.cjs} +5 -5
- package/dist/{chunk-JQ4I743L.cjs.map → chunk-DFAMTCC4.cjs.map} +1 -1
- package/dist/{chunk-RG6FNZUA.cjs → chunk-HIABEYRE.cjs} +3 -3
- package/dist/{chunk-RG6FNZUA.cjs.map → chunk-HIABEYRE.cjs.map} +1 -1
- package/dist/{chunk-OXC72UIP.cjs → chunk-KLXCXNLW.cjs} +7 -5
- package/dist/chunk-KLXCXNLW.cjs.map +1 -0
- package/dist/{chunk-6AW25OS6.cjs → chunk-LZQ4HSOR.cjs} +25 -25
- package/dist/{chunk-6AW25OS6.cjs.map → chunk-LZQ4HSOR.cjs.map} +1 -1
- package/dist/{chunk-DVUFNTI2.cjs → chunk-OV3ZCU6X.cjs} +4 -4
- package/dist/{chunk-DVUFNTI2.cjs.map → chunk-OV3ZCU6X.cjs.map} +1 -1
- package/dist/{chunk-EFYXPR43.js → chunk-P2SO7ADJ.js} +7 -5
- package/dist/{chunk-EFYXPR43.js.map → chunk-P2SO7ADJ.js.map} +1 -1
- package/dist/{chunk-GJDXIVEQ.js → chunk-PYHCHGM5.js} +2 -2
- package/dist/{chunk-RWCA2ZQK.js → chunk-Q6S6DCVP.js} +2 -2
- package/dist/{chunk-AISIZLZP.js → chunk-UBFYGWFP.js} +2 -2
- package/dist/components/chat/hooks/use-realtime-chunk-processor.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/chat/types/api.types.d.ts +11 -4
- package/dist/components/chat/types/api.types.d.ts.map +1 -1
- package/dist/components/chat/utils/history-merge.d.ts +5 -1
- package/dist/components/chat/utils/history-merge.d.ts.map +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/hooks/use-realtime-chunk-processor.ts +3 -1
- package/src/components/chat/types/api.types.ts +9 -6
- package/src/components/chat/utils/__tests__/history-merge.test.ts +62 -0
- package/src/components/chat/utils/history-merge.ts +5 -1
- package/dist/chunk-OXC72UIP.cjs.map +0 -1
- /package/dist/{chunk-TY2EB7VK.js.map → chunk-7YLTJXMQ.js.map} +0 -0
- /package/dist/{chunk-ZYLQMCHW.js.map → chunk-BZR546EB.js.map} +0 -0
- /package/dist/{chunk-GJDXIVEQ.js.map → chunk-PYHCHGM5.js.map} +0 -0
- /package/dist/{chunk-RWCA2ZQK.js.map → chunk-Q6S6DCVP.js.map} +0 -0
- /package/dist/{chunk-AISIZLZP.js.map → chunk-UBFYGWFP.js.map} +0 -0
|
@@ -34809,14 +34809,15 @@ function useRealtimeChunkProcessor(options) {
|
|
|
34809
34809
|
break;
|
|
34810
34810
|
}
|
|
34811
34811
|
case "system": {
|
|
34812
|
-
callbacks.onSystemMessage?.(action.text);
|
|
34812
|
+
callbacks.onSystemMessage?.(action.text, { streamSeq });
|
|
34813
34813
|
break;
|
|
34814
34814
|
}
|
|
34815
34815
|
case "direct_message": {
|
|
34816
34816
|
callbacks.onDirectMessage?.(action.text, {
|
|
34817
34817
|
ownerType: action.ownerType,
|
|
34818
34818
|
displayName: action.displayName,
|
|
34819
|
-
userId: action.userId
|
|
34819
|
+
userId: action.userId,
|
|
34820
|
+
streamSeq
|
|
34820
34821
|
});
|
|
34821
34822
|
break;
|
|
34822
34823
|
}
|
|
@@ -34824,7 +34825,8 @@ function useRealtimeChunkProcessor(options) {
|
|
|
34824
34825
|
callbacks.onUserMessage?.(action.text, {
|
|
34825
34826
|
ownerType: action.ownerType,
|
|
34826
34827
|
displayName: action.displayName,
|
|
34827
|
-
userId: action.userId
|
|
34828
|
+
userId: action.userId,
|
|
34829
|
+
streamSeq
|
|
34828
34830
|
});
|
|
34829
34831
|
break;
|
|
34830
34832
|
case "token_usage":
|
|
@@ -37489,7 +37491,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
37489
37491
|
}
|
|
37490
37492
|
|
|
37491
37493
|
// src/components/chat/utils/history-merge.ts
|
|
37492
|
-
var SYNTHETIC_REALTIME_ID_PREFIXES = ["assistant-", "user-", "error-"];
|
|
37494
|
+
var SYNTHETIC_REALTIME_ID_PREFIXES = ["assistant-", "user-", "direct-", "system-", "error-"];
|
|
37493
37495
|
function isSyntheticRealtimeId(id) {
|
|
37494
37496
|
return SYNTHETIC_REALTIME_ID_PREFIXES.some((prefix) => id.startsWith(prefix));
|
|
37495
37497
|
}
|
|
@@ -39434,4 +39436,4 @@ export {
|
|
|
39434
39436
|
LogsList,
|
|
39435
39437
|
assets
|
|
39436
39438
|
};
|
|
39437
|
-
//# sourceMappingURL=chunk-
|
|
39439
|
+
//# sourceMappingURL=chunk-P2SO7ADJ.js.map
|