@almadar/std 16.143.0 → 16.144.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.
@@ -72,6 +72,14 @@ orbital BoardOrbital {
72
72
  }
73
73
 
74
74
  state viewing_board {
75
+ INIT -> loading
76
+ (fetch BoardView {
77
+ emit: { failure: BoardItemsLoadFailed, success: BoardItemsLoaded }
78
+ })
79
+ (render-ui main {
80
+ title: "Loading board…"
81
+ type: loading-state
82
+ })
75
83
  OPEN_CARD -> viewing_card
76
84
  (set @entity.currentId ?row.id)
77
85
  (set @entity.currentTitle ?row.title)
@@ -75,6 +75,11 @@ orbital CalendarEventOrbital {
75
75
  }
76
76
 
77
77
  state month-view {
78
+ INIT -> loading
79
+ (fetch CalendarEvent {
80
+ emit: { failure: CalendarEventLoadFailed, success: CalendarEventLoaded }
81
+ })
82
+ (render-ui main { type: spinner })
78
83
  SELECT_DAY -> loading
79
84
  (set @entity.date ?value)
80
85
  (set @entity.selectedRange ?value)
@@ -82,6 +82,23 @@ orbital StoredFileOrbital {
82
82
  }
83
83
 
84
84
  state browsing {
85
+ INIT -> loading
86
+ (fetch StoredFile {
87
+ emit: { failure: StoredFileLoadFailed, success: StoredFileLoaded }
88
+ })
89
+ (render-ui main {
90
+ align: center
91
+ children: [{ type: spinner }, {
92
+ color: muted
93
+ content: "Loading…"
94
+ type: typography
95
+ variant: caption
96
+ }]
97
+ className: py-12
98
+ direction: vertical
99
+ gap: md
100
+ type: stack
101
+ })
85
102
  OPEN_FILE -> viewing_single
86
103
  (set @entity.id ?row.id)
87
104
  (set @entity.name ?row.name)
@@ -141,6 +141,23 @@ orbital RevisionOrbital {
141
141
  }
142
142
 
143
143
  state browsing {
144
+ INIT -> loading
145
+ (fetch Revision {
146
+ emit: { failure: RevisionLoadFailed, success: RevisionLoaded }
147
+ })
148
+ (render-ui main {
149
+ align: center
150
+ children: [{ type: spinner }, {
151
+ color: muted
152
+ content: "Loading version history…"
153
+ type: typography
154
+ variant: caption
155
+ }]
156
+ className: py-12
157
+ direction: vertical
158
+ gap: md
159
+ type: stack
160
+ })
144
161
  OPEN_REVISION -> viewing_single
145
162
  (set @entity.id ?row.id)
146
163
  (set @entity.documentId ?row.documentId)
@@ -1433,6 +1433,32 @@
1433
1433
  "from": "loading",
1434
1434
  "to": "error"
1435
1435
  },
1436
+ {
1437
+ "effects": [
1438
+ [
1439
+ "fetch",
1440
+ "BoardView",
1441
+ {
1442
+ "emit": {
1443
+ "failure": "BoardItemsLoadFailed",
1444
+ "success": "BoardItemsLoaded"
1445
+ }
1446
+ }
1447
+ ],
1448
+ [
1449
+ "render-ui",
1450
+ "main",
1451
+ {
1452
+ "title": "Loading board…",
1453
+ "type": "loading-state"
1454
+ }
1455
+ ]
1456
+ ],
1457
+ "event": "INIT",
1458
+ "eventId": "evt_01KXG04FS5QM08R185ACBMA51K",
1459
+ "from": "viewing_board",
1460
+ "to": "loading"
1461
+ },
1436
1462
  {
1437
1463
  "effects": [
1438
1464
  [
@@ -774,6 +774,31 @@
774
774
  "from": "loading",
775
775
  "to": "error"
776
776
  },
777
+ {
778
+ "effects": [
779
+ [
780
+ "fetch",
781
+ "CalendarEvent",
782
+ {
783
+ "emit": {
784
+ "failure": "CalendarEventLoadFailed",
785
+ "success": "CalendarEventLoaded"
786
+ }
787
+ }
788
+ ],
789
+ [
790
+ "render-ui",
791
+ "main",
792
+ {
793
+ "type": "spinner"
794
+ }
795
+ ]
796
+ ],
797
+ "event": "INIT",
798
+ "eventId": "evt_01KXG04FWZ8CQBQECFH7VXNKC2",
799
+ "from": "month-view",
800
+ "to": "loading"
801
+ },
777
802
  {
778
803
  "effects": [
779
804
  [
@@ -959,6 +959,46 @@
959
959
  "from": "loading",
960
960
  "to": "error"
961
961
  },
962
+ {
963
+ "effects": [
964
+ [
965
+ "fetch",
966
+ "StoredFile",
967
+ {
968
+ "emit": {
969
+ "failure": "StoredFileLoadFailed",
970
+ "success": "StoredFileLoaded"
971
+ }
972
+ }
973
+ ],
974
+ [
975
+ "render-ui",
976
+ "main",
977
+ {
978
+ "align": "center",
979
+ "children": [
980
+ {
981
+ "type": "spinner"
982
+ },
983
+ {
984
+ "color": "muted",
985
+ "content": "Loading…",
986
+ "type": "typography",
987
+ "variant": "caption"
988
+ }
989
+ ],
990
+ "className": "py-12",
991
+ "direction": "vertical",
992
+ "gap": "md",
993
+ "type": "stack"
994
+ }
995
+ ]
996
+ ],
997
+ "event": "INIT",
998
+ "eventId": "evt_01KXG04GBQ18HVDGB5NHDV52F0",
999
+ "from": "browsing",
1000
+ "to": "loading"
1001
+ },
962
1002
  {
963
1003
  "effects": [
964
1004
  [
@@ -844,6 +844,46 @@
844
844
  "from": "loading",
845
845
  "to": "error"
846
846
  },
847
+ {
848
+ "effects": [
849
+ [
850
+ "fetch",
851
+ "Revision",
852
+ {
853
+ "emit": {
854
+ "failure": "RevisionLoadFailed",
855
+ "success": "RevisionLoaded"
856
+ }
857
+ }
858
+ ],
859
+ [
860
+ "render-ui",
861
+ "main",
862
+ {
863
+ "align": "center",
864
+ "children": [
865
+ {
866
+ "type": "spinner"
867
+ },
868
+ {
869
+ "color": "muted",
870
+ "content": "Loading version history…",
871
+ "type": "typography",
872
+ "variant": "caption"
873
+ }
874
+ ],
875
+ "className": "py-12",
876
+ "direction": "vertical",
877
+ "gap": "md",
878
+ "type": "stack"
879
+ }
880
+ ]
881
+ ],
882
+ "event": "INIT",
883
+ "eventId": "evt_01KXG04HV9D9FEAFFAPEMZ9RP2",
884
+ "from": "browsing",
885
+ "to": "loading"
886
+ },
847
887
  {
848
888
  "effects": [
849
889
  [
@@ -1433,6 +1433,32 @@
1433
1433
  "from": "loading",
1434
1434
  "to": "error"
1435
1435
  },
1436
+ {
1437
+ "effects": [
1438
+ [
1439
+ "fetch",
1440
+ "BoardView",
1441
+ {
1442
+ "emit": {
1443
+ "failure": "BoardItemsLoadFailed",
1444
+ "success": "BoardItemsLoaded"
1445
+ }
1446
+ }
1447
+ ],
1448
+ [
1449
+ "render-ui",
1450
+ "main",
1451
+ {
1452
+ "title": "Loading board…",
1453
+ "type": "loading-state"
1454
+ }
1455
+ ]
1456
+ ],
1457
+ "event": "INIT",
1458
+ "eventId": "evt_01KXG04FS5QM08R185ACBMA51K",
1459
+ "from": "viewing_board",
1460
+ "to": "loading"
1461
+ },
1436
1462
  {
1437
1463
  "effects": [
1438
1464
  [
@@ -774,6 +774,31 @@
774
774
  "from": "loading",
775
775
  "to": "error"
776
776
  },
777
+ {
778
+ "effects": [
779
+ [
780
+ "fetch",
781
+ "CalendarEvent",
782
+ {
783
+ "emit": {
784
+ "failure": "CalendarEventLoadFailed",
785
+ "success": "CalendarEventLoaded"
786
+ }
787
+ }
788
+ ],
789
+ [
790
+ "render-ui",
791
+ "main",
792
+ {
793
+ "type": "spinner"
794
+ }
795
+ ]
796
+ ],
797
+ "event": "INIT",
798
+ "eventId": "evt_01KXG04FWZ8CQBQECFH7VXNKC2",
799
+ "from": "month-view",
800
+ "to": "loading"
801
+ },
777
802
  {
778
803
  "effects": [
779
804
  [
@@ -959,6 +959,46 @@
959
959
  "from": "loading",
960
960
  "to": "error"
961
961
  },
962
+ {
963
+ "effects": [
964
+ [
965
+ "fetch",
966
+ "StoredFile",
967
+ {
968
+ "emit": {
969
+ "failure": "StoredFileLoadFailed",
970
+ "success": "StoredFileLoaded"
971
+ }
972
+ }
973
+ ],
974
+ [
975
+ "render-ui",
976
+ "main",
977
+ {
978
+ "align": "center",
979
+ "children": [
980
+ {
981
+ "type": "spinner"
982
+ },
983
+ {
984
+ "color": "muted",
985
+ "content": "Loading…",
986
+ "type": "typography",
987
+ "variant": "caption"
988
+ }
989
+ ],
990
+ "className": "py-12",
991
+ "direction": "vertical",
992
+ "gap": "md",
993
+ "type": "stack"
994
+ }
995
+ ]
996
+ ],
997
+ "event": "INIT",
998
+ "eventId": "evt_01KXG04GBQ18HVDGB5NHDV52F0",
999
+ "from": "browsing",
1000
+ "to": "loading"
1001
+ },
962
1002
  {
963
1003
  "effects": [
964
1004
  [
@@ -844,6 +844,46 @@
844
844
  "from": "loading",
845
845
  "to": "error"
846
846
  },
847
+ {
848
+ "effects": [
849
+ [
850
+ "fetch",
851
+ "Revision",
852
+ {
853
+ "emit": {
854
+ "failure": "RevisionLoadFailed",
855
+ "success": "RevisionLoaded"
856
+ }
857
+ }
858
+ ],
859
+ [
860
+ "render-ui",
861
+ "main",
862
+ {
863
+ "align": "center",
864
+ "children": [
865
+ {
866
+ "type": "spinner"
867
+ },
868
+ {
869
+ "color": "muted",
870
+ "content": "Loading version history…",
871
+ "type": "typography",
872
+ "variant": "caption"
873
+ }
874
+ ],
875
+ "className": "py-12",
876
+ "direction": "vertical",
877
+ "gap": "md",
878
+ "type": "stack"
879
+ }
880
+ ]
881
+ ],
882
+ "event": "INIT",
883
+ "eventId": "evt_01KXG04HV9D9FEAFFAPEMZ9RP2",
884
+ "from": "browsing",
885
+ "to": "loading"
886
+ },
847
887
  {
848
888
  "effects": [
849
889
  [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/std",
3
- "version": "16.143.0",
3
+ "version": "16.144.0",
4
4
  "description": "Standard library operators for Almadar (math, string, array, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -49,19 +49,20 @@
49
49
  "access": "public"
50
50
  },
51
51
  "dependencies": {
52
- "@almadar/core": "^10.33.0"
52
+ "@almadar/core": "^10.34.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@almadar/eslint-plugin": "^2.15.0",
56
- "@almadar/llm": "^2.35.0",
56
+ "@almadar/llm": "^2.36.0",
57
57
  "@types/node": "^20.0.0",
58
58
  "@typescript-eslint/parser": "8.56.0",
59
59
  "eslint": "10.0.0",
60
60
  "tsup": "^8.0.0",
61
61
  "tsx": "^4.7.0",
62
- "typescript": "^5.4.0",
63
62
  "vitest": "^1.4.0",
64
- "turbo": "^2.8.17"
63
+ "turbo": "^2.8.17",
64
+ "@typescript/native": "npm:typescript@^7.0.2",
65
+ "typescript": "npm:@typescript/typescript6@^6.0.2"
65
66
  },
66
67
  "repository": {
67
68
  "type": "git",