@almadar/std 8.3.0 → 8.4.0

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 (187) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +62 -62
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +101 -101
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +100 -100
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +103 -103
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +386 -386
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +94 -94
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +66 -66
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +114 -114
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +61 -61
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +109 -109
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +196 -196
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +347 -347
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +61 -60
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +187 -187
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +180 -180
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +108 -108
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +107 -107
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +184 -184
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1130 -1130
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +2998 -2998
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2135 -2135
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1033 -1033
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +784 -784
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +798 -798
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1139 -1139
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +776 -776
  27. package/behaviors/registry/app/organisms/std-cms.orb +469 -469
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +338 -338
  29. package/behaviors/registry/app/organisms/std-crm.orb +832 -832
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1350 -1350
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +975 -975
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +573 -573
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1370 -1370
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +617 -617
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1177 -1177
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +871 -871
  37. package/behaviors/registry/app/organisms/std-lms.orb +839 -839
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +667 -667
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +667 -667
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +230 -230
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +682 -682
  42. package/behaviors/registry/core/atoms/std-browse.orb +53 -53
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +89 -89
  44. package/behaviors/registry/core/atoms/std-calendar.orb +57 -57
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +196 -196
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +19 -19
  47. package/behaviors/registry/core/atoms/std-display.orb +383 -383
  48. package/behaviors/registry/core/atoms/std-drawer.orb +56 -56
  49. package/behaviors/registry/core/atoms/std-filter.orb +42 -42
  50. package/behaviors/registry/core/atoms/std-gallery.orb +54 -54
  51. package/behaviors/registry/core/atoms/std-modal.orb +12 -12
  52. package/behaviors/registry/core/atoms/std-pagination.orb +42 -42
  53. package/behaviors/registry/core/atoms/std-push.orb +42 -42
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +179 -179
  55. package/behaviors/registry/core/atoms/std-related.orb +34 -34
  56. package/behaviors/registry/core/atoms/std-search.orb +68 -68
  57. package/behaviors/registry/core/atoms/std-selection.orb +90 -90
  58. package/behaviors/registry/core/atoms/std-tabs.orb +52 -52
  59. package/behaviors/registry/core/molecules/std-cart.orb +45 -45
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +7 -7
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +127 -127
  62. package/behaviors/registry/core/molecules/std-list.orb +46 -46
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +147 -147
  64. package/behaviors/registry/game/atoms/std-collision.orb +121 -121
  65. package/behaviors/registry/game/atoms/std-combat.orb +68 -68
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +48 -48
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  69. package/behaviors/registry/game/atoms/std-movement.orb +306 -306
  70. package/behaviors/registry/game/atoms/std-overworld.orb +68 -68
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +76 -76
  72. package/behaviors/registry/game/atoms/std-quest.orb +124 -124
  73. package/behaviors/registry/game/atoms/std-timer.orb +274 -274
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +145 -145
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +67 -67
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +218 -218
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +90 -90
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +372 -372
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +345 -345
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +540 -540
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +14 -14
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +86 -86
  83. package/behaviors/registry/service/atoms/std-service-email.orb +72 -72
  84. package/behaviors/registry/service/atoms/std-service-github.orb +98 -98
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +118 -118
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +118 -118
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +103 -103
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +95 -95
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +107 -107
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +104 -104
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +966 -966
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +905 -905
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +62 -62
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +101 -101
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +100 -100
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +103 -103
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +386 -386
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +94 -94
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +66 -66
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +114 -114
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +61 -61
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +109 -109
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +196 -196
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +347 -347
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +61 -60
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +187 -187
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +180 -180
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +108 -108
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +107 -107
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +184 -184
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1130 -1130
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +2998 -2998
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2135 -2135
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1033 -1033
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +784 -784
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +798 -798
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1139 -1139
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +776 -776
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +469 -469
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +338 -338
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +832 -832
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1350 -1350
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +975 -975
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +573 -573
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1370 -1370
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +617 -617
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1177 -1177
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +871 -871
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +839 -839
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +667 -667
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +667 -667
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +230 -230
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +682 -682
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +53 -53
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +89 -89
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +57 -57
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +196 -196
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +19 -19
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +383 -383
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +56 -56
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +42 -42
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +54 -54
  144. package/dist/behaviors/registry/core/atoms/std-modal.orb +12 -12
  145. package/dist/behaviors/registry/core/atoms/std-pagination.orb +42 -42
  146. package/dist/behaviors/registry/core/atoms/std-push.orb +42 -42
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +179 -179
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +34 -34
  149. package/dist/behaviors/registry/core/atoms/std-search.orb +68 -68
  150. package/dist/behaviors/registry/core/atoms/std-selection.orb +90 -90
  151. package/dist/behaviors/registry/core/atoms/std-tabs.orb +52 -52
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +45 -45
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +7 -7
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +127 -127
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +46 -46
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +147 -147
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +121 -121
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +68 -68
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +48 -48
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +306 -306
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +68 -68
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +76 -76
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +124 -124
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +274 -274
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +145 -145
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +67 -67
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +218 -218
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +90 -90
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +372 -372
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +345 -345
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +540 -540
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +14 -14
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +86 -86
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +72 -72
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +98 -98
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +118 -118
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +118 -118
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +103 -103
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +95 -95
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +107 -107
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +104 -104
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +966 -966
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +905 -905
  187. package/package.json +1 -1
