@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
46 lines • 1.92 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.replykeReducers = void 0;
const toolkit_1 = require("@reduxjs/toolkit");
const authSlice_1 = __importDefault(require("./slices/authSlice"));
const appNotificationsSlice_1 = require("./slices/appNotificationsSlice");
const collectionsSlice_1 = __importDefault(require("./slices/collectionsSlice"));
const userSlice_1 = require("./slices/userSlice");
const entityListsSlice_1 = __importDefault(require("./slices/entityListsSlice"));
const spaceListsSlice_1 = __importDefault(require("./slices/spaceListsSlice"));
const accountsSlice_1 = __importDefault(require("./slices/accountsSlice"));
const chatSlice_1 = __importDefault(require("./slices/chatSlice"));
/**
* Combined reducer for all Replyke feature slices.
* Used by both standalone mode (internal) and integration mode (user's store).
*
* For integration mode, add this to your store under the 'replyke' key:
*
* @example
* ```typescript
* import { replykeReducers, replykeApiReducer, replykeMiddleware } from '@replyke/react-js';
*
* const store = configureStore({
* reducer: {
* replyke: replykeReducers,
* replykeApi: replykeApiReducer,
* ...yourReducers
* },
* middleware: (getDefault) => getDefault().concat(...replykeMiddleware)
* });
* ```
*/
exports.replykeReducers = (0, toolkit_1.combineReducers)({
auth: authSlice_1.default,
appNotifications: appNotificationsSlice_1.appNotificationsSlice.reducer,
collections: collectionsSlice_1.default,
user: userSlice_1.userReducer,
entityLists: entityListsSlice_1.default,
spaceLists: spaceListsSlice_1.default,
accounts: accountsSlice_1.default,
chat: chatSlice_1.default,
});
//# sourceMappingURL=replykeReducers.js.map