@almadar/std 16.201.0 → 16.203.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 (52) hide show
  1. package/behaviors/lolo/ui/core/atoms/std-modal-editor.lolo +230 -0
  2. package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +302 -0
  3. package/behaviors/lolo/ui/core/molecules/ui-command-palette.lolo +116 -0
  4. package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +2 -1
  5. package/behaviors/lolo/ui/core/molecules/ui-pagination.lolo +1 -1
  6. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +1 -1
  7. package/behaviors/lolo/ui/game/atoms/std-audio-cue.lolo +138 -0
  8. package/behaviors/lolo/ui/game/atoms/std-camera-rig.lolo +158 -0
  9. package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +42 -0
  10. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +42 -0
  11. package/behaviors/lolo/ui/game/atoms/ui-game-audio-cue.lolo +68 -0
  12. package/behaviors/lolo/ui/game/atoms/ui-game-audio-toggle.lolo +13 -0
  13. package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +2 -1
  14. package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +2 -1
  15. package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +2 -1
  16. package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +2 -1
  17. package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +8 -1
  18. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +10 -3
  19. package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +2 -1
  20. package/behaviors/registry/ui/core/atoms/std-modal-editor.orb +1450 -0
  21. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +687 -1
  22. package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +589 -0
  23. package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +13 -2
  24. package/behaviors/registry/ui/core/molecules/ui-pagination.orb +6 -1
  25. package/behaviors/registry/ui/game/atoms/std-audio-cue.orb +653 -0
  26. package/behaviors/registry/ui/game/atoms/std-camera-rig.orb +813 -0
  27. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +135 -0
  28. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +134 -0
  29. package/behaviors/registry/ui/game/atoms/ui-game-audio-cue.orb +258 -0
  30. package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +48 -0
  31. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +10 -0
  32. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +14 -0
  33. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +14 -0
  34. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +14 -0
  35. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +22 -0
  36. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +24 -0
  37. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +14 -0
  38. package/dist/behaviors/exports-reader.js +3103 -2883
  39. package/dist/behaviors/functions/index.d.ts +563 -7
  40. package/dist/behaviors/functions/index.js +3089 -2884
  41. package/dist/behaviors/index.d.ts +1 -1
  42. package/dist/behaviors/index.js +3104 -2884
  43. package/dist/behaviors/query.js +3103 -2883
  44. package/dist/behaviors-embeddings.hash.json +3 -3
  45. package/dist/behaviors-embeddings.json +29 -9
  46. package/dist/behaviors-registry.json +4169 -687
  47. package/dist/index.d.ts +1 -1
  48. package/dist/index.js +3104 -2884
  49. package/dist/knob-embeddings.hash.json +3 -3
  50. package/dist/knob-embeddings.json +1 -1
  51. package/dist/registry/factory-signatures.json +1 -1
  52. package/package.json +2 -2
