mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 23:25:50 +01:00
f6df3fba16
Syncs `@wordpress/*` packages to the `wp-6.7` npm tag. Fixes #61906. Props peterwilsoncc, gziolo, kevin940726. Built from https://develop.svn.wordpress.org/trunk@59072 git-svn-id: http://core.svn.wordpress.org/trunk@58468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
59 lines
1.2 KiB
JSON
59 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
"apiVersion": 3,
|
|
"name": "core/query",
|
|
"title": "Query Loop",
|
|
"category": "theme",
|
|
"description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
|
|
"textdomain": "default",
|
|
"attributes": {
|
|
"queryId": {
|
|
"type": "number"
|
|
},
|
|
"query": {
|
|
"type": "object",
|
|
"default": {
|
|
"perPage": null,
|
|
"pages": 0,
|
|
"offset": 0,
|
|
"postType": "post",
|
|
"order": "desc",
|
|
"orderBy": "date",
|
|
"author": "",
|
|
"search": "",
|
|
"exclude": [],
|
|
"sticky": "",
|
|
"inherit": true,
|
|
"taxQuery": null,
|
|
"parents": [],
|
|
"format": []
|
|
}
|
|
},
|
|
"tagName": {
|
|
"type": "string",
|
|
"default": "div"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"enhancedPagination": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
"usesContext": [ "postType" ],
|
|
"providesContext": {
|
|
"queryId": "queryId",
|
|
"query": "query",
|
|
"displayLayout": "displayLayout",
|
|
"enhancedPagination": "enhancedPagination"
|
|
},
|
|
"supports": {
|
|
"align": [ "wide", "full" ],
|
|
"html": false,
|
|
"layout": true,
|
|
"interactivity": true
|
|
},
|
|
"editorStyle": "wp-block-query-editor"
|
|
}
|