| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"textdomain": "getwid", |
| 5 |
"name": "getwid/video-popup", |
| 6 |
"description": "Opens a video in a popup.", |
| 7 |
"category": "getwid-blocks", |
| 8 |
"title": "Video Popup", |
| 9 |
"keywords": [ |
| 10 |
"video", |
| 11 |
"popup", |
| 12 |
"button" |
| 13 |
], |
| 14 |
"attributes": { |
| 15 |
"titleColor": { |
| 16 |
"type": "string" |
| 17 |
}, |
| 18 |
"customTitleColor": { |
| 19 |
"type": "string" |
| 20 |
}, |
| 21 |
"iconColor": { |
| 22 |
"type": "string" |
| 23 |
}, |
| 24 |
"customIconColor": { |
| 25 |
"type": "string" |
| 26 |
}, |
| 27 |
"buttonColorHEX": { |
| 28 |
"type": "string" |
| 29 |
}, |
| 30 |
"buttonColor": { |
| 31 |
"type": "string" |
| 32 |
}, |
| 33 |
"customButtonColor": { |
| 34 |
"type": "string" |
| 35 |
}, |
| 36 |
"overlayColor": { |
| 37 |
"type": "string" |
| 38 |
}, |
| 39 |
"customOverlayColor": { |
| 40 |
"type": "string" |
| 41 |
}, |
| 42 |
"imageSize": { |
| 43 |
"type": "string", |
| 44 |
"default": "full" |
| 45 |
}, |
| 46 |
"id": { |
| 47 |
"type": "number" |
| 48 |
}, |
| 49 |
"url": { |
| 50 |
"type": "string", |
| 51 |
"source": "attribute", |
| 52 |
"selector": ".wp-block-getwid-video-popup__source", |
| 53 |
"attribute": "src" |
| 54 |
}, |
| 55 |
"title": { |
| 56 |
"type": "string", |
| 57 |
"source": "html", |
| 58 |
"selector": ".wp-block-getwid-video-popup__title" |
| 59 |
}, |
| 60 |
"link": { |
| 61 |
"type": "string" |
| 62 |
}, |
| 63 |
"align": { |
| 64 |
"type": "string" |
| 65 |
}, |
| 66 |
"minHeight": { |
| 67 |
"type": "string" |
| 68 |
}, |
| 69 |
"buttonMaxWidth": { |
| 70 |
"type": "string" |
| 71 |
}, |
| 72 |
"overlayOpacity": { |
| 73 |
"type": "number", |
| 74 |
"default": 35 |
| 75 |
}, |
| 76 |
"imageAnimation": { |
| 77 |
"type": "string", |
| 78 |
"default": "none" |
| 79 |
}, |
| 80 |
"buttonStyle": { |
| 81 |
"type": "string", |
| 82 |
"default": "default" |
| 83 |
}, |
| 84 |
"buttonAnimation": { |
| 85 |
"type": "string", |
| 86 |
"default": "none" |
| 87 |
}, |
| 88 |
"buttonSize": { |
| 89 |
"type": "string", |
| 90 |
"default": "default" |
| 91 |
} |
| 92 |
}, |
| 93 |
"editorScript": "file:./index.js", |
| 94 |
"editorStyle": "file:./index.css", |
| 95 |
"style": [ |
| 96 |
"mp-fancybox", |
| 97 |
"file:./style-index.css" |
| 98 |
], |
| 99 |
"viewScript": [ |
| 100 |
"jquery", |
| 101 |
"mp-fancybox", |
| 102 |
"file:./view.js" |
| 103 |
] |
| 104 |
} |