sanity-plugin-seo-tools
Version:
> Upgrading from V2 to V3 is a breaking change. The `seo-tools` input has been replaced by a SEO pane which needs to be set-up using a custom desk structure as per the installation guide. Secondly, the previously automatically provided fields (focus keywo
23 lines (22 loc) • 823 B
TypeScript
/// <reference types="react" />
import type { SanityDocument } from '@sanity/types';
export declare type SeoFields = {
focus_keyword: string;
seo_title: string;
meta_description: string;
focus_synonyms: string[];
};
export declare type PreparedData = {
title: string;
description: string;
locale: string;
content: string;
};
export declare type SeoToolsContextValue<Document extends SanityDocument = SanityDocument> = {
fetch: boolean;
contentSelector?: string;
select: (doc: Document) => Partial<SeoFields> | Promise<Partial<SeoFields>>;
resolveProductionUrl: (doc: Document) => URL | Promise<URL>;
prepare?: (doc: Document) => PreparedData | Promise<PreparedData>;
};
export declare const SeoToolsContext: import("react").Context<SeoToolsContextValue<SanityDocument>>;