@pendo/agent 2.285.0 → 2.285.2
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 +21 -5
- package/dist/pendo.module.min.js +3 -3
- 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.2_';
|
|
3909
|
+
var PACKAGE_VERSION = '2.285.2';
|
|
3910
3910
|
var LOADER = 'xhr';
|
|
3911
3911
|
/* eslint-enable agent-eslint-rules/no-gulp-env-references */
|
|
3912
3912
|
/**
|
|
@@ -26935,7 +26935,12 @@ const initialize = makeSafe(function (options) {
|
|
|
26935
26935
|
return initialize();
|
|
26936
26936
|
});
|
|
26937
26937
|
}
|
|
26938
|
-
|
|
26938
|
+
try {
|
|
26939
|
+
store.dispatch('location/init', options.location || {});
|
|
26940
|
+
}
|
|
26941
|
+
catch (e) {
|
|
26942
|
+
log.critical('Location API Exception', e);
|
|
26943
|
+
}
|
|
26939
26944
|
// Save the options somewhere
|
|
26940
26945
|
ConfigReader.setLocalConfig(options);
|
|
26941
26946
|
initDataHost();
|
|
@@ -28610,8 +28615,8 @@ UrlAttrTransform.fromJSON = function (obj) {
|
|
|
28610
28615
|
}
|
|
28611
28616
|
// Validate data types for specific actions
|
|
28612
28617
|
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"]}');
|
|
28618
|
+
if (!_.isArray(obj.data) && !_.isFunction(obj.data)) {
|
|
28619
|
+
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
28620
|
}
|
|
28616
28621
|
}
|
|
28617
28622
|
if (obj.action === 'AddTo') {
|
|
@@ -36643,6 +36648,7 @@ const EmbeddedGuides = (function () {
|
|
|
36643
36648
|
pluginApi.Events.on('guideLoopStopped', onGuidesStopped);
|
|
36644
36649
|
pluginApi.Events.on('guideListChanged', initializeEmbeddedGuides);
|
|
36645
36650
|
pluginApi.Events.on('urlChanged', setForceShowFirstStepFlags);
|
|
36651
|
+
pluginApi.Events.on('guideAdvanced', hideGuide);
|
|
36646
36652
|
pluginApi.GuideLoop.addUpdatePhase(processEmbeddedGuides);
|
|
36647
36653
|
pluginApi.guides.addProcessor(extractEmbeddedGuides);
|
|
36648
36654
|
pluginApi.GuideActivity.registerGuideResolver(getGuideObjectFromEvent);
|
|
@@ -36654,6 +36660,7 @@ const EmbeddedGuides = (function () {
|
|
|
36654
36660
|
pluginApi.Events.off('guideLoopStopped', onGuidesStopped);
|
|
36655
36661
|
pluginApi.Events.off('guideListChanged', initializeEmbeddedGuides);
|
|
36656
36662
|
pluginApi.Events.off('urlChanged', setForceShowFirstStepFlags);
|
|
36663
|
+
pluginApi.Events.off('guideAdvanced', hideGuide);
|
|
36657
36664
|
pluginApi.GuideLoop.removeUpdatePhase(processEmbeddedGuides);
|
|
36658
36665
|
pluginApi.guides.removeProcessor(extractEmbeddedGuides);
|
|
36659
36666
|
pluginApi.GuideActivity.removeGuideResolver(getGuideObjectFromEvent);
|
|
@@ -36669,6 +36676,15 @@ const EmbeddedGuides = (function () {
|
|
|
36669
36676
|
hideAllEmbeddedGuides();
|
|
36670
36677
|
}
|
|
36671
36678
|
}
|
|
36679
|
+
function hideGuide(event) {
|
|
36680
|
+
const guideId = _.get(event, 'data.0.props.guide_id', null);
|
|
36681
|
+
if (guideId) {
|
|
36682
|
+
const guide = embeddedGuides.find(({ id }) => id === guideId);
|
|
36683
|
+
if (guide) {
|
|
36684
|
+
guide.hide();
|
|
36685
|
+
}
|
|
36686
|
+
}
|
|
36687
|
+
}
|
|
36672
36688
|
function processEmbeddedGuides() {
|
|
36673
36689
|
_.forEach(embeddedGuides, function (guide) {
|
|
36674
36690
|
guide.process();
|