block.json
1 year ago
index-rtl.css
1 year ago
index.asset.php
1 year ago
index.css
1 year ago
index.js
1 year ago
block.json
90 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": [ |
| 9 | "query", |
| 10 | "loop", |
| 11 | "posts" |
| 12 | ], |
| 13 | "version": "1.0.0", |
| 14 | "textdomain": "generateblocks", |
| 15 | "attributes": { |
| 16 | "uniqueId": { |
| 17 | "type": "string", |
| 18 | "default": "" |
| 19 | }, |
| 20 | "tagName": { |
| 21 | "type": "string", |
| 22 | "default": "", |
| 23 | "enum": [ |
| 24 | "div", |
| 25 | "section", |
| 26 | "article", |
| 27 | "aside", |
| 28 | "header", |
| 29 | "footer", |
| 30 | "nav", |
| 31 | "main" |
| 32 | ] |
| 33 | }, |
| 34 | "styles": { |
| 35 | "type": "object", |
| 36 | "default": {} |
| 37 | }, |
| 38 | "css": { |
| 39 | "type": "string", |
| 40 | "default": "" |
| 41 | }, |
| 42 | "globalClasses": { |
| 43 | "type": "array", |
| 44 | "default": [] |
| 45 | }, |
| 46 | "htmlAttributes": { |
| 47 | "type": "object", |
| 48 | "default": {} |
| 49 | }, |
| 50 | "queryType": { |
| 51 | "type": "string", |
| 52 | "default": "WP_Query" |
| 53 | }, |
| 54 | "paginationType": { |
| 55 | "type": "string", |
| 56 | "default": "standard", |
| 57 | "enum": [ |
| 58 | "standard", |
| 59 | "instant" |
| 60 | ] |
| 61 | }, |
| 62 | "query": { |
| 63 | "type": "object", |
| 64 | "default": {} |
| 65 | }, |
| 66 | "inheritQuery": { |
| 67 | "type": "boolean", |
| 68 | "default": false |
| 69 | }, |
| 70 | "showTemplateSelector": { |
| 71 | "type": "boolean", |
| 72 | "default": false |
| 73 | } |
| 74 | }, |
| 75 | "supports": { |
| 76 | "align": false, |
| 77 | "className": false |
| 78 | }, |
| 79 | "editorScript": "file:./index.js", |
| 80 | "editorStyle": [ |
| 81 | "file:./index.css" |
| 82 | ], |
| 83 | "providesContext": { |
| 84 | "generateblocks/query": "query", |
| 85 | "generateblocks/queryId": "uniqueId", |
| 86 | "generateblocks/inheritQuery": "inheritQuery", |
| 87 | "generateblocks/paginationType": "paginationType", |
| 88 | "generateblocks/queryType": "queryType" |
| 89 | } |
| 90 | } |