UNPKG

react-latex-editor

Version:

A professional React rich text editor with mathematical equation support, built on TipTap with MathLive integration. Production-ready with TypeScript support, accessibility features, and industrial-grade error handling.

26 lines 806 B
import { Component } from 'react'; import { Node } from '@tiptap/pm/model'; interface MathNodeAttrs { latex: string; displayMode: boolean; } interface MathNodeViewProps { node: Node & { attrs: MathNodeAttrs; }; updateAttributes: (attrs: Partial<MathNodeAttrs>) => void; } declare class MathNodeView extends Component<MathNodeViewProps> { private mathFieldRef; private cleanup?; constructor(props: MathNodeViewProps); componentDidMount(): Promise<void>; componentDidUpdate(prevProps: MathNodeViewProps): void; componentWillUnmount(): void; setupMathField(): void; updateMathField(): void; cleanupMathField(): void; render(): import("react/jsx-runtime").JSX.Element; } export default MathNodeView; //# sourceMappingURL=MathNodeView.d.ts.map