feat(messaging-ui): Attachment carries contentRef + sizeBytes for messenger media (0.1.4)

Extend the messaging Attachment type with optional storage fields so an adapter's
upload() can return a sendable reference (the socket needs contentRef/mimeType/
sizeBytes to persist the message part) while keeping the display url. Enables
messenger attachments end-to-end in host adapters.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-23 03:06:06 +05:30
parent 3c5c6964e2
commit 973b6a77eb
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@insignia/iios-messaging-ui",
"version": "0.1.3",
"version": "0.1.4",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
+4
View File
@@ -48,9 +48,13 @@ export interface Reaction {
}
export interface Attachment {
/** A resolved URL for display/download. May be empty until resolved by the host. */
url: string;
mime: string;
name: string;
/** Storage reference — carried so send() can persist the message part (upload returns it). */
contentRef?: string;
sizeBytes?: number;
}
export interface Message {