@almadar/std 16.234.0 → 16.236.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 (245) hide show
  1. package/behaviors/behaviors-registry.json +4402 -1898
  2. package/behaviors/lolo/infra/atoms/std-approval-gate.lolo +25 -41
  3. package/behaviors/lolo/infra/atoms/std-audit-capture.lolo +0 -5
  4. package/behaviors/lolo/infra/atoms/std-cache-aside.lolo +0 -24
  5. package/behaviors/lolo/infra/atoms/std-circuit-breaker.lolo +1 -17
  6. package/behaviors/lolo/infra/atoms/std-data-erasure.lolo +17 -24
  7. package/behaviors/lolo/infra/atoms/std-data-import.lolo +8 -11
  8. package/behaviors/lolo/infra/atoms/std-game-clock.lolo +2 -0
  9. package/behaviors/lolo/infra/atoms/std-knowledge-loop.lolo +0 -5
  10. package/behaviors/lolo/infra/atoms/std-lifecycle.lolo +3 -1
  11. package/behaviors/lolo/infra/atoms/std-mod-queue.lolo +40 -18
  12. package/behaviors/lolo/infra/atoms/std-notification-preferences.lolo +20 -11
  13. package/behaviors/lolo/infra/atoms/std-notify-on-event.lolo +0 -5
  14. package/behaviors/lolo/infra/atoms/std-permission-matrix.lolo +23 -11
  15. package/behaviors/lolo/infra/atoms/std-rate-limiter.lolo +84 -22
  16. package/behaviors/lolo/infra/atoms/std-status-lifecycle.lolo +1 -6
  17. package/behaviors/lolo/ml/atoms/std-graph-builder.lolo +3 -1
  18. package/behaviors/lolo/ml/atoms/std-ml-classify.lolo +0 -4
  19. package/behaviors/lolo/ml/atoms/std-ml-similarity.lolo +0 -4
  20. package/behaviors/lolo/ui/avl/atoms/ui-avl-state-machine.lolo +12 -0
  21. package/behaviors/lolo/ui/core/atoms/std-app-layout.lolo +55 -9
  22. package/behaviors/lolo/ui/core/atoms/std-app-search.lolo +6 -2
  23. package/behaviors/lolo/ui/core/atoms/std-billable-hour.lolo +19 -14
  24. package/behaviors/lolo/ui/core/atoms/std-board.lolo +77 -27
  25. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +44 -28
  26. package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +7 -3
  27. package/behaviors/lolo/ui/core/atoms/std-esign-flow.lolo +25 -13
  28. package/behaviors/lolo/ui/core/atoms/std-esign-request.lolo +5 -0
  29. package/behaviors/lolo/ui/core/atoms/std-event-log.lolo +0 -5
  30. package/behaviors/lolo/ui/core/atoms/std-export.lolo +0 -10
  31. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +7 -3
  32. package/behaviors/lolo/ui/core/atoms/std-form-advanced.lolo +1 -6
  33. package/behaviors/lolo/ui/core/atoms/std-geosearch.lolo +1 -0
  34. package/behaviors/lolo/ui/core/atoms/std-graphs.lolo +20 -4
  35. package/behaviors/lolo/ui/core/atoms/std-import.lolo +0 -5
  36. package/behaviors/lolo/ui/core/atoms/std-list.lolo +46 -32
  37. package/behaviors/lolo/ui/core/atoms/std-modal-editor.lolo +2 -2
  38. package/behaviors/lolo/ui/core/atoms/std-rating-review.lolo +12 -13
  39. package/behaviors/lolo/ui/core/atoms/std-record-detail.lolo +16 -12
  40. package/behaviors/lolo/ui/core/atoms/std-recurrence.lolo +10 -1
  41. package/behaviors/lolo/ui/core/atoms/std-role-gate.lolo +39 -0
  42. package/behaviors/lolo/ui/core/atoms/std-saved-search.lolo +78 -16
  43. package/behaviors/lolo/ui/core/atoms/std-selection.lolo +15 -10
  44. package/behaviors/lolo/ui/core/atoms/std-stats.lolo +5 -5
  45. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +3 -0
  46. package/behaviors/lolo/ui/core/atoms/std-thread.lolo +41 -73
  47. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +20 -11
  48. package/behaviors/lolo/ui/core/atoms/std-vote.lolo +0 -4
  49. package/behaviors/lolo/ui/core/atoms/std-wizard.lolo +3 -3
  50. package/behaviors/lolo/ui/core/atoms/ui-presence.lolo +21 -0
  51. package/behaviors/lolo/ui/core/molecules/ui-breadcrumb.lolo +6 -1
  52. package/behaviors/lolo/ui/core/molecules/ui-chart.lolo +11 -1
  53. package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +13 -8
  54. package/behaviors/lolo/ui/core/molecules/ui-command-palette.lolo +7 -2
  55. package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +2 -2
  56. package/behaviors/lolo/ui/core/molecules/ui-confirm-dialog.lolo +8 -0
  57. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +41 -3
  58. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +41 -3
  59. package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +30 -9
  60. package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +8 -3
  61. package/behaviors/lolo/ui/core/molecules/ui-document-viewer.lolo +6 -1
  62. package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +13 -0
  63. package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +6 -1
  64. package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +6 -1
  65. package/behaviors/lolo/ui/core/molecules/ui-form-actions.lolo +6 -1
  66. package/behaviors/lolo/ui/core/molecules/ui-graph-canvas.lolo +6 -1
  67. package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +6 -1
  68. package/behaviors/lolo/ui/core/molecules/ui-meter.lolo +6 -1
  69. package/behaviors/lolo/ui/core/molecules/ui-modal.lolo +5 -0
  70. package/behaviors/lolo/ui/core/molecules/ui-page-header.lolo +11 -1
  71. package/behaviors/lolo/ui/core/molecules/ui-page-transition.lolo +1 -1
  72. package/behaviors/lolo/ui/core/molecules/ui-swipeable-row.lolo +44 -15
  73. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +41 -3
  74. package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +8 -2
  75. package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +66 -12
  76. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +9 -3
  77. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +9 -3
  78. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +18 -9
  79. package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +55 -10
  80. package/behaviors/lolo/ui/core/organisms/ui-form.lolo +55 -10
  81. package/behaviors/lolo/ui/core/organisms/ui-media-gallery.lolo +8 -3
  82. package/behaviors/lolo/ui/core/organisms/ui-state-machine-view.lolo +12 -0
  83. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +8 -3
  84. package/behaviors/lolo/ui/core/templates/ui-counter-template.lolo +2 -44
  85. package/behaviors/lolo/ui/core/templates/ui-dashboard-layout.lolo +6 -1
  86. package/behaviors/lolo/ui/core/templates/ui-generic-app-template.lolo +2 -37
  87. package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +8 -2
  88. package/behaviors/lolo/ui/game/organisms/std-arcade-board-3d.lolo +2 -2
  89. package/behaviors/lolo/ui/game/organisms/std-crew-board-2d.lolo +0 -4
  90. package/behaviors/lolo/ui/game/organisms/std-platformer-puzzle.lolo +2 -66
  91. package/behaviors/lolo/ui/game/organisms/std-tactics-board-2d.lolo +0 -4
  92. package/behaviors/lolo/ui/game/organisms/std-worldmap-board-2d.lolo +0 -4
  93. package/behaviors/lolo/ui/learning/atoms/std-learn-stepper.lolo +6 -6
  94. package/behaviors/lolo-behavior-contracts.json +1 -1
  95. package/behaviors/registry/factory-signatures.json +1 -1
  96. package/behaviors/registry/infra/atoms/std-approval-gate.orb +124 -67
  97. package/behaviors/registry/infra/atoms/std-audit-capture.orb +0 -8
  98. package/behaviors/registry/infra/atoms/std-cache-aside.orb +0 -84
  99. package/behaviors/registry/infra/atoms/std-circuit-breaker.orb +1 -44
  100. package/behaviors/registry/infra/atoms/std-data-erasure.orb +124 -55
  101. package/behaviors/registry/infra/atoms/std-data-import.orb +12 -11
  102. package/behaviors/registry/infra/atoms/std-game-clock.orb +31 -0
  103. package/behaviors/registry/infra/atoms/std-knowledge-loop.orb +0 -57
  104. package/behaviors/registry/infra/atoms/std-lifecycle.orb +43 -0
  105. package/behaviors/registry/infra/atoms/std-mod-queue.orb +379 -103
  106. package/behaviors/registry/infra/atoms/std-notification-preferences.orb +126 -12
  107. package/behaviors/registry/infra/atoms/std-notify-on-event.orb +0 -11
  108. package/behaviors/registry/infra/atoms/std-permission-matrix.orb +128 -12
  109. package/behaviors/registry/infra/atoms/std-rate-limiter.orb +287 -72
  110. package/behaviors/registry/infra/atoms/std-status-lifecycle.orb +5 -8
  111. package/behaviors/registry/ml/atoms/std-graph-builder.orb +11 -0
  112. package/behaviors/registry/ml/atoms/std-ml-classify.orb +0 -7
  113. package/behaviors/registry/ml/atoms/std-ml-similarity.orb +0 -7
  114. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +82 -0
  115. package/behaviors/registry/ui/core/atoms/std-app-layout.orb +417 -9
  116. package/behaviors/registry/ui/core/atoms/std-app-search.orb +53 -1
  117. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +209 -19
  118. package/behaviors/registry/ui/core/atoms/std-board.orb +242 -61
  119. package/behaviors/registry/ui/core/atoms/std-browse.orb +295 -41
  120. package/behaviors/registry/ui/core/atoms/std-calendar.orb +96 -2
  121. package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +122 -15
  122. package/behaviors/registry/ui/core/atoms/std-esign-request.orb +11 -0
  123. package/behaviors/registry/ui/core/atoms/std-event-log.orb +0 -8
  124. package/behaviors/registry/ui/core/atoms/std-export.orb +0 -16
  125. package/behaviors/registry/ui/core/atoms/std-file-store.orb +109 -2
  126. package/behaviors/registry/ui/core/atoms/std-form-advanced.orb +1 -43
  127. package/behaviors/registry/ui/core/atoms/std-geosearch.orb +5 -0
  128. package/behaviors/registry/ui/core/atoms/std-graphs.orb +173 -66
  129. package/behaviors/registry/ui/core/atoms/std-import.orb +0 -8
  130. package/behaviors/registry/ui/core/atoms/std-list.orb +226 -34
  131. package/behaviors/registry/ui/core/atoms/std-modal-editor.orb +10 -1
  132. package/behaviors/registry/ui/core/atoms/std-rating-review.orb +37 -19
  133. package/behaviors/registry/ui/core/atoms/std-record-detail.orb +204 -11
  134. package/behaviors/registry/ui/core/atoms/std-recurrence.orb +89 -4
  135. package/behaviors/registry/ui/core/atoms/std-role-gate.orb +217 -0
  136. package/behaviors/registry/ui/core/atoms/std-saved-search.orb +419 -19
  137. package/behaviors/registry/ui/core/atoms/std-selection.orb +140 -10
  138. package/behaviors/registry/ui/core/atoms/std-stats.orb +73 -1
  139. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +3 -0
  140. package/behaviors/registry/ui/core/atoms/std-thread.orb +190 -115
  141. package/behaviors/registry/ui/core/atoms/std-version-history.orb +127 -13
  142. package/behaviors/registry/ui/core/atoms/std-vote.orb +0 -9
  143. package/behaviors/registry/ui/core/atoms/std-wizard.orb +33 -3
  144. package/behaviors/registry/ui/core/atoms/ui-presence.orb +59 -0
  145. package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +53 -1
  146. package/behaviors/registry/ui/core/molecules/ui-chart.orb +68 -1
  147. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +291 -8
  148. package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +87 -2
  149. package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +3 -2
  150. package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +32 -0
  151. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +189 -3
  152. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +189 -3
  153. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +81 -24
  154. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +121 -3
  155. package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +53 -1
  156. package/behaviors/registry/ui/core/molecules/ui-drawer.orb +40 -0
  157. package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +53 -1
  158. package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +53 -1
  159. package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +53 -1
  160. package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +53 -1
  161. package/behaviors/registry/ui/core/molecules/ui-menu.orb +57 -1
  162. package/behaviors/registry/ui/core/molecules/ui-meter.orb +53 -1
  163. package/behaviors/registry/ui/core/molecules/ui-modal.orb +8 -0
  164. package/behaviors/registry/ui/core/molecules/ui-page-header.orb +60 -1
  165. package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +1 -1
  166. package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +393 -23
  167. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +189 -3
  168. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +99 -2
  169. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +282 -20
  170. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +130 -3
  171. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +130 -3
  172. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +367 -9
  173. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +104 -13
  174. package/behaviors/registry/ui/core/organisms/ui-form.orb +104 -13
  175. package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +121 -3
  176. package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +82 -0
  177. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +121 -3
  178. package/behaviors/registry/ui/core/templates/ui-counter-template.orb +1 -172
  179. package/behaviors/registry/ui/core/templates/ui-dashboard-layout.orb +53 -1
  180. package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +1 -116
  181. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +99 -2
  182. package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +10 -0
  183. package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +0 -7
  184. package/behaviors/registry/ui/game/organisms/std-platformer-puzzle.orb +1 -807
  185. package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +0 -7
  186. package/behaviors/registry/ui/game/organisms/std-worldmap-board-2d.orb +0 -7
  187. package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +6 -0
  188. package/canonical-operators.json +18 -1
  189. package/dist/behaviors/exports-reader.js +7662 -3762
  190. package/dist/behaviors/functions/index.d.ts +309 -104
  191. package/dist/behaviors/functions/index.js +7651 -3762
  192. package/dist/behaviors/index.d.ts +1 -1
  193. package/dist/behaviors/index.js +7663 -3763
  194. package/dist/behaviors/query.js +7662 -3762
  195. package/dist/behaviors-embeddings.hash.json +3 -3
  196. package/dist/behaviors-embeddings.json +35 -27
  197. package/dist/behaviors-registry.json +4402 -1898
  198. package/dist/index.d.ts +3 -3
  199. package/dist/index.js +7697 -3763
  200. package/dist/knob-embeddings.hash.json +3 -3
  201. package/dist/knob-embeddings.json +612 -352
  202. package/dist/modules/anim.d.ts +1 -1
  203. package/dist/modules/array.d.ts +1 -1
  204. package/dist/modules/array.js +15 -0
  205. package/dist/modules/async.d.ts +1 -1
  206. package/dist/modules/async.js +9 -0
  207. package/dist/modules/behavior.d.ts +1 -1
  208. package/dist/modules/browser.d.ts +1 -1
  209. package/dist/modules/composition.d.ts +1 -1
  210. package/dist/modules/contract.d.ts +1 -1
  211. package/dist/modules/core.d.ts +1 -1
  212. package/dist/modules/core.js +10 -0
  213. package/dist/modules/data.d.ts +1 -1
  214. package/dist/modules/ease.d.ts +1 -1
  215. package/dist/modules/format.d.ts +1 -1
  216. package/dist/modules/geo.d.ts +1 -1
  217. package/dist/modules/graph.d.ts +1 -1
  218. package/dist/modules/grid.d.ts +1 -1
  219. package/dist/modules/index.d.ts +1 -1
  220. package/dist/modules/index.js +34 -0
  221. package/dist/modules/integration.d.ts +1 -1
  222. package/dist/modules/json.d.ts +1 -1
  223. package/dist/modules/llm.d.ts +1 -1
  224. package/dist/modules/math.d.ts +1 -1
  225. package/dist/modules/memory.d.ts +1 -1
  226. package/dist/modules/nn.d.ts +1 -1
  227. package/dist/modules/noise.d.ts +1 -1
  228. package/dist/modules/object.d.ts +1 -1
  229. package/dist/modules/os.d.ts +1 -1
  230. package/dist/modules/path.d.ts +1 -1
  231. package/dist/modules/prob.d.ts +1 -1
  232. package/dist/modules/session.d.ts +1 -1
  233. package/dist/modules/str.d.ts +1 -1
  234. package/dist/modules/tensor.d.ts +1 -1
  235. package/dist/modules/time.d.ts +1 -1
  236. package/dist/modules/trace.d.ts +1 -1
  237. package/dist/modules/train.d.ts +1 -1
  238. package/dist/modules/validate.d.ts +1 -1
  239. package/dist/modules/vector.d.ts +1 -1
  240. package/dist/modules/workspace.d.ts +1 -1
  241. package/dist/registry/factory-signatures.json +1 -1
  242. package/dist/registry.d.ts +5 -2
  243. package/dist/registry.js +55 -1
  244. package/dist/{types-DwAW4Nni.d.ts → types-DLx38UFZ.d.ts} +31 -4
  245. package/package.json +2 -2
