@esvndev/es-react-template-chat 0.0.32 → 0.0.33
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 +5 -4
- 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.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import '@styles/base/pages/app-chat.scss';
|
|
|
5
5
|
import '@styles/base/pages/app-chat-list.scss';
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import { useAppDispatch, useAppSelector } from '@src/redux/configureStore';
|
|
8
|
-
import
|
|
8
|
+
import * as RTK from '@reduxjs/toolkit';
|
|
9
9
|
|
|
10
10
|
var isBlazorPlatform = false;
|
|
11
11
|
/**
|
|
@@ -26272,7 +26272,7 @@ const initialState = {
|
|
|
26272
26272
|
pinnedMessages: [],
|
|
26273
26273
|
typingUsers: {}
|
|
26274
26274
|
};
|
|
26275
|
-
const get_history = createAsyncThunk(CHAT.ACTION_TYPES.GET_HISTORY, async (params, thunkAPI) => {
|
|
26275
|
+
const get_history = RTK.createAsyncThunk(CHAT.ACTION_TYPES.GET_HISTORY, async (params, thunkAPI) => {
|
|
26276
26276
|
try {
|
|
26277
26277
|
const queryString = new URLSearchParams(params).toString();
|
|
26278
26278
|
const response = await fetch(`${CHAT.URL_API.GET_HISTORY_API}?${queryString}`, {
|
|
@@ -26468,7 +26468,7 @@ const get_history = createAsyncThunk(CHAT.ACTION_TYPES.GET_HISTORY, async (param
|
|
|
26468
26468
|
// return thunkAPI.rejectWithValue({ error: error.response?.data || error.data })
|
|
26469
26469
|
// }
|
|
26470
26470
|
// })
|
|
26471
|
-
const appChatSlice = createSlice({
|
|
26471
|
+
const appChatSlice = RTK.createSlice({
|
|
26472
26472
|
name: 'appChat',
|
|
26473
26473
|
initialState,
|
|
26474
26474
|
reducers: {
|