| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/faq-chat", |
| 5 |
"title": "FAQ Chat", |
| 6 |
"category": "bkbg-business", |
| 7 |
"description": "Chat-bubble style FAQ. Visitors click questions to reveal bot-style answers with a typing indicator — a conversational alternative to accordion FAQ.", |
| 8 |
"keywords": [ |
| 9 |
"faq", |
| 10 |
"chat", |
| 11 |
"question", |
| 12 |
"answer", |
| 13 |
"chatbot", |
| 14 |
"support", |
| 15 |
"help", |
| 16 |
"bubble", |
| 17 |
"conversational" |
| 18 |
], |
| 19 |
"textdomain": "blockenberg", |
| 20 |
"editorScript": "bkbg-faq-chat-editor", |
| 21 |
"editorStyle": "bkbg-faq-chat-style", |
| 22 |
"style": "bkbg-faq-chat-style", |
| 23 |
"viewScript": "bkbg-faq-chat-frontend", |
| 24 |
"supports": { |
| 25 |
"html": false, |
| 26 |
"anchor": true, |
| 27 |
"className": true, |
| 28 |
"align": [ |
| 29 |
"wide" |
| 30 |
] |
| 31 |
}, |
| 32 |
"attributes": { |
| 33 |
"faqs": { |
| 34 |
"type": "array", |
| 35 |
"default": [ |
| 36 |
{ |
| 37 |
"question": "How quickly can I get started?", |
| 38 |
"answer": "You can be up and running in under 5 minutes. Just install, activate, and add your first block — no coding needed." |
| 39 |
}, |
| 40 |
{ |
| 41 |
"question": "Is there a free plan available?", |
| 42 |
"answer": "Yes! Our free plan lets you explore all core features with up to 3 projects. Upgrade anytime to unlock unlimited projects and premium blocks." |
| 43 |
}, |
| 44 |
{ |
| 45 |
"question": "Can I use this with any theme?", |
| 46 |
"answer": "Absolutely. Our blocks work with any WordPress theme that supports the block editor, including popular themes like Astra, GeneratePress, and Kadence." |
| 47 |
}, |
| 48 |
{ |
| 49 |
"question": "What kind of support do you offer?", |
| 50 |
"answer": "All plans include access to our documentation and community forum. Pro and Business plans also include priority email support with a 24-hour response time." |
| 51 |
}, |
| 52 |
{ |
| 53 |
"question": "Can I cancel my subscription anytime?", |
| 54 |
"answer": "Yes, you can cancel at any time from your account dashboard. Your access continues until the end of the current billing period." |
| 55 |
} |
| 56 |
] |
| 57 |
}, |
| 58 |
"botName": { |
| 59 |
"type": "string", |
| 60 |
"default": "Support Bot" |
| 61 |
}, |
| 62 |
"botAvatar": { |
| 63 |
"type": "string", |
| 64 |
"default": "🤖" |
| 65 |
}, |
| 66 |
"avatarBg": { |
| 67 |
"type": "string", |
| 68 |
"default": "#6366f1" |
| 69 |
}, |
| 70 |
"initialMessage": { |
| 71 |
"type": "string", |
| 72 |
"default": "Hi! 👋 I'm here to help. Click any question below to get started." |
| 73 |
}, |
| 74 |
"showTimestamp": { |
| 75 |
"type": "boolean", |
| 76 |
"default": true |
| 77 |
}, |
| 78 |
"typingDelay": { |
| 79 |
"type": "number", |
| 80 |
"default": 700 |
| 81 |
}, |
| 82 |
"chatStyle": { |
| 83 |
"type": "string", |
| 84 |
"default": "rounded" |
| 85 |
}, |
| 86 |
"maxWidth": { |
| 87 |
"type": "number", |
| 88 |
"default": 620 |
| 89 |
}, |
| 90 |
"maxHeight": { |
| 91 |
"type": "number", |
| 92 |
"default": 500 |
| 93 |
}, |
| 94 |
"borderRadius": { |
| 95 |
"type": "number", |
| 96 |
"default": 16 |
| 97 |
}, |
| 98 |
"questionSize": { |
| 99 |
"type": "number", |
| 100 |
"default": 14 |
| 101 |
}, |
| 102 |
"answerSize": { |
| 103 |
"type": "number", |
| 104 |
"default": 14 |
| 105 |
}, |
| 106 |
"typoQuestion": { |
| 107 |
"type": "object", |
| 108 |
"default": {} |
| 109 |
}, |
| 110 |
"typoAnswer": { |
| 111 |
"type": "object", |
| 112 |
"default": {} |
| 113 |
}, |
| 114 |
"headerBg": { |
| 115 |
"type": "string", |
| 116 |
"default": "#6366f1" |
| 117 |
}, |
| 118 |
"headerColor": { |
| 119 |
"type": "string", |
| 120 |
"default": "#ffffff" |
| 121 |
}, |
| 122 |
"chatBg": { |
| 123 |
"type": "string", |
| 124 |
"default": "#f1f5f9" |
| 125 |
}, |
| 126 |
"botBubbleBg": { |
| 127 |
"type": "string", |
| 128 |
"default": "#ffffff" |
| 129 |
}, |
| 130 |
"botBubbleColor": { |
| 131 |
"type": "string", |
| 132 |
"default": "#1f2937" |
| 133 |
}, |
| 134 |
"userBubbleBg": { |
| 135 |
"type": "string", |
| 136 |
"default": "#6366f1" |
| 137 |
}, |
| 138 |
"userBubbleColor": { |
| 139 |
"type": "string", |
| 140 |
"default": "#ffffff" |
| 141 |
}, |
| 142 |
"questionsBg": { |
| 143 |
"type": "string", |
| 144 |
"default": "#ffffff" |
| 145 |
}, |
| 146 |
"btnBg": { |
| 147 |
"type": "string", |
| 148 |
"default": "#f3f4f6" |
| 149 |
}, |
| 150 |
"btnColor": { |
| 151 |
"type": "string", |
| 152 |
"default": "#374151" |
| 153 |
}, |
| 154 |
"btnBorder": { |
| 155 |
"type": "string", |
| 156 |
"default": "#e5e7eb" |
| 157 |
}, |
| 158 |
"btnActiveBg": { |
| 159 |
"type": "string", |
| 160 |
"default": "#e0e7ff" |
| 161 |
}, |
| 162 |
"btnActiveColor": { |
| 163 |
"type": "string", |
| 164 |
"default": "#4338ca" |
| 165 |
}, |
| 166 |
"borderColor": { |
| 167 |
"type": "string", |
| 168 |
"default": "#e5e7eb" |
| 169 |
}, |
| 170 |
"timestampColor": { |
| 171 |
"type": "string", |
| 172 |
"default": "#9ca3af" |
| 173 |
} |
| 174 |
} |
| 175 |
} |
| 176 |
|