@highlight-run/rrweb 2.0.7 → 2.0.8

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.
@@ -1,6 +1,6 @@
1
1
  import { createMirror, snapshot } from '../../../rrweb-snapshot/es/rrweb-snapshot.js';
2
2
  import { initObservers, mutationBuffers } from './observer.js';
3
- import { polyfill, on, getWindowWidth, getWindowHeight, isSerializedIframe, isSerializedStylesheet, hasShadowRoot } from '../utils.js';
3
+ import { polyfill, on, getWindowWidth, getWindowHeight, isSerializedIframe, hasShadowRoot } from '../utils.js';
4
4
  import { EventType, IncrementalSource } from '../types.js';
5
5
  import { IframeManager } from './iframe-manager.js';
6
6
  import { ShadowDomManager } from './shadow-dom-manager.js';
@@ -180,9 +180,6 @@ function record(options = {}) {
180
180
  if (isSerializedIframe(n, mirror)) {
181
181
  iframeManager.addIframe(n);
182
182
  }
183
- if (isSerializedStylesheet(n, mirror)) {
184
- stylesheetManager.addStylesheet(n);
185
- }
186
183
  if (hasShadowRoot(n)) {
187
184
  shadowDomManager.addShadowRoot(n.shadowRoot, document);
188
185
  }
@@ -192,7 +189,7 @@ function record(options = {}) {
192
189
  shadowDomManager.observeAttachShadow(iframe);
193
190
  },
194
191
  onStylesheetLoad: (linkEl, childSn) => {
195
- stylesheetManager.attachStylesheet(linkEl, childSn, mirror);
192
+ this.stylesheetManager.attachStylesheet(linkEl, childSn, this.mirror);
196
193
  },
197
194
  keepIframeSrcFn,
198
195
  });
@@ -924,8 +924,6 @@ function serializeNodeWithId(n, options) {
924
924
  onSerialize: onSerialize,
925
925
  onIframeLoad: onIframeLoad,
926
926
  iframeLoadTimeout: iframeLoadTimeout,
927
- onStylesheetLoad: onStylesheetLoad,
928
- stylesheetLoadTimeout: stylesheetLoadTimeout,
929
927
  keepIframeSrcFn: keepIframeSrcFn,
930
928
  enableStrictPrivacy: enableStrictPrivacy
931
929
  });
@@ -959,9 +957,8 @@ function serializeNodeWithId(n, options) {
959
957
  preserveWhiteSpace: preserveWhiteSpace,
960
958
  onSerialize: onSerialize,
961
959
  onIframeLoad: onIframeLoad,
962
- iframeLoadTimeout: iframeLoadTimeout,
963
960
  onStylesheetLoad: onStylesheetLoad,
964
- stylesheetLoadTimeout: stylesheetLoadTimeout,
961
+ iframeLoadTimeout: iframeLoadTimeout,
965
962
  keepIframeSrcFn: keepIframeSrcFn,
966
963
  enableStrictPrivacy: enableStrictPrivacy
967
964
  });
@@ -926,8 +926,6 @@ function serializeNodeWithId(n, options) {
926
926
  onSerialize: onSerialize,
927
927
  onIframeLoad: onIframeLoad,
928
928
  iframeLoadTimeout: iframeLoadTimeout,
929
- onStylesheetLoad: onStylesheetLoad,
930
- stylesheetLoadTimeout: stylesheetLoadTimeout,
931
929
  keepIframeSrcFn: keepIframeSrcFn,
932
930
  enableStrictPrivacy: enableStrictPrivacy
933
931
  });
@@ -961,9 +959,8 @@ function serializeNodeWithId(n, options) {
961
959
  preserveWhiteSpace: preserveWhiteSpace,
962
960
  onSerialize: onSerialize,
963
961
  onIframeLoad: onIframeLoad,
964
- iframeLoadTimeout: iframeLoadTimeout,
965
962
  onStylesheetLoad: onStylesheetLoad,
966
- stylesheetLoadTimeout: stylesheetLoadTimeout,
963
+ iframeLoadTimeout: iframeLoadTimeout,
967
964
  keepIframeSrcFn: keepIframeSrcFn,
968
965
  enableStrictPrivacy: enableStrictPrivacy
969
966
  });
@@ -3231,9 +3228,6 @@ function record(options = {}) {
3231
3228
  if (isSerializedIframe(n, mirror)) {
3232
3229
  iframeManager.addIframe(n);
3233
3230
  }
3234
- if (isSerializedStylesheet(n, mirror)) {
3235
- stylesheetManager.addStylesheet(n);
3236
- }
3237
3231
  if (hasShadowRoot(n)) {
3238
3232
  shadowDomManager.addShadowRoot(n.shadowRoot, document);
3239
3233
  }
@@ -3243,7 +3237,7 @@ function record(options = {}) {
3243
3237
  shadowDomManager.observeAttachShadow(iframe);
3244
3238
  },
3245
3239
  onStylesheetLoad: (linkEl, childSn) => {
3246
- stylesheetManager.attachStylesheet(linkEl, childSn, mirror);
3240
+ this.stylesheetManager.attachStylesheet(linkEl, childSn, this.mirror);
3247
3241
  },
3248
3242
  keepIframeSrcFn,
3249
3243
  });
