@almadar/std 13.6.0 → 13.8.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 (174) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +69 -69
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +120 -120
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +114 -114
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +124 -114
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +410 -395
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +93 -93
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +67 -117
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +149 -134
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +64 -64
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +106 -106
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +194 -189
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +360 -355
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +69 -69
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +204 -199
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +174 -174
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +125 -125
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +127 -109
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +190 -185
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1209 -1155
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +3021 -3001
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2184 -2249
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1029 -1050
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +842 -804
  24. package/behaviors/registry/app/organisms/std-cms.orb +547 -547
  25. package/behaviors/registry/core/atoms/std-browse.orb +36 -36
  26. package/behaviors/registry/core/atoms/std-cache-aside.orb +111 -111
  27. package/behaviors/registry/core/atoms/std-calendar.orb +56 -51
  28. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +202 -187
  29. package/behaviors/registry/core/atoms/std-confirmation.orb +24 -27
  30. package/behaviors/registry/core/atoms/std-display.orb +2 -2
  31. package/behaviors/registry/core/atoms/std-drawer.orb +58 -58
  32. package/behaviors/registry/core/atoms/std-filter.orb +6 -9
  33. package/behaviors/registry/core/atoms/std-gallery.orb +46 -46
  34. package/behaviors/registry/core/atoms/std-graphs.orb +24 -24
  35. package/behaviors/registry/core/atoms/std-modal.orb +19 -19
  36. package/behaviors/registry/core/atoms/std-pagination.orb +14 -14
  37. package/behaviors/registry/core/atoms/std-push.orb +48 -90
  38. package/behaviors/registry/core/atoms/std-rate-limiter.orb +205 -190
  39. package/behaviors/registry/core/atoms/std-related.orb +31 -31
  40. package/behaviors/registry/core/atoms/std-search.orb +3 -3
  41. package/behaviors/registry/core/atoms/std-selection.orb +102 -102
  42. package/behaviors/registry/core/atoms/std-stats.orb +64 -64
  43. package/behaviors/registry/core/atoms/std-tabs.orb +18 -18
  44. package/behaviors/registry/core/molecules/std-cart.orb +64 -64
  45. package/behaviors/registry/core/molecules/std-dashboard.orb +46 -46
  46. package/behaviors/registry/core/molecules/std-filtered-list.orb +21 -21
  47. package/behaviors/registry/core/molecules/std-form-advanced.orb +172 -127
  48. package/behaviors/registry/core/molecules/std-list.orb +63 -63
  49. package/behaviors/registry/core/molecules/std-wizard-form.orb +145 -130
  50. package/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  51. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +42 -42
  52. package/behaviors/registry/game/atoms/std-overworld.orb +57 -57
  53. package/behaviors/registry/game/atoms/std-physics2d.orb +74 -74
  54. package/behaviors/registry/game/atoms/std-quest.orb +137 -137
  55. package/behaviors/registry/game/atoms/std-timer.orb +291 -291
  56. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +31 -31
  57. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +93 -78
  58. package/behaviors/registry/service/atoms/std-service-email.orb +91 -76
  59. package/behaviors/registry/service/atoms/std-service-github.orb +103 -83
  60. package/behaviors/registry/service/atoms/std-service-llm.orb +117 -112
  61. package/behaviors/registry/service/atoms/std-service-oauth.orb +131 -126
  62. package/behaviors/registry/service/atoms/std-service-redis.orb +123 -108
  63. package/behaviors/registry/service/atoms/std-service-storage.orb +125 -105
  64. package/behaviors/registry/service/atoms/std-service-stripe.orb +113 -103
  65. package/behaviors/registry/service/atoms/std-service-twilio.orb +102 -92
  66. package/behaviors/registry/service/atoms/std-service-youtube.orb +119 -114
  67. package/behaviors/registry/service/organisms/std-service-marketplace.orb +985 -873
  68. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +1027 -972
  69. package/dist/behaviors/behaviors-registry.json +2913 -322
  70. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +69 -69
  71. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +120 -120
  72. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +114 -114
  73. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +124 -114
  74. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +410 -395
  75. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +93 -93
  76. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +67 -117
  77. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +149 -134
  78. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +64 -64
  79. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +106 -106
  80. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +194 -189
  81. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +360 -355
  82. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +69 -69
  83. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +204 -199
  84. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +174 -174
  85. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +125 -125
  86. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +127 -109
  87. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +190 -185
  88. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1209 -1155
  89. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3021 -3001
  90. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2184 -2249
  91. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1029 -1050
  92. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +842 -804
  93. package/dist/behaviors/registry/app/organisms/std-cms.orb +547 -547
  94. package/dist/behaviors/registry/core/atoms/std-browse.orb +36 -36
  95. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +111 -111
  96. package/dist/behaviors/registry/core/atoms/std-calendar.orb +56 -51
  97. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +202 -187
  98. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +24 -27
  99. package/dist/behaviors/registry/core/atoms/std-display.orb +2 -2
  100. package/dist/behaviors/registry/core/atoms/std-drawer.orb +58 -58
  101. package/dist/behaviors/registry/core/atoms/std-filter.orb +6 -9
  102. package/dist/behaviors/registry/core/atoms/std-gallery.orb +46 -46
  103. package/dist/behaviors/registry/core/atoms/std-graphs.orb +24 -24
  104. package/dist/behaviors/registry/core/atoms/std-modal.orb +19 -19
  105. package/dist/behaviors/registry/core/atoms/std-pagination.orb +14 -14
  106. package/dist/behaviors/registry/core/atoms/std-push.orb +48 -90
  107. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +205 -190
  108. package/dist/behaviors/registry/core/atoms/std-related.orb +31 -31
  109. package/dist/behaviors/registry/core/atoms/std-search.orb +3 -3
  110. package/dist/behaviors/registry/core/atoms/std-selection.orb +102 -102
  111. package/dist/behaviors/registry/core/atoms/std-stats.orb +64 -64
  112. package/dist/behaviors/registry/core/atoms/std-tabs.orb +18 -18
  113. package/dist/behaviors/registry/core/molecules/std-cart.orb +64 -64
  114. package/dist/behaviors/registry/core/molecules/std-dashboard.orb +46 -46
  115. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +21 -21
  116. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +172 -127
  117. package/dist/behaviors/registry/core/molecules/std-list.orb +63 -63
  118. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +145 -130
  119. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  120. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +42 -42
  121. package/dist/behaviors/registry/game/atoms/std-overworld.orb +57 -57
  122. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +74 -74
  123. package/dist/behaviors/registry/game/atoms/std-quest.orb +137 -137
  124. package/dist/behaviors/registry/game/atoms/std-timer.orb +291 -291
  125. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +31 -31
  126. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +93 -78
  127. package/dist/behaviors/registry/service/atoms/std-service-email.orb +91 -76
  128. package/dist/behaviors/registry/service/atoms/std-service-github.orb +103 -83
  129. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +117 -112
  130. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +131 -126
  131. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +123 -108
  132. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +125 -105
  133. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +113 -103
  134. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +102 -92
  135. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +119 -114
  136. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +985 -873
  137. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +1027 -972
  138. package/dist/behaviors-registry.json +2913 -322
  139. package/dist/index.d.ts +2 -2
  140. package/dist/index.js +26 -13
  141. package/dist/index.js.map +1 -1
  142. package/dist/modules/agent.d.ts +1 -1
  143. package/dist/modules/array.d.ts +1 -1
  144. package/dist/modules/array.js +16 -8
  145. package/dist/modules/array.js.map +1 -1
  146. package/dist/modules/async.d.ts +1 -1
  147. package/dist/modules/composition.d.ts +1 -1
  148. package/dist/modules/contract.d.ts +1 -1
  149. package/dist/modules/core.d.ts +1 -1
  150. package/dist/modules/core.js +6 -3
  151. package/dist/modules/core.js.map +1 -1
  152. package/dist/modules/data.d.ts +1 -1
  153. package/dist/modules/format.d.ts +1 -1
  154. package/dist/modules/graph.d.ts +1 -1
  155. package/dist/modules/index.d.ts +1 -1
  156. package/dist/modules/index.js +26 -13
  157. package/dist/modules/index.js.map +1 -1
  158. package/dist/modules/math.d.ts +1 -1
  159. package/dist/modules/nn.d.ts +1 -1
  160. package/dist/modules/object.d.ts +1 -1
  161. package/dist/modules/object.js +4 -2
  162. package/dist/modules/object.js.map +1 -1
  163. package/dist/modules/os.d.ts +1 -1
  164. package/dist/modules/prob.d.ts +1 -1
  165. package/dist/modules/str.d.ts +1 -1
  166. package/dist/modules/tensor.d.ts +1 -1
  167. package/dist/modules/time.d.ts +1 -1
  168. package/dist/modules/train.d.ts +1 -1
  169. package/dist/modules/validate.d.ts +1 -1
  170. package/dist/registry.d.ts +1 -1
  171. package/dist/registry.js +26 -13
  172. package/dist/registry.js.map +1 -1
  173. package/dist/{types-D7dG8fBF.d.ts → types-CdSN5hnD.d.ts} +43 -0
  174. package/package.json +1 -1
@@ -713,8 +713,8 @@
713
713
  "Article",
714
714
  {
715
715
  "emit": {
716
- "success": "ArticleLoaded",
717
- "failure": "ArticleLoadFailed"
716
+ "failure": "ArticleLoadFailed",
717
+ "success": "ArticleLoaded"
718
718
  }
719
719
  }
720
720
  ],
@@ -722,22 +722,22 @@
722
722
  "render-ui",
723
723
  "main",