@@ -256,7 +256,8 @@
256
256
  "render-ui",
257
257
  "main",
258
258
  {
259
- "type": "stack",
259
+ "align": "center",
260
+ "gap": "md",
260
261
  "direction": "vertical",
261
262
  "className": "py-12",
262
263
  "children": [
@@ -264,14 +265,13 @@
264
265
  "type": "spinner"
265
266
  },
266
267
  {
267
- "type": "typography",
268
- "content": "Loading…",
268
+ "variant": "caption",
269
269
  "color": "muted",
270
- "variant": "caption"
270
+ "type": "typography",
271
+ "content": "Loading…"
271
272
  }
272
273
  ],
273
- "gap": "md",
274
- "align": "center"
274
+ "type": "stack"
275
275
  }
276
276
  ]
277
277
  ]
@@ -289,31 +289,34 @@
289
289
  "navItems": [
290
290
  {
291
291
  "href": "/feed",
292
- "icon": "layout-list",
293
- "label": "Feed"
292
+ "label": "Feed",
293
+ "icon": "layout-list"
294
294
  },
295
295
  {
296
- "icon": "message-circle",
297
296
  "label": "Messages",
298
- "href": "/messages"
297
+ "href": "/messages",
298
+ "icon": "message-circle"
299
299
  }
300
300
  ],
