@teselagen/ove 0.3.8 → 0.3.10

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,15 +1,22 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "main": "./src/index.js",
5
+ "exports": {
6
+ ".": {
7
+ "import": "./index.mjs",
8
+ "require": "./index.js"
9
+ },
10
+ "./style.css": "./style.css"
11
+ },
5
12
  "volta": {
6
13
  "node": "16.20.2"
7
14
  },
8
15
  "dependencies": {
9
16
  "@teselagen/sequence-utils": "0.3.7",
10
17
  "@teselagen/range-utils": "0.3.7",
11
- "@teselagen/ui": "0.3.7",
12
- "@teselagen/file-utils": "0.3.7",
18
+ "@teselagen/ui": "0.3.10",
19
+ "@teselagen/file-utils": "0.3.9",
13
20
  "@teselagen/bounce-loader": "0.3.7",
14
21
  "@teselagen/bio-parsers": "0.3.7",
15
22
  "@blueprintjs/core": "3.52.0",
@@ -37,8 +44,8 @@
37
44
  "dom-to-image": "^2.6.0",
38
45
  "downloadjs": "^1.4.7",
39
46
  "escape-string-regexp": "1.0.5",
40
- "fast-xml-parser": "4.2.5",
41
- "fflate": "0.7.4",
47
+ "fast-xml-parser": "4.2.7",
48
+ "fflate": "0.8.0",
42
49
  "file-saver": "^2.0.5",
43
50
  "fuse.js": "^6.6.2",
44
51
  "fuzzysearch": "^1.0.3",
@@ -31,8 +31,6 @@ import { store } from "@risingstack/react-easy-state";
31
31
 
32
32
  const defaultMarginWidth = 10;
33
33
 
34
-
35
-
36
34
  class _LinearView extends React.Component {
37
35
  state = {};
38
36
  bindOutsideChangeHelper = {};
@@ -309,7 +307,7 @@ class _LinearView extends React.Component {
309
307
  updateLabelsForInViewFeatures();
310
308
  },
311
309
  rowContainerStyle: {
312
- height: height - 36,
310
+ height: isNaN(height - 36) ? "auto" : height - 36,
313
311
  width: innerWidth + 26,
314
312
  paddingRight: marginWidth / 2,
315
313
  ...(isLinViewZoomed &&
@@ -261,7 +261,7 @@ export const importSequenceFromFile =
261
261
  }
262
262
  async function finishDisplayingSeq(seqData) {
263
263
  if (onImport) {
264
- seqData = await onImport(seqData);
264
+ seqData = await onImport(seqData, file, props);
265
265
  }
266
266
 
267
267
  if (seqData) {