@ada-cx/messaging-bridge 1.10.1 → 1.10.3
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/README.md
CHANGED
|
@@ -382,6 +382,10 @@ await handle.settled();
|
|
|
382
382
|
|
|
383
383
|
- `AppDisplayState` is the full state shape core publishes. `AppEvents` maps
|
|
384
384
|
each sendable event to its payload type.
|
|
385
|
+
- `endChat.minimizeAfterThanks` asks the SDK to minimize the drawer after 1000 ms if it stays visible.
|
|
386
|
+
The SDK ignores this request in parent-element mode.
|
|
387
|
+
- Core cancels a pending minimize on restart, conversation change, or cleared ended flags. The SDK cancels on app frame teardown.
|
|
388
|
+
Custom apps need no separate cancellation request.
|
|
385
389
|
- `app.initialize` is mandatory. Send it within 15 seconds of frame load.
|
|
386
390
|
- The runtime derives the core origin from `document.referrer`, or locks it
|
|
387
391
|
on the first valid state message. It rejects state from other origins.
|
|
@@ -88,6 +88,7 @@ export declare const STATE: {
|
|
|
88
88
|
readonly CSAT_AUTO_TRIGGER: "csat.autoTrigger";
|
|
89
89
|
readonly CSAT_AUTO_TRIGGER_CONVERSATION_ID: "csat.autoTriggerConversationId";
|
|
90
90
|
readonly CSAT_SUBMIT_SUCCESS_SAME_GENERATION: "csat.submitSuccess.sameGeneration";
|
|
91
|
+
readonly END_CHAT_COMPLETED_SEQ: "endChat.completedSeq";
|
|
91
92
|
readonly FILE_TRANSFER: "file.transfer";
|
|
92
93
|
readonly FILE_UPLOAD_ERROR: "file.uploadError";
|
|
93
94
|
readonly FEATURE_FLAGS: "featureFlags";
|
|
@@ -607,6 +607,7 @@ export interface AppDisplayState {
|
|
|
607
607
|
"zendesk.department.id"?: number | null;
|
|
608
608
|
"zendesk.tags"?: string[] | null;
|
|
609
609
|
"zendesk.fatalRequestErrorReached"?: boolean;
|
|
610
|
+
"zendesk.webhookRetryMessageKey"?: string | null;
|
|
610
611
|
"ui.fatalHandoffDialog.pending"?: boolean;
|
|
611
612
|
"ui.fatalHandoffDialog.cancelFailed"?: boolean;
|
|
612
613
|
"zendeskMessaging.sdk.initializationStatus"?: 0 | 1 | 2;
|
|
@@ -703,6 +704,8 @@ export interface AppDisplayState {
|
|
|
703
704
|
* has sent in it, and a conversation id exists. Gates the header close
|
|
704
705
|
* affordance. */
|
|
705
706
|
"endChat.canEnd"?: boolean;
|
|
707
|
+
/** Advances after an accepted terminal End Chat, excluding inline surveys and agent-leg ends. */
|
|
708
|
+
"endChat.completedSeq"?: number;
|
|
706
709
|
"config.isParentElementMode"?: boolean;
|
|
707
710
|
"config.hideDefaultHeader"?: boolean;
|
|
708
711
|
"ui.secretMessage.isOpen"?: boolean;
|
|
@@ -990,6 +993,11 @@ export interface AppEvents {
|
|
|
990
993
|
* after the live chat had already ended (`liveAgent.liveChatEndedInConversation`).
|
|
991
994
|
*/
|
|
992
995
|
"endChat.skipCsat": undefined;
|
|
996
|
+
/**
|
|
997
|
+
* Ask the SDK to minimize the drawer after 1000 ms if it stays visible.
|
|
998
|
+
* The SDK ignores this request in parent-element mode.
|
|
999
|
+
*/
|
|
1000
|
+
"endChat.minimizeAfterThanks": undefined;
|
|
993
1001
|
"csat.close": {
|
|
994
1002
|
conversationId: string | null;
|
|
995
1003
|
surveyType: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ada-cx/messaging-bridge",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.3",
|
|
4
4
|
"description": "Types, test mocks, and a thin CDN loader for building a custom app UI on Ada Messaging's bridge contract. The bridge runtime always loads from Ada's CDN.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "ISC",
|