@almadar/std 3.2.0 → 3.2.2

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 (262) hide show
  1. package/behaviors/exports/atoms/std-async.orb +41 -24
  2. package/behaviors/exports/atoms/std-browse.orb +12 -5
  3. package/behaviors/exports/atoms/std-cache-aside.orb +256 -42
  4. package/behaviors/exports/atoms/std-circuit-breaker.orb +577 -97
  5. package/behaviors/exports/atoms/std-collision.orb +278 -206
  6. package/behaviors/exports/atoms/std-combat-log.orb +6 -1
  7. package/behaviors/exports/atoms/std-combat.orb +6 -1
  8. package/behaviors/exports/atoms/std-confirmation.orb +212 -7
  9. package/behaviors/exports/atoms/std-dialogue-box.orb +6 -1
  10. package/behaviors/exports/atoms/std-display.orb +166 -21
  11. package/behaviors/exports/atoms/std-drawer.orb +208 -104
  12. package/behaviors/exports/atoms/std-filter.orb +211 -18
  13. package/behaviors/exports/atoms/std-game-audio.orb +6 -1
  14. package/behaviors/exports/atoms/std-game-canvas2d.orb +6 -1
  15. package/behaviors/exports/atoms/std-game-canvas3d.orb +6 -1
  16. package/behaviors/exports/atoms/std-game-hud.orb +6 -1
  17. package/behaviors/exports/atoms/std-game-menu.orb +6 -1
  18. package/behaviors/exports/atoms/std-game-over-screen.orb +6 -1
  19. package/behaviors/exports/atoms/std-gameflow.orb +100 -5
  20. package/behaviors/exports/atoms/std-input.orb +142 -137
  21. package/behaviors/exports/atoms/std-inventory-panel.orb +6 -1
  22. package/behaviors/exports/atoms/std-isometric-canvas.orb +6 -1
  23. package/behaviors/exports/atoms/std-loading.orb +27 -76
  24. package/behaviors/exports/atoms/std-modal.orb +177 -93
  25. package/behaviors/exports/atoms/std-movement.orb +401 -31
  26. package/behaviors/exports/atoms/std-notification.orb +46 -95
  27. package/behaviors/exports/atoms/std-overworld.orb +44 -16
  28. package/behaviors/exports/atoms/std-pagination.orb +26 -89
  29. package/behaviors/exports/atoms/std-physics2d.orb +6 -1
  30. package/behaviors/exports/atoms/std-platformer-canvas.orb +6 -1
  31. package/behaviors/exports/atoms/std-quest.orb +309 -34
  32. package/behaviors/exports/atoms/std-rate-limiter.orb +410 -157
  33. package/behaviors/exports/atoms/std-score-board.orb +6 -1
  34. package/behaviors/exports/atoms/std-score.orb +211 -11
  35. package/behaviors/exports/atoms/std-search.orb +28 -27
  36. package/behaviors/exports/atoms/std-selection.orb +160 -121
  37. package/behaviors/exports/atoms/std-simulation-canvas.orb +6 -1
  38. package/behaviors/exports/atoms/std-sort.orb +134 -24
  39. package/behaviors/exports/atoms/std-sprite.orb +6 -1
  40. package/behaviors/exports/atoms/std-tabs.orb +25 -15
  41. package/behaviors/exports/atoms/std-timer.orb +483 -91
  42. package/behaviors/exports/atoms/std-undo.orb +211 -81
  43. package/behaviors/exports/atoms/std-wizard.orb +31 -34
  44. package/behaviors/exports/molecules/std-builder-game.orb +6 -1
  45. package/behaviors/exports/molecules/std-cart.orb +6 -1
  46. package/behaviors/exports/molecules/std-classifier-game.orb +6 -1
  47. package/behaviors/exports/molecules/std-debugger-game.orb +6 -1
  48. package/behaviors/exports/molecules/std-detail.orb +12 -5
  49. package/behaviors/exports/molecules/std-event-handler-game.orb +6 -1
  50. package/behaviors/exports/molecules/std-geospatial.orb +28 -9
  51. package/behaviors/exports/molecules/std-inventory.orb +28 -9
  52. package/behaviors/exports/molecules/std-list.orb +392 -5
  53. package/behaviors/exports/molecules/std-messaging.orb +12 -5
  54. package/behaviors/exports/molecules/std-negotiator-game.orb +6 -1
  55. package/behaviors/exports/molecules/std-platformer-game.orb +40 -1
  56. package/behaviors/exports/molecules/std-puzzle-game.orb +26 -1
  57. package/behaviors/exports/molecules/std-sequencer-game.orb +6 -1
  58. package/behaviors/exports/molecules/std-simulator-game.orb +6 -1
  59. package/behaviors/exports/molecules/std-turn-based-battle.orb +40 -1
  60. package/behaviors/exports/organisms/std-api-gateway.orb +1145 -403
  61. package/behaviors/exports/organisms/std-arcade-game.orb +214 -16
  62. package/behaviors/exports/organisms/std-booking-system.orb +2165 -1605
  63. package/behaviors/exports/organisms/std-cicd-pipeline.orb +581 -47
  64. package/behaviors/exports/organisms/std-cms.orb +1713 -947
  65. package/behaviors/exports/organisms/std-coding-academy.orb +180 -380
  66. package/behaviors/exports/organisms/std-crm.orb +1669 -1153
  67. package/behaviors/exports/organisms/std-devops-dashboard.orb +1430 -378
  68. package/behaviors/exports/organisms/std-ecommerce.orb +2361 -1601
  69. package/behaviors/exports/organisms/std-finance-tracker.orb +622 -438
  70. package/behaviors/exports/organisms/std-healthcare.orb +1687 -1125
  71. package/behaviors/exports/organisms/std-helpdesk.orb +626 -407
  72. package/behaviors/exports/organisms/std-hr-portal.orb +1309 -714
  73. package/behaviors/exports/organisms/std-iot-dashboard.orb +1247 -335
  74. package/behaviors/exports/organisms/std-lms.orb +658 -362
  75. package/behaviors/exports/organisms/std-platformer-app.orb +56 -8
  76. package/behaviors/exports/organisms/std-project-manager.orb +1697 -1183
  77. package/behaviors/exports/organisms/std-puzzle-app.orb +20 -0
  78. package/behaviors/exports/organisms/std-realtime-chat.orb +552 -28
  79. package/behaviors/exports/organisms/std-rpg-game.orb +397 -56
  80. package/behaviors/exports/organisms/std-social-feed.orb +12 -8
  81. package/behaviors/exports/organisms/std-stem-lab.orb +175 -290
  82. package/behaviors/exports/organisms/std-strategy-game.orb +252 -395
  83. package/behaviors/exports/organisms/std-trading-dashboard.orb +718 -524
  84. package/behaviors/exports/validation-report.json +747 -0
  85. package/behaviors/exports/verify-results.json +13 -0
  86. package/dist/behaviors/exports/atoms/std-async.orb +41 -24
  87. package/dist/behaviors/exports/atoms/std-browse.orb +12 -5
  88. package/dist/behaviors/exports/atoms/std-cache-aside.orb +256 -42
  89. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +577 -97
  90. package/dist/behaviors/exports/atoms/std-collision.orb +278 -206
  91. package/dist/behaviors/exports/atoms/std-combat-log.orb +6 -1
  92. package/dist/behaviors/exports/atoms/std-combat.orb +6 -1
  93. package/dist/behaviors/exports/atoms/std-confirmation.orb +212 -7
  94. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +6 -1
  95. package/dist/behaviors/exports/atoms/std-display.orb +166 -21
  96. package/dist/behaviors/exports/atoms/std-drawer.orb +208 -104
  97. package/dist/behaviors/exports/atoms/std-filter.orb +211 -18
  98. package/dist/behaviors/exports/atoms/std-game-audio.orb +6 -1
  99. package/dist/behaviors/exports/atoms/std-game-canvas2d.orb +6 -1
  100. package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +6 -1
  101. package/dist/behaviors/exports/atoms/std-game-hud.orb +6 -1
  102. package/dist/behaviors/exports/atoms/std-game-menu.orb +6 -1
  103. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +6 -1
  104. package/dist/behaviors/exports/atoms/std-gameflow.orb +100 -5
  105. package/dist/behaviors/exports/atoms/std-input.orb +142 -137
  106. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +6 -1
  107. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +6 -1
  108. package/dist/behaviors/exports/atoms/std-loading.orb +27 -76
  109. package/dist/behaviors/exports/atoms/std-modal.orb +177 -93
  110. package/dist/behaviors/exports/atoms/std-movement.orb +401 -31
  111. package/dist/behaviors/exports/atoms/std-notification.orb +46 -95
  112. package/dist/behaviors/exports/atoms/std-overworld.orb +44 -16
  113. package/dist/behaviors/exports/atoms/std-pagination.orb +26 -89
  114. package/dist/behaviors/exports/atoms/std-physics2d.orb +6 -1
  115. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +6 -1
  116. package/dist/behaviors/exports/atoms/std-quest.orb +309 -34
  117. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +410 -157
  118. package/dist/behaviors/exports/atoms/std-score-board.orb +6 -1
  119. package/dist/behaviors/exports/atoms/std-score.orb +211 -11
  120. package/dist/behaviors/exports/atoms/std-search.orb +28 -27
  121. package/dist/behaviors/exports/atoms/std-selection.orb +160 -121
  122. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +6 -1
  123. package/dist/behaviors/exports/atoms/std-sort.orb +134 -24
  124. package/dist/behaviors/exports/atoms/std-sprite.orb +6 -1
  125. package/dist/behaviors/exports/atoms/std-tabs.orb +25 -15
  126. package/dist/behaviors/exports/atoms/std-timer.orb +483 -91
  127. package/dist/behaviors/exports/atoms/std-undo.orb +211 -81
  128. package/dist/behaviors/exports/atoms/std-wizard.orb +31 -34
  129. package/dist/behaviors/exports/molecules/std-builder-game.orb +6 -1
  130. package/dist/behaviors/exports/molecules/std-cart.orb +6 -1
  131. package/dist/behaviors/exports/molecules/std-classifier-game.orb +6 -1
  132. package/dist/behaviors/exports/molecules/std-debugger-game.orb +6 -1
  133. package/dist/behaviors/exports/molecules/std-detail.orb +12 -5
  134. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +6 -1
  135. package/dist/behaviors/exports/molecules/std-geospatial.orb +28 -9
  136. package/dist/behaviors/exports/molecules/std-inventory.orb +28 -9
  137. package/dist/behaviors/exports/molecules/std-list.orb +392 -5
  138. package/dist/behaviors/exports/molecules/std-messaging.orb +12 -5
  139. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +6 -1
  140. package/dist/behaviors/exports/molecules/std-platformer-game.orb +40 -1
  141. package/dist/behaviors/exports/molecules/std-puzzle-game.orb +26 -1
  142. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +6 -1
  143. package/dist/behaviors/exports/molecules/std-simulator-game.orb +6 -1
  144. package/dist/behaviors/exports/molecules/std-turn-based-battle.orb +40 -1
  145. package/dist/behaviors/exports/organisms/std-api-gateway.orb +1145 -403
  146. package/dist/behaviors/exports/organisms/std-arcade-game.orb +214 -16
  147. package/dist/behaviors/exports/organisms/std-booking-system.orb +2165 -1605
  148. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +581 -47
  149. package/dist/behaviors/exports/organisms/std-cms.orb +1713 -947
  150. package/dist/behaviors/exports/organisms/std-coding-academy.orb +180 -380
  151. package/dist/behaviors/exports/organisms/std-crm.orb +1669 -1153
  152. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +1430 -378
  153. package/dist/behaviors/exports/organisms/std-ecommerce.orb +2361 -1601
  154. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +622 -438
  155. package/dist/behaviors/exports/organisms/std-healthcare.orb +1687 -1125
  156. package/dist/behaviors/exports/organisms/std-helpdesk.orb +626 -407
  157. package/dist/behaviors/exports/organisms/std-hr-portal.orb +1309 -714
  158. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +1247 -335
  159. package/dist/behaviors/exports/organisms/std-lms.orb +658 -362
  160. package/dist/behaviors/exports/organisms/std-platformer-app.orb +56 -8
  161. package/dist/behaviors/exports/organisms/std-project-manager.orb +1697 -1183
  162. package/dist/behaviors/exports/organisms/std-puzzle-app.orb +20 -0
  163. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +552 -28
  164. package/dist/behaviors/exports/organisms/std-rpg-game.orb +397 -56
  165. package/dist/behaviors/exports/organisms/std-social-feed.orb +12 -8
  166. package/dist/behaviors/exports/organisms/std-stem-lab.orb +175 -290
  167. package/dist/behaviors/exports/organisms/std-strategy-game.orb +252 -395
  168. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +718 -524
  169. package/dist/behaviors/exports/validation-report.json +747 -0
  170. package/dist/behaviors/exports/verify-results.json +13 -0
  171. package/dist/behaviors/functions/index.js +715 -593
  172. package/dist/behaviors/functions/index.js.map +1 -1
  173. package/dist/behaviors/index.js +715 -593
  174. package/dist/behaviors/index.js.map +1 -1
  175. package/dist/exports/atoms/std-async.orb +41 -24
  176. package/dist/exports/atoms/std-browse.orb +12 -5
  177. package/dist/exports/atoms/std-cache-aside.orb +256 -42
  178. package/dist/exports/atoms/std-circuit-breaker.orb +577 -97
  179. package/dist/exports/atoms/std-collision.orb +278 -206
  180. package/dist/exports/atoms/std-combat-log.orb +6 -1
  181. package/dist/exports/atoms/std-combat.orb +6 -1
  182. package/dist/exports/atoms/std-confirmation.orb +212 -7
  183. package/dist/exports/atoms/std-dialogue-box.orb +6 -1
  184. package/dist/exports/atoms/std-display.orb +166 -21
  185. package/dist/exports/atoms/std-drawer.orb +208 -104
  186. package/dist/exports/atoms/std-filter.orb +211 -18
  187. package/dist/exports/atoms/std-game-audio.orb +6 -1
  188. package/dist/exports/atoms/std-game-canvas2d.orb +6 -1
  189. package/dist/exports/atoms/std-game-canvas3d.orb +6 -1
  190. package/dist/exports/atoms/std-game-hud.orb +6 -1
  191. package/dist/exports/atoms/std-game-menu.orb +6 -1
  192. package/dist/exports/atoms/std-game-over-screen.orb +6 -1
  193. package/dist/exports/atoms/std-gameflow.orb +100 -5
  194. package/dist/exports/atoms/std-input.orb +142 -137
  195. package/dist/exports/atoms/std-inventory-panel.orb +6 -1
  196. package/dist/exports/atoms/std-isometric-canvas.orb +6 -1
  197. package/dist/exports/atoms/std-loading.orb +27 -76
  198. package/dist/exports/atoms/std-modal.orb +177 -93
  199. package/dist/exports/atoms/std-movement.orb +401 -31
  200. package/dist/exports/atoms/std-notification.orb +46 -95
  201. package/dist/exports/atoms/std-overworld.orb +44 -16
  202. package/dist/exports/atoms/std-pagination.orb +26 -89
  203. package/dist/exports/atoms/std-physics2d.orb +6 -1
  204. package/dist/exports/atoms/std-platformer-canvas.orb +6 -1
  205. package/dist/exports/atoms/std-quest.orb +309 -34
  206. package/dist/exports/atoms/std-rate-limiter.orb +410 -157
  207. package/dist/exports/atoms/std-score-board.orb +6 -1
  208. package/dist/exports/atoms/std-score.orb +211 -11
  209. package/dist/exports/atoms/std-search.orb +28 -27
  210. package/dist/exports/atoms/std-selection.orb +160 -121
  211. package/dist/exports/atoms/std-simulation-canvas.orb +6 -1
  212. package/dist/exports/atoms/std-sort.orb +134 -24
  213. package/dist/exports/atoms/std-sprite.orb +6 -1
  214. package/dist/exports/atoms/std-tabs.orb +25 -15
  215. package/dist/exports/atoms/std-timer.orb +483 -91
  216. package/dist/exports/atoms/std-undo.orb +211 -81
  217. package/dist/exports/atoms/std-wizard.orb +31 -34
  218. package/dist/exports/molecules/std-builder-game.orb +6 -1
  219. package/dist/exports/molecules/std-cart.orb +6 -1
  220. package/dist/exports/molecules/std-classifier-game.orb +6 -1
  221. package/dist/exports/molecules/std-debugger-game.orb +6 -1
  222. package/dist/exports/molecules/std-detail.orb +12 -5
  223. package/dist/exports/molecules/std-event-handler-game.orb +6 -1
  224. package/dist/exports/molecules/std-geospatial.orb +28 -9
  225. package/dist/exports/molecules/std-inventory.orb +28 -9
  226. package/dist/exports/molecules/std-list.orb +392 -5
  227. package/dist/exports/molecules/std-messaging.orb +12 -5
  228. package/dist/exports/molecules/std-negotiator-game.orb +6 -1
  229. package/dist/exports/molecules/std-platformer-game.orb +40 -1
  230. package/dist/exports/molecules/std-puzzle-game.orb +26 -1
  231. package/dist/exports/molecules/std-sequencer-game.orb +6 -1
  232. package/dist/exports/molecules/std-simulator-game.orb +6 -1
  233. package/dist/exports/molecules/std-turn-based-battle.orb +40 -1
  234. package/dist/exports/organisms/std-api-gateway.orb +1145 -403
  235. package/dist/exports/organisms/std-arcade-game.orb +214 -16
  236. package/dist/exports/organisms/std-booking-system.orb +2165 -1605
  237. package/dist/exports/organisms/std-cicd-pipeline.orb +581 -47
  238. package/dist/exports/organisms/std-cms.orb +1713 -947
  239. package/dist/exports/organisms/std-coding-academy.orb +180 -380
  240. package/dist/exports/organisms/std-crm.orb +1669 -1153
  241. package/dist/exports/organisms/std-devops-dashboard.orb +1430 -378
  242. package/dist/exports/organisms/std-ecommerce.orb +2361 -1601
  243. package/dist/exports/organisms/std-finance-tracker.orb +622 -438
  244. package/dist/exports/organisms/std-healthcare.orb +1687 -1125
  245. package/dist/exports/organisms/std-helpdesk.orb +626 -407
  246. package/dist/exports/organisms/std-hr-portal.orb +1309 -714
  247. package/dist/exports/organisms/std-iot-dashboard.orb +1247 -335
  248. package/dist/exports/organisms/std-lms.orb +658 -362
  249. package/dist/exports/organisms/std-platformer-app.orb +56 -8
  250. package/dist/exports/organisms/std-project-manager.orb +1697 -1183
  251. package/dist/exports/organisms/std-puzzle-app.orb +20 -0
  252. package/dist/exports/organisms/std-realtime-chat.orb +552 -28
  253. package/dist/exports/organisms/std-rpg-game.orb +397 -56
  254. package/dist/exports/organisms/std-social-feed.orb +12 -8
  255. package/dist/exports/organisms/std-stem-lab.orb +175 -290
  256. package/dist/exports/organisms/std-strategy-game.orb +252 -395
  257. package/dist/exports/organisms/std-trading-dashboard.orb +718 -524
  258. package/dist/exports/validation-report.json +747 -0
  259. package/dist/exports/verify-results.json +13 -0
  260. package/dist/index.js +715 -593
  261. package/dist/index.js.map +1 -1
  262. package/package.json +1 -1
