dochub-sdk 0.1.325 → 0.1.326

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.
@@ -105,11 +105,13 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
105
105
  * Возвращает метаинформацию для режима редактирования
106
106
  */
107
107
  async getMetaEdit(): Promise<IDocHubEditableMeta> {
108
+ const entries = this.followFiles || [];
109
+ !entries.length && entries.push(...await DocHub.dataLake.getURIForPath(this.profile?.$base));
108
110
  return {
109
111
  title: this.profile?.title || this.profile?.$base?.toString() || this.followFiles?.[0] || '$undefined$',
110
112
  icon: getIconByURI(this.baseURI || this.followFiles?.[0]),
111
113
  // Генерирует на все задействованные файлы точки редактирования
112
- entries: this.followFiles?.map((uri: string): IDocHubEditableMetaEditEntry => {
114
+ entries: entries.map((uri: string): IDocHubEditableMetaEditEntry => {
113
115
  return {
114
116
  title: uri,
115
117
  icon: getIconByURI(uri),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.325",
3
+ "version": "0.1.326",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",