PluginProbe
Gutenberg / 23.7.2
Gutenberg v23.7.2
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 / cover / block.json

block.json in Gutenberg 23.7.2, at build/scripts/block-library/cover/block.json

171 lines 3.2 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/cover",
5 "title": "Cover",
6 "category": "media",
7 "description": "Add an image or video with a text overlay.",
8 "textdomain": "default",
9 "attributes": {
10 "url": {
11 "type": "string",
12 "role": "content"
13 },
14 "useFeaturedImage": {
15 "type": "boolean",
16 "default": false
17 },
18 "id": {
19 "type": "number"
20 },
21 "alt": {
22 "type": "string",
23 "default": ""
24 },
25 "hasParallax": {
26 "type": "boolean",
27 "default": false
28 },
29 "isRepeated": {
30 "type": "boolean",
31 "default": false
32 },
33 "dimRatio": {
34 "type": "number",
35 "default": 100
36 },
37 "overlayColor": {
38 "type": "string"
39 },
40 "customOverlayColor": {
41 "type": "string"
42 },
43 "isUserOverlayColor": {
44 "type": "boolean"
45 },
46 "backgroundType": {
47 "type": "string",
48 "default": "image"
49 },
50 "focalPoint": {
51 "type": "object"
52 },
53 "minHeight": {
54 "type": "number"
55 },
56 "minHeightUnit": {
57 "type": "string"
58 },
59 "gradient": {
60 "type": "string"
61 },
62 "customGradient": {
63 "type": "string"
64 },
65 "contentPosition": {
66 "type": "string"
67 },
68 "isDark": {
69 "type": "boolean",
70 "default": true
71 },
72 "templateLock": {
73 "type": [ "string", "boolean" ],
74 "enum": [ "all", "insert", "contentOnly", false ]
75 },
76 "tagName": {
77 "type": "string",
78 "default": "div"
79 },
80 "sizeSlug": {
81 "type": "string"
82 },
83 "poster": {
84 "type": "string",
85 "source": "attribute",
86 "selector": "video",
87 "attribute": "poster"
88 },
89 "allowedVideoProviders": {
90 "type": "array",
91 "default": [
92 "youtube",
93 "vimeo",
94 "videopress",
95 "animoto",
96 "tiktok",
97 "wordpress-tv"
98 ]
99 }
100 },
101 "usesContext": [ "postId", "postType" ],
102 "supports": {
103 "__experimentalOnEnter": true,
104 "anchor": true,
105 "align": true,
106 "html": false,
107 "shadow": true,
108 "spacing": {
109 "padding": true,
110 "margin": [ "top", "bottom" ],
111 "blockGap": true,
112 "__experimentalDefaultControls": {
113 "padding": true,
114 "blockGap": true
115 }
116 },
117 "__experimentalBorder": {
118 "color": true,
119 "radius": true,
120 "style": true,
121 "width": true,
122 "__experimentalDefaultControls": {
123 "color": true,
124 "radius": true,
125 "style": true,
126 "width": true
127 }
128 },
129 "color": {
130 "heading": true,
131 "text": true,
132 "background": false,
133 "__experimentalSkipSerialization": [ "gradients" ],
134 "enableContrastChecker": false
135 },
136 "dimensions": {
137 "aspectRatio": true
138 },
139 "typography": {
140 "fontSize": true,
141 "lineHeight": true,
142 "__experimentalFontFamily": true,
143 "__experimentalFontWeight": true,
144 "__experimentalFontStyle": true,
145 "__experimentalTextTransform": true,
146 "__experimentalTextDecoration": true,
147 "__experimentalLetterSpacing": true,
148 "__experimentalDefaultControls": {
149 "fontSize": true
150 }
151 },
152 "layout": {
153 "allowJustification": false
154 },
155 "interactivity": {
156 "clientNavigation": true
157 },
158 "filter": {
159 "duotone": true
160 },
161 "allowedBlocks": true
162 },
163 "selectors": {
164 "filter": {
165 "duotone": ".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"
166 }
167 },
168 "editorStyle": "wp-block-cover-editor",
169 "style": "wp-block-cover"
170 }
171