301
+ "type": "dashboard-layout",
301
302
  "children": [
302
303
  {
303
304
  "className": "max-w-5xl mx-auto w-full",
305
+ "gap": "lg",
304
306
  "children": [
305
307
  {
308
+ "direction": "horizontal",
309
+ "align": "center",
310
+ "justify": "between",
306
311
  "gap": "md",
307
- "type": "stack",
308
312
  "children": [
309
313
  {
310
- "direction": "horizontal",
311
- "gap": "sm",
312
314
  "type": "stack",
315
+ "gap": "sm",
313
316
  "children": [
314
317
  {
315
- "name": "rss",
316
- "type": "icon"
318
+ "type": "icon",
319
+ "name": "rss"
317
320
  },
318
321
  {
319
322
  "type": "typography",
@@ -321,33 +324,31 @@
321
324
  "content": "Feed"
322
325
  }
323
326
  ],
324
- "align": "center"
327
+ "align": "center",
328
+ "direction": "horizontal"
325
329
  },
326
330
  {
331
+ "type": "stack",
327
332
  "children": [
328
333
  {
329
- "label": "New Post",
330
- "icon": "plus",
331
334
  "type": "button",
332
- "variant": "primary",
333
- "action": "CREATE"
335
+ "action": "CREATE",
336
+ "icon": "plus",
337
+ "label": "New Post",
338
+ "variant": "primary"
334
339
  }
335
340
  ],
336
- "type": "stack",
337
341
  "gap": "sm",
338
342
  "direction": "horizontal"
339
343
  }
340
344
  ],
341
- "align": "center",
342
- "direction": "horizontal",
343
- "justify": "between"
345
+ "type": "stack"
344
346
  },
345
347
  {
346
348
  "type": "divider"
347
349
  },
348
350
  {
349
351
  "entity": "@payload.data",
350
- "fields": [],
351
352
  "columns": [
352
353
  {
353
354
  "name": "title",
@@ -355,43 +356,42 @@
355
356
  "icon": "rss"
356
357
  },
357
358
  {
358
- "variant": "badge",
359
359
  "name": "likes",
360
+ "variant": "badge",
360
361
  "format": "number"
361
362
  },
362
363
  {
363
- "variant": "body",
364
- "name": "author"
364
+ "name": "author",
365
+ "variant": "body"
365
366
  },
366
367
  {
367
368
  "name": "content",
368
369
  "variant": "body"
369
370
  },
370
371
  {
371
- "name": "createdAt",
372
+ "label": "Posted",
372
373
  "format": "date",
373
- "variant": "caption",
374
- "label": "Posted"
374
+ "name": "createdAt",
375
+ "variant": "caption"
375
376
  }
376
377
  ],
377
378
  "variant": "card",
378
- "type": "data-list",
379
379
  "gap": "sm",
380
+ "type": "data-list",
381
+ "fields": [],
380
382
  "itemActions": [
381
383
  {
382
- "label": "View",
383
384
  "event": "VIEW",
384
- "variant": "ghost"
385
+ "variant": "ghost",
386
+ "label": "View"
385
387
  }
386
388
  ]
387
389
  }
388
390
  ],
389
391
  "direction": "vertical",
390
- "type": "stack",
391
- "gap": "lg"
392
+ "type": "stack"
392
393
  }
393
- ],
394
- "type": "dashboard-layout"
394
+ ]
395
395
  }
396
396
  ]
397
397
  ]
@@ -405,36 +405,36 @@
405
405
  "render-ui",
406
406
  "main",
407
407
  {
408
- "gap": "md",
409
408
  "align": "center",
410
- "className": "py-12",
411
- "type": "stack",
412
409
  "children": [
413
410
  {
414
- "type": "icon",
415
411
  "name": "alert-triangle",
412
+ "type": "icon",
416
413
  "color": "destructive"
417
414
  },
418
415
  {
416
+ "variant": "h3",
419
417
  "content": "Failed to load post",
420
- "type": "typography",
421
- "variant": "h3"
418
+ "type": "typography"
422
419
  },
423
420
  {
424
- "content": "@payload.error",
425
- "variant": "body",
426
421
  "color": "muted",
427
- "type": "typography"
422
+ "variant": "body",
423
+ "type": "typography",
424
+ "content": "@payload.error"
428
425
  },
429
426
  {
430
427
  "type": "button",
431
428
  "action": "INIT",
432
- "icon": "rotate-ccw",
429
+ "variant": "primary",
433
430
  "label": "Retry",
434
- "variant": "primary"
431
+ "icon": "rotate-ccw"
435
432
  }
436
433
  ],
437
- "direction": "vertical"
434
+ "className": "py-12",
435
+ "type": "stack",
436
+ "direction": "vertical",
437
+ "gap": "md"
438
438
  }
439
439
  ]
440
440
  ]
@@ -604,8 +604,8 @@
604
604
  "Post",
605
605
  {
606
606
  "emit": {
607
- "success": "PostLoaded",
608
- "failure": "PostLoadFailed"
607
+ "failure": "PostLoadFailed",
608
+ "success": "PostLoaded"
609
609
  }
610
610
  }
611
611
  ],
@@ -613,42 +613,42 @@
613
613
  "render-ui",
614
614
  "modal",
