@almadar/std 16.231.0 → 16.233.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/behaviors-registry.json +4054 -771
  2. package/behaviors/lolo/ui/core/atoms/std-board.lolo +6 -1
  3. package/behaviors/lolo/ui/core/atoms/std-event-log.lolo +12 -2
  4. package/behaviors/lolo/ui/core/atoms/std-form-advanced.lolo +36 -3
  5. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +38 -65
  6. package/behaviors/lolo/ui/core/atoms/ui-box.lolo +2 -2
  7. package/behaviors/lolo/ui/core/atoms/ui-button.lolo +1 -1
  8. package/behaviors/lolo/ui/core/molecules/ui-breadcrumb.lolo +1 -1
  9. package/behaviors/lolo/ui/core/molecules/ui-change-list.lolo +57 -0
  10. package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +143 -0
  11. package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +1 -0
  12. package/behaviors/lolo/ui/core/molecules/ui-version-diff.lolo +19 -3
  13. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +1 -0
  14. package/behaviors/lolo-behavior-contracts.json +1 -1
  15. package/behaviors/registry/factory-signatures.json +1 -1
  16. package/behaviors/registry/ui/core/atoms/std-board.orb +9 -1
  17. package/behaviors/registry/ui/core/atoms/std-event-log.orb +19 -3
  18. package/behaviors/registry/ui/core/atoms/std-form-advanced.orb +52 -3
  19. package/behaviors/registry/ui/core/atoms/std-version-history.orb +470 -346
  20. package/behaviors/registry/ui/core/atoms/ui-box.orb +2 -2
  21. package/behaviors/registry/ui/core/atoms/ui-button.orb +1 -0
  22. package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +9 -1
  23. package/behaviors/registry/ui/core/molecules/ui-change-list.orb +290 -0
  24. package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +441 -0
  25. package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +13 -0
  26. package/behaviors/registry/ui/core/molecules/ui-header.orb +43 -0
  27. package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +418 -0
  28. package/behaviors/registry/ui/core/molecules/ui-menu.orb +13 -0
  29. package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +277 -0
  30. package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +109 -18
  31. package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +43 -5
  32. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +8 -0
  33. package/dist/behaviors/exports-reader.js +1466 -1043
  34. package/dist/behaviors/functions/index.d.ts +365 -34
  35. package/dist/behaviors/functions/index.js +1455 -1044
  36. package/dist/behaviors/index.d.ts +1 -1
  37. package/dist/behaviors/index.js +1467 -1044
  38. package/dist/behaviors/query.js +1466 -1043
  39. package/dist/behaviors-embeddings.hash.json +3 -3
  40. package/dist/behaviors-embeddings.json +33 -5
  41. package/dist/behaviors-registry.json +4054 -771
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +1467 -1044
  44. package/dist/knob-embeddings.hash.json +3 -3
  45. package/dist/knob-embeddings.json +201 -13
  46. package/dist/registry/factory-signatures.json +1 -1
  47. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
1
  app ui-version-diff "1.0.0"
2
- "VersionDiff — UI factory (1:1 with the @almadar/ui version-diff pattern)."
2
+ "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
+ ;; @capabilities "version diff, compare revisions, what changed, before and after, code diff, commit diff, revision comparison"
3
4
  ;; @pattern "version-diff"
4
5
  orbital VersionDiffOrbital {
5
6
  type VersionDiffRevisionsItem = {
@@ -9,6 +10,16 @@ orbital VersionDiffOrbital {
9
10
  timestamp : string
10
11
  content : string!
11
12
  }
13
+ type VersionDiffHunksItem = {
14
+ header : string!
15
+ lines : [VersionDiffHunksItemLinesItem]!
16
+ }
17
+ type VersionDiffHunksItemLinesItem = {
18
+ type : "added" | "removed" | "unchanged" | "context"!
19
+ beforeLineNumber : number
20
+ afterLineNumber : number
21
+ content : string!
22
+ }
12
23
 
13
24
  entity VersionDiffItem [runtime] {
14
25
  id : string!
@@ -21,6 +32,7 @@ orbital VersionDiffOrbital {
21
32
  INIT -> idle
22
33
  (render-ui main {
23
34
  revisions: @config.revisions
35
+ hunks: @config.hunks
24
36
  beforeId: @config.beforeId
25
37
  afterId: @config.afterId
26
38
  view: @config.view
@@ -55,10 +67,14 @@ orbital VersionDiffOrbital {
55
67
  }
56
68
 
57
69
  config {
58
- revisions : [VersionDiffRevisionsItem] = [{ id: "Id", label: "Label", author: "Author", timestamp: "Timestamp", content: "Content" }, { id: "Id 2", label: "Label 2", author: "Author 2", timestamp: "Timestamp 2", content: "Content 2" }]
70
+ revisions : [VersionDiffRevisionsItem] = []
59
71
  @label "Revisions"
60
72
  @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."
61
73
  @tier "presentation"
74
+ hunks : [VersionDiffHunksItem] = []
75
+ @label "Hunks"
76
+ @description "A pre-computed diff to render instead of diffing `revisions` (no revision pickers)."
77
+ @tier "presentation"
62
78
  beforeId : string
63
79
  @label "Before Id"
64
80
  @description "Currently selected 'before' revision id."
@@ -69,7 +85,7 @@ orbital VersionDiffOrbital {
69
85
  @tier "presentation"
70
86
  view : "side-by-side" | "inline" = "side-by-side"
71
87
  @label "View"
72
- @description "Display mode."
88
+ @description "Display mode to start in; the toggle switches it."
73
89
  @tier "presentation"
74
90
  onSelectBefore : event = "SELECT_BEFORE"
75
91
  @label "On Select Before"
@@ -146,6 +146,7 @@ orbital CanvasOrbital {
146
146
  featureId : string!
147
147
  x : number!
148
148
  z : number!
149
+ type : string
149
150
  elevation : number
150
151
  }
151
152
  @description "Feature-click event (3D only)."