@prismicio/helpers
Version:
Set of helpers to manage Prismic data
40 lines (39 loc) • 1.44 kB
TypeScript
export { asDate } from "./asDate";
export { asLink } from "./asLink";
export { asText } from "./asText";
export { asHTML } from "./asHTML";
export { asImageSrc } from "./asImageSrc";
export { asImageWidthSrcSet } from "./asImageWidthSrcSet";
export { asImagePixelDensitySrcSet } from "./asImagePixelDensitySrcSet";
export * as isFilled from "./isFilled";
export { documentToLinkField } from "./documentToLinkField";
import { Element } from "@prismicio/richtext";
export { Element };
/**
* @deprecated Renamed to `Element` (without an "s").
*/
export declare const Elements: {
readonly heading1: "heading1";
/**
* @deprecated Renamed to `Element` (without an "s").
*/
readonly heading2: "heading2";
readonly heading3: "heading3";
readonly heading4: "heading4";
readonly heading5: "heading5";
readonly heading6: "heading6";
readonly paragraph: "paragraph";
readonly preformatted: "preformatted";
readonly strong: "strong";
readonly em: "em";
readonly listItem: "list-item";
readonly oListItem: "o-list-item";
readonly list: "group-list-item";
readonly oList: "group-o-list-item";
readonly image: "image";
readonly embed: "embed";
readonly hyperlink: "hyperlink";
readonly label: "label";
readonly span: "span";
};
export type { LinkResolverFunction, HTMLFunctionSerializer, HTMLMapSerializer, } from "./types";