615
615
  {
616
+ "type": "stack",
617
+ "gap": "md",
616
618
  "direction": "vertical",
617
619
  "children": [
618
620
  {
621
+ "direction": "horizontal",
622
+ "type": "stack",
623
+ "gap": "sm",
619
624
  "children": [
620
625
  {
621
626
  "type": "icon",
622
627
  "name": "plus-circle"
623
628
  },
624
629
  {
625
- "type": "typography",
626
630
  "content": "Create Post",
627
- "variant": "h3"
631
+ "variant": "h3",
632
+ "type": "typography"
628
633
  }
629
- ],
630
- "direction": "horizontal",
631
- "gap": "sm",
632
- "type": "stack"
634
+ ]
633
635
  },
634
636
  {
635
637
  "type": "divider"
636
638
  },
637
639
  {
638
- "mode": "create",
639
- "cancelEvent": "CLOSE",
640
640
  "fields": [
641
641
  "title",
642
642
  "content",
643
643
  "author",
644
644
  "likes"
645
645
  ],
646
+ "cancelEvent": "CLOSE",
647
+ "type": "form-section",
646
648
  "submitEvent": "SAVE",
647
- "type": "form-section"
649
+ "mode": "create"
648
650
  }
649
- ],
650
- "type": "stack",
651
- "gap": "md"
651
+ ]
652
652
  }
653
653
  ]
654
654
  ]
@@ -689,8 +689,8 @@
689
689
  "@payload.data",
690
690
  {
691
691
  "emit": {
692
- "success": "PostSaved",
693
- "failure": "PostSaveFailed"
692
+ "failure": "PostSaveFailed",
693
+ "success": "PostSaved"
694
694
  }
695
695
  }
696
696
  ],
@@ -833,8 +833,8 @@
833
833
  {
834
834
  "id": "@payload.id",
835
835
  "emit": {
836
- "failure": "PostLoadFailed",
837
- "success": "PostLoaded"
836
+ "success": "PostLoaded",
837
+ "failure": "PostLoadFailed"
838
838
  }
839
839
  }
840
840
  ],
@@ -842,47 +842,51 @@
842
842
  "render-ui",
843
843
  "modal",
844
844
  {
845
+ "type": "stack",
845
846
  "direction": "vertical",
847
+ "gap": "md",
846
848
  "children": [
847
849
  {
848
- "align": "center",
849
- "direction": "horizontal",
850
850
  "type": "stack",
851
- "gap": "sm",
852
851
  "children": [
853
852
  {
854
853
  "type": "icon",
855
854
  "name": "eye"
856
855
  },
857
856
  {
858
- "type": "typography",
859
857
  "content": "@entity.title",
860
- "variant": "h3"
858
+ "variant": "h3",
859
+ "type": "typography"
861
860
  }
862
- ]
861
+ ],
862
+ "align": "center",
863
+ "gap": "sm",
864
+ "direction": "horizontal"
863
865
  },
864
866
  {
865
867
  "type": "divider"
866
868
  },
867
869
  {
868
- "type": "stack",
869
870
  "direction": "horizontal",
870
871
  "children": [
871
872
  {
873
+ "content": "Title",
872
874
  "type": "typography",
873
- "variant": "caption",
874
- "content": "Title"
875
+ "variant": "caption"
875
876
  },
876
877
  {
877
- "content": "@entity.title",
878
878
  "type": "typography",
879
+ "content": "@entity.title",
879
880
  "variant": "body"
880
881
  }
881
882
  ],
883
+ "type": "stack",
882
884
  "gap": "md"
883
885
  },
884
886
  {
885
887
  "type": "stack",
888
+ "direction": "horizontal",
889
+ "gap": "md",
886
890
  "children": [
887
891
  {
888
892
  "content": "Content",
@@ -891,84 +895,80 @@
891
895
  },
892
896
  {
893
897
  "variant": "body",
894
- "type": "typography",
895
- "content": "@entity.content"
898
+ "content": "@entity.content",
899
+ "type": "typography"
896
900
  }
897
- ],
898
- "direction": "horizontal",
899
- "gap": "md"
901
+ ]
900
902
  },
901
903
  {
902
904
  "children": [
903
905
  {
904
- "variant": "caption",
906
+ "content": "Author",
905
907
  "type": "typography",
906
- "content": "Author"
908
+ "variant": "caption"
907
909
  },
908
910
  {
911
+ "type": "typography",
909
912
  "variant": "body",
910
- "content": "@entity.author",
911
- "type": "typography"
913
+ "content": "@entity.author"
912
914
  }
913
915
  ],
914
916
  "direction": "horizontal",
915
- "gap": "md",
916
- "type": "stack"
917
+ "type": "stack",
918
+ "gap": "md"
917
919
  },
