@ada-support/embed2 1.11.1 → 1.11.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.
@@ -15919,7 +15919,7 @@ const client = new BrowserClient({
15919
15919
  return event;
15920
15920
  },
15921
15921
  environment: "production",
15922
- release: "1.11.1-c291df9",
15922
+ release: "1.11.2-6ffecd9",
15923
15923
  sampleRate: 0.25,
15924
15924
  autoSessionTracking: false,
15925
15925
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -16464,9 +16464,9 @@ async function log(message, extra, options) {
16464
16464
  service: "embed",
16465
16465
  env: "production",
16466
16466
  embedVersion: 2,
16467
- version: "1.11.1",
16467
+ version: "1.11.2",
16468
16468
  isNpm: true,
16469
- commitHash: "c291df9"
16469
+ commitHash: "6ffecd9"
16470
16470
  }))
16471
16471
  });
16472
16472
  }
@@ -16489,10 +16489,11 @@ function subscribeEvent(eventKey, callback) {
16489
16489
 
16490
16490
  // Log chat_frame_timeout event subscriptions
16491
16491
  if (eventKey === "ada:chat_frame_timeout") {
16492
+ var _document$getElementB;
16493
+ const domHandle = (_document$getElementB = document.getElementById("__ada")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.getAttribute("data-handle");
16492
16494
  log("Client subscribed to chat_frame_timeout event", {
16493
- handle: isStartOptions(window.adaSettings) ? window.adaSettings.handle : undefined,
16494
- hostPage: window.location.href,
16495
- timestamp: new Date().toISOString()
16495
+ handle: domHandle || (isStartOptions(window.adaSettings) ? window.adaSettings.handle : undefined),
16496
+ hostPage: window.location.href
16496
16497
  }, {
16497
16498
  sampleRate: 0.1,
16498
16499
  level: "info"
@@ -16568,7 +16569,7 @@ function getEmbedURL(_ref) {
16568
16569
  } else {
16569
16570
  host = `http://${handle}.localhost:9001`;
16570
16571
  }
16571
- return `${host}/embed/${frameName}/${"c291df9"}/index.html`;
16572
+ return `${host}/embed/${frameName}/${"6ffecd9"}/index.html`;
16572
16573
  }
16573
16574
  function constructQueryString(query) {
16574
16575
  return Object.keys(query).map(key => {
@@ -18959,7 +18960,7 @@ class ChatFrame extends d {
18959
18960
  log("Chat frame mount", {
18960
18961
  handle,
18961
18962
  chatUrl: this.url,
18962
- embedVersion: "c291df9".slice(0, 7),
18963
+ embedVersion: "6ffecd9".slice(0, 7),
18963
18964
  embedSettings: adaSettings
18964
18965
  });
18965
18966
 
@@ -19043,7 +19044,7 @@ class ChatFrame extends d {
19043
19044
  const hostPageUrlParams = new URL(window.location.href).searchParams;
19044
19045
  const smsToken = hostPageUrlParams.get("adaSMSToken");
19045
19046
  const queryParams = {
19046
- embedVersion: "c291df9".slice(0, 7),
19047
+ embedVersion: "6ffecd9".slice(0, 7),
19047
19048
  greeting,
19048
19049
  language,
19049
19050
  skipGreeting,
@@ -19648,7 +19649,7 @@ class ChatFrame extends d {
19648
19649
  log(`Chat frame took over ${CHAT_FALLBACK_DELAY_MS / 1000} seconds to respond`, {
19649
19650
  handle,
19650
19651
  chatUrl: this.url,
19651
- embedVersion: "c291df9".slice(0, 7),
19652
+ embedVersion: "6ffecd9".slice(0, 7),
19652
19653
  embedSettings: adaSettings
19653
19654
  }, {
19654
19655
  level: "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index-npm.d.ts",