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

@prismicio/api-renderer

Package Overview
Dependencies
Maintainers
24
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 2.0.0-alpha.2 to 2.0.0-alpha.3

2

lib/models/ApiDocument/DocumentMetadata.d.ts

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

}>]>>;
export declare type DocumentMetadata = t.TypeOf<typeof codec>;
export type DocumentMetadata = t.TypeOf<typeof codec>;
export declare const DocumentMetadata: {

@@ -11,0 +11,0 @@ empty: {

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

}>]>>;
export declare type RawApiDocument = t.TypeOf<typeof RawApiDocument>;
export type RawApiDocument = t.TypeOf<typeof RawApiDocument>;
declare const ApiDocument: t.Type<{

@@ -65,3 +65,3 @@ id: string;

}, unknown>;
export declare type ApiDocument = t.OutputOf<typeof ApiDocument>;
export type ApiDocument = t.OutputOf<typeof ApiDocument>;
export declare const ApiDocumentCodec: t.Type<{

@@ -68,0 +68,0 @@ id: string;

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

}>]>>;
export declare type RelatedDocument = t.TypeOf<typeof RelatedDocument>;
export type RelatedDocument = t.TypeOf<typeof RelatedDocument>;

@@ -13,4 +13,4 @@ import type { BooleanField } from "@prismicio/types-internal/lib/customtypes";

}, unknown>;
export declare type BooleanFieldDef = t.TypeOf<typeof BooleanFieldDef>;
export declare type BooleanFieldDefO = t.OutputOf<typeof BooleanFieldDef>;
export type BooleanFieldDef = t.TypeOf<typeof BooleanFieldDef>;
export type BooleanFieldDefO = t.OutputOf<typeof BooleanFieldDef>;
export declare function fromBoolean(key: string, model: BooleanField): BooleanFieldDef;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type ColorDef = t.TypeOf<typeof ColorDef>;
export declare type ColorDefO = t.OutputOf<typeof ColorDef>;
export type ColorDef = t.TypeOf<typeof ColorDef>;
export type ColorDefO = t.OutputOf<typeof ColorDef>;
export declare function fromColor(key: string): ColorDef;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type DateDef = t.TypeOf<typeof DateDef>;
export declare type DateDefO = t.OutputOf<typeof DateDef>;
export type DateDef = t.TypeOf<typeof DateDef>;
export type DateDefO = t.OutputOf<typeof DateDef>;
export declare function fromDate(key: string): DateDef;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type EmbedDef = t.TypeOf<typeof EmbedDef>;
export declare type EmbedDefO = t.OutputOf<typeof EmbedDef>;
export type EmbedDef = t.TypeOf<typeof EmbedDef>;
export type EmbedDefO = t.OutputOf<typeof EmbedDef>;
export declare function fromEmbed(key: string): EmbedDef;

@@ -8,3 +8,3 @@ import type { ColorDef, ColorDefO } from "./Color";

import type { TimestampDef, TimestampDefO } from "./Timestamp";
export declare type FieldDef = TextDef | DateDef | TimestampDef | ColorDef | NumberDef | RangeDef | SelectDef;
export declare type FieldDefO = TextDefO | DateDefO | TimestampDefO | ColorDefO | NumberDefO | RangeDefO | SelectDefO;
export type FieldDef = TextDef | DateDef | TimestampDef | ColorDef | NumberDef | RangeDef | SelectDef;
export type FieldDefO = TextDefO | DateDefO | TimestampDefO | ColorDefO | NumberDefO | RangeDefO | SelectDefO;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type GeoPointDef = t.TypeOf<typeof GeoPointDef>;
export declare type GeoPointDefO = t.OutputOf<typeof GeoPointDef>;
export type GeoPointDef = t.TypeOf<typeof GeoPointDef>;
export type GeoPointDefO = t.OutputOf<typeof GeoPointDef>;
export declare function fromGeoPoint(key: string): GeoPointDef;

@@ -136,4 +136,4 @@ import type { Group } from "@prismicio/types-internal/lib/customtypes";

}, unknown>;
export declare type GroupDef = t.TypeOf<typeof GroupDef>;
export declare type GroupDefO = t.OutputOf<typeof GroupDef>;
export type GroupDef = t.TypeOf<typeof GroupDef>;
export type GroupDefO = t.OutputOf<typeof GroupDef>;
export declare function fromGroup(key: string, model: Group): GroupDef;

