@ada-support/embed2 1.0.75 → 1.0.76

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.
@@ -8788,7 +8788,7 @@ var client = new error_tracker_BrowserClient({
8788
8788
  return event;
8789
8789
  },
8790
8790
  environment: "production",
8791
- release: "1.0.75-b7ed156",
8791
+ release: "1.0.76-0f7dd6a",
8792
8792
  sampleRate: 0.25,
8793
8793
  autoSessionTracking: false,
8794
8794
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -9490,7 +9490,7 @@ function getEmbedURL(_ref) {
9490
9490
  polyfillVersionString = "legacy";
9491
9491
  }
9492
9492
 
9493
- return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "b7ed156", "/index.html");
9493
+ return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "0f7dd6a", "/index.html");
9494
9494
  }
9495
9495
  /**
9496
9496
  * Generate the Chat / API URL
@@ -14335,7 +14335,7 @@ window.__AdaEmbedConstructor = Embed;
14335
14335
  /* harmony export */ });
14336
14336
  var isModern = new RegExp("((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(15|(1[6-9]|[2-9]\\d|\\d{3,}))[_.]\\d+(?:[_.]\\d+)?)|((Chromium|Chrome)\\/(99|([1-9]\\d\\d|\\d{4,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(15|(1[6-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(98|(99|\\d{3,}))\\.\\d+\\.\\d+)|(Firefox\\/(98|(99|\\d{3,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
14337
14337
  var isProduction = "production" === "production";
14338
- var embed2Version = "b7ed156";
14338
+ var embed2Version = "0f7dd6a";
14339
14339
 
14340
14340
  /***/ }),
14341
14341
 
@@ -14681,9 +14681,9 @@ function _log() {
14681
14681
  service: "embed",
14682
14682
  env: "production",
14683
14683
  embedVersion: 2,
14684
- version: "1.0.75",
14684
+ version: "1.0.76",
14685
14685
  isNpm: true,
14686
- commitHash: "b7ed156"
14686
+ commitHash: "0f7dd6a"
14687
14687
  }))
14688
14688
  });
14689
14689
 
@@ -25624,7 +25624,7 @@ function _loadEmbed() {
25624
25624
  polyfillVersionString = "legacy";
25625
25625
  }
25626
25626
 
25627
- embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "b7ed156", "/index.js");
25627
+ embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "0f7dd6a", "/index.js");
25628
25628
  }
25629
25629
 
25630
25630
  clientScriptExists = Boolean( true || // The client script is bundled with npm module
@@ -25750,7 +25750,10 @@ function createEmbedObject() {
25750
25750
  (0,logger/* log */.cM)("Embed start", {
25751
25751
  handle: adaSettings.handle,
25752
25752
  embedSettings: adaSettings,
25753
- hostPage: window.location.href
25753
+ hostPage: window.location.href,
25754
+ adaScriptURL: function (scriptElement) {
25755
+ return scriptElement ? scriptElement.src : null;
25756
+ }(document.getElementById("__ada"))
25754
25757
  });
25755
25758
  return _context2.abrupt("return", embed.initialized);
25756
25759
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index.d.ts",