block.json
70 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "awt/child-author-activity-card", |
| 5 | "title": "Activity Card", |
| 6 | "category": "author-website-templates", |
| 7 | "icon": "index-card", |
| 8 | "description": "Individual activity card for the Activities section", |
| 9 | "keywords": [ |
| 10 | "activity", |
| 11 | "card", |
| 12 | "child-author" |
| 13 | ], |
| 14 | "parent": [ |
| 15 | "awt/child-author-activities" |
| 16 | ], |
| 17 | "usesContext": [ |
| 18 | "awt/activityStyle" |
| 19 | ], |
| 20 | "textdomain": "author-website-templates", |
| 21 | "editorScript": "file:./index.js", |
| 22 | "attributes": { |
| 23 | "imageId": { |
| 24 | "type": "number", |
| 25 | "default": 0 |
| 26 | }, |
| 27 | "cardStyle": { |
| 28 | "type": "string", |
| 29 | "default": "fun" |
| 30 | }, |
| 31 | "iconSvg": { |
| 32 | "type": "string", |
| 33 | "default": "" |
| 34 | }, |
| 35 | "imageUrl": { |
| 36 | "type": "string", |
| 37 | "default": "" |
| 38 | }, |
| 39 | "title": { |
| 40 | "type": "string", |
| 41 | "default": "Activity Title" |
| 42 | }, |
| 43 | "description": { |
| 44 | "type": "string", |
| 45 | "default": "Activity description goes here..." |
| 46 | }, |
| 47 | "hoverEffect": { |
| 48 | "type": "string", |
| 49 | "default": "scale", |
| 50 | "enum": [ |
| 51 | "rotate-left", |
| 52 | "scale", |
| 53 | "rotate-right" |
| 54 | ] |
| 55 | }, |
| 56 | "cardUrl": { |
| 57 | "type": "string", |
| 58 | "default": "" |
| 59 | }, |
| 60 | "openInNewTab": { |
| 61 | "type": "boolean", |
| 62 | "default": false |
| 63 | } |
| 64 | }, |
| 65 | "supports": { |
| 66 | "html": false, |
| 67 | "reusable": false |
| 68 | }, |
| 69 | "style": "file:./index.css" |
| 70 | } |