equal
deleted
inserted
replaced
1 { |
1 { |
2 "$schema": "https://schemas.wp.org/trunk/block.json", |
2 "$schema": "https://schemas.wp.org/trunk/block.json", |
3 "apiVersion": 2, |
3 "apiVersion": 3, |
4 "name": "core/video", |
4 "name": "core/video", |
5 "title": "Video", |
5 "title": "Video", |
6 "category": "media", |
6 "category": "media", |
7 "description": "Embed a video from your media library or upload a new one.", |
7 "description": "Embed a video from your media library or upload a new one.", |
8 "keywords": [ "movie" ], |
8 "keywords": [ "movie" ], |
13 "source": "attribute", |
13 "source": "attribute", |
14 "selector": "video", |
14 "selector": "video", |
15 "attribute": "autoplay" |
15 "attribute": "autoplay" |
16 }, |
16 }, |
17 "caption": { |
17 "caption": { |
18 "type": "string", |
18 "type": "rich-text", |
19 "source": "html", |
19 "source": "rich-text", |
20 "selector": "figcaption" |
20 "selector": "figcaption", |
|
21 "__experimentalRole": "content" |
21 }, |
22 }, |
22 "controls": { |
23 "controls": { |
23 "type": "boolean", |
24 "type": "boolean", |
24 "source": "attribute", |
25 "source": "attribute", |
25 "selector": "video", |
26 "selector": "video", |
26 "attribute": "controls", |
27 "attribute": "controls", |
27 "default": true |
28 "default": true |
28 }, |
29 }, |
29 "id": { |
30 "id": { |
30 "type": "number" |
31 "type": "number", |
|
32 "__experimentalRole": "content" |
31 }, |
33 }, |
32 "loop": { |
34 "loop": { |
33 "type": "boolean", |
35 "type": "boolean", |
34 "source": "attribute", |
36 "source": "attribute", |
35 "selector": "video", |
37 "selector": "video", |
56 }, |
58 }, |
57 "src": { |
59 "src": { |
58 "type": "string", |
60 "type": "string", |
59 "source": "attribute", |
61 "source": "attribute", |
60 "selector": "video", |
62 "selector": "video", |
61 "attribute": "src" |
63 "attribute": "src", |
|
64 "__experimentalRole": "content" |
62 }, |
65 }, |
63 "playsInline": { |
66 "playsInline": { |
64 "type": "boolean", |
67 "type": "boolean", |
65 "source": "attribute", |
68 "source": "attribute", |
66 "selector": "video", |
69 "selector": "video", |
67 "attribute": "playsinline" |
70 "attribute": "playsinline" |
68 }, |
71 }, |
69 "tracks": { |
72 "tracks": { |
|
73 "__experimentalRole": "content", |
70 "type": "array", |
74 "type": "array", |
71 "items": { |
75 "items": { |
72 "type": "object" |
76 "type": "object" |
73 }, |
77 }, |
74 "default": [] |
78 "default": [] |
75 } |
79 } |
76 }, |
80 }, |
77 "supports": { |
81 "supports": { |
78 "anchor": true, |
82 "anchor": true, |
79 "align": true |
83 "align": true, |
|
84 "spacing": { |
|
85 "margin": true, |
|
86 "padding": true, |
|
87 "__experimentalDefaultControls": { |
|
88 "margin": false, |
|
89 "padding": false |
|
90 } |
|
91 }, |
|
92 "interactivity": { |
|
93 "clientNavigation": true |
|
94 } |
80 }, |
95 }, |
81 "editorStyle": "wp-block-video-editor", |
96 "editorStyle": "wp-block-video-editor", |
82 "style": "wp-block-video" |
97 "style": "wp-block-video" |
83 } |
98 } |