@lexical/overflow
Advanced tools
Comparing version 0.6.5 to 0.7.0
@@ -25,3 +25,3 @@ /** @module @lexical/overflow */ | ||
updateDOM(prevNode: OverflowNode, dom: HTMLElement): boolean; | ||
insertNewAfter(selection: RangeSelection): null | LexicalNode; | ||
insertNewAfter(selection: RangeSelection, restoreSelection?: boolean): null | LexicalNode; | ||
excludeFromCopy(): boolean; | ||
@@ -28,0 +28,0 @@ } |
@@ -57,5 +57,5 @@ /** | ||
insertNewAfter(selection) { | ||
insertNewAfter(selection, restoreSelection = true) { | ||
const parent = this.getParentOrThrow(); | ||
return parent.insertNewAfter(selection); | ||
return parent.insertNewAfter(selection, restoreSelection); | ||
} | ||
@@ -62,0 +62,0 @@ |
@@ -8,3 +8,3 @@ /** | ||
'use strict';var b=require("lexical"); | ||
class c extends b.ElementNode{static getType(){return"overflow"}static clone(a){return new c(a.__key)}static importJSON(){return e()}static importDOM(){return null}constructor(a){super(a);this.__type="overflow"}exportJSON(){return{...super.exportJSON(),type:"overflow"}}createDOM(a){let d=document.createElement("span");a=a.theme.characterLimit;"string"===typeof a&&(d.className=a);return d}updateDOM(){return!1}insertNewAfter(a){return this.getParentOrThrow().insertNewAfter(a)}excludeFromCopy(){return!0}} | ||
function e(){return new c}exports.$createOverflowNode=e;exports.$isOverflowNode=function(a){return a instanceof c};exports.OverflowNode=c | ||
class d extends b.ElementNode{static getType(){return"overflow"}static clone(a){return new d(a.__key)}static importJSON(){return e()}static importDOM(){return null}constructor(a){super(a);this.__type="overflow"}exportJSON(){return{...super.exportJSON(),type:"overflow"}}createDOM(a){let c=document.createElement("span");a=a.theme.characterLimit;"string"===typeof a&&(c.className=a);return c}updateDOM(){return!1}insertNewAfter(a,c=!0){return this.getParentOrThrow().insertNewAfter(a,c)}excludeFromCopy(){return!0}} | ||
function e(){return new d}exports.$createOverflowNode=e;exports.$isOverflowNode=function(a){return a instanceof d};exports.OverflowNode=d |
@@ -11,6 +11,6 @@ { | ||
"license": "MIT", | ||
"version": "0.6.5", | ||
"version": "0.7.0", | ||
"main": "LexicalOverflow.js", | ||
"peerDependencies": { | ||
"lexical": "0.6.5" | ||
"lexical": "0.7.0" | ||
}, | ||
@@ -17,0 +17,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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
6766
3