dochub-sdk 0.1.90 → 0.1.92
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.
@@ -28,6 +28,8 @@ export interface IDocHubConstructorItem {
|
|
28
28
|
options?: IDocHubConstructorOptions;
|
29
29
|
}
|
30
30
|
|
31
|
+
export type DocHubUID = string;
|
32
|
+
|
31
33
|
/**
|
32
34
|
* Интерфейс конструкторов
|
33
35
|
*/
|
@@ -57,5 +59,9 @@ export interface IDocHubConstructors {
|
|
57
59
|
* @param context - Контекст который должен учесть конструктор, если он не определен, контекст будет создан автоматически
|
58
60
|
*/
|
59
61
|
showStore(pattern?: RegExp, context?: DocHubEditorContext);
|
62
|
+
/**
|
63
|
+
* Создает глобальный уникальный идентификатор
|
64
|
+
*/
|
65
|
+
makeUID(): DocHubUID;
|
60
66
|
}
|
61
67
|
|
package/interfaces/editors.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { IDocHubFileEditorContext } from './datalake';
|
2
2
|
import { IDocHubObjectEditorContext } from './objects';
|
3
|
+
import { DocHubUID } from './constructors';
|
3
4
|
|
4
5
|
/**
|
5
6
|
* Режим функционирования
|
@@ -42,10 +43,13 @@ export enum DocHubEditorType {
|
|
42
43
|
object = 'object'
|
43
44
|
}
|
44
45
|
|
46
|
+
export type DocHubContextUID = DocHubUID;
|
47
|
+
|
45
48
|
/**
|
46
49
|
* Контекст редактора
|
47
50
|
*/
|
48
51
|
export type DocHubEditorFileContext = {
|
52
|
+
uid: DocHubContextUID;
|
49
53
|
type: DocHubEditorType.file,
|
50
54
|
title?: string;
|
51
55
|
meta: IDocHubFileEditorContext
|
@@ -55,6 +59,7 @@ export type DocHubEditorFileContext = {
|
|
55
59
|
* Контекст редактора объекта
|
56
60
|
*/
|
57
61
|
export type DocHubEditorObjectContext = {
|
62
|
+
uid: DocHubContextUID;
|
58
63
|
type: DocHubEditorType.object,
|
59
64
|
title?: string;
|
60
65
|
meta: IDocHubObjectEditorContext
|