724
724
  {
725
- "direction": "vertical",
726
- "align": "center",
725
+ "className": "py-12",
727
726
  "children": [
728
727
  {
729
728
  "type": "spinner"
730
729
  },
731
730
  {
732
- "color": "muted",
733
- "content": "Loading…",
734
731
  "variant": "caption",
735
- "type": "typography"
732
+ "type": "typography",
733
+ "color": "muted",
734
+ "content": "Loading…"
736
735
  }
737
736
  ],
738
737
  "gap": "md",
739
738
  "type": "stack",
740
- "className": "py-12"
739
+ "direction": "vertical",
740
+ "align": "center"
741
741
  }
742
742
  ]
743
743
  ]
@@ -751,73 +751,76 @@
751
751
  "render-ui",
752
752
  "main",
753
753
  {
754
+ "navItems": [
755
+ {
756
+ "href": "/cms-hub",
757
+ "icon": "layout-grid",
758
+ "label": "CMS Hub"
759
+ },
760
+ {
761
+ "href": "/articles",
762
+ "icon": "file-text",
763
+ "label": "Articles"
764
+ },
765
+ {
766
+ "href": "/media",
767
+ "icon": "image",
768
+ "label": "Media"
769
+ },
770
+ {
771
+ "icon": "folder",
772
+ "href": "/categories",
773
+ "label": "Categories"
774
+ }
775
+ ],
776
+ "appName": "CmsApp",
754
777
  "children": [
755
778
  {
756
779
  "children": [
757
780
  {
758
- "gap": "md",
759
- "justify": "between",
760
781
  "type": "stack",
761
782
  "direction": "horizontal",
783
+ "align": "center",
762
784
  "children": [
763
785
  {
786
+ "gap": "sm",
787
+ "align": "center",
788
+ "direction": "horizontal",
764
789
  "children": [
765
790
  {
766
791
  "type": "icon",
767
792
  "name": "file-text"
768
793
  },
769
794
  {
770
- "type": "typography",
771
795
  "content": "Articles",
796
+ "type": "typography",
772
797
  "variant": "h2"
773
798
  }
774
799
  ],
775
- "type": "stack",
776
- "align": "center",
777
- "gap": "sm",
778
- "direction": "horizontal"
800
+ "type": "stack"
779
801
  },
780
802
  {
803
+ "direction": "horizontal",
804
+ "gap": "sm",
781
805
  "type": "stack",
782
806
  "children": [
783
807
  {
808
+ "label": "Create Article",
784
809
  "variant": "primary",
785
810
  "type": "button",
786
- "label": "Create Article",
787
- "icon": "plus",
788
- "action": "CREATE"
811
+ "action": "CREATE",
812
+ "icon": "plus"
789
813
  }
790
- ],
791
- "gap": "sm",
792
- "direction": "horizontal"
814
+ ]
793
815
  }
794
816
  ],
795
- "align": "center"
817
+ "gap": "md",
818
+ "justify": "between"
796
819
  },
797
820
  {
798
821
  "type": "divider"
799
822
  },
800
823
  {
801
- "type": "data-list",
802
- "entity": "@payload.data",
803
- "itemActions": [
804
- {
805
- "label": "View",
806
- "variant": "ghost",
807
- "event": "VIEW"
808
- },
809
- {
810
- "event": "EDIT",
811
- "label": "Edit",
812
- "variant": "ghost"
813
- },
814
- {
815
- "variant": "danger",
816
- "event": "DELETE",
817
- "label": "Delete"
818
- }
819
- ],
820
- "variant": "card",
821
824
  "gap": "sm",
822
825
  "fields": [
823
826
  {
@@ -834,45 +837,42 @@
834
837
  "variant": "body"
835
838
  },
836
839
  {
837
- "name": "slug",
838
- "variant": "caption"
840
+ "variant": "caption",
841
+ "name": "slug"
839
842
  },
840
843
  {
841
- "variant": "caption",
842
- "label": "Published",
843
844
  "name": "publishedAt",
844
- "format": "date"
845
+ "label": "Published",
846
+ "format": "date",
847
+ "variant": "caption"
845
848
  }
846
- ]
849
+ ],
850
+ "type": "data-list",
851
+ "itemActions": [
852
+ {
853
+ "label": "View",
854
+ "variant": "ghost",
855
+ "event": "VIEW"
856
+ },
857
+ {
858
+ "event": "EDIT",
859
+ "variant": "ghost",
860
+ "label": "Edit"
861
+ },
862
+ {
863
+ "label": "Delete",
864
+ "event": "DELETE",
865
+ "variant": "danger"
866
+ }
867
+ ],
868
+ "entity": "@payload.data",
869
+ "variant": "card"
847
870
  }
848
871
  ],
849
- "gap": "lg",
872
+ "className": "max-w-5xl mx-auto w-full",
850
873
  "type": "stack",
851
874
  "direction": "vertical",
852
- "className": "max-w-5xl mx-auto w-full"
853
- }
854
- ],
855
- "appName": "CmsApp",
856
- "navItems": [
857
- {
858
- "label": "CMS Hub",
859
- "href": "/cms-hub",
860
- "icon": "layout-grid"
861
- },
862
- {
863
- "label": "Articles",
864
- "href": "/articles",
865
- "icon": "file-text"
866
- },
867
- {
868
- "href": "/media",
869
- "icon": "image",
870
- "label": "Media"
871
- },
872
- {
873
- "icon": "folder",
874
- "href": "/categories",
875
- "label": "Categories"
875
+ "gap": "lg"
876
876
  }
877
877
  ],
878
878
  "type": "dashboard-layout"
@@ -889,36 +889,36 @@
889
889
  "render-ui",
890
890
  "main",
891
891
  {
892
+ "align": "center",
892
893
  "gap": "md",
894
+ "direction": "vertical",
895
+ "className": "py-12",
896
+ "type": "stack",
893
897
  "children": [
894
898
  {
895
- "color": "destructive",
899
+ "name": "alert-triangle",
896
900
  "type": "icon",
897
- "name": "alert-triangle"
901
+ "color": "destructive"
898
902
  },
899
903
  {
900
- "content": "Failed to load article",
901
904
  "type": "typography",
902
- "variant": "h3"
905
+ "variant": "h3",
906
+ "content": "Failed to load article"
903
907
  },
904
908
  {
905
909
  "content": "@payload.error",
906
- "color": "muted",
907
910
  "type": "typography",
908
- "variant": "body"
911
+ "variant": "body",
912
+ "color": "muted"
909
913
  },
910
914
  {
911
915
  "type": "button",
912
- "variant": "primary",
913
916
  "action": "INIT",
914
917
  "label": "Retry",
918
+ "variant": "primary",
915
919
  "icon": "rotate-ccw"
916
920
  }
917
- ],
918
- "type": "stack",
919
- "className": "py-12",
920
- "direction": "vertical",
921
- "align": "center"
921
+ ]
922
922
  }
923
923
  ]
924
924
  ]
@@ -1131,27 +1131,29 @@
1131
1131
  "gap": "md",
1132
1132
  "children": [
1133
1133
  {
1134
+ "direction": "horizontal",
1134
1135
  "children": [
1135
1136
  {
1136
1137
  "type": "icon",
1137
1138
  "name": "plus-circle"
1138
1139
  },
1139
1140
  {
1140
- "variant": "h3",
1141
1141
  "type": "typography",
1142
- "content": "Create Article"
1142
+ "content": "Create Article",
1143
+ "variant": "h3"
1143
1144
  }
1144
1145
  ],
1145
1146
  "type": "stack",
1146
- "direction": "horizontal",
1147
1147
  "gap": "sm"
1148
1148
  },
1149
1149
  {
1150
1150
  "type": "divider"
1151
1151
  },
1152
1152
  {
1153
- "cancelEvent": "CLOSE",
1154
1153
  "mode": "create",
1154
+ "submitEvent": "SAVE",
1155
+ "type": "form-section",
1156
+ "cancelEvent": "CLOSE",
1155
1157
  "fields": [
1156
1158
  "title",
1157
1159
  "slug",
@@ -1159,9 +1161,7 @@
1159
1161
  "author",
1160
1162
  "status",
1161
1163
  "publishedAt"
1162
- ],
1163
- "type": "form-section",
1164
- "submitEvent": "SAVE"
1164
+ ]
1165
1165
  }
1166
1166
  ],
1167
1167
  "type": "stack"
@@ -1205,8 +1205,8 @@
1205
1205
  "@payload.data",
1206
1206
  {
1207
1207
  "emit": {
1208
- "failure": "ArticleSaveFailed",
1209
- "success": "ArticleSaved"
1208
+ "success": "ArticleSaved",
1209
+ "failure": "ArticleSaveFailed"
1210
1210
  }
1211
1211
  }
1212
1212
  ],
@@ -1441,22 +1441,21 @@
1441
1441
  "fetch",
1442
1442
  "Article",
1443
1443
  {
1444
+ "id": "@payload.id",
1444
1445
  "emit": {
1445
- "success": "ArticleLoaded",
1446
- "failure": "ArticleLoadFailed"
1447
- },
1448
- "id": "@payload.id"
1446
+ "failure": "ArticleLoadFailed",
1447
+ "success": "ArticleLoaded"
1448
+ }
1449
1449
  }
1450
1450
  ],
1451
1451
  [
1452
1452
  "render-ui",
1453
1453
  "modal",
1454
1454
  {
1455
- "direction": "vertical",
1456
1455
  "children": [
1457
1456
  {
1458
- "gap": "sm",
1459
1457
  "direction": "horizontal",
1458
+ "gap": "sm",
1460
1459
  "type": "stack",
1461
1460
  "children": [
1462
1461
  {
@@ -1464,9 +1463,9 @@
1464
1463
  "name": "edit"
1465
1464
  },
1466
1465
  {
1467
- "type": "typography",
1468
1466
  "variant": "h3",
1469
- "content": "Edit Article"
1467
+ "content": "Edit Article",
1468
+ "type": "typography"
1470
1469
  }
1471
1470
  ]
1472
1471
  },
@@ -1482,15 +1481,16 @@
1482
1481
  "status",
1483
1482
  "publishedAt"
1484
1483
  ],
1484
+ "mode": "edit",
1485
+ "type": "form-section",
1485
1486
  "entity": "@payload.row",
1486
1487
  "cancelEvent": "CLOSE",
1487
- "mode": "edit",
1488
- "submitEvent": "SAVE",
1489
- "type": "form-section"
1488
+ "submitEvent": "SAVE"
1490
1489
  }
1491
1490
  ],
