@flamingo-stack/openframe-frontend-core 0.0.537 → 0.0.538-1791.4733.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.
- package/dist/chat-protocol/events.d.ts +15 -1
- package/dist/chat-protocol/events.d.ts.map +1 -1
- package/dist/chat-protocol/index.cjs +15 -0
- package/dist/chat-protocol/index.cjs.map +1 -1
- package/dist/chat-protocol/index.js +15 -0
- package/dist/chat-protocol/index.js.map +1 -1
- package/dist/chat-protocol/nats-decoder.d.ts.map +1 -1
- package/dist/{chunk-7FXZHI5D.js → chunk-4BK5Z763.js} +2 -2
- package/dist/{chunk-C4LEH3VE.js → chunk-56QT3JBZ.js} +2 -2
- package/dist/{chunk-LFMIAPBP.js → chunk-67CKAX7Z.js} +2 -2
- package/dist/{chunk-CZHCXCWL.js → chunk-73W4L656.js} +2 -2
- package/dist/{chunk-TCSSYTDN.js → chunk-7CBQWZAH.js} +4 -4
- package/dist/{chunk-YIDGB5KP.js → chunk-BNF6FZLP.js} +4 -4
- package/dist/{chunk-CATY4DVR.cjs → chunk-BUKQ6B65.cjs} +87 -87
- package/dist/{chunk-CATY4DVR.cjs.map → chunk-BUKQ6B65.cjs.map} +1 -1
- package/dist/{chunk-KKZ2QMQD.cjs → chunk-C6776X43.cjs} +26 -26
- package/dist/{chunk-KKZ2QMQD.cjs.map → chunk-C6776X43.cjs.map} +1 -1
- package/dist/{chunk-MOIHWYSA.js → chunk-C6NKOHFW.js} +2 -2
- package/dist/{chunk-HRC56BQW.js → chunk-EH6LNTOT.js} +5 -5
- package/dist/{chunk-YPI3JIR6.cjs → chunk-F4QOOHZL.cjs} +11 -11
- package/dist/{chunk-YPI3JIR6.cjs.map → chunk-F4QOOHZL.cjs.map} +1 -1
- package/dist/{chunk-3GXMS4OP.js → chunk-KUKHUECE.js} +2 -2
- package/dist/{chunk-DHSVBGOX.cjs → chunk-LJW7B6GY.cjs} +9 -9
- package/dist/{chunk-DHSVBGOX.cjs.map → chunk-LJW7B6GY.cjs.map} +1 -1
- package/dist/{chunk-WJIBB3KT.cjs → chunk-MGYNZ7SA.cjs} +31 -31
- package/dist/{chunk-WJIBB3KT.cjs.map → chunk-MGYNZ7SA.cjs.map} +1 -1
- package/dist/{chunk-OYTM3YXO.cjs → chunk-NE67LT3B.cjs} +7 -7
- package/dist/{chunk-OYTM3YXO.cjs.map → chunk-NE67LT3B.cjs.map} +1 -1
- package/dist/{chunk-SKIM263K.cjs → chunk-NUHDE7CB.cjs} +37 -37
- package/dist/{chunk-SKIM263K.cjs.map → chunk-NUHDE7CB.cjs.map} +1 -1
- package/dist/{chunk-MDP3YKFI.cjs → chunk-PFGRHRBO.cjs} +5 -5
- package/dist/{chunk-MDP3YKFI.cjs.map → chunk-PFGRHRBO.cjs.map} +1 -1
- package/dist/{chunk-SGNWSUL3.js → chunk-QK4SQAYG.js} +6 -6
- package/dist/{chunk-YMPRMZDD.cjs → chunk-QQ3HUSDJ.cjs} +599 -328
- package/dist/chunk-QQ3HUSDJ.cjs.map +1 -0
- package/dist/{chunk-QPPG3KHW.cjs → chunk-QU6P2U2Q.cjs} +3 -3
- package/dist/{chunk-QPPG3KHW.cjs.map → chunk-QU6P2U2Q.cjs.map} +1 -1
- package/dist/{chunk-V4D5MPB7.cjs → chunk-R3XO2KO4.cjs} +4 -4
- package/dist/{chunk-V4D5MPB7.cjs.map → chunk-R3XO2KO4.cjs.map} +1 -1
- package/dist/{chunk-7EHGP4QK.js → chunk-RBBWKSRC.js} +4638 -4367
- package/dist/chunk-RBBWKSRC.js.map +1 -0
- package/dist/{chunk-VSIHO7DJ.cjs → chunk-TWVRCPWY.cjs} +61 -61
- package/dist/{chunk-VSIHO7DJ.cjs.map → chunk-TWVRCPWY.cjs.map} +1 -1
- package/dist/{chunk-CQQXB25K.js → chunk-UBEVU6LS.js} +2 -2
- package/dist/{chunk-7WNJ7RFO.cjs → chunk-YO5BWF4L.cjs} +14 -14
- package/dist/{chunk-7WNJ7RFO.cjs.map → chunk-YO5BWF4L.cjs.map} +1 -1
- package/dist/{chunk-WHUEUACV.js → chunk-ZBRKTF6S.js} +2 -2
- package/dist/{chunk-5JPSQOZQ.js → chunk-ZHW5VLHY.js} +2 -2
- package/dist/{chunk-YEKXTTAC.cjs → chunk-ZNWW4WAT.cjs} +26 -26
- package/dist/{chunk-YEKXTTAC.cjs.map → chunk-ZNWW4WAT.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/ai-assistant-info.d.ts +31 -0
- package/dist/components/chat/ai-assistant-info.d.ts.map +1 -0
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +8 -2
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.d.ts +2 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +7 -1
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/stream/message-mutations.d.ts.map +1 -1
- package/dist/components/chat/ticket-escalated-message.d.ts +2 -8
- package/dist/components/chat/ticket-escalated-message.d.ts.map +1 -1
- package/dist/components/chat/ticket-event-message.d.ts +24 -0
- package/dist/components/chat/ticket-event-message.d.ts.map +1 -0
- package/dist/components/chat/types/message.types.d.ts +51 -2
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/utils/message-segment-accumulator.d.ts +13 -1
- package/dist/components/chat/utils/message-segment-accumulator.d.ts.map +1 -1
- package/dist/components/chat/utils/process-historical-messages.d.ts.map +1 -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 +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +144 -132
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +23 -11
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- 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 +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +14 -2
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +13 -1
- package/dist/components/ui/reopen-ticket-modal.d.ts +42 -0
- package/dist/components/ui/reopen-ticket-modal.d.ts.map +1 -0
- package/dist/components/ui/take-over-ticket-modal.d.ts +5 -0
- package/dist/components/ui/take-over-ticket-modal.d.ts.map +1 -1
- package/dist/index.cjs +14 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/chat-protocol/__tests__/__snapshots__/nats-decoder-golden.test.ts.snap +44 -0
- package/src/chat-protocol/__tests__/nats-decoder-golden.test.ts +32 -0
- package/src/chat-protocol/events.ts +16 -0
- package/src/chat-protocol/nats-decoder.ts +27 -0
- package/src/components/chat/__tests__/ticket-event.test.ts +194 -0
- package/src/components/chat/ai-assistant-info.tsx +71 -0
- package/src/components/chat/chat-message-enhanced.tsx +3 -0
- package/src/components/chat/index.ts +2 -0
- package/src/components/chat/stream/chat-stream-reducer.ts +19 -0
- package/src/components/chat/stream/message-mutations.ts +5 -0
- package/src/components/chat/ticket-escalated-message.tsx +10 -32
- package/src/components/chat/ticket-event-message.tsx +79 -0
- package/src/components/chat/types/message.types.ts +60 -1
- package/src/components/chat/utils/message-segment-accumulator.ts +41 -0
- package/src/components/chat/utils/process-historical-messages.ts +31 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/reopen-ticket-modal.tsx +174 -0
- package/src/components/ui/take-over-ticket-modal.tsx +7 -4
- package/src/stories/ReopenTicketModal.stories.tsx +114 -0
- package/src/stories/TicketEventMessage.stories.tsx +100 -0
- package/dist/chunk-7EHGP4QK.js.map +0 -1
- package/dist/chunk-YMPRMZDD.cjs.map +0 -1
- /package/dist/{chunk-7FXZHI5D.js.map → chunk-4BK5Z763.js.map} +0 -0
- /package/dist/{chunk-C4LEH3VE.js.map → chunk-56QT3JBZ.js.map} +0 -0
- /package/dist/{chunk-LFMIAPBP.js.map → chunk-67CKAX7Z.js.map} +0 -0
- /package/dist/{chunk-CZHCXCWL.js.map → chunk-73W4L656.js.map} +0 -0
- /package/dist/{chunk-TCSSYTDN.js.map → chunk-7CBQWZAH.js.map} +0 -0
- /package/dist/{chunk-YIDGB5KP.js.map → chunk-BNF6FZLP.js.map} +0 -0
- /package/dist/{chunk-MOIHWYSA.js.map → chunk-C6NKOHFW.js.map} +0 -0
- /package/dist/{chunk-HRC56BQW.js.map → chunk-EH6LNTOT.js.map} +0 -0
- /package/dist/{chunk-3GXMS4OP.js.map → chunk-KUKHUECE.js.map} +0 -0
- /package/dist/{chunk-SGNWSUL3.js.map → chunk-QK4SQAYG.js.map} +0 -0
- /package/dist/{chunk-CQQXB25K.js.map → chunk-UBEVU6LS.js.map} +0 -0
- /package/dist/{chunk-WHUEUACV.js.map → chunk-ZBRKTF6S.js.map} +0 -0
- /package/dist/{chunk-5JPSQOZQ.js.map → chunk-ZHW5VLHY.js.map} +0 -0
|
@@ -264,6 +264,7 @@ var MESSAGE_TYPE = {
|
|
|
264
264
|
APPROVAL_RESULT: "APPROVAL_RESULT",
|
|
265
265
|
ESCALATION_OFFER: "ESCALATION_OFFER",
|
|
266
266
|
TICKET_ESCALATED: "TICKET_ESCALATED",
|
|
267
|
+
TICKET_EVENT: "TICKET_EVENT",
|
|
267
268
|
ERROR: "ERROR",
|
|
268
269
|
MESSAGE_START: "MESSAGE_START",
|
|
269
270
|
MESSAGE_END: "MESSAGE_END",
|
|
@@ -489,6 +490,20 @@ function decodeNatsChunk(chunk) {
|
|
|
489
490
|
...seq
|
|
490
491
|
};
|
|
491
492
|
}
|
|
493
|
+
case MESSAGE_TYPE.TICKET_EVENT: {
|
|
494
|
+
const kind = typeof data.kind === "string" ? data.kind.trim() : "";
|
|
495
|
+
if (!kind) return null;
|
|
496
|
+
const eventSeq = seq.seq !== void 0 ? seq : typeof data.sequenceId === "number" ? { seq: data.sequenceId } : {};
|
|
497
|
+
return {
|
|
498
|
+
type: "ticket-event",
|
|
499
|
+
kind,
|
|
500
|
+
actorId: typeof data.actorId === "string" ? data.actorId : void 0,
|
|
501
|
+
actorName: typeof data.actorName === "string" ? data.actorName : void 0,
|
|
502
|
+
actorType: typeof data.actorType === "string" ? data.actorType : void 0,
|
|
503
|
+
reason: typeof data.reason === "string" && data.reason.trim() ? data.reason : void 0,
|
|
504
|
+
...eventSeq
|
|
505
|
+
};
|
|
506
|
+
}
|
|
492
507
|
case MESSAGE_TYPE.ERROR:
|
|
493
508
|
return {
|
|
494
509
|
type: "error",
|