@pendo/agent 2.348.0 → 2.350.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 +45 -8
- package/dist/pendo.module.js +7197 -7014
- package/dist/pendo.module.min.js +12 -12
- package/dist/pendo.preview.min.js +2 -2
- package/dist/servers.json +8 -8
- package/package.json +1 -1
package/dist/dom.esm.js
CHANGED
|
@@ -21,9 +21,9 @@ function getGlobalScope() {
|
|
|
21
21
|
|
|
22
22
|
var globalScope = getGlobalScope();
|
|
23
23
|
|
|
24
|
-
var setTimeout = safeBind(globalScope.setTimeout, globalScope);
|
|
24
|
+
var setTimeout = safeBind$1(globalScope.setTimeout, globalScope);
|
|
25
25
|
|
|
26
|
-
function safeBind(fn, scope) {
|
|
26
|
+
function safeBind$1(fn, scope) {
|
|
27
27
|
if (typeof fn.bind === 'function') {
|
|
28
28
|
return fn.bind(scope);
|
|
29
29
|
}
|
|
@@ -40,7 +40,7 @@ setTimeout = (function(global) {
|
|
|
40
40
|
return fn;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
return safeBind(global[method], global);
|
|
43
|
+
return safeBind$1(global[method], global);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
return getZoneSafeMethod('setTimeout');
|
|
@@ -48,6 +48,33 @@ setTimeout = (function(global) {
|
|
|
48
48
|
|
|
49
49
|
var setTimeout$1 = setTimeout;
|
|
50
50
|
|
|
51
|
+
var clearTimeout = safeBind(globalScope.clearTimeout, globalScope);
|
|
52
|
+
|
|
53
|
+
function safeBind(fn, scope) {
|
|
54
|
+
if (typeof fn.bind === 'function') {
|
|
55
|
+
return fn.bind(scope);
|
|
56
|
+
}
|
|
57
|
+
return fn;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
clearTimeout = (function(global) {
|
|
61
|
+
function getZoneSafeMethod(method) {
|
|
62
|
+
var zoneSymbol = '__symbol__';
|
|
63
|
+
/* global Zone */
|
|
64
|
+
if (typeof Zone !== 'undefined' && Zone[zoneSymbol] instanceof Function) {
|
|
65
|
+
var fn = global[Zone[zoneSymbol](method)];
|
|
66
|
+
if (fn instanceof Function) {
|
|
67
|
+
return fn;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return safeBind(global[method], global);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return getZoneSafeMethod('clearTimeout');
|
|
74
|
+
})(globalScope);
|
|
75
|
+
|
|
76
|
+
var clearTimeout$1 = clearTimeout;
|
|
77
|
+
|
|
51
78
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
52
79
|
|
|
53
80
|
function getDefaultExportFromCjs (x) {
|
|
@@ -1172,7 +1199,7 @@ var underscore = {exports: {}};
|
|
|
1172
1199
|
args = arguments;
|
|
1173
1200
|
if (remaining <= 0 || remaining > wait) {
|
|
1174
1201
|
if (timeout) {
|
|
1175
|
-
clearTimeout(timeout);
|
|
1202
|
+
clearTimeout$1(timeout);
|
|
1176
1203
|
timeout = null;
|
|
1177
1204
|
}
|
|
1178
1205
|
previous = _now;
|
|
@@ -1185,7 +1212,7 @@ var underscore = {exports: {}};
|
|
|
1185
1212
|
};
|
|
1186
1213
|
|
|
1187
1214
|
throttled.cancel = function() {
|
|
1188
|
-
clearTimeout(timeout);
|
|
1215
|
+
clearTimeout$1(timeout);
|
|
1189
1216
|
previous = 0;
|
|
1190
1217
|
timeout = context = args = null;
|
|
1191
1218
|
};
|
|
@@ -1224,7 +1251,7 @@ var underscore = {exports: {}};
|
|
|
1224
1251
|
});
|
|
1225
1252
|
|
|
1226
1253
|
debounced.cancel = function() {
|
|
1227
|
-
clearTimeout(timeout);
|
|
1254
|
+
clearTimeout$1(timeout);
|
|
1228
1255
|
timeout = args = context = null;
|
|
1229
1256
|
};
|
|
1230
1257
|
|
|
@@ -7310,8 +7337,18 @@ function shouldWrapHashChange() {
|
|
|
7310
7337
|
var hasSupportedDocMode = (!documentMode || documentMode > 7);
|
|
7311
7338
|
return !!(hasNativeHashChange && hasSupportedDocMode && !isExtensionAgent());
|
|
7312
7339
|
}
|
|
7340
|
+
var MOBILE_PLATFORM_PATTERN = /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i;
|
|
7341
|
+
var ANDROID_PATTERN = /Android/i;
|
|
7342
|
+
var MOBILE_TOKEN_PATTERN = /Mobile/i;
|
|
7343
|
+
// The tablet hints mirror the Android tablet rules in pendo-io/uasurfer, so the
|
|
7344
|
+
// guide device setting and the backend's deviceType agree on Android tablets.
|
|
7345
|
+
var ANDROID_TABLET_HINT_PATTERN = /Android [\d.]+; K\)|tablet|sm-t|nexus (7|9|10)|xoom|; kf|; t1|lenovo tab/i;
|
|
7313
7346
|
function isMobileUserAgent() {
|
|
7314
|
-
|
|
7347
|
+
var userAgent = getUA();
|
|
7348
|
+
var isAndroidTablet = function () { return ANDROID_PATTERN.test(userAgent) &&
|
|
7349
|
+
!MOBILE_TOKEN_PATTERN.test(userAgent) &&
|
|
7350
|
+
ANDROID_TABLET_HINT_PATTERN.test(userAgent); };
|
|
7351
|
+
return MOBILE_PLATFORM_PATTERN.test(userAgent) && !isAndroidTablet();
|
|
7315
7352
|
}
|
|
7316
7353
|
function supportsPopover() {
|
|
7317
7354
|
return !!window.HTMLElement && isNativeCode(window.HTMLElement.prototype.showPopover);
|
|
@@ -7555,7 +7592,7 @@ function applyMatrix2dRect(matrix2d, rect) {
|
|
|
7555
7592
|
return transformedRect;
|
|
7556
7593
|
}
|
|
7557
7594
|
|
|
7558
|
-
var VERSION = '2.
|
|
7595
|
+
var VERSION = '2.350.0_';
|
|
7559
7596
|
|
|
7560
7597
|
var decodeURIComponent = _.isFunction(globalScope.decodeURIComponent) ? globalScope.decodeURIComponent : _.identity;
|
|
7561
7598
|
|