{"version":3,"file":"index.mjs","names":[],"sources":["../../src/store/index.ts"],"sourcesContent":["import { createReduxStore, register } from '@wordpress/data';\nimport type { ReduxStoreConfig } from '@wordpress/data';\nimport reducer from './reducer';\nimport * as actions from './actions';\nimport { STORE_NAME } from './constants';\nimport * as selectors from './selectors';\nimport { unlock } from '../lock-unlock';\nimport type { State } from './types';\n\n/**\n * Post editor data store configuration.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore\n */\nexport const storeConfig: Pick<\n\tReduxStoreConfig< State, unknown, unknown >,\n\t'reducer'\n> = {\n\treducer,\n};\n\n/**\n * Store definition for the editor namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n */\nexport const store = createReduxStore( STORE_NAME, {\n\t...storeConfig,\n} );\n\nregister( store );\nunlock( store ).registerPrivateActions( actions );\nunlock( store ).registerPrivateSelectors( selectors );\n"],"mappings":";;;;;;;;;;;;AAcA,MAAa,cAGT,EACH,QACD;;;;;;AAOA,MAAa,QAAQ,iBAAkB,YAAY,EAClD,GAAG,YACJ,CAAE;AAEF,SAAU,KAAM;AAChB,OAAQ,KAAM,CAAC,CAAC,uBAAwB,OAAQ;AAChD,OAAQ,KAAM,CAAC,CAAC,yBAA0B,SAAU"}