alinea 2.0.0-preview.5 → 2.0.0-preview.6

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 (101) hide show
  1. package/dist/.init/content/pages/welcome.json +1 -1
  2. package/dist/LICENSES.md +121 -121
  3. package/dist/backend/api/GithubApi.js +16 -7
  4. package/dist/bundled.d.ts +2 -3
  5. package/dist/chunks/{chunk-A6M3PNJT.js → chunk-7IOKMUKO.js} +1 -1
  6. package/dist/chunks/{chunk-O7XWTMCB.js → chunk-D6RGFNUW.js} +73 -72
  7. package/dist/chunks/{chunk-VXZM6V4P.js → chunk-OFEKTDRF.js} +41 -41
  8. package/dist/cli/Generate.js +2 -1
  9. package/dist/cli/Serve.js +1 -1
  10. package/dist/cli/bin.js +1 -1
  11. package/dist/cli/generate/FillCache.d.ts +1 -1
  12. package/dist/cli/generate/FillCache.js +20 -9
  13. package/dist/cli/serve/DevServer.js +1 -0
  14. package/dist/cli/util/Emitter.js +1 -1
  15. package/dist/cloud/CloudRemote.js +1 -1
  16. package/dist/components/Breadcrumbs.js +7 -7
  17. package/dist/components/Button.js +5 -5
  18. package/dist/components/Calendar.js +11 -11
  19. package/dist/components/Checkbox.js +5 -5
  20. package/dist/components/CheckboxGroup.js +5 -5
  21. package/dist/components/ColorSwatch.js +5 -5
  22. package/dist/components/ColorSwatchPicker.js +5 -5
  23. package/dist/components/ComboBox.js +15 -15
  24. package/dist/components/DateField.js +6 -6
  25. package/dist/components/DatePicker.js +8 -8
  26. package/dist/components/DateRangePicker.js +11 -11
  27. package/dist/components/Dialog.js +5 -5
  28. package/dist/components/Disclosure.js +10 -10
  29. package/dist/components/DropZone.js +5 -5
  30. package/dist/components/Label.js +10 -10
  31. package/dist/components/Link.js +5 -5
  32. package/dist/components/List.js +34 -34
  33. package/dist/components/Menu.js +6 -6
  34. package/dist/components/Modal.js +9 -9
  35. package/dist/components/MultipleSelect.js +29 -29
  36. package/dist/components/NumberField.js +6 -6
  37. package/dist/components/Popover.js +5 -5
  38. package/dist/components/ProgressCircle.js +7 -7
  39. package/dist/components/RadioGroup.js +7 -7
  40. package/dist/components/SearchField.js +9 -9
  41. package/dist/components/Select.js +12 -12
  42. package/dist/components/Surface.js +1 -1
  43. package/dist/components/Switch.js +7 -7
  44. package/dist/components/Table.js +13 -13
  45. package/dist/components/Tabs.js +9 -9
  46. package/dist/components/TagGroup.js +5 -5
  47. package/dist/components/TextField.js +10 -10
  48. package/dist/components/TimeField.js +8 -8
  49. package/dist/components/Toggle.js +7 -7
  50. package/dist/components/Toolbar.js +7 -7
  51. package/dist/components/Tooltip.js +8 -8
  52. package/dist/components/Tree.js +13 -13
  53. package/dist/core/db/EntryIndex.js +1 -8
  54. package/dist/core/db/EntryTransaction.js +33 -52
  55. package/dist/dashboard/App.js +4 -4
  56. package/dist/dashboard/app/AccessDenied.js +2 -2
  57. package/dist/dashboard/app/ActivityStatus.js +32 -39
  58. package/dist/dashboard/app/AppShell.js +2 -2
  59. package/dist/dashboard/app/AuthView.js +13 -13
  60. package/dist/dashboard/app/CompactField.js +11 -11
  61. package/dist/dashboard/app/DashboardErrorBoundary.js +3 -3
  62. package/dist/dashboard/app/EntryHeader.js +9 -9
  63. package/dist/dashboard/app/EntryReferences.js +11 -11
  64. package/dist/dashboard/app/EntrySidebar.js +15 -15
  65. package/dist/dashboard/app/EntrySidebarPreview.js +11 -11
  66. package/dist/dashboard/app/EntryTranslationBanner.js +4 -4
  67. package/dist/dashboard/app/Explorer.js +48 -48
  68. package/dist/dashboard/app/ExplorerCards.js +33 -33
  69. package/dist/dashboard/app/ExplorerFileCard.js +19 -19
  70. package/dist/dashboard/app/ExplorerList.js +15 -15
  71. package/dist/dashboard/app/ExplorerModal.js +5 -5
  72. package/dist/dashboard/app/ExplorerTable.js +51 -51
  73. package/dist/dashboard/app/LinkPicker.js +5 -5
  74. package/dist/dashboard/app/LocaleMenu.js +10 -10
  75. package/dist/dashboard/app/SidebarTree.js +47 -47
  76. package/dist/dashboard/app/WorkspaceMenu.js +17 -17
  77. package/dist/dashboard/app/WorkspaceRoots.js +22 -22
  78. package/dist/dashboard/app/editor/FileEditor.js +25 -25
  79. package/dist/dashboard/app/editor/FilePreview.js +6 -6
  80. package/dist/dashboard/app/pages/EntryPage.js +13 -13
  81. package/dist/dashboard/app/pages/RootPage.js +3 -3
  82. package/dist/dashboard/app/pages/SplashPage.js +48 -48
  83. package/dist/dashboard/app/pages/UsersPage.js +37 -37
  84. package/dist/dashboard/app/ui/DashboardModal.js +23 -23
  85. package/dist/dashboard/app/ui/Rail.js +4 -4
  86. package/dist/dashboard/atoms/activity.d.ts +0 -1
  87. package/dist/dashboard/atoms/activity.js +3 -8
  88. package/dist/dashboard/boot/ActivityEvent.d.ts +1 -1
  89. package/dist/dashboard/boot/DashboardWorker.js +1 -28
  90. package/dist/field/check/CheckField.view.js +2 -2
  91. package/dist/field/code/CodeField.view.js +13 -13
  92. package/dist/field/date/DateField.view.js +5 -5
  93. package/dist/field/link/LinkField.view.js +40 -40
  94. package/dist/field/list/ListField.view.js +23 -23
  95. package/dist/field/metadata/MetadataField.view.js +18 -18
  96. package/dist/field/richtext/RichTextExtensions.js +23 -23
  97. package/dist/field/richtext/RichTextField.view.js +2 -2
  98. package/dist/field/richtext/RichTextInsertMenu.js +3 -3
  99. package/dist/field/select/SelectField.view.js +1 -1
  100. package/package.json +1 -1
  101. package/dist/chunks/{chunk-6V4TAD2N.js → chunk-DNJX6CRV.js} +4 -4