@@ -16,4 +16,4 @@ import type { Image } from "@prismicio/types-internal/lib/customtypes";

}, unknown>;
export declare type ImageDef = t.TypeOf<typeof ImageDef>;
export declare type ImageDefO = t.OutputOf<typeof ImageDef>;
export type ImageDef = t.TypeOf<typeof ImageDef>;
export type ImageDefO = t.OutputOf<typeof ImageDef>;
export declare function fromImage(key: string, def: Image): ImageDef;

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

}>>;
export declare type ApiModel = t.TypeOf<typeof ApiModel>;
export declare type ApiModelO = t.OutputOf<typeof ApiModel>;
export type ApiModel = t.TypeOf<typeof ApiModel>;
export type ApiModelO = t.OutputOf<typeof ApiModel>;
export declare function fromCustomType(model: CustomType, sharedSlices: Partial<Record<string, SharedSlice>>): ApiModel;

@@ -1858,0 +1858,0 @@ export * from "./BooleanField";

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type IntegrationFieldDef = t.TypeOf<typeof IntegrationFieldDef>;
export declare type IntegrationFieldDefO = t.OutputOf<typeof IntegrationFieldDef>;
export type IntegrationFieldDef = t.TypeOf<typeof IntegrationFieldDef>;
export type IntegrationFieldDefO = t.OutputOf<typeof IntegrationFieldDef>;
export declare function fromIntegrationField(key: string): IntegrationFieldDef;

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

}, unknown>;
export declare type AnyLinkDef = t.OutputOf<typeof AnyLinkDef>;
export type AnyLinkDef = t.OutputOf<typeof AnyLinkDef>;
export declare function fromAnyLink(link: Link): AnyLinkDef;

@@ -13,4 +13,4 @@ import type { Link } from "@prismicio/types-internal/lib/customtypes";

}, unknown>;
export declare type DocumentLinkDef = t.OutputOf<typeof DocumentLinkDef>;
export type DocumentLinkDef = t.OutputOf<typeof DocumentLinkDef>;
export declare function fromDocumentLink(link: Link): DocumentLinkDef;
export declare function defaultDocumentLinkDef(): DocumentLinkDef;

@@ -39,4 +39,4 @@ import type { LinkContent } from "@prismicio/types-internal/lib/content";

}, unknown>;
export declare type LinkDef = t.TypeOf<typeof LinkDef>;
export declare type LinkDefO = t.OutputOf<typeof LinkDef>;
export type LinkDef = t.TypeOf<typeof LinkDef>;
export type LinkDefO = t.OutputOf<typeof LinkDef>;
export declare function fromLink(key: string, model: Link): LinkDef;

@@ -43,0 +43,0 @@ export declare function defaultLinkDef(type: LinkContent["value"]["__TYPE__"]): LinkDefO;

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

}, unknown>;
export declare type MediaLinkDef = t.OutputOf<typeof MediaLinkDef>;
export type MediaLinkDef = t.OutputOf<typeof MediaLinkDef>;
export declare function fromMediaLink(link: Link): MediaLinkDef;
export declare function defaultMediaLinkDef(): MediaLinkDef;

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

}, unknown>;
export declare type WebLinkDef = t.OutputOf<typeof WebLinkDef>;
export type WebLinkDef = t.OutputOf<typeof WebLinkDef>;
export declare function fromWebLink(link: Link): WebLinkDef;
export declare function defaultWebLinkDef(): WebLinkDef;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type NumberDef = t.TypeOf<typeof NumberDef>;
export declare type NumberDefO = t.OutputOf<typeof NumberDef>;
export type NumberDef = t.TypeOf<typeof NumberDef>;
export type NumberDefO = t.OutputOf<typeof NumberDef>;
export declare function fromNumber(key: string): NumberDef;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type RangeDef = t.TypeOf<typeof RangeDef>;
export declare type RangeDefO = t.OutputOf<typeof RangeDef>;
export type RangeDef = t.TypeOf<typeof RangeDef>;
export type RangeDefO = t.OutputOf<typeof RangeDef>;
export declare function fromRange(key: string): RangeDef;

