react-msaview 1.2.11 → 1.3.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.
Files changed (65) hide show
  1. package/bundle/colorSchemes.d.ts +16 -0
  2. package/bundle/colorSchemes.js +455 -0
  3. package/bundle/components/AboutDlg.d.ts +5 -0
  4. package/bundle/components/AboutDlg.js +47 -0
  5. package/bundle/components/AddTrackDlg.d.ts +8 -0
  6. package/bundle/components/AddTrackDlg.js +26 -0
  7. package/bundle/components/AnnotationDlg.d.ts +11 -0
  8. package/bundle/components/AnnotationDlg.js +77 -0
  9. package/bundle/components/BoxTrack.d.ts +7 -0
  10. package/bundle/components/BoxTrack.js +143 -0
  11. package/bundle/components/DetailsDlg.d.ts +8 -0
  12. package/bundle/components/DetailsDlg.js +12 -0
  13. package/bundle/components/Header.d.ts +6 -0
  14. package/bundle/components/Header.js +63 -0
  15. package/bundle/components/ImportForm.d.ts +6 -0
  16. package/bundle/components/ImportForm.js +89 -0
  17. package/bundle/components/MSACanvas.d.ts +6 -0
  18. package/bundle/components/MSACanvas.js +210 -0
  19. package/bundle/components/MSAView.d.ts +6 -0
  20. package/bundle/components/MSAView.js +88 -0
  21. package/bundle/components/MoreInfoDlg.d.ts +6 -0
  22. package/bundle/components/MoreInfoDlg.js +11 -0
  23. package/bundle/components/ResizeHandles.d.ts +8 -0
  24. package/bundle/components/ResizeHandles.js +110 -0
  25. package/bundle/components/Rubberband.d.ts +7 -0
  26. package/bundle/components/Rubberband.js +196 -0
  27. package/bundle/components/Ruler.d.ts +20 -0
  28. package/bundle/components/Ruler.js +121 -0
  29. package/bundle/components/SettingsDlg.d.ts +8 -0
  30. package/bundle/components/SettingsDlg.js +40 -0
  31. package/bundle/components/TextTrack.d.ts +7 -0
  32. package/bundle/components/TextTrack.js +72 -0
  33. package/bundle/components/Track.d.ts +11 -0
  34. package/bundle/components/Track.js +81 -0
  35. package/bundle/components/TrackInfoDlg.d.ts +6 -0
  36. package/bundle/components/TrackInfoDlg.js +33 -0
  37. package/bundle/components/TracklistDlg.d.ts +8 -0
  38. package/bundle/components/TracklistDlg.js +18 -0
  39. package/bundle/components/TreeCanvas.d.ts +6 -0
  40. package/bundle/components/TreeCanvas.js +431 -0
  41. package/bundle/components/TreeRuler.d.ts +6 -0
  42. package/bundle/components/TreeRuler.js +8 -0
  43. package/bundle/components/data/seq2.d.ts +3 -0
  44. package/bundle/components/data/seq2.js +3 -0
  45. package/bundle/index.d.ts +4 -0
  46. package/bundle/index.js +97264 -0
  47. package/bundle/layout.d.ts +23 -0
  48. package/bundle/layout.js +53 -0
  49. package/bundle/model.d.ts +364 -0
  50. package/bundle/model.js +894 -0
  51. package/bundle/parseNewick.d.ts +64 -0
  52. package/bundle/parseNewick.js +94 -0
  53. package/bundle/parsers/ClustalMSA.d.ts +39 -0
  54. package/bundle/parsers/ClustalMSA.js +77 -0
  55. package/bundle/parsers/FastaMSA.d.ts +26 -0
  56. package/bundle/parsers/FastaMSA.js +78 -0
  57. package/bundle/parsers/StockholmMSA.d.ts +75 -0
  58. package/bundle/parsers/StockholmMSA.js +142 -0
  59. package/bundle/util.d.ts +17 -0
  60. package/bundle/util.js +33 -0
  61. package/dist/components/AboutDlg.js +1 -1
  62. package/dist/components/ImportForm.js +7 -0
  63. package/dist/components/package.json +13 -6
  64. package/dist/model.d.ts +68 -4
  65. package/package.json +13 -6
