dochub-sdk 0.1.35 → 0.1.37
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/editor.ts +10 -4
- package/package.json +1 -1
package/interfaces/editor.ts
CHANGED
@@ -10,17 +10,23 @@ export interface IEditorState {
|
|
10
10
|
title: string
|
11
11
|
}
|
12
12
|
|
13
|
-
//
|
14
|
-
export interface
|
13
|
+
// VUE компонент редактора
|
14
|
+
export interface IDocHubEditorComponent {
|
15
|
+
}
|
16
|
+
|
17
|
+
// Метаинформация о редакторе
|
18
|
+
export interface IDocHubEditorItem {
|
19
|
+
component: IDocHubEditorComponent;
|
20
|
+
uid: string;
|
15
21
|
}
|
16
22
|
|
17
23
|
// Редакторы документов
|
18
24
|
export interface IDocHubEditors {
|
19
25
|
// Регистрирует редактор для типа документа
|
20
|
-
register(
|
26
|
+
register(uid: string, component: IDocHubEditorComponent);
|
21
27
|
// Возвращает массив зарегистрированных редакторов
|
22
28
|
fetch(): string[];
|
23
29
|
// Возвращает компонент редактора по идентификатору
|
24
|
-
get(uid: string):
|
30
|
+
get(uid: string): IDocHubEditorItem;
|
25
31
|
}
|
26
32
|
|