@ada-cx/messaging-bridge 1.4.0 → 1.5.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.
@@ -288,6 +288,7 @@ export interface NotificationPermissionMessage extends BaseMessage {
288
288
  export type CsatScaleType = "thumbs" | "emoji" | "1-5" | "1-7" | "0-10" | "1-10";
289
289
  export interface CsatMessage extends BaseMessage {
290
290
  type: "csat";
291
+ revision?: number;
291
292
  surveyType: string;
292
293
  scaleType: CsatScaleType;
293
294
  score: number | null;
@@ -472,9 +473,10 @@ export interface AppDisplayState {
472
473
  * Watch `chat.isGenerating` for "in flight" UI instead. */
473
474
  "chat.isSending": boolean;
474
475
  /** Set when a send fails (also clears the sending/generating flags).
475
- * Cleared ONLY by the `chat.error.dismiss` event — clear it in core
476
- * rather than hiding it locally, or the session's second error renders
477
- * nothing. */
476
+ * Six paths clear it: the next send starting, a retry starting, the service
477
+ * coming back after an outage, a new conversation starting, a full reset, and
478
+ * the `chat.error.dismiss` event. Clear it in core rather than hiding it
479
+ * locally, or the session's second error renders nothing. */
478
480
  "chat.error": string | null;
479
481
  /** Monotonic counter that advances every time core SETS `chat.error` —
480
482
  * including when the new text is identical to the current one (the same
@@ -906,7 +908,8 @@ export interface AppEvents {
906
908
  dataId: string;
907
909
  };
908
910
  "chat.logs.loadMore": undefined;
909
- /** The chatter dismissed the error toast. Clears `chat.error`. */
911
+ /** The chatter dismissed the error. Clears `chat.error`. Ada's own banner
912
+ * carries no dismiss control, so only a custom app sends this. */
910
913
  "chat.error.dismiss": undefined;
911
914
  "csat.submit": {
912
915
  data: CsatSubmitData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-cx/messaging-bridge",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
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",