@almadar/std 16.182.0 → 16.184.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 (56) hide show
  1. package/behaviors/lolo/infra/atoms/std-migration-job.lolo +2 -2
  2. package/behaviors/lolo/ui/core/.hand-authored.json +4 -0
  3. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +11 -0
  4. package/behaviors/lolo/ui/core/atoms/std-related.lolo +86 -9
  5. package/behaviors/lolo/ui/core/atoms/std-rich-editor.lolo +115 -1
  6. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +62 -2
  7. package/behaviors/lolo/ui/core/atoms/std-thread.lolo +43 -2
  8. package/behaviors/lolo/ui/core/atoms/std-tree.lolo +247 -0
  9. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +110 -2
  10. package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +18 -2
  11. package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +6 -2
  12. package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +2 -2
  13. package/behaviors/lolo/ui/core/organisms/ui-form.lolo +2 -2
  14. package/behaviors/lolo/ui/game/atoms/std-fx-trail.lolo +63 -0
  15. package/behaviors/lolo/ui/game/atoms/std-gate-lock.lolo +96 -0
  16. package/behaviors/lolo/ui/game/atoms/std-lives.lolo +121 -0
  17. package/behaviors/lolo/ui/game/atoms/std-patrol-hazard.lolo +96 -0
  18. package/behaviors/lolo/ui/game/atoms/std-tutorial-autodemo.lolo +136 -0
  19. package/behaviors/lolo/ui/game/atoms/std-tutorial-overlay.lolo +197 -0
  20. package/behaviors/lolo/ui/learning/atoms/std-learn-slope-probe.lolo +117 -0
  21. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +18 -0
  22. package/behaviors/registry/infra/atoms/std-migration-job.orb +2 -2
  23. package/behaviors/registry/ui/core/atoms/std-browse.orb +17 -0
  24. package/behaviors/registry/ui/core/atoms/std-related.orb +256 -3
  25. package/behaviors/registry/ui/core/atoms/std-rich-editor.orb +407 -1
  26. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +240 -8
  27. package/behaviors/registry/ui/core/atoms/std-thread.orb +254 -4
  28. package/behaviors/registry/ui/core/atoms/std-tree.orb +656 -0
  29. package/behaviors/registry/ui/core/atoms/std-version-history.orb +479 -6
  30. package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +43 -19
  31. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +28 -3
  32. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +8 -2
  33. package/behaviors/registry/ui/core/organisms/ui-form.orb +8 -2
  34. package/behaviors/registry/ui/game/atoms/std-fx-trail.orb +376 -0
  35. package/behaviors/registry/ui/game/atoms/std-gate-lock.orb +852 -0
  36. package/behaviors/registry/ui/game/atoms/std-lives.orb +739 -0
  37. package/behaviors/registry/ui/game/atoms/std-patrol-hazard.orb +768 -0
  38. package/behaviors/registry/ui/game/atoms/std-tutorial-autodemo.orb +732 -0
  39. package/behaviors/registry/ui/game/atoms/std-tutorial-overlay.orb +1212 -0
  40. package/behaviors/registry/ui/learning/atoms/std-learn-slope-probe.orb +908 -0
  41. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +26 -0
  42. package/dist/behaviors/exports-reader.js +5478 -2954
  43. package/dist/behaviors/functions/index.d.ts +763 -15
  44. package/dist/behaviors/functions/index.js +5447 -2953
  45. package/dist/behaviors/index.d.ts +1 -1
  46. package/dist/behaviors/index.js +5479 -2955
  47. package/dist/behaviors/query.js +5478 -2954
  48. package/dist/behaviors-embeddings.hash.json +3 -3
  49. package/dist/behaviors-embeddings.json +362 -330
  50. package/dist/behaviors-registry.json +2812 -542
  51. package/dist/index.d.ts +1 -1
  52. package/dist/index.js +5479 -2955
  53. package/dist/knob-embeddings.hash.json +3 -3
  54. package/dist/knob-embeddings.json +1 -1
  55. package/dist/registry/factory-signatures.json +1 -1
  56. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "description": "std-rich-editor — wiki/CMS Notion-style block editor. Browses documents in `browsing`; opens the rich-block-editor on a selected row; persists block edits + publish status.",
