@guestbell/react-page-plugins
Version:
Plugins we use in GuestBell for working with amazing react-page package
21 lines (20 loc) • 707 B
TypeScript
import * as React from 'react';
import { Node, Text } from 'slate';
import { SlateValue } from '../../types/slate/SlateValue';
import { Migration } from '../../slateMigrations/Migration';
export type TextRuleType = (text: Text) => JSX.Element;
export type NodeRuleType = (node: Node, children: JSX.Element) => JSX.Element;
export interface SlateRendererProps {
value: SlateValue;
textRule: TextRuleType;
nodeRule: NodeRuleType;
version?: number;
migrations?: Migration[];
}
export interface RendererRecursiveProps {
node: Node;
textRule: TextRuleType;
nodeRule: NodeRuleType;
}
declare const _default: React.NamedExoticComponent<SlateRendererProps>;
export default _default;