@@ -0,0 +1,589 @@
1
+ {
2
+ "description": "CommandPalette — UI factory (1:1 with the @almadar/ui command-palette pattern).",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01M1KNYATVYPS9P6E4EDEYNG4B": {
6
+ "bakedName": "CommandPaletteItem",
7
+ "curName": "CommandPaletteItem",
8
+ "id": "ent_01M1KNYATVYPS9P6E4EDEYNG4B",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01M1KNYATV6A6183DCAHAV8G29": {
14
+ "bakedName": "@config.onOpenChange",
15
+ "curName": "@config.onOpenChange",
16
+ "id": "evt_01M1KNYATV6A6183DCAHAV8G29",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01M1KNYATV6QJY03T0Z3RRNQSZ",
20
+ "renames": []
21
+ },
22
+ "evt_01M1KNYATVPVN3340QMMFYF7Q4": {
23
+ "bakedName": "@config.onSelect",
24
+ "curName": "@config.onSelect",
25
+ "id": "evt_01M1KNYATVPVN3340QMMFYF7Q4",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01M1KNYATV6QJY03T0Z3RRNQSZ",
29
+ "renames": []
30
+ },
31
+ "evt_01M1KNYATVTSADY2GNXYEGFVGQ": {
32
+ "bakedName": "OPEN_CHANGE",
33
+ "curName": "OPEN_CHANGE",
34
+ "id": "evt_01M1KNYATVTSADY2GNXYEGFVGQ",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01M1KNYATV6QJY03T0Z3RRNQSZ",
38
+ "renames": []
39
+ },
40
+ "evt_01M1KNYATVV11B8MNEAHHAR28X": {
41
+ "bakedName": "INIT",
42
+ "curName": "INIT",
43
+ "id": "evt_01M1KNYATVV11B8MNEAHHAR28X",
44
+ "kind": "event",
45
+ "owner": "workspace",
46
+ "parent": "trt_01M1KNYATV6QJY03T0Z3RRNQSZ",
47
+ "renames": []
48
+ },
49
+ "orb_01M1KNYATVRR0J0XVKGCXEN3DY": {
50
+ "bakedName": "CommandPaletteOrbital",
51
+ "curName": "CommandPaletteOrbital",
52
+ "id": "orb_01M1KNYATVRR0J0XVKGCXEN3DY",
53
+ "kind": "orbital",
54
+ "owner": "workspace",
55
+ "renames": []
56
+ },
57
+ "pag_01M1KNYATVTH98ZHA1CFNEDKWQ": {
58
+ "bakedName": "CommandPalettePage",
59
+ "curName": "CommandPalettePage",
60
+ "id": "pag_01M1KNYATVTH98ZHA1CFNEDKWQ",
61
+ "kind": "page",
62
+ "owner": "workspace",
63
+ "renames": []
64
+ },
65
+ "trt_01M1KNYATV6QJY03T0Z3RRNQSZ": {
66
+ "bakedName": "CommandPaletteRender",
67
+ "curName": "CommandPaletteRender",
68
+ "id": "trt_01M1KNYATV6QJY03T0Z3RRNQSZ",
69
+ "kind": "trait",
70
+ "owner": "workspace",
71
+ "renames": []
72
+ }
73
+ },
74
+ "schemaVersion": 1
75
+ },
76
+ "name": "ui-command-palette",
77
+ "orbitals": [
78
+ {
79
+ "entity": {
80
+ "fields": [
81
+ {
82
+ "name": "id",
83
+ "required": true,
84
+ "type": "string"
85
+ },
86
+ {
87
+ "default": false,
88
+ "name": "open",
89
+ "type": "boolean"
90
+ }
91
+ ],
92
+ "id": "ent_01M1KNYATVYPS9P6E4EDEYNG4B",
93
+ "name": "CommandPaletteItem",
94
+ "persistence": "runtime"
95
+ },
96
+ "id": "orb_01M1KNYATVRR0J0XVKGCXEN3DY",
97
+ "name": "CommandPaletteOrbital",
98
+ "pages": [
99
+ {
100
+ "id": "pag_01M1KNYATVTH98ZHA1CFNEDKWQ",
101
+ "name": "CommandPalettePage",
102
+ "path": "/command-palette",
103
+ "traits": [
104
+ {
105
+ "ref": "CommandPaletteRender",
106
+ "refId": "trt_01M1KNYATV6QJY03T0Z3RRNQSZ"
107
+ }
108
+ ]
109
+ }
110
+ ],
111
+ "traits": [
112
+ {
113
+ "category": "interaction",
114
+ "config": {
115
+ "className": {
116
+ "description": "Additional CSS classes on the overlay's dialog",
117
+ "label": "Class Name",
118
+ "tier": "presentation",
119
+ "type": "string"
120
+ },
121
+ "commands": {
122
+ "default": [
123
+ {
124
+ "action": "Action",
125
+ "disabled": false,
126
+ "group": "Group",
127
+ "icon": "circle",
128
+ "id": "Id",
129
+ "keywords": [
130
+ "Item",
131
+ "Item 2"
132
+ ],
133
+ "label": "Label",
134
+ "shortcut": "Shortcut"
135
+ },
136
+ {
137
+ "action": "Action 2",
138
+ "disabled": true,
139
+ "group": "Group 2",
140
+ "icon": "circle",
141
+ "id": "Id 2",
142
+ "keywords": [
143
+ "Item",
144
+ "Item 2"
145
+ ],
146
+ "label": "Label 2",
147
+ "shortcut": "Shortcut 2"
148
+ }
149
+ ],
150
+ "description": "Commands listed in the palette, filtered as the user types",
151
+ "items": {
152
+ "properties": {
153
+ "action": {
154
+ "name": "action",
155
+ "required": false,
156
+ "type": "string"
157
+ },
158
+ "actionPayload": {
159
+ "items": {
160
+ "type": "scalar"
161
+ },
162
+ "name": "actionPayload",
163
+ "required": false,
164
+ "type": "object"
165
+ },
166
+ "disabled": {
167
+ "name": "disabled",
168
+ "required": false,
169
+ "type": "boolean"
170
+ },
171
+ "event": {
172
+ "name": "event",
173
+ "required": false,
174
+ "type": "string"
175
+ },
176
+ "group": {
177
+ "name": "group",
178
+ "required": false,
179
+ "type": "string"
180
+ },
181
+ "icon": {
182
+ "name": "icon",
183
+ "required": false,
184
+ "type": "string"
185
+ },
186
+ "id": {
187
+ "name": "id",
188
+ "required": true,
189
+ "type": "string"
190
+ },
191
+ "keywords": {
192
+ "items": {
193
+ "type": "string"
194
+ },
195
+ "name": "keywords",
196
+ "required": false,
197
+ "type": "array"
198
+ },
199
+ "label": {
200
+ "name": "label",
201
+ "required": true,
202
+ "type": "string"
203
+ },
204
+ "shortcut": {
205
+ "name": "shortcut",
206
+ "required": false,
207
+ "type": "string"
208
+ }
209
+ },
210
+ "type": "object"
211
+ },
212
+ "label": "Commands",
213
+ "tier": "presentation",
214
+ "type": "[CommandPaletteCommandsItem]"
215
+ },
216
+ "emptyLabel": {
217
+ "default": "No matching commands",
218
+ "description": "Label shown when no command matches the query",
219
+ "label": "Empty Label",
220
+ "tier": "presentation",
221
+ "type": "string"
222
+ },
223
+ "onOpenChange": {
224
+ "default": "OPEN_CHANGE",
225
+ "description": "Called to open/close the overlay (Escape, overlay click, or a selection)",
226
+ "label": "On Open Change",
227
+ "tier": "presentation",
228
+ "type": "event"
229
+ },
230
+ "onSelect": {
231
+ "default": "SELECT",
232
+ "description": "Called with the selected command (click, or Enter on the highlighted row)",
233
+ "label": "On Select",
234
+ "tier": "presentation",
235
+ "type": "event"
236
+ },
237
+ "open": {
238
+ "default": false,
239
+ "description": "Whether the palette overlay is open",
240
+ "label": "Open",
241
+ "tier": "presentation",
242
+ "type": "boolean"
243
+ },
244
+ "placeholder": {
245
+ "default": "Type a command...",
246
+ "description": "Search field placeholder. Consumers own i18n — plain string prop, no package-internal translation (matches FloatingToolbar's convention).",
247
+ "label": "Placeholder",
248
+ "tier": "presentation",
249
+ "type": "string"
250
+ }
251
+ },
252
+ "emits": [
253
+ {
254
+ "definerKnob": "onOpenChange",
255
+ "description": "Called to open/close the overlay (Escape, overlay click, or a selection)",
256
+ "event": "@config.onOpenChange",
257
+ "eventId": "evt_01M1KNYATV6A6183DCAHAV8G29",
258
+ "payloadSchema": [
259
+ {
260
+ "name": "open",
261
+ "type": "boolean"
262
+ }
263
+ ],
264
+ "scope": "external",
265
+ "tier": "essential"
266
+ },
267
+ {
268
+ "definerKnob": "onSelect",
269
+ "description": "Called with the selected command (click, or Enter on the highlighted row)",
270
+ "event": "@config.onSelect",
271
+ "eventId": "evt_01M1KNYATVPVN3340QMMFYF7Q4",
272
+ "payloadSchema": [
273
+ {
274
+ "name": "command",
275
+ "properties": [
276
+ {
277
+ "name": "id",
278
+ "required": true,
279
+ "type": "string"
280
+ },
281
+ {
282
+ "name": "label",
283
+ "required": true,
284
+ "type": "string"
285
+ },
286
+ {
287
+ "name": "icon",
288
+ "type": "icon"
289
+ },
290
+ {
291
+ "name": "shortcut",
292
+ "type": "string"
293
+ },
294
+ {
295
+ "name": "keywords",
296
+ "type": "[string]"
297
+ },
298
+ {
299
+ "name": "group",
300
+ "type": "string"
301
+ },
302
+ {
303
+ "name": "disabled",
304
+ "type": "boolean"
305
+ },
306
+ {
307
+ "name": "event",
308
+ "type": "string"
309
+ },
310
+ {
311
+ "name": "action",
312
+ "type": "string"
313
+ },
314
+ {
315
+ "name": "actionPayload",
316
+ "type": "Map<string,scalar>"
317
+ }
318
+ ],
319
+ "type": "object"
320
+ }
321
+ ],
322
+ "scope": "external",
323
+ "tier": "essential"
324
+ }
325
+ ],
326
+ "entityContract": {
327
+ "provides": [
328
+ "open"
329
+ ],
330
+ "requires": []
331
+ },
332
+ "entityRebindable": true,
333
+ "entityRefIds": {
334
+ "CommandPaletteItem": "ent_01M1KNYATVYPS9P6E4EDEYNG4B"
335
+ },
336
+ "id": "trt_01M1KNYATV6QJY03T0Z3RRNQSZ",
337
+ "linkedEntity": "CommandPaletteItem",
338
+ "linkedEntityId": "ent_01M1KNYATVYPS9P6E4EDEYNG4B",
339
+ "name": "CommandPaletteRender",
340
+ "scope": "instance",
341
+ "stateMachine": {
342
+ "events": [
343
+ {
344
+ "id": "evt_01M1KNYATVV11B8MNEAHHAR28X",
345
+ "key": "INIT",
346
+ "name": "Initialize"
347
+ },
348
+ {
349
+ "id": "evt_01M1KNYATVTSADY2GNXYEGFVGQ",
350
+ "key": "OPEN_CHANGE",
351
+ "name": "Open Change",
352
+ "payloadSchema": [
353
+ {
354
+ "name": "open",
355
+ "type": "boolean"
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "description": "Called to open/close the overlay (Escape, overlay click, or a selection)",
361
+ "id": "evt_01M1KNYATV6A6183DCAHAV8G29",
362
+ "key": "@config.onOpenChange",
363
+ "name": "@config.on open change",
364
+ "payloadSchema": [
365
+ {
366
+ "name": "open",
367
+ "type": "boolean"
368
+ }
369
+ ],
370
+ "tier": "essential"
371
+ },
372
+ {
373
+ "description": "Called with the selected command (click, or Enter on the highlighted row)",
374
+ "id": "evt_01M1KNYATVPVN3340QMMFYF7Q4",
375
+ "key": "@config.onSelect",
376
+ "name": "@config.on select",
377
+ "payloadSchema": [
378
+ {
379
+ "name": "command",
380
+ "properties": [
381
+ {
382
+ "name": "id",
383
+ "required": true,
384
+ "type": "string"
385
+ },
386
+ {
387
+ "name": "label",
388
+ "required": true,
389
+ "type": "string"
390
+ },
391
+ {
392
+ "name": "icon",
393
+ "type": "icon"
394
+ },
395
+ {
396
+ "name": "shortcut",
397
+ "type": "string"
398
+ },
399
+ {
400
+ "name": "keywords",
401
+ "type": "[string]"
402
+ },
403
+ {
404
+ "name": "group",
405
+ "type": "string"
406
+ },
407
+ {
408
+ "name": "disabled",
409
+ "type": "boolean"
410
+ },
411
+ {
412
+ "name": "event",
413
+ "type": "string"
414
+ },
415
+ {
416
+ "name": "action",
417
+ "type": "string"
418
+ },
419
+ {
420
+ "name": "actionPayload",
421
+ "type": "Map<string,scalar>"
422
+ }
423
+ ],
424
+ "type": "object"
425
+ }
426
+ ],
427
+ "tier": "essential"
428
+ }
429
+ ],
430
+ "states": [
431
+ {
432
+ "isInitial": true,
433
+ "name": "idle"
434
+ }
435
+ ],
436
+ "transitions": [
437
+ {
438
+ "effects": [
439
+ [
440
+ "set",
441
+ "@entity.open",
442
+ "@config.open"
443
+ ],
444
+ [
445
+ "render-ui",
446
+ "main",
447
+ {
448
+ "className": "@config.className",
449
+ "commands": "@config.commands",
450
+ "emptyLabel": "@config.emptyLabel",
451
+ "onOpenChange": "@config.onOpenChange",
452
+ "onSelect": "@config.onSelect",
453
+ "open": "@entity.open",
454
+ "placeholder": "@config.placeholder",
455
+ "type": "command-palette"
456
+ }
457
+ ]
458
+ ],
459
+ "event": "INIT",
460
+ "eventId": "evt_01M1KNYATVV11B8MNEAHHAR28X",
461
+ "from": "idle",
462
+ "to": "idle"
463
+ },
464
+ {
465
+ "effects": [
466
+ [
467
+ "set",
468
+ "@entity.open",
469
+ "@payload.open"
470
+ ],
471
+ [
472
+ "render-ui",
473
+ "main",
474
+ {
475
+ "className": "@config.className",
476
+ "commands": "@config.commands",
477
+ "emptyLabel": "@config.emptyLabel",
478
+ "onOpenChange": "@config.onOpenChange",
479
+ "onSelect": "@config.onSelect",
480
+ "open": "@entity.open",
481
+ "placeholder": "@config.placeholder",
482
+ "type": "command-palette"
483
+ }
484
+ ]
485
+ ],
486
+ "event": "OPEN_CHANGE",
487
+ "eventId": "evt_01M1KNYATVTSADY2GNXYEGFVGQ",
488
+ "from": "idle",
489
+ "to": "idle"
490
+ }
491
+ ]
492
+ }
493
+ }
494
+ ],
495
+ "types": {
496
+ "CommandPaletteCommandsItem": [
497
+ {
498
+ "name": "id",
499
+ "required": true,
500
+ "type": "string"
501
+ },
502
+ {
503
+ "name": "label",
504
+ "required": true,
505
+ "type": "string"
506
+ },
507
+ {
508
+ "name": "icon",
509
+ "type": "icon"
510
+ },
511
+ {
512
+ "name": "shortcut",
513
+ "type": "string"
514
+ },
515
+ {
516
+ "name": "keywords",
517
+ "type": "[string]"
518
+ },
519
+ {
520
+ "name": "group",
521
+ "type": "string"
522
+ },
523
+ {
524
+ "name": "disabled",
525
+ "type": "boolean"
526
+ },
527
+ {
528
+ "name": "event",
529
+ "type": "string"
530
+ },
531
+ {
532
+ "name": "action",
533
+ "type": "string"
534
+ },
535
+ {
536
+ "name": "actionPayload",
537
+ "type": "Map<string,scalar>"
538
+ }
539
+ ],
540
+ "CommandPaletteSELECTCommand": [
541
+ {
542
+ "name": "id",
543
+ "required": true,
544
+ "type": "string"
545
+ },
546
+ {
547
+ "name": "label",
548
+ "required": true,
549
+ "type": "string"
550
+ },
551
+ {
552
+ "name": "icon",
553
+ "type": "icon"
554
+ },
555
+ {
556
+ "name": "shortcut",
557
+ "type": "string"
558
+ },
559
+ {
560
+ "name": "keywords",
561
+ "type": "[string]"
562
+ },
563
+ {
564
+ "name": "group",
565
+ "type": "string"
566
+ },
567
+ {
568
+ "name": "disabled",
569
+ "type": "boolean"
570
+ },
571
+ {
572
+ "name": "event",
573
+ "type": "string"
574
+ },
575
+ {
576
+ "name": "action",
577
+ "type": "string"
578
+ },
579
+ {
580
+ "name": "actionPayload",
581
+ "type": "Map<string,scalar>"
582
+ }
583
+ ]
584
+ }
585
+ }
586
+ ],
587
+ "schemaVersion": 1,
588
+ "version": "1.0.0"
589
+ }
@@ -100,7 +100,8 @@
100
100
  "disabled": false,
101
101
  "icon": "circle",
102
102
  "id": "Id",
103
- "label": "Label"
103
+ "label": "Label",
104
+ "testId": "Test Id"
104
105
  },
