| @@ -1,0 +1,93 @@ | ||
| 1 | +{ | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "jetpack/goodreads", | |
| 5 | + "title": "Goodreads", | |
| 6 | + "description": "Features books from the shelves of your Goodreads account.", | |
| 7 | + "keywords": [ | |
| 8 | + "book", | |
| 9 | + "read", | |
| 10 | + "author" | |
| 11 | + ], | |
| 12 | + "version": "1.0", | |
| 13 | + "textdomain": "jetpack", | |
| 14 | + "category": "embed", | |
| 15 | + "icon": "<svg height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg' aria-hidden='true' focusable='false'><path d='M19.525 15.977V.49h-2.059v2.906h-.064c-.211-.455-.481-.891-.842-1.307-.36-.412-.767-.777-1.232-1.094-.466-.314-.962-.561-1.519-.736C13.256.09 12.669 0 12.038 0c-1.21 0-2.3.225-3.246.67-.947.447-1.743 1.057-2.385 1.83-.642.773-1.133 1.676-1.47 2.711-.336 1.037-.506 2.129-.506 3.283 0 1.199.141 2.326.425 3.382.286 1.057.737 1.976 1.368 2.762.631.78 1.412 1.397 2.375 1.833.961.436 2.119.661 3.471.661 1.248 0 2.33-.315 3.262-.946s1.638-1.473 2.119-2.525h.061v2.284c0 2.044-.421 3.607-1.264 4.705-.84 1.081-2.224 1.638-4.146 1.638-.572 0-1.128-.061-1.669-.181-.542-.12-1.036-.315-1.487-.57-.437-.271-.827-.601-1.143-1.038-.316-.435-.526-.961-.632-1.593H5.064c.067.887.315 1.654.737 2.3.424.646.961 1.172 1.602 1.593.641.406 1.367.706 2.172.902.811.194 1.639.3 2.494.3 1.383 0 2.541-.195 3.486-.555.947-.376 1.714-.902 2.301-1.608.601-.708 1.021-1.549 1.293-2.556.27-1.007.42-2.134.42-3.367l-.044.062zm-7.484-.557c-.955 0-1.784-.189-2.479-.571-.697-.38-1.277-.882-1.732-1.503-.467-.621-.797-1.332-1.022-2.139s-.332-1.633-.332-2.484c0-.871.105-1.725.301-2.563.21-.84.54-1.587.992-2.24.451-.652 1.037-1.182 1.728-1.584s1.533-.605 2.51-.605 1.803.209 2.495.621c.676.415 1.247.959 1.683 1.634.436.677.751 1.429.947 2.255.195.826.285 1.656.285 2.482 0 .852-.12 1.678-.345 2.484-.226.807-.572 1.518-1.038 2.139-.465.621-1.021 1.123-1.698 1.503-.676.382-1.458.571-2.359.571h.064z'></path></svg>", | |
| 16 | + "supports": { | |
| 17 | + "html": false, | |
| 18 | + "align": true | |
| 19 | + }, | |
| 20 | + "attributes": { | |
| 21 | + "bookNumber": { | |
| 22 | + "type": "string", | |
| 23 | + "default": "5" | |
| 24 | + }, | |
| 25 | + "class": { | |
| 26 | + "type": "string" | |
| 27 | + }, | |
| 28 | + "customTitle": { | |
| 29 | + "type": "string" | |
| 30 | + }, | |
| 31 | + "goodreadsId": { | |
| 32 | + "type": "number" | |
| 33 | + }, | |
| 34 | + "id": { | |
| 35 | + "type": "string" | |
| 36 | + }, | |
| 37 | + "link": { | |
| 38 | + "type": "string" | |
| 39 | + }, | |
| 40 | + "orderOption": { | |
| 41 | + "type": "string", | |
| 42 | + "default": "d" | |
| 43 | + }, | |
| 44 | + "shelfOption": { | |
| 45 | + "type": "string", | |
| 46 | + "default": "read" | |
| 47 | + }, | |
| 48 | + "showAuthor": { | |
| 49 | + "type": "boolean", | |
| 50 | + "default": true | |
| 51 | + }, | |
| 52 | + "showCover": { | |
| 53 | + "type": "boolean", | |
| 54 | + "default": true | |
| 55 | + }, | |
| 56 | + "showRating": { | |
| 57 | + "type": "boolean", | |
| 58 | + "default": true | |
| 59 | + }, | |
| 60 | + "showReview": { | |
| 61 | + "type": "boolean", | |
| 62 | + "default": false | |
| 63 | + }, | |
| 64 | + "showTags": { | |
| 65 | + "type": "boolean", | |
| 66 | + "default": false | |
| 67 | + }, | |
| 68 | + "showTitle": { | |
| 69 | + "type": "boolean", | |
| 70 | + "default": true | |
| 71 | + }, | |
| 72 | + "sortOption": { | |
| 73 | + "type": "string", | |
| 74 | + "default": "date_added" | |
| 75 | + }, | |
| 76 | + "style": { | |
| 77 | + "type": "string", | |
| 78 | + "default": "default" | |
| 79 | + }, | |
| 80 | + "userInput": { | |
| 81 | + "type": "string" | |
| 82 | + }, | |
| 83 | + "widgetId": { | |
| 84 | + "type": "number" | |
| 85 | + } | |
| 86 | + }, | |
| 87 | + "example": { | |
| 88 | + "attributes": { | |
| 89 | + "goodreadsId": 1176283 | |
| 90 | + } | |
| 91 | + }, | |
| 92 | + "editorScript": "jetpack-blocks-editor" | |
| 93 | +} | |