@medipha/chat 1.0.35 → 1.0.37
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/api/local-transport.d.ts +7 -0
- package/dist/api/member-approval-client.d.ts +8 -0
- package/dist/features/composer/attachment-file-helpers.d.ts +5 -5
- package/dist/features/media-preview/use-image-lightbox.d.ts +5 -6
- package/dist/index.cjs +47 -47
- package/dist/index.js +9915 -9464
- package/dist/pages/Setting/hooks/use-pending-join-requests.d.ts +4 -0
- package/dist/pages/Setting/members/join-requests-modal.d.ts +10 -0
- package/dist/pages/conversation/conversation-header/conversation-header.d.ts +3 -1
- package/dist/shared/components/user-approved-icon.d.ts +5 -0
- package/dist/store/pendingJoinRequestsStore.d.ts +18 -0
- package/dist/styles.css +1 -1
- package/dist/utils/chat-display.d.ts +13 -3
- package/dist/utils/chat.d.ts +20 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface JoinRequestsModalProps {
|
|
2
|
+
conversationId: string;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
filterUserIds?: string[];
|
|
5
|
+
onOpenProfile?: (userId: string) => void;
|
|
6
|
+
onResolved?: () => void;
|
|
7
|
+
canManage?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function JoinRequestsModal({ conversationId, onClose, filterUserIds, onOpenProfile, onResolved, canManage, }: JoinRequestsModalProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -26,7 +26,9 @@ interface ConversationHeaderProps {
|
|
|
26
26
|
/** Anchored widget only: collapses the floating window down to this header. */
|
|
27
27
|
/** Anchored widget only: closes the floating window and returns to the list. */
|
|
28
28
|
onCloseConversation?: () => void;
|
|
29
|
+
pendingApprovalCount?: number;
|
|
30
|
+
onOpenPendingApprovals?: () => void;
|
|
29
31
|
}
|
|
30
32
|
/** Conversation title/status row plus the collapsible in-header search and toggle buttons. */
|
|
31
|
-
export declare function ConversationHeader({ title, avatarUrl, isGroup, isVerified, groupMemberCount, members, currentUserId, isOtherMemberOnline, onOpenSearch, onOpenMessageList, isSettingsOpen, onToggleSettings, onOpenMembers, canEditTitle, onEditTitle, onOpenAvatarProfile, onOpenFullPage, onCloseConversation, }: ConversationHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function ConversationHeader({ title, avatarUrl, isGroup, isVerified, groupMemberCount, members, currentUserId, isOtherMemberOnline, onOpenSearch, onOpenMessageList, isSettingsOpen, onToggleSettings, onOpenMembers, canEditTitle, onEditTitle, onOpenAvatarProfile, onOpenFullPage, onCloseConversation, pendingApprovalCount, onOpenPendingApprovals, }: ConversationHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
32
34
|
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PendingMember } from '../utils/chat';
|
|
2
|
+
interface PendingJoinRequestsState {
|
|
3
|
+
conversationId: string | null;
|
|
4
|
+
requests: PendingMember[];
|
|
5
|
+
load: (conversationId: string) => Promise<void>;
|
|
6
|
+
clear: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const usePendingJoinRequestsStore: import('zustand').UseBoundStore<import('zustand').StoreApi<PendingJoinRequestsState>>;
|
|
9
|
+
export interface PendingJoinRequestGroup {
|
|
10
|
+
key: string;
|
|
11
|
+
status: PendingMember['status'];
|
|
12
|
+
requestedAt: string;
|
|
13
|
+
addedBy: PendingMember['addedBy'];
|
|
14
|
+
members: PendingMember[];
|
|
15
|
+
}
|
|
16
|
+
export declare function groupPendingJoinRequests(requests: PendingMember[]): PendingJoinRequestGroup[];
|
|
17
|
+
export declare function setPendingJoinRequestsConversation(conversationId: string | null): void;
|
|
18
|
+
export {};
|