@pendo/agent 2.286.0 → 2.286.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.
package/dist/dom.esm.js CHANGED
@@ -7287,7 +7287,7 @@ function getScreenPosition(element) {
7287
7287
  };
7288
7288
  }
7289
7289
 
7290
- var VERSION = '2.286.0_';
7290
+ var VERSION = '2.286.1_';
7291
7291
 
7292
7292
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7293
7293
 
@@ -3903,8 +3903,8 @@ var SERVER = '';
3903
3903
  var ASSET_HOST = '';
3904
3904
  var ASSET_PATH = '';
3905
3905
  var DESIGNER_SERVER = '';
3906
- var VERSION = '2.286.0_';
3907
- var PACKAGE_VERSION = '2.286.0';
3906
+ var VERSION = '2.286.1_';
3907
+ var PACKAGE_VERSION = '2.286.1';
3908
3908
  var LOADER = 'xhr';
3909
3909
  /* eslint-enable agent-eslint-rules/no-gulp-env-references */
3910
3910
  /**
@@ -16015,7 +16015,7 @@ var BuildingBlockTooltips = (function () {
16015
16015
  if (containerDomJson.props.style.border) {
16016
16016
  var guideBorderArray = containerDomJson.props.style.border.split(' ');
16017
16017
  caretDimensions.borderColor = guideBorderArray[2];
16018
- caretDimensions.borderWidth = parseInt(guideBorderArray[0], 10);
16018
+ caretDimensions.borderWidth = parseInt(guideBorderArray[0], 10) || 0;
16019
16019
  }
16020
16020
  const tooltipSizes = {
16021
16021
  width: guideContainer.offsetWidth,
@@ -16272,7 +16272,11 @@ var BuildingBlockTooltips = (function () {
16272
16272
  };
16273
16273
  }
16274
16274
  function calculateCaretPadding(caretSizes) {
16275
- return caretSizes.offset + caretSizes.width + caretSizes.borderWidth;
16275
+ const offset = parseInt(caretSizes.offset, 10) || 0;
16276
+ const width = parseInt(caretSizes.width, 10) || 0;
16277
+ const borderWidth = parseInt(caretSizes.borderWidth, 10) || 0;
16278
+ const result = offset + width + borderWidth;
16279
+ return isNaN(result) ? 0 : result;
16276
16280
  }
16277
16281
  function calculateRightBiasPosition(elementPosition, tooltipDimensions, caretSizes, screenDimensions, rightBoundary, leftBoundary) {
16278
16282
  const caretPadding = calculateCaretPadding(caretSizes);
@@ -16576,7 +16580,7 @@ var BuildingBlockTooltips = (function () {
16576
16580
  backgroundColor: ttContainer[0].style['background-color'],
16577
16581
  offset: TOOLTIP_CONSTANTS.DEFAULT_CARET_OFFSET,
16578
16582
  borderColor: ttContainerStyles.borderColor,
16579
- borderWidth: parseInt(ttContainerStyles.borderWidth, 10)
16583
+ borderWidth: parseInt(ttContainerStyles.borderWidth, 10) || 0
16580
16584
  };
16581
16585
  var tooltipDimensions = this.getBBTooltipDimensions(elPos, tooltipSizes, caretStyles, layoutDir, screenPos);
16582
16586
  if (caretStyles.height && caretStyles.width) {
@@ -36907,7 +36911,6 @@ class SessionManager {
36907
36911
  return;
36908
36912
  const { visitor_id, old_visitor_id } = identifyEvent.data[0];
36909
36913
  if (visitor_id !== old_visitor_id &&
36910
- !this.pendo.isAnonymousVisitor(visitor_id) &&
36911
36914
  !this.pendo.isAnonymousVisitor(old_visitor_id)) {
36912
36915
  this.expireSession();
36913
36916
  }