@almadar/std 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/behaviors/exports/atoms/std-async.orb +420 -0
  2. package/dist/behaviors/exports/atoms/std-browse.orb +173 -0
  3. package/dist/behaviors/exports/atoms/std-cache-aside.orb +881 -0
  4. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +501 -0
  5. package/dist/behaviors/exports/atoms/std-collision.orb +616 -0
  6. package/dist/behaviors/exports/atoms/std-combat-log.orb +145 -0
  7. package/dist/behaviors/exports/atoms/std-combat.orb +410 -0
  8. package/dist/behaviors/exports/atoms/std-confirmation.orb +282 -0
  9. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +238 -0
  10. package/dist/behaviors/exports/atoms/std-display.orb +842 -0
  11. package/dist/behaviors/exports/atoms/std-drawer.orb +316 -0
  12. package/dist/behaviors/exports/atoms/std-filter.orb +442 -0
  13. package/dist/behaviors/exports/atoms/std-game-audio.orb +113 -0
  14. package/dist/behaviors/exports/atoms/std-game-canvas-2d.orb +135 -0
  15. package/dist/behaviors/exports/atoms/std-game-canvas-3d.orb +224 -0
  16. package/dist/behaviors/exports/atoms/std-game-hud.orb +151 -0
  17. package/dist/behaviors/exports/atoms/std-game-menu.orb +211 -0
  18. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +195 -0
  19. package/dist/behaviors/exports/atoms/std-gameflow.orb +318 -0
  20. package/dist/behaviors/exports/atoms/std-input.orb +629 -0
  21. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +255 -0
  22. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +631 -0
  23. package/dist/behaviors/exports/atoms/std-loading.orb +511 -0
  24. package/dist/behaviors/exports/atoms/std-modal.orb +270 -0
  25. package/dist/behaviors/exports/atoms/std-movement.orb +1037 -0
  26. package/dist/behaviors/exports/atoms/std-notification.orb +418 -0
  27. package/dist/behaviors/exports/atoms/std-overworld.orb +483 -0
  28. package/dist/behaviors/exports/atoms/std-pagination.orb +331 -0
  29. package/dist/behaviors/exports/atoms/std-physics2d.orb +419 -0
  30. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +257 -0
  31. package/dist/behaviors/exports/atoms/std-quest.orb +980 -0
  32. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +638 -0
  33. package/dist/behaviors/exports/atoms/std-score-board.orb +238 -0
  34. package/dist/behaviors/exports/atoms/std-score.orb +466 -0
  35. package/dist/behaviors/exports/atoms/std-search.orb +373 -0
  36. package/dist/behaviors/exports/atoms/std-selection.orb +759 -0
  37. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +183 -0
  38. package/dist/behaviors/exports/atoms/std-sort.orb +578 -0
  39. package/dist/behaviors/exports/atoms/std-sprite.orb +156 -0
  40. package/dist/behaviors/exports/atoms/std-tabs.orb +274 -0
  41. package/dist/behaviors/exports/atoms/std-timer.orb +1030 -0
  42. package/dist/behaviors/exports/atoms/std-undo.orb +694 -0
  43. package/dist/behaviors/exports/atoms/std-wizard.orb +666 -0
  44. package/dist/behaviors/exports/molecules/std-builder-game.orb +183 -0
  45. package/dist/behaviors/exports/molecules/std-cart.orb +591 -0
  46. package/dist/behaviors/exports/molecules/std-classifier-game.orb +183 -0
  47. package/dist/behaviors/exports/molecules/std-debugger-game.orb +183 -0
  48. package/dist/behaviors/exports/molecules/std-detail.orb +589 -0
  49. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +183 -0
  50. package/dist/behaviors/exports/molecules/std-geospatial.orb +649 -0
  51. package/dist/behaviors/exports/molecules/std-inventory.orb +853 -0
  52. package/dist/behaviors/exports/molecules/std-list.orb +954 -0
  53. package/dist/behaviors/exports/molecules/std-messaging.orb +585 -0
  54. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +183 -0
  55. package/dist/behaviors/exports/molecules/std-platformer-game.orb +496 -0
  56. package/dist/behaviors/exports/molecules/std-puzzle-game.orb +527 -0
  57. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +183 -0
  58. package/dist/behaviors/exports/molecules/std-simulator-game.orb +183 -0
  59. package/dist/behaviors/exports/molecules/std-turn-based-battle.orb +443 -0
  60. package/dist/behaviors/exports/organisms/std-api-gateway.orb +2296 -0
  61. package/dist/behaviors/exports/organisms/std-arcade-game.orb +833 -0
  62. package/dist/behaviors/exports/organisms/std-booking-system.orb +3977 -0
  63. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +2214 -0
  64. package/dist/behaviors/exports/organisms/std-cms.orb +2644 -0
  65. package/dist/behaviors/exports/organisms/std-coding-academy.orb +1394 -0
  66. package/dist/behaviors/exports/organisms/std-crm.orb +3541 -0
  67. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +3134 -0
  68. package/dist/behaviors/exports/organisms/std-ecommerce.orb +3743 -0
  69. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +2385 -0
  70. package/dist/behaviors/exports/organisms/std-healthcare.orb +4679 -0
  71. package/dist/behaviors/exports/organisms/std-helpdesk.orb +2564 -0
  72. package/dist/behaviors/exports/organisms/std-hr-portal.orb +4029 -0
  73. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +2297 -0
  74. package/dist/behaviors/exports/organisms/std-lms.orb +2854 -0
  75. package/dist/behaviors/exports/organisms/std-logic-training.orb +598 -0
  76. package/dist/behaviors/exports/organisms/std-platformer-app.orb +1569 -0
  77. package/dist/behaviors/exports/organisms/std-project-manager.orb +3021 -0
  78. package/dist/behaviors/exports/organisms/std-puzzle-app.orb +743 -0
  79. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +2380 -0
  80. package/dist/behaviors/exports/organisms/std-rpg-game.orb +2804 -0
  81. package/dist/behaviors/exports/organisms/std-social-feed.orb +1221 -0
  82. package/dist/behaviors/exports/organisms/std-stem-lab.orb +1210 -0
  83. package/dist/behaviors/exports/organisms/std-strategy-game.orb +1761 -0
  84. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +2217 -0
  85. package/dist/behaviors/exports-reader.d.ts +2 -0
  86. package/dist/behaviors/exports-reader.js +5 -3
  87. package/dist/behaviors/exports-reader.js.map +1 -1
  88. package/dist/behaviors/index.js +5 -3
  89. package/dist/behaviors/index.js.map +1 -1
  90. package/dist/exports/atoms/std-async.orb +420 -0
  91. package/dist/exports/atoms/std-browse.orb +173 -0
  92. package/dist/exports/atoms/std-cache-aside.orb +881 -0
  93. package/dist/exports/atoms/std-circuit-breaker.orb +501 -0
  94. package/dist/exports/atoms/std-collision.orb +616 -0
  95. package/dist/exports/atoms/std-combat-log.orb +145 -0
  96. package/dist/exports/atoms/std-combat.orb +410 -0
  97. package/dist/exports/atoms/std-confirmation.orb +282 -0
  98. package/dist/exports/atoms/std-dialogue-box.orb +238 -0
  99. package/dist/exports/atoms/std-display.orb +842 -0
  100. package/dist/exports/atoms/std-drawer.orb +316 -0
  101. package/dist/exports/atoms/std-filter.orb +442 -0
  102. package/dist/exports/atoms/std-game-audio.orb +113 -0
  103. package/dist/exports/atoms/std-game-canvas-2d.orb +135 -0
  104. package/dist/exports/atoms/std-game-canvas-3d.orb +224 -0
  105. package/dist/exports/atoms/std-game-hud.orb +151 -0
  106. package/dist/exports/atoms/std-game-menu.orb +211 -0
  107. package/dist/exports/atoms/std-game-over-screen.orb +195 -0
  108. package/dist/exports/atoms/std-gameflow.orb +318 -0
  109. package/dist/exports/atoms/std-input.orb +629 -0
  110. package/dist/exports/atoms/std-inventory-panel.orb +255 -0
  111. package/dist/exports/atoms/std-isometric-canvas.orb +631 -0
  112. package/dist/exports/atoms/std-loading.orb +511 -0
  113. package/dist/exports/atoms/std-modal.orb +270 -0
  114. package/dist/exports/atoms/std-movement.orb +1037 -0
  115. package/dist/exports/atoms/std-notification.orb +418 -0
  116. package/dist/exports/atoms/std-overworld.orb +483 -0
  117. package/dist/exports/atoms/std-pagination.orb +331 -0
  118. package/dist/exports/atoms/std-physics2d.orb +419 -0
  119. package/dist/exports/atoms/std-platformer-canvas.orb +257 -0
  120. package/dist/exports/atoms/std-quest.orb +980 -0
  121. package/dist/exports/atoms/std-rate-limiter.orb +638 -0
  122. package/dist/exports/atoms/std-score-board.orb +238 -0
  123. package/dist/exports/atoms/std-score.orb +466 -0
  124. package/dist/exports/atoms/std-search.orb +373 -0
  125. package/dist/exports/atoms/std-selection.orb +759 -0
  126. package/dist/exports/atoms/std-simulation-canvas.orb +183 -0
  127. package/dist/exports/atoms/std-sort.orb +578 -0
  128. package/dist/exports/atoms/std-sprite.orb +156 -0
  129. package/dist/exports/atoms/std-tabs.orb +274 -0
  130. package/dist/exports/atoms/std-timer.orb +1030 -0
  131. package/dist/exports/atoms/std-undo.orb +694 -0
  132. package/dist/exports/atoms/std-wizard.orb +666 -0
  133. package/dist/exports/molecules/std-builder-game.orb +183 -0
  134. package/dist/exports/molecules/std-cart.orb +591 -0
  135. package/dist/exports/molecules/std-classifier-game.orb +183 -0
  136. package/dist/exports/molecules/std-debugger-game.orb +183 -0
  137. package/dist/exports/molecules/std-detail.orb +589 -0
  138. package/dist/exports/molecules/std-event-handler-game.orb +183 -0
  139. package/dist/exports/molecules/std-geospatial.orb +649 -0
  140. package/dist/exports/molecules/std-inventory.orb +853 -0
  141. package/dist/exports/molecules/std-list.orb +954 -0
  142. package/dist/exports/molecules/std-messaging.orb +585 -0
  143. package/dist/exports/molecules/std-negotiator-game.orb +183 -0
  144. package/dist/exports/molecules/std-platformer-game.orb +496 -0
  145. package/dist/exports/molecules/std-puzzle-game.orb +527 -0
  146. package/dist/exports/molecules/std-sequencer-game.orb +183 -0
  147. package/dist/exports/molecules/std-simulator-game.orb +183 -0
  148. package/dist/exports/molecules/std-turn-based-battle.orb +443 -0
  149. package/dist/exports/organisms/std-api-gateway.orb +2296 -0
  150. package/dist/exports/organisms/std-arcade-game.orb +833 -0
  151. package/dist/exports/organisms/std-booking-system.orb +3977 -0
  152. package/dist/exports/organisms/std-cicd-pipeline.orb +2214 -0
  153. package/dist/exports/organisms/std-cms.orb +2644 -0
  154. package/dist/exports/organisms/std-coding-academy.orb +1394 -0
  155. package/dist/exports/organisms/std-crm.orb +3541 -0
  156. package/dist/exports/organisms/std-devops-dashboard.orb +3134 -0
  157. package/dist/exports/organisms/std-ecommerce.orb +3743 -0
  158. package/dist/exports/organisms/std-finance-tracker.orb +2385 -0
  159. package/dist/exports/organisms/std-healthcare.orb +4679 -0
  160. package/dist/exports/organisms/std-helpdesk.orb +2564 -0
  161. package/dist/exports/organisms/std-hr-portal.orb +4029 -0
  162. package/dist/exports/organisms/std-iot-dashboard.orb +2297 -0
  163. package/dist/exports/organisms/std-lms.orb +2854 -0
  164. package/dist/exports/organisms/std-logic-training.orb +598 -0
  165. package/dist/exports/organisms/std-platformer-app.orb +1569 -0
  166. package/dist/exports/organisms/std-project-manager.orb +3021 -0
  167. package/dist/exports/organisms/std-puzzle-app.orb +743 -0
  168. package/dist/exports/organisms/std-realtime-chat.orb +2380 -0
  169. package/dist/exports/organisms/std-rpg-game.orb +2804 -0
  170. package/dist/exports/organisms/std-social-feed.orb +1221 -0
  171. package/dist/exports/organisms/std-stem-lab.orb +1210 -0
  172. package/dist/exports/organisms/std-strategy-game.orb +1761 -0
  173. package/dist/exports/organisms/std-trading-dashboard.orb +2217 -0
  174. package/dist/index.js +5 -3
  175. package/dist/index.js.map +1 -1
  176. package/package.json +1 -1
