dochub-sdk 0.1.50 → 0.1.52
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 +2 -0
- package/interfaces/core.ts +1 -8
- package/interfaces/ui.ts +13 -0
- package/package.json +1 -1
package/index.ts
CHANGED
@@ -11,8 +11,10 @@ export * from './interfaces/datalake';
|
|
11
11
|
export * from './interfaces/constructors';
|
12
12
|
export * from './interfaces/contents';
|
13
13
|
export * from './interfaces/objects';
|
14
|
+
export * from './interfaces/ui';
|
14
15
|
|
15
16
|
export const DocHub: IDocHubCore = window['DocHub'];
|
16
17
|
export const Vue2 = () => window['Vue'];
|
18
|
+
export const Vuetify2 = () => window['Vuetify'];
|
17
19
|
|
18
20
|
if (!DocHub) throw new Error('!!!!!!!! No found DocHub core! !!!!!!!!!');
|
package/interfaces/core.ts
CHANGED
@@ -2,10 +2,10 @@ import { IDocHubContentProvider } from './contents';
|
|
2
2
|
import { IDocHubProtocol } from './protocols';
|
3
3
|
import { IDocHubDocument } from './documents';
|
4
4
|
import { IDocHubEditors } from './editors';
|
5
|
-
import { IDocHubUIComponent } from './uicomponents';
|
6
5
|
import { IDocHubDataLake } from './datalake';
|
7
6
|
import { IDocHubConstructors } from './constructors';
|
8
7
|
import { IDocHubObjects } from './objects';
|
8
|
+
import { IDocHubUI } from './ui';
|
9
9
|
|
10
10
|
export interface IDocHubEnv {
|
11
11
|
[id: string]: string
|
@@ -82,13 +82,6 @@ export interface IDocHubDocuments {
|
|
82
82
|
fetch(): string[];
|
83
83
|
}
|
84
84
|
|
85
|
-
export interface IDocHubUI {
|
86
|
-
// Регистрирует UI компонент в слоте
|
87
|
-
register(slot: string, component: IDocHubUIComponent);
|
88
|
-
// Возвращает зарегистрированный компонент по слоту
|
89
|
-
get(slot: string): IDocHubUIComponent[];
|
90
|
-
}
|
91
|
-
|
92
85
|
// Интерфейс внутренней шины событий
|
93
86
|
export interface IDocHubEventBus {
|
94
87
|
// Отправляет событие в шину
|
package/interfaces/ui.ts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
import { IDocHubUIComponent } from './uicomponents';
|
2
|
+
|
3
|
+
export enum DocHubUISlot {
|
4
|
+
avatar = 'avatar',
|
5
|
+
toolbar = 'toolbar'
|
6
|
+
}
|
7
|
+
|
8
|
+
export interface IDocHubUI {
|
9
|
+
// Регистрирует UI компонент в слоте
|
10
|
+
register(slot: DocHubUISlot, component: IDocHubUIComponent);
|
11
|
+
// Возвращает зарегистрированный компонент по слоту
|
12
|
+
get(slot: string): IDocHubUIComponent[];
|
13
|
+
}
|