dochub-sdk 0.1.32 → 0.1.33

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.
@@ -9,10 +9,16 @@ export interface IDocHubConstructorItem {
9
9
  title: string;
10
10
  }
11
11
 
12
+ // Дополнительная метаинформация о конструкторе
13
+ export interface IDocHubConstructorMeta {
14
+ description?: string; // Описание смысла конструктора
15
+ img?: string; // Картинка для пользователя
16
+ }
17
+
12
18
  // Интерфейс конструкторов
13
19
  export interface IDocHubConstructors {
14
20
  // Регистрирует конструктор
15
- register(uid: string, title: string, component: IDocHubConstructorComponent);
21
+ register(uid: string, title: string, component: IDocHubConstructorComponent, meta?: IDocHubConstructorMeta);
16
22
  // Возвращает список конструкторов
17
23
  fetch():IDocHubConstructorItem[];
18
24
  // Возвращает запись коллекции по идентификатору
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",