@@ -48,6 +48,7 @@ export default observer(function (_a) {
48
48
  React.createElement(ListItem, { model: model, onClick: function () {
49
49
  model.setTreeFilehandle({
50
50
  uri: 'https://jbrowse.org/genomes/newick_trees/sarscov2phylo.pub.ft.nh',
51
+ locationType: 'UriLocation',
51
52
  });
52
53
  } }, "230k COVID-19 samples (tree only)"),
53
54
  React.createElement(ListItem, { model: model, onClick: function () {
@@ -59,30 +60,36 @@ export default observer(function (_a) {
59
60
  React.createElement(ListItem, { model: model, onClick: function () {
60
61
  model.setMSAFilehandle({
61
62
  uri: 'https://ihh.github.io/abrowse/build/pfam-cov2.stock',
63
+ locationType: 'UriLocation',
62
64
  });
63
65
  } }, "PFAM SARS-CoV2 multi-stockholm"),
64
66
  React.createElement(ListItem, { model: model, onClick: function () {
65
67
  model.setMSAFilehandle({
66
68
  uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/Lysine.stock',
69
+ locationType: 'UriLocation',
67
70
  });
68
71
  } }, "Lysine stockholm file"),
69
72
  React.createElement(ListItem, { model: model, onClick: function () {
70
73
  model.setMSAFilehandle({
71
74
  uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/PF01601_full.txt',
75
+ locationType: 'UriLocation',
72
76
  });
73
77
  } }, "PF01601 stockholm file (SARS-CoV2 spike protein)"),
74
78
  React.createElement(ListItem, { model: model, onClick: function () {
75
79
  model.setMSAFilehandle({
76
80
  uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/europe_covid.fa',
81
+ locationType: 'UriLocation',
77
82
  });
78
83
  } }, "Europe COVID full genomes (LR883044.1 and 199 other sequences)"),
79
84
  React.createElement(ListItem, { model: model, onClick: function () {
80
85
  transaction(function () {
81
86
  model.setMSAFilehandle({
82
87
  uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/rhv_test-only.aligned_with_mafft_auto.fa',
88
+ locationType: 'UriLocation',
83
89
  });
84
90
  model.setTreeFilehandle({
85
91
  uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/rhv_test-only.aligned_with_mafft_auto.nh',
92
+ locationType: 'UriLocation',
86
93
  });
87
94
  });
88
95
  } }, "MAFFT+VeryFastTree(17.9k samples)"))))));
@@ -1,10 +1,11 @@
1
1
  {
2
- "version": "1.2.10",
2
+ "version": "1.2.11",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
7
- "dist"
7
+ "dist",
8
+ "bundle"
8
9
  ],
9
10
  "engines": {
10
11
  "node": ">=10"
@@ -15,14 +16,12 @@
15
16
  "prestart": "npm run clean",
16
17
  "prebuild": "npm run clean",
17
18
  "start": "yarn tsc --watch",
18
- "build": "yarn tsc",
19
- "size": "size-limit",
20
- "analyze": "size-limit --why",
19
+ "build": "yarn tsc && rollup -c",
21
20
  "preversion": "npm run build",
22
21
  "postversion": "git push --follow-tags"
23
22
  },
24
23
  "peerDependencies": {
25
- "@jbrowse/core": ">=1.3.0",
24
+ "@jbrowse/core": ">=1.5.1",
26
25
  "@material-ui/core": ">=4.12.2",
27
26
  "react": ">=16.8.0",
28
27
  "react-dom": ">=16.8.0"
@@ -30,6 +29,10 @@
30
29
  "name": "react-msaview",
31
30
  "author": "Colin",
32
31
  "devDependencies": {
32
+ "@rollup/plugin-commonjs": "^21.0.1",
33
+ "@rollup/plugin-json": "^4.1.0",
34
+ "@rollup/plugin-node-resolve": "^13.0.6",
35
+ "@rollup/plugin-typescript": "^8.3.0",
33
36
  "@types/color": "^3.0.1",
34
37
  "@types/d3": "^6.7.0",
35
38
  "@types/lodash": "^4.14.170",
@@ -39,6 +42,10 @@
39
42
  "eslint-config-react-app": "^6.0.0",
40
43
  "react": "^17.0.1",
41
44
  "react-dom": "^17.0.1",
45
+ "rollup": "^2.60.2",
46
+ "rollup-plugin-node-builtins": "^2.1.2",
47
+ "rollup-plugin-node-polyfills": "^0.2.1",
48
+ "rollup-plugin-polyfill-node": "^0.7.0",
42
49
  "tslib": "^2.1.0",
43
50
  "typescript": "^4.2.3"
44
51
  },
package/dist/model.d.ts CHANGED
@@ -74,54 +74,102 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
74
74
  drawNodeBubbles: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
75
75
  highResScaleFactor: import("mobx-state-tree").IType<number | undefined, number, number>;
76
76
  colorSchemeName: import("mobx-state-tree").IType<string | undefined, string, string>;
77
- treeFilehandle: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
77
+ treeFilehandle: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISnapshotProcessor<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
78
+ locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
78
79
  uri: import("mobx-state-tree").ISimpleType<string>;
79
80
  baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
81
+ internetAccountId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
82
+ internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
83
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
84
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
85
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
80
86
  }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
87
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
81
88
  localPath: import("mobx-state-tree").ISimpleType<string>;
82
89
  }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
90
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
83
91
  name: import("mobx-state-tree").ISimpleType<string>;
84
92
  blobId: import("mobx-state-tree").ISimpleType<string>;
85
93
  }>>, {
94
+ locationType: "UriLocation";
86
95
  uri: string;
96
+ internetAccountId: string | undefined;
97
+ internetAccountPreAuthorization: import("mobx-state-tree").ModelSnapshotType<{
98
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
99
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
100
+ }> | undefined;
87
101
  } | import("mobx-state-tree").ModelSnapshotType<{
102
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
88
103
  localPath: import("mobx-state-tree").ISimpleType<string>;
89
104
  }> | import("mobx-state-tree").ModelSnapshotType<{
105
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
90
106
  name: import("mobx-state-tree").ISimpleType<string>;
91
107
  blobId: import("mobx-state-tree").ISimpleType<string>;
92
108
  }>, import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
