PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/scripts/block-library/playlist/block.json +29 -15 23.4.0 → trunk View file →
@@ -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 },
@@ -40,8 +40,25 @@
40 40 "showTrackLength": {
41 41 "type": "boolean",
42 42 "default": true
43 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 + },
44 61 "caption": {
45 62 "type": "string"
46 63 }
47 64 },
@@ -46,9 +63,9 @@
46 63 }
47 64 },
48 65 "providesContext": {
49 66 "showArtists": "showArtists",
50 - "currentTrack": "currentTrack"
67 + "showImages": "showImages"
51 68 },
52 69 "supports": {
53 70 "anchor": true,
54 71 "align": true,
@@ -61,31 +78,28 @@
61 78 }
62 79 },
63 80 "__experimentalBorder": {
64 81 "color": true,
65 - "radius": true,
66 82 "style": true,
67 83 "width": true,
68 84 "__experimentalDefaultControls": {
69 85 "color": true,
70 - "radius": true,
71 86 "style": true,
72 87 "width": true
73 88 }
74 89 },
75 90 "interactivity": true,
91 + "shadow": true,
76 92 "spacing": {
77 93 "margin": true,
78 94 "padding": true
95 + },
96 + "typography": {
97 + "fontSize": true,
98 + "__experimentalDefaultControls": {
99 + "fontSize": true
100 + }
79 101 }
80 102 },
81 - "styles": [
82 - { "name": "bars", "label": "Bars", "isDefault": true },
83 - { "name": "mirror", "label": "Mirror" },
84 - { "name": "line", "label": "Line" },
85 - { "name": "blocks", "label": "Blocks" },
86 - { "name": "dots", "label": "Dots" },
87 - { "name": "seekbar", "label": "Seekbar" }
88 - ],
89 103 "editorStyle": "wp-block-playlist-editor",
90 104 "style": "wp-block-playlist"
91 105 }