mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-06 02:41:27 +01:00
3e094c27d0
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
126 lines
2.6 KiB
JSON
126 lines
2.6 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": {
|
|
"navigationMenuId": {
|
|
"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,
|
|
"__experimentalTextDecoration": true,
|
|
"__experimentalDefaultControls": {
|
|
"fontSize": true
|
|
}
|
|
},
|
|
"spacing": {
|
|
"blockGap": true,
|
|
"units": [
|
|
"px",
|
|
"em",
|
|
"rem",
|
|
"vh",
|
|
"vw"
|
|
],
|
|
"__experimentalDefaultControls": {
|
|
"blockGap": true
|
|
}
|
|
},
|
|
"__experimentalLayout": {
|
|
"allowSwitching": false,
|
|
"allowInheriting": false,
|
|
"default": {
|
|
"type": "flex",
|
|
"setCascadingProperties": true
|
|
}
|
|
}
|
|
},
|
|
"viewScript": "file:./view.min.js",
|
|
"editorStyle": "wp-block-navigation-editor",
|
|
"style": "wp-block-navigation"
|
|
}
|