dochub-sdk 0.1.212 → 0.1.214

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 {
@@ -56,7 +56,8 @@ export enum EditorEvents {
56
56
  */
57
57
  export enum DocHubEditorType {
58
58
  file = 'file',
59
- object = 'object'
59
+ object = 'object',
60
+ view = 'view'
60
61
  }
61
62
 
62
63
  export type DocHubContextUID = DocHubUID;
@@ -103,4 +104,11 @@ export interface IDocHubEditors {
103
104
  * @param uid - Идентификатор контекста
104
105
  */
105
106
  getContextByUID(uid: DocHubContextUID): Promise<DocHubEditorContext | null>;
107
+ /**
108
+ * Монтирует область данных в контекст редактирования.
109
+ * Смонтированная область будет доступна во всех контекстах.
110
+ * @param prop - Свойство в context.meta
111
+ * @param data - Данные, которые будут смонтированы
112
+ */
113
+ mountContextArea(prop: string, data: any);
106
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.212",
3
+ "version": "0.1.214",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",