@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.
- package/dist/features/pinned-messages/can-unpin.d.ts +2 -0
- package/dist/features/pinned-messages/pinned-messages-bar.d.ts +4 -2
- package/dist/features/pinned-messages/pinned-preview.d.ts +2 -0
- package/dist/index.cjs +47 -47
- package/dist/index.js +11659 -11375
- package/dist/module/navigation/chat-navigation-context.d.ts +1 -0
- package/dist/module/widget/chat-widget.types.d.ts +4 -0
- package/dist/module/widget/use-widget-window-capacity.d.ts +1 -0
- package/dist/module/widget/widget-chat-navigation.d.ts +12 -4
- package/dist/module/widget/widget-chat-shell.d.ts +17 -0
- package/dist/module/widget/widget-conversation-window.d.ts +15 -0
- package/dist/pages/Setting/board/conversation-board-modal.d.ts +11 -0
- package/dist/pages/Setting/index.d.ts +0 -9
- package/dist/pages/conversation/index.d.ts +1 -0
- package/dist/pages/sidebar/sidbar-conversation-list/sidbar-conversation-list.d.ts +2 -1
- package/dist/shared/components/unpin-icon.d.ts +1 -0
- package/dist/store/boardModalStore.d.ts +7 -0
- package/dist/store/pinnedMessagesStore.d.ts +0 -5
- package/dist/styles.css +1 -1
- package/dist/utils/chat-display.d.ts +8 -0
- package/dist/utils/chat.d.ts +1 -0
- package/package.json +1 -1
- package/dist/module/widget/widget-conversation-screen.d.ts +0 -10
|
@@ -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
|
package/dist/utils/chat.d.ts
CHANGED
|
@@ -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,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 {};
|