lexical 0.30.1-nightly.20250409.0 → 0.30.1-nightly.20250414.0

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 CHANGED
@@ -7249,7 +7249,7 @@ function updateDOMSelection(prevSelection, nextSelection, editor, domSelection,
7249
7249
 
7250
7250
  // TODO: make this not hard-coded, and add another config option
7251
7251
  // that makes this configurable.
7252
- if (tags.has('collaboration') && activeElement !== rootElement || activeElement !== null && isSelectionCapturedInDecoratorInput(activeElement)) {
7252
+ if (tags.has(COLLABORATION_TAG) && activeElement !== rootElement || activeElement !== null && isSelectionCapturedInDecoratorInput(activeElement)) {
7253
7253
  return;
7254
7254
  }
7255
7255
  if (!$isRangeSelection(nextSelection)) {
@@ -7317,7 +7317,7 @@ function updateDOMSelection(prevSelection, nextSelection, editor, domSelection,
7317
7317
  // Apply the updated selection to the DOM. Note: this will trigger
7318
7318
  // a "selectionchange" event, although it will be asynchronous.
7319
7319
  setDOMSelectionBaseAndExtent(domSelection, nextAnchorNode, nextAnchorOffset, nextFocusNode, nextFocusOffset);
7320
- if (!tags.has('skip-scroll-into-view') && nextSelection.isCollapsed() && rootElement !== null && rootElement === document.activeElement) {
7320
+ if (!tags.has(SKIP_SCROLL_INTO_VIEW_TAG) && nextSelection.isCollapsed() && rootElement !== null && rootElement === document.activeElement) {
7321
7321
  const selectionTarget = $isRangeSelection(nextSelection) && nextSelection.anchor.type === 'element' ? nextAnchorNode.childNodes[nextAnchorOffset] || null : domSelection.rangeCount > 0 ? domSelection.getRangeAt(0) : null;
7322
7322
  if (selectionTarget !== null) {
7323
7323
  let selectionRect;
@@ -7975,7 +7975,7 @@ function $commitPendingUpdates(editor, recoveryEditorState) {
7975
7975
  // and scroll into view if needed.
7976
7976
  if (editor._editable &&
7977
7977
  // domSelection will be null in headless
7978
- domSelection !== null && (needsUpdate || pendingSelection === null || pendingSelection.dirty) && rootElement !== null && !tags.has('skip-dom-selection')) {
7978
+ domSelection !== null && (needsUpdate || pendingSelection === null || pendingSelection.dirty) && rootElement !== null && !tags.has(SKIP_DOM_SELECTION_TAG)) {
7979
7979
  activeEditor = editor;
7980
7980
  activeEditorState = pendingEditorState;
7981
7981
  try {
@@ -9284,6 +9284,60 @@ class EditorState {
9284
9284
  }
9285
9285
  }
9286
9286
 
9287
+ /**
9288
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9289
+ *
9290
+ * This source code is licensed under the MIT license found in the
9291
+ * LICENSE file in the root directory of this source tree.
9292
+ *
9293
+ */
9294
+
9295
+ /**
9296
+ * Common update tags used in Lexical. These tags can be used with editor.update() or $addUpdateTag()
9297
+ * to indicate the type/purpose of an update. Multiple tags can be used in a single update.
9298
+ */
9299
+
9300
+ /**
9301
+ * Indicates that the update is related to history operations (undo/redo)
9302
+ */
9303
+ const HISTORIC_TAG = 'historic';
9304
+
9305
+ /**
9306
+ * Indicates that a new history entry should be pushed to the history stack
9307
+ */
9308
+ const HISTORY_PUSH_TAG = 'history-push';
9309
+
9310
+ /**
9311
+ * Indicates that the current update should be merged with the previous history entry
9312
+ */
9313
+ const HISTORY_MERGE_TAG = 'history-merge';
9314
+
9315
+ /**
9316
+ * Indicates that the update is related to a paste operation
9317
+ */
9318
+ const PASTE_TAG = 'paste';
9319
+
9320
+ /**
9321
+ * Indicates that the update is related to collaborative editing
9322
+ */
9323
+ const COLLABORATION_TAG = 'collaboration';
9324
+
9325
+ /**
9326
+ * Indicates that the update should skip collaborative sync
9327
+ */
9328
+ const SKIP_COLLAB_TAG = 'skip-collab';
9329
+
9330
+ /**
9331
+ * Indicates that the update should skip scrolling the selection into view
9332
+ */
9333
+ const SKIP_SCROLL_INTO_VIEW_TAG = 'skip-scroll-into-view';
9334
+
9335
+ /**
9336
+ * Indicates that the update should skip updating the DOM selection
9337
+ * This is useful when you want to make updates without changing the selection or focus
9338
+ */
9339
+ const SKIP_DOM_SELECTION_TAG = 'skip-dom-selection';
9340
+
9287
9341
  /**
9288
9342
  * Copyright (c) Meta Platforms, Inc. and affiliates.
9289
9343
  *
@@ -10069,7 +10123,7 @@ class LexicalEditor {
10069
10123
  this._window = windowObj;
10070
10124
  this._dirtyType = FULL_RECONCILE;
10071
10125
  initMutationObserver(this);
10072
- this._updateTags.add('history-merge');
10126
+ this._updateTags.add(HISTORY_MERGE_TAG);
10073
10127
  $commitPendingUpdates(this);
10074
10128
 
10075
10129
  // TODO: remove this flag once we no longer use UEv2 internally
@@ -10093,7 +10147,7 @@ class LexicalEditor {
10093
10147
  // using a commit we preserve the readOnly invariant
10094
10148
  // for editor.getEditorState().
10095
10149
  this._window = null;
10096
- this._updateTags.add('history-merge');
10150
+ this._updateTags.add(HISTORY_MERGE_TAG);
10097
10151
  $commitPendingUpdates(this);
10098
10152
  }
10099
10153
  triggerListeners('root', this, false, nextRootElement, prevRootElement);
@@ -10301,7 +10355,7 @@ class LexicalEditor {
10301
10355
  };
10302
10356
  }
10303
10357
  }
10304
- LexicalEditor.version = "0.30.1-nightly.20250409.0+dev.cjs";
10358
+ LexicalEditor.version = "0.30.1-nightly.20250414.0+dev.cjs";
10305
10359
 
10306
10360
  let keyCounter = 1;
10307
10361
  function resetRandomKey() {
@@ -10561,7 +10615,6 @@ function internalMarkNodeAsDirty(node) {
10561
10615
  if ($isElementNode(node)) {
10562
10616
  dirtyElements.set(key, true);
10563
10617
  } else {
10564
- // TODO split internally MarkNodeAsDirty into two dedicated Element/leave functions
10565
10618
  editor._dirtyLeaves.add(key);
10566
10619
  }
10567
10620
  }
@@ -10674,7 +10727,7 @@ function markNodesWithTypesAsDirty(editor, types) {
10674
10727
  }
10675
10728
  }
10676
10729
  }, editor._pendingEditorState === null ? {
10677
- tag: 'history-merge'
10730
+ tag: HISTORY_MERGE_TAG
10678
10731
  } : undefined);
10679
10732
  }
10680
10733
  function $getRoot() {
@@ -13101,6 +13154,7 @@ exports.CAN_UNDO_COMMAND = CAN_UNDO_COMMAND;
13101
13154
  exports.CLEAR_EDITOR_COMMAND = CLEAR_EDITOR_COMMAND;
13102
13155
  exports.CLEAR_HISTORY_COMMAND = CLEAR_HISTORY_COMMAND;
13103
13156
  exports.CLICK_COMMAND = CLICK_COMMAND;
13157
+ exports.COLLABORATION_TAG = COLLABORATION_TAG;
13104
13158
  exports.COMMAND_PRIORITY_CRITICAL = COMMAND_PRIORITY_CRITICAL;
13105
13159
  exports.COMMAND_PRIORITY_EDITOR = COMMAND_PRIORITY_EDITOR;
13106
13160
  exports.COMMAND_PRIORITY_HIGH = COMMAND_PRIORITY_HIGH;
@@ -13121,6 +13175,9 @@ exports.ElementNode = ElementNode;
13121
13175
  exports.FOCUS_COMMAND = FOCUS_COMMAND;
13122
13176
  exports.FORMAT_ELEMENT_COMMAND = FORMAT_ELEMENT_COMMAND;
13123
13177
  exports.FORMAT_TEXT_COMMAND = FORMAT_TEXT_COMMAND;
13178
+ exports.HISTORIC_TAG = HISTORIC_TAG;
13179
+ exports.HISTORY_MERGE_TAG = HISTORY_MERGE_TAG;
13180
+ exports.HISTORY_PUSH_TAG = HISTORY_PUSH_TAG;
13124
13181
  exports.INDENT_CONTENT_COMMAND = INDENT_CONTENT_COMMAND;
13125
13182
  exports.INSERT_LINE_BREAK_COMMAND = INSERT_LINE_BREAK_COMMAND;
13126
13183
  exports.INSERT_PARAGRAPH_COMMAND = INSERT_PARAGRAPH_COMMAND;
@@ -13153,6 +13210,7 @@ exports.MOVE_TO_START = MOVE_TO_START;
13153
13210
  exports.NODE_STATE_KEY = NODE_STATE_KEY;
13154
13211
  exports.OUTDENT_CONTENT_COMMAND = OUTDENT_CONTENT_COMMAND;
13155
13212
  exports.PASTE_COMMAND = PASTE_COMMAND;
13213
+ exports.PASTE_TAG = PASTE_TAG;
13156
13214
  exports.ParagraphNode = ParagraphNode;
13157
13215
  exports.REDO_COMMAND = REDO_COMMAND;
13158
13216
  exports.REMOVE_TEXT_COMMAND = REMOVE_TEXT_COMMAND;
@@ -13160,6 +13218,9 @@ exports.RootNode = RootNode;
13160
13218
  exports.SELECTION_CHANGE_COMMAND = SELECTION_CHANGE_COMMAND;
13161
13219
  exports.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND = SELECTION_INSERT_CLIPBOARD_NODES_COMMAND;
13162
13220
  exports.SELECT_ALL_COMMAND = SELECT_ALL_COMMAND;
13221
+ exports.SKIP_COLLAB_TAG = SKIP_COLLAB_TAG;
13222
+ exports.SKIP_DOM_SELECTION_TAG = SKIP_DOM_SELECTION_TAG;
13223
+ exports.SKIP_SCROLL_INTO_VIEW_TAG = SKIP_SCROLL_INTO_VIEW_TAG;
13163
13224
  exports.TEXT_TYPE_TO_FORMAT = TEXT_TYPE_TO_FORMAT;
13164
13225
  exports.TabNode = TabNode;
13165
13226
  exports.TextNode = TextNode;
package/Lexical.dev.mjs CHANGED
@@ -7247,7 +7247,7 @@ function updateDOMSelection(prevSelection, nextSelection, editor, domSelection,
7247
7247
 
7248
7248
  // TODO: make this not hard-coded, and add another config option
7249
7249
  // that makes this configurable.
7250
- if (tags.has('collaboration') && activeElement !== rootElement || activeElement !== null && isSelectionCapturedInDecoratorInput(activeElement)) {
7250
+ if (tags.has(COLLABORATION_TAG) && activeElement !== rootElement || activeElement !== null && isSelectionCapturedInDecoratorInput(activeElement)) {
7251
7251
  return;
7252
7252
  }
7253
7253
  if (!$isRangeSelection(nextSelection)) {
@@ -7315,7 +7315,7 @@ function updateDOMSelection(prevSelection, nextSelection, editor, domSelection,
7315
7315
  // Apply the updated selection to the DOM. Note: this will trigger
7316
7316
  // a "selectionchange" event, although it will be asynchronous.
7317
7317
  setDOMSelectionBaseAndExtent(domSelection, nextAnchorNode, nextAnchorOffset, nextFocusNode, nextFocusOffset);
7318
- if (!tags.has('skip-scroll-into-view') && nextSelection.isCollapsed() && rootElement !== null && rootElement === document.activeElement) {
7318
+ if (!tags.has(SKIP_SCROLL_INTO_VIEW_TAG) && nextSelection.isCollapsed() && rootElement !== null && rootElement === document.activeElement) {
7319
7319
  const selectionTarget = $isRangeSelection(nextSelection) && nextSelection.anchor.type === 'element' ? nextAnchorNode.childNodes[nextAnchorOffset] || null : domSelection.rangeCount > 0 ? domSelection.getRangeAt(0) : null;
7320
7320
  if (selectionTarget !== null) {
7321
7321
  let selectionRect;
@@ -7973,7 +7973,7 @@ function $commitPendingUpdates(editor, recoveryEditorState) {
7973
7973
  // and scroll into view if needed.
7974
7974
  if (editor._editable &&
7975
7975
  // domSelection will be null in headless
7976
- domSelection !== null && (needsUpdate || pendingSelection === null || pendingSelection.dirty) && rootElement !== null && !tags.has('skip-dom-selection')) {
7976
+ domSelection !== null && (needsUpdate || pendingSelection === null || pendingSelection.dirty) && rootElement !== null && !tags.has(SKIP_DOM_SELECTION_TAG)) {
7977
7977
  activeEditor = editor;
7978
7978
  activeEditorState = pendingEditorState;
7979
7979
  try {
@@ -9282,6 +9282,60 @@ class EditorState {
9282
9282
  }
9283
9283
  }
9284
9284
 
9285
+ /**
9286
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9287
+ *
9288
+ * This source code is licensed under the MIT license found in the
9289
+ * LICENSE file in the root directory of this source tree.
9290
+ *
9291
+ */
9292
+
9293
+ /**
9294
+ * Common update tags used in Lexical. These tags can be used with editor.update() or $addUpdateTag()
9295
+ * to indicate the type/purpose of an update. Multiple tags can be used in a single update.
9296
+ */
9297
+
9298
+ /**
9299
+ * Indicates that the update is related to history operations (undo/redo)
9300
+ */
9301
+ const HISTORIC_TAG = 'historic';
9302
+
9303
+ /**
9304
+ * Indicates that a new history entry should be pushed to the history stack
9305
+ */
9306
+ const HISTORY_PUSH_TAG = 'history-push';
9307
+
9308
+ /**
9309
+ * Indicates that the current update should be merged with the previous history entry
9310
+ */
9311
+ const HISTORY_MERGE_TAG = 'history-merge';
9312
+
9313
+ /**
9314
+ * Indicates that the update is related to a paste operation
9315
+ */
9316
+ const PASTE_TAG = 'paste';
9317
+
9318
+ /**
9319
+ * Indicates that the update is related to collaborative editing
9320
+ */
9321
+ const COLLABORATION_TAG = 'collaboration';
9322
+
9323
+ /**
9324
+ * Indicates that the update should skip collaborative sync
9325
+ */
9326
+ const SKIP_COLLAB_TAG = 'skip-collab';
9327
+
9328
+ /**
9329
+ * Indicates that the update should skip scrolling the selection into view
9330
+ */
9331
+ const SKIP_SCROLL_INTO_VIEW_TAG = 'skip-scroll-into-view';
9332
+
9333
+ /**
9334
+ * Indicates that the update should skip updating the DOM selection
9335
+ * This is useful when you want to make updates without changing the selection or focus
9336
+ */
9337
+ const SKIP_DOM_SELECTION_TAG = 'skip-dom-selection';
9338
+
9285
9339
  /**
9286
9340
  * Copyright (c) Meta Platforms, Inc. and affiliates.
9287
9341
  *
@@ -10067,7 +10121,7 @@ class LexicalEditor {
10067
10121
  this._window = windowObj;
10068
10122
  this._dirtyType = FULL_RECONCILE;
10069
10123
  initMutationObserver(this);
10070
- this._updateTags.add('history-merge');
10124
+ this._updateTags.add(HISTORY_MERGE_TAG);
10071
10125
  $commitPendingUpdates(this);
10072
10126
 
10073
10127
  // TODO: remove this flag once we no longer use UEv2 internally
@@ -10091,7 +10145,7 @@ class LexicalEditor {
10091
10145
  // using a commit we preserve the readOnly invariant
10092
10146
  // for editor.getEditorState().
10093
10147
  this._window = null;
10094
- this._updateTags.add('history-merge');
10148
+ this._updateTags.add(HISTORY_MERGE_TAG);
10095
10149
  $commitPendingUpdates(this);
10096
10150
  }
10097
10151
  triggerListeners('root', this, false, nextRootElement, prevRootElement);
@@ -10299,7 +10353,7 @@ class LexicalEditor {
10299
10353
  };
10300
10354
  }
10301
10355
  }
10302
- LexicalEditor.version = "0.30.1-nightly.20250409.0+dev.esm";
10356
+ LexicalEditor.version = "0.30.1-nightly.20250414.0+dev.esm";
10303
10357
 
10304
10358
  let keyCounter = 1;
10305
10359
  function resetRandomKey() {
@@ -10559,7 +10613,6 @@ function internalMarkNodeAsDirty(node) {
10559
10613
  if ($isElementNode(node)) {
10560
10614
  dirtyElements.set(key, true);
10561
10615
  } else {
10562
- // TODO split internally MarkNodeAsDirty into two dedicated Element/leave functions
10563
10616
  editor._dirtyLeaves.add(key);
10564
10617
  }
10565
10618
  }
@@ -10672,7 +10725,7 @@ function markNodesWithTypesAsDirty(editor, types) {
10672
10725
  }
10673
10726
  }
10674
10727
  }, editor._pendingEditorState === null ? {
10675
- tag: 'history-merge'
10728
+ tag: HISTORY_MERGE_TAG
10676
10729
  } : undefined);
10677
10730
  }
10678
10731
  function $getRoot() {
@@ -13008,4 +13061,4 @@ function $splitAtPointCaretNext(pointCaret, {
13008
13061
  return parentCaret;
13009
13062
  }
13010
13063
 
13011
- 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, 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, 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, ParagraphNode, REDO_COMMAND, REMOVE_TEXT_COMMAND, RootNode, SELECTION_CHANGE_COMMAND, SELECTION_INSERT_CLIPBOARD_NODES_COMMAND, SELECT_ALL_COMMAND, 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, isHTMLAnchorElement, isHTMLElement, isInlineDomNode, isLexicalEditor, isSelectionCapturedInDecoratorInput, isSelectionWithinEditor, makeStepwiseIterator, resetRandomKey, setDOMUnmanaged, setNodeIndentFromDOM };
13064
+ 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, isHTMLAnchorElement, isHTMLElement, isInlineDomNode, isLexicalEditor, isSelectionCapturedInDecoratorInput, isSelectionWithinEditor, makeStepwiseIterator, resetRandomKey, setDOMUnmanaged, setNodeIndentFromDOM };
package/Lexical.mjs CHANGED
@@ -100,6 +100,7 @@ export const CAN_UNDO_COMMAND = mod.CAN_UNDO_COMMAND;
100
100
  export const CLEAR_EDITOR_COMMAND = mod.CLEAR_EDITOR_COMMAND;
101
101
  export const CLEAR_HISTORY_COMMAND = mod.CLEAR_HISTORY_COMMAND;
102
102
  export const CLICK_COMMAND = mod.CLICK_COMMAND;
103
+ export const COLLABORATION_TAG = mod.COLLABORATION_TAG;
103
104
  export const COMMAND_PRIORITY_CRITICAL = mod.COMMAND_PRIORITY_CRITICAL;
104
105
  export const COMMAND_PRIORITY_EDITOR = mod.COMMAND_PRIORITY_EDITOR;
105
106
  export const COMMAND_PRIORITY_HIGH = mod.COMMAND_PRIORITY_HIGH;
@@ -120,6 +121,9 @@ export const ElementNode = mod.ElementNode;
120
121
  export const FOCUS_COMMAND = mod.FOCUS_COMMAND;
121
122
  export const FORMAT_ELEMENT_COMMAND = mod.FORMAT_ELEMENT_COMMAND;
122
123
  export const FORMAT_TEXT_COMMAND = mod.FORMAT_TEXT_COMMAND;
124
+ export const HISTORIC_TAG = mod.HISTORIC_TAG;
125
+ export const HISTORY_MERGE_TAG = mod.HISTORY_MERGE_TAG;
126
+ export const HISTORY_PUSH_TAG = mod.HISTORY_PUSH_TAG;
123
127
  export const INDENT_CONTENT_COMMAND = mod.INDENT_CONTENT_COMMAND;
124
128
  export const INSERT_LINE_BREAK_COMMAND = mod.INSERT_LINE_BREAK_COMMAND;
125
129
  export const INSERT_PARAGRAPH_COMMAND = mod.INSERT_PARAGRAPH_COMMAND;
@@ -152,6 +156,7 @@ export const MOVE_TO_START = mod.MOVE_TO_START;
152
156
  export const NODE_STATE_KEY = mod.NODE_STATE_KEY;
153
157
  export const OUTDENT_CONTENT_COMMAND = mod.OUTDENT_CONTENT_COMMAND;
154
158
  export const PASTE_COMMAND = mod.PASTE_COMMAND;
159
+ export const PASTE_TAG = mod.PASTE_TAG;
155
160
  export const ParagraphNode = mod.ParagraphNode;
156
161
  export const REDO_COMMAND = mod.REDO_COMMAND;
157
162
  export const REMOVE_TEXT_COMMAND = mod.REMOVE_TEXT_COMMAND;
@@ -159,6 +164,9 @@ export const RootNode = mod.RootNode;
159
164
  export const SELECTION_CHANGE_COMMAND = mod.SELECTION_CHANGE_COMMAND;
160
165
  export const SELECTION_INSERT_CLIPBOARD_NODES_COMMAND = mod.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND;
161
166
  export const SELECT_ALL_COMMAND = mod.SELECT_ALL_COMMAND;
167
+ export const SKIP_COLLAB_TAG = mod.SKIP_COLLAB_TAG;
168
+ export const SKIP_DOM_SELECTION_TAG = mod.SKIP_DOM_SELECTION_TAG;
169
+ export const SKIP_SCROLL_INTO_VIEW_TAG = mod.SKIP_SCROLL_INTO_VIEW_TAG;
162
170
  export const TEXT_TYPE_TO_FORMAT = mod.TEXT_TYPE_TO_FORMAT;
163
171
  export const TabNode = mod.TabNode;
164
172
  export const TextNode = mod.TextNode;
package/Lexical.node.mjs CHANGED
@@ -98,6 +98,7 @@ export const CAN_UNDO_COMMAND = mod.CAN_UNDO_COMMAND;
98
98
  export const CLEAR_EDITOR_COMMAND = mod.CLEAR_EDITOR_COMMAND;
99
99
  export const CLEAR_HISTORY_COMMAND = mod.CLEAR_HISTORY_COMMAND;
100
100
  export const CLICK_COMMAND = mod.CLICK_COMMAND;
101
+ export const COLLABORATION_TAG = mod.COLLABORATION_TAG;
101
102
  export const COMMAND_PRIORITY_CRITICAL = mod.COMMAND_PRIORITY_CRITICAL;
102
103
  export const COMMAND_PRIORITY_EDITOR = mod.COMMAND_PRIORITY_EDITOR;
103
104
  export const COMMAND_PRIORITY_HIGH = mod.COMMAND_PRIORITY_HIGH;
@@ -118,6 +119,9 @@ export const ElementNode = mod.ElementNode;
118
119
  export const FOCUS_COMMAND = mod.FOCUS_COMMAND;
119
120
  export const FORMAT_ELEMENT_COMMAND = mod.FORMAT_ELEMENT_COMMAND;
120
121
  export const FORMAT_TEXT_COMMAND = mod.FORMAT_TEXT_COMMAND;
122
+ export const HISTORIC_TAG = mod.HISTORIC_TAG;
123
+ export const HISTORY_MERGE_TAG = mod.HISTORY_MERGE_TAG;
124
+ export const HISTORY_PUSH_TAG = mod.HISTORY_PUSH_TAG;
121
125
  export const INDENT_CONTENT_COMMAND = mod.INDENT_CONTENT_COMMAND;
122
126
  export const INSERT_LINE_BREAK_COMMAND = mod.INSERT_LINE_BREAK_COMMAND;
123
127
  export const INSERT_PARAGRAPH_COMMAND = mod.INSERT_PARAGRAPH_COMMAND;
@@ -150,6 +154,7 @@ export const MOVE_TO_START = mod.MOVE_TO_START;
150
154
  export const NODE_STATE_KEY = mod.NODE_STATE_KEY;
151
155
  export const OUTDENT_CONTENT_COMMAND = mod.OUTDENT_CONTENT_COMMAND;
152
156
  export const PASTE_COMMAND = mod.PASTE_COMMAND;
157
+ export const PASTE_TAG = mod.PASTE_TAG;
153
158
  export const ParagraphNode = mod.ParagraphNode;
154
159
  export const REDO_COMMAND = mod.REDO_COMMAND;
155
160
  export const REMOVE_TEXT_COMMAND = mod.REMOVE_TEXT_COMMAND;
@@ -157,6 +162,9 @@ export const RootNode = mod.RootNode;
157
162
  export const SELECTION_CHANGE_COMMAND = mod.SELECTION_CHANGE_COMMAND;
158
163
  export const SELECTION_INSERT_CLIPBOARD_NODES_COMMAND = mod.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND;
159
164
  export const SELECT_ALL_COMMAND = mod.SELECT_ALL_COMMAND;
165
+ export const SKIP_COLLAB_TAG = mod.SKIP_COLLAB_TAG;
166
+ export const SKIP_DOM_SELECTION_TAG = mod.SKIP_DOM_SELECTION_TAG;
167
+ export const SKIP_SCROLL_INTO_VIEW_TAG = mod.SKIP_SCROLL_INTO_VIEW_TAG;
160
168
  export const TEXT_TYPE_TO_FORMAT = mod.TEXT_TYPE_TO_FORMAT;
161
169
  export const TabNode = mod.TabNode;
162
170
  export const TextNode = mod.TextNode;