@prismicio/types-internal
Advanced tools
Comparing version 3.2.0-alpha.1 to 3.2.0-alpha.2
@@ -186,3 +186,3 @@ "use strict"; | ||
model: (fieldModel === null || fieldModel === void 0 ? void 0 : fieldModel.type) === "Link" && ((_a = fieldModel.config) === null || _a === void 0 ? void 0 : _a.repeat) | ||
? { ...fieldModel, config: { ...fieldModel.config, repeat: false } } | ||
? fieldModel | ||
: undefined, | ||
@@ -189,0 +189,0 @@ content, |
@@ -65,2 +65,9 @@ "use strict"; | ||
]); | ||
// Content inside repeatable can't be repeatable. | ||
const newModel = (model === null || model === void 0 ? void 0 : model.type) === "Link" && model.config | ||
? { | ||
...model, | ||
config: { ...model.config, repeat: false }, | ||
} | ||
: model; | ||
const transformedField = transform({ | ||
@@ -70,3 +77,3 @@ path: itemPath, | ||
apiId: apiId, | ||
model, | ||
model: newModel, | ||
content: fieldContent, | ||
@@ -73,0 +80,0 @@ }); |
{ | ||
"name": "@prismicio/types-internal", | ||
"version": "3.2.0-alpha.1", | ||
"version": "3.2.0-alpha.2", | ||
"description": "Prismic types for Custom Types and Prismic Data", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -304,3 +304,3 @@ import { either } from "fp-ts" | ||
fieldModel?.type === "Link" && fieldModel.config?.repeat | ||
? { ...fieldModel, config: { ...fieldModel.config, repeat: false } } | ||
? fieldModel | ||
: undefined, | ||
@@ -307,0 +307,0 @@ content, |
@@ -116,2 +116,11 @@ import { either } from "fp-ts" | ||
// Content inside repeatable can't be repeatable. | ||
const newModel = | ||
model?.type === "Link" && model.config | ||
? { | ||
...model, | ||
config: { ...model.config, repeat: false }, | ||
} | ||
: model | ||
const transformedField = transform({ | ||
@@ -121,3 +130,3 @@ path: itemPath, | ||
apiId: apiId, | ||
model, | ||
model: newModel, | ||
content: fieldContent, | ||
@@ -124,0 +133,0 @@ }) |
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
3291322
78873