UNPKG

usfm-editor

Version:
38 lines (37 loc) 1.89 kB
import * as React from "react"; import { UsfmEditorRef, ForwardRefUsfmEditor, HocUsfmEditorProps, Verse } from "../UsfmEditor"; import { UsfmEditorProps } from ".."; export declare function withChapterPaging<W extends UsfmEditorRef>(WrappedEditor: ForwardRefUsfmEditor<W>): ForwardRefUsfmEditor<ChapterEditor<W>>; export declare class ChapterEditor<W extends UsfmEditorRef> extends React.Component<HocUsfmEditorProps<W>, ChapterEditorState> implements UsfmEditorRef { static propTypes: { usfmString: import("prop-types").Validator<string>; onChange: import("prop-types").Requireable<(...args: any[]) => any>; readOnly: import("prop-types").Requireable<boolean>; identification: import("prop-types").Requireable<object>; onIdentificationChange: import("prop-types").Requireable<(...args: any[]) => any>; goToVerse: import("prop-types").Requireable<object>; onVerseChange: import("prop-types").Requireable<(...args: any[]) => any>; toolbarSpecs: import("prop-types").Requireable<object>; }; static defaultGoToVerse: Verse; static defaultProps: Partial<UsfmEditorProps>; constructor(props: HocUsfmEditorProps<W>); wholeBookUsfm: string; wrappedEditorRef: React.RefObject<W>; wrappedEditorInstance: () => UsfmEditorRef; getMarksAtSelection: () => string[]; addMarkAtSelection: (mark: string) => void; removeMarkAtSelection: (mark: string) => void; getParagraphTypesAtSelection: () => string[]; setParagraphTypeAtSelection: (marker: string) => void; goToVerse: (verseObject: Verse) => void; handleEditorChange: (chapterUsfm: string) => void; componentDidMount(): void; componentDidUpdate(prevProps: UsfmEditorProps): void; render(): JSX.Element; } declare type ChapterEditorState = { chapterUsfmString: string; goToVersePropValue?: Verse; }; export {};