@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.
- package/dist/features/composer/attachment-file-helpers.d.ts +3 -3
- package/dist/index.cjs +67 -67
- package/dist/index.js +12358 -12139
- package/dist/pages/Setting/archive/archive-file-list.d.ts +3 -1
- package/dist/pages/Setting/archive/archive-load-more.d.ts +6 -0
- package/dist/pages/Setting/archive/archive-media-grid.d.ts +3 -1
- package/dist/pages/Setting/archive/archive-view.d.ts +3 -2
- package/dist/pages/Setting/archive/hooks/use-conversation-archive.d.ts +14 -1
- package/dist/pages/conversation/conversation-footer/conversation-footer.d.ts +0 -1
- package/dist/styles.css +1 -1
- package/dist/utils/chat.d.ts +2 -0
- package/package.json +2 -2
package/dist/utils/chat.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
62
|
+
"@medipha/chat-core": "1.0.24"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@eslint/js": "^10.0.1",
|