@ethora/chat-component 24.12.34 → 24.12.35
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/components/MainComponents/Switch.d.ts +10 -0
- package/dist/components/MessageBubble/MessageReply.d.ts +2 -0
- package/dist/helpers/constants/PLATFORM_CONSTANTS.d.ts +1 -0
- package/dist/helpers/hashcolor.d.ts +4 -0
- package/dist/hooks/useMessageLoaderQueue.d.ts +1 -1
- package/dist/main.js +4939 -4834
- package/dist/main.js.map +1 -1
- package/dist/networking/xmpp/setVCard.xmpp.d.ts +1 -0
- package/dist/networking/xmppClient.d.ts +3 -1
- package/dist/types/types.d.ts +38 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setVcard(fullname: string, client: any): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Client } from '@xmpp/client';
|
|
2
|
+
import { XmppClientInterface } from '../types/types';
|
|
2
3
|
|
|
3
|
-
export declare class XmppClient {
|
|
4
|
+
export declare class XmppClient implements XmppClientInterface {
|
|
4
5
|
client: Client;
|
|
5
6
|
devServer: string | undefined;
|
|
6
7
|
host: string;
|
|
@@ -29,6 +30,7 @@ export declare class XmppClient {
|
|
|
29
30
|
setRoomImageStanza: (roomJid: string, roomThumbnail: string, type: string, roomBackground?: string) => void;
|
|
30
31
|
getRoomInfoStanza: (roomJID: string) => void;
|
|
31
32
|
getRoomMembersStanza: (roomJID: string) => void;
|
|
33
|
+
setVCardStanza(xmppUsername: string): void;
|
|
32
34
|
sendMessage: (roomJID: string, firstName: string, lastName: string, photo: string, walletAddress: string, userMessage: string, notDisplayedValue?: string, isReply?: boolean, showInChannel?: boolean, mainMessage?: string) => void;
|
|
33
35
|
deleteMessageStanza(room: string, msgId: string): void;
|
|
34
36
|
editMessageStanza(room: string, msgId: string, text: string): void;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Client } from '@xmpp/client';
|
|
1
2
|
import { MODAL_TYPES } from '../helpers/constants/MODAL_TYPES';
|
|
2
3
|
|
|
3
4
|
export interface IUser extends Partial<User> {
|
|
@@ -204,4 +205,41 @@ export interface ModalFile {
|
|
|
204
205
|
fileURL: string;
|
|
205
206
|
mimetype: string;
|
|
206
207
|
}
|
|
208
|
+
export interface XmppClientInterface {
|
|
209
|
+
client: Client;
|
|
210
|
+
devServer?: string;
|
|
211
|
+
host: string;
|
|
212
|
+
service: string;
|
|
213
|
+
conference: string;
|
|
214
|
+
username: string;
|
|
215
|
+
status: string;
|
|
216
|
+
password: string;
|
|
217
|
+
reconnectAttempts: number;
|
|
218
|
+
maxReconnectAttempts: number;
|
|
219
|
+
reconnectDelay: number;
|
|
220
|
+
checkOnline(): boolean;
|
|
221
|
+
initializeClient(): void;
|
|
222
|
+
attachEventListeners(): void;
|
|
223
|
+
scheduleReconnect(): void;
|
|
224
|
+
reconnect(): void;
|
|
225
|
+
close(): Promise<void>;
|
|
226
|
+
getRoomsStanza(): Promise<void>;
|
|
227
|
+
createRoomStanza(title: string, description: string, to?: string): Promise<any>;
|
|
228
|
+
inviteRoomRequestStanza(to: string, roomJid: string): Promise<void>;
|
|
229
|
+
leaveTheRoomStanza(roomJID: string): void;
|
|
230
|
+
presenceInRoomStanza(roomJID: string): void;
|
|
231
|
+
getHistoryStanza(chatJID: string, max: number, before?: number, id?: string): Promise<any>;
|
|
232
|
+
getLastMessageArchiveStanza(roomJID: string): void;
|
|
233
|
+
setRoomImageStanza(roomJid: string, roomThumbnail: string, type: string, roomBackground?: string): void;
|
|
234
|
+
getRoomInfoStanza(roomJID: string): void;
|
|
235
|
+
getRoomMembersStanza(roomJID: string): void;
|
|
236
|
+
setVCardStanza(xmppUsername: string): void;
|
|
237
|
+
sendMessage(roomJID: string, firstName: string, lastName: string, photo: string, walletAddress: string, userMessage: string, notDisplayedValue?: string, isReply?: boolean, showInChannel?: boolean, mainMessage?: string): void;
|
|
238
|
+
deleteMessageStanza(room: string, msgId: string): void;
|
|
239
|
+
editMessageStanza(room: string, msgId: string, text: string): void;
|
|
240
|
+
sendTypingRequestStanza(chatId: string, fullName: string, start: boolean): void;
|
|
241
|
+
getChatsPrivateStoreRequestStanza(): Promise<any>;
|
|
242
|
+
actionSetTimestampToPrivateStoreStanza(chatId: string, timestamp: number, chats?: string[]): Promise<void>;
|
|
243
|
+
sendMediaMessageStanza(roomJID: string, data: any): void;
|
|
244
|
+
}
|
|
207
245
|
export {};
|