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.
@@ -12,7 +12,16 @@ export enum DataLakeChange {
12
12
  * docs/example
13
13
  * components/dochub.main
14
14
  */
15
- export type DataLakePath = string;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.120",
3
+ "version": "0.1.122",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",