@@ -10,15 +10,6 @@
10
10
  "owner": "workspace",
11
11
  "renames": []
12
12
  },
13
- "evt_01M13ZXC59HB41Z83ZYJR50JQP": {
14
- "bakedName": "DocumentDetailsLoaded",
15
- "curName": "DocumentDetailsLoaded",
16
- "id": "evt_01M13ZXC59HB41Z83ZYJR50JQP",
17
- "kind": "event",
18
- "owner": "workspace",
19
- "parent": "trt_01M13ZXC5906BVQKXF5JMWBD0E",
20
- "renames": []
21
- },
22
13
  "evt_01M13ZXC59R4VP1T1DHD262B08": {
23
14
  "bakedName": "@config.metaCommitEvent",
24
15
  "curName": "@config.metaCommitEvent",
@@ -46,6 +37,15 @@
46
37
  "parent": "trt_01M13ZXC5906BVQKXF5JMWBD0E",
47
38
  "renames": []
48
39
  },
40
+ "evt_01M3RWGC5NSA2MG9W3F0E0SB97": {
41
+ "bakedName": "DocumentDetailsLoaded",
42
+ "curName": "DocumentDetailsLoaded",
43
+ "id": "evt_01M3RWGC5NSA2MG9W3F0E0SB97",
44
+ "kind": "event",
45
+ "owner": "workspace",
46
+ "parent": "trt_01M13ZXC5906BVQKXF5JMWBD0E",
47
+ "renames": []
48
+ },
49
49
  "orb_01M13ZXC59HR3466AAAMSKD8MY": {
50
50
  "bakedName": "DocumentDetailsOrbital",
51
51
  "curName": "DocumentDetailsOrbital",
@@ -203,8 +203,8 @@
203
203
  },
