mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 07:20:01 +01:00
cd191ca6fe
Update packages to include these bug fixes from Gutenberg: - Stop keypresses being caught by other elements when they happen in a CustomSelectControl - Remove color, spacing, and layout options for Template Part block - Try: parse shortcode blocks outside the content - Fix aria-modal attribution with multiple navs on page - Gallery block: Remove warning notice about mobile version required - Fix Home template description typo - Fix enqueueing additional styles for blocks only when rendered - fix typo (hanle -> handle) - SelectControl: mark the children prop as optional - Remove warning for enqueued styles in Editor - Add context to font style and font weight related translation strings - Temporarily remove text decoration from Nav block - Fix empty secondary sidebar overlapping widget editor content on mobile viewports - Fix hiding the bottom of tablet/mobile preview in Site Editor See #54487. Props isabel_brison. Built from https://develop.svn.wordpress.org/trunk@52595 git-svn-id: http://core.svn.wordpress.org/trunk@52183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
114 lines
2.4 KiB
JSON
114 lines
2.4 KiB
JSON
{
|
|
"apiVersion": 2,
|
|
"name": "core/navigation",
|
|
"title": "Navigation",
|
|
"category": "theme",
|
|
"description": "A collection of blocks that allow visitors to get around your site.",
|
|
"keywords": [
|
|
"menu",
|
|
"navigation",
|
|
"links"
|
|
],
|
|
"textdomain": "default",
|
|
"attributes": {
|
|
"ref": {
|
|
"type": "number"
|
|
},
|
|
"textColor": {
|
|
"type": "string"
|
|
},
|
|
"customTextColor": {
|
|
"type": "string"
|
|
},
|
|
"rgbTextColor": {
|
|
"type": "string"
|
|
},
|
|
"backgroundColor": {
|
|
"type": "string"
|
|
},
|
|
"customBackgroundColor": {
|
|
"type": "string"
|
|
},
|
|
"rgbBackgroundColor": {
|
|
"type": "string"
|
|
},
|
|
"showSubmenuIcon": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"openSubmenusOnClick": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"overlayMenu": {
|
|
"type": "string",
|
|
"default": "mobile"
|
|
},
|
|
"__unstableLocation": {
|
|
"type": "string"
|
|
},
|
|
"overlayBackgroundColor": {
|
|
"type": "string"
|
|
},
|
|
"customOverlayBackgroundColor": {
|
|
"type": "string"
|
|
},
|
|
"overlayTextColor": {
|
|
"type": "string"
|
|
},
|
|
"customOverlayTextColor": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"usesContext": [ "navigationArea" ],
|
|
"providesContext": {
|
|
"textColor": "textColor",
|
|
"customTextColor": "customTextColor",
|
|
"backgroundColor": "backgroundColor",
|
|
"customBackgroundColor": "customBackgroundColor",
|
|
"overlayTextColor": "overlayTextColor",
|
|
"customOverlayTextColor": "customOverlayTextColor",
|
|
"overlayBackgroundColor": "overlayBackgroundColor",
|
|
"customOverlayBackgroundColor": "customOverlayBackgroundColor",
|
|
"fontSize": "fontSize",
|
|
"customFontSize": "customFontSize",
|
|
"showSubmenuIcon": "showSubmenuIcon",
|
|
"openSubmenusOnClick": "openSubmenusOnClick",
|
|
"style": "style",
|
|
"orientation": "orientation"
|
|
},
|
|
"supports": {
|
|
"align": [
|
|
"wide",
|
|
"full"
|
|
],
|
|
"anchor": true,
|
|
"html": false,
|
|
"inserter": true,
|
|
"typography": {
|
|
"fontSize": true,
|
|
"lineHeight": true,
|
|
"__experimentalFontStyle": true,
|
|
"__experimentalFontWeight": true,
|
|
"__experimentalTextTransform": true,
|
|
"__experimentalFontFamily": true,
|
|
"__experimentalDefaultControls": {
|
|
"fontSize": true
|
|
}
|
|
},
|
|
"spacing": {
|
|
"units": [ "px", "em", "rem", "vh", "vw" ]
|
|
},
|
|
"__experimentalLayout": {
|
|
"allowSwitching": false,
|
|
"allowInheriting": false,
|
|
"default": {
|
|
"type": "flex"
|
|
}
|
|
}
|
|
},
|
|
"viewScript": "file:./view.min.js",
|
|
"editorStyle": "wp-block-navigation-editor",
|
|
"style": "wp-block-navigation"
|
|
}
|