@ethora/chat-component 26.2.26 → 26.2.28
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/historyPreloadScheduler.d.ts +1 -0
- package/dist/main.js +10467 -10237
- package/dist/main.js.map +1 -1
- package/dist/networking/api-requests/auth.api.d.ts +1 -0
- package/dist/networking/xmppClient.d.ts +23 -1
- package/dist/types/models/config.model.d.ts +5 -0
- package/dist/types/models/xmpp.model.d.ts +8 -1
- package/package.json +1 -1
|
@@ -19,3 +19,4 @@ export declare const signInWithGoogle: () => Promise<{
|
|
|
19
19
|
credential?: undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export declare function uploadFile(formData: FormData): Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
22
|
+
export declare function ensureUserFromMy(user: User | null | undefined): Promise<User | null>;
|
|
@@ -20,6 +20,8 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
20
20
|
presencesReady: boolean;
|
|
21
21
|
private connectionSteps;
|
|
22
22
|
private messageQueue;
|
|
23
|
+
private highLaneBurstLimit;
|
|
24
|
+
private highLaneStreak;
|
|
23
25
|
private pendingSendById;
|
|
24
26
|
private inFlightIds;
|
|
25
27
|
private processingQueue;
|
|
@@ -42,12 +44,21 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
42
44
|
private maxInFlightHistory;
|
|
43
45
|
private softPauseAfterSendMs;
|
|
44
46
|
private activeRoomBoostTtlMs;
|
|
47
|
+
private activeSendBoostMs;
|
|
48
|
+
private alwaysPrioritizeActiveRoom;
|
|
49
|
+
private backgroundWhileCriticalSend;
|
|
50
|
+
private disableLastRead;
|
|
45
51
|
private presenceFailureBackoffMs;
|
|
46
52
|
private startupPrivateStoreTimeoutMs;
|
|
47
53
|
private startupPrivateStoreTtlMs;
|
|
48
54
|
private roomPresenceBlockedUntil;
|
|
49
55
|
private activeHistoryInFlight;
|
|
50
56
|
private chatsPrivateStoreCache;
|
|
57
|
+
private activeRoomJid;
|
|
58
|
+
private sendIsActiveById;
|
|
59
|
+
private sendClickToEchoByScope;
|
|
60
|
+
private sendSlaWarningThresholdMs;
|
|
61
|
+
private backgroundSuppressedStartedAt;
|
|
51
62
|
checkOnline(): boolean;
|
|
52
63
|
pingInterval: any;
|
|
53
64
|
pingTimeout: any;
|
|
@@ -83,6 +94,17 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
83
94
|
wrapWithConnectionCheck<T>(operation: () => Promise<T>): Promise<T>;
|
|
84
95
|
private clearMamRegistry;
|
|
85
96
|
private clearHistoryQueue;
|
|
97
|
+
private getSendLane;
|
|
98
|
+
setActiveRoomJid(roomJID: string | null): void;
|
|
99
|
+
private getTotalSendQueueLength;
|
|
100
|
+
private hasPendingActiveRoomPresenceRequest;
|
|
101
|
+
private hasPendingActiveRoomHistoryRequest;
|
|
102
|
+
isActiveRoomGateOpen(): boolean;
|
|
103
|
+
private hasPendingSendsForActiveRoom;
|
|
104
|
+
private shouldSuppressBackgroundHistory;
|
|
105
|
+
private updateBackgroundSuppressionMetrics;
|
|
106
|
+
private pickNextSendEntry;
|
|
107
|
+
private recordSendClickToEchoMetric;
|
|
86
108
|
private getRoomEpoch;
|
|
87
109
|
private getHistoryPriority;
|
|
88
110
|
private nextHistoryTaskId;
|
|
@@ -141,7 +163,7 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
141
163
|
getChatsPrivateStoreRequestStanza: () => Promise<unknown>;
|
|
142
164
|
actionSetTimestampToPrivateStoreStanza(chatId: string, timestamp: number, chats?: string[]): Promise<void>;
|
|
143
165
|
createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
|
|
144
|
-
sendMediaMessageStanza(roomJID: string, data: any, id: string):
|
|
166
|
+
sendMediaMessageStanza(roomJID: string, data: any, id: string): Promise<boolean>;
|
|
145
167
|
recoverRoomPresenceOnly(roomJID: string): Promise<boolean>;
|
|
146
168
|
sendPingStanza(): void;
|
|
147
169
|
handlePong(): void;
|
|
@@ -86,6 +86,7 @@ export interface IConfig {
|
|
|
86
86
|
myEndpoint?: string;
|
|
87
87
|
};
|
|
88
88
|
newArch?: boolean;
|
|
89
|
+
disableLastRead?: boolean;
|
|
89
90
|
qrUrl?: string;
|
|
90
91
|
secondarySendButton?: {
|
|
91
92
|
enabled: boolean;
|
|
@@ -168,6 +169,10 @@ export interface IConfig {
|
|
|
168
169
|
maxInFlightHistory?: number;
|
|
169
170
|
softPauseAfterSendMs?: number;
|
|
170
171
|
activeRoomBoostTtlMs?: number;
|
|
172
|
+
activeSendBoostMs?: number;
|
|
173
|
+
alwaysPrioritizeActiveRoom?: boolean;
|
|
174
|
+
backgroundWhileCriticalSend?: boolean;
|
|
175
|
+
preloadTopKRooms?: number;
|
|
171
176
|
presenceFailureBackoffMs?: number;
|
|
172
177
|
startupPrivateStoreTimeoutMs?: number;
|
|
173
178
|
startupPrivateStoreTtlMs?: number;
|
|
@@ -10,11 +10,16 @@ export interface xmppSettingsInterface {
|
|
|
10
10
|
devServer?: string;
|
|
11
11
|
host?: string;
|
|
12
12
|
conference?: string;
|
|
13
|
+
disableLastRead?: boolean;
|
|
13
14
|
xmppPingOnSendEnabled?: boolean;
|
|
14
15
|
historyQoS?: {
|
|
15
16
|
maxInFlightHistory?: number;
|
|
16
17
|
softPauseAfterSendMs?: number;
|
|
17
18
|
activeRoomBoostTtlMs?: number;
|
|
19
|
+
activeSendBoostMs?: number;
|
|
20
|
+
alwaysPrioritizeActiveRoom?: boolean;
|
|
21
|
+
backgroundWhileCriticalSend?: boolean;
|
|
22
|
+
preloadTopKRooms?: number;
|
|
18
23
|
presenceFailureBackoffMs?: number;
|
|
19
24
|
startupPrivateStoreTimeoutMs?: number;
|
|
20
25
|
startupPrivateStoreTtlMs?: number;
|
|
@@ -61,6 +66,8 @@ export interface XmppClientInterface {
|
|
|
61
66
|
source?: 'active' | 'send_ack' | 'background' | 'default';
|
|
62
67
|
}): Promise<IMessage[] | undefined>;
|
|
63
68
|
promoteRoomHistory(roomJID: string): void;
|
|
69
|
+
setActiveRoomJid(roomJID: string | null): void;
|
|
70
|
+
isActiveRoomGateOpen(): boolean;
|
|
64
71
|
onCriticalSend(roomJID: string, messageId?: string): void;
|
|
65
72
|
enqueueHistoryTask(params: {
|
|
66
73
|
chatJID: string;
|
|
@@ -80,7 +87,7 @@ export interface XmppClientInterface {
|
|
|
80
87
|
sendTypingRequestStanza(chatId: string, fullName: string, start: boolean): void;
|
|
81
88
|
getChatsPrivateStoreRequestStanza(): Promise<any>;
|
|
82
89
|
actionSetTimestampToPrivateStoreStanza(chatId: string, timestamp: number, chats?: string[]): Promise<void>;
|
|
83
|
-
sendMediaMessageStanza(roomJID: string, data: MediaUploadData, id: string):
|
|
90
|
+
sendMediaMessageStanza(roomJID: string, data: MediaUploadData, id: string): Promise<boolean>;
|
|
84
91
|
createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
|
|
85
92
|
sendMessageReactionStanza(messageId: string, roomJid: string, reactionsList: string[], reactionSymbol?: string): void;
|
|
86
93
|
sendTextMessageWithTranslateTagStanza(roomJID: string, firstName: string, lastName: string, photo: string, walletAddress: string, userMessage: string, notDisplayedValue?: string, isReply?: boolean, showInChannel?: boolean, mainMessage?: string, langSource?: Iso639_1Codes): void;
|