@ekz/lexical-extension 0.40.0
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/AutoFocusExtension.d.ts +24 -0
- package/ClearEditorExtension.d.ts +16 -0
- package/EditorStateExtension.d.ts +4 -0
- package/EkzLexicalExtension.dev.js +1447 -0
- package/EkzLexicalExtension.dev.mjs +1416 -0
- package/EkzLexicalExtension.js +11 -0
- package/EkzLexicalExtension.mjs +42 -0
- package/EkzLexicalExtension.node.mjs +40 -0
- package/EkzLexicalExtension.prod.js +9 -0
- package/EkzLexicalExtension.prod.mjs +9 -0
- package/ExtensionRep.d.ts +91 -0
- package/HorizontalRuleExtension.d.ts +29 -0
- package/InitialStateExtension.d.ts +25 -0
- package/LICENSE +21 -0
- package/LexicalBuilder.d.ts +77 -0
- package/LexicalExtension.js.flow +202 -0
- package/NodeSelectionExtension.d.ts +20 -0
- package/README.md +5 -0
- package/TabIndentationExtension.d.ts +20 -0
- package/config.d.ts +26 -0
- package/deepThemeMergeInPlace.d.ts +24 -0
- package/getExtensionDependencyFromEditor.d.ts +23 -0
- package/getPeerDependencyFromEditor.d.ts +71 -0
- package/index.d.ts +22 -0
- package/namedSignals.d.ts +28 -0
- package/package.json +47 -0
- package/signals.d.ts +8 -0
- package/watchedSignal.d.ts +18 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export type DefaultSelection = 'rootStart' | 'rootEnd';
|
|
9
|
+
export interface AutoFocusConfig {
|
|
10
|
+
/**
|
|
11
|
+
* Where to move the selection when the editor is focused and there is no
|
|
12
|
+
* existing selection. Can be "rootStart" or "rootEnd" (the default).
|
|
13
|
+
*/
|
|
14
|
+
defaultSelection: DefaultSelection;
|
|
15
|
+
/**
|
|
16
|
+
* The initial state of disabled
|
|
17
|
+
*/
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* An Extension to focus the LexicalEditor when the root element is set
|
|
22
|
+
* (typically only when the editor is first created).
|
|
23
|
+
*/
|
|
24
|
+
export declare const AutoFocusExtension: import("@ekz/lexical").LexicalExtension<AutoFocusConfig, "@ekz/lexical-extension/AutoFocus", import("./namedSignals").NamedSignalsOutput<AutoFocusConfig>, unknown>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { LexicalEditor } from '@ekz/lexical';
|
|
9
|
+
export interface ClearEditorConfig {
|
|
10
|
+
$onClear: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function registerClearEditor(editor: LexicalEditor, $onClear?: () => void): () => void;
|
|
13
|
+
/**
|
|
14
|
+
* An extension to provide an implementation of {@link CLEAR_EDITOR_COMMAND}
|
|
15
|
+
*/
|
|
16
|
+
export declare const ClearEditorExtension: import("@ekz/lexical").LexicalExtension<ClearEditorConfig, "@ekz/lexical-extension/ClearEditor", import("./namedSignals").NamedSignalsOutput<ClearEditorConfig>, unknown>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An extension to provide the current EditorState as a signal
|
|
3
|
+
*/
|
|
4
|
+
export declare const EditorStateExtension: import("@ekz/lexical").LexicalExtension<import("@ekz/lexical").ExtensionConfigBase, "@ekz/lexical-extension/EditorState", import("@preact/signals-core").Signal<import("@ekz/lexical").EditorState>, unknown>;
|