-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblock.json
75 lines (75 loc) · 1.77 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
75
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "mamaduka/bookmark-card",
"title": "Bookmark Card",
"category": "embed",
"icon": "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black' viewBox='0 0 24 24'><path d='M0 0h24v24H0z' fill='none'/><path d='M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z'/></svg>",
"description": "Turn any URL into a beautiful preview card.",
"keywords": [ "bookmark", "card" ],
"textdomain": "bookmark-card",
"attributes": {
"url": {
"type": "string",
"default": ""
},
"title": {
"type": "string",
"source": "text",
"selector": ".bookmark-card__title",
"default": ""
},
"description": {
"type": "string",
"source": "text",
"selector": ".bookmark-card__description",
"default": ""
},
"image": {
"type": "string",
"source": "attribute",
"selector": ".bookmark-card__image img",
"attribute": "src",
"default": ""
},
"icon": {
"type": "string",
"source": "attribute",
"selector": ".bookmark_card__meta-icon",
"attribute": "src",
"default": ""
},
"publisher": {
"type": "string",
"source": "text",
"selector": ".bookmark_card__meta-publisher",
"default": ""
},
"mediaPosition": {
"type": "string",
"default": "right"
},
"linkTarget": {
"type": "string"
},
"rel": {
"type": "string",
"source": "attribute",
"selector": "figure > a",
"attribute": "rel"
}
},
"supports": {
"html": false,
"reusable": false,
"__experimentalBorder": {
"radius": true,
"__experimentalDefaultControls": {
"radius": true
}
}
},
"editorScript": "file:./build/index.js",
"editorStyle": "file:./build/index.css",
"style": "file:./build/style-index.css"
}