@@ -158,7 +158,9 @@
158
158
  }
159
159
  ],
160
160
  "className": "transition-shadow hover:shadow-md cursor-pointer",
161
- "children": [
161
+ "renderItem": [
162
+ "fn",
163
+ "item",
162
164
  {
163
165
  "type": "stack",
164
166
  "direction": "vertical",
@@ -184,13 +186,13 @@
184
186
  {
185
187
  "type": "typography",
186
188
  "variant": "h4",
187
- "content": "@entity.sender"
189
+ "content": "@item.sender"
188
190
  }
189
191
  ]
190
192
  },
191
193
  {
192
194
  "type": "badge",
193
- "label": "@entity.content"
195
+ "label": "@item.content"
194
196
  }
195
197
  ]
196
198
  },
@@ -198,7 +200,7 @@
198
200
  "type": "typography",
199
201
  "variant": "caption",
200
202
  "color": "muted",
201
- "content": "@entity.channel"
203
+ "content": "@item.channel"
202
204
  }
203
205
  ]
204
206
  }
@@ -804,7 +806,9 @@
804
806
  }
805
807
  ],
806
808
  "className": "transition-shadow hover:shadow-md cursor-pointer",
807
- "children": [
809
+ "renderItem": [
810
+ "fn",
811
+ "item",
808
812
  {
809
813
  "type": "stack",
810
814
  "direction": "vertical",
@@ -830,13 +834,13 @@
830
834
  {
831
835
  "type": "typography",
832
836
  "variant": "h4",
833
- "content": "@entity.name"
837
+ "content": "@item.name"
834
838
  }
835
839
  ]
836
840
  },
837
841
  {
838
842
  "type": "badge",
839
- "label": "@entity.description"
843
+ "label": "@item.description"
840
844
  }
841
845
  ]
