wp/wp-includes/blocks/navigation/block.json
changeset 19 3d72ae0968f4
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
       
     1 {
       
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
       
     3 	"apiVersion": 2,
       
     4 	"name": "core/navigation",
       
     5 	"title": "Navigation",
       
     6 	"category": "theme",
       
     7 	"description": "A collection of blocks that allow visitors to get around your site.",
       
     8 	"keywords": [ "menu", "navigation", "links" ],
       
     9 	"textdomain": "default",
       
    10 	"attributes": {
       
    11 		"ref": {
       
    12 			"type": "number"
       
    13 		},
       
    14 		"textColor": {
       
    15 			"type": "string"
       
    16 		},
       
    17 		"customTextColor": {
       
    18 			"type": "string"
       
    19 		},
       
    20 		"rgbTextColor": {
       
    21 			"type": "string"
       
    22 		},
       
    23 		"backgroundColor": {
       
    24 			"type": "string"
       
    25 		},
       
    26 		"customBackgroundColor": {
       
    27 			"type": "string"
       
    28 		},
       
    29 		"rgbBackgroundColor": {
       
    30 			"type": "string"
       
    31 		},
       
    32 		"showSubmenuIcon": {
       
    33 			"type": "boolean",
       
    34 			"default": true
       
    35 		},
       
    36 		"openSubmenusOnClick": {
       
    37 			"type": "boolean",
       
    38 			"default": false
       
    39 		},
       
    40 		"overlayMenu": {
       
    41 			"type": "string",
       
    42 			"default": "mobile"
       
    43 		},
       
    44 		"hasIcon": {
       
    45 			"type": "boolean",
       
    46 			"default": true
       
    47 		},
       
    48 		"__unstableLocation": {
       
    49 			"type": "string"
       
    50 		},
       
    51 		"overlayBackgroundColor": {
       
    52 			"type": "string"
       
    53 		},
       
    54 		"customOverlayBackgroundColor": {
       
    55 			"type": "string"
       
    56 		},
       
    57 		"overlayTextColor": {
       
    58 			"type": "string"
       
    59 		},
       
    60 		"customOverlayTextColor": {
       
    61 			"type": "string"
       
    62 		},
       
    63 		"maxNestingLevel": {
       
    64 			"type": "number",
       
    65 			"default": 5
       
    66 		}
       
    67 	},
       
    68 	"providesContext": {
       
    69 		"textColor": "textColor",
       
    70 		"customTextColor": "customTextColor",
       
    71 		"backgroundColor": "backgroundColor",
       
    72 		"customBackgroundColor": "customBackgroundColor",
       
    73 		"overlayTextColor": "overlayTextColor",
       
    74 		"customOverlayTextColor": "customOverlayTextColor",
       
    75 		"overlayBackgroundColor": "overlayBackgroundColor",
       
    76 		"customOverlayBackgroundColor": "customOverlayBackgroundColor",
       
    77 		"fontSize": "fontSize",
       
    78 		"customFontSize": "customFontSize",
       
    79 		"showSubmenuIcon": "showSubmenuIcon",
       
    80 		"openSubmenusOnClick": "openSubmenusOnClick",
       
    81 		"style": "style",
       
    82 		"orientation": "orientation",
       
    83 		"maxNestingLevel": "maxNestingLevel"
       
    84 	},
       
    85 	"supports": {
       
    86 		"align": [ "wide", "full" ],
       
    87 		"anchor": true,
       
    88 		"html": false,
       
    89 		"inserter": true,
       
    90 		"typography": {
       
    91 			"fontSize": true,
       
    92 			"lineHeight": true,
       
    93 			"__experimentalFontStyle": true,
       
    94 			"__experimentalFontWeight": true,
       
    95 			"__experimentalTextTransform": true,
       
    96 			"__experimentalFontFamily": true,
       
    97 			"__experimentalTextDecoration": true,
       
    98 			"__experimentalSkipSerialization": [ "textDecoration" ],
       
    99 			"__experimentalDefaultControls": {
       
   100 				"fontSize": true
       
   101 			}
       
   102 		},
       
   103 		"spacing": {
       
   104 			"blockGap": true,
       
   105 			"units": [ "px", "em", "rem", "vh", "vw" ],
       
   106 			"__experimentalDefaultControls": {
       
   107 				"blockGap": true
       
   108 			}
       
   109 		},
       
   110 		"__experimentalLayout": {
       
   111 			"allowSwitching": false,
       
   112 			"allowInheriting": false,
       
   113 			"allowVerticalAlignment": false,
       
   114 			"default": {
       
   115 				"type": "flex"
       
   116 			}
       
   117 		}
       
   118 	},
       
   119 	"viewScript": "file:./view.min.js",
       
   120 	"editorStyle": "wp-block-navigation-editor",
       
   121 	"style": "wp-block-navigation"
       
   122 }