@appsurify-testmap/rrdom 2.0.0-alpha.30 → 2.0.0-alpha.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/dist/rrdom.cjs +80 -0
- package/dist/rrdom.cjs.map +1 -1
- package/dist/rrdom.js +80 -0
- package/dist/rrdom.js.map +1 -1
- package/dist/rrdom.umd.cjs +80 -0
- package/dist/rrdom.umd.cjs.map +2 -2
- package/dist/rrdom.umd.min.cjs +13 -13
- package/dist/rrdom.umd.min.cjs.map +3 -3
- package/package.json +3 -3
package/dist/rrdom.umd.cjs
CHANGED
|
@@ -108,6 +108,86 @@ let Mirror$1 = class Mirror {
|
|
|
108
108
|
function createMirror$1() {
|
|
109
109
|
return new Mirror$1();
|
|
110
110
|
}
|
|
111
|
+
const interactiveEvents = [
|
|
112
|
+
"change",
|
|
113
|
+
"submit",
|
|
114
|
+
"dragstart",
|
|
115
|
+
"drop",
|
|
116
|
+
"pointerdown",
|
|
117
|
+
"pointerup",
|
|
118
|
+
"input",
|
|
119
|
+
"keydown",
|
|
120
|
+
"keyup",
|
|
121
|
+
"keypress",
|
|
122
|
+
"mouseenter",
|
|
123
|
+
"mouseleave",
|
|
124
|
+
"mouseup",
|
|
125
|
+
"mousedown",
|
|
126
|
+
"click",
|
|
127
|
+
"contextmenu",
|
|
128
|
+
"dblclick",
|
|
129
|
+
"focus",
|
|
130
|
+
"blur",
|
|
131
|
+
"touchstart",
|
|
132
|
+
"touchmove",
|
|
133
|
+
"touchend",
|
|
134
|
+
"touchcancel"
|
|
135
|
+
];
|
|
136
|
+
const inlineEventAttributes = [
|
|
137
|
+
"onclick",
|
|
138
|
+
"ondblclick",
|
|
139
|
+
"onmousedown",
|
|
140
|
+
"onmouseup",
|
|
141
|
+
"onmouseover",
|
|
142
|
+
"onmouseout",
|
|
143
|
+
"onmousemove",
|
|
144
|
+
"onfocus",
|
|
145
|
+
"onblur",
|
|
146
|
+
"onkeydown",
|
|
147
|
+
"onkeypress",
|
|
148
|
+
"onkeyup",
|
|
149
|
+
"onchange",
|
|
150
|
+
"oninput",
|
|
151
|
+
"onsubmit",
|
|
152
|
+
"onreset",
|
|
153
|
+
"onselect",
|
|
154
|
+
"oncontextmenu",
|
|
155
|
+
"ontouchstart",
|
|
156
|
+
"ontouchmove",
|
|
157
|
+
"ontouchend",
|
|
158
|
+
"ontouchcancel"
|
|
159
|
+
];
|
|
160
|
+
const interactiveElementsRegistry = /* @__PURE__ */ new WeakSet();
|
|
161
|
+
const originalAddEventListener = EventTarget.prototype.addEventListener;
|
|
162
|
+
EventTarget.prototype.addEventListener = function(type, listener, options) {
|
|
163
|
+
originalAddEventListener.call(this, type, listener, options);
|
|
164
|
+
if (this instanceof Element) {
|
|
165
|
+
const eventType = type.toLowerCase();
|
|
166
|
+
console.info("Event type: ", eventType);
|
|
167
|
+
if (interactiveEvents.includes(eventType)) {
|
|
168
|
+
interactiveElementsRegistry.add(this);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
const originalRemoveEventListener = EventTarget.prototype.removeEventListener;
|
|
173
|
+
EventTarget.prototype.removeEventListener = function(type, listener, options) {
|
|
174
|
+
originalRemoveEventListener.call(this, type, listener, options);
|
|
175
|
+
};
|
|
176
|
+
function inspectInlineEventHandlers() {
|
|
177
|
+
const allElements = document.querySelectorAll("*");
|
|
178
|
+
allElements.forEach((el) => {
|
|
179
|
+
inlineEventAttributes.forEach((attr) => {
|
|
180
|
+
if (el.hasAttribute(attr)) {
|
|
181
|
+
interactiveElementsRegistry.add(el);
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
if (document.readyState === "complete" || document.readyState === "interactive") {
|
|
187
|
+
inspectInlineEventHandlers();
|
|
188
|
+
} else {
|
|
189
|
+
document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers);
|
|
190
|
+
}
|
|
111
191
|
function getDefaultExportFromCjs(x2) {
|
|
112
192
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
113
193
|
}
|