204
204
  "selfFetch": {
205
205
  "default": true,
206
- "description": "true (default) = standalone mount self-populates on INIT. false = a composing atom owns the fetch and routes its loaded event here — suppresses the wrapper's own un-hydrated fetch so it cannot race the composer's.",
207
- "label": "Fetch its own rows on mount?",
206
+ "description": "true (default) = a mount that carries an id loads that one row (never the collection); a create-mode mount skips the load. false = a composing atom owns the load.",
207
+ "label": "Fetch its own row on mount?",
208
208
  "tier": "internal",
209
209
  "type": "boolean"
210
210
  },
@@ -272,9 +272,9 @@
272
272
  "tier": "essential"
273
273
  },
274
274
  {
275
- "description": "DocumentDetails rows finished loading; payload.data holds the collection.",
275
+ "description": "DocumentDetails row finished loading; payload.data holds the single row.",
276
276
  "event": "DocumentDetailsLoaded",
277
- "eventId": "evt_01M13ZXC59HB41Z83ZYJR50JQP",
277
+ "eventId": "evt_01M3RWGC5NSA2MG9W3F0E0SB97",
278
278
  "payloadSchema": [
279
279
  {
280
280
  "entity": "DocumentDetailsItem",
@@ -286,7 +286,7 @@
286
286
  "type": "string"
287
287
  }
288
288
  ],
289
- "type": "[object]"
289
+ "type": "object"
290
290
  }