918
920
  {
921
+ "direction": "horizontal",
919
922
  "children": [
920
923
  {
921
924
  "content": "Created At",
922
- "type": "typography",
923
- "variant": "caption"
925
+ "variant": "caption",
926
+ "type": "typography"
924
927
  },
925
928
  {
926
- "type": "typography",
929
+ "variant": "body",
927
930
  "content": "@entity.createdAt",
928
- "variant": "body"
931
+ "type": "typography"
929
932
  }
930
933
  ],
931
934
  "type": "stack",
932
- "direction": "horizontal",
933
935
  "gap": "md"
934
936
  },
935
937
  {
938
+ "direction": "horizontal",
939
+ "gap": "md",
936
940
  "children": [
937
941
  {
938
942
  "content": "Likes",
939
- "type": "typography",
940
- "variant": "caption"
943
+ "variant": "caption",
944
+ "type": "typography"
941
945
  },
942
946
  {
943
- "variant": "body",
944
947
  "content": "@entity.likes",
945
- "type": "typography"
948
+ "type": "typography",
949
+ "variant": "body"
946
950
  }
947
951
  ],
948
- "direction": "horizontal",
949
- "gap": "md",
950
952
  "type": "stack"
951
953
  },
952
954
  {
953
955
  "type": "divider"
954
956
  },
955
957
  {
956
- "justify": "end",
957
- "gap": "sm",
958
958
  "direction": "horizontal",
959
+ "gap": "sm",
959
960
  "type": "stack",
960
961
  "children": [
961
962
  {
962
- "label": "Close",
963
+ "action": "CLOSE",
963
964
  "type": "button",
964
- "variant": "ghost",
965
- "action": "CLOSE"
965
+ "label": "Close",
966
+ "variant": "ghost"
966
967
  }
967
- ]
968
+ ],
969
+ "justify": "end"
968
970
  }
969
- ],
970
- "gap": "md",
971
- "type": "stack"
971
+ ]
972
972
  }
973
973
  ]
974
974
  ]
@@ -1168,8 +1168,8 @@
1168
1168
  "Comment",
1169
1169
  {
1170
1170
  "emit": {
1171
- "failure": "CommentLoadFailed",
1172
- "success": "CommentLoaded"
1171
+ "success": "CommentLoaded",
1172
+ "failure": "CommentLoadFailed"
1173
1173
  }
1174
1174
  }
1175
1175
  ],
@@ -1177,22 +1177,22 @@
1177
1177
  "render-ui",
1178
1178
  "main",
1179
1179
  {
1180
- "direction": "vertical",
1181
1180
  "gap": "md",
1182
- "align": "center",
1183
1181
  "className": "py-12",
1184
1182
  "children": [
1185
1183
  {
1186
1184
  "type": "spinner"
1187
1185
  },
1188
1186
  {
1189
- "variant": "caption",
1190
- "type": "typography",
1191
1187
  "content": "Loading…",
1188
+ "type": "typography",
1189
+ "variant": "caption",
1192
1190
  "color": "muted"
1193
1191
  }
1194
1192
  ],
1195
- "type": "stack"
1193
+ "type": "stack",
1194
+ "align": "center",
1195
+ "direction": "vertical"
1196
1196
  }
1197
1197
  ]
1198
1198
  ]
@@ -1206,102 +1206,102 @@
1206
1206
  "render-ui",
1207
1207
  "main",
