This repository has been archived by the owner on Dec 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
block.json
74 lines (74 loc) · 1.52 KB
/
block.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"apiVersion": 2,
"name": "gutenberg-bento/carousel",
"title": "Carousel",
"category": "media",
"description": "Display multiple images in a carousel.",
"keywords": [ "images", "photos" ],
"textdomain": "default",
"attributes": {
"images": {
"type": "array",
"default": [],
"source": "query",
"selector": ".gutenberg-bento-carousel-item",
"query": {
"url": {
"type": "string",
"source": "attribute",
"selector": "img",
"attribute": "src"
},
"fullUrl": {
"type": "string",
"source": "attribute",
"selector": "img",
"attribute": "data-full-url"
},
"link": {
"type": "string",
"source": "attribute",
"selector": "img",
"attribute": "data-link"
},
"alt": {
"type": "string",
"source": "attribute",
"selector": "img",
"attribute": "alt",
"default": ""
},
"id": {
"type": "string",
"source": "attribute",
"selector": "img",
"attribute": "data-id"
},
"caption": {
"type": "string",
"source": "html",
"selector": ".gutenberg-bento-carousel-item__caption"
}
}
},
"autoAdvance": {
"type": "boolean",
"default": false
},
"loop": {
"type": "boolean",
"default": false
},
"snap": {
"type": "boolean",
"default": true
}
},
"supports": {
"align": true
},
"viewScript": "gutenberg-bento-carousel-view",
"editorScript": "gutenberg-bento-carousel-edit",
"editorStyle": "gutenberg-bento-carousel-edit",
"style": "gutenberg-bento-carousel"
}