@prismicio/types-internal
Advanced tools
Comparing version 3.2.0-alpha.3 to 3.3.0-alpha.0
@@ -57,2 +57,3 @@ /** | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>; | ||
@@ -87,2 +88,3 @@ export declare type ImageLinkContent = t.TypeOf<typeof ImageLinkContent>; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>; | ||
@@ -97,2 +99,3 @@ export declare type FileLinkContent = t.TypeOf<typeof FileLinkContent>; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>; | ||
@@ -115,2 +118,3 @@ export declare type MediaLinkContent = t.TypeOf<typeof MediaLinkContent>; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>; | ||
@@ -149,2 +153,3 @@ export declare type DocumentLinkContent = t.TypeOf<typeof DocumentLinkContent>; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>; | ||
@@ -159,2 +164,3 @@ export declare type ExternalLinkContent = t.TypeOf<typeof ExternalLinkContent>; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>; | ||
@@ -183,2 +189,3 @@ export declare type AnyLinkContent = t.TypeOf<typeof AnyLinkContent>; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -198,2 +205,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -205,2 +213,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -214,2 +223,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -229,2 +239,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -236,2 +247,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -257,2 +269,3 @@ }; | ||
text?: string; | ||
variant?: string; | ||
}), (({ | ||
@@ -272,2 +285,3 @@ kind: "image"; | ||
text?: string; | ||
variant?: string; | ||
}, unknown>, t.Type<{ | ||
@@ -287,2 +301,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
}), (({ | ||
@@ -300,2 +315,3 @@ kind: "file"; | ||
text?: string; | ||
variant?: string; | ||
}, unknown>, t.Type<{ | ||
@@ -309,2 +325,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
}), ({ | ||
@@ -316,2 +333,3 @@ id: string; | ||
text?: string; | ||
variant?: string; | ||
}, unknown>, t.Type<{ | ||
@@ -331,2 +349,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
}), (({ | ||
@@ -344,2 +363,3 @@ url: string; | ||
text?: string; | ||
variant?: string; | ||
}, unknown>, t.Type<{ | ||
@@ -351,2 +371,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}, { | ||
@@ -356,2 +377,3 @@ kind: "media"; | ||
text?: string; | ||
variant?: string; | ||
}, unknown>, t.Type<{ | ||
@@ -363,2 +385,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}, { | ||
@@ -368,2 +391,3 @@ kind: "any"; | ||
text?: string; | ||
variant?: string; | ||
}, unknown>]>]>; | ||
@@ -390,2 +414,3 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{ | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -405,2 +430,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -412,2 +438,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -421,2 +448,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -436,2 +464,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -443,2 +472,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -461,2 +491,3 @@ }, WithTypes<{ | ||
text?: string; | ||
variant?: string; | ||
}) | ((({ | ||
@@ -474,2 +505,3 @@ kind: "file"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -479,2 +511,3 @@ kind: "media"; | ||
text?: string; | ||
variant?: string; | ||
}) | (({ | ||
@@ -486,2 +519,3 @@ id: string; | ||
text?: string; | ||
variant?: string; | ||
}) | ((({ | ||
@@ -499,2 +533,3 @@ url: string; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -504,2 +539,3 @@ kind: "any"; | ||
text?: string; | ||
variant?: string; | ||
}))>, unknown>; | ||
@@ -522,2 +558,3 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -537,2 +574,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -546,2 +584,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -563,2 +602,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -570,2 +610,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -577,2 +618,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -599,2 +641,3 @@ export declare const LinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -614,2 +657,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -623,2 +667,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -640,2 +685,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -647,2 +693,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -654,2 +701,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -656,0 +704,0 @@ }>>]>; |
@@ -92,2 +92,3 @@ "use strict"; | ||
text: t.string, | ||
variant: t.string, | ||
})), | ||
@@ -152,2 +153,3 @@ ]); | ||
text: t.string, | ||
variant: t.string, | ||
})), | ||
@@ -179,2 +181,3 @@ ]); | ||
text: t.string, | ||
variant: t.string, | ||
})), | ||
@@ -228,2 +231,3 @@ ]); | ||
text: t.string, | ||
variant: t.string, | ||
})), | ||
@@ -286,2 +290,3 @@ ]); | ||
text: t.string, | ||
variant: t.string, | ||
})), | ||
@@ -313,2 +318,3 @@ ]); | ||
text: t.string, | ||
variant: t.string, | ||
}), | ||
@@ -315,0 +321,0 @@ ])); |
@@ -134,2 +134,3 @@ import * as t from "io-ts"; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -149,2 +150,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -158,2 +160,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -175,2 +178,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -182,2 +186,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -189,2 +194,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -455,2 +461,3 @@ }>>]>, t.ExactC<t.TypeC<{ | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -470,2 +477,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -479,2 +487,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -496,2 +505,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -503,2 +513,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -510,2 +521,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -649,2 +661,3 @@ }>>]>>; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -664,2 +677,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -671,2 +685,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -680,2 +695,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -695,2 +711,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -702,2 +719,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -727,2 +745,3 @@ }) | { | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -742,2 +761,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -749,2 +769,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -758,2 +779,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -773,2 +795,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -780,2 +803,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -1072,2 +1096,3 @@ })[]; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1087,2 +1112,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1094,2 +1120,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -1103,2 +1130,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1118,2 +1146,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1125,2 +1154,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -1150,2 +1180,3 @@ }> | import("fp-ts/lib/Either").Right<{ | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1165,2 +1196,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1172,2 +1204,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -1181,2 +1214,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1196,2 +1230,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1203,2 +1238,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -1205,0 +1241,0 @@ })[]; |
@@ -28,2 +28,3 @@ import * as t from "io-ts"; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -43,2 +44,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -52,2 +54,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -69,2 +72,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -76,2 +80,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -83,2 +88,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -111,2 +117,3 @@ }>>]>>; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -126,2 +133,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -133,2 +141,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -142,2 +151,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -157,2 +167,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -164,2 +175,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -166,0 +178,0 @@ })[]; |
@@ -65,9 +65,2 @@ "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({ | ||
@@ -77,3 +70,3 @@ path: itemPath, | ||
apiId: apiId, | ||
model: newModel, | ||
model: model, | ||
content: fieldContent, | ||
@@ -80,0 +73,0 @@ }); |
@@ -139,2 +139,3 @@ import * as t from "io-ts"; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -154,2 +155,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -163,2 +165,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -180,2 +183,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -187,2 +191,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -194,2 +199,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -460,2 +466,3 @@ }>>]>, t.ExactC<t.TypeC<{ | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -475,2 +482,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -484,2 +492,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -501,2 +510,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -508,2 +518,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -515,2 +526,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -517,0 +529,0 @@ }>>]>>; |
@@ -137,2 +137,3 @@ import * as t from "io-ts"; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -152,2 +153,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -161,2 +163,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -178,2 +181,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -185,2 +189,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -192,2 +197,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -458,2 +464,3 @@ }>>]>, t.ExactC<t.TypeC<{ | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -473,2 +480,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -482,2 +490,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -499,2 +508,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -506,2 +516,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -513,2 +524,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -650,2 +662,3 @@ }>>]>>; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -665,2 +678,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -672,2 +686,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -681,2 +696,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -696,2 +712,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -703,2 +720,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -728,2 +746,3 @@ }) | { | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -743,2 +762,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -750,2 +770,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -759,2 +780,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -774,2 +796,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -781,2 +804,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -1073,2 +1097,3 @@ })[]; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1088,2 +1113,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1095,2 +1121,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -1104,2 +1131,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1119,2 +1147,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1126,2 +1155,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -1151,2 +1181,3 @@ }> | import("fp-ts/lib/Either").Right<{ | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1166,2 +1197,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1173,2 +1205,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -1182,2 +1215,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1197,2 +1231,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1204,2 +1239,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -1206,0 +1242,0 @@ })[]; |
@@ -134,2 +134,3 @@ import * as t from "io-ts"; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -149,2 +150,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -158,2 +160,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -175,2 +178,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -182,2 +186,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -189,2 +194,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -455,2 +461,3 @@ }>>]>, t.ExactC<t.TypeC<{ | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -470,2 +477,3 @@ __TYPE__: t.LiteralC<"FileLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -479,2 +487,3 @@ __TYPE__: t.LiteralC<"DocumentLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -496,2 +505,3 @@ __TYPE__: t.LiteralC<"ExternalLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -503,2 +513,3 @@ __TYPE__: t.LiteralC<"MediaLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{ | ||
@@ -510,2 +521,3 @@ __TYPE__: t.LiteralC<"AnyLink">; | ||
text: t.StringC; | ||
variant: t.StringC; | ||
}>]>>]>]>; | ||
@@ -649,2 +661,3 @@ }>>]>>; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -664,2 +677,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -671,2 +685,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -680,2 +695,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -695,2 +711,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -702,2 +719,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -727,2 +745,3 @@ }> | import("fp-ts/lib/Either").Right<{ | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -742,2 +761,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -749,2 +769,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -758,2 +779,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -773,2 +795,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -780,2 +803,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -1073,2 +1097,3 @@ })[]; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1088,2 +1113,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1095,2 +1121,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -1104,2 +1131,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1119,2 +1147,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1126,2 +1155,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -1151,2 +1181,3 @@ }) | { | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1166,2 +1197,3 @@ __TYPE__: "FileLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1173,2 +1205,3 @@ __TYPE__: "MediaLink"; | ||
text?: string; | ||
variant?: string; | ||
}) | ({ | ||
@@ -1182,2 +1215,3 @@ __TYPE__: "DocumentLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1197,2 +1231,3 @@ __TYPE__: "ExternalLink"; | ||
text?: string; | ||
variant?: string; | ||
})) | ({ | ||
@@ -1204,2 +1239,3 @@ __TYPE__: "AnyLink"; | ||
text?: string; | ||
variant?: string; | ||
}); | ||
@@ -1206,0 +1242,0 @@ })[]; |
@@ -104,2 +104,6 @@ import type { Variation } from "../widgets/slices"; | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -273,2 +277,6 @@ }) | ({ | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -442,2 +450,6 @@ }) | ({ | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -610,2 +622,6 @@ }) | ({ | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -781,2 +797,6 @@ }) | ({ | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -950,2 +970,6 @@ }) | ({ | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -1119,2 +1143,6 @@ }) | ({ | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -1287,2 +1315,6 @@ }) | ({ | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -1289,0 +1321,0 @@ }) | ({ |
@@ -136,2 +136,6 @@ import * as t from "io-ts"; | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -307,2 +311,6 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -473,2 +481,6 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -641,2 +653,6 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -814,2 +830,6 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -982,2 +1002,6 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -984,0 +1008,0 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ |
@@ -18,2 +18,6 @@ import * as t from "io-ts"; | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -40,4 +44,8 @@ export declare type LinkConfig = t.TypeOf<typeof LinkConfig>; | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
}>]>>; | ||
export declare type Link = t.TypeOf<typeof Link>; |
@@ -51,2 +51,6 @@ "use strict"; | ||
repeat: t.boolean, | ||
variant: t.strict({ | ||
options: t.array(t.string), | ||
default_value: t.string, | ||
}), | ||
})); | ||
@@ -53,0 +57,0 @@ exports.Link = t.exact(t.intersection([ |
@@ -132,2 +132,6 @@ import * as t from "io-ts"; | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -134,0 +138,0 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ |
@@ -145,2 +145,6 @@ import * as t from "io-ts"; | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -305,2 +309,6 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -307,0 +315,0 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ |
@@ -133,2 +133,6 @@ import * as t from "io-ts"; | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -301,2 +305,6 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -303,0 +311,0 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ |
@@ -132,2 +132,6 @@ import * as t from "io-ts"; | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -300,2 +304,6 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -468,2 +476,6 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
repeat: t.BooleanC; | ||
variant: t.ExactC<t.TypeC<{ | ||
options: t.ArrayC<t.StringC>; | ||
default_value: t.StringC; | ||
}>>; | ||
}>>; | ||
@@ -588,2 +600,6 @@ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -757,2 +773,6 @@ }) | ({ | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -926,2 +946,6 @@ }) | ({ | ||
repeat?: boolean; | ||
variant?: { | ||
options: string[]; | ||
default_value: string; | ||
}; | ||
}; | ||
@@ -928,0 +952,0 @@ }) | ({ |
{ | ||
"name": "@prismicio/types-internal", | ||
"version": "3.2.0-alpha.3", | ||
"version": "3.3.0-alpha.0", | ||
"description": "Prismic types for Custom Types and Prismic Data", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -129,2 +129,3 @@ /** | ||
text: t.string, | ||
variant: t.string, | ||
}), | ||
@@ -234,2 +235,3 @@ ), | ||
text: t.string, | ||
variant: t.string, | ||
}), | ||
@@ -278,2 +280,3 @@ ), | ||
text: t.string, | ||
variant: t.string, | ||
}), | ||
@@ -364,2 +367,3 @@ ), | ||
text: t.string, | ||
variant: t.string, | ||
}), | ||
@@ -462,2 +466,3 @@ ), | ||
text: t.string, | ||
variant: t.string, | ||
}), | ||
@@ -507,2 +512,3 @@ ), | ||
text: t.string, | ||
variant: t.string, | ||
}), | ||
@@ -509,0 +515,0 @@ ]), |
@@ -116,11 +116,2 @@ 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({ | ||
@@ -130,3 +121,3 @@ path: itemPath, | ||
apiId: apiId, | ||
model: newModel, | ||
model: model, | ||
content: fieldContent, | ||
@@ -133,0 +124,0 @@ }) |
@@ -88,2 +88,7 @@ import { either } from "fp-ts/lib/Either" | ||
repeat: t.boolean, | ||
variant: t.strict({ | ||
options: t.array(t.string), | ||
default_value: t.string, | ||
}), | ||
}), | ||
@@ -90,0 +95,0 @@ ) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
3359793
80566