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