@ada-support/embed2 1.8.0 → 1.8.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.
@@ -13949,7 +13949,7 @@ const client = new BrowserClient({
13949
13949
  return event;
13950
13950
  },
13951
13951
  environment: "production",
13952
- release: "1.8.0-65176dc",
13952
+ release: "1.8.1-14fcfd6",
13953
13953
  sampleRate: 0.25,
13954
13954
  autoSessionTracking: false,
13955
13955
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -14524,7 +14524,7 @@ function getEmbedURL(_ref) {
14524
14524
  } else {
14525
14525
  host = `http://${handle}.localhost:9001`;
14526
14526
  }
14527
- return `${host}/embed/${frameName}/${"65176dc"}/index.html`;
14527
+ return `${host}/embed/${frameName}/${"14fcfd6"}/index.html`;
14528
14528
  }
14529
14529
  function constructQueryString(query) {
14530
14530
  return Object.keys(query).map(key => {
@@ -15702,9 +15702,9 @@ async function log(message, extra, options) {
15702
15702
  service: "embed",
15703
15703
  env: "production",
15704
15704
  embedVersion: 2,
15705
- version: "1.8.0",
15705
+ version: "1.8.1",
15706
15706
  isNpm: true,
15707
- commitHash: "65176dc"
15707
+ commitHash: "14fcfd6"
15708
15708
  }))
15709
15709
  });
15710
15710
  }
@@ -16840,7 +16840,7 @@ class ChatFrame extends d {
16840
16840
  const hostPageUrlParams = new URL(window.location.href).searchParams;
16841
16841
  const smsToken = hostPageUrlParams.get("adaSMSToken");
16842
16842
  const queryParams = {
16843
- embedVersion: "65176dc".slice(0, 7),
16843
+ embedVersion: "14fcfd6".slice(0, 7),
16844
16844
  greeting,
16845
16845
  language,
16846
16846
  skipGreeting,
@@ -18414,9 +18414,13 @@ class Container extends d {
18414
18414
  } = payload;
18415
18415
  if ((_client$proactive_con = client.proactive_conversations) !== null && _client$proactive_con !== void 0 && _client$proactive_con[messageKey]) {
18416
18416
  const proactiveConversation = client.proactive_conversations[messageKey];
18417
- this.handleProactiveTrigger(Container_objectSpread(Container_objectSpread({}, proactiveConversation), {}, {
18418
- key: messageKey
18419
- }));
18417
+ if (proactiveConversation.modality_config.chat.active) {
18418
+ this.handleProactiveTrigger(Container_objectSpread(Container_objectSpread({}, proactiveConversation), {}, {
18419
+ key: messageKey
18420
+ }));
18421
+ } else {
18422
+ warn("Proactive message is not active");
18423
+ }
18420
18424
  } else {
18421
18425
  warn(`Proactive message with key ${messageKey} not found`);
18422
18426
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index-npm.d.ts",