dochub-sdk 0.1.226 → 0.1.227

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.
@@ -95,8 +95,8 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
95
95
  /**
96
96
  * Открываем редактор
97
97
  */
98
- openEditor(): void {
99
- this.baseURI && DocHub.dataLake.openFileEditor(this.baseURI, {
98
+ openEditor(uri?: string): void {
99
+ this.baseURI && DocHub.dataLake.openFileEditor(uri || this.baseURI, {
100
100
  targetPath: this.profile.$base,
101
101
  targetWindow: (window.event as any)?.ctrlKey ? DocHubUITargetWindow._blank : DocHubUITargetWindow._self
102
102
  });
@@ -113,10 +113,7 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
113
113
  return {
114
114
  title: uri,
115
115
  icon: getIconByURI(uri),
116
- handle: () => DocHub.dataLake.openFileEditor(uri, {
117
- targetPath: this.profile.$base,
118
-
119
- })
116
+ handle: () => this.openEditor(uri)
120
117
  }
121
118
  })
122
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.226",
3
+ "version": "0.1.227",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",