1208
1208
  {
1209
+ "navItems": [
1210
+ {
1211
+ "label": "Feed",
1212
+ "href": "/feed",
1213
+ "icon": "layout-list"
1214
+ },
1215
+ {
1216
+ "icon": "message-circle",
1217
+ "label": "Messages",
1218
+ "href": "/messages"
1219
+ }
1220
+ ],
1209
1221
  "appName": "SocialFeed",
1222
+ "type": "dashboard-layout",
1210
1223
  "children": [
1211
1224
  {
1212
- "type": "stack",
1213
- "gap": "lg",
1214
- "direction": "vertical",
1215
1225
  "children": [
1216
1226
  {
1217
- "type": "stack",
1218
1227
  "gap": "md",
1219
- "direction": "horizontal",
1220
1228
  "justify": "between",
1221
- "align": "center",
1222
1229
  "children": [
1223
1230
  {
1231
+ "direction": "horizontal",
1232
+ "align": "center",
1233
+ "gap": "sm",
1234
+ "type": "stack",
1224
1235
  "children": [
1225
1236
  {
1226
1237
  "type": "icon",
1227
1238
  "name": "message-circle"
1228
1239
  },
1229
1240
  {
1230
- "type": "typography",
1231
1241
  "content": "Messages",
1242
+ "type": "typography",
1232
1243
  "variant": "h2"
1233
1244
  }
1234
- ],
1235
- "direction": "horizontal",
1236
- "type": "stack",
1237
- "gap": "sm",
1238
- "align": "center"
1245
+ ]
1239
1246
  },
1240
1247
  {
1248
+ "gap": "sm",
1249
+ "type": "stack",
1241
1250
  "children": [
1242
1251
  {
1243
- "action": "COMPOSE",
1244
- "type": "button",
1245
- "icon": "edit",
1252
+ "label": "Compose",
1246
1253
  "variant": "primary",
1247
- "label": "Compose"
1254
+ "type": "button",
1255
+ "action": "COMPOSE",
1256
+ "icon": "edit"
1248
1257
  }
1249
1258
  ],
1250
- "type": "stack",
1251
- "direction": "horizontal",
1252
- "gap": "sm"
1259
+ "direction": "horizontal"
1253
1260
  }
1254
- ]
1261
+ ],
1262
+ "align": "center",
1263
+ "type": "stack",
1264
+ "direction": "horizontal"
1255
1265
  },
1256
1266
  {
1257
1267
  "type": "divider"
1258
1268
  },
1259
1269
  {
1260
- "entity": "@payload.data",
1270
+ "variant": "card",
1271
+ "itemActions": [
1272
+ {
1273
+ "variant": "ghost",
1274
+ "label": "View",
1275
+ "event": "VIEW"
1276
+ }
1277
+ ],
1261
1278
  "fields": [],
1279
+ "gap": "sm",
1262
1280
  "type": "data-list",
1281
+ "entity": "@payload.data",
1263
1282
  "columns": [
1264
1283
  {
1265
- "icon": "message-circle",
1266
1284
  "variant": "h4",
1267
- "name": "author"
1285
+ "name": "author",
1286
+ "icon": "message-circle"
1268
1287
  },
1269
1288
  {
1270
1289
  "variant": "body",
1271
1290
  "name": "body"
1272
1291
  },
1273
1292
  {
1274
- "variant": "caption",
1293
+ "format": "date",
1275
1294
  "name": "createdAt",
1276
- "format": "date"
1277
- }
1278
- ],
1279
- "variant": "card",
1280
- "gap": "sm",
1281
- "itemActions": [
1282
- {
1283
- "label": "View",
1284
- "event": "VIEW",
1285
- "variant": "ghost"
1295
+ "variant": "caption"
1286
1296
  }
1287
1297
  ]
1288
1298
  }
1289
1299
  ],
1300
+ "gap": "lg",
1301
+ "type": "stack",
1302
+ "direction": "vertical",
1290
1303
  "className": "max-w-5xl mx-auto w-full"
1291
1304
  }
1292
- ],
1293
- "type": "dashboard-layout",
1294
- "navItems": [
1295
- {
1296
- "href": "/feed",
1297
- "icon": "layout-list",
1298
- "label": "Feed"
1299
- },
1300
- {
1301
- "href": "/messages",
1302
- "icon": "message-circle",
1303
- "label": "Messages"
1304
- }
1305
1305
  ]
1306
1306
  }
1307
1307
  ]
@@ -1316,12 +1316,12 @@
1316
1316
  "render-ui",
1317
1317
  "main",
