@esvndev/es-react-template-chat 0.0.37 → 0.0.38
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/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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,6 +29,7 @@ function _interopNamespace(e) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
32
|
+
var ____toolkit__namespace = /*#__PURE__*/_interopNamespace(____toolkit);
|
|
32
33
|
|
|
33
34
|
var isBlazorPlatform = false;
|
|
34
35
|
/**
|
|
@@ -26296,7 +26297,7 @@ const initialState = {
|
|
|
26296
26297
|
typingUsers: {}
|
|
26297
26298
|
};
|
|
26298
26299
|
const get_history = (params) => {
|
|
26299
|
-
return
|
|
26300
|
+
return ____toolkit__namespace.createAsyncThunk(CHAT.ACTION_TYPES.GET_HISTORY, async (params, thunkAPI) => {
|
|
26300
26301
|
try {
|
|
26301
26302
|
const queryString = new URLSearchParams(params).toString();
|
|
26302
26303
|
const response = await fetch(`${CHAT.URL_API.GET_HISTORY_API}?${queryString}`, {
|
|
@@ -26493,7 +26494,7 @@ const get_history = (params) => {
|
|
|
26493
26494
|
// return thunkAPI.rejectWithValue({ error: error.response?.data || error.data })
|
|
26494
26495
|
// }
|
|
26495
26496
|
// })
|
|
26496
|
-
const appChatSlice =
|
|
26497
|
+
const appChatSlice = ____toolkit__namespace.createSlice({
|
|
26497
26498
|
name: 'appChat',
|
|
26498
26499
|
initialState,
|
|
26499
26500
|
reducers: {
|