| @@ -1,88 +1,155 @@ | ||
| 1 | 1 | { |
| 2 | - "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | - "apiVersion": 3, | |
| 4 | - "name": "jetpack/business-hours", | |
| 5 | - "title": "Business Hours", | |
| 6 | - "description": "Display opening hours for your business.", | |
| 7 | - "keywords": [ "opening hours", "closing time", "schedule", "working day" ], | |
| 8 | - "version": "12.5.0", | |
| 9 | - "textdomain": "jetpack", | |
| 10 | - "category": "grow", | |
| 11 | - "icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/></svg>", | |
| 12 | - "supports": { | |
| 13 | - "html": true, | |
| 14 | - "color": { | |
| 15 | - "gradients": true | |
| 16 | - }, | |
| 17 | - "spacing": { | |
| 18 | - "margin": true, | |
| 19 | - "padding": true | |
| 20 | - }, | |
| 21 | - "typography": { | |
| 22 | - "fontSize": true, | |
| 23 | - "lineHeight": true | |
| 24 | - }, | |
| 25 | - "align": [ "wide", "full" ] | |
| 26 | - }, | |
| 27 | - "attributes": { | |
| 28 | - "days": { | |
| 29 | - "type": "array", | |
| 30 | - "default": [ | |
| 31 | - { | |
| 32 | - "name": "Sun", | |
| 33 | - "hours": [] | |
| 34 | - }, | |
| 35 | - { | |
| 36 | - "name": "Mon", | |
| 37 | - "hours": [ | |
| 38 | - { | |
| 39 | - "opening": "09:00", | |
| 40 | - "closing": "17:00" | |
| 41 | - } | |
| 42 | - ] | |
| 43 | - }, | |
| 44 | - { | |
| 45 | - "name": "Tue", | |
| 46 | - "hours": [ | |
| 47 | - { | |
| 48 | - "opening": "09:00", | |
| 49 | - "closing": "17:00" | |
| 50 | - } | |
| 51 | - ] | |
| 52 | - }, | |
| 53 | - { | |
| 54 | - "name": "Wed", | |
| 55 | - "hours": [ | |
| 56 | - { | |
| 57 | - "opening": "09:00", | |
| 58 | - "closing": "17:00" | |
| 59 | - } | |
| 60 | - ] | |
| 61 | - }, | |
| 62 | - { | |
| 63 | - "name": "Thu", | |
| 64 | - "hours": [ | |
| 65 | - { | |
| 66 | - "opening": "09:00", | |
| 67 | - "closing": "17:00" | |
| 68 | - } | |
| 69 | - ] | |
| 70 | - }, | |
| 71 | - { | |
| 72 | - "name": "Fri", | |
| 73 | - "hours": [ | |
| 74 | - { | |
| 75 | - "opening": "09:00", | |
| 76 | - "closing": "17:00" | |
| 77 | - } | |
| 78 | - ] | |
| 79 | - }, | |
| 80 | - { | |
| 81 | - "name": "Sat", | |
| 82 | - "hours": [] | |
| 83 | - } | |
| 84 | - ] | |
| 85 | - } | |
| 86 | - }, | |
| 87 | - "editorScript": "file:../editor.js" | |
| 88 | -} | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "jetpack/business-hours", | |
| 5 | + "title": "Business Hours", | |
| 6 | + "description": "Display opening hours for your business.", | |
| 7 | + "keywords": [ | |
| 8 | + "opening hours", | |
| 9 | + "closing time", | |
| 10 | + "schedule", | |
| 11 | + "working day" | |
| 12 | + ], | |
| 13 | + "version": "12.5.0", | |
| 14 | + "textdomain": "jetpack", | |
| 15 | + "category": "grow", | |
| 16 | + "icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/></svg>", | |
| 17 | + "supports": { | |
| 18 | + "html": true, | |
| 19 | + "color": { | |
| 20 | + "gradients": true | |
| 21 | + }, | |
| 22 | + "spacing": { | |
| 23 | + "margin": true, | |
| 24 | + "padding": true | |
| 25 | + }, | |
| 26 | + "typography": { | |
| 27 | + "fontSize": true, | |
| 28 | + "lineHeight": true | |
| 29 | + }, | |
| 30 | + "align": [ | |
| 31 | + "wide", | |
| 32 | + "full" | |
| 33 | + ] | |
| 34 | + }, | |
| 35 | + "attributes": { | |
| 36 | + "days": { | |
| 37 | + "type": "array", | |
| 38 | + "default": [ | |
| 39 | + { | |
| 40 | + "name": "Sun", | |
| 41 | + "hours": [] | |
| 42 | + }, | |
| 43 | + { | |
| 44 | + "name": "Mon", | |
| 45 | + "hours": [ | |
| 46 | + { | |
| 47 | + "opening": "09:00", | |
| 48 | + "closing": "17:00" | |
| 49 | + } | |
| 50 | + ] | |
| 51 | + }, | |
| 52 | + { | |
| 53 | + "name": "Tue", | |
| 54 | + "hours": [ | |
| 55 | + { | |
| 56 | + "opening": "09:00", | |
| 57 | + "closing": "17:00" | |
| 58 | + } | |
| 59 | + ] | |
| 60 | + }, | |
| 61 | + { | |
| 62 | + "name": "Wed", | |
| 63 | + "hours": [ | |
| 64 | + { | |
| 65 | + "opening": "09:00", | |
| 66 | + "closing": "17:00" | |
| 67 | + } | |
| 68 | + ] | |
| 69 | + }, | |
| 70 | + { | |
| 71 | + "name": "Thu", | |
| 72 | + "hours": [ | |
| 73 | + { | |
| 74 | + "opening": "09:00", | |
| 75 | + "closing": "17:00" | |
| 76 | + } | |
| 77 | + ] | |
| 78 | + }, | |
| 79 | + { | |
| 80 | + "name": "Fri", | |
| 81 | + "hours": [ | |
| 82 | + { | |
| 83 | + "opening": "09:00", | |
| 84 | + "closing": "17:00" | |
| 85 | + } | |
| 86 | + ] | |
| 87 | + }, | |
| 88 | + { | |
| 89 | + "name": "Sat", | |
| 90 | + "hours": [] | |
| 91 | + } | |
| 92 | + ] | |
| 93 | + } | |
| 94 | + }, | |
| 95 | + "example": { | |
| 96 | + "attributes": { | |
| 97 | + "days": [ | |
| 98 | + { | |
| 99 | + "name": "Sun", | |
| 100 | + "hours": [] | |
| 101 | + }, | |
| 102 | + { | |
| 103 | + "name": "Mon", | |
| 104 | + "hours": [ | |
| 105 | + { | |
| 106 | + "opening": "09:00", | |
| 107 | + "closing": "17:00" | |
| 108 | + } | |
| 109 | + ] | |
| 110 | + }, | |
| 111 | + { | |
| 112 | + "name": "Tue", | |
| 113 | + "hours": [ | |
| 114 | + { | |
| 115 | + "opening": "09:00", | |
| 116 | + "closing": "17:00" | |
| 117 | + } | |
| 118 | + ] | |
| 119 | + }, | |
| 120 | + { | |
| 121 | + "name": "Wed", | |
| 122 | + "hours": [ | |
| 123 | + { | |
| 124 | + "opening": "09:00", | |
| 125 | + "closing": "17:00" | |
| 126 | + } | |
| 127 | + ] | |
| 128 | + }, | |
| 129 | + { | |
| 130 | + "name": "Thu", | |
| 131 | + "hours": [ | |
| 132 | + { | |
| 133 | + "opening": "09:00", | |
| 134 | + "closing": "17:00" | |
| 135 | + } | |
| 136 | + ] | |
| 137 | + }, | |
| 138 | + { | |
| 139 | + "name": "Fri", | |
| 140 | + "hours": [ | |
| 141 | + { | |
| 142 | + "opening": "09:00", | |
| 143 | + "closing": "17:00" | |
| 144 | + } | |
| 145 | + ] | |
| 146 | + }, | |
| 147 | + { | |
| 148 | + "name": "Sat", | |
| 149 | + "hours": [] | |
| 150 | + } | |
| 151 | + ] | |
| 152 | + } | |
| 153 | + }, | |
| 154 | + "editorScript": "jetpack-blocks-editor" | |
| 155 | +} | |