wp/wp-includes/blocks/file/block.json
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
     9 	"textdomain": "default",
     9 	"textdomain": "default",
    10 	"attributes": {
    10 	"attributes": {
    11 		"id": {
    11 		"id": {
    12 			"type": "number"
    12 			"type": "number"
    13 		},
    13 		},
       
    14 		"blob": {
       
    15 			"type": "string",
       
    16 			"role": "local"
       
    17 		},
    14 		"href": {
    18 		"href": {
    15 			"type": "string"
    19 			"type": "string",
       
    20 			"role": "content"
    16 		},
    21 		},
    17 		"fileId": {
    22 		"fileId": {
    18 			"type": "string",
    23 			"type": "string",
    19 			"source": "attribute",
    24 			"source": "attribute",
    20 			"selector": "a:not([download])",
    25 			"selector": "a:not([download])",
    21 			"attribute": "id"
    26 			"attribute": "id"
    22 		},
    27 		},
    23 		"fileName": {
    28 		"fileName": {
    24 			"type": "rich-text",
    29 			"type": "rich-text",
    25 			"source": "rich-text",
    30 			"source": "rich-text",
    26 			"selector": "a:not([download])"
    31 			"selector": "a:not([download])",
       
    32 			"role": "content"
    27 		},
    33 		},
    28 		"textLinkHref": {
    34 		"textLinkHref": {
    29 			"type": "string",
    35 			"type": "string",
    30 			"source": "attribute",
    36 			"source": "attribute",
    31 			"selector": "a:not([download])",
    37 			"selector": "a:not([download])",
    32 			"attribute": "href"
    38 			"attribute": "href",
       
    39 			"role": "content"
    33 		},
    40 		},
    34 		"textLinkTarget": {
    41 		"textLinkTarget": {
    35 			"type": "string",
    42 			"type": "string",
    36 			"source": "attribute",
    43 			"source": "attribute",
    37 			"selector": "a:not([download])",
    44 			"selector": "a:not([download])",
    42 			"default": true
    49 			"default": true
    43 		},
    50 		},
    44 		"downloadButtonText": {
    51 		"downloadButtonText": {
    45 			"type": "rich-text",
    52 			"type": "rich-text",
    46 			"source": "rich-text",
    53 			"source": "rich-text",
    47 			"selector": "a[download]"
    54 			"selector": "a[download]",
       
    55 			"role": "content"
    48 		},
    56 		},
    49 		"displayPreview": {
    57 		"displayPreview": {
    50 			"type": "boolean"
    58 			"type": "boolean"
    51 		},
    59 		},
    52 		"previewHeight": {
    60 		"previewHeight": {
    68 			"__experimentalDefaultControls": {
    76 			"__experimentalDefaultControls": {
    69 				"background": true,
    77 				"background": true,
    70 				"link": true
    78 				"link": true
    71 			}
    79 			}
    72 		},
    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 			}
       
    92 		},
    73 		"interactivity": true
    93 		"interactivity": true
    74 	},
    94 	},
    75 	"editorStyle": "wp-block-file-editor",
    95 	"editorStyle": "wp-block-file-editor",
    76 	"style": "wp-block-file"
    96 	"style": "wp-block-file"
    77 }
    97 }