components
1 year ago
block.json
1 year ago
edit.js
1 year ago
editor.scss
1 year ago
index.js
1 year ago
save.js
1 year ago
block.json
66 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "generateblocks/loop-item", |
| 5 | "title": "Loop Item", |
| 6 | "category": "generateblocks", |
| 7 | "description": "The item that is looped inside of the Looper.", |
| 8 | "keywords": [ "text", "heading", "headline", "paragraph" ], |
| 9 | "version": "1.0.0", |
| 10 | "textdomain": "generateblocks", |
| 11 | "parent": [ "generateblocks/looper" ], |
| 12 | "attributes": { |
| 13 | "uniqueId": { |
| 14 | "type": "string", |
| 15 | "default": "" |
| 16 | }, |
| 17 | "tagName": { |
| 18 | "type": "string", |
| 19 | "default": "", |
| 20 | "enum": [ |
| 21 | "div", |
| 22 | "li", |
| 23 | "a", |
| 24 | "article", |
| 25 | "section", |
| 26 | "aside" |
| 27 | ] |
| 28 | }, |
| 29 | "styles": { |
| 30 | "type": "object", |
| 31 | "default": {} |
| 32 | }, |
| 33 | "css": { |
| 34 | "type": "string", |
| 35 | "default": "" |
| 36 | }, |
| 37 | "globalClasses": { |
| 38 | "type": "array", |
| 39 | "default": [] |
| 40 | }, |
| 41 | "htmlAttributes": { |
| 42 | "type": "object", |
| 43 | "default": {} |
| 44 | } |
| 45 | }, |
| 46 | "supports": { |
| 47 | "align": false, |
| 48 | "className": false |
| 49 | }, |
| 50 | "editorScript": "file:./index.js", |
| 51 | "editorStyle": [ |
| 52 | "file:./index.css" |
| 53 | ], |
| 54 | "usesContext": [ |
| 55 | "generateblocks/queryData", |
| 56 | "generateblocks/queryType", |
| 57 | "generateblocks/loopIndex", |
| 58 | "generateblocks/loopItem", |
| 59 | "generateblocks/loopPreviewId", |
| 60 | "generateblocks/hasLoopItems", |
| 61 | "generateblocks/queryId", |
| 62 | "generateblocks/setLoopPreviewId", |
| 63 | "postId" |
| 64 | ] |
| 65 | } |
| 66 |