dochub-sdk 0.1.342 → 0.1.344

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.
@@ -16,15 +16,15 @@ export class DocHubEditorProto extends DocHubComponentProto {
16
16
 
17
17
  constructor(...params) {
18
18
  super(...params);
19
- DocHub.eventBus.$on(EditorEvents.save, this.onSave);
20
- DocHub.eventBus.$on(EditorEvents.saveAs, this.onSaveAs);
21
- DocHub.eventBus.$on(EditorEvents.goto, this.onGoTo);
19
+ this.$on(EditorEvents.save, this.onSave);
20
+ this.$on(EditorEvents.saveAs, this.onSaveAs);
21
+ this.$on(EditorEvents.goto, this.onGoTo);
22
22
  }
23
23
 
24
24
  destroyed(): void {
25
- DocHub.eventBus.$off(EditorEvents.save, this.onSave);
26
- DocHub.eventBus.$off(EditorEvents.saveAs, this.onSaveAs);
27
- DocHub.eventBus.$off(EditorEvents.goto, this.onGoTo);
25
+ this.$off(EditorEvents.save, this.onSave);
26
+ this.$off(EditorEvents.saveAs, this.onSaveAs);
27
+ this.$off(EditorEvents.goto, this.onGoTo);
28
28
  }
29
29
 
30
30
  /**
@@ -69,9 +69,9 @@ export interface IDataLakeChange {
69
69
  // Путь в DataLake куда вносятся изменения
70
70
  path: DataLakePath;
71
71
  // Данные, которые вносятся в DataLake
72
- data: object | string | number | boolean;
72
+ data?: object | string | number | boolean;
73
73
  // Комментарии в манифест, где изменения будут зафиксированы
74
- comment: string;
74
+ comment?: string;
75
75
  // URI целевого файла для изменения
76
76
  targetFile?: string;
77
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.342",
3
+ "version": "0.1.344",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",