@lexical/headless
Advanced tools
Comparing version 0.14.5 to 0.15.0
@@ -6,3 +6,5 @@ /** | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -20,2 +22,3 @@ | ||
/** | ||
@@ -22,0 +25,0 @@ * Generates a headless editor that allows lexical to be used without the need for a DOM, eg in Node.js. |
@@ -6,5 +6,7 @@ /** | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
*/ | ||
'use strict' | ||
const LexicalHeadless = process.env.NODE_ENV === 'development' ? require('./LexicalHeadless.dev.js') : require('./LexicalHeadless.prod.js'); | ||
module.exports = LexicalHeadless; |
@@ -6,3 +6,5 @@ /** | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
*/ | ||
'use strict';var c=require("lexical");exports.createHeadlessEditor=function(d){let a=c.createEditor(d);a._headless=!0;"registerDecoratorListener registerRootListener registerMutationListener getRootElement setRootElement getElementByKey focus blur".split(" ").forEach(b=>{a[b]=()=>{throw Error(`${b} is not supported in headless mode`);}});return a} |
@@ -11,3 +11,3 @@ { | ||
"license": "MIT", | ||
"version": "0.14.5", | ||
"version": "0.15.0", | ||
"main": "LexicalHeadless.js", | ||
@@ -40,4 +40,4 @@ "types": "index.d.ts", | ||
"dependencies": { | ||
"lexical": "0.14.5" | ||
"lexical": "0.15.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
9664
127
+ Addedlexical@0.15.0(transitive)
- Removedlexical@0.14.5(transitive)
Updatedlexical@0.15.0