| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 2, |
| 4 |
"name": "elasticpress/facet-meta", |
| 5 |
"title": "Filter by Metadata", |
| 6 |
"category": "elasticpress", |
| 7 |
"description": "Let visitors filter your content by metadata values.", |
| 8 |
"keywords": ["custom fields", "facets"], |
| 9 |
"textdomain": "elasticpress", |
| 10 |
"attributes": { |
| 11 |
"displayCount": { |
| 12 |
"type": "boolean", |
| 13 |
"default": false |
| 14 |
}, |
| 15 |
"facet": { |
| 16 |
"type": "string", |
| 17 |
"default": "" |
| 18 |
}, |
| 19 |
"isPreview": { |
| 20 |
"type": "boolean", |
| 21 |
"default": false |
| 22 |
}, |
| 23 |
"order": { |
| 24 |
"type": "string", |
| 25 |
"default": "desc", |
| 26 |
"enum": [ "desc", "asc" ] |
| 27 |
}, |
| 28 |
"orderby": { |
| 29 |
"type": "string", |
| 30 |
"default": "count", |
| 31 |
"enum": [ "count", "name" ] |
| 32 |
}, |
| 33 |
"searchPlaceholder": { |
| 34 |
"type": "string", |
| 35 |
"default": "Search" |
| 36 |
}, |
| 37 |
"type": { |
| 38 |
"type": "string", |
| 39 |
"default": "meta" |
| 40 |
} |
| 41 |
}, |
| 42 |
"supports": { |
| 43 |
"color": { |
| 44 |
"background": true, |
| 45 |
"link": true, |
| 46 |
"text": false |
| 47 |
}, |
| 48 |
"html": false, |
| 49 |
"position": { |
| 50 |
"sticky": true |
| 51 |
}, |
| 52 |
"spacing": { |
| 53 |
"margin": true, |
| 54 |
"padding": true |
| 55 |
}, |
| 56 |
"typography": { |
| 57 |
"fontSize": true, |
| 58 |
"lineHeight": true |
| 59 |
} |
| 60 |
}, |
| 61 |
"editorScript": "ep-facets-meta-block-script", |
| 62 |
"style": "elasticpress-facets" |
| 63 |
} |
| 64 |
|