@datagrok/helm 2.6.0 → 2.7.0

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,10 +1,10 @@
1
1
  {
2
2
  "name": "@datagrok/helm",
3
3
  "friendlyName": "Helm",
4
- "version": "2.6.0",
4
+ "version": "2.7.0",
5
5
  "author": {
6
- "name": "Aleksandr Tanas",
7
- "email": "atanas@datagrok.ai"
6
+ "name": "Maria Dolotova",
7
+ "email": "mdolotova@datagrok.ai"
8
8
  },
9
9
  "description": "Provides support for HELM notation (importing, detecting, rendering, conversion).",
10
10
  "sources-backup": [
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@datagrok-libraries/bio": "^5.45.11",
20
20
  "@datagrok-libraries/chem-meta": "^1.2.7",
21
- "@datagrok-libraries/utils": "^4.3.7",
22
21
  "cash-dom": "^8.1.1",
23
- "datagrok-api": "^1.21.1",
22
+ "@datagrok-libraries/utils": "^4.4.0",
23
+ "datagrok-api": "^1.23.0",
24
24
  "dayjs": "^1.10.6",
25
25
  "lru-cache": "^10.4.3",
26
26
  "rxjs": "^6.5.5",
@@ -29,8 +29,8 @@
29
29
  "devDependencies": {
30
30
  "@datagrok-libraries/helm-web-editor": "^1.1.13",
31
31
  "@datagrok-libraries/js-draw-lite": "^0.0.10",
32
- "@datagrok/bio": "^2.16.8",
33
- "@datagrok/chem": "^1.12.3",
32
+ "@datagrok/bio": "latest",
33
+ "@datagrok/chem": "^1.13.0",
34
34
  "@types/node": "17.0.45",
35
35
  "@types/webpack-env": "^1.18.5",
36
36
  "@types/wu": "^2.1.44",
@@ -55,6 +55,8 @@ category('renderers', () => {
55
55
  return $(tv.root).find('.d4-grid canvas').length > 0;
56
56
  }, 'Table view canvas not found', 100);
57
57
 
58
+ await grok.data.detectSemanticTypes(df);
59
+
58
60
  expect(helmCol.semType, DG.SEMTYPE.MACROMOLECULE);
59
61
  expect(helmCol.meta.units, NOTATION.HELM);
60
62
  expect(helmCol.getTag(DG.TAGS.CELL_RENDERER), 'helm');
@@ -78,6 +80,7 @@ RNA1{d(A)p.d(C)p.d(G)p.d(U)p}|PEPTIDE1{I.H.A.N.T.Thr_PO3H2}$$$$,0,1
78
80
  const df = DG.DataFrame.fromCsv(helmCoordsCsv);
79
81
  df.currentRowIdx = 0;
80
82
  const view = grok.shell.addTableView(df);
83
+ await grok.data.detectSemanticTypes(df);
81
84
  const sp: DG.ScatterPlotViewer = df.plot.scatter({x: 'x', y: 'y'});
82
85
  view.dockManager.dock(sp, DG.DOCK_TYPE.RIGHT, null);
83
86
  await Promise.all([
package/src/global.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import * as grokNamespace from 'datagrok-api/grok';
2
- import * as uiNamespace from 'datagrok-api/ui';
3
- import * as DGNamespace from 'datagrok-api/dg';
4
- import * as rxjsNamespace from 'rxjs';
5
- import $Namespace from 'cash-dom';
6
-
7
- declare global {
8
- const grok: typeof grokNamespace;
9
- const ui: typeof uiNamespace;
10
- const DG: typeof DGNamespace;
11
- const rjxs: typeof rxjsNamespace;
12
- const $: typeof $Namespace;
13
- }