@lexical/headless
Advanced tools
Comparing version 0.2.9 to 0.3.0
@@ -19,3 +19,2 @@ /** | ||
export function createHeadlessEditor(editorConfig?: { | ||
namespace?: string; | ||
editorState?: EditorState; | ||
@@ -22,0 +21,0 @@ theme?: EditorThemeClasses; |
@@ -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. |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5962
65