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/embed", |
4 "name": "core/embed", |
5 "title": "Embed", |
5 "title": "Embed", |
6 "category": "embed", |
6 "category": "embed", |
7 "description": "Add a block that displays content pulled from other sites, like Twitter or YouTube.", |
7 "description": "Add a block that displays content pulled from other sites, like Twitter or YouTube.", |
8 "textdomain": "default", |
8 "textdomain": "default", |
9 "attributes": { |
9 "attributes": { |
10 "url": { |
10 "url": { |
11 "type": "string" |
11 "type": "string", |
|
12 "__experimentalRole": "content" |
12 }, |
13 }, |
13 "caption": { |
14 "caption": { |
14 "type": "string", |
15 "type": "rich-text", |
15 "source": "html", |
16 "source": "rich-text", |
16 "selector": "figcaption" |
17 "selector": "figcaption", |
|
18 "__experimentalRole": "content" |
17 }, |
19 }, |
18 "type": { |
20 "type": { |
19 "type": "string" |
21 "type": "string", |
|
22 "__experimentalRole": "content" |
20 }, |
23 }, |
21 "providerNameSlug": { |
24 "providerNameSlug": { |
22 "type": "string" |
25 "type": "string", |
|
26 "__experimentalRole": "content" |
23 }, |
27 }, |
24 "allowResponsive": { |
28 "allowResponsive": { |
25 "type": "boolean", |
29 "type": "boolean", |
26 "default": true |
30 "default": true |
27 }, |
31 }, |
28 "responsive": { |
32 "responsive": { |
29 "type": "boolean", |
33 "type": "boolean", |
30 "default": false |
34 "default": false, |
|
35 "__experimentalRole": "content" |
31 }, |
36 }, |
32 "previewable": { |
37 "previewable": { |
33 "type": "boolean", |
38 "type": "boolean", |
34 "default": true |
39 "default": true, |
|
40 "__experimentalRole": "content" |
35 } |
41 } |
36 }, |
42 }, |
37 "supports": { |
43 "supports": { |
38 "align": true |
44 "align": true, |
|
45 "spacing": { |
|
46 "margin": true |
|
47 }, |
|
48 "interactivity": { |
|
49 "clientNavigation": true |
|
50 } |
39 }, |
51 }, |
40 "editorStyle": "wp-block-embed-editor", |
52 "editorStyle": "wp-block-embed-editor", |
41 "style": "wp-block-embed" |
53 "style": "wp-block-embed" |
42 } |
54 } |