@ethora/chat-component 25.7.2 → 25.7.4
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/main.js +1948 -1948
- package/dist/main.js.map +1 -1
- package/dist/networking/xmppClient.d.ts +9 -3
- package/dist/roomStore/roomHeapSlice.d.ts +1 -2
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -27,10 +27,17 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
27
27
|
pingIntervalMs: number;
|
|
28
28
|
pongTimeoutMs: number;
|
|
29
29
|
pingOnSendEnabled: boolean;
|
|
30
|
+
idleThresholdMs: number;
|
|
31
|
+
lastActivityTs: number;
|
|
32
|
+
pingInFlight: boolean;
|
|
33
|
+
private idlePingTimeout;
|
|
30
34
|
constructor(username: string, password: string, xmppSettings?: xmppSettingsInterface);
|
|
31
35
|
initializeClient(): Promise<void>;
|
|
32
36
|
disconnect(): Promise<void>;
|
|
33
37
|
attachEventListeners(): void;
|
|
38
|
+
private scheduleAdaptivePing;
|
|
39
|
+
private startAdaptivePing;
|
|
40
|
+
private markActivity;
|
|
34
41
|
sendAllPresencesAndMarkReady(): Promise<void>;
|
|
35
42
|
reconnect(): Promise<void>;
|
|
36
43
|
allRoomPresencesStanza(): Promise<void>;
|
|
@@ -40,7 +47,6 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
40
47
|
private enqueue;
|
|
41
48
|
private processQueue;
|
|
42
49
|
private withIdLock;
|
|
43
|
-
private startKeepAlive;
|
|
44
50
|
private onBrowserOnline;
|
|
45
51
|
private onBrowserOffline;
|
|
46
52
|
getConnectionSteps(): Array<{
|
|
@@ -60,7 +66,7 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
60
66
|
getRoomInfoStanza: (roomJID: string) => void;
|
|
61
67
|
getRoomMembersStanza: (roomJID: string) => void;
|
|
62
68
|
setVCardStanza(xmppUsername: string): void;
|
|
63
|
-
sendMessageWithPingCheck(sendFn: () => Promise<void
|
|
69
|
+
sendMessageWithPingCheck(sendFn: () => Promise<void>): Promise<boolean>;
|
|
64
70
|
sendMessage: (roomJID: string, firstName: string, lastName: string, photo: string, walletAddress: string, userMessage: string, notDisplayedValue?: string, isReply?: boolean, showInChannel?: boolean, mainMessage?: string, customId?: string) => Promise<boolean>;
|
|
65
71
|
sendTextMessageWithTranslateTagStanza: (roomJID: string, firstName: string, lastName: string, photo: string, walletAddress: string, userMessage: string, notDisplayedValue?: string, isReply?: boolean, showInChannel?: boolean, mainMessage?: string, langSource?: Iso639_1Codes, customId?: string) => Promise<boolean>;
|
|
66
72
|
deleteMessageStanza(room: string, msgId: string): void;
|
|
@@ -71,7 +77,7 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
71
77
|
actionSetTimestampToPrivateStoreStanza(chatId: string, timestamp: number, chats?: string[]): Promise<void>;
|
|
72
78
|
createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
|
|
73
79
|
sendMediaMessageStanza(roomJID: string, data: any, id: string): void;
|
|
74
|
-
|
|
80
|
+
sendPingStanza(): void;
|
|
75
81
|
handlePong(): void;
|
|
76
82
|
handlePingTimeout(): void;
|
|
77
83
|
private drainHeap;
|
|
@@ -5,10 +5,9 @@ interface roomHeapSliceState {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const roomHeapSlice: import('@reduxjs/toolkit').Slice<roomHeapSliceState, {
|
|
7
7
|
addMessageToHeap: (state: import('immer').WritableDraft<roomHeapSliceState>, action: PayloadAction<IMessage>) => void;
|
|
8
|
-
popMessageFromHeap: (state: import('immer').WritableDraft<roomHeapSliceState>) => void;
|
|
9
8
|
removeMessageFromHeapById: (state: import('immer').WritableDraft<roomHeapSliceState>, action: PayloadAction<string>) => void;
|
|
10
9
|
clearHeap: (state: import('immer').WritableDraft<roomHeapSliceState>) => void;
|
|
11
10
|
}, "roomHeapStore", "roomHeapStore", import('@reduxjs/toolkit').SliceSelectors<roomHeapSliceState>>;
|
|
12
|
-
export declare const addMessageToHeap: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<IMessage, "roomHeapStore/addMessageToHeap">,
|
|
11
|
+
export declare const addMessageToHeap: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<IMessage, "roomHeapStore/addMessageToHeap">, removeMessageFromHeapById: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string, "roomHeapStore/removeMessageFromHeapById">, clearHeap: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"roomHeapStore/clearHeap">;
|
|
13
12
|
declare const _default: import('redux').Reducer<roomHeapSliceState>;
|
|
14
13
|
export default _default;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ETHORA_CHAT_COMPONENT_VERSION = "25.7.
|
|
1
|
+
export declare const ETHORA_CHAT_COMPONENT_VERSION = "25.7.3";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethora/chat-component",
|
|
3
|
-
"version": "25.7.
|
|
3
|
+
"version": "25.7.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@types/react": "^19.1.8",
|
|
23
23
|
"@types/react-dom": "^19.1.6",
|
|
24
24
|
"@types/styled-components": "^5.1.34",
|
|
25
|
-
"@xmpp/client": "^0.13.
|
|
25
|
+
"@xmpp/client": "^0.13.6",
|
|
26
26
|
"axios": "^1.10.0",
|
|
27
27
|
"emoji-mart": "^5.6.0",
|
|
28
28
|
"firebase": "^11.9.1",
|