@teselagen/ui 0.10.18 → 0.10.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 +10 -0
- package/index.es.js +10 -0
- package/index.umd.js +10 -0
- package/package.json +1 -1
- package/src/autoTooltip.js +10 -0
package/index.cjs.js
CHANGED
|
@@ -2923,6 +2923,13 @@ document.addEventListener("mouseup", () => {
|
|
|
2923
2923
|
isDragging = false;
|
|
2924
2924
|
});
|
|
2925
2925
|
let tippys = [];
|
|
2926
|
+
function isInAllowedContainer(element2) {
|
|
2927
|
+
if (window.onlyAllowTooltipsInVeEditor) {
|
|
2928
|
+
return element2.closest(".veEditor") !== null;
|
|
2929
|
+
}
|
|
2930
|
+
return true;
|
|
2931
|
+
}
|
|
2932
|
+
__name(isInAllowedContainer, "isInAllowedContainer");
|
|
2926
2933
|
let recentlyHidden = false;
|
|
2927
2934
|
let clearMe;
|
|
2928
2935
|
(function() {
|
|
@@ -2930,6 +2937,9 @@ let clearMe;
|
|
|
2930
2937
|
document.addEventListener("mouseover", function(event) {
|
|
2931
2938
|
var _a, _b;
|
|
2932
2939
|
const element2 = event.target;
|
|
2940
|
+
if (!isInAllowedContainer(element2)) {
|
|
2941
|
+
return;
|
|
2942
|
+
}
|
|
2933
2943
|
if (element2 instanceof Element && element2 !== lastMouseOverElement) {
|
|
2934
2944
|
let clearOldTippys = /* @__PURE__ */ __name(function(maybeInst) {
|
|
2935
2945
|
tippys = tippys.filter((t2) => {
|
package/index.es.js
CHANGED
|
@@ -2905,6 +2905,13 @@ document.addEventListener("mouseup", () => {
|
|
|
2905
2905
|
isDragging = false;
|
|
2906
2906
|
});
|
|
2907
2907
|
let tippys = [];
|
|
2908
|
+
function isInAllowedContainer(element2) {
|
|
2909
|
+
if (window.onlyAllowTooltipsInVeEditor) {
|
|
2910
|
+
return element2.closest(".veEditor") !== null;
|
|
2911
|
+
}
|
|
2912
|
+
return true;
|
|
2913
|
+
}
|
|
2914
|
+
__name(isInAllowedContainer, "isInAllowedContainer");
|
|
2908
2915
|
let recentlyHidden = false;
|
|
2909
2916
|
let clearMe;
|
|
2910
2917
|
(function() {
|
|
@@ -2912,6 +2919,9 @@ let clearMe;
|
|
|
2912
2919
|
document.addEventListener("mouseover", function(event) {
|
|
2913
2920
|
var _a, _b;
|
|
2914
2921
|
const element2 = event.target;
|
|
2922
|
+
if (!isInAllowedContainer(element2)) {
|
|
2923
|
+
return;
|
|
2924
|
+
}
|
|
2915
2925
|
if (element2 instanceof Element && element2 !== lastMouseOverElement) {
|
|
2916
2926
|
let clearOldTippys = /* @__PURE__ */ __name(function(maybeInst) {
|
|
2917
2927
|
tippys = tippys.filter((t2) => {
|
package/index.umd.js
CHANGED
|
@@ -2918,6 +2918,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2918
2918
|
isDragging = false;
|
|
2919
2919
|
});
|
|
2920
2920
|
let tippys = [];
|
|
2921
|
+
function isInAllowedContainer(element2) {
|
|
2922
|
+
if (window.onlyAllowTooltipsInVeEditor) {
|
|
2923
|
+
return element2.closest(".veEditor") !== null;
|
|
2924
|
+
}
|
|
2925
|
+
return true;
|
|
2926
|
+
}
|
|
2927
|
+
__name(isInAllowedContainer, "isInAllowedContainer");
|
|
2921
2928
|
let recentlyHidden = false;
|
|
2922
2929
|
let clearMe;
|
|
2923
2930
|
(function() {
|
|
@@ -2925,6 +2932,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2925
2932
|
document.addEventListener("mouseover", function(event) {
|
|
2926
2933
|
var _a2, _b2;
|
|
2927
2934
|
const element2 = event.target;
|
|
2935
|
+
if (!isInAllowedContainer(element2)) {
|
|
2936
|
+
return;
|
|
2937
|
+
}
|
|
2928
2938
|
if (element2 instanceof Element && element2 !== lastMouseOverElement) {
|
|
2929
2939
|
let clearOldTippys = /* @__PURE__ */ __name(function(maybeInst) {
|
|
2930
2940
|
tippys = tippys.filter((t2) => {
|
package/package.json
CHANGED
package/src/autoTooltip.js
CHANGED
|
@@ -19,12 +19,22 @@ document.addEventListener("mouseup", () => {
|
|
|
19
19
|
|
|
20
20
|
let tippys = [];
|
|
21
21
|
|
|
22
|
+
function isInAllowedContainer(element) {
|
|
23
|
+
if (window.onlyAllowTooltipsInVeEditor) {
|
|
24
|
+
return element.closest(".veEditor") !== null;
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
|
|
22
29
|
let recentlyHidden = false;
|
|
23
30
|
let clearMe;
|
|
24
31
|
(function () {
|
|
25
32
|
let lastMouseOverElement = null;
|
|
26
33
|
document.addEventListener("mouseover", function (event) {
|
|
27
34
|
const element = event.target;
|
|
35
|
+
if (!isInAllowedContainer(element)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
28
38
|
|
|
29
39
|
if (element instanceof Element && element !== lastMouseOverElement) {
|
|
30
40
|
lastMouseOverElement = element;
|