@highlight-run/rrweb 2.1.0 → 2.1.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.
Files changed (53) hide show
  1. package/dist/record/rrweb-record.js +3 -3
  2. package/dist/record/rrweb-record.min.js +3 -3
  3. package/dist/record/rrweb-record.min.js.map +1 -1
  4. package/dist/rrweb-all.js +8 -8
  5. package/dist/rrweb-all.min.js +8 -8
  6. package/dist/rrweb-all.min.js.map +1 -1
  7. package/dist/rrweb.js +5 -5
  8. package/dist/rrweb.min.js +5 -5
  9. package/dist/rrweb.min.js.map +1 -1
  10. package/es/rrweb/packages/rrweb/src/record/index.js +3 -3
  11. package/lib/record/rrweb-record.js +2 -2
  12. package/lib/rrweb-all.js +2 -2
  13. package/lib/rrweb.js +2 -2
  14. package/package.json +2 -2
  15. package/typings/entries/all.d.ts +0 -0
  16. package/typings/entries/record-pack.d.ts +0 -0
  17. package/typings/entries/replay-unpack.d.ts +0 -0
  18. package/typings/index.d.ts +0 -0
  19. package/typings/packer/base.d.ts +0 -0
  20. package/typings/packer/index.d.ts +0 -0
  21. package/typings/packer/pack.d.ts +0 -0
  22. package/typings/packer/unpack.d.ts +0 -0
  23. package/typings/plugins/console/record/error-stack-parser.d.ts +0 -0
  24. package/typings/plugins/console/record/index.d.ts +0 -0
  25. package/typings/plugins/console/record/stringify.d.ts +0 -0
  26. package/typings/plugins/console/replay/index.d.ts +0 -0
  27. package/typings/plugins/sequential-id/record/index.d.ts +0 -0
  28. package/typings/plugins/sequential-id/replay/index.d.ts +0 -0
  29. package/typings/record/iframe-manager.d.ts +0 -0
  30. package/typings/record/index.d.ts +0 -0
  31. package/typings/record/mutation.d.ts +0 -0
  32. package/typings/record/observer.d.ts +0 -0
  33. package/typings/record/observers/canvas/2d.d.ts +0 -0
  34. package/typings/record/observers/canvas/canvas-manager.d.ts +0 -0
  35. package/typings/record/observers/canvas/canvas.d.ts +0 -0
  36. package/typings/record/observers/canvas/serialize-args.d.ts +0 -0
  37. package/typings/record/observers/canvas/webgl.d.ts +0 -0
  38. package/typings/record/shadow-dom-manager.d.ts +0 -0
  39. package/typings/record/stylesheet-manager.d.ts +0 -0
  40. package/typings/record/workers/image-bitmap-data-url-worker.d.ts +0 -0
  41. package/typings/replay/canvas/2d.d.ts +0 -0
  42. package/typings/replay/canvas/deserialize-args.d.ts +0 -0
  43. package/typings/replay/canvas/index.d.ts +0 -0
  44. package/typings/replay/canvas/webgl.d.ts +0 -0
  45. package/typings/replay/index.d.ts +0 -0
  46. package/typings/replay/machine.d.ts +0 -0
  47. package/typings/replay/smoothscroll.d.ts +0 -0
  48. package/typings/replay/styles/inject-style.d.ts +0 -0
  49. package/typings/replay/timer.d.ts +0 -0
  50. package/typings/rrdom/index.d.ts +0 -0
  51. package/typings/rrdom/tree-node.d.ts +0 -0
  52. package/typings/types.d.ts +0 -0
  53. package/typings/utils.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { createMirror, snapshot } from '../../../rrweb-snapshot/es/rrweb-snapshot.js';
1
+ import { createMirror, obfuscateText, snapshot } from '../../../rrweb-snapshot/es/rrweb-snapshot.js';
2
2
  import { initObservers, mutationBuffers } from './observer.js';
3
3
  import { polyfill, on, getWindowWidth, getWindowHeight, isSerializedIframe, isSerializedStylesheet, hasShadowRoot } from '../utils.js';
4
4
  import { EventType, IncrementalSource } from '../types.js';
@@ -14,7 +14,7 @@ let wrappedEmit;
14
14
  let takeFullSnapshot;
