File: /var/www/html/sample/wp-content/plugins/jetpack/_inc/blocks/slideshow/block.json
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "jetpack/slideshow",
"title": "Slideshow",
"description": "Display multiple images in sequential order.",
"keywords": [ "story", "image", "video", "gallery" ],
"version": "12.5.0",
"textdomain": "jetpack",
"category": "media",
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M21 8V19C21 20.1046 20.1057 21 19.0011 21C15.8975 21 9.87435 21 6 21' fill='none' stroke='currentColor' strokeWidth='1.5'/><rect x='3.75' y='3.75' width='13.5' height='13.5' rx='0.875' fill='none' stroke='currentColor' strokeWidth='1.5'/><path d='M9 14L12 11L9 8' fill='none' stroke='currentColor' strokeWidth='1.5' /></svg>",
"supports": {
"html": false,
"align": [ "center", "wide", "full" ]
},
"attributes": {
"align": {
"default": "center",
"type": "string"
},
"autoplay": {
"type": "boolean",
"default": false
},
"delay": {
"type": "number",
"default": 3
},
"ids": {
"default": [],
"type": "array"
},
"images": {
"type": "array",
"default": [],
"source": "query",
"selector": ".swiper-slide",
"query": {
"alt": {
"source": "attribute",
"selector": "img",
"attribute": "alt",
"default": ""
},
"caption": {
"type": "string",
"source": "html",
"selector": "figcaption"
},
"id": {
"source": "attribute",
"selector": "img",
"attribute": "data-id"
},
"url": {
"source": "attribute",
"selector": "img",
"attribute": "src"
}
}
},
"effect": {
"type": "string",
"default": "slide"
},
"sizeSlug": {
"type": "string"
}
},
"example": {
"align": "center",
"autoplay": true,
"ids": [ 22, 23 ],
"images": [
{
"alt": "",
"caption": "",
"id": 22,
"url": "./slideshowExample1.png"
},
{
"alt": "",
"caption": "",
"id": 23,
"url": "./slideshowExample2.png"
},
{
"alt": "",
"caption": "",
"id": 23,
"url": "./slideshowExample3.png"
}
],
"effect": "slide"
},
"editorScript": "file:../editor.js"
}