@pendo/agent 2.326.0 → 2.328.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.328.0_';
7500
7501
 
7501
7502
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7502
7503
 
@@ -8368,6 +8369,7 @@ Eventable.clear = function (events) {
8368
8369
  new EventType('segmentFlagsReady', [DEBUG, LIFECYCLE]),
8369
8370
  new EventType('segmentFlagsError', [DEBUG, LIFECYCLE]),
8370
8371
  new EventType('guideListChanged', [DEBUG, LIFECYCLE]),
8372
+ new EventType('guidesReceived', [DEBUG, LIFECYCLE]),
8371
8373
  new EventType('guideSeen', [DEBUG, LIFECYCLE]),
8372
8374
  new EventType('guideNotSeen', [DEBUG, LIFECYCLE]),
8373
8375
  new EventType('guideAdvanced', [DEBUG, LIFECYCLE]),
@@ -8814,8 +8816,8 @@ var isUnlocked = function () {
8814
8816
  * Check if the Element has this classname.
8815
8817
  *
8816
8818
  * @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
8819
+ * @param {element} ele The Element to test for the classname
8820
+ * @param {String} cls The classname to look for on the element
8819
8821
  * @returns {Boolean}
8820
8822
  * @access public
8821
8823
  * @category DOM
@@ -8855,7 +8857,7 @@ var _addClass = function (ele, cls) {
8855
8857
  }
8856
8858
  };
8857
8859
  /**
8858
- * Remove a classname from an Elements classlist.
8860
+ * Remove a classname from an Element's classlist.
8859
8861
  *
8860
8862
  * @alias removeClass
8861
8863
  * @param {element} ele The Element from which the class will be removed
@@ -8878,7 +8880,7 @@ var _removeClass = function (ele, cls) {
8878
8880
  }
8879
8881
  };
8880
8882
  /**
8881
- * Sets the classname from an Element.
8883
+ * Sets the classname for an Element.
8882
8884
  *
8883
8885
  * @alias setClass
8884
8886
  * @param {element} ele The Element that will get the new classlist.
@@ -9544,8 +9546,8 @@ DomQuery.$ = {
9544
9546
  return newDom;
9545
9547
  },
9546
9548
  /**
9547
- * Iterate over each element in the DomQuery list and call the provide callback function passing in the
9548
- * the element as the argument.
9549
+ * Iterate over each element in the DomQuery list and call the provided callback function passing in the
9550
+ * element as the argument.
9549
9551
  *
9550
9552
  * @function each
9551
9553
  * @param {function} callback The callback to be called for each element in the list
@@ -9567,7 +9569,7 @@ DomQuery.$ = {
9567
9569
  * Iterate over each element in the DomQuery list and create and append the Elements represented by the HTML string provided.
9568
9570
  *
9569
9571
  * @function html
9570
- * @param {String} htmlString String representing html to be created as dom Elements for each of the Elements in the list.
9572
+ * @param {String} content String representing html to be created as dom Elements for each of the Elements in the list.
9571
9573
  * @returns {DomQuery}
9572
9574
  * @category DOMQuery
9573
9575
  * @access public
@@ -9588,7 +9590,7 @@ DomQuery.$ = {
9588
9590
  * Iterate over each element in the DomQuery list and add the text provided as innerText on the element.
9589
9591
  *
9590
9592
  * @function text
9591
- * @param {String} content String to be added as innerText
9593
+ * @param {String} content String to be added as innerText.
9592
9594
  * @returns {DomQuery}
9593
9595
  * @access public
9594
9596
  * @category DOMQuery
@@ -9653,7 +9655,7 @@ DomQuery.$ = {
9653
9655
  });
9654
9656
  },
9655
9657
  /**
9656
- * Iterate over each element and checks for each class name. Returns true if all elements have each classname.
9658
+ * Iterate over each element and check for each class name. Returns true if all elements have each classname.
9657
9659
  *
9658
9660
  * @function hasClass
9659
9661
  * @param {String} classNames Space separated string of classnames.
@@ -9676,7 +9678,7 @@ DomQuery.$ = {
9676
9678
  return allElemsHaveClass;
9677
9679
  },
9678
9680
  /**
9679
- * Iterate over each element and toggle each class name on or off depending on the
9681
+ * Iterate over each element and toggle each class name on or off depending on
9680
9682
  * the current state of the element.
9681
9683
  *
9682
9684
  * @function toggleClass
@@ -9704,7 +9706,7 @@ DomQuery.$ = {
9704
9706
  * Iterate over each element and apply the styles object.
9705
9707
  *
9706
9708
  * @function css
9707
- * @param {Object} styles Object containing style attributes names and values
9709
+ * @param {Object} styles Object containing style attribute names and values.
9708
9710
  * @returns {DomQuery}
9709
9711
  * @access public
9710
9712
  * @category DOMQuery
@@ -9758,7 +9760,7 @@ DomQuery.$ = {
9758
9760
  return self;
9759
9761
  },
9760
9762
  /**
9761
- * Add all elements in the list as top most child nodes of the first element found for the given selector.
9763
+ * Add all elements in the list as topmost child nodes of the first element found for the given selector.
9762
9764
  *
9763
9765
  * @function prependTo
9764
9766
  * @param {String} selector CSS selector to identify the target parent element
@@ -9773,10 +9775,10 @@ DomQuery.$ = {
9773
9775
  return this;
9774
9776
  },
9775
9777
  /**
9776
- * Add all children from the selector as top most children of the first element in this list
9778
+ * Add all children from the selector as topmost children of the first element in this list.
9777
9779
  *
9778
9780
  * @function prepend
9779
- * @param {String} selector CSS selector to identify top most child element(s)
9781
+ * @param {String} selector CSS selector to identify topmost child element(s)
9780
9782
  * @returns {DomQuery}
9781
9783
  * @access public
9782
9784
  * @category DOMQuery
@@ -9800,7 +9802,7 @@ DomQuery.$ = {
9800
9802
  return self;
9801
9803
  },
9802
9804
  /**
9803
- * Return the parent node of the first element in this list
9805
+ * Return the parent node of the first element in this list.
9804
9806
  *
9805
9807
  * @function getParent
9806
9808
  * @returns {element}
@@ -9817,7 +9819,7 @@ DomQuery.$ = {
9817
9819
  },
9818
9820
  /**
9819
9821
  * For the first element in this list, insert the first element from the selector before it
9820
- * in parent element's child nodes list.
9822
+ * in the parent element's child nodes list.
9821
9823
  *
9822
9824
  * @function insertBefore
9823
9825
  * @param {String} selector CSS selector for the element to be inserted before this element
@@ -9856,7 +9858,7 @@ DomQuery.$ = {
9856
9858
  return this;
9857
9859
  },
9858
9860
  /**
9859
- * Iterate over each element and set the attribute name to the specified value
9861
+ * Iterate over each element and set the attribute name to the specified value.
9860
9862
  *
9861
9863
  * @function attr
9862
9864
  * @param {String} attrName Name of attribute to set
@@ -9917,10 +9919,10 @@ DomQuery.$ = {
9917
9919
  return dom(this[index]);
9918
9920
  },
9919
9921
  /**
9920
- * Set the height or unset the height for the first element in the list
9922
+ * Set the height or unset the height for the first element in the list.
9921
9923
  *
9922
9924
  * @function height
9923
- * @param {Number} height The new height to set. Undefined will remove the height allow it to auto determined.
9925
+ * @param {Number} height The new height to set. Undefined will remove the height and allow it to be auto determined.
9924
9926
  * @returns {DomQuery}
9925
9927
  * @access public
9926
9928
  * @category DOMQuery
@@ -9941,10 +9943,10 @@ DomQuery.$ = {
9941
9943
  }
9942
9944
  },
9943
9945
  /**
9944
- * Set the width or unset the width for the first element in the list
9946
+ * Set the width or unset the width for the first element in the list.
9945
9947
  *
9946
9948
  * @function width
9947
- * @param {Number} width The new width to set. Undefined will remove the width allow it to auto determined.
9949
+ * @param {Number} width The new width to set. Undefined will remove the width and allow it to be auto determined.
9948
9950
  * @returns {DomQuery}
9949
9951
  * @access public
9950
9952
  * @category DOMQuery
@@ -9965,7 +9967,7 @@ DomQuery.$ = {
9965
9967
  }
9966
9968
  },
9967
9969
  /**
9968
- * For each element in the list, call the element's focus method if it exists
9970
+ * For each element in the list, call the element's focus method if it exists.
9969
9971
  *
9970
9972
  * @function focus
9971
9973
  * @returns {DomQuery}