mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-11 15:19:02 +02:00
Update packages to include these bug fixes from Gutenberg: - Force remount LinkControl when moving between links within same richtext block - Site Editor: Change ToolsMoreMenuGroup slot-fill name - Respect fields param for global styles REST API requests. - Try ensuring the item after post content clears floats - Fix submenus not opening on click - Apply i18n functions to Nav block menu drops when selecting existing Menu - Gallery: Make sure the mobile warning notice only runs when images are added to a new block - Prepare navigation php code for core patch - Address deprecation issues from Buttons flex layout PR. - Block Library: Fix incorrect attributes definitions - Fix Navigation accessibility issues See #54337. Built from https://develop.svn.wordpress.org/trunk@52103 git-svn-id: http://core.svn.wordpress.org/trunk@51695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
93 lines
1.6 KiB
JSON
93 lines
1.6 KiB
JSON
{
|
|
"apiVersion": 2,
|
|
"name": "core/cover",
|
|
"title": "Cover",
|
|
"category": "media",
|
|
"description": "Add an image or video with a text overlay — great for headers.",
|
|
"textdomain": "default",
|
|
"attributes": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"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", false ]
|
|
}
|
|
},
|
|
"supports": {
|
|
"anchor": true,
|
|
"align": true,
|
|
"html": false,
|
|
"spacing": {
|
|
"padding": true,
|
|
"__experimentalDefaultControls": {
|
|
"padding": true
|
|
}
|
|
},
|
|
"color": {
|
|
"__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background",
|
|
"text": false,
|
|
"background": false
|
|
}
|
|
},
|
|
"editorStyle": "wp-block-cover-editor",
|
|
"style": "wp-block-cover"
|
|
}
|