| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "top-10/post-count", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Top 10 Post Count", |
| 7 |
"category": "text", |
| 8 |
"description": "Display the number of visits for a post.", |
| 9 |
"attributes": { |
| 10 |
"className": { |
| 11 |
"type": "string", |
| 12 |
"default": "" |
| 13 |
}, |
| 14 |
"textAlign": { |
| 15 |
"type": "string" |
| 16 |
}, |
| 17 |
"counter": { |
| 18 |
"type": "string", |
| 19 |
"default": "total" |
| 20 |
}, |
| 21 |
"fromDate": { |
| 22 |
"type": "string", |
| 23 |
"default": "" |
| 24 |
}, |
| 25 |
"toDate": { |
| 26 |
"type": "string", |
| 27 |
"default": "" |
| 28 |
}, |
| 29 |
"textBefore": { |
| 30 |
"type": "string", |
| 31 |
"default": "" |
| 32 |
}, |
| 33 |
"textAfter": { |
| 34 |
"type": "string", |
| 35 |
"default": "" |
| 36 |
}, |
| 37 |
"advancedMode": { |
| 38 |
"type": "boolean", |
| 39 |
"default": false |
| 40 |
}, |
| 41 |
"textAdvanced": { |
| 42 |
"type": "string", |
| 43 |
"default": "" |
| 44 |
}, |
| 45 |
"numberFormat": { |
| 46 |
"type": "boolean", |
| 47 |
"default": false |
| 48 |
}, |
| 49 |
"svgCode": { |
| 50 |
"type": "string", |
| 51 |
"default": "" |
| 52 |
}, |
| 53 |
"svgIconLocation": { |
| 54 |
"type": "string", |
| 55 |
"default": "before" |
| 56 |
}, |
| 57 |
"svgPaddingValues": { |
| 58 |
"type": "array", |
| 59 |
"default": [ |
| 60 |
0, |
| 61 |
0, |
| 62 |
0, |
| 63 |
0 |
| 64 |
], |
| 65 |
"items": { |
| 66 |
"type": "number" |
| 67 |
} |
| 68 |
}, |
| 69 |
"svgPaddingUnits": { |
| 70 |
"type": "array", |
| 71 |
"default": [ |
| 72 |
"px", |
| 73 |
"px", |
| 74 |
"px", |
| 75 |
"px" |
| 76 |
], |
| 77 |
"items": { |
| 78 |
"type": "string" |
| 79 |
} |
| 80 |
}, |
| 81 |
"svgIconSize": { |
| 82 |
"type": "string", |
| 83 |
"default": "1" |
| 84 |
}, |
| 85 |
"svgIconSizeUnit": { |
| 86 |
"type": "string", |
| 87 |
"default": "em" |
| 88 |
} |
| 89 |
}, |
| 90 |
"usesContext": [ |
| 91 |
"postId", |
| 92 |
"postType", |
| 93 |
"queryId" |
| 94 |
], |
| 95 |
"example": { |
| 96 |
"viewportWidth": 350 |
| 97 |
}, |
| 98 |
"supports": { |
| 99 |
"align": [ |
| 100 |
"wide", |
| 101 |
"full" |
| 102 |
], |
| 103 |
"html": false, |
| 104 |
"color": { |
| 105 |
"gradients": true, |
| 106 |
"link": true, |
| 107 |
"__experimentalDefaultControls": { |
| 108 |
"background": true, |
| 109 |
"text": true, |
| 110 |
"link": true |
| 111 |
} |
| 112 |
}, |
| 113 |
"spacing": { |
| 114 |
"margin": true, |
| 115 |
"padding": true |
| 116 |
}, |
| 117 |
"typography": { |
| 118 |
"fontSize": true, |
| 119 |
"lineHeight": true, |
| 120 |
"__experimentalFontFamily": true, |
| 121 |
"__experimentalFontWeight": true, |
| 122 |
"__experimentalFontStyle": true, |
| 123 |
"__experimentalTextTransform": true, |
| 124 |
"__experimentalTextDecoration": true, |
| 125 |
"__experimentalLetterSpacing": true, |
| 126 |
"__experimentalDefaultControls": { |
| 127 |
"fontSize": true |
| 128 |
} |
| 129 |
}, |
| 130 |
"interactivity": { |
| 131 |
"clientNavigation": true |
| 132 |
} |
| 133 |
}, |
| 134 |
"textdomain": "top-10", |
| 135 |
"render": "file:./render.php", |
| 136 |
"editorScript": "file:./index.js", |
| 137 |
"editorStyle": "file:./index.css", |
| 138 |
"viewStyle": "file:./style-index.css" |
| 139 |
} |