842
846
  },
@@ -844,7 +848,7 @@
844
848
  "type": "typography",
845
849
  "variant": "caption",
846
850
  "color": "muted",
847
- "content": "@entity.memberCount"
851
+ "content": "@item.memberCount"
848
852
  }
849
853
  ]
850
854
  }
@@ -966,6 +970,130 @@
966
970
  "fetch",
967
971
  "Channel"
968
972
  ],
973
+ [
974
+ "render-ui",
975
+ "main",
976
+ {
977
+ "type": "stack",
978
+ "direction": "vertical",
979
+ "gap": "lg",
980
+ "children": [
981
+ {
982
+ "type": "stack",
983
+ "direction": "horizontal",
984
+ "gap": "md",
985
+ "justify": "space-between",
986
+ "children": [
987
+ {
988
+ "type": "stack",
989
+ "direction": "horizontal",
990
+ "gap": "sm",
991
+ "align": "center",
992
+ "children": [
993
+ {
994
+ "type": "icon",
995
+ "name": "hash",
996
+ "size": "lg"
997
+ },
998
+ {
999
+ "type": "typography",
1000
+ "content": "Channels",
1001
+ "variant": "h2"
1002
+ }
1003
+ ]
1004
+ },
1005
+ {
1006
+ "type": "stack",
1007
+ "direction": "horizontal",
1008
+ "gap": "sm",
1009
+ "children": [
1010
+ {
1011
+ "type": "button",
1012
+ "label": "Create Channel",
1013
+ "event": "CREATE",
1014
+ "variant": "primary",
1015
+ "icon": "plus"
1016
+ }
1017
+ ]
1018
+ }
1019
+ ]
1020
+ },
1021
+ {
1022
+ "type": "divider"
1023
+ },
1024
+ {
1025
+ "type": "data-grid",
1026
+ "entity": "Channel",
1027
+ "emptyIcon": "inbox",
1028
+ "emptyTitle": "No channels yet",
1029
+ "emptyDescription": "Create your first channel to get started.",
1030
+ "itemActions": [
1031
+ {
1032
+ "label": "View",
1033
+ "event": "VIEW"
1034
+ },
1035
+ {
1036
+ "label": "Edit",
1037
+ "event": "EDIT"
1038
+ },
1039
+ {
1040
+ "label": "Delete",
1041
+ "event": "DELETE",
1042
+ "variant": "danger"
1043
+ }
1044
+ ],
1045
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
1046
+ "renderItem": [
1047
+ "fn",
1048
+ "item",
1049
+ {
1050
+ "type": "stack",
1051
+ "direction": "vertical",
1052
+ "gap": "sm",
1053
+ "children": [
1054
+ {
1055
+ "type": "stack",
1056
+ "direction": "horizontal",
1057
+ "justify": "space-between",
1058
+ "align": "center",
1059
+ "children": [
1060
+ {
1061
+ "type": "stack",
1062
+ "direction": "horizontal",
1063
+ "gap": "sm",
1064
+ "align": "center",
1065
+ "children": [
1066
+ {
1067
+ "type": "icon",
1068
+ "name": "hash",
1069
+ "size": "sm"
1070
+ },
1071
+ {
1072
+ "type": "typography",
1073
+ "variant": "h4",
1074
+ "content": "@item.name"
1075
+ }
1076
+ ]
1077
+ },
1078
+ {
1079
+ "type": "badge",
1080
+ "label": "@item.description"
1081
+ }
1082
+ ]
1083
+ },
1084
+ {
1085
+ "type": "typography",
1086
+ "variant": "caption",
1087
+ "color": "muted",
1088
+ "content": "@item.memberCount"
1089
+ }
1090
+ ]
1091
+ }
1092
+ ]
1093
+ }
1094
+ ]
1095
+ }
1096
+ ],
969
1097
  [
970
1098
  "notify",
971
1099
  "Channel deleted successfully"
@@ -981,6 +1109,134 @@
981
1109
  "render-ui",
982
1110
  "modal",
983
1111
  null
1112
+ ],
1113
+ [
1114
+ "fetch",
1115
+ "Channel"
1116
+ ],
1117
+ [
1118
+ "render-ui",
1119
+ "main",
1120
+ {
1121
+ "type": "stack",
1122
+ "direction": "vertical",
1123
+ "gap": "lg",
1124
+ "children": [
1125
+ {
1126
+ "type": "stack",
1127
+ "direction": "horizontal",
1128
+ "gap": "md",
1129
+ "justify": "space-between",
1130
+ "children": [
1131
+ {
1132
+ "type": "stack",
1133
+ "direction": "horizontal",
1134
+ "gap": "sm",
1135
+ "align": "center",
1136
+ "children": [
1137
+ {
1138
+ "type": "icon",
1139
+ "name": "hash",
1140
+ "size": "lg"
1141
+ },
1142
+ {
1143
+ "type": "typography",
1144
+ "content": "Channels",
1145
+ "variant": "h2"
1146
+ }
1147
+ ]
1148
+ },
1149
+ {
1150
+ "type": "stack",
1151
+ "direction": "horizontal",
1152
+ "gap": "sm",
1153
+ "children": [
1154
+ {
1155
+ "type": "button",
1156
+ "label": "Create Channel",
1157
+ "event": "CREATE",
1158
+ "variant": "primary",
1159
+ "icon": "plus"
1160
+ }
1161
+ ]
1162
+ }
1163
+ ]
1164
+ },
1165
+ {
1166
+ "type": "divider"
1167
+ },
1168
+ {
1169
+ "type": "data-grid",
1170
+ "entity": "Channel",
1171
+ "emptyIcon": "inbox",
1172
+ "emptyTitle": "No channels yet",
1173
+ "emptyDescription": "Create your first channel to get started.",
1174
+ "itemActions": [
1175
+ {
1176
+ "label": "View",
1177
+ "event": "VIEW"
1178
+ },
1179
+ {
1180
+ "label": "Edit",
1181
+ "event": "EDIT"
1182
+ },
1183
+ {
1184
+ "label": "Delete",
1185
+ "event": "DELETE",
1186
+ "variant": "danger"
1187
+ }
1188
+ ],
1189
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
1190
+ "renderItem": [
1191
+ "fn",
1192
+ "item",
1193
+ {
1194
+ "type": "stack",
1195
+ "direction": "vertical",
1196
+ "gap": "sm",
1197
+ "children": [
1198
+ {
1199
+ "type": "stack",
1200
+ "direction": "horizontal",
1201
+ "justify": "space-between",
1202
+ "align": "center",
1203
+ "children": [
1204
+ {
1205
+ "type": "stack",
1206
+ "direction": "horizontal",
1207
+ "gap": "sm",
1208
+ "align": "center",
1209
+ "children": [
1210
+ {
1211
+ "type": "icon",
1212
+ "name": "hash",
1213
+ "size": "sm"
1214
+ },
1215
+ {
1216
+ "type": "typography",
1217
+ "variant": "h4",
1218
+ "content": "@item.name"
1219
+ }
1220
+ ]
1221
+ },
1222
+ {
1223
+ "type": "badge",
1224
+ "label": "@item.description"
1225
+ }
1226
+ ]
1227
+ },
1228
+ {
1229
+ "type": "typography",
1230
+ "variant": "caption",
1231
+ "color": "muted",
1232
+ "content": "@item.memberCount"
1233
+ }
1234
+ ]
1235
+ }
1236
+ ]
1237
+ }
1238
+ ]
1239
+ }
984
1240
  ]