@@ -16,4 +16,4 @@ import type { Select } from "@prismicio/types-internal/lib/customtypes";

}, unknown>;
export declare type SelectDef = t.TypeOf<typeof SelectDef>;
export declare type SelectDefO = t.OutputOf<typeof SelectDef>;
export type SelectDef = t.TypeOf<typeof SelectDef>;
export type SelectDefO = t.OutputOf<typeof SelectDef>;
export declare function fromSelect(key: string, model: Select): SelectDef;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type SeparatorDef = t.TypeOf<typeof SeparatorDef>;
export declare type SeparatorDefO = t.OutputOf<typeof SeparatorDef>;
export type SeparatorDef = t.TypeOf<typeof SeparatorDef>;
export type SeparatorDefO = t.OutputOf<typeof SeparatorDef>;
export declare function fromSeparator(key: string): SeparatorDef;

@@ -127,4 +127,4 @@ import type { NestableWidget, UID } from "@prismicio/types-internal/lib/customtypes";

}, unknown>]>;
export declare type SimpleFieldDef = t.TypeOf<typeof SimpleFieldDef>;
export declare type SimpleFieldDefO = t.OutputOf<typeof SimpleFieldDef>;
export type SimpleFieldDef = t.TypeOf<typeof SimpleFieldDef>;
export type SimpleFieldDefO = t.OutputOf<typeof SimpleFieldDef>;
export declare function fromSimpleField(key: string, model: NestableWidget | UID): SimpleFieldDef;

@@ -269,4 +269,4 @@ import type { CompositeSlice } from "@prismicio/types-internal/lib/customtypes";

}, unknown>;
export declare type CompositeSliceDef = t.TypeOf<typeof CompositeSliceDef>;
export declare type CompositeSliceDefO = t.OutputOf<typeof CompositeSliceDef>;
export type CompositeSliceDef = t.TypeOf<typeof CompositeSliceDef>;
export type CompositeSliceDefO = t.OutputOf<typeof CompositeSliceDef>;
export declare function fromCompositeSlice(key: string, model: CompositeSlice): CompositeSliceDef;

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

}, unknown>;
export declare type VariationDef = t.OutputOf<typeof VariationDef>;
export type VariationDef = t.OutputOf<typeof VariationDef>;
export declare const SharedSliceDefType = "sharedSliceDef";

@@ -533,4 +533,4 @@ export declare const SharedSliceDef: t.Type<{

}, unknown>;
export declare type SharedSliceDef = t.TypeOf<typeof SharedSliceDef>;
export declare type SharedSliceDefO = t.OutputOf<typeof SharedSliceDef>;
export type SharedSliceDef = t.TypeOf<typeof SharedSliceDef>;
export type SharedSliceDefO = t.OutputOf<typeof SharedSliceDef>;
export declare function fromSharedSlice(key: string, model: SharedSlice): SharedSliceDef;

@@ -267,4 +267,4 @@ import type { LegacySlice } from "@prismicio/types-internal/lib/customtypes";

}, unknown>;
export declare type SimpleSliceDef = t.TypeOf<typeof SimpleSliceDef>;
export declare type SimpleSliceDefO = t.OutputOf<typeof SimpleSliceDef>;
export type SimpleSliceDef = t.TypeOf<typeof SimpleSliceDef>;
export type SimpleSliceDefO = t.OutputOf<typeof SimpleSliceDef>;
export declare function fromSimpleSlice(key: string, model: LegacySlice): SimpleSliceDef;

@@ -796,4 +796,4 @@ import type { CompositeSlice, LegacySlice, SharedSlice } from "@prismicio/types-internal/lib/customtypes";

}, unknown>]>;
export declare type SliceDef = t.TypeOf<typeof SliceDef>;
export declare type SliceDefO = t.OutputOf<typeof SliceDef>;
export type SliceDef = t.TypeOf<typeof SliceDef>;
export type SliceDefO = t.OutputOf<typeof SliceDef>;
export declare function fromSlice(key: string, model: SharedSlice | CompositeSlice | LegacySlice): SliceDef;

@@ -805,4 +805,4 @@ import type { DynamicSlices, SharedSlice } from "@prismicio/types-internal/lib/customtypes";

}, unknown>;
export declare type SlicesDef = t.TypeOf<typeof SlicesDef>;
export declare type SlicesDefO = t.OutputOf<typeof SlicesDef>;
export type SlicesDef = t.TypeOf<typeof SlicesDef>;
export type SlicesDefO = t.OutputOf<typeof SlicesDef>;
export declare function fromSlices(key: string, model: DynamicSlices, sharedSlices: Partial<Record<string, SharedSlice>>): SlicesDef;

