components
1 year ago
css
2 years ago
attributes.js
1 year ago
edit.js
2 years ago
editor.scss
3 years ago
index.js
1 year ago
save.js
4 years ago
transforms.js
1 year ago
attributes.js
112 lines
| 1 | export default { |
| 2 | uniqueId: { |
| 3 | type: 'string', |
| 4 | }, |
| 5 | mediaId: { |
| 6 | type: 'number', |
| 7 | }, |
| 8 | mediaUrl: { |
| 9 | type: 'string', |
| 10 | source: 'attribute', |
| 11 | selector: 'img', |
| 12 | attribute: 'src', |
| 13 | }, |
| 14 | alt: { |
| 15 | type: 'string', |
| 16 | source: 'attribute', |
| 17 | selector: 'img', |
| 18 | attribute: 'alt', |
| 19 | }, |
| 20 | title: { |
| 21 | type: 'string', |
| 22 | source: 'attribute', |
| 23 | selector: 'img', |
| 24 | attribute: 'title', |
| 25 | }, |
| 26 | href: { |
| 27 | type: 'string', |
| 28 | source: 'attribute', |
| 29 | selector: 'figure > a', |
| 30 | attribute: 'href', |
| 31 | }, |
| 32 | openInNewWindow: { |
| 33 | type: 'boolean', |
| 34 | default: false, |
| 35 | }, |
| 36 | relNoFollow: { |
| 37 | type: 'boolean', |
| 38 | default: false, |
| 39 | }, |
| 40 | relSponsored: { |
| 41 | type: 'boolean', |
| 42 | default: false, |
| 43 | }, |
| 44 | sizeSlug: { |
| 45 | type: 'string', |
| 46 | default: '', |
| 47 | }, |
| 48 | width: { |
| 49 | type: 'string', |
| 50 | default: '', |
| 51 | }, |
| 52 | widthTablet: { |
| 53 | type: 'string', |
| 54 | default: '', |
| 55 | }, |
| 56 | widthMobile: { |
| 57 | type: 'string', |
| 58 | default: '', |
| 59 | }, |
| 60 | height: { |
| 61 | type: 'string', |
| 62 | default: '', |
| 63 | }, |
| 64 | heightTablet: { |
| 65 | type: 'string', |
| 66 | default: '', |
| 67 | }, |
| 68 | heightMobile: { |
| 69 | type: 'string', |
| 70 | default: '', |
| 71 | }, |
| 72 | objectFit: { |
| 73 | type: 'string', |
| 74 | default: '', |
| 75 | }, |
| 76 | objectFitTablet: { |
| 77 | type: 'string', |
| 78 | default: '', |
| 79 | }, |
| 80 | objectFitMobile: { |
| 81 | type: 'string', |
| 82 | default: '', |
| 83 | }, |
| 84 | borderColor: { |
| 85 | type: 'string', |
| 86 | default: '', |
| 87 | }, |
| 88 | anchor: { |
| 89 | type: 'string', |
| 90 | default: '', |
| 91 | }, |
| 92 | align: { |
| 93 | type: 'string', |
| 94 | default: '', |
| 95 | }, |
| 96 | alignment: { |
| 97 | type: 'string', |
| 98 | default: '', |
| 99 | }, |
| 100 | alignmentTablet: { |
| 101 | type: 'string', |
| 102 | default: '', |
| 103 | }, |
| 104 | alignmentMobile: { |
| 105 | type: 'string', |
| 106 | default: '', |
| 107 | }, |
| 108 | blockVersion: { |
| 109 | type: 'number', |
| 110 | }, |
| 111 | }; |
| 112 |