985
1241
  ]
986
1242
  },
@@ -993,6 +1249,134 @@
993
1249
  "render-ui",
994
1250
  "modal",
995
1251
  null
1252
+ ],
1253
+ [
1254
+ "fetch",
1255
+ "Channel"
1256
+ ],
1257
+ [
1258
+ "render-ui",
1259
+ "main",
1260
+ {
1261
+ "type": "stack",
1262
+ "direction": "vertical",
1263
+ "gap": "lg",
1264
+ "children": [
1265
+ {
1266
+ "type": "stack",
1267
+ "direction": "horizontal",
1268
+ "gap": "md",
1269
+ "justify": "space-between",
1270
+ "children": [
1271
+ {
1272
+ "type": "stack",
1273
+ "direction": "horizontal",
1274
+ "gap": "sm",
1275
+ "align": "center",
1276
+ "children": [
1277
+ {
1278
+ "type": "icon",
1279
+ "name": "hash",
1280
+ "size": "lg"
1281
+ },
1282
+ {
1283
+ "type": "typography",
1284
+ "content": "Channels",
1285
+ "variant": "h2"
1286
+ }
1287
+ ]
1288
+ },
1289
+ {
1290
+ "type": "stack",
1291
+ "direction": "horizontal",
1292
+ "gap": "sm",
1293
+ "children": [
1294
+ {
1295
+ "type": "button",
1296
+ "label": "Create Channel",
1297
+ "event": "CREATE",
1298
+ "variant": "primary",
1299
+ "icon": "plus"
1300
+ }
1301
+ ]
1302
+ }
1303
+ ]
1304
+ },
1305
+ {
1306
+ "type": "divider"
1307
+ },
1308
+ {
1309
+ "type": "data-grid",
1310
+ "entity": "Channel",
1311
+ "emptyIcon": "inbox",
1312
+ "emptyTitle": "No channels yet",
1313
+ "emptyDescription": "Create your first channel to get started.",
1314
+ "itemActions": [
1315
+ {
1316
+ "label": "View",
1317
+ "event": "VIEW"
1318
+ },
1319
+ {
1320
+ "label": "Edit",
1321
+ "event": "EDIT"
1322
+ },
1323
+ {
1324
+ "label": "Delete",
1325
+ "event": "DELETE",
1326
+ "variant": "danger"
1327
+ }
1328
+ ],
1329
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
1330
+ "renderItem": [
1331
+ "fn",
1332
+ "item",
1333
+ {
1334
+ "type": "stack",
1335
+ "direction": "vertical",
1336
+ "gap": "sm",
1337
+ "children": [
1338
+ {
1339
+ "type": "stack",
1340
+ "direction": "horizontal",
1341
+ "justify": "space-between",
1342
+ "align": "center",
1343
+ "children": [
1344
+ {
1345
+ "type": "stack",
1346
+ "direction": "horizontal",
1347
+ "gap": "sm",
1348
+ "align": "center",
1349
+ "children": [
1350
+ {
1351
+ "type": "icon",
1352
+ "name": "hash",
1353
+ "size": "sm"
1354
+ },
1355
+ {
1356
+ "type": "typography",
1357
+ "variant": "h4",
1358
+ "content": "@item.name"
1359
+ }
1360
+ ]
1361
+ },
1362
+ {
1363
+ "type": "badge",
1364
+ "label": "@item.description"
1365
+ }
1366
+ ]
1367
+ },
1368
+ {
1369
+ "type": "typography",
1370
+ "variant": "caption",
1371
+ "color": "muted",
1372
+ "content": "@item.memberCount"
1373
+ }
1374
+ ]
1375
+ }
1376
+ ]
1377
+ }
1378
+ ]
1379
+ }
996
1380
  ]
