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
gutenberg / build / scripts / block-library / media-text / block.json

block.json in Gutenberg trunk, at build/scripts/block-library/media-text/block.json

150 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "core/media-text",
5 "title": "Media & Text",
6 "category": "media",
7 "description": "Set media and words side-by-side for a richer layout.",
8 "keywords": [ "image", "video" ],
9 "textdomain": "default",
10 "attributes": {
11 "align": {
12 "type": "string",
13 "default": "none"
14 },
15 "mediaAlt": {
16 "type": "string",
17 "source": "attribute",
18 "selector": "figure img",
19 "attribute": "alt",
20 "default": "",
21 "role": "content"
22 },
23 "mediaPosition": {
24 "type": "string",
25 "default": "left"
26 },
27 "mediaId": {
28 "type": "number",
29 "role": "content"
30 },
31 "mediaUrl": {
32 "type": "string",
33 "source": "attribute",
34 "selector": "figure video,figure img",
35 "attribute": "src",
36 "role": "content"
37 },
38 "mediaLink": {
39 "type": "string"
40 },
41 "linkDestination": {
42 "type": "string"
43 },
44 "linkTarget": {
45 "type": "string",
46 "source": "attribute",
47 "selector": "figure a",
48 "attribute": "target"
49 },
50 "href": {
51 "type": "string",
52 "source": "attribute",
53 "selector": "figure a",
54 "attribute": "href",
55 "role": "content"
56 },
57 "rel": {
58 "type": "string",
59 "source": "attribute",
60 "selector": "figure a",
61 "attribute": "rel"
62 },
63 "linkClass": {
64 "type": "string",
65 "source": "attribute",
66 "selector": "figure a",
67 "attribute": "class"
68 },
69 "mediaType": {
70 "type": "string",
71 "role": "content"
72 },
73 "mediaWidth": {
74 "type": "number",
75 "default": 50
76 },
77 "mediaSizeSlug": {
78 "type": "string"
79 },
80 "isStackedOnMobile": {
81 "type": "boolean",
82 "default": true
83 },
84 "verticalAlignment": {
85 "type": "string"
86 },
87 "imageFill": {
88 "type": "boolean"
89 },
90 "focalPoint": {
91 "type": "object"
92 },
93 "useFeaturedImage": {
94 "type": "boolean",
95 "default": false
96 }
97 },
98 "usesContext": [ "postId", "postType" ],
99 "supports": {
100 "anchor": true,
101 "align": [ "wide", "full" ],
102 "html": false,
103 "__experimentalBorder": {
104 "color": true,
105 "radius": true,
106 "style": true,
107 "width": true,
108 "__experimentalDefaultControls": {
109 "color": true,
110 "radius": true,
111 "style": true,
112 "width": true
113 }
114 },
115 "color": {
116 "gradients": true,
117 "heading": true,
118 "link": true,
119 "button": true,
120 "__experimentalDefaultControls": {
121 "background": true,
122 "text": true
123 }
124 },
125 "spacing": {
126 "margin": true,
127 "padding": true
128 },
129 "typography": {
130 "fontSize": true,
131 "lineHeight": true,
132 "__experimentalFontFamily": true,
133 "__experimentalFontWeight": true,
134 "__experimentalFontStyle": true,
135 "__experimentalTextTransform": true,
136 "__experimentalTextDecoration": true,
137 "__experimentalLetterSpacing": true,
138 "__experimentalDefaultControls": {
139 "fontSize": true
140 }
141 },
142 "interactivity": {
143 "clientNavigation": true
144 },
145 "allowedBlocks": true
146 },
147 "editorStyle": "wp-block-media-text-editor",
148 "style": "wp-block-media-text"
149 }
150