dochub-sdk 0.1.81 → 0.1.83
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/interfaces/ui.ts +9 -3
- package/package.json +1 -1
package/interfaces/ui.ts
CHANGED
@@ -19,12 +19,18 @@ export interface IDocHubUISlotOptions {
|
|
19
19
|
modes?: DocHubEditMode[];
|
20
20
|
}
|
21
21
|
|
22
|
+
export interface IDocHubUISlotItem {
|
23
|
+
slot: DocHubUISlot | string;
|
24
|
+
component: IDocHubUIComponent;
|
25
|
+
options?: IDocHubUISlotOptions;
|
26
|
+
}
|
27
|
+
|
22
28
|
/**
|
23
29
|
* Интерфейс управления UI компонентами для предопределенных слотов
|
24
30
|
*/
|
25
31
|
export interface IDocHubUI {
|
26
32
|
// Регистрирует UI компонент в слоте
|
27
|
-
register(slot: DocHubUISlot, component: IDocHubUIComponent, options?: IDocHubUISlotOptions);
|
28
|
-
// Возвращает
|
29
|
-
get(slot: string):
|
33
|
+
register(slot: DocHubUISlot | string, component: IDocHubUIComponent, options?: IDocHubUISlotOptions);
|
34
|
+
// Возвращает зарегистрированные компонент по слоту
|
35
|
+
get(slot: DocHubUISlot | string): Promise<IDocHubUISlotItem[]>;
|
30
36
|
}
|