From a415c29efee45520ae252d2aa28f1083a521cd7b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 09:56:49 +0200 Subject: Adding upstream version 6.4.3+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/blocks/cover/block.json | 136 ++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 wp-includes/blocks/cover/block.json (limited to 'wp-includes/blocks/cover/block.json') diff --git a/wp-includes/blocks/cover/block.json b/wp-includes/blocks/cover/block.json new file mode 100644 index 0000000..e88dd2d --- /dev/null +++ b/wp-includes/blocks/cover/block.json @@ -0,0 +1,136 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "core/cover", + "title": "Cover", + "category": "media", + "description": "Add an image or video with a text overlay.", + "textdomain": "default", + "attributes": { + "url": { + "type": "string" + }, + "useFeaturedImage": { + "type": "boolean", + "default": false + }, + "id": { + "type": "number" + }, + "alt": { + "type": "string", + "source": "attribute", + "selector": "img", + "attribute": "alt", + "default": "" + }, + "hasParallax": { + "type": "boolean", + "default": false + }, + "isRepeated": { + "type": "boolean", + "default": false + }, + "dimRatio": { + "type": "number", + "default": 100 + }, + "overlayColor": { + "type": "string" + }, + "customOverlayColor": { + "type": "string" + }, + "backgroundType": { + "type": "string", + "default": "image" + }, + "focalPoint": { + "type": "object" + }, + "minHeight": { + "type": "number" + }, + "minHeightUnit": { + "type": "string" + }, + "gradient": { + "type": "string" + }, + "customGradient": { + "type": "string" + }, + "contentPosition": { + "type": "string" + }, + "isDark": { + "type": "boolean", + "default": true + }, + "allowedBlocks": { + "type": "array" + }, + "templateLock": { + "type": [ "string", "boolean" ], + "enum": [ "all", "insert", "contentOnly", false ] + }, + "tagName": { + "type": "string", + "default": "div" + } + }, + "usesContext": [ "postId", "postType" ], + "supports": { + "anchor": true, + "align": true, + "html": false, + "spacing": { + "padding": true, + "margin": [ "top", "bottom" ], + "blockGap": true, + "__experimentalDefaultControls": { + "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", + "heading": true, + "text": true, + "background": false, + "__experimentalSkipSerialization": [ "gradients" ], + "enableContrastChecker": false + }, + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalFontWeight": true, + "__experimentalFontStyle": true, + "__experimentalTextTransform": true, + "__experimentalTextDecoration": true, + "__experimentalLetterSpacing": true, + "__experimentalDefaultControls": { + "fontSize": true + } + }, + "layout": { + "allowJustification": false + } + }, + "editorStyle": "wp-block-cover-editor", + "style": "wp-block-cover" +} -- cgit v1.2.3