summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/cover/block.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
commita415c29efee45520ae252d2aa28f1083a521cd7b (patch)
treef4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-includes/blocks/cover/block.json
parentInitial commit. (diff)
downloadwordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.tar.xz
wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.zip
Adding upstream version 6.4.3+dfsg1.upstream/6.4.3+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/blocks/cover/block.json')
-rw-r--r--wp-includes/blocks/cover/block.json136
1 files changed, 136 insertions, 0 deletions
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"
+}