@ethora/chat-component 25.2.14 → 25.3.2

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.
@@ -10,7 +10,7 @@ interface MessageContainerProps {
10
10
  message: IMessage;
11
11
  activeMessage: IMessage;
12
12
  config: IConfig;
13
- walletAddress: string;
13
+ xmppUsername: string;
14
14
  isReply: boolean;
15
15
  showDateLabel: boolean;
16
16
  }
@@ -2,6 +2,7 @@ import { FC } from 'react';
2
2
 
3
3
  interface RoomMenuProps {
4
4
  handleLeaveClick: () => void;
5
+ handleReportClick: () => void;
5
6
  }
6
7
  export declare const RoomMenu: FC<RoomMenuProps>;
7
8
  export {};
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare const AddMembersModal: React.FC;
4
+ export default AddMembersModal;
@@ -0,0 +1,9 @@
1
+ import { FC, ReactNode } from 'react';
2
+
3
+ interface ModalBoxProps {
4
+ title: string;
5
+ handleCloseModal: () => void;
6
+ children: ReactNode;
7
+ }
8
+ export declare const ModalBox: FC<ModalBoxProps>;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as React, FC } from 'react';
2
+
3
+ export declare const Report: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
4
+ export declare const ModalReportChat: FC;
@@ -1,6 +1,6 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
  import { default as XmppClient } from '../networking/xmppClient';
3
- import { xmppSettingsInterface } from '../types/types';
3
+ import { IConfig, xmppSettingsInterface } from '../types/types';
4
4
 
5
5
  interface XmppContextType {
6
6
  client: XmppClient;
@@ -9,6 +9,7 @@ interface XmppContextType {
9
9
  }
10
10
  interface XmppProviderProps {
11
11
  children: ReactNode;
12
+ config?: IConfig;
12
13
  }
13
14
  export declare const XmppProvider: React.FC<XmppProviderProps>;
14
15
  export declare const useXmppClient: () => XmppContextType;
@@ -0,0 +1,3 @@
1
+ import { ApiRoom, IRoom } from '../types/types';
2
+
3
+ export declare const createRoomFromApi: (room: ApiRoom, service?: string) => IRoom;
@@ -0,0 +1,3 @@
1
+ import { RoomMember } from '../types/types';
2
+
3
+ export declare const createUserNameFromSetUser: (usersSet: Record<string, RoomMember>, userId: string) => string;
@@ -0,0 +1,10 @@
1
+ import { RoomMember, ApiRoom } from '../types/types';
2
+
3
+ interface MemberExtractionResult {
4
+ array: RoomMember[];
5
+ object: Record<string, RoomMember>;
6
+ map: Map<string, RoomMember>;
7
+ set: Set<string>;
8
+ }
9
+ export declare function extractUniqueMembersFromRooms(rooms: ApiRoom[]): MemberExtractionResult;
10
+ export {};
@@ -0,0 +1 @@
1
+ export declare const handleCopyClick: (string: string) => void;
@@ -0,0 +1,7 @@
1
+ import { default as XmppClient } from '../networking/xmppClient';
2
+ import { IConfig, IRoom, User } from '../types/types';
3
+
4
+ declare const initXmppRooms: (user: User, config: IConfig, xmmpClient: XmppClient, rooms?: {
5
+ [key: string]: IRoom;
6
+ }, roomJID?: string) => Promise<void>;
7
+ export default initXmppRooms;
@@ -8,4 +8,5 @@ export declare const useRoomState: (roomJID?: string) => {
8
8
  globalLoading: boolean;
9
9
  loading: boolean;
10
10
  roomMessages: import('../types/types').IMessage[];
11
+ usersSet: Record<string, import('../types/types').RoomMember>;
11
12
  };