@prismicio/api-renderer
Advanced tools
Comparing version 6.1.0-alpha.1 to 6.1.0
{ | ||
"name": "@prismicio/api-renderer", | ||
"version": "6.1.0-alpha.1", | ||
"version": "6.1.0", | ||
"description": "Prismic renderers for the content API", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@prismicio/types-internal": "3.3.0-alpha.2", | ||
"@prismicio/types-internal": "3.3.0", | ||
"tslib": "^2.5.0", | ||
@@ -41,0 +41,0 @@ "uuid": "^9.0.0" |
@@ -29,3 +29,4 @@ import type { AnyLinkContent, LinkContent } from "@prismicio/types-internal/lib/content" | ||
const defVariants = def.variants || [] | ||
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
const linkVariant = | ||
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
@@ -32,0 +33,0 @@ return { |
@@ -32,3 +32,4 @@ import { type DocumentLinkContent, FilledDocumentLinkContent, LinkContent } from "@prismicio/types-internal/lib/content" | ||
const defVariants = def.variants || [] | ||
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
const linkVariant = | ||
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
@@ -100,4 +101,5 @@ return { | ||
const defVariants = def.variants || [] | ||
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
const linkVariant = | ||
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
if (FilledDocumentLinkContent.is(link.value)) { | ||
@@ -129,4 +131,5 @@ const linkKey = options?.omitKey ? undefined : link.key | ||
const defVariants = def.variants || [] | ||
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
const linkVariant = | ||
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
return { | ||
@@ -133,0 +136,0 @@ id: link.value.id, |
@@ -37,3 +37,4 @@ import { type ExternalLinkContent, FilledExternalLinkContent, LinkContent } from "@prismicio/types-internal/lib/content" | ||
const defVariants = def.variants || [] | ||
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
const linkVariant = | ||
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
@@ -40,0 +41,0 @@ return { |
@@ -35,3 +35,4 @@ import { type FileLinkContent, FilledFileLinkContent, LinkContent } from "@prismicio/types-internal/lib/content" | ||
const defVariants = def.variants || [] | ||
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
const linkVariant = | ||
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
@@ -38,0 +39,0 @@ return { |
@@ -38,3 +38,4 @@ import { type ImageLinkContent, FilledImageLinkContent, LinkContent } from "@prismicio/types-internal/lib/content" | ||
const defVariants = def.variants || [] | ||
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
const linkVariant = | ||
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
@@ -41,0 +42,0 @@ return { |
@@ -29,3 +29,4 @@ import type { LinkContent, MediaLinkContent } from "@prismicio/types-internal/lib/content" | ||
const defVariants = def.variants || [] | ||
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
const linkVariant = | ||
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0] | ||
@@ -32,0 +33,0 @@ return { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1097308
26028
1
+ Added@prismicio/types-internal@3.3.0(transitive)
- Removed@prismicio/types-internal@3.3.0-alpha.2(transitive)