dochub-sdk 0.1.56 → 0.1.58

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.
Files changed (2) hide show
  1. package/interfaces/ui.ts +10 -2
  2. package/package.json +1 -1
package/interfaces/ui.ts CHANGED
@@ -2,12 +2,20 @@ import { IDocHubUIComponent } from './uicomponents';
2
2
 
3
3
  export enum DocHubUISlot {
4
4
  avatar = 'avatar',
5
- toolbar = 'toolbar'
5
+ toolbar = 'toolbar',
6
+ explorer = 'explorer'
6
7
  }
7
8
 
9
+ export interface IDocHubUISlotOptions {
10
+ title?: string;
11
+ }
12
+
13
+ /**
14
+ * Интерфейс управления UI компонентами для предопределенных слотов
15
+ */
8
16
  export interface IDocHubUI {
9
17
  // Регистрирует UI компонент в слоте
10
- register(slot: DocHubUISlot, component: IDocHubUIComponent);
18
+ register(slot: DocHubUISlot, component: IDocHubUIComponent, options?: IDocHubUISlotOptions);
11
19
  // Возвращает зарегистрированный компонент по слоту
12
20
  get(slot: string): IDocHubUIComponent[];
13
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.56",
3
+ "version": "0.1.58",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",