| @@ -1,8 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | 3 | "apiVersion": 3, |
| 4 | - "__experimental": true, | |
| 5 | 4 | "name": "core/playlist", |
| 6 | 5 | "title": "Playlist", |
| 7 | 6 | "category": "media", |
| 8 | 7 | "description": "Embed a simple playlist.", |
| @@ -9,11 +8,8 @@ | ||
| 9 | 8 | "keywords": [ "music", "sound" ], |
| 10 | 9 | "textdomain": "default", |
| 11 | 10 | "allowedBlocks": [ "core/playlist-track" ], |
| 12 | 11 | "attributes": { |
| 13 | - "currentTrack": { | |
| 14 | - "type": "string" | |
| 15 | - }, | |
| 16 | 12 | "type": { |
| 17 | 13 | "type": "string", |
| 18 | 14 | "default": "audio" |
| 19 | 15 | }, |
| @@ -28,8 +24,12 @@ | ||
| 28 | 24 | "showImages": { |
| 29 | 25 | "type": "boolean", |
| 30 | 26 | "default": true |
| 31 | 27 | }, |
| 28 | + "showPlayButtonArtwork": { | |
| 29 | + "type": "boolean", | |
| 30 | + "default": false | |
| 31 | + }, | |
| 32 | 32 | "showArtists": { |
| 33 | 33 | "type": "boolean", |
| 34 | 34 | "default": true |
| 35 | 35 | }, |
| @@ -36,8 +36,29 @@ | ||
| 36 | 36 | "showNumbers": { |
| 37 | 37 | "type": "boolean", |
| 38 | 38 | "default": true |
| 39 | 39 | }, |
| 40 | + "showTrackLength": { | |
| 41 | + "type": "boolean", | |
| 42 | + "default": true | |
| 43 | + }, | |
| 44 | + "waveformStyle": { | |
| 45 | + "type": "string", | |
| 46 | + "enum": [ "bars", "mirror", "line", "blocks", "dots", "seekbar" ], | |
| 47 | + "default": "bars" | |
| 48 | + }, | |
| 49 | + "waveformColor": { | |
| 50 | + "type": "string" | |
| 51 | + }, | |
| 52 | + "waveformGradient": { | |
| 53 | + "type": "string" | |
| 54 | + }, | |
| 55 | + "waveformBackgroundColor": { | |
| 56 | + "type": "string" | |
| 57 | + }, | |
| 58 | + "waveformBackgroundGradient": { | |
| 59 | + "type": "string" | |
| 60 | + }, | |
| 40 | 61 | "caption": { |
| 41 | 62 | "type": "string" |
| 42 | 63 | } |
| 43 | 64 | }, |
| @@ -42,9 +63,9 @@ | ||
| 42 | 63 | } |
| 43 | 64 | }, |
| 44 | 65 | "providesContext": { |
| 45 | 66 | "showArtists": "showArtists", |
| 46 | - "currentTrack": "currentTrack" | |
| 67 | + "showImages": "showImages" | |
| 47 | 68 | }, |
| 48 | 69 | "supports": { |
| 49 | 70 | "anchor": true, |
| 50 | 71 | "align": true, |
| @@ -57,22 +78,27 @@ | ||
| 57 | 78 | } |
| 58 | 79 | }, |
| 59 | 80 | "__experimentalBorder": { |
| 60 | 81 | "color": true, |
| 61 | - "radius": true, | |
| 62 | 82 | "style": true, |
| 63 | 83 | "width": true, |
| 64 | 84 | "__experimentalDefaultControls": { |
| 65 | 85 | "color": true, |
| 66 | - "radius": true, | |
| 67 | 86 | "style": true, |
| 68 | 87 | "width": true |
| 69 | 88 | } |
| 70 | 89 | }, |
| 71 | 90 | "interactivity": true, |
| 91 | + "shadow": true, | |
| 72 | 92 | "spacing": { |
| 73 | 93 | "margin": true, |
| 74 | 94 | "padding": true |
| 95 | + }, | |
| 96 | + "typography": { | |
| 97 | + "fontSize": true, | |
| 98 | + "__experimentalDefaultControls": { | |
| 99 | + "fontSize": true | |
| 100 | + } | |
| 75 | 101 | } |
| 76 | 102 | }, |
| 77 | 103 | "editorStyle": "wp-block-playlist-editor", |
| 78 | 104 | "style": "wp-block-playlist" |