build/scripts/block-library/playlist
block.json
1.4 KB
6 months ago
block.json in Gutenberg 23.2.0, at build/scripts/block-library/playlist/block.json
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "__experimental": true, |
| 5 | "name": "core/playlist", |
| 6 | "title": "Playlist", |
| 7 | "category": "media", |
| 8 | "description": "Embed a simple playlist.", |
| 9 | "keywords": [ "music", "sound" ], |
| 10 | "textdomain": "default", |
| 11 | "allowedBlocks": [ "core/playlist-track" ], |
| 12 | "attributes": { |
| 13 | "currentTrack": { |
| 14 | "type": "string" |
| 15 | }, |
| 16 | "type": { |
| 17 | "type": "string", |
| 18 | "default": "audio" |
| 19 | }, |
| 20 | "order": { |
| 21 | "type": "string", |
| 22 | "default": "asc" |
| 23 | }, |
| 24 | "showTracklist": { |
| 25 | "type": "boolean", |
| 26 | "default": true |
| 27 | }, |
| 28 | "showImages": { |
| 29 | "type": "boolean", |
| 30 | "default": true |
| 31 | }, |
| 32 | "showArtists": { |
| 33 | "type": "boolean", |
| 34 | "default": true |
| 35 | }, |
| 36 | "showNumbers": { |
| 37 | "type": "boolean", |
| 38 | "default": true |
| 39 | }, |
| 40 | "caption": { |
| 41 | "type": "string" |
| 42 | } |
| 43 | }, |
| 44 | "providesContext": { |
| 45 | "showArtists": "showArtists", |
| 46 | "currentTrack": "currentTrack" |
| 47 | }, |
| 48 | "supports": { |
| 49 | "anchor": true, |
| 50 | "align": true, |
| 51 | "color": { |
| 52 | "gradients": true, |
| 53 | "link": true, |
| 54 | "__experimentalDefaultControls": { |
| 55 | "background": true, |
| 56 | "text": true |
| 57 | } |
| 58 | }, |
| 59 | "__experimentalBorder": { |
| 60 | "color": true, |
| 61 | "radius": true, |
| 62 | "style": true, |
| 63 | "width": true, |
| 64 | "__experimentalDefaultControls": { |
| 65 | "color": true, |
| 66 | "radius": true, |
| 67 | "style": true, |
| 68 | "width": true |
| 69 | } |
| 70 | }, |
| 71 | "interactivity": true, |
| 72 | "spacing": { |
| 73 | "margin": true, |
| 74 | "padding": true |
| 75 | } |
| 76 | }, |
| 77 | "editorStyle": "wp-block-playlist-editor", |
| 78 | "style": "wp-block-playlist" |
| 79 | } |
| 80 |