@teselagen/ove 0.5.28 → 0.5.30

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
@@ -35860,7 +35860,7 @@ function getTagProps(vals) {
35860
35860
  }
35861
35861
  __name(getTagProps, "getTagProps");
35862
35862
  const popoverOverflowModifiers = {
35863
- preventOverflow: { enabled: false },
35863
+ preventOverflow: { boundariesElement: "viewport" },
35864
35864
  hide: {
35865
35865
  enabled: false
35866
35866
  },
@@ -37154,16 +37154,25 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
37154
37154
  return value;
37155
37155
  }, "GetIntrinsic");
37156
37156
  var callBind$3 = { exports: {} };
37157
- var GetIntrinsic$4 = getIntrinsic;
37158
- var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
37159
- if ($defineProperty$2) {
37160
- try {
37161
- $defineProperty$2({}, "a", { value: 1 });
37162
- } catch (e2) {
37163
- $defineProperty$2 = false;
37157
+ var esDefineProperty;
37158
+ var hasRequiredEsDefineProperty;
37159
+ function requireEsDefineProperty() {
37160
+ if (hasRequiredEsDefineProperty)
37161
+ return esDefineProperty;
37162
+ hasRequiredEsDefineProperty = 1;
37163
+ var GetIntrinsic3 = getIntrinsic;
37164
+ var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
37165
+ if ($defineProperty2) {
37166
+ try {
37167
+ $defineProperty2({}, "a", { value: 1 });
37168
+ } catch (e2) {
37169
+ $defineProperty2 = false;
37170
+ }
37164
37171
  }
37172
+ esDefineProperty = $defineProperty2;
37173
+ return esDefineProperty;
37165
37174
  }
37166
- var esDefineProperty = $defineProperty$2;
37175
+ __name(requireEsDefineProperty, "requireEsDefineProperty");
37167
37176
  var GetIntrinsic$3 = getIntrinsic;
37168
37177
  var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
37169
37178
  if ($gOPD$1) {
@@ -37174,7 +37183,7 @@ if ($gOPD$1) {
37174
37183
  }
37175
37184
  }
37176
37185
  var gopd$1 = $gOPD$1;
37177
- var $defineProperty$1 = esDefineProperty;
37186
+ var $defineProperty$1 = requireEsDefineProperty();
37178
37187
  var $SyntaxError = syntax;
37179
37188
  var $TypeError$4 = type$1;
37180
37189
  var gopd = gopd$1;
@@ -37215,7 +37224,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
37215
37224
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
37216
37225
  }
37217
37226
  }, "defineDataProperty");
37218
- var $defineProperty = esDefineProperty;
37227
+ var $defineProperty = requireEsDefineProperty();
37219
37228
  var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
37220
37229
  return !!$defineProperty;
37221
37230
  }, "hasPropertyDescriptors");
@@ -37284,7 +37293,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
37284
37293
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
37285
37294
  var $call = GetIntrinsic3("%Function.prototype.call%");
37286
37295
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
37287
- var $defineProperty2 = esDefineProperty;
37296
+ var $defineProperty2 = requireEsDefineProperty();
37288
37297
  var $max = GetIntrinsic3("%Math.max%");
37289
37298
  module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
