lexical 0.36.3-nightly.20251006.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 +51 -6
- package/Lexical.dev.mjs +51 -7
- package/Lexical.mjs +1 -0
- package/Lexical.node.mjs +1 -0
- package/Lexical.prod.js +1 -1
- package/Lexical.prod.mjs +1 -1
- package/LexicalNode.d.ts +17 -0
- package/LexicalUtils.d.ts +13 -0
- package/index.d.ts +1 -1
- package/package.json +1 -1
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
|
|
|
@@ -3333,7 +3352,6 @@ class LexicalNode {
|
|
|
3333
3352
|
$setNodeKey(this, key);
|
|
3334
3353
|
{
|
|
3335
3354
|
if (this.__type !== 'root') {
|
|
3336
|
-
errorOnReadOnly();
|
|
3337
3355
|
errorOnTypeKlassMismatch(this.__type, this.constructor);
|
|
3338
3356
|
}
|
|
3339
3357
|
}
|
|
@@ -3731,6 +3749,9 @@ class LexicalNode {
|
|
|
3731
3749
|
*
|
|
3732
3750
|
*/
|
|
3733
3751
|
getLatest() {
|
|
3752
|
+
if ($isEphemeral(this)) {
|
|
3753
|
+
return this;
|
|
3754
|
+
}
|
|
3734
3755
|
const latest = $getNodeByKey(this.__key);
|
|
3735
3756
|
if (latest === null) {
|
|
3736
3757
|
{
|
|
@@ -3747,6 +3768,9 @@ class LexicalNode {
|
|
|
3747
3768
|
*
|
|
3748
3769
|
*/
|
|
3749
3770
|
getWritable() {
|
|
3771
|
+
if ($isEphemeral(this)) {
|
|
3772
|
+
return this;
|
|
3773
|
+
}
|
|
3750
3774
|
errorOnReadOnly();
|
|
3751
3775
|
const editorState = getActiveEditorState();
|
|
3752
3776
|
const editor = getActiveEditor();
|
|
@@ -9296,7 +9320,9 @@ class ElementNode extends LexicalNode {
|
|
|
9296
9320
|
return this;
|
|
9297
9321
|
}
|
|
9298
9322
|
splice(start, deleteCount, nodesToInsert) {
|
|
9299
|
-
|
|
9323
|
+
if (!!$isEphemeral(this)) {
|
|
9324
|
+
formatDevErrorMessage(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);
|
|
9325
|
+
}
|
|
9300
9326
|
const oldSize = this.getChildrenSize();
|
|
9301
9327
|
const writableSelf = this.getWritable();
|
|
9302
9328
|
if (!(start + deleteCount <= oldSize)) {
|
|
@@ -9307,7 +9333,7 @@ class ElementNode extends LexicalNode {
|
|
|
9307
9333
|
const nodesToRemoveKeys = [];
|
|
9308
9334
|
const nodeAfterRange = this.getChildAtIndex(start + deleteCount);
|
|
9309
9335
|
let nodeBeforeRange = null;
|
|
9310
|
-
let newSize = oldSize - deleteCount +
|
|
9336
|
+
let newSize = oldSize - deleteCount + nodesToInsert.length;
|
|
9311
9337
|
if (start !== 0) {
|
|
9312
9338
|
if (start === oldSize) {
|
|
9313
9339
|
nodeBeforeRange = this.getLastChild();
|
|
@@ -9335,8 +9361,7 @@ class ElementNode extends LexicalNode {
|
|
|
9335
9361
|
}
|
|
9336
9362
|
}
|
|
9337
9363
|
let prevNode = nodeBeforeRange;
|
|
9338
|
-
for (
|
|
9339
|
-
const nodeToInsert = nodesToInsert[i];
|
|
9364
|
+
for (const nodeToInsert of nodesToInsert) {
|
|
9340
9365
|
if (prevNode !== null && nodeToInsert.is(prevNode)) {
|
|
9341
9366
|
nodeBeforeRange = prevNode = prevNode.getPreviousSibling();
|
|
9342
9367
|
}
|
|
@@ -10803,7 +10828,7 @@ class LexicalEditor {
|
|
|
10803
10828
|
};
|
|
10804
10829
|
}
|
|
10805
10830
|
}
|
|
10806
|
-
LexicalEditor.version = "0.36.3-nightly.
|
|
10831
|
+
LexicalEditor.version = "0.36.3-nightly.20251008.0+dev.cjs";
|
|
10807
10832
|
|
|
10808
10833
|
let pendingNodeToClone = null;
|
|
10809
10834
|
function setPendingNodeToClone(pendingNode) {
|
|
@@ -11078,6 +11103,9 @@ function removeFromParent(node) {
|
|
|
11078
11103
|
// the cloning heuristic. Instead use node.getWritable().
|
|
11079
11104
|
function internalMarkNodeAsDirty(node) {
|
|
11080
11105
|
errorOnInfiniteTransforms();
|
|
11106
|
+
if (!!$isEphemeral(node)) {
|
|
11107
|
+
formatDevErrorMessage(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${node.__key} type ${node.__type})`);
|
|
11108
|
+
}
|
|
11081
11109
|
const latest = node.getLatest();
|
|
11082
11110
|
const parent = latest.__parent;
|
|
11083
11111
|
const editorState = getActiveEditorState();
|
|
@@ -12209,6 +12237,22 @@ function $cloneWithProperties(latestNode) {
|
|
|
12209
12237
|
}
|
|
12210
12238
|
return mutableNode;
|
|
12211
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
|
+
}
|
|
12212
12256
|
function setNodeIndentFromDOM(elementDom, elementNode) {
|
|
12213
12257
|
const indentSize = parseInt(elementDom.style.paddingInlineStart, 10) || 0;
|
|
12214
12258
|
const indent = Math.round(indentSize / 40);
|
|
@@ -13902,6 +13946,7 @@ exports.$applyNodeReplacement = $applyNodeReplacement;
|
|
|
13902
13946
|
exports.$caretFromPoint = $caretFromPoint;
|
|
13903
13947
|
exports.$caretRangeFromSelection = $caretRangeFromSelection;
|
|
13904
13948
|
exports.$cloneWithProperties = $cloneWithProperties;
|
|
13949
|
+
exports.$cloneWithPropertiesEphemeral = $cloneWithPropertiesEphemeral;
|
|
13905
13950
|
exports.$comparePointCaretNext = $comparePointCaretNext;
|
|
13906
13951
|
exports.$copyNode = $copyNode;
|
|
13907
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
|
|
|
@@ -3331,7 +3350,6 @@ class LexicalNode {
|
|
|
3331
3350
|
$setNodeKey(this, key);
|
|
3332
3351
|
{
|
|
3333
3352
|
if (this.__type !== 'root') {
|
|
3334
|
-
errorOnReadOnly();
|
|
3335
3353
|
errorOnTypeKlassMismatch(this.__type, this.constructor);
|
|
3336
3354
|
}
|
|
3337
3355
|
}
|
|
@@ -3729,6 +3747,9 @@ class LexicalNode {
|
|
|
3729
3747
|
*
|
|
3730
3748
|
*/
|
|
3731
3749
|
getLatest() {
|
|
3750
|
+
if ($isEphemeral(this)) {
|
|
3751
|
+
return this;
|
|
3752
|
+
}
|
|
3732
3753
|
const latest = $getNodeByKey(this.__key);
|
|
3733
3754
|
if (latest === null) {
|
|
3734
3755
|
{
|
|
@@ -3745,6 +3766,9 @@ class LexicalNode {
|
|
|
3745
3766
|
*
|
|
3746
3767
|
*/
|
|
3747
3768
|
getWritable() {
|
|
3769
|
+
if ($isEphemeral(this)) {
|
|
3770
|
+
return this;
|
|
3771
|
+
}
|
|
3748
3772
|
errorOnReadOnly();
|
|
3749
3773
|
const editorState = getActiveEditorState();
|
|
3750
3774
|
const editor = getActiveEditor();
|
|
@@ -9294,7 +9318,9 @@ class ElementNode extends LexicalNode {
|
|
|
9294
9318
|
return this;
|
|
9295
9319
|
}
|
|
9296
9320
|
splice(start, deleteCount, nodesToInsert) {
|
|
9297
|
-
|
|
9321
|
+
if (!!$isEphemeral(this)) {
|
|
9322
|
+
formatDevErrorMessage(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);
|
|
9323
|
+
}
|
|
9298
9324
|
const oldSize = this.getChildrenSize();
|
|
9299
9325
|
const writableSelf = this.getWritable();
|
|
9300
9326
|
if (!(start + deleteCount <= oldSize)) {
|
|
@@ -9305,7 +9331,7 @@ class ElementNode extends LexicalNode {
|
|
|
9305
9331
|
const nodesToRemoveKeys = [];
|
|
9306
9332
|
const nodeAfterRange = this.getChildAtIndex(start + deleteCount);
|
|
9307
9333
|
let nodeBeforeRange = null;
|
|
9308
|
-
let newSize = oldSize - deleteCount +
|
|
9334
|
+
let newSize = oldSize - deleteCount + nodesToInsert.length;
|
|
9309
9335
|
if (start !== 0) {
|
|
9310
9336
|
if (start === oldSize) {
|
|
9311
9337
|
nodeBeforeRange = this.getLastChild();
|
|
@@ -9333,8 +9359,7 @@ class ElementNode extends LexicalNode {
|
|
|
9333
9359
|
}
|
|
9334
9360
|
}
|
|
9335
9361
|
let prevNode = nodeBeforeRange;
|
|
9336
|
-
for (
|
|
9337
|
-
const nodeToInsert = nodesToInsert[i];
|
|
9362
|
+
for (const nodeToInsert of nodesToInsert) {
|
|
9338
9363
|
if (prevNode !== null && nodeToInsert.is(prevNode)) {
|
|
9339
9364
|
nodeBeforeRange = prevNode = prevNode.getPreviousSibling();
|
|
9340
9365
|
}
|
|
@@ -10801,7 +10826,7 @@ class LexicalEditor {
|
|
|
10801
10826
|
};
|
|
10802
10827
|
}
|
|
10803
10828
|
}
|
|
10804
|
-
LexicalEditor.version = "0.36.3-nightly.
|
|
10829
|
+
LexicalEditor.version = "0.36.3-nightly.20251008.0+dev.esm";
|
|
10805
10830
|
|
|
10806
10831
|
let pendingNodeToClone = null;
|
|
10807
10832
|
function setPendingNodeToClone(pendingNode) {
|
|
@@ -11076,6 +11101,9 @@ function removeFromParent(node) {
|
|
|
11076
11101
|
// the cloning heuristic. Instead use node.getWritable().
|
|
11077
11102
|
function internalMarkNodeAsDirty(node) {
|
|
11078
11103
|
errorOnInfiniteTransforms();
|
|
11104
|
+
if (!!$isEphemeral(node)) {
|
|
11105
|
+
formatDevErrorMessage(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${node.__key} type ${node.__type})`);
|
|
11106
|
+
}
|
|
11079
11107
|
const latest = node.getLatest();
|
|
11080
11108
|
const parent = latest.__parent;
|
|
11081
11109
|
const editorState = getActiveEditorState();
|
|
@@ -12207,6 +12235,22 @@ function $cloneWithProperties(latestNode) {
|
|
|
12207
12235
|
}
|
|
12208
12236
|
return mutableNode;
|
|
12209
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
|
+
}
|
|
12210
12254
|
function setNodeIndentFromDOM(elementDom, elementNode) {
|
|
12211
12255
|
const indentSize = parseInt(elementDom.style.paddingInlineStart, 10) || 0;
|
|
12212
12256
|
const indent = Math.round(indentSize / 40);
|
|
@@ -13895,4 +13939,4 @@ function shallowMergeConfig(config, overrides) {
|
|
|
13895
13939
|
return config;
|
|
13896
13940
|
}
|
|
13897
13941
|
|
|
13898
|
-
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;
|