dochub-sdk 0.1.150 → 0.1.152

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.
@@ -151,6 +151,13 @@ export interface IDocHubTransaction {
151
151
  */
152
152
  export interface IDocHubFileEditorComponent {}
153
153
 
154
+
155
+ /**
156
+ * VUE компонент редактора файлов по умолчанию
157
+ */
158
+ export interface IDocHubFileDefaultEditorComponent extends IDocHubFileEditorComponent {
159
+ }
160
+
154
161
  /**
155
162
  * Метаинформация о редакторе файла
156
163
  */
@@ -333,6 +340,14 @@ export interface IDocHubDataLake {
333
340
  */
334
341
  registerFileEditor(pattern: RegExp, component: IDocHubFileEditorComponent, title?: string);
335
342
 
343
+ /**
344
+ * Регистрирует редактор файлов по умолчанию.
345
+ * Он вызывается в том случае, если не зарегистрирован частный редактор
346
+ * @param component - VUE компонент для редактирования файла
347
+ * @param title - Название редактора файла
348
+ */
349
+ registerDefaultFileEditor(component: IDocHubFileDefaultEditorComponent, title: string);
350
+
336
351
  /**
337
352
  * Возвращает массив зарегистрированных редакторов файлов
338
353
  * @returns - Массив зарегистрированных редакторов объектов
@@ -1,5 +1,3 @@
1
- import { DocHubEditMode, DocHubEditorURI } from './editors';
2
-
3
1
  /**
4
2
  * События языковых пакетов
5
3
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.150",
3
+ "version": "0.1.152",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",
@@ -23,6 +23,7 @@
23
23
  "author": "R.Piontik",
24
24
  "license": "GPLV3",
25
25
  "dependencies": {
26
- "axios": "0.21.4"
26
+ "axios": "0.21.4",
27
+ "codemirror": "6.0.1"
27
28
  }
28
29
  }