components
1 year ago
css
2 years ago
attributes.js
3 years ago
block.js
1 year ago
deprecated.js
3 years ago
edit.js
2 years ago
editor.scss
2 years ago
save.js
3 years ago
transforms.js
1 year ago
attributes.js
65 lines
| 1 | /* eslint-disable no-undef */ |
| 2 | export default { |
| 3 | uniqueId: { |
| 4 | type: 'string', |
| 5 | default: '', |
| 6 | }, |
| 7 | anchor: { |
| 8 | type: 'string', |
| 9 | default: '', |
| 10 | }, |
| 11 | url: { |
| 12 | type: 'string', |
| 13 | source: 'attribute', |
| 14 | selector: '.gb-button', |
| 15 | attribute: 'href', |
| 16 | }, |
| 17 | hasUrl: { |
| 18 | type: 'boolean', |
| 19 | }, |
| 20 | target: { |
| 21 | type: 'boolean', |
| 22 | }, |
| 23 | relNoFollow: { |
| 24 | type: 'boolean', |
| 25 | }, |
| 26 | relSponsored: { |
| 27 | type: 'boolean', |
| 28 | }, |
| 29 | text: { |
| 30 | type: 'string', |
| 31 | source: 'html', |
| 32 | selector: '.gb-button-text', |
| 33 | default: 'Button', |
| 34 | }, |
| 35 | ariaLabel: { |
| 36 | type: 'string', |
| 37 | default: generateBlocksDefaults.button.ariaLabel, |
| 38 | }, |
| 39 | blockVersion: { |
| 40 | type: 'number', |
| 41 | }, |
| 42 | hasButtonContainer: { |
| 43 | type: 'boolean', |
| 44 | default: false, |
| 45 | }, |
| 46 | variantRole: { |
| 47 | type: 'string', |
| 48 | default: '', |
| 49 | }, |
| 50 | buttonType: { |
| 51 | type: 'string', |
| 52 | default: 'link', |
| 53 | }, |
| 54 | // deprecated since 1.2.0 |
| 55 | elementId: { |
| 56 | type: 'string', |
| 57 | default: '', |
| 58 | }, |
| 59 | cssClasses: { |
| 60 | type: 'string', |
| 61 | default: '', |
| 62 | }, |
| 63 | }; |
| 64 | /* eslint-enable no-undef */ |
| 65 |