@almadar/std 16.196.0 → 16.197.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 (47) hide show
  1. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +1 -1
  2. package/behaviors/lolo/ui/core/atoms/std-record-detail.lolo +1 -1
  3. package/behaviors/lolo/ui/core/molecules/ui-chart.lolo +1 -1
  4. package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +1 -1
  5. package/behaviors/lolo/ui/core/molecules/ui-document-viewer.lolo +1 -1
  6. package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +1 -1
  7. package/behaviors/lolo/ui/core/molecules/ui-form-actions.lolo +1 -1
  8. package/behaviors/lolo/ui/core/molecules/ui-graph-canvas.lolo +1 -1
  9. package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +1 -1
  10. package/behaviors/lolo/ui/core/molecules/ui-meter.lolo +1 -1
  11. package/behaviors/lolo/ui/core/molecules/ui-page-header.lolo +1 -1
  12. package/behaviors/lolo/ui/core/molecules/ui-qr-scanner.lolo +3 -1
  13. package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +2 -2
  14. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +0 -1
  15. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +3 -4
  16. package/behaviors/lolo/ui/core/organisms/ui-media-gallery.lolo +1 -1
  17. package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +2 -5
  18. package/behaviors/registry/ui/core/atoms/std-browse.orb +1 -1
  19. package/behaviors/registry/ui/core/atoms/std-record-detail.orb +1 -1
  20. package/behaviors/registry/ui/core/molecules/ui-chart.orb +1 -1
  21. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +1 -1
  22. package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +1 -1
  23. package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +1 -1
  24. package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +1 -1
  25. package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +1 -1
  26. package/behaviors/registry/ui/core/molecules/ui-menu.orb +1 -1
  27. package/behaviors/registry/ui/core/molecules/ui-meter.orb +1 -1
  28. package/behaviors/registry/ui/core/molecules/ui-page-header.orb +1 -1
  29. package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +26 -4
  30. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +2 -2
  31. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -5
  32. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +3 -8
  33. package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +1 -1
  34. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +2 -20
  35. package/dist/behaviors/exports-reader.js +6 -16
  36. package/dist/behaviors/functions/index.d.ts +3 -1
  37. package/dist/behaviors/functions/index.js +6 -16
  38. package/dist/behaviors/index.js +6 -16
  39. package/dist/behaviors/query.js +6 -16
  40. package/dist/behaviors-embeddings.hash.json +3 -3
  41. package/dist/behaviors-embeddings.json +1 -1
  42. package/dist/behaviors-registry.json +1 -1
  43. package/dist/index.js +6 -16
  44. package/dist/knob-embeddings.hash.json +3 -3
  45. package/dist/knob-embeddings.json +1 -1
  46. package/dist/registry/factory-signatures.json +1 -1
  47. package/package.json +2 -2
