@pendo/agent 2.288.1 → 2.290.0

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/README.md CHANGED
@@ -90,6 +90,7 @@ The current list of available plugins and their export names are:
90
90
  - Session Replay (Replay)
91
91
  - Guide Logic (GuideMarkdown)
92
92
  - Voice of the Customer Portal (VocPortal)
93
+ - Capture Console Logs (ConsoleCapture)
93
94
 
94
95
  ## Manifest V3 Extensions
95
96
 
package/dist/dom.esm.js CHANGED
@@ -5283,6 +5283,16 @@ function isElementShadowRoot(elem, _win) {
5283
5283
  function getParent(elem, _win) {
5284
5284
  return isElementShadowRoot(elem, _win) ? elem.host : elem.parentNode;
5285
5285
  }
5286
+ function contains(context, elem, _win) {
5287
+ var parent = elem;
5288
+ while (parent) {
5289
+ if (parent === context) {
5290
+ return true;
5291
+ }
5292
+ parent = getParent(parent, _win);
5293
+ }
5294
+ return false;
5295
+ }
5286
5296
 
5287
5297
  var shadowAPI = (function () {
5288
5298
  function isShadowSelector(selector) {
@@ -5315,10 +5325,19 @@ var shadowAPI = (function () {
5315
5325
  isElementShadowRoot: isElementShadowRoot,
5316
5326
  getParent: getParent,
5317
5327
  isShadowSelector: isShadowSelector,
5318
- wrapSizzle: function (Sizzle) {
5328
+ wrapSizzle: function (Sizzle, shadowDomManager) {
5319
5329
  Sizzle.intercept(function (Sizzle, selection, context, results, seed) {
5320
5330
  if (!isShadowSelector(selection)) {
5321
- return Sizzle(selection, context, results, seed);
5331
+ var queryResults_1 = Sizzle(selection, context, results, seed);
5332
+ if (shadowDomManager.cache.size > 0) {
5333
+ // eslint-disable-next-line agent-eslint-rules/no-array-foreach
5334
+ shadowDomManager.cache.forEach(function (shadowRoot) {
5335
+ if (!context || context === document || contains(context, shadowRoot)) {
5336
+ queryResults_1.push.apply(queryResults_1, Sizzle(selection, shadowRoot, results, seed));
5337
+ }
5338
+ });
5339
+ }
5340
+ return queryResults_1;
5322
5341
  }
5323
5342
  if (!_.isFunction(document.documentElement.attachShadow)) {
5324
5343
  return Sizzle(selection.replace(shadowAPI.PSEUDO_REGEX, ''), context, results, seed);
@@ -7292,7 +7311,7 @@ function getScreenPosition(element) {
7292
7311
  };
7293
7312
  }
7294
7313
 
7295
- var VERSION = '2.288.1_';
7314
+ var VERSION = '2.290.0_';
7296
7315
 
7297
7316
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7298
7317
 
@@ -8144,6 +8163,8 @@ Eventable.clear = function (events) {
8144
8163
  new EventType('transmit:locked', [LIFECYCLE]),
8145
8164
  new EventType('transmit:unlocked', [LIFECYCLE]),
8146
8165
  new EventType('sessionChanged', [LIFECYCLE]),
8166
+ new EventType('ptm:unpaused', [LIFECYCLE]),
8167
+ new EventType('ptm:paused', [LIFECYCLE]),
8147
8168
  new EventType('childFrameJoined', [FRAMES]),
8148
8169
  new EventType('tabIdChanged:self', [DEBUG, LIFECYCLE])
8149
8170
  ];