@ethora/chat-component 25.3.13 → 25.3.15

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.
@@ -1,5 +1,6 @@
1
1
  declare const http: import('axios').AxiosInstance;
2
- export declare function setBaseURL(newBaseURL: string | undefined): void;
2
+ declare let appToken: string;
3
+ export declare function setBaseURL(newBaseURL?: string, customAppToken?: string): void;
3
4
  export declare function refresh(): Promise<{
4
5
  data: {
5
6
  refreshToken: string;
@@ -7,3 +8,4 @@ export declare function refresh(): Promise<{
7
8
  };
8
9
  }>;
9
10
  export default http;
11
+ export { appToken };
@@ -0,0 +1,3 @@
1
+ import { Client } from '@xmpp/client';
2
+
3
+ export declare function allRoomPresences(client: Client): void;
@@ -19,6 +19,7 @@ export declare class XmppClient implements XmppClientInterface {
19
19
  disconnect(): Promise<void>;
20
20
  attachEventListeners(): void;
21
21
  reconnect(): Promise<void>;
22
+ allRoomPresencesStanza(): void;
22
23
  ensureConnected(timeout?: number): Promise<void>;
23
24
  close(): Promise<void>;
24
25
  wrapWithConnectionCheck<T>(operation: () => Promise<T>): Promise<T>;
@@ -222,6 +222,7 @@ export interface IConfig {
222
222
  loginFunction: any;
223
223
  };
224
224
  baseUrl?: string;
225
+ customAppToken?: string;
225
226
  xmppSettings?: xmppSettingsInterface;
226
227
  disableRooms?: boolean;
227
228
  defaultLogin?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "25.03.13",
3
+ "version": "25.03.15",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",