@@ -1,5 +1,5 @@
1
1
  {
2
- "_id": "3JSRaU6nbvzZquWO5cyuADRWGRm",
2
+ "_id": "3JUoCAhRGalhjQEYxS2BD7bVGVb",
3
3
  "_type": "Page",
4
4
  "_index": "a0",
5
5
  "_seeded": "welcome.json",
package/dist/LICENSES.md CHANGED
@@ -2,32 +2,6 @@ This file contains the licenses of the bundled modules in this distribution.
2
2
 
3
3
  ===
4
4
 
5
- # rado@1.3.0-preview.6 (MIT)
6
-
7
- MIT License
8
-
9
- Copyright (c) 2024 Ben Merckx
10
-
11
- Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions:
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.
28
-
29
- ===
30
-
31
5
  # jotai@3.0.0 (MIT)
32
6
 
33
7
  MIT License
@@ -262,11 +236,11 @@ SOFTWARE.
262
236
 
263
237
  ===
264
238
 
265
- # microcbor@1.2.1 (MIT)
239
+ # rado@1.3.0-preview.6 (MIT)
266
240
 
267
241
  MIT License
268
242
 
269
- Copyright (c) 2021 Joel Gustafson
243
+ Copyright (c) 2024 Ben Merckx
270
244
 
271
245
  Permission is hereby granted, free of charge, to any person obtaining a copy
272
246
  of this software and associated documentation files (the "Software"), to deal
@@ -286,14 +260,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
286
260
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
287
261
  SOFTWARE.
288
262
 
289
-
290
263
  ===
291
264
 
292
- # jotai-location@0.6.2 (MIT)
265
+ # microcbor@1.2.1 (MIT)
293
266
 
294
- The MIT License (MIT)
267
+ MIT License
295
268
 
296
- Copyright (c) 2022 Daishi Kato
269
+ Copyright (c) 2021 Joel Gustafson
297
270
 
298
271
  Permission is hereby granted, free of charge, to any person obtaining a copy
299
272
  of this software and associated documentation files (the "Software"), to deal
@@ -302,21 +275,21 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
302
275
  copies of the Software, and to permit persons to whom the Software is
303
276
  furnished to do so, subject to the following conditions:
304
277
 
305
- The above copyright notice and this permission notice shall be included in
306
- all copies or substantial portions of the Software.
278
+ The above copyright notice and this permission notice shall be included in all
279
+ copies or substantial portions of the Software.
307
280
 
308
281
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
309
282
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
310
283
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
311
284
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
312
285
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
313
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
314
- THE SOFTWARE.
286
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
287
+ SOFTWARE.
315
288
 
316
289
 
317
290
  ===
318
291
 
319
- # react-stately@3.46.0 (Apache-2.0)
292
+ # @internationalized/date@3.12.1 (Apache-2.0)
320
293
 
321
294
  Apache License
322
295
  Version 2.0, January 2004
@@ -523,7 +496,34 @@ THE SOFTWARE.
523
496
 
524
497
  ===
525
498
 
526
- # @internationalized/date@3.12.1 (Apache-2.0)
499
+ # @tiptap/core@3.30.5 (MIT)
500
+
501
+ MIT License
502
+
503
+ Copyright (c) 2025, Tiptap GmbH
504
+
505
+ Permission is hereby granted, free of charge, to any person obtaining a copy
506
+ of this software and associated documentation files (the "Software"), to deal
507
+ in the Software without restriction, including without limitation the rights
508
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
509
+ copies of the Software, and to permit persons to whom the Software is
510
+ furnished to do so, subject to the following conditions:
511
+
512
+ The above copyright notice and this permission notice shall be included in all
513
+ copies or substantial portions of the Software.
514
+
515
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
516
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
517
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
518
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
519
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
520
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
521
+ SOFTWARE.
522
+
523
+
524
+ ===
525
+
526
+ # react-stately@3.46.0 (Apache-2.0)
527
527
 
528
528
  Apache License
529
529
  Version 2.0, January 2004
@@ -757,11 +757,11 @@ SOFTWARE.
757
757
 
758
758
  ===
759
759
 
760
- # @tiptap/core@3.30.5 (MIT)
760
+ # jotai-location@0.6.2 (MIT)
761
761
 
762
- MIT License
762
+ The MIT License (MIT)
763
763
 
764
- Copyright (c) 2025, Tiptap GmbH
764
+ Copyright (c) 2022 Daishi Kato
765
765
 
766
766
  Permission is hereby granted, free of charge, to any person obtaining a copy
767
767
  of this software and associated documentation files (the "Software"), to deal
@@ -770,40 +770,17 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
770
770
  copies of the Software, and to permit persons to whom the Software is
771
771
  furnished to do so, subject to the following conditions:
772
772
 
773
- The above copyright notice and this permission notice shall be included in all
774
- copies or substantial portions of the Software.
773
+ The above copyright notice and this permission notice shall be included in
774
+ all copies or substantial portions of the Software.
775
775
 
776
776
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
777
777
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
778
778
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
779
779
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
780
780
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
781
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
782
- SOFTWARE.
783
-
784
-
785
- ===
786
-
787
- # htmlparser2@9.1.0 (MIT)
781
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
782
+ THE SOFTWARE.
788
783
 
789
- Copyright 2010, 2011, Chris Winberry <chris@winberry.net>. All rights reserved.
790
- Permission is hereby granted, free of charge, to any person obtaining a copy
791
- of this software and associated documentation files (the "Software"), to
792
- deal in the Software without restriction, including without limitation the
793
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
794
- sell copies of the Software, and to permit persons to whom the Software is
795
- furnished to do so, subject to the following conditions:
796
-
797
- The above copyright notice and this permission notice shall be included in
798
- all copies or substantial portions of the Software.
799
-
800
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
801
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
802
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
803
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
804
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
805
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
806
- IN THE SOFTWARE.
807
784
 
808
785
  ===
809
786
 
@@ -1014,11 +991,11 @@ IN THE SOFTWARE.
1014
991
 
1015
992
  ===
1016
993
 
1017
- # @tiptap/extension-list@3.30.5 (MIT)
994
+ # @badgateway/oauth2-client@3.3.1 (MIT)
1018
995
 
1019
996
  MIT License
1020
997
 
1021
- Copyright (c) 2025, Tiptap GmbH
998
+ Copyright (c) 2019-2025 Evert Pot
1022
999
 
1023
1000
  Permission is hereby granted, free of charge, to any person obtaining a copy
1024
1001
  of this software and associated documentation files (the "Software"), to deal
@@ -1041,11 +1018,11 @@ SOFTWARE.
1041
1018
 
1042
1019
  ===
1043
1020
 
1044
- # @badgateway/oauth2-client@3.3.1 (MIT)
1021
+ # use-sync-external-store@1.6.0 (MIT)
1045
1022
 
1046
1023
  MIT License
1047
1024
 
1048
- Copyright (c) 2019-2025 Evert Pot
1025
+ Copyright (c) Meta Platforms, Inc. and affiliates.
1049
1026
 
1050
1027
  Permission is hereby granted, free of charge, to any person obtaining a copy
1051
1028
  of this software and associated documentation files (the "Software"), to deal
@@ -1068,62 +1045,34 @@ SOFTWARE.
1068
1045
 
1069
1046
  ===
1070
1047
 
1071
- # domutils@3.2.2 (BSD-2-Clause)
1072
-
1073
- Copyright (c) Felix Böhm
1074
- All rights reserved.
1075
-
1076
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1077
-
1078
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1079
-
1080
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1081
-
1082
- THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
1083
- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1084
-
1085
-
1086
- ===
1087
-
1088
- # domhandler@5.0.3 (BSD-2-Clause)
1089
-
1090
- Copyright (c) Felix Böhm
1091
- All rights reserved.
1092
-
1093
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1094
-
1095
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1096
-
1097
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1098
-
1099
- THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
1100
- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1101
-
1102
-
1103
- ===
1104
-
1105
- # entities@4.5.0 (BSD-2-Clause)
1106
-
1107
- Copyright (c) Felix Böhm
1108
- All rights reserved.
1109
-
1110
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1111
-
1112
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1113
-
1114
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1115
-
1116
- THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
1117
- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1048
+ # htmlparser2@9.1.0 (MIT)
1118
1049
 
1050
+ Copyright 2010, 2011, Chris Winberry <chris@winberry.net>. All rights reserved.
1051
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1052
+ of this software and associated documentation files (the "Software"), to
1053
+ deal in the Software without restriction, including without limitation the
1054
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
1055
+ sell copies of the Software, and to permit persons to whom the Software is
1056
+ furnished to do so, subject to the following conditions:
1057
+
1058
+ The above copyright notice and this permission notice shall be included in
1059
+ all copies or substantial portions of the Software.
1060
+
1061
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1062
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1063
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1064
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1065
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1066
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1067
+ IN THE SOFTWARE.
1119
1068
 
1120
1069
  ===
1121
1070
 
1122
- # use-sync-external-store@1.6.0 (MIT)
1071
+ # @tiptap/extension-list@3.30.5 (MIT)
1123
1072
 
1124
1073
  MIT License
1125
1074
 
1126
- Copyright (c) Meta Platforms, Inc. and affiliates.
1075
+ Copyright (c) 2025, Tiptap GmbH
1127
1076
 
1128
1077
  Permission is hereby granted, free of charge, to any person obtaining a copy
1129
1078
  of this software and associated documentation files (the "Software"), to deal
@@ -1171,6 +1120,57 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1171
1120
  SOFTWARE.
1172
1121
 
1173
1122
 
1123
+ ===
1124
+
1125
+ # domutils@3.2.2 (BSD-2-Clause)
1126
+
1127
+ Copyright (c) Felix Böhm
1128
+ All rights reserved.
1129
+
1130
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1131
+
1132
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1133
+
1134
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1135
+
1136
+ THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
1137
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1138
+
1139
+
1140
+ ===
1141
+
1142
+ # domhandler@5.0.3 (BSD-2-Clause)
1143
+
1144
+ Copyright (c) Felix Böhm
1145
+ All rights reserved.
1146
+
1147
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1148
+
1149
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1150
+
1151
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1152
+
1153
+ THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
1154
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1155
+
1156
+
1157
+ ===
1158
+
1159
+ # entities@4.5.0 (BSD-2-Clause)
1160
+
1161
+ Copyright (c) Felix Böhm
1162
+ All rights reserved.
1163
+
1164
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1165
+
1166
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1167
+
1168
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1169
+
1170
+ THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
1171
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1172
+
1173
+
1174
1174
  ===
1175
1175
 
1176
1176
  # dom-serializer@2.0.0 (MIT)
@@ -10,7 +10,7 @@ import {
10
10
  import { ShaMismatchError } from "alinea/core/source/ShaMismatchError";
11
11
  import { base64, btoa } from "alinea/core/util/Encoding";
12
12
  import { fileVersions } from "alinea/core/util/EntryFilenames";
13
- import { join } from "alinea/core/util/Paths";
13
+ import { join, relative } from "alinea/core/util/Paths";
14
14
  var GithubApi = class extends GithubSource {
15
15
  #options;
16
16
  constructor(options) {
@@ -129,8 +129,8 @@ Co-authored-by: ${user.name} <${user.email}>`;
129
129
  const prev = fileEntry?.previous_filename;
130
130
  if (prev) {
131
131
  const prefix = rootDir ? `${rootDir}/` : "";
132
- const relative = prev.startsWith(prefix) ? prev.slice(prefix.length) : prev;
133
- queue.push(...fileVersions(relative));
132
+ const relative2 = prev.startsWith(prefix) ? prev.slice(prefix.length) : prev;
133
+ queue.push(...fileVersions(relative2));
134
134
  }
135
135
  }
136
136
  }
@@ -194,6 +194,12 @@ Co-authored-by: ${user.name} <${user.email}>`;
194
194
  throw new ShaMismatchError(actualSha, expectedHeadOid);
195
195
  }
196
196
  }
197
+ console.error("Alinea GitHub commit failed", {
198
+ expectedHeadOid,
199
+ additions: additions.map((change) => change.path),
200
+ deletions: deletions.map((change) => change.path),
201
+ error
202
+ });
197
203
  throw error;
198
204
  });
