@esvndev/es-react-template-chat 0.0.33 → 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.
- package/dist/components/store/index.d.ts +3 -146
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/utility/stores/uploadFile.d.ts +5 -15
- package/package.json +5 -5
|
@@ -1,146 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
code?: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
phone?: string;
|
|
7
|
-
email?: string;
|
|
8
|
-
address?: string;
|
|
9
|
-
avatar?: string;
|
|
10
|
-
gender?: string;
|
|
11
|
-
lastLogin?: string;
|
|
12
|
-
currentSession?: string;
|
|
13
|
-
status?: number;
|
|
14
|
-
isFriend?: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface IFState {
|
|
17
|
-
checkInit: boolean;
|
|
18
|
-
chatRoomId?: string;
|
|
19
|
-
contactId?: string;
|
|
20
|
-
userLogin?: IUser;
|
|
21
|
-
listContact?: any;
|
|
22
|
-
typeChat: string;
|
|
23
|
-
active?: string;
|
|
24
|
-
loadChat?: number;
|
|
25
|
-
messageByGroup: any;
|
|
26
|
-
listHistory: any;
|
|
27
|
-
listChatType: any;
|
|
28
|
-
archiveStore: any[];
|
|
29
|
-
checkScroll: boolean;
|
|
30
|
-
listGeneralGroup: any;
|
|
31
|
-
pinnedMessages: any[];
|
|
32
|
-
typingUsers: any;
|
|
33
|
-
}
|
|
34
|
-
export declare const get_history: RTK.AsyncThunk<any, any, import("@reduxjs/toolkit/dist/createAsyncThunk").AsyncThunkConfig>;
|
|
35
|
-
export declare const appChatSlice: RTK.Slice<IFState, {
|
|
36
|
-
selectChat(state: import("immer").WritableDraft<IFState>, action: {
|
|
37
|
-
payload: any;
|
|
38
|
-
type: string;
|
|
39
|
-
}): void;
|
|
40
|
-
selectContact(state: import("immer").WritableDraft<IFState>, action: {
|
|
41
|
-
payload: any;
|
|
42
|
-
type: string;
|
|
43
|
-
}): void;
|
|
44
|
-
selectType(state: import("immer").WritableDraft<IFState>, action: {
|
|
45
|
-
payload: any;
|
|
46
|
-
type: string;
|
|
47
|
-
}): void;
|
|
48
|
-
selectActive(state: import("immer").WritableDraft<IFState>, action: {
|
|
49
|
-
payload: any;
|
|
50
|
-
type: string;
|
|
51
|
-
}): void;
|
|
52
|
-
selectLoadChat(state: import("immer").WritableDraft<IFState>, action: {
|
|
53
|
-
payload: any;
|
|
54
|
-
type: string;
|
|
55
|
-
}): void;
|
|
56
|
-
selectByGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
57
|
-
payload: any;
|
|
58
|
-
type: string;
|
|
59
|
-
}): void;
|
|
60
|
-
setScroll(state: import("immer").WritableDraft<IFState>, action: {
|
|
61
|
-
payload: any;
|
|
62
|
-
type: string;
|
|
63
|
-
}): void;
|
|
64
|
-
addNewMessage(state: import("immer").WritableDraft<IFState>, action: {
|
|
65
|
-
payload: any;
|
|
66
|
-
type: string;
|
|
67
|
-
}): void;
|
|
68
|
-
addPinnedMessage(state: import("immer").WritableDraft<IFState>, action: {
|
|
69
|
-
payload: any;
|
|
70
|
-
type: string;
|
|
71
|
-
}): void;
|
|
72
|
-
deleteMessage(state: import("immer").WritableDraft<IFState>, action: {
|
|
73
|
-
payload: any;
|
|
74
|
-
type: string;
|
|
75
|
-
}): void;
|
|
76
|
-
setCountUnread(state: import("immer").WritableDraft<IFState>, action: {
|
|
77
|
-
payload: any;
|
|
78
|
-
type: string;
|
|
79
|
-
}): void;
|
|
80
|
-
setHistory(state: import("immer").WritableDraft<IFState>, action: {
|
|
81
|
-
payload: any;
|
|
82
|
-
type: string;
|
|
83
|
-
}): void;
|
|
84
|
-
setMessageByGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
85
|
-
payload: any;
|
|
86
|
-
type: string;
|
|
87
|
-
}): void;
|
|
88
|
-
updateMemberGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
89
|
-
payload: any;
|
|
90
|
-
type: string;
|
|
91
|
-
}): void;
|
|
92
|
-
removeChatRoom(state: import("immer").WritableDraft<IFState>, action: {
|
|
93
|
-
payload: any;
|
|
94
|
-
type: string;
|
|
95
|
-
}): void;
|
|
96
|
-
leaveGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
97
|
-
payload: any;
|
|
98
|
-
type: string;
|
|
99
|
-
}): void;
|
|
100
|
-
getGeneralGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
101
|
-
payload: any;
|
|
102
|
-
type: string;
|
|
103
|
-
}): void;
|
|
104
|
-
setGeneralGroup(state: import("immer").WritableDraft<IFState>, action: {
|
|
105
|
-
payload: any;
|
|
106
|
-
type: string;
|
|
107
|
-
}): void;
|
|
108
|
-
getNotification(state: import("immer").WritableDraft<IFState>, action: {
|
|
109
|
-
payload: any;
|
|
110
|
-
type: string;
|
|
111
|
-
}): void;
|
|
112
|
-
setListChatType(state: import("immer").WritableDraft<IFState>, action: {
|
|
113
|
-
payload: any;
|
|
114
|
-
type: string;
|
|
115
|
-
}): void;
|
|
116
|
-
setArchive(state: import("immer").WritableDraft<IFState>, action: {
|
|
117
|
-
payload: any;
|
|
118
|
-
type: string;
|
|
119
|
-
}): void;
|
|
120
|
-
setApproveStatus(state: import("immer").WritableDraft<IFState>, action: {
|
|
121
|
-
payload: any;
|
|
122
|
-
type: string;
|
|
123
|
-
}): void;
|
|
124
|
-
editGroupName(state: import("immer").WritableDraft<IFState>, action: {
|
|
125
|
-
payload: any;
|
|
126
|
-
type: string;
|
|
127
|
-
}): void;
|
|
128
|
-
editGroupAvatar(state: import("immer").WritableDraft<IFState>, action: {
|
|
129
|
-
payload: any;
|
|
130
|
-
type: string;
|
|
131
|
-
}): void;
|
|
132
|
-
editGroupTag(state: import("immer").WritableDraft<IFState>, action: {
|
|
133
|
-
payload: any;
|
|
134
|
-
type: string;
|
|
135
|
-
}): void;
|
|
136
|
-
userTyping(state: import("immer").WritableDraft<IFState>, action: {
|
|
137
|
-
payload: any;
|
|
138
|
-
type: string;
|
|
139
|
-
}): void;
|
|
140
|
-
recallMessage(state: import("immer").WritableDraft<IFState>, action: {
|
|
141
|
-
payload: any;
|
|
142
|
-
type: string;
|
|
143
|
-
}): void;
|
|
144
|
-
}, "appChat", "appChat", RTK.SliceSelectors<IFState>>;
|
|
145
|
-
export declare const selectChat: RTK.ActionCreatorWithPayload<any, "appChat/selectChat">, selectContact: RTK.ActionCreatorWithPayload<any, "appChat/selectContact">, selectType: RTK.ActionCreatorWithPayload<any, "appChat/selectType">, selectActive: RTK.ActionCreatorWithPayload<any, "appChat/selectActive">, selectLoadChat: RTK.ActionCreatorWithPayload<any, "appChat/selectLoadChat">, selectByGroup: RTK.ActionCreatorWithPayload<any, "appChat/selectByGroup">, addNewMessage: RTK.ActionCreatorWithPayload<any, "appChat/addNewMessage">, setCountUnread: RTK.ActionCreatorWithPayload<any, "appChat/setCountUnread">, deleteMessage: RTK.ActionCreatorWithPayload<any, "appChat/deleteMessage">, recallMessage: RTK.ActionCreatorWithPayload<any, "appChat/recallMessage">, getNotification: RTK.ActionCreatorWithPayload<any, "appChat/getNotification">, removeChatRoom: RTK.ActionCreatorWithPayload<any, "appChat/removeChatRoom">, setListChatType: RTK.ActionCreatorWithPayload<any, "appChat/setListChatType">, setArchive: RTK.ActionCreatorWithPayload<any, "appChat/setArchive">, setApproveStatus: RTK.ActionCreatorWithPayload<any, "appChat/setApproveStatus">, setHistory: RTK.ActionCreatorWithPayload<any, "appChat/setHistory">, editGroupName: RTK.ActionCreatorWithPayload<any, "appChat/editGroupName">, setScroll: RTK.ActionCreatorWithPayload<any, "appChat/setScroll">, updateMemberGroup: RTK.ActionCreatorWithPayload<any, "appChat/updateMemberGroup">, setMessageByGroup: RTK.ActionCreatorWithPayload<any, "appChat/setMessageByGroup">, leaveGroup: RTK.ActionCreatorWithPayload<any, "appChat/leaveGroup">, getGeneralGroup: RTK.ActionCreatorWithPayload<any, "appChat/getGeneralGroup">, setGeneralGroup: RTK.ActionCreatorWithPayload<any, "appChat/setGeneralGroup">, editGroupAvatar: RTK.ActionCreatorWithPayload<any, "appChat/editGroupAvatar">, editGroupTag: RTK.ActionCreatorWithPayload<any, "appChat/editGroupTag">, addPinnedMessage: RTK.ActionCreatorWithPayload<any, "appChat/addPinnedMessage">, userTyping: RTK.ActionCreatorWithPayload<any, "appChat/userTyping">;
|
|
146
|
-
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;
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ require('@styles/base/pages/app-chat.scss');
|
|
|
8
8
|
require('@styles/base/pages/app-chat-list.scss');
|
|
9
9
|
require('react-dom');
|
|
10
10
|
var configureStore = require('@src/redux/configureStore');
|
|
11
|
-
var
|
|
11
|
+
var toolkit = require('@reduxjs/toolkit');
|
|
12
12
|
|
|
13
13
|
function _interopNamespace(e) {
|
|
14
14
|
if (e && e.__esModule) return e;
|
|
@@ -29,7 +29,6 @@ function _interopNamespace(e) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
32
|
-
var RTK__namespace = /*#__PURE__*/_interopNamespace(RTK);
|
|
33
32
|
|
|
34
33
|
var isBlazorPlatform = false;
|
|
35
34
|
/**
|
|
@@ -26296,7 +26295,7 @@ const initialState = {
|
|
|
26296
26295
|
pinnedMessages: [],
|
|
26297
26296
|
typingUsers: {}
|
|
26298
26297
|
};
|
|
26299
|
-
const get_history =
|
|
26298
|
+
const get_history = toolkit.createAsyncThunk(CHAT.ACTION_TYPES.GET_HISTORY, async (params, thunkAPI) => {
|
|
26300
26299
|
try {
|
|
26301
26300
|
const queryString = new URLSearchParams(params).toString();
|
|
26302
26301
|
const response = await fetch(`${CHAT.URL_API.GET_HISTORY_API}?${queryString}`, {
|
|
@@ -26492,7 +26491,7 @@ const get_history = RTK__namespace.createAsyncThunk(CHAT.ACTION_TYPES.GET_HISTOR
|
|
|
26492
26491
|
// return thunkAPI.rejectWithValue({ error: error.response?.data || error.data })
|
|
26493
26492
|
// }
|
|
26494
26493
|
// })
|
|
26495
|
-
const appChatSlice =
|
|
26494
|
+
const appChatSlice = toolkit.createSlice({
|
|
26496
26495
|
name: 'appChat',
|
|
26497
26496
|
initialState,
|
|
26498
26497
|
reducers: {
|