@pendo/agent 2.285.1 → 2.285.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.
- package/dist/dom.esm.js +1 -1
- package/dist/pendo.module.js +17 -8
- package/dist/pendo.module.min.js +2 -2
- package/package.json +1 -1
package/dist/dom.esm.js
CHANGED
package/dist/pendo.module.js
CHANGED
|
@@ -3905,8 +3905,8 @@ var SERVER = '';
|
|
|
3905
3905
|
var ASSET_HOST = '';
|
|
3906
3906
|
var ASSET_PATH = '';
|
|
3907
3907
|
var DESIGNER_SERVER = '';
|
|
3908
|
-
var VERSION = '2.285.
|
|
3909
|
-
var PACKAGE_VERSION = '2.285.
|
|
3908
|
+
var VERSION = '2.285.3_';
|
|
3909
|
+
var PACKAGE_VERSION = '2.285.3';
|
|
3910
3910
|
var LOADER = 'xhr';
|
|
3911
3911
|
/* eslint-enable agent-eslint-rules/no-gulp-env-references */
|
|
3912
3912
|
/**
|
|
@@ -15961,7 +15961,7 @@ var BuildingBlockTooltips = (function () {
|
|
|
15961
15961
|
if (containerDomJson.props.style.border) {
|
|
15962
15962
|
var guideBorderArray = containerDomJson.props.style.border.split(' ');
|
|
15963
15963
|
caretDimensions.borderColor = guideBorderArray[2];
|
|
15964
|
-
caretDimensions.borderWidth = parseInt(guideBorderArray[0], 10);
|
|
15964
|
+
caretDimensions.borderWidth = parseInt(guideBorderArray[0], 10) || 0;
|
|
15965
15965
|
}
|
|
15966
15966
|
const tooltipSizes = {
|
|
15967
15967
|
width: guideContainer.offsetWidth,
|
|
@@ -16218,7 +16218,11 @@ var BuildingBlockTooltips = (function () {
|
|
|
16218
16218
|
};
|
|
16219
16219
|
}
|
|
16220
16220
|
function calculateCaretPadding(caretSizes) {
|
|
16221
|
-
|
|
16221
|
+
const offset = parseInt(caretSizes.offset, 10) || 0;
|
|
16222
|
+
const width = parseInt(caretSizes.width, 10) || 0;
|
|
16223
|
+
const borderWidth = parseInt(caretSizes.borderWidth, 10) || 0;
|
|
16224
|
+
const result = offset + width + borderWidth;
|
|
16225
|
+
return isNaN(result) ? 0 : result;
|
|
16222
16226
|
}
|
|
16223
16227
|
function calculateRightBiasPosition(elementPosition, tooltipDimensions, caretSizes, screenDimensions, rightBoundary, leftBoundary) {
|
|
16224
16228
|
const caretPadding = calculateCaretPadding(caretSizes);
|
|
@@ -16522,7 +16526,7 @@ var BuildingBlockTooltips = (function () {
|
|
|
16522
16526
|
backgroundColor: ttContainer[0].style['background-color'],
|
|
16523
16527
|
offset: TOOLTIP_CONSTANTS.DEFAULT_CARET_OFFSET,
|
|
16524
16528
|
borderColor: ttContainerStyles.borderColor,
|
|
16525
|
-
borderWidth: parseInt(ttContainerStyles.borderWidth, 10)
|
|
16529
|
+
borderWidth: parseInt(ttContainerStyles.borderWidth, 10) || 0
|
|
16526
16530
|
};
|
|
16527
16531
|
var tooltipDimensions = this.getBBTooltipDimensions(elPos, tooltipSizes, caretStyles, layoutDir, screenPos);
|
|
16528
16532
|
if (caretStyles.height && caretStyles.width) {
|
|
@@ -26935,7 +26939,12 @@ const initialize = makeSafe(function (options) {
|
|
|
26935
26939
|
return initialize();
|
|
26936
26940
|
});
|
|
26937
26941
|
}
|
|
26938
|
-
|
|
26942
|
+
try {
|
|
26943
|
+
store.dispatch('location/init', options.location || {});
|
|
26944
|
+
}
|
|
26945
|
+
catch (e) {
|
|
26946
|
+
log.critical('Location API Exception', e);
|
|
26947
|
+
}
|
|
26939
26948
|
// Save the options somewhere
|
|
26940
26949
|
ConfigReader.setLocalConfig(options);
|
|
26941
26950
|
initDataHost();
|
|
@@ -28610,8 +28619,8 @@ UrlAttrTransform.fromJSON = function (obj) {
|
|
|
28610
28619
|
}
|
|
28611
28620
|
// Validate data types for specific actions
|
|
28612
28621
|
if (obj.action === 'AllowOnlyKeys' || obj.action === 'ExcludeKeys') {
|
|
28613
|
-
if (!_.isArray(obj.data)) {
|
|
28614
|
-
throw new Error('Action "' + obj.action + '" requires "data" to be an array of strings. Example: {attr: "' + obj.attr + '", action: "' + obj.action + '", data: ["key1", "key2"]}');
|
|
28622
|
+
if (!_.isArray(obj.data) && !_.isFunction(obj.data)) {
|
|
28623
|
+
throw new Error('Action "' + obj.action + '" requires "data" to be an array of strings or a function returning an array of strings. Example: {attr: "' + obj.attr + '", action: "' + obj.action + '", data: ["key1", "key2"]}');
|
|
28615
28624
|
}
|
|
28616
28625
|
}
|
|
28617
28626
|
if (obj.action === 'AddTo') {
|