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 |