@@ -259,5 +259,5 @@ import type { Group, NestableWidget, UID } from "@prismicio/types-internal/lib/customtypes";

}, unknown>]>]>;
export declare type StaticDef = t.TypeOf<typeof StaticDef>;
export declare type StaticDefO = t.OutputOf<typeof StaticDef>;
export type StaticDef = t.TypeOf<typeof StaticDef>;
export type StaticDefO = t.OutputOf<typeof StaticDef>;
export declare function isSimpleFieldDef(staticDef: StaticDefO): staticDef is SimpleFieldDefO;
export declare function fromStatic(key: string, model: NestableWidget | UID | Group): StaticDef;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type StructuredTextDef = t.TypeOf<typeof StructuredTextDef>;
export declare type StructuredTextDefO = t.OutputOf<typeof StructuredTextDef>;
export type StructuredTextDef = t.TypeOf<typeof StructuredTextDef>;
export type StructuredTextDefO = t.OutputOf<typeof StructuredTextDef>;
export declare function fromRichText(key: string): StructuredTextDef;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type TextDef = t.TypeOf<typeof TextDef>;
export declare type TextDefO = t.OutputOf<typeof TextDef>;
export type TextDef = t.TypeOf<typeof TextDef>;
export type TextDefO = t.OutputOf<typeof TextDef>;
export declare function fromText(key: string): TextDef;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type TimestampDef = t.TypeOf<typeof TimestampDef>;
export declare type TimestampDefO = t.OutputOf<typeof TimestampDef>;
export type TimestampDef = t.TypeOf<typeof TimestampDef>;
export type TimestampDefO = t.OutputOf<typeof TimestampDef>;
export declare function fromTimestamp(key: string): TimestampDef;

@@ -9,4 +9,4 @@ import * as t from "io-ts";

}, unknown>;
export declare type UIDDef = t.TypeOf<typeof UIDDef>;
export declare type UIDDefO = t.OutputOf<typeof UIDDef>;
export type UIDDef = t.TypeOf<typeof UIDDef>;
export type UIDDefO = t.OutputOf<typeof UIDDef>;
export declare function fromUID(key: string): UIDDef;

@@ -1852,4 +1852,4 @@ import type { DynamicSlices, Group, NestableWidget, SharedSlice, UID } from "@prismicio/types-internal/lib/customtypes";

}, unknown>]>]>;
export declare type WidgetDef = t.TypeOf<typeof WidgetDef>;
export declare type WidgetDefO = t.OutputOf<typeof WidgetDef>;
export type WidgetDef = t.TypeOf<typeof WidgetDef>;
export type WidgetDefO = t.OutputOf<typeof WidgetDef>;
export declare function fromWidget(key: string, model: NestableWidget | UID | Group | DynamicSlices, sharedSlices: Partial<Record<string, SharedSlice>>): WidgetDef;

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

}>>;
export declare type SimpleField = t.TypeOf<typeof SimpleField>;
export type SimpleField = t.TypeOf<typeof SimpleField>;
export interface Group {

@@ -18,5 +18,5 @@ TYPE: typeof GroupType;

export declare const Group: t.Type<Group>;
export declare type GroupOrField = Simple | Group;
export type GroupOrField = Simple | Group;
export declare const GroupOrFieldC: t.Type<GroupOrField>;
export declare type Field = GroupOrField | SliceZone;
export type Field = GroupOrField | SliceZone;
export declare const FieldC: t.Type<Field>;

@@ -58,3 +58,3 @@ export declare const SliceZoneType = "SliceZone";

}>>;
export declare type CompositeSlice = t.TypeOf<typeof CompositeSlice>;
export type CompositeSlice = t.TypeOf<typeof CompositeSlice>;
export declare const SharedSliceType = "SharedSlice";

@@ -65,3 +65,3 @@ export declare const SharedSlice: t.ExactC<t.TypeC<{

}>>;
export declare type SharedSlice = t.TypeOf<typeof SharedSlice>;
export type SharedSlice = t.TypeOf<typeof SharedSlice>;
export declare const Slice: t.UnionC<[t.ExactC<t.TypeC<{

@@ -81,3 +81,3 @@ TYPE: t.LiteralC<"SharedSlice">;

}>>]>;
export declare type Slice = t.TypeOf<typeof Slice>;
export type Slice = t.TypeOf<typeof Slice>;
export declare const GroupType = "Group";

