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

@lexical/overflow

Package Overview
Dependencies
Maintainers
0
Versions
234
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.22.1-nightly.20250101.0 to 0.22.1-nightly.20250102.0

3

index.d.ts

@@ -8,3 +8,3 @@ /**

*/
import type { EditorConfig, LexicalNode, NodeKey, RangeSelection, SerializedElementNode } from 'lexical';
import type { EditorConfig, LexicalNode, RangeSelection, SerializedElementNode } from 'lexical';
import { ElementNode } from 'lexical';

@@ -18,3 +18,2 @@ export type SerializedOverflowNode = SerializedElementNode;

static importDOM(): null;
constructor(key?: NodeKey);
createDOM(config: EditorConfig): HTMLElement;

@@ -21,0 +20,0 @@ updateDOM(prevNode: this, dom: HTMLElement): boolean;

@@ -30,3 +30,3 @@ /**

static importJSON(serializedNode) {
return $createOverflowNode();
return $createOverflowNode().updateFromJSON(serializedNode);
}

@@ -36,6 +36,2 @@ static importDOM() {

}
constructor(key) {
super(key);
this.__type = 'overflow';
}
createDOM(config) {

@@ -42,0 +38,0 @@ const div = document.createElement('span');

@@ -10,3 +10,3 @@ /**

'use strict';var c=require("lexical"),d;function f(a){let b=new URLSearchParams;b.append("code",a);for(let e=1;e<arguments.length;e++)b.append("v",arguments[e]);throw Error(`Minified Lexical error #${a}; visit https://lexical.dev/docs/error?${b} for the full message or `+"use the non-minified dev environment for full errors and additional helpful warnings.");}d=f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f["default"]:f;
class g extends c.ElementNode{static getType(){return"overflow"}static clone(a){return new g(a.__key)}static importJSON(){return h()}static importDOM(){return null}constructor(a){super(a);this.__type="overflow"}createDOM(a){let b=document.createElement("span");a=a.theme.characterLimit;"string"===typeof a&&(b.className=a);return b}updateDOM(){return!1}insertNewAfter(a,b=!0){return this.getParentOrThrow().insertNewAfter(a,b)}excludeFromCopy(){return!0}static transform(){return a=>{k(a)||d(204);a.isEmpty()&&
a.remove()}}}function h(){return c.$applyNodeReplacement(new g)}function k(a){return a instanceof g}exports.$createOverflowNode=h;exports.$isOverflowNode=k;exports.OverflowNode=g
class g extends c.ElementNode{static getType(){return"overflow"}static clone(a){return new g(a.__key)}static importJSON(a){return h().updateFromJSON(a)}static importDOM(){return null}createDOM(a){let b=document.createElement("span");a=a.theme.characterLimit;"string"===typeof a&&(b.className=a);return b}updateDOM(){return!1}insertNewAfter(a,b=!0){return this.getParentOrThrow().insertNewAfter(a,b)}excludeFromCopy(){return!0}static transform(){return a=>{k(a)||d(204);a.isEmpty()&&a.remove()}}}
function h(){return c.$applyNodeReplacement(new g)}function k(a){return a instanceof g}exports.$createOverflowNode=h;exports.$isOverflowNode=k;exports.OverflowNode=g

@@ -11,3 +11,3 @@ {

"license": "MIT",
"version": "0.22.1-nightly.20250101.0",
"version": "0.22.1-nightly.20250102.0",
"main": "LexicalOverflow.js",

@@ -40,4 +40,4 @@ "types": "index.d.ts",

"dependencies": {
"lexical": "0.22.1-nightly.20250101.0"
"lexical": "0.22.1-nightly.20250102.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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