@appsurify-testmap/rrweb-replay 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-replay.cjs +94 -8
- package/dist/rrweb-replay.cjs.map +1 -1
- package/dist/rrweb-replay.js +94 -8
- package/dist/rrweb-replay.js.map +1 -1
- package/dist/rrweb-replay.umd.cjs +94 -8
- package/dist/rrweb-replay.umd.cjs.map +2 -2
- package/dist/rrweb-replay.umd.min.cjs +27 -27
- package/dist/rrweb-replay.umd.min.cjs.map +3 -3
- package/package.json +3 -3
package/dist/rrweb-replay.cjs
CHANGED
|
@@ -227,6 +227,29 @@ try {
|
|
|
227
227
|
}
|
|
228
228
|
} catch (error) {
|
|
229
229
|
}
|
|
230
|
+
const ht$2 = {
|
|
231
|
+
id: "i",
|
|
232
|
+
"data-testid": "tid",
|
|
233
|
+
"data-qa": "qa",
|
|
234
|
+
"data-cy": "cy",
|
|
235
|
+
"data-test": "dt",
|
|
236
|
+
"aria-label": "al",
|
|
237
|
+
"aria-labelledby": "alb",
|
|
238
|
+
"aria-describedby": "adb",
|
|
239
|
+
name: "n",
|
|
240
|
+
href: "h",
|
|
241
|
+
src: "s",
|
|
242
|
+
type: "t",
|
|
243
|
+
role: "r",
|
|
244
|
+
alt: "at",
|
|
245
|
+
title: "tt",
|
|
246
|
+
for: "f",
|
|
247
|
+
placeholder: "ph",
|
|
248
|
+
text: "x"
|
|
249
|
+
};
|
|
250
|
+
Object.fromEntries(
|
|
251
|
+
Object.entries(ht$2).map(([r2, t2]) => [t2, r2])
|
|
252
|
+
);
|
|
230
253
|
const MEDIA_SELECTOR = /(max|min)-device-(width|height)/;
|
|
231
254
|
const MEDIA_SELECTOR_GLOBAL = new RegExp(MEDIA_SELECTOR.source, "g");
|
|
232
255
|
const mediaSelectorPlugin = {
|
|
@@ -4520,6 +4543,29 @@ try {
|
|
|
4520
4543
|
}
|
|
4521
4544
|
} catch (error) {
|
|
4522
4545
|
}
|
|
4546
|
+
const ht$1 = {
|
|
4547
|
+
id: "i",
|
|
4548
|
+
"data-testid": "tid",
|
|
4549
|
+
"data-qa": "qa",
|
|
4550
|
+
"data-cy": "cy",
|
|
4551
|
+
"data-test": "dt",
|
|
4552
|
+
"aria-label": "al",
|
|
4553
|
+
"aria-labelledby": "alb",
|
|
4554
|
+
"aria-describedby": "adb",
|
|
4555
|
+
name: "n",
|
|
4556
|
+
href: "h",
|
|
4557
|
+
src: "s",
|
|
4558
|
+
type: "t",
|
|
4559
|
+
role: "r",
|
|
4560
|
+
alt: "at",
|
|
4561
|
+
title: "tt",
|
|
4562
|
+
for: "f",
|
|
4563
|
+
placeholder: "ph",
|
|
4564
|
+
text: "x"
|
|
4565
|
+
};
|
|
4566
|
+
Object.fromEntries(
|
|
4567
|
+
Object.entries(ht$1).map(([r2, t2]) => [t2, r2])
|
|
4568
|
+
);
|
|
4523
4569
|
function getDefaultExportFromCjs(x2) {
|
|
4524
4570
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
4525
4571
|
}
|
|
@@ -9621,16 +9667,30 @@ function describeNode(el) {
|
|
|
9621
9667
|
const classes = el.classList.length ? "." + Array.from(el.classList).join(".") : "";
|
|
9622
9668
|
return `${tag}${id}${classes}`;
|
|
9623
9669
|
}
|
|
9670
|
+
function isAncestorOpacityVisible$1(el, win) {
|
|
9671
|
+
var _a2;
|
|
9672
|
+
let node2 = el.parentElement;
|
|
9673
|
+
while (node2) {
|
|
9674
|
+
const s2 = (_a2 = win.getComputedStyle) == null ? void 0 : _a2.call(win, node2);
|
|
9675
|
+
if (s2 && (parseFloat(s2.opacity) || 0) <= 0) {
|
|
9676
|
+
return false;
|
|
9677
|
+
}
|
|
9678
|
+
node2 = node2.parentElement;
|
|
9679
|
+
}
|
|
9680
|
+
return true;
|
|
9681
|
+
}
|
|
9624
9682
|
function getElementVisibility(el) {
|
|
9625
9683
|
var _a2, _b;
|
|
9626
9684
|
const win = ((_a2 = el.ownerDocument) == null ? void 0 : _a2.defaultView) ?? window;
|
|
9627
9685
|
const rect = el.getBoundingClientRect();
|
|
9628
9686
|
const viewportWidth = win.innerWidth || win.document.documentElement.clientWidth || 0;
|
|
9629
9687
|
const viewportHeight = win.innerHeight || win.document.documentElement.clientHeight || 0;
|
|
9630
|
-
const
|
|
9688
|
+
const elHasSize = rect.width > 0 && rect.height > 0;
|
|
9689
|
+
const isViewportVisible = elHasSize && rect.bottom > 0 && rect.right > 0 && rect.top < viewportHeight && rect.left < viewportWidth;
|
|
9631
9690
|
const style = (_b = win.getComputedStyle) == null ? void 0 : _b.call(win, el);
|
|
9632
|
-
const
|
|
9633
|
-
const
|
|
9691
|
+
const isOwnStyleVisible2 = !!style && style.display !== "none" && style.visibility !== "hidden" && (parseFloat(style.opacity) || 0) > 0;
|
|
9692
|
+
const isCSSVisible = isOwnStyleVisible2 && isAncestorOpacityVisible$1(el, win);
|
|
9693
|
+
const isVisible = isCSSVisible && isViewportVisible;
|
|
9634
9694
|
let ratio = 0;
|
|
9635
9695
|
if (isVisible) {
|
|
9636
9696
|
const xOverlap = Math.max(
|
|
@@ -9647,6 +9707,9 @@ function getElementVisibility(el) {
|
|
|
9647
9707
|
}
|
|
9648
9708
|
return {
|
|
9649
9709
|
isVisible,
|
|
9710
|
+
isCSSVisible,
|
|
9711
|
+
isViewportVisible,
|
|
9712
|
+
hasSize: elHasSize,
|
|
9650
9713
|
ratio
|
|
9651
9714
|
};
|
|
9652
9715
|
}
|
|
@@ -9935,6 +9998,29 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
9935
9998
|
NodeType2[NodeType2["Comment"] = 5] = "Comment";
|
|
9936
9999
|
return NodeType2;
|
|
9937
10000
|
})(NodeType || {});
|
|
10001
|
+
const ht = {
|
|
10002
|
+
id: "i",
|
|
10003
|
+
"data-testid": "tid",
|
|
10004
|
+
"data-qa": "qa",
|
|
10005
|
+
"data-cy": "cy",
|
|
10006
|
+
"data-test": "dt",
|
|
10007
|
+
"aria-label": "al",
|
|
10008
|
+
"aria-labelledby": "alb",
|
|
10009
|
+
"aria-describedby": "adb",
|
|
10010
|
+
name: "n",
|
|
10011
|
+
href: "h",
|
|
10012
|
+
src: "s",
|
|
10013
|
+
type: "t",
|
|
10014
|
+
role: "r",
|
|
10015
|
+
alt: "at",
|
|
10016
|
+
title: "tt",
|
|
10017
|
+
for: "f",
|
|
10018
|
+
placeholder: "ph",
|
|
10019
|
+
text: "x"
|
|
10020
|
+
};
|
|
10021
|
+
Object.fromEntries(
|
|
10022
|
+
Object.entries(ht).map(([r2, t2]) => [t2, r2])
|
|
10023
|
+
);
|
|
9938
10024
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
9939
10025
|
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
9940
10026
|
for (var i$1 = 0; i$1 < chars.length; i$1++) {
|
|
@@ -10390,16 +10476,16 @@ function s(n2, o2) {
|
|
|
10390
10476
|
}(m), b = h.next(); !b.done; b = h.next()) {
|
|
10391
10477
|
var S = b.value;
|
|
10392
10478
|
if (void 0 === S) return c(p, g);
|
|
10393
|
-
var w2 = "string" == typeof S ? { target: S } : S, j2 = w2.target, E = w2.actions, R = void 0 === E ? [] : E, N = w2.cond,
|
|
10479
|
+
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() {
|
|
10394
10480
|
return true;
|
|
10395
10481
|
} : N, _2 = void 0 === j2, k2 = null != j2 ? j2 : p, T = n2.states[k2];
|
|
10396
|
-
if (
|
|
10397
|
-
var
|
|
10482
|
+
if (O(g, d)) {
|
|
10483
|
+
var q2 = t(f((_2 ? r(R) : [].concat(x2.exit, R, T.entry).filter(function(t2) {
|
|
10398
10484
|
return t2;
|
|
10399
10485
|
})).map(function(t2) {
|
|
10400
10486
|
return i(t2, y._options.actions);
|
|
10401
|
-
}), g, d), 3), z2 =
|
|
10402
|
-
return { value: C, context: A, actions: z2, changed: j2 !== p || z2.length > 0 ||
|
|
10487
|
+
}), g, d), 3), z2 = q2[0], A = q2[1], B = q2[2], C = null != j2 ? j2 : p;
|
|
10488
|
+
return { value: C, context: A, actions: z2, changed: j2 !== p || z2.length > 0 || B, matches: a(C) };
|
|
10403
10489
|
}
|
|
10404
10490
|
}
|
|
10405
10491
|
} catch (t2) {
|