@appsurify-testmap/rrweb-player 2.0.0-alpha.35 → 2.0.0-alpha.41
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/rrweb-player.cjs +36 -100
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +36 -100
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +36 -100
- package/dist/rrweb-player.umd.cjs.map +3 -3
- package/dist/rrweb-player.umd.min.cjs +28 -28
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +4 -4
package/dist/rrweb-player.cjs
CHANGED
|
@@ -515,59 +515,27 @@ const interactiveEvents$1 = [
|
|
|
515
515
|
"touchend",
|
|
516
516
|
"touchcancel"
|
|
517
517
|
];
|
|
518
|
-
const inlineEventAttributes$1 = [
|
|
519
|
-
"onclick",
|
|
520
|
-
"ondblclick",
|
|
521
|
-
"onmousedown",
|
|
522
|
-
"onmouseup",
|
|
523
|
-
"onmouseover",
|
|
524
|
-
"onmouseout",
|
|
525
|
-
"onmousemove",
|
|
526
|
-
"onfocus",
|
|
527
|
-
"onblur",
|
|
528
|
-
"onkeydown",
|
|
529
|
-
"onkeypress",
|
|
530
|
-
"onkeyup",
|
|
531
|
-
"onchange",
|
|
532
|
-
"oninput",
|
|
533
|
-
"onsubmit",
|
|
534
|
-
"onreset",
|
|
535
|
-
"onselect",
|
|
536
|
-
"oncontextmenu",
|
|
537
|
-
"ontouchstart",
|
|
538
|
-
"ontouchmove",
|
|
539
|
-
"ontouchend",
|
|
540
|
-
"ontouchcancel"
|
|
541
|
-
];
|
|
542
518
|
const interactiveElementsRegistry$1 = /* @__PURE__ */ new WeakSet();
|
|
543
|
-
|
|
544
|
-
EventTarget.prototype.addEventListener
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
const originalRemoveEventListener$1 = EventTarget.prototype.removeEventListener;
|
|
554
|
-
EventTarget.prototype.removeEventListener = function(type, listener, options) {
|
|
555
|
-
originalRemoveEventListener$1.call(this, type, listener, options);
|
|
556
|
-
};
|
|
557
|
-
function inspectInlineEventHandlers$1() {
|
|
558
|
-
const allElements = document.querySelectorAll("*");
|
|
559
|
-
allElements.forEach((el) => {
|
|
560
|
-
inlineEventAttributes$1.forEach((attr2) => {
|
|
561
|
-
if (el.hasAttribute(attr2)) {
|
|
562
|
-
interactiveElementsRegistry$1.add(el);
|
|
519
|
+
if (typeof Element !== "undefined" && typeof EventTarget !== "undefined") {
|
|
520
|
+
const originalAddEventListener = EventTarget.prototype.addEventListener;
|
|
521
|
+
EventTarget.prototype.addEventListener = function(type, listener, options) {
|
|
522
|
+
originalAddEventListener.call(this, type, listener, options);
|
|
523
|
+
if (this instanceof Element) {
|
|
524
|
+
const eventType = type.toLowerCase();
|
|
525
|
+
if (interactiveEvents$1.includes(eventType)) {
|
|
526
|
+
interactiveElementsRegistry$1.add(this);
|
|
563
527
|
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
528
|
+
}
|
|
529
|
+
};
|
|
566
530
|
}
|
|
567
|
-
if (
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
531
|
+
if (typeof Element !== "undefined" && typeof EventTarget !== "undefined") {
|
|
532
|
+
const originalRemoveEventListener = EventTarget.prototype.removeEventListener;
|
|
533
|
+
EventTarget.prototype.removeEventListener = function(type, listener, options) {
|
|
534
|
+
originalRemoveEventListener.call(this, type, listener, options);
|
|
535
|
+
if (this instanceof Element) {
|
|
536
|
+
type.toLowerCase();
|
|
537
|
+
}
|
|
538
|
+
};
|
|
571
539
|
}
|
|
572
540
|
const MEDIA_SELECTOR = /(max|min)-device-(width|height)/;
|
|
573
541
|
const MEDIA_SELECTOR_GLOBAL = new RegExp(MEDIA_SELECTOR.source, "g");
|
|
@@ -4625,59 +4593,27 @@ const interactiveEvents = [
|
|
|
4625
4593
|
"touchend",
|
|
4626
4594
|
"touchcancel"
|
|
4627
4595
|
];
|
|
4628
|
-
const inlineEventAttributes = [
|
|
4629
|
-
"onclick",
|
|
4630
|
-
"ondblclick",
|
|
4631
|
-
"onmousedown",
|
|
4632
|
-
"onmouseup",
|
|
4633
|
-
"onmouseover",
|
|
4634
|
-
"onmouseout",
|
|
4635
|
-
"onmousemove",
|
|
4636
|
-
"onfocus",
|
|
4637
|
-
"onblur",
|
|
4638
|
-
"onkeydown",
|
|
4639
|
-
"onkeypress",
|
|
4640
|
-
"onkeyup",
|
|
4641
|
-
"onchange",
|
|
4642
|
-
"oninput",
|
|
4643
|
-
"onsubmit",
|
|
4644
|
-
"onreset",
|
|
4645
|
-
"onselect",
|
|
4646
|
-
"oncontextmenu",
|
|
4647
|
-
"ontouchstart",
|
|
4648
|
-
"ontouchmove",
|
|
4649
|
-
"ontouchend",
|
|
4650
|
-
"ontouchcancel"
|
|
4651
|
-
];
|
|
4652
4596
|
const interactiveElementsRegistry = /* @__PURE__ */ new WeakSet();
|
|
4653
|
-
|
|
4654
|
-
EventTarget.prototype.addEventListener
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
}
|
|
4662
|
-
};
|
|
4663
|
-
const originalRemoveEventListener = EventTarget.prototype.removeEventListener;
|
|
4664
|
-
EventTarget.prototype.removeEventListener = function(type, listener, options) {
|
|
4665
|
-
originalRemoveEventListener.call(this, type, listener, options);
|
|
4666
|
-
};
|
|
4667
|
-
function inspectInlineEventHandlers() {
|
|
4668
|
-
const allElements = document.querySelectorAll("*");
|
|
4669
|
-
allElements.forEach((el) => {
|
|
4670
|
-
inlineEventAttributes.forEach((attr2) => {
|
|
4671
|
-
if (el.hasAttribute(attr2)) {
|
|
4672
|
-
interactiveElementsRegistry.add(el);
|
|
4597
|
+
if (typeof Element !== "undefined" && typeof EventTarget !== "undefined") {
|
|
4598
|
+
const originalAddEventListener = EventTarget.prototype.addEventListener;
|
|
4599
|
+
EventTarget.prototype.addEventListener = function(type, listener, options) {
|
|
4600
|
+
originalAddEventListener.call(this, type, listener, options);
|
|
4601
|
+
if (this instanceof Element) {
|
|
4602
|
+
const eventType = type.toLowerCase();
|
|
4603
|
+
if (interactiveEvents.includes(eventType)) {
|
|
4604
|
+
interactiveElementsRegistry.add(this);
|
|
4673
4605
|
}
|
|
4674
|
-
}
|
|
4675
|
-
}
|
|
4606
|
+
}
|
|
4607
|
+
};
|
|
4676
4608
|
}
|
|
4677
|
-
if (
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4609
|
+
if (typeof Element !== "undefined" && typeof EventTarget !== "undefined") {
|
|
4610
|
+
const originalRemoveEventListener = EventTarget.prototype.removeEventListener;
|
|
4611
|
+
EventTarget.prototype.removeEventListener = function(type, listener, options) {
|
|
4612
|
+
originalRemoveEventListener.call(this, type, listener, options);
|
|
4613
|
+
if (this instanceof Element) {
|
|
4614
|
+
type.toLowerCase();
|
|
4615
|
+
}
|
|
4616
|
+
};
|
|
4681
4617
|
}
|
|
4682
4618
|
function getDefaultExportFromCjs(x2) {
|
|
4683
4619
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|