New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@prismicio/types-internal

Package Overview
Dependencies
Maintainers
0
Versions
184
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 3.4.0-alpha.1 to 3.4.0-alpha.2

7

lib/content/fields/nestable/NestableContent.js

@@ -19,2 +19,3 @@ "use strict";

const SeparatorContent_1 = require("./SeparatorContent");
const TableContent_1 = require("./TableContent");
exports.NestableContent = t.union([

@@ -37,2 +38,3 @@ EmptyContent_1.EmptyContent,

SeparatorContent_1.SeparatorContent,
TableContent_1.TableContent,
RepeatableContent_1.RepeatableContent,

@@ -66,2 +68,3 @@ ]);

(0, SeparatorContent_1.isSeparatorContent)(u) ||
(0, TableContent_1.isTableContent)(u) ||
(0, EmptyContent_1.isEmptyContent)(u) ||

@@ -110,2 +113,4 @@ (0, RepeatableContent_1.isRepeatableContent)(u);

return (0, SeparatorContent_1.SeparatorLegacy)(ctx);
case "Table":
return (0, TableContent_1.TableLegacy)(ctx);
case "Repeatable.Link":

@@ -156,2 +161,4 @@ return (0, RepeatableContent_1.RepeatableLegacy)(ctx, "Link");

return (0, SeparatorContent_1.SeparatorLegacy)(ctx).encode(value);
case TableContent_1.TableContentType:
return (0, TableContent_1.TableLegacy)(ctx).encode(value);
case "RepeatableContent":

@@ -158,0 +165,0 @@ return (0, RepeatableContent_1.RepeatableLegacy)(ctx, value.type).encode(value);

@@ -437,3 +437,236 @@ import * as t from "io-ts";

__TYPE__: t.LiteralC<"SeparatorContent">;
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
content: t.ArrayC<t.ExactC<t.TypeC<{
type: t.LiteralC<"tableRow">;
content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
type: t.LiteralC<"tableHeader">;
content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
content: t.IntersectionC<[t.TypeC<{
text: t.StringC;
}>, t.PartialC<{
spans: t.Type<({
data: ({
__TYPE__: "ImageLink";
} & {
kind: "image";
id: string;
url: string;
height: string;
width: string;
size: string;
name: string;
} & {
date?: string | null | undefined;
}) | ({
__TYPE__: "FileLink";
} & {
kind: "file";
id: string;
url: string;
name: string;
size: string;
} & {
date?: string | null | undefined;
}) | ({
__TYPE__: "DocumentLink";
} & {
id: string;
}) | ({
__TYPE__: "ExternalLink";
} & {
url: string;
} & {
kind?: "web";
target?: string | null | undefined;
preview?: {
title?: string;
} | null | undefined;
});
start: number;
end: number;
type: "hyperlink";
} | {
data: string;
start: number;
end: number;
type: "label";
} | {
start: number;
end: number;
type: "strong" | "em" | "list-item";
})[], ({
data: ({
__TYPE__: "ImageLink";
} & {
kind: "image";
id: string;
url: string;
height: string;
width: string;
size: string;
name: string;
} & {
date?: string | null | undefined;
}) | ({
__TYPE__: "FileLink";
} & {
kind: "file";
id: string;
url: string;
name: string;
size: string;
} & {
date?: string | null | undefined;
}) | ({
__TYPE__: "DocumentLink";
} & {
id: string;
}) | ({
__TYPE__: "ExternalLink";
} & {
url: string;
} & {
kind?: "web";
target?: string | null | undefined;
preview?: {
title?: string;
} | null | undefined;
});
start: number;
end: number;
type: "hyperlink";
} | {
data: string;
start: number;
end: number;
type: "label";
} | {
start: number;
end: number;
type: "strong" | "em" | "list-item";
})[], unknown>;
}>]>;
}>, t.PartialC<{
label: t.StringC;
direction: t.StringC;
}>]>>>;
}>>, t.ExactC<t.TypeC<{
type: t.LiteralC<"tableCell">;
content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
content: t.IntersectionC<[t.TypeC<{
text: t.StringC;
}>, t.PartialC<{
spans: t.Type<({
data: ({
__TYPE__: "ImageLink";
} & {
kind: "image";
id: string;
url: string;
height: string;
width: string;
size: string;
name: string;
} & {
date?: string | null | undefined;
}) | ({
__TYPE__: "FileLink";
} & {
kind: "file";
id: string;
url: string;
name: string;
size: string;
} & {
date?: string | null | undefined;
}) | ({
__TYPE__: "DocumentLink";
} & {
id: string;
}) | ({
__TYPE__: "ExternalLink";
} & {
url: string;
} & {
kind?: "web";
target?: string | null | undefined;
preview?: {
title?: string;
} | null | undefined;
});
start: number;
end: number;
type: "hyperlink";
} | {
data: string;
start: number;
end: number;
type: "label";
} | {
start: number;
end: number;
type: "strong" | "em" | "list-item";
})[], ({
data: ({
__TYPE__: "ImageLink";
} & {
kind: "image";
id: string;
url: string;
height: string;
width: string;
size: string;
name: string;
} & {
date?: string | null | undefined;
}) | ({
__TYPE__: "FileLink";
} & {
kind: "file";
id: string;
url: string;
name: string;
size: string;
} & {
date?: string | null | undefined;
}) | ({
__TYPE__: "DocumentLink";
} & {
id: string;
}) | ({
__TYPE__: "ExternalLink";
} & {
url: string;
} & {
kind?: "web";
target?: string | null | undefined;
preview?: {
title?: string;
} | null | undefined;
});
start: number;
end: number;
type: "hyperlink";
} | {
data: string;
start: number;
end: number;
type: "label";
} | {
start: number;
end: number;
type: "strong" | "em" | "list-item";
})[], unknown>;
}>]>;
}>, t.PartialC<{
label: t.StringC;
direction: t.StringC;
}>]>>>;
}>>]>>;
}>>>;
}>>, t.ExactC<t.TypeC<{
__TYPE__: t.LiteralC<"TableContent">;
}>>]>, t.ExactC<t.TypeC<{
__TYPE__: t.LiteralC<"RepeatableContent">;

@@ -440,0 +673,0 @@ type: t.LiteralC<"Link">;

@@ -162,2 +162,8 @@ import type { Variation } from "../widgets/slices";

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -332,2 +338,8 @@ } & {

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -502,2 +514,8 @@ } & {

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -671,2 +689,8 @@ } & {

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -843,2 +867,8 @@ } & {

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -1013,2 +1043,8 @@ } & {

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -1183,2 +1219,8 @@ } & {

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -1352,2 +1394,8 @@ } & {

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -1354,0 +1402,0 @@ } & {

@@ -104,2 +104,8 @@ import * as t from "io-ts";

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -276,2 +282,8 @@ }>, t.PartialC<{

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -443,2 +455,8 @@ }>, t.PartialC<{

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -612,2 +630,8 @@ }>, t.PartialC<{

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -786,2 +810,8 @@ }>, t.PartialC<{

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -955,2 +985,8 @@ }>, t.PartialC<{

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -957,0 +993,0 @@ }>, t.PartialC<{

@@ -100,2 +100,8 @@ import * as t from "io-ts";

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -102,0 +108,0 @@ }>, t.PartialC<{

2

lib/customtypes/widgets/nestable/NestableWidget.js

@@ -19,2 +19,3 @@ "use strict";

const Separator_1 = require("./Separator");
const Table_1 = require("./Table");
const Text_1 = require("./Text");

@@ -33,2 +34,3 @@ const Timestamp_1 = require("./Timestamp");

Separator_1.Separator,
Table_1.Table,
Text_1.Text,

@@ -35,0 +37,0 @@ Timestamp_1.Timestamp,

@@ -113,2 +113,8 @@ import * as t from "io-ts";

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -274,2 +280,8 @@ }>, t.PartialC<{

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -276,0 +288,0 @@ }>, t.PartialC<{

@@ -101,2 +101,8 @@ import * as t from "io-ts";

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -270,2 +276,8 @@ }>, t.PartialC<{

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -272,0 +284,0 @@ }>, t.PartialC<{

@@ -100,2 +100,8 @@ import * as t from "io-ts";

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -269,2 +275,8 @@ }>, t.PartialC<{

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -438,2 +450,8 @@ }>, t.PartialC<{

}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Table">;
}>, t.PartialC<{
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
}>>;
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Text">;

