dmeditor
Version:
dmeditor is a block-style visual editor. Data is in json format.
18 lines (17 loc) • 773 B
TypeScript
import * as React from 'react';
import type { DMEData } from '../../types';
interface BlockProps<Type = DMEData.DefaultDataType> {
data: DMEData.Block<Type>;
path: Array<number>;
mode: 'edit' | 'view';
inBlock?: boolean;
}
export declare const BlockRender: React.MemoExoticComponent<(props: BlockProps) => import("react/jsx-runtime").JSX.Element>;
export declare const RenderMenu: (props: {
onAdd: (type: string, template?: string) => void;
onCancel: () => void;
allowedType?: string[] | undefined;
}) => import("react/jsx-runtime").JSX.Element;
export declare const getStyleCss: (blocktype: string, styleIdentifier?: string) => string;
export declare const getCommonBlockCss: (blockType: string, styleIdentifier?: string) => string;
export {};