lexical 0.36.3-nightly.20251007.0 → 0.36.3-nightly.20251008.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
@@ -3171,6 +3171,25 @@ function $removeNode(nodeToRemove, restoreSelection, preserveEmptyParent) {
3171
3171
  function buildImportMap(importMap) {
3172
3172
  return importMap;
3173
3173
  }
3174
+ const EPHEMERAL = Symbol.for('ephemeral');
3175
+
3176
+ /**
3177
+ * @internal
3178
+ * @param node any LexicalNode
3179
+ * @returns true if the node was created with {@link $cloneWithPropertiesEphemeral}
3180
+ */
3181
+ function $isEphemeral(node) {
3182
+ return node[EPHEMERAL] || false;
3183
+ }
3184
+ /**
3185
+ * @internal
3186
+ * Mark this node as ephemeral, its instance always returns this
3187
+ * for getLatest and getWritable. It must not be added to an EditorState.
3188
+ */
3189
+ function $markEphemeral(node) {
3190
+ node[EPHEMERAL] = true;
3191
+ return node;
3192
+ }
3174
3193
  class LexicalNode {
3175
3194
  /** @internal Allow us to look up the type including static props */
3176
3195
 
@@ -3730,6 +3749,9 @@ class LexicalNode {
3730
3749
  *
3731
3750
  */
3732
3751
  getLatest() {
3752
+ if ($isEphemeral(this)) {
3753
+ return this;
3754
+ }
3733
3755
  const latest = $getNodeByKey(this.__key);
3734
3756
  if (latest === null) {
3735
3757
  {
@@ -3746,6 +3768,9 @@ class LexicalNode {
3746
3768
  *
3747
3769
  */
3748
3770
  getWritable() {
3771
+ if ($isEphemeral(this)) {
3772
+ return this;
3773
+ }
3749
3774
  errorOnReadOnly();
3750
3775
  const editorState = getActiveEditorState();
3751
3776
  const editor = getActiveEditor();
@@ -9295,7 +9320,9 @@ class ElementNode extends LexicalNode {
9295
9320
  return this;
9296
9321
  }
9297
9322
  splice(start, deleteCount, nodesToInsert) {
9298
- const nodesToInsertLength = nodesToInsert.length;
9323
+ if (!!$isEphemeral(this)) {
9324
+ formatDevErrorMessage(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);
9325
+ }
9299
9326
  const oldSize = this.getChildrenSize();
9300
9327
  const writableSelf = this.getWritable();
9301
9328
  if (!(start + deleteCount <= oldSize)) {
@@ -9306,7 +9333,7 @@ class ElementNode extends LexicalNode {
9306
9333
  const nodesToRemoveKeys = [];
9307
9334
  const nodeAfterRange = this.getChildAtIndex(start + deleteCount);
9308
9335
  let nodeBeforeRange = null;
9309
- let newSize = oldSize - deleteCount + nodesToInsertLength;
9336
+ let newSize = oldSize - deleteCount + nodesToInsert.length;
9310
9337
  if (start !== 0) {
9311
9338
  if (start === oldSize) {
9312
9339
  nodeBeforeRange = this.getLastChild();
@@ -9334,8 +9361,7 @@ class ElementNode extends LexicalNode {
9334
9361
  }
9335
9362
  }
9336
9363
  let prevNode = nodeBeforeRange;
9337
- for (let i = 0; i < nodesToInsertLength; i++) {
9338
- const nodeToInsert = nodesToInsert[i];
9364
+ for (const nodeToInsert of nodesToInsert) {
9339
9365
  if (prevNode !== null && nodeToInsert.is(prevNode)) {
9340
9366
  nodeBeforeRange = prevNode = prevNode.getPreviousSibling();
9341
9367
  }
@@ -10802,7 +10828,7 @@ class LexicalEditor {
10802
10828
  };
10803
10829
  }
10804
10830
  }
10805
- LexicalEditor.version = "0.36.3-nightly.20251007.0+dev.cjs";
10831
+ LexicalEditor.version = "0.36.3-nightly.20251008.0+dev.cjs";
10806
10832
 
10807
10833
  let pendingNodeToClone = null;
10808
10834
  function setPendingNodeToClone(pendingNode) {
@@ -11077,6 +11103,9 @@ function removeFromParent(node) {
11077
11103
  // the cloning heuristic. Instead use node.getWritable().
11078
11104
  function internalMarkNodeAsDirty(node) {
11079
11105
  errorOnInfiniteTransforms();
11106
+ if (!!$isEphemeral(node)) {
11107
+ formatDevErrorMessage(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${node.__key} type ${node.__type})`);
11108
+ }
11080
11109
  const latest = node.getLatest();
11081
11110
  const parent = latest.__parent;
11082
11111
  const editorState = getActiveEditorState();
@@ -12208,6 +12237,22 @@ function $cloneWithProperties(latestNode) {
12208
12237
  }
12209
12238
  return mutableNode;
12210
12239
  }
12240
+
12241
+ /**
12242
+ * Returns a clone with {@link $cloneWithProperties} and then "detaches"
12243
+ * it from the state by overriding its getLatest and getWritable to always
12244
+ * return this. This node can not be added to an EditorState or become the
12245
+ * parent, child, or sibling of another node. It is primarily only useful
12246
+ * for making in-place temporary modifications to a TextNode when
12247
+ * serializing a partial slice.
12248
+ *
12249
+ * Does not mutate the EditorState.
12250
+ * @param latestNode - The node to be cloned.
12251
+ * @returns The clone of the node.
12252
+ */
12253
+ function $cloneWithPropertiesEphemeral(latestNode) {
12254
+ return $markEphemeral($cloneWithProperties(latestNode));
12255
+ }
12211
12256
  function setNodeIndentFromDOM(elementDom, elementNode) {
12212
12257
  const indentSize = parseInt(elementDom.style.paddingInlineStart, 10) || 0;
12213
12258
  const indent = Math.round(indentSize / 40);
@@ -13901,6 +13946,7 @@ exports.$applyNodeReplacement = $applyNodeReplacement;
13901
13946
  exports.$caretFromPoint = $caretFromPoint;
13902
13947
  exports.$caretRangeFromSelection = $caretRangeFromSelection;
13903
13948
  exports.$cloneWithProperties = $cloneWithProperties;
13949
+ exports.$cloneWithPropertiesEphemeral = $cloneWithPropertiesEphemeral;
13904
13950
  exports.$comparePointCaretNext = $comparePointCaretNext;
13905
13951
  exports.$copyNode = $copyNode;
13906
13952
  exports.$create = $create;
package/Lexical.dev.mjs CHANGED
@@ -3169,6 +3169,25 @@ function $removeNode(nodeToRemove, restoreSelection, preserveEmptyParent) {
3169
3169
  function buildImportMap(importMap) {
3170
3170
  return importMap;
3171
3171
  }
3172
+ const EPHEMERAL = Symbol.for('ephemeral');
3173
+
3174
+ /**
3175
+ * @internal
3176
+ * @param node any LexicalNode
3177
+ * @returns true if the node was created with {@link $cloneWithPropertiesEphemeral}
3178
+ */
3179
+ function $isEphemeral(node) {
3180
+ return node[EPHEMERAL] || false;
3181
+ }
3182
+ /**
3183
+ * @internal
3184
+ * Mark this node as ephemeral, its instance always returns this
3185
+ * for getLatest and getWritable. It must not be added to an EditorState.
3186
+ */
3187
+ function $markEphemeral(node) {
3188
+ node[EPHEMERAL] = true;
3189
+ return node;
3190
+ }
3172
3191
  class LexicalNode {
3173
3192
  /** @internal Allow us to look up the type including static props */
3174
3193
 
@@ -3728,6 +3747,9 @@ class LexicalNode {
3728
3747
  *
3729
3748
  */
3730
3749
  getLatest() {
3750
+ if ($isEphemeral(this)) {
3751
+ return this;
3752
+ }
3731
3753
  const latest = $getNodeByKey(this.__key);
3732
3754
  if (latest === null) {
3733
3755
  {
@@ -3744,6 +3766,9 @@ class LexicalNode {
3744
3766
  *
3745
3767
  */
3746
3768
  getWritable() {
3769
+ if ($isEphemeral(this)) {
3770
+ return this;
3771
+ }
3747
3772
  errorOnReadOnly();
3748
3773
  const editorState = getActiveEditorState();
3749
3774
  const editor = getActiveEditor();
@@ -9293,7 +9318,9 @@ class ElementNode extends LexicalNode {
9293
9318
  return this;
9294
9319
  }
9295
9320
  splice(start, deleteCount, nodesToInsert) {
9296
- const nodesToInsertLength = nodesToInsert.length;
9321
+ if (!!$isEphemeral(this)) {
9322
+ formatDevErrorMessage(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);
9323
+ }
9297
9324
  const oldSize = this.getChildrenSize();
9298
9325
  const writableSelf = this.getWritable();
9299
9326
  if (!(start + deleteCount <= oldSize)) {
@@ -9304,7 +9331,7 @@ class ElementNode extends LexicalNode {
9304
9331
  const nodesToRemoveKeys = [];
9305
9332
  const nodeAfterRange = this.getChildAtIndex(start + deleteCount);
9306
9333
  let nodeBeforeRange = null;
9307
- let newSize = oldSize - deleteCount + nodesToInsertLength;
9334
+ let newSize = oldSize - deleteCount + nodesToInsert.length;
9308
9335
  if (start !== 0) {
9309
9336
  if (start === oldSize) {
9310
9337
  nodeBeforeRange = this.getLastChild();
@@ -9332,8 +9359,7 @@ class ElementNode extends LexicalNode {
9332
9359
  }
9333
9360
  }
9334
9361
  let prevNode = nodeBeforeRange;
9335
- for (let i = 0; i < nodesToInsertLength; i++) {
9336
- const nodeToInsert = nodesToInsert[i];
9362
+ for (const nodeToInsert of nodesToInsert) {
9337
9363
  if (prevNode !== null && nodeToInsert.is(prevNode)) {
9338
9364
  nodeBeforeRange = prevNode = prevNode.getPreviousSibling();
9339
9365
  }
@@ -10800,7 +10826,7 @@ class LexicalEditor {
10800
10826
  };
10801
10827
  }
10802
10828
  }
10803
- LexicalEditor.version = "0.36.3-nightly.20251007.0+dev.esm";
10829
+ LexicalEditor.version = "0.36.3-nightly.20251008.0+dev.esm";
10804
10830
 
10805
10831
  let pendingNodeToClone = null;
10806
10832
  function setPendingNodeToClone(pendingNode) {
@@ -11075,6 +11101,9 @@ function removeFromParent(node) {
11075
11101
  // the cloning heuristic. Instead use node.getWritable().
11076
11102
  function internalMarkNodeAsDirty(node) {
11077
11103
  errorOnInfiniteTransforms();
11104
+ if (!!$isEphemeral(node)) {
11105
+ formatDevErrorMessage(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${node.__key} type ${node.__type})`);
11106
+ }
11078
11107
  const latest = node.getLatest();
11079
11108
  const parent = latest.__parent;
11080
11109
  const editorState = getActiveEditorState();
@@ -12206,6 +12235,22 @@ function $cloneWithProperties(latestNode) {
12206
12235
  }
12207
12236
  return mutableNode;
12208
12237
  }
12238
+
12239
+ /**
12240
+ * Returns a clone with {@link $cloneWithProperties} and then "detaches"
12241
+ * it from the state by overriding its getLatest and getWritable to always
12242
+ * return this. This node can not be added to an EditorState or become the
12243
+ * parent, child, or sibling of another node. It is primarily only useful
12244
+ * for making in-place temporary modifications to a TextNode when
12245
+ * serializing a partial slice.
12246
+ *
12247
+ * Does not mutate the EditorState.
12248
+ * @param latestNode - The node to be cloned.
12249
+ * @returns The clone of the node.
12250
+ */
12251
+ function $cloneWithPropertiesEphemeral(latestNode) {
12252
+ return $markEphemeral($cloneWithProperties(latestNode));
12253
+ }
12209
12254
  function setNodeIndentFromDOM(elementDom, elementNode) {
12210
12255
  const indentSize = parseInt(elementDom.style.paddingInlineStart, 10) || 0;
12211
12256
  const indent = Math.round(indentSize / 40);
@@ -13894,4 +13939,4 @@ function shallowMergeConfig(config, overrides) {
13894
13939
  return config;
13895
13940
  }
13896
13941
 
13897
- export { $addUpdateTag, $applyNodeReplacement, $caretFromPoint, $caretRangeFromSelection, $cloneWithProperties, $comparePointCaretNext, $copyNode, $create, $createLineBreakNode, $createNodeSelection, $createParagraphNode, $createPoint, $createRangeSelection, $createRangeSelectionFromDom, $createTabNode, $createTextNode, $extendCaretToRange, $findMatchingParent, $getAdjacentChildCaret, $getAdjacentNode, $getAdjacentSiblingOrParentSiblingCaret, $getCaretInDirection, $getCaretRange, $getCaretRangeInDirection, $getCharacterOffsets, $getChildCaret, $getChildCaretAtIndex, $getChildCaretOrSelf, $getCollapsedCaretRange, $getCommonAncestor, $getCommonAncestorResultBranchOrder, $getEditor, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getNodeByKeyOrThrow, $getNodeFromDOMNode, $getPreviousSelection, $getRoot, $getSelection, $getSiblingCaret, $getState, $getStateChange, $getTextContent, $getTextNodeOffset, $getTextPointCaret, $getTextPointCaretSlice, $getWritableNodeState, $hasAncestor, $hasUpdateTag, $insertNodes, $isBlockElementNode, $isChildCaret, $isDecoratorNode, $isEditorState, $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, SKIP_SELECTION_FOCUS_TAG, TEXT_TYPE_TO_FORMAT, TabNode, TextNode, UNDO_COMMAND, buildImportMap, configExtension, createCommand, createEditor, createSharedNodeState, createState, declarePeerDependency, defineExtension, flipDirection, getDOMOwnerDocument, getDOMSelection, getDOMSelectionFromTarget, getDOMTextNode, getEditorPropertyFromDOMNode, getNearestEditorFromDOMNode, getRegisteredNode, getRegisteredNodeOrThrow, getStaticNodeConfig, isBlockDomNode, isCurrentlyReadOnlyMode, isDOMDocumentNode, isDOMNode, isDOMTextNode, isDOMUnmanaged, isDocumentFragment, isExactShortcutMatch, isHTMLAnchorElement, isHTMLElement, isInlineDomNode, isLexicalEditor, isModifierMatch, isSelectionCapturedInDecoratorInput, isSelectionWithinEditor, makeStepwiseIterator, removeFromParent, resetRandomKey, safeCast, setDOMUnmanaged, setNodeIndentFromDOM, shallowMergeConfig };
13942
+ export { $addUpdateTag, $applyNodeReplacement, $caretFromPoint, $caretRangeFromSelection, $cloneWithProperties, $cloneWithPropertiesEphemeral, $comparePointCaretNext, $copyNode, $create, $createLineBreakNode, $createNodeSelection, $createParagraphNode, $createPoint, $createRangeSelection, $createRangeSelectionFromDom, $createTabNode, $createTextNode, $extendCaretToRange, $findMatchingParent, $getAdjacentChildCaret, $getAdjacentNode, $getAdjacentSiblingOrParentSiblingCaret, $getCaretInDirection, $getCaretRange, $getCaretRangeInDirection, $getCharacterOffsets, $getChildCaret, $getChildCaretAtIndex, $getChildCaretOrSelf, $getCollapsedCaretRange, $getCommonAncestor, $getCommonAncestorResultBranchOrder, $getEditor, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getNodeByKeyOrThrow, $getNodeFromDOMNode, $getPreviousSelection, $getRoot, $getSelection, $getSiblingCaret, $getState, $getStateChange, $getTextContent, $getTextNodeOffset, $getTextPointCaret, $getTextPointCaretSlice, $getWritableNodeState, $hasAncestor, $hasUpdateTag, $insertNodes, $isBlockElementNode, $isChildCaret, $isDecoratorNode, $isEditorState, $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, SKIP_SELECTION_FOCUS_TAG, TEXT_TYPE_TO_FORMAT, TabNode, TextNode, UNDO_COMMAND, buildImportMap, configExtension, createCommand, createEditor, createSharedNodeState, createState, declarePeerDependency, defineExtension, flipDirection, getDOMOwnerDocument, getDOMSelection, getDOMSelectionFromTarget, getDOMTextNode, getEditorPropertyFromDOMNode, getNearestEditorFromDOMNode, getRegisteredNode, getRegisteredNodeOrThrow, getStaticNodeConfig, isBlockDomNode, isCurrentlyReadOnlyMode, isDOMDocumentNode, isDOMNode, isDOMTextNode, isDOMUnmanaged, isDocumentFragment, isExactShortcutMatch, isHTMLAnchorElement, isHTMLElement, isInlineDomNode, isLexicalEditor, isModifierMatch, isSelectionCapturedInDecoratorInput, isSelectionWithinEditor, makeStepwiseIterator, removeFromParent, resetRandomKey, safeCast, setDOMUnmanaged, setNodeIndentFromDOM, shallowMergeConfig };
package/Lexical.mjs CHANGED
@@ -14,6 +14,7 @@ export const $applyNodeReplacement = mod.$applyNodeReplacement;
14
14
  export const $caretFromPoint = mod.$caretFromPoint;
15
15
  export const $caretRangeFromSelection = mod.$caretRangeFromSelection;
16
16
  export const $cloneWithProperties = mod.$cloneWithProperties;
17
+ export const $cloneWithPropertiesEphemeral = mod.$cloneWithPropertiesEphemeral;
17
18
  export const $comparePointCaretNext = mod.$comparePointCaretNext;
18
19
  export const $copyNode = mod.$copyNode;
19
20
  export const $create = mod.$create;
package/Lexical.node.mjs CHANGED
@@ -12,6 +12,7 @@ export const $applyNodeReplacement = mod.$applyNodeReplacement;
12
12
  export const $caretFromPoint = mod.$caretFromPoint;
13
13
  export const $caretRangeFromSelection = mod.$caretRangeFromSelection;
14
14
  export const $cloneWithProperties = mod.$cloneWithProperties;
15
+ export const $cloneWithPropertiesEphemeral = mod.$cloneWithPropertiesEphemeral;
15
16
  export const $comparePointCaretNext = mod.$comparePointCaretNext;
16
17
  export const $copyNode = mod.$copyNode;
17
18
  export const $create = mod.$create;