@appsurify-testmap/rrweb-all 2.1.2-alpha.1 → 2.1.2-alpha.5
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-all.cjs +45 -19
- package/dist/rrweb-all.cjs.map +1 -1
- package/dist/rrweb-all.js +45 -19
- package/dist/rrweb-all.js.map +1 -1
- package/dist/rrweb-all.umd.cjs +44 -19
- package/dist/rrweb-all.umd.cjs.map +2 -2
- package/dist/rrweb-all.umd.min.cjs +20 -20
- package/dist/rrweb-all.umd.min.cjs.map +2 -2
- package/package.json +4 -4
package/dist/rrweb-all.umd.cjs
CHANGED
|
@@ -884,10 +884,13 @@ function inspectInlineEventHandlers$1() {
|
|
|
884
884
|
});
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
887
|
+
try {
|
|
888
|
+
if (document.readyState === "complete" || document.readyState === "interactive") {
|
|
889
|
+
inspectInlineEventHandlers$1();
|
|
890
|
+
} else {
|
|
891
|
+
document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers$1);
|
|
892
|
+
}
|
|
893
|
+
} catch (error) {
|
|
891
894
|
}
|
|
892
895
|
let _id = 1;
|
|
893
896
|
const tagNameRegex = new RegExp("[^a-z0-9-_:]");
|
|
@@ -6113,10 +6116,13 @@ function inspectInlineEventHandlers() {
|
|
|
6113
6116
|
});
|
|
6114
6117
|
});
|
|
6115
6118
|
}
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6119
|
+
try {
|
|
6120
|
+
if (document.readyState === "complete" || document.readyState === "interactive") {
|
|
6121
|
+
inspectInlineEventHandlers();
|
|
6122
|
+
} else {
|
|
6123
|
+
document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers);
|
|
6124
|
+
}
|
|
6125
|
+
} catch (error) {
|
|
6120
6126
|
}
|
|
6121
6127
|
function getDefaultExportFromCjs(x2) {
|
|
6122
6128
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
@@ -14804,6 +14810,7 @@ class VisibilityManager {
|
|
|
14804
14810
|
__publicField(this, "mirror");
|
|
14805
14811
|
__publicField(this, "mutationCb");
|
|
14806
14812
|
__publicField(this, "rafId", null);
|
|
14813
|
+
__publicField(this, "intervalId", null);
|
|
14807
14814
|
__publicField(this, "rafThrottle");
|
|
14808
14815
|
__publicField(this, "lastFlushTime", 0);
|
|
14809
14816
|
__publicField(this, "elements", /* @__PURE__ */ new Set());
|
|
@@ -14836,7 +14843,7 @@ class VisibilityManager {
|
|
|
14836
14843
|
this.throttle = Number((_c = visibilitySampling == null ? void 0 : visibilitySampling.throttle) != null ? _c : 100);
|
|
14837
14844
|
this.threshold = Number((_d = visibilitySampling == null ? void 0 : visibilitySampling.threshold) != null ? _d : 0.5);
|
|
14838
14845
|
this.sensitivity = Number((_e = visibilitySampling == null ? void 0 : visibilitySampling.sensitivity) != null ? _e : 0.05);
|
|
14839
|
-
this.rafThrottle = Number((_f = visibilitySampling == null ? void 0 : visibilitySampling.rafThrottle) != null ? _f :
|
|
14846
|
+
this.rafThrottle = Number((_f = visibilitySampling == null ? void 0 : visibilitySampling.rafThrottle) != null ? _f : 50);
|
|
14840
14847
|
doc.querySelectorAll("*").forEach((el) => this.observe(el));
|
|
14841
14848
|
const mo = new MutationObserver((mutations) => {
|
|
14842
14849
|
mutations.forEach((m) => {
|
|
@@ -14859,14 +14866,25 @@ class VisibilityManager {
|
|
|
14859
14866
|
startPendingFlushLoop() {
|
|
14860
14867
|
if (this.disabled)
|
|
14861
14868
|
return;
|
|
14862
|
-
|
|
14863
|
-
|
|
14864
|
-
this.lastFlushTime
|
|
14865
|
-
|
|
14866
|
-
|
|
14869
|
+
if (typeof requestAnimationFrame === "function") {
|
|
14870
|
+
const loop = (timestamp) => {
|
|
14871
|
+
if (timestamp - this.lastFlushTime >= this.rafThrottle) {
|
|
14872
|
+
this.lastFlushTime = timestamp;
|
|
14873
|
+
this.flushPendingVisibilityMutations();
|
|
14874
|
+
}
|
|
14875
|
+
this.rafId = requestAnimationFrame(loop);
|
|
14876
|
+
};
|
|
14867
14877
|
this.rafId = requestAnimationFrame(loop);
|
|
14868
|
-
}
|
|
14869
|
-
|
|
14878
|
+
} else {
|
|
14879
|
+
const loop = () => {
|
|
14880
|
+
const now = performance.now();
|
|
14881
|
+
if (now - this.lastFlushTime >= this.rafThrottle) {
|
|
14882
|
+
this.lastFlushTime = now;
|
|
14883
|
+
this.flushPendingVisibilityMutations();
|
|
14884
|
+
}
|
|
14885
|
+
};
|
|
14886
|
+
this.intervalId = setInterval(loop, this.rafThrottle);
|
|
14887
|
+
}
|
|
14870
14888
|
}
|
|
14871
14889
|
flushPendingVisibilityMutations() {
|
|
14872
14890
|
if (this.disabled)
|
|
@@ -14941,6 +14959,7 @@ class VisibilityManager {
|
|
|
14941
14959
|
}
|
|
14942
14960
|
unfreeze() {
|
|
14943
14961
|
this.frozen = false;
|
|
14962
|
+
this.flushPendingVisibilityMutations();
|
|
14944
14963
|
}
|
|
14945
14964
|
lock() {
|
|
14946
14965
|
this.locked = true;
|
|
@@ -14952,11 +14971,17 @@ class VisibilityManager {
|
|
|
14952
14971
|
this.elements.clear();
|
|
14953
14972
|
this.previousState.clear();
|
|
14954
14973
|
this.pending.clear();
|
|
14955
|
-
if (this.rafId)
|
|
14974
|
+
if (this.rafId) {
|
|
14956
14975
|
cancelAnimationFrame(this.rafId);
|
|
14976
|
+
this.rafId = null;
|
|
14977
|
+
}
|
|
14978
|
+
if (this.intervalId) {
|
|
14979
|
+
clearInterval(this.intervalId);
|
|
14980
|
+
this.intervalId = null;
|
|
14981
|
+
}
|
|
14957
14982
|
}
|
|
14958
14983
|
}
|
|
14959
|
-
const version$1 = "2.1.2-alpha.
|
|
14984
|
+
const version$1 = "2.1.2-alpha.5";
|
|
14960
14985
|
let wrappedEmit;
|
|
14961
14986
|
let takeFullSnapshot$1;
|
|
14962
14987
|
let canvasManager;
|
|
@@ -18474,7 +18499,7 @@ class Replayer {
|
|
|
18474
18499
|
this.config.logger.log(REPLAY_CONSOLE_PREFIX, ...args);
|
|
18475
18500
|
}
|
|
18476
18501
|
}
|
|
18477
|
-
const version = "2.1.2-alpha.
|
|
18502
|
+
const version = "2.1.2-alpha.5";
|
|
18478
18503
|
const { getVersion } = record;
|
|
18479
18504
|
const { isRecording } = record;
|
|
18480
18505
|
const { flushCustomEventQueue } = record;
|