| 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": [0, 0, 0, 0], |
| 60 |
"items": { |
| 61 |
"type": "number" |
| 62 |
} |
| 63 |
}, |
| 64 |
"svgPaddingUnits": { |
| 65 |
"type": "array", |
| 66 |
"default": ["px", "px", "px", "px"], |
| 67 |
"items": { |
| 68 |
"type": "string" |
| 69 |
} |
| 70 |
}, |
| 71 |
"svgIconSize": { |
| 72 |
"type": "string", |
| 73 |
"default": "1" |
| 74 |
}, |
| 75 |
"svgIconSizeUnit": { |
| 76 |
"type": "string", |
| 77 |
"default": "em" |
| 78 |
} |
| 79 |
}, |
| 80 |
"usesContext": ["postId", "postType", "queryId"], |
| 81 |
"example": { |
| 82 |
"viewportWidth": 350 |
| 83 |
}, |
| 84 |
"supports": { |
| 85 |
"align": ["wide", "full"], |
| 86 |
"html": false, |
| 87 |
"color": { |
| 88 |
"gradients": true, |
| 89 |
"link": true, |
| 90 |
"__experimentalDefaultControls": { |
| 91 |
"background": true, |
| 92 |
"text": true, |
| 93 |
"link": true |
| 94 |
} |
| 95 |
}, |
| 96 |
"spacing": { |
| 97 |
"margin": true, |
| 98 |
"padding": true |
| 99 |
}, |
| 100 |
"typography": { |
| 101 |
"fontSize": true, |
| 102 |
"lineHeight": true, |
| 103 |
"__experimentalFontFamily": true, |
| 104 |
"__experimentalFontWeight": true, |
| 105 |
"__experimentalFontStyle": true, |
| 106 |
"__experimentalTextTransform": true, |
| 107 |
"__experimentalTextDecoration": true, |
| 108 |
"__experimentalLetterSpacing": true, |
| 109 |
"__experimentalDefaultControls": { |
| 110 |
"fontSize": true |
| 111 |
} |
| 112 |
}, |
| 113 |
"interactivity": { |
| 114 |
"clientNavigation": true |
| 115 |
} |
| 116 |
}, |
| 117 |
"textdomain": "top-10", |
| 118 |
"editorScript": "file:./index.js", |
| 119 |
"editorStyle": "file:./index.css", |
| 120 |
"viewStyle": "file:./style-index.css" |
| 121 |
} |
| 122 |
|