| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/tag-cloud", |
| 5 |
"title": "Tag Cloud", |
| 6 |
"category": "bkbg-blog", |
| 7 |
"icon": "tag", |
| 8 |
"description": "A styled, interactive tag cloud with custom tags or live WordPress tags.", |
| 9 |
"keywords": [ |
| 10 |
"tag", |
| 11 |
"cloud", |
| 12 |
"tags", |
| 13 |
"labels", |
| 14 |
"taxonomy" |
| 15 |
], |
| 16 |
"textdomain": "blockenberg", |
| 17 |
"editorScript": "bkbg-tag-cloud-editor", |
| 18 |
"style": "bkbg-tag-cloud-style", |
| 19 |
"viewScript": "bkbg-tag-cloud-frontend", |
| 20 |
"attributes": { |
| 21 |
"sourceType": { |
| 22 |
"type": "string", |
| 23 |
"default": "custom" |
| 24 |
}, |
| 25 |
"tags": { |
| 26 |
"type": "array", |
| 27 |
"default": [ |
| 28 |
{ |
| 29 |
"label": "Design", |
| 30 |
"url": "#", |
| 31 |
"weight": 5 |
| 32 |
}, |
| 33 |
{ |
| 34 |
"label": "Development", |
| 35 |
"url": "#", |
| 36 |
"weight": 4 |
| 37 |
}, |
| 38 |
{ |
| 39 |
"label": "WordPress", |
| 40 |
"url": "#", |
| 41 |
"weight": 3 |
| 42 |
}, |
| 43 |
{ |
| 44 |
"label": "Gutenberg", |
| 45 |
"url": "#", |
| 46 |
"weight": 2 |
| 47 |
}, |
| 48 |
{ |
| 49 |
"label": "Blocks", |
| 50 |
"url": "#", |
| 51 |
"weight": 1 |
| 52 |
} |
| 53 |
] |
| 54 |
}, |
| 55 |
"maxTags": { |
| 56 |
"type": "number", |
| 57 |
"default": 20 |
| 58 |
}, |
| 59 |
"showCount": { |
| 60 |
"type": "boolean", |
| 61 |
"default": false |
| 62 |
}, |
| 63 |
"tagStyle": { |
| 64 |
"type": "string", |
| 65 |
"default": "rounded" |
| 66 |
}, |
| 67 |
"colorMode": { |
| 68 |
"type": "string", |
| 69 |
"default": "single" |
| 70 |
}, |
| 71 |
"primaryColor": { |
| 72 |
"type": "string", |
| 73 |
"default": "#6c3fb5" |
| 74 |
}, |
| 75 |
"secondaryColor": { |
| 76 |
"type": "string", |
| 77 |
"default": "#a855f7" |
| 78 |
}, |
| 79 |
"multiColors": { |
| 80 |
"type": "string", |
| 81 |
"default": "#6c3fb5,#a855f7,#3b82f6,#10b981,#f59e0b,#ef4444" |
| 82 |
}, |
| 83 |
"textColor": { |
| 84 |
"type": "string", |
| 85 |
"default": "#ffffff" |
| 86 |
}, |
| 87 |
"hoverBg": { |
| 88 |
"type": "string", |
| 89 |
"default": "#5a2fa0" |
| 90 |
}, |
| 91 |
"hoverTextColor": { |
| 92 |
"type": "string", |
| 93 |
"default": "#ffffff" |
| 94 |
}, |
| 95 |
"fontSizeMin": { |
| 96 |
"type": "number", |
| 97 |
"default": 13 |
| 98 |
}, |
| 99 |
"fontSizeMax": { |
| 100 |
"type": "number", |
| 101 |
"default": 22 |
| 102 |
}, |
| 103 |
"tagTypo": { |
| 104 |
"type": "object", |
| 105 |
"default": {} |
| 106 |
}, |
| 107 |
"gap": { |
| 108 |
"type": "number", |
| 109 |
"default": 8 |
| 110 |
}, |
| 111 |
"paddingX": { |
| 112 |
"type": "number", |
| 113 |
"default": 14 |
| 114 |
}, |
| 115 |
"paddingY": { |
| 116 |
"type": "number", |
| 117 |
"default": 7 |
| 118 |
}, |
| 119 |
"borderRadius": { |
| 120 |
"type": "number", |
| 121 |
"default": 6 |
| 122 |
}, |
| 123 |
"borderWidth": { |
| 124 |
"type": "number", |
| 125 |
"default": 1 |
| 126 |
}, |
| 127 |
"borderColor": { |
| 128 |
"type": "string", |
| 129 |
"default": "#6c3fb5" |
| 130 |
}, |
| 131 |
"sortBy": { |
| 132 |
"type": "string", |
| 133 |
"default": "input" |
| 134 |
}, |
| 135 |
"randomize": { |
| 136 |
"type": "boolean", |
| 137 |
"default": false |
| 138 |
}, |
| 139 |
"textAlign": { |
| 140 |
"type": "string", |
| 141 |
"default": "center" |
| 142 |
}, |
| 143 |
"animateHover": { |
| 144 |
"type": "boolean", |
| 145 |
"default": true |
| 146 |
} |
| 147 |
}, |
| 148 |
"supports": { |
| 149 |
"html": false, |
| 150 |
"align": [ |
| 151 |
"wide", |
| 152 |
"full" |
| 153 |
] |
| 154 |
} |
| 155 |
} |
| 156 |
|