15
15
  const mirror = createMirror();
16
16
  function record(options = {}) {
17
- const { emit, checkoutEveryNms, checkoutEveryNth, blockClass = 'highlight-block', blockSelector = null, ignoreClass = 'highlight-ignore', maskTextClass = 'highlight-mask', maskTextSelector = null, inlineStylesheet = true, maskAllInputs, maskInputOptions: _maskInputOptions, slimDOMOptions: _slimDOMOptions, maskInputFn, maskTextFn, hooks, packFn, sampling = {}, mousemoveWait, recordCanvas = false, userTriggeredOnInput = false, collectFonts = false, inlineImages = false, plugins, keepIframeSrcFn = () => false, enableStrictPrivacy = false, } = options;
17
+ const { emit, checkoutEveryNms, checkoutEveryNth, blockClass = 'highlight-block', blockSelector = null, ignoreClass = 'highlight-ignore', maskTextClass = 'highlight-mask', maskTextSelector = null, inlineStylesheet = true, maskAllInputs, maskInputOptions: _maskInputOptions, slimDOMOptions: _slimDOMOptions, maskInputFn, maskTextFn = obfuscateText, hooks, packFn, sampling = {}, mousemoveWait, recordCanvas = false, userTriggeredOnInput = false, collectFonts = false, inlineImages = false, plugins, keepIframeSrcFn = () => false, enableStrictPrivacy = false, } = options;
18
18
  if (!emit) {
19
19
  throw new Error('emit function is required');
20
20
  }
@@ -149,7 +149,7 @@ function record(options = {}) {
149
149
  stylesheetManager,
150
150
  canvasManager,
151
151
  keepIframeSrcFn,
152
- enableStrictPrivacy
152
+ enableStrictPrivacy,
153
153
  },
154
154
  mirror,
155
155
  });
@@ -3138,7 +3138,7 @@ let wrappedEmit;
3138
3138
  let takeFullSnapshot;
3139
3139
  const mirror = createMirror();
3140
3140
  function record(options = {}) {
3141
- const { emit, checkoutEveryNms, checkoutEveryNth, blockClass = 'highlight-block', blockSelector = null, ignoreClass = 'highlight-ignore', maskTextClass = 'highlight-mask', maskTextSelector = null, inlineStylesheet = true, maskAllInputs, maskInputOptions: _maskInputOptions, slimDOMOptions: _slimDOMOptions, maskInputFn, maskTextFn, hooks, packFn, sampling = {}, mousemoveWait, recordCanvas = false, userTriggeredOnInput = false, collectFonts = false, inlineImages = false, plugins, keepIframeSrcFn = () => false, enableStrictPrivacy = false, } = options;
3141
+ const { emit, checkoutEveryNms, checkoutEveryNth, blockClass = 'highlight-block', blockSelector = null, ignoreClass = 'highlight-ignore', maskTextClass = 'highlight-mask', maskTextSelector = null, inlineStylesheet = true, maskAllInputs, maskInputOptions: _maskInputOptions, slimDOMOptions: _slimDOMOptions, maskInputFn, maskTextFn = obfuscateText, hooks, packFn, sampling = {}, mousemoveWait, recordCanvas = false, userTriggeredOnInput = false, collectFonts = false, inlineImages = false, plugins, keepIframeSrcFn = () => false, enableStrictPrivacy = false, } = options;
3142
3142
  if (!emit) {
3143
3143
  throw new Error('emit function is required');
3144
3144
  }
@@ -3273,7 +3273,7 @@ function record(options = {}) {
3273
3273
  stylesheetManager,
3274
3274
  canvasManager,
3275
3275
  keepIframeSrcFn,
3276
- enableStrictPrivacy
3276
+ enableStrictPrivacy,
3277
3277
  },
3278
3278
  mirror,
3279
3279
  });
package/lib/rrweb-all.js CHANGED
@@ -4103,7 +4103,7 @@ let wrappedEmit;
4103
4103
  let takeFullSnapshot;
4104
4104
  const mirror = createMirror$2();