199
205
  }
@@ -205,13 +211,13 @@ Co-authored-by: ${user.name} <${user.email}>`;
205
211
  switch (change.op) {
206
212
  case "addContent": {
207
213
  additions.push({
208
- path: join(this.contentLocation, change.path),
214
+ path: repositoryPath(this.contentLocation, change.path),
209
215
  contents: btoa(change.contents)
210
216
  });
211
217
  break;
212
218
  }
213
219
  case "uploadFile": {
214
- const file = join(rootDir, change.location);
220
+ const file = repositoryPath(rootDir, change.location);
215
221
  additions.push({
216
222
  path: file,
217
223
  contents: await this.#fetchUploadedContent(change.url)
@@ -219,12 +225,12 @@ Co-authored-by: ${user.name} <${user.email}>`;
219
225
  break;
220
226
  }
221
227
  case "deleteContent": {
222
- const file = join(this.contentLocation, change.path);
228
+ const file = repositoryPath(this.contentLocation, change.path);
223
229
  deletions.push({ path: file });
224
230
  break;
225
231
  }
226
232
  case "removeFile": {
227
- const file = join(rootDir, change.location);
233
+ const file = repositoryPath(rootDir, change.location);
228
234
  deletions.push({ path: file });
229
235
  break;
230
236
  }
