dochub-sdk 0.1.326 → 0.1.328

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.
@@ -108,7 +108,7 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
108
108
  const entries = this.followFiles || [];
109
109
  !entries.length && entries.push(...await DocHub.dataLake.getURIForPath(this.profile?.$base));
110
110
  return {
111
- title: this.profile?.title || this.profile?.$base?.toString() || this.followFiles?.[0] || '$undefined$',
111
+ title: this.profile?.title || this.profile?.$base?.toString() || '$undefined$',
112
112
  icon: getIconByURI(this.baseURI || this.followFiles?.[0]),
113
113
  // Генерирует на все задействованные файлы точки редактирования
114
114
  entries: entries.map((uri: string): IDocHubEditableMetaEditEntry => {
package/interfaces/ai.ts CHANGED
@@ -19,6 +19,11 @@ export interface IDocHubAIRequest {
19
19
  * Обрабатывает завершение ответа от AI
20
20
  */
21
21
  onFinish?: () => void;
22
+ /**
23
+ * Обрабатывает ошибку
24
+ * @param error - Ошибка
25
+ */
26
+ onError?: (error: Error) => void;
22
27
  /**
23
28
  * Отменяет запрос
24
29
  * @returns
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.326",
3
+ "version": "0.1.328",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",