kollapsminoriteten/wp-includes/blocks/cover/block.json

159 lines
3.0 KiB
JSON
Raw Normal View History

2021-07-23 11:58:50 +02:00
{
2022-06-16 14:03:35 +02:00
"$schema": "https://schemas.wp.org/trunk/block.json",
2023-09-26 10:33:34 +02:00
"apiVersion": 3,
2021-07-23 11:58:50 +02:00
"name": "core/cover",
"title": "Cover",
"category": "media",
2023-09-26 10:33:34 +02:00
"description": "Add an image or video with a text overlay.",
2021-07-23 11:58:50 +02:00
"textdomain": "default",
"attributes": {
"url": {
2025-12-12 13:15:55 +01:00
"type": "string",
"role": "content"
2021-07-23 11:58:50 +02:00
},
2022-06-16 14:03:35 +02:00
"useFeaturedImage": {
"type": "boolean",
"default": false
},
2021-07-23 11:58:50 +02:00
"id": {
"type": "number"
},
2022-04-02 10:26:41 +02:00
"alt": {
"type": "string",
"default": ""
},
2021-07-23 11:58:50 +02:00
"hasParallax": {
"type": "boolean",
"default": false
},
"isRepeated": {
"type": "boolean",
"default": false
},
"dimRatio": {
"type": "number",
2022-04-02 10:26:41 +02:00
"default": 100
2021-07-23 11:58:50 +02:00
},
"overlayColor": {
"type": "string"
},
"customOverlayColor": {
"type": "string"
},
2024-04-17 11:32:24 +02:00
"isUserOverlayColor": {
"type": "boolean"
},
2021-07-23 11:58:50 +02:00
"backgroundType": {
"type": "string",
"default": "image"
},
"focalPoint": {
"type": "object"
},
"minHeight": {
"type": "number"
},
"minHeightUnit": {
"type": "string"
},
"gradient": {
"type": "string"
},
"customGradient": {
"type": "string"
},
"contentPosition": {
"type": "string"
2022-04-02 10:26:41 +02:00
},
"isDark": {
"type": "boolean",
"default": true
},
"templateLock": {
"type": [ "string", "boolean" ],
2022-12-15 17:47:31 +01:00
"enum": [ "all", "insert", "contentOnly", false ]
2023-04-26 17:39:43 +02:00
},
"tagName": {
"type": "string",
"default": "div"
2025-04-25 12:30:07 +02:00
},
"sizeSlug": {
"type": "string"
2025-12-12 13:15:55 +01:00
},
"poster": {
"type": "string",
"source": "attribute",
"selector": "video",
"attribute": "poster"
2021-07-23 11:58:50 +02:00
}
},
2022-06-16 14:03:35 +02:00
"usesContext": [ "postId", "postType" ],
2021-07-23 11:58:50 +02:00
"supports": {
"anchor": true,
"align": true,
"html": false,
2025-02-28 08:42:11 +01:00
"shadow": true,
2021-07-23 11:58:50 +02:00
"spacing": {
2022-04-02 10:26:41 +02:00
"padding": true,
2022-12-15 17:47:31 +01:00
"margin": [ "top", "bottom" ],
2023-09-26 10:33:34 +02:00
"blockGap": true,
2022-04-02 10:26:41 +02:00
"__experimentalDefaultControls": {
2023-09-26 10:33:34 +02:00
"padding": true,
"blockGap": true
}
},
"__experimentalBorder": {
"color": true,
"radius": true,
"style": true,
"width": true,
"__experimentalDefaultControls": {
"color": true,
"radius": true,
"style": true,
"width": true
2022-04-02 10:26:41 +02:00
}
2021-07-23 11:58:50 +02:00
},
"color": {
2023-12-07 09:44:11 +01:00
"heading": true,
2023-09-26 10:33:34 +02:00
"text": true,
"background": false,
2023-12-07 09:44:11 +01:00
"__experimentalSkipSerialization": [ "gradients" ],
"enableContrastChecker": false
2022-12-15 17:47:31 +01:00
},
2024-04-17 11:32:24 +02:00
"dimensions": {
"aspectRatio": true
},
2022-12-15 17:47:31 +01:00
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
2023-09-26 10:33:34 +02:00
},
"layout": {
"allowJustification": false
2024-04-17 11:32:24 +02:00
},
"interactivity": {
"clientNavigation": true
2025-12-12 13:15:55 +01:00
},
"filter": {
"duotone": true
},
"allowedBlocks": true
},
"selectors": {
"filter": {
"duotone": ".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"
2021-07-23 11:58:50 +02:00
}
},
"editorStyle": "wp-block-cover-editor",
"style": "wp-block-cover"
}