@prismicio/types-internal
Advanced tools
Comparing version 2.0.0-alpha.13 to 2.0.0-alpha.14
@@ -65,3 +65,8 @@ "use strict"; | ||
const slugs = data["slugs_INTERNAL"] || []; | ||
const uid = data["uid"]; | ||
const uid = (() => { | ||
const rawUID = data["uid"]; | ||
if ((0, fields_1.isUIDContent)(rawUID)) | ||
return rawUID.value; | ||
return; | ||
})(); | ||
return { | ||
@@ -68,0 +73,0 @@ widgets, |
@@ -101,14 +101,3 @@ import type { SharedSlice } from "../widgets/slices"; | ||
select?: "media" | "document" | "web" | null; | ||
customtypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}[]; | ||
customtypes?: readonly string[]; | ||
masks?: readonly string[]; | ||
@@ -272,14 +261,3 @@ tags?: readonly string[]; | ||
select?: "media" | "document" | "web" | null; | ||
customtypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}[]; | ||
customtypes?: readonly string[]; | ||
masks?: readonly string[]; | ||
@@ -459,14 +437,3 @@ tags?: readonly string[]; | ||
select?: "media" | "document" | "web" | null; | ||
customtypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}[]; | ||
customtypes?: readonly string[]; | ||
masks?: readonly string[]; | ||
@@ -630,14 +597,3 @@ tags?: readonly string[]; | ||
select?: "media" | "document" | "web" | null; | ||
customtypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}[]; | ||
customtypes?: readonly string[]; | ||
masks?: readonly string[]; | ||
@@ -644,0 +600,0 @@ tags?: readonly string[]; |
@@ -98,14 +98,3 @@ import type { NestableWidget } from "../widgets/nestable"; | ||
select?: "media" | "document" | "web" | null; | ||
customtypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}[]; | ||
customtypes?: readonly string[]; | ||
masks?: readonly string[]; | ||
@@ -269,14 +258,3 @@ tags?: readonly string[]; | ||
select?: "media" | "document" | "web" | null; | ||
customtypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}[]; | ||
customtypes?: readonly string[]; | ||
masks?: readonly string[]; | ||
@@ -449,14 +427,3 @@ tags?: readonly string[]; | ||
select?: "media" | "document" | "web" | null; | ||
customtypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}[]; | ||
customtypes?: readonly string[]; | ||
masks?: readonly string[]; | ||
@@ -620,14 +587,3 @@ tags?: readonly string[]; | ||
select?: "media" | "document" | "web" | null; | ||
customtypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}[]; | ||
customtypes?: readonly string[]; | ||
masks?: readonly string[]; | ||
@@ -634,0 +590,0 @@ tags?: readonly string[]; |
@@ -130,25 +130,3 @@ import * as t from "io-ts"; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -321,25 +299,3 @@ tags: t.Type<readonly string[], object, unknown>; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -346,0 +302,0 @@ tags: t.Type<readonly string[], object, unknown>; |
@@ -126,25 +126,3 @@ import * as t from "io-ts"; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -151,0 +129,0 @@ tags: t.Type<readonly string[], object, unknown>; |
@@ -138,25 +138,3 @@ import * as t from "io-ts"; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -318,25 +296,3 @@ tags: t.Type<readonly string[], object, unknown>; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -343,0 +299,0 @@ tags: t.Type<readonly string[], object, unknown>; |
@@ -126,25 +126,3 @@ import * as t from "io-ts"; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -314,25 +292,3 @@ tags: t.Type<readonly string[], object, unknown>; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -339,0 +295,0 @@ tags: t.Type<readonly string[], object, unknown>; |
@@ -135,25 +135,3 @@ import * as t from "io-ts"; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -315,25 +293,3 @@ tags: t.Type<readonly string[], object, unknown>; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -511,25 +467,3 @@ tags: t.Type<readonly string[], object, unknown>; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -691,25 +625,3 @@ tags: t.Type<readonly string[], object, unknown>; | ||
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>; | ||
customtypes: t.ReadonlyArrayC<t.Type<{ | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
customTypes?: readonly { | ||
customTypeId: string; | ||
fields?: readonly { | ||
fieldId: string; | ||
}[]; | ||
}[]; | ||
}[]; | ||
}, unknown>>; | ||
customtypes: t.ReadonlyArrayC<t.StringC>; | ||
masks: t.Type<readonly string[], object, unknown>; | ||
@@ -716,0 +628,0 @@ tags: t.Type<readonly string[], object, unknown>; |
{ | ||
"name": "@prismicio/types-internal", | ||
"version": "2.0.0-alpha.13", | ||
"version": "2.0.0-alpha.14", | ||
"description": "Prismic types for Custom Types and Prismic Data", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,3 +7,3 @@ import { either } from "fp-ts" | ||
import { WidgetKey } from "../common" | ||
import { WidgetContent, WidgetLegacy } from "./fields" | ||
import { isUIDContent, WidgetContent, WidgetLegacy } from "./fields" | ||
import { | ||
@@ -101,3 +101,7 @@ defaultCtx, | ||
const slugs = (data["slugs_INTERNAL"] as string[]) || [] | ||
const uid = data["uid"] as string | undefined | ||
const uid = (() => { | ||
const rawUID = data["uid"] | ||
if (isUIDContent(rawUID)) return rawUID.value | ||
return | ||
})() | ||
@@ -104,0 +108,0 @@ return { |
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
2333640
285
55765