@teselagen/ove 0.5.28 → 0.5.29

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
@@ -69607,8 +69607,6 @@ var DraggableCore$1 = /* @__PURE__ */ function(_React$Component) {
69607
69607
  if (_this.props.disabled || !(e2.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e2.target, _this.props.handle, thisNode) || _this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e2.target, _this.props.cancel, thisNode)) {
69608
69608
  return;
69609
69609
  }
69610
- if (e2.type === "touchstart")
69611
- e2.preventDefault();
69612
69610
  var touchIdentifier = (0, _domFns.getTouchIdentifier)(e2);
69613
69611
  _this.setState({
69614
69612
  touchIdentifier
@@ -119371,13 +119369,14 @@ function getStructuredBases({
119371
119369
  forward ? r2.basesNoInserts : r2.basesNoInserts.split("").reverse().join("")
119372
119370
  );
119373
119371
  r2.basesNoInsertsWithMetaData = basesForRange.split("").map((b3, i) => {
119372
+ var _a2, _b2;
119374
119373
  const indexOfBase = i + annotationRange.start;
119375
119374
  let seqForBase = fullSequence && fullSequence[indexOfBase] || "";
119376
119375
  if (!forward) {
119377
119376
  seqForBase = getComplementSequenceString(seqForBase);
119378
119377
  }
119379
119378
  const isMatch = seqForBase.toLowerCase() === b3.toLowerCase();
119380
- const isAmbiguousMatch = !isMatch && ambiguous_dna_values[b3.toUpperCase()].length > 1 && ambiguous_dna_values[b3.toUpperCase()].includes(seqForBase.toUpperCase());
119379
+ const isAmbiguousMatch = !isMatch && ((_a2 = ambiguous_dna_values[b3.toUpperCase()]) == null ? void 0 : _a2.length) > 1 && ((_b2 = ambiguous_dna_values[b3.toUpperCase()]) == null ? void 0 : _b2.includes(seqForBase.toUpperCase()));
119381
119380
  return {
119382
119381
  b: b3,
119383
119382
  isMatch,
@@ -122411,8 +122410,8 @@ function showFileDialog({ multiple = false, onSelect }) {
122411
122410
  }
122412
122411
  __name(showFileDialog, "showFileDialog");
122413
122412
  const name = "@teselagen/ove";
122414
- const version = "0.5.27";
122415
- const main = "./src/index.js";
122413
+ const version = "0.5.28";
122414
+ const main = "./index.js";
122416
122415
  const type = "module";
122417
122416
  const exports$1 = {
122418
122417
  ".": {
package/index.es.js CHANGED
@@ -69589,8 +69589,6 @@ var DraggableCore$1 = /* @__PURE__ */ function(_React$Component) {
69589
69589
  if (_this.props.disabled || !(e2.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e2.target, _this.props.handle, thisNode) || _this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e2.target, _this.props.cancel, thisNode)) {
69590
69590
  return;
69591
69591
  }
69592
- if (e2.type === "touchstart")
69593
- e2.preventDefault();
69594
69592
  var touchIdentifier = (0, _domFns.getTouchIdentifier)(e2);
69595
69593
  _this.setState({
69596
69594
  touchIdentifier
@@ -119353,13 +119351,14 @@ function getStructuredBases({
119353
119351
  forward ? r2.basesNoInserts : r2.basesNoInserts.split("").reverse().join("")
119354
119352
  );
119355
119353
  r2.basesNoInsertsWithMetaData = basesForRange.split("").map((b3, i) => {
119354
+ var _a2, _b2;
119356
119355
  const indexOfBase = i + annotationRange.start;
119357
119356
  let seqForBase = fullSequence && fullSequence[indexOfBase] || "";
119358
119357
  if (!forward) {
119359
119358
  seqForBase = getComplementSequenceString(seqForBase);
119360
119359
  }
119361
119360
  const isMatch = seqForBase.toLowerCase() === b3.toLowerCase();
119362
- const isAmbiguousMatch = !isMatch && ambiguous_dna_values[b3.toUpperCase()].length > 1 && ambiguous_dna_values[b3.toUpperCase()].includes(seqForBase.toUpperCase());
119361
+ const isAmbiguousMatch = !isMatch && ((_a2 = ambiguous_dna_values[b3.toUpperCase()]) == null ? void 0 : _a2.length) > 1 && ((_b2 = ambiguous_dna_values[b3.toUpperCase()]) == null ? void 0 : _b2.includes(seqForBase.toUpperCase()));
119363
119362
  return {
119364
119363
  b: b3,
119365
119364
  isMatch,
@@ -122393,8 +122392,8 @@ function showFileDialog({ multiple = false, onSelect }) {
122393
122392
  }
122394
122393
  __name(showFileDialog, "showFileDialog");
122395
122394
  const name = "@teselagen/ove";
122396
- const version = "0.5.27";
122397
- const main = "./src/index.js";
122395
+ const version = "0.5.28";
122396
+ const main = "./index.js";
122398
122397
  const type = "module";
122399
122398
  const exports$1 = {
122400
122399
  ".": {
package/index.umd.js CHANGED
@@ -98732,8 +98732,6 @@ ${latestSubscriptionCallbackError.current.stack}
98732
98732
  if (_this.props.disabled || !(e2.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e2.target, _this.props.handle, thisNode) || _this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e2.target, _this.props.cancel, thisNode)) {
98733
98733
  return;
98734
98734
  }
98735
- if (e2.type === "touchstart")
98736
- e2.preventDefault();
98737
98735
  var touchIdentifier = (0, _domFns.getTouchIdentifier)(e2);
98738
98736
  _this.setState({
98739
98737
  touchIdentifier
@@ -147827,13 +147825,14 @@ double click --> edit`}`;
147827
147825
  forward ? r2.basesNoInserts : r2.basesNoInserts.split("").reverse().join("")
147828
147826
  );
147829
147827
  r2.basesNoInsertsWithMetaData = basesForRange.split("").map((b3, i2) => {
147828
+ var _a2, _b2;
147830
147829
  const indexOfBase = i2 + annotationRange.start;
147831
147830
  let seqForBase = fullSequence && fullSequence[indexOfBase] || "";
147832
147831
  if (!forward) {
147833
147832
  seqForBase = getComplementSequenceString(seqForBase);
147834
147833
  }
147835
147834
  const isMatch = seqForBase.toLowerCase() === b3.toLowerCase();
147836
- const isAmbiguousMatch = !isMatch && ambiguous_dna_values[b3.toUpperCase()].length > 1 && ambiguous_dna_values[b3.toUpperCase()].includes(seqForBase.toUpperCase());
147835
+ const isAmbiguousMatch = !isMatch && ((_a2 = ambiguous_dna_values[b3.toUpperCase()]) == null ? void 0 : _a2.length) > 1 && ((_b2 = ambiguous_dna_values[b3.toUpperCase()]) == null ? void 0 : _b2.includes(seqForBase.toUpperCase()));
147837
147836
  return {
147838
147837
  b: b3,
147839
147838
  isMatch,
@@ -150833,8 +150832,8 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
150833
150832
  }
150834
150833
  __name(showFileDialog, "showFileDialog");
150835
150834
  const name = "@teselagen/ove";
150836
- const version = "0.5.27";
150837
- const main = "./src/index.js";
150835
+ const version = "0.5.28";
150836
+ const main = "./index.js";
150838
150837
  const type = "module";
150839
150838
  const exports$1 = {
150840
150839
  ".": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.5.28",
4
- "main": "./src/index.js",
3
+ "version": "0.5.29",
4
+ "main": "./index.js",
5
5
  "exports": {
6
6
  ".": {
7
7
  "import": "./index.es.js",
@@ -265,7 +265,7 @@ class ColoredSequence extends React.Component {
265
265
  function getBoldRegion({ sequence, overlapToBold, rowStart, sequenceLength }) {
266
266
  if (isSafari) {
267
267
  // safari doesn't support text length with tspans so we can't bold the sequence - https://github.com/TeselaGen/tg-oss/issues/80
268
- return sequence
268
+ return sequence;
269
269
  }
270
270
  const toRet = [];
271
271
  const [a, b] = overlapToBold || [];
@@ -71,8 +71,8 @@ export function getStructuredBases({
71
71
  const isMatch = seqForBase.toLowerCase() === b.toLowerCase();
72
72
  const isAmbiguousMatch =
73
73
  !isMatch &&
74
- ambiguous_dna_values[b.toUpperCase()].length > 1 &&
75
- ambiguous_dna_values[b.toUpperCase()].includes(seqForBase.toUpperCase());
74
+ ambiguous_dna_values[b.toUpperCase()]?.length > 1 &&
75
+ ambiguous_dna_values[b.toUpperCase()]?.includes(seqForBase.toUpperCase());
76
76
  return {
77
77
  b,
78
78
  isMatch,