dochub-sdk 0.1.92 → 0.1.93
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,7 +9,7 @@ export interface IDocHubConstructorComponent {
|
|
9
9
|
/**
|
10
10
|
* Функция проверки корректности контекста для работы конструктора
|
11
11
|
*/
|
12
|
-
export type FContextValidator = (context: DocHubEditorContext) => Promise<boolean>;
|
12
|
+
export type FContextValidator = (context: DocHubEditorContext | null) => Promise<boolean>;
|
13
13
|
|
14
14
|
// Дополнительная информация и опциональные методы конструктора
|
15
15
|
export interface IDocHubConstructorOptions {
|
package/interfaces/editors.ts
CHANGED
@@ -80,4 +80,9 @@ export interface IDocHubEditors {
|
|
80
80
|
* @returns - Текущий контекст редактирования или null
|
81
81
|
*/
|
82
82
|
getCurrentContext(): Promise<DocHubEditorContext | null>;
|
83
|
+
/**
|
84
|
+
* Возвращает контекст по UID
|
85
|
+
* @param uid - Идентификатор контекста
|
86
|
+
*/
|
87
|
+
getContextByUID(uid: DocHubContextUID): Promise<DocHubEditorContext | null>;
|
83
88
|
}
|