| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/faq-search", |
| 5 |
"title": "FAQ with Search", |
| 6 |
"category": "bkbg-business", |
| 7 |
"icon": "search", |
| 8 |
"description": "Accordion FAQ with a live client-side search filter above the items.", |
| 9 |
"textdomain": "blockenberg", |
| 10 |
"editorScript": "bkbg-faq-search-editor", |
| 11 |
"style": "bkbg-faq-search-style", |
| 12 |
"viewScript": "bkbg-faq-search-frontend", |
| 13 |
"attributes": { |
| 14 |
"items": { |
| 15 |
"type": "array", |
| 16 |
"default": [ |
| 17 |
{ |
| 18 |
"question": "What is your return policy?", |
| 19 |
"answer": "We offer a 30-day money-back guarantee on all purchases." |
| 20 |
}, |
| 21 |
{ |
| 22 |
"question": "How does shipping work?", |
| 23 |
"answer": "Orders ship within 1-2 business days and arrive in 3-7 days depending on location." |
| 24 |
}, |
| 25 |
{ |
| 26 |
"question": "Can I cancel my subscription?", |
| 27 |
"answer": "Yes, you can cancel anytime from your account dashboard with no cancellation fees." |
| 28 |
}, |
| 29 |
{ |
| 30 |
"question": "Do you offer customer support?", |
| 31 |
"answer": "Our support team is available 24/7 via chat and email." |
| 32 |
} |
| 33 |
] |
| 34 |
}, |
| 35 |
"searchPlaceholder": { |
| 36 |
"type": "string", |
| 37 |
"default": "Search FAQs…" |
| 38 |
}, |
| 39 |
"showSearch": { |
| 40 |
"type": "boolean", |
| 41 |
"default": true |
| 42 |
}, |
| 43 |
"noResultsText": { |
| 44 |
"type": "string", |
| 45 |
"default": "No FAQs match your search." |
| 46 |
}, |
| 47 |
"openFirst": { |
| 48 |
"type": "boolean", |
| 49 |
"default": false |
| 50 |
}, |
| 51 |
"allowMultiple": { |
| 52 |
"type": "boolean", |
| 53 |
"default": false |
| 54 |
}, |
| 55 |
"itemStyle": { |
| 56 |
"type": "string", |
| 57 |
"default": "bordered" |
| 58 |
}, |
| 59 |
"questionColor": { |
| 60 |
"type": "string", |
| 61 |
"default": "#111827" |
| 62 |
}, |
| 63 |
"answerColor": { |
| 64 |
"type": "string", |
| 65 |
"default": "#4b5563" |
| 66 |
}, |
| 67 |
"borderColor": { |
| 68 |
"type": "string", |
| 69 |
"default": "#e5e7eb" |
| 70 |
}, |
| 71 |
"accentColor": { |
| 72 |
"type": "string", |
| 73 |
"default": "#7c3aed" |
| 74 |
}, |
| 75 |
"bgColor": { |
| 76 |
"type": "string", |
| 77 |
"default": "" |
| 78 |
}, |
| 79 |
"itemBg": { |
| 80 |
"type": "string", |
| 81 |
"default": "#ffffff" |
| 82 |
}, |
| 83 |
"searchBg": { |
| 84 |
"type": "string", |
| 85 |
"default": "#ffffff" |
| 86 |
}, |
| 87 |
"searchBorderColor": { |
| 88 |
"type": "string", |
| 89 |
"default": "#d1d5db" |
| 90 |
}, |
| 91 |
"questionSize": { |
| 92 |
"type": "number", |
| 93 |
"default": 17 |
| 94 |
}, |
| 95 |
"answerSize": { |
| 96 |
"type": "number", |
| 97 |
"default": 15 |
| 98 |
}, |
| 99 |
"typoQuestion": { |
| 100 |
"type": "object", |
| 101 |
"default": {} |
| 102 |
}, |
| 103 |
"typoAnswer": { |
| 104 |
"type": "object", |
| 105 |
"default": {} |
| 106 |
}, |
| 107 |
"borderRadius": { |
| 108 |
"type": "number", |
| 109 |
"default": 10 |
| 110 |
}, |
| 111 |
"maxWidth": { |
| 112 |
"type": "number", |
| 113 |
"default": 800 |
| 114 |
}, |
| 115 |
"paddingTop": { |
| 116 |
"type": "number", |
| 117 |
"default": 48 |
| 118 |
}, |
| 119 |
"paddingBottom": { |
| 120 |
"type": "number", |
| 121 |
"default": 48 |
| 122 |
} |
| 123 |
}, |
| 124 |
"supports": { |
| 125 |
"html": false, |
| 126 |
"align": [ |
| 127 |
"wide", |
| 128 |
"full" |
| 129 |
] |
| 130 |
} |
| 131 |
} |
| 132 |
|