@roottale/cms-renderer-next 0.65.0 → 0.66.0
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/CHANGELOG.md +29 -0
- package/dist/chunk-22MB5YER.js +122 -0
- package/dist/chunk-22MB5YER.js.map +1 -0
- package/dist/cms-public.css +376 -228
- package/dist/fonts/LICENSE +94 -0
- package/dist/fonts/PretendardVariable.woff2 +0 -0
- package/dist/image-lightbox.d.ts +10 -0
- package/dist/image-lightbox.js +8 -0
- package/dist/image-lightbox.js.map +1 -0
- package/dist/routes.js +13 -15
- package/dist/routes.js.map +1 -1
- package/dist/server.js +16 -10
- package/dist/server.js.map +1 -1
- package/package.json +10 -5
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard),
|
|
2
|
+
with Reserved Font Name Pretendard.
|
|
3
|
+
|
|
4
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
5
|
+
This license is copied below, and is also available with a FAQ at:
|
|
6
|
+
https://scripts.sil.org/OFL
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
11
|
+
-----------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
PREAMBLE
|
|
14
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
15
|
+
development of collaborative font projects, to support the font creation
|
|
16
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
17
|
+
open framework in which fonts may be shared and improved in partnership
|
|
18
|
+
with others.
|
|
19
|
+
|
|
20
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
21
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
22
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
23
|
+
redistributed and/or sold with any software provided that any reserved
|
|
24
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
25
|
+
however, cannot be released under any other type of license. The
|
|
26
|
+
requirement for fonts to remain under this license does not apply
|
|
27
|
+
to any document created using the fonts or their derivatives.
|
|
28
|
+
|
|
29
|
+
DEFINITIONS
|
|
30
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
31
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
32
|
+
include source files, build scripts and documentation.
|
|
33
|
+
|
|
34
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
35
|
+
copyright statement(s).
|
|
36
|
+
|
|
37
|
+
"Original Version" refers to the collection of Font Software components as
|
|
38
|
+
distributed by the Copyright Holder(s).
|
|
39
|
+
|
|
40
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
41
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
42
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
43
|
+
new environment.
|
|
44
|
+
|
|
45
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
46
|
+
writer or other person who contributed to the Font Software.
|
|
47
|
+
|
|
48
|
+
PERMISSION & CONDITIONS
|
|
49
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
50
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
51
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
52
|
+
Software, subject to the following conditions:
|
|
53
|
+
|
|
54
|
+
1) Neither the Font Software nor any of its individual components,
|
|
55
|
+
in Original or Modified Versions, may be sold by itself.
|
|
56
|
+
|
|
57
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
58
|
+
redistributed and/or sold with any software, provided that each copy
|
|
59
|
+
contains the above copyright notice and this license. These can be
|
|
60
|
+
included either as stand-alone text files, human-readable headers or
|
|
61
|
+
in the appropriate machine-readable metadata fields within text or
|
|
62
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
63
|
+
|
|
64
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
65
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
66
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
67
|
+
presented to the users.
|
|
68
|
+
|
|
69
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
70
|
+
Software shall not be used to promote, endorse or advertise any
|
|
71
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
72
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
73
|
+
permission.
|
|
74
|
+
|
|
75
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
76
|
+
must be distributed entirely under this license, and must not be
|
|
77
|
+
distributed under any other license. The requirement for fonts to
|
|
78
|
+
remain under this license does not apply to any document created
|
|
79
|
+
using the Font Software.
|
|
80
|
+
|
|
81
|
+
TERMINATION
|
|
82
|
+
This license becomes null and void if any of the above conditions are
|
|
83
|
+
not met.
|
|
84
|
+
|
|
85
|
+
DISCLAIMER
|
|
86
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
87
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
88
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
89
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
90
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
91
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
92
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
93
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
94
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
/** HTML·Tiptap 본문 모두에 적용한다. 이미 링크나 버튼인 이미지는 원래 동작을 유지한다. */
|
|
5
|
+
declare function RootTaleImageLightbox({ children, imageSelector }: {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
imageSelector?: string;
|
|
8
|
+
}): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { RootTaleImageLightbox };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/routes.js
CHANGED
|
@@ -627,6 +627,15 @@ function modelPathMismatch(body, collections) {
|
|
|
627
627
|
function createRevalidateRoute(config) {
|
|
628
628
|
const blogBase = config.blogBasePath ?? "/blog";
|
|
629
629
|
const maxBodyBytes = config.maxBodyBytes ?? DEFAULT_MAX_BODY_BYTES;
|
|
630
|
+
const INVARIANTS = [
|
|
631
|
+
"/feed.xml",
|
|
632
|
+
"/llms.txt",
|
|
633
|
+
"/sitemap.xml",
|
|
634
|
+
"/sitemap/static.xml",
|
|
635
|
+
"/sitemap/blog.xml",
|
|
636
|
+
"/sitemap/categories.xml",
|
|
637
|
+
"/sitemap/authors.xml"
|
|
638
|
+
];
|
|
630
639
|
return async function POST(req) {
|
|
631
640
|
const apiKey = config.apiKey?.trim();
|
|
632
641
|
if (!apiKey || apiKey === "local_unconfigured") {
|
|
@@ -657,7 +666,7 @@ function createRevalidateRoute(config) {
|
|
|
657
666
|
}
|
|
658
667
|
}
|
|
659
668
|
const parsed = body ?? { paths: [], postId: null, modelKey: null };
|
|
660
|
-
if (result.event === "theme.updated") {
|
|
669
|
+
if (result.event === "theme.updated" || result.event === "taxonomy.updated") {
|
|
661
670
|
const themeTag = config.themeTag ?? THEME_CACHE_TAG;
|
|
662
671
|
const requestedTags = [
|
|
663
672
|
.../* @__PURE__ */ new Set([
|
|
@@ -665,7 +674,7 @@ function createRevalidateRoute(config) {
|
|
|
665
674
|
...SETTINGS_CACHE_TAGS.filter((t) => t !== THEME_CACHE_TAG)
|
|
666
675
|
])
|
|
667
676
|
];
|
|
668
|
-
const paths2 = parsed.paths;
|
|
677
|
+
const paths2 = result.event === "taxonomy.updated" ? [.../* @__PURE__ */ new Set([...parsed.paths, ...INVARIANTS, ...config.alsoRevalidate ?? []])] : parsed.paths;
|
|
669
678
|
const failed = [];
|
|
670
679
|
const attempt = async (target, run) => {
|
|
671
680
|
try {
|
|
@@ -674,7 +683,7 @@ function createRevalidateRoute(config) {
|
|
|
674
683
|
const reason = e instanceof Error ? e.message : String(e);
|
|
675
684
|
failed.push({ target, reason });
|
|
676
685
|
console.error(
|
|
677
|
-
`[@roottale/cms-renderer-next/routes]
|
|
686
|
+
`[@roottale/cms-renderer-next/routes] ${result.event} \uBB34\uD6A8\uD654 \uC2E4\uD328(${target}):`,
|
|
678
687
|
reason
|
|
679
688
|
);
|
|
680
689
|
}
|
|
@@ -709,17 +718,6 @@ function createRevalidateRoute(config) {
|
|
|
709
718
|
failed.length === 0 ? 200 : 500
|
|
710
719
|
);
|
|
711
720
|
}
|
|
712
|
-
const INVARIANTS = [
|
|
713
|
-
"/feed.xml",
|
|
714
|
-
"/llms.txt",
|
|
715
|
-
"/sitemap.xml",
|
|
716
|
-
"/sitemap/static.xml",
|
|
717
|
-
"/sitemap/blog.xml",
|
|
718
|
-
"/sitemap/categories.xml",
|
|
719
|
-
// 작가 사이트맵 — 글 발행/해제로 작가 등장·lastmod 가 바뀐다(authors 토글 off 면
|
|
720
|
-
// 빈 사이트맵이라 무효화해도 무해).
|
|
721
|
-
"/sitemap/authors.xml"
|
|
722
|
-
];
|
|
723
721
|
let alsoRevalidate;
|
|
724
722
|
let warning;
|
|
725
723
|
let knownCollections;
|
|
@@ -1060,7 +1058,7 @@ function createFleetInfoRoute(config = {}) {
|
|
|
1060
1058
|
site: config.site ?? env.VERCEL_PROJECT_PRODUCTION_URL ?? null,
|
|
1061
1059
|
framework: "next",
|
|
1062
1060
|
cms_client: CMS_CLIENT_VERSION,
|
|
1063
|
-
cms_renderer: true ? "0.
|
|
1061
|
+
cms_renderer: true ? "0.66.0" : "dev",
|
|
1064
1062
|
build_sha: env.VERCEL_GIT_COMMIT_SHA?.slice(0, 7) ?? null,
|
|
1065
1063
|
...config.exposures ? { exposures: config.exposures } : {}
|
|
1066
1064
|
},
|