Socket
Socket
Sign inDemoInstall

lexical

Package Overview
Dependencies
Maintainers
5
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lexical - npm Package Compare versions

Comparing version 0.16.2-nightly.20240722.0 to 0.16.2-nightly.20240723.0

2

index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc