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
185
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.8 to 3.4.0-alpha.9

10

lib/content/fields/nestable/NestableContent.js

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

const EmptyContent_1 = require("../EmptyContent");
const _1 = require(".");
const BooleanContent_1 = require("./BooleanContent");

@@ -20,2 +21,3 @@ const EmbedContent_1 = require("./EmbedContent");

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

@@ -39,2 +41,3 @@ EmptyContent_1.EmptyContent,

RepeatableContent_1.RepeatableContent,
TableContent_1.TableContent,
]);

@@ -68,3 +71,4 @@ const NestableContentDefaultValue = (widgetDef) => {

(0, EmptyContent_1.isEmptyContent)(u) ||
(0, RepeatableContent_1.isRepeatableContent)(u);
(0, RepeatableContent_1.isRepeatableContent)(u) ||
(0, _1.isTableContent)(u);
exports.isNestableContent = isNestableContent;

@@ -113,2 +117,4 @@ const NestableLegacy = (ctx) => {

return (0, RepeatableContent_1.RepeatableLegacy)(ctx, "Link");
case "Table":
return (0, TableContent_1.TableLegacy)(ctx);
default:

@@ -159,2 +165,4 @@ return;

return (0, RepeatableContent_1.RepeatableLegacy)(ctx, value.type).encode(value);
case TableContent_1.TableContentType:
return (0, TableContent_1.TableLegacy)(ctx).encode(value);
default:

@@ -161,0 +169,0 @@ return;

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

}>>]>>;
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
}>>, 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" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", 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" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", 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.Type<GroupContent, GroupContent, unknown>]>]>>;
}>>>;

2

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

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

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

import { EmptyContent, EmptyLegacy, isEmptyContent } from "../EmptyContent"
import { isTableContent } from "."
import {

@@ -87,2 +88,3 @@ BooleanContent,

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

@@ -107,2 +109,3 @@ export const NestableContent = t.union([

RepeatableContent,
TableContent,
])

@@ -142,3 +145,4 @@ export type NestableContent = t.TypeOf<typeof NestableContent>

isEmptyContent(u) ||
isRepeatableContent(u)
isRepeatableContent(u) ||
isTableContent(u)

@@ -187,2 +191,4 @@ export const NestableLegacy = (ctx: LegacyContentCtx) => {

return RepeatableLegacy(ctx, "Link")
case "Table":
return TableLegacy(ctx)
default:

@@ -228,2 +234,4 @@ return

return RepeatableLegacy(ctx, value.type).encode(value)
case TableContentType:
return TableLegacy(ctx).encode(value)

@@ -230,0 +238,0 @@ default:

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