105
106
  {
106
107
  "action": "Action 2",
@@ -108,7 +109,8 @@
108
109
  "disabled": true,
109
110
  "icon": "circle",
110
111
  "id": "Id 2",
111
- "label": "Label 2"
112
+ "label": "Label 2",
113
+ "testId": "Test Id 2"
112
114
  }
113
115
  ],
114
116
  "description": "Tool items rendered as icon buttons",
@@ -156,6 +158,11 @@
156
158
  "name": "label",
157
159
  "required": true,
158
160
  "type": "string"
161
+ },
162
+ "testId": {
163
+ "name": "testId",
164
+ "required": false,
165
+ "type": "string"
159
166
  }
160
167
  },
161
168
  "type": "object"
@@ -264,6 +271,10 @@
264
271
  {
265
272
  "name": "disabled",
266
273
  "type": "boolean"
274
+ },
275
+ {
276
+ "name": "testId",
277
+ "type": "string"
267
278
  }
268
279
  ]
269
280
  }
@@ -167,7 +167,12 @@
167
167
  "type": "event"
168
168
  },
169
169
  "pageSizeOptions": {
170
- "default": [],
170
+ "default": [
171
+ 10.0,
172
+ 20.0,
173
+ 50.0,
174
+ 100.0
175
+ ],
171
176
  "description": "Page size options",
172
177
  "items": {
173
178
  "type": "number"