| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | - "apiVersion": 1, | |
| 3 | + "apiVersion": 3, | |
| 4 | 4 | "name": "jetpack/map", |
| 5 | 5 | "title": "Map", |
| 6 | 6 | "description": "Add an interactive map showing one or more locations.", |
| 7 | 7 | "keywords": [ |
| @@ -11,12 +11,16 @@ | ||
| 11 | 11 | ], |
| 12 | 12 | "version": "12.5.0", |
| 13 | 13 | "textdomain": "jetpack", |
| 14 | 14 | "category": "embed", |
| 15 | - "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>", | |
| 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 | 16 | "supports": { |
| 17 | 17 | "defaultStylePicker": false, |
| 18 | - "html": false | |
| 18 | + "html": false, | |
| 19 | + "align": [ | |
| 20 | + "wide", | |
| 21 | + "full" | |
| 22 | + ] | |
| 19 | 23 | }, |
| 20 | 24 | "attributes": { |
| 21 | 25 | "align": { |
| 22 | 26 | "type": "string" |
| @@ -47,12 +51,8 @@ | ||
| 47 | 51 | "markerColor": { |
| 48 | 52 | "type": "string", |
| 49 | 53 | "default": "red" |
| 50 | 54 | }, |
| 51 | - "preview": { | |
| 52 | - "type": "boolean", | |
| 53 | - "default": false | |
| 54 | - }, | |
| 55 | 55 | "scrollToZoom": { |
| 56 | 56 | "type": "boolean", |
| 57 | 57 | "default": false |
| 58 | 58 | }, |
| @@ -63,11 +63,7 @@ | ||
| 63 | 63 | "type": "boolean", |
| 64 | 64 | "default": true |
| 65 | 65 | } |
| 66 | 66 | }, |
| 67 | - "example": { | |
| 68 | - "attributes": { | |
| 69 | - "preview": true | |
| 70 | - } | |
| 71 | - }, | |
| 67 | + "example": {}, | |
| 72 | 68 | "editorScript": "jetpack-blocks-editor" |
| 73 | 69 | } |