@appsurify-testmap/rrweb 3.4.0-alpha.1 → 3.6.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.cjs +34 -12
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +34 -12
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +34 -11
- package/dist/rrweb.umd.cjs.map +3 -3
- package/dist/rrweb.umd.min.cjs +34 -34
- package/dist/rrweb.umd.min.cjs.map +3 -3
- package/package.json +5 -5
package/dist/rrweb.umd.cjs
CHANGED
|
@@ -18644,9 +18644,7 @@ class NavigationManager {
|
|
|
18644
18644
|
});
|
|
18645
18645
|
this.settlingObserver.observe(this.doc, {
|
|
18646
18646
|
childList: true,
|
|
18647
|
-
subtree: true
|
|
18648
|
-
attributes: true,
|
|
18649
|
-
characterData: true
|
|
18647
|
+
subtree: true
|
|
18650
18648
|
});
|
|
18651
18649
|
this.settleCheckTimer = setTimeout(
|
|
18652
18650
|
() => this.checkSettled(),
|
|
@@ -18787,7 +18785,7 @@ class ProcessedNodeManager {
|
|
|
18787
18785
|
destroy() {
|
|
18788
18786
|
}
|
|
18789
18787
|
}
|
|
18790
|
-
const version$1 = "3.
|
|
18788
|
+
const version$1 = "3.6.0-alpha.1";
|
|
18791
18789
|
let wrappedEmit;
|
|
18792
18790
|
let takeFullSnapshot$1;
|
|
18793
18791
|
let canvasManager;
|
|
@@ -18910,6 +18908,11 @@ function record(options = {}) {
|
|
|
18910
18908
|
let checkoutPending = false;
|
|
18911
18909
|
let checkoutDebounceTimer = null;
|
|
18912
18910
|
let checkoutFreezeTimestamp = null;
|
|
18911
|
+
let lastScrollEmitTime = 0;
|
|
18912
|
+
const scrollSettleTime = (sampling.scroll || 100) * 2;
|
|
18913
|
+
let lastSignificantMutationTime = 0;
|
|
18914
|
+
const mutationGracePeriod = 500;
|
|
18915
|
+
let hadVisibilityCheckoutInGrace = false;
|
|
18913
18916
|
const eventProcessor = (e2) => {
|
|
18914
18917
|
for (const plugin3 of plugins || []) {
|
|
18915
18918
|
if (plugin3.eventProcessor) {
|
|
@@ -19000,6 +19003,13 @@ function record(options = {}) {
|
|
|
19000
19003
|
}
|
|
19001
19004
|
};
|
|
19002
19005
|
const wrappedMutationEmit = (m) => {
|
|
19006
|
+
var _a3, _b2;
|
|
19007
|
+
var _a2, _b;
|
|
19008
|
+
const totalChanges = ((_a3 = (_a2 = m.adds) == null ? void 0 : _a2.length) != null ? _a3 : 0) + ((_b2 = (_b = m.removes) == null ? void 0 : _b.length) != null ? _b2 : 0);
|
|
19009
|
+
if (totalChanges > 10) {
|
|
19010
|
+
lastSignificantMutationTime = nowTimestamp();
|
|
19011
|
+
hadVisibilityCheckoutInGrace = false;
|
|
19012
|
+
}
|
|
19003
19013
|
wrappedEmit({
|
|
19004
19014
|
type: EventType.IncrementalSnapshot,
|
|
19005
19015
|
data: __spreadValues({
|
|
@@ -19015,12 +19025,15 @@ function record(options = {}) {
|
|
|
19015
19025
|
}, v2)
|
|
19016
19026
|
});
|
|
19017
19027
|
};
|
|
19018
|
-
const wrappedScrollEmit = (p) =>
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
|
|
19028
|
+
const wrappedScrollEmit = (p) => {
|
|
19029
|
+
lastScrollEmitTime = nowTimestamp();
|
|
19030
|
+
wrappedEmit({
|
|
19031
|
+
type: EventType.IncrementalSnapshot,
|
|
19032
|
+
data: __spreadValues({
|
|
19033
|
+
source: IncrementalSource.Scroll
|
|
19034
|
+
}, p)
|
|
19035
|
+
});
|
|
19036
|
+
};
|
|
19024
19037
|
const wrappedCanvasMutationEmit = (p) => wrappedEmit({
|
|
19025
19038
|
type: EventType.IncrementalSnapshot,
|
|
19026
19039
|
data: __spreadValues({
|
|
@@ -19102,9 +19115,19 @@ function record(options = {}) {
|
|
|
19102
19115
|
mutationCb: recordVisibility ? wrappedVisibilityEmit : () => {
|
|
19103
19116
|
},
|
|
19104
19117
|
notifyActivity: checkoutEveryNvm != null ? (count) => {
|
|
19118
|
+
const now = nowTimestamp();
|
|
19119
|
+
const scrollRecent = now - lastScrollEmitTime < scrollSettleTime;
|
|
19120
|
+
const mutationRecent = now - lastSignificantMutationTime < mutationGracePeriod;
|
|
19121
|
+
if (scrollRecent && !mutationRecent) {
|
|
19122
|
+
return;
|
|
19123
|
+
}
|
|
19124
|
+
if (mutationRecent && hadVisibilityCheckoutInGrace) {
|
|
19125
|
+
return;
|
|
19126
|
+
}
|
|
19105
19127
|
visibilityMutationCount += count;
|
|
19106
19128
|
if (visibilityMutationCount >= checkoutEveryNvm) {
|
|
19107
19129
|
visibilityMutationCount = 0;
|
|
19130
|
+
hadVisibilityCheckoutInGrace = true;
|
|
19108
19131
|
if (checkoutDebounce) {
|
|
19109
19132
|
if (!checkoutPending) {
|
|
19110
19133
|
checkoutPending = true;
|
|
@@ -22386,7 +22409,7 @@ class Replayer {
|
|
|
22386
22409
|
this.config.logger.log(REPLAY_CONSOLE_PREFIX, ...args);
|
|
22387
22410
|
}
|
|
22388
22411
|
}
|
|
22389
|
-
const version = "3.
|
|
22412
|
+
const version = "3.6.0-alpha.1";
|
|
22390
22413
|
const { getVersion } = record;
|
|
22391
22414
|
const { isRecording } = record;
|
|
22392
22415
|
const { flushCustomEventQueue } = record;
|