@pendo/agent 2.326.0 → 2.327.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 CHANGED
@@ -5058,16 +5058,17 @@ var SizzleProxy = wrapSizzle(Sizzle);
5058
5058
  * pendo.dom('h1')[0].remove()
5059
5059
  * @example
5060
5060
  * pendo.dom('.left').css({ 'text-align': 'center' })
5061
- */ /**
5062
- * Creates new DOM elements from HTML text.
5063
- *
5064
- * @param {string} htmlString HTML syntax used to produce new DOM elements
5065
- * @returns {DomQuery} array with the matching elements
5066
- * @access public
5067
- * @category DOM
5068
- * @example
5069
- * pendo.dom('<div><span>this should create an unattached DOM node</span></div>');
5070
- */
5061
+ */
5062
+ /**
5063
+ * Creates new DOM elements from HTML text.
5064
+ *
5065
+ * @param {string} htmlString HTML syntax used to produce new DOM elements
5066
+ * @returns {DomQuery} array with the newly created elements
5067
+ * @access public
5068
+ * @category DOM
5069
+ * @example
5070
+ * pendo.dom('<div><span>this should create an unattached DOM node</span></div>');
5071
+ */
5071
5072
  function dom(selection, context) {
5072
5073
  var self = this;
5073
5074
  var nodes;
@@ -5141,11 +5142,11 @@ function dom(selection, context) {
5141
5142
  }
5142
5143
 
5143
5144
  /**
5144
- * Utility function to check if passed value exists. Returns false for `null` and `undefined`.
5145
+ * Utility function to check if the passed value exists. Returns false for `null` and `undefined`.
5145
5146
  *
5146
5147
  * @access public
5147
5148
  * @category Utility
5148
- * @param {any} value argument to type check
5149
+ * @param {any} arg value to type check
5149
5150
  * @returns {Boolean}
5150
5151
  * @example
5151
5152
  * pendo.doesExist(null) => false
@@ -6373,7 +6374,7 @@ var ConfigReader = (function () {
6373
6374
  *
6374
6375
  * @access public
6375
6376
  * @category Config/Core
6376
- * @name forceLeader
6377
+ * @name forcedLeader
6377
6378
  * @default false
6378
6379
  * @type {boolean}
6379
6380
  */
@@ -6560,7 +6561,7 @@ var ConfigReader = (function () {
6560
6561
  * An array of exact strings that can still be included in event data if text capture is disabled
6561
6562
  * (`excludeAllText`). This will not override any allow list specified by your application settings but will apply if none is provided.
6562
6563
  * These are not selectors but are equality checks (the string 'Bug' will allow links that have 'Bug' as the
6563
- * text to be captured but not ones like 'Bug Report')
6564
+ * text to be captured but not ones like 'Bug Report').
6564
6565
  *
6565
6566
  * @access public
6566
6567
  * @category Config/Analytics
@@ -6658,7 +6659,7 @@ var ConfigReader = (function () {
6658
6659
  /**
6659
6660
  * By default, the web SDK will also attempt to intercept calls to `stopPropagation` and
6660
6661
  * `stopImmediatePropagation` for click, focus, submit, and change events in order to ensure that Pendo can
6661
- * still probably recognize these events. In the case of this causing duplicate events or other issues, this
6662
+ * still properly recognize these events. In the case of this causing duplicate events or other issues, this
6662
6663
  * functionality can be disabled.
6663
6664
  *
6664
6665
  * @access public
@@ -6721,7 +6722,7 @@ var ConfigReader = (function () {
6721
6722
  */
6722
6723
  addOption('cacheGuides', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
6723
6724
  /**
6724
- * How often to clear the guides cache (in milliseconds)
6725
+ * How often to clear the guides cache (in milliseconds).
6725
6726
  *
6726
6727
  * @access public
6727
6728
  * @category Config/Guides
@@ -6755,7 +6756,7 @@ var ConfigReader = (function () {
6755
6756
  addOption('disableGlobalCSS', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
6756
6757
  /**
6757
6758
  * Building block guides use an inline style tag for various pseudo styles (e.g. hover, carets, animations).
6758
- * These can be turned off using this flag for application's with more restrictive CSP settings but will
6759
+ * These can be turned off using this flag for applications with more restrictive CSP settings but will
6759
6760
  * require custom effort to reach style parity.
6760
6761
  *
6761
6762
  * @access public
@@ -6781,7 +6782,7 @@ var ConfigReader = (function () {
6781
6782
  * cookies, localStorage, click tracking, and metadata. Only displays guides
6782
6783
  * that have been configured explicitly to show to this visitor.
6783
6784
  *
6784
- * @access public
6785
+ * @access private
6785
6786
  * @category Config/Guides
6786
6787
  * @name doNotTrackGuides
6787
6788
  * @default false
@@ -6789,7 +6790,7 @@ var ConfigReader = (function () {
6789
6790
  */
6790
6791
  addOption('doNotTrackGuides', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6791
6792
  /**
6792
- * If `true`, the web SDK will listen for `alt+shift+8` on the keyboard and try to launch the designer (). The
6793
+ * If `true`, the web SDK will listen for `alt+shift+8` on the keyboard and try to launch the designer. The
6793
6794
  * keyboard shortcut requires the guide launch modal of Engage to be open in another tab showing the shortcut.
6794
6795
  *
6795
6796
  * @access public
@@ -6867,7 +6868,7 @@ var ConfigReader = (function () {
6867
6868
  */
6868
6869
  addOption('guides.disabled', [SNIPPET_SRC], false, undefined, ['disableGuides']);
6869
6870
  /**
6870
- * If 'true', guides with slow selectors will be removed from guide display processing.
6871
+ * If `true`, guides with slow selectors will be removed from guide display processing.
6871
6872
  * This will improve application performance, but slow guides will not be shown to users.
6872
6873
  *
6873
6874
  * @access public
@@ -6923,7 +6924,7 @@ var ConfigReader = (function () {
6923
6924
  */
6924
6925
  addOption('inlineStyleNonce', [SNIPPET_SRC]);
6925
6926
  /**
6926
- * Formerly `leaderKey` Specify a preferred publicAppId to lead the multi-application iframe installation to make decisions about automatic
6927
+ * Formerly `leaderKey`. Specify a preferred publicAppId to lead the multi-application iframe installation to make decisions about automatic
6927
6928
  * guide display. In installations with more than 2 publicAppIds, the leaderApplication can be specified as a priority
6928
6929
  * list (e.g. `leaderApplication: ['key1', 'key2', ...]`). Either all frames must agree on the leaderApplication setting,
6929
6930
  * or only one frame should specify the leaderApplication. If neither of these conditions are met, the default leader
@@ -6953,7 +6954,7 @@ var ConfigReader = (function () {
6953
6954
  addOption('storage.allowKeys', [SNIPPET_SRC], '*');
6954
6955
  // Feedback
6955
6956
  /**
6956
- * If Feedback is setup for your subscription, this option can be used to selectively disable Feedback.
6957
+ * If Feedback is set up for your subscription, this option can be used to selectively disable Feedback.
6957
6958
  *
6958
6959
  * @access public
6959
6960
  * @category Config/Core
@@ -6966,8 +6967,8 @@ var ConfigReader = (function () {
6966
6967
  addOption('feedbackSettings', [PENDO_CONFIG_SRC], {});
6967
6968
  addOption('pendoFeedback', [PENDO_CONFIG_SRC], false);
6968
6969
  /**
6969
- * If set, the web SDK will use this as the suffix when writing last step advanced key into the visitors cookie.
6970
- * This supports cross app guides by having a shared accessible location for different apps on the same effective level domain.
6970
+ * If set, the web SDK will use this as the suffix when writing the last step advanced key into the visitor's cookie.
6971
+ * This supports cross-app guides by having a shared accessible location for different apps on the same effective level domain.
6971
6972
  *
6972
6973
  * @access public
6973
6974
  * @category Config/Core
@@ -7496,7 +7497,7 @@ function applyMatrix2dRect(matrix2d, rect) {
7496
7497
  return transformedRect;
7497
7498
  }
7498
7499
 
7499
- var VERSION = '2.326.0_';
7500
+ var VERSION = '2.327.0_';
7500
7501
 
7501
7502
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7502
7503
 
@@ -8814,8 +8815,8 @@ var isUnlocked = function () {
8814
8815
  * Check if the Element has this classname.
8815
8816
  *
8816
8817
  * @alias hasClass
8817
- * @param {element} elem The Element to test for the classname
8818
- * @param {String} class The classname to look for on the element
8818
+ * @param {element} ele The Element to test for the classname
8819
+ * @param {String} cls The classname to look for on the element
8819
8820
  * @returns {Boolean}
8820
8821
  * @access public
8821
8822
  * @category DOM
@@ -8855,7 +8856,7 @@ var _addClass = function (ele, cls) {
8855
8856
  }
8856
8857
  };
8857
8858
  /**
8858
- * Remove a classname from an Elements classlist.
8859
+ * Remove a classname from an Element's classlist.
8859
8860
  *
8860
8861
  * @alias removeClass
8861
8862
  * @param {element} ele The Element from which the class will be removed
@@ -8878,7 +8879,7 @@ var _removeClass = function (ele, cls) {
8878
8879
  }
8879
8880
  };
8880
8881
  /**
8881
- * Sets the classname from an Element.
8882
+ * Sets the classname for an Element.
8882
8883
  *
8883
8884
  * @alias setClass
8884
8885
  * @param {element} ele The Element that will get the new classlist.
@@ -9544,8 +9545,8 @@ DomQuery.$ = {
9544
9545
  return newDom;
9545
9546
  },
9546
9547
  /**
9547
- * Iterate over each element in the DomQuery list and call the provide callback function passing in the
9548
- * the element as the argument.
9548
+ * Iterate over each element in the DomQuery list and call the provided callback function passing in the
9549
+ * element as the argument.
9549
9550
  *
9550
9551
  * @function each
9551
9552
  * @param {function} callback The callback to be called for each element in the list
@@ -9567,7 +9568,7 @@ DomQuery.$ = {
9567
9568
  * Iterate over each element in the DomQuery list and create and append the Elements represented by the HTML string provided.
9568
9569
  *
9569
9570
  * @function html
9570
- * @param {String} htmlString String representing html to be created as dom Elements for each of the Elements in the list.
9571
+ * @param {String} content String representing html to be created as dom Elements for each of the Elements in the list.
9571
9572
  * @returns {DomQuery}
9572
9573
  * @category DOMQuery
9573
9574
  * @access public
@@ -9588,7 +9589,7 @@ DomQuery.$ = {
9588
9589
  * Iterate over each element in the DomQuery list and add the text provided as innerText on the element.
9589
9590
  *
9590
9591
  * @function text
9591
- * @param {String} content String to be added as innerText
9592
+ * @param {String} content String to be added as innerText.
9592
9593
  * @returns {DomQuery}
9593
9594
  * @access public
9594
9595
  * @category DOMQuery
@@ -9653,7 +9654,7 @@ DomQuery.$ = {
9653
9654
  });
9654
9655
  },
9655
9656
  /**
9656
- * Iterate over each element and checks for each class name. Returns true if all elements have each classname.
9657
+ * Iterate over each element and check for each class name. Returns true if all elements have each classname.
9657
9658
  *
9658
9659
  * @function hasClass
9659
9660
  * @param {String} classNames Space separated string of classnames.
@@ -9676,7 +9677,7 @@ DomQuery.$ = {
9676
9677
  return allElemsHaveClass;
9677
9678
  },
9678
9679
  /**
9679
- * Iterate over each element and toggle each class name on or off depending on the
9680
+ * Iterate over each element and toggle each class name on or off depending on
9680
9681
  * the current state of the element.
9681
9682
  *
9682
9683
  * @function toggleClass
@@ -9704,7 +9705,7 @@ DomQuery.$ = {
9704
9705
  * Iterate over each element and apply the styles object.
9705
9706
  *
9706
9707
  * @function css
9707
- * @param {Object} styles Object containing style attributes names and values
9708
+ * @param {Object} styles Object containing style attribute names and values.
9708
9709
  * @returns {DomQuery}
9709
9710
  * @access public
9710
9711
  * @category DOMQuery
@@ -9758,7 +9759,7 @@ DomQuery.$ = {
9758
9759
  return self;
9759
9760
  },
9760
9761
  /**
9761
- * Add all elements in the list as top most child nodes of the first element found for the given selector.
9762
+ * Add all elements in the list as topmost child nodes of the first element found for the given selector.
9762
9763
  *
9763
9764
  * @function prependTo
9764
9765
  * @param {String} selector CSS selector to identify the target parent element
@@ -9773,10 +9774,10 @@ DomQuery.$ = {
9773
9774
  return this;
9774
9775
  },
9775
9776
  /**
9776
- * Add all children from the selector as top most children of the first element in this list
9777
+ * Add all children from the selector as topmost children of the first element in this list.
9777
9778
  *
9778
9779
  * @function prepend
9779
- * @param {String} selector CSS selector to identify top most child element(s)
9780
+ * @param {String} selector CSS selector to identify topmost child element(s)
9780
9781
  * @returns {DomQuery}
9781
9782
  * @access public
9782
9783
  * @category DOMQuery
@@ -9800,7 +9801,7 @@ DomQuery.$ = {
9800
9801
  return self;
9801
9802
  },
9802
9803
  /**
9803
- * Return the parent node of the first element in this list
9804
+ * Return the parent node of the first element in this list.
9804
9805
  *
9805
9806
  * @function getParent
9806
9807
  * @returns {element}
@@ -9817,7 +9818,7 @@ DomQuery.$ = {
9817
9818
  },
9818
9819
  /**
9819
9820
  * For the first element in this list, insert the first element from the selector before it
9820
- * in parent element's child nodes list.
9821
+ * in the parent element's child nodes list.
9821
9822
  *
9822
9823
  * @function insertBefore
9823
9824
  * @param {String} selector CSS selector for the element to be inserted before this element
@@ -9856,7 +9857,7 @@ DomQuery.$ = {
9856
9857
  return this;
9857
9858
  },
9858
9859
  /**
9859
- * Iterate over each element and set the attribute name to the specified value
9860
+ * Iterate over each element and set the attribute name to the specified value.
9860
9861
  *
9861
9862
  * @function attr
9862
9863
  * @param {String} attrName Name of attribute to set
@@ -9917,10 +9918,10 @@ DomQuery.$ = {
9917
9918
  return dom(this[index]);
9918
9919
  },
9919
9920
  /**
9920
- * Set the height or unset the height for the first element in the list
9921
+ * Set the height or unset the height for the first element in the list.
9921
9922
  *
9922
9923
  * @function height
9923
- * @param {Number} height The new height to set. Undefined will remove the height allow it to auto determined.
9924
+ * @param {Number} height The new height to set. Undefined will remove the height and allow it to be auto determined.
9924
9925
  * @returns {DomQuery}
9925
9926
  * @access public
9926
9927
  * @category DOMQuery
@@ -9941,10 +9942,10 @@ DomQuery.$ = {
9941
9942
  }
9942
9943
  },
9943
9944
  /**
9944
- * Set the width or unset the width for the first element in the list
9945
+ * Set the width or unset the width for the first element in the list.
9945
9946
  *
9946
9947
  * @function width
9947
- * @param {Number} width The new width to set. Undefined will remove the width allow it to auto determined.
9948
+ * @param {Number} width The new width to set. Undefined will remove the width and allow it to be auto determined.
9948
9949
  * @returns {DomQuery}
9949
9950
  * @access public
9950
9951
  * @category DOMQuery
@@ -9965,7 +9966,7 @@ DomQuery.$ = {
9965
9966
  }
9966
9967
  },
9967
9968
  /**
9968
- * For each element in the list, call the element's focus method if it exists
9969
+ * For each element in the list, call the element's focus method if it exists.
9969
9970
  *
9970
9971
  * @function focus
9971
9972
  * @returns {DomQuery}