-
Notifications
You must be signed in to change notification settings - Fork 1
/
editor.js
41 lines (32 loc) · 2.01 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
import { applyFilters } from '@wordpress/hooks';
import { __ } from '@wordpress/i18n';
export const TITLE_TAG = applyFilters('wpd.block-carousel.title.tag', 'h3');
export const HAS_TITLE_DEFAULT = applyFilters('wpd.block-carousel.has_title.default', true);
export const HAS_DESCRIPTION_DEFAULT = applyFilters('wpd.block-carousel.has_description.default', false);
export const HAS_PAGINATION_DEFAULT = applyFilters('wpd.block-carousel.has_pagination.default', false);
export const HAS_NAVIGATION_DEFAULT = applyFilters('wpd.block-carousel.has_navigation.default', false);
export const SLIDES_PER_VIEW_MAX = applyFilters('wpd.block-carousel.slides_per_view.max', 6);
export const SLIDES_PER_VIEW_DEFAULT = applyFilters('wpd.block-carousel.slides_per_view.default', 'auto');
export const SPACE_BETWEEN_DEFAULT = applyFilters('wpd.block-carousel.space_between', 30);
export const ALLOW_PAGINATION = applyFilters('wpd.block-carousel.allow_pagination', true);
export const ALLOW_NAVIGATION = applyFilters('wpd.block-carousel.allow_navigation', true);
export const ALLOW_AUTOPLAY = applyFilters('wpd.block-carousel.allow_autoplay', true);
export const ALLOW_LOOP = applyFilters('wpd.block-carousel.allow_loop', true);
export const AUTOPLAY_DEFAULT = applyFilters('wpd.block-carousel.autoplay_delay', false);
export const LOOP_DEFAULT = applyFilters('wpd.block-carousel.loop.default', false);
export const ALLOWED_BLOCKS = ['wpd/block-slide'];
export const TEMPLATE = applyFilters('wpd.block-carousel.template', [['wpd/block-slide', {}]]);
// Integration with Logos block
export const SCALE_FACTOR_DEFAULT = applyFilters('wpd.block-logos.scale_factor.default', 525);
export const COLOR_SCHEMES = applyFilters('wpd.block-logos.color.schemes', [
{
name: __('Dark', 'wpd-blocks'),
color: '#000',
},
{
name: __('Light', 'wpd-blocks'),
color: '#fff',
},
]);
export const BACKGROUND_COLOR_DEFAULT = applyFilters('wpd.block-logos.background_color.default', undefined);
export const COLOR_DEFAULT = applyFilters('wpd.block-logos.color.default', undefined);