components
1 year ago
block.json
1 year ago
edit.js
1 year ago
index.js
1 year ago
looper.js
1 year ago
query-parameters.js
1 year ago
save.js
1 year ago
templates.js
1 year ago
toolbar-appenders.js
1 year ago
block.json
87 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "generateblocks/query", |
| 5 | "title": "Query", |
| 6 | "category": "generateblocks", |
| 7 | "description": "Query posts and display them in a loop.", |
| 8 | "keywords": [ "query", "loop", "posts" ], |
| 9 | "version": "1.0.0", |
| 10 | "textdomain": "generateblocks", |
| 11 | "attributes": { |
| 12 | "uniqueId": { |
| 13 | "type": "string", |
| 14 | "default": "" |
| 15 | }, |
| 16 | "tagName": { |
| 17 | "type": "string", |
| 18 | "default": "", |
| 19 | "enum": [ |
| 20 | "div", |
| 21 | "section", |
| 22 | "article", |
| 23 | "aside", |
| 24 | "header", |
| 25 | "footer", |
| 26 | "nav", |
| 27 | "main" |
| 28 | ] |
| 29 | }, |
| 30 | "styles": { |
| 31 | "type": "object", |
| 32 | "default": {} |
| 33 | }, |
| 34 | "css": { |
| 35 | "type": "string", |
| 36 | "default": "" |
| 37 | }, |
| 38 | "globalClasses": { |
| 39 | "type": "array", |
| 40 | "default": [] |
| 41 | }, |
| 42 | "htmlAttributes": { |
| 43 | "type": "object", |
| 44 | "default": {} |
| 45 | }, |
| 46 | "queryType": { |
| 47 | "type": "string", |
| 48 | "default": "WP_Query" |
| 49 | }, |
| 50 | "paginationType": { |
| 51 | "type": "string", |
| 52 | "default": "standard", |
| 53 | "enum": [ |
| 54 | "standard", |
| 55 | "instant" |
| 56 | ] |
| 57 | }, |
| 58 | "query": { |
| 59 | "type": "object", |
| 60 | "default": {} |
| 61 | }, |
| 62 | "inheritQuery": { |
| 63 | "type": "boolean", |
| 64 | "default": false |
| 65 | }, |
| 66 | "showTemplateSelector": { |
| 67 | "type": "boolean", |
| 68 | "default": false |
| 69 | } |
| 70 | }, |
| 71 | "supports": { |
| 72 | "align": false, |
| 73 | "className": false |
| 74 | }, |
| 75 | "editorScript": "file:./index.js", |
| 76 | "editorStyle": [ |
| 77 | "file:./index.css" |
| 78 | ], |
| 79 | "providesContext": { |
| 80 | "generateblocks/query": "query", |
| 81 | "generateblocks/queryId": "uniqueId", |
| 82 | "generateblocks/inheritQuery": "inheritQuery", |
| 83 | "generateblocks/paginationType": "paginationType", |
| 84 | "generateblocks/queryType": "queryType" |
| 85 | } |
| 86 | } |
| 87 |