@pendo/agent 2.319.0 → 2.319.2

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
@@ -7473,7 +7473,7 @@ function applyMatrix2dRect(matrix2d, rect) {
7473
7473
  return transformedRect;
7474
7474
  }
7475
7475
 
7476
- var VERSION = '2.319.0_';
7476
+ var VERSION = '2.319.2_';
7477
7477
 
7478
7478
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7479
7479
 
@@ -3956,8 +3956,8 @@ let SERVER = '';
3956
3956
  let ASSET_HOST = '';
3957
3957
  let ASSET_PATH = '';
3958
3958
  let DESIGNER_SERVER = '';
3959
- let VERSION = '2.319.0_';
3960
- let PACKAGE_VERSION = '2.319.0';
3959
+ let VERSION = '2.319.2_';
3960
+ let PACKAGE_VERSION = '2.319.2';
3961
3961
  let LOADER = 'xhr';
3962
3962
  /* eslint-enable web-sdk-eslint-rules/no-gulp-env-references */
3963
3963
  /**
@@ -28970,8 +28970,8 @@ const initialize = makeSafe(function (options) {
28970
28970
  // Register handlers passed through pendo_options
28971
28971
  teardownFns.push(forwardInternalEvents(Events));
28972
28972
  registerEventHandlers(options);
28973
- teardownFns.push(initGuides(observer)); // this is safe. loadGuides actually does the loading.
28974
28973
  teardownFns.push(initializeCrossFrameChannel(store));
28974
+ teardownFns.push(initGuides(observer)); // this is safe. loadGuides actually does the loading.
28975
28975
  teardownFns.push(P2AutoLaunch.loadPluginJs());
28976
28976
  teardownFns.push(initIdentityEvents()); // setup identify and meta event listeners
28977
28977
  teardownFns.push(wirePage());
@@ -43330,24 +43330,20 @@ var NodeType$3 = /* @__PURE__ */ ((NodeType2) => {
43330
43330
  NodeType2[NodeType2["Comment"] = 5] = "Comment";
43331
43331
  return NodeType2;
43332
43332
  })(NodeType$3 || {});
