@ethora/chat-component 26.6.3 → 26.6.5

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/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { m as e, R as o, C as t, M as p, n as r, X as u, o as n, p as d, q as h, t as i, v as y, w as I, x as T, y as g, z as l, D as C, E as c, F as m } from "./main-aegXJZvS.js";
1
+ import { m as e, R as o, C as t, M as p, n as r, X as u, o as n, p as d, q as h, t as i, v as y, w as I, x as T, y as g, z as l, D as C, E as c, F as m } from "./main-CvjGO1ik.js";
2
2
  export {
3
3
  e as AuthTestIds,
4
4
  o as Chat,
@@ -4,6 +4,7 @@ export declare function loginEmail(email: string, password: string): Promise<imp
4
4
  user: User;
5
5
  refreshToken: string;
6
6
  token: string;
7
+ fileToken?: string;
7
8
  }, any, {}>>;
8
9
  export declare function loginSocial(idToken: string, accessToken: string, loginType: string, authToken?: string): Promise<import('axios').AxiosResponse<any, any, {}>>;
9
10
  export declare function registerSocial(idToken: string, accessToken: string, authToken: string, loginType: string, signUpPlan?: string): Promise<import('axios').AxiosResponse<any, any, {}>>;
@@ -18,5 +19,5 @@ export declare const signInWithGoogle: () => Promise<{
18
19
  idToken: string;
19
20
  credential: import('firebase/auth').OAuthCredential;
20
21
  }>;
21
- export declare function uploadFile(formData: FormData): Promise<import('axios').AxiosResponse<any, any, {}>>;
22
+ export declare function uploadFile(formData: FormData, activeRoomJID: string): Promise<import('axios').AxiosResponse<any, any, {}>>;
22
23
  export declare function ensureUserFromMy(user: User | null | undefined): Promise<User | null>;
@@ -5,6 +5,7 @@ export declare function refresh(): Promise<{
5
5
  data: {
6
6
  refreshToken: string;
7
7
  token: string;
8
+ fileToken?: string;
8
9
  };
9
10
  }>;
10
11
  export default http;
@@ -36,6 +36,7 @@ interface ChatState {
36
36
  export declare const setUser: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<User, "chatSettingStore/setUser">, setConfig: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<"chatSettingStore/setConfig">, refreshTokens: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
37
37
  token: string;
38
38
  refreshToken: string;
39
+ fileToken?: string;
39
40
  }, "chatSettingStore/refreshTokens">, logout: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"chatSettingStore/logout">, setActiveModal: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string, "chatSettingStore/setActiveModal">, setDeleteModal: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<DeleteModal, "chatSettingStore/setDeleteModal">, setSelectedUser: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<IUser, "chatSettingStore/setSelectedUser">, updateUser: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
40
41
  updates: Partial<User>;
41
42
  }, "chatSettingStore/updateUser">, setActiveFile: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ModalFile, "chatSettingStore/setActiveFile">, setLangSource: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<Iso639_1Codes, "chatSettingStore/setLangSource">, setTranslateSendEnabled: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<boolean, "chatSettingStore/setTranslateSendEnabled">, setTranslateMode: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<"auto" | "manual", "chatSettingStore/setTranslateMode">;
@@ -204,6 +204,7 @@ export interface IConfig {
204
204
  refreshFunction?: () => Promise<{
205
205
  accessToken: string;
206
206
  refreshToken?: string;
207
+ fileToken?: string;
207
208
  } | null>;
208
209
  };
209
210
  backgroundChat?: {
@@ -12,6 +12,7 @@ export interface User {
12
12
  description?: string;
13
13
  token: string;
14
14
  refreshToken: string;
15
+ fileToken?: string;
15
16
  defaultWallet: {
16
17
  walletAddress: string;
17
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "26.6.3",
3
+ "version": "26.6.5",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",