291
291
  ],
292
292
  "scope": "internal",
@@ -310,13 +310,21 @@
310
310
  "stateMachine": {
311
311
  "events": [
312
312
  {
313
+ "description": "Mount payload; a host that routes to this panel by id (a :id page param) passes it here.",
313
314
  "id": "evt_01M13ZXC59XKCDATMN4TVFVMZ7",
314
315
  "key": "INIT",
315
- "name": "Initialize"
316
+ "name": "Initialize",
317
+ "payloadSchema": [
318
+ {
319
+ "name": "id",
320
+ "type": "string"
321
+ }
322
+ ],
323
+ "tier": "internal"
316
324
  },
317
325
  {
318
- "description": "DocumentDetails rows finished loading; payload.data holds the collection.",
319
- "id": "evt_01M13ZXC59HB41Z83ZYJR50JQP",
326
+ "description": "DocumentDetails row finished loading; payload.data holds the single row.",
327
+ "id": "evt_01M3RWGC5NSA2MG9W3F0E0SB97",
320
328
  "key": "DocumentDetailsLoaded",
321
329
  "name": "Document details loaded",
322
330
  "payloadSchema": [
@@ -330,7 +338,7 @@
330
338
  "type": "string"
331
339
  }
332
340
  ],
333
- "type": "[object]"
341
+ "type": "object"
334
342
  }
335
343
  ],
