dochub-sdk 0.1.17 → 0.1.19

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
@@ -7,6 +7,7 @@ export * from './interfaces/document';
7
7
  export * from './interfaces/protocol';
8
8
  export * from './interfaces/uicomponent';
9
9
  export * from './interfaces/editor';
10
+ export * from './interfaces/datalake';
10
11
 
11
12
  export const DocHub: IDocHubCore = window['DocHub'];
12
13
  export const Vue2: any = window['Vue'];
@@ -86,6 +86,16 @@ export interface IDocHubUI {
86
86
  get(slot: string): IDocHubUIComponent[];
87
87
  }
88
88
 
89
+ // Интерфейс внутренней шины событий
90
+ export interface IDocHubEventBus {
91
+ // Отправляет событие в шину
92
+ $emit(event: string, data: any);
93
+ // Монтирует слушателя в шину
94
+ $on(event: string, func: Function);
95
+ // Отмонтирует слушателя от шины
96
+ $off(event: string, func: Function);
97
+ }
98
+
89
99
  // Главный интерфейс
90
100
  export interface IDocHubCore {
91
101
  problems: IDocHubProblems; // Проблемы
@@ -97,4 +107,5 @@ export interface IDocHubCore {
97
107
  editors: IDocHubEditors; // Редакторы
98
108
  ui: IDocHubUI; // UI порт
99
109
  dataLake: IDocHubDataLake; // Интерфейс к архкоду
110
+ eventBus: IDocHubEventBus; // Внутренняя шина событий
100
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",