dochub-sdk 0.1.7 → 0.1.9
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/interfaces/document.ts +0 -4
- package/interfaces/editor.ts +1 -16
- package/package.json +1 -1
package/interfaces/document.ts
CHANGED
package/interfaces/editor.ts
CHANGED
@@ -1,22 +1,7 @@
|
|
1
|
-
import { DocumentEvents } from "./document";
|
2
|
-
|
3
|
-
export enum EditorEvents {
|
4
|
-
onEditClose = 'on-editor-close',
|
5
|
-
onEditSave = 'on-editor-save',
|
6
|
-
onEditCreate = 'on-editor-create',
|
7
|
-
onEditDelete = 'on-editor-delete'
|
8
|
-
}
|
9
|
-
|
10
1
|
export interface IDocHubEditor {
|
11
|
-
|
2
|
+
title: string; // Заголовок для закладки в редакторе
|
12
3
|
close(): Promise<boolean>; // Требует закрыть редактор
|
13
4
|
save(): Promise<boolean>; // Требует произвести сохранение
|
14
5
|
create(): Promise<boolean>; // Требует создать новый документ
|
15
6
|
delete(): Promise<boolean>; // Требует удалить документ
|
16
7
|
}
|
17
|
-
|
18
|
-
export interface IDocHubEditAPI {
|
19
|
-
mountEditor(editor: IDocHubEditor);
|
20
|
-
unmountEditor(editor: IDocHubEditor);
|
21
|
-
}
|
22
|
-
|