UNPKG

@wordpress/upload-media

Version:
30 lines (29 loc) 811 B
// packages/upload-media/src/store/index.ts import { createReduxStore, register, select } from "@wordpress/data"; import reducer from "./reducer.mjs"; import * as selectors from "./selectors.mjs"; import * as privateSelectors from "./private-selectors.mjs"; import * as actions from "./actions.mjs"; import * as privateActions from "./private-actions.mjs"; import { unlock } from "../lock-unlock.mjs"; import { STORE_NAME } from "./constants.mjs"; var storeConfig = { reducer, selectors, actions }; var store = createReduxStore(STORE_NAME, { reducer, selectors, actions }); if (!select(store)) { register(store); } unlock(store).registerPrivateActions(privateActions); unlock(store).registerPrivateSelectors(privateSelectors); export { store, storeConfig }; //# sourceMappingURL=index.mjs.map