@ethora/chat-component 25.4.1 → 25.4.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.
- package/dist/helpers/chatAutoEnterer.d.ts +15 -0
- package/dist/hooks/useMessageLoaderQueue.d.ts +1 -3
- package/dist/hooks/useRoomState.d.ts +1 -0
- package/dist/main.js +5310 -5278
- package/dist/main.js.map +1 -1
- package/dist/networking/xmpp/presenceInRoom.xmpp.d.ts +2 -1
- package/dist/networking/xmppClient.d.ts +1 -1
- package/dist/roomStore/roomsSlice.d.ts +3 -0
- package/dist/types/types.d.ts +0 -2
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Client } from '@xmpp/client';
|
|
2
|
+
import { Element } from '@xmpp/xml';
|
|
2
3
|
|
|
3
|
-
export declare const presenceInRoom: (client: Client, roomJID: string) => Promise<
|
|
4
|
+
export declare const presenceInRoom: (client: Client, roomJID: string, delay?: number) => Promise<Element>;
|
|
@@ -28,7 +28,7 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
28
28
|
createRoomStanza(title: string, description: string): Promise<string>;
|
|
29
29
|
inviteRoomRequestStanza(to: string, roomJid: string): Promise<void>;
|
|
30
30
|
leaveTheRoomStanza: (roomJID: string) => void;
|
|
31
|
-
presenceInRoomStanza: (roomJID: string) => void
|
|
31
|
+
presenceInRoomStanza: (roomJID: string, settleDelay?: number) => Promise<void>;
|
|
32
32
|
getHistoryStanza: (chatJID: string, max: number, before?: number, otherStanzaId?: string) => Promise<import('../types/types').IMessage[]>;
|
|
33
33
|
getLastMessageArchiveStanza(roomJID: string): void;
|
|
34
34
|
setRoomImageStanza: (roomJid: string, roomThumbnail: string, type: string, roomBackground?: string) => void;
|
|
@@ -13,6 +13,7 @@ interface RoomMessagesState {
|
|
|
13
13
|
reportRoom: {
|
|
14
14
|
isOpen: boolean;
|
|
15
15
|
};
|
|
16
|
+
loadingText?: string;
|
|
16
17
|
}
|
|
17
18
|
export declare const roomsStore: import('@reduxjs/toolkit').Slice<RoomMessagesState, {
|
|
18
19
|
addRoom(state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
@@ -50,6 +51,7 @@ export declare const roomsStore: import('@reduxjs/toolkit').Slice<RoomMessagesSt
|
|
|
50
51
|
setIsLoading: (state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
51
52
|
chatJID?: string;
|
|
52
53
|
loading: boolean;
|
|
54
|
+
loadingText?: string;
|
|
53
55
|
}>) => void;
|
|
54
56
|
setLastViewedTimestamp: (state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
55
57
|
chatJID: string;
|
|
@@ -105,6 +107,7 @@ export declare const addRoom: import('@reduxjs/toolkit').ActionCreatorWithOption
|
|
|
105
107
|
}, "roomMessages/setComposing">, setIsLoading: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
106
108
|
chatJID?: string;
|
|
107
109
|
loading: boolean;
|
|
110
|
+
loadingText?: string;
|
|
108
111
|
}, "roomMessages/setIsLoading">, setLastViewedTimestamp: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
109
112
|
chatJID: string;
|
|
110
113
|
timestamp: number;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -271,8 +271,6 @@ export interface IConfig {
|
|
|
271
271
|
initBeforeLoad?: boolean;
|
|
272
272
|
newArch?: boolean;
|
|
273
273
|
qrUrl?: string;
|
|
274
|
-
logoutCallback?: () => Promise<void>;
|
|
275
|
-
sendCBFunction?: (e?: any) => void;
|
|
276
274
|
secondarySendButton?: {
|
|
277
275
|
enabled: boolean;
|
|
278
276
|
messageEdit: string;
|