@highlight-run/rrweb 2.1.2 → 2.1.3

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.
@@ -471,6 +471,7 @@ function serializeNode(n, options) {
471
471
  inlineStylesheet: inlineStylesheet,
472
472
  maskInputOptions: maskInputOptions,
473
473
  maskInputFn: maskInputFn,
474
+ maskTextClass: maskTextClass,
474
475
  dataURLOptions: dataURLOptions,
475
476
  inlineImages: inlineImages,
476
477
  recordCanvas: recordCanvas,
@@ -569,8 +570,9 @@ function serializeTextNode(n, options) {
569
570
  };
570
571
  }
571
572
  function serializeElementNode(n, options) {
572
- var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
573
- var needBlock = _isBlockedElement(n, blockClass, blockSelector);
573
+ var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, maskTextClass = options.maskTextClass, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
574
+ var needBlock = _isBlockedElement(n, blockClass, blockSelector) ||
575
+ _isBlockedElement(n, maskTextClass, blockSelector);
574
576
  var tagName = getValidTagName(n);
575
577
  var attributes = {};
576
578
  var len = n.attributes.length;
@@ -473,6 +473,7 @@ function serializeNode(n, options) {
473
473
  inlineStylesheet: inlineStylesheet,
474
474
  maskInputOptions: maskInputOptions,
475
475
  maskInputFn: maskInputFn,
476
+ maskTextClass: maskTextClass,
476
477
  dataURLOptions: dataURLOptions,
477
478
  inlineImages: inlineImages,
478
479
  recordCanvas: recordCanvas,
@@ -571,8 +572,9 @@ function serializeTextNode(n, options) {
571
572
  };
572
573
  }
573
574
  function serializeElementNode(n, options) {
574
- var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
575
- var needBlock = _isBlockedElement(n, blockClass, blockSelector);
575
+ var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, maskTextClass = options.maskTextClass, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
576
+ var needBlock = _isBlockedElement(n, blockClass, blockSelector) ||
577
+ _isBlockedElement(n, maskTextClass, blockSelector);
576
578
  var tagName = getValidTagName(n);
577
579
  var attributes = {};
578
580
  var len = n.attributes.length;
package/lib/rrweb-all.js CHANGED
@@ -475,6 +475,7 @@ function serializeNode(n, options) {
475
475
  inlineStylesheet: inlineStylesheet,
476
476
  maskInputOptions: maskInputOptions,
477
477
  maskInputFn: maskInputFn,
478
+ maskTextClass: maskTextClass,
478
479
  dataURLOptions: dataURLOptions,
479
480
  inlineImages: inlineImages,
480
481
  recordCanvas: recordCanvas,
@@ -573,8 +574,9 @@ function serializeTextNode(n, options) {
573
574
  };
574
575
  }
575
576
  function serializeElementNode(n, options) {
576
- var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
577
- var needBlock = _isBlockedElement(n, blockClass, blockSelector);
577
+ var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, maskTextClass = options.maskTextClass, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
578
+ var needBlock = _isBlockedElement(n, blockClass, blockSelector) ||
579
+ _isBlockedElement(n, maskTextClass, blockSelector);
578
580
  var tagName = getValidTagName$1(n);
579
581
  var attributes = {};
580
582
  var len = n.attributes.length;
package/lib/rrweb.js CHANGED
@@ -475,6 +475,7 @@ function serializeNode(n, options) {
475
475
  inlineStylesheet: inlineStylesheet,
476
476
  maskInputOptions: maskInputOptions,
477
477
  maskInputFn: maskInputFn,
478
+ maskTextClass: maskTextClass,
478
479
  dataURLOptions: dataURLOptions,
479
480
  inlineImages: inlineImages,
480
481
  recordCanvas: recordCanvas,
@@ -573,8 +574,9 @@ function serializeTextNode(n, options) {
573
574
  };
574
575
  }
575
576
  function serializeElementNode(n, options) {
576
- var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
577
- var needBlock = _isBlockedElement(n, blockClass, blockSelector);
577
+ var doc = options.doc, blockClass = options.blockClass, blockSelector = options.blockSelector, inlineStylesheet = options.inlineStylesheet, _a = options.maskInputOptions, maskInputOptions = _a === void 0 ? {} : _a, maskInputFn = options.maskInputFn, maskTextClass = options.maskTextClass, _b = options.dataURLOptions, dataURLOptions = _b === void 0 ? {} : _b, inlineImages = options.inlineImages, recordCanvas = options.recordCanvas, keepIframeSrcFn = options.keepIframeSrcFn, _c = options.newlyAddedElement, newlyAddedElement = _c === void 0 ? false : _c, enableStrictPrivacy = options.enableStrictPrivacy, rootId = options.rootId;
578
+ var needBlock = _isBlockedElement(n, blockClass, blockSelector) ||
579
+ _isBlockedElement(n, maskTextClass, blockSelector);
578
580
  var tagName = getValidTagName$1(n);
579
581
  var attributes = {};
580
582
  var len = n.attributes.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highlight-run/rrweb",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "record and replay the web",
5
5
  "scripts": {
6
6
  "prepare": "npm run prepack",
@@ -76,12 +76,12 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "@highlight-run/rrdom": "0.1.17",
79
- "@highlight-run/rrweb-snapshot": "1.1.25",
79
+ "@highlight-run/rrweb-snapshot": "1.1.26",
80
80
  "@types/css-font-loading-module": "0.0.7",
81
81
  "@xstate/fsm": "^1.4.0",
82
82
  "base64-arraybuffer": "^1.0.1",
83
83
  "fflate": "^0.4.4",
84
84
  "mitt": "^3.0.0"
85
85
  },
86
- "gitHead": "8e06f47a84774ac76f3fac474abc62770cc1f46b"
86
+ "gitHead": "98757c19f85bda25f5c29047f67d32ab7fd851f3"
87
87
  }