@ethora/chat-component 25.5.18 → 25.5.20
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/helpers/storeConsole.d.ts +4 -2
- package/dist/hooks/hooks.d.ts +4 -0
- package/dist/hooks/useChatSettingState.d.ts +7 -7
- package/dist/hooks/useRoomState.d.ts +9 -11
- package/dist/main.js +4452 -4286
- package/dist/main.js.map +1 -1
- package/dist/networking/xmpp/createTimeoutPromise.xmpp.d.ts +1 -4
- package/dist/roomStore/index.d.ts +19 -9
- package/dist/roomStore/roomsSlice.d.ts +15 -6
- package/dist/types/models/config.model.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { default as roomsSlice } from './roomsSlice';
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
3
2
|
import { IRoom } from '../types/types';
|
|
4
3
|
import { AnyAction } from 'redux-saga';
|
|
4
|
+
declare const rootReducer: Reducer<{
|
|
5
|
+
chatSettingStore: any;
|
|
6
|
+
rooms: any;
|
|
7
|
+
}, import('redux').UnknownAction, Partial<{
|
|
8
|
+
chatSettingStore: any;
|
|
9
|
+
rooms: any;
|
|
10
|
+
}>>;
|
|
11
|
+
export type RootState = ReturnType<typeof rootReducer>;
|
|
5
12
|
export declare const getActiveRoom: (state: RootState) => IRoom | null;
|
|
6
|
-
export declare const store: import('@reduxjs/toolkit').EnhancedStore<
|
|
7
|
-
|
|
13
|
+
export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
14
|
+
chatSettingStore: any;
|
|
15
|
+
rooms: any;
|
|
16
|
+
}, AnyAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
17
|
+
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
18
|
+
chatSettingStore: any;
|
|
19
|
+
rooms: any;
|
|
20
|
+
}, undefined, import('redux').UnknownAction>;
|
|
8
21
|
}>, import('redux').StoreEnhancer]>>;
|
|
9
|
-
export declare const persistor: import('redux-persist').Persistor;
|
|
10
|
-
export type RootState = {
|
|
11
|
-
chatSettingStore: ReturnType<typeof chatSettingsReducer>;
|
|
12
|
-
rooms: ReturnType<typeof roomsSlice>;
|
|
13
|
-
};
|
|
14
22
|
export type AppDispatch = typeof store.dispatch;
|
|
23
|
+
export declare const persistor: import('redux-persist').Persistor;
|
|
24
|
+
export {};
|
|
@@ -14,6 +14,19 @@ interface RoomMessagesState {
|
|
|
14
14
|
};
|
|
15
15
|
loadingText?: string;
|
|
16
16
|
}
|
|
17
|
+
export declare const addRoomViaApi: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
18
|
+
room: IRoom;
|
|
19
|
+
xmpp: XmppClient;
|
|
20
|
+
}, {
|
|
21
|
+
state?: unknown;
|
|
22
|
+
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
23
|
+
extra?: unknown;
|
|
24
|
+
rejectValue?: unknown;
|
|
25
|
+
serializedErrorType?: unknown;
|
|
26
|
+
pendingMeta?: unknown;
|
|
27
|
+
fulfilledMeta?: unknown;
|
|
28
|
+
rejectedMeta?: unknown;
|
|
29
|
+
}>;
|
|
17
30
|
export declare const roomsStore: import('@reduxjs/toolkit').Slice<RoomMessagesState, {
|
|
18
31
|
addRoom(state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
19
32
|
roomData: IRoom;
|
|
@@ -78,9 +91,8 @@ export declare const roomsStore: import('@reduxjs/toolkit').Slice<RoomMessagesSt
|
|
|
78
91
|
setCloseActiveMessage: (state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
79
92
|
chatJID: string;
|
|
80
93
|
}>) => void;
|
|
81
|
-
|
|
94
|
+
addRoomFromApi: (state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
82
95
|
room: IRoom;
|
|
83
|
-
xmpp: XmppClient;
|
|
84
96
|
}>) => void;
|
|
85
97
|
updateUsersSet: (state: import('immer').WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
86
98
|
rooms: ApiRoom[];
|
|
@@ -131,10 +143,7 @@ export declare const addRoom: import('@reduxjs/toolkit').ActionCreatorWithOption
|
|
|
131
143
|
}, "roomMessages/deleteRoom">, updateRoom: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
132
144
|
jid: string;
|
|
133
145
|
updates: Partial<IRoom>;
|
|
134
|
-
}, "roomMessages/updateRoom">,
|
|
135
|
-
room: IRoom;
|
|
136
|
-
xmpp: XmppClient;
|
|
137
|
-
}, "roomMessages/addRoomViaApi">, updateUsersSet: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
146
|
+
}, "roomMessages/updateRoom">, updateUsersSet: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
138
147
|
rooms: ApiRoom[];
|
|
139
148
|
}, "roomMessages/updateUsersSet">, setOpenReportModal: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
140
149
|
isOpen: boolean;
|
|
@@ -84,9 +84,10 @@ export interface IConfig {
|
|
|
84
84
|
secondarySendButton?: {
|
|
85
85
|
enabled: boolean;
|
|
86
86
|
messageEdit: string;
|
|
87
|
-
|
|
87
|
+
label?: React.ReactNode;
|
|
88
88
|
buttonStyles?: React.CSSProperties;
|
|
89
89
|
hideInputSendButton?: boolean;
|
|
90
|
+
overwriteEnterClick?: true;
|
|
90
91
|
};
|
|
91
92
|
enableRoomsRetry?: {
|
|
92
93
|
enabled: boolean;
|