@almadar/std 8.4.2 → 9.0.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 +97 -97
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +129 -129
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +127 -127
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +133 -133
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +419 -419
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +100 -100
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +112 -112
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +138 -138
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +78 -78
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +171 -171
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +202 -202
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +358 -358
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +79 -79
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +204 -204
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +190 -190
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +152 -152
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +115 -115
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1240 -1226
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +3031 -3051
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2132 -2140
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1049 -1035
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +876 -876
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +840 -840
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1248 -1248
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +816 -816
  27. package/behaviors/registry/app/organisms/std-cms.orb +587 -587
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +416 -416
  29. package/behaviors/registry/app/organisms/std-crm.orb +966 -966
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1375 -1375
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +1109 -1109
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +716 -716
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1473 -1473
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +693 -693
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1252 -1252
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +895 -895
  37. package/behaviors/registry/app/organisms/std-lms.orb +876 -876
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +790 -790
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +740 -740
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +266 -266
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +699 -699
  42. package/behaviors/registry/core/atoms/std-browse.orb +67 -67
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +97 -97
  44. package/behaviors/registry/core/atoms/std-calendar.orb +62 -62
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +188 -188
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +34 -34
  47. package/behaviors/registry/core/atoms/std-display.orb +370 -370
  48. package/behaviors/registry/core/atoms/std-drawer.orb +61 -61
  49. package/behaviors/registry/core/atoms/std-filter.orb +63 -63
  50. package/behaviors/registry/core/atoms/std-gallery.orb +55 -55
  51. package/behaviors/registry/core/atoms/std-modal.orb +19 -19
  52. package/behaviors/registry/core/atoms/std-pagination.orb +53 -53
  53. package/behaviors/registry/core/atoms/std-push.orb +50 -60
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +185 -185
  55. package/behaviors/registry/core/atoms/std-related.orb +39 -39
  56. package/behaviors/registry/core/atoms/std-search.orb +73 -73
  57. package/behaviors/registry/core/atoms/std-selection.orb +110 -110
  58. package/behaviors/registry/core/atoms/std-tabs.orb +47 -47
  59. package/behaviors/registry/core/molecules/std-cart.orb +60 -60
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +11 -11
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +140 -140
  62. package/behaviors/registry/core/molecules/std-list.orb +68 -68
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +152 -152
  64. package/behaviors/registry/game/atoms/std-collision.orb +140 -140
  65. package/behaviors/registry/game/atoms/std-combat.orb +76 -76
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +27 -27
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +47 -47
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +49 -49
  69. package/behaviors/registry/game/atoms/std-movement.orb +276 -276
  70. package/behaviors/registry/game/atoms/std-overworld.orb +64 -64
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +88 -88
  72. package/behaviors/registry/game/atoms/std-quest.orb +129 -129
  73. package/behaviors/registry/game/atoms/std-timer.orb +285 -285
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +172 -172
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +89 -89
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +281 -281
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +110 -110
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +446 -446
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +349 -349
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +550 -550
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +35 -35
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +93 -93
  83. package/behaviors/registry/service/atoms/std-service-email.orb +92 -92
  84. package/behaviors/registry/service/atoms/std-service-github.orb +111 -111
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +132 -132
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +133 -133
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +114 -114
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +140 -140
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +115 -115
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +131 -131
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +128 -128
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +1072 -1072
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +979 -979
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +97 -97
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +129 -129
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +127 -127
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +133 -133
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +419 -419
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +100 -100
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +112 -112
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +138 -138
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +78 -78
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +171 -171
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +202 -202
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +358 -358
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +79 -79
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +204 -204
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +190 -190
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +152 -152
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +115 -115
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1240 -1226
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3031 -3051
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2132 -2140
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1049 -1035
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +876 -876
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +840 -840
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1248 -1248
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +816 -816
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +587 -587
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +416 -416
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +966 -966
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1375 -1375
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +1109 -1109
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +716 -716
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1473 -1473
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +693 -693
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1252 -1252
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +895 -895
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +876 -876
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +790 -790
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +740 -740
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +266 -266
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +699 -699
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +67 -67
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +97 -97
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +62 -62
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +188 -188
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +34 -34
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +370 -370
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +61 -61
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +63 -63
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +55 -55
  144. package/dist/behaviors/registry/core/atoms/std-modal.orb +19 -19
  145. package/dist/behaviors/registry/core/atoms/std-pagination.orb +53 -53
  146. package/dist/behaviors/registry/core/atoms/std-push.orb +50 -60
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +185 -185
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +39 -39
  149. package/dist/behaviors/registry/core/atoms/std-search.orb +73 -73
  150. package/dist/behaviors/registry/core/atoms/std-selection.orb +110 -110
  151. package/dist/behaviors/registry/core/atoms/std-tabs.orb +47 -47
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +60 -60
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +11 -11
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +140 -140
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +68 -68
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +152 -152
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +140 -140
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +76 -76
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +27 -27
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +47 -47
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +49 -49
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +276 -276
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +64 -64
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +88 -88
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +129 -129
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +285 -285
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +172 -172
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +89 -89
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +281 -281
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +110 -110
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +446 -446
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +349 -349
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +550 -550
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +35 -35
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +93 -93
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +92 -92
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +111 -111
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +132 -132
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +133 -133
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +114 -114
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +140 -140
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +115 -115
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +131 -131
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +128 -128
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +1072 -1072
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +979 -979
  187. package/package.json +1 -1