37290
37299
  if (typeof originalFunction !== "function") {
@@ -69607,8 +69616,6 @@ var DraggableCore$1 = /* @__PURE__ */ function(_React$Component) {
69607
69616
  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
69617
  return;
69609
69618
  }
69610
- if (e2.type === "touchstart")
69611
- e2.preventDefault();
69612
69619
  var touchIdentifier = (0, _domFns.getTouchIdentifier)(e2);
69613
69620
  _this.setState({
69614
69621
  touchIdentifier
@@ -119371,13 +119378,14 @@ function getStructuredBases({
119371
119378
  forward ? r2.basesNoInserts : r2.basesNoInserts.split("").reverse().join("")
119372
119379
  );
119373
119380
  r2.basesNoInsertsWithMetaData = basesForRange.split("").map((b3, i) => {
119381
+ var _a2, _b2;
119374
119382
  const indexOfBase = i + annotationRange.start;
119375
119383
  let seqForBase = fullSequence && fullSequence[indexOfBase] || "";
119376
119384
  if (!forward) {
119377
119385
  seqForBase = getComplementSequenceString(seqForBase);
119378
119386
  }
119379
119387
  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());
119388
+ 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
119389
  return {
119382
119390
  b: b3,
119383
119391
  isMatch,
@@ -122411,7 +122419,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122411
122419
  }
122412
122420
  __name(showFileDialog, "showFileDialog");
122413
122421
  const name = "@teselagen/ove";
122414
- const version = "0.5.27";
122422
+ const version = "0.5.29";
122415
122423
  const main = "./src/index.js";
122416
122424
  const type = "module";
122417
122425
  const exports$1 = {
package/index.es.js CHANGED
@@ -35842,7 +35842,7 @@ function getTagProps(vals) {
35842
35842
  }
35843
35843
  __name(getTagProps, "getTagProps");
35844
35844
  const popoverOverflowModifiers = {
35845
- preventOverflow: { enabled: false },
35845
+ preventOverflow: { boundariesElement: "viewport" },
35846
35846
  hide: {
35847
35847
  enabled: false
35848
35848
  },
@@ -37136,16 +37136,25 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
37136
37136
  return value;
37137
37137
  }, "GetIntrinsic");
37138
37138
  var callBind$3 = { exports: {} };
37139
- var GetIntrinsic$4 = getIntrinsic;
37140
- var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
37141
- if ($defineProperty$2) {
37142
- try {
37143
- $defineProperty$2({}, "a", { value: 1 });
37144
- } catch (e2) {
37145
- $defineProperty$2 = false;
37139
+ var esDefineProperty;
37140
+ var hasRequiredEsDefineProperty;
37141
+ function requireEsDefineProperty() {
37142
+ if (hasRequiredEsDefineProperty)
37143
+ return esDefineProperty;
37144
+ hasRequiredEsDefineProperty = 1;
37145
+ var GetIntrinsic3 = getIntrinsic;
37146
+ var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
37147
+ if ($defineProperty2) {
37148
+ try {
37149
+ $defineProperty2({}, "a", { value: 1 });
37150
+ } catch (e2) {
37151
+ $defineProperty2 = false;
37152
+ }
37146
37153
  }
37154
+ esDefineProperty = $defineProperty2;
37155
+ return esDefineProperty;
37147
37156
  }
37148
- var esDefineProperty = $defineProperty$2;
37157
+ __name(requireEsDefineProperty, "requireEsDefineProperty");
37149
37158
  var GetIntrinsic$3 = getIntrinsic;
37150
37159
  var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
37151
37160
  if ($gOPD$1) {
@@ -37156,7 +37165,7 @@ if ($gOPD$1) {
37156
37165
  }
37157
37166
  }
37158
37167
  var gopd$1 = $gOPD$1;
37159
- var $defineProperty$1 = esDefineProperty;
37168
+ var $defineProperty$1 = requireEsDefineProperty();
37160
37169
  var $SyntaxError = syntax;
37161
37170
  var $TypeError$4 = type$1;
37162
37171
  var gopd = gopd$1;
@@ -37197,7 +37206,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
37197
37206
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
37198
37207
  }
37199
37208
  }, "defineDataProperty");
37200
- var $defineProperty = esDefineProperty;
37209
+ var $defineProperty = requireEsDefineProperty();
37201
37210
  var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
37202
37211
  return !!$defineProperty;
37203
37212
  }, "hasPropertyDescriptors");
@@ -37266,7 +37275,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
37266
37275
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
37267
37276
  var $call = GetIntrinsic3("%Function.prototype.call%");
37268
37277
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
37269
- var $defineProperty2 = esDefineProperty;
37278
+ var $defineProperty2 = requireEsDefineProperty();
37270
37279
  var $max = GetIntrinsic3("%Math.max%");
37271
37280
  module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
37272
37281
  if (typeof originalFunction !== "function") {
@@ -69589,8 +69598,6 @@ var DraggableCore$1 = /* @__PURE__ */ function(_React$Component) {
69589
69598
  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
69599
  return;
69591
69600
  }
69592
- if (e2.type === "touchstart")
69593
- e2.preventDefault();
69594
69601
  var touchIdentifier = (0, _domFns.getTouchIdentifier)(e2);
69595
69602
  _this.setState({
69596
69603
  touchIdentifier
@@ -119353,13 +119360,14 @@ function getStructuredBases({
119353
119360
  forward ? r2.basesNoInserts : r2.basesNoInserts.split("").reverse().join("")
119354
119361
  );
119355
119362
  r2.basesNoInsertsWithMetaData = basesForRange.split("").map((b3, i) => {
119363
+ var _a2, _b2;
119356
119364
  const indexOfBase = i + annotationRange.start;
119357
119365
  let seqForBase = fullSequence && fullSequence[indexOfBase] || "";
119358
119366
  if (!forward) {
119359
119367
  seqForBase = getComplementSequenceString(seqForBase);
119360
119368
  }
119361
119369
  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());
119370
+ 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
119371
  return {
119364
119372
  b: b3,
119365
119373
  isMatch,
@@ -122393,7 +122401,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122393
122401
  }
122394
122402
  __name(showFileDialog, "showFileDialog");
122395
122403
  const name = "@teselagen/ove";
122396
- const version = "0.5.27";
122404
+ const version = "0.5.29";
122397
122405
  const main = "./src/index.js";
122398
122406
  const type = "module";
122399
122407
  const exports$1 = {
package/index.umd.js CHANGED
@@ -62525,7 +62525,7 @@ ${latestSubscriptionCallbackError.current.stack}
62525
62525
  }
62526
62526
  __name(getTagProps, "getTagProps");
62527
62527
  const popoverOverflowModifiers = {
62528
- preventOverflow: { enabled: false },
62528
+ preventOverflow: { boundariesElement: "viewport" },
62529
62529
  hide: {
62530
62530
  enabled: false
62531
62531
  },
@@ -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,7 +150832,7 @@ 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";
150835
+ const version = "0.5.29";
150837
150836
  const main = "./src/index.js";
150838
150837
  const type = "module";
150839
150838
  const exports$1 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.5.28",
3
+ "version": "0.5.30",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@teselagen/sequence-utils": "0.3.27",
14
14
  "@teselagen/range-utils": "0.3.7",
15
- "@teselagen/ui": "0.5.20",
15
+ "@teselagen/ui": "0.5.22",
16
16
  "@teselagen/file-utils": "0.3.16",
17
17
  "@teselagen/bounce-loader": "0.3.11",
18
18
  "@teselagen/bio-parsers": "0.4.22",
@@ -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,