Comparing version 0.6.1-next.0 to 0.6.2
@@ -24,3 +24,3 @@ /** @module lexical */ | ||
export { $parseSerializedNode } from './LexicalUpdates'; | ||
export { $addUpdateTag, $getDecoratorNode, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getRoot, $hasAncestor, $isInlineElementOrDecoratorNode, $isLeafNode, $isRootOrShadowRoot, $nodesOfType, $setCompositionKey, $setSelection, } from './LexicalUtils'; | ||
export { $addUpdateTag, $applyNodeReplacement, $copyNode, $getDecoratorNode, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getRoot, $hasAncestor, $isInlineElementOrDecoratorNode, $isLeafNode, $isRootOrShadowRoot, $nodesOfType, $setCompositionKey, $setSelection, } from './LexicalUtils'; | ||
export { VERSION } from './LexicalVersion'; | ||
@@ -27,0 +27,0 @@ export { $isDecoratorNode, DecoratorNode } from './nodes/LexicalDecoratorNode'; |
@@ -9,3 +9,4 @@ /** | ||
import type { EditorState, SerializedEditorState } from './LexicalEditorState'; | ||
import type { DOMConversion, LexicalNode, NodeKey } from './LexicalNode'; | ||
import type { DOMConversion, NodeKey } from './LexicalNode'; | ||
import { LexicalNode } from './LexicalNode'; | ||
export declare type Spread<T1, T2> = Omit<T2, keyof T1> & T1; | ||
@@ -105,2 +106,3 @@ export declare type Klass<T extends LexicalNode> = { | ||
transforms: Set<Transform<LexicalNode>>; | ||
replace: null | ((node: LexicalNode) => LexicalNode); | ||
}; | ||
@@ -181,3 +183,8 @@ export declare type Transform<T extends LexicalNode> = (node: T) => void; | ||
namespace?: string; | ||
nodes?: ReadonlyArray<Klass<LexicalNode>>; | ||
nodes?: ReadonlyArray<Klass<LexicalNode> | { | ||
replace: Klass<LexicalNode>; | ||
with: <T extends { | ||
new (...args: any): any; | ||
}>(node: InstanceType<T>) => LexicalNode; | ||
}>; | ||
onError?: ErrorHandler; | ||
@@ -184,0 +191,0 @@ parentEditor?: LexicalEditor; |
@@ -93,3 +93,3 @@ /** | ||
export declare function getElementByKeyOrThrow(editor: LexicalEditor, key: NodeKey): HTMLElement; | ||
export declare function scrollIntoViewIfNeeded(editor: LexicalEditor, anchor: PointType, rootElement: HTMLElement, tags: Set<string>): void; | ||
export declare function scrollIntoViewIfNeeded(editor: LexicalEditor, selectionRect: DOMRect, rootElement: HTMLElement, tags: Set<string>): void; | ||
export declare function $hasUpdateTag(tag: string): boolean; | ||
@@ -104,1 +104,3 @@ export declare function $addUpdateTag(tag: string): void; | ||
export declare function $isRootOrShadowRoot(node: null | LexicalNode): boolean; | ||
export declare function $copyNode<T extends LexicalNode>(node: T): T; | ||
export declare function $applyNodeReplacement<N extends LexicalNode>(node: LexicalNode): N; |
@@ -8,2 +8,2 @@ /** | ||
*/ | ||
export declare const VERSION = "0.4.1"; | ||
export declare const VERSION = "0.6.2"; |
@@ -12,3 +12,3 @@ { | ||
"license": "MIT", | ||
"version": "0.6.1-next.0", | ||
"version": "0.6.2", | ||
"main": "Lexical.js", | ||
@@ -15,0 +15,0 @@ "repository": { |
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 too big to display
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
460502
9242