@medipha/chat 1.0.25 → 1.0.26
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/editor/reset-editor-content.d.ts +6 -0
- package/dist/features/forward/forward-dialog.d.ts +3 -1
- package/dist/features/message-list/bubble/message-bubble.d.ts +5 -2
- package/dist/features/message-list/overlays/message-detail/message-detail-dialog.d.ts +16 -0
- package/dist/features/message-list/overlays/message-details/message-details-modal.d.ts +3 -1
- package/dist/features/message-window/use-message-window.d.ts +3 -0
- package/dist/index.cjs +46 -46
- package/dist/index.js +9170 -9017
- package/dist/pages/Setting/members/settings-modal.d.ts +4 -1
- package/dist/pages/conversation/conversation-detail/conversation-detail.d.ts +2 -2
- package/dist/pages/sidebar/hooks/use-conversations.d.ts +0 -7
- package/dist/shared/components/selection-panel.d.ts +20 -0
- package/dist/styles.css +1 -1
- package/dist/utils/chat-display.d.ts +5 -0
- package/dist/utils/chat.d.ts +1 -0
- package/package.json +2 -2
- package/dist/features/create-conversation/tabs/selected-members-modal.d.ts +0 -12
|
@@ -6,8 +6,11 @@ interface SettingsModalProps {
|
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
/** Widens the dialog for dense user lists (add-member / members list). */
|
|
8
8
|
medium?: boolean;
|
|
9
|
+
/** Set false where a stray click outside would throw away work in progress (pickers with
|
|
10
|
+
* a running selection) — the ✕ and Esc still close it. */
|
|
11
|
+
dismissOnBackdrop?: boolean;
|
|
9
12
|
}
|
|
10
|
-
export declare function SettingsModal({ title, children, onClose, medium }: SettingsModalProps): import('react').ReactPortal;
|
|
13
|
+
export declare function SettingsModal({ title, children, onClose, medium, dismissOnBackdrop, }: SettingsModalProps): import('react').ReactPortal;
|
|
11
14
|
interface UserIdentityProps {
|
|
12
15
|
user: ChatUser;
|
|
13
16
|
subtitle?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VirtuosoHandle } from 'react-virtuoso';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
3
|
import { MessageRemovedPayload } from '@medipha/chat-core';
|
|
4
|
-
import { ChatMessage, ChatUser, ConversationMember } from '../../../utils/chat';
|
|
4
|
+
import { ChatMessage, ChatUser, ConversationMember, MessageReplyPreview } from '../../../utils/chat';
|
|
5
5
|
import { PendingAttachment } from '../../../features/composer/pending-attachment';
|
|
6
6
|
interface MessageWindowForDetail {
|
|
7
7
|
messages: ChatMessage[];
|
|
@@ -61,7 +61,7 @@ interface ConversationDetailProps {
|
|
|
61
61
|
dayDividerKeys: Set<string>;
|
|
62
62
|
replyTargetState: ReplyTargetForDetail;
|
|
63
63
|
onForward: (message: ChatMessage) => void;
|
|
64
|
-
onJumpToReply: (replyMessageId: string) => void;
|
|
64
|
+
onJumpToReply: (replyMessageId: string, preview?: MessageReplyPreview) => void;
|
|
65
65
|
onOpenMentionCard: (userId: string) => void;
|
|
66
66
|
onOpenUserProfile: (userId: string) => void;
|
|
67
67
|
onOpenImageLightbox: (message: ChatMessage, urls: string[], index: number) => void;
|
|
@@ -7,12 +7,5 @@ interface UseConversationsResult {
|
|
|
7
7
|
clearConversationForUser: (conversationId: string) => Promise<boolean>;
|
|
8
8
|
reload: () => Promise<void>;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
11
|
-
* Loads the current user's conversations and keeps the list live via socket events.
|
|
12
|
-
* Backed by the shared `conversationsStore` (not local state) — the page-level "currently
|
|
13
|
-
* open conversation" reads and gets patched through the same store, so the two never
|
|
14
|
-
* drift out of sync on the same realtime events.
|
|
15
|
-
* `activeConversationId` is accepted for call-site compatibility (currently unused here).
|
|
16
|
-
*/
|
|
17
10
|
export declare function useConversations(activeConversationId?: string): UseConversationsResult;
|
|
18
11
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ConversationMember } from '../../utils/chat';
|
|
3
|
+
export interface SelectionPanelItem {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
avatarUrl?: string | null;
|
|
7
|
+
isGroup?: boolean;
|
|
8
|
+
members?: ConversationMember[];
|
|
9
|
+
}
|
|
10
|
+
interface SelectionSplitProps {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
items: SelectionPanelItem[];
|
|
13
|
+
max?: number;
|
|
14
|
+
currentUserId?: string | null;
|
|
15
|
+
listClassName?: string;
|
|
16
|
+
onRemove: (id: string) => void;
|
|
17
|
+
onClear: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare function SelectionSplit({ children, items, max, currentUserId, listClassName, onRemove, onClear, }: SelectionSplitProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|