@esvndev/es-react-template-chat 0.0.35 → 0.0.36
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +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 reduxToolkit_esm_js = require('@reduxjs/toolkit/dist/redux-toolkit.esm.js');
|
|
12
12
|
|
|
13
13
|
function _interopNamespace(e) {
|
|
14
14
|
if (e && e.__esModule) return e;
|
|
@@ -26295,7 +26295,7 @@ const initialState = {
|
|
|
26295
26295
|
pinnedMessages: [],
|
|
26296
26296
|
typingUsers: {}
|
|
26297
26297
|
};
|
|
26298
|
-
const get_history =
|
|
26298
|
+
const get_history = reduxToolkit_esm_js.createAsyncThunk(CHAT.ACTION_TYPES.GET_HISTORY, async (params, thunkAPI) => {
|
|
26299
26299
|
try {
|
|
26300
26300
|
const queryString = new URLSearchParams(params).toString();
|
|
26301
26301
|
const response = await fetch(`${CHAT.URL_API.GET_HISTORY_API}?${queryString}`, {
|
|
@@ -26491,7 +26491,7 @@ const get_history = toolkit.createAsyncThunk(CHAT.ACTION_TYPES.GET_HISTORY, asyn
|
|
|
26491
26491
|
// return thunkAPI.rejectWithValue({ error: error.response?.data || error.data })
|
|
26492
26492
|
// }
|
|
26493
26493
|
// })
|
|
26494
|
-
const appChatSlice =
|
|
26494
|
+
const appChatSlice = reduxToolkit_esm_js.createSlice({
|
|
26495
26495
|
name: 'appChat',
|
|
26496
26496
|
initialState,
|
|
26497
26497
|
reducers: {
|