1492
- "type": "stack",
1493
- "gap": "md"
1491
+ "direction": "vertical",
1492
+ "gap": "md",
1493
+ "type": "stack"
1494
1494
  }
1495
1495
  ]
1496
1496
  ]
@@ -1531,8 +1531,8 @@
1531
1531
  "@payload.data",
1532
1532
  {
1533
1533
  "emit": {
1534
- "failure": "ArticleUpdateFailed",
1535
- "success": "ArticleUpdated"
1534
+ "success": "ArticleUpdated",
1535
+ "failure": "ArticleUpdateFailed"
1536
1536
  }
1537
1537
  }
1538
1538
  ],
@@ -1753,36 +1753,37 @@
1753
1753
  {
1754
1754
  "direction": "vertical",
1755
1755
  "gap": "md",
1756
+ "type": "stack",
1756
1757
  "children": [
1757
1758
  {
1758
- "type": "stack",
1759
1759
  "gap": "sm",
1760
+ "align": "center",
1760
1761
  "children": [
1761
1762
  {
1762
1763
  "name": "eye",
1763
1764
  "type": "icon"
1764
1765
  },
1765
1766
  {
1766
- "type": "typography",
1767
1767
  "content": "@entity.title",
1768
- "variant": "h3"
1768
+ "variant": "h3",
1769
+ "type": "typography"
1769
1770
  }
1770
1771
  ],
1771
1772
  "direction": "horizontal",
1772
- "align": "center"
1773
+ "type": "stack"
1773
1774
  },
1774
1775
  {
1775
1776
  "type": "divider"
1776
1777
  },
1777
1778
  {
1778
- "gap": "md",
1779
1779
  "type": "stack",
1780
1780
  "direction": "horizontal",
1781
+ "gap": "md",
1781
1782
  "children": [
1782
1783
  {
1784
+ "type": "typography",
1783
1785
  "content": "Title",
1784
- "variant": "caption",
1785
- "type": "typography"
1786
+ "variant": "caption"
1786
1787
  },
1787
1788
  {
1788
1789
  "variant": "body",
@@ -1793,7 +1794,6 @@
1793
1794
  },
1794
1795
  {
1795
1796
  "direction": "horizontal",
1796
- "type": "stack",
1797
1797
  "gap": "md",
1798
1798
  "children": [
1799
1799
  {
@@ -1803,42 +1803,43 @@
1803
1803
  },
1804
1804
  {
1805
1805
  "type": "typography",
1806
- "variant": "body",
1807
- "content": "@entity.slug"
1806
+ "content": "@entity.slug",
1807
+ "variant": "body"
1808
1808
  }
1809
- ]
1809
+ ],
1810
+ "type": "stack"
1810
1811
  },
1811
1812
  {
1812
- "type": "stack",
1813
- "gap": "md",
1814
1813
  "direction": "horizontal",
1814
+ "type": "stack",
1815
1815
  "children": [
1816
1816
  {
1817
- "type": "typography",
1818
1817
  "variant": "caption",
1819
- "content": "Content"
1818
+ "content": "Content",
1819
+ "type": "typography"
1820
1820
  },
1821
1821
  {
1822
1822
  "type": "typography",
1823
- "content": "@entity.content",
1824
- "variant": "body"
1823
+ "variant": "body",
1824
+ "content": "@entity.content"
1825
1825
  }
1826
- ]
1826
+ ],
1827
+ "gap": "md"
1827
1828
  },
1828
1829
  {
1830
+ "direction": "horizontal",
1829
1831
  "gap": "md",
1830
1832
  "type": "stack",
1831
- "direction": "horizontal",
1832
1833
  "children": [
1833
1834
  {
1834
- "type": "typography",
1835
1835
  "content": "Author",
1836
- "variant": "caption"
1836
+ "variant": "caption",
1837
+ "type": "typography"
1837
1838
  },
1838
1839
  {
1839
- "variant": "body",
1840
1840
  "content": "@entity.author",
1841
- "type": "typography"
1841
+ "type": "typography",
1842
+ "variant": "body"
1842
1843
  }
1843
1844
  ]
1844
1845
  },
@@ -1846,33 +1847,33 @@
1846
1847
  "gap": "md",
1847
1848
  "children": [
1848
1849
  {
1849
- "content": "Status",
1850
+ "type": "typography",
1850
1851
  "variant": "caption",
1851
- "type": "typography"
1852
+ "content": "Status"
1852
1853
  },
1853
1854
  {
1854
- "variant": "body",
1855
+ "type": "typography",
1855
1856
  "content": "@entity.status",
1856
- "type": "typography"
1857
+ "variant": "body"
1857
1858
  }
1858
1859
  ],
1859
- "direction": "horizontal",
1860
- "type": "stack"
1860
+ "type": "stack",
1861
+ "direction": "horizontal"
1861
1862
  },
1862
1863
  {
1863
1864
  "type": "stack",
1864
- "gap": "md",
1865
1865
  "direction": "horizontal",
1866
+ "gap": "md",
1866
1867
  "children": [
1867
1868
  {
1868
- "content": "Published At",
1869
1869
  "type": "typography",
1870
- "variant": "caption"
1870
+ "variant": "caption",
1871
+ "content": "Published At"
1871
1872
  },
1872
1873
  {
1873
1874
  "content": "@entity.publishedAt",
1874
- "type": "typography",
1875
- "variant": "body"
1875
+ "variant": "body",
1876
+ "type": "typography"
1876
1877
  }
1877
1878
  ]
1878
1879
  },
@@ -1880,13 +1881,15 @@
1880
1881
  "type": "divider"
1881
1882
  },
1882
1883
  {
1884
+ "gap": "sm",
1885
+ "type": "stack",
1883
1886
  "children": [
1884
1887
  {
1885
- "icon": "edit",
1886
1888
  "label": "Edit",
1889
+ "variant": "primary",
1890
+ "icon": "edit",
1887
1891
  "type": "button",
1888
- "action": "EDIT",
1889
- "variant": "primary"
1892
+ "action": "EDIT"
1890
1893
  },
1891
1894
  {
1892
1895
  "label": "Close",
@@ -1895,13 +1898,10 @@
1895
1898
  "action": "CLOSE"
1896
1899
  }
1897
1900
  ],
1898
- "type": "stack",
1899
- "gap": "sm",
1900
- "justify": "end",
1901
- "direction": "horizontal"
1901
+ "direction": "horizontal",
1902
+ "justify": "end"
1902
1903
  }
1903
- ],
1904
- "type": "stack"
1904
+ ]
1905
1905
  }
1906
1906
  ]
1907
1907
  ]
@@ -2152,68 +2152,68 @@
2152
2152
  "fetch",
2153
2153
  "Article",
2154
2154
  {
2155
+ "id": "@payload.id",
2155
2156
  "emit": {
2156
2157
  "success": "ArticleLoaded",
2157
2158
  "failure": "ArticleLoadFailed"
2158
- },
2159
- "id": "@payload.id"
2159
+ }
2160
2160
  }
2161
2161
  ],
2162
2162
  [
2163
2163
  "render-ui",
2164
2164
  "modal",
2165
2165
  {
2166
+ "gap": "md",
2167
+ "type": "stack",
2166
2168
  "direction": "vertical",
2167
2169
  "children": [
2168
2170
  {
2169
- "align": "center",
2170
- "direction": "horizontal",
2171
- "gap": "sm",
2172
2171
  "type": "stack",
2173
2172
  "children": [
2174
2173
  {
2175
- "type": "icon",
2176
- "name": "alert-triangle"
2174
+ "name": "alert-triangle",
2175
+ "type": "icon"
2177
2176
  },
2178
2177
  {
2179
- "type": "typography",
2180
2178
  "content": "Delete Article",
2181
- "variant": "h3"
2179
+ "variant": "h3",
2180
+ "type": "typography"
2182
2181
  }
2183
- ]
2182
+ ],
2183
+ "direction": "horizontal",
2184
+ "gap": "sm",
2185
+ "align": "center"
2184
2186
  },
2185
2187
  {
2186
2188
  "type": "divider"
2187
2189
  },
2188
2190
  {
2189
2191
  "type": "alert",
2190
- "variant": "error",
2191
- "message": "This action cannot be undone."
2192
+ "message": "This action cannot be undone.",
2193
+ "variant": "error"
2192
2194
  },
2193
2195
  {
2196
+ "direction": "horizontal",
2197
+ "gap": "sm",
2194
2198
  "justify": "end",
2195
2199
  "type": "stack",
2196
2200
  "children": [
2197
2201
  {
2198
- "action": "CANCEL",
2199
2202
  "variant": "ghost",
2200
- "type": "button",
2201
- "label": "Cancel"
2203
+ "action": "CANCEL",
2204
+ "label": "Cancel",
2205
+ "type": "button"
2202
2206
  },
2203
2207
  {
2204
- "icon": "check",
2205
- "label": "Delete",
2206
- "action": "CONFIRM_DELETE",
2207
2208
  "type": "button",
2208
- "variant": "danger"
2209
+ "variant": "danger",
2210
+ "action": "CONFIRM_DELETE",
2211
+ "icon": "check",
2212
+ "label": "Delete"
2209
2213
  }
2210
- ],
2211
- "gap": "sm",
2212
- "direction": "horizontal"
2214
+ ]
2213
2215
  }
2214
- ],
2215
- "gap": "md",
2216
- "type": "stack"
2216
+ ]
2217
2217
  }