1318
1318
  {
1319
- "gap": "md",
1319
+ "align": "center",
1320
1320
  "children": [
1321
1321
  {
1322
1322
  "type": "icon",
1323
- "name": "alert-triangle",
1324
- "color": "destructive"
1323
+ "color": "destructive",
1324
+ "name": "alert-triangle"
1325
1325
  },
1326
1326
  {
1327
1327
  "type": "typography",
@@ -1329,23 +1329,23 @@
1329
1329
  "content": "Failed to load comment"
1330
1330
  },
1331
1331
  {
1332
- "type": "typography",
1333
1332
  "variant": "body",
1333
+ "color": "muted",
1334
1334
  "content": "@payload.error",
1335
- "color": "muted"
1335
+ "type": "typography"
1336
1336
  },
1337
1337
  {
1338
- "label": "Retry",
1339
- "icon": "rotate-ccw",
1340
- "type": "button",
1338
+ "variant": "primary",
1341
1339
  "action": "INIT",
1342
- "variant": "primary"
1340
+ "icon": "rotate-ccw",
1341
+ "label": "Retry",
1342
+ "type": "button"
1343
1343
  }
1344
1344
  ],
1345
1345
  "type": "stack",
1346
+ "gap": "md",
1346
1347
  "direction": "vertical",
1347
- "className": "py-12",
1348
- "align": "center"
1348
+ "className": "py-12"
1349
1349
  }
1350
1350
  ]
1351
1351
  ]
@@ -1516,39 +1516,39 @@
1516
1516
  "render-ui",
1517
1517
  "modal",
1518
1518
  {
1519
+ "gap": "md",
1519
1520
  "direction": "vertical",
1520
1521
  "type": "stack",
1521
- "gap": "md",
1522
1522
  "children": [
1523
1523
  {
1524
- "direction": "horizontal",
1525
- "type": "stack",
1526
- "gap": "sm",
1527
1524
  "children": [
1528
1525
  {
1529
- "name": "edit",
1530
- "type": "icon"
1526
+ "type": "icon",
1527
+ "name": "edit"
1531
1528
  },
1532
1529
  {
1533
- "variant": "h3",
1534
1530
  "type": "typography",
1535
- "content": "New Comment"
1531
+ "content": "New Comment",
1532
+ "variant": "h3"
1536
1533
  }
1537
- ]
1534
+ ],
1535
+ "type": "stack",
1536
+ "direction": "horizontal",
1537
+ "gap": "sm"
1538
1538
  },
1539
1539
  {
1540
1540
  "type": "divider"
1541
1541
  },
1542
1542
  {
1543
- "submitEvent": "SEND",
1543
+ "mode": "create",
1544
1544
  "fields": [
1545
1545
  "body",
1546
1546
  "author",
1547
1547
  "postId"
1548
1548
  ],
1549
- "cancelEvent": "CLOSE",
1550
- "mode": "create",
1551
- "type": "form-section"
1549
+ "type": "form-section",
1550
+ "submitEvent": "SEND",
1551
+ "cancelEvent": "CLOSE"
1552
1552
  }
1553
1553
  ]
1554
1554
  }
@@ -1726,8 +1726,8 @@
1726
1726
  "Comment",
1727
1727
  {
1728
1728
  "emit": {
1729
- "failure": "CommentLoadFailed",
1730
- "success": "CommentLoaded"
1729
+ "success": "CommentLoaded",
1730
+ "failure": "CommentLoadFailed"
1731
1731
  },
1732
1732
  "id": "@payload.id"
1733
1733
  }
@@ -1736,69 +1736,70 @@
1736
1736
  "render-ui",
1737
1737
  "modal",
