@lexical/headless 0.2.9 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LexicalHeadless.d.ts +0 -1
- package/LexicalHeadless.prod.js +1 -1
- package/README.md +1 -1
- package/package.json +2 -2
package/LexicalHeadless.d.ts
CHANGED
package/LexicalHeadless.prod.js
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
var c=require("lexical");exports.createHeadlessEditor=function(d){
|
|
7
|
+
'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}
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `@lexical/headless`
|
|
2
2
|
|
|
3
|
-
This package allows
|
|
3
|
+
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
|
|
4
4
|
main features like editor.update(), editor.registerNodeTransform(), editor.registerUpdateListener()
|
|
5
5
|
to create, update or traverse state.
|
|
6
6
|
|
package/package.json
CHANGED