@@ -255,6 +261,9 @@ Co-authored-by: ${user.name} <${user.email}>`;
255
261
  return base64.stringify(new Uint8Array(await response.arrayBuffer()));
256
262
  }
257
263
  };
264
+ function repositoryPath(...segments) {
265
+ return relative("/", join("/", ...segments));
266
+ }
258
267
  export {
259
268
  GithubApi
260
269
  };
package/dist/bundled.d.ts CHANGED
@@ -904,7 +904,7 @@ declare module 'alinea/cli/generate/FillCache' {
904
904
 
905
905
  import { type Emitter } from 'alinea/cli/util/Emitter';
906
906
  import type { DevDB } from 'alinea/cli/generate/DevDB';
907
- export function fillCache(db: DevDB, fix?: boolean): Emitter<DevDB>;
907
+ export function fillCache(db: DevDB, fix?: boolean, watch?: boolean): Emitter<DevDB>;
908
908
 
909
909
  }
910
910
 
@@ -6902,7 +6902,6 @@ declare module 'alinea/dashboard/atoms/activity' {
6902
6902
  import { type Activity } from 'alinea/dashboard/boot/ActivityEvent';
6903
6903
  export interface DashboardActivity {
6904
6904
  items: Array<Activity>;
6905
- isFetchingUpdates: boolean;
6906
6905
  isMutating: boolean;
6907
6906
  hasFailed: boolean;
6908
6907
  hasBlocked: boolean;
@@ -8023,7 +8022,7 @@ declare module 'alinea/dashboard/atoms/utils' {
8023
8022
 
8024
8023
  declare module 'alinea/dashboard/boot/ActivityEvent' {
8025
8024
 
8026
- export type ActivityType = 'mutation' | 'fetch' | 'upload';
8025
+ export type ActivityType = 'mutation' | 'upload';
8027
8026
  export type ActivityStatus = 'pending' | 'running' | 'succeeded' | 'failed' | 'blocked' | 'discarded' | 'cancelled';
8028
8027
  export interface Activity {
8029
8028
  id: string;
@@ -1,7 +1,7 @@
1
1
  // package.json with { type: 'json' }
2
2
  var package_default = {
3
3
  name: "alinea",
4
- version: "2.0.0-preview.5",
4
+ version: "2.0.0-preview.6",
5
5
  description: "Headless git-based CMS",
6
6
  repository: "github:alineacms/alinea",
7
7
  license: "MIT",
@@ -1135,6 +1135,78 @@ function $42ceafc619f9c3ba$var$CollectionRoot({ children }) {
1135
1135
  }, wrappedChildren) : /* @__PURE__ */ (0, $kT5Ur$createPortal)(wrappedChildren, doc);
1136
1136
  }
1137
1137
 
1138
+ // node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
1139
+ import { useRef as $a2uwp$useRef, useEffect as $a2uwp$useEffect } from "react";
1140
+ function $e260d131964da0f9$export$872b660ac5a1ff98(props) {
1141
+ let { ref, onInteractOutside, isDisabled, onInteractOutsideStart } = props;
1142
+ let stateRef = (0, $a2uwp$useRef)({
1143
+ isPointerDown: false,
1144
+ ignoreEmulatedMouseEvents: false
1145
+ });
1146
+ let onPointerDown = (0, $fe16bffc7a557bf0$export$7f54fc3180508a52)((e) => {
1147
+ if (onInteractOutside && $e260d131964da0f9$var$isValidEvent(e, ref)) {
1148
+ if (onInteractOutsideStart) onInteractOutsideStart(e);
1149
+ stateRef.current.isPointerDown = true;
1150
+ }
1151
+ });
1152
+ let triggerInteractOutside = (0, $fe16bffc7a557bf0$export$7f54fc3180508a52)((e) => {
1153
+ if (onInteractOutside) onInteractOutside(e);
1154
+ });
1155
+ (0, $a2uwp$useEffect)(() => {
1156
+ let state = stateRef.current;
1157
+ if (isDisabled) return;
1158
+ const element = ref.current;
1159
+ const documentObject = (0, $d447af545b77c9f1$export$b204af158042fbac)(element);
1160
+ if (typeof PointerEvent !== "undefined") {
1161
+ let onClick = (e) => {
1162
+ if (state.isPointerDown && $e260d131964da0f9$var$isValidEvent(e, ref)) triggerInteractOutside(e);
1163
+ state.isPointerDown = false;
1164
+ };
1165
+ documentObject.addEventListener("pointerdown", onPointerDown, true);
1166
+ documentObject.addEventListener("click", onClick, true);
1167
+ return () => {
1168
+ documentObject.removeEventListener("pointerdown", onPointerDown, true);
1169
+ documentObject.removeEventListener("click", onClick, true);
1170
+ };
1171
+ } else if (process.env.NODE_ENV === "test") {
1172
+ let onMouseUp = (e) => {
1173
+ if (state.ignoreEmulatedMouseEvents) state.ignoreEmulatedMouseEvents = false;
1174
+ else if (state.isPointerDown && $e260d131964da0f9$var$isValidEvent(e, ref)) triggerInteractOutside(e);
1175
+ state.isPointerDown = false;
1176
+ };
1177
+ let onTouchEnd = (e) => {
1178
+ state.ignoreEmulatedMouseEvents = true;
1179
+ if (state.isPointerDown && $e260d131964da0f9$var$isValidEvent(e, ref)) triggerInteractOutside(e);
1180
+ state.isPointerDown = false;
1181
+ };
1182
+ documentObject.addEventListener("mousedown", onPointerDown, true);
1183
+ documentObject.addEventListener("mouseup", onMouseUp, true);
1184
+ documentObject.addEventListener("touchstart", onPointerDown, true);
1185
+ documentObject.addEventListener("touchend", onTouchEnd, true);
1186
+ return () => {
1187
+ documentObject.removeEventListener("mousedown", onPointerDown, true);
1188
+ documentObject.removeEventListener("mouseup", onMouseUp, true);
1189
+ documentObject.removeEventListener("touchstart", onPointerDown, true);
1190
+ documentObject.removeEventListener("touchend", onTouchEnd, true);
1191
+ };
1192
+ }
1193
+ }, [
1194
+ ref,
1195
+ isDisabled
1196
+ ]);
1197
+ }
1198
+ function $e260d131964da0f9$var$isValidEvent(event, ref) {
1199
+ if (event.button > 0) return false;
1200
+ let target = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(event);
1201
+ if (target) {
1202
+ const ownerDocument = target.ownerDocument;
1203
+ if (!ownerDocument || !(0, $23f2114a1b82827e$export$4282f70798064fe0)(ownerDocument.documentElement, target)) return false;
1204
+ if (target.closest("[data-react-aria-top-layer]")) return false;
1205
+ }
1206
+ if (!ref.current) return false;
1207
+ return !event.composedPath().includes(ref.current);
1208
+ }
1209
+
1138
1210
  // node_modules/react-aria/dist/private/i18n/useCollator.mjs
1139
1211
  var $673d46fce3e5717d$var$cache = /* @__PURE__ */ new Map();
1140
1212
  function $673d46fce3e5717d$export$a16aca283550c30d(options) {
@@ -10403,78 +10475,6 @@ function $b3526bc71400be8d$var$translateRTL(position, direction) {
10403
10475
  return position.replace("start", "left").replace("end", "right");
10404
10476
  }
10405
10477
 
10406
- // node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
10407
- import { useRef as $a2uwp$useRef, useEffect as $a2uwp$useEffect } from "react";
10408
- function $e260d131964da0f9$export$872b660ac5a1ff98(props) {
10409
- let { ref, onInteractOutside, isDisabled, onInteractOutsideStart } = props;
10410
- let stateRef = (0, $a2uwp$useRef)({
10411
- isPointerDown: false,
10412
- ignoreEmulatedMouseEvents: false
10413
- });
10414
- let onPointerDown = (0, $fe16bffc7a557bf0$export$7f54fc3180508a52)((e) => {
10415
- if (onInteractOutside && $e260d131964da0f9$var$isValidEvent(e, ref)) {
10416
- if (onInteractOutsideStart) onInteractOutsideStart(e);
10417
- stateRef.current.isPointerDown = true;
10418
- }
10419
- });
10420
- let triggerInteractOutside = (0, $fe16bffc7a557bf0$export$7f54fc3180508a52)((e) => {
10421
- if (onInteractOutside) onInteractOutside(e);
10422
- });
10423
- (0, $a2uwp$useEffect)(() => {
10424
- let state = stateRef.current;
10425
- if (isDisabled) return;
10426
- const element = ref.current;
10427
- const documentObject = (0, $d447af545b77c9f1$export$b204af158042fbac)(element);
10428
- if (typeof PointerEvent !== "undefined") {
10429
- let onClick = (e) => {
10430
- if (state.isPointerDown && $e260d131964da0f9$var$isValidEvent(e, ref)) triggerInteractOutside(e);
10431
- state.isPointerDown = false;
10432
- };
10433
- documentObject.addEventListener("pointerdown", onPointerDown, true);
10434
- documentObject.addEventListener("click", onClick, true);
10435
- return () => {
10436
- documentObject.removeEventListener("pointerdown", onPointerDown, true);
10437
- documentObject.removeEventListener("click", onClick, true);
10438
- };
10439
- } else if (process.env.NODE_ENV === "test") {
10440
- let onMouseUp = (e) => {
10441
- if (state.ignoreEmulatedMouseEvents) state.ignoreEmulatedMouseEvents = false;
10442
- else if (state.isPointerDown && $e260d131964da0f9$var$isValidEvent(e, ref)) triggerInteractOutside(e);
10443
- state.isPointerDown = false;
10444
- };
10445
- let onTouchEnd = (e) => {
10446
- state.ignoreEmulatedMouseEvents = true;
10447
- if (state.isPointerDown && $e260d131964da0f9$var$isValidEvent(e, ref)) triggerInteractOutside(e);
10448
- state.isPointerDown = false;
10449
- };
10450
- documentObject.addEventListener("mousedown", onPointerDown, true);
10451
- documentObject.addEventListener("mouseup", onMouseUp, true);
10452
- documentObject.addEventListener("touchstart", onPointerDown, true);
10453
- documentObject.addEventListener("touchend", onTouchEnd, true);
10454
- return () => {
10455
- documentObject.removeEventListener("mousedown", onPointerDown, true);
10456
- documentObject.removeEventListener("mouseup", onMouseUp, true);
10457
- documentObject.removeEventListener("touchstart", onPointerDown, true);
10458
- documentObject.removeEventListener("touchend", onTouchEnd, true);
10459
- };
10460
- }
10461
- }, [
10462
- ref,
10463
- isDisabled
10464
- ]);
10465
- }
10466
- function $e260d131964da0f9$var$isValidEvent(event, ref) {
10467
- if (event.button > 0) return false;
10468
- let target = (0, $23f2114a1b82827e$export$e58f029f0fbfdb29)(event);
10469
- if (target) {
10470
- const ownerDocument = target.ownerDocument;
10471
- if (!ownerDocument || !(0, $23f2114a1b82827e$export$4282f70798064fe0)(ownerDocument.documentElement, target)) return false;
10472
- if (target.closest("[data-react-aria-top-layer]")) return false;
10473
- }
10474
- if (!ref.current) return false;
10475
- return !event.composedPath().includes(ref.current);
10476
- }
10477
-
10478
10478
  // node_modules/react-aria/dist/private/overlays/useOverlay.mjs
10479
10479
  import { useRef as $eUNmN$useRef, useEffect as $eUNmN$useEffect } from "react";
10480
10480
  var $77844860df94ba23$var$visibleOverlays = [];
@@ -19437,6 +19437,7 @@ export {
19437
19437
  $3d6c959d2ef57b72$export$c3f9f39876e4bc7,
19438
19438
  $970072cf4b13fde3$export$683480f191c0e3ea,
19439
19439
  $b3526bc71400be8d$export$d39e1813b3bdd0e1,
19440
+ $e260d131964da0f9$export$872b660ac5a1ff98,
19440
19441
  $f8a024fbad3a5a2e$export$542a6fd13ac93354,
19441
19442
  $081058010ef8962e$export$2317d149ed6f78c4,
19442
19443
  $0d47b37c475c5231$export$3351871ee4b288b8,