109
+ locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
93
110
  uri: import("mobx-state-tree").ISimpleType<string>;
94
111
  baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
112
+ internetAccountId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
113
+ internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
114
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
115
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
116
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
95
117
  }>> | import("mobx-state-tree").ModelInstanceTypeProps<{
118
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
96
119
  localPath: import("mobx-state-tree").ISimpleType<string>;
97
120
  }> | import("mobx-state-tree").ModelInstanceTypeProps<{
121
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
98
122
  name: import("mobx-state-tree").ISimpleType<string>;
99
123
  blobId: import("mobx-state-tree").ISimpleType<string>;
100
- }>>>;
101
- msaFilehandle: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
124
+ }>>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
125
+ msaFilehandle: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISnapshotProcessor<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
126
+ locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
102
127
  uri: import("mobx-state-tree").ISimpleType<string>;
103
128
  baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
129
+ internetAccountId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
130
+ internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
131
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
132
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
133
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
104
134
  }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
135
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
105
136
  localPath: import("mobx-state-tree").ISimpleType<string>;
106
137
  }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
138
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
107
139
  name: import("mobx-state-tree").ISimpleType<string>;
108
140
  blobId: import("mobx-state-tree").ISimpleType<string>;
109
141
  }>>, {
142
+ locationType: "UriLocation";
110
143
  uri: string;
144
+ internetAccountId: string | undefined;
145
+ internetAccountPreAuthorization: import("mobx-state-tree").ModelSnapshotType<{
146
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
147
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
148
+ }> | undefined;
111
149
  } | import("mobx-state-tree").ModelSnapshotType<{
150
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
112
151
  localPath: import("mobx-state-tree").ISimpleType<string>;
113
152
  }> | import("mobx-state-tree").ModelSnapshotType<{
153
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
114
154
  name: import("mobx-state-tree").ISimpleType<string>;
115
155
  blobId: import("mobx-state-tree").ISimpleType<string>;
116
156
  }>, import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
157
+ locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
117
158
  uri: import("mobx-state-tree").ISimpleType<string>;
118
159
  baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
