@ethora/chat-component 25.3.10 → 25.3.12

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 };
@@ -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;
@@ -256,7 +257,10 @@ export interface IConfig {
256
257
  disableGetRooms?: boolean;
257
258
  singleRoom: boolean;
258
259
  };
259
- enableTranslates?: boolean;
260
+ translates?: {
261
+ enabled: boolean;
262
+ translations?: Iso639_1Codes;
263
+ };
260
264
  disableRoomConfig?: boolean;
261
265
  disableProfilesInteractions?: boolean;
262
266
  disableUserCount?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "25.03.10",
3
+ "version": "25.03.12",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",