initial
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "generateblocks/looper",
|
||||
"title": "Looper",
|
||||
"category": "generateblocks",
|
||||
"description": "Loops its children based on the data provided by the Query block.",
|
||||
"keywords": [
|
||||
"query",
|
||||
"loop",
|
||||
"posts"
|
||||
],
|
||||
"version": "1.0.0",
|
||||
"textdomain": "generateblocks",
|
||||
"ancestor": [
|
||||
"generateblocks/query"
|
||||
],
|
||||
"attributes": {
|
||||
"uniqueId": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"tagName": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"enum": [
|
||||
"div",
|
||||
"section",
|
||||
"article",
|
||||
"aside",
|
||||
"header",
|
||||
"footer",
|
||||
"nav",
|
||||
"main",
|
||||
"ul",
|
||||
"ol"
|
||||
]
|
||||
},
|
||||
"styles": {
|
||||
"type": "object",
|
||||
"default": {}
|
||||
},
|
||||
"css": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"globalClasses": {
|
||||
"type": "array",
|
||||
"default": []
|
||||
},
|
||||
"htmlAttributes": {
|
||||
"type": "object",
|
||||
"default": {}
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"className": false
|
||||
},
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": [
|
||||
"file:./index.css"
|
||||
],
|
||||
"usesContext": [
|
||||
"postId",
|
||||
"postType",
|
||||
"generateblocks/queryId",
|
||||
"generateblocks/query",
|
||||
"generateblocks/inheritQuery",
|
||||
"generateblocks/queryData",
|
||||
"generateblocks/queryType",
|
||||
"generateblocks/loopIndex",
|
||||
"generateblocks/loopItem"
|
||||
],
|
||||
"allowedBlocks": [
|
||||
"generateblocks/loop-item"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user