@lexical/link 0.3.9 → 0.4.0
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.dev.js +8 -7
- package/index.d.ts +5 -0
- package/package.json +3 -3
package/LexicalLink.dev.js
CHANGED
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
var utils = require('@lexical/utils');
|
|
10
10
|
var lexical = require('lexical');
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
12
|
+
/** @module @lexical/link */
|
|
13
|
+
|
|
14
|
+
/** @noInheritDoc */
|
|
19
15
|
class LinkNode extends lexical.ElementNode {
|
|
16
|
+
/** @internal */
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
20
21
|
static getType() {
|
|
21
22
|
return 'link';
|
|
22
23
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** @module @lexical/link */
|
|
1
2
|
/**
|
|
2
3
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
4
|
*
|
|
@@ -14,9 +15,13 @@ export declare type SerializedLinkNode = Spread<{
|
|
|
14
15
|
rel?: null | string;
|
|
15
16
|
version: 1;
|
|
16
17
|
}, SerializedElementNode>;
|
|
18
|
+
/** @noInheritDoc */
|
|
17
19
|
export declare class LinkNode extends ElementNode {
|
|
20
|
+
/** @internal */
|
|
18
21
|
__url: string;
|
|
22
|
+
/** @internal */
|
|
19
23
|
__target: null | string;
|
|
24
|
+
/** @internal */
|
|
20
25
|
__rel: null | string;
|
|
21
26
|
static getType(): string;
|
|
22
27
|
static clone(node: LinkNode): LinkNode;
|
package/package.json
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"link"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.
|
|
11
|
+
"version": "0.4.0",
|
|
12
12
|
"main": "LexicalLink.js",
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"lexical": "0.
|
|
14
|
+
"lexical": "0.4.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@lexical/utils": "0.
|
|
17
|
+
"@lexical/utils": "0.4.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|