mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-07 19:31:54 +01:00
a41c798835
In addition to all the packages being updated to the latest versions, this commit also includes some mandatory changes to avoid editor breakage: - Update React to to 18.2.0. - Add the right stylesheets to support iframed block editors. Props ntsekouras, mamaduka, flixos90, desrosj, peterwilsoncc. See #57471. Built from https://develop.svn.wordpress.org/trunk@55246 git-svn-id: http://core.svn.wordpress.org/trunk@54779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
117 lines
2.2 KiB
JSON
117 lines
2.2 KiB
JSON
{
|
|
"$schema": "https://schemas.wp.org/trunk/block.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"
|
|
},
|
|
"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" ],
|
|
"__experimentalDefaultControls": {
|
|
"padding": true
|
|
}
|
|
},
|
|
"color": {
|
|
"__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background",
|
|
"text": false,
|
|
"background": false
|
|
},
|
|
"typography": {
|
|
"fontSize": true,
|
|
"lineHeight": true,
|
|
"__experimentalFontFamily": true,
|
|
"__experimentalFontWeight": true,
|
|
"__experimentalFontStyle": true,
|
|
"__experimentalTextTransform": true,
|
|
"__experimentalTextDecoration": true,
|
|
"__experimentalLetterSpacing": true,
|
|
"__experimentalDefaultControls": {
|
|
"fontSize": true
|
|
}
|
|
}
|
|
},
|
|
"editorStyle": "wp-block-cover-editor",
|
|
"style": "wp-block-cover"
|
|
}
|