PluginProbe
Gutenberg / 20.0.1
Gutenberg v20.0.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 / block-library / blocks / post-featured-image / block.json

block.json in Gutenberg 20.0.1, at build/block-library/blocks/post-featured-image/block.json

109 lines 2.4 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/post-featured-image",
5 "title": "Featured Image",
6 "category": "theme",
7 "description": "Display a post's featured image.",
8 "textdomain": "default",
9 "attributes": {
10 "isLink": {
11 "type": "boolean",
12 "default": false,
13 "role": "content"
14 },
15 "aspectRatio": {
16 "type": "string"
17 },
18 "width": {
19 "type": "string"
20 },
21 "height": {
22 "type": "string"
23 },
24 "scale": {
25 "type": "string",
26 "default": "cover"
27 },
28 "sizeSlug": {
29 "type": "string"
30 },
31 "rel": {
32 "type": "string",
33 "attribute": "rel",
34 "default": "",
35 "role": "content"
36 },
37 "linkTarget": {
38 "type": "string",
39 "default": "_self",
40 "role": "content"
41 },
42 "overlayColor": {
43 "type": "string"
44 },
45 "customOverlayColor": {
46 "type": "string"
47 },
48 "dimRatio": {
49 "type": "number",
50 "default": 0
51 },
52 "gradient": {
53 "type": "string"
54 },
55 "customGradient": {
56 "type": "string"
57 },
58 "useFirstImageFromPost": {
59 "type": "boolean",
60 "default": false
61 }
62 },
63 "usesContext": [ "postId", "postType", "queryId" ],
64 "example": {
65 "viewportWidth": 350
66 },
67 "supports": {
68 "align": [ "left", "right", "center", "wide", "full" ],
69 "color": {
70 "text": false,
71 "background": false
72 },
73 "__experimentalBorder": {
74 "color": true,
75 "radius": true,
76 "width": true,
77 "__experimentalSkipSerialization": true,
78 "__experimentalDefaultControls": {
79 "color": true,
80 "radius": true,
81 "width": true
82 }
83 },
84 "filter": {
85 "duotone": true
86 },
87 "shadow": {
88 "__experimentalSkipSerialization": true
89 },
90 "html": false,
91 "spacing": {
92 "margin": true,
93 "padding": true
94 },
95 "interactivity": {
96 "clientNavigation": true
97 }
98 },
99 "selectors": {
100 "border": ".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",
101 "shadow": ".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",
102 "filter": {
103 "duotone": ".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"
104 }
105 },
106 "editorStyle": "wp-block-post-featured-image-editor",
107 "style": "wp-block-post-featured-image"
108 }
109