| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/faq-categories", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "FAQ Categories", |
| 7 |
"category": "bkbg-business", |
| 8 |
"icon": "editor-help", |
| 9 |
"description": "Categorized FAQ with a sidebar (or top tab bar) category navigator and an accordion for each category. Ideal for comprehensive help centers and support pages.", |
| 10 |
"keywords": [ |
| 11 |
"faq", |
| 12 |
"accordion", |
| 13 |
"categories", |
| 14 |
"filter", |
| 15 |
"help", |
| 16 |
"support", |
| 17 |
"questions" |
| 18 |
], |
| 19 |
"textdomain": "blockenberg", |
| 20 |
"editorScript": "bkbg-faq-categories-editor", |
| 21 |
"style": "bkbg-faq-categories-style", |
| 22 |
"viewScript": "bkbg-faq-categories-frontend", |
| 23 |
"attributes": { |
| 24 |
"categories": { |
| 25 |
"type": "array", |
| 26 |
"default": [ |
| 27 |
{ |
| 28 |
"id": "cat1", |
| 29 |
"icon": "💳", |
| 30 |
"label": "Billing & Pricing", |
| 31 |
"iconPickerType": "custom-char", |
| 32 |
"iconDashicon": "", |
| 33 |
"iconImageUrl": "", |
| 34 |
"items": [ |
| 35 |
{ |
| 36 |
"id": "q1", |
| 37 |
"question": "How does billing work?", |
| 38 |
"answer": "We bill monthly or annually depending on your chosen plan. You can upgrade, downgrade, or cancel at any time from your account settings." |
| 39 |
}, |
| 40 |
{ |
| 41 |
"id": "q2", |
| 42 |
"question": "Can I cancel at any time?", |
| 43 |
"answer": "Yes, absolutely. There are no long-term contracts. Cancel from your dashboard and your account stays active until the end of the billing period." |
| 44 |
} |
| 45 |
] |
| 46 |
}, |
| 47 |
{ |
| 48 |
"id": "cat2", |
| 49 |
"icon": "⚙️", |
| 50 |
"label": "Getting Started", |
| 51 |
"iconPickerType": "custom-char", |
| 52 |
"iconDashicon": "", |
| 53 |
"iconImageUrl": "", |
| 54 |
"items": [ |
| 55 |
{ |
| 56 |
"id": "q3", |
| 57 |
"question": "How do I create my first project?", |
| 58 |
"answer": "After signing up, click \"New Project\" on your dashboard, enter a name and description, and you're ready to invite team members and start adding tasks." |
| 59 |
}, |
| 60 |
{ |
| 61 |
"id": "q4", |
| 62 |
"question": "Is there a free trial?", |
| 63 |
"answer": "Yes! All new accounts start with a 14-day free trial of our Pro plan. No credit card required. You'll be notified before the trial ends." |
| 64 |
} |
| 65 |
] |
| 66 |
}, |
| 67 |
{ |
| 68 |
"id": "cat3", |
| 69 |
"icon": "🔒", |
| 70 |
"label": "Security & Privacy", |
| 71 |
"iconPickerType": "custom-char", |
| 72 |
"iconDashicon": "", |
| 73 |
"iconImageUrl": "", |
| 74 |
"items": [ |
| 75 |
{ |
| 76 |
"id": "q5", |
| 77 |
"question": "How is my data protected?", |
| 78 |
"answer": "All data is encrypted at rest (AES-256) and in transit (TLS 1.3). We are SOC 2 Type II certified and conduct regular third-party security audits." |
| 79 |
} |
| 80 |
] |
| 81 |
} |
| 82 |
], |
| 83 |
"items": { |
| 84 |
"type": "object" |
| 85 |
} |
| 86 |
}, |
| 87 |
"navStyle": { |
| 88 |
"type": "string", |
| 89 |
"default": "sidebar" |
| 90 |
}, |
| 91 |
"navPosition": { |
| 92 |
"type": "string", |
| 93 |
"default": "left" |
| 94 |
}, |
| 95 |
"expandFirst": { |
| 96 |
"type": "boolean", |
| 97 |
"default": true |
| 98 |
}, |
| 99 |
"allowMultiple": { |
| 100 |
"type": "boolean", |
| 101 |
"default": false |
| 102 |
}, |
| 103 |
"iconType": { |
| 104 |
"type": "string", |
| 105 |
"default": "plus" |
| 106 |
}, |
| 107 |
"showCatIcon": { |
| 108 |
"type": "boolean", |
| 109 |
"default": true |
| 110 |
}, |
| 111 |
"showCatCount": { |
| 112 |
"type": "boolean", |
| 113 |
"default": true |
| 114 |
}, |
| 115 |
"showSearch": { |
| 116 |
"type": "boolean", |
| 117 |
"default": false |
| 118 |
}, |
| 119 |
"searchPlaceholder": { |
| 120 |
"type": "string", |
| 121 |
"default": "Search questions…" |
| 122 |
}, |
| 123 |
"navWidth": { |
| 124 |
"type": "number", |
| 125 |
"default": 240 |
| 126 |
}, |
| 127 |
"questionPadding": { |
| 128 |
"type": "number", |
| 129 |
"default": 18 |
| 130 |
}, |
| 131 |
"answerPadding": { |
| 132 |
"type": "number", |
| 133 |
"default": 18 |
| 134 |
}, |
| 135 |
"itemRadius": { |
| 136 |
"type": "number", |
| 137 |
"default": 10 |
| 138 |
}, |
| 139 |
"itemGap": { |
| 140 |
"type": "number", |
| 141 |
"default": 10 |
| 142 |
}, |
| 143 |
"navRadius": { |
| 144 |
"type": "number", |
| 145 |
"default": 10 |
| 146 |
}, |
| 147 |
"questionSize": { |
| 148 |
"type": "number", |
| 149 |
"default": 16 |
| 150 |
}, |
| 151 |
"answerSize": { |
| 152 |
"type": "number", |
| 153 |
"default": 14 |
| 154 |
}, |
| 155 |
"navLabelSize": { |
| 156 |
"type": "number", |
| 157 |
"default": 14 |
| 158 |
}, |
| 159 |
"typoNavLabel": { |
| 160 |
"type": "object", |
| 161 |
"default": {} |
| 162 |
}, |
| 163 |
"typoQuestion": { |
| 164 |
"type": "object", |
| 165 |
"default": {} |
| 166 |
}, |
| 167 |
"typoAnswer": { |
| 168 |
"type": "object", |
| 169 |
"default": {} |
| 170 |
}, |
| 171 |
"accentColor": { |
| 172 |
"type": "string", |
| 173 |
"default": "#6c3fb5" |
| 174 |
}, |
| 175 |
"navActiveBg": { |
| 176 |
"type": "string", |
| 177 |
"default": "#ede9f7" |
| 178 |
}, |
| 179 |
"navActiveColor": { |
| 180 |
"type": "string", |
| 181 |
"default": "#6c3fb5" |
| 182 |
}, |
| 183 |
"navInactiveColor": { |
| 184 |
"type": "string", |
| 185 |
"default": "#6b7280" |
| 186 |
}, |
| 187 |
"navBg": { |
| 188 |
"type": "string", |
| 189 |
"default": "#f9fafb" |
| 190 |
}, |
| 191 |
"questionColor": { |
| 192 |
"type": "string", |
| 193 |
"default": "#111827" |
| 194 |
}, |
| 195 |
"answerColor": { |
| 196 |
"type": "string", |
| 197 |
"default": "#4b5563" |
| 198 |
}, |
| 199 |
"itemBg": { |
| 200 |
"type": "string", |
| 201 |
"default": "#ffffff" |
| 202 |
}, |
| 203 |
"itemBorderColor": { |
| 204 |
"type": "string", |
| 205 |
"default": "#e5e7eb" |
| 206 |
}, |
| 207 |
"iconColor": { |
| 208 |
"type": "string", |
| 209 |
"default": "#6c3fb5" |
| 210 |
}, |
| 211 |
"bgColor": { |
| 212 |
"type": "string", |
| 213 |
"default": "" |
| 214 |
}, |
| 215 |
"paddingTop": { |
| 216 |
"type": "number", |
| 217 |
"default": 60 |
| 218 |
}, |
| 219 |
"paddingBottom": { |
| 220 |
"type": "number", |
| 221 |
"default": 60 |
| 222 |
} |
| 223 |
}, |
| 224 |
"supports": { |
| 225 |
"html": false, |
| 226 |
"anchor": true, |
| 227 |
"className": true, |
| 228 |
"align": [ |
| 229 |
"wide", |
| 230 |
"full" |
| 231 |
], |
| 232 |
"spacing": { |
| 233 |
"margin": true, |
| 234 |
"padding": true |
| 235 |
} |
| 236 |
} |
| 237 |
} |
| 238 |
|