@ethora/chat-component 24.12.32 → 24.12.34
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/components/MainComponents/ChooseChatMessage.d.ts +5 -0
- package/dist/components/MainComponents/MessageContainer.d.ts +18 -0
- package/dist/components/MainComponents/MessageList.d.ts +2 -2
- package/dist/components/MainComponents/ProfileImagePlaceholder.d.ts +2 -0
- package/dist/components/MenuRoom/MenuRoom.d.ts +7 -0
- package/dist/components/Thread/ThreadWrapper.d.ts +1 -0
- package/dist/components/styled/MessageImage.d.ts +3 -2
- package/dist/components/styled/StyledComponents.d.ts +19 -0
- package/dist/components/styled/UnsupportedType.d.ts +2 -3
- package/dist/components/styled/VideoMessage.d.ts +3 -1
- package/dist/helpers/createMainMessageForThread.d.ts +3 -0
- package/dist/hooks/useChatSettingState.d.ts +9 -0
- package/dist/hooks/useComposing.d.ts +5 -0
- package/dist/hooks/useMessageLoaderQueue.d.ts +1 -1
- package/dist/hooks/useRoomInitialization.d.ts +3 -0
- package/dist/hooks/useRoomState.d.ts +11 -0
- package/dist/hooks/useRoomUrl.d.ts +3 -0
- package/dist/hooks/useSendMessage.d.ts +4 -0
- package/dist/main.js +7643 -7661
- package/dist/main.js.map +1 -1
- package/dist/networking/xmpp/actionSetTimestampToPrivateStore.xmpp.d.ts +1 -1
- package/dist/networking/xmpp/getRooms.xmpp.d.ts +3 -0
- package/dist/networking/xmpp/handleStanzas.xmpp.d.ts +1 -0
- package/dist/networking/xmpp/inviteRoomRequest.xmpp.d.ts +3 -0
- package/dist/networking/xmppClient.d.ts +3 -10
- package/dist/roomStore/chatSettingsSlice.d.ts +4 -4
- package/dist/types/types.d.ts +6 -1
- package/package.json +1 -1
- package/dist/components/Thread/ThreadRoom.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function actionSetTimestampToPrivateStore(client: any, chatId: string, timestamp: number): Promise<boolean>;
|
|
1
|
+
export declare function actionSetTimestampToPrivateStore(client: any, chatId: string, timestamp: number, chats?: string[]): Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function handleStanza(stanza: any, xmppWs: any): void;
|
|
@@ -7,12 +7,8 @@ export declare class XmppClient {
|
|
|
7
7
|
service: string;
|
|
8
8
|
conference: string;
|
|
9
9
|
username: string;
|
|
10
|
-
onclose: () => void;
|
|
11
|
-
onmessage: (data: any) => void;
|
|
12
10
|
status: string;
|
|
13
|
-
activeChat: string;
|
|
14
11
|
password: string;
|
|
15
|
-
resource: string;
|
|
16
12
|
reconnectAttempts: number;
|
|
17
13
|
maxReconnectAttempts: number;
|
|
18
14
|
reconnectDelay: number;
|
|
@@ -20,14 +16,12 @@ export declare class XmppClient {
|
|
|
20
16
|
constructor(username: string, password: string, devServer?: string);
|
|
21
17
|
initializeClient(): void;
|
|
22
18
|
attachEventListeners(): void;
|
|
23
|
-
handleStanza(stanza: any): void;
|
|
24
19
|
scheduleReconnect(): void;
|
|
25
20
|
reconnect(): void;
|
|
26
21
|
close(): Promise<void>;
|
|
27
|
-
|
|
28
|
-
getRooms: () => Promise<unknown>;
|
|
22
|
+
getRoomsStanza: () => Promise<void>;
|
|
29
23
|
createRoomStanza(title: string, description: string, to?: string): Promise<string>;
|
|
30
|
-
|
|
24
|
+
inviteRoomRequestStanza(to: string, roomJid: string): Promise<void>;
|
|
31
25
|
leaveTheRoomStanza: (roomJID: string) => void;
|
|
32
26
|
presenceInRoomStanza: (roomJID: string) => void;
|
|
33
27
|
getHistoryStanza: (chatJID: string, max: number, before?: number, id?: string) => Promise<any>;
|
|
@@ -40,8 +34,7 @@ export declare class XmppClient {
|
|
|
40
34
|
editMessageStanza(room: string, msgId: string, text: string): void;
|
|
41
35
|
sendTypingRequestStanza(chatId: string, fullName: string, start: boolean): void;
|
|
42
36
|
getChatsPrivateStoreRequestStanza: () => Promise<unknown>;
|
|
43
|
-
|
|
44
|
-
actionSetTimestampToPrivateStoreStanza(chatId: string, timestamp: number): Promise<void>;
|
|
37
|
+
actionSetTimestampToPrivateStoreStanza(chatId: string, timestamp: number, chats?: string[]): Promise<void>;
|
|
45
38
|
sendMediaMessageStanza(roomJID: string, data: any): void;
|
|
46
39
|
}
|
|
47
40
|
export default XmppClient;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { DeleteModal, IConfig, IUser, ModalType, User } from '../types/types';
|
|
2
|
+
import { DeleteModal, IConfig, IUser, ModalFile, ModalType, User } from '../types/types';
|
|
3
3
|
|
|
4
4
|
interface ChatState {
|
|
5
5
|
user: User;
|
|
@@ -7,7 +7,7 @@ interface ChatState {
|
|
|
7
7
|
activeModal?: ModalType;
|
|
8
8
|
deleteModal?: DeleteModal;
|
|
9
9
|
selectedUser?: IUser;
|
|
10
|
-
activeFile?:
|
|
10
|
+
activeFile?: ModalFile;
|
|
11
11
|
client?: any;
|
|
12
12
|
}
|
|
13
13
|
export declare const chatSlice: import('@reduxjs/toolkit').Slice<ChatState, {
|
|
@@ -17,7 +17,7 @@ export declare const chatSlice: import('@reduxjs/toolkit').Slice<ChatState, {
|
|
|
17
17
|
}>): void;
|
|
18
18
|
setConfig: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<IConfig | undefined>) => void;
|
|
19
19
|
setActiveModal: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<ModalType | undefined>) => void;
|
|
20
|
-
setActiveFile: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<
|
|
20
|
+
setActiveFile: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<ModalFile>) => void;
|
|
21
21
|
setDeleteModal: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<DeleteModal | undefined>) => void;
|
|
22
22
|
setStoreClient: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<any>) => void;
|
|
23
23
|
setSelectedUser: (state: import('immer').WritableDraft<ChatState>, action: PayloadAction<IUser | undefined>) => void;
|
|
@@ -32,6 +32,6 @@ export declare const setUser: import('@reduxjs/toolkit').ActionCreatorWithOption
|
|
|
32
32
|
refreshToken: string;
|
|
33
33
|
}, "chat/refreshTokens">, logout: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"chat/logout">, setActiveModal: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string, "chat/setActiveModal">, setDeleteModal: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<DeleteModal, "chat/setDeleteModal">, setSelectedUser: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<IUser, "chat/setSelectedUser">, updateUser: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
34
34
|
updates: Partial<User>;
|
|
35
|
-
}, "chat/updateUser">, setActiveFile: import('@reduxjs/toolkit').
|
|
35
|
+
}, "chat/updateUser">, setActiveFile: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ModalFile, "chat/setActiveFile">, setStoreClient: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "chat/setStoreClient">;
|
|
36
36
|
declare const _default: import('redux').Reducer<ChatState>;
|
|
37
37
|
export default _default;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ export interface StorageUser {
|
|
|
183
183
|
export interface MessageProps {
|
|
184
184
|
message: IMessage;
|
|
185
185
|
isUser: boolean;
|
|
186
|
-
isReply
|
|
186
|
+
isReply: boolean;
|
|
187
187
|
}
|
|
188
188
|
export interface MediaMessageType {
|
|
189
189
|
}
|
|
@@ -199,4 +199,9 @@ export interface EditAction {
|
|
|
199
199
|
text?: string;
|
|
200
200
|
}
|
|
201
201
|
export type ModalType = (typeof MODAL_TYPES)[keyof typeof MODAL_TYPES];
|
|
202
|
+
export interface ModalFile {
|
|
203
|
+
fileName: string;
|
|
204
|
+
fileURL: string;
|
|
205
|
+
mimetype: string;
|
|
206
|
+
}
|
|
202
207
|
export {};
|
package/package.json
CHANGED
|
File without changes
|