PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 2.1.2
GenerateBlocks v2.1.2
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / store / block-styles.js
generateblocks / src / store Last commit date
block-styles.js 1 year ago
block-styles.js
40 lines
1 import { createReduxStore } from '@wordpress/data';
2 import {
3 currentStyleActions,
4 currentStyleSelectors,
5 currentStyleReducer,
6 nestedRuleActions,
7 nestedRuleSelectors,
8 nestedRuleReducer,
9 atRuleActions,
10 atRuleSelectors,
11 atRuleReducer,
12 } from '@edge22/styles-builder';
13
14 export const currentStyleStore = createReduxStore(
15 'gb-block-styles-current-style',
16 {
17 reducer: currentStyleReducer,
18 actions: currentStyleActions,
19 selectors: currentStyleSelectors,
20 }
21 );
22
23 export const atRuleStore = createReduxStore(
24 'gb-block-styles-at-rule',
25 {
26 reducer: atRuleReducer,
27 actions: atRuleActions,
28 selectors: atRuleSelectors,
29 }
30 );
31
32 export const nestedRuleStore = createReduxStore(
33 'gb-block-styles-nested-rule',
34 {
35 reducer: nestedRuleReducer,
36 actions: nestedRuleActions,
37 selectors: nestedRuleSelectors,
38 }
39 );
40