2218
2218
  ]
2219
2219
  ]
@@ -2252,8 +2252,8 @@
2252
2252
  "Article",
2253
2253
  {
2254
2254
  "emit": {
2255
- "success": "ArticleLoaded",
2256
- "failure": "ArticleLoadFailed"
2255
+ "failure": "ArticleLoadFailed",
2256
+ "success": "ArticleLoaded"
2257
2257
  }
2258
2258
  }
2259
2259
  ],
@@ -2534,8 +2534,8 @@
2534
2534
  "MediaAsset",
2535
2535
  {
2536
2536
  "emit": {
2537
- "failure": "MediaAssetLoadFailed",
2538
- "success": "MediaAssetLoaded"
2537
+ "success": "MediaAssetLoaded",
2538
+ "failure": "MediaAssetLoadFailed"
2539
2539
  }
2540
2540
  }
2541
2541
  ],
@@ -2543,22 +2543,22 @@
2543
2543
  "render-ui",
2544
2544
  "main",
2545
2545
  {
2546
- "direction": "vertical",
2547
- "gap": "md",
2548
- "align": "center",
2549
- "className": "py-12",
2550
- "type": "stack",
2551
2546
  "children": [
2552
2547
  {
2553
2548
  "type": "spinner"
2554
2549
  },
2555
2550
  {
2556
- "variant": "caption",
2557
2551
  "content": "Loading…",
2558
- "type": "typography",
2559
- "color": "muted"
2552
+ "color": "muted",
2553
+ "variant": "caption",
2554
+ "type": "typography"
2560
2555
  }
2561
- ]
2556
+ ],
2557
+ "direction": "vertical",
2558
+ "type": "stack",
2559
+ "align": "center",
2560
+ "gap": "md",
2561
+ "className": "py-12"
2562
2562
  }
2563
2563
  ]
2564
2564
  ]
@@ -2573,25 +2573,25 @@
2573
2573
  "main",
2574
2574
  {
2575
2575
  "appName": "CmsApp",
2576
+ "type": "dashboard-layout",
2576
2577
  "children": [
2577
2578
  {
2578
- "type": "stack",
2579
2579
  "gap": "lg",
2580
+ "direction": "vertical",
2581
+ "type": "stack",
2580
2582
  "className": "max-w-5xl mx-auto w-full",
2581
2583
  "children": [
2582
2584
  {
2583
2585
  "type": "stack",
2584
- "gap": "md",
2585
- "justify": "between",
2586
+ "align": "center",
2586
2587
  "children": [
2587
2588
  {
2588
2589
  "type": "stack",
2589
- "align": "center",
2590
- "direction": "horizontal",
2590
+ "gap": "sm",
2591
2591
  "children": [
2592
2592
  {
2593
- "name": "image",
2594
- "type": "icon"
2593
+ "type": "icon",
2594
+ "name": "image"
2595
2595
  },
2596
2596
  {
2597
2597
  "type": "typography",
@@ -2599,46 +2599,38 @@
2599
2599
  "variant": "h2"
2600
2600
  }
2601
2601
  ],
2602
- "gap": "sm"
2602
+ "align": "center",
2603
+ "direction": "horizontal"
2603
2604
  },
2604
2605
  {
2605
- "gap": "sm",
2606
- "type": "stack",
2607
- "direction": "horizontal",
2608
2606
  "children": [
2609
2607
  {
2610
- "label": "Create MediaAsset",
2611
- "variant": "primary",
2612
2608
  "type": "button",
2613
- "action": "CREATE",
2614
- "icon": "plus"
2609
+ "variant": "primary",
2610
+ "label": "Create MediaAsset",
2611
+ "icon": "plus",
2612
+ "action": "CREATE"
2615
2613
  }
2616
- ]
2614
+ ],
2615
+ "gap": "sm",
2616
+ "direction": "horizontal",
2617
+ "type": "stack"
2617
2618
  }
2618
2619
  ],
2619
2620
  "direction": "horizontal",
2620
- "align": "center"
2621
+ "gap": "md",
2622
+ "justify": "between"
2621
2623
  },
2622
2624
  {
2623
2625
  "type": "divider"
2624
2626
  },
2625
2627
  {
2626
- "gap": "md",
2627
- "type": "data-grid",
2628
- "itemActions": [
2629
- {
2630
- "label": "View",
2631
- "variant": "ghost",
2632
- "event": "VIEW"
2633
- }
2634
- ],
2635
- "entity": "@payload.data",
2636
2628
  "fields": [
2637
2629
  {
2638
2630
  "label": "File",
2631
+ "variant": "h3",
2639
2632
  "icon": "image",
2640
- "name": "fileName",
2641
- "variant": "h3"
2633
+ "name": "fileName"
2642
2634
  },
2643
2635
  {
2644
2636
  "name": "fileType",
@@ -2646,46 +2638,54 @@
2646
2638
  "variant": "badge"
2647
2639
  },
2648
2640
  {
2649
- "format": "number",
2650
2641
  "label": "Size",
2642
+ "format": "number",
2651
2643
  "variant": "body",
2652
2644
  "name": "fileSize"
2653
2645
  },
2654
2646
  {
2655
2647
  "name": "altText",
2656
- "variant": "caption",
2657
- "label": "Alt Text"
2648
+ "label": "Alt Text",
2649
+ "variant": "caption"
2650
+ }
2651
+ ],
2652
+ "cols": 3.0,
2653
+ "gap": "md",
2654
+ "itemActions": [
2655
+ {
2656
+ "event": "VIEW",
2657
+ "variant": "ghost",
2658
+ "label": "View"
2658
2659
  }
2659
2660
  ],
2660
- "cols": 3.0
2661
+ "type": "data-grid",
2662
+ "entity": "@payload.data"
2661
2663
  }
2662
- ],
2663
- "direction": "vertical"
2664
+ ]
2664
2665
  }
2665
2666
  ],
2666
2667
  "navItems": [
2667
2668
  {
2668
- "href": "/cms-hub",
2669
2669
  "label": "CMS Hub",
2670
+ "href": "/cms-hub",
2670
2671
  "icon": "layout-grid"
2671
2672
  },
2672
2673
  {
2673
2674
  "label": "Articles",
2674
- "href": "/articles",
2675
- "icon": "file-text"
2675
+ "icon": "file-text",
2676
+ "href": "/articles"
2676
2677
  },
2677
2678
  {
2678
- "href": "/media",
2679
2679
  "icon": "image",
2680
- "label": "Media"
2680
+ "label": "Media",
2681
+ "href": "/media"
2681
2682
  },
2682
2683
  {
2683
2684
  "label": "Categories",
2684
- "icon": "folder",
2685
- "href": "/categories"
2685
+ "href": "/categories",
2686
+ "icon": "folder"
2686
2687
  }
2687
- ],
2688
- "type": "dashboard-layout"
2688
+ ]
2689
2689
  }
2690
2690
  ]
2691
2691
  ]
@@ -2699,36 +2699,36 @@
2699
2699
  "render-ui",
2700
2700
  "main",
2701
2701
  {
2702
+ "align": "center",
2703
+ "className": "py-12",
2704
+ "gap": "md",
2705
+ "type": "stack",
2702
2706
  "children": [
2703
2707
  {
2704
- "type": "icon",
2705
2708
  "color": "destructive",
2706
- "name": "alert-triangle"
2709
+ "name": "alert-triangle",
2710
+ "type": "icon"
2707
2711
  },
2708
2712
  {
2713
+ "variant": "h3",
2709
2714
  "content": "Failed to load mediaasset",
2710
- "type": "typography",
2711
- "variant": "h3"
2715
+ "type": "typography"
2712
2716
  },
2713
- {
2714
- "variant": "body",
2715
- "type": "typography",
2717
+ {
2716
2718
  "content": "@payload.error",
2717
- "color": "muted"
2719
+ "color": "muted",
2720
+ "variant": "body",
2721
+ "type": "typography"
2718
2722
  },
2719
2723
  {
2724
+ "icon": "rotate-ccw",
2725
+ "action": "INIT",
2720
2726
  "label": "Retry",
2721
- "type": "button",
2722
2727
  "variant": "primary",
2723
- "action": "INIT",
2724
- "icon": "rotate-ccw"
2728
+ "type": "button"
2725
2729
  }
2726
2730
  ],
2727
- "type": "stack",
2728
- "direction": "vertical",
2729
- "align": "center",
2730
- "gap": "md",
2731
- "className": "py-12"
2731
+ "direction": "vertical"
2732
2732
  }
2733
2733
  ]
2734
2734
  ]
@@ -2896,8 +2896,8 @@
2896
2896
  "MediaAsset",
2897
2897
  {
2898
2898
  "emit": {
2899
- "failure": "MediaAssetLoadFailed",
2900
- "success": "MediaAssetLoaded"
2899
+ "success": "MediaAssetLoaded",
2900
+ "failure": "MediaAssetLoadFailed"
2901
2901
  }
2902
2902
  }
2903
2903
  ]
@@ -2922,31 +2922,31 @@
2922
2922
  "render-ui",
2923
2923
  "modal",
