dochub-sdk 0.1.42 → 0.1.44
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.
@@ -29,10 +29,10 @@ export interface IDocHubConstructors {
|
|
29
29
|
// meta - Мета-информация о конструкторе
|
30
30
|
register(uid: string, title: string, component: IDocHubConstructorComponent, meta?: IDocHubConstructorMeta);
|
31
31
|
// Возвращает список конструкторов
|
32
|
-
fetch():IDocHubConstructorItem[]
|
32
|
+
fetch():Promise<IDocHubConstructorItem[]>;
|
33
33
|
// Возвращает запись коллекции по идентификатору
|
34
34
|
// uid - Идентификатор конструктора
|
35
|
-
get(uid: string):
|
35
|
+
get(uid: string):Promise<IDocHubConstructorItem>;
|
36
36
|
// Вызывает магазин выбора конструкторов по указанному шаблону идентификаторов
|
37
37
|
// pattern - шаблон идентификаторов по которому отбираются конструкторы
|
38
38
|
// target - Целевое пространство для создания объекта
|
package/interfaces/objects.ts
CHANGED
@@ -7,6 +7,7 @@ export interface IDocHubObjectMeta {
|
|
7
7
|
symbol?: string; // Символ объекта для визуализации на диаграммах
|
8
8
|
title?: string; // Название объекта
|
9
9
|
description?: string; // Описание объекта
|
10
|
+
constructor?: string; // RegEx паттерн конструктора объектов
|
10
11
|
}
|
11
12
|
|
12
13
|
// Редакторы документов
|