wp/wp-includes/blocks/list-item/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/list-item",
     4 	"name": "core/list-item",
     5 	"title": "List item",
     5 	"title": "List Item",
     6 	"category": "text",
     6 	"category": "text",
     7 	"parent": [ "core/list" ],
     7 	"parent": [ "core/list" ],
     8 	"allowedBlocks": [ "core/list" ],
     8 	"allowedBlocks": [ "core/list" ],
     9 	"description": "Create a list item.",
     9 	"description": "An individual item within a list.",
    10 	"textdomain": "default",
    10 	"textdomain": "default",
    11 	"attributes": {
    11 	"attributes": {
    12 		"placeholder": {
    12 		"placeholder": {
    13 			"type": "string"
    13 			"type": "string"
    14 		},
    14 		},
    15 		"content": {
    15 		"content": {
    16 			"type": "rich-text",
    16 			"type": "rich-text",
    17 			"source": "rich-text",
    17 			"source": "rich-text",
    18 			"selector": "li",
    18 			"selector": "li",
    19 			"__experimentalRole": "content"
    19 			"role": "content"
    20 		}
    20 		}
    21 	},
    21 	},
    22 	"supports": {
    22 	"supports": {
       
    23 		"anchor": true,
    23 		"className": false,
    24 		"className": false,
    24 		"__experimentalSelector": ".wp-block-list > li",
       
    25 		"splitting": true,
    25 		"splitting": true,
       
    26 		"__experimentalBorder": {
       
    27 			"color": true,
       
    28 			"radius": true,
       
    29 			"style": true,
       
    30 			"width": true
       
    31 		},
       
    32 		"color": {
       
    33 			"gradients": true,
       
    34 			"link": true,
       
    35 			"background": true,
       
    36 			"__experimentalDefaultControls": {
       
    37 				"text": true
       
    38 			}
       
    39 		},
    26 		"spacing": {
    40 		"spacing": {
    27 			"margin": true,
    41 			"margin": true,
    28 			"padding": true,
    42 			"padding": true,
    29 			"__experimentalDefaultControls": {
    43 			"__experimentalDefaultControls": {
    30 				"margin": false,
    44 				"margin": false,
    45 			}
    59 			}
    46 		},
    60 		},
    47 		"interactivity": {
    61 		"interactivity": {
    48 			"clientNavigation": true
    62 			"clientNavigation": true
    49 		}
    63 		}
       
    64 	},
       
    65 	"selectors": {
       
    66 		"root": ".wp-block-list > li",
       
    67 		"border": ".wp-block-list:not(.wp-block-list .wp-block-list) > li"
    50 	}
    68 	}
    51 }
    69 }