@@ -95,3 +95,3 @@ export interface DocRelation {

export declare const DocRelationC: t.Type<DocRelation>;
export declare type Simple = DocRelation | SimpleField;
export type Simple = DocRelation | SimpleField;
export declare const Simple: t.UnionC<[t.Type<DocRelation, DocRelation, unknown>, t.ExactC<t.TypeC<{

@@ -110,5 +110,5 @@ TYPE: t.LiteralC<"SimpleField">;

export declare const Docs: t.RecursiveType<t.Type<unknown, unknown, unknown>, unknown, unknown, unknown>;
export declare type Docs = t.TypeOf<typeof Docs>;
export type Docs = t.TypeOf<typeof Docs>;
export declare const DocRelationType = "DocRelation";
export declare function extractGroupOrFieldIfAny(fetchOpt: Field | undefined): GroupOrField | undefined;
export declare function extractSliceFetchIfAny(fetchOpt: Field | undefined): SliceZone | undefined;

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

}>;
export declare type CustomParam = t.TypeOf<typeof CustomParam>;
export type CustomParam = t.TypeOf<typeof CustomParam>;
declare const UIDParam: t.TypeC<{

@@ -13,3 +13,3 @@ isOptional: t.BooleanC;

}>;
export declare type UIDParam = t.TypeOf<typeof UIDParam>;
export type UIDParam = t.TypeOf<typeof UIDParam>;
declare const LangParam: t.TypeC<{

@@ -19,3 +19,3 @@ isOptional: t.BooleanC;

}>;
export declare type LangParam = t.TypeOf<typeof LangParam>;
export type LangParam = t.TypeOf<typeof LangParam>;
declare const DynamicParam: t.UnionC<[t.TypeC<{

@@ -32,3 +32,3 @@ isOptional: t.BooleanC;

}>]>;
export declare type DynamicParam = t.TypeOf<typeof DynamicParam>;
export type DynamicParam = t.TypeOf<typeof DynamicParam>;
declare const StaticParam: t.TypeC<{

@@ -38,3 +38,3 @@ value: t.StringC;

}>;
export declare type StaticParam = t.TypeOf<typeof StaticParam>;
export type StaticParam = t.TypeOf<typeof StaticParam>;
declare const URLParam: t.UnionC<[t.TypeC<{

@@ -54,3 +54,3 @@ value: t.StringC;

}>]>]>;
export declare type URLParam = t.TypeOf<typeof URLParam>;
export type URLParam = t.TypeOf<typeof URLParam>;
declare const URLPattern: t.TypeC<{

@@ -73,3 +73,3 @@ trailingSlash: t.BooleanC;

}>;
export declare type URLPattern = t.TypeOf<typeof URLPattern>;
export type URLPattern = t.TypeOf<typeof URLPattern>;
declare const URLResolver: t.RecordC<t.StringC, t.ArrayC<t.TypeC<{

@@ -80,3 +80,3 @@ customTypeID: t.StringC;

}>>>;
export declare type URLResolver = t.TypeOf<typeof URLResolver>;
export type URLResolver = t.TypeOf<typeof URLResolver>;
export declare const Rule: t.TypeC<{

@@ -106,3 +106,3 @@ pattern: t.TypeC<{

}>;
export declare type Rule = t.TypeOf<typeof Rule>;
export type Rule = t.TypeOf<typeof Rule>;
export declare const LinkResolver: t.RecordC<t.StringC, t.RecordC<t.StringC, t.RecordC<t.StringC, t.TypeC<{

@@ -132,4 +132,4 @@ pattern: t.TypeC<{

}>>>>;
export declare type LinkResolver = t.TypeOf<typeof LinkResolver>;
export declare type URLPart = {
export type LinkResolver = t.TypeOf<typeof LinkResolver>;
export type URLPart = {
value: string;

@@ -136,0 +136,0 @@ withSeparator: boolean;

{
"name": "@prismicio/api-renderer",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"description": "Prismic renderers for the content API",

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

"dependencies": {
"@prismicio/types-internal": "^2.0.0-alpha.11",
"@prismicio/types-internal": "2.0.0-alpha.11",
"tslib": "^2.3.1",

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

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