dochub-sdk 0.1.34 → 0.1.35

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/index.ts CHANGED
@@ -8,7 +8,7 @@ export * from './interfaces/protocol';
8
8
  export * from './interfaces/uicomponent';
9
9
  export * from './interfaces/editor';
10
10
  export * from './interfaces/datalake';
11
- export * from './interfaces/constructors';
11
+ export * from './interfaces/constructor';
12
12
  export * from './interfaces/content';
13
13
 
14
14
  export const DocHub: IDocHubCore = window['DocHub'];
@@ -1,10 +1,10 @@
1
1
  import { IDocHubContentProvider } from './content';
2
2
  import { IDocHubProtocol } from './protocol';
3
3
  import { IDocHubDocument } from './document';
4
- import { IDocHubEditor, EditorEvents } from './editor';
4
+ import { IDocHubEditors } from './editor';
5
5
  import { IDocHubUIComponent } from './uicomponent';
6
6
  import { IDocHubDataLake } from './datalake';
7
- import { IDocHubConstructors } from './constructors';
7
+ import { IDocHubConstructors } from './constructor';
8
8
 
9
9
  export interface IDocHubEnv {
10
10
  [id: string]: string
@@ -74,18 +74,6 @@ export interface IDocHubDocuments {
74
74
  fetch(): string[];
75
75
  }
76
76
 
77
- export interface IEditorParams {
78
- [key: string]: string;
79
- }
80
-
81
- // Редакторы документов
82
- export interface IDocHubEditors {
83
- // Регистрирует редактор для типа документа
84
- register(type: string, editor: IDocHubEditor);
85
- // Возвращает массив зарегистрированных редакторов
86
- fetch(): string[];
87
- }
88
-
89
77
  export interface IDocHubUI {
90
78
  // Регистрирует UI компонент в слоте
91
79
  register(slot: string, component: IDocHubUIComponent);
@@ -1,8 +1,8 @@
1
1
  export enum EditorEvents {
2
2
  close = '$close', // Требует закрыть редактор
3
3
  save = '$save', // Требует произвести сохранение
4
- create = '$create', // Требует создать новый документ
5
- delete = '$delete' // Требует удалить документ
4
+ create = '$create', // Требует создать новый объект
5
+ delete = '$delete' // Требует удалить объект
6
6
  };
7
7
 
8
8
  // Хранит состояние редактора
@@ -12,5 +12,15 @@ export interface IEditorState {
12
12
 
13
13
  // Редактор должен реализовывать данный интерфейс
14
14
  export interface IDocHubEditor {
15
-
16
15
  }
16
+
17
+ // Редакторы документов
18
+ export interface IDocHubEditors {
19
+ // Регистрирует редактор для типа документа
20
+ register(type: string, editor: IDocHubEditor);
21
+ // Возвращает массив зарегистрированных редакторов
22
+ fetch(): string[];
23
+ // Возвращает компонент редактора по идентификатору
24
+ get(uid: string): IDocHubEditor;
25
+ }
26
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",
File without changes