@lark-apaas/miaoda-inspector 1.0.8-alpha.0 → 1.0.9-alpha.0
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.
|
@@ -2,10 +2,8 @@ import "../../chunk-I4E63NIC.mjs";
|
|
|
2
2
|
let iframesListeningTo = /* @__PURE__ */ new Set();
|
|
3
3
|
function setupHighlighter(handlers) {
|
|
4
4
|
function onClick(event) {
|
|
5
|
-
var _a;
|
|
6
5
|
event.preventDefault();
|
|
7
6
|
event.stopPropagation();
|
|
8
|
-
(_a = handlers.onClick) == null ? void 0 : _a.call(handlers, event.target);
|
|
9
7
|
}
|
|
10
8
|
function onMouseEvent(event) {
|
|
11
9
|
event.stopPropagation();
|
|
@@ -29,11 +27,13 @@ function setupHighlighter(handlers) {
|
|
|
29
27
|
} catch (error) {
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
|
-
(_a = handlers.onPointerOver) == null ? void 0 : _a.call(handlers,
|
|
30
|
+
(_a = handlers.onPointerOver) == null ? void 0 : _a.call(handlers, target);
|
|
33
31
|
}
|
|
34
32
|
function onPointerUp(event) {
|
|
33
|
+
var _a;
|
|
35
34
|
event.preventDefault();
|
|
36
35
|
event.stopPropagation();
|
|
36
|
+
(_a = handlers.onClick) == null ? void 0 : _a.call(handlers, event.target);
|
|
37
37
|
}
|
|
38
38
|
function removeListenersOnWindow(window2) {
|
|
39
39
|
if (window2 && typeof window2.removeEventListener === "function") {
|
|
@@ -24,10 +24,8 @@ module.exports = __toCommonJS(highlight_exports);
|
|
|
24
24
|
let iframesListeningTo = /* @__PURE__ */ new Set();
|
|
25
25
|
function setupHighlighter(handlers) {
|
|
26
26
|
function onClick(event) {
|
|
27
|
-
var _a;
|
|
28
27
|
event.preventDefault();
|
|
29
28
|
event.stopPropagation();
|
|
30
|
-
(_a = handlers.onClick) == null ? void 0 : _a.call(handlers, event.target);
|
|
31
29
|
}
|
|
32
30
|
function onMouseEvent(event) {
|
|
33
31
|
event.stopPropagation();
|
|
@@ -51,11 +49,13 @@ function setupHighlighter(handlers) {
|
|
|
51
49
|
} catch (error) {
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
|
-
(_a = handlers.onPointerOver) == null ? void 0 : _a.call(handlers,
|
|
52
|
+
(_a = handlers.onPointerOver) == null ? void 0 : _a.call(handlers, target);
|
|
55
53
|
}
|
|
56
54
|
function onPointerUp(event) {
|
|
55
|
+
var _a;
|
|
57
56
|
event.preventDefault();
|
|
58
57
|
event.stopPropagation();
|
|
58
|
+
(_a = handlers.onClick) == null ? void 0 : _a.call(handlers, event.target);
|
|
59
59
|
}
|
|
60
60
|
function removeListenersOnWindow(window2) {
|
|
61
61
|
if (window2 && typeof window2.removeEventListener === "function") {
|