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.
@@ -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 {
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.211",
3
+ "version": "0.1.213",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",