alinea 1.6.2 → 1.6.3
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 +81 -81
- package/dist/bundled.d.ts +1 -1
- package/dist/chunks/{chunk-HELH3PKC.js → chunk-UVC47CTF.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/core/db/LinkResolver.d.ts +1 -1
- package/dist/core/shape/RichTextShape.js +7 -2
- 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
|
-
# react-query@3.39.3 (MIT)
|
|
6
|
-
|
|
7
|
-
MIT License
|
|
8
|
-
|
|
9
|
-
Copyright (c) 2019 Tanner Linsley
|
|
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
|
# rado@1.0.15 (MIT)
|
|
@@ -55,11 +28,11 @@ SOFTWARE.
|
|
|
55
28
|
|
|
56
29
|
===
|
|
57
30
|
|
|
58
|
-
#
|
|
31
|
+
# react-query@3.39.3 (MIT)
|
|
59
32
|
|
|
60
33
|
MIT License
|
|
61
34
|
|
|
62
|
-
Copyright (c)
|
|
35
|
+
Copyright (c) 2019 Tanner Linsley
|
|
63
36
|
|
|
64
37
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
65
38
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -79,6 +52,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
79
52
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
80
53
|
SOFTWARE.
|
|
81
54
|
|
|
55
|
+
|
|
82
56
|
===
|
|
83
57
|
|
|
84
58
|
# lib0@0.2.88 (MIT)
|
|
@@ -131,6 +105,32 @@ IN THE SOFTWARE.
|
|
|
131
105
|
|
|
132
106
|
===
|
|
133
107
|
|
|
108
|
+
# @headlessui/react@2.2.0 (MIT)
|
|
109
|
+
|
|
110
|
+
MIT License
|
|
111
|
+
|
|
112
|
+
Copyright (c) 2020 Tailwind Labs
|
|
113
|
+
|
|
114
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
115
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
116
|
+
in the Software without restriction, including without limitation the rights
|
|
117
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
118
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
119
|
+
furnished to do so, subject to the following conditions:
|
|
120
|
+
|
|
121
|
+
The above copyright notice and this permission notice shall be included in all
|
|
122
|
+
copies or substantial portions of the Software.
|
|
123
|
+
|
|
124
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
125
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
126
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
127
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
128
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
129
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
130
|
+
SOFTWARE.
|
|
131
|
+
|
|
132
|
+
===
|
|
133
|
+
|
|
134
134
|
# domutils@3.1.0 (BSD-2-Clause)
|
|
135
135
|
|
|
136
136
|
Copyright (c) Felix Böhm
|
|
@@ -163,6 +163,23 @@ THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRE
|
|
|
163
163
|
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
164
164
|
|
|
165
165
|
|
|
166
|
+
===
|
|
167
|
+
|
|
168
|
+
# entities@4.5.0 (BSD-2-Clause)
|
|
169
|
+
|
|
170
|
+
Copyright (c) Felix Böhm
|
|
171
|
+
All rights reserved.
|
|
172
|
+
|
|
173
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
174
|
+
|
|
175
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
176
|
+
|
|
177
|
+
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.
|
|
178
|
+
|
|
179
|
+
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,
|
|
180
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
181
|
+
|
|
182
|
+
|
|
166
183
|
===
|
|
167
184
|
|
|
168
185
|
# @popperjs/core@2.11.8 (MIT)
|
|
@@ -191,28 +208,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
191
208
|
|
|
192
209
|
===
|
|
193
210
|
|
|
194
|
-
#
|
|
195
|
-
|
|
196
|
-
Copyright (c) Felix Böhm
|
|
197
|
-
All rights reserved.
|
|
198
|
-
|
|
199
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
200
|
-
|
|
201
|
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
202
|
-
|
|
203
|
-
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.
|
|
204
|
-
|
|
205
|
-
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,
|
|
206
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
===
|
|
210
|
-
|
|
211
|
-
# prop-types@15.8.1 (MIT)
|
|
211
|
+
# @badgateway/oauth2-client@3.2.0 (MIT)
|
|
212
212
|
|
|
213
213
|
MIT License
|
|
214
214
|
|
|
215
|
-
Copyright (c)
|
|
215
|
+
Copyright (c) 2019-2023 Evert Pot
|
|
216
216
|
|
|
217
217
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
218
218
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -442,11 +442,11 @@ SOFTWARE.
|
|
|
442
442
|
|
|
443
443
|
===
|
|
444
444
|
|
|
445
|
-
#
|
|
445
|
+
# prop-types@15.8.1 (MIT)
|
|
446
446
|
|
|
447
447
|
MIT License
|
|
448
448
|
|
|
449
|
-
Copyright (c)
|
|
449
|
+
Copyright (c) 2013-present, Facebook, Inc.
|
|
450
450
|
|
|
451
451
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
452
452
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -513,16 +513,43 @@ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
513
513
|
|
|
514
514
|
===
|
|
515
515
|
|
|
516
|
-
# @headless-tree/
|
|
516
|
+
# @headless-tree/react@0.0.15 (MIT)
|
|
517
517
|
|
|
518
518
|
MIT
|
|
519
519
|
|
|
520
520
|
===
|
|
521
521
|
|
|
522
|
-
# @headless-tree/
|
|
522
|
+
# @headless-tree/core@0.0.15 (MIT)
|
|
523
523
|
|
|
524
524
|
MIT
|
|
525
525
|
|
|
526
|
+
===
|
|
527
|
+
|
|
528
|
+
# y-prosemirror@1.2.15 (MIT)
|
|
529
|
+
|
|
530
|
+
The MIT License (MIT)
|
|
531
|
+
|
|
532
|
+
Copyright (c) 2019 Kevin Jahns <kevin.jahns@protonmail.com>.
|
|
533
|
+
|
|
534
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
535
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
536
|
+
in the Software without restriction, including without limitation the rights
|
|
537
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
538
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
539
|
+
furnished to do so, subject to the following conditions:
|
|
540
|
+
|
|
541
|
+
The above copyright notice and this permission notice shall be included in all
|
|
542
|
+
copies or substantial portions of the Software.
|
|
543
|
+
|
|
544
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
545
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
546
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
547
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
548
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
549
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
550
|
+
SOFTWARE.
|
|
551
|
+
|
|
552
|
+
|
|
526
553
|
===
|
|
527
554
|
|
|
528
555
|
# @babel/runtime@7.25.4 (MIT)
|
|
@@ -553,34 +580,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
553
580
|
|
|
554
581
|
===
|
|
555
582
|
|
|
556
|
-
#
|
|
557
|
-
|
|
558
|
-
The MIT License (MIT)
|
|
559
|
-
|
|
560
|
-
Copyright (c) 2019 Kevin Jahns <kevin.jahns@protonmail.com>.
|
|
561
|
-
|
|
562
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
563
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
564
|
-
in the Software without restriction, including without limitation the rights
|
|
565
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
566
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
567
|
-
furnished to do so, subject to the following conditions:
|
|
568
|
-
|
|
569
|
-
The above copyright notice and this permission notice shall be included in all
|
|
570
|
-
copies or substantial portions of the Software.
|
|
571
|
-
|
|
572
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
573
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
574
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
575
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
576
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
577
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
578
|
-
SOFTWARE.
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
===
|
|
582
|
-
|
|
583
|
-
# @react-aria/focus@3.19.1 (Apache-2.0)
|
|
583
|
+
# @react-aria/interactions@3.23.0 (Apache-2.0)
|
|
584
584
|
|
|
585
585
|
Apache License
|
|
586
586
|
Version 2.0, January 2004
|
|
@@ -787,7 +787,7 @@ SOFTWARE.
|
|
|
787
787
|
|
|
788
788
|
===
|
|
789
789
|
|
|
790
|
-
# @react-aria/
|
|
790
|
+
# @react-aria/focus@3.19.1 (Apache-2.0)
|
|
791
791
|
|
|
792
792
|
Apache License
|
|
793
793
|
Version 2.0, January 2004
|
package/dist/bundled.d.ts
CHANGED
|
@@ -1686,7 +1686,7 @@ declare module 'alinea/core/db/LinkResolver' {
|
|
|
1686
1686
|
private locale;
|
|
1687
1687
|
constructor(resolver: EntryResolver, ctx: ResolveContext, locale: string | null);
|
|
1688
1688
|
includedAtBuild(filePath: string): boolean;
|
|
1689
|
-
resolveLinks<P extends Projection>(projection: P, entryIds: ReadonlyArray<string>): Promise<Array<InferProjection<P
|
|
1689
|
+
resolveLinks<P extends Projection>(projection: P, entryIds: ReadonlyArray<string>): Promise<Array<InferProjection<P>>>;
|
|
1690
1690
|
}
|
|
1691
1691
|
|
|
1692
1692
|
}
|
package/dist/cli/Serve.js
CHANGED
package/dist/cli/bin.js
CHANGED
|
@@ -6,5 +6,5 @@ export declare class LinkResolver {
|
|
|
6
6
|
private locale;
|
|
7
7
|
constructor(resolver: EntryResolver, ctx: ResolveContext, locale: string | null);
|
|
8
8
|
includedAtBuild(filePath: string): boolean;
|
|
9
|
-
resolveLinks<P extends Projection>(projection: P, entryIds: ReadonlyArray<string>): Promise<Array<InferProjection<P
|
|
9
|
+
resolveLinks<P extends Projection>(projection: P, entryIds: ReadonlyArray<string>): Promise<Array<InferProjection<P>>>;
|
|
10
10
|
}
|
|
@@ -11,6 +11,7 @@ import "../../chunks/chunk-NZLE2WMY.js";
|
|
|
11
11
|
|
|
12
12
|
// src/core/shape/RichTextShape.ts
|
|
13
13
|
import { Entry } from "../Entry.js";
|
|
14
|
+
import { MediaFile } from "../media/MediaTypes.js";
|
|
14
15
|
import {
|
|
15
16
|
BlockNode,
|
|
16
17
|
ElementNode,
|
|
@@ -19,7 +20,6 @@ import {
|
|
|
19
20
|
Node,
|
|
20
21
|
TextNode
|
|
21
22
|
} from "../TextDoc.js";
|
|
22
|
-
import { MediaFile } from "../media/MediaTypes.js";
|
|
23
23
|
import { entries, fromEntries, keys } from "../util/Objects.js";
|
|
24
24
|
import { RecordShape } from "./RecordShape.js";
|
|
25
25
|
import { ScalarShape } from "./ScalarShape.js";
|
|
@@ -129,6 +129,7 @@ function unserialize(nodes) {
|
|
|
129
129
|
return result;
|
|
130
130
|
}
|
|
131
131
|
var linkInfoFields = {
|
|
132
|
+
id: Entry.id,
|
|
132
133
|
url: Entry.url,
|
|
133
134
|
location: MediaFile.location
|
|
134
135
|
};
|
|
@@ -375,7 +376,11 @@ var RichTextShape = class {
|
|
|
375
376
|
async function loadLinks() {
|
|
376
377
|
const linkIds = Array.from(new Set(links.values()));
|
|
377
378
|
const entries2 = await loader.resolveLinks(linkInfoFields, linkIds);
|
|
378
|
-
const info = new Map(
|
|
379
|
+
const info = new Map(
|
|
380
|
+
entries2.map((entry) => {
|
|
381
|
+
return [entry.id, entry];
|
|
382
|
+
})
|
|
383
|
+
);
|
|
379
384
|
for (const [mark, entryId] of links) {
|
|
380
385
|
const type = mark[LinkMark.link];
|
|
381
386
|
const data = info.get(entryId);
|