@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.
- package/behaviors/behaviors-registry.json +4054 -771
- package/behaviors/lolo/ui/core/atoms/std-board.lolo +6 -1
- package/behaviors/lolo/ui/core/atoms/std-event-log.lolo +12 -2
- package/behaviors/lolo/ui/core/atoms/std-form-advanced.lolo +36 -3
- package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +38 -65
- package/behaviors/lolo/ui/core/atoms/ui-box.lolo +2 -2
- package/behaviors/lolo/ui/core/atoms/ui-button.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-breadcrumb.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-change-list.lolo +57 -0
- package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +143 -0
- package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +1 -0
- package/behaviors/lolo/ui/core/molecules/ui-version-diff.lolo +19 -3
- package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +1 -0
- package/behaviors/lolo-behavior-contracts.json +1 -1
- package/behaviors/registry/factory-signatures.json +1 -1
- package/behaviors/registry/ui/core/atoms/std-board.orb +9 -1
- package/behaviors/registry/ui/core/atoms/std-event-log.orb +19 -3
- package/behaviors/registry/ui/core/atoms/std-form-advanced.orb +52 -3
- package/behaviors/registry/ui/core/atoms/std-version-history.orb +470 -346
- package/behaviors/registry/ui/core/atoms/ui-box.orb +2 -2
- package/behaviors/registry/ui/core/atoms/ui-button.orb +1 -0
- package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +9 -1
- package/behaviors/registry/ui/core/molecules/ui-change-list.orb +290 -0
- package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +441 -0
- package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +13 -0
- package/behaviors/registry/ui/core/molecules/ui-header.orb +43 -0
- package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +418 -0
- package/behaviors/registry/ui/core/molecules/ui-menu.orb +13 -0
- package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +277 -0
- package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +109 -18
- package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +43 -5
- package/behaviors/registry/ui/game/atoms/ui-canvas.orb +8 -0
- package/dist/behaviors/exports-reader.js +1466 -1043
- package/dist/behaviors/functions/index.d.ts +365 -34
- package/dist/behaviors/functions/index.js +1455 -1044
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +1467 -1044
- package/dist/behaviors/query.js +1466 -1043
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +33 -5
- package/dist/behaviors-registry.json +4054 -771
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1467 -1044
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +201 -13
- package/dist/registry/factory-signatures.json +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
app ui-version-diff "1.0.0"
|
|
2
|
-
"
|
|
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] = [
|
|
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"
|