UNPKG

@empathyco/x-components

Version:
20 lines (17 loc) 716 B
import '@empathyco/x-utils'; import { createStoreEmitters } from '../../../store/utils/store-emitters.utils.js'; import { queriesPreviewXStoreModule } from './module.js'; /** * {@link StoreEmitters} For the queries-preview module. * * @internal */ const queriesPreviewEmitters = createStoreEmitters(queriesPreviewXStoreModule, { QueryPreviewUnselected: { selector: state => !state.selectedQueryPreview ? state.params : state.selectedQueryPreview.extraParams, filter: (_newValue, _oldValue, state) => !state.selectedQueryPreview, }, QueriesPreviewChanged: (_state, getters) => getters.loadedQueriesPreview, }); export { queriesPreviewEmitters }; //# sourceMappingURL=emitters.js.map