PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.11
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.11
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / quiz / block.json

block.json in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.11, at blocks/quiz/block.json

349 lines 10.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "blockenberg/quiz",
5 "title": "Scored Quiz",
6 "category": "bkbg-interactive",
7 "description": "Multi-question scored quiz with points-based result ranges. Shows personalised outcome based on total score. Includes progress bar and retake button.",
8 "textdomain": "blockenberg",
9 "editorScript": "bkbg-quiz-editor",
10 "style": "bkbg-quiz-style",
11 "viewScript": "bkbg-quiz-frontend",
12 "supports": {
13 "html": false,
14 "anchor": true,
15 "className": true,
16 "align": [
17 "wide",
18 "full"
19 ]
20 },
21 "attributes": {
22 "quizTitle": {
23 "type": "string",
24 "default": "What's Your Productivity Style?"
25 },
26 "quizDescription": {
27 "type": "string",
28 "default": "Answer 3 quick questions to discover which work style fits you best."
29 },
30 "showTitle": {
31 "type": "boolean",
32 "default": true
33 },
34 "showDescription": {
35 "type": "boolean",
36 "default": true
37 },
38 "questions": {
39 "type": "array",
40 "default": [
41 {
42 "id": "q1",
43 "question": "How do you prefer to organise your day?",
44 "options": [
45 {
46 "id": "q1o1",
47 "text": "Strict timed blocks — every hour is scheduled",
48 "points": 3
49 },
50 {
51 "id": "q1o2",
52 "text": "A prioritised to-do list I work through flexibly",
53 "points": 2
54 },
55 {
56 "id": "q1o3",
57 "text": "I react to what comes up as the day unfolds",
58 "points": 1
59 },
60 {
61 "id": "q1o4",
62 "text": "I have a general direction but no set plan",
63 "points": 0
64 }
65 ]
66 },
67 {
68 "id": "q2",
69 "question": "When distractions hit, you usually…",
70 "options": [
71 {
72 "id": "q2o1",
73 "text": "Block notifications and return to deep focus fast",
74 "points": 3
75 },
76 {
77 "id": "q2o2",
78 "text": "Finish the distraction then get back on track",
79 "points": 2
80 },
81 {
82 "id": "q2o3",
83 "text": "Find it hard to return with the same momentum",
84 "points": 1
85 },
86 {
87 "id": "q2o4",
88 "text": "Rarely recover focus the same day",
89 "points": 0
90 }
91 ]
92 },
93 {
94 "id": "q3",
95 "question": "How do you feel about planning tomorrow the night before?",
96 "options": [
97 {
98 "id": "q3o1",
99 "text": "I always do it — it's non-negotiable",
100 "points": 3
101 },
102 {
103 "id": "q3o2",
104 "text": "Usually yes, if I remember",
105 "points": 2
106 },
107 {
108 "id": "q3o3",
109 "text": "Sometimes, but I often skip it",
110 "points": 1
111 },
112 {
113 "id": "q3o4",
114 "text": "Rarely — I prefer to improvise",
115 "points": 0
116 }
117 ]
118 }
119 ],
120 "items": {
121 "type": "object"
122 }
123 },
124 "resultRanges": {
125 "type": "array",
126 "default": [
127 {
128 "id": "r1",
129 "minScore": 0,
130 "maxScore": 3,
131 "icon": "🌱",
132 "iconType": "custom-char",
133 "iconDashicon": "",
134 "iconImageUrl": "",
135 "title": "The Free-Spirited Explorer",
136 "description": "You prefer spontaneity over structure. Embracing a few simple habits could unlock a big jump in your output without sacrificing your flexibility.",
137 "imageUrl": "",
138 "imageId": 0
139 },
140 {
141 "id": "r2",
142 "minScore": 4,
143 "maxScore": 6,
144 "icon": "",
145 "iconType": "custom-char",
146 "iconDashicon": "",
147 "iconImageUrl": "",
148 "title": "The Balanced Achiever",
149 "description": "You mix structure with adaptability well. Fine-tuning your focus rituals and planning consistency could push you from good to exceptional.",
150 "imageUrl": "",
151 "imageId": 0
152 },
153 {
154 "id": "r3",
155 "minScore": 7,
156 "maxScore": 9,
157 "icon": "🏆",
158 "iconType": "custom-char",
159 "iconDashicon": "",
160 "iconImageUrl": "",
161 "title": "The Power Planner",
162 "description": "You're a productivity powerhouse! Your systems are strong — focus now on protecting energy and avoiding burnout while scaling what works.",
163 "imageUrl": "",
164 "imageId": 0
165 }
166 ],
167 "items": {
168 "type": "object"
169 }
170 },
171 "progressStyle": {
172 "type": "string",
173 "default": "bar"
174 },
175 "showProgress": {
176 "type": "boolean",
177 "default": true
178 },
179 "oneAtATime": {
180 "type": "boolean",
181 "default": true
182 },
183 "randomize": {
184 "type": "boolean",
185 "default": false
186 },
187 "submitLabel": {
188 "type": "string",
189 "default": "See My Results"
190 },
191 "retakeLabel": {
192 "type": "string",
193 "default": "Retake Quiz"
194 },
195 "showRetake": {
196 "type": "boolean",
197 "default": true
198 },
199 "resultHeading": {
200 "type": "string",
201 "default": "Your Result"
202 },
203 "formMaxWidth": {
204 "type": "integer",
205 "default": 640
206 },
207 "cardRadius": {
208 "type": "integer",
209 "default": 20
210 },
211 "cardPadding": {
212 "type": "integer",
213 "default": 40
214 },
215 "optionRadius": {
216 "type": "integer",
217 "default": 10
218 },
219 "optionPadding": {
220 "type": "integer",
221 "default": 16
222 },
223 "btnRadius": {
224 "type": "integer",
225 "default": 10
226 },
227 "titleTypo": {
228 "type": "object",
229 "default": {}
230 },
231 "descTypo": {
232 "type": "object",
233 "default": {}
234 },
235 "questionTypo": {
236 "type": "object",
237 "default": {}
238 },
239 "optionTypo": {
240 "type": "object",
241 "default": {}
242 },
243 "resTitleTypo": {
244 "type": "object",
245 "default": {}
246 },
247 "resDescTypo": {
248 "type": "object",
249 "default": {}
250 },
251 "accentColor": {
252 "type": "string",
253 "default": "#6c3fb5"
254 },
255 "selectedBg": {
256 "type": "string",
257 "default": "#ede9f7"
258 },
259 "selectedColor": {
260 "type": "string",
261 "default": "#6c3fb5"
262 },
263 "selectedBorder": {
264 "type": "string",
265 "default": "#6c3fb5"
266 },
267 "optionBg": {
268 "type": "string",
269 "default": "#f9fafb"
270 },
271 "optionBorder": {
272 "type": "string",
273 "default": "#e5e7eb"
274 },
275 "optionText": {
276 "type": "string",
277 "default": "#374151"
278 },
279 "btnBg": {
280 "type": "string",
281 "default": "#6c3fb5"
282 },
283 "btnColor": {
284 "type": "string",
285 "default": "#ffffff"
286 },
287 "retakeBg": {
288 "type": "string",
289 "default": "#f3f4f6"
290 },
291 "retakeColor": {
292 "type": "string",
293 "default": "#374151"
294 },
295 "progressFill": {
296 "type": "string",
297 "default": "#6c3fb5"
298 },
299 "progressTrack": {
300 "type": "string",
301 "default": "#e5e7eb"
302 },
303 "cardBg": {
304 "type": "string",
305 "default": "#ffffff"
306 },
307 "cardBorder": {
308 "type": "string",
309 "default": "#e5e7eb"
310 },
311 "resultCardBg": {
312 "type": "string",
313 "default": "#f9fafb"
314 },
315 "resultIconSize": {
316 "type": "integer",
317 "default": 48
318 },
319 "titleColor": {
320 "type": "string",
321 "default": "#111827"
322 },
323 "questionColor": {
324 "type": "string",
325 "default": "#1f2937"
326 },
327 "resultTitleColor": {
328 "type": "string",
329 "default": "#111827"
330 },
331 "resultDescColor": {
332 "type": "string",
333 "default": "#6b7280"
334 },
335 "bgColor": {
336 "type": "string",
337 "default": ""
338 },
339 "paddingTop": {
340 "type": "integer",
341 "default": 64
342 },
343 "paddingBottom": {
344 "type": "integer",
345 "default": 64
346 }
347 }
348 }
349