43333
- const testableAccessors$2 = {
43333
+ const testableAccessors$1 = {
43334
43334
  Node: ["childNodes", "parentNode", "parentElement", "textContent"],
43335
43335
  ShadowRoot: ["host", "styleSheets"],
43336
43336
  Element: ["shadowRoot"],
43337
- MutationObserver: [],
43338
- EventTarget: [],
43339
- Window: []
43337
+ MutationObserver: []
43340
43338
  };
43341
- const testableMethods$2 = {
43339
+ const testableMethods$1 = {
43342
43340
  Node: ["contains", "getRootNode"],
43343
43341
  ShadowRoot: ["getSelection"],
43344
43342
  Element: ["querySelector", "querySelectorAll"],
43345
- MutationObserver: ["constructor"],
43346
- EventTarget: ["addEventListener", "removeEventListener"],
43347
- Window: ["setTimeout"]
43343
+ MutationObserver: ["constructor"]
43348
43344
  };
43349
- const untaintedBasePrototype$2 = {};
43350
- function angularZoneUnpatchedAlternative$2(key) {
43345
+ const untaintedBasePrototype$1 = {};
43346
+ function angularZoneUnpatchedAlternative$1(key) {
43351
43347
  var _a2, _b;
43352
43348
  const angularUnpatchedVersionSymbol = (_b = (_a2 = globalThis == null ? void 0 : globalThis.Zone) == null ? void 0 : _a2.__symbol__) == null ? void 0 : _b.call(_a2, key);
43353
43349
  if (angularUnpatchedVersionSymbol && globalThis[angularUnpatchedVersionSymbol]) {
@@ -43356,12 +43352,12 @@ function angularZoneUnpatchedAlternative$2(key) {
43356
43352
  return void 0;
43357
43353
  }
43358
43354
  }
43359
- function getUntaintedPrototype$2(key) {
43360
- if (untaintedBasePrototype$2[key])
43361
- return untaintedBasePrototype$2[key];
43362
- const candidate = angularZoneUnpatchedAlternative$2(key) || globalThis[key];
43355
+ function getUntaintedPrototype$1(key) {
43356
+ if (untaintedBasePrototype$1[key])
43357
+ return untaintedBasePrototype$1[key];
43358
+ const candidate = angularZoneUnpatchedAlternative$1(key) || globalThis[key];
43363
43359
  const defaultPrototype = candidate.prototype;
43364
- const accessorNames = key in testableAccessors$2 ? testableAccessors$2[key] : void 0;
43360
+ const accessorNames = key in testableAccessors$1 ? testableAccessors$1[key] : void 0;
43365
43361
  const isUntaintedAccessors = Boolean(
43366
43362
  accessorNames && // @ts-expect-error 2345
43367
43363
  accessorNames.every(
@@ -43373,7 +43369,7 @@ function getUntaintedPrototype$2(key) {
43373
43369
  }
43374
43370
  )
43375
43371
  );
43376
- const methodNames = key in testableMethods$2 ? testableMethods$2[key] : void 0;
43372
+ const methodNames = key in testableMethods$1 ? testableMethods$1[key] : void 0;
43377
43373
  const isUntaintedMethods = Boolean(
43378
43374
  methodNames && methodNames.every(
43379
43375
  // @ts-expect-error 2345
@@ -43384,7 +43380,7 @@ function getUntaintedPrototype$2(key) {
43384
43380
  )
43385
43381
  );
43386
43382
  if (isUntaintedAccessors && isUntaintedMethods) {
43387
- untaintedBasePrototype$2[key] = candidate.prototype;
43383
+ untaintedBasePrototype$1[key] = candidate.prototype;
43388
43384
  return candidate.prototype;
43389
43385
  }
43390
43386
  try {
@@ -43395,7 +43391,7 @@ function getUntaintedPrototype$2(key) {
43395
43391
  const untaintedObject = win[key].prototype;
43396
43392
  document.body.removeChild(iframeEl);
43397
43393
  if (!untaintedObject) return defaultPrototype;
43398
- return untaintedBasePrototype$2[key] = untaintedObject;
43394
+ return untaintedBasePrototype$1[key] = untaintedObject;
43399
43395
  } catch {
43400
43396
  return defaultPrototype;
43401
43397
  }
@@ -43408,7 +43404,7 @@ function getUntaintedAccessor$1(key, instance, accessor) {
43408
43404
  return untaintedAccessorCache$1[cacheKey].call(
43409
43405
  instance
43410
43406
  );
43411
- const untaintedPrototype = getUntaintedPrototype$2(key);
43407
+ const untaintedPrototype = getUntaintedPrototype$1(key);
43412
43408
  const untaintedAccessor = (_a2 = Object.getOwnPropertyDescriptor(
43413
43409
  untaintedPrototype,
43414
43410
  accessor
@@ -43417,17 +43413,17 @@ function getUntaintedAccessor$1(key, instance, accessor) {
43417
43413
  untaintedAccessorCache$1[cacheKey] = untaintedAccessor;
43418
43414
  return untaintedAccessor.call(instance);
43419
43415
  }
43420
- const untaintedMethodCache$2 = {};
43421
- function getUntaintedMethod$2(key, instance, method) {
43416
+ const untaintedMethodCache$1 = {};
43417
+ function getUntaintedMethod$1(key, instance, method) {
43422
43418
  const cacheKey = `${key}.${String(method)}`;
43423
- if (untaintedMethodCache$2[cacheKey])
43424
- return untaintedMethodCache$2[cacheKey].bind(
43419
+ if (untaintedMethodCache$1[cacheKey])
43420
+ return untaintedMethodCache$1[cacheKey].bind(
43425
43421
  instance
43426
43422
  );
43427
- const untaintedPrototype = getUntaintedPrototype$2(key);
43423
+ const untaintedPrototype = getUntaintedPrototype$1(key);
43428
43424
  const untaintedMethod = untaintedPrototype[method];
43429
43425
  if (typeof untaintedMethod !== "function") return instance[method];
43430
- untaintedMethodCache$2[cacheKey] = untaintedMethod;
43426
+ untaintedMethodCache$1[cacheKey] = untaintedMethod;
43431
43427
  return untaintedMethod.bind(instance);
43432
43428
  }
43433
43429
  function childNodes$1(n2) {
@@ -43443,10 +43439,10 @@ function textContent$1(n2) {
43443
43439
  return getUntaintedAccessor$1("Node", n2, "textContent");
43444
43440
  }
43445
43441
  function contains$1(n2, other) {
43446
- return getUntaintedMethod$2("Node", n2, "contains")(other);
43442
+ return getUntaintedMethod$1("Node", n2, "contains")(other);
43447
43443
  }
43448
43444
  function getRootNode$1(n2) {
43449
- return getUntaintedMethod$2("Node", n2, "getRootNode")();
43445
+ return getUntaintedMethod$1("Node", n2, "getRootNode")();
43450
43446
  }
43451
43447
  function host$1(n2) {
43452
43448
  if (!n2 || !("host" in n2)) return null;
@@ -43460,13 +43456,13 @@ function shadowRoot$1(n2) {
43460
43456
  return getUntaintedAccessor$1("Element", n2, "shadowRoot");
43461
43457
  }
43462
43458
  function querySelector$1(n2, selectors) {
43463
- return getUntaintedMethod$2("Element", n2, "querySelector")(selectors);
43459
+ return getUntaintedMethod$1("Element", n2, "querySelector")(selectors);
43464
43460
  }
43465
43461
  function querySelectorAll$1(n2, selectors) {
43466
- return getUntaintedMethod$2("Element", n2, "querySelectorAll")(selectors);
43462
+ return getUntaintedMethod$1("Element", n2, "querySelectorAll")(selectors);
43467
43463
  }
43468
43464
  function mutationObserverCtor$1() {
43469
- return getUntaintedPrototype$2("MutationObserver").constructor;
43465
+ return getUntaintedPrototype$1("MutationObserver").constructor;
43470
43466
  }
43471
43467
  function patch$1(source, name, replacement) {
43472
43468
  try {
@@ -43525,7 +43521,19 @@ function isShadowRoot(n2) {
43525
43521
  function isNativeShadowDom(shadowRoot2) {
43526
43522
  return Object.prototype.toString.call(shadowRoot2) === "[object ShadowRoot]";
43527
43523
  }
43528
- const nativeSetTimeout = typeof window !== "undefined" ? getUntaintedMethod$2("Window", window, "setTimeout").bind(window) : global.setTimeout;
43524
+ function getNative$1(symbolName, windowObj = window) {
43525
+ var _a2, _b;
43526
+ const windowWithZone = windowObj;
43527
+ const angularZoneSymbol = (_b = (_a2 = windowWithZone == null ? void 0 : windowWithZone.Zone) == null ? void 0 : _a2.__symbol__) == null ? void 0 : _b.call(_a2, symbolName);
43528
+ if (angularZoneSymbol) {
43529
+ const zonelessImpl = windowWithZone[angularZoneSymbol];
43530
+ if (zonelessImpl) {
43531
+ return zonelessImpl;
43532
+ }
43533
+ }
43534
+ return windowWithZone[symbolName];
43535
+ }
43536
+ const nativeSetTimeout = typeof window !== "undefined" ? getNative$1("setTimeout").bind(window) : global.setTimeout;
43529
43537
  function fixBrowserCompatibilityIssuesInCSS(cssText) {
43530
43538
  if (cssText.includes(" background-clip: text;") && !cssText.includes(" -webkit-background-clip: text;")) {
43531
43539
  cssText = cssText.replace(
@@ -44849,90 +44857,19 @@ function snapshot(n2, options) {
44849
44857
  var __defProp2 = Object.defineProperty;
44850
44858
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
44851
44859
  var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
44852
- const testableAccessors$1 = {
44853
- Node: ["childNodes", "parentNode", "parentElement", "textContent"],
44854
- ShadowRoot: ["host", "styleSheets"],
44855
- Element: ["shadowRoot"],
44856
- MutationObserver: [],
44857
- EventTarget: [],
44858
- Window: []
44859
- };
44860
- const testableMethods$1 = {
44861
- Node: ["contains", "getRootNode"],
44862
- ShadowRoot: ["getSelection"],
44863
- Element: ["querySelector", "querySelectorAll"],
44864
- MutationObserver: ["constructor"],
44865
- EventTarget: ["addEventListener", "removeEventListener"],
44866
- Window: ["setTimeout"]
44867
- };
44868
- const untaintedBasePrototype$1 = {};
44869
- function angularZoneUnpatchedAlternative$1(key) {
44860
+ function getNative(symbolName, windowObj = window) {
44870
44861
  var _a2, _b;
44871
- const angularUnpatchedVersionSymbol = (_b = (_a2 = globalThis == null ? void 0 : globalThis.Zone) == null ? void 0 : _a2.__symbol__) == null ? void 0 : _b.call(_a2, key);
44872
- if (angularUnpatchedVersionSymbol && globalThis[angularUnpatchedVersionSymbol]) {
44873
- return globalThis[angularUnpatchedVersionSymbol];
44874
- } else {
44875
- return void 0;
44876
- }
44877
- }
44878
- function getUntaintedPrototype$1(key) {
44879
- if (untaintedBasePrototype$1[key])
44880
- return untaintedBasePrototype$1[key];
44881
- const candidate = angularZoneUnpatchedAlternative$1(key) || globalThis[key];
44882
- const defaultPrototype = candidate.prototype;
44883
- const accessorNames = key in testableAccessors$1 ? testableAccessors$1[key] : void 0;
44884
- const isUntaintedAccessors = Boolean(
44885
- accessorNames && // @ts-expect-error 2345
44886
- accessorNames.every(
44887
- (accessor) => {
44888
- var _a2, _b;
44889
- return Boolean(
44890
- (_b = (_a2 = Object.getOwnPropertyDescriptor(defaultPrototype, accessor)) == null ? void 0 : _a2.get) == null ? void 0 : _b.toString().includes("[native code]")
44891
- );
44892
- }
44893
- )
44894
- );
44895
- const methodNames = key in testableMethods$1 ? testableMethods$1[key] : void 0;
44896
- const isUntaintedMethods = Boolean(
44897
- methodNames && methodNames.every(
44898
- // @ts-expect-error 2345
44899
- (method) => {
44900
- var _a2;
44901
- return typeof defaultPrototype[method] === "function" && ((_a2 = defaultPrototype[method]) == null ? void 0 : _a2.toString().includes("[native code]"));
44902
- }
44903
- )
44904
- );
44905
- if (isUntaintedAccessors && isUntaintedMethods) {
44906
- untaintedBasePrototype$1[key] = candidate.prototype;
44907
- return candidate.prototype;
44908
- }
44909
- try {
44910
- const iframeEl = document.createElement("iframe");
44911
- document.body.appendChild(iframeEl);
44912
- const win = iframeEl.contentWindow;
44913
- if (!win) return candidate.prototype;
44914
- const untaintedObject = win[key].prototype;
44915
- document.body.removeChild(iframeEl);
44916
- if (!untaintedObject) return defaultPrototype;
44917
- return untaintedBasePrototype$1[key] = untaintedObject;
44918
- } catch {
44919
- return defaultPrototype;
44862
+ const windowWithZone = windowObj;
44863
+ const angularZoneSymbol = (_b = (_a2 = windowWithZone == null ? void 0 : windowWithZone.Zone) == null ? void 0 : _a2.__symbol__) == null ? void 0 : _b.call(_a2, symbolName);
44864
+ if (angularZoneSymbol) {
44865
+ const zonelessImpl = windowWithZone[angularZoneSymbol];
44866
+ if (zonelessImpl) {
44867
+ return zonelessImpl;
44868
+ }
44920
44869
  }
44870
+ return windowWithZone[symbolName];
44921
44871
  }
44922
- const untaintedMethodCache$1 = {};
44923
- function getUntaintedMethod$1(key, instance, method) {
44924
- const cacheKey = `${key}.${String(method)}`;
44925
- if (untaintedMethodCache$1[cacheKey])
44926
- return untaintedMethodCache$1[cacheKey].bind(
44927
- instance
44928
- );
44929
- const untaintedPrototype = getUntaintedPrototype$1(key);
44930
- const untaintedMethod = untaintedPrototype[method];
44931
- if (typeof untaintedMethod !== "function") return instance[method];
44932
- untaintedMethodCache$1[cacheKey] = untaintedMethod;
44933
- return untaintedMethod.bind(instance);
44934
- }
44935
- typeof window !== "undefined" ? getUntaintedMethod$1("Window", window, "setTimeout").bind(window) : global.setTimeout;
44872
+ typeof window !== "undefined" ? getNative("setTimeout").bind(window) : global.setTimeout;
44936
44873
  class BaseRRNode {
44937
44874
  // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
44938
44875
  constructor(..._args) {
@@ -44994,17 +44931,13 @@ const testableAccessors = {
44994
44931
  Node: ["childNodes", "parentNode", "parentElement", "textContent"],
44995
44932
  ShadowRoot: ["host", "styleSheets"],
44996
44933
  Element: ["shadowRoot"],
44997
- MutationObserver: [],
44998
- EventTarget: [],
44999
- Window: []
44934
+ MutationObserver: []
45000
44935
  };
45001
44936
  const testableMethods = {
45002
44937
  Node: ["contains", "getRootNode"],
45003
44938
  ShadowRoot: ["getSelection"],
45004
44939
  Element: ["querySelector", "querySelectorAll"],
45005
- MutationObserver: ["constructor"],
45006
- EventTarget: ["addEventListener", "removeEventListener"],
45007
- Window: ["setTimeout"]
44940
+ MutationObserver: ["constructor"]
45008
44941
  };
45009
44942
  const untaintedBasePrototype = {};
45010
44943
  function angularZoneUnpatchedAlternative(key) {
@@ -45185,11 +45118,20 @@ const index = {
45185
45118
  mutationObserver: mutationObserverCtor,
45186
45119
  patch
45187
45120
  };
45121
+ function getWindow(documentOrWindow) {
45122
+ const defaultView = documentOrWindow.defaultView;
45123
+ return defaultView ? defaultView : documentOrWindow;
45124
+ }
45188
45125
  function on(type, fn, target = document) {
45126
+ const windowObj = getWindow(target);
45127
+ const nativeAddEventListener = getNative$1(
45128
+ "addEventListener",
45129
+ windowObj
45130
+ );
45131
+ const nativeRemoveEventListener = getNative$1("removeEventListener", windowObj);
45189
45132
  const options = { capture: true, passive: true };
45190
- const eventTarget = target;
45191
- getUntaintedMethod("EventTarget", eventTarget, "addEventListener")(type, fn, options);
45192
- return () => getUntaintedMethod("EventTarget", eventTarget, "removeEventListener")(type, fn, options);
45133
+ nativeAddEventListener.call(target, type, fn, options);
45134
+ return () => nativeRemoveEventListener.call(target, type, fn, options);
45193
45135
  }
45194
45136
  const DEPARTED_MIRROR_ACCESS_WARNING = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";
45195
45137
  let _mirror = {