@@ -7,7 +7,7 @@ type FilterSpec = { field : string!, label : string, options : [string] }
7
7
  orbital BrowseItemOrbital {
8
8
  type BrowseDetailAction = {
9
9
  label : string!
10
- event : string!
10
+ event : event!
11
11
  icon : string
12
12
  variant : string
13
13
  }
@@ -2,7 +2,7 @@ app std-record-detail "1.0.0"
2
2
  "std-record-detail — single primitive: detail-panel. Owns the fetch-one-record state machine (loading → viewing → error, with RETRY), the record counterpart to std-browse's collection machine. Consumers configure fields/sections/actions and the title/subtitle/status bindings; the atom fetches by the id (or, for slug-routed records, the slug) carried on INIT and renders the panel. `detailLook` (panel default / slide-over / page / document) selects the render body, exactly as std-browse's browseLook selects a collection shape. The `document` look is for records whose shape IS a document (wiki page, note, article): the pure writing surface — a big inline-editable title with the rich-text body DIRECTLY beneath it, Edit/Done and the actions menu tucked into the header corner — where clicking the body drops a cursor in, every typing pause autosaves (CONTENT_SAVED, which the host persists QUIETLY — no refetch, or the editor unmounts mid-keystroke), and Done emits CONTENT_COMMITTED (the host refetches and snapshots version history on this one). Metadata never sits between the title and the words: compose the sibling RecordItemDetails trait beside the doc for a Gutenberg-style settings rail. A row minted blank by a document-first create arrives with draft=1 on INIT and opens straight in the editor. Pair with std-detail-layout for the back + breadcrumb chrome — that atom owns navigation, this one owns the record — exactly as a list page pairs std-browse with std-app-layout."
3
3
  ;; @capabilities "record detail, single record view, entity detail panel, drill-down record, show one record, record profile, detail page, view details, document editor, wiki page, note taking, article body, rich text editing, write and edit content"
4
4
  orbital RecordItemOrbital {
5
- type RecordAction = { label : string!, event : string!, icon : string, variant : primary | secondary | ghost | danger }
5
+ type RecordAction = { label : string!, event : event!, icon : string, variant : primary | secondary | ghost | danger }
6
6
  type RecordFieldSpec = { key : string!, header : string, format : date | currency | number | boolean | percent }
7
7
  type MetaFieldSpec = { key : string!, label : string, kind : text | boolean | select | readonly, options : [string], icon : string, format : date | currency | number | boolean | percent }
8
8
  type RecordSection = { title : string!, fields : [string] }
@@ -26,7 +26,7 @@ orbital ChartOrbital {
26
26
  }
27
27
  type ChartActionsItem = {
28
28
  label : string!
29
- event : string
29
+ event : event
30
30
  navigatesTo : string
31
31
  variant : "primary" | "secondary" | "ghost"
32
32
  }
@@ -14,7 +14,7 @@ orbital CodeBlockOrbital {
14
14
  }
15
15
  type CodeBlockActionsItem = {
16
16
  label : string!
17
- event : string
17
+ event : event
18
18
  navigatesTo : string
19
19
  variant : "primary" | "secondary" | "ghost"
20
20
  }
@@ -3,7 +3,7 @@ app ui-document-viewer "1.0.0"
3
3
  orbital DocumentViewerOrbital {
4
4
  type DocumentViewerActionsItem = {
5
5
  label : string!
6
- event : string
6
+ event : event
7
7
  navigatesTo : string
8
8
  variant : "primary" | "secondary" | "ghost"
9
9
  }
@@ -5,7 +5,7 @@ orbital FloatingActionButtonOrbital {
5
5
  id : string!
6
6
  label : string!
7
7
  icon : icon!
8
- event : string
8
+ event : event
9
9
  variant : "primary" | "secondary" | "success" | "danger" | "warning"
10
10
  }
11
11
 
@@ -11,7 +11,7 @@ orbital FormActionsOrbital {
11
11
  type FormActionsSecondaryItem = {
12
12
  label : string!
13
13
  actionType : string
14
- event : string
14
+ event : event
15
15
  navigatesTo : string
16
16
  variant : string
17
17
  }
@@ -37,7 +37,7 @@ orbital GraphCanvasOrbital {
37
37
  }
38
38
  type GraphCanvasActionsItem = {
39
39
  label : string!
40
- event : string
40
+ event : event
41
41
  navigatesTo : string
42
42
  variant : "primary" | "secondary" | "ghost"
43
43
  }
@@ -7,7 +7,7 @@ orbital MenuOrbital {
7
7
  icon : icon
8
8
  badge : string
9
9
  disabled : boolean
10
- event : string
10
+ event : event
11
11
  url : string
12
12
  variant : "default" | "danger"
13
13
  subMenu : [json]
@@ -8,7 +8,7 @@ orbital MeterOrbital {
8
8
  }
9
9
  type MeterActionsItem = {
10
10
  label : string!
11
- event : string
11
+ event : event
12
12
  navigatesTo : string
13
13
  variant : "primary" | "secondary" | "ghost"
14
14
  }
@@ -12,7 +12,7 @@ orbital PageHeaderOrbital {
12
12
  type PageHeaderActionsItem = {
13
13
  label : string!
14
14
  navigatesTo : string
15
- event : string
15
+ event : event
16
16
  variant : "primary" | "secondary" | "ghost" | "danger"
17
17
  icon : icon
18
18
  loading : boolean
@@ -32,7 +32,9 @@ orbital QrScannerOrbital {
32
32
  emits {
33
33
  @config.onScan -> external {
34
34
  result : QrScannerSCANResult
35
- _payload : object
35
+ text : string!
36
+ format : string!
37
+ timestamp : number!
36
38
  }
37
39
  @description "onScan prop"
38
40
  @tier "essential"
@@ -10,7 +10,7 @@ orbital TabsOrbital {
10
10
  iconAsset : TabsItemsItemIconAsset
11
11
  badge : string
12
12
  disabled : boolean
13
- event : string
13
+ event : event
14
14
  active : boolean
15
15
  }
16
16
  type TabsItemsItemIconAsset = {
@@ -36,7 +36,7 @@ orbital TabsOrbital {
36
36
  iconAsset : TabsTabsItemIconAsset
37
37
  badge : string
38
38
  disabled : boolean
39
- event : string
39
+ event : event
40
40
  active : boolean
41
41
  }
42
42
  type TabsTabsItemIconAsset = {
@@ -24,7 +24,6 @@ orbital EntityCardsOrbital {
24
24
  label : string!
25
25
  event : event
26
26
  navigatesTo : string
27
- action : string
28
27
  placement : "card" | "footer" | "row"
29
28
  variant : "primary" | "secondary" | "ghost" | "danger"
30
29
  }
@@ -26,9 +26,8 @@ orbital EntityTableOrbital {
26
26
  }
27
27
  type EntityTableItemActionsItem = {
28
28
  label : string!
29
- event : string
29
+ event : event
30
30
  navigatesTo : string
31
- action : string
32
31
  placement : "row" | "bulk"
33
32
  icon : icon
34
33
  variant : "default" | "primary" | "secondary" | "ghost" | "danger"
@@ -41,13 +40,13 @@ orbital EntityTableOrbital {
41
40
  label : string!
42
41
  icon : icon
43
42
  variant : "default" | "danger"
44
- event : string
43
+ event : event
45
44
  }
46
45
  type EntityTableBulkActionsItem = {
47
46
  label : string!
48
47
  icon : icon
49
48
  variant : "default" | "danger"
50
- event : string
49
+ event : event
51
50
  }
52
51
 
53
52
  entity EntityTableItem [runtime] {
@@ -19,7 +19,7 @@ orbital MediaGalleryOrbital {
19
19
  }
20
20
  type MediaGalleryActionsItem = {
21
21
  label : string!
22
- event : string
22
+ event : event
23
23
  navigatesTo : string
24
24
  variant : "primary" | "secondary" | "ghost"
25
25
  }
@@ -4,22 +4,20 @@ orbital GameMenuOrbital {
4
4
  type GameMenuOptionsItem = {
5
5
  id : string
6
6
  label : string!
7
- event : string
7
+ event : event
8
8
  navigatesTo : string
9
9
  variant : "primary" | "secondary" | "ghost"
10
10
  disabled : boolean
11
11
  subLabel : string
12
- action : string
13
12
  }
14
13
  type GameMenuMenuItemsItem = {
15
14
  id : string
16
15
  label : string!
17
- event : string
16
+ event : event
18
17
  navigatesTo : string
19
18
  variant : "primary" | "secondary" | "ghost"
20
19
  disabled : boolean
21
20
  subLabel : string
22
- action : string
23
21
  }
24
22
  type GameMenuLogo = {
25
23
  url : asset!
@@ -43,7 +41,6 @@ orbital GameMenuOrbital {
43
41
  variant : "primary" | "secondary" | "ghost"
44
42
  disabled : boolean
45
43
  subLabel : string
46
- action : string
47
44
  }
48
45
 
49
46
  entity GameMenuItem [runtime] {
@@ -676,7 +676,7 @@
676
676
  "event": {
677
677
  "name": "event",
678
678
  "required": true,
679
- "type": "string"
679
+ "type": "event"
680
680
  },
681
681
  "icon": {
682
682
  "name": "icon",
@@ -372,7 +372,7 @@
372
372
  "event": {
373
373
  "name": "event",
374
374
  "required": true,
375
- "type": "string"
375
+ "type": "event"
376
376
  },
377
377
  "icon": {
378
378
  "name": "icon",
@@ -88,7 +88,7 @@
88
88
  "event": {
89
89
  "name": "event",
90
90
  "required": false,
91
- "type": "string"
91
+ "type": "event"
92
92
  },
93
93
  "label": {
94
94
  "name": "label",
@@ -110,7 +110,7 @@
110
110
  "event": {
111
111
  "name": "event",
112
112
  "required": false,
113
- "type": "string"
113
+ "type": "event"
114
114
  },
115
115
  "label": {
116
116
  "name": "label",
@@ -88,7 +88,7 @@
88
88
  "event": {
89
89
  "name": "event",
90
90
  "required": false,
91
- "type": "string"
91
+ "type": "event"
92
92
  },
93
93
  "label": {
94
94
  "name": "label",
@@ -120,7 +120,7 @@
120
120
  "event": {
121
121
  "name": "event",
122
122
  "required": false,
123
- "type": "string"
123
+ "type": "event"
124
124
  },
125
125
  "icon": {
126
126
  "name": "icon",
@@ -240,7 +240,7 @@
240
240
  "event": {
241
241
  "name": "event",
242
242
  "required": false,
243
- "type": "string"
243
+ "type": "event"
244
244
  },
245
245
  "label": {
246
246
  "name": "label",
@@ -124,7 +124,7 @@
124
124
  "event": {
125
125
  "name": "event",
126
126
  "required": false,
127
- "type": "string"
127
+ "type": "event"
128
128
  },
129
129
  "label": {
130
130
  "name": "label",
@@ -137,7 +137,7 @@
137
137
  "event": {
138
138
  "name": "event",
139
139
  "required": false,
140
- "type": "string"
140
+ "type": "event"
141
141
  },
142
142
  "icon": {
143
143
  "name": "icon",
@@ -88,7 +88,7 @@
88
88
  "event": {
89
89
  "name": "event",
90
90
  "required": false,
91
- "type": "string"
91
+ "type": "event"
92
92
  },
93
93
  "label": {
94
94
  "name": "label",
@@ -111,7 +111,7 @@
111
111
  "event": {
112
112
  "name": "event",
113
113
  "required": false,
114
- "type": "string"
114
+ "type": "event"
115
115
  },
116
116
  "icon": {
117
117
  "name": "icon",
@@ -176,8 +176,19 @@
176
176
  "type": "object"
177
177
  },
178
178
  {
179
- "name": "_payload",
180
- "type": "object"
179
+ "name": "text",
180
+ "required": true,
181
+ "type": "string"
182
+ },
183
+ {
184
+ "name": "format",
185
+ "required": true,
186
+ "type": "string"
187
+ },
188
+ {
189
+ "name": "timestamp",
190
+ "required": true,
191
+ "type": "number"
181
192
  }
182
193
  ],
183
194
  "scope": "external",
@@ -232,8 +243,19 @@
232
243
  "type": "object"
233
244
  },
234
245
  {
235
- "name": "_payload",
236
- "type": "object"
246
+ "name": "text",
247
+ "required": true,
248
+ "type": "string"
249
+ },
250
+ {
251
+ "name": "format",
252
+ "required": true,
253
+ "type": "string"
254
+ },
255
+ {
256
+ "name": "timestamp",
257
+ "required": true,
258
+ "type": "number"
237
259
  }
238
260
  ],
239
261
  "tier": "essential"
@@ -135,7 +135,7 @@
135
135
  "event": {
136
136
  "name": "event",
137
137
  "required": false,
138
- "type": "string"
138
+ "type": "event"
139
139
  },
140
140
  "icon": {
141
141
  "name": "icon",
@@ -304,7 +304,7 @@
304
304
  "event": {
305
305
  "name": "event",
306
306
  "required": false,
307
- "type": "string"
307
+ "type": "event"
308
308
  },
309
309
  "icon": {
310
310
  "name": "icon",
@@ -286,11 +286,6 @@
286
286
  "description": "Actions for each card item (schema-driven)",
287
287
  "items": {
288
288
  "properties": {
289
- "action": {
290
- "name": "action",
291
- "required": false,
292
- "type": "string"
293
- },
294
289
  "event": {
295
290
  "name": "event",
296
291
  "required": false,
@@ -116,7 +116,7 @@
116
116
  "event": {
117
117
  "name": "event",
118
118
  "required": false,
119
- "type": "string"
119
+ "type": "event"
120
120
  },
121
121
  "icon": {
122
122
  "name": "icon",
@@ -339,15 +339,10 @@
339
339
  "description": "Item actions from generated code - maps to rowActions",
340
340
  "items": {
341
341
  "properties": {
342
- "action": {
343
- "name": "action",
344
- "required": false,
345
- "type": "string"
346
- },
347
342
  "event": {
348
343
  "name": "event",
349
344
  "required": false,
350
- "type": "string"
345
+ "type": "event"
351
346
  },
352
347
  "icon": {
353
348
  "name": "icon",
@@ -427,7 +422,7 @@
427
422
  "event": {
428
423
  "name": "event",
429
424
  "required": false,
430
- "type": "string"
425
+ "type": "event"
431
426
  },
432
427
  "icon": {
433
428
  "name": "icon",
@@ -106,7 +106,7 @@
106
106
  "event": {
107
107
  "name": "event",
108
108
  "required": false,
109
- "type": "string"
109
+ "type": "event"
110
110
  },
111
111
  "label": {
112
112
  "name": "label",
@@ -194,11 +194,6 @@
194
194
  "description": "Alias for options (schema compatibility)",
195
195
  "items": {
196
196
  "properties": {
197
- "action": {
198
- "name": "action",
199
- "required": false,
200
- "type": "string"
201
- },
202
197
  "disabled": {
203
198
  "name": "disabled",
204
199
  "required": false,
@@ -207,7 +202,7 @@
207
202
  "event": {
208
203
  "name": "event",
209
204
  "required": false,
210
- "type": "string"
205
+ "type": "event"
211
206
  },
212
207
  "id": {
213
208
  "name": "id",
@@ -258,11 +253,6 @@
258
253
  "description": "Menu options - accepts readonly for compatibility with generated const arrays",
259
254
  "items": {
260
255
  "properties": {
261
- "action": {
262
- "name": "action",
263
- "required": false,
264
- "type": "string"
265
- },
266
256
  "disabled": {
267
257
  "name": "disabled",
268
258
  "required": false,
@@ -271,7 +261,7 @@
271
261
  "event": {
272
262
  "name": "event",
273
263
  "required": false,
274
- "type": "string"
264
+ "type": "event"
275
265
  },
276
266
  "id": {
277
267
  "name": "id",
@@ -361,10 +351,6 @@
361
351
  {
362
352
  "name": "subLabel",
363
353
  "type": "string"
364
- },
365
- {
366
- "name": "action",
367
- "type": "string"
368
354
  }
369
355
  ],
370
356
  "type": "object"
@@ -431,10 +417,6 @@
431
417
  {
432
418
  "name": "subLabel",
433
419
  "type": "string"
434
- },
435
- {
436
- "name": "action",
437
- "type": "string"
438
420
  }
439
421
  ],
440
422
  "type": "object"
@@ -16192,7 +16192,7 @@ function stdBrowseBrowseItemOrbital(params = {}) {
16192
16192
  "event": {
16193
16193
  "name": "event",
16194
16194
  "required": true,
16195
- "type": "string"
16195
+ "type": "event"
16196
16196
  },
16197
16197
  "icon": {
16198
16198
  "name": "icon",
@@ -65425,7 +65425,7 @@ function stdRecordDetailRecordItemOrbital(params = {}) {
65425
65425
  "event": {
65426
65426
  "name": "event",
65427
65427
  "required": true,
65428
- "type": "string"
65428
+ "type": "event"
65429
65429
  },
65430
65430
  "icon": {
65431
65431
  "name": "icon",
@@ -147803,11 +147803,6 @@ function stdUiEntityCardsEntityCardsOrbital(params = {}) {
147803
147803
  "description": "Actions for each card item (schema-driven)",
147804
147804
  "items": {
147805
147805
  "properties": {
147806
- "action": {
147807
- "name": "action",
147808
- "required": false,
147809
- "type": "string"
147810
- },
147811
147806
  "event": {
147812
147807
  "name": "event",
147813
147808
  "required": false,
@@ -148812,7 +148807,7 @@ function stdUiEntityTableEntityTableOrbital(params = {}) {
148812
148807
  "event": {
148813
148808
  "name": "event",
148814
148809
  "required": false,
148815
- "type": "string"
148810
+ "type": "event"
148816
148811
  },
148817
148812
  "icon": {
148818
148813
  "name": "icon",
@@ -149035,15 +149030,10 @@ function stdUiEntityTableEntityTableOrbital(params = {}) {
149035
149030
  "description": "Item actions from generated code - maps to rowActions",
149036
149031
  "items": {
149037
149032
  "properties": {
149038
- "action": {
149039
- "name": "action",
149040
- "required": false,
149041
- "type": "string"
149042
- },
149043
149033
  "event": {
149044
149034
  "name": "event",
149045
149035
  "required": false,
149046
- "type": "string"
149036
+ "type": "event"
149047
149037
  },
149048
149038
  "icon": {
149049
149039
  "name": "icon",
@@ -149123,7 +149113,7 @@ function stdUiEntityTableEntityTableOrbital(params = {}) {
149123
149113
  "event": {
149124
149114
  "name": "event",
149125
149115
  "required": false,
149126
- "type": "string"
149116
+ "type": "event"
149127
149117
  },
149128
149118
  "icon": {
149129
149119
  "name": "icon",
@@ -153426,7 +153416,7 @@ function stdUiMediaGalleryMediaGalleryOrbital(params = {}) {
153426
153416
  "event": {
153427
153417
  "name": "event",
153428
153418
  "required": false,
153429
- "type": "string"
153419
+ "type": "event"
153430
153420
  },
153431
153421
  "label": {
153432
153422
  "name": "label",
@@ -38503,7 +38503,9 @@ type StdUiQrScannerEventKey = 'INIT' | 'SCAN';
38503
38503
  */
38504
38504
  interface StdUiQrScannerScanPayload {
38505
38505
  result?: EntityRow;
38506
- _payload?: EntityRow;
38506
+ text: string;
38507
+ format: string;
38508
+ timestamp: number;
38507
38509
  }
38508
38510
  /**
38509
38511
  * Typed call-site config block for this trait — every