@lexical/headless
Advanced tools
Comparing version 0.5.0 to 0.5.1-next.0
@@ -10,11 +10,12 @@ /** @module @lexical/headless */ | ||
import type { EditorState, EditorThemeClasses, Klass, LexicalEditor, LexicalNode } from 'lexical'; | ||
declare type ErrorHandler = (error: Error) => void; | ||
export declare function createHeadlessEditor(editorConfig?: { | ||
disableEvents?: boolean; | ||
editorState?: EditorState; | ||
namespace: string; | ||
namespace?: string; | ||
nodes?: ReadonlyArray<Klass<LexicalNode>>; | ||
onError: (error: Error) => void; | ||
onError?: ErrorHandler; | ||
parentEditor?: LexicalEditor; | ||
readOnly?: boolean; | ||
editable?: boolean; | ||
theme?: EditorThemeClasses; | ||
}): LexicalEditor; | ||
export {}; |
@@ -11,6 +11,6 @@ { | ||
"license": "MIT", | ||
"version": "0.5.0", | ||
"version": "0.5.1-next.0", | ||
"main": "LexicalHeadless.js", | ||
"peerDependencies": { | ||
"lexical": "0.5.0" | ||
"lexical": "0.5.1-next.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "repository": { |
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
57
5898