@esvndev/es-react-template-chat 0.0.32 → 0.0.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.
|
@@ -1,145 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
name?: string;
|
|
5
|
-
phone?: string;
|
|
6
|
-
email?: string;
|
|
7
|
-
address?: string;
|
|
8
|
-
avatar?: string;
|
|
9
|
-
gender?: string;
|
|
10
|
-
lastLogin?: string;
|
|
11
|
-
currentSession?: string;
|
|
12
|
-
status?: number;
|
|
13
|
-
isFriend?: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface IFState {
|
|
16
|
-
checkInit: boolean;
|
|
17
|
-
chatRoomId?: string;
|
|
18
|
-
contactId?: string;
|
|
19
|
-
userLogin?: IUser;
|
|
20
|
-
listContact?: any;
|
|
21
|
-
typeChat: string;
|
|
22
|
-
active?: string;
|
|
23
|
-
loadChat?: number;
|
|
24
|
-
messageByGroup: any;
|
|
25
|
-
listHistory: any;
|
|
26
|
-
listChatType: any;
|
|
27
|
-
archiveStore: any[];
|
|
28
|
-
checkScroll: boolean;
|
|
29
|
-
listGeneralGroup: any;
|
|
30
|
-
pinnedMessages: any[];
|
|
31
|
-
typingUsers: any;
|
|
32
|
-
}
|
|
33
|
-
export declare const get_history: import("@reduxjs/toolkit").AsyncThunk<any, any, import("@reduxjs/toolkit/dist/createAsyncThunk").AsyncThunkConfig>;
|
|
34
|
-
export declare const appChatSlice: import("@reduxjs/toolkit").Slice<IFState, {
|
|
35
|
-
selectChat(state: import("immer").WritableDraft<IFState>, action: {
|
|
36
|
-
payload: any;
|
|
37
|
-
type: string;
|
|
38
|
-
}): void;
|
|
39
|
-
selectContact(state: import("immer").WritableDraft<IFState>, action: {
|
|
40
|
-
payload: any;
|
|
41
|
-
type: string;
|
|
42
|
-
}): void;
|
|
43
|
-
selectType(state: import("immer").WritableDraft<IFState>, action: {
|
|
44
|
-
payload: any;
|
|
45
|
-
type: string;
|
|
46
|
-
}): void;
|
|
47
|
-
selectActive(state: import("immer").WritableDraft<IFState>, action: {
|
|
48
|
-
payload: any;
|
|
49
|
-
type: string;
|
|
50
|
-
}): void;
|
|
51
|
-
selectLoadChat(state: import("immer").WritableDraft<IFState>, action: {
|
|
52
|
-
payload: any;
|
|
53
|
-
type: string;
|
|
54
|
-
}): void;
|
|
55
|
-
selectByGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
56
|
-
payload: any;
|
|
57
|
-
type: string;
|
|
58
|
-
}): void;
|
|
59
|
-
setScroll(state: import("immer").WritableDraft<IFState>, action: {
|
|
60
|
-
payload: any;
|
|
61
|
-
type: string;
|
|
62
|
-
}): void;
|
|
63
|
-
addNewMessage(state: import("immer").WritableDraft<IFState>, action: {
|
|
64
|
-
payload: any;
|
|
65
|
-
type: string;
|
|
66
|
-
}): void;
|
|
67
|
-
addPinnedMessage(state: import("immer").WritableDraft<IFState>, action: {
|
|
68
|
-
payload: any;
|
|
69
|
-
type: string;
|
|
70
|
-
}): void;
|
|
71
|
-
deleteMessage(state: import("immer").WritableDraft<IFState>, action: {
|
|
72
|
-
payload: any;
|
|
73
|
-
type: string;
|
|
74
|
-
}): void;
|
|
75
|
-
setCountUnread(state: import("immer").WritableDraft<IFState>, action: {
|
|
76
|
-
payload: any;
|
|
77
|
-
type: string;
|
|
78
|
-
}): void;
|
|
79
|
-
setHistory(state: import("immer").WritableDraft<IFState>, action: {
|
|
80
|
-
payload: any;
|
|
81
|
-
type: string;
|
|
82
|
-
}): void;
|
|
83
|
-
setMessageByGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
84
|
-
payload: any;
|
|
85
|
-
type: string;
|
|
86
|
-
}): void;
|
|
87
|
-
updateMemberGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
88
|
-
payload: any;
|
|
89
|
-
type: string;
|
|
90
|
-
}): void;
|
|
91
|
-
removeChatRoom(state: import("immer").WritableDraft<IFState>, action: {
|
|
92
|
-
payload: any;
|
|
93
|
-
type: string;
|
|
94
|
-
}): void;
|
|
95
|
-
leaveGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
96
|
-
payload: any;
|
|
97
|
-
type: string;
|
|
98
|
-
}): void;
|
|
99
|
-
getGeneralGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
100
|
-
payload: any;
|
|
101
|
-
type: string;
|
|
102
|
-
}): void;
|
|
103
|
-
setGeneralGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
104
|
-
payload: any;
|
|
105
|
-
type: string;
|
|
106
|
-
}): void;
|
|
107
|
-
getNotification(state: import("immer").WritableDraft<IFState>, action: {
|
|
108
|
-
payload: any;
|
|
109
|
-
type: string;
|
|
110
|
-
}): void;
|
|
111
|
-
setListChatType(state: import("immer").WritableDraft<IFState>, action: {
|
|
112
|
-
payload: any;
|
|
113
|
-
type: string;
|
|
114
|
-
}): void;
|
|
115
|
-
setArchive(state: import("immer").WritableDraft<IFState>, action: {
|
|
116
|
-
payload: any;
|
|
117
|
-
type: string;
|
|
118
|
-
}): void;
|
|
119
|
-
setApproveStatus(state: import("immer").WritableDraft<IFState>, action: {
|
|
120
|
-
payload: any;
|
|
121
|
-
type: string;
|
|
122
|
-
}): void;
|
|
123
|
-
editGroupName(state: import("immer").WritableDraft<IFState>, action: {
|
|
124
|
-
payload: any;
|
|
125
|
-
type: string;
|
|
126
|
-
}): void;
|
|
127
|
-
editGroupAvatar(state: import("immer").WritableDraft<IFState>, action: {
|
|
128
|
-
payload: any;
|
|
129
|
-
type: string;
|
|
130
|
-
}): void;
|
|
131
|
-
editGroupTag(state: import("immer").WritableDraft<IFState>, action: {
|
|
132
|
-
payload: any;
|
|
133
|
-
type: string;
|
|
134
|
-
}): void;
|
|
135
|
-
userTyping(state: import("immer").WritableDraft<IFState>, action: {
|
|
136
|
-
payload: any;
|
|
137
|
-
type: string;
|
|
138
|
-
}): void;
|
|
139
|
-
recallMessage(state: import("immer").WritableDraft<IFState>, action: {
|
|
140
|
-
payload: any;
|
|
141
|
-
type: string;
|
|
142
|
-
}): void;
|
|
143
|
-
}, "appChat", "appChat", import("@reduxjs/toolkit").SliceSelectors<IFState>>;
|
|
144
|
-
export declare const selectChat: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/selectChat">, selectContact: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/selectContact">, selectType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/selectType">, selectActive: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/selectActive">, selectLoadChat: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/selectLoadChat">, selectByGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/selectByGroup">, addNewMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/addNewMessage">, setCountUnread: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/setCountUnread">, deleteMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/deleteMessage">, recallMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/recallMessage">, getNotification: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/getNotification">, removeChatRoom: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/removeChatRoom">, setListChatType: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/setListChatType">, setArchive: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/setArchive">, setApproveStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/setApproveStatus">, setHistory: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/setHistory">, editGroupName: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/editGroupName">, setScroll: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/setScroll">, updateMemberGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/updateMemberGroup">, setMessageByGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/setMessageByGroup">, leaveGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/leaveGroup">, getGeneralGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/getGeneralGroup">, setGeneralGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/setGeneralGroup">, editGroupAvatar: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/editGroupAvatar">, editGroupTag: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/editGroupTag">, addPinnedMessage: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/addPinnedMessage">, userTyping: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "appChat/userTyping">;
|
|
145
|
-
export {};
|
|
1
|
+
export declare const get_history: any;
|
|
2
|
+
export declare const appChatSlice: any;
|
|
3
|
+
export declare const selectChat: any, selectContact: any, selectType: any, selectActive: any, selectLoadChat: any, selectByGroup: any, addNewMessage: any, setCountUnread: any, deleteMessage: any, recallMessage: any, getNotification: any, removeChatRoom: any, setListChatType: any, setArchive: any, setApproveStatus: any, setHistory: any, editGroupName: any, setScroll: any, updateMemberGroup: any, setMessageByGroup: any, leaveGroup: any, getGeneralGroup: any, setGeneralGroup: any, editGroupAvatar: any, editGroupTag: any, addPinnedMessage: any, userTyping: any;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const uploadImageApi: import("@reduxjs/toolkit").AsyncThunk<any, FormData, import("@reduxjs/toolkit/dist/createAsyncThunk").AsyncThunkConfig>;
|
|
7
|
-
export declare const uploadMultiFileApi: import("@reduxjs/toolkit").AsyncThunk<any, FormData, import("@reduxjs/toolkit/dist/createAsyncThunk").AsyncThunkConfig>;
|
|
8
|
-
export declare const uploadFileSlice: import("@reduxjs/toolkit").Slice<IFFileState, {
|
|
9
|
-
handleAddUploadFile: (state: import("immer").WritableDraft<IFFileState>, action: {
|
|
10
|
-
payload: any;
|
|
11
|
-
type: string;
|
|
12
|
-
}) => void;
|
|
13
|
-
}, "uploadFile", "uploadFile", import("@reduxjs/toolkit").SliceSelectors<IFFileState>>;
|
|
14
|
-
export declare const handleAddUploadFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "uploadFile/handleAddUploadFile">;
|
|
15
|
-
export {};
|
|
1
|
+
export declare const uploadFileApi: any;
|
|
2
|
+
export declare const uploadImageApi: any;
|
|
3
|
+
export declare const uploadMultiFileApi: any;
|
|
4
|
+
export declare const uploadFileSlice: any;
|
|
5
|
+
export declare const handleAddUploadFile: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esvndev/es-react-template-chat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"description": "This product is designed by ESVN and is only for use in products distributed by ESVN. Any product, whether for non-commercial research or commercial purposes, must have written legal approval and a digital signature from ESVN.",
|
|
5
5
|
"author": "dev@esvn.com.vn",
|
|
6
6
|
"license": "ESVN Limited Use License",
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"postcss": "^8.4.35",
|
|
25
|
-
"react-custom-scrollbars-2": "^4.5.0"
|
|
26
|
-
"@reduxjs/toolkit": "2.2.5",
|
|
27
|
-
"react-redux": "8.1.3"
|
|
25
|
+
"react-custom-scrollbars-2": "^4.5.0"
|
|
28
26
|
},
|
|
29
27
|
"devDependencies": {
|
|
30
28
|
"@hookform/resolvers": "^2.8.10",
|
|
@@ -110,7 +108,9 @@
|
|
|
110
108
|
},
|
|
111
109
|
"peerDependencies": {
|
|
112
110
|
"react": ">=16.8.6",
|
|
113
|
-
"react-dom": ">=16.8.6"
|
|
111
|
+
"react-dom": ">=16.8.6",
|
|
112
|
+
"@reduxjs/toolkit": ">=1.9.0",
|
|
113
|
+
"react-redux": ">=8.0.0"
|
|
114
114
|
},
|
|
115
115
|
"publishConfig": {
|
|
116
116
|
"access": "public"
|