@ethora/chat-component 24.11.24 → 24.11.25

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,9 @@
1
+ import { User } from '../../types/types';
2
+
1
3
  export declare function getDocuments(walletAddress: string): Promise<import('axios').AxiosResponse<any, any>>;
2
4
  export declare function getExportMyData(): Promise<import('axios').AxiosResponse<any, any>>;
3
5
  export declare function deleteMe(): Promise<import('axios').AxiosResponse<any, any>>;
4
6
  export declare function updateMe(data: any): Promise<import('axios').AxiosResponse<any, any>>;
5
- export declare function updateProfile(fd: FormData): Promise<string>;
7
+ export declare function updateProfile(fd: FormData): Promise<{
8
+ user: User;
9
+ }>;
@@ -1,10 +1,8 @@
1
1
  import { MODAL_TYPES } from '../helpers/constants/MODAL_TYPES';
2
2
 
3
- export interface IUser {
3
+ export interface IUser extends Partial<User> {
4
4
  id: string;
5
5
  name: string | null;
6
- avatar?: string | null;
7
- xmmpPass?: string | null;
8
6
  userJID?: string | null;
9
7
  token: string;
10
8
  refreshToken: string;
@@ -78,9 +76,9 @@ export interface User {
78
76
  _id: string;
79
77
  firstName: string;
80
78
  lastName: string;
81
- email: string;
82
- username: string;
83
- profileImage: string;
79
+ email?: string;
80
+ username?: string;
81
+ profileImage?: string;
84
82
  emails?: [
85
83
  {
86
84
  loginType: string;
@@ -104,6 +102,7 @@ export interface User {
104
102
  isProfileOpen?: boolean;
105
103
  isAssetsOpen?: boolean;
106
104
  isAgreeWithTerms?: boolean;
105
+ isSuperAdmin?: any;
107
106
  }
108
107
  export interface XmppState {
109
108
  client: any;
@@ -134,7 +133,7 @@ export interface IConfig {
134
133
  };
135
134
  userLogin?: {
136
135
  enabled: boolean;
137
- user: User;
136
+ user: User | null;
138
137
  };
139
138
  disableRooms?: boolean;
140
139
  defaultLogin?: boolean;
@@ -144,6 +143,7 @@ export interface IConfig {
144
143
  roomListStyles?: React.CSSProperties;
145
144
  chatRoomStyles?: React.CSSProperties;
146
145
  setRoomJidInPath?: boolean;
146
+ disableRoomMenu?: boolean;
147
147
  }
148
148
  export interface StorageUser {
149
149
  appId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "24.11.24",
3
+ "version": "24.11.25",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -1,3 +0,0 @@
1
- import { IMessage } from '../types/types';
2
-
3
- export declare const mockMessages: IMessage[];