react-movable-block-editor
Version:
React component for creating layouts and content via drag-and-drop blocks.
14 lines (13 loc) • 534 B
TypeScript
import { BlockNode } from '../../data';
import { BlockEditorValue } from '../editor/BlockEditorProps';
import { ReactElement } from 'react';
export declare type GetNode = (id: string) => BlockNode | undefined;
export declare type NodeOp = (value: BlockEditorValue) => BlockEditorValue;
export interface BlockProps {
undoRedoVersion: number;
getNode: GetNode;
node: BlockNode;
focusedNodeId: string | null;
changeBlocks: (op: NodeOp) => any;
renderEditBlock: (props: BlockProps) => ReactElement;
}