@ada-cx/messaging-bridge 1.5.3 → 1.6.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.
@@ -38,6 +38,7 @@ export declare const STATE: {
38
38
  * address the other staged images, and a send posts all of them. */
39
39
  readonly CHAT_STAGED_ATTACHMENT: "chat.stagedAttachment";
40
40
  readonly CHAT_ATTACHMENT_REJECTION: "chat.attachmentRejection";
41
+ readonly CHAT_IMAGE_UPLOAD_OFFERED: "chat.imageUploadOffered";
41
42
  readonly CHAT_IMAGE_UPLOAD_VISIBLE: "chat.imageUploadVisible";
42
43
  readonly CHAT_ANSWERED_INTERACTIVE_IDS: "chat.answeredInteractiveIds";
43
44
  readonly CHAT_PLAYBOOK_STEP_EXECUTING: "chat.playbookStepExecuting";
@@ -517,13 +517,21 @@ export interface AppDisplayState {
517
517
  "chat.stagedAttachment"?: StagedAttachment | null;
518
518
  /** The most recent pick that could not be staged, beside whatever is staged. */
519
519
  "chat.attachmentRejection"?: StagedAttachmentRejection | null;
520
- /** The composer may offer the image attach control (flag, customer setting,
521
- * bot conversation with a known id). Absent on an older core document. */
520
+ /** Render the image attach control (customer setting, no handoff), possibly
521
+ * before the conversation has an id; render it disabled while
522
+ * `chat.imageUploadVisible` is false. Absent on an older core document, where
523
+ * `chat.imageUploadVisible` alone decided rendering. */
524
+ "chat.imageUploadOffered"?: boolean;
525
+ /** A pick can be made now: the control is offered and the bot conversation
526
+ * has an id. Unchanged since 1.0; an app reading only this key renders the
527
+ * control once a pick can be hosted. */
522
528
  "chat.imageUploadVisible"?: boolean;
523
529
  /** Interactive blocks (quick replies, options) the chatter has already
524
530
  * answered. Includes blocks a later same-conversation user message
525
- * superseded, so the set survives a reload. Filter interactive rows on
526
- * it before enabling them. */
531
+ * superseded, so the set survives a reload. The set can shrink when core
532
+ * withdraws a failed programmatic answer. Read the set on every update
533
+ * before enabling interactive rows. Do not retain an answered state after
534
+ * the set removes its ID. */
527
535
  "chat.answeredInteractiveIds": string[];
528
536
  /** A playbook step is running, so the composer must refuse to send. */
529
537
  "chat.playbookStepExecuting": boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-cx/messaging-bridge",
3
- "version": "1.5.3",
3
+ "version": "1.6.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",