Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prismicio/types-internal

Package Overview
Dependencies
Maintainers
24
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismicio/types-internal - npm Package Compare versions

Comparing version 2.0.0-alpha.13 to 2.0.0-alpha.14

lib/customtypes/widgets/nestable/Link.d.ts

7

lib/content/Document.js

@@ -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,

52

lib/customtypes/diff/SharedSlice.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc