@almadar/std 16.151.0 → 16.152.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 (40) hide show
  1. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +14 -4
  2. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +12 -0
  3. package/behaviors/lolo/ui/game/atoms/ui-draw-group.lolo +54 -0
  4. package/behaviors/lolo/ui/game/atoms/ui-draw-shape.lolo +6 -1
  5. package/behaviors/lolo/ui/game/atoms/ui-svg-draw-group.lolo +58 -0
  6. package/behaviors/lolo/ui/game/atoms/ui-svg-draw-shape.lolo +103 -0
  7. package/behaviors/lolo/ui/game/atoms/ui-svg-draw-text.lolo +58 -0
  8. package/behaviors/lolo/ui/game/molecules/ui-draw-shape-layer.lolo +3 -2
  9. package/behaviors/lolo/ui/game/molecules/ui-svg-draw-shape-layer.lolo +52 -0
  10. package/behaviors/lolo/ui/game/molecules/ui-svg-stage.lolo +98 -0
  11. package/behaviors/registry/ui/core/atoms/std-browse.orb +104 -28
  12. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +21 -0
  13. package/behaviors/registry/ui/game/atoms/ui-draw-group.orb +196 -0
  14. package/behaviors/registry/ui/game/atoms/ui-draw-shape.orb +9 -1
  15. package/behaviors/registry/ui/game/atoms/ui-svg-draw-group.orb +186 -0
  16. package/behaviors/registry/ui/game/atoms/ui-svg-draw-shape.orb +259 -0
  17. package/behaviors/registry/ui/game/atoms/ui-svg-draw-text.orb +195 -0
  18. package/behaviors/registry/ui/game/molecules/ui-draw-shape-layer.orb +9 -1
  19. package/behaviors/registry/ui/game/molecules/ui-svg-draw-shape-layer.orb +188 -0
  20. package/behaviors/registry/ui/game/molecules/ui-svg-stage.orb +362 -0
  21. package/dist/behaviors/behaviors-embeddings.json +511 -487
  22. package/dist/behaviors/behaviors-registry.json +2277 -341
  23. package/dist/behaviors/functions/index.d.ts +14 -2
  24. package/dist/behaviors/index.d.ts +1 -1
  25. package/dist/behaviors/knob-embeddings.json +1 -1
  26. package/dist/behaviors/registry/ui/core/atoms/std-browse.orb +104 -28
  27. package/dist/behaviors/registry/ui/core/molecules/ui-data-list.orb +21 -0
  28. package/dist/behaviors/registry/ui/game/atoms/ui-draw-group.orb +196 -0
  29. package/dist/behaviors/registry/ui/game/atoms/ui-draw-shape.orb +9 -1
  30. package/dist/behaviors/registry/ui/game/atoms/ui-svg-draw-group.orb +186 -0
  31. package/dist/behaviors/registry/ui/game/atoms/ui-svg-draw-shape.orb +259 -0
  32. package/dist/behaviors/registry/ui/game/atoms/ui-svg-draw-text.orb +195 -0
  33. package/dist/behaviors/registry/ui/game/molecules/ui-draw-shape-layer.orb +9 -1
  34. package/dist/behaviors/registry/ui/game/molecules/ui-svg-draw-shape-layer.orb +188 -0
  35. package/dist/behaviors/registry/ui/game/molecules/ui-svg-stage.orb +362 -0
  36. package/dist/behaviors-embeddings.json +511 -487
  37. package/dist/behaviors-registry.json +2277 -341
  38. package/dist/index.d.ts +1 -1
  39. package/dist/knob-embeddings.json +1 -1
  40. package/package.json +2 -2
