@pendo/agent 2.285.0 → 2.285.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
@@ -7289,7 +7289,7 @@ function getScreenPosition(element) {
7289
7289
  };
7290
7290
  }
7291
7291
 
7292
- var VERSION = '2.285.0_';
7292
+ var VERSION = '2.285.1_';
7293
7293
 
7294
7294
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7295
7295
 
@@ -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.0_';
3909
- var PACKAGE_VERSION = '2.285.0';
3908
+ var VERSION = '2.285.1_';
3909
+ var PACKAGE_VERSION = '2.285.1';
3910
3910
  var LOADER = 'xhr';
3911
3911
  /* eslint-enable agent-eslint-rules/no-gulp-env-references */
3912
3912
  /**
@@ -36643,6 +36643,7 @@ const EmbeddedGuides = (function () {
36643
36643
  pluginApi.Events.on('guideLoopStopped', onGuidesStopped);
36644
36644
  pluginApi.Events.on('guideListChanged', initializeEmbeddedGuides);
36645
36645
  pluginApi.Events.on('urlChanged', setForceShowFirstStepFlags);
36646
+ pluginApi.Events.on('guideAdvanced', hideGuide);
36646
36647
  pluginApi.GuideLoop.addUpdatePhase(processEmbeddedGuides);
36647
36648
  pluginApi.guides.addProcessor(extractEmbeddedGuides);
36648
36649
  pluginApi.GuideActivity.registerGuideResolver(getGuideObjectFromEvent);
@@ -36654,6 +36655,7 @@ const EmbeddedGuides = (function () {
36654
36655
  pluginApi.Events.off('guideLoopStopped', onGuidesStopped);
36655
36656
  pluginApi.Events.off('guideListChanged', initializeEmbeddedGuides);
36656
36657
  pluginApi.Events.off('urlChanged', setForceShowFirstStepFlags);
36658
+ pluginApi.Events.off('guideAdvanced', hideGuide);
36657
36659
  pluginApi.GuideLoop.removeUpdatePhase(processEmbeddedGuides);
36658
36660
  pluginApi.guides.removeProcessor(extractEmbeddedGuides);
36659
36661
  pluginApi.GuideActivity.removeGuideResolver(getGuideObjectFromEvent);
@@ -36669,6 +36671,15 @@ const EmbeddedGuides = (function () {
36669
36671
  hideAllEmbeddedGuides();
36670
36672
  }
36671
36673
  }
36674
+ function hideGuide(event) {
36675
+ const guideId = _.get(event, 'data.0.props.guide_id', null);
36676
+ if (guideId) {
36677
+ const guide = embeddedGuides.find(({ id }) => id === guideId);
36678
+ if (guide) {
36679
+ guide.hide();
36680
+ }
36681
+ }
36682
+ }
36672
36683
  function processEmbeddedGuides() {
36673
36684
  _.forEach(embeddedGuides, function (guide) {
36674
36685
  guide.process();