@pendo/agent 2.340.0 → 2.342.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 +13 -1
- package/dist/pendo.module.js +562 -324
- package/dist/pendo.module.min.js +14 -14
- 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,7 +7541,7 @@ function applyMatrix2dRect(matrix2d, rect) {
|
|
|
7529
7541
|
return transformedRect;
|
|
7530
7542
|
}
|
|
7531
7543
|
|
|
7532
|
-
var VERSION = '2.
|
|
7544
|
+
var VERSION = '2.342.0_';
|
|
7533
7545
|
|
|
7534
7546
|
var decodeURIComponent = _.isFunction(globalScope.decodeURIComponent) ? globalScope.decodeURIComponent : _.identity;
|
|
7535
7547
|
|