@roottale/cms-renderer-next 0.45.0 → 0.46.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 +13 -0
- package/dist/{chunk-45KYMMDY.js → chunk-JXRHZGRJ.js} +7 -5
- package/dist/chunk-JXRHZGRJ.js.map +1 -0
- package/dist/{chunk-GUV5WHD5.js → chunk-UM37DOIK.js} +12 -1
- package/dist/{chunk-GUV5WHD5.js.map → chunk-UM37DOIK.js.map} +1 -1
- package/dist/{chunk-Z3ZSCPG4.js → chunk-ZL2NA3QT.js} +63 -18
- package/dist/chunk-ZL2NA3QT.js.map +1 -0
- package/dist/concerns-client.d.ts +1 -1
- package/dist/expertise-client.d.ts +1 -1
- package/dist/routes.js +6 -4
- package/dist/routes.js.map +1 -1
- package/dist/server.js +3 -3
- package/dist/{site-config-kqurIH-k.d.ts → site-config-CeByrPJF.d.ts} +17 -4
- package/dist/spaces-client.d.ts +1 -1
- package/dist/team-expanding-stage-client.d.ts +1 -1
- package/dist/templates.d.ts +2 -2
- package/dist/templates.js +3 -3
- package/dist/ui-react-motion-client.d.ts +3 -1
- package/dist/ui-react-motion-client.js +1 -1
- package/dist/validate.js +1 -1
- package/package.json +7 -4
- package/dist/chunk-45KYMMDY.js.map +0 -1
- package/dist/chunk-Z3ZSCPG4.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @roottale/cms-renderer-next
|
|
2
2
|
|
|
3
|
+
## 0.46.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 69f7d52: 콘텐츠 유형(Collection)에 **주소 없는 유형**(`basePath: ""`)을 지원합니다(ADR-0060). 강사·리뷰처럼 페이지 안에서 불러와 쓰는 콘텐츠는 이제 라우트 없이 운영할 수 있습니다 — `resolvePostUrl`/`resolvePostPath`는 이런 유형의 글에 항상 `null`을 반환하고, `validateCollections`는 basePath 형식·중복 검사를 건너뜁니다(여러 개 공존 허용). 외부 사이트는 posts API의 `collectionKey` 필터로 내용만 가져다 페이지 안에서 렌더하면 됩니다(`RootTaleBlogList`를 임베디드로 쓸 때는 자체 `postHref` 제공 권장). 소속 판정(`resolvePostCollection`)은 영향 없음 — key만으로 소속이 성립합니다. 기존 유형(basePath 있는 유형)은 동작 변화가 없습니다.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- bae4a65: `package.json`에 `sideEffects`를 선언합니다(`["*.css"]` — CSS는 명시적 side-effect import 예외, 나머지는 side-effect 없음을 확인). 소스 전수 감사(등록·전역 상태·DOM API 호출 없음)를 거쳤습니다. 실측 결과 현재 Next.js 16.2.6 Turbopack 빌드에서는 이 선언만으로 소비 사이트 번들이 줄지 않습니다 — `SiteRenderer`가 17종 빌트인 섹션을 런타임 문자열로 디스패치하는 단일 함수라 도달성이 항상 전체이고, `templates` 서브패스가 전 섹션을 named export로 공개해 tsup 빌드 산출물이 미리 하나의 공유 청크로 병합되기 때문입니다. 소비 사이트 측 `optimizePackageImports`도 효과가 없음을 확인했습니다(사전 병합된 산출물이라 재작성 대상이 없음). 이번 선언은 향후 번들러 개선이나 dynamic import 재도입 시 전제조건을 미리 충족해 두는 무해한 위생 변경입니다. 동작·export 표면 변경 없음.
|
|
12
|
+
- Updated dependencies [69f7d52]
|
|
13
|
+
- @roottale/cms-core@0.46.0
|
|
14
|
+
- @roottale/cms-client@0.46.0
|
|
15
|
+
|
|
3
16
|
## 0.45.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
Marquee,
|
|
23
23
|
StaggerGroup,
|
|
24
24
|
StaggerItem
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZL2NA3QT.js";
|
|
26
26
|
import {
|
|
27
27
|
collectCategories,
|
|
28
28
|
collectCategoriesWithCounts,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-FUA5H6JE.js";
|
|
33
33
|
import {
|
|
34
34
|
SectionSchema
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UM37DOIK.js";
|
|
36
36
|
import {
|
|
37
37
|
HeroCarouselViewport
|
|
38
38
|
} from "./chunk-OMXEU4LS.js";
|
|
@@ -3102,7 +3102,7 @@ function archiveGroupTitle(group) {
|
|
|
3102
3102
|
}
|
|
3103
3103
|
function archivePostHref(collectionKey, slug, collections) {
|
|
3104
3104
|
const collection = collections?.find((item) => item.key === collectionKey);
|
|
3105
|
-
const basePath = collection?.basePath
|
|
3105
|
+
const basePath = collection?.basePath || defaultArchiveBasePath(collectionKey);
|
|
3106
3106
|
const trimmedBase = basePath.replace(/\/+$/, "");
|
|
3107
3107
|
if (collection?.detail === false) return trimmedBase;
|
|
3108
3108
|
return `${trimmedBase}/${slug}`;
|
|
@@ -3234,7 +3234,9 @@ function makeCollectionPostHref(collections) {
|
|
|
3234
3234
|
const path = resolvePostPath(post, collections);
|
|
3235
3235
|
if (path) return path;
|
|
3236
3236
|
const collection = resolvePostCollection(post, collections);
|
|
3237
|
-
if (collection && collection.detail === false
|
|
3237
|
+
if (collection && collection.detail === false && collection.basePath) {
|
|
3238
|
+
return collection.basePath;
|
|
3239
|
+
}
|
|
3238
3240
|
return defaultPostHref(post);
|
|
3239
3241
|
};
|
|
3240
3242
|
}
|
|
@@ -3524,4 +3526,4 @@ export {
|
|
|
3524
3526
|
RootTalePage,
|
|
3525
3527
|
RenderTiptap
|
|
3526
3528
|
};
|
|
3527
|
-
//# sourceMappingURL=chunk-
|
|
3529
|
+
//# sourceMappingURL=chunk-JXRHZGRJ.js.map
|