@lexical/hashtag
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -64,5 +64,17 @@ /** | ||
} | ||
/** | ||
* Generates a HashtagNode, which is a string following the format of a # followed by some text, eg. #lexical. | ||
* @param text - The text used inside the HashtagNode. | ||
* @returns - The HashtagNode with the embedded text. | ||
*/ | ||
function $createHashtagNode(text = '') { | ||
return lexical.$applyNodeReplacement(new HashtagNode(text)); | ||
} | ||
/** | ||
* Determines if node is a HashtagNode. | ||
* @param node - The node to be checked. | ||
* @returns true if node is a HashtagNode, false otherwise. | ||
*/ | ||
function $isHashtagNode(node) { | ||
@@ -69,0 +81,0 @@ return node instanceof HashtagNode; |
@@ -21,3 +21,13 @@ /** | ||
} | ||
/** | ||
* Generates a HashtagNode, which is a string following the format of a # followed by some text, eg. #lexical. | ||
* @param text - The text used inside the HashtagNode. | ||
* @returns - The HashtagNode with the embedded text. | ||
*/ | ||
export declare function $createHashtagNode(text?: string): HashtagNode; | ||
/** | ||
* Determines if node is a HashtagNode. | ||
* @param node - The node to be checked. | ||
* @returns true if node is a HashtagNode, false otherwise. | ||
*/ | ||
export declare function $isHashtagNode(node: LexicalNode | null | undefined): node is HashtagNode; |
@@ -11,9 +11,9 @@ { | ||
"license": "MIT", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"main": "LexicalHashtag.js", | ||
"peerDependencies": { | ||
"lexical": "0.9.1" | ||
"lexical": "0.9.2" | ||
}, | ||
"dependencies": { | ||
"@lexical/utils": "0.9.1" | ||
"@lexical/utils": "0.9.2" | ||
}, | ||
@@ -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
7607
131
+ Added@lexical/list@0.9.2(transitive)
+ Added@lexical/selection@0.9.2(transitive)
+ Added@lexical/table@0.9.2(transitive)
+ Added@lexical/utils@0.9.2(transitive)
+ Addedlexical@0.9.2(transitive)
- Removed@lexical/list@0.9.1(transitive)
- Removed@lexical/selection@0.9.1(transitive)
- Removed@lexical/table@0.9.1(transitive)
- Removed@lexical/utils@0.9.1(transitive)
- Removedlexical@0.9.1(transitive)
Updated@lexical/utils@0.9.2