dochub-sdk 0.1.211 → 0.1.213
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/classes/vue2/Editor.ts +1 -1
- package/interfaces/editors.ts +7 -0
- package/package.json +1 -1
package/classes/vue2/Editor.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/* eslint-disable no-unused-vars */
|
2
2
|
import { Prop, Watch, Component } from 'vue-property-decorator';
|
3
3
|
import { DocHubComponentProto } from './Components';
|
4
|
-
import { DocHubEditorContext } from '../..';
|
4
|
+
import type { DocHubEditorContext } from '../..';
|
5
5
|
|
6
6
|
@Component
|
7
7
|
export class DocHubEditorProto extends DocHubComponentProto {
|
package/interfaces/editors.ts
CHANGED
@@ -103,4 +103,11 @@ export interface IDocHubEditors {
|
|
103
103
|
* @param uid - Идентификатор контекста
|
104
104
|
*/
|
105
105
|
getContextByUID(uid: DocHubContextUID): Promise<DocHubEditorContext | null>;
|
106
|
+
/**
|
107
|
+
* Монтирует область данных в контекст редактирования.
|
108
|
+
* Смонтированная область будет доступна во всех контекстах.
|
109
|
+
* @param prop - Свойство в context.meta
|
110
|
+
* @param data - Данные, которые будут смонтированы
|
111
|
+
*/
|
112
|
+
mountContextArea(prop: string, data: any);
|
106
113
|
}
|