@appsurify-testmap/rrweb-player 2.0.0-alpha.30 → 2.0.0-alpha.32
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 +158 -0
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +158 -0
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +158 -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,85 @@ 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
|
+
if (interactiveEvents$1.includes(eventType)) {
|
|
549
|
+
interactiveElementsRegistry$1.add(this);
|
|
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);
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
if (document.readyState === "complete" || document.readyState === "interactive") {
|
|
568
|
+
inspectInlineEventHandlers$1();
|
|
569
|
+
} else {
|
|
570
|
+
document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers$1);
|
|
571
|
+
}
|
|
493
572
|
const MEDIA_SELECTOR = /(max|min)-device-(width|height)/;
|
|
494
573
|
const MEDIA_SELECTOR_GLOBAL = new RegExp(MEDIA_SELECTOR.source, "g");
|
|
495
574
|
const mediaSelectorPlugin = {
|
|
@@ -4521,6 +4600,85 @@ let Mirror$1 = class Mirror2 {
|
|
|
4521
4600
|
function createMirror$1() {
|
|
4522
4601
|
return new Mirror$1();
|
|
4523
4602
|
}
|
|
4603
|
+
const interactiveEvents = [
|
|
4604
|
+
"change",
|
|
4605
|
+
"submit",
|
|
4606
|
+
"dragstart",
|
|
4607
|
+
"drop",
|
|
4608
|
+
"pointerdown",
|
|
4609
|
+
"pointerup",
|
|
4610
|
+
"input",
|
|
4611
|
+
"keydown",
|
|
4612
|
+
"keyup",
|
|
4613
|
+
"keypress",
|
|
4614
|
+
"mouseenter",
|
|
4615
|
+
"mouseleave",
|
|
4616
|
+
"mouseup",
|
|
4617
|
+
"mousedown",
|
|
4618
|
+
"click",
|
|
4619
|
+
"contextmenu",
|
|
4620
|
+
"dblclick",
|
|
4621
|
+
"focus",
|
|
4622
|
+
"blur",
|
|
4623
|
+
"touchstart",
|
|
4624
|
+
"touchmove",
|
|
4625
|
+
"touchend",
|
|
4626
|
+
"touchcancel"
|
|
4627
|
+
];
|
|
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
|
+
const interactiveElementsRegistry = /* @__PURE__ */ new WeakSet();
|
|
4653
|
+
const originalAddEventListener = EventTarget.prototype.addEventListener;
|
|
4654
|
+
EventTarget.prototype.addEventListener = function(type, listener, options) {
|
|
4655
|
+
originalAddEventListener.call(this, type, listener, options);
|
|
4656
|
+
if (this instanceof Element) {
|
|
4657
|
+
const eventType = type.toLowerCase();
|
|
4658
|
+
if (interactiveEvents.includes(eventType)) {
|
|
4659
|
+
interactiveElementsRegistry.add(this);
|
|
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);
|
|
4673
|
+
}
|
|
4674
|
+
});
|
|
4675
|
+
});
|
|
4676
|
+
}
|
|
4677
|
+
if (document.readyState === "complete" || document.readyState === "interactive") {
|
|
4678
|
+
inspectInlineEventHandlers();
|
|
4679
|
+
} else {
|
|
4680
|
+
document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers);
|
|
4681
|
+
}
|
|
4524
4682
|
function getDefaultExportFromCjs(x2) {
|
|
4525
4683
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
4526
4684
|
}
|