1738
1738
  {
1739
- "gap": "md",
1740
- "type": "stack",
1739
+ "direction": "vertical",
1741
1740
  "children": [
1742
1741
  {
1742
+ "gap": "sm",
1743
+ "type": "stack",
1744
+ "direction": "horizontal",
1743
1745
  "children": [
1744
1746
  {
1745
- "type": "icon",
1746
- "name": "eye"
1747
+ "name": "eye",
1748
+ "type": "icon"
1747
1749
  },
1748
1750
  {
1749
- "variant": "h3",
1751
+ "type": "typography",
1750
1752
  "content": "@entity.body",
1751
- "type": "typography"
1753
+ "variant": "h3"
1752
1754
  }
1753
1755
  ],
1754
- "gap": "sm",
1755
- "align": "center",
1756
- "type": "stack",
1757
- "direction": "horizontal"
1756
+ "align": "center"
1758
1757
  },
1759
1758
  {
1760
1759
  "type": "divider"
1761
1760
  },
1762
1761
  {
1763
- "direction": "horizontal",
1764
- "type": "stack",
1765
- "gap": "md",
1766
1762
  "children": [
1767
1763
  {
1768
- "type": "typography",
1764
+ "variant": "caption",
1769
1765
  "content": "Body",
1770
- "variant": "caption"
1766
+ "type": "typography"
1771
1767
  },
1772
1768
  {
1773
- "content": "@entity.body",
1774
1769
  "variant": "body",
1770
+ "content": "@entity.body",
1775
1771
  "type": "typography"
1776
1772
  }
1777
- ]
1773
+ ],
1774
+ "type": "stack",
1775
+ "gap": "md",
1776
+ "direction": "horizontal"
1778
1777
  },
1779
1778
  {
1780
- "direction": "horizontal",
1781
- "gap": "md",
1782
1779
  "type": "stack",
1783
1780
  "children": [
1784
1781
  {
1785
1782
  "type": "typography",
1786
- "variant": "caption",
1787
- "content": "Author"
1783
+ "content": "Author",
1784
+ "variant": "caption"
1788
1785
  },
1789
1786
  {
1790
- "content": "@entity.author",
1791
1787
  "variant": "body",
1792
- "type": "typography"
1788
+ "type": "typography",
1789
+ "content": "@entity.author"
1793
1790
  }
1794
- ]
1791
+ ],
1792
+ "gap": "md",
1793
+ "direction": "horizontal"
1795
1794
  },
1796
1795
  {
1796
+ "gap": "md",
1797
+ "direction": "horizontal",
1797
1798
  "children": [
1798
1799
  {
1799
1800
  "variant": "caption",
1800
- "content": "Post ID",
1801
- "type": "typography"
1801
+ "type": "typography",
1802
+ "content": "Post ID"
1802
1803
  },
1803
1804
  {
1804
1805
  "content": "@entity.postId",
@@ -1806,46 +1807,45 @@
1806
1807
  "variant": "body"
1807
1808
  }
1808
1809
  ],
1809
- "gap": "md",
1810
- "type": "stack",
1811
- "direction": "horizontal"
1810
+ "type": "stack"
1812
1811
  },
1813
1812
  {
1814
1813
  "direction": "horizontal",
1815
- "gap": "md",
1816
- "type": "stack",
1817
1814
  "children": [
1818
1815
  {
1819
- "type": "typography",
1816
+ "variant": "caption",
1820
1817
  "content": "Created At",
1821
- "variant": "caption"
1818
+ "type": "typography"
1822
1819
  },
1823
1820
  {
1824
1821
  "type": "typography",
1825
1822
  "variant": "body",
1826
1823
  "content": "@entity.createdAt"
1827
1824
  }
1828
- ]
1825
+ ],
1826
+ "type": "stack",
1827
+ "gap": "md"
1829
1828
  },
1830
1829
  {
1831
1830
  "type": "divider"
1832
1831
  },
1833
1832
  {
1833
+ "justify": "end",
1834
+ "direction": "horizontal",
1834
1835
  "children": [
1835
1836
  {
1836
- "variant": "ghost",
1837
- "action": "CLOSE",
1838
1837
  "label": "Close",
1839
- "type": "button"
1838
+ "type": "button",
1839
+ "variant": "ghost",
1840
+ "action": "CLOSE"
1840
1841
  }
1841
1842
  ],
1842
- "gap": "sm",
1843
- "justify": "end",
1844
1843
  "type": "stack",
1845
- "direction": "horizontal"
1844
+ "gap": "sm"
1846
1845
  }
1847
1846
  ],
1848
- "direction": "vertical"
1847
+ "gap": "md",
1848
+ "type": "stack"
1849
1849
  }
1850
1850
  ]
1851
1851
  ]