2924
2924
  {
2925
- "type": "stack",
2926
2925
  "gap": "md",
2926
+ "direction": "vertical",
2927
+ "type": "stack",
2927
2928
  "children": [
2928
2929
  {
2929
2930
  "type": "stack",
2931
+ "direction": "horizontal",
2932
+ "gap": "sm",
2930
2933
  "children": [
2931
2934
  {
2932
- "name": "plus-circle",
2933
- "type": "icon"
2935
+ "type": "icon",
2936
+ "name": "plus-circle"
2934
2937
  },
2935
2938
  {
2939
+ "type": "typography",
2936
2940
  "variant": "h3",
2937
- "content": "New MediaAsset",
2938
- "type": "typography"
2941
+ "content": "New MediaAsset"
2939
2942
  }
2940
- ],
2941
- "direction": "horizontal",
2942
- "gap": "sm"
2943
+ ]
2943
2944
  },
2944
2945
  {
2945
2946
  "type": "divider"
2946
2947
  },
2947
2948
  {
2948
- "cancelEvent": "CLOSE",
2949
- "mode": "create",
2949
+ "type": "form-section",
2950
2950
  "fields": [
2951
2951
  "fileName",
2952
2952
  "fileType",
@@ -2955,11 +2955,11 @@
2955
2955
  "altText",
2956
2956
  "uploadedAt"
2957
2957
  ],
2958
- "type": "form-section",
2959
- "submitEvent": "SAVE"
2958
+ "submitEvent": "SAVE",
2959
+ "cancelEvent": "CLOSE",
2960
+ "mode": "create"
2960
2961
  }
2961
- ],
2962
- "direction": "vertical"
2962
+ ]
2963
2963
  }
2964
2964
  ]
2965
2965
  ]
@@ -3000,8 +3000,8 @@
3000
3000
  "@payload.data",
3001
3001
  {
3002
3002
  "emit": {
3003
- "failure": "MediaAssetSaveFailed",
3004
- "success": "MediaAssetSaved"
3003
+ "success": "MediaAssetSaved",
3004
+ "failure": "MediaAssetSaveFailed"
3005
3005
  }
3006
3006
  }
3007
3007
  ],
@@ -3139,8 +3139,8 @@
3139
3139
  "MediaAsset",
3140
3140
  {
3141
3141
  "emit": {
3142
- "failure": "MediaAssetLoadFailed",
3143
- "success": "MediaAssetLoaded"
3142
+ "success": "MediaAssetLoaded",
3143
+ "failure": "MediaAssetLoadFailed"
3144
3144
  }
3145
3145
  }
3146
3146
  ]
@@ -3185,24 +3185,26 @@
3185
3185
  "fetch",
3186
3186
  "MediaAsset",
3187
3187
  {
3188
- "id": "@payload.id",
3189
3188
  "emit": {
3190
- "failure": "MediaAssetLoadFailed",
3191
- "success": "MediaAssetLoaded"
3192
- }
3189
+ "success": "MediaAssetLoaded",
3190
+ "failure": "MediaAssetLoadFailed"
3191
+ },
3192
+ "id": "@payload.id"
3193
3193
  }
3194
3194
  ],
3195
3195
  [
3196
3196
  "render-ui",
3197
3197
  "modal",
3198
3198
  {
3199
+ "type": "stack",
3199
3200
  "children": [
3200
3201
  {
3201
3202
  "gap": "sm",
3203
+ "align": "center",
3202
3204
  "children": [
3203
3205
  {
3204
- "type": "icon",
3205
- "name": "eye"
3206
+ "name": "eye",
3207
+ "type": "icon"
3206
3208
  },
3207
3209
  {
3208
3210
  "content": "@entity.fileName",
@@ -3210,134 +3212,132 @@
3210
3212
  "variant": "h3"
3211
3213
  }
3212
3214
  ],
3213
- "type": "stack",
3214
3215
  "direction": "horizontal",
3215
- "align": "center"
3216
+ "type": "stack"
3216
3217
  },
3217
3218
  {
3218
3219
  "type": "divider"
3219
3220
  },
3220
3221
  {
3222
+ "type": "stack",
3223
+ "direction": "horizontal",
3224
+ "gap": "md",
3221
3225
  "children": [
3222
3226
  {
3227
+ "variant": "caption",
3223
3228
  "content": "File Name",
3224
- "type": "typography",
3225
- "variant": "caption"
3229
+ "type": "typography"
3226
3230
  },
3227
3231
  {
3228
- "type": "typography",
3229
3232
  "variant": "body",
3230
- "content": "@entity.fileName"
3233
+ "content": "@entity.fileName",
3234
+ "type": "typography"
3231
3235
  }
3232
- ],
3233
- "direction": "horizontal",
3234
- "gap": "md",
3235
- "type": "stack"
3236
+ ]
3236
3237
  },
3237
3238
  {
3238
- "gap": "md",
3239
- "type": "stack",
3239
+ "direction": "horizontal",
3240
3240
  "children": [
3241
3241
  {
3242
+ "variant": "caption",
3242
3243
  "content": "File Type",
3243
- "type": "typography",
3244
- "variant": "caption"
3244
+ "type": "typography"
3245
3245
  },
3246
3246
  {
3247
- "variant": "body",
3247
+ "content": "@entity.fileType",
3248
3248
  "type": "typography",
3249
- "content": "@entity.fileType"
3249
+ "variant": "body"
3250
3250
  }
3251
3251
  ],
3252
- "direction": "horizontal"
3252
+ "gap": "md",
3253
+ "type": "stack"
3253
3254
  },
3254
3255
  {
3255
3256
  "type": "stack",
3256
3257
  "direction": "horizontal",
3258
+ "gap": "md",
3257
3259
  "children": [
3258
3260
  {
3259
- "variant": "caption",
3260
3261
  "content": "File Size",
3261
- "type": "typography"
3262
+ "type": "typography",
3263
+ "variant": "caption"
3262
3264
  },
3263
3265
  {
3264
3266
  "content": "@entity.fileSize",
3265
3267
  "type": "typography",
3266
3268
  "variant": "body"
3267
3269
  }
3268
- ],
3269
- "gap": "md"
3270
+ ]
3270
3271
  },
3271
3272
  {
3273
+ "type": "stack",
3274
+ "gap": "md",
3275
+ "direction": "horizontal",
3272
3276
  "children": [
3273
3277
  {
3278
+ "type": "typography",
3274
3279
  "variant": "caption",
3275
- "content": "Url",
3276
- "type": "typography"
3280
+ "content": "Url"
3277
3281
  },
3278
3282
  {
3279
3283
  "type": "typography",
3280
- "content": "@entity.url",
3281
- "variant": "body"
3284
+ "variant": "body",
3285
+ "content": "@entity.url"
3282
3286
  }
3283
- ],
3284
- "type": "stack",
3285
- "gap": "md",
3286
- "direction": "horizontal"
3287
+ ]
3287
3288
  },
3288
3289
  {
3289
- "gap": "md",
3290
3290
  "type": "stack",
3291
- "direction": "horizontal",
3292
3291
  "children": [
3293
3292
  {
3294
3293
  "type": "typography",
3295
- "variant": "caption",
3296
- "content": "Alt Text"
3294
+ "content": "Alt Text",
3295
+ "variant": "caption"
3297
3296
  },
3298
3297
  {
3299
- "content": "@entity.altText",
3300
3298
  "variant": "body",
3299
+ "content": "@entity.altText",
3301
3300
  "type": "typography"
3302
3301
  }
3303
- ]
3302
+ ],
3303
+ "direction": "horizontal",
3304
+ "gap": "md"
3304
3305
  },
3305
3306
  {
3306
- "type": "stack",
3307
+ "gap": "md",
3307
3308
  "children": [
3308
3309
  {
3309
- "type": "typography",
3310
3310
  "variant": "caption",
3311
- "content": "Uploaded At"
3311
+ "content": "Uploaded At",
3312
+ "type": "typography"
3312
3313
  },
3313
3314
  {
3314
- "content": "@entity.uploadedAt",
3315
3315
  "type": "typography",
3316
- "variant": "body"
3316
+ "variant": "body",
3317
+ "content": "@entity.uploadedAt"
3317
3318
  }
3318
3319
  ],
3319
- "direction": "horizontal",
3320
- "gap": "md"
3320
+ "type": "stack",
3321
+ "direction": "horizontal"
3321
3322
  },
3322
3323
  {
3323
3324
  "type": "divider"
3324
3325
  },
3325
3326
  {
3326
- "direction": "horizontal",
3327
+ "type": "stack",
3327
3328
  "gap": "sm",
3329
+ "direction": "horizontal",
3328
3330
  "children": [
3329
3331
  {
3330
3332
  "type": "button",
3331
3333
  "label": "Close",
3332
- "action": "CLOSE",
3333
- "variant": "ghost"
3334
+ "variant": "ghost",
3335
+ "action": "CLOSE"
3334
3336
  }
3335
3337
  ],
3336
- "justify": "end",
3337
- "type": "stack"
3338
+ "justify": "end"
3338
3339
  }
3339
3340
  ],
3340
- "type": "stack",
3341
3341
  "gap": "md",
3342
3342
  "direction": "vertical"
3343
3343
  }
@@ -3709,8 +3709,8 @@
3709
3709
  "Category",
3710
3710
  {
3711
3711
  "emit": {
3712
- "failure": "CategoryLoadFailed",
3713
- "success": "CategoryLoaded"
3712
+ "success": "CategoryLoaded",
3713
+ "failure": "CategoryLoadFailed"
3714
3714
  }
3715
3715
  }
3716
3716
  ],
@@ -3718,22 +3718,22 @@
3718
3718
  "render-ui",
3719
3719
  "main",
3720
3720
  {
3721
- "gap": "md",
3721
+ "type": "stack",
3722
+ "direction": "vertical",
3723
+ "className": "py-12",
3724
+ "align": "center",
3722
3725
  "children": [
3723
3726
  {
3724
3727
  "type": "spinner"
3725
3728
  },
3726
3729
  {
3727
- "variant": "caption",
3730
+ "type": "typography",
3728
3731
  "color": "muted",
3729
- "content": "Loading…",
3730
- "type": "typography"
3732
+ "variant": "caption",
3733
+ "content": "Loading…"
3731
3734
  }
3732
3735
  ],
3733
- "className": "py-12",
3734
- "align": "center",
3735
- "type": "stack",
3736
- "direction": "vertical"
3736
+ "gap": "md"
3737
3737
  }
