@teselagen/ove 0.7.17 → 0.7.19

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/index.cjs.js CHANGED
@@ -34060,6 +34060,7 @@ const multiViewColumn = __spreadProps(__spreadValues({}, viewColumn), {
34060
34060
  return /* @__PURE__ */ React$3.createElement(core.Tooltip, { content: allVisible ? "Hide All" : "Show All" }, /* @__PURE__ */ React$3.createElement(
34061
34061
  core.Button,
34062
34062
  {
34063
+ className: `showHideAllButton-${allVisible ? "visible" : "hidden"}`,
34063
34064
  minimal: true,
34064
34065
  onClick: /* @__PURE__ */ __name(() => {
34065
34066
  setRecordIdToIsVisibleMap(
@@ -34096,6 +34097,7 @@ const multiViewColumn = __spreadProps(__spreadValues({}, viewColumn), {
34096
34097
  }, "onClick"),
34097
34098
  minimal: true,
34098
34099
  small: true,
34100
+ className: `showHideButton-${isVisible ? "visible" : "hidden"}-${record.id}`,
34099
34101
  icon: isVisible ? "eye-open" : "eye-off"
34100
34102
  }
34101
34103
  ));
@@ -121497,6 +121499,11 @@ function Chromatogram(props) {
121497
121499
  canvasRef
121498
121500
  ]);
121499
121501
  const marginLeft = gapsBeforeRow * charWidth2;
121502
+ if (chromatogramData.basePos && !chromatogramData.baseTraces) {
121503
+ throw new Error(
121504
+ 'Chromatogram data is missing "baseTraces". Be sure to call the convertBasePosTraceToPerBpTrace(_chromData) before passing it to the editor'
121505
+ );
121506
+ }
121500
121507
  return /* @__PURE__ */ React$3.createElement(
121501
121508
  "div",
121502
121509
  {
@@ -123044,7 +123051,7 @@ function showFileDialog({ multiple = false, onSelect }) {
123044
123051
  }
123045
123052
  __name(showFileDialog, "showFileDialog");
123046
123053
  const name = "@teselagen/ove";
123047
- const version = "0.7.16";
123054
+ const version = "0.7.18";
123048
123055
  const main = "./src/index.js";
123049
123056
  const type = "module";
123050
123057
  const exports$1 = {
package/index.es.js CHANGED
@@ -34042,6 +34042,7 @@ const multiViewColumn = __spreadProps(__spreadValues({}, viewColumn), {
34042
34042
  return /* @__PURE__ */ React__default$1.createElement(Tooltip, { content: allVisible ? "Hide All" : "Show All" }, /* @__PURE__ */ React__default$1.createElement(
34043
34043
  Button,
34044
34044
  {
34045
+ className: `showHideAllButton-${allVisible ? "visible" : "hidden"}`,
34045
34046
  minimal: true,
34046
34047
  onClick: /* @__PURE__ */ __name(() => {
34047
34048
  setRecordIdToIsVisibleMap(
@@ -34078,6 +34079,7 @@ const multiViewColumn = __spreadProps(__spreadValues({}, viewColumn), {
34078
34079
  }, "onClick"),
34079
34080
  minimal: true,
34080
34081
  small: true,
34082
+ className: `showHideButton-${isVisible ? "visible" : "hidden"}-${record.id}`,
34081
34083
  icon: isVisible ? "eye-open" : "eye-off"
34082
34084
  }
34083
34085
  ));
@@ -121479,6 +121481,11 @@ function Chromatogram(props) {
121479
121481
  canvasRef
121480
121482
  ]);
121481
121483
  const marginLeft = gapsBeforeRow * charWidth2;
121484
+ if (chromatogramData.basePos && !chromatogramData.baseTraces) {
121485
+ throw new Error(
121486
+ 'Chromatogram data is missing "baseTraces". Be sure to call the convertBasePosTraceToPerBpTrace(_chromData) before passing it to the editor'
121487
+ );
121488
+ }
121482
121489
  return /* @__PURE__ */ React__default$1.createElement(
121483
121490
  "div",
121484
121491
  {
@@ -123026,7 +123033,7 @@ function showFileDialog({ multiple = false, onSelect }) {
123026
123033
  }
123027
123034
  __name(showFileDialog, "showFileDialog");
123028
123035
  const name = "@teselagen/ove";
123029
- const version = "0.7.16";
123036
+ const version = "0.7.18";
123030
123037
  const main = "./src/index.js";
123031
123038
  const type = "module";
123032
123039
  const exports$1 = {
package/index.umd.js CHANGED
@@ -62760,6 +62760,7 @@ ${latestSubscriptionCallbackError.current.stack}
62760
62760
  return /* @__PURE__ */ React$5.createElement(Tooltip, { content: allVisible ? "Hide All" : "Show All" }, /* @__PURE__ */ React$5.createElement(
62761
62761
  Button,
62762
62762
  {
62763
+ className: `showHideAllButton-${allVisible ? "visible" : "hidden"}`,
62763
62764
  minimal: true,
62764
62765
  onClick: /* @__PURE__ */ __name(() => {
62765
62766
  setRecordIdToIsVisibleMap(
@@ -62796,6 +62797,7 @@ ${latestSubscriptionCallbackError.current.stack}
62796
62797
  }, "onClick"),
62797
62798
  minimal: true,
62798
62799
  small: true,
62800
+ className: `showHideButton-${isVisible ? "visible" : "hidden"}-${record.id}`,
62799
62801
  icon: isVisible ? "eye-open" : "eye-off"
62800
62802
  }
62801
62803
  ));
@@ -149374,6 +149376,11 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
149374
149376
  canvasRef
149375
149377
  ]);
149376
149378
  const marginLeft2 = gapsBeforeRow * charWidth2;
149379
+ if (chromatogramData.basePos && !chromatogramData.baseTraces) {
149380
+ throw new Error(
149381
+ 'Chromatogram data is missing "baseTraces". Be sure to call the convertBasePosTraceToPerBpTrace(_chromData) before passing it to the editor'
149382
+ );
149383
+ }
149377
149384
  return /* @__PURE__ */ React$5.createElement(
149378
149385
  "div",
149379
149386
  {
@@ -150921,7 +150928,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
150921
150928
  }
150922
150929
  __name(showFileDialog, "showFileDialog");
150923
150930
  const name = "@teselagen/ove";
150924
- const version = "0.7.16";
150931
+ const version = "0.7.18";
150925
150932
  const main = "./src/index.js";
150926
150933
  const type = "module";
150927
150934
  const exports$1 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.7.17",
3
+ "version": "0.7.19",
4
4
  "main": "./src/index.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@teselagen/sequence-utils": "0.3.27",
15
15
  "@teselagen/range-utils": "0.3.10",
16
- "@teselagen/ui": "0.7.19",
16
+ "@teselagen/ui": "0.7.20",
17
17
  "@teselagen/file-utils": "0.3.18",
18
18
  "@teselagen/bounce-loader": "0.3.11",
19
19
  "@teselagen/bio-parsers": "0.4.22",
@@ -52,7 +52,11 @@ export default function Chromatogram(props) {
52
52
  canvasRef
53
53
  ]);
54
54
  const marginLeft = gapsBeforeRow * charWidth;
55
-
55
+ if (chromatogramData.basePos && !chromatogramData.baseTraces) {
56
+ throw new Error(
57
+ 'Chromatogram data is missing "baseTraces". Be sure to call the convertBasePosTraceToPerBpTrace(_chromData) before passing it to the editor'
58
+ );
59
+ }
56
60
  return (
57
61
  <div
58
62
  className={classNames("chromatogram", {