package/lib/rrweb-all.js CHANGED
@@ -928,8 +928,6 @@ function serializeNodeWithId(n, options) {
928
928
  onSerialize: onSerialize,
929
929
  onIframeLoad: onIframeLoad,
930
930
  iframeLoadTimeout: iframeLoadTimeout,
931
- onStylesheetLoad: onStylesheetLoad,
932
- stylesheetLoadTimeout: stylesheetLoadTimeout,
933
931
  keepIframeSrcFn: keepIframeSrcFn,
934
932
  enableStrictPrivacy: enableStrictPrivacy
935
933
  });
@@ -963,9 +961,8 @@ function serializeNodeWithId(n, options) {
963
961
  preserveWhiteSpace: preserveWhiteSpace,
964
962
  onSerialize: onSerialize,
965
963
  onIframeLoad: onIframeLoad,
966
- iframeLoadTimeout: iframeLoadTimeout,
967
964
  onStylesheetLoad: onStylesheetLoad,
968
- stylesheetLoadTimeout: stylesheetLoadTimeout,
965
+ iframeLoadTimeout: iframeLoadTimeout,
969
966
  keepIframeSrcFn: keepIframeSrcFn,
970
967
  enableStrictPrivacy: enableStrictPrivacy
971
968
  });
@@ -4182,9 +4179,6 @@ function record(options = {}) {
4182
4179
  if (isSerializedIframe(n, mirror)) {
4183
4180
  iframeManager.addIframe(n);
4184
4181
  }
4185
- if (isSerializedStylesheet(n, mirror)) {
4186
- stylesheetManager.addStylesheet(n);
4187
- }
4188
4182
  if (hasShadowRoot(n)) {
4189
4183
  shadowDomManager.addShadowRoot(n.shadowRoot, document);
4190
4184
  }
@@ -4194,7 +4188,7 @@ function record(options = {}) {
4194
4188
  shadowDomManager.observeAttachShadow(iframe);
4195
4189
  },
4196
4190
  onStylesheetLoad: (linkEl, childSn) => {
4197
- stylesheetManager.attachStylesheet(linkEl, childSn, mirror);
4191
+ this.stylesheetManager.attachStylesheet(linkEl, childSn, this.mirror);
4198
4192
  },
4199
4193
  keepIframeSrcFn,
4200
4194
  });
package/lib/rrweb.js CHANGED
@@ -928,8 +928,6 @@ function serializeNodeWithId(n, options) {
928
928
  onSerialize: onSerialize,
929
929
  onIframeLoad: onIframeLoad,
930
930
  iframeLoadTimeout: iframeLoadTimeout,
931
- onStylesheetLoad: onStylesheetLoad,
932
- stylesheetLoadTimeout: stylesheetLoadTimeout,
933
931
  keepIframeSrcFn: keepIframeSrcFn,
934
932
  enableStrictPrivacy: enableStrictPrivacy
935
933
  });
@@ -963,9 +961,8 @@ function serializeNodeWithId(n, options) {
963
961
  preserveWhiteSpace: preserveWhiteSpace,
964
962
  onSerialize: onSerialize,
965
963
  onIframeLoad: onIframeLoad,
966
- iframeLoadTimeout: iframeLoadTimeout,
967
964
  onStylesheetLoad: onStylesheetLoad,
968
- stylesheetLoadTimeout: stylesheetLoadTimeout,
965
+ iframeLoadTimeout: iframeLoadTimeout,
969
966
  keepIframeSrcFn: keepIframeSrcFn,
970
967
  enableStrictPrivacy: enableStrictPrivacy
971
968
  });
@@ -4182,9 +4179,6 @@ function record(options = {}) {
4182
4179
  if (isSerializedIframe(n, mirror)) {
4183
4180
  iframeManager.addIframe(n);
4184
4181
  }
4185
- if (isSerializedStylesheet(n, mirror)) {
4186
- stylesheetManager.addStylesheet(n);
4187
- }
4188
4182
  if (hasShadowRoot(n)) {
4189
4183
  shadowDomManager.addShadowRoot(n.shadowRoot, document);
4190
4184
  }
@@ -4194,7 +4188,7 @@ function record(options = {}) {
4194
4188
  shadowDomManager.observeAttachShadow(iframe);
4195
4189
  },
4196
4190
  onStylesheetLoad: (linkEl, childSn) => {
4197
- stylesheetManager.attachStylesheet(linkEl, childSn, mirror);
4191
+ this.stylesheetManager.attachStylesheet(linkEl, childSn, this.mirror);
4198
4192
  },
4199
4193
  keepIframeSrcFn,
4200
4194
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highlight-run/rrweb",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "record and replay the web",
5
5
  "scripts": {
6
6
  "prepare": "npm run prepack",
@@ -74,13 +74,13 @@
74
74
  "typescript": "^4.6.2"
75
75
  },
76
76
  "dependencies": {
77
- "@highlight-run/rrdom": "^0.1.6",
78
- "@highlight-run/rrweb-snapshot": "^1.1.19",
77
+ "@highlight-run/rrdom": "^0.1.2",
78
+ "@highlight-run/rrweb-snapshot": "^1.1.15",
79
79
  "@types/css-font-loading-module": "0.0.7",
80
80
  "@xstate/fsm": "^1.4.0",
81
81
  "base64-arraybuffer": "^1.0.1",
82
82
  "fflate": "^0.4.4",
83
83
  "mitt": "^1.1.3"
84
84
  },
85
- "gitHead": "bec14f9c8aad59e00142e3c8546da40cff32b15f"
85
+ "gitHead": "a84184254c5f4ae8ca0c6b17b08ac896b3ded341"
86
86
  }