@@ -0,0 +1,362 @@
1
+ {
2
+ "description": "SvgStage — UI factory (1:1 with the @almadar/ui svg-stage pattern).",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01KYMKTFKPV2QRNK6ASWK59WVZ": {
6
+ "bakedName": "SvgStageItem",
7
+ "curName": "SvgStageItem",
8
+ "id": "ent_01KYMKTFKPV2QRNK6ASWK59WVZ",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01KYMKTFKPR2ZPXXA6KCWNCTS3": {
14
+ "bakedName": "INIT",
15
+ "curName": "INIT",
16
+ "id": "evt_01KYMKTFKPR2ZPXXA6KCWNCTS3",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01KYMKTFKP4BFAJG32Y4B6306Q",
20
+ "renames": []
21
+ },
22
+ "evt_01KYMKTFKQ0QH8MMXA3M3YMM6X": {
23
+ "bakedName": "@config.tileHoverEvent",
24
+ "curName": "@config.tileHoverEvent",
25
+ "id": "evt_01KYMKTFKQ0QH8MMXA3M3YMM6X",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01KYMKTFKP4BFAJG32Y4B6306Q",
29
+ "renames": []
30
+ },
31
+ "evt_01KYMKTFKQ9H8BKC0KQGH2FJ93": {
32
+ "bakedName": "@config.tileLeaveEvent",
33
+ "curName": "@config.tileLeaveEvent",
34
+ "id": "evt_01KYMKTFKQ9H8BKC0KQGH2FJ93",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01KYMKTFKP4BFAJG32Y4B6306Q",
38
+ "renames": []
39
+ },
40
+ "evt_01KYMKTFKQJ02SSK9J2QG9DZ2X": {
41
+ "bakedName": "@config.tileClickEvent",
42
+ "curName": "@config.tileClickEvent",
43
+ "id": "evt_01KYMKTFKQJ02SSK9J2QG9DZ2X",
44
+ "kind": "event",
45
+ "owner": "workspace",
46
+ "parent": "trt_01KYMKTFKP4BFAJG32Y4B6306Q",
47
+ "renames": []
48
+ },
49
+ "orb_01KYMKTFKPDBTDR7FRE565XPHD": {
50
+ "bakedName": "SvgStageOrbital",
51
+ "curName": "SvgStageOrbital",
52
+ "id": "orb_01KYMKTFKPDBTDR7FRE565XPHD",
53
+ "kind": "orbital",
54
+ "owner": "workspace",
55
+ "renames": []
56
+ },
57
+ "pag_01KYMKTFKR13VTRW51EBDYJJDB": {
58
+ "bakedName": "SvgStagePage",
59
+ "curName": "SvgStagePage",
60
+ "id": "pag_01KYMKTFKR13VTRW51EBDYJJDB",
61
+ "kind": "page",
62
+ "owner": "workspace",
63
+ "renames": []
64
+ },
65
+ "trt_01KYMKTFKP4BFAJG32Y4B6306Q": {
66
+ "bakedName": "SvgStageRender",
67
+ "curName": "SvgStageRender",
68
+ "id": "trt_01KYMKTFKP4BFAJG32Y4B6306Q",
69
+ "kind": "trait",
70
+ "owner": "workspace",
71
+ "renames": []
72
+ }
73
+ },
74
+ "schemaVersion": 1
75
+ },
76
+ "name": "ui-svg-stage",
77
+ "orbitals": [
78
+ {
79
+ "entity": {
80
+ "fields": [
81
+ {
82
+ "name": "id",
83
+ "required": true,
84
+ "type": "string"
85
+ }
86
+ ],
87
+ "id": "ent_01KYMKTFKPV2QRNK6ASWK59WVZ",
88
+ "name": "SvgStageItem",
89
+ "persistence": "runtime"
90
+ },
91
+ "id": "orb_01KYMKTFKPDBTDR7FRE565XPHD",
92
+ "name": "SvgStageOrbital",
93
+ "pages": [
94
+ {
95
+ "id": "pag_01KYMKTFKR13VTRW51EBDYJJDB",
96
+ "name": "SvgStagePage",
97
+ "path": "/svg-stage",
98
+ "traits": [
99
+ {
100
+ "ref": "SvgStageRender",
101
+ "refId": "trt_01KYMKTFKP4BFAJG32Y4B6306Q"
102
+ }
103
+ ]
104
+ }
105
+ ],
106
+ "traits": [
107
+ {
108
+ "category": "interaction",
109
+ "config": {
110
+ "background": {
111
+ "default": "var(--color-background)",
112
+ "description": "Background rect fill (default `var(--color-background)`).",
113
+ "label": "Background",
114
+ "tier": "presentation",
115
+ "type": "string"
116
+ },
117
+ "children": {
118
+ "description": "children prop",
119
+ "label": "Children",
120
+ "tier": "presentation",
121
+ "type": "node"
122
+ },
123
+ "className": {
124
+ "description": "Additional CSS classes",
125
+ "label": "Class Name",
126
+ "tier": "presentation",
127
+ "type": "string"
128
+ },
129
+ "cols": {
130
+ "default": 1.0,
131
+ "description": "Grid width in cells.",
132
+ "label": "Cols",
133
+ "tier": "presentation",
134
+ "type": "number"
135
+ },
136
+ "keyMap": {
137
+ "default": {
138
+ "item": "Item"
139
+ },
140
+ "description": "Keyboard → semantic events: `e.code` → event name, emitted as `UI:<event>` with `{}`.",
141
+ "items": {
142
+ "type": "string"
143
+ },
144
+ "label": "Key Map",
145
+ "tier": "presentation",
146
+ "type": "Map<string,string>"
147
+ },
148
+ "keyUpMap": {
149
+ "default": {
150
+ "item": "Item"
151
+ },
152
+ "description": "Keyup counterpart of `keyMap`.",
153
+ "items": {
154
+ "type": "string"
155
+ },
156
+ "label": "Key Up Map",
157
+ "tier": "presentation",
158
+ "type": "Map<string,string>"
159
+ },
160
+ "rows": {
161
+ "default": 1.0,
162
+ "description": "Grid height in cells.",
163
+ "label": "Rows",
164
+ "tier": "presentation",
165
+ "type": "number"
166
+ },
167
+ "tileClickEvent": {
168
+ "default": "TILE_CLICK",
169
+ "description": "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer up (<5px drag).",
170
+ "label": "Tile Click Event",
171
+ "tier": "presentation",
172
+ "type": "string"
173
+ },
174
+ "tileHoverEvent": {
175
+ "default": "TILE_HOVER",
176
+ "description": "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer move.",
177
+ "label": "Tile Hover Event",
178
+ "tier": "presentation",
179
+ "type": "string"
180
+ },
181
+ "tileLeaveEvent": {
182
+ "default": "TILE_LEAVE",
183
+ "description": "Emitted as `UI:<event>` with `{}` when the pointer leaves the stage.",
184
+ "label": "Tile Leave Event",
185
+ "tier": "presentation",
186
+ "type": "string"
187
+ },
188
+ "tileSize": {
189
+ "default": 32.0,
190
+ "description": "ViewBox units per cell (default 32); viewBox is `0 0 cols*tileSize rows*tileSize`.",
191
+ "label": "Tile Size",
192
+ "tier": "presentation",
193
+ "type": "number"
194
+ }
195
+ },
196
+ "emits": [
197
+ {
198
+ "description": "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer up (<5px drag).",
199
+ "event": "@config.tileClickEvent",
200
+ "eventId": "evt_01KYMKTFKQJ02SSK9J2QG9DZ2X",
201
+ "payloadSchema": [
202
+ {
203
+ "name": "x",
204
+ "required": true,
205
+ "type": "number"
206
+ },
207
+ {
208
+ "name": "y",
209
+ "required": true,
210
+ "type": "number"
211
+ }
212
+ ],
213
+ "scope": "external",
214
+ "tier": "essential"
215
+ },
216
+ {
217
+ "description": "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer move.",
218
+ "event": "@config.tileHoverEvent",
219
+ "eventId": "evt_01KYMKTFKQ0QH8MMXA3M3YMM6X",
220
+ "payloadSchema": [
221
+ {
222
+ "name": "x",
223
+ "required": true,
224
+ "type": "number"
225
+ },
226
+ {
227
+ "name": "y",
228
+ "required": true,
229
+ "type": "number"
230
+ }
231
+ ],
232
+ "scope": "external",
233
+ "tier": "essential"
234
+ },
235
+ {
236
+ "description": "Emitted as `UI:<event>` with `{}` when the pointer leaves the stage.",
237
+ "event": "@config.tileLeaveEvent",
238
+ "eventId": "evt_01KYMKTFKQ9H8BKC0KQGH2FJ93",
239
+ "payloadSchema": [
240
+ {
241
+ "name": "id",
242
+ "type": "string"
243
+ }
244
+ ],
245
+ "scope": "external",
246
+ "tier": "essential"
247
+ }
248
+ ],
249
+ "entityContract": {
250
+ "provides": [],
251
+ "requires": []
252
+ },
253
+ "entityRebindable": true,
254
+ "entityRefIds": {
255
+ "SvgStageItem": "ent_01KYMKTFKPV2QRNK6ASWK59WVZ"
256
+ },
257
+ "id": "trt_01KYMKTFKP4BFAJG32Y4B6306Q",
258
+ "linkedEntity": "SvgStageItem",
259
+ "linkedEntityId": "ent_01KYMKTFKPV2QRNK6ASWK59WVZ",
260
+ "name": "SvgStageRender",
261
+ "scope": "instance",
262
+ "stateMachine": {
263
+ "events": [
264
+ {
265
+ "id": "evt_01KYMKTFKPR2ZPXXA6KCWNCTS3",
266
+ "key": "INIT",
267
+ "name": "Initialize"
268
+ },
269
+ {
270
+ "description": "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer up (<5px drag).",
271
+ "id": "evt_01KYMKTFKQJ02SSK9J2QG9DZ2X",
272
+ "key": "@config.tileClickEvent",
273
+ "name": "@config.tile click event",
274
+ "payloadSchema": [
275
+ {
276
+ "name": "x",
277
+ "required": true,
278
+ "type": "number"
279
+ },
280
+ {
281
+ "name": "y",
282
+ "required": true,
283
+ "type": "number"
284
+ }
285
+ ],
286
+ "tier": "essential"
287
+ },
288
+ {
289
+ "description": "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer move.",
290
+ "id": "evt_01KYMKTFKQ0QH8MMXA3M3YMM6X",
291
+ "key": "@config.tileHoverEvent",
292
+ "name": "@config.tile hover event",
293
+ "payloadSchema": [
294
+ {
295
+ "name": "x",
296
+ "required": true,
297
+ "type": "number"
298
+ },
299
+ {
300
+ "name": "y",
301
+ "required": true,
302
+ "type": "number"
303
+ }
304
+ ],
305
+ "tier": "essential"
306
+ },
307
+ {
308
+ "description": "Emitted as `UI:<event>` with `{}` when the pointer leaves the stage.",
309
+ "id": "evt_01KYMKTFKQ9H8BKC0KQGH2FJ93",
310
+ "key": "@config.tileLeaveEvent",
311
+ "name": "@config.tile leave event",
312
+ "payloadSchema": [
313
+ {
314
+ "name": "id",
315
+ "type": "string"
316
+ }
317
+ ],
318
+ "tier": "essential"
319
+ }
320
+ ],
321
+ "states": [
322
+ {
323
+ "isInitial": true,
324
+ "name": "idle"
325
+ }
326
+ ],
327
+ "transitions": [
328
+ {
329
+ "effects": [
330
+ [
331
+ "render-ui",
332
+ "main",
333
+ {
334
+ "background": "@config.background",
335
+ "children": "@config.children",
336
+ "className": "@config.className",
337
+ "cols": "@config.cols",
338
+ "keyMap": "@config.keyMap",
339
+ "keyUpMap": "@config.keyUpMap",
340
+ "rows": "@config.rows",
341
+ "tileClickEvent": "@config.tileClickEvent",
342
+ "tileHoverEvent": "@config.tileHoverEvent",
343
+ "tileLeaveEvent": "@config.tileLeaveEvent",
344
+ "tileSize": "@config.tileSize",
345
+ "type": "svg-stage"
346
+ }
347
+ ]
348
+ ],
349
+ "event": "INIT",
350
+ "eventId": "evt_01KYMKTFKPR2ZPXXA6KCWNCTS3",
351
+ "from": "idle",
352
+ "to": "idle"
353
+ }
354
+ ]
355
+ }
356
+ }
357
+ ]
358
+ }
359
+ ],
360
+ "schemaVersion": 1,
361
+ "version": "1.0.0"
362
+ }