-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
constants.js
24 lines (22 loc) · 679 Bytes
/
constants.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
export const PATTERN_TYPES = {
theme: 'pattern',
user: 'wp_block',
};
export const PATTERN_DEFAULT_CATEGORY = 'all-patterns';
export const PATTERN_USER_CATEGORY = 'my-patterns';
export const EXCLUDED_PATTERN_SOURCES = [
'core',
'pattern-directory/core',
'pattern-directory/featured',
];
export const PATTERN_SYNC_TYPES = {
full: 'fully',
unsynced: 'unsynced',
};
// TODO: This should not be hardcoded. Maybe there should be a config and/or an UI.
export const PARTIAL_SYNCING_SUPPORTED_BLOCKS = {
'core/paragraph': [ 'content' ],
'core/heading': [ 'content' ],
'core/button': [ 'text', 'url', 'linkTarget', 'rel' ],
'core/image': [ 'id', 'url', 'title', 'alt' ],
};