@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.
Files changed (2) hide show
  1. package/LexicalText.d.ts +2 -1
  2. 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
- ): ?TextNodeWithOffset;
31
+ ): TextNodeWithOffset | null | undefined;
31
32
  export function $isRootTextContentEmpty(
32
33
  isEditorComposing: boolean,
33
34
  trim?: boolean,
package/package.json CHANGED
@@ -9,10 +9,10 @@
9
9
  "text"
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "0.2.7",
12
+ "version": "0.2.8",
13
13
  "main": "LexicalText.js",
14
14
  "peerDependencies": {
15
- "lexical": "0.2.7"
15
+ "lexical": "0.2.8"
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",