@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 CHANGED
@@ -1881,7 +1881,8 @@ function serializeNodeWithId(n2, options) {
1881
1881
  onStylesheetLoad,
1882
1882
  stylesheetLoadTimeout,
1883
1883
  keepIframeSrcFn,
1884
- cssCaptured: false
1884
+ cssCaptured: false,
1885
+ captureBlockBoundingBoxes
1885
1886
  };
1886
1887
  if (serializedNode.type === NodeType$2.Element && serializedNode.tagName === "textarea" && serializedNode.attributes.value !== void 0) ;
1887
1888
  else {
@@ -1947,7 +1948,8 @@ function serializeNodeWithId(n2, options) {
1947
1948
  iframeLoadTimeout,
1948
1949
  onStylesheetLoad,
1949
1950
  stylesheetLoadTimeout,
1950
- keepIframeSrcFn
1951
+ keepIframeSrcFn,
1952
+ captureBlockBoundingBoxes
1951
1953
  });
1952
1954
  if (serializedIframeNode) {
1953
1955
  onIframeLoad(
@@ -1988,7 +1990,8 @@ function serializeNodeWithId(n2, options) {
1988
1990
  iframeLoadTimeout,
1989
1991
  onStylesheetLoad,
1990
1992
  stylesheetLoadTimeout,
1991
- keepIframeSrcFn
1993
+ keepIframeSrcFn,
1994
+ captureBlockBoundingBoxes
1992
1995
  });
1993
1996
  if (serializedLinkNode) {
1994
1997
  onStylesheetLoad(
@@ -10356,7 +10359,7 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
10356
10359
  __publicField(this, "exitMutTracker");
10357
10360
  __publicField(this, "interval", 50);
10358
10361
  __publicField(this, "exitInterval", 100);
10359
- __publicField(this, "mutThreshold", 250);
10362
+ __publicField(this, "mutThreshold", 500);
10360
10363
  __publicField(this, "inGlobalStorm", false);
10361
10364
  __publicField(this, "currentStormStartedAt", -1);
10362
10365
  __publicField(this, "stormTimeLimit", 5e3);
@@ -10387,6 +10390,10 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
10387
10390
  this.resetExitTracker();
10388
10391
  this.currentStormStartedAt = -1;
10389
10392
  }
10393
+ unregisterBuffer(bufId) {
10394
+ if (!bufId || !(bufId in this.handleStormFinishMethods)) return;
10395
+ delete this.handleStormFinishMethods[bufId];
10396
+ }
10390
10397
  stormStopped(stoppedByBuffer) {
10391
10398
  if (this.debounceTimeout) clearTimeout(this.debounceTimeout);
10392
10399
  this.inGlobalStorm = false;
@@ -10654,7 +10661,7 @@ class MutationBuffer {
10654
10661
  __publicField(this, "stormBatches", []);
10655
10662
  __publicField(this, "stormInfo", null);
10656
10663
  __publicField(this, "stormSettings", {
10657
- batchSize: 50,
10664
+ batchSize: 250,
10658
10665
  //was 300
10659
10666
  timeout: 50,
10660
10667
  //was 50
@@ -10739,8 +10746,8 @@ class MutationBuffer {
10739
10746
  }
10740
10747
  if (this.stormInfo != null || muts.length >= this.stormSettings.batchSize) {
10741
10748
  this.handleStormMutations(muts);
10749
+ return;
10742
10750
  }
10743
- return;
10744
10751
  }
10745
10752
  for (const mut of muts) {
10746
10753
  this.processMutation(mut);
@@ -11153,7 +11160,7 @@ class MutationBuffer {
11153
11160
  const n2 = m.removedNodes[i2];
11154
11161
  const nodeId = this.mirror.getId(n2);
11155
11162
  if (isIgnored(n2, this.mirror, this.slimDOMOptions) || !isSerialized(n2, this.mirror)) {
11156
- return;
11163
+ continue;
11157
11164
  }
11158
11165
  if (this.addedSet.has(n2)) {
11159
11166
  deepDelete(this.addedSet, n2);
@@ -11263,6 +11270,10 @@ class MutationBuffer {
11263
11270
  reset() {
11264
11271
  this.shadowDomManager.reset();
11265
11272
  this.canvasManager.reset();
11273
+ this.unregisterBuffer();
11274
+ }
11275
+ unregisterBuffer() {
11276
+ mutationRateLimiter.unregisterBuffer(this.bufId);
11266
11277
  }
11267
11278
  }
11268
11279
  function deepDelete(addsSet, n2) {