2021-11-09 03:17:17 +01:00
|
|
|
{
|
2022-04-12 17:12:47 +02:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2023-06-27 16:24:19 +02:00
|
|
|
"apiVersion": 3,
|
2021-11-09 03:17:17 +01:00
|
|
|
"name": "core/navigation-link",
|
|
|
|
"title": "Custom Link",
|
|
|
|
"category": "design",
|
2022-04-12 17:12:47 +02:00
|
|
|
"parent": [ "core/navigation" ],
|
2021-11-09 03:17:17 +01:00
|
|
|
"description": "Add a page, link, or another item to your navigation.",
|
|
|
|
"textdomain": "default",
|
|
|
|
"attributes": {
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"rel": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"opensInNewTab": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"title": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"kind": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isTopLevelLink": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"usesContext": [
|
|
|
|
"textColor",
|
|
|
|
"customTextColor",
|
|
|
|
"backgroundColor",
|
|
|
|
"customBackgroundColor",
|
|
|
|
"overlayTextColor",
|
|
|
|
"customOverlayTextColor",
|
|
|
|
"overlayBackgroundColor",
|
|
|
|
"customOverlayBackgroundColor",
|
|
|
|
"fontSize",
|
|
|
|
"customFontSize",
|
|
|
|
"showSubmenuIcon",
|
2022-04-12 17:12:47 +02:00
|
|
|
"maxNestingLevel",
|
2021-11-09 03:17:17 +01:00
|
|
|
"style"
|
|
|
|
],
|
|
|
|
"supports": {
|
|
|
|
"reusable": false,
|
|
|
|
"html": false,
|
2022-09-20 17:43:29 +02:00
|
|
|
"__experimentalSlashInserter": true,
|
|
|
|
"typography": {
|
|
|
|
"fontSize": true,
|
|
|
|
"lineHeight": true,
|
|
|
|
"__experimentalFontFamily": true,
|
|
|
|
"__experimentalFontWeight": true,
|
|
|
|
"__experimentalFontStyle": true,
|
|
|
|
"__experimentalTextTransform": true,
|
|
|
|
"__experimentalTextDecoration": true,
|
|
|
|
"__experimentalLetterSpacing": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"fontSize": true
|
|
|
|
}
|
|
|
|
}
|
2021-11-09 03:17:17 +01:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-navigation-link-editor",
|
|
|
|
"style": "wp-block-navigation-link"
|
|
|
|
}
|