4105
4105
  function record(options = {}) {
4106
- const { emit, checkoutEveryNms, checkoutEveryNth, blockClass = 'highlight-block', blockSelector = null, ignoreClass = 'highlight-ignore', maskTextClass = 'highlight-mask', maskTextSelector = null, inlineStylesheet = true, maskAllInputs, maskInputOptions: _maskInputOptions, slimDOMOptions: _slimDOMOptions, maskInputFn, maskTextFn, hooks, packFn, sampling = {}, mousemoveWait, recordCanvas = false, userTriggeredOnInput = false, collectFonts = false, inlineImages = false, plugins, keepIframeSrcFn = () => false, enableStrictPrivacy = false, } = options;
4106
+ const { emit, checkoutEveryNms, checkoutEveryNth, blockClass = 'highlight-block', blockSelector = null, ignoreClass = 'highlight-ignore', maskTextClass = 'highlight-mask', maskTextSelector = null, inlineStylesheet = true, maskAllInputs, maskInputOptions: _maskInputOptions, slimDOMOptions: _slimDOMOptions, maskInputFn, maskTextFn = obfuscateText, hooks, packFn, sampling = {}, mousemoveWait, recordCanvas = false, userTriggeredOnInput = false, collectFonts = false, inlineImages = false, plugins, keepIframeSrcFn = () => false, enableStrictPrivacy = false, } = options;
4107
4107
  if (!emit) {
4108
4108
  throw new Error('emit function is required');
4109
4109
  }
@@ -4238,7 +4238,7 @@ function record(options = {}) {
4238
4238
  stylesheetManager,
4239
4239
  canvasManager,
4240
4240
  keepIframeSrcFn,
4241
- enableStrictPrivacy
4241
+ enableStrictPrivacy,
4242
4242
  },
4243
4243
  mirror,
4244
4244
  });
package/lib/rrweb.js CHANGED
@@ -4103,7 +4103,7 @@ let wrappedEmit;
4103
4103
  let takeFullSnapshot;
4104
4104
  const mirror = createMirror$2();
4105
4105
  function record(options = {}) {
4106
- const { emit, checkoutEveryNms, checkoutEveryNth, blockClass = 'highlight-block', blockSelector = null, ignoreClass = 'highlight-ignore', maskTextClass = 'highlight-mask', maskTextSelector = null, inlineStylesheet = true, maskAllInputs, maskInputOptions: _maskInputOptions, slimDOMOptions: _slimDOMOptions, maskInputFn, maskTextFn, hooks, packFn, sampling = {}, mousemoveWait, recordCanvas = false, userTriggeredOnInput = false, collectFonts = false, inlineImages = false, plugins, keepIframeSrcFn = () => false, enableStrictPrivacy = false, } = options;
4106
+ const { emit, checkoutEveryNms, checkoutEveryNth, blockClass = 'highlight-block', blockSelector = null, ignoreClass = 'highlight-ignore', maskTextClass = 'highlight-mask', maskTextSelector = null, inlineStylesheet = true, maskAllInputs, maskInputOptions: _maskInputOptions, slimDOMOptions: _slimDOMOptions, maskInputFn, maskTextFn = obfuscateText, hooks, packFn, sampling = {}, mousemoveWait, recordCanvas = false, userTriggeredOnInput = false, collectFonts = false, inlineImages = false, plugins, keepIframeSrcFn = () => false, enableStrictPrivacy = false, } = options;
4107
4107
  if (!emit) {
4108
4108
  throw new Error('emit function is required');
4109
4109
  }
@@ -4238,7 +4238,7 @@ function record(options = {}) {
4238
4238
  stylesheetManager,
4239
4239
  canvasManager,
4240
4240
  keepIframeSrcFn,
4241
- enableStrictPrivacy
4241
+ enableStrictPrivacy,
4242
4242
  },
4243
4243
  mirror,
4244
4244
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highlight-run/rrweb",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "record and replay the web",
5
5
  "scripts": {
6
6
  "prepare": "npm run prepack",
@@ -83,5 +83,5 @@
83
83
  "fflate": "^0.4.4",
84
84
  "mitt": "^3.0.0"
85
85
  },
86
- "gitHead": "ba064a5eee3debbcea07dfe122ad9fd1f0607040"
86
+ "gitHead": "15a0a27697444a1d09f589e50fa9587ad8ca025e"
87
87
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes