@medipha/chat 1.0.53 → 1.0.55

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.
@@ -118,6 +118,7 @@ export interface ChatMessageAttachment {
118
118
  }
119
119
  export interface ChatMessage {
120
120
  id?: string;
121
+ sourceMessageId?: string;
121
122
  clientMessageId?: string;
122
123
  conversationId?: string;
123
124
  content: MessageContent | null;
@@ -332,6 +333,7 @@ export declare const isSingleEmojiMessage: (message: ChatMessage) => boolean;
332
333
  * it also broke callers that match the sender name against the start of this text. */
333
334
  export declare const getSystemMessageText: (message: unknown) => string;
334
335
  /** A removal is permanent: all presentation code must branch on this single predicate. */
336
+ export declare const toSourceMessage: (message: ChatMessage) => ChatMessage;
335
337
  export declare const isMessageRemoved: (message: {
336
338
  removedAt?: string | null;
337
339
  }) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/chat",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "Embeddable Medic-ERP chat module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -59,7 +59,7 @@
59
59
  "uuid": "^11.0.5",
60
60
  "yet-another-react-lightbox": "^3.32.2",
61
61
  "zustand": "^5.0.8",
62
- "@medipha/chat-core": "1.0.23"
62
+ "@medipha/chat-core": "1.0.24"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@eslint/js": "^10.0.1",