@lexical/text 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- package/LexicalText.d.ts +2 -1
- package/package.json +2 -2
package/LexicalText.d.ts
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
*
|
7
7
|
*/
|
8
8
|
import type {ElementNode, LexicalEditor, RootNode, TextNode} from 'lexical';
|
9
|
+
import {Class} from 'utility-types';
|
9
10
|
export type TextNodeWithOffset = {
|
10
11
|
node: TextNode;
|
11
12
|
offset: number;
|
@@ -27,7 +28,7 @@ export function $findNodeWithOffsetFromJoinedText(
|
|
27
28
|
joinedTextLength: number,
|
28
29
|
separatorLength: number,
|
29
30
|
elementNode: ElementNode,
|
30
|
-
):
|
31
|
+
): TextNodeWithOffset | null | undefined;
|
31
32
|
export function $isRootTextContentEmpty(
|
32
33
|
isEditorComposing: boolean,
|
33
34
|
trim?: boolean,
|
package/package.json
CHANGED