@medipha/chat 1.0.46 → 1.0.47

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.
@@ -7,6 +7,7 @@ export interface ChatModuleProps {
7
7
  expireTime: string | number;
8
8
  apiUrl: string;
9
9
  socketUrl: string;
10
+ inviteLinkBaseUrl?: string;
10
11
  onUnauthorized?: () => void;
11
12
  onRefreshToken?: () => Promise<string>;
12
13
  onNavigateOutsideChat?: (path: string) => void;
@@ -6,8 +6,9 @@ interface SettingsModalProps {
6
6
  onClose: () => void;
7
7
  /** Widens the dialog for dense user lists (add-member / members list). */
8
8
  medium?: boolean;
9
+ className?: string;
9
10
  }
10
- export declare function SettingsModal({ title, children, onClose, medium }: SettingsModalProps): import('react').ReactPortal;
11
+ export declare function SettingsModal({ title, children, onClose, medium, className }: SettingsModalProps): import('react').ReactPortal;
11
12
  interface UserIdentityProps {
12
13
  user: ChatUser;
13
14
  subtitle?: string;
@@ -28,7 +28,8 @@ interface ConversationHeaderProps {
28
28
  onCloseConversation?: () => void;
29
29
  pendingApprovalCount?: number;
30
30
  onOpenPendingApprovals?: () => void;
31
+ onCopyInviteLink?: () => void;
31
32
  }
32
33
  /** Conversation title/status row plus the collapsible in-header search and toggle buttons. */
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;
34
+ export declare function ConversationHeader({ title, avatarUrl, isGroup, isVerified, groupMemberCount, members, currentUserId, isOtherMemberOnline, onOpenSearch, onOpenMessageList, isSettingsOpen, onToggleSettings, onOpenMembers, canEditTitle, onEditTitle, onOpenAvatarProfile, onOpenFullPage, onCloseConversation, pendingApprovalCount, onOpenPendingApprovals, onCopyInviteLink, }: ConversationHeaderProps): import("react/jsx-runtime").JSX.Element;
34
35
  export {};
@@ -0,0 +1,8 @@
1
+ interface InviteJoinState {
2
+ code: string | null;
3
+ open: (code: string) => void;
4
+ close: () => void;
5
+ }
6
+ export declare const useInviteJoinStore: import('zustand').UseBoundStore<import('zustand').StoreApi<InviteJoinState>>;
7
+ export declare function openInviteJoinModal(code: string): void;
8
+ export {};