PluginProbe
Gutenberg / 22.5.1
Gutenberg v22.5.1
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 12.6.0 All 403 releases
gutenberg / build / scripts / block-library / image / block.json

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

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