UNPKG

@yuntijs/ui

Version:

☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps

15 lines (14 loc) 972 B
import type { EntityMatch } from '@lexical/text'; import type { LexicalNode, TextNode } from 'lexical'; import { CustomTextNode } from './plugins/custom-text/node'; export declare const INSERT_MENTION_COMMAND: import("lexical").LexicalCommand<unknown>; export declare const DELETE_MENTION_COMMAND: import("lexical").LexicalCommand<unknown>; export declare const CLEAR_HIDE_MENU_TIMEOUT: import("lexical").LexicalCommand<unknown>; export declare const UPDATE_MENTIONS_OPTIONS: import("lexical").LexicalCommand<unknown>; export declare const decoratorTransform: (node: CustomTextNode, getMatch: (text: string) => null | EntityMatch, createNode: (textNode: TextNode) => LexicalNode) => void; export interface TextToEditorStateOptions { /** 光标位置,默认为 end */ cursor?: 'start' | 'end' | 'all'; punctuation?: string; } export declare function textToEditorState(initialValue: string, triggers: string[], options?: TextToEditorStateOptions): () => void;