@appsurify-testmap/rrweb-all 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-all.cjs +34 -12
- package/dist/rrweb-all.cjs.map +1 -1
- package/dist/rrweb-all.js +34 -12
- package/dist/rrweb-all.js.map +1 -1
- package/dist/rrweb-all.umd.cjs +34 -11
- package/dist/rrweb-all.umd.cjs.map +2 -2
- package/dist/rrweb-all.umd.min.cjs +32 -32
- package/dist/rrweb-all.umd.min.cjs.map +3 -3
- package/package.json +4 -4
package/dist/rrweb-all.cjs
CHANGED
|
@@ -18103,9 +18103,7 @@ class NavigationManager {
|
|
|
18103
18103
|
});
|
|
18104
18104
|
this.settlingObserver.observe(this.doc, {
|
|
18105
18105
|
childList: true,
|
|
18106
|
-
subtree: true
|
|
18107
|
-
attributes: true,
|
|
18108
|
-
characterData: true
|
|
18106
|
+
subtree: true
|
|
18109
18107
|
});
|
|
18110
18108
|
this.settleCheckTimer = setTimeout(
|
|
18111
18109
|
() => this.checkSettled(),
|
|
@@ -18240,7 +18238,7 @@ class ProcessedNodeManager {
|
|
|
18240
18238
|
destroy() {
|
|
18241
18239
|
}
|
|
18242
18240
|
}
|
|
18243
|
-
const version$1 = "3.
|
|
18241
|
+
const version$1 = "3.6.0-alpha.1";
|
|
18244
18242
|
let wrappedEmit;
|
|
18245
18243
|
let takeFullSnapshot$1;
|
|
18246
18244
|
let canvasManager;
|
|
@@ -18363,6 +18361,11 @@ function record(options = {}) {
|
|
|
18363
18361
|
let checkoutPending = false;
|
|
18364
18362
|
let checkoutDebounceTimer = null;
|
|
18365
18363
|
let checkoutFreezeTimestamp = null;
|
|
18364
|
+
let lastScrollEmitTime = 0;
|
|
18365
|
+
const scrollSettleTime = (sampling.scroll || 100) * 2;
|
|
18366
|
+
let lastSignificantMutationTime = 0;
|
|
18367
|
+
const mutationGracePeriod = 500;
|
|
18368
|
+
let hadVisibilityCheckoutInGrace = false;
|
|
18366
18369
|
const eventProcessor = (e2) => {
|
|
18367
18370
|
for (const plugin3 of plugins || []) {
|
|
18368
18371
|
if (plugin3.eventProcessor) {
|
|
@@ -18453,6 +18456,12 @@ function record(options = {}) {
|
|
|
18453
18456
|
}
|
|
18454
18457
|
};
|
|
18455
18458
|
const wrappedMutationEmit = (m) => {
|
|
18459
|
+
var _a2, _b2;
|
|
18460
|
+
const totalChanges = (((_a2 = m.adds) == null ? void 0 : _a2.length) ?? 0) + (((_b2 = m.removes) == null ? void 0 : _b2.length) ?? 0);
|
|
18461
|
+
if (totalChanges > 10) {
|
|
18462
|
+
lastSignificantMutationTime = nowTimestamp();
|
|
18463
|
+
hadVisibilityCheckoutInGrace = false;
|
|
18464
|
+
}
|
|
18456
18465
|
wrappedEmit({
|
|
18457
18466
|
type: EventType.IncrementalSnapshot,
|
|
18458
18467
|
data: {
|
|
@@ -18470,13 +18479,16 @@ function record(options = {}) {
|
|
|
18470
18479
|
}
|
|
18471
18480
|
});
|
|
18472
18481
|
};
|
|
18473
|
-
const wrappedScrollEmit = (p) =>
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
|
|
18477
|
-
|
|
18478
|
-
|
|
18479
|
-
|
|
18482
|
+
const wrappedScrollEmit = (p) => {
|
|
18483
|
+
lastScrollEmitTime = nowTimestamp();
|
|
18484
|
+
wrappedEmit({
|
|
18485
|
+
type: EventType.IncrementalSnapshot,
|
|
18486
|
+
data: {
|
|
18487
|
+
source: IncrementalSource.Scroll,
|
|
18488
|
+
...p
|
|
18489
|
+
}
|
|
18490
|
+
});
|
|
18491
|
+
};
|
|
18480
18492
|
const wrappedCanvasMutationEmit = (p) => wrappedEmit({
|
|
18481
18493
|
type: EventType.IncrementalSnapshot,
|
|
18482
18494
|
data: {
|
|
@@ -18560,9 +18572,19 @@ function record(options = {}) {
|
|
|
18560
18572
|
mutationCb: recordVisibility ? wrappedVisibilityEmit : () => {
|
|
18561
18573
|
},
|
|
18562
18574
|
notifyActivity: checkoutEveryNvm != null ? (count) => {
|
|
18575
|
+
const now = nowTimestamp();
|
|
18576
|
+
const scrollRecent = now - lastScrollEmitTime < scrollSettleTime;
|
|
18577
|
+
const mutationRecent = now - lastSignificantMutationTime < mutationGracePeriod;
|
|
18578
|
+
if (scrollRecent && !mutationRecent) {
|
|
18579
|
+
return;
|
|
18580
|
+
}
|
|
18581
|
+
if (mutationRecent && hadVisibilityCheckoutInGrace) {
|
|
18582
|
+
return;
|
|
18583
|
+
}
|
|
18563
18584
|
visibilityMutationCount += count;
|
|
18564
18585
|
if (visibilityMutationCount >= checkoutEveryNvm) {
|
|
18565
18586
|
visibilityMutationCount = 0;
|
|
18587
|
+
hadVisibilityCheckoutInGrace = true;
|
|
18566
18588
|
if (checkoutDebounce) {
|
|
18567
18589
|
if (!checkoutPending) {
|
|
18568
18590
|
checkoutPending = true;
|
|
@@ -21811,7 +21833,7 @@ class Replayer {
|
|
|
21811
21833
|
this.config.logger.log(REPLAY_CONSOLE_PREFIX, ...args);
|
|
21812
21834
|
}
|
|
21813
21835
|
}
|
|
21814
|
-
const version = "3.
|
|
21836
|
+
const version = "3.6.0-alpha.1";
|
|
21815
21837
|
const { getVersion } = record;
|
|
21816
21838
|
const { isRecording } = record;
|
|
21817
21839
|
const { flushCustomEventQueue } = record;
|