lexical 0.32.0 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Lexical.dev.js +30 -13
- package/Lexical.dev.mjs +30 -14
- package/Lexical.mjs +1 -0
- package/Lexical.node.mjs +1 -0
- package/Lexical.prod.js +1 -1
- package/Lexical.prod.mjs +1 -1
- package/LexicalUtils.d.ts +7 -0
- package/index.d.ts +1 -1
- package/nodes/LexicalTabNode.d.ts +1 -0
- package/package.json +1 -1
package/Lexical.dev.js
CHANGED
|
@@ -2209,7 +2209,7 @@ function getTargetRange(event) {
|
|
|
2209
2209
|
return targetRanges[0];
|
|
2210
2210
|
}
|
|
2211
2211
|
function $canRemoveText(anchorNode, focusNode) {
|
|
2212
|
-
return anchorNode !== focusNode || $isElementNode(anchorNode) || $isElementNode(focusNode) ||
|
|
2212
|
+
return anchorNode !== focusNode || $isElementNode(anchorNode) || $isElementNode(focusNode) || !$isTokenOrTab(anchorNode) || !$isTokenOrTab(focusNode);
|
|
2213
2213
|
}
|
|
2214
2214
|
function isPossiblyAndroidKeyPress(timeStamp) {
|
|
2215
2215
|
return lastKeyCode === 'MediaLast' && timeStamp < lastKeyDownTimeStamp + ANDROID_COMPOSITION_LATENCY;
|
|
@@ -2715,7 +2715,7 @@ function onKeyDown(event, editor) {
|
|
|
2715
2715
|
event.preventDefault();
|
|
2716
2716
|
dispatchCommand(editor, SELECT_ALL_COMMAND, event);
|
|
2717
2717
|
}
|
|
2718
|
-
} else if (
|
|
2718
|
+
} else if (isSelectAll(event)) {
|
|
2719
2719
|
event.preventDefault();
|
|
2720
2720
|
dispatchCommand(editor, SELECT_ALL_COMMAND, event);
|
|
2721
2721
|
}
|
|
@@ -4844,8 +4844,7 @@ class TextNode extends LexicalNode {
|
|
|
4844
4844
|
hasReplacedSelf = true;
|
|
4845
4845
|
} else {
|
|
4846
4846
|
// For the first part, update the existing node
|
|
4847
|
-
writableNode = self.
|
|
4848
|
-
writableNode.__text = firstPart;
|
|
4847
|
+
writableNode = self.setTextContent(firstPart);
|
|
4849
4848
|
}
|
|
4850
4849
|
|
|
4851
4850
|
// Then handle all other parts
|
|
@@ -5212,7 +5211,13 @@ class TabNode extends TextNode {
|
|
|
5212
5211
|
if (!(text === '\t' || text === '')) {
|
|
5213
5212
|
formatDevErrorMessage(`TabNode does not support setTextContent`);
|
|
5214
5213
|
}
|
|
5215
|
-
return super.setTextContent(
|
|
5214
|
+
return super.setTextContent('\t');
|
|
5215
|
+
}
|
|
5216
|
+
spliceText(offset, delCount, newText, moveSelection) {
|
|
5217
|
+
if (!(newText === '' && delCount === 0 || newText === '\t' && delCount === 1)) {
|
|
5218
|
+
formatDevErrorMessage(`TabNode does not support spliceText`);
|
|
5219
|
+
}
|
|
5220
|
+
return this;
|
|
5216
5221
|
}
|
|
5217
5222
|
setDetail(detail) {
|
|
5218
5223
|
if (!(detail === IS_UNMERGEABLE)) {
|
|
@@ -5798,7 +5803,7 @@ class RangeSelection {
|
|
|
5798
5803
|
endOffset = firstNodeTextLength;
|
|
5799
5804
|
endPoint.set(firstPoint.key, endOffset, 'text');
|
|
5800
5805
|
}
|
|
5801
|
-
if (this.isCollapsed() && startOffset === firstNodeTextLength && (
|
|
5806
|
+
if (this.isCollapsed() && startOffset === firstNodeTextLength && ($isTokenOrSegmented(firstNode) || !firstNode.canInsertTextAfter() || !firstNodeParent.canInsertTextAfter() && firstNode.getNextSibling() === null)) {
|
|
5802
5807
|
let nextSibling = firstNode.getNextSibling();
|
|
5803
5808
|
if (!$isTextNode(nextSibling) || !nextSibling.canInsertTextBefore() || $isTokenOrSegmented(nextSibling)) {
|
|
5804
5809
|
nextSibling = $createTextNode();
|
|
@@ -5816,7 +5821,7 @@ class RangeSelection {
|
|
|
5816
5821
|
this.insertText(text);
|
|
5817
5822
|
return;
|
|
5818
5823
|
}
|
|
5819
|
-
} else if (this.isCollapsed() && startOffset === 0 && (
|
|
5824
|
+
} else if (this.isCollapsed() && startOffset === 0 && ($isTokenOrSegmented(firstNode) || !firstNode.canInsertTextBefore() || !firstNodeParent.canInsertTextBefore() && firstNode.getPreviousSibling() === null)) {
|
|
5820
5825
|
let prevSibling = firstNode.getPreviousSibling();
|
|
5821
5826
|
if (!$isTextNode(prevSibling) || $isTokenOrSegmented(prevSibling)) {
|
|
5822
5827
|
prevSibling = $createTextNode();
|
|
@@ -5852,7 +5857,7 @@ class RangeSelection {
|
|
|
5852
5857
|
}
|
|
5853
5858
|
}
|
|
5854
5859
|
if (selectedNodesLength === 1) {
|
|
5855
|
-
if (firstNode
|
|
5860
|
+
if ($isTokenOrTab(firstNode)) {
|
|
5856
5861
|
const textNode = $createTextNode(text);
|
|
5857
5862
|
textNode.select();
|
|
5858
5863
|
firstNode.replace(textNode);
|
|
@@ -5929,7 +5934,7 @@ class RangeSelection {
|
|
|
5929
5934
|
|
|
5930
5935
|
// Handle mutations to the last node.
|
|
5931
5936
|
if (endPoint.type === 'text' && (endOffset !== 0 || lastNode.getTextContent() === '') || endPoint.type === 'element' && lastNode.getIndexWithinParent() < endOffset) {
|
|
5932
|
-
if ($isTextNode(lastNode) &&
|
|
5937
|
+
if ($isTextNode(lastNode) && !$isTokenOrTab(lastNode) && endOffset !== lastNode.getTextContentSize()) {
|
|
5933
5938
|
if (lastNode.isSegmented()) {
|
|
5934
5939
|
const textNode = $createTextNode(lastNode.getTextContent());
|
|
5935
5940
|
lastNode.replace(textNode);
|
|
@@ -6000,7 +6005,7 @@ class RangeSelection {
|
|
|
6000
6005
|
|
|
6001
6006
|
// Ensure we do splicing after moving of nodes, as splicing
|
|
6002
6007
|
// can have side-effects (in the case of hashtags).
|
|
6003
|
-
if (
|
|
6008
|
+
if (!$isTokenOrTab(firstNode)) {
|
|
6004
6009
|
firstNode = firstNode.spliceText(startOffset, firstNodeTextLength - startOffset, text, true);
|
|
6005
6010
|
if (firstNode.getTextContent() === '') {
|
|
6006
6011
|
firstNode.remove();
|
|
@@ -10456,7 +10461,7 @@ class LexicalEditor {
|
|
|
10456
10461
|
};
|
|
10457
10462
|
}
|
|
10458
10463
|
}
|
|
10459
|
-
LexicalEditor.version = "0.32.
|
|
10464
|
+
LexicalEditor.version = "0.32.1+dev.cjs";
|
|
10460
10465
|
|
|
10461
10466
|
let keyCounter = 1;
|
|
10462
10467
|
function resetRandomKey() {
|
|
@@ -10533,8 +10538,19 @@ function getTextDirection(text) {
|
|
|
10533
10538
|
}
|
|
10534
10539
|
return null;
|
|
10535
10540
|
}
|
|
10541
|
+
|
|
10542
|
+
/**
|
|
10543
|
+
* Return true if the TextNode is a TabNode or is in token mode.
|
|
10544
|
+
*/
|
|
10545
|
+
function $isTokenOrTab(node) {
|
|
10546
|
+
return $isTabNode(node) || node.isToken();
|
|
10547
|
+
}
|
|
10548
|
+
|
|
10549
|
+
/**
|
|
10550
|
+
* Return true if the TextNode is a TabNode, or is in token or segmented mode.
|
|
10551
|
+
*/
|
|
10536
10552
|
function $isTokenOrSegmented(node) {
|
|
10537
|
-
return node
|
|
10553
|
+
return $isTokenOrTab(node) || node.isSegmented();
|
|
10538
10554
|
}
|
|
10539
10555
|
|
|
10540
10556
|
/**
|
|
@@ -11009,7 +11025,7 @@ function $shouldInsertTextAfterOrBeforeTextNode(selection, node) {
|
|
|
11009
11025
|
}
|
|
11010
11026
|
const offset = selection.anchor.offset;
|
|
11011
11027
|
const parent = node.getParentOrThrow();
|
|
11012
|
-
const isToken = node
|
|
11028
|
+
const isToken = $isTokenOrTab(node);
|
|
11013
11029
|
if (offset === 0) {
|
|
11014
11030
|
return !node.canInsertTextBefore() || !parent.canInsertTextBefore() && !node.isComposing() || isToken || $previousSiblingDoesNotAcceptText(node);
|
|
11015
11031
|
} else if (offset === node.getTextContentSize()) {
|
|
@@ -13271,6 +13287,7 @@ exports.$isTextNode = $isTextNode;
|
|
|
13271
13287
|
exports.$isTextPointCaret = $isTextPointCaret;
|
|
13272
13288
|
exports.$isTextPointCaretSlice = $isTextPointCaretSlice;
|
|
13273
13289
|
exports.$isTokenOrSegmented = $isTokenOrSegmented;
|
|
13290
|
+
exports.$isTokenOrTab = $isTokenOrTab;
|
|
13274
13291
|
exports.$nodesOfType = $nodesOfType;
|
|
13275
13292
|
exports.$normalizeCaret = $normalizeCaret;
|
|
13276
13293
|
exports.$normalizeSelection__EXPERIMENTAL = $normalizeSelection;
|
package/Lexical.dev.mjs
CHANGED
|
@@ -2207,7 +2207,7 @@ function getTargetRange(event) {
|
|
|
2207
2207
|
return targetRanges[0];
|
|
2208
2208
|
}
|
|
2209
2209
|
function $canRemoveText(anchorNode, focusNode) {
|
|
2210
|
-
return anchorNode !== focusNode || $isElementNode(anchorNode) || $isElementNode(focusNode) ||
|
|
2210
|
+
return anchorNode !== focusNode || $isElementNode(anchorNode) || $isElementNode(focusNode) || !$isTokenOrTab(anchorNode) || !$isTokenOrTab(focusNode);
|
|
2211
2211
|
}
|
|
2212
2212
|
function isPossiblyAndroidKeyPress(timeStamp) {
|
|
2213
2213
|
return lastKeyCode === 'MediaLast' && timeStamp < lastKeyDownTimeStamp + ANDROID_COMPOSITION_LATENCY;
|
|
@@ -2713,7 +2713,7 @@ function onKeyDown(event, editor) {
|
|
|
2713
2713
|
event.preventDefault();
|
|
2714
2714
|
dispatchCommand(editor, SELECT_ALL_COMMAND, event);
|
|
2715
2715
|
}
|
|
2716
|
-
} else if (
|
|
2716
|
+
} else if (isSelectAll(event)) {
|
|
2717
2717
|
event.preventDefault();
|
|
2718
2718
|
dispatchCommand(editor, SELECT_ALL_COMMAND, event);
|
|
2719
2719
|
}
|
|
@@ -4842,8 +4842,7 @@ class TextNode extends LexicalNode {
|
|
|
4842
4842
|
hasReplacedSelf = true;
|
|
4843
4843
|
} else {
|
|
4844
4844
|
// For the first part, update the existing node
|
|
4845
|
-
writableNode = self.
|
|
4846
|
-
writableNode.__text = firstPart;
|
|
4845
|
+
writableNode = self.setTextContent(firstPart);
|
|
4847
4846
|
}
|
|
4848
4847
|
|
|
4849
4848
|
// Then handle all other parts
|
|
@@ -5210,7 +5209,13 @@ class TabNode extends TextNode {
|
|
|
5210
5209
|
if (!(text === '\t' || text === '')) {
|
|
5211
5210
|
formatDevErrorMessage(`TabNode does not support setTextContent`);
|
|
5212
5211
|
}
|
|
5213
|
-
return super.setTextContent(
|
|
5212
|
+
return super.setTextContent('\t');
|
|
5213
|
+
}
|
|
5214
|
+
spliceText(offset, delCount, newText, moveSelection) {
|
|
5215
|
+
if (!(newText === '' && delCount === 0 || newText === '\t' && delCount === 1)) {
|
|
5216
|
+
formatDevErrorMessage(`TabNode does not support spliceText`);
|
|
5217
|
+
}
|
|
5218
|
+
return this;
|
|
5214
5219
|
}
|
|
5215
5220
|
setDetail(detail) {
|
|
5216
5221
|
if (!(detail === IS_UNMERGEABLE)) {
|
|
@@ -5796,7 +5801,7 @@ class RangeSelection {
|
|
|
5796
5801
|
endOffset = firstNodeTextLength;
|
|
5797
5802
|
endPoint.set(firstPoint.key, endOffset, 'text');
|
|
5798
5803
|
}
|
|
5799
|
-
if (this.isCollapsed() && startOffset === firstNodeTextLength && (
|
|
5804
|
+
if (this.isCollapsed() && startOffset === firstNodeTextLength && ($isTokenOrSegmented(firstNode) || !firstNode.canInsertTextAfter() || !firstNodeParent.canInsertTextAfter() && firstNode.getNextSibling() === null)) {
|
|
5800
5805
|
let nextSibling = firstNode.getNextSibling();
|
|
5801
5806
|
if (!$isTextNode(nextSibling) || !nextSibling.canInsertTextBefore() || $isTokenOrSegmented(nextSibling)) {
|
|
5802
5807
|
nextSibling = $createTextNode();
|
|
@@ -5814,7 +5819,7 @@ class RangeSelection {
|
|
|
5814
5819
|
this.insertText(text);
|
|
5815
5820
|
return;
|
|
5816
5821
|
}
|
|
5817
|
-
} else if (this.isCollapsed() && startOffset === 0 && (
|
|
5822
|
+
} else if (this.isCollapsed() && startOffset === 0 && ($isTokenOrSegmented(firstNode) || !firstNode.canInsertTextBefore() || !firstNodeParent.canInsertTextBefore() && firstNode.getPreviousSibling() === null)) {
|
|
5818
5823
|
let prevSibling = firstNode.getPreviousSibling();
|
|
5819
5824
|
if (!$isTextNode(prevSibling) || $isTokenOrSegmented(prevSibling)) {
|
|
5820
5825
|
prevSibling = $createTextNode();
|
|
@@ -5850,7 +5855,7 @@ class RangeSelection {
|
|
|
5850
5855
|
}
|
|
5851
5856
|
}
|
|
5852
5857
|
if (selectedNodesLength === 1) {
|
|
5853
|
-
if (firstNode
|
|
5858
|
+
if ($isTokenOrTab(firstNode)) {
|
|
5854
5859
|
const textNode = $createTextNode(text);
|
|
5855
5860
|
textNode.select();
|
|
5856
5861
|
firstNode.replace(textNode);
|
|
@@ -5927,7 +5932,7 @@ class RangeSelection {
|
|
|
5927
5932
|
|
|
5928
5933
|
// Handle mutations to the last node.
|
|
5929
5934
|
if (endPoint.type === 'text' && (endOffset !== 0 || lastNode.getTextContent() === '') || endPoint.type === 'element' && lastNode.getIndexWithinParent() < endOffset) {
|
|
5930
|
-
if ($isTextNode(lastNode) &&
|
|
5935
|
+
if ($isTextNode(lastNode) && !$isTokenOrTab(lastNode) && endOffset !== lastNode.getTextContentSize()) {
|
|
5931
5936
|
if (lastNode.isSegmented()) {
|
|
5932
5937
|
const textNode = $createTextNode(lastNode.getTextContent());
|
|
5933
5938
|
lastNode.replace(textNode);
|
|
@@ -5998,7 +6003,7 @@ class RangeSelection {
|
|
|
5998
6003
|
|
|
5999
6004
|
// Ensure we do splicing after moving of nodes, as splicing
|
|
6000
6005
|
// can have side-effects (in the case of hashtags).
|
|
6001
|
-
if (
|
|
6006
|
+
if (!$isTokenOrTab(firstNode)) {
|
|
6002
6007
|
firstNode = firstNode.spliceText(startOffset, firstNodeTextLength - startOffset, text, true);
|
|
6003
6008
|
if (firstNode.getTextContent() === '') {
|
|
6004
6009
|
firstNode.remove();
|
|
@@ -10454,7 +10459,7 @@ class LexicalEditor {
|
|
|
10454
10459
|
};
|
|
10455
10460
|
}
|
|
10456
10461
|
}
|
|
10457
|
-
LexicalEditor.version = "0.32.
|
|
10462
|
+
LexicalEditor.version = "0.32.1+dev.esm";
|
|
10458
10463
|
|
|
10459
10464
|
let keyCounter = 1;
|
|
10460
10465
|
function resetRandomKey() {
|
|
@@ -10531,8 +10536,19 @@ function getTextDirection(text) {
|
|
|
10531
10536
|
}
|
|
10532
10537
|
return null;
|
|
10533
10538
|
}
|
|
10539
|
+
|
|
10540
|
+
/**
|
|
10541
|
+
* Return true if the TextNode is a TabNode or is in token mode.
|
|
10542
|
+
*/
|
|
10543
|
+
function $isTokenOrTab(node) {
|
|
10544
|
+
return $isTabNode(node) || node.isToken();
|
|
10545
|
+
}
|
|
10546
|
+
|
|
10547
|
+
/**
|
|
10548
|
+
* Return true if the TextNode is a TabNode, or is in token or segmented mode.
|
|
10549
|
+
*/
|
|
10534
10550
|
function $isTokenOrSegmented(node) {
|
|
10535
|
-
return node
|
|
10551
|
+
return $isTokenOrTab(node) || node.isSegmented();
|
|
10536
10552
|
}
|
|
10537
10553
|
|
|
10538
10554
|
/**
|
|
@@ -11007,7 +11023,7 @@ function $shouldInsertTextAfterOrBeforeTextNode(selection, node) {
|
|
|
11007
11023
|
}
|
|
11008
11024
|
const offset = selection.anchor.offset;
|
|
11009
11025
|
const parent = node.getParentOrThrow();
|
|
11010
|
-
const isToken = node
|
|
11026
|
+
const isToken = $isTokenOrTab(node);
|
|
11011
11027
|
if (offset === 0) {
|
|
11012
11028
|
return !node.canInsertTextBefore() || !parent.canInsertTextBefore() && !node.isComposing() || isToken || $previousSiblingDoesNotAcceptText(node);
|
|
11013
11029
|
} else if (offset === node.getTextContentSize()) {
|
|
@@ -13201,4 +13217,4 @@ function $splitAtPointCaretNext(pointCaret, {
|
|
|
13201
13217
|
return parentCaret;
|
|
13202
13218
|
}
|
|
13203
13219
|
|
|
13204
|
-
export { $addUpdateTag, $applyNodeReplacement, $caretFromPoint, $caretRangeFromSelection, $cloneWithProperties, $comparePointCaretNext, $copyNode, $createLineBreakNode, $createNodeSelection, $createParagraphNode, $createPoint, $createRangeSelection, $createRangeSelectionFromDom, $createTabNode, $createTextNode, $extendCaretToRange, $getAdjacentChildCaret, $getAdjacentNode, $getAdjacentSiblingOrParentSiblingCaret, $getCaretInDirection, $getCaretRange, $getCaretRangeInDirection, $getCharacterOffsets, $getChildCaret, $getChildCaretAtIndex, $getChildCaretOrSelf, $getCollapsedCaretRange, $getCommonAncestor, $getCommonAncestorResultBranchOrder, $getEditor, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getNodeByKeyOrThrow, $getPreviousSelection, $getRoot, $getSelection, $getSiblingCaret, $getState, $getStateChange, $getTextContent, $getTextNodeOffset, $getTextPointCaret, $getTextPointCaretSlice, $getWritableNodeState, $hasAncestor, $hasUpdateTag, $insertNodes, $isBlockElementNode, $isChildCaret, $isDecoratorNode, $isElementNode, $isExtendableTextPointCaret, $isInlineElementOrDecoratorNode, $isLeafNode, $isLineBreakNode, $isNodeCaret, $isNodeSelection, $isParagraphNode, $isRangeSelection, $isRootNode, $isRootOrShadowRoot, $isSiblingCaret, $isTabNode, $isTextNode, $isTextPointCaret, $isTextPointCaretSlice, $isTokenOrSegmented, $nodesOfType, $normalizeCaret, $normalizeSelection as $normalizeSelection__EXPERIMENTAL, $onUpdate, $parseSerializedNode, $removeTextFromCaretRange, $rewindSiblingCaret, $selectAll, $setCompositionKey, $setPointFromCaret, $setSelection, $setSelectionFromCaretRange, $setState, $splitAtPointCaretNext, $splitNode, $updateRangeSelectionFromCaretRange, ArtificialNode__DO_NOT_USE, BLUR_COMMAND, CAN_REDO_COMMAND, CAN_UNDO_COMMAND, CLEAR_EDITOR_COMMAND, CLEAR_HISTORY_COMMAND, CLICK_COMMAND, COLLABORATION_TAG, COMMAND_PRIORITY_CRITICAL, COMMAND_PRIORITY_EDITOR, COMMAND_PRIORITY_HIGH, COMMAND_PRIORITY_LOW, COMMAND_PRIORITY_NORMAL, CONTROLLED_TEXT_INSERTION_COMMAND, COPY_COMMAND, CUT_COMMAND, DELETE_CHARACTER_COMMAND, DELETE_LINE_COMMAND, DELETE_WORD_COMMAND, DRAGEND_COMMAND, DRAGOVER_COMMAND, DRAGSTART_COMMAND, DROP_COMMAND, DecoratorNode, ElementNode, FOCUS_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, HISTORIC_TAG, HISTORY_MERGE_TAG, HISTORY_PUSH_TAG, INDENT_CONTENT_COMMAND, INSERT_LINE_BREAK_COMMAND, INSERT_PARAGRAPH_COMMAND, INSERT_TAB_COMMAND, INTERNAL_$isBlock, IS_ALL_FORMATTING, IS_BOLD, IS_CODE, IS_HIGHLIGHT, IS_ITALIC, IS_STRIKETHROUGH, IS_SUBSCRIPT, IS_SUPERSCRIPT, IS_UNDERLINE, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_LEFT_COMMAND, KEY_ARROW_RIGHT_COMMAND, KEY_ARROW_UP_COMMAND, KEY_BACKSPACE_COMMAND, KEY_DELETE_COMMAND, KEY_DOWN_COMMAND, KEY_ENTER_COMMAND, KEY_ESCAPE_COMMAND, KEY_MODIFIER_COMMAND, KEY_SPACE_COMMAND, KEY_TAB_COMMAND, LineBreakNode, MOVE_TO_END, MOVE_TO_START, NODE_STATE_KEY, OUTDENT_CONTENT_COMMAND, PASTE_COMMAND, PASTE_TAG, ParagraphNode, REDO_COMMAND, REMOVE_TEXT_COMMAND, RootNode, SELECTION_CHANGE_COMMAND, SELECTION_INSERT_CLIPBOARD_NODES_COMMAND, SELECT_ALL_COMMAND, SKIP_COLLAB_TAG, SKIP_DOM_SELECTION_TAG, SKIP_SCROLL_INTO_VIEW_TAG, TEXT_TYPE_TO_FORMAT, TabNode, TextNode, UNDO_COMMAND, createCommand, createEditor, createState, flipDirection, getDOMOwnerDocument, getDOMSelection, getDOMSelectionFromTarget, getDOMTextNode, getEditorPropertyFromDOMNode, getNearestEditorFromDOMNode, isBlockDomNode, isCurrentlyReadOnlyMode, isDOMDocumentNode, isDOMNode, isDOMTextNode, isDOMUnmanaged, isDocumentFragment, isExactShortcutMatch, isHTMLAnchorElement, isHTMLElement, isInlineDomNode, isLexicalEditor, isModifierMatch, isSelectionCapturedInDecoratorInput, isSelectionWithinEditor, makeStepwiseIterator, removeFromParent, resetRandomKey, setDOMUnmanaged, setNodeIndentFromDOM };
|
|
13220
|
+
export { $addUpdateTag, $applyNodeReplacement, $caretFromPoint, $caretRangeFromSelection, $cloneWithProperties, $comparePointCaretNext, $copyNode, $createLineBreakNode, $createNodeSelection, $createParagraphNode, $createPoint, $createRangeSelection, $createRangeSelectionFromDom, $createTabNode, $createTextNode, $extendCaretToRange, $getAdjacentChildCaret, $getAdjacentNode, $getAdjacentSiblingOrParentSiblingCaret, $getCaretInDirection, $getCaretRange, $getCaretRangeInDirection, $getCharacterOffsets, $getChildCaret, $getChildCaretAtIndex, $getChildCaretOrSelf, $getCollapsedCaretRange, $getCommonAncestor, $getCommonAncestorResultBranchOrder, $getEditor, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getNodeByKeyOrThrow, $getPreviousSelection, $getRoot, $getSelection, $getSiblingCaret, $getState, $getStateChange, $getTextContent, $getTextNodeOffset, $getTextPointCaret, $getTextPointCaretSlice, $getWritableNodeState, $hasAncestor, $hasUpdateTag, $insertNodes, $isBlockElementNode, $isChildCaret, $isDecoratorNode, $isElementNode, $isExtendableTextPointCaret, $isInlineElementOrDecoratorNode, $isLeafNode, $isLineBreakNode, $isNodeCaret, $isNodeSelection, $isParagraphNode, $isRangeSelection, $isRootNode, $isRootOrShadowRoot, $isSiblingCaret, $isTabNode, $isTextNode, $isTextPointCaret, $isTextPointCaretSlice, $isTokenOrSegmented, $isTokenOrTab, $nodesOfType, $normalizeCaret, $normalizeSelection as $normalizeSelection__EXPERIMENTAL, $onUpdate, $parseSerializedNode, $removeTextFromCaretRange, $rewindSiblingCaret, $selectAll, $setCompositionKey, $setPointFromCaret, $setSelection, $setSelectionFromCaretRange, $setState, $splitAtPointCaretNext, $splitNode, $updateRangeSelectionFromCaretRange, ArtificialNode__DO_NOT_USE, BLUR_COMMAND, CAN_REDO_COMMAND, CAN_UNDO_COMMAND, CLEAR_EDITOR_COMMAND, CLEAR_HISTORY_COMMAND, CLICK_COMMAND, COLLABORATION_TAG, COMMAND_PRIORITY_CRITICAL, COMMAND_PRIORITY_EDITOR, COMMAND_PRIORITY_HIGH, COMMAND_PRIORITY_LOW, COMMAND_PRIORITY_NORMAL, CONTROLLED_TEXT_INSERTION_COMMAND, COPY_COMMAND, CUT_COMMAND, DELETE_CHARACTER_COMMAND, DELETE_LINE_COMMAND, DELETE_WORD_COMMAND, DRAGEND_COMMAND, DRAGOVER_COMMAND, DRAGSTART_COMMAND, DROP_COMMAND, DecoratorNode, ElementNode, FOCUS_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, HISTORIC_TAG, HISTORY_MERGE_TAG, HISTORY_PUSH_TAG, INDENT_CONTENT_COMMAND, INSERT_LINE_BREAK_COMMAND, INSERT_PARAGRAPH_COMMAND, INSERT_TAB_COMMAND, INTERNAL_$isBlock, IS_ALL_FORMATTING, IS_BOLD, IS_CODE, IS_HIGHLIGHT, IS_ITALIC, IS_STRIKETHROUGH, IS_SUBSCRIPT, IS_SUPERSCRIPT, IS_UNDERLINE, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_LEFT_COMMAND, KEY_ARROW_RIGHT_COMMAND, KEY_ARROW_UP_COMMAND, KEY_BACKSPACE_COMMAND, KEY_DELETE_COMMAND, KEY_DOWN_COMMAND, KEY_ENTER_COMMAND, KEY_ESCAPE_COMMAND, KEY_MODIFIER_COMMAND, KEY_SPACE_COMMAND, KEY_TAB_COMMAND, LineBreakNode, MOVE_TO_END, MOVE_TO_START, NODE_STATE_KEY, OUTDENT_CONTENT_COMMAND, PASTE_COMMAND, PASTE_TAG, ParagraphNode, REDO_COMMAND, REMOVE_TEXT_COMMAND, RootNode, SELECTION_CHANGE_COMMAND, SELECTION_INSERT_CLIPBOARD_NODES_COMMAND, SELECT_ALL_COMMAND, SKIP_COLLAB_TAG, SKIP_DOM_SELECTION_TAG, SKIP_SCROLL_INTO_VIEW_TAG, TEXT_TYPE_TO_FORMAT, TabNode, TextNode, UNDO_COMMAND, createCommand, createEditor, createState, flipDirection, getDOMOwnerDocument, getDOMSelection, getDOMSelectionFromTarget, getDOMTextNode, getEditorPropertyFromDOMNode, getNearestEditorFromDOMNode, isBlockDomNode, isCurrentlyReadOnlyMode, isDOMDocumentNode, isDOMNode, isDOMTextNode, isDOMUnmanaged, isDocumentFragment, isExactShortcutMatch, isHTMLAnchorElement, isHTMLElement, isInlineDomNode, isLexicalEditor, isModifierMatch, isSelectionCapturedInDecoratorInput, isSelectionWithinEditor, makeStepwiseIterator, removeFromParent, resetRandomKey, setDOMUnmanaged, setNodeIndentFromDOM };
|
package/Lexical.mjs
CHANGED
|
@@ -77,6 +77,7 @@ export const $isTextNode = mod.$isTextNode;
|
|
|
77
77
|
export const $isTextPointCaret = mod.$isTextPointCaret;
|
|
78
78
|
export const $isTextPointCaretSlice = mod.$isTextPointCaretSlice;
|
|
79
79
|
export const $isTokenOrSegmented = mod.$isTokenOrSegmented;
|
|
80
|
+
export const $isTokenOrTab = mod.$isTokenOrTab;
|
|
80
81
|
export const $nodesOfType = mod.$nodesOfType;
|
|
81
82
|
export const $normalizeCaret = mod.$normalizeCaret;
|
|
82
83
|
export const $normalizeSelection__EXPERIMENTAL = mod.$normalizeSelection__EXPERIMENTAL;
|
package/Lexical.node.mjs
CHANGED
|
@@ -75,6 +75,7 @@ export const $isTextNode = mod.$isTextNode;
|
|
|
75
75
|
export const $isTextPointCaret = mod.$isTextPointCaret;
|
|
76
76
|
export const $isTextPointCaretSlice = mod.$isTextPointCaretSlice;
|
|
77
77
|
export const $isTokenOrSegmented = mod.$isTokenOrSegmented;
|
|
78
|
+
export const $isTokenOrTab = mod.$isTokenOrTab;
|
|
78
79
|
export const $nodesOfType = mod.$nodesOfType;
|
|
79
80
|
export const $normalizeCaret = mod.$normalizeCaret;
|
|
80
81
|
export const $normalizeSelection__EXPERIMENTAL = mod.$normalizeSelection__EXPERIMENTAL;
|