@appsurify-testmap/rrweb-player 2.0.0-alpha.25 → 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/rrweb-player.cjs +160 -0
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +160 -0
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +160 -0
- 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
|
@@ -490,6 +490,86 @@ function isNodeMetaEqual(a2, b) {
|
|
|
490
490
|
function isElement(n2) {
|
|
491
491
|
return n2.nodeType === n2.ELEMENT_NODE;
|
|
492
492
|
}
|
|
493
|
+
const interactiveEvents$1 = [
|
|
494
|
+
"change",
|
|
495
|
+
"submit",
|
|
496
|
+
"dragstart",
|
|
497
|
+
"drop",
|
|
498
|
+
"pointerdown",
|
|
499
|
+
"pointerup",
|
|
500
|
+
"input",
|
|
501
|
+
"keydown",
|
|
502
|
+
"keyup",
|
|
503
|
+
"keypress",
|
|
504
|
+
"mouseenter",
|
|
505
|
+
"mouseleave",
|
|
506
|
+
"mouseup",
|
|
507
|
+
"mousedown",
|
|
508
|
+
"click",
|
|
509
|
+
"contextmenu",
|
|
510
|
+
"dblclick",
|
|
511
|
+
"focus",
|
|
512
|
+
"blur",
|
|
513
|
+
"touchstart",
|
|
514
|
+
"touchmove",
|
|
515
|
+
"touchend",
|
|
516
|
+
"touchcancel"
|
|
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
|
+
const interactiveElementsRegistry$1 = /* @__PURE__ */ new WeakSet();
|
|
543
|
+
const originalAddEventListener$1 = EventTarget.prototype.addEventListener;
|
|
544
|
+
EventTarget.prototype.addEventListener = function(type, listener, options) {
|
|
545
|
+
originalAddEventListener$1.call(this, type, listener, options);
|
|
546
|
+
if (this instanceof Element) {
|
|
547
|
+
const eventType = type.toLowerCase();
|
|
548
|
+
console.info("Event type: ", eventType);
|
|
549
|
+
if (interactiveEvents$1.includes(eventType)) {
|
|
550
|
+
interactiveElementsRegistry$1.add(this);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
const originalRemoveEventListener$1 = EventTarget.prototype.removeEventListener;
|
|
555
|
+
EventTarget.prototype.removeEventListener = function(type, listener, options) {
|
|
556
|
+
originalRemoveEventListener$1.call(this, type, listener, options);
|
|
557
|
+
};
|
|
558
|
+
function inspectInlineEventHandlers$1() {
|
|
559
|
+
const allElements = document.querySelectorAll("*");
|
|
560
|
+
allElements.forEach((el) => {
|
|
561
|
+
inlineEventAttributes$1.forEach((attr2) => {
|
|
562
|
+
if (el.hasAttribute(attr2)) {
|
|
563
|
+
interactiveElementsRegistry$1.add(el);
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
if (document.readyState === "complete" || document.readyState === "interactive") {
|
|
569
|
+
inspectInlineEventHandlers$1();
|
|
570
|
+
} else {
|
|
571
|
+
document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers$1);
|
|
572
|
+
}
|
|
493
573
|
const MEDIA_SELECTOR = /(max|min)-device-(width|height)/;
|
|
494
574
|
const MEDIA_SELECTOR_GLOBAL = new RegExp(MEDIA_SELECTOR.source, "g");
|
|
495
575
|
const mediaSelectorPlugin = {
|
|
@@ -4521,6 +4601,86 @@ let Mirror$1 = class Mirror2 {
|
|
|
4521
4601
|
function createMirror$1() {
|
|
4522
4602
|
return new Mirror$1();
|
|
4523
4603
|
}
|
|
4604
|
+
const interactiveEvents = [
|
|
4605
|
+
"change",
|
|
4606
|
+
"submit",
|
|
4607
|
+
"dragstart",
|
|
4608
|
+
"drop",
|
|
4609
|
+
"pointerdown",
|
|
4610
|
+
"pointerup",
|
|
4611
|
+
"input",
|
|
4612
|
+
"keydown",
|
|
4613
|
+
"keyup",
|
|
4614
|
+
"keypress",
|
|
4615
|
+
"mouseenter",
|
|
4616
|
+
"mouseleave",
|
|
4617
|
+
"mouseup",
|
|
4618
|
+
"mousedown",
|
|
4619
|
+
"click",
|
|
4620
|
+
"contextmenu",
|
|
4621
|
+
"dblclick",
|
|
4622
|
+
"focus",
|
|
4623
|
+
"blur",
|
|
4624
|
+
"touchstart",
|
|
4625
|
+
"touchmove",
|
|
4626
|
+
"touchend",
|
|
4627
|
+
"touchcancel"
|
|
4628
|
+
];
|
|
4629
|
+
const inlineEventAttributes = [
|
|
4630
|
+
"onclick",
|
|
4631
|
+
"ondblclick",
|
|
4632
|
+
"onmousedown",
|
|
4633
|
+
"onmouseup",
|
|
4634
|
+
"onmouseover",
|
|
4635
|
+
"onmouseout",
|
|
4636
|
+
"onmousemove",
|
|
4637
|
+
"onfocus",
|
|
4638
|
+
"onblur",
|
|
4639
|
+
"onkeydown",
|
|
4640
|
+
"onkeypress",
|
|
4641
|
+
"onkeyup",
|
|
4642
|
+
"onchange",
|
|
4643
|
+
"oninput",
|
|
4644
|
+
"onsubmit",
|
|
4645
|
+
"onreset",
|
|
4646
|
+
"onselect",
|
|
4647
|
+
"oncontextmenu",
|
|
4648
|
+
"ontouchstart",
|
|
4649
|
+
"ontouchmove",
|
|
4650
|
+
"ontouchend",
|
|
4651
|
+
"ontouchcancel"
|
|
4652
|
+
];
|
|
4653
|
+
const interactiveElementsRegistry = /* @__PURE__ */ new WeakSet();
|
|
4654
|
+
const originalAddEventListener = EventTarget.prototype.addEventListener;
|
|
4655
|
+
EventTarget.prototype.addEventListener = function(type, listener, options) {
|
|
4656
|
+
originalAddEventListener.call(this, type, listener, options);
|
|
4657
|
+
if (this instanceof Element) {
|
|
4658
|
+
const eventType = type.toLowerCase();
|
|
4659
|
+
console.info("Event type: ", eventType);
|
|
4660
|
+
if (interactiveEvents.includes(eventType)) {
|
|
4661
|
+
interactiveElementsRegistry.add(this);
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4664
|
+
};
|
|
4665
|
+
const originalRemoveEventListener = EventTarget.prototype.removeEventListener;
|
|
4666
|
+
EventTarget.prototype.removeEventListener = function(type, listener, options) {
|
|
4667
|
+
originalRemoveEventListener.call(this, type, listener, options);
|
|
4668
|
+
};
|
|
4669
|
+
function inspectInlineEventHandlers() {
|
|
4670
|
+
const allElements = document.querySelectorAll("*");
|
|
4671
|
+
allElements.forEach((el) => {
|
|
4672
|
+
inlineEventAttributes.forEach((attr2) => {
|
|
4673
|
+
if (el.hasAttribute(attr2)) {
|
|
4674
|
+
interactiveElementsRegistry.add(el);
|
|
4675
|
+
}
|
|
4676
|
+
});
|
|
4677
|
+
});
|
|
4678
|
+
}
|
|
4679
|
+
if (document.readyState === "complete" || document.readyState === "interactive") {
|
|
4680
|
+
inspectInlineEventHandlers();
|
|
4681
|
+
} else {
|
|
4682
|
+
document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers);
|
|
4683
|
+
}
|
|
4524
4684
|
function getDefaultExportFromCjs(x2) {
|
|
4525
4685
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
4526
4686
|
}
|