@lexical/hashtag
Advanced tools
Comparing version 0.7.8 to 0.7.9
@@ -19,4 +19,4 @@ /** | ||
*/ | ||
/** @noInheritDoc */ | ||
class HashtagNode extends lexical.TextNode { | ||
@@ -26,11 +26,8 @@ static getType() { | ||
} | ||
static clone(node) { | ||
return new HashtagNode(node.__text, node.__key); | ||
} | ||
constructor(text, key) { | ||
super(text, key); | ||
} | ||
createDOM(config) { | ||
@@ -41,3 +38,2 @@ const element = super.createDOM(config); | ||
} | ||
static importJSON(serializedNode) { | ||
@@ -51,17 +47,14 @@ const node = $createHashtagNode(serializedNode.text); | ||
} | ||
exportJSON() { | ||
return { ...super.exportJSON(), | ||
return { | ||
...super.exportJSON(), | ||
type: 'hashtag' | ||
}; | ||
} | ||
canInsertTextBefore() { | ||
return false; | ||
} | ||
isTextEntity() { | ||
return true; | ||
} | ||
} | ||
@@ -68,0 +61,0 @@ function $createHashtagNode(text = '') { |
@@ -11,9 +11,9 @@ { | ||
"license": "MIT", | ||
"version": "0.7.8", | ||
"version": "0.7.9", | ||
"main": "LexicalHashtag.js", | ||
"peerDependencies": { | ||
"lexical": "0.7.8" | ||
"lexical": "0.7.9" | ||
}, | ||
"dependencies": { | ||
"@lexical/utils": "0.7.8" | ||
"@lexical/utils": "0.7.9" | ||
}, | ||
@@ -20,0 +20,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112
6849
+ Added@lexical/list@0.7.9(transitive)
+ Added@lexical/selection@0.7.9(transitive)
+ Added@lexical/table@0.7.9(transitive)
+ Added@lexical/utils@0.7.9(transitive)
+ Addedlexical@0.7.9(transitive)
- Removed@lexical/list@0.7.8(transitive)
- Removed@lexical/table@0.7.8(transitive)
- Removed@lexical/utils@0.7.8(transitive)
- Removedlexical@0.7.8(transitive)
Updated@lexical/utils@0.7.9