160
+ internetAccountId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
161
+ internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
162
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
163
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
164
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
119
165
  }>> | import("mobx-state-tree").ModelInstanceTypeProps<{
166
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
120
167
  localPath: import("mobx-state-tree").ISimpleType<string>;
121
168
  }> | import("mobx-state-tree").ModelInstanceTypeProps<{
169
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
122
170
  name: import("mobx-state-tree").ISimpleType<string>;
123
171
  blobId: import("mobx-state-tree").ISimpleType<string>;
124
- }>>>;
172
+ }>>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
125
173
  currentAlignment: import("mobx-state-tree").IType<number | undefined, number, number>;
126
174
  collapsed: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
127
175
  showOnly: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
@@ -323,18 +371,34 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
323
371
  highResScaleFactor: number;
324
372
  colorSchemeName: string;
325
373
  treeFilehandle: {
374
+ locationType: "UriLocation";
326
375
  uri: string;
376
+ internetAccountId: string | undefined;
377
+ internetAccountPreAuthorization: import("mobx-state-tree").ModelSnapshotType<{
378
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
379
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
380
+ }> | undefined;
327
381
  } | import("mobx-state-tree").ModelSnapshotType<{
382
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
328
383
  localPath: import("mobx-state-tree").ISimpleType<string>;
329
384
  }> | import("mobx-state-tree").ModelSnapshotType<{
385
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
330
386
  name: import("mobx-state-tree").ISimpleType<string>;
331
387
  blobId: import("mobx-state-tree").ISimpleType<string>;
332
388
  }> | undefined;
333
389
  msaFilehandle: {
390
+ locationType: "UriLocation";
334
391
  uri: string;
392
+ internetAccountId: string | undefined;
393
+ internetAccountPreAuthorization: import("mobx-state-tree").ModelSnapshotType<{
394
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
395
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
396
+ }> | undefined;
335
397
  } | import("mobx-state-tree").ModelSnapshotType<{
398
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
336
399
  localPath: import("mobx-state-tree").ISimpleType<string>;
337
400
  }> | import("mobx-state-tree").ModelSnapshotType<{
401
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
338
402
  name: import("mobx-state-tree").ISimpleType<string>;
339
403
  blobId: import("mobx-state-tree").ISimpleType<string>;
340
404
  }> | undefined;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
- "version": "1.2.11",
2
+ "version": "1.3.0",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
7
- "dist"
7
+ "dist",
8
+ "bundle"
8
9
  ],
9
10
  "engines": {
10
11
  "node": ">=10"
@@ -15,14 +16,12 @@
15
16
  "prestart": "npm run clean",
16
17
  "prebuild": "npm run clean",
17
18
  "start": "yarn tsc --watch",
18
- "build": "yarn tsc",
19
- "size": "size-limit",
20
- "analyze": "size-limit --why",
19
+ "build": "yarn tsc && rollup -c",
21
20
  "preversion": "npm run build",
22
21
  "postversion": "git push --follow-tags"
23
22
  },
24
23
  "peerDependencies": {
25
- "@jbrowse/core": ">=1.3.0",
24
+ "@jbrowse/core": ">=1.5.1",
26
25
  "@material-ui/core": ">=4.12.2",
27
26
  "react": ">=16.8.0",
28
27
  "react-dom": ">=16.8.0"
@@ -30,6 +29,10 @@
30
29
  "name": "react-msaview",
31
30
  "author": "Colin",
32
31
  "devDependencies": {
32
+ "@rollup/plugin-commonjs": "^21.0.1",
33
+ "@rollup/plugin-json": "^4.1.0",
34
+ "@rollup/plugin-node-resolve": "^13.0.6",
35
+ "@rollup/plugin-typescript": "^8.3.0",
33
36
  "@types/color": "^3.0.1",
34
37
  "@types/d3": "^6.7.0",
35
38
  "@types/lodash": "^4.14.170",
@@ -39,6 +42,10 @@
39
42
  "eslint-config-react-app": "^6.0.0",
40
43
  "react": "^17.0.1",
41
44
  "react-dom": "^17.0.1",
45
+ "rollup": "^2.60.2",
46
+ "rollup-plugin-node-builtins": "^2.1.2",
47
+ "rollup-plugin-node-polyfills": "^0.2.1",
48
+ "rollup-plugin-polyfill-node": "^0.7.0",
42
49
  "tslib": "^2.1.0",
43
50
  "typescript": "^4.2.3"
44
51
  },