@ada-support/embed2 1.8.11 → 1.8.13

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.11-3fd3f35",
13952
+ release: "1.8.13-182f559",
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
@@ -14526,7 +14526,7 @@ function getEmbedURL(_ref) {
14526
14526
  } else {
14527
14527
  host = `http://${handle}.localhost:9001`;
14528
14528
  }
14529
- return `${host}/embed/${frameName}/${"3fd3f35"}/index.html`;
14529
+ return `${host}/embed/${frameName}/${"182f559"}/index.html`;
14530
14530
  }
14531
14531
  function constructQueryString(query) {
14532
14532
  return Object.keys(query).map(key => {
@@ -15721,9 +15721,9 @@ async function log(message, extra, options) {
15721
15721
  service: "embed",
15722
15722
  env: "production",
15723
15723
  embedVersion: 2,
15724
- version: "1.8.11",
15724
+ version: "1.8.13",
15725
15725
  isNpm: true,
15726
- commitHash: "3fd3f35"
15726
+ commitHash: "182f559"
15727
15727
  }))
15728
15728
  });
15729
15729
  }
@@ -16898,7 +16898,7 @@ class ChatFrame extends d {
16898
16898
  const hostPageUrlParams = new URL(window.location.href).searchParams;
16899
16899
  const smsToken = hostPageUrlParams.get("adaSMSToken");
16900
16900
  const queryParams = {
16901
- embedVersion: "3fd3f35".slice(0, 7),
16901
+ embedVersion: "182f559".slice(0, 7),
16902
16902
  greeting,
16903
16903
  language,
16904
16904
  skipGreeting,
@@ -17423,6 +17423,13 @@ class ChatFrame extends d {
17423
17423
  const {
17424
17424
  conversationEndCallback
17425
17425
  } = adaSettings;
17426
+
17427
+ // Nullify the proactive_conversation metavariable for the next conversation
17428
+ await setGlobalState({
17429
+ metaFields: {
17430
+ proactive_conversation: null
17431
+ }
17432
+ });
17426
17433
  if (conversationEndCallback) {
17427
17434
  conversationEndCallback(payload);
17428
17435
  }
@@ -17803,6 +17810,13 @@ class Container extends d {
17803
17810
  adaSettings
17804
17811
  });
17805
17812
 
17813
+ // Nullify any previous conversation's proactive_conversation metavariable value
17814
+ setGlobalState({
17815
+ metaFields: {
17816
+ proactive_conversation: null
17817
+ }
17818
+ });
17819
+
17806
17820
  // We want to make sure this happens before any publishEvent calls
17807
17821
  // This is why it happens even before calling initialize
17808
17822
  if (onAdaEmbedLoaded) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.8.11",
3
+ "version": "1.8.13",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index-npm.d.ts",