@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,1037 @@
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": "ItemMovement",
36
+ "linkedEntity": "Item",
37
+ "category": "interaction",
38
+ "stateMachine": {
39
+ "states": [
40
+ {
41
+ "name": "idle",
42
+ "isInitial": true
43
+ },
44
+ {
45
+ "name": "moving"
46
+ },
47
+ {
48
+ "name": "colliding"
49
+ }
50
+ ],
51
+ "events": [
52
+ {
53
+ "key": "INIT",
54
+ "name": "Initialize"
55
+ },
56
+ {
57
+ "key": "MOVE",
58
+ "name": "Move",
59
+ "payload": [
60
+ {
61
+ "name": "x",
62
+ "type": "number",
63
+ "required": true
64
+ },
65
+ {
66
+ "name": "y",
67
+ "type": "number",
68
+ "required": true
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "key": "STOP",
74
+ "name": "Stop"
75
+ },
76
+ {
77
+ "key": "COLLISION",
78
+ "name": "Collision",
79
+ "payload": [
80
+ {
81
+ "name": "targetId",
82
+ "type": "string",
83
+ "required": true
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "key": "RESOLVE",
89
+ "name": "Resolve"
90
+ },
91
+ {
92
+ "key": "CANCEL",
93
+ "name": "Cancel"
94
+ },
95
+ {
96
+ "key": "CLOSE",
97
+ "name": "Close"
98
+ }
99
+ ],
100
+ "transitions": [
101
+ {
102
+ "from": "idle",
103
+ "to": "idle",
104
+ "event": "INIT",
105
+ "effects": [
106
+ [
107
+ "fetch",
108
+ "Item"
109
+ ],
110
+ [
111
+ "render-ui",
112
+ "main",
113
+ {
114
+ "type": "stack",
115
+ "direction": "vertical",
116
+ "gap": "lg",
117
+ "children": [
118
+ {
119
+ "type": "stack",
120
+ "direction": "horizontal",
121
+ "gap": "md",
122
+ "justify": "space-between",
123
+ "children": [
124
+ {
125
+ "type": "stack",
126
+ "direction": "horizontal",
127
+ "gap": "md",
128
+ "children": [
129
+ {
130
+ "type": "icon",
131
+ "name": "move",
132
+ "size": "lg"
133
+ },
134
+ {
135
+ "type": "typography",
136
+ "content": "Items Movement",
137
+ "variant": "h2"
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "type": "badge",
143
+ "label": "Idle"
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "type": "divider"
149
+ },
150
+ {
151
+ "type": "stack",
152
+ "direction": "horizontal",
153
+ "gap": "md",
154
+ "children": [
155
+ {
156
+ "type": "typography",
157
+ "variant": "caption",
158
+ "content": "Name"
159
+ },
160
+ {
161
+ "type": "typography",
162
+ "variant": "body",
163
+ "content": "@entity.name"
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "type": "stack",
169
+ "direction": "horizontal",
170
+ "gap": "md",
171
+ "children": [
172
+ {
173
+ "type": "typography",
174
+ "variant": "caption",
175
+ "content": "Description"
176
+ },
177
+ {
178
+ "type": "typography",
179
+ "variant": "body",
180
+ "content": "@entity.description"
181
+ }
182
+ ]
183
+ },
184
+ {
185
+ "type": "stack",
186
+ "direction": "horizontal",
187
+ "gap": "md",
188
+ "children": [
189
+ {
190
+ "type": "typography",
191
+ "variant": "caption",
192
+ "content": "Status"
193
+ },
194
+ {
195
+ "type": "typography",
196
+ "variant": "body",
197
+ "content": "@entity.status"
198
+ }
199
+ ]
200
+ },
201
+ {
202
+ "type": "stack",
203
+ "direction": "horizontal",
204
+ "gap": "md",
205
+ "children": [
206
+ {
207
+ "type": "typography",
208
+ "variant": "caption",
209
+ "content": "CreatedAt"
210
+ },
211
+ {
212
+ "type": "typography",
213
+ "variant": "body",
214
+ "content": "@entity.createdAt"
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "type": "divider"
220
+ },
221
+ {
222
+ "type": "stack",
223
+ "direction": "horizontal",
224
+ "gap": "sm",
225
+ "justify": "end",
226
+ "children": [
227
+ {
228
+ "type": "button",
229
+ "label": "Move",
230
+ "event": "MOVE",
231
+ "variant": "primary",
232
+ "icon": "navigation"
233
+ }
234
+ ]
235
+ }
236
+ ]
237
+ }
238
+ ]
239
+ ]
240
+ },
241
+ {
242
+ "from": "idle",
243
+ "to": "moving",
244
+ "event": "MOVE",
245
+ "effects": [
246
+ [
247
+ "fetch",
248
+ "Item"
249
+ ],
250
+ [
251
+ "render-ui",
252
+ "main",
253
+ {
254
+ "type": "stack",
255
+ "direction": "vertical",
256
+ "gap": "lg",
257
+ "children": [
258
+ {
259
+ "type": "stack",
260
+ "direction": "horizontal",
261
+ "gap": "md",
262
+ "justify": "space-between",
263
+ "children": [
264
+ {
265
+ "type": "stack",
266
+ "direction": "horizontal",
267
+ "gap": "md",
268
+ "children": [
269
+ {
270
+ "type": "icon",
271
+ "name": "move",
272
+ "size": "lg"
273
+ },
274
+ {
275
+ "type": "typography",
276
+ "content": "Items Movement",
277
+ "variant": "h2"
278
+ }
279
+ ]
280
+ },
281
+ {
282
+ "type": "badge",
283
+ "label": "Moving"
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ "type": "divider"
289
+ },
290
+ {
291
+ "type": "stack",
292
+ "direction": "horizontal",
293
+ "gap": "md",
294
+ "children": [
295
+ {
296
+ "type": "typography",
297
+ "variant": "caption",
298
+ "content": "Name"
299
+ },
300
+ {
301
+ "type": "typography",
302
+ "variant": "body",
303
+ "content": "@entity.name"
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ "type": "stack",
309
+ "direction": "horizontal",
310
+ "gap": "md",
311
+ "children": [
312
+ {
313
+ "type": "typography",
314
+ "variant": "caption",
315
+ "content": "Description"
316
+ },
317
+ {
318
+ "type": "typography",
319
+ "variant": "body",
320
+ "content": "@entity.description"
321
+ }
322
+ ]
323
+ },
324
+ {
325
+ "type": "stack",
326
+ "direction": "horizontal",
327
+ "gap": "md",
328
+ "children": [
329
+ {
330
+ "type": "typography",
331
+ "variant": "caption",
332
+ "content": "Status"
333
+ },
334
+ {
335
+ "type": "typography",
336
+ "variant": "body",
337
+ "content": "@entity.status"
338
+ }
339
+ ]
340
+ },
341
+ {
342
+ "type": "stack",
343
+ "direction": "horizontal",
344
+ "gap": "md",
345
+ "children": [
346
+ {
347
+ "type": "typography",
348
+ "variant": "caption",
349
+ "content": "CreatedAt"
350
+ },
351
+ {
352
+ "type": "typography",
353
+ "variant": "body",
354
+ "content": "@entity.createdAt"
355
+ }
356
+ ]
357
+ },
358
+ {
359
+ "type": "divider"
360
+ },
361
+ {
362
+ "type": "stack",
363
+ "direction": "horizontal",
364
+ "gap": "sm",
365
+ "justify": "end",
366
+ "children": [
367
+ {
368
+ "type": "button",
369
+ "label": "Stop",
370
+ "event": "STOP",
371
+ "variant": "danger",
372
+ "icon": "square"
373
+ }
374
+ ]
375
+ }
376
+ ]
377
+ }
378
+ ]
379
+ ]
380
+ },
381
+ {
382
+ "from": "moving",
383
+ "to": "idle",
384
+ "event": "STOP",
385
+ "effects": [
386
+ [
387
+ "fetch",
388
+ "Item"
389
+ ],
390
+ [
391
+ "render-ui",
392
+ "main",
393
+ {
394
+ "type": "stack",
395
+ "direction": "vertical",
396
+ "gap": "lg",
397
+ "children": [
398
+ {
399
+ "type": "stack",
400
+ "direction": "horizontal",
401
+ "gap": "md",
402
+ "justify": "space-between",
403
+ "children": [
404
+ {
405
+ "type": "stack",
406
+ "direction": "horizontal",
407
+ "gap": "md",
408
+ "children": [
409
+ {
410
+ "type": "icon",
411
+ "name": "move",
412
+ "size": "lg"
413
+ },
414
+ {
415
+ "type": "typography",
416
+ "content": "Items Movement",
417
+ "variant": "h2"
418
+ }
419
+ ]
420
+ },
421
+ {
422
+ "type": "badge",
423
+ "label": "Idle"
424
+ }
425
+ ]
426
+ },
427
+ {
428
+ "type": "divider"
429
+ },
430
+ {
431
+ "type": "stack",
432
+ "direction": "horizontal",
433
+ "gap": "md",
434
+ "children": [
435
+ {
436
+ "type": "typography",
437
+ "variant": "caption",
438
+ "content": "Name"
439
+ },
440
+ {
441
+ "type": "typography",
442
+ "variant": "body",
443
+ "content": "@entity.name"
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "type": "stack",
449
+ "direction": "horizontal",
450
+ "gap": "md",
451
+ "children": [
452
+ {
453
+ "type": "typography",
454
+ "variant": "caption",
455
+ "content": "Description"
456
+ },
457
+ {
458
+ "type": "typography",
459
+ "variant": "body",
460
+ "content": "@entity.description"
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "type": "stack",
466
+ "direction": "horizontal",
467
+ "gap": "md",
468
+ "children": [
469
+ {
470
+ "type": "typography",
471
+ "variant": "caption",
472
+ "content": "Status"
473
+ },
474
+ {
475
+ "type": "typography",
476
+ "variant": "body",
477
+ "content": "@entity.status"
478
+ }
479
+ ]
480
+ },
481
+ {
482
+ "type": "stack",
483
+ "direction": "horizontal",
484
+ "gap": "md",
485
+ "children": [
486
+ {
487
+ "type": "typography",
488
+ "variant": "caption",
489
+ "content": "CreatedAt"
490
+ },
491
+ {
492
+ "type": "typography",
493
+ "variant": "body",
494
+ "content": "@entity.createdAt"
495
+ }
496
+ ]
497
+ },
498
+ {
499
+ "type": "divider"
500
+ },
501
+ {
502
+ "type": "stack",
503
+ "direction": "horizontal",
504
+ "gap": "sm",
505
+ "justify": "end",
506
+ "children": [
507
+ {
508
+ "type": "button",
509
+ "label": "Move",
510
+ "event": "MOVE",
511
+ "variant": "primary",
512
+ "icon": "navigation"
513
+ }
514
+ ]
515
+ }
516
+ ]
517
+ }
518
+ ]
519
+ ]
520
+ },
521
+ {
522
+ "from": "moving",
523
+ "to": "colliding",
524
+ "event": "COLLISION",
525
+ "effects": [
526
+ [
527
+ "render-ui",
528
+ "modal",
529
+ {
530
+ "type": "stack",
531
+ "direction": "vertical",
532
+ "gap": "md",
533
+ "children": [
534
+ {
535
+ "type": "stack",
536
+ "direction": "horizontal",
537
+ "gap": "sm",
538
+ "children": [
539
+ {
540
+ "type": "icon",
541
+ "name": "alert-triangle",
542
+ "size": "md"
543
+ },
544
+ {
545
+ "type": "typography",
546
+ "content": "Collision Detected",
547
+ "variant": "h3"
548
+ }
549
+ ]
550
+ },
551
+ {
552
+ "type": "divider"
553
+ },
554
+ {
555
+ "type": "typography",
556
+ "content": "A collision has been detected. Resolve to continue.",
557
+ "variant": "body"
558
+ },
559
+ {
560
+ "type": "stack",
561
+ "direction": "horizontal",
562
+ "gap": "sm",
563
+ "justify": "end",
564
+ "children": [
565
+ {
566
+ "type": "button",
567
+ "label": "Cancel",
568
+ "event": "CANCEL",
569
+ "variant": "ghost"
570
+ },
571
+ {
572
+ "type": "button",
573
+ "label": "Resolve",
574
+ "event": "RESOLVE",
575
+ "variant": "primary",
576
+ "icon": "check"
577
+ }
578
+ ]
579
+ }
580
+ ]
581
+ }
582
+ ]
583
+ ]
584
+ },
585
+ {
586
+ "from": "colliding",
587
+ "to": "idle",
588
+ "event": "RESOLVE",
589
+ "effects": [
590
+ [
591
+ "render-ui",
592
+ "modal",
593
+ null
594
+ ],
595
+ [
596
+ "fetch",
597
+ "Item"
598
+ ],
599
+ [
600
+ "render-ui",
601
+ "main",
602
+ {
603
+ "type": "stack",
604
+ "direction": "vertical",
605
+ "gap": "lg",
606
+ "children": [
607
+ {
608
+ "type": "stack",
609
+ "direction": "horizontal",
610
+ "gap": "md",
611
+ "justify": "space-between",
612
+ "children": [
613
+ {
614
+ "type": "stack",
615
+ "direction": "horizontal",
616
+ "gap": "md",
617
+ "children": [
618
+ {
619
+ "type": "icon",
620
+ "name": "move",
621
+ "size": "lg"
622
+ },
623
+ {
624
+ "type": "typography",
625
+ "content": "Items Movement",
626
+ "variant": "h2"
627
+ }
628
+ ]
629
+ },
630
+ {
631
+ "type": "badge",
632
+ "label": "Idle"
633
+ }
634
+ ]
635
+ },
636
+ {
637
+ "type": "divider"
638
+ },
639
+ {
640
+ "type": "stack",
641
+ "direction": "horizontal",
642
+ "gap": "md",
643
+ "children": [
644
+ {
645
+ "type": "typography",
646
+ "variant": "caption",
647
+ "content": "Name"
648
+ },
649
+ {
650
+ "type": "typography",
651
+ "variant": "body",
652
+ "content": "@entity.name"
653
+ }
654
+ ]
655
+ },
656
+ {
657
+ "type": "stack",
658
+ "direction": "horizontal",
659
+ "gap": "md",
660
+ "children": [
661
+ {
662
+ "type": "typography",
663
+ "variant": "caption",
664
+ "content": "Description"
665
+ },
666
+ {
667
+ "type": "typography",
668
+ "variant": "body",
669
+ "content": "@entity.description"
670
+ }
671
+ ]
672
+ },
673
+ {
674
+ "type": "stack",
675
+ "direction": "horizontal",
676
+ "gap": "md",
677
+ "children": [
678
+ {
679
+ "type": "typography",
680
+ "variant": "caption",
681
+ "content": "Status"
682
+ },
683
+ {
684
+ "type": "typography",
685
+ "variant": "body",
686
+ "content": "@entity.status"
687
+ }
688
+ ]
689
+ },
690
+ {
691
+ "type": "stack",
692
+ "direction": "horizontal",
693
+ "gap": "md",
694
+ "children": [
695
+ {
696
+ "type": "typography",
697
+ "variant": "caption",
698
+ "content": "CreatedAt"
699
+ },
700
+ {
701
+ "type": "typography",
702
+ "variant": "body",
703
+ "content": "@entity.createdAt"
704
+ }
705
+ ]
706
+ },
707
+ {
708
+ "type": "divider"
709
+ },
710
+ {
711
+ "type": "stack",
712
+ "direction": "horizontal",
713
+ "gap": "sm",
714
+ "justify": "end",
715
+ "children": [
716
+ {
717
+ "type": "button",
718
+ "label": "Move",
719
+ "event": "MOVE",
720
+ "variant": "primary",
721
+ "icon": "navigation"
722
+ }
723
+ ]
724
+ }
725
+ ]
726
+ }
727
+ ]
728
+ ]
729
+ },
730
+ {
731
+ "from": "colliding",
732
+ "to": "idle",
733
+ "event": "CANCEL",
734
+ "effects": [
735
+ [
736
+ "render-ui",
737
+ "modal",
738
+ null
739
+ ],
740
+ [
741
+ "fetch",
742
+ "Item"
743
+ ],
744
+ [
745
+ "render-ui",
746
+ "main",
747
+ {
748
+ "type": "stack",
749
+ "direction": "vertical",
750
+ "gap": "lg",
751
+ "children": [
752
+ {
753
+ "type": "stack",
754
+ "direction": "horizontal",
755
+ "gap": "md",
756
+ "justify": "space-between",
757
+ "children": [
758
+ {
759
+ "type": "stack",
760
+ "direction": "horizontal",
761
+ "gap": "md",
762
+ "children": [
763
+ {
764
+ "type": "icon",
765
+ "name": "move",
766
+ "size": "lg"
767
+ },
768
+ {
769
+ "type": "typography",
770
+ "content": "Items Movement",
771
+ "variant": "h2"
772
+ }
773
+ ]
774
+ },
775
+ {
776
+ "type": "badge",
777
+ "label": "Idle"
778
+ }
779
+ ]
780
+ },
781
+ {
782
+ "type": "divider"
783
+ },
784
+ {
785
+ "type": "stack",
786
+ "direction": "horizontal",
787
+ "gap": "md",
788
+ "children": [
789
+ {
790
+ "type": "typography",
791
+ "variant": "caption",
792
+ "content": "Name"
793
+ },
794
+ {
795
+ "type": "typography",
796
+ "variant": "body",
797
+ "content": "@entity.name"
798
+ }
799
+ ]
800
+ },
801
+ {
802
+ "type": "stack",
803
+ "direction": "horizontal",
804
+ "gap": "md",
805
+ "children": [
806
+ {
807
+ "type": "typography",
808
+ "variant": "caption",
809
+ "content": "Description"
810
+ },
811
+ {
812
+ "type": "typography",
813
+ "variant": "body",
814
+ "content": "@entity.description"
815
+ }
816
+ ]
817
+ },
818
+ {
819
+ "type": "stack",
820
+ "direction": "horizontal",
821
+ "gap": "md",
822
+ "children": [
823
+ {
824
+ "type": "typography",
825
+ "variant": "caption",
826
+ "content": "Status"
827
+ },
828
+ {
829
+ "type": "typography",
830
+ "variant": "body",
831
+ "content": "@entity.status"
832
+ }
833
+ ]
834
+ },
835
+ {
836
+ "type": "stack",
837
+ "direction": "horizontal",
838
+ "gap": "md",
839
+ "children": [
840
+ {
841
+ "type": "typography",
842
+ "variant": "caption",
843
+ "content": "CreatedAt"
844
+ },
845
+ {
846
+ "type": "typography",
847
+ "variant": "body",
848
+ "content": "@entity.createdAt"
849
+ }
850
+ ]
851
+ },
852
+ {
853
+ "type": "divider"
854
+ },
855
+ {
856
+ "type": "stack",
857
+ "direction": "horizontal",
858
+ "gap": "sm",
859
+ "justify": "end",
860
+ "children": [
861
+ {
862
+ "type": "button",
863
+ "label": "Move",
864
+ "event": "MOVE",
865
+ "variant": "primary",
866
+ "icon": "navigation"
867
+ }
868
+ ]
869
+ }
870
+ ]
871
+ }
872
+ ]
873
+ ]
874
+ },
875
+ {
876
+ "from": "colliding",
877
+ "to": "idle",
878
+ "event": "CLOSE",
879
+ "effects": [
880
+ [
881
+ "render-ui",
882
+ "modal",
883
+ null
884
+ ],
885
+ [
886
+ "fetch",
887
+ "Item"
888
+ ],
889
+ [
890
+ "render-ui",
891
+ "main",
892
+ {
893
+ "type": "stack",
894
+ "direction": "vertical",
895
+ "gap": "lg",
896
+ "children": [
897
+ {
898
+ "type": "stack",
899
+ "direction": "horizontal",
900
+ "gap": "md",
901
+ "justify": "space-between",
902
+ "children": [
903
+ {
904
+ "type": "stack",
905
+ "direction": "horizontal",
906
+ "gap": "md",
907
+ "children": [
908
+ {
909
+ "type": "icon",
910
+ "name": "move",
911
+ "size": "lg"
912
+ },
913
+ {
914
+ "type": "typography",
915
+ "content": "Items Movement",
916
+ "variant": "h2"
917
+ }
918
+ ]
919
+ },
920
+ {
921
+ "type": "badge",
922
+ "label": "Idle"
923
+ }
924
+ ]
925
+ },
926
+ {
927
+ "type": "divider"
928
+ },
929
+ {
930
+ "type": "stack",
931
+ "direction": "horizontal",
932
+ "gap": "md",
933
+ "children": [
934
+ {
935
+ "type": "typography",
936
+ "variant": "caption",
937
+ "content": "Name"
938
+ },
939
+ {
940
+ "type": "typography",
941
+ "variant": "body",
942
+ "content": "@entity.name"
943
+ }
944
+ ]
945
+ },
946
+ {
947
+ "type": "stack",
948
+ "direction": "horizontal",
949
+ "gap": "md",
950
+ "children": [
951
+ {
952
+ "type": "typography",
953
+ "variant": "caption",
954
+ "content": "Description"
955
+ },
956
+ {
957
+ "type": "typography",
958
+ "variant": "body",
959
+ "content": "@entity.description"
960
+ }
961
+ ]
962
+ },
963
+ {
964
+ "type": "stack",
965
+ "direction": "horizontal",
966
+ "gap": "md",
967
+ "children": [
968
+ {
969
+ "type": "typography",
970
+ "variant": "caption",
971
+ "content": "Status"
972
+ },
973
+ {
974
+ "type": "typography",
975
+ "variant": "body",
976
+ "content": "@entity.status"
977
+ }
978
+ ]
979
+ },
980
+ {
981
+ "type": "stack",
982
+ "direction": "horizontal",
983
+ "gap": "md",
984
+ "children": [
985
+ {
986
+ "type": "typography",
987
+ "variant": "caption",
988
+ "content": "CreatedAt"
989
+ },
990
+ {
991
+ "type": "typography",
992
+ "variant": "body",
993
+ "content": "@entity.createdAt"
994
+ }
995
+ ]
996
+ },
997
+ {
998
+ "type": "divider"
999
+ },
1000
+ {
1001
+ "type": "stack",
1002
+ "direction": "horizontal",
1003
+ "gap": "sm",
1004
+ "justify": "end",
1005
+ "children": [
1006
+ {
1007
+ "type": "button",
1008
+ "label": "Move",
1009
+ "event": "MOVE",
1010
+ "variant": "primary",
1011
+ "icon": "navigation"
1012
+ }
1013
+ ]
1014
+ }
1015
+ ]
1016
+ }
1017
+ ]
1018
+ ]
1019
+ }
1020
+ ]
1021
+ }
1022
+ }
1023
+ ],
1024
+ "pages": [
1025
+ {
1026
+ "name": "ItemPage",
1027
+ "path": "/items",
1028
+ "traits": [
1029
+ {
1030
+ "ref": "ItemMovement"
1031
+ }
1032
+ ]
1033
+ }
1034
+ ]
1035
+ }
1036
+ ]
1037
+ }