336
344
  "synonyms": "loaded, fetched, retrieved",
@@ -383,6 +391,9 @@
383
391
  "states": [
384
392
  {
385
393
  "isInitial": true,
394
+ "name": "resolving"
395
+ },
396
+ {
386
397
  "name": "idle"
387
398
  }
388
399
  ],
@@ -395,7 +406,8 @@
395
406
  {
396
407
  "emit": {
397
408
  "success": "DocumentDetailsLoaded"
398
- }
409
+ },
410
+ "id": "@payload.id"
399
411
  }
400
412
  ],
401
413
  [
@@ -414,8 +426,20 @@
414
426
  ],
415
427
  "event": "INIT",
416
428
  "eventId": "evt_01M13ZXC59XKCDATMN4TVFVMZ7",
417
- "from": "idle",
418
- "guard": "@config.selfFetch",
429
+ "from": "resolving",
430
+ "guard": [
431
+ "and",
432
+ "@config.selfFetch",
433
+ [
434
+ "!=",
435
+ [
436
+ "str/default",
437
+ "@payload.id",
438
+ ""
439
+ ],
440
+ ""
441
+ ]
442
+ ],
419
443
  "to": "idle"
420
444
  },
421
445
  {
@@ -436,13 +460,46 @@
436
460
  ],
437
461
  "event": "INIT",
438
462
  "eventId": "evt_01M13ZXC59XKCDATMN4TVFVMZ7",
