dochub-sdk 0.1.120 → 0.1.122
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.
- package/interfaces/datalake.ts +10 -1
- package/interfaces/ui.ts +0 -5
- package/package.json +1 -1
package/interfaces/datalake.ts
CHANGED
@@ -12,7 +12,16 @@ export enum DataLakeChange {
|
|
12
12
|
* docs/example
|
13
13
|
* components/dochub.main
|
14
14
|
*/
|
15
|
-
export
|
15
|
+
export class DataLakePath extends String {
|
16
|
+
constructor(...args:any) {
|
17
|
+
for (const value of args) {
|
18
|
+
if (!/^(\/[a-zA-Z0-9_$]{1,}){1,}$/.test(value))
|
19
|
+
throw new Error(`Incorrect DataLakePath `, value);
|
20
|
+
}
|
21
|
+
super(...args);
|
22
|
+
return this;
|
23
|
+
}
|
24
|
+
}
|
16
25
|
|
17
26
|
// Паттерн изменившихся файлов в DataLake
|
18
27
|
export type DocHubDataLakeChangeItem = RegExp;
|
package/interfaces/ui.ts
CHANGED
@@ -52,9 +52,4 @@ export interface IDocHubUI {
|
|
52
52
|
* @returns - Список UI компонентов
|
53
53
|
*/
|
54
54
|
get(slot: DocHubUISlot | string): Promise<IDocHubUISlotItem[]>;
|
55
|
-
|
56
|
-
/**
|
57
|
-
* Обогащает HTML элемент метаданными для контекстного взаимодействия в UI
|
58
|
-
*/
|
59
|
-
appendMetaToElement(element:any, meta:IDocHubHTMLElementMeta);
|
60
55
|
}
|