2
+ "description": "std-rich-editor — wiki/CMS Notion-style block editor. Browses documents in `browsing`; opens the rich-block-editor on a selected row; persists block edits + publish status. `BlockEdit` is a rebindable single-row overlay editor: an organism rebinds it to its own entity (WikiPage, Note, …), passes the row's id + blocksJson via OPEN, and routes the emitted BLOCKS_SAVED into its own persistor — this atom never fetches or persists.",
3
3
  "ledger": {
4
4
  "entries": {
5
5
  "ent_01KXG04HCHD37BD2KK5VJQ26G1": {
@@ -109,6 +109,60 @@
109
109
  "parent": "trt_01KXG04HCHMYN62SR31QKD05KF",
110
110
  "renames": []
111
111
  },
112
+ "evt_01M0RYEW8Q7JPMVH9BJQ274WXR": {
113
+ "bakedName": "OPEN",
114
+ "curName": "OPEN",
115
+ "id": "evt_01M0RYEW8Q7JPMVH9BJQ274WXR",
116
+ "kind": "event",
117
+ "owner": "workspace",
118
+ "parent": "trt_01M0RYEW8QSSSVWKSKDCHC5JK9",
119
+ "renames": []
120
+ },
121
+ "evt_01M0RYEW8QGS8CD8KJRJQC4CEV": {
122
+ "bakedName": "BLOCKS_CHANGE",
123
+ "curName": "BLOCKS_CHANGE",
124
+ "id": "evt_01M0RYEW8QGS8CD8KJRJQC4CEV",
125
+ "kind": "event",
126
+ "owner": "workspace",
127
+ "parent": "trt_01M0RYEW8QSSSVWKSKDCHC5JK9",
128
+ "renames": []
129
+ },
130
+ "evt_01M0RYEW8QH8R91C7A42HE28ZY": {
131
+ "bakedName": "SAVE",
132
+ "curName": "SAVE",
133
+ "id": "evt_01M0RYEW8QH8R91C7A42HE28ZY",
134
+ "kind": "event",
135
+ "owner": "workspace",
136
+ "parent": "trt_01M0RYEW8QSSSVWKSKDCHC5JK9",
137
+ "renames": []
138
+ },
139
+ "evt_01M0RYEW8QHNPNYEJB0CW9SVGB": {
140
+ "bakedName": "CLOSE",
141
+ "curName": "CLOSE",
142
+ "id": "evt_01M0RYEW8QHNPNYEJB0CW9SVGB",
143
+ "kind": "event",
144
+ "owner": "workspace",
145
+ "parent": "trt_01M0RYEW8QSSSVWKSKDCHC5JK9",
146
+ "renames": []
147
+ },
148
+ "evt_01M0RYEW8QQG4WCT9ZCQR5B7ME": {
149
+ "bakedName": "BLOCKS_SAVED",
150
+ "curName": "BLOCKS_SAVED",
151
+ "id": "evt_01M0RYEW8QQG4WCT9ZCQR5B7ME",
152
+ "kind": "event",
153
+ "owner": "workspace",
154
+ "parent": "trt_01M0RYEW8QSSSVWKSKDCHC5JK9",
155
+ "renames": []
156
+ },
157
+ "evt_01M0RYEW8QVYV5E4942Q3VFZZK": {
158
+ "bakedName": "INIT",
159
+ "curName": "INIT",
160
+ "id": "evt_01M0RYEW8QVYV5E4942Q3VFZZK",
161
+ "kind": "event",
162
+ "owner": "workspace",
163
+ "parent": "trt_01M0RYEW8QSSSVWKSKDCHC5JK9",
164
+ "renames": []
165
+ },
112
166
  "orb_01KXG04HCH32475XE7N0KGX6RM": {
113
167
  "bakedName": "DocumentOrbital",
114
168
  "curName": "DocumentOrbital",
@@ -125,6 +179,14 @@
125
179
  "owner": "workspace",
126
180
  "renames": []
127
181
  },
182
+ "pag_01M0RYEW8QQ31MACEJYKACBXPQ": {
183
+ "bakedName": "BlockEditPage",
184
+ "curName": "BlockEditPage",
185
+ "id": "pag_01M0RYEW8QQ31MACEJYKACBXPQ",
186
+ "kind": "page",
187
+ "owner": "workspace",
188
+ "renames": []
189
+ },
128
190
  "trt_01KXG04HCHMYN62SR31QKD05KF": {
129
191
  "bakedName": "DocumentEdit",
130
192
  "curName": "DocumentEdit",
@@ -132,6 +194,14 @@
132
194
  "kind": "trait",
133
195
  "owner": "workspace",
134
196
  "renames": []
197
+ },
198
+ "trt_01M0RYEW8QSSSVWKSKDCHC5JK9": {
199
+ "bakedName": "BlockEdit",
200
+ "curName": "BlockEdit",
201
+ "id": "trt_01M0RYEW8QSSSVWKSKDCHC5JK9",
202
+ "kind": "trait",
203
+ "owner": "workspace",
204
+ "renames": []
135
205
  }
136
206
  },
137
207
  "schemaVersion": 1
@@ -249,6 +319,17 @@
249
319
  "refId": "trt_01KXG04HCHMYN62SR31QKD05KF"
250
320
  }
