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

@lexical/headless

Package Overview
Dependencies
Maintainers
5
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/headless - npm Package Compare versions

Comparing version 0.2.9 to 0.3.0

1

LexicalHeadless.d.ts

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

export function createHeadlessEditor(editorConfig?: {
namespace?: string;
editorState?: EditorState;

@@ -22,0 +21,0 @@ theme?: EditorThemeClasses;

2

LexicalHeadless.prod.js

@@ -7,2 +7,2 @@ /**

*/
var c=require("lexical");exports.createHeadlessEditor=function(d){const a=c.createEditor(d);a._headless=!0;"registerDecoratorListener registerRootListener registerMutationListeners getRootElement setRootElement getElementByKey focus blur".split(" ").forEach(b=>{a[b]=()=>{throw Error(`${b} is not supported in headless mode`);}});return a};
'use strict';var c=require("lexical");exports.createHeadlessEditor=function(d){let a=c.createEditor(d);a._headless=!0;"registerDecoratorListener registerRootListener registerMutationListeners getRootElement setRootElement getElementByKey focus blur".split(" ").forEach(b=>{a[b]=()=>{throw Error(`${b} is not supported in headless mode`);}});return a}

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

"license": "MIT",
"version": "0.2.9",
"version": "0.3.0",
"main": "LexicalHeadless.js",
"peerDependencies": {
"lexical": "0.2.9"
"lexical": "0.3.0"
},

@@ -17,0 +17,0 @@ "repository": {

# `@lexical/headless`
This package allows creating headless lexical editor (that does not rely on DOM, e.g. for Node.js environment), and use its
This package allows you to use interact with Lexical in a headless environment (one that does not rely on DOM, e.g. for Node.js environment), and use its
main features like editor.update(), editor.registerNodeTransform(), editor.registerUpdateListener()

@@ -5,0 +5,0 @@ to create, update or traverse state.

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