@teselagen/ove 0.8.30 → 0.8.31

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
@@ -2924,6 +2924,13 @@ document.addEventListener("mouseup", () => {
2924
2924
  isDragging$1 = false;
2925
2925
  });
2926
2926
  let tippys = [];
2927
+ function isInAllowedContainer(element2) {
2928
+ if (window.onlyAllowTooltipsInVeEditor) {
2929
+ return element2.closest(".veEditor") !== null;
2930
+ }
2931
+ return true;
2932
+ }
2933
+ __name(isInAllowedContainer, "isInAllowedContainer");
2927
2934
  let recentlyHidden = false;
2928
2935
  let clearMe;
2929
2936
  (function() {
@@ -2931,6 +2938,9 @@ let clearMe;
2931
2938
  document.addEventListener("mouseover", function(event) {
2932
2939
  var _a2, _b2;
2933
2940
  const element2 = event.target;
2941
+ if (!isInAllowedContainer(element2)) {
2942
+ return;
2943
+ }
2934
2944
  if (element2 instanceof Element && element2 !== lastMouseOverElement) {
2935
2945
  let clearOldTippys = /* @__PURE__ */ __name(function(maybeInst) {
2936
2946
  tippys = tippys.filter((t2) => {
@@ -110187,7 +110197,8 @@ function getAnnotationNameAndStartStopString({
110187
110197
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
110188
110198
  click → top cut position
110189
110199
  alt/option+click → bottom cut position
110190
- cmd/ctrl+click → recognition range` : `
110200
+ cmd/ctrl+click → recognition range
110201
+ double click → show info` : `
110191
110202
 
110192
110203
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
110193
110204
  INTERACTIONS:
@@ -117131,7 +117142,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117131
117142
  input.click();
117132
117143
  }
117133
117144
  __name(showFileDialog, "showFileDialog");
117134
- const version = "0.8.30";
117145
+ const version = "0.8.31";
117135
117146
  const packageJson = {
117136
117147
  version
117137
117148
  };
package/index.es.js CHANGED
@@ -2906,6 +2906,13 @@ document.addEventListener("mouseup", () => {
2906
2906
  isDragging$1 = false;
2907
2907
  });
2908
2908
  let tippys = [];
2909
+ function isInAllowedContainer(element2) {
2910
+ if (window.onlyAllowTooltipsInVeEditor) {
2911
+ return element2.closest(".veEditor") !== null;
2912
+ }
2913
+ return true;
2914
+ }
2915
+ __name(isInAllowedContainer, "isInAllowedContainer");
2909
2916
  let recentlyHidden = false;
2910
2917
  let clearMe;
2911
2918
  (function() {
@@ -2913,6 +2920,9 @@ let clearMe;
2913
2920
  document.addEventListener("mouseover", function(event) {
2914
2921
  var _a2, _b2;
2915
2922
  const element2 = event.target;
2923
+ if (!isInAllowedContainer(element2)) {
2924
+ return;
2925
+ }
2916
2926
  if (element2 instanceof Element && element2 !== lastMouseOverElement) {
2917
2927
  let clearOldTippys = /* @__PURE__ */ __name(function(maybeInst) {
2918
2928
  tippys = tippys.filter((t2) => {
@@ -110169,7 +110179,8 @@ function getAnnotationNameAndStartStopString({
110169
110179
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
110170
110180
  click → top cut position
110171
110181
  alt/option+click → bottom cut position
110172
- cmd/ctrl+click → recognition range` : `
110182
+ cmd/ctrl+click → recognition range
110183
+ double click → show info` : `
110173
110184
 
110174
110185
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
110175
110186
  INTERACTIONS:
@@ -117113,7 +117124,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117113
117124
  input.click();
117114
117125
  }
117115
117126
  __name(showFileDialog, "showFileDialog");
117116
- const version = "0.8.30";
117127
+ const version = "0.8.31";
117117
117128
  const packageJson = {
117118
117129
  version
117119
117130
  };
package/index.umd.js CHANGED
@@ -22537,6 +22537,13 @@ var __async = (__this, __arguments, generator) => {
22537
22537
  isDragging$1 = false;
22538
22538
  });
22539
22539
  let tippys = [];
22540
+ function isInAllowedContainer(element2) {
22541
+ if (window.onlyAllowTooltipsInVeEditor) {
22542
+ return element2.closest(".veEditor") !== null;
22543
+ }
22544
+ return true;
22545
+ }
22546
+ __name(isInAllowedContainer, "isInAllowedContainer");
22540
22547
  let recentlyHidden = false;
22541
22548
  let clearMe;
22542
22549
  (function() {
@@ -22544,6 +22551,9 @@ var __async = (__this, __arguments, generator) => {
22544
22551
  document.addEventListener("mouseover", function(event) {
22545
22552
  var _a2, _b2;
22546
22553
  const element2 = event.target;
22554
+ if (!isInAllowedContainer(element2)) {
22555
+ return;
22556
+ }
22547
22557
  if (element2 instanceof Element && element2 !== lastMouseOverElement) {
22548
22558
  let clearOldTippys = /* @__PURE__ */ __name(function(maybeInst) {
22549
22559
  tippys = tippys.filter((t2) => {
@@ -138335,7 +138345,8 @@ ${seq.sequence}
138335
138345
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
138336
138346
  click → top cut position
138337
138347
  alt/option+click → bottom cut position
138338
- cmd/ctrl+click → recognition range` : `
138348
+ cmd/ctrl+click → recognition range
138349
+ double click → show info` : `
138339
138350
 
138340
138351
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
138341
138352
  INTERACTIONS:
@@ -145229,7 +145240,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
145229
145240
  input.click();
145230
145241
  }
145231
145242
  __name(showFileDialog, "showFileDialog");
145232
- const version = "0.8.30";
145243
+ const version = "0.8.31";
145233
145244
  const packageJson = {
145234
145245
  version
145235
145246
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.8.30",
3
+ "version": "0.8.31",
4
4
  "main": "./src/index.js",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/TeselaGen/tg-oss",
@@ -20,7 +20,7 @@
20
20
  "@teselagen/range-utils": "0.3.20",
21
21
  "@teselagen/react-list": "0.8.18",
22
22
  "@teselagen/sequence-utils": "0.3.42",
23
- "@teselagen/ui": "0.10.18",
23
+ "@teselagen/ui": "0.10.19",
24
24
  "@use-gesture/react": "10.3.0",
25
25
  "biomsa": "^0.2.4",
26
26
  "classnames": "^2.3.2",
@@ -44,7 +44,7 @@ export default function getAnnotationNameAndStartStopString(
44
44
  const interactionInstructions = readOnly
45
45
  ? ""
46
46
  : annotationTypePlural === "cutsites"
47
- ? `\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n INTERACTIONS:\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n click → top cut position\n alt/option+click → bottom cut position\n cmd/ctrl+click → recognition range`
47
+ ? `\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n INTERACTIONS:\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n click → top cut position\n alt/option+click → bottom cut position\n cmd/ctrl+click → recognition range\n double click → show info`
48
48
  : `\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n INTERACTIONS:\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n alt/option+click → jump row view to start/end\n double click → edit`;
49
49
 
50
50
  return `${startText ? startText : ""} ${typeToUse ? typeToUse + " -" : ""} ${