439
- "from": "idle",
463
+ "from": "resolving",
440
464
  "guard": [
441
465
  "not",
442
- "@config.selfFetch"
466
+ [
467
+ "and",
468
+ "@config.selfFetch",
469
+ [
470
+ "!=",
471
+ [
472
+ "str/default",
473
+ "@payload.id",
474
+ ""
475
+ ],
476
+ ""
477
+ ]
478
+ ]
443
479
  ],
444
480
  "to": "idle"
445
481
  },
482
+ {
483
+ "effects": [
484
+ [
485
+ "render-ui",
486
+ "main",
487
+ {
488
+ "className": "@config.className",
489
+ "entity": "@entity",
490
+ "fields": "@config.fields",
491
+ "metaCommitEvent": "@config.metaCommitEvent",
492
+ "relationEvent": "@config.relationEvent",
493
+ "title": "@config.title",
494
+ "type": "document-details"
495
+ }
496
+ ]
497
+ ],
498
+ "event": "INIT",
499
+ "eventId": "evt_01M13ZXC59XKCDATMN4TVFVMZ7",
500
+ "from": "idle",
501
+ "to": "idle"
502
+ },
446
503
  {
447
504
  "effects": [
448
505
  [
@@ -460,7 +517,7 @@
460
517
  ]
461
518
  ],
462
519
  "event": "DocumentDetailsLoaded",
463
- "eventId": "evt_01M13ZXC59HB41Z83ZYJR50JQP",
520
+ "eventId": "evt_01M3RWGC5NSA2MG9W3F0E0SB97",
464
521
  "from": "idle",
465
522
  "to": "idle"
466
523
  }
@@ -164,6 +164,14 @@
164
164
  "required": true,
165
165
  "type": "string"
166
166
  },
167
+ "roles": {
168
+ "items": {
169
+ "type": "string"
170
+ },
171
+ "name": "roles",
172
+ "required": false,
173
+ "type": "array"
174
+ },
167
175
  "variant": {
168
176
  "name": "variant",
169
177
  "required": false,
@@ -282,6 +290,13 @@
282
290
  "label": "Value",
283
291
  "tier": "presentation",
284
292
  "type": "string"
293
+ },
294
+ "viewerRole": {
295
+ "default": "",
296
+ "description": "The viewer's role that each action's `roles` is checked against; bind it at the call site (e.g. `viewerRole: @user.role`). Empty = only actions with no `roles` show.",
297
+ "label": "Viewer's role",
298
+ "tier": "policy",
299
+ "type": "string"
285
300
  }
286
301
  },
287
302
  "effectRow": [
@@ -502,7 +517,40 @@
502
517
  "render-ui",
503
518
  "main",
504
519
  {
505
- "actions": "@config.actions",
520
+ "actions": [
521
+ "array/filter",
522
+ "@config.actions",
523
+ [
524
+ "fn",
525
+ "action",
526
+ [
527
+ "or",
528
+ [
529
+ "=",
530
+ [
531
+ "array/len",
532
+ [
533
+ "object/get",
534
+ "@action",
535
+ "roles",
536
+ []
537
+ ]
538
+ ],
539
+ 0.0
540
+ ],
541
+ [
542
+ "array/includes",
543
+ [
544
+ "object/get",
545
+ "@action",
546
+ "roles",
547
+ []
548
+ ],
549
+ "@config.viewerRole"
550
+ ]
551
+ ]
552
+ ]
553
+ ],
506
554
  "autosaveHint": "@config.autosaveHint",
507
555
  "className": "@config.className",
508
556
  "contentChangeEvent": "@config.contentChangeEvent",
@@ -539,7 +587,40 @@
539
587
  "render-ui",
540
588
  "main",
541
589
  {
542
- "actions": "@config.actions",
590
+ "actions": [
591
+ "array/filter",
592
+ "@config.actions",
593
+ [
594
+ "fn",
595
+ "action",
596
+ [
597
+ "or",
598
+ [
599
+ "=",
600
+ [
601
+ "array/len",
602
+ [
603
+ "object/get",
604
+ "@action",
605
+ "roles",
606
+ []
607
+ ]
608
+ ],
609
+ 0.0
610
+ ],
611
+ [
612
+ "array/includes",
613
+ [
614
+ "object/get",
615
+ "@action",
616
+ "roles",
617
+ []
618
+ ],
619
+ "@config.viewerRole"
620
+ ]
621
+ ]
622
+ ]
623
+ ],
543
624
  "autosaveHint": "@config.autosaveHint",
544
625
  "className": "@config.className",
545
626
  "contentChangeEvent": "@config.contentChangeEvent",
@@ -576,7 +657,40 @@
576
657
  "render-ui",
577
658
  "main",
578
659
  {
579
- "actions": "@config.actions",
660
+ "actions": [
661
+ "array/filter",
662
+ "@config.actions",
663
+ [
664
+ "fn",
665
+ "action",
666
+ [
667
+ "or",
668
+ [
669
+ "=",
670
+ [
671
+ "array/len",
672
+ [
673
+ "object/get",
674
+ "@action",
675
+ "roles",
676
+ []
677
+ ]
678
+ ],
679
+ 0.0
680
+ ],
681
+ [
682
+ "array/includes",
683
+ [
684
+ "object/get",
685
+ "@action",
686
+ "roles",
687
+ []
688
+ ],
689
+ "@config.viewerRole"
690
+ ]
691
+ ]
692
+ ]
693
+ ],
580
694
  "autosaveHint": "@config.autosaveHint",
581
695
  "className": "@config.className",
582
696
  "contentChangeEvent": "@config.contentChangeEvent",
@@ -624,6 +738,10 @@
624
738
  {
625
739
  "name": "variant",
626
740
  "type": "string"
741
+ },
742
+ {
743
+ "name": "roles",
744
+ "type": "[string]"
627
745
  }
628
746
  ]
629
747
  }
@@ -100,6 +100,14 @@
100
100
  "required": false,
101
101
  "type": "string"
102
102
  },
103
+ "roles": {
104
+ "items": {
105
+ "type": "string"
106
+ },
107
+ "name": "roles",
108
+ "required": false,
109
+ "type": "array"
110
+ },
103
111
  "variant": {
104
112
  "name": "variant",
105
113
  "required": false,
@@ -267,6 +275,13 @@
267
275
  "label": "Total Pages",
268
276
  "tier": "presentation",
269
277
  "type": "number"
278
+ },
279
+ "viewerRole": {
280
+ "default": "",
281
+ "description": "The viewer's role that each action's `roles` is checked against; bind it at the call site (e.g. `viewerRole: @user.role`). Empty = only actions with no `roles` show.",
282
+ "label": "Viewer's role",
283
+ "tier": "policy",
284
+ "type": "string"
270
285
  }
271
286
  },
