@lexical/hashtag 0.3.2 → 0.3.5
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/LexicalHashtag.dev.js +0 -1
- package/LexicalHashtagNode.d.ts +21 -0
- package/index.d.ts +9 -0
- package/package.json +3 -3
- package/LexicalHashtag.d.ts +0 -29
package/LexicalHashtag.dev.js
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { EditorConfig, LexicalNode, NodeKey, SerializedTextNode } from 'lexical';
|
|
9
|
+
import { TextNode } from 'lexical';
|
|
10
|
+
export declare class HashtagNode extends TextNode {
|
|
11
|
+
static getType(): string;
|
|
12
|
+
static clone(node: HashtagNode): HashtagNode;
|
|
13
|
+
constructor(text: string, key?: NodeKey);
|
|
14
|
+
createDOM(config: EditorConfig): HTMLElement;
|
|
15
|
+
static importJSON(serializedNode: SerializedTextNode): HashtagNode;
|
|
16
|
+
exportJSON(): SerializedTextNode;
|
|
17
|
+
canInsertTextBefore(): boolean;
|
|
18
|
+
isTextEntity(): true;
|
|
19
|
+
}
|
|
20
|
+
export declare function $createHashtagNode(text?: string): HashtagNode;
|
|
21
|
+
export declare function $isHashtagNode(node: LexicalNode | null | undefined): node is HashtagNode;
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { $createHashtagNode, $isHashtagNode, HashtagNode } from './LexicalHashtagNode';
|
|
9
|
+
export { $createHashtagNode, $isHashtagNode, HashtagNode };
|
package/package.json
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"hashtag"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.3.
|
|
11
|
+
"version": "0.3.5",
|
|
12
12
|
"main": "LexicalHashtag.js",
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"lexical": "0.3.
|
|
14
|
+
"lexical": "0.3.5"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@lexical/utils": "0.3.
|
|
17
|
+
"@lexical/utils": "0.3.5"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
package/LexicalHashtag.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import type {
|
|
10
|
-
EditorConfig,
|
|
11
|
-
LexicalNode,
|
|
12
|
-
NodeKey,
|
|
13
|
-
SerializedTextNode,
|
|
14
|
-
} from 'lexical';
|
|
15
|
-
import {TextNode} from 'lexical';
|
|
16
|
-
|
|
17
|
-
export declare class HashtagNode extends TextNode {
|
|
18
|
-
static getType(): string;
|
|
19
|
-
static clone(node: HashtagNode): HashtagNode;
|
|
20
|
-
constructor(text: string, key?: NodeKey);
|
|
21
|
-
createDOM(config: EditorConfig): HTMLElement;
|
|
22
|
-
canInsertTextBefore(): boolean;
|
|
23
|
-
isTextEntity(): true;
|
|
24
|
-
static importJSON(serializedNode: SerializedTextNode): HashtagNode;
|
|
25
|
-
}
|
|
26
|
-
export function $createHashtagNode(text?: string): HashtagNode;
|
|
27
|
-
export function $isHashtagNode(
|
|
28
|
-
node: LexicalNode | null | undefined,
|
|
29
|
-
): node is HashtagNode;
|