| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"textdomain": "getwid", |
| 5 |
"name": "getwid/images-stack", |
| 6 |
"description": "Displays an overlapping image gallery.", |
| 7 |
"category": "getwid-blocks", |
| 8 |
"title": "Image Stack Gallery", |
| 9 |
"keywords": [ |
| 10 |
"photo" |
| 11 |
], |
| 12 |
"supports": { |
| 13 |
"html": false, |
| 14 |
"align": [ |
| 15 |
"wide", |
| 16 |
"full" |
| 17 |
] |
| 18 |
}, |
| 19 |
"attributes": { |
| 20 |
"align": { |
| 21 |
"type": "string" |
| 22 |
}, |
| 23 |
"images": { |
| 24 |
"type": "array", |
| 25 |
"default": [], |
| 26 |
"source": "query", |
| 27 |
"selector": ".wp-block-getwid-images-stack .wp-block-getwid-images-stack__media-wrapper", |
| 28 |
"query": { |
| 29 |
"url": { |
| 30 |
"source": "attribute", |
| 31 |
"selector": "img", |
| 32 |
"attribute": "src" |
| 33 |
}, |
| 34 |
"original_url": { |
| 35 |
"source": "attribute", |
| 36 |
"selector": "a", |
| 37 |
"attribute": "href" |
| 38 |
}, |
| 39 |
"link": { |
| 40 |
"source": "attribute", |
| 41 |
"selector": "img", |
| 42 |
"attribute": "data-link" |
| 43 |
}, |
| 44 |
"alt": { |
| 45 |
"source": "attribute", |
| 46 |
"selector": "img", |
| 47 |
"attribute": "alt", |
| 48 |
"default": "" |
| 49 |
}, |
| 50 |
"id": { |
| 51 |
"source": "attribute", |
| 52 |
"selector": "img", |
| 53 |
"attribute": "data-id" |
| 54 |
}, |
| 55 |
"caption": { |
| 56 |
"type": "string", |
| 57 |
"source": "html", |
| 58 |
"selector": "figcaption" |
| 59 |
} |
| 60 |
} |
| 61 |
}, |
| 62 |
"ids": { |
| 63 |
"type": "array", |
| 64 |
"default": [] |
| 65 |
}, |
| 66 |
"imageSize": { |
| 67 |
"type": "string", |
| 68 |
"default": "full" |
| 69 |
}, |
| 70 |
"linkTo": { |
| 71 |
"type": "string", |
| 72 |
"default": "none" |
| 73 |
}, |
| 74 |
"stackStyle": { |
| 75 |
"type": "string", |
| 76 |
"default": "default" |
| 77 |
}, |
| 78 |
"stackOverlap": { |
| 79 |
"type": "string", |
| 80 |
"default": "default" |
| 81 |
} |
| 82 |
}, |
| 83 |
"editorScript": "file:./index.js", |
| 84 |
"editorStyle": "file:./index.css", |
| 85 |
"style": "file:./style-index.css" |
| 86 |
} |