Socket
Socket
Sign inDemoInstall

@lexical/overflow

Package Overview
Dependencies
Maintainers
7
Versions
165
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.8.1 to 0.9.0

16

LexicalOverflow.dev.js

@@ -12,2 +12,3 @@ /**

/** @module @lexical/overflow */
/** @noInheritDoc */

@@ -18,11 +19,15 @@ class OverflowNode extends lexical.ElementNode {

}
static clone(node) {
return new OverflowNode(node.__key);
}
static importJSON(serializedNode) {
return $createOverflowNode();
}
static importDOM() {
return null;
}
constructor(key) {

@@ -32,19 +37,24 @@ super(key);

}
exportJSON() {
return {
...super.exportJSON(),
return { ...super.exportJSON(),
type: 'overflow'
};
}
createDOM(config) {
const div = document.createElement('span');
const className = config.theme.characterLimit;
if (typeof className === 'string') {
div.className = className;
}
return div;
}
updateDOM(prevNode, dom) {
return false;
}
insertNewAfter(selection, restoreSelection = true) {

@@ -54,5 +64,7 @@ const parent = this.getParentOrThrow();

}
excludeFromCopy() {
return true;
}
}

@@ -59,0 +71,0 @@ function $createOverflowNode() {

4

package.json

@@ -11,6 +11,6 @@ {

"license": "MIT",
"version": "0.8.1",
"version": "0.9.0",
"main": "LexicalOverflow.js",
"peerDependencies": {
"lexical": "0.8.1"
"lexical": "0.9.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