@lexical/link 0.2.5 → 0.2.8
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/LexicalLink.d.ts +6 -2
- package/LexicalLink.js.flow +1 -1
- package/package.json +3 -3
package/LexicalLink.d.ts
CHANGED
|
@@ -39,13 +39,17 @@ export declare class LinkNode extends ElementNode {
|
|
|
39
39
|
}
|
|
40
40
|
export function convertAnchorElement(domNode: Node): DOMConversionOutput;
|
|
41
41
|
export function $createLinkNode(url: string): LinkNode;
|
|
42
|
-
export function $isLinkNode(
|
|
42
|
+
export function $isLinkNode(
|
|
43
|
+
node: LinkNode | LexicalNode | null | undefined,
|
|
44
|
+
): node is LinkNode;
|
|
43
45
|
export declare class AutoLinkNode extends LinkNode {
|
|
44
46
|
static getType(): string;
|
|
45
47
|
static clone(node: AutoLinkNode): AutoLinkNode;
|
|
46
48
|
insertNewAfter(selection: RangeSelection): null | ElementNode;
|
|
47
49
|
}
|
|
48
50
|
export function $createAutoLinkNode(url: string): AutoLinkNode;
|
|
49
|
-
export function $isAutoLinkNode(
|
|
51
|
+
export function $isAutoLinkNode(
|
|
52
|
+
node: LinkNode | LexicalNode | null | undefined,
|
|
53
|
+
): node is AutoLinkNode;
|
|
50
54
|
|
|
51
55
|
export var TOGGLE_LINK_COMMAND: LexicalCommand<string | null>;
|
package/LexicalLink.js.flow
CHANGED
|
@@ -32,7 +32,7 @@ declare export class LinkNode extends ElementNode {
|
|
|
32
32
|
setURL(url: string): void;
|
|
33
33
|
insertNewAfter(selection: RangeSelection): null | ElementNode;
|
|
34
34
|
canInsertTextBefore(): false;
|
|
35
|
-
canInsertTextAfter():
|
|
35
|
+
canInsertTextAfter(): false;
|
|
36
36
|
canBeEmpty(): false;
|
|
37
37
|
isInline(): true;
|
|
38
38
|
}
|
package/package.json
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"link"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.2.
|
|
11
|
+
"version": "0.2.8",
|
|
12
12
|
"main": "LexicalLink.js",
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"lexical": "0.2.
|
|
14
|
+
"lexical": "0.2.8"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@lexical/utils": "0.2.
|
|
17
|
+
"@lexical/utils": "0.2.8"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|