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.
@@ -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';
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "rich-text"
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "0.7.7",
12
+ "version": "0.7.9",
13
13
  "main": "Lexical.js",
14
14
  "repository": {
15
15
  "type": "git",