997
1381
  ]
998
1382
  }
@@ -1680,7 +2064,14 @@
1680
2064
  {
1681
2065
  "type": "typography",
1682
2066
  "variant": "h3",
1683
- "content": "@entity.username"
2067
+ "content": [
2068
+ "object/get",
2069
+ [
2070
+ "array/first",
2071
+ "@entity"
2072
+ ],
2073
+ "username"
2074
+ ]
1684
2075
  }
1685
2076
  ]
1686
2077
  }
@@ -1702,7 +2093,14 @@
1702
2093
  {
1703
2094
  "type": "typography",
1704
2095
  "variant": "h3",
1705
- "content": "@entity.status"
2096
+ "content": [
2097
+ "object/get",
2098
+ [
2099
+ "array/first",
2100
+ "@entity"
2101
+ ],
2102
+ "status"
2103
+ ]
1706
2104
  }
1707
2105
  ]
1708
2106
  }
@@ -1724,7 +2122,14 @@
1724
2122
  {
1725
2123
  "type": "typography",
1726
2124
  "variant": "h3",
1727
- "content": "@entity.lastActive"
2125
+ "content": [
2126
+ "object/get",
2127
+ [
2128
+ "array/first",
2129
+ "@entity"
2130
+ ],
2131
+ "lastActive"
2132
+ ]
1728
2133
  }
