first
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
import { createReduxStore, register } from '@wordpress/data';
|
||||
|
||||
import * as selectors from './selectors';
|
||||
|
||||
const store = createReduxStore('visual-portfolio/utils', {
|
||||
selectors,
|
||||
reducer(state) {
|
||||
return state;
|
||||
},
|
||||
});
|
||||
|
||||
register(store);
|
@ -0,0 +1,19 @@
|
||||
import conditionCheck from '../../utils/control-condition-check';
|
||||
import controlGetValue from '../../utils/control-get-value';
|
||||
import getDynamicCSS, {
|
||||
hasDynamicCSS,
|
||||
prepareStylesFromParams,
|
||||
} from '../../utils/controls-dynamic-css';
|
||||
import { maybeDecode, maybeEncode } from '../../utils/encode-decode';
|
||||
|
||||
export function get() {
|
||||
return {
|
||||
conditionCheck,
|
||||
controlGetValue,
|
||||
prepareStylesFromParams,
|
||||
hasDynamicCSS,
|
||||
getDynamicCSS,
|
||||
maybeEncode,
|
||||
maybeDecode,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user