@use-kona/editor 0.1.19 → 0.1.20
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/dist/core/createEditable.js +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/core/createEditable.tsx +1 -1
- package/src/types.ts +1 -0
package/dist/types.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface IPlugin<TEditor extends Editor = Editor, TBlock extends CustomE
|
|
|
11
11
|
renderLeaf?: (props: RenderLeafProps) => ReactElement | null;
|
|
12
12
|
handlers?: {
|
|
13
13
|
onDrop?: (event: DragEvent, editor: Editor) => void;
|
|
14
|
+
onDragOver?: (event: DragEvent, editor: Editor) => void;
|
|
14
15
|
onKeyDown?: (event: KeyboardEvent, editor: Editor) => void;
|
|
15
16
|
onPaste?: (event: ClipboardEvent, editor: Editor) => void;
|
|
16
17
|
};
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ import type { IPlugin } from '../types';
|
|
|
26
26
|
import { deserialize } from './deserialize';
|
|
27
27
|
import styles from './styles.module.css';
|
|
28
28
|
|
|
29
|
-
const SUPPORTED_HANDLERS = ['onDrop', 'onKeyDown', 'onPaste'];
|
|
29
|
+
const SUPPORTED_HANDLERS = ['onDrop', 'onDragOver', 'onKeyDown', 'onPaste'];
|
|
30
30
|
|
|
31
31
|
type Props = {
|
|
32
32
|
readOnly?: boolean;
|
package/src/types.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface IPlugin<
|
|
|
24
24
|
|
|
25
25
|
handlers?: {
|
|
26
26
|
onDrop?: (event: DragEvent, editor: Editor) => void;
|
|
27
|
+
onDragOver?: (event: DragEvent, editor: Editor) => void;
|
|
27
28
|
onKeyDown?: (event: KeyboardEvent, editor: Editor) => void;
|
|
28
29
|
onPaste?: (event: ClipboardEvent, editor: Editor) => void;
|
|
29
30
|
};
|