@roottale/cms-renderer-next 0.59.0 → 0.60.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/dist/server.js CHANGED
@@ -1714,11 +1714,6 @@ function readEditorialReview(metaJson) {
1714
1714
  }
1715
1715
  return { reviewerName: value.reviewerName, reviewedAt: value.reviewedAt };
1716
1716
  }
1717
- function authorImageRadiusCss(radius) {
1718
- if (radius === "circle") return "999px";
1719
- if (radius === "rounded") return "0.875rem";
1720
- return "0";
1721
- }
1722
1717
  async function lookupPost(input) {
1723
1718
  if (input.previewToken) {
1724
1719
  try {
@@ -1821,8 +1816,7 @@ async function RootTaleBlogPost(props) {
1821
1816
  const authorImageUrl = post.authorImageUrl;
1822
1817
  const authorImageAlt = `${authorName ?? ""} \uD504\uB85C\uD544 \uC0AC\uC9C4`.trim();
1823
1818
  const authorImageStyle = {
1824
- borderRadius: authorImageRadiusCss(display.authorProfileImageRadius),
1825
- objectPosition: `${display.authorProfileImagePositionX}% ${display.authorProfileImagePositionY}%`
1819
+ objectPosition: `${post.authorImagePositionX ?? display.authorProfileImagePositionX}% ${post.authorImagePositionY ?? display.authorProfileImagePositionY}%`
1826
1820
  };
1827
1821
  const showAuthorCard = display.showAuthorCard && Boolean(authorName);
1828
1822
  const editorialReview = readEditorialReview(post.metaJson);
@@ -1911,6 +1905,7 @@ async function RootTaleBlogPost(props) {
1911
1905
  }
1912
1906
  ),
1913
1907
  renderPostPattern(footerPattern, POST_FOOTER_PATTERN_SLOT2, { apiKey, baseUrl }),
1908
+ footerPattern ? null : renderPostCta(blogSettings.postCta),
1914
1909
  showAuthorCard && authorName ? /* @__PURE__ */ jsxs13("section", { className: "rt-cms-author-card", "aria-label": "\uC791\uC131\uC790", children: [
1915
1910
  authorImageUrl ? /* @__PURE__ */ jsx18(
1916
1911
  "img",
@@ -1932,7 +1927,6 @@ async function RootTaleBlogPost(props) {
1932
1927
  editorPicked.length > 0 ? editorPicked : relatedCardsFromPosts(autoRelated, relatedHref),
1933
1928
  relatedPostsTitle
1934
1929
  ),
1935
- renderPostCta(blogSettings.postCta),
1936
1930
  renderFaqJsonLd(post.bodyJson)
1937
1931
  ]
1938
1932
  }