PHP 8.2.30
Preview: useEditorState.d.ts Size: 1.81 KB
//home/byroehnu/easepay.easetack.com/node_modules/@tiptap/react/dist/useEditorState.d.ts

import type { Editor } from '@tiptap/core';
export type EditorStateSnapshot<TEditor extends Editor | null = Editor | null> = {
    editor: TEditor;
    transactionNumber: number;
};
export type UseEditorStateOptions<TSelectorResult, TEditor extends Editor | null = Editor | null> = {
    /**
     * The editor instance.
     */
    editor: TEditor;
    /**
     * A selector function to determine the value to compare for re-rendering.
     */
    selector: (context: EditorStateSnapshot<TEditor>) => TSelectorResult;
    /**
     * A custom equality function to determine if the editor should re-render.
     * @default `deepEqual` from `fast-deep-equal`
     */
    equalityFn?: (a: TSelectorResult, b: TSelectorResult | null) => boolean;
};
/**
 * This hook allows you to watch for changes on the editor instance.
 * It will allow you to select a part of the editor state and re-render the component when it changes.
 * @example
 * ```tsx
 * const editor = useEditor({...options})
 * const { currentSelection } = useEditorState({
 *  editor,
 *  selector: snapshot => ({ currentSelection: snapshot.editor.state.selection }),
 * })
 */
export declare function useEditorState<TSelectorResult>(options: UseEditorStateOptions<TSelectorResult, Editor>): TSelectorResult;
/**
 * This hook allows you to watch for changes on the editor instance.
 * It will allow you to select a part of the editor state and re-render the component when it changes.
 * @example
 * ```tsx
 * const editor = useEditor({...options})
 * const { currentSelection } = useEditorState({
 *  editor,
 *  selector: snapshot => ({ currentSelection: snapshot.editor.state.selection }),
 * })
 */
export declare function useEditorState<TSelectorResult>(options: UseEditorStateOptions<TSelectorResult, Editor | null>): TSelectorResult | null;
//# sourceMappingURL=useEditorState.d.ts.map

Directory Contents

Dirs: 0 × Files: 35

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:11
Edit Download
544 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
635 B lrw-r--r-- 2026-02-28 11:47:12
Edit Download
1.01 KB lrw-r--r-- 2026-02-28 11:47:14
Edit Download
751 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
564 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
647 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
873 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
704 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
534 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
610 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
61.72 KB lrw-r--r-- 2026-02-28 11:47:08
Edit Download
108.65 KB lrw-r--r-- 2026-02-28 11:47:14
Edit Download
491 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
395 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
60.45 KB lrw-r--r-- 2026-02-28 11:47:10
Edit Download
108.31 KB lrw-r--r-- 2026-02-28 11:47:14
Edit Download
63.05 KB lrw-r--r-- 2026-02-28 11:47:10
Edit Download
108.61 KB lrw-r--r-- 2026-02-28 11:47:14
Edit Download
236 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
329 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
236 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
329 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
3.92 KB lrw-r--r-- 2026-02-28 11:47:14
Edit Download
2.08 KB lrw-r--r-- 2026-02-28 11:47:14
Edit Download
1.93 KB lrw-r--r-- 2026-02-28 11:47:14
Edit Download
1.27 KB lrw-r--r-- 2026-02-28 11:47:14
Edit Download
250 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
328 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
1.38 KB lrw-r--r-- 2026-02-28 11:47:14
Edit Download
618 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
1.81 KB lrw-r--r-- 2026-02-28 11:47:14
Edit Download
864 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
386 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download
335 B lrw-r--r-- 2026-02-28 11:47:14
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).