@ada-support/embed2 1.4.5 → 1.4.8

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.
@@ -15811,7 +15811,7 @@ const client = new error_tracker_BrowserClient({
15811
15811
  },
15812
15812
 
15813
15813
  environment: "production",
15814
- release: "1.4.5-be55d58",
15814
+ release: "1.4.8-86c6c1d",
15815
15815
  sampleRate: 0.25,
15816
15816
  autoSessionTracking: false,
15817
15817
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -16432,7 +16432,7 @@ function getEmbedURL(_ref) {
16432
16432
  host = "http://".concat(window.location.hostname, ":9001");
16433
16433
  }
16434
16434
 
16435
- return "".concat(host, "/embed/").concat(frameName, "/").concat("be55d58", "/index.html");
16435
+ return "".concat(host, "/embed/").concat(frameName, "/").concat("86c6c1d", "/index.html");
16436
16436
  }
16437
16437
 
16438
16438
  function constructQueryString(query) {
@@ -18290,7 +18290,7 @@ async function log(message, extra, options) {
18290
18290
  }
18291
18291
 
18292
18292
  await httpRequest({
18293
- url: "".concat(DD_BASE_URL).concat(DD_TOKEN, "?ddsource=browser&ddtags=version:1.5.0"),
18293
+ url: "".concat(DD_BASE_URL).concat(DD_TOKEN, "?ddsource=browser&ddtags=version:1.5.0,env:").concat("production"),
18294
18294
  method: "POST",
18295
18295
  body: JSON.stringify(logger_objectSpread(logger_objectSpread({
18296
18296
  message
@@ -18299,9 +18299,9 @@ async function log(message, extra, options) {
18299
18299
  service: "embed",
18300
18300
  env: "production",
18301
18301
  embedVersion: 2,
18302
- version: "1.4.5",
18302
+ version: "1.4.8",
18303
18303
  isNpm: true,
18304
- commitHash: "be55d58"
18304
+ commitHash: "86c6c1d"
18305
18305
  }))
18306
18306
  });
18307
18307
  }
@@ -18743,7 +18743,7 @@ class ChatFrame extends d {
18743
18743
  const hostPageUrlParams = new (url_default())(window.location.href).searchParams;
18744
18744
  const smsToken = hostPageUrlParams.get("adaSMSToken");
18745
18745
  const queryParams = {
18746
- embedVersion: "be55d58".slice(0, 7),
18746
+ embedVersion: "86c6c1d".slice(0, 7),
18747
18747
  greeting,
18748
18748
  language,
18749
18749
  skipGreeting,
@@ -20056,7 +20056,6 @@ class Container extends d {
20056
20056
  } = adaSettings;
20057
20057
  const localChannel = messageService.getChannel("local");
20058
20058
  const xStorageChannel = messageService.getChannel(XSTORAGE_IFRAME);
20059
- const chatChannel = messageService.getChannel(CHAT_IFRAME);
20060
20059
 
20061
20060
  if (!localChannel) {
20062
20061
  throw new AdaEmbedError("`localChannel` is null");
@@ -20290,6 +20289,8 @@ class Container extends d {
20290
20289
 
20291
20290
  case CLOSE_CAMPAIGN:
20292
20291
  {
20292
+ const chatChannel = messageService.getChannel(CHAT_IFRAME);
20293
+
20293
20294
  if (chatChannel) {
20294
20295
  chatChannel.postMessage(CLOSE_CAMPAIGN);
20295
20296
  }
@@ -20924,7 +20925,7 @@ class Embed {
20924
20925
 
20925
20926
  }
20926
20927
 
20927
- _defineProperty(Embed, "embed2Version", "be55d58");
20928
+ _defineProperty(Embed, "embed2Version", "86c6c1d");
20928
20929
  ;// CONCATENATED MODULE: ./src/common/helpers/startup.ts
20929
20930
 
20930
20931
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.4.5",
3
+ "version": "1.4.8",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index-npm.d.ts",