@pendo/agent 2.310.1 → 2.311.1

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
@@ -5375,7 +5375,7 @@ var shadowAPI = (function () {
5375
5375
  if (!isShadowSelector(selection)) {
5376
5376
  var queryResults_1 = Sizzle(selection, context, results, seed);
5377
5377
  if (shadowDomManager.cache.size > 0) {
5378
- // eslint-disable-next-line agent-eslint-rules/no-array-foreach
5378
+ // eslint-disable-next-line web-sdk-eslint-rules/no-array-foreach
5379
5379
  shadowDomManager.cache.forEach(function (shadowRoot) {
5380
5380
  if (!context || context === document || contains(context, shadowRoot)) {
5381
5381
  queryResults_1.push.apply(queryResults_1, Sizzle(selection, shadowRoot, results, seed));
@@ -6178,14 +6178,20 @@ var ConfigReader = (function () {
6178
6178
  *
6179
6179
  * key - Actual config property name. Allows for disambiguation for the same property from different sources
6180
6180
  */
6181
- function addOption(name, sources, defaultValue, anySource) {
6181
+ function addOption(name, sources, defaultValue, anySource, aliases) {
6182
6182
  if (sources === void 0) { sources = [PENDO_CONFIG_SRC]; }
6183
+ if (aliases === void 0) { aliases = []; }
6183
6184
  if (!name)
6184
6185
  return;
6185
6186
  if (optionMap[name])
6186
6187
  return;
6188
+ if (!_.isArray(aliases)) {
6189
+ // not using logging here to keep circular dependency issues clean
6190
+ aliases = [];
6191
+ }
6187
6192
  var opt = {
6188
6193
  name: name,
6194
+ aliases: aliases,
6189
6195
  defaultValue: defaultValue,
6190
6196
  supportedSources: sources
6191
6197
  };
@@ -6193,13 +6199,20 @@ var ConfigReader = (function () {
6193
6199
  opt.useAnySource = anySource;
6194
6200
  }
6195
6201
  optionMap[name] = opt;
6202
+ if (aliases.length > 0) {
6203
+ _.each(aliases, function (alias) {
6204
+ if (optionMap[alias] !== undefined)
6205
+ return;
6206
+ optionMap[alias] = opt;
6207
+ });
6208
+ }
6196
6209
  }
6197
6210
  function initializeOptions() {
6198
6211
  // Core
6199
6212
  /**
6200
6213
  * Formerly `additionalApiKeys`. When included, all analytics events will be sent to each of the public app IDs in the list (guide events are
6201
6214
  * only sent to the primary public app ID). This will only function if there are no `additionalPublicAppIds` set on
6202
- * the configuration included in the downloaded Agent.
6215
+ * the configuration included in the downloaded web SDK.
6203
6216
  *
6204
6217
  * @access public
6205
6218
  * @category Config/Core
@@ -6225,8 +6238,8 @@ var ConfigReader = (function () {
6225
6238
  */
6226
6239
  addOption('annotateUrl', [SNIPPET_SRC]);
6227
6240
  /**
6228
- * Formerly `apiKey`. A primary public app ID to send data to from the Agent. This will only function if there is no `publicAppId` set
6229
- * on the configuration included in the downloaded Agent.
6241
+ * Formerly `apiKey`. A primary public app ID to send data to from the web SDK. This will only function if there is no `publicAppId` set
6242
+ * on the configuration included in the downloaded web SDK.
6230
6243
  *
6231
6244
  * @access public
6232
6245
  * @category Config/Core
@@ -6238,7 +6251,7 @@ var ConfigReader = (function () {
6238
6251
  addOption('apiKey', [PENDO_CONFIG_SRC, SNIPPET_SRC]);
6239
6252
  addOption('assetHost', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6240
6253
  /**
6241
- * If set to `true`, the agent will try to install and initialize in all same-origin frames on the page.
6254
+ * If set to `true`, the web SDK will try to install and initialize in all same-origin frames on the page.
6242
6255
  * Read more about [frame support](/advanced/auto-frame-install).
6243
6256
  *
6244
6257
  * @access public
@@ -6262,7 +6275,7 @@ var ConfigReader = (function () {
6262
6275
  */
6263
6276
  addOption('contentHost', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6264
6277
  /**
6265
- * A unique domain to append to cookies that the Agent stores. If this is set, the Agent will not use local
6278
+ * A unique domain to append to cookies that the web SDK stores. If this is set, the web SDK will not use local
6266
6279
  * storage but will store all information as cookies using this domain. If not set, the browser will use
6267
6280
  * the current domain when setting cookies. **Note:** The domain must match the domain of the JavaScript
6268
6281
  * origin. Setting cookies to foreign domains will be silently ignored.
@@ -6288,7 +6301,7 @@ var ConfigReader = (function () {
6288
6301
  addOption('dataHost', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6289
6302
  addOption('disableAutoInitialize');
6290
6303
  /**
6291
- * Although the name refers to cookies, if set to `true` the Agent will not persist any data in local
6304
+ * Although the name refers to cookies, if set to `true` the web SDK will not persist any data in local
6292
6305
  * storage or cookies and will rely only on memory.
6293
6306
  *
6294
6307
  * @access public
@@ -6299,7 +6312,7 @@ var ConfigReader = (function () {
6299
6312
  */
6300
6313
  addOption('disableCookies', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6301
6314
  /**
6302
- * If set to `true` the Agent will cancel out of initialization. This can be useful to disable the Agent
6315
+ * If set to `true` the web SDK will cancel out of initialization. This can be useful to disable the web SDK
6303
6316
  * with minimal code changes.
6304
6317
  *
6305
6318
  * @access public
@@ -6310,9 +6323,9 @@ var ConfigReader = (function () {
6310
6323
  */
6311
6324
  addOption('disablePendo', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
6312
6325
  /**
6313
- * By default, the Agent will store the most recently used visitor and account ids as well as historical
6314
- * metadata. These stored values will be used if the agent is initialized in the future without them.
6315
- * Setting this to `true` will mean the agent will not store these values but will only use what is provided
6326
+ * By default, the web SDK will store the most recently used visitor and account ids as well as historical
6327
+ * metadata. These stored values will be used if the web SDK is initialized in the future without them.
6328
+ * Setting this to `true` will mean the web SDK will not store these values but will only use what is provided
6316
6329
  * or fall back to anonymous ids.
6317
6330
  *
6318
6331
  * @access public
@@ -6325,7 +6338,7 @@ var ConfigReader = (function () {
6325
6338
  addOption('enableSignedMetadata', [PENDO_CONFIG_SRC], false);
6326
6339
  /**
6327
6340
  * By default, the identity of a visitor in various iframes on a page are independent from each other.
6328
- * Setting this to `true` will instead have the Agent make sure all frames use the exact same visitor and
6341
+ * Setting this to `true` will instead have the web SDK make sure all frames use the exact same visitor and
6329
6342
  * account information. Read more about [frame support](/advanced/auto-frame-install).
6330
6343
  *
6331
6344
  * @access public
@@ -6350,7 +6363,7 @@ var ConfigReader = (function () {
6350
6363
  /**
6351
6364
  * Having identity persisted by default makes it so that a transition from using identified visitor ids
6352
6365
  * to using anonymous visitor ids is challenging. Anyone that used your application with an identified
6353
- * visitor id would have that value persisted to storage and whenever they agent is initialized for them,
6366
+ * visitor id would have that value persisted to storage and whenever the web SDK is initialized for them,
6354
6367
  * that value would be read from storage treating them as the same identified visitor. When set `true`,
6355
6368
  * this config option will only use persisted identity values if they are an anonymous id. It is meant to
6356
6369
  * be used to smoothly make this transition to using anonymous ids while still retaining the benefit of
@@ -6367,7 +6380,7 @@ var ConfigReader = (function () {
6367
6380
  addOption('identityStorageLifetime', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6368
6381
  addOption('identityStorageSuffix', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6369
6382
  /**
6370
- * If set to `true`, the Agent will strip url fragments from the url used for events (everything after a `#`
6383
+ * If set to `true`, the web SDK will strip url fragments from the url used for events (everything after a `#`
6371
6384
  * symbol). **Deprecated:** new usages to edit the url for events should use the
6372
6385
  * [location api](/advanced/location).
6373
6386
  *
@@ -6379,8 +6392,8 @@ var ConfigReader = (function () {
6379
6392
  */
6380
6393
  addOption('ignoreHashRouting', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6381
6394
  /**
6382
- * By default, the Agent will wait until the `document.readyState` is set to `"complete"`. Setting this to
6383
- * `true` will allow the Agent to initialize while the document is still loading.
6395
+ * By default, the web SDK will wait until the `document.readyState` is set to `"complete"`. Setting this to
6396
+ * `true` will allow the web SDK to initialize while the document is still loading.
6384
6397
  *
6385
6398
  * @access public
6386
6399
  * @category Config/Core
@@ -6391,7 +6404,7 @@ var ConfigReader = (function () {
6391
6404
  addOption('initializeImmediately', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
6392
6405
  addOption('installType');
6393
6406
  /**
6394
- * If set to `true`, the Agent will only persist data using local storage and memory.
6407
+ * If set to `true`, the web SDK will only persist data using local storage and memory.
6395
6408
  *
6396
6409
  * @access public
6397
6410
  * @category Config/Core
@@ -6401,7 +6414,7 @@ var ConfigReader = (function () {
6401
6414
  */
6402
6415
  addOption('localStorageOnly', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6403
6416
  /**
6404
- * If set to `false`, the Agent will not use the `History.pushState` api to detect changes to the browser's
6417
+ * If set to `false`, the web SDK will not use the `History.pushState` api to detect changes to the browser's
6405
6418
  * URL. Instead a poll will be used. This can be necessary to disable for some SFDC applications.
6406
6419
  *
6407
6420
  * @access public
@@ -6414,8 +6427,8 @@ var ConfigReader = (function () {
6414
6427
  addOption('maxCookieTTLDays', [SNIPPET_SRC, PENDO_CONFIG_SRC], Infinity);
6415
6428
  /**
6416
6429
  * Use this setting when using `preferMutationObserver` with an application that has Shadow DOM elements.
6417
- * On page load, the Agent will run a full document scan for shadow roots and attach a MutationObserver to
6418
- * all results. This setting also allows the agent to run CSS selectors in all shadow roots, so CSS selectors
6430
+ * On page load, the web SDK will run a full document scan for shadow roots and attach a MutationObserver to
6431
+ * all results. This setting also allows the web SDK to run CSS selectors in all shadow roots, so CSS selectors
6419
6432
  * can be written without specifying the full path through all shadow roots with the `::shadow` pseudo-class.
6420
6433
  *
6421
6434
  * @access public
@@ -6428,8 +6441,8 @@ var ConfigReader = (function () {
6428
6441
  addOption('pendoCore', [PENDO_CONFIG_SRC], true);
6429
6442
  addOption('pendoGlobalKey', [PENDO_CONFIG_SRC]);
6430
6443
  /**
6431
- * By default, if there are multiple frames on the page that have the Agent installed, they will communicate
6432
- * using `window.postMessage`. If set to `true` the Agent will instead use the browser's Broadcast Channel
6444
+ * By default, if there are multiple frames on the page that have the web SDK installed, they will communicate
6445
+ * using `window.postMessage`. If set to `true` the web SDK will instead use the browser's Broadcast Channel
6433
6446
  * API to communicate. This will only work when all frames use the same domain.
6434
6447
  *
6435
6448
  * @access public
@@ -6440,8 +6453,8 @@ var ConfigReader = (function () {
6440
6453
  */
6441
6454
  addOption('preferBroadcastChannel', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
6442
6455
  /**
6443
- * By default, the Agent will scan the page every 500ms to determine if any new badges or guides are eligible.
6444
- * To improve idle performance, this can be set to `true` and then the Agent will instead use a mutation
6456
+ * By default, the web SDK will scan the page every 500ms to determine if any new badges or guides are eligible.
6457
+ * To improve idle performance, this can be set to `true` and then the web SDK will instead use a mutation
6445
6458
  * observer and only check eligibility if the page content has changed.
6446
6459
  *
6447
6460
  * @access public
@@ -6453,8 +6466,8 @@ var ConfigReader = (function () {
6453
6466
  addOption('preferMutationObserver', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
6454
6467
  addOption('preventCookieRefresh');
6455
6468
  /**
6456
- * By default, the Agent adds an `unload` event listener to the page to make sure it sends events upon
6457
- * navigation. If set to `true`, the Agent will instead use the `visibilitychange` event listener and send
6469
+ * By default, the web SDK adds an `unload` event listener to the page to make sure it sends events upon
6470
+ * navigation. If set to `true`, the web SDK will instead use the `visibilitychange` event listener and send
6458
6471
  * events when the visibility is changing to `"hidden"`.
6459
6472
  *
6460
6473
  * @access public
@@ -6466,7 +6479,7 @@ var ConfigReader = (function () {
6466
6479
  addOption('preventUnloadListener', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
6467
6480
  addOption('promotedAgentMetadataConfigurations', [PENDO_CONFIG_SRC]);
6468
6481
  /**
6469
- * An array of strings or a function that returns an array of strings. The Agent will then strip any query
6482
+ * An array of strings or a function that returns an array of strings. The web SDK will then strip any query
6470
6483
  * string parameters from the url that are not found in the provided array. **Deprecated:** new usages to
6471
6484
  * edit the url for events should use the [location api](/advanced/location).
6472
6485
  *
@@ -6492,7 +6505,7 @@ var ConfigReader = (function () {
6492
6505
  addOption('sanitizeUrl', [SNIPPET_SRC]);
6493
6506
  addOption('selfHosted');
6494
6507
  /**
6495
- * Meant to be used with `autoFrameInstall`. If set, the Agent will use this as the url to download the Agent
6508
+ * Meant to be used with `autoFrameInstall`. If set, the web SDK will use this as the url to download itself
6496
6509
  * from in child frames. Read more about [frame support](/advanced/auto-frame-install).
6497
6510
  *
6498
6511
  * @access public
@@ -6519,7 +6532,7 @@ var ConfigReader = (function () {
6519
6532
  // Analytics
6520
6533
  /**
6521
6534
  * An array of exact strings that can still be included in event data if text capture is disabled
6522
- * (`excludeAllText`). This will override any allow list that is stored for your application settings.
6535
+ * (`excludeAllText`). This will not override any allow list specified by your application settings but will apply if none is provided.
6523
6536
  * These are not selectors but are equality checks (the string 'Bug' will allow links that have 'Bug' as the
6524
6537
  * text to be captured but not ones like 'Bug Report')
6525
6538
  *
@@ -6529,9 +6542,9 @@ var ConfigReader = (function () {
6529
6542
  * @default []
6530
6543
  * @type {string[]}
6531
6544
  */
6532
- addOption('allowedText', [SNIPPET_SRC, PENDO_CONFIG_SRC], []);
6545
+ addOption('allowedText', [PENDO_CONFIG_SRC, SNIPPET_SRC], [], true);
6533
6546
  /**
6534
- * An array of specific Pendo events that you do not want the Agent to capture. Available event types
6547
+ * An array of specific Pendo events that you do not want the web SDK to capture. Available event types
6535
6548
  * include: `identify`, `meta`, `load`, `click`, `focus`, `submit`, `change`, `track`. See [Event Controls](/events/event-controls)
6536
6549
  * for more information.
6537
6550
  *
@@ -6553,7 +6566,7 @@ var ConfigReader = (function () {
6553
6566
  */
6554
6567
  addOption('analytics.localStorageUnload', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
6555
6568
  /**
6556
- * If set to `true`, the Agent will log out when various events internal to the Agent occur.
6569
+ * If set to `true`, the web SDK will log when various internal events occur.
6557
6570
  *
6558
6571
  * @access public
6559
6572
  * @category Config/Analytics
@@ -6577,7 +6590,7 @@ var ConfigReader = (function () {
6577
6590
  */
6578
6591
  addOption('eventPropertyMatchParents', [SNIPPET_SRC, PENDO_CONFIG_SRC], true);
6579
6592
  /**
6580
- * By default, the Agent will include text from elements while capturing events. Setting this to `true` will
6593
+ * By default, the web SDK will include text from elements while capturing events. Setting this to `true` will
6581
6594
  * instead prevent the text from being included unless it matches the `allowedText` list. If the subscription
6582
6595
  * flag to disable text capture is turned on, this option cannot be used to reenable it.
6583
6596
  *
@@ -6589,7 +6602,7 @@ var ConfigReader = (function () {
6589
6602
  */
6590
6603
  addOption('excludeAllText', [PENDO_CONFIG_SRC, SNIPPET_SRC], false, true);
6591
6604
  /**
6592
- * When `true`, the Agent will only send guide and poll events. All other events will not be sent, including:
6605
+ * When `true`, the web SDK will only send guide and poll events. All other events will not be sent, including:
6593
6606
  * identify, meta, load, click, focus, change, submit, or track. Metadata assigned to visitors will still function
6594
6607
  * for guide targeting but will not be sent to Pendo to be visible in the UI. See [Event Controls](/events/event-controls)
6595
6608
  * for more information.
@@ -6605,7 +6618,7 @@ var ConfigReader = (function () {
6605
6618
  addOption('htmlAttributes');
6606
6619
  addOption('interceptElementRemoval', [SNIPPET_SRC, PENDO_CONFIG_SRC], false); // old, use syntheticClicks.elementRemoval instead
6607
6620
  /**
6608
- * By default, the agent will attempt to intercept calls to `preventDefault` on `touchend` events in order to
6621
+ * By default, the web SDK will attempt to intercept calls to `preventDefault` on `touchend` events in order to
6609
6622
  * ensure that Pendo still tracks the click event. There are cases where your application might prevent these
6610
6623
  * original clicks in order to synthesize your own click event, in that case and where you might be seeing
6611
6624
  * duplicate clicks because of it, this functionality can be disabled.
@@ -6618,7 +6631,7 @@ var ConfigReader = (function () {
6618
6631
  */
6619
6632
  addOption('interceptPreventDefault', [SNIPPET_SRC, PENDO_CONFIG_SRC], true);
6620
6633
  /**
6621
- * By default, the agent will also attempt to intercept calls to `stopPropagation` and
6634
+ * By default, the web SDK will also attempt to intercept calls to `stopPropagation` and
6622
6635
  * `stopImmediatePropagation` for click, focus, submit, and change events in order to ensure that Pendo can
6623
6636
  * still probably recognize these events. In the case of this causing duplicate events or other issues, this
6624
6637
  * functionality can be disabled.
@@ -6633,7 +6646,7 @@ var ConfigReader = (function () {
6633
6646
  /**
6634
6647
  * Sometimes an application removes an event that is clicked on between the `mousedown` and `mouseup` browser
6635
6648
  * events. In these cases, Pendo will not be able to capture the `click` event properly for events or guide
6636
- * behavior. Setting this to `true` will have the Agent intercept these types of element removal to ensure
6649
+ * behavior. Setting this to `true` will have the web SDK intercept these types of element removal to ensure
6637
6650
  * more consistent Pendo behavior (this option has been moved from `interceptElementRemoval`).
6638
6651
  *
6639
6652
  * @access public
@@ -6693,7 +6706,7 @@ var ConfigReader = (function () {
6693
6706
  addOption('cacheGuidesTimeout', [PENDO_CONFIG_SRC], 600000);
6694
6707
  addOption('delayGuides', [SNIPPET_SRC]); // old, use guides.delay instead
6695
6708
  /**
6696
- * If `true`, this will prevent the agent from attempting to launch the Visual Design Studio.
6709
+ * If `true`, this will prevent the web SDK from attempting to launch the Visual Design Studio.
6697
6710
  *
6698
6711
  * @access public
6699
6712
  * @category Config/Guides
@@ -6704,7 +6717,7 @@ var ConfigReader = (function () {
6704
6717
  addOption('disableDesigner', [PENDO_CONFIG_SRC, SNIPPET_SRC], false);
6705
6718
  addOption('disableDesignerKeyboardShortcut', [PENDO_CONFIG_SRC], false);
6706
6719
  /**
6707
- * If `true`, this will prevent the agent from downloading your application's
6720
+ * If `true`, this will prevent the web SDK from downloading your application's
6708
6721
  * [global css](https://support.pendo.io/hc/en-us/articles/360032206511-Guide-Styling-Classic-#global-css-0-2)
6709
6722
  * file as well as the default classic guide css.
6710
6723
  *
@@ -6740,7 +6753,7 @@ var ConfigReader = (function () {
6740
6753
  */
6741
6754
  addOption('disablePrefetch', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6742
6755
  /**
6743
- * If `true`, the agent will listen for `alt+shift+8` on the keyboard and try to launch the designer (). The
6756
+ * If `true`, the web SDK will listen for `alt+shift+8` on the keyboard and try to launch the designer (). The
6744
6757
  * keyboard shortcut requires the guide launch modal of Engage to be open in another tab showing the shortcut.
6745
6758
  *
6746
6759
  * @access public
@@ -6860,8 +6873,8 @@ var ConfigReader = (function () {
6860
6873
  */
6861
6874
  addOption('guides.tooltip.arrowSize', [SNIPPET_SRC]);
6862
6875
  /**
6863
- * If set, the agent will attach the provided value as a [nonce](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP#nonces)
6864
- * onto all inline stylesheets the agent adds. This is used to remove the need for "unsafe-inline" on the "style-src" of your
6876
+ * If set, the web SDK will attach the provided value as a [nonce](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP#nonces)
6877
+ * onto all inline stylesheets the web SDK adds. This is used to remove the need for "unsafe-inline" on the "style-src" of your
6865
6878
  * CSP and will support live guides as well as Visual Design Studio users.
6866
6879
  *
6867
6880
  * @access public
@@ -6915,7 +6928,7 @@ var ConfigReader = (function () {
6915
6928
  addOption('feedbackSettings', [PENDO_CONFIG_SRC], {});
6916
6929
  addOption('pendoFeedback', [PENDO_CONFIG_SRC], false);
6917
6930
  /**
6918
- * If set, the Agent will use this as the suffix when writing last step advanced key into the visitors cookie.
6931
+ * If set, the web SDK will use this as the suffix when writing last step advanced key into the visitors cookie.
6919
6932
  * This supports cross app guides by having a shared accessible location for different apps on the same effective level domain.
6920
6933
  *
6921
6934
  * @access public
@@ -6926,7 +6939,7 @@ var ConfigReader = (function () {
6926
6939
  */
6927
6940
  addOption('crossAppGuideStorageSuffix', [SNIPPET_SRC, PENDO_CONFIG_SRC]);
6928
6941
  /**
6929
- * If `true`, the Agent will launch a version of the Designer that is compatible with the
6942
+ * If `true`, the web SDK will launch a version of the Designer that is compatible with the
6930
6943
  * `Cross-Origin-Embedder-Policy: require-corp` header.
6931
6944
  *
6932
6945
  * @access public
@@ -7428,7 +7441,7 @@ function applyMatrix2dRect(matrix2d, rect) {
7428
7441
  return transformedRect;
7429
7442
  }
7430
7443
 
7431
- var VERSION = '2.310.1_';
7444
+ var VERSION = '2.311.1_';
7432
7445
 
7433
7446
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7434
7447