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

@prismicio/api-renderer

Package Overview
Dependencies
Maintainers
19
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismicio/api-renderer - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

8

lib/models/ApiModel/Group.d.ts

@@ -32,3 +32,3 @@ import type { Group } from "@prismicio/types-internal/lib/customtypes/widgets";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -46,3 +46,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -95,3 +95,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -117,3 +117,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -120,0 +120,0 @@ readonly __TYPE__: "selectDef";

@@ -34,3 +34,3 @@ import type { CustomType } from "@prismicio/types-internal/lib/customtypes";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -48,3 +48,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -97,3 +97,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -119,3 +119,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -168,3 +168,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -184,3 +184,3 @@ select: "media";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -225,3 +225,3 @@ __TYPE__: "ConfigDocumentLinkDef";

config: {
options: string[];
options: readonly string[];
};

@@ -231,3 +231,3 @@ }, {

readonly config: {
options: string[];
options: readonly string[];
};

@@ -298,3 +298,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -312,3 +312,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -354,3 +354,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -368,3 +368,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -413,3 +413,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -427,3 +427,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -467,3 +467,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -481,3 +481,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -525,3 +525,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -539,3 +539,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -580,3 +580,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -594,3 +594,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -647,3 +647,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -669,3 +669,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -724,3 +724,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -746,3 +746,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -808,3 +808,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -830,3 +830,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -883,3 +883,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -905,3 +905,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -966,3 +966,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -988,3 +988,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1042,3 +1042,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1064,3 +1064,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1120,3 +1120,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1134,3 +1134,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1175,3 +1175,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1189,3 +1189,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1239,3 +1239,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1261,3 +1261,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1315,3 +1315,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1337,3 +1337,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1392,3 +1392,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1406,3 +1406,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1446,3 +1446,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1460,3 +1460,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1513,3 +1513,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1535,3 +1535,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1588,3 +1588,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1610,3 +1610,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1664,3 +1664,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1678,3 +1678,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1720,3 +1720,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1734,3 +1734,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1784,3 +1784,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1806,3 +1806,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1861,3 +1861,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1883,3 +1883,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1886,0 +1886,0 @@ readonly __TYPE__: "selectDef";

@@ -6,6 +6,6 @@ import type Link from "@prismicio/types-internal/lib/customtypes/widgets/nestable/Link";

select: "document";
customtypes: string[];
customtypes: readonly string[];
}, {
select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -12,0 +12,0 @@ __TYPE__: "ConfigDocumentLinkDef";

@@ -10,3 +10,3 @@ "use strict";

select: t.literal("document"),
customtypes: t.array(t.string),
customtypes: t.readonlyArray(t.string),
}), exports.DocumentLinkDefType);

@@ -13,0 +13,0 @@ function fromDocumentLink(link) {

@@ -11,3 +11,3 @@ import type { Link } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -27,3 +27,3 @@ select: "media";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -30,0 +30,0 @@ __TYPE__: "ConfigDocumentLinkDef";

@@ -7,3 +7,3 @@ import type { Select } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";

config: {
options: string[];
options: readonly string[];
};

@@ -13,3 +13,3 @@ }, {

readonly config: {
options: string[];
options: readonly string[];
};

@@ -16,0 +16,0 @@ readonly __TYPE__: "selectDef";

@@ -11,3 +11,3 @@ "use strict";

config: t.strict({
options: t.array(t.string),
options: t.readonlyArray(t.string),
}),

@@ -14,0 +14,0 @@ }), (o) => ({ name: o.select, config: o.config, __TYPE__: exports.SelectDefType }));

@@ -31,3 +31,3 @@ import { type UID } from "@prismicio/types-internal/lib/customtypes/widgets";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -47,3 +47,3 @@ select: "media";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -88,3 +88,3 @@ __TYPE__: "ConfigDocumentLinkDef";

config: {
options: string[];
options: readonly string[];
};

