| @@ -1,0 +1,115 @@ | ||
| 1 | +{ | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "jetpack/podcast-player", | |
| 5 | + "title": "Podcast Player", | |
| 6 | + "description": "Select and play episodes from a single podcast.", | |
| 7 | + "keywords": [ | |
| 8 | + "audio", | |
| 9 | + "embed" | |
| 10 | + ], | |
| 11 | + "version": "12.5.0", | |
| 12 | + "textdomain": "jetpack", | |
| 13 | + "category": "embed", | |
| 14 | + "icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='m22,6h-5v8.18c-.31-.11-.65-.18-1-.18-1.66,0-3,1.34-3,3s1.34,3,3,3,3-1.34,3-3v-9h3v-2h0Zm-7,0H3v2h12v-2h0Zm0,4H3v2h12v-2h0Zm-4,4H3v2h8v-2h0Zm4,3c0-.55.45-1,1-1s1,.45,1,1-.45,1-1,1-1-.45-1-1Z' /></svg>", | |
| 15 | + "supports": { | |
| 16 | + "align": [ | |
| 17 | + "wide", | |
| 18 | + "full" | |
| 19 | + ], | |
| 20 | + "spacing": { | |
| 21 | + "padding": true, | |
| 22 | + "margin": true | |
| 23 | + }, | |
| 24 | + "anchor": false, | |
| 25 | + "customClassName": true, | |
| 26 | + "className": true, | |
| 27 | + "html": false, | |
| 28 | + "multiple": true, | |
| 29 | + "reusable": true | |
| 30 | + }, | |
| 31 | + "attributes": { | |
| 32 | + "url": { | |
| 33 | + "type": "string" | |
| 34 | + }, | |
| 35 | + "selectedEpisodes": { | |
| 36 | + "type": "array", | |
| 37 | + "default": [] | |
| 38 | + }, | |
| 39 | + "itemsToShow": { | |
| 40 | + "type": "integer", | |
| 41 | + "default": 5 | |
| 42 | + }, | |
| 43 | + "showCoverArt": { | |
| 44 | + "type": "boolean", | |
| 45 | + "default": true | |
| 46 | + }, | |
| 47 | + "showEpisodeTitle": { | |
| 48 | + "type": "boolean", | |
| 49 | + "default": true | |
| 50 | + }, | |
| 51 | + "showEpisodeDescription": { | |
| 52 | + "type": "boolean", | |
| 53 | + "default": true | |
| 54 | + }, | |
| 55 | + "primaryColor": { | |
| 56 | + "type": "string" | |
| 57 | + }, | |
| 58 | + "customPrimaryColor": { | |
| 59 | + "type": "string" | |
| 60 | + }, | |
| 61 | + "hexPrimaryColor": { | |
| 62 | + "type": "string" | |
| 63 | + }, | |
| 64 | + "secondaryColor": { | |
| 65 | + "type": "string" | |
| 66 | + }, | |
| 67 | + "customSecondaryColor": { | |
| 68 | + "type": "string" | |
| 69 | + }, | |
| 70 | + "hexSecondaryColor": { | |
| 71 | + "type": "string" | |
| 72 | + }, | |
| 73 | + "backgroundColor": { | |
| 74 | + "type": "string" | |
| 75 | + }, | |
| 76 | + "customBackgroundColor": { | |
| 77 | + "type": "string" | |
| 78 | + }, | |
| 79 | + "hexBackgroundColor": { | |
| 80 | + "type": "string" | |
| 81 | + }, | |
| 82 | + "exampleFeedData": { | |
| 83 | + "type": "object" | |
| 84 | + } | |
| 85 | + }, | |
| 86 | + "example": { | |
| 87 | + "attributes": { | |
| 88 | + "customPrimaryColor": "GREEN", | |
| 89 | + "hexPrimaryColor": "GREEN", | |
| 90 | + "exampleFeedData": { | |
| 91 | + "title": "Jetpack Example Podcast", | |
| 92 | + "link": "https://jetpack.com", | |
| 93 | + "cover": "https://jetpackme.files.wordpress.com/2020/05/jetpack-example-podcast-cover.png?w=160", | |
| 94 | + "tracks": [ | |
| 95 | + { | |
| 96 | + "id": "3", | |
| 97 | + "title": "3. Our third episode", | |
| 98 | + "duration": "14:58" | |
| 99 | + }, | |
| 100 | + { | |
| 101 | + "id": "2", | |
| 102 | + "title": "2. Interview with a special guest", | |
| 103 | + "duration": "19:17" | |
| 104 | + }, | |
| 105 | + { | |
| 106 | + "id": "1", | |
| 107 | + "title": "1. Welcome to Example Podcast", | |
| 108 | + "duration": "11:25" | |
| 109 | + } | |
| 110 | + ] | |
| 111 | + } | |
| 112 | + } | |
| 113 | + }, | |
| 114 | + "editorScript": "jetpack-blocks-editor" | |
| 115 | +} | |