2021-11-08 21:17:17 -05:00
|
|
|
{
|
2022-04-12 11:12:47 -04:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2023-06-27 10:24:19 -04:00
|
|
|
"apiVersion": 3,
|
2021-11-08 21:17:17 -05:00
|
|
|
"name": "core/navigation",
|
|
|
|
"title": "Navigation",
|
|
|
|
"category": "theme",
|
2024-02-09 13:22:22 -05:00
|
|
|
"allowedBlocks": [
|
|
|
|
"core/navigation-link",
|
|
|
|
"core/search",
|
|
|
|
"core/social-links",
|
|
|
|
"core/page-list",
|
|
|
|
"core/spacer",
|
|
|
|
"core/home-link",
|
|
|
|
"core/site-title",
|
|
|
|
"core/site-logo",
|
|
|
|
"core/navigation-submenu",
|
|
|
|
"core/loginout",
|
|
|
|
"core/buttons"
|
|
|
|
],
|
2021-11-08 21:17:17 -05:00
|
|
|
"description": "A collection of blocks that allow visitors to get around your site.",
|
2022-04-12 11:12:47 -04:00
|
|
|
"keywords": [ "menu", "navigation", "links" ],
|
2021-11-08 21:17:17 -05:00
|
|
|
"textdomain": "default",
|
|
|
|
"attributes": {
|
2021-11-29 19:24:27 -05:00
|
|
|
"ref": {
|
2021-11-08 21:17:17 -05:00
|
|
|
"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"
|
|
|
|
},
|
2022-09-20 11:43:29 -04:00
|
|
|
"icon": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "handle"
|
|
|
|
},
|
2022-04-12 11:12:47 -04:00
|
|
|
"hasIcon": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
2021-11-08 21:17:17 -05:00
|
|
|
"__unstableLocation": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"overlayBackgroundColor": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"customOverlayBackgroundColor": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"overlayTextColor": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"customOverlayTextColor": {
|
|
|
|
"type": "string"
|
2022-04-12 11:12:47 -04:00
|
|
|
},
|
|
|
|
"maxNestingLevel": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 5
|
2023-02-07 02:04:52 -05:00
|
|
|
},
|
|
|
|
"templateLock": {
|
|
|
|
"type": [ "string", "boolean" ],
|
|
|
|
"enum": [ "all", "insert", "contentOnly", false ]
|
2021-11-08 21:17:17 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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",
|
2022-04-12 11:12:47 -04:00
|
|
|
"maxNestingLevel": "maxNestingLevel"
|
2021-11-08 21:17:17 -05:00
|
|
|
},
|
|
|
|
"supports": {
|
2022-04-12 11:12:47 -04:00
|
|
|
"align": [ "wide", "full" ],
|
2023-09-26 10:23:26 -04:00
|
|
|
"ariaLabel": true,
|
2021-11-08 21:17:17 -05:00
|
|
|
"html": false,
|
|
|
|
"inserter": true,
|
|
|
|
"typography": {
|
|
|
|
"fontSize": true,
|
|
|
|
"lineHeight": true,
|
|
|
|
"__experimentalFontStyle": true,
|
|
|
|
"__experimentalFontWeight": true,
|
|
|
|
"__experimentalTextTransform": true,
|
|
|
|
"__experimentalFontFamily": true,
|
2022-09-20 11:43:29 -04:00
|
|
|
"__experimentalLetterSpacing": true,
|
2022-04-12 11:12:47 -04:00
|
|
|
"__experimentalTextDecoration": true,
|
|
|
|
"__experimentalSkipSerialization": [ "textDecoration" ],
|
2021-11-08 21:17:17 -05:00
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"fontSize": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"spacing": {
|
2022-04-12 11:12:47 -04:00
|
|
|
"blockGap": true,
|
|
|
|
"units": [ "px", "em", "rem", "vh", "vw" ],
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"blockGap": true
|
|
|
|
}
|
2021-11-08 21:17:17 -05:00
|
|
|
},
|
2023-06-27 10:24:19 -04:00
|
|
|
"layout": {
|
2021-11-08 21:17:17 -05:00
|
|
|
"allowSwitching": false,
|
|
|
|
"allowInheriting": false,
|
2022-04-12 11:12:47 -04:00
|
|
|
"allowVerticalAlignment": false,
|
2023-02-07 02:04:52 -05:00
|
|
|
"allowSizingOnChildren": true,
|
2021-11-08 21:17:17 -05:00
|
|
|
"default": {
|
2021-12-21 02:02:34 -05:00
|
|
|
"type": "flex"
|
2021-11-08 21:17:17 -05:00
|
|
|
}
|
2022-09-20 11:43:29 -04:00
|
|
|
},
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
"interactivity": true,
|
|
|
|
"renaming": false
|
2021-11-08 21:17:17 -05:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-navigation-editor",
|
|
|
|
"style": "wp-block-navigation"
|
|
|
|
}
|