272
287
  "effectRow": [
@@ -309,7 +324,40 @@
309
324
  "render-ui",
310
325
  "main",
311
326
  {
312
- "actions": "@config.actions",
327
+ "actions": [
328
+ "array/filter",
329
+ "@config.actions",
330
+ [
331
+ "fn",
332
+ "action",
333
+ [
334
+ "or",
335
+ [
336
+ "=",
337
+ [
338
+ "array/len",
339
+ [
340
+ "object/get",
341
+ "@action",
342
+ "roles",
343
+ []
344
+ ]
345
+ ],
346
+ 0.0
347
+ ],
348
+ [
349
+ "array/includes",
350
+ [
351
+ "object/get",
352
+ "@action",
353
+ "roles",
354
+ []
355
+ ],
356
+ "@config.viewerRole"
357
+ ]
358
+ ]
359
+ ]
360
+ ],
313
361
  "className": "@config.className",
314
362
  "content": "@config.content",
315
363
  "currentPage": "@config.currentPage",
@@ -355,6 +403,10 @@
355
403
  {
356
404
  "name": "variant",
357
405
  "type": "string"
406
+ },
407
+ {
408
+ "name": "roles",
409
+ "type": "[string]"
358
410
  }
359
411
  ],
360
412
  "DocumentViewerDocumentsItem": [
@@ -46,6 +46,15 @@
46
46
  "parent": "trt_01KXG04NNM7QJHC934D0EDT8KC",
47
47
  "renames": []
48
48
  },
49
+ "evt_01M3SGNF2TD0GBX6P7TQFKC549": {
50
+ "bakedName": "@config.onExited",
51
+ "curName": "@config.onExited",
52
+ "id": "evt_01M3SGNF2TD0GBX6P7TQFKC549",
53
+ "kind": "event",
54
+ "owner": "workspace",
55
+ "parent": "trt_01KXG04NNM7QJHC934D0EDT8KC",
56
+ "renames": []
57
+ },
49
58
  "orb_01KXG04NNM46ZEJ56TQKVZTX6Z": {
50
59
  "bakedName": "DrawerOrbital",
51
60
  "curName": "DrawerOrbital",
@@ -141,6 +150,13 @@
141
150
  "tier": "presentation",
142
151
  "type": "boolean"
143
152
  },
153
+ "contained": {
154
+ "default": false,
155
+ "description": "Render inside the nearest positioned ancestor (a preview frame) instead of over the window.",
156
+ "label": "Contained",
157
+ "tier": "presentation",
158
+ "type": "boolean"
159
+ },
144
160
  "footer": {
145
161
  "description": "Footer content",
146
162
  "label": "Footer",
@@ -161,6 +177,13 @@
161
177
  "tier": "presentation",
162
178
  "type": "event"
163
179
  },
180
+ "onExited": {
181
+ "default": "EXITED",
182
+ "description": "Fires after the exit animation completes (the drawer is about to unmount).",
183
+ "label": "On Exited",
184
+ "tier": "presentation",
185
+ "type": "event"
186
+ },
164
187
  "position": {
165
188
  "default": "right",
166
189
  "description": "Position (left or right)",
@@ -204,6 +227,14 @@
204
227
  }
205
228
  ],
