alinea 2.0.0-preview.2 → 2.0.0-preview.4
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/dist/.init/content/pages/welcome.json +1 -1
- package/dist/LICENSES.md +157 -103
- package/dist/adapter/next/DevRemote.js +10 -2
- package/dist/adapter/next/previews.js +4 -1
- package/dist/adapter/next/previews.spec.d.ts +1 -0
- package/dist/backend/Handler.js +14 -7
- package/dist/backend/api/BasicAuth.d.ts +1 -1
- package/dist/backend/api/BasicAuth.js +14 -14
- package/dist/backend/api/OAuth2.d.ts +3 -3
- package/dist/backend/api/OAuth2.js +7 -4
- package/dist/bundled.d.ts +159 -42
- package/dist/chunks/{chunk-Y7XOMJOC.js → chunk-CFNRVI3Y.js} +220 -247
- package/dist/chunks/chunk-D6UJHBJJ.js +183 -0
- package/dist/chunks/chunk-TIJTT5ZI.js +228 -0
- package/dist/chunks/{chunk-UVOEM4AH.js → chunk-XMOVGDFI.js} +1 -1
- package/dist/cli/Serve.js +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/serve/LocalAuth.js +1 -1
- package/dist/cloud/AuthResult.d.ts +2 -0
- package/dist/cloud/CloudHandshake.d.ts +7 -0
- package/dist/cloud/CloudHandshake.js +64 -0
- package/dist/cloud/CloudRemote.d.ts +4 -1
- package/dist/cloud/CloudRemote.js +21 -3
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Calendar.js +6 -6
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/ComboBox.js +11 -11
- package/dist/components/DateField.js +3 -3
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/DateRangePicker.js +6 -6
- package/dist/components/Disclosure.js +8 -8
- package/dist/components/Label.js +5 -5
- package/dist/components/List.js +34 -34
- package/dist/components/Menu.js +4 -4
- package/dist/components/Modal.js +3 -3
- package/dist/components/MultipleSelect.js +25 -25
- package/dist/components/NumberField.js +6 -6
- package/dist/components/ProgressCircle.js +2 -2
- package/dist/components/RadioGroup.js +2 -2
- package/dist/components/SearchField.js +3 -3
- package/dist/components/Select.js +7 -7
- package/dist/components/Surface.js +2 -2
- package/dist/components/Table.js +7 -7
- package/dist/components/Tabs.js +4 -4
- package/dist/components/TagGroup.js +2 -2
- package/dist/components/TextField.js +6 -6
- package/dist/components/TimeField.js +2 -2
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/Toggle.js +2 -2
- package/dist/components/Toolbar.js +2 -2
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Tree.d.ts +4 -2
- package/dist/components/Tree.js +18 -4
- package/dist/core/Connection.d.ts +7 -4
- package/dist/core/Entry.d.ts +6 -0
- package/dist/core/Entry.js +10 -0
- package/dist/core/Graph.d.ts +1 -1
- package/dist/core/Id.d.ts +1 -0
- package/dist/core/Id.js +8 -0
- package/dist/core/Infer.d.ts +8 -1
- package/dist/core/db/EntryAliases.js +1 -4
- package/dist/core/db/EntryResolver.js +6 -6
- package/dist/core/db/EntryTransaction.js +1 -0
- package/dist/core/db/Operation.d.ts +2 -2
- package/dist/core/db/Operation.js +15 -4
- package/dist/dashboard/App.js +37 -17
- package/dist/dashboard/StoryProvider.js +2 -2
- package/dist/dashboard/app/AccessDenied.d.ts +16 -1
- package/dist/dashboard/app/AccessDenied.js +21 -12
- package/dist/dashboard/app/ActivityStatus.js +19 -19
- package/dist/dashboard/app/AppearanceToggle.d.ts +1 -0
- package/dist/dashboard/app/AppearanceToggle.js +43 -0
- package/dist/dashboard/app/AuthView.d.ts +1 -1
- package/dist/dashboard/app/AuthView.js +16 -18
- package/dist/dashboard/app/Badge.js +2 -2
- package/dist/dashboard/app/CompactField.js +17 -17
- package/dist/dashboard/app/DashboardErrorBoundary.js +22 -10
- package/dist/dashboard/app/DashboardLayout.js +15 -8
- package/dist/dashboard/app/DashboardMeta.d.ts +2 -1
- package/dist/dashboard/app/DashboardMeta.js +20 -5
- package/dist/dashboard/app/EntryFields.js +6 -6
- package/dist/dashboard/app/EntryHeader.js +25 -25
- package/dist/dashboard/app/EntryReferences.js +16 -16
- package/dist/dashboard/app/EntrySidebar.js +26 -26
- package/dist/dashboard/app/EntrySidebarPreview.js +61 -34
- package/dist/dashboard/app/EntrySidebarPreview.story.d.ts +6 -1
- package/dist/dashboard/app/EntryTranslationBanner.js +8 -8
- package/dist/dashboard/app/Explorer.d.ts +2 -1
- package/dist/dashboard/app/Explorer.js +79 -67
- package/dist/dashboard/app/ExplorerCards.js +62 -66
- package/dist/dashboard/app/ExplorerFileCard.js +20 -20
- package/dist/dashboard/app/ExplorerList.js +22 -22
- package/dist/dashboard/app/ExplorerModal.js +3 -3
- package/dist/dashboard/app/ExplorerPickerContent.js +2 -2
- package/dist/dashboard/app/ExplorerTable.js +68 -68
- package/dist/dashboard/app/ImagePicker.js +7 -7
- package/dist/dashboard/app/LinkPicker.js +44 -24
- package/dist/dashboard/app/LocaleMenu.js +5 -7
- package/dist/dashboard/app/SidebarLayout.js +7 -7
- package/dist/dashboard/app/SidebarTree.js +66 -74
- package/dist/dashboard/app/WorkspaceMenu.d.ts +10 -3
- package/dist/dashboard/app/WorkspaceMenu.js +85 -64
- package/dist/dashboard/app/WorkspaceMenu.stories.d.ts +2 -0
- package/dist/dashboard/app/WorkspaceRoots.d.ts +3 -1
- package/dist/dashboard/app/WorkspaceRoots.js +82 -107
- package/dist/dashboard/app/editor/FileEditor.js +31 -31
- package/dist/dashboard/app/editor/FilePreview.js +4 -4
- package/dist/dashboard/app/editor/MediaAltField.view.js +4 -4
- package/dist/dashboard/app/modals/CreateEntry.js +14 -14
- package/dist/dashboard/app/pages/EntryPage.js +28 -30
- package/dist/dashboard/app/pages/RootPage.js +4 -4
- package/dist/dashboard/app/pages/SplashPage.d.ts +3 -0
- package/dist/dashboard/app/pages/SplashPage.js +414 -0
- package/dist/dashboard/app/pages/UsersPage.js +35 -35
- package/dist/dashboard/app/ui/DashboardModal.js +19 -19
- package/dist/dashboard/app/ui/Rail.js +3 -3
- package/dist/dashboard/atoms/ReactiveNode.js +1 -1
- package/dist/dashboard/atoms/activity.js +2 -3
- package/dist/dashboard/atoms/auth.d.ts +2 -0
- package/dist/dashboard/atoms/auth.js +6 -2
- package/dist/dashboard/atoms/config.js +1 -1
- package/dist/dashboard/atoms/core.js +2 -2
- package/dist/dashboard/atoms/create.js +1 -1
- package/dist/dashboard/atoms/dashboard.js +2 -2
- package/dist/dashboard/atoms/editor.js +1 -1
- package/dist/dashboard/atoms/entry.js +2 -2
- package/dist/dashboard/atoms/explorer.d.ts +1 -3
- package/dist/dashboard/atoms/explorer.js +7 -9
- package/dist/dashboard/atoms/graph.d.ts +1 -0
- package/dist/dashboard/atoms/graph.js +7 -2
- package/dist/dashboard/atoms/link.js +2 -2
- package/dist/dashboard/atoms/nav.d.ts +4 -3
- package/dist/dashboard/atoms/nav.js +10 -5
- package/dist/dashboard/atoms/preview.js +1 -1
- package/dist/dashboard/atoms/root.js +2 -2
- package/dist/dashboard/atoms/upload.js +1 -1
- package/dist/dashboard/atoms/user.d.ts +1 -1
- package/dist/dashboard/atoms/user.js +8 -6
- package/dist/dashboard/atoms/utils.js +2 -2
- package/dist/dashboard/boot/Boot.js +2 -4
- package/dist/dashboard/boot/DashboardWorker.js +34 -29
- package/dist/dashboard/editor/UseField.js +6 -6
- package/dist/dashboard/fixture/cms.d.ts +12 -0
- package/dist/dashboard/fixture/cms.js +53 -2
- package/dist/dashboard/hook/UseGraph.js +4 -4
- package/dist/dashboard/hook/UseRoot.js +4 -4
- package/dist/dashboard/hooks.js +16 -16
- package/dist/field/check/CheckField.view.js +2 -2
- package/dist/field/code/CodeField.view.js +15 -15
- package/dist/field/link/EntryLink.d.ts +1 -1
- package/dist/field/link/EntryLink.js +1 -0
- package/dist/field/link/Link.js +1 -0
- package/dist/field/link/LinkField.d.ts +5 -0
- package/dist/field/link/LinkField.view.js +81 -64
- package/dist/field/list/ListField.view.js +26 -26
- package/dist/field/localiser/LocalisedField.view.js +76 -5
- package/dist/field/metadata/MetadataField.d.ts +2 -0
- package/dist/field/metadata/MetadataField.js +2 -1
- package/dist/field/metadata/MetadataField.view.js +20 -20
- package/dist/field/richtext/PickTextLink.js +6 -6
- package/dist/field/richtext/RichTextBlock.js +6 -6
- package/dist/field/richtext/RichTextBlocks.js +1 -1
- package/dist/field/richtext/RichTextExtensions.js +23 -23
- package/dist/field/richtext/RichTextField.view.js +9 -9
- package/dist/field/richtext/RichTextState.js +1 -1
- package/dist/field/text/TextField.view.js +2 -2
- package/dist/index.css +436 -28
- package/dist/preview/PreviewMessage.d.ts +3 -0
- package/dist/preview/PreviewMessage.js +1 -0
- package/dist/preview/RegisterPreview.d.ts +1 -1
- package/dist/preview/RegisterPreview.js +28 -10
- package/dist/preview/react.d.ts +5 -1
- package/dist/preview/react.js +12 -9
- package/dist/preview/widget.js +6 -12
- package/dist/query.d.ts +7 -7
- package/package.json +1 -1
- package/dist/chunks/chunk-STAJCW4Z.js +0 -322
- package/dist/chunks/chunk-U4VOHNR2.js +0 -210
package/dist/LICENSES.md
CHANGED
|
@@ -28,11 +28,11 @@ SOFTWARE.
|
|
|
28
28
|
|
|
29
29
|
===
|
|
30
30
|
|
|
31
|
-
#
|
|
31
|
+
# jotai@3.0.0 (MIT)
|
|
32
32
|
|
|
33
33
|
MIT License
|
|
34
34
|
|
|
35
|
-
Copyright (c)
|
|
35
|
+
Copyright (c) 2020 Poimandres
|
|
36
36
|
|
|
37
37
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
38
38
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -260,6 +260,33 @@ SOFTWARE.
|
|
|
260
260
|
limitations under the License.
|
|
261
261
|
|
|
262
262
|
|
|
263
|
+
===
|
|
264
|
+
|
|
265
|
+
# jotai-family@1.1.0 (MIT)
|
|
266
|
+
|
|
267
|
+
MIT License
|
|
268
|
+
|
|
269
|
+
Copyright (c) 2025 Poimandres
|
|
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.
|
|
288
|
+
|
|
289
|
+
|
|
263
290
|
===
|
|
264
291
|
|
|
265
292
|
# react-stately@3.46.0 (Apache-2.0)
|
|
@@ -467,6 +494,60 @@ SOFTWARE.
|
|
|
467
494
|
limitations under the License.
|
|
468
495
|
|
|
469
496
|
|
|
497
|
+
===
|
|
498
|
+
|
|
499
|
+
# microcbor@1.2.1 (MIT)
|
|
500
|
+
|
|
501
|
+
MIT License
|
|
502
|
+
|
|
503
|
+
Copyright (c) 2021 Joel Gustafson
|
|
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
|
+
# @tiptap/core@3.30.5 (MIT)
|
|
527
|
+
|
|
528
|
+
MIT License
|
|
529
|
+
|
|
530
|
+
Copyright (c) 2025, Tiptap GmbH
|
|
531
|
+
|
|
532
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
533
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
534
|
+
in the Software without restriction, including without limitation the rights
|
|
535
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
536
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
537
|
+
furnished to do so, subject to the following conditions:
|
|
538
|
+
|
|
539
|
+
The above copyright notice and this permission notice shall be included in all
|
|
540
|
+
copies or substantial portions of the Software.
|
|
541
|
+
|
|
542
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
543
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
544
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
545
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
546
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
547
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
548
|
+
SOFTWARE.
|
|
549
|
+
|
|
550
|
+
|
|
470
551
|
===
|
|
471
552
|
|
|
472
553
|
# react-aria-components@1.17.0 (Apache-2.0)
|
|
@@ -674,33 +755,6 @@ SOFTWARE.
|
|
|
674
755
|
limitations under the License.
|
|
675
756
|
|
|
676
757
|
|
|
677
|
-
===
|
|
678
|
-
|
|
679
|
-
# @tiptap/core@3.30.5 (MIT)
|
|
680
|
-
|
|
681
|
-
MIT License
|
|
682
|
-
|
|
683
|
-
Copyright (c) 2025, Tiptap GmbH
|
|
684
|
-
|
|
685
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
686
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
687
|
-
in the Software without restriction, including without limitation the rights
|
|
688
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
689
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
690
|
-
furnished to do so, subject to the following conditions:
|
|
691
|
-
|
|
692
|
-
The above copyright notice and this permission notice shall be included in all
|
|
693
|
-
copies or substantial portions of the Software.
|
|
694
|
-
|
|
695
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
696
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
697
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
698
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
699
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
700
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
701
|
-
SOFTWARE.
|
|
702
|
-
|
|
703
|
-
|
|
704
758
|
===
|
|
705
759
|
|
|
706
760
|
# jotai-location@0.6.2 (MIT)
|
|
@@ -728,33 +782,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
728
782
|
THE SOFTWARE.
|
|
729
783
|
|
|
730
784
|
|
|
731
|
-
===
|
|
732
|
-
|
|
733
|
-
# @badgateway/oauth2-client@3.3.1 (MIT)
|
|
734
|
-
|
|
735
|
-
MIT License
|
|
736
|
-
|
|
737
|
-
Copyright (c) 2019-2025 Evert Pot
|
|
738
|
-
|
|
739
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
740
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
741
|
-
in the Software without restriction, including without limitation the rights
|
|
742
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
743
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
744
|
-
furnished to do so, subject to the following conditions:
|
|
745
|
-
|
|
746
|
-
The above copyright notice and this permission notice shall be included in all
|
|
747
|
-
copies or substantial portions of the Software.
|
|
748
|
-
|
|
749
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
750
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
751
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
752
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
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.
|
|
756
|
-
|
|
757
|
-
|
|
758
785
|
===
|
|
759
786
|
|
|
760
787
|
# react-aria@3.48.0 (Apache-2.0)
|
|
@@ -962,33 +989,6 @@ SOFTWARE.
|
|
|
962
989
|
limitations under the License.
|
|
963
990
|
|
|
964
991
|
|
|
965
|
-
===
|
|
966
|
-
|
|
967
|
-
# @tiptap/extension-list@3.30.5 (MIT)
|
|
968
|
-
|
|
969
|
-
MIT License
|
|
970
|
-
|
|
971
|
-
Copyright (c) 2025, Tiptap GmbH
|
|
972
|
-
|
|
973
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
974
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
975
|
-
in the Software without restriction, including without limitation the rights
|
|
976
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
977
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
978
|
-
furnished to do so, subject to the following conditions:
|
|
979
|
-
|
|
980
|
-
The above copyright notice and this permission notice shall be included in all
|
|
981
|
-
copies or substantial portions of the Software.
|
|
982
|
-
|
|
983
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
984
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
985
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
986
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
987
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
988
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
989
|
-
SOFTWARE.
|
|
990
|
-
|
|
991
|
-
|
|
992
992
|
===
|
|
993
993
|
|
|
994
994
|
# htmlparser2@9.1.0 (MIT)
|
|
@@ -1014,11 +1014,11 @@ IN THE SOFTWARE.
|
|
|
1014
1014
|
|
|
1015
1015
|
===
|
|
1016
1016
|
|
|
1017
|
-
#
|
|
1017
|
+
# @badgateway/oauth2-client@3.3.1 (MIT)
|
|
1018
1018
|
|
|
1019
1019
|
MIT License
|
|
1020
1020
|
|
|
1021
|
-
Copyright (c)
|
|
1021
|
+
Copyright (c) 2019-2025 Evert Pot
|
|
1022
1022
|
|
|
1023
1023
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1024
1024
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1058,11 +1058,45 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
1058
1058
|
|
|
1059
1059
|
===
|
|
1060
1060
|
|
|
1061
|
-
#
|
|
1061
|
+
# domhandler@5.0.3 (BSD-2-Clause)
|
|
1062
|
+
|
|
1063
|
+
Copyright (c) Felix Böhm
|
|
1064
|
+
All rights reserved.
|
|
1065
|
+
|
|
1066
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
1067
|
+
|
|
1068
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
1069
|
+
|
|
1070
|
+
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.
|
|
1071
|
+
|
|
1072
|
+
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,
|
|
1073
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
===
|
|
1077
|
+
|
|
1078
|
+
# entities@4.5.0 (BSD-2-Clause)
|
|
1079
|
+
|
|
1080
|
+
Copyright (c) Felix Böhm
|
|
1081
|
+
All rights reserved.
|
|
1082
|
+
|
|
1083
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
1084
|
+
|
|
1085
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
1086
|
+
|
|
1087
|
+
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.
|
|
1088
|
+
|
|
1089
|
+
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,
|
|
1090
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
===
|
|
1094
|
+
|
|
1095
|
+
# @tiptap/extension-list@3.30.5 (MIT)
|
|
1062
1096
|
|
|
1063
1097
|
MIT License
|
|
1064
1098
|
|
|
1065
|
-
Copyright (c)
|
|
1099
|
+
Copyright (c) 2025, Tiptap GmbH
|
|
1066
1100
|
|
|
1067
1101
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1068
1102
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1085,36 +1119,56 @@ SOFTWARE.
|
|
|
1085
1119
|
|
|
1086
1120
|
===
|
|
1087
1121
|
|
|
1088
|
-
#
|
|
1122
|
+
# fp16@1.0.0 (MIT)
|
|
1089
1123
|
|
|
1090
|
-
|
|
1091
|
-
All rights reserved.
|
|
1124
|
+
MIT License
|
|
1092
1125
|
|
|
1093
|
-
|
|
1126
|
+
Copyright (c) 2021 Joel Gustafson
|
|
1094
1127
|
|
|
1095
|
-
|
|
1128
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1129
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1130
|
+
in the Software without restriction, including without limitation the rights
|
|
1131
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1132
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1133
|
+
furnished to do so, subject to the following conditions:
|
|
1096
1134
|
|
|
1097
|
-
|
|
1135
|
+
The above copyright notice and this permission notice shall be included in all
|
|
1136
|
+
copies or substantial portions of the Software.
|
|
1098
1137
|
|
|
1099
|
-
|
|
1100
|
-
|
|
1138
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1139
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1140
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1141
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1142
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1143
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1144
|
+
SOFTWARE.
|
|
1101
1145
|
|
|
1102
1146
|
|
|
1103
1147
|
===
|
|
1104
1148
|
|
|
1105
|
-
#
|
|
1149
|
+
# use-sync-external-store@1.6.0 (MIT)
|
|
1106
1150
|
|
|
1107
|
-
|
|
1108
|
-
All rights reserved.
|
|
1151
|
+
MIT License
|
|
1109
1152
|
|
|
1110
|
-
|
|
1153
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1111
1154
|
|
|
1112
|
-
|
|
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:
|
|
1113
1161
|
|
|
1114
|
-
|
|
1162
|
+
The above copyright notice and this permission notice shall be included in all
|
|
1163
|
+
copies or substantial portions of the Software.
|
|
1115
1164
|
|
|
1116
|
-
|
|
1117
|
-
|
|
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.
|
|
1118
1172
|
|
|
1119
1173
|
|
|
1120
1174
|
===
|
|
@@ -12,8 +12,16 @@ function createDevRemote(context, config) {
|
|
|
12
12
|
applyAuth: context.applyAuth
|
|
13
13
|
});
|
|
14
14
|
const auth = {
|
|
15
|
-
async authenticate() {
|
|
16
|
-
|
|
15
|
+
async authenticate(_request, options) {
|
|
16
|
+
const user = await client.user();
|
|
17
|
+
if (!user)
|
|
18
|
+
throw new MissingCredentialsError(
|
|
19
|
+
"Missing forwarded development authentication"
|
|
20
|
+
);
|
|
21
|
+
return Response.json({
|
|
22
|
+
type: AuthResultType.Authenticated,
|
|
23
|
+
...await options.authenticated(user)
|
|
24
|
+
});
|
|
17
25
|
},
|
|
18
26
|
async verify() {
|
|
19
27
|
const user = await client.user();
|
|
@@ -24,6 +24,7 @@ function NextPreviews({
|
|
|
24
24
|
if (root) entryParams.set("root", root);
|
|
25
25
|
const editUrl = new URL(`#/edit?${entryParams}`, adminUrl);
|
|
26
26
|
const { isPreviewing } = usePreview({
|
|
27
|
+
hostOrigin: adminUrl.origin,
|
|
27
28
|
async preview(update) {
|
|
28
29
|
if (!update) return;
|
|
29
30
|
const success = await setPreviewCookies(update.payload);
|
|
@@ -37,12 +38,14 @@ function NextPreviews({
|
|
|
37
38
|
if (widget) registerPreviewWidget();
|
|
38
39
|
}, [widget]);
|
|
39
40
|
if (!widget) return null;
|
|
41
|
+
const isFullPage = window.parent === window;
|
|
42
|
+
if (isFullPage && isPreviewing && !previewDisabled) return null;
|
|
40
43
|
return /* @__PURE__ */ jsx(
|
|
41
44
|
"alinea-preview",
|
|
42
45
|
{
|
|
43
46
|
adminUrl: String(adminUrl),
|
|
44
47
|
editUrl: String(editUrl),
|
|
45
|
-
livePreview: isLoading ? "loading" :
|
|
48
|
+
livePreview: isPreviewing ? isLoading ? "loading" : previewDisabled ? "warning" : "connected" : void 0
|
|
46
49
|
}
|
|
47
50
|
);
|
|
48
51
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/backend/Handler.js
CHANGED
|
@@ -59,9 +59,19 @@ function createHandler({
|
|
|
59
59
|
let cnx = remote(context);
|
|
60
60
|
let userCtx;
|
|
61
61
|
if (auth) {
|
|
62
|
-
return cnx.authenticate(request, {
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
return await cnx.authenticate(request, {
|
|
63
|
+
async authenticated(user) {
|
|
64
|
+
try {
|
|
65
|
+
return {
|
|
66
|
+
user: await cnx.enrichUser(user),
|
|
67
|
+
capabilities: await cnx.capabilities()
|
|
68
|
+
};
|
|
69
|
+
} catch (cause) {
|
|
70
|
+
if (cause instanceof HttpError) throw cause;
|
|
71
|
+
throw new HttpError(500, "Failed to complete authentication", {
|
|
72
|
+
cause
|
|
73
|
+
});
|
|
74
|
+
}
|
|
65
75
|
}
|
|
66
76
|
});
|
|
67
77
|
}
|
|
@@ -72,10 +82,7 @@ function createHandler({
|
|
|
72
82
|
};
|
|
73
83
|
if (action === HandleAction.Capabilities && request.method === "GET") {
|
|
74
84
|
expectJson();
|
|
75
|
-
|
|
76
|
-
return Response.json(
|
|
77
|
-
capabilities ? await capabilities() : { users: typeof cnx.listUsers === "function" }
|
|
78
|
-
);
|
|
85
|
+
return Response.json(await cnx.capabilities());
|
|
79
86
|
}
|
|
80
87
|
if (action === HandleAction.Upload && request.method === "GET") {
|
|
81
88
|
const entryId = url.searchParams.get("entryId");
|
|
@@ -7,6 +7,6 @@ export interface Verifier {
|
|
|
7
7
|
export declare class BasicAuth implements AuthApi {
|
|
8
8
|
#private;
|
|
9
9
|
constructor(context: RequestContext, verify: Verifier);
|
|
10
|
-
authenticate(request: Request, options
|
|
10
|
+
authenticate(request: Request, options: AuthOptions): Promise<Response>;
|
|
11
11
|
verify(request: Request): Promise<AuthedContext>;
|
|
12
12
|
}
|
|
@@ -16,24 +16,24 @@ var BasicAuth = class {
|
|
|
16
16
|
this.#verify = verify;
|
|
17
17
|
}
|
|
18
18
|
async authenticate(request, options) {
|
|
19
|
+
let verified;
|
|
19
20
|
try {
|
|
20
|
-
|
|
21
|
-
const url = new URL(request.url);
|
|
22
|
-
const action = url.searchParams.get("auth");
|
|
23
|
-
switch (action) {
|
|
24
|
-
case AuthAction.Status: {
|
|
25
|
-
const user = options?.enrichUser ? await options.enrichUser(verified.user) : verified.user;
|
|
26
|
-
return Response.json({
|
|
27
|
-
type: AuthResultType.Authenticated,
|
|
28
|
-
user
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
default:
|
|
32
|
-
return new Response("Bad request", { status: 400 });
|
|
33
|
-
}
|
|
21
|
+
verified = await this.verify(request);
|
|
34
22
|
} catch {
|
|
35
23
|
return unauthorized();
|
|
36
24
|
}
|
|
25
|
+
const url = new URL(request.url);
|
|
26
|
+
const action = url.searchParams.get("auth");
|
|
27
|
+
switch (action) {
|
|
28
|
+
case AuthAction.Status: {
|
|
29
|
+
return Response.json({
|
|
30
|
+
type: AuthResultType.Authenticated,
|
|
31
|
+
...await options.authenticated(verified.user)
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
default:
|
|
35
|
+
return new Response("Bad request", { status: 400 });
|
|
36
|
+
}
|
|
37
37
|
}
|
|
38
38
|
async verify(request) {
|
|
39
39
|
const ctx = this.#context;
|
|
@@ -38,14 +38,14 @@ export interface OAuth2Options {
|
|
|
38
38
|
*/
|
|
39
39
|
revocationEndpoint?: string;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Validate provider-specific claims, including `iss` and `aud`.
|
|
42
42
|
* If the claims are invalid, an error should be thrown.
|
|
43
43
|
*/
|
|
44
|
-
validateClaims
|
|
44
|
+
validateClaims(claims: JWTPayload): void | Promise<void>;
|
|
45
45
|
}
|
|
46
46
|
export declare class OAuth2 implements AuthApi {
|
|
47
47
|
#private;
|
|
48
48
|
constructor(context: RequestContext, config: Config, options: OAuth2Options);
|
|
49
|
-
authenticate(request: Request, options
|
|
49
|
+
authenticate(request: Request, options: AuthOptions): Promise<Response>;
|
|
50
50
|
verify(request: Request): Promise<AuthedContext>;
|
|
51
51
|
}
|
|
@@ -469,6 +469,10 @@ var OAuth2 = class {
|
|
|
469
469
|
#jwks;
|
|
470
470
|
#validateClaims;
|
|
471
471
|
constructor(context, config, options) {
|
|
472
|
+
assert(
|
|
473
|
+
typeof options.validateClaims === "function",
|
|
474
|
+
"OAuth2 validateClaims is required"
|
|
475
|
+
);
|
|
472
476
|
this.#context = context;
|
|
473
477
|
this.#config = config;
|
|
474
478
|
this.#validateClaims = options.validateClaims;
|
|
@@ -514,10 +518,9 @@ var OAuth2 = class {
|
|
|
514
518
|
const [ctx, err] = await outcome(this.verify(request));
|
|
515
519
|
if (err instanceof Response) return err;
|
|
516
520
|
if (ctx) {
|
|
517
|
-
const user = options?.enrichUser ? await options.enrichUser(ctx.user) : ctx.user;
|
|
518
521
|
return Response.json({
|
|
519
522
|
type: AuthResultType.Authenticated,
|
|
520
|
-
user
|
|
523
|
+
...await options.authenticated(ctx.user)
|
|
521
524
|
});
|
|
522
525
|
}
|
|
523
526
|
const codeVerifier = await generateCodeVerifier();
|
|
@@ -615,7 +618,7 @@ var OAuth2 = class {
|
|
|
615
618
|
throw new MissingCredentialsError("Missing access token cookie");
|
|
616
619
|
const key = selectKey(jwks, accessToken);
|
|
617
620
|
const user = await verify(accessToken, key);
|
|
618
|
-
this.#validateClaims
|
|
621
|
+
await this.#validateClaims(user);
|
|
619
622
|
assert(user.exp, "Missing exp claim in access token");
|
|
620
623
|
const expiresSoon = user.exp - Math.floor(Date.now() / 1e3) < 30;
|
|
621
624
|
if (expiresSoon && refreshToken)
|
|
@@ -637,7 +640,7 @@ var OAuth2 = class {
|
|
|
637
640
|
cause: [cause, error]
|
|
638
641
|
});
|
|
639
642
|
});
|
|
640
|
-
this.#validateClaims
|
|
643
|
+
await this.#validateClaims(user);
|
|
641
644
|
throw Response.json(
|
|
642
645
|
{ type: AuthResultType.NeedsRefresh },
|
|
643
646
|
{
|