| @@ -1,61 +1,69 @@ | ||
| 1 | 1 | { |
| 2 | - "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | - "apiVersion": 3, | |
| 4 | - "name": "jetpack/map", | |
| 5 | - "title": "Map", | |
| 6 | - "description": "Add an interactive map showing one or more locations.", | |
| 7 | - "keywords": [ "maps", "location", "navigation" ], | |
| 8 | - "version": "12.5.0", | |
| 9 | - "textdomain": "jetpack", | |
| 10 | - "category": "embed", | |
| 11 | - "icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path fill='none' d='M0 0h24v24H0V0z' /><path d='M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z' /></svg>", | |
| 12 | - "supports": { "defaultStylePicker": false, "html": false }, | |
| 13 | - "attributes": { | |
| 14 | - "align": { | |
| 15 | - "type": "string" | |
| 16 | - }, | |
| 17 | - "points": { | |
| 18 | - "type": "array", | |
| 19 | - "default": [] | |
| 20 | - }, | |
| 21 | - "address": { | |
| 22 | - "type": "string", | |
| 23 | - "default": "" | |
| 24 | - }, | |
| 25 | - "mapDetails": { | |
| 26 | - "type": "boolean", | |
| 27 | - "default": true | |
| 28 | - }, | |
| 29 | - "zoom": { | |
| 30 | - "type": "integer", | |
| 31 | - "default": 13 | |
| 32 | - }, | |
| 33 | - "mapCenter": { | |
| 34 | - "type": "object", | |
| 35 | - "default": { | |
| 36 | - "longitude": -122.41941550000001, | |
| 37 | - "latitude": 37.7749295 | |
| 38 | - } | |
| 39 | - }, | |
| 40 | - "markerColor": { | |
| 41 | - "type": "string", | |
| 42 | - "default": "red" | |
| 43 | - }, | |
| 44 | - "preview": { | |
| 45 | - "type": "boolean", | |
| 46 | - "default": false | |
| 47 | - }, | |
| 48 | - "scrollToZoom": { | |
| 49 | - "type": "boolean", | |
| 50 | - "default": false | |
| 51 | - }, | |
| 52 | - "mapHeight": { | |
| 53 | - "type": "integer" | |
| 54 | - }, | |
| 55 | - "showFullscreenButton": { | |
| 56 | - "type": "boolean", | |
| 57 | - "default": true | |
| 58 | - } | |
| 59 | - }, | |
| 60 | - "editorScript": "file:../editor.js" | |
| 61 | -} | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "jetpack/map", | |
| 5 | + "title": "Map", | |
| 6 | + "description": "Add an interactive map showing one or more locations.", | |
| 7 | + "keywords": [ | |
| 8 | + "maps", | |
| 9 | + "location", | |
| 10 | + "navigation" | |
| 11 | + ], | |
| 12 | + "version": "12.5.0", | |
| 13 | + "textdomain": "jetpack", | |
| 14 | + "category": "embed", | |
| 15 | + "icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z' /></svg>", | |
| 16 | + "supports": { | |
| 17 | + "defaultStylePicker": false, | |
| 18 | + "html": false, | |
| 19 | + "align": [ | |
| 20 | + "wide", | |
| 21 | + "full" | |
| 22 | + ] | |
| 23 | + }, | |
| 24 | + "attributes": { | |
| 25 | + "align": { | |
| 26 | + "type": "string" | |
| 27 | + }, | |
| 28 | + "points": { | |
| 29 | + "type": "array", | |
| 30 | + "default": [] | |
| 31 | + }, | |
| 32 | + "address": { | |
| 33 | + "type": "string", | |
| 34 | + "default": "" | |
| 35 | + }, | |
| 36 | + "mapDetails": { | |
| 37 | + "type": "boolean", | |
| 38 | + "default": true | |
| 39 | + }, | |
| 40 | + "zoom": { | |
| 41 | + "type": "integer", | |
| 42 | + "default": 13 | |
| 43 | + }, | |
| 44 | + "mapCenter": { | |
| 45 | + "type": "object", | |
| 46 | + "default": { | |
| 47 | + "longitude": -122.41941550000001, | |
| 48 | + "latitude": 37.7749295 | |
| 49 | + } | |
| 50 | + }, | |
| 51 | + "markerColor": { | |
| 52 | + "type": "string", | |
| 53 | + "default": "red" | |
| 54 | + }, | |
| 55 | + "scrollToZoom": { | |
| 56 | + "type": "boolean", | |
| 57 | + "default": false | |
| 58 | + }, | |
| 59 | + "mapHeight": { | |
| 60 | + "type": "integer" | |
| 61 | + }, | |
| 62 | + "showFullscreenButton": { | |
| 63 | + "type": "boolean", | |
| 64 | + "default": true | |
| 65 | + } | |
| 66 | + }, | |
| 67 | + "example": {}, | |
| 68 | + "editorScript": "jetpack-blocks-editor" | |
| 69 | +} | |