@lexical/hashtag 0.6.1-next.0 → 0.6.2
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 +1 -1
- package/LexicalHashtag.prod.js +1 -1
- package/package.json +3 -3
package/LexicalHashtag.dev.js
CHANGED
|
@@ -62,7 +62,7 @@ class HashtagNode extends lexical.TextNode {
|
|
|
62
62
|
|
|
63
63
|
}
|
|
64
64
|
function $createHashtagNode(text = '') {
|
|
65
|
-
return new HashtagNode(text);
|
|
65
|
+
return lexical.$applyNodeReplacement(new HashtagNode(text));
|
|
66
66
|
}
|
|
67
67
|
function $isHashtagNode(node) {
|
|
68
68
|
return node instanceof HashtagNode;
|
package/LexicalHashtag.prod.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*/
|
|
7
7
|
'use strict';var c=require("@lexical/utils"),d=require("lexical");
|
|
8
8
|
class e extends d.TextNode{static getType(){return"hashtag"}static clone(a){return new e(a.__text,a.__key)}constructor(a,b){super(a,b)}createDOM(a){let b=super.createDOM(a);c.addClassNamesToElement(b,a.theme.hashtag);return b}static importJSON(a){let b=f(a.text);b.setFormat(a.format);b.setDetail(a.detail);b.setMode(a.mode);b.setStyle(a.style);return b}exportJSON(){return{...super.exportJSON(),type:"hashtag"}}canInsertTextBefore(){return!1}isTextEntity(){return!0}}
|
|
9
|
-
function f(a=""){return new e(a)}exports.$createHashtagNode=f;exports.$isHashtagNode=function(a){return a instanceof e};exports.HashtagNode=e
|
|
9
|
+
function f(a=""){return d.$applyNodeReplacement(new e(a))}exports.$createHashtagNode=f;exports.$isHashtagNode=function(a){return a instanceof e};exports.HashtagNode=e
|
package/package.json
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"hashtag"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.6.
|
|
11
|
+
"version": "0.6.2",
|
|
12
12
|
"main": "LexicalHashtag.js",
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"lexical": "0.6.
|
|
14
|
+
"lexical": "0.6.2"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@lexical/utils": "0.6.
|
|
17
|
+
"@lexical/utils": "0.6.2"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|