react-msaview 1.2.9 → 1.3.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.
Files changed (66) 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 +97266 -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 +9 -1
  63. package/dist/components/package.json +13 -7
  64. package/dist/model.d.ts +78 -5
  65. package/dist/model.js +19 -3
  66. package/package.json +13 -7
@@ -7,8 +7,9 @@ import { smallTree, smallMSA, smallMSAOnly } from './data/seq2';
7
7
  var ListItem = function (_a) {
8
8
  var onClick = _a.onClick, model = _a.model, children = _a.children;
9
9
  return (React.createElement("li", null,
10
- React.createElement(Link, { onClick: function () {
10
+ React.createElement(Link, { onClick: function (event) {
11
11
  model.setError(undefined);
12
+ event.preventDefault();
12
13
  onClick();
13
14
  }, href: "#" },
14
15
  React.createElement(Typography, null, children))));
@@ -47,6 +48,7 @@ export default observer(function (_a) {
47
48
  React.createElement(ListItem, { model: model, onClick: function () {
48
49
  model.setTreeFilehandle({
49
50
  uri: 'https://jbrowse.org/genomes/newick_trees/sarscov2phylo.pub.ft.nh',
51
+ locationType: 'UriLocation',
50
52
  });
51
53
  } }, "230k COVID-19 samples (tree only)"),
52
54
  React.createElement(ListItem, { model: model, onClick: function () {
@@ -58,30 +60,36 @@ export default observer(function (_a) {
58
60
  React.createElement(ListItem, { model: model, onClick: function () {
59
61
  model.setMSAFilehandle({
60
62
  uri: 'https://ihh.github.io/abrowse/build/pfam-cov2.stock',
63
+ locationType: 'UriLocation',
61
64
  });
62
65
  } }, "PFAM SARS-CoV2 multi-stockholm"),
63
66
  React.createElement(ListItem, { model: model, onClick: function () {
64
67
  model.setMSAFilehandle({
65
68
  uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/Lysine.stock',
69
+ locationType: 'UriLocation',
66
70
  });
67
71
  } }, "Lysine stockholm file"),
68
72
  React.createElement(ListItem, { model: model, onClick: function () {
69
73
  model.setMSAFilehandle({
70
74
  uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/PF01601_full.txt',
75
+ locationType: 'UriLocation',
71
76
  });
72
77
  } }, "PF01601 stockholm file (SARS-CoV2 spike protein)"),
73
78
  React.createElement(ListItem, { model: model, onClick: function () {
74
79
  model.setMSAFilehandle({
75
80
  uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/europe_covid.fa',
81
+ locationType: 'UriLocation',
76
82
  });
77
83
  } }, "Europe COVID full genomes (LR883044.1 and 199 other sequences)"),
78
84
  React.createElement(ListItem, { model: model, onClick: function () {
79
85
  transaction(function () {
80
86
  model.setMSAFilehandle({
81
87
  uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/rhv_test-only.aligned_with_mafft_auto.fa',
88
+ locationType: 'UriLocation',
82
89
  });
83
90
  model.setTreeFilehandle({
84
91
  uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/rhv_test-only.aligned_with_mafft_auto.nh',
92
+ locationType: 'UriLocation',
85
93
  });
86
94
  });
87
95
  } }, "MAFFT+VeryFastTree(17.9k samples)"))))));
@@ -1,10 +1,11 @@
1
1
  {
2
- "version": "1.2.8",
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,11 +42,14 @@
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
  },
45
52
  "dependencies": {
46
- "@gmod/gff": "^1.1.2",
47
53
  "clustal-js": "^1.0.3",
48
54
  "color": "^3.1.3",
49
55
  "copy-to-clipboard": "^3.3.1",
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>>;
@@ -141,7 +189,16 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
141
189
  afterCreate(): void;
142
190
  } & {
143
191
  readonly loading: boolean;
144
- readonly features: any;
192
+ readonly features: {
193
+ seq_id: string;
194
+ source: string;
195
+ type: string;
196
+ start: number;
197
+ end: number;
198
+ score: number;
199
+ strand: string;
200
+ phase: string;
201
+ }[] | undefined;
145
202
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
146
203
  turnedOffTracks: import("mobx-state-tree").IMapType<import("mobx-state-tree").ISimpleType<boolean>>;
147
204
  annotatedRegions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -314,18 +371,34 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
314
371
  highResScaleFactor: number;
315
372
  colorSchemeName: string;
316
373
  treeFilehandle: {
374
+ locationType: "UriLocation";
317
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;
318
381
  } | import("mobx-state-tree").ModelSnapshotType<{
382
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
319
383
  localPath: import("mobx-state-tree").ISimpleType<string>;
320
384
  }> | import("mobx-state-tree").ModelSnapshotType<{
385
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
321
386
  name: import("mobx-state-tree").ISimpleType<string>;
322
387
  blobId: import("mobx-state-tree").ISimpleType<string>;
323
388
  }> | undefined;
324
389
  msaFilehandle: {
390
+ locationType: "UriLocation";
325
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;
326
397
  } | import("mobx-state-tree").ModelSnapshotType<{
398
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
327
399
  localPath: import("mobx-state-tree").ISimpleType<string>;
328
400
  }> | import("mobx-state-tree").ModelSnapshotType<{
401
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
329
402
  name: import("mobx-state-tree").ISimpleType<string>;
330
403
  blobId: import("mobx-state-tree").ISimpleType<string>;
331
404
  }> | undefined;
package/dist/model.js CHANGED
@@ -78,7 +78,6 @@ import StockholmMSA from './parsers/StockholmMSA';
78
78
  import FastaMSA from './parsers/FastaMSA';
79
79
  import parseNewick from './parseNewick';
80
80
  import colorSchemes from './colorSchemes';
81
- import gff from '@gmod/gff';
82
81
  import { generateNodeIds } from './util';
83
82
  import TextTrack from './components/TextTrack';
84
83
  import BoxTrack from './components/BoxTrack';
@@ -187,7 +186,22 @@ var UniprotTrack = types
187
186
  return !self.data;
188
187
  },
189
188
  get features() {
190
- return gff.parseStringSync(self.data).map(function (f) { return f[0]; });
189
+ var _a;
190
+ return (_a = self.data) === null || _a === void 0 ? void 0 : _a.split('\n').map(function (f) { return f.trim(); }).filter(function (f) { return !!f; }).filter(function (f) { return !f.startsWith('#'); }).map(function (f) {
191
+ var _a = f.split('\t'), seq_id = _a[0], source = _a[1], type = _a[2], start = _a[3], end = _a[4], score = _a[5], strand = _a[6], phase = _a[7], col9 = _a[8];
192
+ return __assign({ seq_id: seq_id, source: source, type: type, start: +start, end: +end, score: +score, strand: strand, phase: phase }, Object.fromEntries(col9
193
+ .split(';')
194
+ .map(function (f) { return f.trim(); })
195
+ .filter(function (f) { return !!f; })
196
+ .map(function (f) { return f.split('='); })
197
+ .map(function (_a) {
198
+ var key = _a[0], val = _a[1];
199
+ return [
200
+ key.trim(),
201
+ decodeURIComponent(val).trim().split(',').join(' '),
202
+ ];
203
+ })));
204
+ });
191
205
  },
192
206
  }); });
193
207
  var MSAModel = types
@@ -281,7 +295,9 @@ var MSAModel = types
281
295
  self.selectedStructures = [];
282
296
  },
283
297
  setError: function (error) {
284
- console.error(error);
298
+ if (error) {
299
+ console.error(error);
300
+ }
285
301
  self.error = error;
286
302
  },
287
303
  setMousePos: function (col, row) {
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
- "version": "1.2.9",
2
+ "version": "1.3.1",
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,11 +42,14 @@
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
  },
45
52
  "dependencies": {
46
- "@gmod/gff": "^1.1.2",
47
53
  "clustal-js": "^1.0.3",
48
54
  "color": "^3.1.3",
49
55
  "copy-to-clipboard": "^3.3.1",