summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/navigation/block.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
commita415c29efee45520ae252d2aa28f1083a521cd7b (patch)
treef4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-includes/blocks/navigation/block.json
parentInitial commit. (diff)
downloadwordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.tar.xz
wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.zip
Adding upstream version 6.4.3+dfsg1.upstream/6.4.3+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/blocks/navigation/block.json')
-rw-r--r--wp-includes/blocks/navigation/block.json141
1 files changed, 141 insertions, 0 deletions
diff --git a/wp-includes/blocks/navigation/block.json b/wp-includes/blocks/navigation/block.json
new file mode 100644
index 0000000..cb5ca4f
--- /dev/null
+++ b/wp-includes/blocks/navigation/block.json
@@ -0,0 +1,141 @@
+{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
+ "apiVersion": 3,
+ "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"
+ },
+ "icon": {
+ "type": "string",
+ "default": "handle"
+ },
+ "hasIcon": {
+ "type": "boolean",
+ "default": true
+ },
+ "__unstableLocation": {
+ "type": "string"
+ },
+ "overlayBackgroundColor": {
+ "type": "string"
+ },
+ "customOverlayBackgroundColor": {
+ "type": "string"
+ },
+ "overlayTextColor": {
+ "type": "string"
+ },
+ "customOverlayTextColor": {
+ "type": "string"
+ },
+ "maxNestingLevel": {
+ "type": "number",
+ "default": 5
+ },
+ "templateLock": {
+ "type": [ "string", "boolean" ],
+ "enum": [ "all", "insert", "contentOnly", false ]
+ }
+ },
+ "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",
+ "maxNestingLevel": "maxNestingLevel"
+ },
+ "supports": {
+ "align": [ "wide", "full" ],
+ "ariaLabel": true,
+ "html": false,
+ "inserter": true,
+ "typography": {
+ "fontSize": true,
+ "lineHeight": true,
+ "__experimentalFontStyle": true,
+ "__experimentalFontWeight": true,
+ "__experimentalTextTransform": true,
+ "__experimentalFontFamily": true,
+ "__experimentalLetterSpacing": true,
+ "__experimentalTextDecoration": true,
+ "__experimentalSkipSerialization": [ "textDecoration" ],
+ "__experimentalDefaultControls": {
+ "fontSize": true
+ }
+ },
+ "spacing": {
+ "blockGap": true,
+ "units": [ "px", "em", "rem", "vh", "vw" ],
+ "__experimentalDefaultControls": {
+ "blockGap": true
+ }
+ },
+ "layout": {
+ "allowSwitching": false,
+ "allowInheriting": false,
+ "allowVerticalAlignment": false,
+ "allowSizingOnChildren": true,
+ "default": {
+ "type": "flex"
+ }
+ },
+ "__experimentalStyle": {
+ "elements": {
+ "link": {
+ "color": {
+ "text": "inherit"
+ }
+ }
+ }
+ },
+ "interactivity": true
+ },
+ "viewScript": "file:./view.min.js",
+ "editorStyle": "wp-block-navigation-editor",
+ "style": "wp-block-navigation"
+}