@pendo/agent 2.270.0 → 2.271.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/pendo.module.js +24 -4
- package/dist/pendo.module.min.js +1 -1
- package/package.json +1 -1
- package/setup.js +3 -2
package/dist/pendo.module.js
CHANGED
|
@@ -10636,8 +10636,8 @@ var SERVER = '';
|
|
|
10636
10636
|
var ASSET_HOST = '';
|
|
10637
10637
|
var ASSET_PATH = '';
|
|
10638
10638
|
var DESIGNER_ENV = '';
|
|
10639
|
-
var VERSION = '2.
|
|
10640
|
-
var PACKAGE_VERSION = '2.
|
|
10639
|
+
var VERSION = '2.271.0_';
|
|
10640
|
+
var PACKAGE_VERSION = '2.271.0';
|
|
10641
10641
|
var LOADER = 'xhr';
|
|
10642
10642
|
/* eslint-enable agent-eslint-rules/no-gulp-env-references */
|
|
10643
10643
|
/**
|
|
@@ -26648,6 +26648,14 @@ function PermalinkConstructor(findGuideById) {
|
|
|
26648
26648
|
var permalinkGuide = this.getGuideFromUrl(queryString);
|
|
26649
26649
|
if (permalinkGuide && this.shouldShowPermalinkGuide(permalinkGuide)) {
|
|
26650
26650
|
var step = this.getStepFromUrl(queryString, permalinkGuide);
|
|
26651
|
+
var once = queryString.pendo_once;
|
|
26652
|
+
if (once) {
|
|
26653
|
+
delete queryString.pendo_once;
|
|
26654
|
+
delete queryString.pendo;
|
|
26655
|
+
delete queryString.step;
|
|
26656
|
+
delete queryString.c__pendo;
|
|
26657
|
+
window.history.replaceState({}, document.title, window.location.pathname + '?' + objectToQueryString(queryString));
|
|
26658
|
+
}
|
|
26651
26659
|
return this.showPermalinkGuide(permalinkGuide, step);
|
|
26652
26660
|
}
|
|
26653
26661
|
}
|
|
@@ -41920,10 +41928,22 @@ var ActionAutomation = (function () {
|
|
|
41920
41928
|
return config.value;
|
|
41921
41929
|
}
|
|
41922
41930
|
function injectText(element, value) {
|
|
41931
|
+
var valueDescriptor;
|
|
41932
|
+
if (element.tagName === 'INPUT') {
|
|
41933
|
+
valueDescriptor = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value');
|
|
41934
|
+
}
|
|
41935
|
+
if (element.tagName === 'TEXTAREA') {
|
|
41936
|
+
valueDescriptor = Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype, 'value');
|
|
41937
|
+
}
|
|
41938
|
+
if (valueDescriptor && typeof valueDescriptor.set === 'function') {
|
|
41939
|
+
valueDescriptor.set.call(element, value); // ensures React ≥ 15.6.1 updates value in state
|
|
41940
|
+
}
|
|
41923
41941
|
element.value = value;
|
|
41924
41942
|
var inputEvent = new InputEvent('input', { 'bubbles': true, 'data': value[value.length - 1] });
|
|
41943
|
+
inputEvent.simulated = true; // for React ≤ 15.6.0
|
|
41925
41944
|
element.dispatchEvent(inputEvent);
|
|
41926
41945
|
var changeEvent = new InputEvent('change', { 'bubbles': true });
|
|
41946
|
+
changeEvent.simulated = true; // for React ≤ 15.6.0
|
|
41927
41947
|
element.dispatchEvent(changeEvent);
|
|
41928
41948
|
}
|
|
41929
41949
|
function isAutomationInQueue(automation) {
|
|
@@ -42818,9 +42838,9 @@ var FrustrationEvent = (function () {
|
|
|
42818
42838
|
function getPreviousPageLoads() {
|
|
42819
42839
|
var previousPageLoads = pluginApi.sessionStorage.getItem(previousPageLoadsCookie);
|
|
42820
42840
|
if (previousPageLoads != null && previousPageLoads.length > 0) {
|
|
42821
|
-
|
|
42841
|
+
previousPageLoads = JSON.parse(previousPageLoads);
|
|
42822
42842
|
}
|
|
42823
|
-
return [];
|
|
42843
|
+
return _.isArray(previousPageLoads) ? previousPageLoads : [];
|
|
42824
42844
|
}
|
|
42825
42845
|
function setPreviousPageLoads(pageLoads) {
|
|
42826
42846
|
pluginApi.sessionStorage.setItem(previousPageLoadsCookie, JSON.stringify(pageLoads));
|