alinea 2.0.0-preview.6 → 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.
- package/dist/.init/content/pages/welcome.json +1 -1
- package/dist/LICENSES.md +64 -64
- package/dist/adapter/next/previews.js +0 -2
- package/dist/bundled.d.ts +16 -5
- package/dist/chunks/{chunk-7IOKMUKO.js → chunk-6P4UVRPH.js} +1 -1
- package/dist/cli/Serve.js +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cloud/CloudRemote.js +1 -1
- package/dist/components/Calendar.js +7 -7
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/ColorSwatchPicker.js +2 -2
- package/dist/components/ComboBox.js +13 -13
- package/dist/components/DateField.js +3 -3
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/DateRangePicker.js +7 -7
- package/dist/components/Disclosure.js +8 -8
- package/dist/components/Label.js +5 -5
- package/dist/components/List.js +52 -50
- package/dist/components/Menu.js +3 -3
- package/dist/components/Modal.js +2 -2
- package/dist/components/MultipleSelect.js +23 -23
- package/dist/components/NumberField.js +3 -3
- package/dist/components/ProgressCircle.js +4 -4
- package/dist/components/SearchField.js +9 -9
- package/dist/components/Select.js +8 -8
- package/dist/components/Surface.js +2 -2
- package/dist/components/Table.js +3 -3
- package/dist/components/Tabs.js +3 -3
- package/dist/components/TagGroup.js +3 -3
- package/dist/components/TextField.js +6 -6
- package/dist/components/TimeField.js +3 -3
- package/dist/components/Toolbar.js +2 -2
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Tree.js +6 -6
- package/dist/core/TextDoc.d.ts +1 -0
- package/dist/core/field/RichTextField.js +3 -3
- package/dist/dashboard/App.js +4 -2
- package/dist/dashboard/app/AccessDenied.js +4 -4
- package/dist/dashboard/app/ActivityStatus.js +14 -14
- package/dist/dashboard/app/AuthView.js +13 -13
- package/dist/dashboard/app/Badge.js +2 -2
- package/dist/dashboard/app/CompactField.js +9 -9
- package/dist/dashboard/app/DashboardErrorBoundary.js +6 -6
- package/dist/dashboard/app/DashboardLayout.js +6 -5
- package/dist/dashboard/app/EntryFields.js +2 -2
- package/dist/dashboard/app/EntryHeader.js +10 -10
- package/dist/dashboard/app/EntryReferences.js +8 -13
- package/dist/dashboard/app/EntrySidebar.js +27 -13
- package/dist/dashboard/app/EntrySidebarPreview.js +12 -12
- package/dist/dashboard/app/EntryTranslationBanner.js +5 -5
- package/dist/dashboard/app/Explorer.js +44 -44
- package/dist/dashboard/app/ExplorerCards.js +31 -31
- package/dist/dashboard/app/ExplorerFileCard.js +17 -17
- package/dist/dashboard/app/ExplorerList.js +12 -12
- package/dist/dashboard/app/ExplorerModal.js +4 -4
- package/dist/dashboard/app/ExplorerTable.js +44 -44
- package/dist/dashboard/app/LinkPicker.js +5 -5
- package/dist/dashboard/app/LocaleMenu.js +4 -4
- package/dist/dashboard/app/SidebarTree.js +40 -40
- package/dist/dashboard/app/WorkspaceMenu.js +14 -14
- package/dist/dashboard/app/WorkspaceRoots.js +22 -22
- package/dist/dashboard/app/editor/FileEditor.js +26 -26
- package/dist/dashboard/app/editor/FilePreview.js +5 -5
- package/dist/dashboard/app/modals/CreateEntry.js +5 -5
- package/dist/dashboard/app/pages/EntryPage.js +20 -20
- package/dist/dashboard/app/pages/SplashPage.js +45 -45
- package/dist/dashboard/app/pages/UsersPage.js +34 -34
- package/dist/dashboard/app/ui/DashboardModal.js +19 -19
- package/dist/dashboard/app/ui/Rail.js +3 -3
- package/dist/dashboard/app/ui/Sidebar.js +2 -2
- package/dist/dashboard/atoms/dashboard.js +2 -1
- package/dist/dashboard/atoms/editor.js +7 -0
- package/dist/dashboard/atoms/entry.d.ts +2 -4
- package/dist/dashboard/atoms/entry.js +8 -3
- package/dist/dashboard/atoms/root.d.ts +1 -0
- package/dist/dashboard/atoms/root.js +61 -35
- package/dist/dashboard/boot/Boot.js +7 -5
- package/dist/field/check/CheckField.view.js +2 -2
- package/dist/field/code/CodeField.view.js +12 -12
- package/dist/field/link/FileLink.js +1 -7
- package/dist/field/link/LinkField.view.js +35 -35
- package/dist/field/list/ListField.d.ts +5 -0
- package/dist/field/list/ListField.stories.d.ts +1 -0
- package/dist/field/list/ListField.view.js +59 -47
- package/dist/field/metadata/MetadataField.view.js +18 -18
- package/dist/field/richtext/PickTextLink.d.ts +3 -1
- package/dist/field/richtext/PickTextLink.js +7 -6
- package/dist/field/richtext/RichTextBlock.js +2 -2
- package/dist/field/richtext/RichTextDocument.js +8 -1
- package/dist/field/richtext/RichTextExtensions.js +23 -23
- package/dist/field/richtext/RichTextField.d.ts +3 -0
- package/dist/field/richtext/RichTextField.view.js +5 -5
- package/dist/field/richtext/RichTextInsertMenu.js +3 -3
- package/dist/index.css +17 -6
- package/dist/ui/RichText.js +33 -18
- package/package.json +1 -1
package/dist/LICENSES.md
CHANGED
|
@@ -1,32 +1,5 @@
|
|
|
1
1
|
This file contains the licenses of the bundled modules in this distribution.
|
|
2
2
|
|
|
3
|
-
===
|
|
4
|
-
|
|
5
|
-
# jotai@3.0.0 (MIT)
|
|
6
|
-
|
|
7
|
-
MIT License
|
|
8
|
-
|
|
9
|
-
Copyright (c) 2020 Poimandres
|
|
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
3
|
===
|
|
31
4
|
|
|
32
5
|
# react-aria-components@1.17.0 (Apache-2.0)
|
|
@@ -234,6 +207,33 @@ SOFTWARE.
|
|
|
234
207
|
limitations under the License.
|
|
235
208
|
|
|
236
209
|
|
|
210
|
+
===
|
|
211
|
+
|
|
212
|
+
# jotai@3.0.0 (MIT)
|
|
213
|
+
|
|
214
|
+
MIT License
|
|
215
|
+
|
|
216
|
+
Copyright (c) 2020 Poimandres
|
|
217
|
+
|
|
218
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
219
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
220
|
+
in the Software without restriction, including without limitation the rights
|
|
221
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
222
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
223
|
+
furnished to do so, subject to the following conditions:
|
|
224
|
+
|
|
225
|
+
The above copyright notice and this permission notice shall be included in all
|
|
226
|
+
copies or substantial portions of the Software.
|
|
227
|
+
|
|
228
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
229
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
230
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
231
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
232
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
233
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
234
|
+
SOFTWARE.
|
|
235
|
+
|
|
236
|
+
|
|
237
237
|
===
|
|
238
238
|
|
|
239
239
|
# rado@1.3.0-preview.6 (MIT)
|
|
@@ -730,11 +730,11 @@ SOFTWARE.
|
|
|
730
730
|
|
|
731
731
|
===
|
|
732
732
|
|
|
733
|
-
# jotai-
|
|
733
|
+
# jotai-location@0.6.2 (MIT)
|
|
734
734
|
|
|
735
|
-
MIT License
|
|
735
|
+
The MIT License (MIT)
|
|
736
736
|
|
|
737
|
-
Copyright (c)
|
|
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
|
|
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
|
|
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
|
-
# jotai-
|
|
760
|
+
# jotai-family@1.1.0 (MIT)
|
|
761
761
|
|
|
762
|
-
|
|
762
|
+
MIT License
|
|
763
763
|
|
|
764
|
-
Copyright (c)
|
|
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
|
|
@@ -770,16 +770,16 @@ 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
|
|
774
|
-
|
|
773
|
+
The above copyright notice and this permission notice shall be included in all
|
|
774
|
+
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
|
|
782
|
-
|
|
781
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
782
|
+
SOFTWARE.
|
|
783
783
|
|
|
784
784
|
|
|
785
785
|
===
|
|
@@ -1018,11 +1018,11 @@ SOFTWARE.
|
|
|
1018
1018
|
|
|
1019
1019
|
===
|
|
1020
1020
|
|
|
1021
|
-
#
|
|
1021
|
+
# @tiptap/extension-list@3.30.5 (MIT)
|
|
1022
1022
|
|
|
1023
1023
|
MIT License
|
|
1024
1024
|
|
|
1025
|
-
Copyright (c)
|
|
1025
|
+
Copyright (c) 2025, Tiptap GmbH
|
|
1026
1026
|
|
|
1027
1027
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1028
1028
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1068,11 +1068,11 @@ IN THE SOFTWARE.
|
|
|
1068
1068
|
|
|
1069
1069
|
===
|
|
1070
1070
|
|
|
1071
|
-
#
|
|
1071
|
+
# use-sync-external-store@1.6.0 (MIT)
|
|
1072
1072
|
|
|
1073
1073
|
MIT License
|
|
1074
1074
|
|
|
1075
|
-
Copyright (c)
|
|
1075
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1076
1076
|
|
|
1077
1077
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1078
1078
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1093,6 +1093,23 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
1093
1093
|
SOFTWARE.
|
|
1094
1094
|
|
|
1095
1095
|
|
|
1096
|
+
===
|
|
1097
|
+
|
|
1098
|
+
# domutils@3.2.2 (BSD-2-Clause)
|
|
1099
|
+
|
|
1100
|
+
Copyright (c) Felix Böhm
|
|
1101
|
+
All rights reserved.
|
|
1102
|
+
|
|
1103
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
1104
|
+
|
|
1105
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
1106
|
+
|
|
1107
|
+
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.
|
|
1108
|
+
|
|
1109
|
+
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,
|
|
1110
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1111
|
+
|
|
1112
|
+
|
|
1096
1113
|
===
|
|
1097
1114
|
|
|
1098
1115
|
# fp16@1.0.0 (MIT)
|
|
@@ -1120,23 +1137,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
1120
1137
|
SOFTWARE.
|
|
1121
1138
|
|
|
1122
1139
|
|
|
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
1140
|
===
|
|
1141
1141
|
|
|
1142
1142
|
# domhandler@5.0.3 (BSD-2-Clause)
|
|
@@ -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/
|
|
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/
|
|
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
|
{
|
package/dist/bundled.d.ts
CHANGED
|
@@ -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 {
|
|
@@ -7253,7 +7254,7 @@ declare module 'alinea/dashboard/atoms/entry' {
|
|
|
7253
7254
|
preferredEntry: Atom<Entry<Record<string, unknown>>>;
|
|
7254
7255
|
selectedEntry: Atom<Promise<Entry<Record<string, unknown>>>>;
|
|
7255
7256
|
historyReady: Atom<Promise<import("alinea/core/Connection").Revision[]>>;
|
|
7256
|
-
|
|
7257
|
+
historyState: Atom<readonly [false, import("alinea/core/Connection").Revision[]] | readonly [true, import("alinea/core/Connection").Revision[] | undefined]>;
|
|
7257
7258
|
selectedNode: Atom<Promise<ReactiveNode<object>>>;
|
|
7258
7259
|
richTextImages: Atom<Promise<Map<string, ResolvedEditorImage>>>;
|
|
7259
7260
|
anchors: Atom<Promise<import("alinea/core/Field").EntryAnchorTarget[]>>;
|
|
@@ -7352,9 +7353,7 @@ declare module 'alinea/dashboard/atoms/entry' {
|
|
|
7352
7353
|
readonly id: string;
|
|
7353
7354
|
readonly data: Atom<EntryData>;
|
|
7354
7355
|
constructor(id: string, data: Atom<EntryData>);
|
|
7355
|
-
previousVersionsOpen: import("jotai").
|
|
7356
|
-
init: boolean;
|
|
7357
|
-
};
|
|
7356
|
+
previousVersionsOpen: import("jotai").WritableAtom<boolean, [open: boolean], void>;
|
|
7358
7357
|
incomingReferencesReady: Atom<Promise<{
|
|
7359
7358
|
references: {
|
|
7360
7359
|
reference: EntryReference;
|
|
@@ -7926,6 +7925,7 @@ declare module 'alinea/dashboard/atoms/root' {
|
|
|
7926
7925
|
children: (id: string) => Atom<Promise<TreeEntryAtoms[]>>;
|
|
7927
7926
|
item: (id: string) => Atom<RootTreeItem>;
|
|
7928
7927
|
selectedItem: Atom<RootTreeItem | undefined>;
|
|
7928
|
+
canCreate: Atom<boolean>;
|
|
7929
7929
|
ready: Atom<Promise<{
|
|
7930
7930
|
expandedKeys: Set<string>;
|
|
7931
7931
|
items: RootTreeNode[];
|
|
@@ -9459,6 +9459,11 @@ declare module 'alinea/field/list/ListField' {
|
|
|
9459
9459
|
inline?: boolean;
|
|
9460
9460
|
/** Hide this list field */
|
|
9461
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;
|
|
9462
9467
|
/** The initial value of the field */
|
|
9463
9468
|
initialValue?: Array<InferStoredValue<Definitions>>;
|
|
9464
9469
|
/** Validate the given value */
|
|
@@ -9479,6 +9484,7 @@ declare module 'alinea/field/list/ListField.stories' {
|
|
|
9479
9484
|
|
|
9480
9485
|
import '#/theme.css';
|
|
9481
9486
|
export function Example(): import("react").JSX.Element | null;
|
|
9487
|
+
export function MinMax(): import("react").JSX.Element;
|
|
9482
9488
|
const _default: {
|
|
9483
9489
|
title: string;
|
|
9484
9490
|
};
|
|
@@ -9930,6 +9936,7 @@ declare module 'alinea/field/richtext/PickTextAnchor' {
|
|
|
9930
9936
|
declare module 'alinea/field/richtext/PickTextLink' {
|
|
9931
9937
|
|
|
9932
9938
|
import { Reference } from 'alinea/core/Reference';
|
|
9939
|
+
import type { EntryPickerConditions } from 'alinea/picker/entry/EntryPicker';
|
|
9933
9940
|
export interface PickerValue {
|
|
9934
9941
|
link?: Reference;
|
|
9935
9942
|
alt?: string;
|
|
@@ -9959,9 +9966,10 @@ declare module 'alinea/field/richtext/PickTextLink' {
|
|
|
9959
9966
|
}
|
|
9960
9967
|
export interface PickTextLinkProps {
|
|
9961
9968
|
picker: PickTextLinkState;
|
|
9969
|
+
linkOptions?: EntryPickerConditions;
|
|
9962
9970
|
}
|
|
9963
9971
|
export function usePickTextLink(): PickTextLinkState;
|
|
9964
|
-
export function PickTextLink({ picker }: PickTextLinkProps): import("react").JSX.Element | null;
|
|
9972
|
+
export function PickTextLink({ picker, linkOptions }: PickTextLinkProps): import("react").JSX.Element | null;
|
|
9965
9973
|
|
|
9966
9974
|
}
|
|
9967
9975
|
|
|
@@ -10146,6 +10154,7 @@ declare module 'alinea/field/richtext/RichTextField' {
|
|
|
10146
10154
|
import { RichTextField } from 'alinea/core/field/RichTextField';
|
|
10147
10155
|
import type { Schema } from 'alinea/core/Schema';
|
|
10148
10156
|
import type { TextDoc } from 'alinea/core/TextDoc';
|
|
10157
|
+
import type { EntryPickerConditions } from 'alinea/picker/entry/EntryPicker';
|
|
10149
10158
|
import type { AnyExtension } from '@tiptap/core';
|
|
10150
10159
|
import type { ReactNode } from 'react';
|
|
10151
10160
|
import type { ToolbarConfig } from 'alinea/field/richtext/Toolbar';
|
|
@@ -10174,6 +10183,8 @@ declare module 'alinea/field/richtext/RichTextField' {
|
|
|
10174
10183
|
enableTables?: boolean;
|
|
10175
10184
|
/** Enable inserting and editing images */
|
|
10176
10185
|
enableImages?: boolean;
|
|
10186
|
+
/** Constrain the entries that can be picked when inserting a link */
|
|
10187
|
+
link?: EntryPickerConditions;
|
|
10177
10188
|
/** Configure the toolbar layout and items */
|
|
10178
10189
|
toolbar?: ToolbarConfig;
|
|
10179
10190
|
/** Configure tiptap extensions */
|
package/dist/cli/Serve.js
CHANGED
package/dist/cli/bin.js
CHANGED
|
@@ -220,7 +220,7 @@ var lib_default2 = (e, t2) => new o(e, t2);
|
|
|
220
220
|
// package.json
|
|
221
221
|
var package_default = {
|
|
222
222
|
name: "alinea",
|
|
223
|
-
version: "2.0.0-preview.
|
|
223
|
+
version: "2.0.0-preview.7",
|
|
224
224
|
description: "Headless git-based CMS",
|
|
225
225
|
repository: "github:alineacms/alinea",
|
|
226
226
|
license: "MIT",
|
|
@@ -27,17 +27,17 @@ import {
|
|
|
27
27
|
|
|
28
28
|
// src/components/Calendar.module.css
|
|
29
29
|
var Calendar_default = {
|
|
30
|
-
"Calendar-grid": "alinea-Calendar-grid",
|
|
31
|
-
"CalendarGrid": "alinea-Calendar-grid",
|
|
32
|
-
"Calendar-cell": "alinea-Calendar-cell",
|
|
33
|
-
"CalendarCell": "alinea-Calendar-cell",
|
|
34
|
-
"Calendar": "alinea-Calendar",
|
|
35
30
|
"Calendar-header": "alinea-Calendar-header",
|
|
36
31
|
"CalendarHeader": "alinea-Calendar-header",
|
|
32
|
+
"Calendar-heading": "alinea-Calendar-heading",
|
|
33
|
+
"CalendarHeading": "alinea-Calendar-heading",
|
|
37
34
|
"Calendar-button": "alinea-Calendar-button",
|
|
38
35
|
"CalendarButton": "alinea-Calendar-button",
|
|
39
|
-
"Calendar
|
|
40
|
-
"
|
|
36
|
+
"Calendar": "alinea-Calendar",
|
|
37
|
+
"Calendar-grid": "alinea-Calendar-grid",
|
|
38
|
+
"CalendarGrid": "alinea-Calendar-grid",
|
|
39
|
+
"Calendar-cell": "alinea-Calendar-cell",
|
|
40
|
+
"CalendarCell": "alinea-Calendar-cell"
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
// src/components/Calendar.tsx
|
|
@@ -16,11 +16,11 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
16
16
|
|
|
17
17
|
// src/components/Checkbox.module.css
|
|
18
18
|
var Checkbox_default = {
|
|
19
|
-
"Checkbox
|
|
20
|
-
"CheckboxMark": "alinea-Checkbox-mark",
|
|
19
|
+
"Checkbox": "alinea-Checkbox",
|
|
21
20
|
"Checkbox-box": "alinea-Checkbox-box",
|
|
22
21
|
"CheckboxBox": "alinea-Checkbox-box",
|
|
23
|
-
"Checkbox": "alinea-Checkbox"
|
|
22
|
+
"Checkbox-mark": "alinea-Checkbox-mark",
|
|
23
|
+
"CheckboxMark": "alinea-Checkbox-mark"
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
// src/components/Checkbox.tsx
|
|
@@ -20,8 +20,8 @@ import { ColorSwatch } from "./ColorSwatch.js";
|
|
|
20
20
|
|
|
21
21
|
// src/components/ColorSwatchPicker.module.css
|
|
22
22
|
var ColorSwatchPicker_default = {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"ColorSwatchPicker": "alinea-ColorSwatchPicker",
|
|
24
|
+
"ColorSwatchPickerItem": "alinea-ColorSwatchPickerItem"
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
// src/components/ColorSwatchPicker.tsx
|
|
@@ -29,24 +29,24 @@ import {
|
|
|
29
29
|
|
|
30
30
|
// src/components/ComboBox.module.css
|
|
31
31
|
var ComboBox_default = {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"ComboBoxTrigger-button-value": "alinea-ComboBoxTrigger-button-value",
|
|
35
|
-
"ComboBoxTriggerButtonValue": "alinea-ComboBoxTrigger-button-value",
|
|
36
|
-
"ComboBoxTrigger-button-arrow": "alinea-ComboBoxTrigger-button-arrow",
|
|
37
|
-
"ComboBoxTriggerButtonArrow": "alinea-ComboBoxTrigger-button-arrow",
|
|
32
|
+
"ComboBoxPopover-listbox": "alinea-ComboBoxPopover-listbox",
|
|
33
|
+
"ComboBoxPopoverListbox": "alinea-ComboBoxPopover-listbox",
|
|
38
34
|
"ComboBoxTrigger-button": "alinea-ComboBoxTrigger-button",
|
|
39
35
|
"ComboBoxTriggerButton": "alinea-ComboBoxTrigger-button",
|
|
40
|
-
"ComboBoxTrigger": "alinea-ComboBoxTrigger",
|
|
41
36
|
"ComboBoxClear": "alinea-ComboBoxClear",
|
|
42
|
-
"ComboBoxTrigger-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
37
|
+
"ComboBoxTrigger-button-arrow": "alinea-ComboBoxTrigger-button-arrow",
|
|
38
|
+
"ComboBoxTriggerButtonArrow": "alinea-ComboBoxTrigger-button-arrow",
|
|
39
|
+
"ComboBoxTrigger-button-value": "alinea-ComboBoxTrigger-button-value",
|
|
40
|
+
"ComboBoxTriggerButtonValue": "alinea-ComboBoxTrigger-button-value",
|
|
41
|
+
"ComboBoxItem": "alinea-ComboBoxItem",
|
|
42
|
+
"ComboBoxTrigger": "alinea-ComboBoxTrigger",
|
|
43
|
+
"ComboBoxItem-check": "alinea-ComboBoxItem-check",
|
|
44
|
+
"ComboBoxItemCheck": "alinea-ComboBoxItem-check",
|
|
46
45
|
"ComboBoxTrigger-actions": "alinea-ComboBoxTrigger-actions",
|
|
47
46
|
"ComboBoxTriggerActions": "alinea-ComboBoxTrigger-actions",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
47
|
+
"ComboBox": "alinea-ComboBox",
|
|
48
|
+
"ComboBoxTrigger-input": "alinea-ComboBoxTrigger-input",
|
|
49
|
+
"ComboBoxTriggerInput": "alinea-ComboBoxTrigger-input"
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
// src/components/ComboBox.tsx
|
|
@@ -19,11 +19,11 @@ import "../chunks/chunk-CQ52GEHY.js";
|
|
|
19
19
|
|
|
20
20
|
// src/components/DateField.module.css
|
|
21
21
|
var DateField_default = {
|
|
22
|
+
"DateField-input": "alinea-DateField-input",
|
|
23
|
+
"DateFieldInput": "alinea-DateField-input",
|
|
22
24
|
"DateField": "alinea-DateField",
|
|
23
25
|
"DateField-input-segment": "alinea-DateField-input-segment",
|
|
24
|
-
"DateFieldInputSegment": "alinea-DateField-input-segment"
|
|
25
|
-
"DateField-input": "alinea-DateField-input",
|
|
26
|
-
"DateFieldInput": "alinea-DateField-input"
|
|
26
|
+
"DateFieldInputSegment": "alinea-DateField-input-segment"
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
// src/components/DateField.tsx
|
|
@@ -25,14 +25,14 @@ import { Calendar } from "./Calendar.js";
|
|
|
25
25
|
|
|
26
26
|
// src/components/DatePicker.module.css
|
|
27
27
|
var DatePicker_default = {
|
|
28
|
-
"Icon": "alinea-Icon",
|
|
29
28
|
"DatePicker-input-segment": "alinea-DatePicker-input-segment",
|
|
30
29
|
"DatePickerInputSegment": "alinea-DatePicker-input-segment",
|
|
30
|
+
"DatePicker": "alinea-DatePicker",
|
|
31
31
|
"DatePicker-trigger": "alinea-DatePicker-trigger",
|
|
32
32
|
"DatePickerTrigger": "alinea-DatePicker-trigger",
|
|
33
33
|
"DatePicker-input": "alinea-DatePicker-input",
|
|
34
34
|
"DatePickerInput": "alinea-DatePicker-input",
|
|
35
|
-
"
|
|
35
|
+
"Icon": "alinea-Icon"
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
// src/components/DatePicker.tsx
|
|
@@ -25,18 +25,18 @@ import { RangeCalendar } from "./Calendar.js";
|
|
|
25
25
|
|
|
26
26
|
// src/components/DateRangePicker.module.css
|
|
27
27
|
var DateRangePicker_default = {
|
|
28
|
-
"DateRangePicker-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
28
|
+
"DateRangePicker-separator": "alinea-DateRangePicker-separator",
|
|
29
|
+
"DateRangePickerSeparator": "alinea-DateRangePicker-separator",
|
|
30
|
+
"DateRangePicker-input": "alinea-DateRangePicker-input",
|
|
31
|
+
"DateRangePickerInput": "alinea-DateRangePicker-input",
|
|
31
32
|
"DateRangePicker-inputs": "alinea-DateRangePicker-inputs",
|
|
32
33
|
"DateRangePickerInputs": "alinea-DateRangePicker-inputs",
|
|
33
34
|
"DateRangePicker": "alinea-DateRangePicker",
|
|
34
|
-
"DateRangePicker-
|
|
35
|
-
"
|
|
35
|
+
"DateRangePicker-input-segment": "alinea-DateRangePicker-input-segment",
|
|
36
|
+
"DateRangePickerInputSegment": "alinea-DateRangePicker-input-segment",
|
|
36
37
|
"DateRangePicker-trigger": "alinea-DateRangePicker-trigger",
|
|
37
38
|
"DateRangePickerTrigger": "alinea-DateRangePicker-trigger",
|
|
38
|
-
"
|
|
39
|
-
"DateRangePickerInput": "alinea-DateRangePicker-input"
|
|
39
|
+
"Icon": "alinea-Icon"
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
// src/components/DateRangePicker.tsx
|
|
@@ -23,19 +23,19 @@ import { Icon } from "./Icon.js";
|
|
|
23
23
|
|
|
24
24
|
// src/components/Disclosure.module.css
|
|
25
25
|
var Disclosure_default = {
|
|
26
|
+
"Disclosure-title": "alinea-Disclosure-title",
|
|
27
|
+
"DisclosureTitle": "alinea-Disclosure-title",
|
|
26
28
|
"Disclosure-panel-content": "alinea-Disclosure-panel-content",
|
|
27
29
|
"DisclosurePanelContent": "alinea-Disclosure-panel-content",
|
|
28
|
-
"Disclosure-trigger": "alinea-Disclosure-trigger",
|
|
29
|
-
"DisclosureTrigger": "alinea-Disclosure-trigger",
|
|
30
|
-
"Disclosure-heading": "alinea-Disclosure-heading",
|
|
31
|
-
"DisclosureHeading": "alinea-Disclosure-heading",
|
|
32
30
|
"Disclosure-chevron": "alinea-Disclosure-chevron",
|
|
33
31
|
"DisclosureChevron": "alinea-Disclosure-chevron",
|
|
34
|
-
"Disclosure": "alinea-Disclosure",
|
|
35
|
-
"Disclosure-title": "alinea-Disclosure-title",
|
|
36
|
-
"DisclosureTitle": "alinea-Disclosure-title",
|
|
37
32
|
"Disclosure-panel": "alinea-Disclosure-panel",
|
|
38
|
-
"DisclosurePanel": "alinea-Disclosure-panel"
|
|
33
|
+
"DisclosurePanel": "alinea-Disclosure-panel",
|
|
34
|
+
"Disclosure": "alinea-Disclosure",
|
|
35
|
+
"Disclosure-heading": "alinea-Disclosure-heading",
|
|
36
|
+
"DisclosureHeading": "alinea-Disclosure-heading",
|
|
37
|
+
"Disclosure-trigger": "alinea-Disclosure-trigger",
|
|
38
|
+
"DisclosureTrigger": "alinea-Disclosure-trigger"
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
// src/components/Disclosure.tsx
|
package/dist/components/Label.js
CHANGED
|
@@ -20,15 +20,15 @@ import { IcRoundPublic } from "../dashboard/icons.js";
|
|
|
20
20
|
|
|
21
21
|
// src/components/Label.module.css
|
|
22
22
|
var Label_default = {
|
|
23
|
-
"LabelRequired": "alinea-LabelRequired",
|
|
24
23
|
"LabelTitle": "alinea-LabelTitle",
|
|
25
24
|
"LabelHeader": "alinea-LabelHeader",
|
|
26
|
-
"LabelStack": "alinea-LabelStack",
|
|
27
|
-
"LabelInline": "alinea-LabelInline",
|
|
28
25
|
"LabelIcon": "alinea-LabelIcon",
|
|
29
|
-
"LabelDescription": "alinea-LabelDescription",
|
|
30
26
|
"LabelLabel": "alinea-LabelLabel",
|
|
31
|
-
"
|
|
27
|
+
"LabelRequired": "alinea-LabelRequired",
|
|
28
|
+
"LabelInline": "alinea-LabelInline",
|
|
29
|
+
"LabelStack": "alinea-LabelStack",
|
|
30
|
+
"LabelError": "alinea-LabelError",
|
|
31
|
+
"LabelDescription": "alinea-LabelDescription"
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
// src/components/Label.tsx
|