@appsurify-testmap/rrweb-player 3.10.0-alpha.1 → 3.12.0-alpha.1
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 +94 -8
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +94 -8
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +94 -8
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +30 -30
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +4 -4
package/dist/rrweb-player.cjs
CHANGED
|
@@ -625,6 +625,29 @@ try {
|
|
|
625
625
|
}
|
|
626
626
|
} catch (error) {
|
|
627
627
|
}
|
|
628
|
+
const ht$2 = {
|
|
629
|
+
id: "i",
|
|
630
|
+
"data-testid": "tid",
|
|
631
|
+
"data-qa": "qa",
|
|
632
|
+
"data-cy": "cy",
|
|
633
|
+
"data-test": "dt",
|
|
634
|
+
"aria-label": "al",
|
|
635
|
+
"aria-labelledby": "alb",
|
|
636
|
+
"aria-describedby": "adb",
|
|
637
|
+
name: "n",
|
|
638
|
+
href: "h",
|
|
639
|
+
src: "s",
|
|
640
|
+
type: "t",
|
|
641
|
+
role: "r",
|
|
642
|
+
alt: "at",
|
|
643
|
+
title: "tt",
|
|
644
|
+
for: "f",
|
|
645
|
+
placeholder: "ph",
|
|
646
|
+
text: "x"
|
|
647
|
+
};
|
|
648
|
+
Object.fromEntries(
|
|
649
|
+
Object.entries(ht$2).map(([r2, t2]) => [t2, r2])
|
|
650
|
+
);
|
|
628
651
|
const MEDIA_SELECTOR = /(max|min)-device-(width|height)/;
|
|
629
652
|
const MEDIA_SELECTOR_GLOBAL = new RegExp(MEDIA_SELECTOR.source, "g");
|
|
630
653
|
const mediaSelectorPlugin = {
|
|
@@ -4918,6 +4941,29 @@ try {
|
|
|
4918
4941
|
}
|
|
4919
4942
|
} catch (error) {
|
|
4920
4943
|
}
|
|
4944
|
+
const ht$1 = {
|
|
4945
|
+
id: "i",
|
|
4946
|
+
"data-testid": "tid",
|
|
4947
|
+
"data-qa": "qa",
|
|
4948
|
+
"data-cy": "cy",
|
|
4949
|
+
"data-test": "dt",
|
|
4950
|
+
"aria-label": "al",
|
|
4951
|
+
"aria-labelledby": "alb",
|
|
4952
|
+
"aria-describedby": "adb",
|
|
4953
|
+
name: "n",
|
|
4954
|
+
href: "h",
|
|
4955
|
+
src: "s",
|
|
4956
|
+
type: "t",
|
|
4957
|
+
role: "r",
|
|
4958
|
+
alt: "at",
|
|
4959
|
+
title: "tt",
|
|
4960
|
+
for: "f",
|
|
4961
|
+
placeholder: "ph",
|
|
4962
|
+
text: "x"
|
|
4963
|
+
};
|
|
4964
|
+
Object.fromEntries(
|
|
4965
|
+
Object.entries(ht$1).map(([r2, t2]) => [t2, r2])
|
|
4966
|
+
);
|
|
4921
4967
|
function getDefaultExportFromCjs(x2) {
|
|
4922
4968
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
4923
4969
|
}
|
|
@@ -10019,16 +10065,30 @@ function describeNode(el) {
|
|
|
10019
10065
|
const classes = el.classList.length ? "." + Array.from(el.classList).join(".") : "";
|
|
10020
10066
|
return `${tag}${id}${classes}`;
|
|
10021
10067
|
}
|
|
10068
|
+
function isAncestorOpacityVisible$1(el, win) {
|
|
10069
|
+
var _a2;
|
|
10070
|
+
let node2 = el.parentElement;
|
|
10071
|
+
while (node2) {
|
|
10072
|
+
const s2 = (_a2 = win.getComputedStyle) == null ? void 0 : _a2.call(win, node2);
|
|
10073
|
+
if (s2 && (parseFloat(s2.opacity) || 0) <= 0) {
|
|
10074
|
+
return false;
|
|
10075
|
+
}
|
|
10076
|
+
node2 = node2.parentElement;
|
|
10077
|
+
}
|
|
10078
|
+
return true;
|
|
10079
|
+
}
|
|
10022
10080
|
function getElementVisibility(el) {
|
|
10023
10081
|
var _a2, _b2;
|
|
10024
10082
|
const win = ((_a2 = el.ownerDocument) == null ? void 0 : _a2.defaultView) ?? window;
|
|
10025
10083
|
const rect = el.getBoundingClientRect();
|
|
10026
10084
|
const viewportWidth = win.innerWidth || win.document.documentElement.clientWidth || 0;
|
|
10027
10085
|
const viewportHeight = win.innerHeight || win.document.documentElement.clientHeight || 0;
|
|
10028
|
-
const
|
|
10086
|
+
const elHasSize = rect.width > 0 && rect.height > 0;
|
|
10087
|
+
const isViewportVisible = elHasSize && rect.bottom > 0 && rect.right > 0 && rect.top < viewportHeight && rect.left < viewportWidth;
|
|
10029
10088
|
const style = (_b2 = win.getComputedStyle) == null ? void 0 : _b2.call(win, el);
|
|
10030
|
-
const
|
|
10031
|
-
const
|
|
10089
|
+
const isOwnStyleVisible2 = !!style && style.display !== "none" && style.visibility !== "hidden" && (parseFloat(style.opacity) || 0) > 0;
|
|
10090
|
+
const isCSSVisible = isOwnStyleVisible2 && isAncestorOpacityVisible$1(el, win);
|
|
10091
|
+
const isVisible = isCSSVisible && isViewportVisible;
|
|
10032
10092
|
let ratio = 0;
|
|
10033
10093
|
if (isVisible) {
|
|
10034
10094
|
const xOverlap = Math.max(
|
|
@@ -10045,6 +10105,9 @@ function getElementVisibility(el) {
|
|
|
10045
10105
|
}
|
|
10046
10106
|
return {
|
|
10047
10107
|
isVisible,
|
|
10108
|
+
isCSSVisible,
|
|
10109
|
+
isViewportVisible,
|
|
10110
|
+
hasSize: elHasSize,
|
|
10048
10111
|
ratio
|
|
10049
10112
|
};
|
|
10050
10113
|
}
|
|
@@ -10333,6 +10396,29 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
10333
10396
|
NodeType2[NodeType2["Comment"] = 5] = "Comment";
|
|
10334
10397
|
return NodeType2;
|
|
10335
10398
|
})(NodeType || {});
|
|
10399
|
+
const ht = {
|
|
10400
|
+
id: "i",
|
|
10401
|
+
"data-testid": "tid",
|
|
10402
|
+
"data-qa": "qa",
|
|
10403
|
+
"data-cy": "cy",
|
|
10404
|
+
"data-test": "dt",
|
|
10405
|
+
"aria-label": "al",
|
|
10406
|
+
"aria-labelledby": "alb",
|
|
10407
|
+
"aria-describedby": "adb",
|
|
10408
|
+
name: "n",
|
|
10409
|
+
href: "h",
|
|
10410
|
+
src: "s",
|
|
10411
|
+
type: "t",
|
|
10412
|
+
role: "r",
|
|
10413
|
+
alt: "at",
|
|
10414
|
+
title: "tt",
|
|
10415
|
+
for: "f",
|
|
10416
|
+
placeholder: "ph",
|
|
10417
|
+
text: "x"
|
|
10418
|
+
};
|
|
10419
|
+
Object.fromEntries(
|
|
10420
|
+
Object.entries(ht).map(([r2, t2]) => [t2, r2])
|
|
10421
|
+
);
|
|
10336
10422
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
10337
10423
|
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
10338
10424
|
for (var i$1 = 0; i$1 < chars.length; i$1++) {
|
|
@@ -10788,16 +10874,16 @@ function s(n2, o2) {
|
|
|
10788
10874
|
}(m), b = h.next(); !b.done; b = h.next()) {
|
|
10789
10875
|
var S = b.value;
|
|
10790
10876
|
if (void 0 === S) return c(p, g);
|
|
10791
|
-
var w2 = "string" == typeof S ? { target: S } : S, j2 = w2.target, E = w2.actions, R = void 0 === E ? [] : E, N = w2.cond,
|
|
10877
|
+
var w2 = "string" == typeof S ? { target: S } : S, j2 = w2.target, E = w2.actions, R = void 0 === E ? [] : E, N = w2.cond, O = void 0 === N ? function() {
|
|
10792
10878
|
return true;
|
|
10793
10879
|
} : N, _2 = void 0 === j2, k2 = null != j2 ? j2 : p, T = n2.states[k2];
|
|
10794
|
-
if (
|
|
10795
|
-
var
|
|
10880
|
+
if (O(g, d)) {
|
|
10881
|
+
var q2 = t(f((_2 ? r(R) : [].concat(x2.exit, R, T.entry).filter(function(t2) {
|
|
10796
10882
|
return t2;
|
|
10797
10883
|
})).map(function(t2) {
|
|
10798
10884
|
return i$2(t2, y._options.actions);
|
|
10799
|
-
}), g, d), 3), z2 =
|
|
10800
|
-
return { value: C, context: A, actions: z2, changed: j2 !== p || z2.length > 0 ||
|
|
10885
|
+
}), g, d), 3), z2 = q2[0], A = q2[1], B = q2[2], C = null != j2 ? j2 : p;
|
|
10886
|
+
return { value: C, context: A, actions: z2, changed: j2 !== p || z2.length > 0 || B, matches: a(C) };
|
|
10801
10887
|
}
|
|
10802
10888
|
}
|
|
10803
10889
|
} catch (t2) {
|