@medipha/chat 1.0.52 → 1.0.54

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;
@@ -307,6 +308,7 @@ export declare const readConversations: (response: unknown) => unknown[];
307
308
  export declare const isSameId: (left: unknown, right: unknown) => boolean;
308
309
  export declare const isGroupConversation: (conversation: unknown) => boolean;
309
310
  export declare const getConversationKindLabel: (isGroup: boolean) => string;
311
+ export declare const formatUserWorkLine: (user: unknown, codeById: Record<string, string>) => string;
310
312
  export declare const getConversationTitle: (conversation: unknown, currentUserId?: string | null) => string;
311
313
  /** Avatar photo for a conversation row: the conversation's own photo, or for direct chats
312
314
  * the other participant's photo, or null to fall back to initials. */
@@ -331,6 +333,7 @@ export declare const isSingleEmojiMessage: (message: ChatMessage) => boolean;
331
333
  * it also broke callers that match the sender name against the start of this text. */
332
334
  export declare const getSystemMessageText: (message: unknown) => string;
333
335
  /** A removal is permanent: all presentation code must branch on this single predicate. */
336
+ export declare const toSourceMessage: (message: ChatMessage) => ChatMessage;
334
337
  export declare const isMessageRemoved: (message: {
335
338
  removedAt?: string | null;
336
339
  }) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/chat",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
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",