@lexical/link
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -262,2 +262,6 @@ /** | ||
if ($isLinkNode(node)) { | ||
if (node.is(linkNode)) { | ||
return; | ||
} | ||
if (linkNode !== null) { | ||
@@ -264,0 +268,0 @@ const children = node.getChildren(); |
@@ -13,2 +13,2 @@ /** | ||
exports.toggleLink=function(a){var b=k.$getSelection();null!==b&&k.$setSelection(b);b=k.$getSelection();if(null!==b)if(b=b.extract(),null===a)b.forEach(g=>{g=g.getParent();if(p(g)){let c=g.getChildren();for(let d=0;d<c.length;d++)g.insertBefore(c[d]);g.remove()}});else{if(1===b.length){var f=b[0];if(p(f)){f.setURL(a);return}f=f.getParent();if(p(f)){f.setURL(a);return}}let g=null,c=null;b.forEach(d=>{var e=d.getParent();if(e!==c&&null!==e&&(!k.$isElementNode(d)||d.isInline()))if(p(e))c=e,e.setURL(a); | ||
else if(e.is(g)||(g=e,c=n(a),p(e)?null===d.getPreviousSibling()?e.insertBefore(c):e.insertAfter(c):d.insertBefore(c)),p(d)){if(null!==c){e=d.getChildren();for(let q=0;q<e.length;q++)c.append(e[q])}d.remove()}else null!==c&&c.append(d)})}} | ||
else if(e.is(g)||(g=e,c=n(a),p(e)?null===d.getPreviousSibling()?e.insertBefore(c):e.insertAfter(c):d.insertBefore(c)),p(d)){if(!d.is(c)){if(null!==c){e=d.getChildren();for(let q=0;q<e.length;q++)c.append(e[q])}d.remove()}}else null!==c&&c.append(d)})}} |
@@ -11,9 +11,9 @@ { | ||
"license": "MIT", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "LexicalLink.js", | ||
"peerDependencies": { | ||
"lexical": "0.3.0" | ||
"lexical": "0.3.1" | ||
}, | ||
"dependencies": { | ||
"@lexical/utils": "0.3.0" | ||
"@lexical/utils": "0.3.1" | ||
}, | ||
@@ -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
14851
318
+ Added@lexical/list@0.3.1(transitive)
+ Added@lexical/table@0.3.1(transitive)
+ Added@lexical/utils@0.3.1(transitive)
+ Addedlexical@0.3.1(transitive)
- Removed@lexical/list@0.3.0(transitive)
- Removed@lexical/table@0.3.0(transitive)
- Removed@lexical/utils@0.3.0(transitive)
- Removedlexical@0.3.0(transitive)
Updated@lexical/utils@0.3.1