3738
3738
  ]
3739
3739
  ]
@@ -3747,39 +3747,15 @@
3747
3747
  "render-ui",
3748
3748
  "main",
3749
3749
  {
3750
- "type": "dashboard-layout",
3751
- "navItems": [
3752
- {
3753
- "icon": "layout-grid",
3754
- "label": "CMS Hub",
3755
- "href": "/cms-hub"
3756
- },
3757
- {
3758
- "icon": "file-text",
3759
- "label": "Articles",
3760
- "href": "/articles"
3761
- },
3762
- {
3763
- "icon": "image",
3764
- "label": "Media",
3765
- "href": "/media"
3766
- },
3767
- {
3768
- "href": "/categories",
3769
- "icon": "folder",
3770
- "label": "Categories"
3771
- }
3772
- ],
3750
+ "appName": "CmsApp",
3773
3751
  "children": [
3774
3752
  {
3775
3753
  "gap": "lg",
3776
- "direction": "vertical",
3777
- "className": "max-w-5xl mx-auto w-full",
3778
3754
  "children": [
3779
3755
  {
3780
- "gap": "md",
3781
3756
  "children": [
3782
3757
  {
3758
+ "align": "center",
3783
3759
  "children": [
3784
3760
  {
3785
3761
  "name": "folder",
@@ -3793,81 +3769,105 @@
3793
3769
  ],
3794
3770
  "type": "stack",
3795
3771
  "direction": "horizontal",
3796
- "align": "center",
3797
3772
  "gap": "sm"
3798
3773
  },
3799
3774
  {
3800
- "direction": "horizontal",
3801
3775
  "children": [
3802
3776
  {
3803
- "type": "button",
3804
3777
  "action": "CREATE",
3805
3778
  "icon": "plus",
3806
- "label": "Create Category",
3807
- "variant": "primary"
3779
+ "type": "button",
3780
+ "variant": "primary",
3781
+ "label": "Create Category"
3808
3782
  }
3809
3783
  ],
3784
+ "gap": "sm",
3810
3785
  "type": "stack",
3811
- "gap": "sm"
3786
+ "direction": "horizontal"
3812
3787
  }
3813
3788
  ],
3814
3789
  "type": "stack",
3815
- "justify": "between",
3816
3790
  "direction": "horizontal",
3791
+ "justify": "between",
3792
+ "gap": "md",
3817
3793
  "align": "center"
3818
3794
  },
3819
3795
  {
3820
3796
  "type": "divider"
3821
3797
  },
3822
3798
  {
3823
- "type": "data-list",
3824
- "entity": "@payload.data",
3825
3799
  "fields": [
3826
3800
  {
3827
- "variant": "h3",
3828
3801
  "icon": "folder",
3802
+ "variant": "h3",
3829
3803
  "name": "name"
3830
3804
  },
3831
3805
  {
3832
3806
  "name": "articleCount",
3807
+ "format": "number",
3833
3808
  "label": "Articles",
3834
- "variant": "badge",
3835
- "format": "number"
3809
+ "variant": "badge"
3836
3810
  },
3837
3811
  {
3838
- "name": "description",
3839
- "variant": "body"
3812
+ "variant": "body",
3813
+ "name": "description"
3840
3814
  },
3841
3815
  {
3842
3816
  "variant": "caption",
3843
3817
  "name": "slug"
3844
3818
  }
3845
3819
  ],
3846
- "variant": "card",
3847
3820
  "gap": "sm",
3821
+ "type": "data-list",
3822
+ "variant": "card",
3848
3823
  "itemActions": [
3849
3824
  {
3850
3825
  "variant": "ghost",
3851
- "event": "VIEW",
3852
- "label": "View"
3826
+ "label": "View",
3827
+ "event": "VIEW"
3853
3828
  },
3854
3829
  {
3855
- "event": "EDIT",
3830
+ "label": "Edit",
3856
3831
  "variant": "ghost",
3857
- "label": "Edit"
3832
+ "event": "EDIT"
3858
3833
  },
3859
3834
  {
3860
- "label": "Delete",
3861
3835
  "variant": "danger",
3836
+ "label": "Delete",
3862
3837
  "event": "DELETE"
3863
3838
  }
3864
- ]
3839
+ ],
3840
+ "entity": "@payload.data"
3865
3841
  }
3866
3842
  ],
3843
+ "direction": "vertical",
3844
+ "className": "max-w-5xl mx-auto w-full",
3867
3845
  "type": "stack"
3868
3846
  }
3869
3847
  ],
3870
- "appName": "CmsApp"
3848
+ "type": "dashboard-layout",
3849
+ "navItems": [
3850
+ {
3851
+ "href": "/cms-hub",
3852
+ "icon": "layout-grid",
3853
+ "label": "CMS Hub"
3854
+ },
3855
+ {
3856
+ "label": "Articles",
3857
+ "href": "/articles",
3858
+ "icon": "file-text"
3859
+ },
3860
+ {
3861
+ "label": "Media",
3862
+ "href": "/media",
3863
+ "icon": "image"
3864
+ },
3865
+ {
3866
+ "label": "Categories",
3867
+ "href": "/categories",
3868
+ "icon": "folder"
3869
+ }
3870
+ ]
3871
3871
  }
3872
3872
  ]
3873
3873
  ]
@@ -3882,13 +3882,15 @@
3882
3882
  "main",
3883
3883
  {
3884
3884
  "direction": "vertical",
3885
- "type": "stack",
3886
3885
  "gap": "md",
3886
+ "type": "stack",
3887
+ "className": "py-12",
3888
+ "align": "center",
3887
3889
  "children": [
3888
3890
  {
3891
+ "type": "icon",
3889
3892
  "name": "alert-triangle",
3890
- "color": "destructive",
3891
- "type": "icon"
3893
+ "color": "destructive"
3892
3894
  },
3893
3895
  {
3894
3896
  "variant": "h3",
@@ -3896,21 +3898,19 @@
3896
3898
  "type": "typography"
3897
3899
  },
3898
3900
  {
3899
- "color": "muted",
3900
- "type": "typography",
3901
3901
  "variant": "body",
3902
- "content": "@payload.error"
3902
+ "type": "typography",
3903
+ "content": "@payload.error",
3904
+ "color": "muted"
3903
3905
  },
3904
3906
  {
3905
3907
  "variant": "primary",
3906
3908
  "label": "Retry",
3907
- "icon": "rotate-ccw",
3908
3909
  "action": "INIT",
3909
- "type": "button"
3910
+ "type": "button",
3911
+ "icon": "rotate-ccw"
3910
3912
  }
3911
- ],
3912
- "className": "py-12",
3913
- "align": "center"
3913
+ ]
3914
3914
  }
3915
3915
  ]
3916
3916
  ]
@@ -4102,8 +4102,8 @@
4102
4102
  "Category",
4103
4103
  {
4104
4104
  "emit": {
4105
- "failure": "CategoryLoadFailed",
4106
- "success": "CategoryLoaded"
4105
+ "success": "CategoryLoaded",
4106
+ "failure": "CategoryLoadFailed"
4107
4107
  }
4108
4108
  }
4109
4109
  ],
@@ -4111,8 +4111,14 @@
4111
4111
  "render-ui",
4112
4112
  "modal",
4113
4113
  {
4114
+ "direction": "vertical",
4115
+ "gap": "md",
4116
+ "type": "stack",
4114
4117
  "children": [
4115
4118
  {
4119
+ "direction": "horizontal",
4120
+ "gap": "sm",
4121
+ "type": "stack",
4116
4122
  "children": [
4117
4123
  {
4118
4124
  "type": "icon",
@@ -4123,31 +4129,25 @@
4123
4129
  "type": "typography",
4124
4130
  "variant": "h3"
4125
4131
  }
4126
- ],
4127
- "direction": "horizontal",
4128
- "gap": "sm",
4129
- "type": "stack"
4132
+ ]
4130
4133
  },
4131
4134
  {
4132
4135
  "type": "divider"
4133
4136
  },
4134
4137
  {
4135
- "cancelEvent": "CLOSE",
4136
4138
  "type": "form-section",
4139
+ "mode": "create",
4140
+ "submitEvent": "SAVE",
4141
+ "cancelEvent": "CLOSE",
4137
4142
  "fields": [
4138
4143
  "name",
4139
4144
  "slug",
4140
4145
  "description",
4141
4146
  "parentCategory",
4142
4147
  "articleCount"
4143
- ],
4144
- "mode": "create",
4145
- "submitEvent": "SAVE"
4148
+ ]
4146
4149
  }
4147
- ],
4148
- "type": "stack",
4149
- "direction": "vertical",
4150
- "gap": "md"
4150
+ ]
4151
4151
  }
4152
4152
  ]
4153
4153
  ]
@@ -4399,8 +4399,8 @@
4399
4399
  "Category",
4400
4400
  {
4401
4401
  "emit": {
4402
- "failure": "CategoryLoadFailed",
4403
- "success": "CategoryLoaded"
4402
+ "success": "CategoryLoaded",
4403
+ "failure": "CategoryLoadFailed"
4404
4404
  }
4405
4405
  }
4406
4406
  ]
@@ -4415,53 +4415,53 @@
4415
4415
  "fetch",
4416
4416
  "Category",
4417
4417
  {
4418
- "id": "@payload.id",
4419
4418
  "emit": {
4420
4419
  "failure": "CategoryLoadFailed",
4421
4420
  "success": "CategoryLoaded"
4422
- }
4421
+ },
4422
+ "id": "@payload.id"
4423
4423
  }
4424
4424
  ],