251
321
  ]
322
+ },
323
+ {
324
+ "id": "pag_01M0RYEW8QQ31MACEJYKACBXPQ",
325
+ "name": "BlockEditPage",
326
+ "path": "/documents/block-edit",
327
+ "traits": [
328
+ {
329
+ "ref": "BlockEdit",
330
+ "refId": "trt_01M0RYEW8QSSSVWKSKDCHC5JK9"
331
+ }
332
+ ]
252
333
  }
253
334
  ],
254
335
  "traits": [
@@ -1319,6 +1400,331 @@
1319
1400
  }
1320
1401
  ]
1321
1402
  }
1403
+ },
1404
+ {
1405
+ "category": "interaction",
1406
+ "config": {
1407
+ "placeholder": {
1408
+ "default": "Start writing…",
1409
+ "description": "Placeholder shown in the block editor when it is empty.",
1410
+ "label": "Placeholder text",
1411
+ "tier": "presentation",
1412
+ "type": "string"
1413
+ },
1414
+ "title": {
1415
+ "default": "Edit content",
1416
+ "description": "Heading shown at the top of the block editor overlay.",
1417
+ "label": "Editor heading",
1418
+ "tier": "presentation",
1419
+ "type": "string"
1420
+ }
1421
+ },
1422
+ "emits": [
1423
+ {
1424
+ "description": "Signals a row's block content is ready to persist. This atom never persists — the composing organism routes BLOCKS_SAVED into its own persistor's update event.",
1425
+ "event": "BLOCKS_SAVED",
1426
+ "eventId": "evt_01M0RYEW8QQG4WCT9ZCQR5B7ME",
1427
+ "payloadSchema": [
1428
+ {
1429
+ "name": "id",
1430
+ "required": true,
1431
+ "type": "string"
1432
+ },
1433
+ {
1434
+ "name": "blocksJson",
1435
+ "type": "[BlockSpec]"
1436
+ }
1437
+ ],
1438
+ "scope": "external",
1439
+ "synonyms": "saved, persist, update, commit",
1440
+ "tier": "domain"
1441
+ },
1442
+ {
1443
+ "description": "Indicates the block editor overlay is being dismissed.",
1444
+ "event": "CLOSE",
1445
+ "eventId": "evt_01M0RYEW8QHNPNYEJB0CW9SVGB",
1446
+ "synonyms": "dismiss, hide, cancel, close",
1447
+ "tier": "domain"
1448
+ },
1449
+ {
1450
+ "description": "Signals that the content of a block has been modified while editing.",
1451
+ "event": "BLOCKS_CHANGE",
1452
+ "eventId": "evt_01M0RYEW8QGS8CD8KJRJQC4CEV",
1453
+ "payloadSchema": [
1454
+ {
1455
+ "name": "blocks",
1456
+ "type": "[BlockSpec]"
1457
+ }
1458
+ ],
1459
+ "synonyms": "update, modify, changed, edit",
1460
+ "tier": "domain"
1461
+ }
1462
+ ],
1463
+ "entityContract": {
1464
+ "provides": [
1465
+ "blocksJson"
1466
+ ],
1467
+ "requires": []
1468
+ },
1469
+ "entityRebindable": true,
1470
+ "entityRefIds": {
1471
+ "Document": "ent_01KXG04HCHD37BD2KK5VJQ26G1"
1472
+ },
1473
+ "id": "trt_01M0RYEW8QSSSVWKSKDCHC5JK9",
1474
+ "linkedEntity": "Document",
1475
+ "linkedEntityId": "ent_01KXG04HCHD37BD2KK5VJQ26G1",
1476
+ "name": "BlockEdit",
1477
+ "scope": "instance",
1478
+ "stateMachine": {
1479
+ "events": [
1480
+ {
1481
+ "id": "evt_01M0RYEW8QVYV5E4942Q3VFZZK",
1482
+ "key": "INIT",
1483
+ "name": "Initialize"
1484
+ },
1485
+ {
1486
+ "description": "Requests the block editor overlay open for the given row. The caller supplies the row's id and current blocks — this trait never fetches them itself.",
1487
+ "id": "evt_01M0RYEW8Q7JPMVH9BJQ274WXR",
1488
+ "key": "OPEN",
1489
+ "name": "Open",
1490
+ "payloadSchema": [
1491
+ {
1492
+ "name": "id",
1493
+ "required": true,
1494
+ "type": "string"
1495
+ },
1496
+ {
1497
+ "name": "blocksJson",
1498
+ "properties": [
1499
+ {
1500
+ "name": "type",
1501
+ "required": true,
1502
+ "type": "string"
1503
+ },
1504
+ {
1505
+ "name": "content",
1506
+ "type": "string"
1507
+ },
1508
+ {
1509
+ "name": "id",
1510
+ "type": "string"
1511
+ }
1512
+ ],
1513
+ "type": "[object]"
1514
+ }
1515
+ ],
1516
+ "synonyms": "show, launch, reveal, edit",
1517
+ "tier": "domain"
1518
+ },
1519
+ {
1520
+ "description": "Signals a row's block content is ready to persist. This atom never persists — the composing organism routes BLOCKS_SAVED into its own persistor's update event.",
1521
+ "id": "evt_01M0RYEW8QQG4WCT9ZCQR5B7ME",
1522
+ "key": "BLOCKS_SAVED",
1523
+ "name": "Blocks Saved",
1524
+ "payloadSchema": [
1525
+ {
1526
+ "name": "id",
1527
+ "required": true,
1528
+ "type": "string"
1529
+ },
1530
+ {
1531
+ "name": "blocksJson",
1532
+ "type": "[BlockSpec]"
1533
+ }
1534
+ ],
1535
+ "synonyms": "saved, persist, update, commit",
1536
+ "tier": "domain"
1537
+ },
1538
+ {
1539
+ "description": "Signals that the content of a block has been modified while editing.",
1540
+ "id": "evt_01M0RYEW8QGS8CD8KJRJQC4CEV",
1541
+ "key": "BLOCKS_CHANGE",
1542
+ "name": "Blocks Change",
1543
+ "payloadSchema": [
1544
+ {
1545
+ "name": "blocks",
1546
+ "properties": [
1547
+ {
1548
+ "name": "type",
1549
+ "required": true,
1550
+ "type": "string"
1551
+ },
1552
+ {
1553
+ "name": "content",
1554
+ "type": "string"
1555
+ },
1556
+ {
1557
+ "name": "id",
1558
+ "type": "string"
1559
+ }
1560
+ ],
1561
+ "type": "[object]"
1562
+ }
1563
+ ],
1564
+ "synonyms": "update, modify, changed, edit",
1565
+ "tier": "domain"
1566
+ },
1567
+ {
1568
+ "id": "evt_01M0RYEW8QH8R91C7A42HE28ZY",
1569
+ "key": "SAVE",
1570
+ "name": "Save"
1571
+ },
1572
+ {
1573
+ "description": "Indicates the block editor overlay is being dismissed.",
1574
+ "id": "evt_01M0RYEW8QHNPNYEJB0CW9SVGB",
1575
+ "key": "CLOSE",
1576
+ "name": "Close",
1577
+ "synonyms": "dismiss, hide, cancel, close",
1578
+ "tier": "domain"
1579
+ }
1580
+ ],
1581
+ "states": [
1582
+ {
1583
+ "isInitial": true,
1584
+ "name": "idle"
1585
+ },
1586
+ {
1587
+ "name": "editing"
1588
+ }
1589
+ ],
1590
+ "transitions": [
1591
+ {
1592
+ "event": "INIT",
1593
+ "eventId": "evt_01M0RYEW8QVYV5E4942Q3VFZZK",
1594
+ "from": "idle",
1595
+ "to": "idle"
1596
+ },
1597
+ {
1598
+ "effects": [
1599
+ [
1600
+ "set",
1601
+ "@entity.id",
1602
+ "@payload.id"
1603
+ ],
1604
+ [
1605
+ "set",
1606
+ "@entity.blocksJson",
1607
+ "@payload.blocksJson"
1608
+ ],
1609
+ [
1610
+ "render-ui",
1611
+ "modal",
1612
+ {
1613
+ "children": [
1614
+ {
1615
+ "align": "center",
1616
+ "children": [
1617
+ {
1618
+ "name": "file-text",
1619
+ "type": "icon"
1620
+ },
1621
+ {
1622
+ "content": "@config.title",
1623
+ "type": "typography",
1624
+ "variant": "h3"
1625
+ }
1626
+ ],
1627
+ "direction": "horizontal",
1628
+ "gap": "sm",
1629
+ "type": "stack"
1630
+ },
1631
+ {
1632
+ "type": "divider"
1633
+ },
1634
+ {
1635
+ "changeEvent": "BLOCKS_CHANGE",
1636
+ "initialBlocks": "@entity.blocksJson",
1637
+ "placeholder": "@config.placeholder",
1638
+ "showToolbar": true,
1639
+ "type": "rich-block-editor"
1640
+ },
1641
+ {
1642
+ "align": "center",
1643
+ "children": [
1644
+ {
1645
+ "action": "SAVE",
1646
+ "label": "Save",
1647
+ "type": "button",
1648
+ "variant": "primary"
1649
+ },
1650
+ {
1651
+ "action": "CLOSE",
1652
+ "label": "Cancel",
1653
+ "type": "button",
1654
+ "variant": "ghost"
1655
+ }
1656
+ ],
1657
+ "direction": "horizontal",
1658
+ "gap": "sm",
1659
+ "type": "stack"
1660
+ }
1661
+ ],
1662
+ "direction": "vertical",
1663
+ "gap": "md",
1664
+ "type": "stack"
1665
+ }
1666
+ ]
1667
+ ],
1668
+ "event": "OPEN",
1669
+ "eventId": "evt_01M0RYEW8Q7JPMVH9BJQ274WXR",
1670
+ "from": "idle",
1671
+ "to": "editing"
1672
+ },
1673
+ {
1674
+ "event": "BLOCKS_SAVED",
1675
+ "eventId": "evt_01M0RYEW8QQG4WCT9ZCQR5B7ME",
1676
+ "from": "idle",
1677
+ "to": "idle"
1678
+ },
1679
+ {
1680
+ "effects": [
1681
+ [
1682
+ "set",
1683
+ "@entity.blocksJson",
1684
+ "@payload.blocks"
1685
+ ]
1686
+ ],
1687
+ "event": "BLOCKS_CHANGE",
1688
+ "eventId": "evt_01M0RYEW8QGS8CD8KJRJQC4CEV",
1689
+ "from": "editing",
1690
+ "to": "editing"
1691
+ },
1692
+ {
1693
+ "effects": [
1694
+ [
1695
+ "render-ui",
1696
+ "modal",
1697
+ null
1698
+ ],
1699
+ [
1700
+ "emit",
1701
+ "BLOCKS_SAVED",
1702
+ {
1703
+ "blocksJson": "@entity.blocksJson",
1704
+ "id": "@entity.id"
1705
+ }
1706
+ ]
1707
+ ],
1708
+ "event": "SAVE",
1709
+ "eventId": "evt_01M0RYEW8QH8R91C7A42HE28ZY",
1710
+ "from": "editing",
1711
+ "to": "idle"
1712
+ },
1713
+ {
1714
+ "effects": [
1715
+ [
1716
+ "render-ui",
1717
+ "modal",
1718
+ null
1719
+ ]
1720
+ ],
1721
+ "event": "CLOSE",
1722
+ "eventId": "evt_01M0RYEW8QHNPNYEJB0CW9SVGB",
1723
+ "from": "editing",
1724
+ "to": "idle"
1725
+ }
1726
+ ]
1727
+ }
1322
1728
  }
1323
1729
  ]
1324
1730
  }