@@ -94,3 +94,3 @@ }, {

readonly config: {
options: string[];
options: readonly string[];
};

@@ -97,0 +97,0 @@ readonly __TYPE__: "selectDef";

@@ -32,3 +32,3 @@ import type { CompositeSlice } from "@prismicio/types-internal/lib/customtypes/widgets/slices";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -46,3 +46,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -88,3 +88,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -102,3 +102,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -152,3 +152,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -174,3 +174,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -229,3 +229,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -251,3 +251,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -254,0 +254,0 @@ readonly __TYPE__: "selectDef";

@@ -32,3 +32,3 @@ import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes/widgets/slices";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -46,3 +46,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -86,3 +86,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -100,3 +100,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -150,3 +150,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -172,3 +172,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -225,3 +225,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -247,3 +247,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -303,3 +303,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -317,3 +317,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -357,3 +357,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -371,3 +371,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -424,3 +424,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -446,3 +446,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -499,3 +499,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -521,3 +521,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -524,0 +524,0 @@ readonly __TYPE__: "selectDef";

@@ -32,3 +32,3 @@ import type { LegacySlice } from "@prismicio/types-internal/lib/customtypes/widgets/slices";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -46,3 +46,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -87,3 +87,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -101,3 +101,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -151,3 +151,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -173,3 +173,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -227,3 +227,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -249,3 +249,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -252,0 +252,0 @@ readonly __TYPE__: "selectDef";

@@ -31,3 +31,3 @@ import { CompositeSlice, LegacySlice, SharedSlice } from "@prismicio/types-internal/lib/customtypes/widgets/slices";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -45,3 +45,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -86,3 +86,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -100,3 +100,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -150,3 +150,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -172,3 +172,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -226,3 +226,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -248,3 +248,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -303,3 +303,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -317,3 +317,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -357,3 +357,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -371,3 +371,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -424,3 +424,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -446,3 +446,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -499,3 +499,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -521,3 +521,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -575,3 +575,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -589,3 +589,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -631,3 +631,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -645,3 +645,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -695,3 +695,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -717,3 +717,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -772,3 +772,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -794,3 +794,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -797,0 +797,0 @@ readonly __TYPE__: "selectDef";

@@ -35,3 +35,3 @@ import { SharedSlice } from "@prismicio/types-internal/lib/customtypes/widgets/slices";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -49,3 +49,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -91,3 +91,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -105,3 +105,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -150,3 +150,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -164,3 +164,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -204,3 +204,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -218,3 +218,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -262,3 +262,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -276,3 +276,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -317,3 +317,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -331,3 +331,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -384,3 +384,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -406,3 +406,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -461,3 +461,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -483,3 +483,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -545,3 +545,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -567,3 +567,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -620,3 +620,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -642,3 +642,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -703,3 +703,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -725,3 +725,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -779,3 +779,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -801,3 +801,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -804,0 +804,0 @@ readonly __TYPE__: "selectDef";

@@ -33,3 +33,3 @@ import { type Group, type UID } from "@prismicio/types-internal/lib/customtypes/widgets";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -47,3 +47,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -96,3 +96,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -118,3 +118,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -167,3 +167,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -183,3 +183,3 @@ select: "media";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -224,3 +224,3 @@ __TYPE__: "ConfigDocumentLinkDef";

config: {
options: string[];
options: readonly string[];
};

@@ -230,3 +230,3 @@ }, {

readonly config: {
options: string[];
options: readonly string[];
};

@@ -233,0 +233,0 @@ readonly __TYPE__: "selectDef";

@@ -36,3 +36,3 @@ import { type Group, type UID } from "@prismicio/types-internal/lib/customtypes/widgets";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -50,3 +50,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -99,3 +99,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -121,3 +121,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -170,3 +170,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -186,3 +186,3 @@ select: "media";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -227,3 +227,3 @@ __TYPE__: "ConfigDocumentLinkDef";

config: {
options: string[];
options: readonly string[];
};

@@ -233,3 +233,3 @@ }, {

readonly config: {
options: string[];
options: readonly string[];
};

@@ -300,3 +300,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -314,3 +314,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -356,3 +356,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -370,3 +370,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -415,3 +415,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -429,3 +429,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -469,3 +469,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -483,3 +483,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -527,3 +527,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -541,3 +541,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -582,3 +582,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -596,3 +596,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -649,3 +649,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -671,3 +671,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -726,3 +726,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -748,3 +748,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -810,3 +810,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -832,3 +832,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -885,3 +885,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -907,3 +907,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -968,3 +968,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -990,3 +990,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1044,3 +1044,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1066,3 +1066,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1122,3 +1122,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1136,3 +1136,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1177,3 +1177,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1191,3 +1191,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1241,3 +1241,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1263,3 +1263,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1317,3 +1317,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1339,3 +1339,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1394,3 +1394,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1408,3 +1408,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1448,3 +1448,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1462,3 +1462,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1515,3 +1515,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1537,3 +1537,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1590,3 +1590,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1612,3 +1612,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1666,3 +1666,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1680,3 +1680,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1722,3 +1722,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} | {

@@ -1736,3 +1736,3 @@ select: "media";

config: {
options: string[];
options: readonly string[];
};

@@ -1786,3 +1786,3 @@ } | {

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1808,3 +1808,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1863,3 +1863,3 @@ readonly __TYPE__: "selectDef";

select: "document";
customtypes: string[];
customtypes: readonly string[];
} & {

@@ -1885,3 +1885,3 @@ __TYPE__: "ConfigDocumentLinkDef";

readonly config: {
options: string[];
options: readonly string[];
};

@@ -1888,0 +1888,0 @@ readonly __TYPE__: "selectDef";

@@ -10,3 +10,3 @@ "use strict";

function renderSummaryJson(text, renderer) {
const firstBlock = (0, function_1.pipe)(O.fromNullable(text.value.find((block) => block.type === "header")), O.alt(() => O.fromNullable(text.value.find((block) => block.type !== "embed" && block.type !== "image"))), O.map((block) => [block]), O.getOrElse(() => []));
const firstBlock = (0, function_1.pipe)(O.fromNullable(text.value.find((block) => block.type.startsWith("heading"))), O.alt(() => O.fromNullable(text.value.find((block) => block.type !== "embed" && block.type !== "image"))), O.map((block) => [block]), O.getOrElse(() => []));
return renderer({

@@ -13,0 +13,0 @@ __TYPE__: StructuredTextContent_1.StructuredTextContentType,

{
"name": "@prismicio/api-renderer",
"version": "0.2.0",
"version": "0.2.1",
"description": "Prismic renderers for the content API",

@@ -38,3 +38,3 @@ "keywords": [

"dependencies": {
"@prismicio/types-internal": "0.2.11",
"@prismicio/types-internal": "^1.0.1",
"tslib": "^2.3.1",

@@ -41,0 +41,0 @@ "uuid": "^8.3.2"

@@ -9,3 +9,3 @@ import type Link from "@prismicio/types-internal/lib/customtypes/widgets/nestable/Link"

select: t.literal("document"),
customtypes: t.array(t.string),
customtypes: t.readonlyArray(t.string),
}),

@@ -12,0 +12,0 @@ DocumentLinkDefType,

@@ -10,3 +10,3 @@ import type { Select } from "@prismicio/types-internal/lib/customtypes/widgets/nestable"

config: t.strict({
options: t.array(t.string),
options: t.readonlyArray(t.string),
}),

@@ -13,0 +13,0 @@ }),

@@ -23,3 +23,5 @@ import {

>(
O.fromNullable(text.value.find((block: Blocks.Block) => block.type === "header")) as O.Option<Blocks.TextBlock>,
O.fromNullable(
text.value.find((block: Blocks.Block) => block.type.startsWith("heading")),
) as O.Option<Blocks.TextBlock>,
O.alt(

@@ -26,0 +28,0 @@ () =>

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