@almadar/std 8.5.1 → 10.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 +1219 -1219
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +2995 -2995
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2285 -2285
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1063 -1063
  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 +49 -49
  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 +68 -72
  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 +1092 -1092
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +978 -978
  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 +1219 -1219
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +2995 -2995
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2285 -2285
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1063 -1063
  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 +49 -49
  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 +68 -72
  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 +1092 -1092
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +978 -978
  187. package/package.json +1 -1
@@ -49,7 +49,7 @@
49
49
  "event": "TabContentLoaded",
50
50
  "description": "Fired when TabContent finishes loading; payload.data holds the list",
51
51
  "scope": "internal",
52
- "payload": [
52
+ "payloadSchema": [
53
53
  {
54
54
  "name": "data",
55
55
  "type": "[TabContent]"
@@ -60,7 +60,7 @@
60
60
  "event": "TabContentLoadFailed",
61
61
  "description": "Fired when TabContent fails to load",
62
62
  "scope": "internal",
63
- "payload": [
63
+ "payloadSchema": [
64
64
  {
65
65
  "name": "error",
66
66
  "type": "string"
@@ -93,7 +93,7 @@
93
93
  {
94
94
  "key": "TabContentLoaded",
95
95
  "name": "TabContent loaded",
96
- "payload": [
96
+ "payloadSchema": [
97
97
  {
98
98
  "name": "data",
99
99
  "type": "[TabContent]"
@@ -103,7 +103,7 @@
103
103
  {
104
104
  "key": "TabContentLoadFailed",
105
105
  "name": "TabContent load failed",
106
- "payload": [
106
+ "payloadSchema": [
107
107
  {
108
108
  "name": "error",
109
109
  "type": "string"
@@ -117,7 +117,7 @@
117
117
  {
118
118
  "key": "SELECT_TAB",
119
119
  "name": "Select Tab",
120
- "payload": [
120
+ "payloadSchema": [
121
121
  {
122
122
  "name": "tab",
123
123
  "type": "string",
@@ -137,8 +137,8 @@
137
137
  "TabContent",
138
138
  {
139
139
  "emit": {
140
- "failure": "TabContentLoadFailed",
141
- "success": "TabContentLoaded"
140
+ "success": "TabContentLoaded",
141
+ "failure": "TabContentLoadFailed"
142
142
  }
143
143
  }
144
144
  ],
@@ -146,22 +146,22 @@
146
146
  "render-ui",
147
147
  "main",
148
148
  {
149
+ "className": "py-12",
149
150
  "align": "center",
150
- "gap": "md",
151
- "direction": "vertical",
152
- "type": "stack",
153
151
  "children": [
154
152
  {
155
153
  "type": "spinner"
156
154
  },
157
155
  {
158
- "content": "Loading…",
159
156
  "type": "typography",
160
- "variant": "caption",
161
- "color": "muted"
157
+ "content": "Loading…",
158
+ "color": "muted",
159
+ "variant": "caption"
162
160
  }
163
161
  ],
164
- "className": "py-12"
162
+ "direction": "vertical",
163
+ "type": "stack",
164
+ "gap": "md"
165
165
  }
166
166
  ]
167
167
  ]
@@ -175,9 +175,15 @@
175
175
  "render-ui",
176
176
  "main",
177
177
  {
178
+ "gap": "lg",
179
+ "type": "stack",
180
+ "direction": "vertical",
178
181
  "children": [
179
182
  {
183
+ "direction": "horizontal",
184
+ "gap": "sm",
180
185
  "type": "stack",
186
+ "align": "center",
181
187
  "children": [
182
188
  {
183
189
  "type": "icon",
@@ -185,22 +191,20 @@
185
191
  },
186
192
  {
187
193
  "content": "TabContents",
188
- "variant": "h2",
189
- "type": "typography"
194
+ "type": "typography",
195
+ "variant": "h2"
190
196
  }
191
- ],
192
- "direction": "horizontal",
193
- "gap": "sm",
194
- "align": "center"
197
+ ]
195
198
  },
196
199
  {
197
200
  "type": "divider"
198
201
  },
199
202
  {
203
+ "defaultActiveTab": "name",
200
204
  "tabs": [
201
205
  {
202
- "id": "name",
203
- "label": "Name"
206
+ "label": "Name",
207
+ "id": "name"
204
208
  },
205
209
  {
206
210
  "label": "Description",
@@ -216,20 +220,20 @@
216
220
  }
217
221
  ],
218
222
  "type": "tabs",
219
- "defaultActiveTab": "name",
220
223
  "onTabChange": "SELECT_TAB"
221
224
  },
222
225
  {
223
226
  "type": "divider"
224
227
  },
225
228
  {
226
- "fields": [],
227
229
  "entity": "@payload.data",
228
- "type": "data-grid",
230
+ "fields": [],
229
231
  "renderItem": [
230
232
  "fn",
231
233
  "item",
232
234
  {
235
+ "gap": "sm",
236
+ "type": "stack",
233
237
  "direction": "vertical",
234
238
  "children": [
235
239
  {
@@ -238,22 +242,18 @@
238
242
  "type": "typography"
239
243
  },
240
244
  {
241
- "type": "typography",
245
+ "content": "@item.description",
242
246
  "variant": "caption",
243
247
  "color": "muted",
244
- "content": "@item.description"
248
+ "type": "typography"
245
249
  }
246
- ],
247
- "gap": "sm",
248
- "type": "stack"
250
+ ]
249
251
  }
250
252
  ],
253
+ "type": "data-grid",
251
254
  "className": "transition-shadow hover:shadow-md cursor-pointer"
252
255
  }
253
- ],
254
- "type": "stack",
255
- "direction": "vertical",
256
- "gap": "lg"
256
+ ]
257
257
  }
258
258
  ]
259
259
  ]
@@ -267,8 +267,7 @@
267
267
  "render-ui",
268
268
  "main",
269
269
  {
270
- "gap": "md",
271
- "className": "py-12",
270
+ "align": "center",
272
271
  "children": [
273
272
  {
274
273
  "color": "destructive",
@@ -281,22 +280,23 @@
281
280
  "content": "Failed to load"
282
281
  },
283
282
  {
284
- "color": "muted",
285
- "content": "@payload.error",
286
283
  "type": "typography",
287
- "variant": "body"
284
+ "variant": "body",
285
+ "content": "@payload.error",
286
+ "color": "muted"
288
287
  },
289
288
  {
290
- "label": "Retry",
291
- "action": "INIT",
289
+ "variant": "primary",
292
290
  "type": "button",
293
291
  "icon": "rotate-ccw",
294
- "variant": "primary"
292
+ "label": "Retry",
293
+ "action": "INIT"
295
294
  }
296
295
  ],
296
+ "direction": "vertical",
297
+ "className": "py-12",
297
298
  "type": "stack",
298
- "align": "center",
299
- "direction": "vertical"
299
+ "gap": "md"
300
300
  }
301
301
  ]
302
302
  ]
@@ -311,8 +311,8 @@
311
311
  "TabContent",
312
312
  {
313
313
  "emit": {
314
- "success": "TabContentLoaded",
315
- "failure": "TabContentLoadFailed"
314
+ "failure": "TabContentLoadFailed",
315
+ "success": "TabContentLoaded"
316
316
  }
317
317
  }
318
318
  ],
@@ -367,4 +367,4 @@
367
367
  ]
368
368
  }
369
369
  ]
370
- }
370
+ }
@@ -65,7 +65,7 @@
65
65
  "event": "CartItemLoaded",
66
66
  "description": "Fired when the cart collection finishes loading; payload.data holds the CartItem list",
67
67
  "scope": "internal",
68
- "payload": [
68
+ "payloadSchema": [
69
69
  {
70
70
  "name": "data",
71
71
  "type": "[CartItem]"
@@ -76,7 +76,7 @@
76
76
  "event": "CartItemLoadFailed",
77
77
  "description": "Fired when the cart collection fails to load",
78
78
  "scope": "internal",
79
- "payload": [
79
+ "payloadSchema": [
80
80
  {
81
81
  "name": "error",
82
82
  "type": "string"
@@ -127,7 +127,7 @@
127
127
  {
128
128
  "key": "CartItemLoaded",
129
129
  "name": "CartItem loaded",
130
- "payload": [
130
+ "payloadSchema": [
131
131
  {
132
132
  "name": "data",
133
133
  "type": "[CartItem]"
@@ -137,7 +137,7 @@
137
137
  {
138
138
  "key": "CartItemLoadFailed",
139
139
  "name": "CartItem load failed",
140
- "payload": [
140
+ "payloadSchema": [
141
141
  {
142
142
  "name": "error",
143
143
  "type": "string"
@@ -169,8 +169,7 @@
169
169
  "render-ui",
170
170
  "main",
171
171
  {
172
- "className": "py-12",
173
- "align": "center",
172
+ "type": "stack",
174
173
  "gap": "md",
175
174
  "children": [
176
175
  {
@@ -178,13 +177,14 @@
178
177
  },
179
178
  {
180
179
  "variant": "caption",
181
- "type": "typography",
182
180
  "color": "muted",
181
+ "type": "typography",
183
182
  "content": "Loading cart…"
184
183
  }
185
184
  ],
186
- "type": "stack",
187
- "direction": "vertical"
185
+ "direction": "vertical",
186
+ "align": "center",
187
+ "className": "py-12"
188
188
  }
189
189
  ]
190
190
  ]
@@ -198,39 +198,40 @@
198
198
  "render-ui",
199
199
  "main",
200
200
  {
201
- "gap": "lg",
201
+ "type": "stack",
202
202
  "direction": "vertical",
203
+ "gap": "lg",
203
204
  "children": [
204
205
  {
205
206
  "justify": "between",
207
+ "type": "stack",
208
+ "gap": "md",
209
+ "direction": "horizontal",
206
210
  "children": [
207
211
  {
208
212
  "type": "stack",
209
- "direction": "horizontal",
210
213
  "children": [
211
214
  {
212
215
  "name": "shopping-cart",
213
216
  "type": "icon"
214
217
  },
215
218
  {
216
- "variant": "h2",
217
219
  "content": "Shopping Cart",
218
- "type": "typography"
220
+ "type": "typography",
221
+ "variant": "h2"
219
222
  }
220
223
  ],
224
+ "direction": "horizontal",
221
225
  "gap": "md"
222
226
  },
223
227
  {
224
- "action": "ADD_ITEM",
228
+ "variant": "primary",
225
229
  "icon": "plus",
230
+ "label": "Add Item",
226
231
  "type": "button",
227
- "variant": "primary",
228
- "label": "Add Item"
232
+ "action": "ADD_ITEM"
229
233
  }
230
- ],
231
- "gap": "md",
232
- "direction": "horizontal",
233
- "type": "stack"
234
+ ]
234
235
  },
235
236
  {
236
237
  "type": "divider"
@@ -238,34 +239,33 @@
238
239
  {
239
240
  "itemActions": [
240
241
  {
241
- "event": "REQUEST_REMOVE",
242
242
  "label": "Remove",
243
+ "event": "REQUEST_REMOVE",
243
244
  "variant": "danger"
244
245
  }
245
246
  ],
246
- "entity": "@payload.data",
247
247
  "fields": [
248
248
  {
249
- "icon": "shopping-cart",
250
249
  "name": "name",
251
- "variant": "h4",
252
- "label": "Name"
250
+ "label": "Name",
251
+ "icon": "shopping-cart",
252
+ "variant": "h4"
253
253
  },
254
254
  {
255
- "variant": "caption",
255
+ "label": "Description",
256
256
  "name": "description",
257
- "label": "Description"
257
+ "variant": "caption"
258
258
  },
259
259
  {
260
- "name": "status",
261
260
  "label": "Status",
261
+ "name": "status",
262
262
  "variant": "badge"
263
263
  }
264
264
  ],
265
- "type": "data-grid"
265
+ "type": "data-grid",
266
+ "entity": "@payload.data"
266
267
  }
267
- ],
268
- "type": "stack"
268
+ ]
269
269
  }
270
270
  ]
271
271
  ]
@@ -279,35 +279,35 @@
279
279
  "render-ui",
280
280
  "main",
281
281
  {
282
- "className": "py-12",
283
282
  "align": "center",
283
+ "direction": "vertical",
284
+ "className": "py-12",
285
+ "gap": "md",
284
286
  "children": [
285
287
  {
286
- "type": "icon",
287
288
  "name": "alert-triangle",
288
- "color": "destructive"
289
+ "color": "destructive",
290
+ "type": "icon"
289
291
  },
290
292
  {
291
293
  "type": "typography",
292
- "variant": "h3",
293
- "content": "Failed to load cart"
294
+ "content": "Failed to load cart",
295
+ "variant": "h3"
294
296
  },
295
297
  {
296
- "content": "@payload.error",
297
298
  "color": "muted",
298
299
  "type": "typography",
299
- "variant": "body"
300
+ "variant": "body",
301
+ "content": "@payload.error"
300
302
  },
301
303
  {
302
- "icon": "rotate-ccw",
303
- "type": "button",
304
304
  "action": "INIT",
305
+ "variant": "primary",
305
306
  "label": "Retry",
306
- "variant": "primary"
307
+ "icon": "rotate-ccw",
308
+ "type": "button"
307
309
  }
308
310
  ],
309
- "gap": "md",
310
- "direction": "vertical",
311
311
  "type": "stack"
312
312
  }
313
313
  ]
@@ -323,8 +323,8 @@
323
323
  "CartItem",
324
324
  {
325
325
  "emit": {
326
- "success": "CartItemLoaded",
327
- "failure": "CartItemLoadFailed"
326
+ "failure": "CartItemLoadFailed",
327
+ "success": "CartItemLoaded"
328
328
  }
329
329
  }
330
330
  ],
@@ -347,8 +347,8 @@
347
347
  "CartItem",
348
348
  {
349
349
  "emit": {
350
- "failure": "CartItemLoadFailed",
351
- "success": "CartItemLoaded"
350
+ "success": "CartItemLoaded",
351
+ "failure": "CartItemLoadFailed"
352
352
  }
353
353
  }
354
354
  ],
@@ -370,15 +370,15 @@
370
370
  "name": "CartItemAddItem",
371
371
  "linkedEntity": "CartItem",
372
372
  "config": {
373
- "mode": "create",
374
- "openButtonLabel": "Add Item",
375
- "title": "Add Item",
376
373
  "fields": [
377
374
  "name",
378
375
  "description",
379
376
  "status"
380
377
  ],
381
- "icon": "plus-circle"
378
+ "icon": "plus-circle",
379
+ "openButtonLabel": "Add Item",
380
+ "title": "Add Item",
381
+ "mode": "create"
382
382
  },
383
383
  "events": {
384
384
  "OPEN": "ADD_ITEM"
@@ -390,13 +390,13 @@
390
390
  "linkedEntity": "CartItem",
391
391
  "config": {
392
392
  "icon": "alert-triangle",
393
- "title": "Remove Item",
393
+ "confirmLabel": "Remove",
394
394
  "alertMessage": "Are you sure you want to remove this item from your cart?",
395
- "confirmLabel": "Remove"
395
+ "title": "Remove Item"
396
396
  },
397
397
  "events": {
398
- "CONFIRM": "CONFIRM_REMOVE",
399
- "REQUEST": "REQUEST_REMOVE"
398
+ "REQUEST": "REQUEST_REMOVE",
399
+ "CONFIRM": "CONFIRM_REMOVE"
400
400
  }
401
401
  },
402
402
  {
@@ -407,7 +407,7 @@
407
407
  {
408
408
  "event": "ITEM_CREATED",
409
409
  "scope": "external",
410
- "payload": [
410
+ "payloadSchema": [
411
411
  {
412
412
  "name": "id",
413
413
  "type": "string"
@@ -417,7 +417,7 @@
417
417
  {
418
418
  "event": "ITEM_DELETED",
419
419
  "scope": "external",
420
- "payload": [
420
+ "payloadSchema": [
421
421
  {
422
422
  "name": "id",
423
423
  "type": "string"
@@ -458,7 +458,7 @@
458
458
  {
459
459
  "key": "DO_CREATE",
460
460
  "name": "Do Create",
461
- "payload": [
461
+ "payloadSchema": [
462
462
  {
463
463
  "name": "data",
464
464
  "type": "object",
@@ -469,7 +469,7 @@
469
469
  {
470
470
  "key": "DO_DELETE",
471
471
  "name": "Do Delete",
472
- "payload": [
472
+ "payloadSchema": [
473
473
  {
474
474
  "name": "id",
475
475
  "type": "string"
@@ -500,13 +500,11 @@
500
500
  "persist",
501
501
  "create",
502
502
  "CartItem",
503
- "@payload.data"
504
- ],
505
- [
506
- "emit",
507
- "ITEM_CREATED",
503
+ "@payload.data",
508
504
  {
509
- "id": "@payload.data.id"
505
+ "emit": {
506
+ "success": "ITEM_CREATED"
507
+ }
510
508
  }
511
509
  ]
512
510
  ]
@@ -520,13 +518,11 @@
520
518
  "persist",
521
519
  "delete",
522
520
  "CartItem",
523
- "@payload.id"
524
- ],
525
- [
526
- "emit",
527
- "ITEM_DELETED",
521
+ "@payload.id",
528
522
  {
529
- "id": "@payload.id"
523
+ "emit": {
524
+ "success": "ITEM_DELETED"
525
+ }
530
526
  }
531
527
  ]
532
528
  ]
@@ -558,4 +554,4 @@
558
554
  ]
559
555
  }
560
556
  ]
561
- }
557
+ }
@@ -76,7 +76,7 @@
76
76
  {
77
77
  "event": "FilteredListItemLoadFailed",
78
78
  "scope": "internal",
79
- "payload": [
79
+ "payloadSchema": [
80
80
  {
81
81
  "name": "error",
82
82
  "type": "string"
@@ -90,7 +90,7 @@
90
90
  {
91
91
  "event": "FilteredListItemLoaded",
92
92
  "scope": "internal",
93
- "payload": [
93
+ "payloadSchema": [
94
94
  {
95
95
  "name": "data",
96
96
  "type": "[FilteredListItem]"
@@ -113,7 +113,7 @@
113
113
  {
114
114
  "key": "FilteredListItemLoadFailed",
115
115
  "name": "FilteredListItem load failed",
116
- "payload": [
116
+ "payloadSchema": [
117
117
  {
118
118
  "name": "error",
119
119
  "type": "string"
@@ -127,7 +127,7 @@
127
127
  {
128
128
  "key": "FilteredListItemLoaded",
129
129
  "name": "FilteredListItem loaded",
130
- "payload": [
130
+ "payloadSchema": [
131
131
  {
132
132
  "name": "data",
133
133
  "type": "[FilteredListItem]"
@@ -155,23 +155,23 @@
155
155
  "render-ui",
156
156
  "main",
157
157
  {
158
- "className": "max-w-5xl mx-auto w-full",
159
158
  "type": "stack",
160
- "direction": "vertical",
161
- "gap": "md",
162
159
  "children": [
163
160
  {
161
+ "gap": "sm",
164
162
  "children": [
165
163
  "@trait.FilteredItemSearch",
166
164
  "@trait.FilteredItemFilter"
167
165
  ],
168
166
  "type": "stack",
169
- "direction": "horizontal",
170
- "gap": "sm"
167
+ "direction": "horizontal"
171
168
  },
172
169
  "@trait.FilteredItemBrowse",
173
170
  "@trait.FilteredItemPagination"
174
- ]
171
+ ],
172
+ "className": "max-w-5xl mx-auto w-full",
173
+ "gap": "md",
174
+ "direction": "vertical"
175
175
  }
176
176
  ]
177
177
  ]
@@ -194,4 +194,4 @@
194
194
  ]
195
195
  }
196
196
  ]
197
- }
197
+ }