kollapsminoriteten/wp-includes/blocks/navigation/block.json

142 lines
3.1 KiB
JSON
Raw Normal View History

2022-04-02 10:26:41 +02:00
{
2022-06-16 14:03:35 +02:00
"$schema": "https://schemas.wp.org/trunk/block.json",
2023-09-26 10:33:34 +02:00
"apiVersion": 3,
2022-04-02 10:26:41 +02:00
"name": "core/navigation",
"title": "Navigation",
"category": "theme",
"description": "A collection of blocks that allow visitors to get around your site.",
2022-06-16 14:03:35 +02:00
"keywords": [ "menu", "navigation", "links" ],
2022-04-02 10:26:41 +02:00
"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"
},
2022-12-15 17:47:31 +01:00
"icon": {
"type": "string",
"default": "handle"
},
2022-06-16 14:03:35 +02:00
"hasIcon": {
"type": "boolean",
"default": true
},
2022-04-02 10:26:41 +02:00
"__unstableLocation": {
"type": "string"
},
"overlayBackgroundColor": {
"type": "string"
},
"customOverlayBackgroundColor": {
"type": "string"
},
"overlayTextColor": {
"type": "string"
},
"customOverlayTextColor": {
"type": "string"
2022-06-16 14:03:35 +02:00
},
"maxNestingLevel": {
"type": "number",
"default": 5
2023-04-26 17:39:43 +02:00
},
"templateLock": {
"type": [ "string", "boolean" ],
"enum": [ "all", "insert", "contentOnly", false ]
2022-04-02 10:26:41 +02: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-06-16 14:03:35 +02:00
"maxNestingLevel": "maxNestingLevel"
2022-04-02 10:26:41 +02:00
},
"supports": {
2022-06-16 14:03:35 +02:00
"align": [ "wide", "full" ],
2023-12-07 09:44:11 +01:00
"ariaLabel": true,
2022-04-02 10:26:41 +02:00
"html": false,
"inserter": true,
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontStyle": true,
"__experimentalFontWeight": true,
"__experimentalTextTransform": true,
"__experimentalFontFamily": true,
2022-12-15 17:47:31 +01:00
"__experimentalLetterSpacing": true,
2022-06-16 14:03:35 +02:00
"__experimentalTextDecoration": true,
"__experimentalSkipSerialization": [ "textDecoration" ],
2022-04-02 10:26:41 +02:00
"__experimentalDefaultControls": {
"fontSize": true
}
},
"spacing": {
2022-06-16 14:03:35 +02:00
"blockGap": true,
"units": [ "px", "em", "rem", "vh", "vw" ],
"__experimentalDefaultControls": {
"blockGap": true
}
2022-04-02 10:26:41 +02:00
},
2023-09-26 10:33:34 +02:00
"layout": {
2022-04-02 10:26:41 +02:00
"allowSwitching": false,
"allowInheriting": false,
2022-06-16 14:03:35 +02:00
"allowVerticalAlignment": false,
2023-04-26 17:39:43 +02:00
"allowSizingOnChildren": true,
2022-04-02 10:26:41 +02:00
"default": {
"type": "flex"
}
2022-12-15 17:47:31 +01:00
},
"__experimentalStyle": {
"elements": {
"link": {
"color": {
"text": "inherit"
}
}
}
2023-12-07 09:44:11 +01:00
},
"interactivity": true
2022-04-02 10:26:41 +02:00
},
2023-12-07 09:44:11 +01:00
"viewScript": "file:./view.min.js",
2022-04-02 10:26:41 +02:00
"editorStyle": "wp-block-navigation-editor",
"style": "wp-block-navigation"
}