alinea 2.0.0-preview.5 → 2.0.0-preview.7

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 (124) hide show
  1. package/dist/.init/content/pages/welcome.json +1 -1
  2. package/dist/LICENSES.md +144 -144
  3. package/dist/adapter/next/previews.js +0 -2
  4. package/dist/backend/api/GithubApi.js +16 -7
  5. package/dist/bundled.d.ts +18 -8
  6. package/dist/chunks/{chunk-A6M3PNJT.js → chunk-6P4UVRPH.js} +1 -1
  7. package/dist/chunks/{chunk-O7XWTMCB.js → chunk-D6RGFNUW.js} +73 -72
  8. package/dist/chunks/{chunk-VXZM6V4P.js → chunk-OFEKTDRF.js} +41 -41
  9. package/dist/cli/Generate.js +2 -1
  10. package/dist/cli/Serve.js +1 -1
  11. package/dist/cli/bin.js +1 -1
  12. package/dist/cli/generate/FillCache.d.ts +1 -1
  13. package/dist/cli/generate/FillCache.js +20 -9
  14. package/dist/cli/serve/DevServer.js +1 -0
  15. package/dist/cli/util/Emitter.js +1 -1
  16. package/dist/cloud/CloudRemote.js +1 -1
  17. package/dist/components/Breadcrumbs.js +7 -7
  18. package/dist/components/Button.js +5 -5
  19. package/dist/components/Calendar.js +8 -8
  20. package/dist/components/Checkbox.js +8 -8
  21. package/dist/components/CheckboxGroup.js +5 -5
  22. package/dist/components/ColorSwatch.js +5 -5
  23. package/dist/components/ColorSwatchPicker.js +7 -7
  24. package/dist/components/ComboBox.js +18 -18
  25. package/dist/components/DateField.js +9 -9
  26. package/dist/components/DatePicker.js +9 -9
  27. package/dist/components/DateRangePicker.js +9 -9
  28. package/dist/components/Dialog.js +5 -5
  29. package/dist/components/Disclosure.js +11 -11
  30. package/dist/components/DropZone.js +5 -5
  31. package/dist/components/Label.js +10 -10
  32. package/dist/components/Link.js +5 -5
  33. package/dist/components/List.js +52 -50
  34. package/dist/components/Menu.js +8 -8
  35. package/dist/components/Modal.js +9 -9
  36. package/dist/components/MultipleSelect.js +30 -30
  37. package/dist/components/NumberField.js +7 -7
  38. package/dist/components/Popover.js +5 -5
  39. package/dist/components/ProgressCircle.js +7 -7
  40. package/dist/components/RadioGroup.js +7 -7
  41. package/dist/components/SearchField.js +12 -12
  42. package/dist/components/Select.js +13 -13
  43. package/dist/components/Surface.js +2 -2
  44. package/dist/components/Switch.js +7 -7
  45. package/dist/components/Table.js +13 -13
  46. package/dist/components/Tabs.js +9 -9
  47. package/dist/components/TagGroup.js +8 -8
  48. package/dist/components/TextField.js +10 -10
  49. package/dist/components/TimeField.js +5 -5
  50. package/dist/components/Toggle.js +7 -7
  51. package/dist/components/Toolbar.js +7 -7
  52. package/dist/components/Tooltip.js +8 -8
  53. package/dist/components/Tree.js +12 -12
  54. package/dist/core/TextDoc.d.ts +1 -0
  55. package/dist/core/db/EntryIndex.js +1 -8
  56. package/dist/core/db/EntryTransaction.js +33 -52
  57. package/dist/core/field/RichTextField.js +3 -3
  58. package/dist/dashboard/App.js +7 -5
  59. package/dist/dashboard/app/AccessDenied.js +3 -3
  60. package/dist/dashboard/app/ActivityStatus.js +32 -39
  61. package/dist/dashboard/app/AppShell.js +2 -2
  62. package/dist/dashboard/app/AuthView.js +11 -11
  63. package/dist/dashboard/app/Badge.js +2 -2
  64. package/dist/dashboard/app/CompactField.js +9 -9
  65. package/dist/dashboard/app/DashboardErrorBoundary.js +4 -4
  66. package/dist/dashboard/app/DashboardLayout.js +6 -5
  67. package/dist/dashboard/app/EntryFields.js +2 -2
  68. package/dist/dashboard/app/EntryHeader.js +10 -10
  69. package/dist/dashboard/app/EntryReferences.js +9 -14
  70. package/dist/dashboard/app/EntrySidebar.js +32 -18
  71. package/dist/dashboard/app/EntrySidebarPreview.js +12 -12
  72. package/dist/dashboard/app/EntryTranslationBanner.js +5 -5
  73. package/dist/dashboard/app/Explorer.js +50 -50
  74. package/dist/dashboard/app/ExplorerCards.js +32 -32
  75. package/dist/dashboard/app/ExplorerFileCard.js +19 -19
  76. package/dist/dashboard/app/ExplorerList.js +14 -14
  77. package/dist/dashboard/app/ExplorerModal.js +4 -4
  78. package/dist/dashboard/app/ExplorerTable.js +58 -58
  79. package/dist/dashboard/app/LinkPicker.js +3 -3
  80. package/dist/dashboard/app/LocaleMenu.js +11 -11
  81. package/dist/dashboard/app/SidebarTree.js +41 -41
  82. package/dist/dashboard/app/WorkspaceMenu.js +15 -15
  83. package/dist/dashboard/app/WorkspaceRoots.js +26 -26
  84. package/dist/dashboard/app/editor/FileEditor.js +23 -23
  85. package/dist/dashboard/app/editor/FilePreview.js +8 -8
  86. package/dist/dashboard/app/modals/CreateEntry.js +5 -5
  87. package/dist/dashboard/app/pages/EntryPage.js +19 -19
  88. package/dist/dashboard/app/pages/RootPage.js +3 -3
  89. package/dist/dashboard/app/pages/SplashPage.js +40 -40
  90. package/dist/dashboard/app/pages/UsersPage.js +33 -33
  91. package/dist/dashboard/app/ui/DashboardModal.js +22 -22
  92. package/dist/dashboard/app/ui/Rail.js +2 -2
  93. package/dist/dashboard/app/ui/Sidebar.js +2 -2
  94. package/dist/dashboard/atoms/activity.d.ts +0 -1
  95. package/dist/dashboard/atoms/activity.js +3 -8
  96. package/dist/dashboard/atoms/dashboard.js +2 -1
  97. package/dist/dashboard/atoms/editor.js +7 -0
  98. package/dist/dashboard/atoms/entry.d.ts +2 -4
  99. package/dist/dashboard/atoms/entry.js +8 -3
  100. package/dist/dashboard/atoms/root.d.ts +1 -0
  101. package/dist/dashboard/atoms/root.js +61 -35
  102. package/dist/dashboard/boot/ActivityEvent.d.ts +1 -1
  103. package/dist/dashboard/boot/Boot.js +7 -5
  104. package/dist/dashboard/boot/DashboardWorker.js +1 -28
  105. package/dist/field/code/CodeField.view.js +15 -15
  106. package/dist/field/date/DateField.view.js +5 -5
  107. package/dist/field/link/FileLink.js +1 -7
  108. package/dist/field/link/LinkField.view.js +39 -39
  109. package/dist/field/list/ListField.d.ts +5 -0
  110. package/dist/field/list/ListField.stories.d.ts +1 -0
  111. package/dist/field/list/ListField.view.js +62 -50
  112. package/dist/field/metadata/MetadataField.view.js +17 -17
  113. package/dist/field/richtext/PickTextLink.d.ts +3 -1
  114. package/dist/field/richtext/PickTextLink.js +7 -6
  115. package/dist/field/richtext/RichTextBlock.js +2 -2
  116. package/dist/field/richtext/RichTextDocument.js +8 -1
  117. package/dist/field/richtext/RichTextExtensions.js +19 -19
  118. package/dist/field/richtext/RichTextField.d.ts +3 -0
  119. package/dist/field/richtext/RichTextField.view.js +3 -3
  120. package/dist/field/select/SelectField.view.js +1 -1
  121. package/dist/index.css +17 -6
  122. package/dist/ui/RichText.js +33 -18
  123. package/package.json +1 -1
  124. package/dist/chunks/{chunk-6V4TAD2N.js → chunk-DNJX6CRV.js} +4 -4
