2021-11-09 03:17:17 +01:00
|
|
|
{
|
|
|
|
"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": {
|
2021-11-30 01:24:27 +01:00
|
|
|
"ref": {
|
2021-11-09 03:17:17 +01: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"
|
|
|
|
},
|
|
|
|
"__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": {
|
2022-01-04 06:39:28 +01:00
|
|
|
"units": [ "px", "em", "rem", "vh", "vw" ]
|
2021-11-09 03:17:17 +01:00
|
|
|
},
|
|
|
|
"__experimentalLayout": {
|
|
|
|
"allowSwitching": false,
|
|
|
|
"allowInheriting": false,
|
|
|
|
"default": {
|
2021-12-21 08:02:34 +01:00
|
|
|
"type": "flex"
|
2021-11-09 03:17:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"viewScript": "file:./view.min.js",
|
|
|
|
"editorStyle": "wp-block-navigation-editor",
|
|
|
|
"style": "wp-block-navigation"
|
|
|
|
}
|