@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,616 @@
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
+ "name": "x",
33
+ "type": "number",
34
+ "default": 0
35
+ },
36
+ {
37
+ "name": "y",
38
+ "type": "number",
39
+ "default": 0
40
+ },
41
+ {
42
+ "name": "collisionStatus",
43
+ "type": "string",
44
+ "default": "idle"
45
+ },
46
+ {
47
+ "name": "targetId",
48
+ "type": "string",
49
+ "default": ""
50
+ }
51
+ ]
52
+ },
53
+ "traits": [
54
+ {
55
+ "name": "ItemCollision",
56
+ "linkedEntity": "Item",
57
+ "category": "interaction",
58
+ "stateMachine": {
59
+ "states": [
60
+ {
61
+ "name": "idle",
62
+ "isInitial": true
63
+ },
64
+ {
65
+ "name": "detecting"
66
+ }
67
+ ],
68
+ "events": [
69
+ {
70
+ "key": "INIT",
71
+ "name": "Initialize"
72
+ },
73
+ {
74
+ "key": "CHECK",
75
+ "name": "Check Collision"
76
+ },
77
+ {
78
+ "key": "COLLISION_DETECTED",
79
+ "name": "Collision Detected",
80
+ "payload": [
81
+ {
82
+ "name": "targetId",
83
+ "type": "string",
84
+ "required": true
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "key": "CLEAR",
90
+ "name": "Clear"
91
+ }
92
+ ],
93
+ "transitions": [
94
+ {
95
+ "from": "idle",
96
+ "to": "idle",
97
+ "event": "INIT",
98
+ "effects": [
99
+ [
100
+ "render-ui",
101
+ "main",
102
+ {
103
+ "type": "stack",
104
+ "direction": "vertical",
105
+ "gap": "lg",
106
+ "align": "center",
107
+ "children": [
108
+ {
109
+ "type": "stack",
110
+ "direction": "horizontal",
111
+ "gap": "md",
112
+ "align": "center",
113
+ "children": [
114
+ {
115
+ "type": "icon",
116
+ "name": "crosshair",
117
+ "size": "lg"
118
+ },
119
+ {
120
+ "type": "typography",
121
+ "content": "Item Collision",
122
+ "variant": "h2"
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "type": "divider"
128
+ },
129
+ {
130
+ "type": "card",
131
+ "children": [
132
+ {
133
+ "type": "stack",
134
+ "direction": "vertical",
135
+ "gap": "sm",
136
+ "children": [
137
+ {
138
+ "type": "typography",
139
+ "content": "Position",
140
+ "variant": "caption"
141
+ },
142
+ {
143
+ "type": "stack",
144
+ "direction": "horizontal",
145
+ "gap": "md",
146
+ "children": [
147
+ {
148
+ "type": "typography",
149
+ "content": "@entity.x",
150
+ "variant": "body"
151
+ },
152
+ {
153
+ "type": "typography",
154
+ "content": "@entity.y",
155
+ "variant": "body"
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "type": "badge",
161
+ "label": "@entity.collisionStatus"
162
+ }
163
+ ]
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "type": "stack",
169
+ "direction": "horizontal",
170
+ "gap": "sm",
171
+ "justify": "center",
172
+ "children": [
173
+ {
174
+ "type": "button",
175
+ "label": "Check",
176
+ "event": "CHECK",
177
+ "variant": "primary",
178
+ "icon": "scan"
179
+ }
180
+ ]
181
+ }
182
+ ]
183
+ }
184
+ ]
185
+ ]
186
+ },
187
+ {
188
+ "from": "idle",
189
+ "to": "detecting",
190
+ "event": "CHECK",
191
+ "effects": [
192
+ [
193
+ "set",
194
+ "@entity.collisionStatus",
195
+ "detecting"
196
+ ],
197
+ [
198
+ "render-ui",
199
+ "main",
200
+ {
201
+ "type": "stack",
202
+ "direction": "vertical",
203
+ "gap": "lg",
204
+ "align": "center",
205
+ "children": [
206
+ {
207
+ "type": "stack",
208
+ "direction": "horizontal",
209
+ "gap": "md",
210
+ "align": "center",
211
+ "children": [
212
+ {
213
+ "type": "icon",
214
+ "name": "crosshair",
215
+ "size": "lg"
216
+ },
217
+ {
218
+ "type": "typography",
219
+ "content": "Item Collision",
220
+ "variant": "h2"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "type": "divider"
226
+ },
227
+ {
228
+ "type": "card",
229
+ "children": [
230
+ {
231
+ "type": "stack",
232
+ "direction": "vertical",
233
+ "gap": "sm",
234
+ "children": [
235
+ {
236
+ "type": "typography",
237
+ "content": "Position",
238
+ "variant": "caption"
239
+ },
240
+ {
241
+ "type": "stack",
242
+ "direction": "horizontal",
243
+ "gap": "md",
244
+ "children": [
245
+ {
246
+ "type": "typography",
247
+ "content": "@entity.x",
248
+ "variant": "body"
249
+ },
250
+ {
251
+ "type": "typography",
252
+ "content": "@entity.y",
253
+ "variant": "body"
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "type": "badge",
259
+ "label": "Detecting..."
260
+ },
261
+ {
262
+ "type": "typography",
263
+ "content": "@entity.targetId",
264
+ "variant": "body"
265
+ }
266
+ ]
267
+ }
268
+ ]
269
+ },
270
+ {
271
+ "type": "stack",
272
+ "direction": "horizontal",
273
+ "gap": "sm",
274
+ "justify": "center",
275
+ "children": [
276
+ {
277
+ "type": "button",
278
+ "label": "Clear",
279
+ "event": "CLEAR",
280
+ "variant": "ghost",
281
+ "icon": "x"
282
+ }
283
+ ]
284
+ }
285
+ ]
286
+ }
287
+ ]
288
+ ]
289
+ },
290
+ {
291
+ "from": "detecting",
292
+ "to": "detecting",
293
+ "event": "COLLISION_DETECTED",
294
+ "effects": [
295
+ [
296
+ "set",
297
+ "@entity.targetId",
298
+ "@payload.targetId"
299
+ ],
300
+ [
301
+ "set",
302
+ "@entity.collisionStatus",
303
+ "detected"
304
+ ],
305
+ [
306
+ "render-ui",
307
+ "main",
308
+ {
309
+ "type": "stack",
310
+ "direction": "vertical",
311
+ "gap": "lg",
312
+ "align": "center",
313
+ "children": [
314
+ {
315
+ "type": "stack",
316
+ "direction": "horizontal",
317
+ "gap": "md",
318
+ "align": "center",
319
+ "children": [
320
+ {
321
+ "type": "icon",
322
+ "name": "crosshair",
323
+ "size": "lg"
324
+ },
325
+ {
326
+ "type": "typography",
327
+ "content": "Item Collision",
328
+ "variant": "h2"
329
+ }
330
+ ]
331
+ },
332
+ {
333
+ "type": "divider"
334
+ },
335
+ {
336
+ "type": "card",
337
+ "children": [
338
+ {
339
+ "type": "stack",
340
+ "direction": "vertical",
341
+ "gap": "sm",
342
+ "children": [
343
+ {
344
+ "type": "typography",
345
+ "content": "Position",
346
+ "variant": "caption"
347
+ },
348
+ {
349
+ "type": "stack",
350
+ "direction": "horizontal",
351
+ "gap": "md",
352
+ "children": [
353
+ {
354
+ "type": "typography",
355
+ "content": "@entity.x",
356
+ "variant": "body"
357
+ },
358
+ {
359
+ "type": "typography",
360
+ "content": "@entity.y",
361
+ "variant": "body"
362
+ }
363
+ ]
364
+ },
365
+ {
366
+ "type": "badge",
367
+ "label": "Detecting..."
368
+ },
369
+ {
370
+ "type": "typography",
371
+ "content": "@entity.targetId",
372
+ "variant": "body"
373
+ }
374
+ ]
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "type": "stack",
380
+ "direction": "horizontal",
381
+ "gap": "sm",
382
+ "justify": "center",
383
+ "children": [
384
+ {
385
+ "type": "button",
386
+ "label": "Clear",
387
+ "event": "CLEAR",
388
+ "variant": "ghost",
389
+ "icon": "x"
390
+ }
391
+ ]
392
+ }
393
+ ]
394
+ }
395
+ ]
396
+ ]
397
+ },
398
+ {
399
+ "from": "detecting",
400
+ "to": "idle",
401
+ "event": "CLEAR",
402
+ "effects": [
403
+ [
404
+ "set",
405
+ "@entity.collisionStatus",
406
+ "idle"
407
+ ],
408
+ [
409
+ "set",
410
+ "@entity.targetId",
411
+ ""
412
+ ],
413
+ [
414
+ "render-ui",
415
+ "main",
416
+ {
417
+ "type": "stack",
418
+ "direction": "vertical",
419
+ "gap": "lg",
420
+ "align": "center",
421
+ "children": [
422
+ {
423
+ "type": "stack",
424
+ "direction": "horizontal",
425
+ "gap": "md",
426
+ "align": "center",
427
+ "children": [
428
+ {
429
+ "type": "icon",
430
+ "name": "crosshair",
431
+ "size": "lg"
432
+ },
433
+ {
434
+ "type": "typography",
435
+ "content": "Item Collision",
436
+ "variant": "h2"
437
+ }
438
+ ]
439
+ },
440
+ {
441
+ "type": "divider"
442
+ },
443
+ {
444
+ "type": "card",
445
+ "children": [
446
+ {
447
+ "type": "stack",
448
+ "direction": "vertical",
449
+ "gap": "sm",
450
+ "children": [
451
+ {
452
+ "type": "typography",
453
+ "content": "Position",
454
+ "variant": "caption"
455
+ },
456
+ {
457
+ "type": "stack",
458
+ "direction": "horizontal",
459
+ "gap": "md",
460
+ "children": [
461
+ {
462
+ "type": "typography",
463
+ "content": "@entity.x",
464
+ "variant": "body"
465
+ },
466
+ {
467
+ "type": "typography",
468
+ "content": "@entity.y",
469
+ "variant": "body"
470
+ }
471
+ ]
472
+ },
473
+ {
474
+ "type": "badge",
475
+ "label": "@entity.collisionStatus"
476
+ }
477
+ ]
478
+ }
479
+ ]
480
+ },
481
+ {
482
+ "type": "stack",
483
+ "direction": "horizontal",
484
+ "gap": "sm",
485
+ "justify": "center",
486
+ "children": [
487
+ {
488
+ "type": "button",
489
+ "label": "Check",
490
+ "event": "CHECK",
491
+ "variant": "primary",
492
+ "icon": "scan"
493
+ }
494
+ ]
495
+ }
496
+ ]
497
+ }
498
+ ]
499
+ ]
500
+ },
501
+ {
502
+ "from": "detecting",
503
+ "to": "detecting",
504
+ "event": "INIT",
505
+ "effects": [
506
+ [
507
+ "render-ui",
508
+ "main",
509
+ {
510
+ "type": "stack",
511
+ "direction": "vertical",
512
+ "gap": "lg",
513
+ "align": "center",
514
+ "children": [
515
+ {
516
+ "type": "stack",
517
+ "direction": "horizontal",
518
+ "gap": "md",
519
+ "align": "center",
520
+ "children": [
521
+ {
522
+ "type": "icon",
523
+ "name": "crosshair",
524
+ "size": "lg"
525
+ },
526
+ {
527
+ "type": "typography",
528
+ "content": "Item Collision",
529
+ "variant": "h2"
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ "type": "divider"
535
+ },
536
+ {
537
+ "type": "card",
538
+ "children": [
539
+ {
540
+ "type": "stack",
541
+ "direction": "vertical",
542
+ "gap": "sm",
543
+ "children": [
544
+ {
545
+ "type": "typography",
546
+ "content": "Position",
547
+ "variant": "caption"
548
+ },
549
+ {
550
+ "type": "stack",
551
+ "direction": "horizontal",
552
+ "gap": "md",
553
+ "children": [
554
+ {
555
+ "type": "typography",
556
+ "content": "@entity.x",
557
+ "variant": "body"
558
+ },
559
+ {
560
+ "type": "typography",
561
+ "content": "@entity.y",
562
+ "variant": "body"
563
+ }
564
+ ]
565
+ },
566
+ {
567
+ "type": "badge",
568
+ "label": "Detecting..."
569
+ },
570
+ {
571
+ "type": "typography",
572
+ "content": "@entity.targetId",
573
+ "variant": "body"
574
+ }
575
+ ]
576
+ }
577
+ ]
578
+ },
579
+ {
580
+ "type": "stack",
581
+ "direction": "horizontal",
582
+ "gap": "sm",
583
+ "justify": "center",
584
+ "children": [
585
+ {
586
+ "type": "button",
587
+ "label": "Clear",
588
+ "event": "CLEAR",
589
+ "variant": "ghost",
590
+ "icon": "x"
591
+ }
592
+ ]
593
+ }
594
+ ]
595
+ }
596
+ ]
597
+ ]
598
+ }
599
+ ]
600
+ }
601
+ }
602
+ ],
603
+ "pages": [
604
+ {
605
+ "name": "ItemCollisionPage",
606
+ "path": "/items/collision",
607
+ "traits": [
608
+ {
609
+ "ref": "ItemCollision"
610
+ }
611
+ ]
612
+ }
613
+ ]
614
+ }
615
+ ]
616
+ }