-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheditor.js
51 lines (45 loc) · 1.33 KB
/
editor.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { applyFilters } from '@wordpress/hooks';
export const COLUMNS_MAX = applyFilters('wpd.block-counter.columns.max', 6);
export const COLUMNS_DEFAULT = applyFilters(
'wpd.block-counter.columns.default',
3
);
export const LAYOUT_BEFORE_TITLE = 'before_title';
export const LAYOUT_AFTER_TITLE = 'after_title';
export const LAYOUT_DEFAULT = applyFilters(
'wpd.block-counter.layout.default',
LAYOUT_BEFORE_TITLE
);
export const SECTION_TITLE_TAG = applyFilters(
'wpd.block-counter.section_title.tag',
'h3'
);
export const TITLE_TAG = applyFilters('wpd.block-counter.title.tag', 'h4');
export const ICONS = applyFilters(
'wpd.block-counter.icons',
applyFilters('wpd.block.icons', [])
);
export const HAS_SECTION_TITLE_DEFAULT = applyFilters(
'wpd.block-counter.has_section_title.default',
true
);
export const HAS_SECTION_DESCRIPTION_DEFAULT = applyFilters(
'wpd.block-counter.has_section_description.default',
false
);
export const HAS_TITLE_DEFAULT = applyFilters(
'wpd.block-counter.has_title.default',
true
);
export const HAS_ICON_DEFAULT = applyFilters(
'wpd.block-counter.has_icon.default',
false
);
export const HAS_DESCRIPTION_DEFAULT = applyFilters(
'wpd.block-counter.has_description.default',
true
);
export const NUMBER_EXAMPLES = applyFilters(
'wpd.block-counter.number.examples',
['1,234.95', '934', '$100.00', '95%']
);