components
1 year ago
block.json
1 year ago
edit.js
1 year ago
index.js
1 year ago
save.js
1 year ago
block.json
48 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "generateblocks/shape", |
| 5 | "title": "Shape", |
| 6 | "category": "generateblocks", |
| 7 | "description": "A custom SVG shape.", |
| 8 | "keywords": [ "text", "heading", "headline", "paragraph" ], |
| 9 | "version": "1.0.0", |
| 10 | "textdomain": "generateblocks", |
| 11 | "attributes": { |
| 12 | "uniqueId": { |
| 13 | "type": "string", |
| 14 | "default": "" |
| 15 | }, |
| 16 | "html": { |
| 17 | "type": "string", |
| 18 | "source": "html", |
| 19 | "selector": ".gb-shape" |
| 20 | }, |
| 21 | "styles": { |
| 22 | "type": "object", |
| 23 | "default": {} |
| 24 | }, |
| 25 | "css": { |
| 26 | "type": "string", |
| 27 | "default": "" |
| 28 | }, |
| 29 | "globalClasses": { |
| 30 | "type": "array", |
| 31 | "default": [] |
| 32 | }, |
| 33 | "htmlAttributes": { |
| 34 | "type": "object", |
| 35 | "default": {} |
| 36 | } |
| 37 | }, |
| 38 | "supports": { |
| 39 | "align": false, |
| 40 | "className": false |
| 41 | }, |
| 42 | "editorScript": "file:./index.js", |
| 43 | "editorStyle": [ |
| 44 | "file:./index.css" |
| 45 | ], |
| 46 | "usesContext": [ "postId" ] |
| 47 | } |
| 48 |