4425
4425
  [
4426
4426
  "render-ui",
4427
4427
  "modal",
4428
4428
  {
4429
- "type": "stack",
4430
- "direction": "vertical",
4431
4429
  "gap": "md",
4430
+ "direction": "vertical",
4431
+ "type": "stack",
4432
4432
  "children": [
4433
4433
  {
4434
+ "gap": "sm",
4435
+ "type": "stack",
4434
4436
  "direction": "horizontal",
4435
4437
  "children": [
4436
4438
  {
4437
- "name": "edit",
4438
- "type": "icon"
4439
+ "type": "icon",
4440
+ "name": "edit"
4439
4441
  },
4440
4442
  {
4441
- "variant": "h3",
4443
+ "type": "typography",
4442
4444
  "content": "Edit Category",
4443
- "type": "typography"
4445
+ "variant": "h3"
4444
4446
  }
4445
- ],
4446
- "gap": "sm",
4447
- "type": "stack"
4447
+ ]
4448
4448
  },
4449
4449
  {
4450
4450
  "type": "divider"
4451
4451
  },
4452
4452
  {
4453
+ "entity": "@payload.row",
4453
4454
  "type": "form-section",
4454
4455
  "cancelEvent": "CLOSE",
4455
4456
  "mode": "edit",
4457
+ "submitEvent": "SAVE",
4456
4458
  "fields": [
4457
4459
  "name",
4458
4460
  "slug",
4459
4461
  "description",
4460
4462
  "parentCategory",
4461
4463
  "articleCount"
4462
- ],
4463
- "submitEvent": "SAVE",
4464
- "entity": "@payload.row"
4464
+ ]
4465
4465
  }
4466
4466
  ]
4467
4467
  }
@@ -4504,8 +4504,8 @@
4504
4504
  "@payload.data",
4505
4505
  {
4506
4506
  "emit": {
4507
- "failure": "CategoryUpdateFailed",
4508
- "success": "CategoryUpdated"
4507
+ "success": "CategoryUpdated",
4508
+ "failure": "CategoryUpdateFailed"
4509
4509
  }
4510
4510
  }
4511
4511
  ],
@@ -4702,8 +4702,8 @@
4702
4702
  "Category",
4703
4703
  {
4704
4704
  "emit": {
4705
- "success": "CategoryLoaded",
4706
- "failure": "CategoryLoadFailed"
4705
+ "failure": "CategoryLoadFailed",
4706
+ "success": "CategoryLoaded"
4707
4707
  },
4708
4708
  "id": "@payload.id"
4709
4709
  }
@@ -4712,11 +4712,12 @@
4712
4712
  "render-ui",
4713
4713
  "modal",
4714
4714
  {
4715
+ "direction": "vertical",
4715
4716
  "gap": "md",
4716
4717
  "type": "stack",
4717
4718
  "children": [
4718
4719
  {
4719
- "gap": "sm",
4720
+ "direction": "horizontal",
4720
4721
  "type": "stack",
4721
4722
  "children": [
4722
4723
  {
@@ -4724,128 +4725,127 @@
4724
4725
  "type": "icon"
4725
4726
  },
4726
4727
  {
4727
- "type": "typography",
4728
4728
  "variant": "h3",
4729
+ "type": "typography",
4729
4730
  "content": "@entity.name"
4730
4731
  }
4731
4732
  ],
4732
4733
  "align": "center",
4733
- "direction": "horizontal"
4734
+ "gap": "sm"
4734
4735
  },
4735
4736
  {
4736
4737
  "type": "divider"
4737
4738
  },
4738
4739
  {
4739
- "direction": "horizontal",
4740
- "gap": "md",
4741
4740
  "type": "stack",
4741
+ "direction": "horizontal",
4742
4742
  "children": [
4743
4743
  {
4744
- "content": "Name",
4744
+ "variant": "caption",
4745
4745
  "type": "typography",
4746
- "variant": "caption"
4746
+ "content": "Name"
4747
4747
  },
4748
4748
  {
4749
4749
  "content": "@entity.name",
4750
4750
  "type": "typography",
4751
4751
  "variant": "body"
4752
4752
  }
4753
- ]
4753
+ ],
4754
+ "gap": "md"
4754
4755
  },
4755
4756
  {
4757
+ "direction": "horizontal",
4758
+ "type": "stack",
4759
+ "gap": "md",
4756
4760
  "children": [
4757
4761
  {
4758
- "variant": "caption",
4762
+ "content": "Slug",
4759
4763
  "type": "typography",
4760
- "content": "Slug"
4764
+ "variant": "caption"
4761
4765
  },
4762
4766
  {
4767
+ "content": "@entity.slug",
4763
4768
  "type": "typography",
4764
- "variant": "body",
4765
- "content": "@entity.slug"
4769
+ "variant": "body"
4766
4770
  }
4767
- ],
4768
- "direction": "horizontal",
4769
- "type": "stack",
4770
- "gap": "md"
4771
+ ]
4771
4772
  },
4772
4773
  {
4773
- "gap": "md",
4774
- "type": "stack",
4775
4774
  "children": [
4776
4775
  {
4776
+ "type": "typography",
4777
4777
  "variant": "caption",
4778
- "content": "Description",
4779
- "type": "typography"
4778
+ "content": "Description"
4780
4779
  },
4781
4780
  {
4782
- "variant": "body",
4783
4781
  "type": "typography",
4782
+ "variant": "body",
4784
4783
  "content": "@entity.description"
4785
4784
  }
4786
4785
  ],
4787
- "direction": "horizontal"
4786
+ "direction": "horizontal",
4787
+ "type": "stack",
4788
+ "gap": "md"
4788
4789
  },
4789
4790
  {
4790
- "gap": "md",
4791
- "type": "stack",
4792
4791
  "direction": "horizontal",
4793
4792
  "children": [
4794
4793
  {
4795
- "content": "Parent Category",
4796
4794
  "type": "typography",
4797
- "variant": "caption"
4795
+ "variant": "caption",
4796
+ "content": "Parent Category"
4798
4797
  },
4799
4798
  {
4800
4799
  "variant": "body",
4801
4800
  "type": "typography",
4802
4801
  "content": "@entity.parentCategory"
4803
4802
  }
4804
- ]
4803
+ ],
4804
+ "type": "stack",
4805
+ "gap": "md"
4805
4806
  },
4806
4807
  {
4807
- "gap": "md",
4808
+ "type": "stack",
4808
4809
  "children": [
4809
4810
  {
4810
- "variant": "caption",
4811
4811
  "type": "typography",
4812
+ "variant": "caption",
4812
4813
  "content": "Article Count"
4813
4814
  },
4814
4815
  {
4816
+ "content": "@entity.articleCount",
4815
4817
  "type": "typography",
4816
- "variant": "body",
4817
- "content": "@entity.articleCount"
4818
+ "variant": "body"
4818
4819
  }
4819
4820
  ],
4820
- "type": "stack",
4821
+ "gap": "md",
4821
4822
  "direction": "horizontal"
4822
4823
  },
4823
4824
  {
4824
4825
  "type": "divider"
4825
4826
  },
4826
4827
  {
4827
- "justify": "end",
4828
- "direction": "horizontal",
4829
- "gap": "sm",
4830
4828
  "children": [
4831
4829
  {
4832
- "label": "Edit",
4833
- "type": "button",
4834
4830
  "action": "EDIT",
4835
- "variant": "primary",
4836
- "icon": "edit"
4831
+ "type": "button",
4832
+ "label": "Edit",
4833
+ "icon": "edit",
4834
+ "variant": "primary"
4837
4835
  },
4838
4836
  {
4839
- "variant": "ghost",
4840
4837
  "label": "Close",
4841
4838
  "action": "CLOSE",
4839
+ "variant": "ghost",
4842
4840
  "type": "button"
4843
4841
  }
4844
4842
  ],
4845
- "type": "stack"
4843
+ "justify": "end",
4844
+ "type": "stack",
4845
+ "gap": "sm",
4846
+ "direction": "horizontal"
4846
4847
  }
4847
- ],
4848
- "direction": "vertical"
4848
+ ]
4849
4849
  }
4850
4850
  ]
4851
4851
  ]
@@ -5067,8 +5067,8 @@
5067
5067
  "Category",
5068
5068
  {
5069
5069
  "emit": {
5070
- "failure": "CategoryLoadFailed",
5071
- "success": "CategoryLoaded"
5070
+ "success": "CategoryLoaded",
5071
+ "failure": "CategoryLoadFailed"
5072
5072
  }
5073
5073
  }
5074
5074
  ]
@@ -5090,8 +5090,8 @@
5090
5090
  {
5091
5091
  "id": "@payload.id",
5092
5092
  "emit": {
5093
- "success": "CategoryLoaded",
5094
- "failure": "CategoryLoadFailed"
5093
+ "failure": "CategoryLoadFailed",
5094
+ "success": "CategoryLoaded"
5095
5095
  }
5096
5096
  }
5097
5097
  ],
@@ -5099,57 +5099,57 @@
5099
5099
  "render-ui",
5100
5100
  "modal",
