@osdeibi/bucky-seo-react
Version:
React component for managing meta tags, Open Graph, and dynamic JSON-LD
42 lines (41 loc) • 1.14 kB
TypeScript
import type { StructuredData } from "../DynamicHead.types";
export interface BroadcastEventProps {
name: string;
startDate: string;
endDate: string;
isLiveBroadcast: boolean;
}
export interface ClipProps {
name: string;
startOffset: number;
url: string;
endOffset?: number;
}
export interface SeekToActionProps {
target: string;
/** Placeholder variable name, e.g. "seek_to_second_number" */
placeholderName: string;
}
export interface VideoObjectProps {
/** Required */
name: string;
thumbnailUrl: string[];
uploadDate: string;
/** Recommended */
description?: string;
contentUrl?: string;
duration?: string;
embedUrl?: string;
expires?: string;
/** Live badge support */
publication?: BroadcastEventProps;
/** Key moments support */
hasPart?: ClipProps[];
potentialAction?: SeekToActionProps;
/** Region restrictions */
regionsAllowed?: string[];
ineligibleRegion?: string[];
/** Interaction stats */
interactionStatistic?: number;
}
export declare function videoObject(data: VideoObjectProps): StructuredData;