@pendo/agent 2.291.3 → 2.291.4

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/dom.esm.js CHANGED
@@ -7312,7 +7312,7 @@ function getScreenPosition(element) {
7312
7312
  };
7313
7313
  }
7314
7314
 
7315
- var VERSION = '2.291.3_';
7315
+ var VERSION = '2.291.4_';
7316
7316
 
7317
7317
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7318
7318
 
@@ -8805,17 +8805,6 @@ var removeNode = function (domNode) {
8805
8805
  domNode.parentNode.removeChild(domNode);
8806
8806
  }
8807
8807
  };
8808
- var getElements = _.compose(function (arrLike) {
8809
- return Array.prototype.slice.call(arrLike);
8810
- }, function (tag, document) {
8811
- try {
8812
- return SizzleProxy(tag, document);
8813
- }
8814
- catch (e) {
8815
- writeMessage('error using sizzle: ' + e);
8816
- return document.getElementsByTagName(tag);
8817
- }
8818
- });
8819
8808
  var pickBestBODY = function (b1, b2) {
8820
8809
  try {
8821
8810
  // check children.length, check Height, check Width?
@@ -8830,9 +8819,9 @@ var pickBestBODY = function (b1, b2) {
8830
8819
  }
8831
8820
  };
8832
8821
  var getBody = function (_document) {
8833
- _document = _document || document;
8822
+ if (_document === void 0) { _document = document; }
8834
8823
  try {
8835
- var bds = getElements('body', _document);
8824
+ var bds = Array.prototype.slice.call(_document.getElementsByTagName('body'));
8836
8825
  if (bds && bds.length > 1) {
8837
8826
  bds.sort(pickBestBODY);
8838
8827
  return bds[0] || _document.body;
@@ -3904,8 +3904,8 @@ var SERVER = '';
3904
3904
  var ASSET_HOST = '';
3905
3905
  var ASSET_PATH = '';
3906
3906
  var DESIGNER_SERVER = '';
3907
- var VERSION = '2.291.3_';
3908
- var PACKAGE_VERSION = '2.291.3';
3907
+ var VERSION = '2.291.4_';
3908
+ var PACKAGE_VERSION = '2.291.4';
3909
3909
  var LOADER = 'xhr';
3910
3910
  /* eslint-enable agent-eslint-rules/no-gulp-env-references */
3911
3911
  /**
@@ -10133,17 +10133,6 @@ var removeNode = function (domNode) {
10133
10133
  domNode.parentNode.removeChild(domNode);
10134
10134
  }
10135
10135
  };
10136
- var getElements = _.compose(function (arrLike) {
10137
- return Array.prototype.slice.call(arrLike);
10138
- }, function (tag, document) {
10139
- try {
10140
- return SizzleProxy(tag, document);
10141
- }
10142
- catch (e) {
10143
- writeMessage('error using sizzle: ' + e);
10144
- return document.getElementsByTagName(tag);
10145
- }
10146
- });
10147
10136
  var pickBestBODY = function (b1, b2) {
10148
10137
  try {
10149
10138
  // check children.length, check Height, check Width?
@@ -10157,10 +10146,9 @@ var pickBestBODY = function (b1, b2) {
10157
10146
  return 0;
10158
10147
  }
10159
10148
  };
10160
- var getBody = function (_document) {
10161
- _document = _document || document;
10149
+ var getBody = function (_document = document) {
10162
10150
  try {
10163
- var bds = getElements('body', _document);
10151
+ var bds = Array.prototype.slice.call(_document.getElementsByTagName('body'));
10164
10152
  if (bds && bds.length > 1) {
10165
10153
  bds.sort(pickBestBODY);
10166
10154
  return bds[0] || _document.body;
@@ -23929,8 +23917,13 @@ class GuideCache {
23929
23917
  return;
23930
23918
  cachedStep.seenState = lastGuideStepSeen.state;
23931
23919
  cachedStep.seenReason = lastGuideStepSeen.seenReason;
23932
- cachedStep.dismissCount = lastGuideStepSeen.dismissCount;
23933
- cachedStep.snoozeEndTime = lastGuideStepSeen.snoozeEndTime;
23920
+ cachedStep.lastSeenAt = lastGuideStepSeen.time;
23921
+ if (lastGuideStepSeen.dismissCount != null) {
23922
+ cachedStep.dismissCount = lastGuideStepSeen.dismissCount;
23923
+ }
23924
+ if (lastGuideStepSeen.snoozeEndTime != null) {
23925
+ cachedStep.snoozeEndTime = lastGuideStepSeen.snoozeEndTime;
23926
+ }
23934
23927
  return this.save(cachedGuide);
23935
23928
  }
23936
23929
  list(visitorId, now = getNow()) {