@@ -1,5 +1,5 @@
1
1
  {
2
- "_id": "3JSRaU6nbvzZquWO5cyuADRWGRm",
2
+ "_id": "3JgVisHzgNS5eYmsJjOMUsgVkII",
3
3
  "_type": "Page",
4
4
  "_index": "a0",
5
5
  "_seeded": "welcome.json",
package/dist/LICENSES.md CHANGED
@@ -1,58 +1,5 @@
1
1
  This file contains the licenses of the bundled modules in this distribution.
2
2
 
3
- ===
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
- # jotai@3.0.0 (MIT)
32
-
33
- MIT License
34
-
35
- Copyright (c) 2020 Poimandres
36
-
37
- Permission is hereby granted, free of charge, to any person obtaining a copy
38
- of this software and associated documentation files (the "Software"), to deal
39
- in the Software without restriction, including without limitation the rights
40
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41
- copies of the Software, and to permit persons to whom the Software is
42
- furnished to do so, subject to the following conditions:
43
-
44
- The above copyright notice and this permission notice shall be included in all
45
- copies or substantial portions of the Software.
46
-
47
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
53
- SOFTWARE.
54
-
55
-
56
3
  ===
57
4
 
58
5
  # react-aria-components@1.17.0 (Apache-2.0)
@@ -262,11 +209,11 @@ SOFTWARE.
262
209
 
263
210
  ===
264
211
 
265
- # microcbor@1.2.1 (MIT)
212
+ # jotai@3.0.0 (MIT)
266
213
 
267
214
  MIT License
268
215
 
269
- Copyright (c) 2021 Joel Gustafson
216
+ Copyright (c) 2020 Poimandres
270
217
 
271
218
  Permission is hereby granted, free of charge, to any person obtaining a copy
272
219
  of this software and associated documentation files (the "Software"), to deal
@@ -289,11 +236,11 @@ SOFTWARE.
289
236
 
290
237
  ===
291
238
 
292
- # jotai-location@0.6.2 (MIT)
239
+ # rado@1.3.0-preview.6 (MIT)
293
240
 
294
- The MIT License (MIT)
241
+ MIT License
295
242
 
296
- Copyright (c) 2022 Daishi Kato
243
+ Copyright (c) 2024 Ben Merckx
297
244
 
298
245
  Permission is hereby granted, free of charge, to any person obtaining a copy
299
246
  of this software and associated documentation files (the "Software"), to deal
@@ -302,21 +249,47 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
302
249
  copies of the Software, and to permit persons to whom the Software is
303
250
  furnished to do so, subject to the following conditions:
304
251
 
305
- The above copyright notice and this permission notice shall be included in
306
- all copies or substantial portions of the Software.
252
+ The above copyright notice and this permission notice shall be included in all
253
+ copies or substantial portions of the Software.
307
254
 
308
255
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
309
256
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
310
257
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
311
258
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
312
259
  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.
260
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
261
+ SOFTWARE.
262
+
263
+ ===
264
+
265
+ # microcbor@1.2.1 (MIT)
266
+
267
+ MIT License
268
+
269
+ Copyright (c) 2021 Joel Gustafson
270
+
271
+ Permission is hereby granted, free of charge, to any person obtaining a copy
272
+ of this software and associated documentation files (the "Software"), to deal
273
+ in the Software without restriction, including without limitation the rights
274
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
275
+ copies of the Software, and to permit persons to whom the Software is
276
+ furnished to do so, subject to the following conditions:
277
+
278
+ The above copyright notice and this permission notice shall be included in all
279
+ copies or substantial portions of the Software.
280
+
281
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
282
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
283
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
284
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
285
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
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
@@ -730,11 +730,11 @@ THE SOFTWARE.
730
730
 
731
731
  ===
732
732
 
733
- # jotai-family@1.1.0 (MIT)
733
+ # jotai-location@0.6.2 (MIT)
734
734
 
735
- MIT License
735
+ The MIT License (MIT)
736
736
 
737
- Copyright (c) 2025 Poimandres
737
+ Copyright (c) 2022 Daishi Kato
738
738
 
739
739
  Permission is hereby granted, free of charge, to any person obtaining a copy
740
740
  of this software and associated documentation files (the "Software"), to deal
@@ -743,25 +743,25 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
743
743
  copies of the Software, and to permit persons to whom the Software is
744
744
  furnished to do so, subject to the following conditions:
745
745
 
746
- The above copyright notice and this permission notice shall be included in all
747
- copies or substantial portions of the Software.
746
+ The above copyright notice and this permission notice shall be included in
747
+ all copies or substantial portions of the Software.
748
748
 
749
749
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
750
750
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
751
751
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
752
752
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
753
753
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
754
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
755
- SOFTWARE.
754
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
755
+ THE SOFTWARE.
756
756
 
757
757
 
758
758
  ===
759
759
 
760
- # @tiptap/core@3.30.5 (MIT)
760
+ # jotai-family@1.1.0 (MIT)
761
761
 
762
762
  MIT License
763
763
 
764
- Copyright (c) 2025, Tiptap GmbH
764
+ Copyright (c) 2025 Poimandres
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
@@ -782,29 +782,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
782
782
  SOFTWARE.
783
783
 
784
784
 
785
- ===
786
-
787
- # htmlparser2@9.1.0 (MIT)
788
-
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
-
808
785
  ===
809
786
 
810
787
  # react-aria@3.48.0 (Apache-2.0)
@@ -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
+ # @tiptap/extension-list@3.30.5 (MIT)
1045
1022
 
1046
1023
  MIT License
1047
1024
 
1048
- Copyright (c) 2019-2025 Evert Pot
1025
+ Copyright (c) 2025, Tiptap GmbH
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,41 +1045,57 @@ 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.
1048
+ # htmlparser2@9.1.0 (MIT)
1084
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.
1085
1068
 
1086
1069
  ===
1087
1070
 
1088
- # domhandler@5.0.3 (BSD-2-Clause)
1071
+ # use-sync-external-store@1.6.0 (MIT)
1089
1072
 
1090
- Copyright (c) Felix Böhm
1091
- All rights reserved.
1073
+ MIT License
1092
1074
 
1093
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1075
+ Copyright (c) Meta Platforms, Inc. and affiliates.
1094
1076
 
1095
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1077
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1078
+ of this software and associated documentation files (the "Software"), to deal
1079
+ in the Software without restriction, including without limitation the rights
1080
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1081
+ copies of the Software, and to permit persons to whom the Software is
1082
+ furnished to do so, subject to the following conditions:
1096
1083
 
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.
1084
+ The above copyright notice and this permission notice shall be included in all
1085
+ copies or substantial portions of the Software.
1098
1086
 
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.
1087
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1088
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1089
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1090
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1091
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1092
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1093
+ SOFTWARE.
1101
1094
 
1102
1095
 
1103
1096
  ===
1104
1097
 
1105
- # entities@4.5.0 (BSD-2-Clause)
1098
+ # domutils@3.2.2 (BSD-2-Clause)
1106
1099
 
1107
1100
  Copyright (c) Felix Böhm
1108
1101
  All rights reserved.
@@ -1119,11 +1112,11 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1119
1112
 
1120
1113
  ===
1121
1114
 
1122
- # use-sync-external-store@1.6.0 (MIT)
1115
+ # fp16@1.0.0 (MIT)
1123
1116
 
1124
1117
  MIT License
1125
1118
 
1126
- Copyright (c) Meta Platforms, Inc. and affiliates.
1119
+ Copyright (c) 2021 Joel Gustafson
1127
1120
 
1128
1121
  Permission is hereby granted, free of charge, to any person obtaining a copy
1129
1122
  of this software and associated documentation files (the "Software"), to deal
@@ -1146,29 +1139,36 @@ SOFTWARE.
1146
1139
 
1147
1140
  ===
1148
1141
 
1149
- # fp16@1.0.0 (MIT)
1142
+ # domhandler@5.0.3 (BSD-2-Clause)
1150
1143
 
1151
- MIT License
1144
+ Copyright (c) Felix Böhm
1145
+ All rights reserved.
1152
1146
 
1153
- Copyright (c) 2021 Joel Gustafson
1147
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1154
1148
 
1155
- Permission is hereby granted, free of charge, to any person obtaining a copy
1156
- of this software and associated documentation files (the "Software"), to deal
1157
- in the Software without restriction, including without limitation the rights
1158
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1159
- copies of the Software, and to permit persons to whom the Software is
1160
- furnished to do so, subject to the following conditions:
1149
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1161
1150
 
1162
- The above copyright notice and this permission notice shall be included in all
1163
- copies or substantial portions of the Software.
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.
1164
1152
 
1165
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1166
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1167
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1168
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1169
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1170
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1171
- SOFTWARE.
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
1172
 
1173
1173
 
1174
1174
  ===
@@ -1190,7 +1190,7 @@ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1190
1190
 
1191
1191
  ===
1192
1192
 
1193
- # @internationalized/number@3.6.6 (Apache-2.0)
1193
+ # @internationalized/string@3.2.8 (Apache-2.0)
1194
1194
 
1195
1195
  Apache License
1196
1196
  Version 2.0, January 2004
@@ -1397,7 +1397,7 @@ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1397
1397
 
1398
1398
  ===
1399
1399
 
1400
- # @internationalized/string@3.2.8 (Apache-2.0)
1400
+ # @internationalized/number@3.6.6 (Apache-2.0)
1401
1401
 
1402
1402
  Apache License
1403
1403
  Version 2.0, January 2004
@@ -44,8 +44,6 @@ function NextPreviews({
44
44
  if (widget) registerPreviewWidget();
45
45
  }, [widget]);
46
46
  if (!widget) return null;
47
- const isFullPage = window.parent === window;
48
- if (isFullPage && isPreviewing && !previewDisabled) return null;
49
47
  return /* @__PURE__ */ jsx(
50
48
  "alinea-preview",
51
49
  {
@@ -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
 
@@ -5087,6 +5087,7 @@ declare module 'alinea/core/TextDoc' {
5087
5087
  export interface ElementNode {
5088
5088
  _type: string;
5089
5089
  content?: TextDoc;
5090
+ marks?: Array<Mark>;
5090
5091
  [key: string]: any;
5091
5092
  }
5092
5093
  export namespace ElementNode {
@@ -6902,7 +6903,6 @@ declare module 'alinea/dashboard/atoms/activity' {
6902
6903
  import { type Activity } from 'alinea/dashboard/boot/ActivityEvent';
6903
6904
  export interface DashboardActivity {
6904
6905
  items: Array<Activity>;
6905
- isFetchingUpdates: boolean;
6906
6906
  isMutating: boolean;
6907
6907
  hasFailed: boolean;
6908
6908
  hasBlocked: boolean;
@@ -7254,7 +7254,7 @@ declare module 'alinea/dashboard/atoms/entry' {
7254
7254
  preferredEntry: Atom<Entry<Record<string, unknown>>>;
7255
7255
  selectedEntry: Atom<Promise<Entry<Record<string, unknown>>>>;
7256
7256
  historyReady: Atom<Promise<import("alinea/core/Connection").Revision[]>>;
7257
- history: Atom<import("alinea/core/Connection").Revision[]>;
7257
+ historyState: Atom<readonly [false, import("alinea/core/Connection").Revision[]] | readonly [true, import("alinea/core/Connection").Revision[] | undefined]>;
7258
7258
  selectedNode: Atom<Promise<ReactiveNode<object>>>;
7259
7259
  richTextImages: Atom<Promise<Map<string, ResolvedEditorImage>>>;
7260
7260
  anchors: Atom<Promise<import("alinea/core/Field").EntryAnchorTarget[]>>;
@@ -7353,9 +7353,7 @@ declare module 'alinea/dashboard/atoms/entry' {
7353
7353
  readonly id: string;
7354
7354
  readonly data: Atom<EntryData>;
7355
7355
  constructor(id: string, data: Atom<EntryData>);
7356
- previousVersionsOpen: import("jotai").PrimitiveAtom<boolean> & {
7357
- init: boolean;
7358
- };
7356
+ previousVersionsOpen: import("jotai").WritableAtom<boolean, [open: boolean], void>;
7359
7357
  incomingReferencesReady: Atom<Promise<{
7360
7358
  references: {
7361
7359
  reference: EntryReference;
@@ -7927,6 +7925,7 @@ declare module 'alinea/dashboard/atoms/root' {
7927
7925
  children: (id: string) => Atom<Promise<TreeEntryAtoms[]>>;
7928
7926
  item: (id: string) => Atom<RootTreeItem>;
7929
7927
  selectedItem: Atom<RootTreeItem | undefined>;
7928
+ canCreate: Atom<boolean>;
7930
7929
  ready: Atom<Promise<{
7931
7930
  expandedKeys: Set<string>;
7932
7931
  items: RootTreeNode[];
@@ -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;
@@ -9460,6 +9459,11 @@ declare module 'alinea/field/list/ListField' {
9460
9459
  inline?: boolean;
9461
9460
  /** Hide this list field */
9462
9461
  hidden?: boolean;
9462
+ /** Mark the field as invalid while it has fewer items */
9463
+ min?: number;
9464
+ /** Hide the create actions once the list has this many items and mark
9465
+ * the field as invalid while it has more */
9466
+ max?: number;
9463
9467
  /** The initial value of the field */
9464
9468
  initialValue?: Array<InferStoredValue<Definitions>>;
9465
9469
  /** Validate the given value */
@@ -9480,6 +9484,7 @@ declare module 'alinea/field/list/ListField.stories' {
9480
9484
 
9481
9485
  import '#/theme.css';
9482
9486
  export function Example(): import("react").JSX.Element | null;
9487
+ export function MinMax(): import("react").JSX.Element;
9483
9488
  const _default: {
9484
9489
  title: string;
9485
9490
  };
@@ -9931,6 +9936,7 @@ declare module 'alinea/field/richtext/PickTextAnchor' {
9931
9936
  declare module 'alinea/field/richtext/PickTextLink' {
9932
9937
 
9933
9938
  import { Reference } from 'alinea/core/Reference';
9939
+ import type { EntryPickerConditions } from 'alinea/picker/entry/EntryPicker';
9934
9940
  export interface PickerValue {
9935
9941
  link?: Reference;
9936
9942
  alt?: string;
@@ -9960,9 +9966,10 @@ declare module 'alinea/field/richtext/PickTextLink' {
9960
9966
  }
9961
9967
  export interface PickTextLinkProps {
9962
9968
  picker: PickTextLinkState;
9969
+ linkOptions?: EntryPickerConditions;
9963
9970
  }
9964
9971
  export function usePickTextLink(): PickTextLinkState;
9965
- export function PickTextLink({ picker }: PickTextLinkProps): import("react").JSX.Element | null;
9972
+ export function PickTextLink({ picker, linkOptions }: PickTextLinkProps): import("react").JSX.Element | null;
9966
9973
 
9967
9974
  }
9968
9975
 
@@ -10147,6 +10154,7 @@ declare module 'alinea/field/richtext/RichTextField' {
10147
10154
  import { RichTextField } from 'alinea/core/field/RichTextField';
10148
10155
  import type { Schema } from 'alinea/core/Schema';
10149
10156
  import type { TextDoc } from 'alinea/core/TextDoc';
10157
+ import type { EntryPickerConditions } from 'alinea/picker/entry/EntryPicker';
10150
10158
  import type { AnyExtension } from '@tiptap/core';
10151
10159
  import type { ReactNode } from 'react';
10152
10160
  import type { ToolbarConfig } from 'alinea/field/richtext/Toolbar';
@@ -10175,6 +10183,8 @@ declare module 'alinea/field/richtext/RichTextField' {
10175
10183
  enableTables?: boolean;
10176
10184
  /** Enable inserting and editing images */
10177
10185
  enableImages?: boolean;
10186
+ /** Constrain the entries that can be picked when inserting a link */
10187
+ link?: EntryPickerConditions;
10178
10188
  /** Configure the toolbar layout and items */
10179
10189
  toolbar?: ToolbarConfig;
10180
10190
  /** Configure tiptap extensions */
@@ -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.7",
5
5
  description: "Headless git-based CMS",
6
6
  repository: "github:alineacms/alinea",
7
7
  license: "MIT",