206
229
  "emits": [
230
+ {
231
+ "definerKnob": "onExited",
232
+ "description": "Fires after the exit animation completes (the drawer is about to unmount).",
233
+ "event": "@config.onExited",
234
+ "eventId": "evt_01M3SGNF2TD0GBX6P7TQFKC549",
235
+ "scope": "external",
236
+ "tier": "essential"
237
+ },
207
238
  {
208
239
  "definerKnob": "onClose",
209
240
  "description": "Callback when drawer should close (injected by slot wrapper)",
@@ -264,6 +295,13 @@
264
295
  "key": "CLOSE",
265
296
  "name": "Close"
266
297
  },
298
+ {
299
+ "description": "Fires after the exit animation completes (the drawer is about to unmount).",
300
+ "id": "evt_01M3SGNF2TD0GBX6P7TQFKC549",
301
+ "key": "@config.onExited",
302
+ "name": "@config.on exited",
303
+ "tier": "essential"
304
+ },
267
305
  {
268
306
  "description": "Callback when drawer should close (injected by slot wrapper)",
269
307
  "id": "evt_01KXG04NNQF8X136A5E4RS94BZ",
@@ -310,9 +348,11 @@
310
348
  "closeEvent": "@config.closeEvent",
311
349
  "closeOnEscape": "@config.closeOnEscape",
312
350
  "closeOnOverlayClick": "@config.closeOnOverlayClick",
351
+ "contained": "@config.contained",
313
352
  "footer": "@config.footer",
314
353
  "isOpen": "@config.isOpen",
315
354
  "onClose": "@config.onClose",
355
+ "onExited": "@config.onExited",
316
356
  "position": "@config.position",
317
357
  "showCloseButton": "@config.showCloseButton",
318
358
  "title": "@config.title",
@@ -136,6 +136,14 @@
136
136
  "required": true,
137
137
  "type": "string"
138
138
  },
139
+ "roles": {
140
+ "items": {
141
+ "type": "string"
142
+ },
143
+ "name": "roles",
144
+ "required": false,
145
+ "type": "array"
146
+ },
139
147
  "variant": {
140
148
  "name": "variant",
141
149
  "required": false,
@@ -200,6 +208,13 @@
200
208
  "danger",
201
209
  "warning"
202
210
  ]
211
+ },
212
+ "viewerRole": {
213
+ "default": "",
214
+ "description": "The viewer's role that each action's `roles` is checked against; bind it at the call site (e.g. `viewerRole: @user.role`). Empty = only actions with no `roles` show.",
215
+ "label": "Viewer's role",
216
+ "tier": "policy",
217
+ "type": "string"
203
218
  }
204
219
  },
205
220
  "effectRow": [
@@ -276,7 +291,40 @@
276
291
  {
277
292
  "action": "@config.action",
278
293
  "actionPayload": "@config.actionPayload",
279
- "actions": "@config.actions",
294
+ "actions": [
295
+ "array/filter",
296
+ "@config.actions",
297
+ [
298
+ "fn",
299
+ "action",
300
+ [
301
+ "or",
302
+ [
303
+ "=",
304
+ [
305
+ "array/len",
306
+ [
307
+ "object/get",
308
+ "@action",
309
+ "roles",
310
+ []
311
+ ]
312
+ ],
313
+ 0.0
314
+ ],
315
+ [
316
+ "array/includes",
317
+ [
318
+ "object/get",
319
+ "@action",
320
+ "roles",
321
+ []
322
+ ],
323
+ "@config.viewerRole"
324
+ ]
325
+ ]
326
+ ]
327
+ ],
280
328
  "className": "@config.className",
281
329
  "icon": "@config.icon",
282
330
  "label": "@config.label",
@@ -320,6 +368,10 @@
320
368
  {
321
369
  "name": "variant",
322
370
  "type": "string"
371
+ },
372
+ {
373
+ "name": "roles",
374
+ "type": "[string]"
323
375
  }
324
376
  ]
325
377
  }