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.
@@ -10,17 +10,23 @@ export interface IEditorState {
10
10
  title: string
11
11
  }
12
12
 
13
- // Редактор должен реализовывать данный интерфейс
14
- export interface IDocHubEditor {
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(type: string, editor: IDocHubEditor);
26
+ register(uid: string, component: IDocHubEditorComponent);
21
27
  // Возвращает массив зарегистрированных редакторов
22
28
  fetch(): string[];
23
29
  // Возвращает компонент редактора по идентификатору
24
- get(uid: string): IDocHubEditor;
30
+ get(uid: string): IDocHubEditorItem;
25
31
  }
26
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",