@sanity/form-builder
Version:
Sanity form builder
23 lines • 956 B
TypeScript
import { PortableTextEditor, PortableTextBlock, Type, RenderAttributes } from '@sanity/portable-text-editor';
import { Marker, Path } from '@sanity/types';
import React from 'react';
import { RenderBlockActions, RenderCustomMarkers } from '../types';
import PatchEvent from '../../../PatchEvent';
interface BlockObjectProps {
attributes: RenderAttributes;
block: PortableTextBlock;
compareValue: undefined | PortableTextBlock;
blockRef?: React.RefObject<HTMLDivElement>;
editor: PortableTextEditor;
markers: Marker[];
isFullscreen?: boolean;
onChange: (event: PatchEvent) => void;
onFocus: (path: Path) => void;
readOnly: boolean;
renderBlockActions?: RenderBlockActions;
renderCustomMarkers?: RenderCustomMarkers;
type: Type;
}
export declare const BlockObject: React.ForwardRefExoticComponent<BlockObjectProps & React.RefAttributes<HTMLDivElement>>;
export {};
//# sourceMappingURL=BlockObject.d.ts.map