wp/wp-includes/blocks/audio/block.json
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
     1 {
     1 {
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     3 	"apiVersion": 2,
     3 	"apiVersion": 3,
     4 	"name": "core/audio",
     4 	"name": "core/audio",
     5 	"title": "Audio",
     5 	"title": "Audio",
     6 	"category": "media",
     6 	"category": "media",
     7 	"description": "Embed a simple audio player.",
     7 	"description": "Embed a simple audio player.",
     8 	"keywords": [ "music", "sound", "podcast", "recording" ],
     8 	"keywords": [ "music", "sound", "podcast", "recording" ],
    10 	"attributes": {
    10 	"attributes": {
    11 		"src": {
    11 		"src": {
    12 			"type": "string",
    12 			"type": "string",
    13 			"source": "attribute",
    13 			"source": "attribute",
    14 			"selector": "audio",
    14 			"selector": "audio",
    15 			"attribute": "src"
    15 			"attribute": "src",
       
    16 			"__experimentalRole": "content"
    16 		},
    17 		},
    17 		"caption": {
    18 		"caption": {
    18 			"type": "string",
    19 			"type": "rich-text",
    19 			"source": "html",
    20 			"source": "rich-text",
    20 			"selector": "figcaption"
    21 			"selector": "figcaption",
       
    22 			"__experimentalRole": "content"
    21 		},
    23 		},
    22 		"id": {
    24 		"id": {
    23 			"type": "number"
    25 			"type": "number",
       
    26 			"__experimentalRole": "content"
    24 		},
    27 		},
    25 		"autoplay": {
    28 		"autoplay": {
    26 			"type": "boolean",
    29 			"type": "boolean",
    27 			"source": "attribute",
    30 			"source": "attribute",
    28 			"selector": "audio",
    31 			"selector": "audio",
    41 			"attribute": "preload"
    44 			"attribute": "preload"
    42 		}
    45 		}
    43 	},
    46 	},
    44 	"supports": {
    47 	"supports": {
    45 		"anchor": true,
    48 		"anchor": true,
    46 		"align": true
    49 		"align": true,
       
    50 		"spacing": {
       
    51 			"margin": true,
       
    52 			"padding": true,
       
    53 			"__experimentalDefaultControls": {
       
    54 				"margin": false,
       
    55 				"padding": false
       
    56 			}
       
    57 		},
       
    58 		"interactivity": {
       
    59 			"clientNavigation": true
       
    60 		}
    47 	},
    61 	},
    48 	"editorStyle": "wp-block-audio-editor",
    62 	"editorStyle": "wp-block-audio-editor",
    49 	"style": "wp-block-audio"
    63 	"style": "wp-block-audio"
    50 }
    64 }