slate-angular 19.4.0-next.0 → 20.0.0-next.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slate-angular",
3
- "version": "19.4.0-next.0",
3
+ "version": "20.0.0-next.2",
4
4
  "description": "Angular view layer for Slate",
5
5
  "author": "pubuzhixing <pubuzhixing@gmail.com>",
6
6
  "homepage": "https://github.com/worktile/slate-angular#readme",
@@ -3,6 +3,7 @@ import { Injector } from '@angular/core';
3
3
  import { SlateError } from '../types/error';
4
4
  import { CustomDOMEditor } from './with-dom';
5
5
  import { DOMEditor } from 'slate-dom';
6
+ import { ClipboardData } from '../types/clipboard';
6
7
  /**
7
8
  * An Angular and DOM-specific version of the `Editor` interface.
8
9
  */
@@ -14,7 +15,7 @@ export interface AngularEditor extends CustomDOMEditor {
14
15
  isBlockCard: (node: Node) => boolean;
15
16
  isExpanded: (node: Element) => boolean;
16
17
  onError: (errorData: SlateError) => void;
17
- customInsertFragmentData: (data: DataTransfer) => Promise<boolean>;
18
+ customInsertFragmentData: (data: DataTransfer, clipboardData: ClipboardData | null) => Promise<boolean>;
18
19
  customInsertTextData: (data: DataTransfer) => Promise<boolean>;
19
20
  }
20
21
  export declare const AngularEditor: {