1729
2134
  ]
1730
2135
  }
@@ -1746,7 +2151,14 @@
1746
2151
  {
1747
2152
  "type": "typography",
1748
2153
  "variant": "h3",
1749
- "content": "@entity.avatar"
2154
+ "content": [
2155
+ "object/get",
2156
+ [
2157
+ "array/first",
2158
+ "@entity"
2159
+ ],
2160
+ "avatar"
2161
+ ]
1750
2162
  }
1751
2163
  ]
1752
2164
  }
@@ -1831,7 +2243,14 @@
1831
2243
  {
1832
2244
  "type": "typography",
1833
2245
  "variant": "h3",
1834
- "content": "@entity.username"
2246
+ "content": [
2247
+ "object/get",
2248
+ [
2249
+ "array/first",
2250
+ "@entity"
2251
+ ],
2252
+ "username"
2253
+ ]
1835
2254
  }
1836
2255
  ]
1837
2256
  }
@@ -1853,7 +2272,14 @@
1853
2272
  {
1854
2273
  "type": "typography",
1855
2274
  "variant": "h3",
1856
- "content": "@entity.status"
2275
+ "content": [
2276
+ "object/get",
2277
+ [
2278
+ "array/first",
2279
+ "@entity"
2280
+ ],
2281
+ "status"
2282
+ ]
1857
2283
  }
