wp/wp-includes/blocks/categories/block.json
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
     1 {
     1 {
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     3 	"apiVersion": 3,
     3 	"apiVersion": 3,
     4 	"name": "core/categories",
     4 	"name": "core/categories",
     5 	"title": "Categories List",
     5 	"title": "Terms List",
     6 	"category": "widgets",
     6 	"category": "widgets",
     7 	"description": "Display a list of all categories.",
     7 	"description": "Display a list of all terms of a given taxonomy.",
       
     8 	"keywords": [ "categories" ],
     8 	"textdomain": "default",
     9 	"textdomain": "default",
     9 	"attributes": {
    10 	"attributes": {
       
    11 		"taxonomy": {
       
    12 			"type": "string",
       
    13 			"default": "category"
       
    14 		},
    10 		"displayAsDropdown": {
    15 		"displayAsDropdown": {
    11 			"type": "boolean",
    16 			"type": "boolean",
    12 			"default": false
    17 			"default": false
    13 		},
    18 		},
    14 		"showHierarchy": {
    19 		"showHierarchy": {
    24 			"default": false
    29 			"default": false
    25 		},
    30 		},
    26 		"showEmpty": {
    31 		"showEmpty": {
    27 			"type": "boolean",
    32 			"type": "boolean",
    28 			"default": false
    33 			"default": false
       
    34 		},
       
    35 		"label": {
       
    36 			"type": "string",
       
    37 			"role": "content"
       
    38 		},
       
    39 		"showLabel": {
       
    40 			"type": "boolean",
       
    41 			"default": true
    29 		}
    42 		}
    30 	},
    43 	},
       
    44 	"usesContext": [ "enhancedPagination" ],
    31 	"supports": {
    45 	"supports": {
    32 		"align": true,
    46 		"align": true,
    33 		"html": false,
    47 		"html": false,
    34 		"spacing": {
    48 		"spacing": {
    35 			"margin": true,
    49 			"margin": true,
    50 			"__experimentalLetterSpacing": true,
    64 			"__experimentalLetterSpacing": true,
    51 			"__experimentalDefaultControls": {
    65 			"__experimentalDefaultControls": {
    52 				"fontSize": true
    66 				"fontSize": true
    53 			}
    67 			}
    54 		},
    68 		},
       
    69 		"color": {
       
    70 			"gradients": true,
       
    71 			"link": true,
       
    72 			"__experimentalDefaultControls": {
       
    73 				"background": true,
       
    74 				"text": true,
       
    75 				"link": true
       
    76 			}
       
    77 		},
    55 		"interactivity": {
    78 		"interactivity": {
    56 			"clientNavigation": true
    79 			"clientNavigation": true
       
    80 		},
       
    81 		"__experimentalBorder": {
       
    82 			"radius": true,
       
    83 			"color": true,
       
    84 			"width": true,
       
    85 			"style": true,
       
    86 			"__experimentalDefaultControls": {
       
    87 				"radius": true,
       
    88 				"color": true,
       
    89 				"width": true,
       
    90 				"style": true
       
    91 			}
    57 		}
    92 		}
    58 	},
    93 	},
    59 	"editorStyle": "wp-block-categories-editor",
    94 	"editorStyle": "wp-block-categories-editor",
    60 	"style": "wp-block-categories"
    95 	"style": "wp-block-categories"
    61 }
    96 }