Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lexical/overflow

Package Overview
Dependencies
Maintainers
6
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/overflow - npm Package Compare versions

Comparing version 0.6.5 to 0.7.0

2

index.d.ts

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc