@teselagen/ove 0.5.6 → 0.5.8

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.umd.js CHANGED
@@ -9853,16 +9853,25 @@ var __async = (__this, __arguments, generator) => {
9853
9853
  return value;
9854
9854
  }, "GetIntrinsic");
9855
9855
  var callBind$3 = { exports: {} };
9856
- var GetIntrinsic$4 = getIntrinsic;
9857
- var $defineProperty$4 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
9858
- if ($defineProperty$4) {
9859
- try {
9860
- $defineProperty$4({}, "a", { value: 1 });
9861
- } catch (e2) {
9862
- $defineProperty$4 = false;
9856
+ var esDefineProperty;
9857
+ var hasRequiredEsDefineProperty;
9858
+ function requireEsDefineProperty() {
9859
+ if (hasRequiredEsDefineProperty)
9860
+ return esDefineProperty;
9861
+ hasRequiredEsDefineProperty = 1;
9862
+ var GetIntrinsic2 = getIntrinsic;
9863
+ var $defineProperty2 = GetIntrinsic2("%Object.defineProperty%", true) || false;
9864
+ if ($defineProperty2) {
9865
+ try {
9866
+ $defineProperty2({}, "a", { value: 1 });
9867
+ } catch (e2) {
9868
+ $defineProperty2 = false;
9869
+ }
9863
9870
  }
9871
+ esDefineProperty = $defineProperty2;
9872
+ return esDefineProperty;
9864
9873
  }
9865
- var esDefineProperty = $defineProperty$4;
9874
+ __name(requireEsDefineProperty, "requireEsDefineProperty");
9866
9875
  var GetIntrinsic$3 = getIntrinsic;
9867
9876
  var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
9868
9877
  if ($gOPD$1) {
@@ -9873,7 +9882,7 @@ var __async = (__this, __arguments, generator) => {
9873
9882
  }
9874
9883
  }
9875
9884
  var gopd$1 = $gOPD$1;
9876
- var $defineProperty$3 = esDefineProperty;
9885
+ var $defineProperty$3 = requireEsDefineProperty();
9877
9886
  var $SyntaxError = syntax;
9878
9887
  var $TypeError$4 = type$1;
9879
9888
  var gopd = gopd$1;
@@ -9914,7 +9923,7 @@ var __async = (__this, __arguments, generator) => {
9914
9923
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
9915
9924
  }
9916
9925
  }, "defineDataProperty");
9917
- var $defineProperty$2 = esDefineProperty;
9926
+ var $defineProperty$2 = requireEsDefineProperty();
9918
9927
  var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
9919
9928
  return !!$defineProperty$2;
9920
9929
  }, "hasPropertyDescriptors");
@@ -9983,7 +9992,7 @@ var __async = (__this, __arguments, generator) => {
9983
9992
  var $apply = GetIntrinsic2("%Function.prototype.apply%");
9984
9993
  var $call = GetIntrinsic2("%Function.prototype.call%");
9985
9994
  var $reflectApply = GetIntrinsic2("%Reflect.apply%", true) || bind2.call($call, $apply);
9986
- var $defineProperty2 = esDefineProperty;
9995
+ var $defineProperty2 = requireEsDefineProperty();
9987
9996
  var $max = GetIntrinsic2("%Math.max%");
9988
9997
  module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
9989
9998
  if (typeof originalFunction !== "function") {
@@ -61394,6 +61403,7 @@ ${latestSubscriptionCallbackError.current.stack}
61394
61403
  };
61395
61404
  }
