PluginProbe
Gutenberg / 23.3.1
Gutenberg v23.3.1
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 12.6.0 7.4.0 All 402 releases
gutenberg / build / scripts / block-library / image / block.json

block.json in Gutenberg 23.3.1, at build/scripts/block-library/image/block.json

161 lines 3.1 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/image",
5 "title": "Image",
6 "category": "media",
7 "usesContext": [
8 "allowResize",
9 "imageCrop",
10 "fixedHeight",
11 "navigationButtonType",
12 "postId",
13 "postType",
14 "queryId",
15 "galleryId"
16 ],
17 "description": "Insert an image to make a visual statement.",
18 "keywords": [ "img", "photo", "picture" ],
19 "textdomain": "default",
20 "attributes": {
21 "blob": {
22 "type": "string",
23 "role": "local"
24 },
25 "url": {
26 "type": "string",
27 "source": "attribute",
28 "selector": "img",
29 "attribute": "src",
30 "role": "content"
31 },
32 "alt": {
33 "type": "string",
34 "source": "attribute",
35 "selector": "img",
36 "attribute": "alt",
37 "default": "",
38 "role": "content"
39 },
40 "caption": {
41 "type": "rich-text",
42 "source": "rich-text",
43 "selector": "figcaption",
44 "role": "content"
45 },
46 "lightbox": {
47 "type": "object",
48 "enabled": {
49 "type": "boolean"
50 }
51 },
52 "title": {
53 "type": "string",
54 "source": "attribute",
55 "selector": "img",
56 "attribute": "title",
57 "role": "content"
58 },
59 "href": {
60 "type": "string",
61 "source": "attribute",
62 "selector": "figure > a",
63 "attribute": "href",
64 "role": "content"
65 },
66 "rel": {
67 "type": "string",
68 "source": "attribute",
69 "selector": "figure > a",
70 "attribute": "rel"
71 },
72 "linkClass": {
73 "type": "string",
74 "source": "attribute",
75 "selector": "figure > a",
76 "attribute": "class"
77 },
78 "id": {
79 "type": "number",
80 "role": "content"
81 },
82 "width": {
83 "type": "string"
84 },
85 "height": {
86 "type": "string"
87 },
88 "aspectRatio": {
89 "type": "string"
90 },
91 "scale": {
92 "type": "string"
93 },
94 "focalPoint": {
95 "type": "object"
96 },
97 "sizeSlug": {
98 "type": "string"
99 },
100 "linkDestination": {
101 "type": "string"
102 },
103 "linkTarget": {
104 "type": "string",
105 "source": "attribute",
106 "selector": "figure > a",
107 "attribute": "target"
108 },
109 "isDecorative": {
110 "type": "boolean",
111 "default": false
112 }
113 },
114 "supports": {
115 "interactivity": true,
116 "align": [ "left", "center", "right", "wide", "full" ],
117 "anchor": true,
118 "color": {
119 "text": false,
120 "background": false
121 },
122 "filter": {
123 "duotone": true
124 },
125 "spacing": {
126 "margin": true
127 },
128 "__experimentalBorder": {
129 "color": true,
130 "radius": true,
131 "width": true,
132 "__experimentalSkipSerialization": true,
133 "__experimentalDefaultControls": {
134 "color": true,
135 "radius": true,
136 "width": true
137 }
138 },
139 "shadow": {
140 "__experimentalSkipSerialization": true
141 }
142 },
143 "selectors": {
144 "border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
145 "shadow": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
146 "filter": {
147 "duotone": ".wp-block-image img, .wp-block-image .components-placeholder"
148 }
149 },
150 "styles": [
151 {
152 "name": "default",
153 "label": "Default",
154 "isDefault": true
155 },
156 { "name": "rounded", "label": "Rounded" }
157 ],
158 "editorStyle": "wp-block-image-editor",
159 "style": "wp-block-image"
160 }
161