lexical 0.7.7 → 0.7.9
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 +672 -2092
- package/Lexical.prod.js +148 -146
- package/LexicalEditor.d.ts +1 -0
- package/LexicalUtils.d.ts +1 -0
- package/index.d.ts +1 -1
- package/package.json +1 -1
package/LexicalEditor.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare type TextNodeThemeClasses = {
|
|
|
17
17
|
base?: EditorThemeClassName;
|
|
18
18
|
bold?: EditorThemeClassName;
|
|
19
19
|
code?: EditorThemeClassName;
|
|
20
|
+
highlight?: EditorThemeClassName;
|
|
20
21
|
italic?: EditorThemeClassName;
|
|
21
22
|
strikethrough?: EditorThemeClassName;
|
|
22
23
|
subscript?: EditorThemeClassName;
|
package/LexicalUtils.d.ts
CHANGED
|
@@ -109,3 +109,4 @@ export declare function $getNodeByKeyOrThrow<N extends LexicalNode>(key: NodeKey
|
|
|
109
109
|
export declare function removeDOMBlockCursorElement(blockCursorElement: HTMLElement, editor: LexicalEditor, rootElement: HTMLElement): void;
|
|
110
110
|
export declare function updateDOMBlockCursorElement(editor: LexicalEditor, rootElement: HTMLElement, nextSelection: null | RangeSelection | NodeSelection | GridSelection): void;
|
|
111
111
|
export declare function getDOMSelection(targetWindow: null | Window): null | Selection;
|
|
112
|
+
export declare function $splitNode(node: ElementNode, offset: number): [ElementNode | null, ElementNode];
|
package/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type { EventHandler } from './LexicalEvents';
|
|
|
21
21
|
export { $normalizeSelection as $normalizeSelection__EXPERIMENTAL } from './LexicalNormalization';
|
|
22
22
|
export { $createNodeSelection, $createRangeSelection, $getPreviousSelection, $getSelection, $getTextContent, $insertNodes, $isNodeSelection, $isRangeSelection, DEPRECATED_$createGridSelection, DEPRECATED_$isGridSelection, } from './LexicalSelection';
|
|
23
23
|
export { $parseSerializedNode } from './LexicalUpdates';
|
|
24
|
-
export { $addUpdateTag, $applyNodeReplacement, $copyNode, $getAdjacentNode, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getRoot, $hasAncestor, $isInlineElementOrDecoratorNode, $isLeafNode, $isRootOrShadowRoot, $nodesOfType, $setCompositionKey, $setSelection, isSelectionWithinEditor, } from './LexicalUtils';
|
|
24
|
+
export { $addUpdateTag, $applyNodeReplacement, $copyNode, $getAdjacentNode, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getRoot, $hasAncestor, $isInlineElementOrDecoratorNode, $isLeafNode, $isRootOrShadowRoot, $nodesOfType, $setCompositionKey, $setSelection, $splitNode, isSelectionWithinEditor, } from './LexicalUtils';
|
|
25
25
|
export { $isDecoratorNode, DecoratorNode } from './nodes/LexicalDecoratorNode';
|
|
26
26
|
export { $isElementNode, ElementNode } from './nodes/LexicalElementNode';
|
|
27
27
|
export { DEPRECATED_$isGridCellNode, DEPRECATED_GridCellNode, } from './nodes/LexicalGridCellNode';
|