block.json
147 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "presto-player/bunny", |
| 5 | "title": "Bunny.net", |
| 6 | "category": "presto", |
| 7 | "description": "Serve public video through Bunny.net CDN.", |
| 8 | "keywords": [ |
| 9 | "video" |
| 10 | ], |
| 11 | "textdomain": "presto-player", |
| 12 | "usesContext": [ |
| 13 | "presto-player/playlist-media-id" |
| 14 | ], |
| 15 | "attributes": { |
| 16 | "visibility": { |
| 17 | "type": "string", |
| 18 | "default": "public" |
| 19 | }, |
| 20 | "color": { |
| 21 | "type": "string", |
| 22 | "default": "#00b3ff" |
| 23 | }, |
| 24 | "blockAlignment": { |
| 25 | "type": "string" |
| 26 | }, |
| 27 | "mutedPreview": { |
| 28 | "type": "object", |
| 29 | "default": { |
| 30 | "enabled": false, |
| 31 | "captions": false |
| 32 | } |
| 33 | }, |
| 34 | "mutedOverlay": { |
| 35 | "type": "object", |
| 36 | "default": { |
| 37 | "enabled": false, |
| 38 | "src": "", |
| 39 | "width": 200, |
| 40 | "focalPoint": { |
| 41 | "x": 0.5, |
| 42 | "y": 0.5 |
| 43 | } |
| 44 | } |
| 45 | }, |
| 46 | "mutedPreviewCaptions": { |
| 47 | "type": "boolean" |
| 48 | }, |
| 49 | "mutedOverlayType": { |
| 50 | "type": "string", |
| 51 | "default": "text" |
| 52 | }, |
| 53 | "mutedOverlayText": { |
| 54 | "type": "string", |
| 55 | "default": "Click to play" |
| 56 | }, |
| 57 | "mutedOverlaySrc": { |
| 58 | "type": "string" |
| 59 | }, |
| 60 | "mutedOverlayImageWidth": { |
| 61 | "type": "number", |
| 62 | "default": 200 |
| 63 | }, |
| 64 | "mutedOverlayFocalPoint": { |
| 65 | "type": "object" |
| 66 | }, |
| 67 | "autoplay": { |
| 68 | "type": "boolean" |
| 69 | }, |
| 70 | "preload": { |
| 71 | "type": "string" |
| 72 | }, |
| 73 | "playsInline": { |
| 74 | "type": "boolean", |
| 75 | "default": true |
| 76 | }, |
| 77 | "id": { |
| 78 | "type": "number" |
| 79 | }, |
| 80 | "attachment_id": { |
| 81 | "type": "number" |
| 82 | }, |
| 83 | "src": { |
| 84 | "type": "string" |
| 85 | }, |
| 86 | "imageID": { |
| 87 | "type": "number" |
| 88 | }, |
| 89 | "poster": { |
| 90 | "type": "string" |
| 91 | }, |
| 92 | "content": { |
| 93 | "type": "boolean" |
| 94 | }, |
| 95 | "preset": { |
| 96 | "type": "number" |
| 97 | }, |
| 98 | "chapters": { |
| 99 | "type": "array", |
| 100 | "default": [] |
| 101 | }, |
| 102 | "overlays": { |
| 103 | "type": "array", |
| 104 | "default": [] |
| 105 | }, |
| 106 | "tracks": { |
| 107 | "type": "array", |
| 108 | "items": { |
| 109 | "type": "object" |
| 110 | }, |
| 111 | "default": [] |
| 112 | }, |
| 113 | "thumbnail": { |
| 114 | "type": "string", |
| 115 | "default": "" |
| 116 | }, |
| 117 | "preview": { |
| 118 | "type": "string", |
| 119 | "default": "" |
| 120 | } |
| 121 | }, |
| 122 | "variations": [ |
| 123 | { |
| 124 | "name": "public", |
| 125 | "isDefault": true, |
| 126 | "title": "Presto Bunny.net Video", |
| 127 | "description": "Serve public video through Bunny.net CDN.", |
| 128 | "attributes": { |
| 129 | "visibility": "public" |
| 130 | } |
| 131 | }, |
| 132 | { |
| 133 | "name": "private", |
| 134 | "title": "Presto Bunny.net Private Video", |
| 135 | "description": "Serve private, secure video through Bunny.net CDN.", |
| 136 | "attributes": { |
| 137 | "visibility": "private" |
| 138 | }, |
| 139 | "icon": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='presto-block-icon'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'></path></svg>" |
| 140 | } |
| 141 | ], |
| 142 | "supports": { |
| 143 | "align": true, |
| 144 | "inserter": false |
| 145 | }, |
| 146 | "script": "presto-components" |
| 147 | } |