@almadar/std 16.231.0 → 16.232.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 (35) hide show
  1. package/behaviors/behaviors-registry.json +4010 -768
  2. package/behaviors/lolo/ui/core/atoms/std-form-advanced.lolo +36 -3
  3. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +38 -65
  4. package/behaviors/lolo/ui/core/molecules/ui-change-list.lolo +57 -0
  5. package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +143 -0
  6. package/behaviors/lolo/ui/core/molecules/ui-version-diff.lolo +19 -3
  7. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +1 -0
  8. package/behaviors/lolo-behavior-contracts.json +1 -1
  9. package/behaviors/registry/factory-signatures.json +1 -1
  10. package/behaviors/registry/ui/core/atoms/std-form-advanced.orb +52 -3
  11. package/behaviors/registry/ui/core/atoms/std-version-history.orb +470 -346
  12. package/behaviors/registry/ui/core/molecules/ui-change-list.orb +290 -0
  13. package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +441 -0
  14. package/behaviors/registry/ui/core/molecules/ui-header.orb +43 -0
  15. package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +418 -0
  16. package/behaviors/registry/ui/core/molecules/ui-menu.orb +13 -0
  17. package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +277 -0
  18. package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +109 -18
  19. package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +43 -5
  20. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +8 -0
  21. package/dist/behaviors/exports-reader.js +1438 -1039
  22. package/dist/behaviors/functions/index.d.ts +355 -31
  23. package/dist/behaviors/functions/index.js +1427 -1040
  24. package/dist/behaviors/index.d.ts +1 -1
  25. package/dist/behaviors/index.js +1439 -1040
  26. package/dist/behaviors/query.js +1438 -1039
  27. package/dist/behaviors-embeddings.hash.json +3 -3
  28. package/dist/behaviors-embeddings.json +33 -5
  29. package/dist/behaviors-registry.json +4010 -768
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +1439 -1040
  32. package/dist/knob-embeddings.hash.json +3 -3
  33. package/dist/knob-embeddings.json +189 -13
  34. package/dist/registry/factory-signatures.json +1 -1
  35. package/package.json +2 -2
