app.tsx
10 months ago
block.json
6 months ago
edit.tsx
7 months ago
index.tsx
1 year ago
render.php
1 year ago
types.ts
1 year ago
block.json
34 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "givewp/campaign-block", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Campaign Block", |
| 7 | "category": "give", |
| 8 | "description": "Insert an existing campaign into the page.", |
| 9 | "supports": { |
| 10 | "align": ["wide", "full", "left", "center", "right"] |
| 11 | }, |
| 12 | "attributes": { |
| 13 | "campaignId": { |
| 14 | "type": "number" |
| 15 | }, |
| 16 | "showImage": { |
| 17 | "type": "boolean", |
| 18 | "default": true |
| 19 | }, |
| 20 | "showDescription": { |
| 21 | "type": "boolean", |
| 22 | "default": true |
| 23 | }, |
| 24 | "showGoal": { |
| 25 | "type": "boolean", |
| 26 | "default": true |
| 27 | } |
| 28 | }, |
| 29 | "textdomain": "give", |
| 30 | "viewScript": "file:../../../../build/campaignBlockApp.js", |
| 31 | "viewStyle": "file:../../../../build/campaignBlockApp.css", |
| 32 | "render": "file:./render.php" |
| 33 | } |
| 34 |