5101
5101
  {
5102
- "type": "stack",
5103
5102
  "children": [
5104
5103
  {
5104
+ "type": "stack",
5105
+ "align": "center",
5105
5106
  "children": [
5106
5107
  {
5107
- "type": "icon",
5108
- "name": "alert-triangle"
5108
+ "name": "alert-triangle",
5109
+ "type": "icon"
5109
5110
  },
5110
5111
  {
5111
- "type": "typography",
5112
5112
  "content": "Delete Category",
5113
- "variant": "h3"
5113
+ "variant": "h3",
5114
+ "type": "typography"
5114
5115
  }
5115
5116
  ],
5116
5117
  "direction": "horizontal",
5117
- "gap": "sm",
5118
- "align": "center",
5119
- "type": "stack"
5118
+ "gap": "sm"
5120
5119
  },
5121
5120
  {
5122
5121
  "type": "divider"
5123
5122
  },
5124
5123
  {
5125
- "variant": "error",
5126
5124
  "type": "alert",
5125
+ "variant": "error",
5127
5126
  "message": "This action cannot be undone."
5128
5127
  },
5129
5128
  {
5130
5129
  "children": [
5131
5130
  {
5131
+ "type": "button",
5132
5132
  "action": "CANCEL",
5133
5133
  "label": "Cancel",
5134
- "type": "button",
5135
5134
  "variant": "ghost"
5136
5135
  },
5137
5136
  {
5138
5137
  "action": "CONFIRM_DELETE",
5139
- "label": "Delete",
5138
+ "icon": "check",
5140
5139
  "type": "button",
5141
5140
  "variant": "danger",
5142
- "icon": "check"
5141
+ "label": "Delete"
5143
5142
  }
5144
5143
  ],
5145
- "gap": "sm",
5146
- "direction": "horizontal",
5147
5144
  "type": "stack",
5148
- "justify": "end"
5145
+ "justify": "end",
5146
+ "direction": "horizontal",
5147
+ "gap": "sm"
5149
5148
  }
5150
5149
  ],
5151
- "direction": "vertical",
5152
- "gap": "md"
5150
+ "type": "stack",
5151
+ "gap": "md",
5152
+ "direction": "vertical"
5153
5153
  }
5154
5154
  ]
5155
5155
  ]
@@ -5166,8 +5166,8 @@
5166
5166
  "@entity.pendingId",
5167
5167
  {
5168
5168
  "emit": {
5169
- "failure": "CategoryDeleteFailed",
5170
- "success": "CategoryDeleted"
5169
+ "success": "CategoryDeleted",
5170
+ "failure": "CategoryDeleteFailed"
5171
5171
  }
5172
5172
  }
5173
5173
  ],
@@ -5221,8 +5221,8 @@
5221
5221
  "Category",
5222
5222
  {
5223
5223
  "emit": {
5224
- "success": "CategoryLoaded",
5225
- "failure": "CategoryLoadFailed"
5224
+ "failure": "CategoryLoadFailed",
5225
+ "success": "CategoryLoaded"
5226
5226
  }
5227
5227
  }
5228
5228
  ]
@@ -5315,25 +5315,25 @@
5315
5315
  "ref": "Tabs.traits.TabsItemTabs",
5316
5316
  "name": "CmsHubTabs",
5317
5317
  "config": {
5318
- "defaultTab": "articles",
5319
5318
  "variant": "underline",
5320
5319
  "tabs": [
5321
5320
  {
5321
+ "label": "Articles",
5322
5322
  "icon": "file-text",
5323
- "id": "articles",
5324
- "label": "Articles"
5323
+ "id": "articles"
5325
5324
  },
5326
5325
  {
5327
- "icon": "image",
5328
5326
  "id": "media",
5329
- "label": "Media"
5327
+ "label": "Media",
5328
+ "icon": "image"
5330
5329
  },
5331
5330
  {
5331
+ "id": "categories",
5332
5332
  "label": "Categories",
5333
- "icon": "folder",
5334
- "id": "categories"
5333
+ "icon": "folder"
5335
5334
  }
5336
- ]
5335
+ ],
5336
+ "defaultTab": "articles"
5337
5337
  }
5338
5338
  },
5339
5339
  {
@@ -5389,25 +5389,25 @@
5389
5389
  "render-ui",
5390
5390
  "main",
5391
5391
  {
5392
- "type": "dashboard-layout",
5393
5392
  "children": [
5394
5393
  {
5395
- "type": "stack",
5394
+ "direction": "vertical",
5395
+ "gap": "lg",
5396
5396
  "className": "max-w-5xl mx-auto w-full",
5397
5397
  "children": [
5398
5398
  {
5399
- "align": "center",
5400
5399
  "type": "stack",
5401
- "direction": "horizontal",
5402
5400
  "gap": "sm",
5401
+ "direction": "horizontal",
5402
+ "align": "center",
5403
5403
  "children": [
5404
5404
  {
5405
- "type": "icon",
5406
- "name": "layout-grid"
5405
+ "name": "layout-grid",
5406
+ "type": "icon"
5407
5407
  },
5408
5408
  {
5409
- "content": "CMS Hub",
5410
5409
  "type": "typography",
5410
+ "content": "CMS Hub",
5411
5411
  "variant": "h2"
5412
5412
  }
5413
5413
  ]
@@ -5417,52 +5417,52 @@
5417
5417
  },
5418
5418
  "@trait.CmsHubTabs",
5419
5419
  {
5420
- "className": "p-4 border rounded-md",
5421
5420
  "direction": "vertical",
5421
+ "type": "stack",
5422
5422
  "gap": "sm",
5423
+ "className": "p-4 border rounded-md",
5423
5424
  "children": [
5424
5425
  {
5425
- "type": "typography",
5426
- "variant": "overline",
5427
5426
  "color": "secondary",
5428
- "content": "Active section"
5427
+ "type": "typography",
5428
+ "content": "Active section",
5429
+ "variant": "overline"
5429
5430
  },
5430
5431
  {
5431
5432
  "variant": "h3",
5432
5433
  "content": "@entity.section",
5433
5434
  "type": "typography"
5434
5435
  }
5435
- ],
5436
- "type": "stack"
5436
+ ]
5437
5437
  }
5438
5438
  ],
5439
- "direction": "vertical",
5440
- "gap": "lg"
5439
+ "type": "stack"
5441
5440
  }
5442
5441
  ],
5443
5442
  "appName": "CmsApp",
5444
5443
  "navItems": [
5445
5444
  {
5446
- "label": "CMS Hub",
5447
5445
  "icon": "layout-grid",
5446
+ "label": "CMS Hub",
5448
5447
  "href": "/cms-hub"
5449
5448
  },
5450
5449
  {
5451
5450
  "href": "/articles",
5452
- "icon": "file-text",
5453
- "label": "Articles"
5451
+ "label": "Articles",
5452
+ "icon": "file-text"
5454
5453
  },
5455
5454
  {
5456
5455
  "href": "/media",
5457
- "icon": "image",
5458
- "label": "Media"
5456
+ "label": "Media",
5457
+ "icon": "image"
5459
5458
  },
5460
5459
  {
5461
5460
  "label": "Categories",
5462
5461
  "icon": "folder",
5463
5462
  "href": "/categories"
5464
5463
  }
5465
- ]
5464
+ ],
5465
+ "type": "dashboard-layout"
5466
5466
  }
5467
5467
  ]
5468
5468
  ]
@@ -5484,46 +5484,45 @@
5484
5484
  "type": "dashboard-layout",
5485
5485
  "navItems": [
5486
5486
  {
5487
+ "label": "CMS Hub",
5487
5488
  "href": "/cms-hub",
5488
- "icon": "layout-grid",
5489
- "label": "CMS Hub"
5489
+ "icon": "layout-grid"
5490
5490
  },
5491
5491
  {
5492
+ "icon": "file-text",
5492
5493
  "href": "/articles",
5493
- "label": "Articles",
5494
- "icon": "file-text"
5494
+ "label": "Articles"
5495
5495
  },
5496
5496
  {
5497
5497
  "label": "Media",
5498
- "href": "/media",
5499
- "icon": "image"
5498
+ "icon": "image",
5499
+ "href": "/media"
5500
5500
  },
5501
5501
  {
5502
- "label": "Categories",
5503
5502
  "icon": "folder",
5503
+ "label": "Categories",
5504
5504
  "href": "/categories"
5505
5505
  }
5506
5506
  ],
5507
- "appName": "CmsApp",
5508
5507
  "children": [
5509
5508
  {
5509
+ "direction": "vertical",
5510
5510
  "type": "stack",
5511
- "gap": "lg",
5512
5511
  "className": "max-w-5xl mx-auto w-full",
5513
5512
  "children": [
5514
5513
  {
5514
+ "type": "stack",
5515
+ "gap": "sm",
5515
5516
  "direction": "horizontal",
5516
5517
  "align": "center",
5517
- "gap": "sm",
5518
- "type": "stack",
5519
5518
  "children": [
5520
5519
  {
5521
- "type": "icon",
5522
- "name": "layout-grid"
5520
+ "name": "layout-grid",
5521
+ "type": "icon"
5523
5522
  },
5524
5523
  {
5525
- "content": "CMS Hub",
5526
5524
  "variant": "h2",
5525
+ "content": "CMS Hub",
5527
5526
  "type": "typography"
5528
5527
  }
5529
5528
  ]
@@ -5533,28 +5532,29 @@
5533
5532
  },
5534
5533
  "@trait.CmsHubTabs",
5535
5534
  {
5536
- "className": "p-4 border rounded-md",
5537
- "type": "stack",
5538
5535
  "direction": "vertical",
5536
+ "type": "stack",
5537
+ "className": "p-4 border rounded-md",
5539
5538
  "children": [
5540
5539
  {
5541
- "variant": "overline",
5542
- "content": "Active section",
5543
5540
  "type": "typography",
5544
- "color": "secondary"
5541
+ "color": "secondary",
5542
+ "content": "Active section",
5543
+ "variant": "overline"
5545
5544
  },
5546
5545
  {
5547
- "type": "typography",
5546
+ "content": "@entity.section",
5548
5547
  "variant": "h3",
5549
- "content": "@entity.section"
5548
+ "type": "typography"
5550
5549
  }
5551
5550
  ],
5552
5551
  "gap": "sm"
5553
5552
  }
5554
5553
  ],
5555
- "direction": "vertical"
5554
+ "gap": "lg"
5556
5555
  }
5557
- ]
5556
+ ],
5557
+ "appName": "CmsApp"
5558
5558
  }
5559
5559
  ]
5560
5560
  ]