@ethora/chat-component 26.2.17 → 26.2.20

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.
@@ -4,10 +4,10 @@ export declare function loginEmail(email: string, password: string): Promise<imp
4
4
  user: User;
5
5
  refreshToken: string;
6
6
  token: string;
7
- }, any>>;
8
- export declare function loginSocial(idToken: string, accessToken: string, loginType: string, authToken?: string): Promise<import('axios').AxiosResponse<any, any>>;
9
- export declare function registerSocial(idToken: string, accessToken: string, authToken: string, loginType: string, signUpPlan?: string): Promise<import('axios').AxiosResponse<any, any>>;
10
- export declare function checkEmailExist(email: string): Promise<import('axios').AxiosResponse<any, any>>;
7
+ }, any, {}>>;
8
+ export declare function loginSocial(idToken: string, accessToken: string, loginType: string, authToken?: string): Promise<import('axios').AxiosResponse<any, any, {}>>;
9
+ export declare function registerSocial(idToken: string, accessToken: string, authToken: string, loginType: string, signUpPlan?: string): Promise<import('axios').AxiosResponse<any, any, {}>>;
10
+ export declare function checkEmailExist(email: string): Promise<import('axios').AxiosResponse<any, any, {}>>;
11
11
  export declare function loginViaJwt(clientToken: string): Promise<User>;
12
12
  export declare const signInWithGoogle: () => Promise<{
13
13
  user: FirebaseUser;
@@ -18,4 +18,4 @@ export declare const signInWithGoogle: () => Promise<{
18
18
  idToken?: undefined;
19
19
  credential?: undefined;
20
20
  }>;
21
- export declare function uploadFile(formData: FormData): Promise<import('axios').AxiosResponse<any, any>>;
21
+ export declare function uploadFile(formData: FormData): Promise<import('axios').AxiosResponse<any, any, {}>>;
@@ -3,10 +3,10 @@ interface GetMyUserOptions {
3
3
  token?: string;
4
4
  endpoint?: string;
5
5
  }
6
- export declare function getDocuments(walletAddress: string): Promise<import('axios').AxiosResponse<any, any>>;
7
- export declare function getExportMyData(): Promise<import('axios').AxiosResponse<any, any>>;
8
- export declare function deleteMe(): Promise<import('axios').AxiosResponse<any, any>>;
9
- export declare function updateMe(data: any): Promise<import('axios').AxiosResponse<any, any>>;
6
+ export declare function getDocuments(walletAddress: string): Promise<import('axios').AxiosResponse<any, any, {}>>;
7
+ export declare function getExportMyData(): Promise<import('axios').AxiosResponse<any, any, {}>>;
8
+ export declare function deleteMe(): Promise<import('axios').AxiosResponse<any, any, {}>>;
9
+ export declare function updateMe(data: any): Promise<import('axios').AxiosResponse<any, any, {}>>;
10
10
  export declare function updateProfile(fd: FormData): Promise<{
11
11
  user: User;
12
12
  }>;
@@ -3,7 +3,6 @@ import { Iso639_1Codes, XmppClientInterface, xmppSettingsInterface, IMessage } f
3
3
  import { AllRoomPresenceSummary } from './xmpp/allRoomPresences.xmpp';
4
4
  type HistorySource = 'active' | 'send_ack' | 'background' | 'default';
5
5
  export declare class XmppClient implements XmppClientInterface {
6
- private static activeByEndpoint;
7
6
  client: Client;
8
7
  devServer: string | undefined;
9
8
  host: string;
@@ -60,14 +59,10 @@ export declare class XmppClient implements XmppClientInterface {
60
59
  private reconnectBaseDelayMs;
61
60
  private pausedDueToOfflineCap;
62
61
  private authFailureDetected;
63
- private reconnectSuppressed;
64
- private endpointKey;
65
62
  private isTerminalAuthFailure;
66
63
  constructor(username: string, password: string, xmppSettings?: xmppSettingsInterface);
67
64
  initializeClient(): Promise<void>;
68
- disconnect(options?: {
69
- suppressReconnect?: boolean;
70
- }): Promise<void>;
65
+ disconnect(): Promise<void>;
71
66
  attachEventListeners(): void;
72
67
  private scheduleAdaptivePing;
73
68
  private startAdaptivePing;
@@ -77,7 +77,5 @@ export interface XmppClientInterface {
77
77
  createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
78
78
  sendMessageReactionStanza(messageId: string, roomJid: string, reactionsList: string[], reactionSymbol?: string): void;
79
79
  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;
80
- disconnect?(options?: {
81
- suppressReconnect?: boolean;
82
- }): Promise<void>;
80
+ disconnect?(): Promise<void>;
83
81
  }
@@ -1,21 +1,10 @@
1
1
  import { default as XmppClient } from '../networking/xmppClient';
2
- import { xmppSettingsInterface } from '../types/types';
3
- export declare function buildXmppClientKey(username: string, xmppSettings?: xmppSettingsInterface): string;
4
- export declare function isXmppClientReusable(client: XmppClient | null): boolean;
5
- export declare function setGlobalXmppClient(client: XmppClient | null, key?: string): void;
2
+ export declare function setGlobalXmppClient(client: XmppClient | null): void;
6
3
  export declare function getGlobalXmppClient(): XmppClient | null;
7
- export declare function getGlobalXmppClientKey(): string;
8
- export declare function getReusableXmppClientByKey(key: string): XmppClient | null;
9
- export declare function withXmppClientInitLock(key: string, init: () => Promise<XmppClient>): Promise<XmppClient>;
10
4
  export declare function requireXmppClient(): XmppClient;
11
5
  declare const _default: {
12
- buildXmppClientKey: typeof buildXmppClientKey;
13
- isXmppClientReusable: typeof isXmppClientReusable;
14
6
  setGlobalXmppClient: typeof setGlobalXmppClient;
15
7
  getGlobalXmppClient: typeof getGlobalXmppClient;
16
- getGlobalXmppClientKey: typeof getGlobalXmppClientKey;
17
- getReusableXmppClientByKey: typeof getReusableXmppClientByKey;
18
- withXmppClientInitLock: typeof withXmppClientInitLock;
19
8
  requireXmppClient: typeof requireXmppClient;
20
9
  };
21
10
  export default _default;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const ETHORA_CHAT_COMPONENT_VERSION = "26.02.11";
1
+ export declare const ETHORA_CHAT_COMPONENT_VERSION = "26.02.20";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "26.02.17",
3
+ "version": "26.02.20",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -39,6 +39,7 @@
39
39
  "react-qr-code": "^2.0.16",
40
40
  "react-redux": "^9.2.0",
41
41
  "react-router-dom": "^7.6.2",
42
+ "react-use-measure": "^2.1.7",
42
43
  "redux": "^5.0.1",
43
44
  "redux-persist": "^6.0.0",
44
45
  "redux-persist-transform-encrypt": "^5.1.1",