UNPKG

@yuntijs/ui

Version:

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

11 lines (10 loc) 615 B
import { createCommand } from 'lexical'; export var INSERT_MENTION_COMMAND = createCommand('INSERT_MENTION_COMMAND'); export var DELETE_MENTION_COMMAND = createCommand('DELETE_MENTION_COMMAND'); export var CLEAR_HIDE_MENU_TIMEOUT = createCommand('CLEAR_HIDE_MENU_TIMEOUT'); // export const MENTION_REGEX = /{{([\w-]{1,50}(\.[_a-z]\w{0,29}){1,10})}}/gi; // export const MENTION_REGEX = /{{(.+?)}}/g; // {{plugin-m67m66l8-794.json."id"}} // {{plugin-m67m66l8-794.json."tags"[0]."id"}} // export const MENTION_REGEX = /{{([\w-]{1,50}(\."?[_a-z][\w"[\]]*){1,10})}}/gi; export var MENTION_REGEX = /{{[^.}]+\.(.+?)}}/gi;