@@ -50,7 +50,7 @@
50
50
  {
51
51
  "event": "COMMENT",
52
52
  "scope": "external",
53
- "payload": [
53
+ "payloadSchema": [
54
54
  {
55
55
  "name": "id",
56
56
  "type": "string"
@@ -61,7 +61,7 @@
61
61
  "event": "PostLoaded",
62
62
  "description": "Fired when Post finishes loading",
63
63
  "scope": "internal",
64
- "payload": [
64
+ "payloadSchema": [
65
65
  {
66
66
  "name": "data",
67
67
  "type": "[Post]"
@@ -72,7 +72,7 @@
72
72
  "event": "PostLoadFailed",
73
73
  "description": "Fired when Post fails to load",
74
74
  "scope": "internal",
75
- "payload": [
75
+ "payloadSchema": [
76
76
  {
77
77
  "name": "error",
78
78
  "type": "string"
@@ -86,7 +86,7 @@
86
86
  {
87
87
  "event": "PostSaved",
88
88
  "scope": "internal",
89
- "payload": [
89
+ "payloadSchema": [
90
90
  {
91
91
  "name": "id",
92
92
  "type": "string"
@@ -96,7 +96,7 @@
96
96
  {
97
97
  "event": "PostSaveFailed",
98
98
  "scope": "internal",
99
- "payload": [
99
+ "payloadSchema": [
100
100
  {
101
101
  "name": "error",
102
102
  "type": "string"
@@ -110,7 +110,7 @@
110
110
  {
111
111
  "event": "CommentSaved",
112
112
  "scope": "internal",
113
- "payload": [
113
+ "payloadSchema": [
114
114
  {
115
115
  "name": "id",
116
116
  "type": "string"
@@ -120,7 +120,7 @@
120
120
  {
121
121
  "event": "CommentSaveFailed",
122
122
  "scope": "internal",
123
- "payload": [
123
+ "payloadSchema": [
124
124
  {
125
125
  "name": "error",
126
126
  "type": "string"
@@ -147,7 +147,7 @@
147
147
  {
148
148
  "key": "PostLoaded",
149
149
  "name": "Post loaded",
150
- "payload": [
150
+ "payloadSchema": [
151
151
  {
152
152
  "name": "data",
153
153
  "type": "[Post]"
@@ -157,7 +157,7 @@
157
157
  {
158
158
  "key": "PostLoadFailed",
159
159
  "name": "Post load failed",
160
- "payload": [
160
+ "payloadSchema": [
161
161
  {
162
162
  "name": "error",
163
163
  "type": "string"
@@ -175,7 +175,7 @@
175
175
  {
176
176
  "key": "PostSaved",
177
177
  "name": "Post saved",
178
- "payload": [
178
+ "payloadSchema": [
179
179
  {
180
180
  "name": "id",
181
181
  "type": "string"
@@ -185,7 +185,7 @@
185
185
  {
186
186
  "key": "PostSaveFailed",
187
187
  "name": "Post save failed",
188
- "payload": [
188
+ "payloadSchema": [
189
189
  {
190
190
  "name": "error",
191
191
  "type": "string"
@@ -199,7 +199,7 @@
199
199
  {
200
200
  "key": "CommentSaved",
201
201
  "name": "Comment saved",
202
- "payload": [
202
+ "payloadSchema": [
203
203
  {
204
204
  "name": "id",
205
205
  "type": "string"
@@ -209,7 +209,7 @@
209
209
  {
210
210
  "key": "CommentSaveFailed",
211
211
  "name": "Comment save failed",
212
- "payload": [
212
+ "payloadSchema": [
213
213
  {
214
214
  "name": "error",
215
215
  "type": "string"
@@ -223,7 +223,7 @@
223
223
  {
224
224
  "key": "VIEW",
225
225
  "name": "View",
226
- "payload": [
226
+ "payloadSchema": [
227
227
  {
228
228
  "name": "id",
229
229
  "type": "string",
@@ -256,22 +256,22 @@
256
256
  "render-ui",
257
257
  "main",
258
258
  {
259
- "align": "center",
260
- "gap": "md",
261
259
  "direction": "vertical",
262
- "className": "py-12",
260
+ "type": "stack",
261
+ "align": "center",
263
262
  "children": [
264
263
  {
265
264
  "type": "spinner"
266
265
  },
267
266
  {
268
- "variant": "caption",
269
267
  "color": "muted",
270
268
  "type": "typography",
271
- "content": "Loading…"
269
+ "content": "Loading…",
270
+ "variant": "caption"
272
271
  }
273
272
  ],
274
- "type": "stack"
273
+ "className": "py-12",
274
+ "gap": "md"
275
275
  }
276
276
  ]
277
277
  ]
@@ -285,34 +285,20 @@
285
285
  "render-ui",
286
286
  "main",
287
287
  {
288
- "appName": "SocialFeed",
289
- "navItems": [
290
- {
291
- "href": "/feed",
292
- "label": "Feed",
293
- "icon": "layout-list"
294
- },
295
- {
296
- "label": "Messages",
297
- "href": "/messages",
298
- "icon": "message-circle"
299
- }
300
- ],
301
- "type": "dashboard-layout",
302
288
  "children": [
303
289
  {
304
- "className": "max-w-5xl mx-auto w-full",
290
+ "direction": "vertical",
305
291
  "gap": "lg",
292
+ "className": "max-w-5xl mx-auto w-full",
293
+ "type": "stack",
306
294
  "children": [
307
295
  {
308
- "direction": "horizontal",
309
296
  "align": "center",
310
- "justify": "between",
311
297
  "gap": "md",
298
+ "justify": "between",
312
299
  "children": [
313
300
  {
314
- "type": "stack",
315
- "gap": "sm",
301
+ "align": "center",
316
302
  "children": [
317
303
  {
318
304
  "type": "icon",
@@ -320,35 +306,47 @@
320
306
  },
321
307
  {
322
308
  "type": "typography",
323
- "variant": "h2",
324
- "content": "Feed"
309
+ "content": "Feed",
310
+ "variant": "h2"
325
311
  }
326
312
  ],
327
- "align": "center",
328
- "direction": "horizontal"
313
+ "direction": "horizontal",
314
+ "gap": "sm",
315
+ "type": "stack"
329
316
  },
330
317
  {
318
+ "gap": "sm",
331
319
  "type": "stack",
332
320
  "children": [
333
321
  {
322
+ "label": "New Post",
334
323
  "type": "button",
335
- "action": "CREATE",
324
+ "variant": "primary",
336
325
  "icon": "plus",
337
- "label": "New Post",
338
- "variant": "primary"
326
+ "action": "CREATE"
339
327
  }
340
328
  ],
341
- "gap": "sm",
342
329
  "direction": "horizontal"
343
330
  }
344
331
  ],
345
- "type": "stack"
332
+ "type": "stack",
333
+ "direction": "horizontal"
346
334
  },
347
335
  {
348
336
  "type": "divider"
349
337
  },
350
338
  {
351
339
  "entity": "@payload.data",
340
+ "itemActions": [
341
+ {
342
+ "event": "VIEW",
343
+ "variant": "ghost",
344
+ "label": "View"
345
+ }
346
+ ],
347
+ "gap": "sm",
348
+ "variant": "card",
349
+ "type": "data-list",
352
350
  "columns": [
353
351
  {
354
352
  "name": "title",
@@ -361,37 +359,39 @@
361
359
  "format": "number"
362
360
  },
363
361
  {
364
- "name": "author",
365
- "variant": "body"
362
+ "variant": "body",
363
+ "name": "author"
366
364
  },
367
365
  {
368
366
  "name": "content",
369
367
  "variant": "body"
370
368
  },
371
369
  {
372
- "label": "Posted",
373
370
  "format": "date",
374
371
  "name": "createdAt",
372
+ "label": "Posted",
375
373
  "variant": "caption"
376
374
  }
377
375
  ],
378
- "variant": "card",
379
- "gap": "sm",
380
- "type": "data-list",
381
- "fields": [],
382
- "itemActions": [
383
- {
384
- "event": "VIEW",
385
- "variant": "ghost",
386
- "label": "View"
387
- }
388
- ]
376
+ "fields": []
389
377
  }
390
- ],
391
- "direction": "vertical",
392
- "type": "stack"
378
+ ]
393
379
  }
394
- ]
380
+ ],
381
+ "type": "dashboard-layout",
382
+ "navItems": [
383
+ {
384
+ "icon": "layout-list",
385
+ "label": "Feed",
386
+ "href": "/feed"
387
+ },
388
+ {
389
+ "label": "Messages",
390
+ "href": "/messages",
391
+ "icon": "message-circle"
392
+ }
393
+ ],
394
+ "appName": "SocialFeed"
395
395
  }
396
396
  ]
397
397
  ]
@@ -405,36 +405,36 @@
405
405
  "render-ui",
406
406
  "main",
407
407
  {
408
- "align": "center",
408
+ "gap": "md",
409
409
  "children": [
410
410
  {
411
411
  "name": "alert-triangle",
412
- "type": "icon",
413
- "color": "destructive"
412
+ "color": "destructive",
413
+ "type": "icon"
414
414
  },
415
415
  {
416
+ "type": "typography",
416
417
  "variant": "h3",
417
- "content": "Failed to load post",
418
- "type": "typography"
418
+ "content": "Failed to load post"
419
419
  },
420
420
  {
421
+ "content": "@payload.error",
421
422
  "color": "muted",
422
423
  "variant": "body",
423
- "type": "typography",
424
- "content": "@payload.error"
424
+ "type": "typography"
425
425
  },
426
426
  {
427
+ "variant": "primary",
427
428
  "type": "button",
428
429
  "action": "INIT",
429
- "variant": "primary",
430
- "label": "Retry",
431
- "icon": "rotate-ccw"
430
+ "icon": "rotate-ccw",
431
+ "label": "Retry"
432
432
  }
433
433
  ],
434
- "className": "py-12",
435
434
  "type": "stack",
436
435
  "direction": "vertical",
437
- "gap": "md"
436
+ "className": "py-12",
437
+ "align": "center"
438
438
  }
439
439
  ]
440
440
  ]
@@ -452,7 +452,7 @@
452
452
  "event": "PostLoadFailed",
453
453
  "description": "Fired when Post fails to load",
454
454
  "scope": "internal",
455
- "payload": [
455
+ "payloadSchema": [
456
456
  {
457
457
  "name": "error",
458
458
  "type": "string"
@@ -467,7 +467,7 @@
467
467
  "event": "PostLoaded",
468
468
  "description": "Fired when Post finishes loading",
469
469
  "scope": "internal",
470
- "payload": [
470
+ "payloadSchema": [
471
471
  {
472
472
  "name": "data",
473
473
  "type": "[Post]"
@@ -477,7 +477,7 @@
477
477
  {
478
478
  "event": "PostSaveFailed",
479
479
  "scope": "internal",
480
- "payload": [
480
+ "payloadSchema": [
481
481
  {
482
482
  "name": "error",
483
483
  "type": "string"
@@ -491,7 +491,7 @@
491
491
  {
492
492
  "event": "PostSaved",
493
493
  "scope": "internal",
494
- "payload": [
494
+ "payloadSchema": [
495
495
  {
496
496
  "name": "id",
497
497
  "type": "string"
@@ -525,7 +525,7 @@
525
525
  {
526
526
  "key": "SAVE",
527
527
  "name": "Save",
528
- "payload": [
528
+ "payloadSchema": [
529
529
  {
530
530
  "name": "data",
531
531
  "type": "object",
@@ -536,7 +536,7 @@
536
536
  {
537
537
  "key": "PostLoadFailed",
538
538
  "name": "Post load failed",
539
- "payload": [
539
+ "payloadSchema": [
540
540
  {
541
541
  "name": "error",
542
542
  "type": "string"
@@ -550,7 +550,7 @@
550
550
  {
551
551
  "key": "PostLoaded",
552
552
  "name": "Post loaded",
553
- "payload": [
553
+ "payloadSchema": [
554
554
  {
555
555
  "name": "data",
556
556
  "type": "[Post]"
@@ -560,7 +560,7 @@
560
560
  {
561
561
  "key": "PostSaveFailed",
562
562
  "name": "Post save failed",
563
- "payload": [
563
+ "payloadSchema": [
564
564
  {
565
565
  "name": "error",
566
566
  "type": "string"
@@ -574,7 +574,7 @@
574
574
  {
575
575
  "key": "PostSaved",
576
576
  "name": "Post saved",
577
- "payload": [
577
+ "payloadSchema": [
578
578
  {
579
579
  "name": "id",
580
580
  "type": "string"
@@ -604,8 +604,8 @@
604
604
  "Post",
605
605
  {
606
606
  "emit": {
607
- "failure": "PostLoadFailed",
608
- "success": "PostLoaded"
607
+ "success": "PostLoaded",
608
+ "failure": "PostLoadFailed"
609
609
  }
610
610
  }
611
611
  ],
@@ -614,21 +614,21 @@
614
614
  "modal",
615
615
  {
616
616
  "type": "stack",
617
- "gap": "md",
618
617
  "direction": "vertical",
618
+ "gap": "md",
619
619
  "children": [
620
620
  {
621
+ "gap": "sm",
621
622
  "direction": "horizontal",
622
623
  "type": "stack",
623
- "gap": "sm",
624
624
  "children": [
625
625
  {
626
- "type": "icon",
627
- "name": "plus-circle"
626
+ "name": "plus-circle",
627
+ "type": "icon"
628
628
  },
629
629
  {
630
- "content": "Create Post",
631
630
  "variant": "h3",
631
+ "content": "Create Post",
632
632
  "type": "typography"
633
633
  }
634
634
  ]
@@ -637,6 +637,8 @@
637
637
  "type": "divider"
638
638
  },
639
639
  {
640
+ "submitEvent": "SAVE",
641
+ "type": "form-section",
640
642
  "fields": [
641
643
  "title",
642
644
  "content",
@@ -644,8 +646,6 @@
644
646
  "likes"
645
647
  ],
646
648
  "cancelEvent": "CLOSE",
647
- "type": "form-section",
648
- "submitEvent": "SAVE",
649
649
  "mode": "create"
650
650
  }
651
651
  ]
@@ -689,8 +689,8 @@
689
689
  "@payload.data",
690
690
  {
691
691
  "emit": {
692
- "failure": "PostSaveFailed",
693
- "success": "PostSaved"
692
+ "success": "PostSaved",
693
+ "failure": "PostSaveFailed"
694
694
  }
695
695
  }
696
696
  ],
@@ -721,7 +721,7 @@
721
721
  "event": "PostLoaded",
722
722
  "description": "Fired when Post finishes loading",
723
723
  "scope": "internal",
724
- "payload": [
724
+ "payloadSchema": [
725
725
  {
726
726
  "name": "data",
727
727
  "type": "[Post]"
@@ -732,7 +732,7 @@
732
732
  "event": "PostLoadFailed",
733
733
  "description": "Fired when Post fails to load",
734
734
  "scope": "internal",
735
- "payload": [
735
+ "payloadSchema": [
736
736
  {
737
737
  "name": "error",
738
738
  "type": "string"
@@ -762,7 +762,7 @@
762
762
  {
763
763
  "key": "VIEW",
764
764
  "name": "View",
765
- "payload": [
765
+ "payloadSchema": [
766
766
  {
767
767
  "name": "id",
768
768
  "type": "string",
@@ -777,7 +777,7 @@
777
777
  {
778
778
  "key": "SAVE",
779
779
  "name": "Save",
780
- "payload": [
780
+ "payloadSchema": [
781
781
  {
782
782
  "name": "data",
783
783
  "type": "object",
@@ -788,7 +788,7 @@
788
788
  {
789
789
  "key": "PostLoaded",
790
790
  "name": "Post loaded",
791
- "payload": [
791
+ "payloadSchema": [
792
792
  {
793
793
  "name": "data",
794
794
  "type": "[Post]"
@@ -798,7 +798,7 @@
798
798
  {
799
799
  "key": "PostLoadFailed",
800
800
  "name": "Post load failed",
801
- "payload": [
801
+ "payloadSchema": [
802
802
  {
803
803
  "name": "error",
804
804
  "type": "string"
@@ -842,12 +842,15 @@
842
842
  "render-ui",
843
843
  "modal",
844
844
  {
845
+ "gap": "md",
845
846
  "type": "stack",
846
847
  "direction": "vertical",
847
- "gap": "md",
848
848
  "children": [
849
849
  {
850
850
  "type": "stack",
851
+ "direction": "horizontal",
852
+ "gap": "sm",
853
+ "align": "center",
851
854
  "children": [
852
855
  {
853
856
  "type": "icon",
@@ -855,50 +858,47 @@
855
858
  },
856
859
  {
857
860
  "content": "@entity.title",
858
- "variant": "h3",
859
- "type": "typography"
861
+ "type": "typography",
862
+ "variant": "h3"
860
863
  }
861
- ],
862
- "align": "center",
863
- "gap": "sm",
864
- "direction": "horizontal"
864
+ ]
865
865
  },
866
866
  {
867
867
  "type": "divider"
868
868
  },
869
869
  {
870
- "direction": "horizontal",
870
+ "type": "stack",
871
+ "gap": "md",
871
872
  "children": [
872
873
  {
873
- "content": "Title",
874
+ "variant": "caption",
874
875
  "type": "typography",
875
- "variant": "caption"
876
+ "content": "Title"
876
877
  },
877
878
  {
878
- "type": "typography",
879
879
  "content": "@entity.title",
880
+ "type": "typography",
880
881
  "variant": "body"
881
882
  }
882
883
  ],
883
- "type": "stack",
884
- "gap": "md"
884
+ "direction": "horizontal"
885
885
  },
886
886
  {
887
- "type": "stack",
888
- "direction": "horizontal",
889
887
  "gap": "md",
890
888
  "children": [
891
889
  {
892
890
  "content": "Content",
893
- "type": "typography",
894
- "variant": "caption"
891
+ "variant": "caption",
892
+ "type": "typography"
895
893
  },
896
894
  {
897
895
  "variant": "body",
898
896
  "content": "@entity.content",
899
897
  "type": "typography"
900
898
  }
901
- ]
899
+ ],
900
+ "type": "stack",
901
+ "direction": "horizontal"
902
902
  },
903
903
  {
904
904
  "children": [
@@ -913,16 +913,15 @@
913
913
  "content": "@entity.author"
914
914
  }
915
915
  ],
916
- "direction": "horizontal",
916
+ "gap": "md",
917
917
  "type": "stack",
918
- "gap": "md"
918
+ "direction": "horizontal"
919
919
  },
920
920
  {
921
- "direction": "horizontal",
922
921
  "children": [
923
922
  {
924
- "content": "Created At",
925
923
  "variant": "caption",
924
+ "content": "Created At",
926
925
  "type": "typography"
927
926
  },
928
927
  {
@@ -931,42 +930,43 @@
931
930
  "type": "typography"
932
931
  }
933
932
  ],
933
+ "gap": "md",
934
934
  "type": "stack",
935
- "gap": "md"
935
+ "direction": "horizontal"
936
936
  },
937
937
  {
938
- "direction": "horizontal",
938
+ "type": "stack",
939
939
  "gap": "md",
940
940
  "children": [
941
941
  {
942
942
  "content": "Likes",
943
- "variant": "caption",
944
- "type": "typography"
943
+ "type": "typography",
944
+ "variant": "caption"
945
945
  },
946
946
  {
947
- "content": "@entity.likes",
948
947
  "type": "typography",
948
+ "content": "@entity.likes",
949
949
  "variant": "body"
950
950
  }
951
951
  ],
952
- "type": "stack"
952
+ "direction": "horizontal"
953
953
  },
954
954
  {
955
955
  "type": "divider"
956
956
  },
957
957
  {
958
+ "type": "stack",
958
959
  "direction": "horizontal",
960
+ "justify": "end",
959
961
  "gap": "sm",
960
- "type": "stack",
961
962
  "children": [
962
963
  {
963
964
  "action": "CLOSE",
964
- "type": "button",
965
965
  "label": "Close",
966
- "variant": "ghost"
966
+ "variant": "ghost",
967
+ "type": "button"
967
968
  }
968
- ],
969
- "justify": "end"
969
+ ]
970
970
  }
971
971
  ]
972
972
  }
@@ -1080,7 +1080,7 @@
1080
1080
  "event": "CommentLoaded",
1081
1081
  "description": "Fired when Comment finishes loading",
1082
1082
  "scope": "internal",
1083
- "payload": [
1083
+ "payloadSchema": [
1084
1084
  {
1085
1085
  "name": "data",
1086
1086
  "type": "[Comment]"
@@ -1091,7 +1091,7 @@
1091
1091
  "event": "CommentLoadFailed",
1092
1092
  "description": "Fired when Comment fails to load",
1093
1093
  "scope": "internal",
1094
- "payload": [
1094
+ "payloadSchema": [
1095
1095
  {
1096
1096
  "name": "error",
1097
1097
  "type": "string"
@@ -1135,7 +1135,7 @@
1135
1135
  {
1136
1136
  "key": "CommentLoaded",
1137
1137
  "name": "Comment loaded",
1138
- "payload": [
1138
+ "payloadSchema": [
1139
1139
  {
1140
1140
  "name": "data",
1141
1141
  "type": "[Comment]"
@@ -1145,7 +1145,7 @@
1145
1145
  {
1146
1146
  "key": "CommentLoadFailed",
1147
1147
  "name": "Comment load failed",
1148
- "payload": [
1148
+ "payloadSchema": [
1149
1149
  {
1150
1150
  "name": "error",
1151
1151
  "type": "string"
@@ -1178,21 +1178,21 @@
1178
1178
  "main",
1179
1179
  {
1180
1180
  "gap": "md",
1181
+ "align": "center",
1182
+ "type": "stack",
1181
1183
  "className": "py-12",
1184
+ "direction": "vertical",
1182
1185
  "children": [
1183
1186
  {
1184
1187
  "type": "spinner"
1185
1188
  },
1186
1189
  {
1187
- "content": "Loading…",
1188
- "type": "typography",
1189
1190
  "variant": "caption",
1190
- "color": "muted"
1191
+ "content": "Loading…",
1192
+ "color": "muted",
1193
+ "type": "typography"
1191
1194
  }
1192
- ],
1193
- "type": "stack",
1194
- "align": "center",
1195
- "direction": "vertical"
1195
+ ]
1196
1196
  }
1197
1197
  ]
1198
1198
  ]
@@ -1206,6 +1206,8 @@
1206
1206
  "render-ui",
1207
1207
  "main",
1208
1208
  {
1209
+ "type": "dashboard-layout",
1210
+ "appName": "SocialFeed",
1209
1211
  "navItems": [
1210
1212
  {
1211
1213
  "label": "Feed",
@@ -1213,94 +1215,92 @@
1213
1215
  "icon": "layout-list"
1214
1216
  },
1215
1217
  {
1216
- "icon": "message-circle",
1218
+ "href": "/messages",
1217
1219
  "label": "Messages",
1218
- "href": "/messages"
1220
+ "icon": "message-circle"
1219
1221
  }
1220
1222
  ],
1221
- "appName": "SocialFeed",
1222
- "type": "dashboard-layout",
1223
1223
  "children": [
1224
1224
  {
1225
+ "gap": "lg",
1226
+ "type": "stack",
1227
+ "direction": "vertical",
1228
+ "className": "max-w-5xl mx-auto w-full",
1225
1229
  "children": [
1226
1230
  {
1227
- "gap": "md",
1228
1231
  "justify": "between",
1232
+ "gap": "md",
1233
+ "type": "stack",
1234
+ "align": "center",
1229
1235
  "children": [
1230
1236
  {
1237
+ "type": "stack",
1231
1238
  "direction": "horizontal",
1232
1239
  "align": "center",
1233
- "gap": "sm",
1234
- "type": "stack",
1235
1240
  "children": [
1236
1241
  {
1237
1242
  "type": "icon",
1238
1243
  "name": "message-circle"
1239
1244
  },
1240
1245
  {
1241
- "content": "Messages",
1242
1246
  "type": "typography",
1243
- "variant": "h2"
1247
+ "variant": "h2",
1248
+ "content": "Messages"
1244
1249
  }
1245
- ]
1250
+ ],
1251
+ "gap": "sm"
1246
1252
  },
1247
1253
  {
1248
- "gap": "sm",
1249
1254
  "type": "stack",
1250
1255
  "children": [
1251
1256
  {
1252
- "label": "Compose",
1253
- "variant": "primary",
1254
1257
  "type": "button",
1255
1258
  "action": "COMPOSE",
1259
+ "label": "Compose",
1260
+ "variant": "primary",
1256
1261
  "icon": "edit"
1257
1262
  }
1258
1263
  ],
1259
- "direction": "horizontal"
1264
+ "direction": "horizontal",
1265
+ "gap": "sm"
1260
1266
  }
1261
1267
  ],
1262
- "align": "center",
1263
- "type": "stack",
1264
1268
  "direction": "horizontal"
1265
1269
  },
1266
1270
  {
1267
1271
  "type": "divider"
1268
1272
  },
1269
1273
  {
1270
- "variant": "card",
1271
- "itemActions": [
1272
- {
1273
- "variant": "ghost",
1274
- "label": "View",
1275
- "event": "VIEW"
1276
- }
1277
- ],
1278
- "fields": [],
1279
- "gap": "sm",
1280
- "type": "data-list",
1281
- "entity": "@payload.data",
1282
1274
  "columns": [
1283
1275
  {
1284
- "variant": "h4",
1276
+ "icon": "message-circle",
1285
1277
  "name": "author",
1286
- "icon": "message-circle"
1278
+ "variant": "h4"
1287
1279
  },
1288
1280
  {
1289
- "variant": "body",
1290
- "name": "body"
1281
+ "name": "body",
1282
+ "variant": "body"
1291
1283
  },
1292
1284
  {
1293
- "format": "date",
1285
+ "variant": "caption",
1294
1286
  "name": "createdAt",
1295
- "variant": "caption"
1287
+ "format": "date"
1288
+ }
1289
+ ],
1290
+ "entity": "@payload.data",
1291
+ "fields": [],
1292
+ "type": "data-list",
1293
+ "variant": "card",
1294
+ "gap": "sm",
1295
+ "itemActions": [
1296
+ {
1297
+ "label": "View",
1298
+ "event": "VIEW",
1299
+ "variant": "ghost"
1296
1300
  }
1297
1301
  ]
1298
1302
  }
1299
- ],
1300
- "gap": "lg",
1301
- "type": "stack",
1302
- "direction": "vertical",
1303
- "className": "max-w-5xl mx-auto w-full"
1303
+ ]
1304
1304
  }
1305
1305
  ]
1306
1306
  }
@@ -1316,11 +1316,12 @@
1316
1316
  "render-ui",
1317
1317
  "main",
1318
1318
  {
1319
- "align": "center",
1319
+ "type": "stack",
1320
+ "className": "py-12",
1320
1321
  "children": [
1321
1322
  {
1322
- "type": "icon",
1323
1323
  "color": "destructive",
1324
+ "type": "icon",
1324
1325
  "name": "alert-triangle"
1325
1326
  },
1326
1327
  {
@@ -1329,23 +1330,22 @@
1329
1330
  "content": "Failed to load comment"
1330
1331
  },
1331
1332
  {
1333
+ "type": "typography",
1332
1334
  "variant": "body",
1333
1335
  "color": "muted",
1334
- "content": "@payload.error",
1335
- "type": "typography"
1336
+ "content": "@payload.error"
1336
1337
  },
1337
1338
  {
1338
1339
  "variant": "primary",
1339
- "action": "INIT",
1340
- "icon": "rotate-ccw",
1341
1340
  "label": "Retry",
1342
- "type": "button"
1341
+ "action": "INIT",
1342
+ "type": "button",
1343
+ "icon": "rotate-ccw"
1343
1344
  }
1344
1345
  ],
1345
- "type": "stack",
1346
- "gap": "md",
1347
1346
  "direction": "vertical",
1348
- "className": "py-12"
1347
+ "gap": "md",
1348
+ "align": "center"
1349
1349
  }
1350
1350
  ]
1351
1351
  ]
@@ -1366,7 +1366,7 @@
1366
1366
  "event": "CommentLoadFailed",
1367
1367
  "description": "Fired when Comment fails to load",
1368
1368
  "scope": "internal",
1369
- "payload": [
1369
+ "payloadSchema": [
1370
1370
  {
1371
1371
  "name": "error",
1372
1372
  "type": "string"
@@ -1381,7 +1381,7 @@
1381
1381
  "event": "CommentLoaded",
1382
1382
  "description": "Fired when Comment finishes loading",
1383
1383
  "scope": "internal",
1384
- "payload": [
1384
+ "payloadSchema": [
1385
1385
  {
1386
1386
  "name": "data",
1387
1387
  "type": "[Comment]"
@@ -1391,7 +1391,7 @@
1391
1391
  {
1392
1392
  "event": "CommentSaveFailed",
1393
1393
  "scope": "internal",
1394
- "payload": [
1394
+ "payloadSchema": [
1395
1395
  {
1396
1396
  "name": "error",
1397
1397
  "type": "string"
@@ -1405,7 +1405,7 @@
1405
1405
  {
1406
1406
  "event": "CommentSaved",
1407
1407
  "scope": "internal",
1408
- "payload": [
1408
+ "payloadSchema": [
1409
1409
  {
1410
1410
  "name": "id",
1411
1411
  "type": "string"
@@ -1439,7 +1439,7 @@
1439
1439
  {
1440
1440
  "key": "SEND",
1441
1441
  "name": "Send",
1442
- "payload": [
1442
+ "payloadSchema": [
1443
1443
  {
1444
1444
  "name": "data",
1445
1445
  "type": "string"
@@ -1449,7 +1449,7 @@
1449
1449
  {
1450
1450
  "key": "CommentLoadFailed",
1451
1451
  "name": "Comment load failed",
1452
- "payload": [
1452
+ "payloadSchema": [
1453
1453
  {
1454
1454
  "name": "error",
1455
1455
  "type": "string"
@@ -1463,7 +1463,7 @@
1463
1463
  {
1464
1464
  "key": "CommentLoaded",
1465
1465
  "name": "Comment loaded",
1466
- "payload": [
1466
+ "payloadSchema": [
1467
1467
  {
1468
1468
  "name": "data",
1469
1469
  "type": "[Comment]"
@@ -1473,7 +1473,7 @@
1473
1473
  {
1474
1474
  "key": "CommentSaveFailed",
1475
1475
  "name": "Comment save failed",
1476
- "payload": [
1476
+ "payloadSchema": [
1477
1477
  {
1478
1478
  "name": "error",
1479
1479
  "type": "string"
@@ -1487,7 +1487,7 @@
1487
1487
  {
1488
1488
  "key": "CommentSaved",
1489
1489
  "name": "Comment saved",
1490
- "payload": [
1490
+ "payloadSchema": [
1491
1491
  {
1492
1492
  "name": "id",
1493
1493
  "type": "string"
@@ -1516,15 +1516,12 @@
1516
1516
  "render-ui",
1517
1517
  "modal",
1518
1518
  {
1519
- "gap": "md",
1520
- "direction": "vertical",
1521
- "type": "stack",
1522
1519
  "children": [
1523
1520
  {
1524
1521
  "children": [
1525
1522
  {
1526
- "type": "icon",
1527
- "name": "edit"
1523
+ "name": "edit",
1524
+ "type": "icon"
1528
1525
  },
1529
1526
  {
1530
1527
  "type": "typography",
@@ -1533,24 +1530,27 @@
1533
1530
  }
1534
1531
  ],
1535
1532
  "type": "stack",
1536
- "direction": "horizontal",
1537
- "gap": "sm"
1533
+ "gap": "sm",
1534
+ "direction": "horizontal"
1538
1535
  },
1539
1536
  {
1540
1537
  "type": "divider"
1541
1538
  },
1542
1539
  {
1540
+ "cancelEvent": "CLOSE",
1541
+ "type": "form-section",
1543
1542
  "mode": "create",
1543
+ "submitEvent": "SEND",
1544
1544
  "fields": [
1545
1545
  "body",
1546
1546
  "author",
1547
1547
  "postId"
1548
- ],
1549
- "type": "form-section",
1550
- "submitEvent": "SEND",
1551
- "cancelEvent": "CLOSE"
1548
+ ]
1552
1549
  }
1553
- ]
1550
+ ],
1551
+ "gap": "md",
1552
+ "direction": "vertical",
1553
+ "type": "stack"
1554
1554
  }
1555
1555
  ]
1556
1556
  ]
@@ -1591,8 +1591,8 @@
1591
1591
  "@payload.data",
1592
1592
  {
1593
1593
  "emit": {
1594
- "failure": "CommentSaveFailed",
1595
- "success": "CommentSaved"
1594
+ "success": "CommentSaved",
1595
+ "failure": "CommentSaveFailed"
1596
1596
  }
1597
1597
  }
1598
1598
  ],
@@ -1623,7 +1623,7 @@
1623
1623
  "event": "CommentLoaded",
1624
1624
  "description": "Fired when Comment finishes loading",
1625
1625
  "scope": "internal",
1626
- "payload": [
1626
+ "payloadSchema": [
1627
1627
  {
1628
1628
  "name": "data",
1629
1629
  "type": "[Comment]"
@@ -1634,7 +1634,7 @@
1634
1634
  "event": "CommentLoadFailed",
1635
1635
  "description": "Fired when Comment fails to load",
1636
1636
  "scope": "internal",
1637
- "payload": [
1637
+ "payloadSchema": [
1638
1638
  {
1639
1639
  "name": "error",
1640
1640
  "type": "string"
@@ -1664,7 +1664,7 @@
1664
1664
  {
1665
1665
  "key": "VIEW",
1666
1666
  "name": "View",
1667
- "payload": [
1667
+ "payloadSchema": [
1668
1668
  {
1669
1669
  "name": "id",
1670
1670
  "type": "string"
@@ -1682,7 +1682,7 @@
1682
1682
  {
1683
1683
  "key": "CommentLoaded",
1684
1684
  "name": "Comment loaded",
1685
- "payload": [
1685
+ "payloadSchema": [
1686
1686
  {
1687
1687
  "name": "data",
1688
1688
  "type": "[Comment]"
@@ -1692,7 +1692,7 @@
1692
1692
  {
1693
1693
  "key": "CommentLoadFailed",
1694
1694
  "name": "Comment load failed",
1695
- "payload": [
1695
+ "payloadSchema": [
1696
1696
  {
1697
1697
  "name": "error",
1698
1698
  "type": "string"
@@ -1725,58 +1725,62 @@
1725
1725
  "fetch",
1726
1726
  "Comment",
1727
1727
  {
1728
+ "id": "@payload.id",
1728
1729
  "emit": {
1729
- "success": "CommentLoaded",
1730
- "failure": "CommentLoadFailed"
1731
- },
1732
- "id": "@payload.id"
1730
+ "failure": "CommentLoadFailed",
1731
+ "success": "CommentLoaded"
1732
+ }
1733
1733
  }
1734
1734
  ],
1735
1735
  [
1736
1736
  "render-ui",
1737
1737
  "modal",
1738
1738
  {
1739
+ "type": "stack",
1739
1740
  "direction": "vertical",
1741
+ "gap": "md",
1740
1742
  "children": [
1741
1743
  {
1742
- "gap": "sm",
1743
1744
  "type": "stack",
1744
- "direction": "horizontal",
1745
1745
  "children": [
1746
1746
  {
1747
1747
  "name": "eye",
1748
1748
  "type": "icon"
1749
1749
  },
1750
1750
  {
1751
- "type": "typography",
1751
+ "variant": "h3",
1752
1752
  "content": "@entity.body",
1753
- "variant": "h3"
1753
+ "type": "typography"
1754
1754
  }
1755
1755
  ],
1756
+ "direction": "horizontal",
1757
+ "gap": "sm",
1756
1758
  "align": "center"
1757
1759
  },
1758
1760
  {
1759
1761
  "type": "divider"
1760
1762
  },
1761
1763
  {
1764
+ "type": "stack",
1765
+ "direction": "horizontal",
1766
+ "gap": "md",
1762
1767
  "children": [
1763
1768
  {
1764
- "variant": "caption",
1765
1769
  "content": "Body",
1766
- "type": "typography"
1770
+ "type": "typography",
1771
+ "variant": "caption"
1767
1772
  },
1768
1773
  {
1769
- "variant": "body",
1770
1774
  "content": "@entity.body",
1775
+ "variant": "body",
1771
1776
  "type": "typography"
1772
1777
  }
1773
- ],
1774
- "type": "stack",
1775
- "gap": "md",
1776
- "direction": "horizontal"
1778
+ ]
1777
1779
  },
1778
1780
  {
1779
1781
  "type": "stack",
1782
+ "direction": "horizontal",
1783
+ "gap": "md",
1780
1784
  "children": [
1781
1785
  {
1782
1786
  "type": "typography",
@@ -1784,68 +1788,64 @@
1784
1788
  "variant": "caption"
1785
1789
  },
1786
1790
  {
1787
- "variant": "body",
1791
+ "content": "@entity.author",
1788
1792
  "type": "typography",
1789
- "content": "@entity.author"
1793
+ "variant": "body"
1790
1794
  }
1791
- ],
1792
- "gap": "md",
1793
- "direction": "horizontal"
1795
+ ]
1794
1796
  },
1795
1797
  {
1796
- "gap": "md",
1797
1798
  "direction": "horizontal",
1799
+ "gap": "md",
1798
1800
  "children": [
1799
1801
  {
1800
- "variant": "caption",
1802
+ "content": "Post ID",
1801
1803
  "type": "typography",
1802
- "content": "Post ID"
1804
+ "variant": "caption"
1803
1805
  },
1804
1806
  {
1805
- "content": "@entity.postId",
1807
+ "variant": "body",
1806
1808
  "type": "typography",
1807
- "variant": "body"
1809
+ "content": "@entity.postId"
1808
1810
  }
1809
1811
  ],
1810
1812
  "type": "stack"
1811
1813
  },
1812
1814
  {
1813
- "direction": "horizontal",
1814
1815
  "children": [
1815
1816
  {
1816
- "variant": "caption",
1817
+ "type": "typography",
1817
1818
  "content": "Created At",
1818
- "type": "typography"
1819
+ "variant": "caption"
1819
1820
  },
1820
1821
  {
1822
+ "content": "@entity.createdAt",
1821
1823
  "type": "typography",
1822
- "variant": "body",
1823
- "content": "@entity.createdAt"
1824
+ "variant": "body"
1824
1825
  }
1825
1826
  ],
1826
1827
  "type": "stack",
1828
+ "direction": "horizontal",
1827
1829
  "gap": "md"
1828
1830
  },
1829
1831
  {
1830
1832
  "type": "divider"
1831
1833
  },
1832
1834
  {
1833
- "justify": "end",
1834
1835
  "direction": "horizontal",
1836
+ "gap": "sm",
1837
+ "type": "stack",
1838
+ "justify": "end",
1835
1839
  "children": [
1836
1840
  {
1837
- "label": "Close",
1838
1841
  "type": "button",
1839
- "variant": "ghost",
1840
- "action": "CLOSE"
1842
+ "action": "CLOSE",
1843
+ "label": "Close",
1844
+ "variant": "ghost"
1841
1845
  }
1842
- ],
1843
- "type": "stack",
1844
- "gap": "sm"
1846
+ ]
1845
1847
  }
1846
- ],
1847
- "gap": "md",
1848
- "type": "stack"
1848
+ ]
1849
1849
  }
1850
1850
  ]
1851
1851
  ]
@@ -1917,4 +1917,4 @@
1917
1917
  ]
1918
1918
  }
1919
1919
  ]
1920
- }
1920
+ }