@ada-cx/messaging-bridge 1.10.2 → 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";
@@ -704,6 +704,8 @@ export interface AppDisplayState {
704
704
  * has sent in it, and a conversation id exists. Gates the header close
705
705
  * affordance. */
706
706
  "endChat.canEnd"?: boolean;
707
+ /** Advances after an accepted terminal End Chat, excluding inline surveys and agent-leg ends. */
708
+ "endChat.completedSeq"?: number;
707
709
  "config.isParentElementMode"?: boolean;
708
710
  "config.hideDefaultHeader"?: boolean;
709
711
  "ui.secretMessage.isOpen"?: boolean;
@@ -991,6 +993,11 @@ export interface AppEvents {
991
993
  * after the live chat had already ended (`liveAgent.liveChatEndedInConversation`).
992
994
  */
993
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;
994
1001
  "csat.close": {
995
1002
  conversationId: string | null;
996
1003
  surveyType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-cx/messaging-bridge",
3
- "version": "1.10.2",
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",