@@ -0,0 +1,980 @@
1
+ {
2
+ "name": "ItemOrbital",
3
+ "orbitals": [
4
+ {
5
+ "name": "ItemOrbital",
6
+ "entity": {
7
+ "name": "Item",
8
+ "persistence": "runtime",
9
+ "fields": [
10
+ {
11
+ "name": "id",
12
+ "type": "string"
13
+ },
14
+ {
15
+ "name": "name",
16
+ "type": "string"
17
+ },
18
+ {
19
+ "name": "description",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "status",
24
+ "type": "string",
25
+ "default": "active"
26
+ },
27
+ {
28
+ "name": "createdAt",
29
+ "type": "string"
30
+ }
31
+ ]
32
+ },
33
+ "traits": [
34
+ {
35
+ "name": "ItemTracking",
36
+ "linkedEntity": "Item",
37
+ "category": "interaction",
38
+ "stateMachine": {
39
+ "states": [
40
+ {
41
+ "name": "available",
42
+ "isInitial": true
43
+ },
44
+ {
45
+ "name": "active"
46
+ },
47
+ {
48
+ "name": "progressing"
49
+ },
50
+ {
51
+ "name": "complete"
52
+ },
53
+ {
54
+ "name": "failed"
55
+ }
56
+ ],
57
+ "events": [
58
+ {
59
+ "key": "INIT",
60
+ "name": "Initialize"
61
+ },
62
+ {
63
+ "key": "ACCEPT",
64
+ "name": "Accept"
65
+ },
66
+ {
67
+ "key": "PROGRESS",
68
+ "name": "Progress",
69
+ "payload": [
70
+ {
71
+ "name": "data",
72
+ "type": "object",
73
+ "required": true
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "key": "SAVE",
79
+ "name": "Save",
80
+ "payload": [
81
+ {
82
+ "name": "data",
83
+ "type": "object",
84
+ "required": true
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "key": "COMPLETE",
90
+ "name": "Complete"
91
+ },
92
+ {
93
+ "key": "FAIL",
94
+ "name": "Fail"
95
+ },
96
+ {
97
+ "key": "RESET",
98
+ "name": "Reset"
99
+ },
100
+ {
101
+ "key": "CANCEL",
102
+ "name": "Cancel"
103
+ },
104
+ {
105
+ "key": "CLOSE",
106
+ "name": "Close"
107
+ }
108
+ ],
109
+ "transitions": [
110
+ {
111
+ "from": "available",
112
+ "to": "available",
113
+ "event": "INIT",
114
+ "effects": [
115
+ [
116
+ "fetch",
117
+ "Item"
118
+ ],
119
+ [
120
+ "render-ui",
121
+ "main",
122
+ {
123
+ "type": "stack",
124
+ "direction": "vertical",
125
+ "gap": "lg",
126
+ "children": [
127
+ {
128
+ "type": "stack",
129
+ "direction": "horizontal",
130
+ "gap": "md",
131
+ "justify": "space-between",
132
+ "children": [
133
+ {
134
+ "type": "stack",
135
+ "direction": "horizontal",
136
+ "gap": "md",
137
+ "children": [
138
+ {
139
+ "type": "icon",
140
+ "name": "flag",
141
+ "size": "lg"
142
+ },
143
+ {
144
+ "type": "typography",
145
+ "content": "Items Board",
146
+ "variant": "h2"
147
+ }
148
+ ]
149
+ }
150
+ ]
151
+ },
152
+ {
153
+ "type": "divider"
154
+ },
155
+ {
156
+ "type": "data-grid",
157
+ "entity": "Item",
158
+ "emptyIcon": "inbox",
159
+ "emptyTitle": "No items available",
160
+ "emptyDescription": "Check back later for new items.",
161
+ "itemActions": [
162
+ {
163
+ "label": "Accept",
164
+ "event": "ACCEPT"
165
+ }
166
+ ],
167
+ "children": [
168
+ {
169
+ "type": "stack",
170
+ "direction": "vertical",
171
+ "gap": "sm",
172
+ "children": [
173
+ {
174
+ "type": "stack",
175
+ "direction": "horizontal",
176
+ "justify": "space-between",
177
+ "align": "center",
178
+ "children": [
179
+ {
180
+ "type": "stack",
181
+ "direction": "horizontal",
182
+ "gap": "sm",
183
+ "align": "center",
184
+ "children": [
185
+ {
186
+ "type": "icon",
187
+ "name": "flag",
188
+ "size": "sm"
189
+ },
190
+ {
191
+ "type": "typography",
192
+ "variant": "h4",
193
+ "content": "@entity.name"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "type": "badge",
199
+ "label": "@entity.description"
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ "type": "typography",
205
+ "variant": "caption",
206
+ "content": "@entity.status"
207
+ }
208
+ ]
209
+ }
210
+ ]
211
+ }
212
+ ]
213
+ }
214
+ ]
215
+ ]
216
+ },
217
+ {
218
+ "from": "available",
219
+ "to": "active",
220
+ "event": "ACCEPT",
221
+ "effects": [
222
+ [
223
+ "fetch",
224
+ "Item"
225
+ ],
226
+ [
227
+ "render-ui",
228
+ "main",
229
+ {
230
+ "type": "stack",
231
+ "direction": "vertical",
232
+ "gap": "lg",
233
+ "children": [
234
+ {
235
+ "type": "stack",
236
+ "direction": "horizontal",
237
+ "gap": "md",
238
+ "justify": "space-between",
239
+ "children": [
240
+ {
241
+ "type": "stack",
242
+ "direction": "horizontal",
243
+ "gap": "md",
244
+ "children": [
245
+ {
246
+ "type": "icon",
247
+ "name": "flag",
248
+ "size": "lg"
249
+ },
250
+ {
251
+ "type": "typography",
252
+ "content": "Items Board",
253
+ "variant": "h2"
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "type": "badge",
259
+ "label": "Active"
260
+ }
261
+ ]
262
+ },
263
+ {
264
+ "type": "divider"
265
+ },
266
+ {
267
+ "type": "data-grid",
268
+ "entity": "Item",
269
+ "emptyIcon": "inbox",
270
+ "emptyTitle": "No active quests",
271
+ "emptyDescription": "Accept a quest to begin.",
272
+ "itemActions": [
273
+ {
274
+ "label": "Progress",
275
+ "event": "PROGRESS"
276
+ },
277
+ {
278
+ "label": "Complete",
279
+ "event": "COMPLETE"
280
+ },
281
+ {
282
+ "label": "Fail",
283
+ "event": "FAIL",
284
+ "variant": "danger"
285
+ }
286
+ ],
287
+ "children": [
288
+ {
289
+ "type": "stack",
290
+ "direction": "vertical",
291
+ "gap": "sm",
292
+ "children": [
293
+ {
294
+ "type": "stack",
295
+ "direction": "horizontal",
296
+ "justify": "space-between",
297
+ "align": "center",
298
+ "children": [
299
+ {
300
+ "type": "stack",
301
+ "direction": "horizontal",
302
+ "gap": "sm",
303
+ "align": "center",
304
+ "children": [
305
+ {
306
+ "type": "icon",
307
+ "name": "flag",
308
+ "size": "sm"
309
+ },
310
+ {
311
+ "type": "typography",
312
+ "variant": "h4",
313
+ "content": "@entity.name"
314
+ }
315
+ ]
316
+ },
317
+ {
318
+ "type": "badge",
319
+ "label": "@entity.description"
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "type": "typography",
325
+ "variant": "caption",
326
+ "content": "@entity.status"
327
+ }
328
+ ]
329
+ }
330
+ ]
331
+ }
332
+ ]
333
+ }
334
+ ]
335
+ ]
336
+ },
337
+ {
338
+ "from": "active",
339
+ "to": "active",
340
+ "event": "INIT",
341
+ "effects": [
342
+ [
343
+ "fetch",
344
+ "Item"
345
+ ],
346
+ [
347
+ "render-ui",
348
+ "main",
349
+ {
350
+ "type": "stack",
351
+ "direction": "vertical",
352
+ "gap": "lg",
353
+ "children": [
354
+ {
355
+ "type": "stack",
356
+ "direction": "horizontal",
357
+ "gap": "md",
358
+ "justify": "space-between",
359
+ "children": [
360
+ {
361
+ "type": "stack",
362
+ "direction": "horizontal",
363
+ "gap": "md",
364
+ "children": [
365
+ {
366
+ "type": "icon",
367
+ "name": "flag",
368
+ "size": "lg"
369
+ },
370
+ {
371
+ "type": "typography",
372
+ "content": "Items Board",
373
+ "variant": "h2"
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ "type": "badge",
379
+ "label": "Active"
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "type": "divider"
385
+ },
386
+ {
387
+ "type": "data-grid",
388
+ "entity": "Item",
389
+ "emptyIcon": "inbox",
390
+ "emptyTitle": "No active quests",
391
+ "emptyDescription": "Accept a quest to begin.",
392
+ "itemActions": [
393
+ {
394
+ "label": "Progress",
395
+ "event": "PROGRESS"
396
+ },
397
+ {
398
+ "label": "Complete",
399
+ "event": "COMPLETE"
400
+ },
401
+ {
402
+ "label": "Fail",
403
+ "event": "FAIL",
404
+ "variant": "danger"
405
+ }
406
+ ],
407
+ "children": [
408
+ {
409
+ "type": "stack",
410
+ "direction": "vertical",
411
+ "gap": "sm",
412
+ "children": [
413
+ {
414
+ "type": "stack",
415
+ "direction": "horizontal",
416
+ "justify": "space-between",
417
+ "align": "center",
418
+ "children": [
419
+ {
420
+ "type": "stack",
421
+ "direction": "horizontal",
422
+ "gap": "sm",
423
+ "align": "center",
424
+ "children": [
425
+ {
426
+ "type": "icon",
427
+ "name": "flag",
428
+ "size": "sm"
429
+ },
430
+ {
431
+ "type": "typography",
432
+ "variant": "h4",
433
+ "content": "@entity.name"
434
+ }
435
+ ]
436
+ },
437
+ {
438
+ "type": "badge",
439
+ "label": "@entity.description"
440
+ }
441
+ ]
442
+ },
443
+ {
444
+ "type": "typography",
445
+ "variant": "caption",
446
+ "content": "@entity.status"
447
+ }
448
+ ]
449
+ }
450
+ ]
451
+ }
452
+ ]
453
+ }
454
+ ]
455
+ ]
456
+ },
457
+ {
458
+ "from": "active",
459
+ "to": "progressing",
460
+ "event": "PROGRESS",
461
+ "effects": [
462
+ [
463
+ "render-ui",
464
+ "modal",
465
+ {
466
+ "type": "stack",
467
+ "direction": "vertical",
468
+ "gap": "md",
469
+ "children": [
470
+ {
471
+ "type": "stack",
472
+ "direction": "horizontal",
473
+ "gap": "sm",
474
+ "children": [
475
+ {
476
+ "type": "icon",
477
+ "name": "trending-up",
478
+ "size": "md"
479
+ },
480
+ {
481
+ "type": "typography",
482
+ "content": "Update Progress",
483
+ "variant": "h3"
484
+ }
485
+ ]
486
+ },
487
+ {
488
+ "type": "divider"
489
+ },
490
+ {
491
+ "type": "form-section",
492
+ "entity": "Item",
493
+ "mode": "edit",
494
+ "submitEvent": "SAVE",
495
+ "cancelEvent": "CANCEL",
496
+ "fields": [
497
+ "name",
498
+ "description",
499
+ "status",
500
+ "createdAt"
501
+ ]
502
+ }
503
+ ]
504
+ }
505
+ ]
506
+ ]
507
+ },
508
+ {
509
+ "from": "progressing",
510
+ "to": "active",
511
+ "event": "SAVE",
512
+ "effects": [
513
+ [
514
+ "persist",
515
+ "update",
516
+ "Item",
517
+ "@payload.data"
518
+ ],
519
+ [
520
+ "render-ui",
521
+ "modal",
522
+ null
523
+ ],
524
+ [
525
+ "fetch",
526
+ "Item"
527
+ ],
528
+ [
529
+ "render-ui",
530
+ "main",
531
+ {
532
+ "type": "stack",
533
+ "direction": "vertical",
534
+ "gap": "lg",
535
+ "children": [
536
+ {
537
+ "type": "stack",
538
+ "direction": "horizontal",
539
+ "gap": "md",
540
+ "justify": "space-between",
541
+ "children": [
542
+ {
543
+ "type": "stack",
544
+ "direction": "horizontal",
545
+ "gap": "md",
546
+ "children": [
547
+ {
548
+ "type": "icon",
549
+ "name": "flag",
550
+ "size": "lg"
551
+ },
552
+ {
553
+ "type": "typography",
554
+ "content": "Items Board",
555
+ "variant": "h2"
556
+ }
557
+ ]
558
+ },
559
+ {
560
+ "type": "badge",
561
+ "label": "Active"
562
+ }
563
+ ]
564
+ },
565
+ {
566
+ "type": "divider"
567
+ },
568
+ {
569
+ "type": "data-grid",
570
+ "entity": "Item",
571
+ "emptyIcon": "inbox",
572
+ "emptyTitle": "No active quests",
573
+ "emptyDescription": "Accept a quest to begin.",
574
+ "itemActions": [
575
+ {
576
+ "label": "Progress",
577
+ "event": "PROGRESS"
578
+ },
579
+ {
580
+ "label": "Complete",
581
+ "event": "COMPLETE"
582
+ },
583
+ {
584
+ "label": "Fail",
585
+ "event": "FAIL",
586
+ "variant": "danger"
587
+ }
588
+ ],
589
+ "children": [
590
+ {
591
+ "type": "stack",
592
+ "direction": "vertical",
593
+ "gap": "sm",
594
+ "children": [
595
+ {
596
+ "type": "stack",
597
+ "direction": "horizontal",
598
+ "justify": "space-between",
599
+ "align": "center",
600
+ "children": [
601
+ {
602
+ "type": "stack",
603
+ "direction": "horizontal",
604
+ "gap": "sm",
605
+ "align": "center",
606
+ "children": [
607
+ {
608
+ "type": "icon",
609
+ "name": "flag",
610
+ "size": "sm"
611
+ },
612
+ {
613
+ "type": "typography",
614
+ "variant": "h4",
615
+ "content": "@entity.name"
616
+ }
617
+ ]
618
+ },
619
+ {
620
+ "type": "badge",
621
+ "label": "@entity.description"
622
+ }
623
+ ]
624
+ },
625
+ {
626
+ "type": "typography",
627
+ "variant": "caption",
628
+ "content": "@entity.status"
629
+ }
630
+ ]
631
+ }
632
+ ]
633
+ }
634
+ ]
635
+ }
636
+ ],
637
+ [
638
+ "notify",
639
+ "Item updated successfully"
640
+ ]
641
+ ]
642
+ },
643
+ {
644
+ "from": "progressing",
645
+ "to": "active",
646
+ "event": "CANCEL",
647
+ "effects": [
648
+ [
649
+ "render-ui",
650
+ "modal",
651
+ null
652
+ ]
653
+ ]
654
+ },
655
+ {
656
+ "from": "progressing",
657
+ "to": "active",
658
+ "event": "CLOSE",
659
+ "effects": [
660
+ [
661
+ "render-ui",
662
+ "modal",
663
+ null
664
+ ]
665
+ ]
666
+ },
667
+ {
668
+ "from": "active",
669
+ "to": "complete",
670
+ "event": "COMPLETE",
671
+ "effects": [
672
+ [
673
+ "render-ui",
674
+ "main",
675
+ {
676
+ "type": "stack",
677
+ "direction": "vertical",
678
+ "gap": "lg",
679
+ "align": "center",
680
+ "children": [
681
+ {
682
+ "type": "icon",
683
+ "name": "check-circle",
684
+ "size": "lg"
685
+ },
686
+ {
687
+ "type": "typography",
688
+ "content": "Quest Complete",
689
+ "variant": "h2"
690
+ },
691
+ {
692
+ "type": "typography",
693
+ "content": "Congratulations! The quest has been completed.",
694
+ "variant": "body"
695
+ },
696
+ {
697
+ "type": "button",
698
+ "label": "View Quests",
699
+ "event": "RESET",
700
+ "variant": "primary",
701
+ "icon": "arrow-left"
702
+ }
703
+ ]
704
+ }
705
+ ]
706
+ ]
707
+ },
708
+ {
709
+ "from": "active",
710
+ "to": "failed",
711
+ "event": "FAIL",
712
+ "effects": [
713
+ [
714
+ "render-ui",
715
+ "main",
716
+ {
717
+ "type": "stack",
718
+ "direction": "vertical",
719
+ "gap": "lg",
720
+ "align": "center",
721
+ "children": [
722
+ {
723
+ "type": "icon",
724
+ "name": "x-circle",
725
+ "size": "lg"
726
+ },
727
+ {
728
+ "type": "typography",
729
+ "content": "Quest Failed",
730
+ "variant": "h2"
731
+ },
732
+ {
733
+ "type": "typography",
734
+ "content": "The quest was not completed. You can try again.",
735
+ "variant": "body"
736
+ },
737
+ {
738
+ "type": "button",
739
+ "label": "View Quests",
740
+ "event": "RESET",
741
+ "variant": "primary",
742
+ "icon": "arrow-left"
743
+ }
744
+ ]
745
+ }
746
+ ]
747
+ ]
748
+ },
749
+ {
750
+ "from": "complete",
751
+ "to": "available",
752
+ "event": "RESET",
753
+ "effects": [
754
+ [
755
+ "fetch",
756
+ "Item"
757
+ ],
758
+ [
759
+ "render-ui",
760
+ "main",
761
+ {
762
+ "type": "stack",
763
+ "direction": "vertical",
764
+ "gap": "lg",
765
+ "children": [
766
+ {
767
+ "type": "stack",
768
+ "direction": "horizontal",
769
+ "gap": "md",
770
+ "justify": "space-between",
771
+ "children": [
772
+ {
773
+ "type": "stack",
774
+ "direction": "horizontal",
775
+ "gap": "md",
776
+ "children": [
777
+ {
778
+ "type": "icon",
779
+ "name": "flag",
780
+ "size": "lg"
781
+ },
782
+ {
783
+ "type": "typography",
784
+ "content": "Items Board",
785
+ "variant": "h2"
786
+ }
787
+ ]
788
+ }
789
+ ]
790
+ },
791
+ {
792
+ "type": "divider"
793
+ },
794
+ {
795
+ "type": "data-grid",
796
+ "entity": "Item",
797
+ "emptyIcon": "inbox",
798
+ "emptyTitle": "No items available",
799
+ "emptyDescription": "Check back later for new items.",
800
+ "itemActions": [
801
+ {
802
+ "label": "Accept",
803
+ "event": "ACCEPT"
804
+ }
805
+ ],
806
+ "children": [
807
+ {
808
+ "type": "stack",
809
+ "direction": "vertical",
810
+ "gap": "sm",
811
+ "children": [
812
+ {
813
+ "type": "stack",
814
+ "direction": "horizontal",
815
+ "justify": "space-between",
816
+ "align": "center",
817
+ "children": [
818
+ {
819
+ "type": "stack",
820
+ "direction": "horizontal",
821
+ "gap": "sm",
822
+ "align": "center",
823
+ "children": [
824
+ {
825
+ "type": "icon",
826
+ "name": "flag",
827
+ "size": "sm"
828
+ },
829
+ {
830
+ "type": "typography",
831
+ "variant": "h4",
832
+ "content": "@entity.name"
833
+ }
834
+ ]
835
+ },
836
+ {
837
+ "type": "badge",
838
+ "label": "@entity.description"
839
+ }
840
+ ]
841
+ },
842
+ {
843
+ "type": "typography",
844
+ "variant": "caption",
845
+ "content": "@entity.status"
846
+ }
847
+ ]
848
+ }
849
+ ]
850
+ }
851
+ ]
852
+ }
853
+ ]
854
+ ]
855
+ },
856
+ {
857
+ "from": "failed",
858
+ "to": "available",
859
+ "event": "RESET",
860
+ "effects": [
861
+ [
862
+ "fetch",
863
+ "Item"
864
+ ],
865
+ [
866
+ "render-ui",
867
+ "main",
868
+ {
869
+ "type": "stack",
870
+ "direction": "vertical",
871
+ "gap": "lg",
872
+ "children": [
873
+ {
874
+ "type": "stack",
875
+ "direction": "horizontal",
876
+ "gap": "md",
877
+ "justify": "space-between",
878
+ "children": [
879
+ {
880
+ "type": "stack",
881
+ "direction": "horizontal",
882
+ "gap": "md",
883
+ "children": [
884
+ {
885
+ "type": "icon",
886
+ "name": "flag",
887
+ "size": "lg"
888
+ },
889
+ {
890
+ "type": "typography",
891
+ "content": "Items Board",
892
+ "variant": "h2"
893
+ }
894
+ ]
895
+ }
896
+ ]
897
+ },
898
+ {
899
+ "type": "divider"
900
+ },
901
+ {
902
+ "type": "data-grid",
903
+ "entity": "Item",
904
+ "emptyIcon": "inbox",
905
+ "emptyTitle": "No items available",
906
+ "emptyDescription": "Check back later for new items.",
907
+ "itemActions": [
908
+ {
909
+ "label": "Accept",
910
+ "event": "ACCEPT"
911
+ }
912
+ ],
913
+ "children": [
914
+ {
915
+ "type": "stack",
916
+ "direction": "vertical",
917
+ "gap": "sm",
918
+ "children": [
919
+ {
920
+ "type": "stack",
921
+ "direction": "horizontal",
922
+ "justify": "space-between",
923
+ "align": "center",
924
+ "children": [
925
+ {
926
+ "type": "stack",
927
+ "direction": "horizontal",
928
+ "gap": "sm",
929
+ "align": "center",
930
+ "children": [
931
+ {
932
+ "type": "icon",
933
+ "name": "flag",
934
+ "size": "sm"
935
+ },
936
+ {
937
+ "type": "typography",
938
+ "variant": "h4",
939
+ "content": "@entity.name"
940
+ }
941
+ ]
942
+ },
943
+ {
944
+ "type": "badge",
945
+ "label": "@entity.description"
946
+ }
947
+ ]
948
+ },
949
+ {
950
+ "type": "typography",
951
+ "variant": "caption",
952
+ "content": "@entity.status"
953
+ }
954
+ ]
955
+ }
956
+ ]
957
+ }
958
+ ]
959
+ }
960
+ ]
961
+ ]
962
+ }
963
+ ]
964
+ }
965
+ }
966
+ ],
967
+ "pages": [
968
+ {
969
+ "name": "ItemPage",
970
+ "path": "/items",
971
+ "traits": [
972
+ {
973
+ "ref": "ItemTracking"
974
+ }
975
+ ]
976
+ }
977
+ ]
978
+ }
979
+ ]
980
+ }