@glimt/record 0.0.87 → 0.0.89
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/record.cjs +18 -7
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +18 -7
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +18 -7
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +22 -22
- package/dist/record.umd.min.cjs.map +3 -3
- package/package.json +2 -2
package/dist/record.umd.cjs
CHANGED
|
@@ -1913,7 +1913,8 @@ function serializeNodeWithId(n2, options) {
|
|
|
1913
1913
|
onStylesheetLoad,
|
|
1914
1914
|
stylesheetLoadTimeout,
|
|
1915
1915
|
keepIframeSrcFn,
|
|
1916
|
-
cssCaptured: false
|
|
1916
|
+
cssCaptured: false,
|
|
1917
|
+
captureBlockBoundingBoxes
|
|
1917
1918
|
};
|
|
1918
1919
|
if (serializedNode.type === NodeType$2.Element && serializedNode.tagName === "textarea" && serializedNode.attributes.value !== void 0) ;
|
|
1919
1920
|
else {
|
|
@@ -1979,7 +1980,8 @@ function serializeNodeWithId(n2, options) {
|
|
|
1979
1980
|
iframeLoadTimeout,
|
|
1980
1981
|
onStylesheetLoad,
|
|
1981
1982
|
stylesheetLoadTimeout,
|
|
1982
|
-
keepIframeSrcFn
|
|
1983
|
+
keepIframeSrcFn,
|
|
1984
|
+
captureBlockBoundingBoxes
|
|
1983
1985
|
});
|
|
1984
1986
|
if (serializedIframeNode) {
|
|
1985
1987
|
onIframeLoad(
|
|
@@ -2020,7 +2022,8 @@ function serializeNodeWithId(n2, options) {
|
|
|
2020
2022
|
iframeLoadTimeout,
|
|
2021
2023
|
onStylesheetLoad,
|
|
2022
2024
|
stylesheetLoadTimeout,
|
|
2023
|
-
keepIframeSrcFn
|
|
2025
|
+
keepIframeSrcFn,
|
|
2026
|
+
captureBlockBoundingBoxes
|
|
2024
2027
|
});
|
|
2025
2028
|
if (serializedLinkNode) {
|
|
2026
2029
|
onStylesheetLoad(
|
|
@@ -10397,7 +10400,7 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
|
|
|
10397
10400
|
__publicField(this, "exitMutTracker");
|
|
10398
10401
|
__publicField(this, "interval", 50);
|
|
10399
10402
|
__publicField(this, "exitInterval", 100);
|
|
10400
|
-
__publicField(this, "mutThreshold",
|
|
10403
|
+
__publicField(this, "mutThreshold", 500);
|
|
10401
10404
|
__publicField(this, "inGlobalStorm", false);
|
|
10402
10405
|
__publicField(this, "currentStormStartedAt", -1);
|
|
10403
10406
|
__publicField(this, "stormTimeLimit", 5e3);
|
|
@@ -10428,6 +10431,10 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
|
|
|
10428
10431
|
this.resetExitTracker();
|
|
10429
10432
|
this.currentStormStartedAt = -1;
|
|
10430
10433
|
}
|
|
10434
|
+
unregisterBuffer(bufId) {
|
|
10435
|
+
if (!bufId || !(bufId in this.handleStormFinishMethods)) return;
|
|
10436
|
+
delete this.handleStormFinishMethods[bufId];
|
|
10437
|
+
}
|
|
10431
10438
|
stormStopped(stoppedByBuffer) {
|
|
10432
10439
|
if (this.debounceTimeout) clearTimeout(this.debounceTimeout);
|
|
10433
10440
|
this.inGlobalStorm = false;
|
|
@@ -10695,7 +10702,7 @@ class MutationBuffer {
|
|
|
10695
10702
|
__publicField(this, "stormBatches", []);
|
|
10696
10703
|
__publicField(this, "stormInfo", null);
|
|
10697
10704
|
__publicField(this, "stormSettings", {
|
|
10698
|
-
batchSize:
|
|
10705
|
+
batchSize: 250,
|
|
10699
10706
|
//was 300
|
|
10700
10707
|
timeout: 50,
|
|
10701
10708
|
//was 50
|
|
@@ -10780,8 +10787,8 @@ class MutationBuffer {
|
|
|
10780
10787
|
}
|
|
10781
10788
|
if (this.stormInfo != null || muts.length >= this.stormSettings.batchSize) {
|
|
10782
10789
|
this.handleStormMutations(muts);
|
|
10790
|
+
return;
|
|
10783
10791
|
}
|
|
10784
|
-
return;
|
|
10785
10792
|
}
|
|
10786
10793
|
for (const mut of muts) {
|
|
10787
10794
|
this.processMutation(mut);
|
|
@@ -11194,7 +11201,7 @@ class MutationBuffer {
|
|
|
11194
11201
|
const n2 = m.removedNodes[i2];
|
|
11195
11202
|
const nodeId = this.mirror.getId(n2);
|
|
11196
11203
|
if (isIgnored(n2, this.mirror, this.slimDOMOptions) || !isSerialized(n2, this.mirror)) {
|
|
11197
|
-
|
|
11204
|
+
continue;
|
|
11198
11205
|
}
|
|
11199
11206
|
if (this.addedSet.has(n2)) {
|
|
11200
11207
|
deepDelete(this.addedSet, n2);
|
|
@@ -11304,6 +11311,10 @@ class MutationBuffer {
|
|
|
11304
11311
|
reset() {
|
|
11305
11312
|
this.shadowDomManager.reset();
|
|
11306
11313
|
this.canvasManager.reset();
|
|
11314
|
+
this.unregisterBuffer();
|
|
11315
|
+
}
|
|
11316
|
+
unregisterBuffer() {
|
|
11317
|
+
mutationRateLimiter.unregisterBuffer(this.bufId);
|
|
11307
11318
|
}
|
|
11308
11319
|
}
|
|
11309
11320
|
function deepDelete(addsSet, n2) {
|