1858
2284
  ]
1859
2285
  }
@@ -1875,7 +2301,14 @@
1875
2301
  {
1876
2302
  "type": "typography",
1877
2303
  "variant": "h3",
1878
- "content": "@entity.lastActive"
2304
+ "content": [
2305
+ "object/get",
2306
+ [
2307
+ "array/first",
2308
+ "@entity"
2309
+ ],
2310
+ "lastActive"
2311
+ ]
1879
2312
  }
1880
2313
  ]
1881
2314
  }
@@ -1897,7 +2330,14 @@
1897
2330
  {
1898
2331
  "type": "typography",
1899
2332
  "variant": "h3",
1900
- "content": "@entity.avatar"
2333
+ "content": [
2334
+ "object/get",
2335
+ [
2336
+ "array/first",
2337
+ "@entity"
2338
+ ],
2339
+ "avatar"
2340
+ ]
1901
2341
  }
1902
2342
  ]
1903
2343
  }
@@ -1982,7 +2422,14 @@
1982
2422
  {
1983
2423
  "type": "typography",
1984
2424
  "variant": "h3",
1985
- "content": "@entity.username"
2425
+ "content": [
2426
+ "object/get",
2427
+ [
2428
+ "array/first",
2429
+ "@entity"
2430
+ ],
2431
+ "username"
2432
+ ]
1986
2433
  }
