UNPKG

@lexical/react

Version:

This package provides Lexical components and hooks for React applications.

10 lines (8 loc) • 644 B
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import{MenuOption as t}from"@lexical/react/LexicalMenuOption";import{createCommand as e}from"lexical";const i=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,o=/* @__PURE__ */e("INSERT_EMBED_COMMAND");class c extends t{title;onSelect;constructor(t,e){super(t),this.title=t,this.onSelect=e.onSelect.bind(this)}}export{c as AutoEmbedOption,o as INSERT_EMBED_COMMAND,i as URL_MATCHER};