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';
56 } from './LexicalSelection';
58 SerializedElementNode,
59 } from './nodes/LexicalElementNode';
60 export type {SerializedRootNode} from './nodes/LexicalRootNode';
65 } from './nodes/LexicalTextNode';
67 // TODO Move this somewhere else and/or recheck if we still need this
73 CLEAR_HISTORY_COMMAND,
75 CONTROLLED_TEXT_INSERTION_COMMAND,
79 DELETE_CHARACTER_COMMAND,
88 INDENT_CONTENT_COMMAND,
89 INSERT_LINE_BREAK_COMMAND,
90 INSERT_PARAGRAPH_COMMAND,
92 KEY_ARROW_DOWN_COMMAND,
93 KEY_ARROW_LEFT_COMMAND,
94 KEY_ARROW_RIGHT_COMMAND,
96 KEY_BACKSPACE_COMMAND,
101 KEY_MODIFIER_COMMAND,
106 OUTDENT_CONTENT_COMMAND,
111 SELECTION_CHANGE_COMMAND,
112 SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,
114 } from './LexicalCommands';
126 } from './LexicalConstants';
128 COMMAND_PRIORITY_CRITICAL,
129 COMMAND_PRIORITY_EDITOR,
130 COMMAND_PRIORITY_HIGH,
131 COMMAND_PRIORITY_LOW,
132 COMMAND_PRIORITY_NORMAL,
134 } from './LexicalEditor';
135 export type {EventHandler} from './LexicalEvents';
136 export {$normalizeSelection as $normalizeSelection__EXPERIMENTAL} from './LexicalNormalization';
138 $createNodeSelection,
140 $createRangeSelection,
141 $createRangeSelectionFromDom,
142 $getCharacterOffsets,
143 $getPreviousSelection,
150 } from './LexicalSelection';
151 export {$parseSerializedNode, isCurrentlyReadOnlyMode} from './LexicalUpdates';
154 $applyNodeReplacement,
155 $cloneWithProperties,
159 $getNearestNodeFromDOMNode,
160 $getNearestRootOrShadowRoot,
162 $getNodeByKeyOrThrow,
166 $isInlineElementOrDecoratorNode,
175 getEditorPropertyFromDOMNode,
176 getNearestEditorFromDOMNode,
182 isSelectionCapturedInDecoratorInput,
183 isSelectionWithinEditor,
185 } from './LexicalUtils';
186 export {ArtificialNode__DO_NOT_USE} from './nodes/ArtificialNode';
187 export {$isDecoratorNode, DecoratorNode} from './nodes/LexicalDecoratorNode';
188 export {$isElementNode, ElementNode} from './nodes/LexicalElementNode';
189 export type {SerializedLineBreakNode} from './nodes/LexicalLineBreakNode';
191 $createLineBreakNode,
194 } from './nodes/LexicalLineBreakNode';
195 export type {SerializedParagraphNode} from './nodes/LexicalParagraphNode';
197 $createParagraphNode,
200 } from './nodes/LexicalParagraphNode';
201 export {$isRootNode, RootNode} from './nodes/LexicalRootNode';
202 export type {SerializedTabNode} from './nodes/LexicalTabNode';
203 export {$createTabNode, $isTabNode, TabNode} from './nodes/LexicalTabNode';
204 export {$createTextNode, $isTextNode, TextNode} from './nodes/LexicalTextNode';