WordPress/wp-includes/blocks/query/block.json

57 lines
1004 B
JSON

{
"apiVersion": 2,
"name": "core/query",
"title": "Query",
"category": "design",
"description": "Displays a list of posts as a result of a query.",
"textdomain": "default",
"attributes": {
"queryId": {
"type": "number"
},
"query": {
"type": "object",
"default": {
"perPage": null,
"pages": 0,
"offset": 0,
"postType": "post",
"categoryIds": [],
"tagIds": [],
"order": "desc",
"orderBy": "date",
"author": "",
"search": "",
"exclude": [],
"sticky": "",
"inherit": true
}
},
"tagName": {
"type": "string",
"default": "div"
},
"displayLayout": {
"type": "object",
"default": {
"type": "list"
}
}
},
"providesContext": {
"queryId": "queryId",
"query": "query",
"displayLayout": "displayLayout"
},
"supports": {
"align": [ "wide", "full" ],
"html": false,
"color": {
"gradients": true,
"link": true
},
"__experimentalLayout": true
},
"editorStyle": "wp-block-query-editor"
}