@prismicio/api-renderer
Advanced tools
Comparing version 5.0.0-alpha.0 to 5.0.0-xru-alpha.0
@@ -48,3 +48,9 @@ "use strict"; | ||
var _a; | ||
if (def.type === "Link" && ((_a = def.config) === null || _a === void 0 ? void 0 : _a.repeat) && (0, RepeatableContent_1.isRepeatableContent)(content)) { | ||
if ((0, RepeatableContent_1.isRepeatableContent)(content)) { | ||
return { | ||
def, | ||
content, | ||
}; | ||
} | ||
else if (def.type === "Link" && ((_a = def.config) === null || _a === void 0 ? void 0 : _a.repeat) && (0, RepeatableContent_1.isRepeatableContent)(content)) { | ||
return RepeatableRenderer(ctx).renderV2(def, content, extractSimpleFieldIfAny(fetch)); | ||
@@ -51,0 +57,0 @@ } |
{ | ||
"name": "@prismicio/api-renderer", | ||
"version": "5.0.0-alpha.0", | ||
"version": "5.0.0-xru-alpha.0", | ||
"description": "Prismic renderers for the content API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -48,3 +48,8 @@ import { GroupContent, isGroupContent, isNestableContent, NestableContent } from "@prismicio/types-internal/lib/content" | ||
renderV2(def, content, fetch) { | ||
if (def.type === "Link" && def.config?.repeat && isRepeatableContent(content)) { | ||
if (isRepeatableContent(content)) { | ||
return { | ||
def, | ||
content, | ||
} | ||
} else if (def.type === "Link" && def.config?.repeat && isRepeatableContent(content)) { | ||
return RepeatableRenderer(ctx).renderV2(def, content, extractSimpleFieldIfAny(fetch)) | ||
@@ -51,0 +56,0 @@ } else if (def.type !== "Group" && isNestableContent(content)) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1069972
25437