@sanity/visual-editing
Version:
[](https://npm-stat.com/charts.html?package=@sanity/visual-editing) [](https://
23 lines • 2.64 kB
TypeScript
import { $ as OverlayPluginExclusiveDefinition, Q as OverlayPluginDefinitionBase, X as OverlayPluginComponent, Z as OverlayPluginDefinition, _ as OverlayComponentResolverContext, at as VisualEditingOptions, b as OverlayElementParent, d as HistoryRefresh, et as OverlayPluginHudDefinition, f as HistoryUpdate, g as OverlayComponentResolver, h as OverlayComponentProps, l as HistoryAdapter, m as OverlayComponent, nt as SanityNode, s as ElementNode, u as HistoryAdapterNavigate, y as OverlayElementField } from "../_chunks-dts/types.js";
import { CreateDataAttribute, CreateDataAttributeProps, WithRequired, createDataAttribute } from "@sanity/visual-editing-csm";
import { DocumentSchema, SchemaArrayItem, SchemaArrayNode, SchemaBooleanNode, SchemaInlineNode, SchemaNode, SchemaNullNode, SchemaNumberNode, SchemaObjectField, SchemaObjectNode, SchemaStringNode, SchemaUnionNode, SchemaUnionNodeOptions, SchemaUnionOption, SchemaUnknownNode } from "@sanity/presentation-comlink";
/**
* @public
*/
interface VisualEditingProps extends Omit<VisualEditingOptions, 'history' | 'refresh'> {
/**
* @deprecated The history adapter is already implemented
*/
history?: never;
/**
* The refresh API allows smarter refresh logic than the default `location.reload()` behavior.
* You can call the refreshDefault argument to trigger the default refresh behavior so you don't have to reimplement it.
*/
refresh?: (payload: HistoryRefresh, refreshDefault: () => false | Promise<void>) => false | Promise<void>;
}
/**
* @public
*/
declare function VisualEditing(props: VisualEditingProps): React.JSX.Element | null;
export { type CreateDataAttribute, type CreateDataAttributeProps, type DocumentSchema, type ElementNode, type HistoryAdapter, type HistoryAdapterNavigate, type HistoryRefresh, type HistoryUpdate, type OverlayComponent, type OverlayComponentProps, type OverlayComponentResolver, type OverlayComponentResolverContext, type OverlayElementField, type OverlayElementParent, type OverlayPluginComponent, type OverlayPluginDefinition, type OverlayPluginDefinitionBase, type OverlayPluginExclusiveDefinition, type OverlayPluginHudDefinition, type SanityNode, type SchemaArrayItem, type SchemaArrayNode, type SchemaBooleanNode, type SchemaInlineNode, type SchemaNode, type SchemaNullNode, type SchemaNumberNode, type SchemaObjectField, type SchemaObjectNode, type SchemaStringNode, type SchemaUnionNode, type SchemaUnionNodeOptions, type SchemaUnionOption, type SchemaUnknownNode, VisualEditing, type VisualEditingOptions, type VisualEditingProps, type WithRequired, createDataAttribute };
//# sourceMappingURL=index.d.ts.map