@@ -0,0 +1,277 @@
1
+ {
2
+ "description": "TopNavItem — UI factory (1:1 with the @almadar/ui top-nav-item pattern).",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01M3G7RV7Y1VMG26ZA75YVB8HY": {
6
+ "bakedName": "TopNavItemItem",
7
+ "curName": "TopNavItemItem",
8
+ "id": "ent_01M3G7RV7Y1VMG26ZA75YVB8HY",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01M3G7RV7YCAVAZV02Y27KVT03": {
14
+ "bakedName": "INIT",
15
+ "curName": "INIT",
16
+ "id": "evt_01M3G7RV7YCAVAZV02Y27KVT03",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01M3G7RV7YK1N1Z1HPYK8R52DK",
20
+ "renames": []
21
+ },
22
+ "orb_01M3G7RV7YS5PB48G5GNFNX4D9": {
23
+ "bakedName": "TopNavItemOrbital",
24
+ "curName": "TopNavItemOrbital",
25
+ "id": "orb_01M3G7RV7YS5PB48G5GNFNX4D9",
26
+ "kind": "orbital",
27
+ "owner": "workspace",
28
+ "renames": []
29
+ },
30
+ "pag_01M3G7RV7YC5BWHR163PAX7PX1": {
31
+ "bakedName": "TopNavItemPage",
32
+ "curName": "TopNavItemPage",
33
+ "id": "pag_01M3G7RV7YC5BWHR163PAX7PX1",
34
+ "kind": "page",
35
+ "owner": "workspace",
36
+ "renames": []
37
+ },
38
+ "trt_01M3G7RV7YK1N1Z1HPYK8R52DK": {
39
+ "bakedName": "TopNavItemRender",
40
+ "curName": "TopNavItemRender",
41
+ "id": "trt_01M3G7RV7YK1N1Z1HPYK8R52DK",
42
+ "kind": "trait",
43
+ "owner": "workspace",
44
+ "renames": []
45
+ }
46
+ },
47
+ "schemaVersion": 1
48
+ },
49
+ "name": "ui-top-nav-item",
50
+ "orbitals": [
51
+ {
52
+ "entity": {
53
+ "fields": [
54
+ {
55
+ "name": "id",
56
+ "required": true,
57
+ "type": "string"
58
+ }
59
+ ],
60
+ "id": "ent_01M3G7RV7Y1VMG26ZA75YVB8HY",
61
+ "name": "TopNavItemItem",
62
+ "persistence": "runtime"
63
+ },
64
+ "id": "orb_01M3G7RV7YS5PB48G5GNFNX4D9",
65
+ "name": "TopNavItemOrbital",
66
+ "pages": [
67
+ {
68
+ "id": "pag_01M3G7RV7YC5BWHR163PAX7PX1",
69
+ "name": "TopNavItemPage",
70
+ "path": "/top-nav-item",
71
+ "traits": [
72
+ {
73
+ "ref": "TopNavItemRender",
74
+ "refId": "trt_01M3G7RV7YK1N1Z1HPYK8R52DK"
75
+ }
76
+ ]
77
+ }
78
+ ],
79
+ "traits": [
80
+ {
81
+ "category": "interaction",
82
+ "config": {
83
+ "activeHref": {
84
+ "description": "The href of the active page, used to mark the item (or its parent) active.",
85
+ "label": "Active Href",
86
+ "tier": "presentation",
87
+ "type": "string"
88
+ },
89
+ "className": {
90
+ "description": "className prop",
91
+ "label": "Class Name",
92
+ "tier": "presentation",
93
+ "type": "string"
94
+ },
95
+ "item": {
96
+ "default": {
97
+ "active": false,
98
+ "badge": "Badge",
99
+ "children": [],
100
+ "href": "Href",
101
+ "icon": "circle",
102
+ "label": "Label"
103
+ },
104
+ "description": "item prop",
105
+ "label": "Item",
106
+ "properties": {
107
+ "active": {
108
+ "name": "active",
109
+ "required": false,
110
+ "type": "boolean"
111
+ },
112
+ "badge": {
113
+ "name": "badge",
114
+ "required": false,
115
+ "type": "string"
116
+ },
117
+ "children": {
118
+ "items": {
119
+ "type": "union",
120
+ "values": [
121
+ "TopNavItemItem"
122
+ ]
123
+ },
124
+ "name": "children",
125
+ "required": false,
126
+ "type": "array"
127
+ },
128
+ "href": {
129
+ "name": "href",
130
+ "required": false,
131
+ "type": "string"
132
+ },
133
+ "icon": {
134
+ "name": "icon",
135
+ "required": false,
136
+ "type": "string"
137
+ },
138
+ "label": {
139
+ "name": "label",
140
+ "required": true,
141
+ "type": "string"
142
+ }
143
+ },
144
+ "tier": "presentation",
145
+ "type": "TopNavItemItem"
146
+ },
147
+ "tone": {
148
+ "default": "solid",
149
+ "description": "Active styling: `solid` fills with the primary colour (dashboard top bar); `soft` tints it (site header).",
150
+ "label": "Tone",
151
+ "tier": "presentation",
152
+ "type": "string",
153
+ "values": [
154
+ "solid",
155
+ "soft"
156
+ ]
157
+ }
158
+ },
159
+ "effectRow": [
160
+ {
161
+ "kind": "render-ui",
162
+ "resource": "main"
163
+ }
164
+ ],
165
+ "entityContract": {
166
+ "provides": [],
167
+ "requires": []
168
+ },
169
+ "entityRebindable": true,
170
+ "entityRefIds": {
171
+ "TopNavItemItem": "ent_01M3G7RV7Y1VMG26ZA75YVB8HY"
172
+ },
173
+ "id": "trt_01M3G7RV7YK1N1Z1HPYK8R52DK",
174
+ "linkedEntity": "TopNavItemItem",
175
+ "linkedEntityId": "ent_01M3G7RV7Y1VMG26ZA75YVB8HY",
176
+ "name": "TopNavItemRender",
177
+ "scope": "instance",
178
+ "stateMachine": {
179
+ "events": [
180
+ {
181
+ "id": "evt_01M3G7RV7YCAVAZV02Y27KVT03",
182
+ "key": "INIT",
183
+ "name": "Initialize"
184
+ }
185
+ ],
186
+ "states": [
187
+ {
188
+ "isInitial": true,
189
+ "name": "idle"
190
+ }
191
+ ],
192
+ "transitions": [
193
+ {
194
+ "effects": [
195
+ [
196
+ "render-ui",
197
+ "main",
198
+ {
199
+ "activeHref": "@config.activeHref",
200
+ "className": "@config.className",
201
+ "item": "@config.item",
202
+ "tone": "@config.tone",
203
+ "type": "top-nav-item"
204
+ }
205
+ ]
206
+ ],
207
+ "event": "INIT",
208
+ "eventId": "evt_01M3G7RV7YCAVAZV02Y27KVT03",
209
+ "from": "idle",
210
+ "to": "idle"
211
+ }
212
+ ]
213
+ }
214
+ }
215
+ ],
216
+ "types": {
217
+ "TopNavItemItem": [
218
+ {
219
+ "name": "label",
220
+ "required": true,
221
+ "type": "string"
222
+ },
223
+ {
224
+ "name": "href",
225
+ "type": "string"
226
+ },
227
+ {
228
+ "name": "icon",
229
+ "type": "icon"
230
+ },
231
+ {
232
+ "name": "badge",
233
+ "type": "string"
234
+ },
235
+ {
236
+ "name": "active",
237
+ "type": "boolean"
238
+ },
239
+ {
240
+ "name": "children",
241
+ "properties": [
242
+ {
243
+ "name": "label",
244
+ "required": true,
245
+ "type": "string"
246
+ },
247
+ {
248
+ "name": "href",
249
+ "type": "string"
250
+ },
251
+ {
252
+ "name": "icon",
253
+ "type": "icon"
254
+ },
255
+ {
256
+ "name": "badge",
257
+ "type": "string"
258
+ },
259
+ {
260
+ "name": "active",
261
+ "type": "boolean"
262
+ },
263
+ {
264
+ "name": "children",
265
+ "properties": [],
266
+ "type": "[TopNavItemItem]"
267
+ }
268
+ ],
269
+ "type": "[object]"
270
+ }
271
+ ]
272
+ }
273
+ }
274
+ ],
275
+ "schemaVersion": 1,
276
+ "version": "1.0.0"
277
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "description": "VersionDiff — UI factory (1:1 with the @almadar/ui version-diff pattern).",
2
+ "description": "A line diff between two versions — two whole texts, or a pre-computed diff such as one commit. — UI factory (1:1 with the @almadar/ui version-diff pattern).",
3
3
  "ledger": {
4
4
  "entries": {
5
5
  "ent_01KXG04S04E95FG50ZVMHKA7EM": {
@@ -125,6 +125,59 @@
125
125
  "tier": "presentation",
126
126
  "type": "string"
127
127
  },
128
+ "hunks": {
129
+ "default": [],
130
+ "description": "A pre-computed diff to render instead of diffing `revisions` (no revision pickers).",
131
+ "items": {
132
+ "properties": {
133
+ "header": {
134
+ "name": "header",
135
+ "required": true,
136
+ "type": "string"
137
+ },
138
+ "lines": {
139
+ "items": {
140
+ "properties": {
141
+ "afterLineNumber": {
142
+ "name": "afterLineNumber",
143
+ "required": false,
144
+ "type": "number"
145
+ },
146
+ "beforeLineNumber": {
147
+ "name": "beforeLineNumber",
148
+ "required": false,
149
+ "type": "number"
150
+ },
151
+ "content": {
152
+ "name": "content",
153
+ "required": true,
154
+ "type": "string"
155
+ },
156
+ "type": {
157
+ "name": "type",
158
+ "required": true,
159
+ "type": "string",
160
+ "values": [
161
+ "added",
162
+ "removed",
163
+ "unchanged",
164
+ "context"
165
+ ]
166
+ }
167
+ },
168
+ "type": "object"
169
+ },
170
+ "name": "lines",
171
+ "required": true,
172
+ "type": "array"
173
+ }
174
+ },
175
+ "type": "object"
176
+ },
177
+ "label": "Hunks",
178
+ "tier": "presentation",
179
+ "type": "[VersionDiffHunksItem]"
180
+ },
128
181
  "language": {
129
182
  "description": "Language label (informational).",
130
183
  "label": "Language",
@@ -160,22 +213,7 @@
160
213
  "type": "event"
161
214
  },
162
215
  "revisions": {
163
- "default": [
164
- {
165
- "author": "Author",
166
- "content": "Content",
167
- "id": "Id",
168
- "label": "Label",
169
- "timestamp": "Timestamp"
170
- },
171
- {
172
- "author": "Author 2",
173
- "content": "Content 2",
174
- "id": "Id 2",
175
- "label": "Label 2",
176
- "timestamp": "Timestamp 2"
177
- }
178
- ],
216
+ "default": [],
179
217
  "description": "All available revisions (at least 2). Accepts either a typed array (direct consumers) or the runtime payload shape from a render-ui binding (`@payload.revisions`). Narrowed to `[]` internally when the value isn't an array.",
180
218
  "items": {
181
219
  "properties": {
@@ -227,7 +265,7 @@
227
265
  },
228
266
  "view": {
229
267
  "default": "side-by-side",
230
- "description": "Display mode.",
268
+ "description": "Display mode to start in; the toggle switches it.",
231
269
  "label": "View",
232
270
  "tier": "presentation",
233
271
  "type": "string",
@@ -363,6 +401,7 @@
363
401
  "afterId": "@config.afterId",
364
402
  "beforeId": "@config.beforeId",
365
403
  "className": "@config.className",
404
+ "hunks": "@config.hunks",
366
405
  "language": "@config.language",
367
406
  "onRevert": "@config.onRevert",
368
407
  "onSelectAfter": "@config.onSelectAfter",
@@ -386,6 +425,58 @@
386
425
  }
387
426
  ],
388
427
  "types": {
428
+ "VersionDiffHunksItem": [
429
+ {
430
+ "name": "header",
431
+ "required": true,
432
+ "type": "string"
433
+ },
434
+ {
435
+ "name": "lines",
436
+ "properties": [
437
+ {
438
+ "name": "type",
439
+ "required": true,
440
+ "type": "string"
441
+ },
442
+ {
443
+ "name": "beforeLineNumber",
444
+ "type": "number"
445
+ },
446
+ {
447
+ "name": "afterLineNumber",
448
+ "type": "number"
449
+ },
450
+ {
451
+ "name": "content",
452
+ "required": true,
453
+ "type": "string"
454
+ }
455
+ ],
456
+ "required": true,
457
+ "type": "[object]"
458
+ }
459
+ ],
460
+ "VersionDiffHunksItemLinesItem": [
461
+ {
462
+ "name": "type",
463
+ "required": true,
464
+ "type": "string"
465
+ },
466
+ {
467
+ "name": "beforeLineNumber",
468
+ "type": "number"
469
+ },
470
+ {
471
+ "name": "afterLineNumber",
472
+ "type": "number"
473
+ },
474
+ {
475
+ "name": "content",
476
+ "required": true,
477
+ "type": "string"
478
+ }
479
+ ],
389
480
  "VersionDiffRevisionsItem": [
390
481
  {
391
482
  "name": "id",
@@ -138,7 +138,6 @@
138
138
  "type": "string"
139
139
  },
140
140
  "bottomPanelCollapsed": {
141
- "default": false,
142
141
  "description": "Whether `bottomPanel` is collapsed. @default false",
143
142
  "label": "Bottom Panel Collapsed",
144
143
  "tier": "presentation",
@@ -151,6 +150,18 @@
151
150
  "tier": "presentation",
152
151
  "type": "number"
153
152
  },
153
+ "bottomPanelIcon": {
154
+ "description": "bottomPanelIcon prop",
155
+ "label": "Bottom Panel Icon",
156
+ "tier": "presentation",
157
+ "type": "icon"
158
+ },
159
+ "bottomPanelLabel": {
160
+ "description": "Compact: the top-bar button that opens `bottomPanel`.",
161
+ "label": "Bottom Panel Label",
162
+ "tier": "presentation",
163
+ "type": "string"
164
+ },
154
165
  "bottomPanelMinSize": {
155
166
  "default": 120.0,
156
167
  "description": "Minimum bottom panel size in pixels, forwarded to SplitPane's `minSize`. @default 120",
@@ -164,6 +175,12 @@
164
175
  "tier": "presentation",
165
176
  "type": "string"
166
177
  },
178
+ "compact": {
179
+ "description": "The mobile variant; decided by the viewport (narrower than 1024px) when omitted.",
180
+ "label": "Compact",
181
+ "tier": "presentation",
182
+ "type": "boolean"
183
+ },
167
184
  "main": {
168
185
  "default": [],
169
186
  "description": "Required center region.",
@@ -225,8 +242,7 @@
225
242
  "type": "string"
226
243
  },
227
244
  "railWidth": {
228
- "default": 56.0,
229
- "description": "Width of `rail` in pixels. @default 56",
245
+ "description": "Width of `rail` in pixels; the rail sizes the column itself when omitted.",
230
246
  "label": "Rail Width",
231
247
  "tier": "presentation",
232
248
  "type": "number"
@@ -244,12 +260,23 @@
244
260
  "type": "string"
245
261
  },
246
262
  "secondarySidebarCollapsed": {
247
- "default": false,
248
263
  "description": "Whether `secondarySidebar` is collapsed. @default false",
249
264
  "label": "Secondary Sidebar Collapsed",
250
265
  "tier": "presentation",
251
266
  "type": "boolean"
252
267
  },
268
+ "secondarySidebarIcon": {
269
+ "description": "secondarySidebarIcon prop",
270
+ "label": "Secondary Sidebar Icon",
271
+ "tier": "presentation",
272
+ "type": "icon"
273
+ },
274
+ "secondarySidebarLabel": {
275
+ "description": "Compact: the top-bar button that opens `secondarySidebar` (e.g. 'Inspector', 'Chat').",
276
+ "label": "Secondary Sidebar Label",
277
+ "tier": "presentation",
278
+ "type": "string"
279
+ },
253
280
  "secondarySidebarWidth": {
254
281
  "default": 280.0,
255
282
  "description": "Width of `secondarySidebar` in pixels (fixed — not resizable). @default 280",
@@ -270,7 +297,6 @@
270
297
  "type": "string"
271
298
  },
272
299
  "sidebarCollapsed": {
273
- "default": false,
274
300
  "description": "Whether `sidebar` is collapsed. @default false",
275
301
  "label": "Sidebar Collapsed",
276
302
  "tier": "presentation",
@@ -301,6 +327,12 @@
301
327
  "label": "Status Bar Class Name",
302
328
  "tier": "presentation",
303
329
  "type": "string"
330
+ },
331
+ "topBarActions": {
332
+ "description": "Compact: the host's own actions at the end of the top bar (e.g. Run).",
333
+ "label": "Top Bar Actions",
334
+ "tier": "presentation",
335
+ "type": "node"
304
336
  }
305
337
  },
306
338
  "effectRow": [
@@ -484,8 +516,11 @@
484
516
  "bottomPanelClassName": "@config.bottomPanelClassName",
485
517
  "bottomPanelCollapsed": "@config.bottomPanelCollapsed",
486
518
  "bottomPanelHeight": "@config.bottomPanelHeight",
519
+ "bottomPanelIcon": "@config.bottomPanelIcon",
520
+ "bottomPanelLabel": "@config.bottomPanelLabel",
487
521
  "bottomPanelMinSize": "@config.bottomPanelMinSize",
488
522
  "className": "@config.className",
523
+ "compact": "@config.compact",
489
524
  "main": "@config.main",
490
525
  "mainClassName": "@config.mainClassName",
491
526
  "onBottomPanelCollapsedChange": "@config.onBottomPanelCollapsedChange",
@@ -499,6 +534,8 @@
499
534
  "secondarySidebar": "@config.secondarySidebar",
500
535
  "secondarySidebarClassName": "@config.secondarySidebarClassName",
501
536
  "secondarySidebarCollapsed": "@config.secondarySidebarCollapsed",
537
+ "secondarySidebarIcon": "@config.secondarySidebarIcon",
538
+ "secondarySidebarLabel": "@config.secondarySidebarLabel",
502
539
  "secondarySidebarWidth": "@config.secondarySidebarWidth",
503
540
  "sidebar": "@config.sidebar",
504
541
  "sidebarClassName": "@config.sidebarClassName",
@@ -507,6 +544,7 @@
507
544
  "sidebarWidth": "@config.sidebarWidth",
508
545
  "statusBar": "@config.statusBar",
509
546
  "statusBarClassName": "@config.statusBarClassName",
547
+ "topBarActions": "@config.topBarActions",
510
548
  "type": "dock-layout"
511
549
  }
512
550
  ]
@@ -765,6 +765,10 @@
765
765
  "required": true,
766
766
  "type": "number"
767
767
  },
768
+ {
769
+ "name": "type",
770
+ "type": "string"
771
+ },
768
772
  {
769
773
  "name": "elevation",
770
774
  "type": "number"
@@ -929,6 +933,10 @@
929
933
  "required": true,
930
934
  "type": "number"
931
935
  },
936
+ {
937
+ "name": "type",
938
+ "type": "string"
939
+ },
932
940
  {
933
941
  "name": "elevation",
934
942
  "type": "number"