@pendo/agent 2.341.0 → 2.343.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/dist/dom.esm.js +14 -25
- package/dist/pendo.module.js +520 -216
- package/dist/pendo.module.min.js +12 -12
- package/dist/servers.json +8 -8
- package/package.json +1 -1
package/dist/dom.esm.js
CHANGED
|
@@ -7291,6 +7291,17 @@ function shouldWrapHashChange() {
|
|
|
7291
7291
|
function isMobileUserAgent() {
|
|
7292
7292
|
return (/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i).test(getUA());
|
|
7293
7293
|
}
|
|
7294
|
+
// WICG inert polyfills through 3.1.0 install their MutationObserver-driven manager even where
|
|
7295
|
+
// the browser supports inert natively, and inject #inert-style when they do. With one active,
|
|
7296
|
+
// inerting a large subtree costs a full tree walk plus a subtree observer for as long as the
|
|
7297
|
+
// attribute stays, so treat the page as not supporting inert.
|
|
7298
|
+
function supportsInert() {
|
|
7299
|
+
var descriptor = window.HTMLElement && _.isFunction(Object.getOwnPropertyDescriptor) &&
|
|
7300
|
+
Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, 'inert');
|
|
7301
|
+
var isNative = !!(descriptor && descriptor.get && isNativeCode(descriptor.get));
|
|
7302
|
+
var isPolyfilled = !!document.getElementById('inert-style');
|
|
7303
|
+
return isNative && !isPolyfilled;
|
|
7304
|
+
}
|
|
7294
7305
|
function isSafari(userAgent) {
|
|
7295
7306
|
if (userAgent === void 0) { userAgent = getUA(); }
|
|
7296
7307
|
return userAgent.indexOf('Safari') >= 0 && !isChromium(userAgent);
|
|
@@ -7305,6 +7316,7 @@ function isChromium(userAgent) {
|
|
|
7305
7316
|
var sniffer = {
|
|
7306
7317
|
supportsHistoryApi: shouldWrapNativeHistory,
|
|
7307
7318
|
supportsHashChange: shouldWrapHashChange,
|
|
7319
|
+
supportsInert: supportsInert,
|
|
7308
7320
|
hasEvent: function (event) {
|
|
7309
7321
|
// IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have
|
|
7310
7322
|
// it. In particular the event is not fired when backspace or delete key are pressed or
|
|
@@ -7529,37 +7541,14 @@ function applyMatrix2dRect(matrix2d, rect) {
|
|
|
7529
7541
|
return transformedRect;
|
|
7530
7542
|
}
|
|
7531
7543
|
|
|
7532
|
-
var VERSION = '2.
|
|
7544
|
+
var VERSION = '2.343.0_';
|
|
7533
7545
|
|
|
7534
7546
|
var decodeURIComponent = _.isFunction(globalScope.decodeURIComponent) ? globalScope.decodeURIComponent : _.identity;
|
|
7535
7547
|
|
|
7536
7548
|
var encodeURIComponent = _.isFunction(globalScope.encodeURIComponent) ? globalScope.encodeURIComponent : _.identity;
|
|
7537
7549
|
|
|
7538
|
-
var _a;
|
|
7539
|
-
/** Key used to lookup the analytics events in the consent collection policy. */
|
|
7540
|
-
var ANALYTICS = 'analytics';
|
|
7541
|
-
/** Key used to lookup the guide analytics events in the consent collection policy. */
|
|
7542
|
-
var GUIDE_ANALYTICS = 'guideAnalytics';
|
|
7543
|
-
/** Key used to lookup the text collection mode in the consent collection policy. */
|
|
7544
|
-
var TEXT_COLLECTION = 'textCollection';
|
|
7545
|
-
var TEXT_COLLECTION_LEVELS = ['none', 'whitelist', 'all'];
|
|
7546
|
-
function moreTextPermissive(a, b) {
|
|
7547
|
-
return TEXT_COLLECTION_LEVELS.indexOf(b) > TEXT_COLLECTION_LEVELS.indexOf(a) ? b : a;
|
|
7548
|
-
}
|
|
7549
|
-
function unionArrays(a, b) {
|
|
7550
|
-
return _.union(a, b);
|
|
7551
|
-
}
|
|
7552
|
-
// How a granted tier's value for a product combines with what's been resolved so far.
|
|
7553
|
-
// `initial` doubles as what an ungranted tier contributes -- an unlisted product falls
|
|
7554
|
-
// back to DEFAULT_RESOLVER, the plain "any granted tier turns it on" boolean rule.
|
|
7555
|
-
(_a = {},
|
|
7556
|
-
_a[TEXT_COLLECTION] = { initial: TEXT_COLLECTION_LEVELS[0], combine: moreTextPermissive },
|
|
7557
|
-
_a[ANALYTICS] = { initial: [], combine: unionArrays },
|
|
7558
|
-
_a[GUIDE_ANALYTICS] = { initial: [], combine: unionArrays },
|
|
7559
|
-
_a);
|
|
7560
7550
|
/**
|
|
7561
|
-
* A product is enabled
|
|
7562
|
-
* consent configured at all, or a product no tier ever mentions, there's nothing to deny.
|
|
7551
|
+
* A product is enabled only if some granted tier turned it on or cookie consent has not been set.
|
|
7563
7552
|
*
|
|
7564
7553
|
* @access private
|
|
7565
7554
|
* @param {string} product
|