1987
2434
  ]
1988
2435
  }
@@ -2004,7 +2451,14 @@
2004
2451
  {
2005
2452
  "type": "typography",
2006
2453
  "variant": "h3",
2007
- "content": "@entity.status"
2454
+ "content": [
2455
+ "object/get",
2456
+ [
2457
+ "array/first",
2458
+ "@entity"
2459
+ ],
2460
+ "status"
2461
+ ]
2008
2462
  }
2009
2463
  ]
2010
2464
  }
@@ -2026,7 +2480,14 @@
2026
2480
  {
2027
2481
  "type": "typography",
2028
2482
  "variant": "h3",
2029
- "content": "@entity.lastActive"
2483
+ "content": [
2484
+ "object/get",
2485
+ [
2486
+ "array/first",
2487
+ "@entity"
2488
+ ],
2489
+ "lastActive"
2490
+ ]
2030
2491
  }
2031
2492
  ]
2032
2493
  }
@@ -2048,7 +2509,14 @@
2048
2509
  {
2049
2510
  "type": "typography",
2050
2511
  "variant": "h3",
2051
- "content": "@entity.avatar"
2512
+ "content": [
2513
+ "object/get",
2514
+ [
2515
+ "array/first",
2516
+ "@entity"
2517
+ ],
2518
+ "avatar"
2519
+ ]
2052
2520
  }
2053
2521
  ]
2054
2522
  }
@@ -2133,7 +2601,14 @@
2133
2601
  {
2134
2602
  "type": "typography",
2135
2603
  "variant": "h3",
2136
- "content": "@entity.username"
2604
+ "content": [
2605
+ "object/get",
2606
+ [
2607
+ "array/first",
2608
+ "@entity"
2609
+ ],
2610
+ "username"
2611
+ ]
2137
2612
  }
2138
2613
  ]
2139
2614
  }
@@ -2155,7 +2630,14 @@
2155
2630
  {
2156
2631
  "type": "typography",
2157
2632
  "variant": "h3",
2158
- "content": "@entity.status"
2633
+ "content": [
2634
+ "object/get",
2635
+ [
2636
+ "array/first",
2637
+ "@entity"
2638
+ ],
2639
+ "status"
2640
+ ]
2159
2641
  }
2160
2642
  ]
2161
2643
  }
@@ -2177,7 +2659,14 @@
2177
2659
  {
2178
2660
  "type": "typography",
2179
2661
  "variant": "h3",
2180
- "content": "@entity.lastActive"
2662
+ "content": [
2663
+ "object/get",
2664
+ [
2665
+ "array/first",
2666
+ "@entity"
2667
+ ],
2668
+ "lastActive"
2669
+ ]
2181
2670
  }
2182
2671
  ]
2183
2672
  }
@@ -2199,7 +2688,14 @@
2199
2688
  {
2200
2689
  "type": "typography",
2201
2690
  "variant": "h3",
2202
- "content": "@entity.avatar"
2691
+ "content": [
2692
+ "object/get",
2693
+ [
2694
+ "array/first",
2695
+ "@entity"
2696
+ ],
2697
+ "avatar"
2698
+ ]
2203
2699
  }
2204
2700
  ]
2205
2701
  }
@@ -2284,7 +2780,14 @@
2284
2780
  {
2285
2781
  "type": "typography",
2286
2782
  "variant": "h3",
2287
- "content": "@entity.username"
2783
+ "content": [
2784
+ "object/get",
2785
+ [
2786
+ "array/first",
2787
+ "@entity"
2788
+ ],
2789
+ "username"
2790
+ ]
2288
2791
  }
2289
2792
  ]
2290
2793
  }
@@ -2306,7 +2809,14 @@
2306
2809
  {
2307
2810
  "type": "typography",
2308
2811
  "variant": "h3",
2309
- "content": "@entity.status"
2812
+ "content": [
2813
+ "object/get",
2814
+ [
2815
+ "array/first",
2816
+ "@entity"
2817
+ ],
2818
+ "status"
2819
+ ]
2310
2820
  }
2311
2821
  ]
2312
2822
  }
@@ -2328,7 +2838,14 @@
2328
2838
  {
2329
2839
  "type": "typography",
2330
2840
  "variant": "h3",
2331
- "content": "@entity.lastActive"
2841
+ "content": [
2842
+ "object/get",
2843
+ [
2844
+ "array/first",
2845
+ "@entity"
2846
+ ],
2847
+ "lastActive"
2848
+ ]
2332
2849
  }
2333
2850
  ]
2334
2851
  }
@@ -2350,7 +2867,14 @@
2350
2867
  {
2351
2868
  "type": "typography",
2352
2869
  "variant": "h3",
2353
- "content": "@entity.avatar"
2870
+ "content": [
2871
+ "object/get",
2872
+ [
2873
+ "array/first",
2874
+ "@entity"
2875
+ ],
2876
+ "avatar"
2877
+ ]
2354
2878
  }
2355
2879
  ]
2356
2880
  }