@@ -649,2 +667,8 @@ }>, t.PartialC<{

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -819,2 +843,8 @@ } & {

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -989,2 +1019,8 @@ } & {

}) | ({
type: "Table";
} & {
config?: {
label?: string | null | undefined;
};
}) | ({
type: "Text";

@@ -991,0 +1027,0 @@ } & {

2

package.json
{
"name": "@prismicio/types-internal",
"version": "3.4.0-alpha.1",
"version": "3.4.0-alpha.2",
"description": "Prismic types for Custom Types and Prismic Data",

@@ -5,0 +5,0 @@ "keywords": [

@@ -86,2 +86,8 @@ import { isRight } from "fp-ts/lib/Either"

} from "./SeparatorContent"
import {
isTableContent,
TableContent,
TableContentType,
TableLegacy,
} from "./TableContent"

@@ -105,2 +111,3 @@ export const NestableContent = t.union([

SeparatorContent,
TableContent,
RepeatableContent,

@@ -140,2 +147,3 @@ ])

isSeparatorContent(u) ||
isTableContent(u) ||
isEmptyContent(u) ||

@@ -184,2 +192,4 @@ isRepeatableContent(u)

return SeparatorLegacy(ctx)
case "Table":
return TableLegacy(ctx)
case "Repeatable.Link":

@@ -225,2 +235,4 @@ return RepeatableLegacy(ctx, "Link")

return SeparatorLegacy(ctx).encode(value)
case TableContentType:
return TableLegacy(ctx).encode(value)
case "RepeatableContent":

@@ -227,0 +239,0 @@ return RepeatableLegacy(ctx, value.type).encode(value)

@@ -16,2 +16,3 @@ import * as t from "io-ts"

import { Separator } from "./Separator"
import { Table } from "./Table"
import { Text } from "./Text"

@@ -31,2 +32,3 @@ import { Timestamp } from "./Timestamp"

Separator,
Table,
Text,

@@ -33,0 +35,0 @@ Timestamp,

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

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