@lexical/react
Version:
This package provides Lexical components and hooks for React applications.
10 lines (8 loc) • 745 B
JavaScript
/**
* 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{getExtensionDependencyFromEditor as e}from"@lexical/extension/getExtensionDependencyFromEditor";import{getPeerDependencyFromEditor as n}from"@lexical/extension/getPeerDependencyFromEditor";import{useLexicalComposerContext as t}from"@lexical/react/LexicalComposerContext";function o(n){return e(t()[0],n)}function r(e){return i(e.name)}function i(e){return n(t()[0],e)}function c(e){return o(e).output.Component}export{c as useExtensionComponent,o as useExtensionDependency,r as useOptionalExtensionDependency,i as usePeerExtensionDependency};