UNPKG

@yoopta/editor

Version:

<h2 align="center">Yoopta-Editor v1 🎉</h2> <p align="center">Yoopta-Editor - is an open source notion-like editor 💥</p> <div align="center"> <img width="574" alt="Screen Shot 2023-01-25 at 16 04 29" src="https://user-images.githubusercontent.com/2909311

13 lines • 812 B
import type { ReactElement } from 'react'; import type { PluginElementNodeType, PluginElementRenderProps, PluginElementsMap } from './types'; export type PluginJSXElementProps = { render: (props: PluginElementRenderProps) => JSX.Element; props?: Record<string, unknown>; children?: ReactElement<PluginJSXElementProps> | ReactElement<PluginJSXElementProps>[]; nodeType?: PluginElementNodeType; placeholder?: string; }; export type PluginJSXElement = ReactElement<PluginJSXElementProps, string>; export declare function buildPluginElements<TKeys extends string = string>(jsxElement: PluginJSXElement, pluginType: string): PluginElementsMap<TKeys>; export declare function isReactElement(value: unknown): value is PluginJSXElement; //# sourceMappingURL=build-plugin-elements.d.ts.map