@datagrok/helm 2.12.0 → 2.13.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@datagrok/helm",
3
3
  "friendlyName": "Helm",
4
- "version": "2.12.0",
4
+ "version": "2.13.1",
5
5
  "author": {
6
6
  "name": "Maria Dolotova",
7
7
  "email": "mdolotova@datagrok.ai"
@@ -16,12 +16,12 @@
16
16
  "css/helm.css"
17
17
  ],
18
18
  "dependencies": {
19
- "@datagrok-libraries/bio": "^5.60.0",
19
+ "@datagrok-libraries/bio": "^5.61.1",
20
20
  "@datagrok-libraries/chem-meta": "^1.2.9",
21
21
  "@datagrok-libraries/helm-web-editor": "^1.1.16",
22
22
  "@datagrok-libraries/utils": "^4.6.9",
23
23
  "cash-dom": "^8.1.1",
24
- "datagrok-api": "^1.26.0",
24
+ "datagrok-api": "^1.25.0",
25
25
  "dayjs": "^1.10.6",
26
26
  "lru-cache": "^10.4.3",
27
27
  "rxjs": "^6.5.5",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@datagrok-libraries/js-draw-lite": "^0.0.10",
32
- "@datagrok/bio": "^2.24.0",
32
+ "@datagrok/bio": "^2.25.1",
33
33
  "@datagrok/chem": "^1.13.0",
34
34
  "@types/node": "17.0.45",
35
35
  "@types/webpack-env": "^1.18.5",
package/src/package.ts CHANGED
@@ -26,6 +26,37 @@ import type {JSDraw2Module, OrgHelmModule, ScilModule} from './types';
26
26
  export * from './package.g';
27
27
  export const _package = new HelmPackage(/*{debug: true}/**/);
28
28
 
29
+ /** Temporary polyfill */
30
+
31
+ function getDecoratorFunc() {
32
+ return function(args: any) {
33
+ return function(
34
+ target: any,
35
+ propertyKey: string,
36
+ descriptor: PropertyDescriptor
37
+ ) { };
38
+ };
39
+ }
40
+
41
+ // Ensure decorators object exists and polyfill missing decorators
42
+ if (!grok.decorators)
43
+ (grok as any).decorators = {};
44
+
45
+ const decorators = [
46
+ 'func', 'init', 'param', 'panel', 'editor', 'demo', 'app',
47
+ 'appTreeBrowser', 'fileHandler', 'fileExporter', 'model', 'viewer', 'filter', 'cellRenderer', 'autostart',
48
+ 'dashboard', 'folderViewer', 'semTypeDetector', 'packageSettingsEditor', 'functionAnalysis', 'converter',
49
+ 'fileViewer', 'model', 'treeBrowser', 'polyfill'
50
+ ];
51
+
52
+ decorators.forEach((decorator) => {
53
+ if (!(grok.decorators as any)[decorator])
54
+ (grok.decorators as any)[decorator] = getDecoratorFunc();
55
+ });
56
+
57
+ /** End temporary polyfill */
58
+
59
+
29
60
  /*
30
61
  Loading modules:
31
62
  Through Helm/package.json/sources section