UNPKG

alinea

Version:
38 lines (37 loc) 940 B
import type { ComponentType } from 'react'; import type { Entry } from './Entry.js'; export type Preview = boolean | ComponentType<{ entry: Entry; }>; export interface PreviewPayload { payload: string; } export type PreviewRequest = PreviewPayload | { entry: Entry; }; export interface PreviewUpdate { locale: string | null; entryId: string; contentHash: string; status: string; patch: Uint8Array; } export interface PreviewMetadata { title: string; description?: string; language?: string; robots?: string; canonical?: string; 'og:url'?: string; 'og:site_name'?: string; 'og:title'?: string; 'og:description'?: string; 'og:image'?: string; 'og:image:width'?: string; 'og:image:height'?: string; 'twitter:card'?: string; 'twitter:title'?: string; 'twitter:image'?: string; 'twitter:image:width'?: string; 'twitter:image:height'?: string; }