| @@ -1,17 +1,36 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | - "apiVersion": 2, | |
| 3 | + "apiVersion": 3, | |
| 4 | 4 | "name": "eventpost/timeline", |
| 5 | - "version": "5.10.2", | |
| 5 | + "version": "6.1.2", | |
| 6 | 6 | "title": "Events Timeline", |
| 7 | 7 | "icon": "arrow-right-alt", |
| 8 | 8 | "category": "common", |
| 9 | + "supports": { | |
| 10 | + "align": [ | |
| 11 | + "wide", | |
| 12 | + "full" | |
| 13 | + ], | |
| 14 | + "html": false | |
| 15 | + }, | |
| 9 | 16 | "attributes": { |
| 10 | 17 | "nb": { |
| 11 | 18 | "type": "number", |
| 19 | + "default": 3 | |
| 20 | + }, | |
| 21 | + "nb_desktop": { | |
| 22 | + "type": "number", | |
| 12 | 23 | "default": 0 |
| 13 | 24 | }, |
| 25 | + "nb_tablet": { | |
| 26 | + "type": "number", | |
| 27 | + "default": 0 | |
| 28 | + }, | |
| 29 | + "nb_mobile": { | |
| 30 | + "type": "number", | |
| 31 | + "default": 0 | |
| 32 | + }, | |
| 14 | 33 | "future": { |
| 15 | 34 | "type": "boolean" |
| 16 | 35 | }, |
| 17 | 36 | "past": { |
| @@ -37,13 +56,40 @@ | ||
| 37 | 56 | }, |
| 38 | 57 | "after_title": { |
| 39 | 58 | "type": "string" |
| 40 | 59 | }, |
| 60 | + "excerpt": { | |
| 61 | + "type": "boolean" | |
| 62 | + }, | |
| 63 | + "order": { | |
| 64 | + "type": "string", | |
| 65 | + "default": "ASC" | |
| 66 | + }, | |
| 67 | + "separate_years": { | |
| 68 | + "type": "boolean", | |
| 69 | + "default": false | |
| 70 | + }, | |
| 71 | + "separate_months": { | |
| 72 | + "type": "boolean", | |
| 73 | + "default": false | |
| 74 | + }, | |
| 75 | + "direction": { | |
| 76 | + "type": "string", | |
| 77 | + "default": "horizontal" | |
| 78 | + }, | |
| 41 | 79 | "style": { |
| 42 | 80 | "type": "string" |
| 43 | 81 | }, |
| 44 | - "excerpt": { | |
| 45 | - "type": "boolean" | |
| 82 | + "size": { | |
| 83 | + "type": "number", | |
| 84 | + "default": 2 | |
| 85 | + }, | |
| 86 | + "color": { | |
| 87 | + "type": "string", | |
| 88 | + "default": "#000000" | |
| 89 | + }, | |
| 90 | + "className": { | |
| 91 | + "type": "string" | |
| 46 | 92 | } |
| 47 | 93 | }, |
| 48 | 94 | "textdomain": "eventpost", |
| 49 | 95 | "script": "file:./event-timeline.js", |