2 * Copyright (c) Meta Platforms, Inc. and affiliates.
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
9 export type {PasteCommandType} from './LexicalCommands';
12 CommandListenerPriority,
26 LexicalNodeReplacement,
32 } from './LexicalEditor';
35 EditorStateReadOptions,
36 SerializedEditorState,
37 } from './LexicalEditorState';
48 SerializedLexicalNode,
49 } from './LexicalNode';
52 ElementPointType as ElementPoint,
57 TextPointType as TextPoint,
58 } from './LexicalSelection';
61 SerializedElementNode,
62 } from './nodes/LexicalElementNode';
63 export type {SerializedRootNode} from './nodes/LexicalRootNode';
68 } from './nodes/LexicalTextNode';
70 // TODO Move this somewhere else and/or recheck if we still need this
76 CLEAR_HISTORY_COMMAND,
78 CONTROLLED_TEXT_INSERTION_COMMAND,
82 DELETE_CHARACTER_COMMAND,
90 FORMAT_ELEMENT_COMMAND,
92 INDENT_CONTENT_COMMAND,
93 INSERT_LINE_BREAK_COMMAND,
94 INSERT_PARAGRAPH_COMMAND,
96 KEY_ARROW_DOWN_COMMAND,
97 KEY_ARROW_LEFT_COMMAND,
98 KEY_ARROW_RIGHT_COMMAND,
100 KEY_BACKSPACE_COMMAND,
105 KEY_MODIFIER_COMMAND,
110 OUTDENT_CONTENT_COMMAND,
115 SELECTION_CHANGE_COMMAND,
116 SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,
118 } from './LexicalCommands';
130 } from './LexicalConstants';
132 COMMAND_PRIORITY_CRITICAL,
133 COMMAND_PRIORITY_EDITOR,
134 COMMAND_PRIORITY_HIGH,
135 COMMAND_PRIORITY_LOW,
136 COMMAND_PRIORITY_NORMAL,
138 } from './LexicalEditor';
139 export type {EventHandler} from './LexicalEvents';
140 export {$normalizeSelection as $normalizeSelection__EXPERIMENTAL} from './LexicalNormalization';
142 $createNodeSelection,
144 $createRangeSelection,
145 $createRangeSelectionFromDom,
146 $getCharacterOffsets,
147 $getPreviousSelection,
154 } from './LexicalSelection';
155 export {$parseSerializedNode, isCurrentlyReadOnlyMode} from './LexicalUpdates';
158 $applyNodeReplacement,
159 $cloneWithProperties,
163 $getNearestNodeFromDOMNode,
164 $getNearestRootOrShadowRoot,
166 $getNodeByKeyOrThrow,
170 $isInlineElementOrDecoratorNode,
179 getEditorPropertyFromDOMNode,
180 getNearestEditorFromDOMNode,
186 isSelectionCapturedInDecoratorInput,
187 isSelectionWithinEditor,
189 } from './LexicalUtils';
190 export {ArtificialNode__DO_NOT_USE} from './nodes/ArtificialNode';
191 export {$isDecoratorNode, DecoratorNode} from './nodes/LexicalDecoratorNode';
192 export {$isElementNode, ElementNode} from './nodes/LexicalElementNode';
193 export type {SerializedLineBreakNode} from './nodes/LexicalLineBreakNode';
195 $createLineBreakNode,
198 } from './nodes/LexicalLineBreakNode';
199 export type {SerializedParagraphNode} from './nodes/LexicalParagraphNode';
201 $createParagraphNode,
204 } from './nodes/LexicalParagraphNode';
205 export {$isRootNode, RootNode} from './nodes/LexicalRootNode';
206 export type {SerializedTabNode} from './nodes/LexicalTabNode';
207 export {$createTabNode, $isTabNode, TabNode} from './nodes/LexicalTabNode';
208 export {$createTextNode, $isTextNode, TextNode} from './nodes/LexicalTextNode';