@ethora/chat-component 26.2.26 → 26.2.27

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.
@@ -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,19 @@ export declare class XmppClient implements XmppClientInterface {
42
44
  private maxInFlightHistory;
43
45
  private softPauseAfterSendMs;
44
46
  private activeRoomBoostTtlMs;
47
+ private activeSendBoostMs;
48
+ private backgroundWhileCriticalSend;
45
49
  private presenceFailureBackoffMs;
46
50
  private startupPrivateStoreTimeoutMs;
47
51
  private startupPrivateStoreTtlMs;
48
52
  private roomPresenceBlockedUntil;
49
53
  private activeHistoryInFlight;
50
54
  private chatsPrivateStoreCache;
55
+ private activeRoomJid;
56
+ private sendIsActiveById;
57
+ private sendClickToEchoByScope;
58
+ private sendSlaWarningThresholdMs;
59
+ private backgroundSuppressedStartedAt;
51
60
  checkOnline(): boolean;
52
61
  pingInterval: any;
53
62
  pingTimeout: any;
@@ -83,6 +92,14 @@ export declare class XmppClient implements XmppClientInterface {
83
92
  wrapWithConnectionCheck<T>(operation: () => Promise<T>): Promise<T>;
84
93
  private clearMamRegistry;
85
94
  private clearHistoryQueue;
95
+ private getSendLane;
96
+ setActiveRoomJid(roomJID: string | null): void;
97
+ private getTotalSendQueueLength;
98
+ private hasPendingSendsForActiveRoom;
99
+ private shouldSuppressBackgroundHistory;
100
+ private updateBackgroundSuppressionMetrics;
101
+ private pickNextSendEntry;
102
+ private recordSendClickToEchoMetric;
86
103
  private getRoomEpoch;
87
104
  private getHistoryPriority;
88
105
  private nextHistoryTaskId;
@@ -141,7 +158,7 @@ export declare class XmppClient implements XmppClientInterface {
141
158
  getChatsPrivateStoreRequestStanza: () => Promise<unknown>;
142
159
  actionSetTimestampToPrivateStoreStanza(chatId: string, timestamp: number, chats?: string[]): Promise<void>;
143
160
  createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
144
- sendMediaMessageStanza(roomJID: string, data: any, id: string): void;
161
+ sendMediaMessageStanza(roomJID: string, data: any, id: string): Promise<boolean>;
145
162
  recoverRoomPresenceOnly(roomJID: string): Promise<boolean>;
146
163
  sendPingStanza(): void;
147
164
  handlePong(): void;
@@ -168,6 +168,9 @@ export interface IConfig {
168
168
  maxInFlightHistory?: number;
169
169
  softPauseAfterSendMs?: number;
170
170
  activeRoomBoostTtlMs?: number;
171
+ activeSendBoostMs?: number;
172
+ backgroundWhileCriticalSend?: boolean;
173
+ preloadTopKRooms?: number;
171
174
  presenceFailureBackoffMs?: number;
172
175
  startupPrivateStoreTimeoutMs?: number;
173
176
  startupPrivateStoreTtlMs?: number;
@@ -15,6 +15,9 @@ export interface xmppSettingsInterface {
15
15
  maxInFlightHistory?: number;
16
16
  softPauseAfterSendMs?: number;
17
17
  activeRoomBoostTtlMs?: number;
18
+ activeSendBoostMs?: number;
19
+ backgroundWhileCriticalSend?: boolean;
20
+ preloadTopKRooms?: number;
18
21
  presenceFailureBackoffMs?: number;
19
22
  startupPrivateStoreTimeoutMs?: number;
20
23
  startupPrivateStoreTtlMs?: number;
@@ -61,6 +64,7 @@ export interface XmppClientInterface {
61
64
  source?: 'active' | 'send_ack' | 'background' | 'default';
62
65
  }): Promise<IMessage[] | undefined>;
63
66
  promoteRoomHistory(roomJID: string): void;
67
+ setActiveRoomJid(roomJID: string | null): void;
64
68
  onCriticalSend(roomJID: string, messageId?: string): void;
65
69
  enqueueHistoryTask(params: {
66
70
  chatJID: string;
@@ -80,7 +84,7 @@ export interface XmppClientInterface {
80
84
  sendTypingRequestStanza(chatId: string, fullName: string, start: boolean): void;
81
85
  getChatsPrivateStoreRequestStanza(): Promise<any>;
82
86
  actionSetTimestampToPrivateStoreStanza(chatId: string, timestamp: number, chats?: string[]): Promise<void>;
83
- sendMediaMessageStanza(roomJID: string, data: MediaUploadData, id: string): void;
87
+ sendMediaMessageStanza(roomJID: string, data: MediaUploadData, id: string): Promise<boolean>;
84
88
  createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
85
89
  sendMessageReactionStanza(messageId: string, roomJid: string, reactionsList: string[], reactionSymbol?: string): void;
86
90
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "26.2.26",
3
+ "version": "26.2.27",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",