alinea 1.7.0-preview.2 → 1.7.0-preview.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 +114 -114
- package/dist/adapter/next/with-alinea.js +2 -2
- package/dist/backend/resolver/ParsePreview.d.ts +1 -1
- package/dist/backend/resolver/ParsePreview.js +10 -2
- package/dist/bundled.d.ts +1 -1
- package/dist/chunks/{chunk-PGFXEUMB.js → chunk-UA7FXGNL.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/next.cjs +2 -2
- package/package.json +1 -1
package/dist/LICENSES.md
CHANGED
|
@@ -28,11 +28,11 @@ SOFTWARE.
|
|
|
28
28
|
|
|
29
29
|
===
|
|
30
30
|
|
|
31
|
-
#
|
|
31
|
+
# react-query@3.39.3 (MIT)
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
MIT License
|
|
34
34
|
|
|
35
|
-
Copyright (c) 2019
|
|
35
|
+
Copyright (c) 2019 Tanner Linsley
|
|
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
|
|
@@ -53,29 +53,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
53
53
|
SOFTWARE.
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
===
|
|
57
|
-
|
|
58
|
-
# htmlparser2@9.1.0 (MIT)
|
|
59
|
-
|
|
60
|
-
Copyright 2010, 2011, Chris Winberry <chris@winberry.net>. All rights reserved.
|
|
61
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
62
|
-
of this software and associated documentation files (the "Software"), to
|
|
63
|
-
deal in the Software without restriction, including without limitation the
|
|
64
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
65
|
-
sell copies of the Software, and to permit persons to whom the Software is
|
|
66
|
-
furnished to do so, subject to the following conditions:
|
|
67
|
-
|
|
68
|
-
The above copyright notice and this permission notice shall be included in
|
|
69
|
-
all copies or substantial portions of the Software.
|
|
70
|
-
|
|
71
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
72
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
73
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
74
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
75
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
76
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
77
|
-
IN THE SOFTWARE.
|
|
78
|
-
|
|
79
56
|
===
|
|
80
57
|
|
|
81
58
|
# @headlessui/react@2.2.0 (MIT)
|
|
@@ -104,11 +81,34 @@ SOFTWARE.
|
|
|
104
81
|
|
|
105
82
|
===
|
|
106
83
|
|
|
107
|
-
#
|
|
84
|
+
# htmlparser2@9.1.0 (MIT)
|
|
108
85
|
|
|
109
|
-
|
|
86
|
+
Copyright 2010, 2011, Chris Winberry <chris@winberry.net>. All rights reserved.
|
|
87
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
88
|
+
of this software and associated documentation files (the "Software"), to
|
|
89
|
+
deal in the Software without restriction, including without limitation the
|
|
90
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
91
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
92
|
+
furnished to do so, subject to the following conditions:
|
|
93
|
+
|
|
94
|
+
The above copyright notice and this permission notice shall be included in
|
|
95
|
+
all copies or substantial portions of the Software.
|
|
96
|
+
|
|
97
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
98
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
99
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
100
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
101
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
102
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
103
|
+
IN THE SOFTWARE.
|
|
110
104
|
|
|
111
|
-
|
|
105
|
+
===
|
|
106
|
+
|
|
107
|
+
# lib0@0.2.88 (MIT)
|
|
108
|
+
|
|
109
|
+
The MIT License (MIT)
|
|
110
|
+
|
|
111
|
+
Copyright (c) 2019 Kevin Jahns <kevin.jahns@protonmail.com>.
|
|
112
112
|
|
|
113
113
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
114
114
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -131,7 +131,7 @@ SOFTWARE.
|
|
|
131
131
|
|
|
132
132
|
===
|
|
133
133
|
|
|
134
|
-
#
|
|
134
|
+
# domutils@3.1.0 (BSD-2-Clause)
|
|
135
135
|
|
|
136
136
|
Copyright (c) Felix Böhm
|
|
137
137
|
All rights reserved.
|
|
@@ -148,7 +148,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
148
148
|
|
|
149
149
|
===
|
|
150
150
|
|
|
151
|
-
#
|
|
151
|
+
# domhandler@5.0.3 (BSD-2-Clause)
|
|
152
152
|
|
|
153
153
|
Copyright (c) Felix Böhm
|
|
154
154
|
All rights reserved.
|
|
@@ -165,7 +165,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
165
165
|
|
|
166
166
|
===
|
|
167
167
|
|
|
168
|
-
#
|
|
168
|
+
# entities@4.5.0 (BSD-2-Clause)
|
|
169
169
|
|
|
170
170
|
Copyright (c) Felix Böhm
|
|
171
171
|
All rights reserved.
|
|
@@ -180,32 +180,6 @@ THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRE
|
|
|
180
180
|
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
181
181
|
|
|
182
182
|
|
|
183
|
-
===
|
|
184
|
-
|
|
185
|
-
# @popperjs/core@2.11.8 (MIT)
|
|
186
|
-
|
|
187
|
-
The MIT License (MIT)
|
|
188
|
-
|
|
189
|
-
Copyright (c) 2019 Federico Zivolo
|
|
190
|
-
|
|
191
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
192
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
193
|
-
the Software without restriction, including without limitation the rights to
|
|
194
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
195
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
196
|
-
subject to the following conditions:
|
|
197
|
-
|
|
198
|
-
The above copyright notice and this permission notice shall be included in all
|
|
199
|
-
copies or substantial portions of the Software.
|
|
200
|
-
|
|
201
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
202
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
203
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
204
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
205
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
206
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
207
|
-
|
|
208
|
-
|
|
209
183
|
===
|
|
210
184
|
|
|
211
185
|
# @badgateway/oauth2-client@3.2.0 (MIT)
|
|
@@ -233,6 +207,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
233
207
|
SOFTWARE.
|
|
234
208
|
|
|
235
209
|
|
|
210
|
+
===
|
|
211
|
+
|
|
212
|
+
# @popperjs/core@2.11.8 (MIT)
|
|
213
|
+
|
|
214
|
+
The MIT License (MIT)
|
|
215
|
+
|
|
216
|
+
Copyright (c) 2019 Federico Zivolo
|
|
217
|
+
|
|
218
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
219
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
220
|
+
the Software without restriction, including without limitation the rights to
|
|
221
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
222
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
223
|
+
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, FITNESS
|
|
230
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
231
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
232
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
233
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
234
|
+
|
|
235
|
+
|
|
236
236
|
===
|
|
237
237
|
|
|
238
238
|
# prop-types@15.8.1 (MIT)
|
|
@@ -511,12 +511,6 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
511
511
|
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
512
512
|
|
|
513
513
|
|
|
514
|
-
===
|
|
515
|
-
|
|
516
|
-
# @headless-tree/react@0.0.15 (MIT)
|
|
517
|
-
|
|
518
|
-
MIT
|
|
519
|
-
|
|
520
514
|
===
|
|
521
515
|
|
|
522
516
|
# @headless-tree/core@0.0.15 (MIT)
|
|
@@ -525,30 +519,9 @@ MIT
|
|
|
525
519
|
|
|
526
520
|
===
|
|
527
521
|
|
|
528
|
-
#
|
|
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.
|
|
522
|
+
# @headless-tree/react@0.0.15 (MIT)
|
|
551
523
|
|
|
524
|
+
MIT
|
|
552
525
|
|
|
553
526
|
===
|
|
554
527
|
|
|
@@ -578,6 +551,33 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
578
551
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
579
552
|
|
|
580
553
|
|
|
554
|
+
===
|
|
555
|
+
|
|
556
|
+
# y-prosemirror@1.2.15 (MIT)
|
|
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
581
|
===
|
|
582
582
|
|
|
583
583
|
# @react-aria/focus@3.19.1 (Apache-2.0)
|
|
@@ -1612,33 +1612,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
1612
1612
|
See the License for the specific language governing permissions and
|
|
1613
1613
|
limitations under the License.
|
|
1614
1614
|
|
|
1615
|
-
===
|
|
1616
|
-
|
|
1617
|
-
# @tanstack/virtual-core@3.10.6 (MIT)
|
|
1618
|
-
|
|
1619
|
-
MIT License
|
|
1620
|
-
|
|
1621
|
-
Copyright (c) 2021-present Tanner Linsley
|
|
1622
|
-
|
|
1623
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1624
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
1625
|
-
in the Software without restriction, including without limitation the rights
|
|
1626
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1627
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
1628
|
-
furnished to do so, subject to the following conditions:
|
|
1629
|
-
|
|
1630
|
-
The above copyright notice and this permission notice shall be included in all
|
|
1631
|
-
copies or substantial portions of the Software.
|
|
1632
|
-
|
|
1633
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1634
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1635
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1636
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1637
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1638
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1639
|
-
SOFTWARE.
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
1615
|
===
|
|
1643
1616
|
|
|
1644
1617
|
# @react-stately/utils@3.10.5 (Apache-2.0)
|
|
@@ -1844,3 +1817,30 @@ SOFTWARE.
|
|
|
1844
1817
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1845
1818
|
See the License for the specific language governing permissions and
|
|
1846
1819
|
limitations under the License.
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
===
|
|
1823
|
+
|
|
1824
|
+
# @tanstack/virtual-core@3.10.6 (MIT)
|
|
1825
|
+
|
|
1826
|
+
MIT License
|
|
1827
|
+
|
|
1828
|
+
Copyright (c) 2021-present Tanner Linsley
|
|
1829
|
+
|
|
1830
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1831
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1832
|
+
in the Software without restriction, including without limitation the rights
|
|
1833
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1834
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1835
|
+
furnished to do so, subject to the following conditions:
|
|
1836
|
+
|
|
1837
|
+
The above copyright notice and this permission notice shall be included in all
|
|
1838
|
+
copies or substantial portions of the Software.
|
|
1839
|
+
|
|
1840
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1841
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1842
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1843
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1844
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1845
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1846
|
+
SOFTWARE.
|
|
@@ -95,8 +95,8 @@ function createRewrites(config, adminPath) {
|
|
|
95
95
|
const nextHost = process.env.__NEXT_PRIVATE_HOST;
|
|
96
96
|
const origin = nextOrigin ?? (nextHost ? `http://${nextHost}` : null);
|
|
97
97
|
const location = origin ? new URL(adminPath, origin).href : adminPath;
|
|
98
|
-
if (isDev && !process.env.
|
|
99
|
-
process.env.
|
|
98
|
+
if (isDev && !process.env.__NEXT_PRIVATE_ALINEA_REPORTED) {
|
|
99
|
+
process.env.__NEXT_PRIVATE_ALINEA_REPORTED = "true";
|
|
100
100
|
console.log(`
|
|
101
101
|
${cyan(bold("\u0251 Alinea CMS"))}: ${location}
|
|
102
102
|
`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PreviewRequest } from 'alinea/core/Preview';
|
|
2
1
|
import type { LocalDB } from 'alinea/core/db/LocalDB';
|
|
2
|
+
import type { PreviewRequest } from 'alinea/core/Preview';
|
|
3
3
|
export declare function createPreviewParser(local: LocalDB): {
|
|
4
4
|
parse(preview: PreviewRequest, sync: () => Promise<unknown>): Promise<PreviewRequest | undefined>;
|
|
5
5
|
};
|
|
@@ -25,9 +25,17 @@ function createPreviewParser(local) {
|
|
|
25
25
|
});
|
|
26
26
|
if (!entry) return;
|
|
27
27
|
const baseText = decoder.decode(
|
|
28
|
-
JsonLoader.format(
|
|
28
|
+
JsonLoader.format(
|
|
29
|
+
local.config.schema,
|
|
30
|
+
createRecord(entry, entry.status)
|
|
31
|
+
)
|
|
29
32
|
);
|
|
30
|
-
|
|
33
|
+
let updatedText;
|
|
34
|
+
try {
|
|
35
|
+
updatedText = await applyFilePatch(baseText, payload.patch);
|
|
36
|
+
} catch {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
31
39
|
const { data } = parseRecord(JSON.parse(updatedText));
|
|
32
40
|
const { rowHash: _rowHash, fileHash: _fileHash, ...withoutHashes } = entry;
|
|
33
41
|
const patched = await createEntryRow(
|
package/dist/bundled.d.ts
CHANGED
|
@@ -377,8 +377,8 @@ declare module 'alinea/backend/Previews' {
|
|
|
377
377
|
|
|
378
378
|
declare module 'alinea/backend/resolver/ParsePreview' {
|
|
379
379
|
|
|
380
|
-
import type { PreviewRequest } from 'alinea/core/Preview';
|
|
381
380
|
import type { LocalDB } from 'alinea/core/db/LocalDB';
|
|
381
|
+
import type { PreviewRequest } from 'alinea/core/Preview';
|
|
382
382
|
export function createPreviewParser(local: LocalDB): {
|
|
383
383
|
parse(preview: PreviewRequest, sync: () => Promise<unknown>): Promise<PreviewRequest | undefined>;
|
|
384
384
|
};
|
package/dist/cli/Serve.js
CHANGED
package/dist/cli/bin.js
CHANGED
package/dist/next.cjs
CHANGED
|
@@ -118,8 +118,8 @@ function createRewrites(config, adminPath) {
|
|
|
118
118
|
const nextHost = process.env.__NEXT_PRIVATE_HOST;
|
|
119
119
|
const origin = nextOrigin ?? (nextHost ? `http://${nextHost}` : null);
|
|
120
120
|
const location = origin ? new URL(adminPath, origin).href : adminPath;
|
|
121
|
-
if (isDev && !process.env.
|
|
122
|
-
process.env.
|
|
121
|
+
if (isDev && !process.env.__NEXT_PRIVATE_ALINEA_REPORTED) {
|
|
122
|
+
process.env.__NEXT_PRIVATE_ALINEA_REPORTED = "true";
|
|
123
123
|
console.log(`
|
|
124
124
|
${(0, import_Report.cyan)((0, import_Report.bold)("\u0251 Alinea CMS"))}: ${location}
|
|
125
125
|
`);
|