61396
61405
  render() {
61406
+ var _b2;
61397
61407
  const _a2 = this.props, {
61398
61408
  multi,
61399
61409
  options,
@@ -61404,6 +61414,7 @@ ${latestSubscriptionCallbackError.current.stack}
61404
61414
  tagInputProps: tagInputProps,
61405
61415
  autoFocus,
61406
61416
  autoOpen,
61417
+ mustHaveQueryToOpen,
61407
61418
  noResultsText,
61408
61419
  noResults: _noResults,
61409
61420
  inputProps,
@@ -61427,6 +61438,7 @@ ${latestSubscriptionCallbackError.current.stack}
61427
61438
  "tagInputProps",
61428
61439
  "autoFocus",
61429
61440
  "autoOpen",
61441
+ "mustHaveQueryToOpen",
61430
61442
  "noResultsText",
61431
61443
  "noResults",
61432
61444
  "inputProps",
@@ -61443,6 +61455,7 @@ ${latestSubscriptionCallbackError.current.stack}
61443
61455
  let noResults = _noResults;
61444
61456
  if (noResults === void 0)
61445
61457
  noResults = noResultsDefault;
61458
+ const hasQuery = ((_b2 = this.state.query) == null ? void 0 : _b2.length) > 0;
61446
61459
  const hasValue = Array.isArray(value) ? value.length > 0 : !!value || value === 0;
61447
61460
  const rightElement = isLoading ? /* @__PURE__ */ React$2.createElement(Button, { loading: true, minimal: true }) : /* @__PURE__ */ React$2.createElement("span", null, additionalRightEl, hasValue && !disallowClear && !disabled && /* @__PURE__ */ React$2.createElement(
61448
61461
  Button,
@@ -61495,7 +61508,7 @@ ${latestSubscriptionCallbackError.current.stack}
61495
61508
  wrapperTagName: "div",
61496
61509
  canEscapeKeyClose: true,
61497
61510
  onInteraction: this.onInteraction,
61498
- isOpen: this.state.isOpen,
61511
+ isOpen: mustHaveQueryToOpen ? hasQuery && this.state.isOpen : this.state.isOpen,
61499
61512
  modifiers: popoverOverflowModifiers
61500
61513
  }, popoverProps),
61501
61514
  onItemSelect: this.handleItemSelect,
@@ -99794,11 +99807,13 @@ ${latestSubscriptionCallbackError.current.stack}
99794
99807
  };
99795
99808
  __name(_ResizableDraggableDialog, "ResizableDraggableDialog");
99796
99809
  let ResizableDraggableDialog = _ResizableDraggableDialog;
99797
- function MenuItemLink({ text: text2, onClick, icon, navTo }) {
99810
+ function MenuItemLink({ text: text2, onClick, icon, navTo, active: active2 }) {
99798
99811
  const handleLinkClick = /* @__PURE__ */ __name((e2) => {
99799
99812
  e2.target.closest(`.${POPOVER_DISMISS}`).click();
99800
99813
  }, "handleLinkClick");
99801
- return /* @__PURE__ */ React$2.createElement("li", { className: POPOVER_DISMISS, onClick }, /* @__PURE__ */ React$2.createElement(Link, { onClick: handleLinkClick, to: navTo, className: "bp3-menu-item" }, icon && /* @__PURE__ */ React$2.createElement(Icon, { icon }), /* @__PURE__ */ React$2.createElement("div", { className: "bp3-text-overflow-ellipsis bp3-fill" }, text2)));
99814
+ return /* @__PURE__ */ React$2.createElement("li", { className: POPOVER_DISMISS, onClick }, /* @__PURE__ */ React$2.createElement(Link, { onClick: handleLinkClick, to: navTo, className: classNames$1(MENU_ITEM, {
99815
+ [ACTIVE]: active2
99816
+ }) }, icon && /* @__PURE__ */ React$2.createElement(Icon, { icon }), /* @__PURE__ */ React$2.createElement("div", { className: "bp3-text-overflow-ellipsis bp3-fill" }, text2)));
99802
99817
  }
99803
99818
  __name(MenuItemLink, "MenuItemLink");
99804
99819
  const EnhancedMenuItem = compose(
@@ -118436,6 +118451,7 @@ ${latestSubscriptionCallbackError.current.stack}
118436
118451
  const feat = getCurrentFeature();
118437
118452
  feat.type = key2;
118438
118453
  feat.strand = strand;
118454
+ feat.forward = strand === 1;
118439
118455
  feat.locations = feat.locations.concat(
118440
118456
  parseFeatureLocation(
118441
118457
  val2,
@@ -149269,7 +149285,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
149269
149285
  }
149270
149286
  __name(showFileDialog, "showFileDialog");
149271
149287
  const name = "@teselagen/ove";
149272
- const version = "0.5.5";
149288
+ const version = "0.5.7";
149273
149289
  const main = "./src/index.js";
149274
149290
  const type = "module";
149275
149291
  const exports$1 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -12,10 +12,10 @@
12
12
  "dependencies": {
13
13
  "@teselagen/sequence-utils": "0.3.24",
14
14
  "@teselagen/range-utils": "0.3.7",
15
- "@teselagen/ui": "0.4.5",
15
+ "@teselagen/ui": "0.4.6",
16
16
  "@teselagen/file-utils": "0.3.16",
17
17
  "@teselagen/bounce-loader": "0.3.11",
18
- "@teselagen/bio-parsers": "0.4.16",
18
+ "@teselagen/bio-parsers": "0.4.17",
19
19
  "@blueprintjs/core": "3.52.0",
20
20
  "@blueprintjs/datetime": "3.23.19",
21
21
  "@blueprintjs/icons": "3.33.0",
@@ -64,9 +64,7 @@
64
64
  "popper.js": "^1.16.1",
65
65
  "prop-types": "^15.6.2",
66
66
  "qs": "^6.9.6",
67
- "react": "18.2.0",
68
67
  "react-color": "^2.19.3",
69
- "react-dom": "18.2.0",
70
68
  "react-draggable": "4.4.5",
71
69
  "react-dropzone": "^11.4.2",
72
70
  "react-markdown": "8.0.7",
@@ -275,8 +275,8 @@ export function CircularView(props) {
275
275
  rangeToShowLength < 10
276
276
  ? 2
277
277
  : rangeToShowLength < 50
278
- ? Math.ceil(rangeToShowLength / 25) * 5
279
- : Math.ceil(rangeToShowLength / 100) * 10,
278
+ ? Math.ceil(rangeToShowLength / 25) * 5
279
+ : Math.ceil(rangeToShowLength / 100) * 10,
280
280
  sequenceLength,
281
281
  isProtein
282
282
  }).map(pos => {
@@ -767,8 +767,8 @@ export function CircularView(props) {
767
767
  caretPosition > -1
768
768
  ? caretPosition
769
769
  : selectionLayer.start > -1
770
- ? getMiddleOfRange(selectionLayer, sequenceLength)
771
- : undefined;
770
+ ? getMiddleOfRange(selectionLayer, sequenceLength)
771
+ : undefined;
772
772
  if (caret !== undefined) {
773
773
  const radToRotateTo = (caret / sequenceLength) * Math.PI * 2;
774
774
  rotateHelper.current.triggerChange &&
@@ -167,10 +167,10 @@ export function getBasesToShow({
167
167
  b === "&"
168
168
  ? "tg-no-show-seq"
169
169
  : isMatch
170
- ? ""
171
- : isAmbiguousMatch
172
- ? "tg-ambiguous-match-seq"
173
- : "tg-no-match-seq"
170
+ ? ""
171
+ : isAmbiguousMatch
172
+ ? "tg-ambiguous-match-seq"
173
+ : "tg-no-match-seq"
174
174
  }
175
175
  textLength={textLength}
176
176
  >
@@ -84,8 +84,8 @@ const CustomContentEditable = generateField(function CustomContentEditable({
84
84
  isMatch
85
85
  ? ""
86
86
  : isAmbiguousMatch
87
- ? "tg-ambiguous-match-seq"
88
- : "tg-no-match-seq"
87
+ ? "tg-ambiguous-match-seq"
88
+ : "tg-no-match-seq"
89
89
  }">${b}</span>`;
90
90
  }
91
91
  );
@@ -48,12 +48,12 @@ export default function getAnnotationNameAndStartStopString(
48
48
  readOnly
49
49
  ? ""
50
50
  : annotationTypePlural === "cutsites"
51
- ? `
51
+ ? `
52
52
 
53
53
  click --> top cut position
54
54
  alt/option+click --> bottom cut position
55
55
  cmd/ctrl+click --> recognition range`
56
- : `
56
+ : `
57
57
 
58
58
  alt/option+click --> jump row view to start/end
59
59
  double click --> edit`
@@ -89,8 +89,8 @@ export const editorDragStarted = function (opts) {
89
89
  selectionStartOrEndGrabbed = opts.selectionStartGrabbed
90
90
  ? "start"
91
91
  : opts.selectionEndGrabbed
92
- ? "end"
93
- : null;
92
+ ? "end"
93
+ : null;
94
94
  };
95
95
  export const editorDragStopped = function () {
96
96
  document.body.classList.remove("sequenceDragging"); //needed to prevent the input bubble from losing focus post user drag