Comparing version 0.16.2-nightly.20240722.0 to 0.16.2-nightly.20240723.0
@@ -23,3 +23,3 @@ /** | ||
export { $parseSerializedNode, isCurrentlyReadOnlyMode } from './LexicalUpdates'; | ||
export { $addUpdateTag, $applyNodeReplacement, $copyNode, $getAdjacentNode, $getEditor, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getNodeByKeyOrThrow, $getRoot, $hasAncestor, $hasUpdateTag, $isInlineElementOrDecoratorNode, $isLeafNode, $isRootOrShadowRoot, $nodesOfType, $selectAll, $setCompositionKey, $setSelection, $splitNode, getNearestEditorFromDOMNode, isBlockDomNode, isHTMLAnchorElement, isHTMLElement, isInlineDomNode, isSelectionCapturedInDecoratorInput, isSelectionWithinEditor, resetRandomKey, } from './LexicalUtils'; | ||
export { $addUpdateTag, $applyNodeReplacement, $cloneWithProperties, $copyNode, $getAdjacentNode, $getEditor, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getNodeByKeyOrThrow, $getRoot, $hasAncestor, $hasUpdateTag, $isInlineElementOrDecoratorNode, $isLeafNode, $isRootOrShadowRoot, $isTokenOrSegmented, $nodesOfType, $selectAll, $setCompositionKey, $setSelection, $splitNode, getNearestEditorFromDOMNode, isBlockDomNode, isHTMLAnchorElement, isHTMLElement, isInlineDomNode, isSelectionCapturedInDecoratorInput, isSelectionWithinEditor, resetRandomKey, } from './LexicalUtils'; | ||
export { ArtificialNode__DO_NOT_USE } from './nodes/ArtificialNode'; | ||
@@ -26,0 +26,0 @@ export { $isDecoratorNode, DecoratorNode } from './nodes/LexicalDecoratorNode'; |
@@ -112,2 +112,8 @@ /** | ||
export declare function $isRootOrShadowRoot(node: null | LexicalNode): node is RootNode | ShadowRootNode; | ||
/** | ||
* Returns a shallow clone of node with a new key | ||
* | ||
* @param node - The node to be copied. | ||
* @returns The copy of the node. | ||
*/ | ||
export declare function $copyNode<T extends LexicalNode>(node: T): T; | ||
@@ -158,2 +164,11 @@ export declare function $applyNodeReplacement<N extends LexicalNode>(node: LexicalNode): N; | ||
export declare function getCachedTypeToNodeMap(editorState: EditorState): TypeToNodeMap; | ||
/** | ||
* Returns a clone of a node with the same key and parent/next/prev pointers and other | ||
* properties that are not set by the KlassConstructor.clone (format, style, etc.). | ||
* | ||
* Does not mutate the EditorState. | ||
* @param node - The node to be cloned. | ||
* @returns The clone of the node. | ||
*/ | ||
export declare function $cloneWithProperties<T extends LexicalNode>(latestNode: T): T; | ||
export {}; |
@@ -12,3 +12,3 @@ { | ||
"license": "MIT", | ||
"version": "0.16.2-nightly.20240722.0", | ||
"version": "0.16.2-nightly.20240723.0", | ||
"main": "Lexical.js", | ||
@@ -15,0 +15,0 @@ "types": "index.d.ts", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1058421
22594