@pendo/agent 2.337.0 → 2.337.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 CHANGED
@@ -7531,7 +7531,7 @@ function applyMatrix2dRect(matrix2d, rect) {
7531
7531
  return transformedRect;
7532
7532
  }
7533
7533
 
7534
- var VERSION = '2.337.0_';
7534
+ var VERSION = '2.337.2_';
7535
7535
 
7536
7536
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7537
7537
 
@@ -4029,8 +4029,8 @@ let SERVER = '';
4029
4029
  let ASSET_HOST = '';
4030
4030
  let ASSET_PATH = '';
4031
4031
  let DESIGNER_SERVER = '';
4032
- let VERSION = '2.337.0_';
4033
- let PACKAGE_VERSION = '2.337.0';
4032
+ let VERSION = '2.337.2_';
4033
+ let PACKAGE_VERSION = '2.337.2';
4034
4034
  let LOADER = 'xhr';
4035
4035
  /* eslint-enable web-sdk-eslint-rules/no-gulp-env-references */
4036
4036
  /**
@@ -30298,7 +30298,9 @@ var BuildingBlockGuides = (function () {
30298
30298
  _.each(siblings, (s) => {
30299
30299
  const tagName = s.tagName.toLowerCase();
30300
30300
  const alreadyDisabled = s.getAttribute('inert') === 'true';
30301
- const isExcluded = _.some(excludeElements, (excluded) => excluded && (s === excluded || s.contains(excluded)));
30301
+ // native contains() can't see into shadow trees, so excluded elements inside a
30302
+ // shadow root (e.g. blockOut target areas) need the shadow-aware walk
30303
+ const isExcluded = _.some(excludeElements, (excluded) => excluded && (s === excluded || contains(s, excluded)));
30302
30304
  if (hidden.indexOf(s) === -1 && !alreadyDisabled && !isExcluded && tagName !== 'script' && tagName !== 'style') {
30303
30305
  s.setAttribute('inert', 'true');
30304
30306
  hidden.push(s);
@@ -44115,9 +44117,15 @@ function VocPortal() {
44115
44117
  function queryMessageHandler(_, responseHandler) {
44116
44118
  const metadata = pendoGlobal.getSerializedMetadata();
44117
44119
  const sandBoxMode = !!pendoGlobal.designer || pluginAPI.store.getters['preview/isInPreviewMode']();
44120
+ const browserLocation = pendoGlobal.url.getWindowLocation();
44121
+ const currentHref = browserLocation && browserLocation.href;
44122
+ const currentQuery = (pluginAPI.util.parseUrl(currentHref) || {}).query || {};
44118
44123
  const response = {
44119
44124
  apiKey: pendoGlobal.apiKey,
44120
44125
  url: pendoGlobal.url.externalizeURL(),
44126
+ portalCardUrl: currentQuery.portalCard || null,
44127
+ feedbackForm: currentQuery.feedbackForm || null,
44128
+ urlWithQueryParams: currentHref,
44121
44129
  visitor: metadata.visitor,
44122
44130
  account: metadata.account,
44123
44131
  parentAccount: metadata.parentAccount,