@medipha/chat 1.0.43 → 1.0.45

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.
@@ -55,8 +55,16 @@ export declare const getReplyPreviewParts: (replyTo: ReplyPreviewTarget) => {
55
55
  label: string;
56
56
  name?: string;
57
57
  };
58
+ /** The pin notice reads the preview as one sentence ("Bạn đã ghim một tin nhắn ..."), so an
59
+ * attachment with no name worth showing becomes a noun ("hình ảnh") rather than the reply
60
+ * quote's standalone sentence ("Đã gửi một ảnh"). */
61
+ export declare const getPinNoticePreviewParts: (replyTo: ReplyPreviewTarget) => {
62
+ label: string;
63
+ name?: string;
64
+ };
58
65
  /** Short label for the quoted message shown above a reply (bubble preview or composer banner). */
59
66
  export declare const getReplyPreviewText: (replyTo: ReplyPreviewTarget) => string;
67
+ export declare const getPinNoticePreviewText: (replyTo: ReplyPreviewTarget) => string;
60
68
  export declare const MAX_DETAILED_SEEN_MEMBERS = 100;
61
69
  /**
62
70
  * Truncates a long file name to one line, keeping the extension and the few characters
@@ -156,6 +156,7 @@ export interface ChatMessage {
156
156
  pinnedAt?: string | null;
157
157
  pinnedById?: string | null;
158
158
  pinnedByName?: string | null;
159
+ pinnedByAvatarUrl?: string | null;
159
160
  removedAt?: string | null;
160
161
  removedById?: string | null;
161
162
  removalType?: MessageRemovalType | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/chat",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "description": "Embeddable Medic-ERP chat module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,10 +0,0 @@
1
- interface WidgetConversationScreenProps {
2
- isWindowVisible: boolean;
3
- isExpanded: boolean;
4
- onToggleExpand: () => void;
5
- onOpenFullPage?: () => void;
6
- onOpenAllConversations?: () => void;
7
- onRequestClose?: () => void;
8
- }
9
- export declare function WidgetConversationScreen({ isWindowVisible, isExpanded, onToggleExpand, onOpenFullPage, onOpenAllConversations, onRequestClose, }: WidgetConversationScreenProps): import("react/jsx-runtime").JSX.Element;
10
- export {};