PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 2.2.0
GenerateBlocks v2.2.0
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 / block-context / image.js
generateblocks / src / block-context Last commit date
button-container.js 2 years ago button.js 2 years ago container.js 2 years ago default.js 2 years ago grid.js 3 years ago headline.js 2 years ago image.js 2 years ago index.js 2 years ago
image.js
37 lines
1 import defaultContext from './default';
2 import { __ } from '@wordpress/i18n';
3 import { defaultsDeep } from 'lodash';
4
5 const imageContext = defaultsDeep( {
6 id: 'image',
7 supports: {
8 responsiveTabs: true,
9 settingsPanel: {
10 enabled: true,
11 icon: 'backgrounds',
12 },
13 spacing: {
14 enabled: true,
15 padding: true,
16 margin: true,
17 },
18 borders: {
19 enabled: true,
20 borderColors: [
21 {
22 state: '',
23 tooltip: __( 'Border', 'generateblocks' ),
24 alpha: true,
25 },
26 ],
27 borderTop: true,
28 borderRight: true,
29 borderBottom: true,
30 borderLeft: true,
31 borderRadius: true,
32 },
33 },
34 }, defaultContext );
35
36 export default imageContext;
37