--- a/wp/wp-includes/blocks/cover/block.json Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/blocks/cover/block.json Fri Sep 05 18:40:08 2025 +0200
@@ -1,10 +1,10 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
- "apiVersion": 2,
+ "apiVersion": 3,
"name": "core/cover",
"title": "Cover",
"category": "media",
- "description": "Add an image or video with a text overlay — great for headers.",
+ "description": "Add an image or video with a text overlay.",
"textdomain": "default",
"attributes": {
"url": {
@@ -19,9 +19,6 @@
},
"alt": {
"type": "string",
- "source": "attribute",
- "selector": "img",
- "attribute": "alt",
"default": ""
},
"hasParallax": {
@@ -42,6 +39,9 @@
"customOverlayColor": {
"type": "string"
},
+ "isUserOverlayColor": {
+ "type": "boolean"
+ },
"backgroundType": {
"type": "string",
"default": "image"
@@ -73,7 +73,11 @@
},
"templateLock": {
"type": [ "string", "boolean" ],
- "enum": [ "all", "insert", false ]
+ "enum": [ "all", "insert", "contentOnly", false ]
+ },
+ "tagName": {
+ "type": "string",
+ "default": "div"
}
},
"usesContext": [ "postId", "postType" ],
@@ -81,16 +85,57 @@
"anchor": true,
"align": true,
"html": false,
+ "shadow": true,
"spacing": {
"padding": true,
+ "margin": [ "top", "bottom" ],
+ "blockGap": true,
"__experimentalDefaultControls": {
- "padding": true
+ "padding": true,
+ "blockGap": true
+ }
+ },
+ "__experimentalBorder": {
+ "color": true,
+ "radius": true,
+ "style": true,
+ "width": true,
+ "__experimentalDefaultControls": {
+ "color": true,
+ "radius": true,
+ "style": true,
+ "width": true
}
},
"color": {
"__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background",
- "text": false,
- "background": false
+ "heading": true,
+ "text": true,
+ "background": false,
+ "__experimentalSkipSerialization": [ "gradients" ],
+ "enableContrastChecker": false
+ },
+ "dimensions": {
+ "aspectRatio": true
+ },
+ "typography": {
+ "fontSize": true,
+ "lineHeight": true,
+ "__experimentalFontFamily": true,
+ "__experimentalFontWeight": true,
+ "__experimentalFontStyle": true,
+ "__experimentalTextTransform": true,
+ "__experimentalTextDecoration": true,
+ "__experimentalLetterSpacing": true,
+ "__experimentalDefaultControls": {
+ "fontSize": true
+ }
+ },
+ "layout": {
+ "allowJustification": false
+ },
+ "interactivity": {
+ "clientNavigation": true
}
},
"editorStyle": "wp-block-cover-editor",