@ethora/chat-component 24.11.19 → 24.11.21
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/assets/icons.d.ts +16 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -0
- package/dist/components/Modals/Modal/Modal.d.ts +2 -1
- package/dist/components/Modals/ModalHeaderComponent.d.ts +2 -1
- package/dist/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.d.ts +7 -0
- package/dist/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.d.ts +7 -0
- package/dist/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.d.ts +7 -0
- package/dist/components/Modals/SettingsModals/ManageDataModal/StyledComponents.d.ts +0 -0
- package/dist/components/Modals/SettingsModals/ProfileShares/ProfileShares.d.ts +7 -0
- package/dist/components/Modals/SettingsModals/Referrals/Referrals.d.ts +7 -0
- package/dist/components/Modals/SettingsModals/Visibility/StyledComponents.d.ts +8 -0
- package/dist/components/Modals/SettingsModals/Visibility/VisibilityModal.d.ts +5 -0
- package/dist/components/SortDropDown/index.d.ts +9 -0
- package/dist/components/Toast/index.d.ts +3 -0
- package/dist/components/styled/StyledComponents.d.ts +1 -0
- package/dist/components/styled/StyledInput.d.ts +9 -0
- package/dist/context/toastProvider.d.ts +0 -0
- package/dist/helpers/constants/MODAL_TYPES.d.ts +14 -0
- package/dist/main.js +6683 -5895
- package/dist/main.js.map +1 -1
- package/dist/networking/api-requests/user.api.d.ts +4 -0
- package/dist/networking/stanzaHandlers.d.ts +10 -0
- package/dist/roomStore/chatSettingsSlice.d.ts +4 -4
- package/dist/types/types.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getDocuments(walletAddress: string): Promise<import('axios').AxiosResponse<any, any>>;
|
|
2
|
+
export declare function getExportMyData(): Promise<import('axios').AxiosResponse<any, any>>;
|
|
3
|
+
export declare function deleteMe(): Promise<import('axios').AxiosResponse<any, any>>;
|
|
4
|
+
export declare function updateMe(data: any): Promise<import('axios').AxiosResponse<any, any>>;
|
|
@@ -21,6 +21,16 @@ export declare const createMessage: (data: {
|
|
|
21
21
|
quickReplie?: any;
|
|
22
22
|
notDisplayedValue?: any;
|
|
23
23
|
showInChannel?: any;
|
|
24
|
+
attachmentId?: any;
|
|
25
|
+
createdAt?: any;
|
|
26
|
+
expiresAt?: any;
|
|
27
|
+
fileName?: any;
|
|
28
|
+
originalName?: any;
|
|
29
|
+
ownerKey?: any;
|
|
30
|
+
receiverMessageId?: any;
|
|
31
|
+
size?: any;
|
|
32
|
+
updatedAt?: any;
|
|
33
|
+
userId?: any;
|
|
24
34
|
}, body: Element | undefined, id: string, from: any) => Promise<any>;
|
|
25
35
|
declare const onRealtimeMessage: (stanza: Element) => Promise<any>;
|
|
26
36
|
declare const onMessageHistory: (stanza: any) => Promise<void>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { IConfig, IUser, User } from '../types/types';
|
|
2
|
+
import { IConfig, IUser, ModalType, User } from '../types/types';
|
|
3
3
|
|
|
4
4
|
interface ChatState {
|
|
5
5
|
user: User;
|
|
6
6
|
config?: IConfig;
|
|
7
|
-
activeModal?:
|
|
7
|
+
activeModal?: ModalType;
|
|
8
8
|
selectedUser?: IUser;
|
|
9
9
|
}
|
|
10
10
|
export declare const chatSlice: import('@reduxjs/toolkit').Slice<ChatState, {
|
|
11
11
|
setUser: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<User>) => void;
|
|
12
12
|
setConfig: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<IConfig | undefined>) => void;
|
|
13
|
-
setActiveModal: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<
|
|
13
|
+
setActiveModal: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<ModalType | undefined>) => void;
|
|
14
14
|
setSelectedUser: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<IUser | undefined>) => void;
|
|
15
15
|
refreshTokens: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<{
|
|
16
16
|
token: string;
|
|
@@ -21,6 +21,6 @@ export declare const chatSlice: import('@reduxjs/toolkit').Slice<ChatState, {
|
|
|
21
21
|
export declare const setUser: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<User, "chat/setUser">, setConfig: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<"chat/setConfig">, refreshTokens: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
22
22
|
token: string;
|
|
23
23
|
refreshToken: string;
|
|
24
|
-
}, "chat/refreshTokens">, logout: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"chat/logout">, setActiveModal: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
|
|
24
|
+
}, "chat/refreshTokens">, logout: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"chat/logout">, setActiveModal: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string, "chat/setActiveModal">, setSelectedUser: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<IUser, "chat/setSelectedUser">;
|
|
25
25
|
declare const _default: import('redux').Reducer<ChatState>;
|
|
26
26
|
export default _default;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { MODAL_TYPES } from '../helpers/constants/MODAL_TYPES';
|
|
2
|
+
|
|
1
3
|
export interface IUser {
|
|
2
4
|
id: string;
|
|
3
5
|
name: string | null;
|
|
@@ -162,3 +164,4 @@ export interface MessageProps {
|
|
|
162
164
|
}
|
|
163
165
|
export interface MediaMessageType {
|
|
164
166
|
}
|
|
167
|
+
export type ModalType = (typeof MODAL_TYPES)[keyof typeof MODAL_TYPES];
|