@ada-support/embed2 1.7.32 → 1.7.33

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.7.32-26543c8",
13952
+ release: "1.7.33-19ec9e2",
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
@@ -14523,7 +14523,7 @@ function getEmbedURL(_ref) {
14523
14523
  } else {
14524
14524
  host = `http://${handle}.localhost:9001`;
14525
14525
  }
14526
- return `${host}/embed/${frameName}/${"26543c8"}/index.html`;
14526
+ return `${host}/embed/${frameName}/${"19ec9e2"}/index.html`;
14527
14527
  }
14528
14528
  function constructQueryString(query) {
14529
14529
  return Object.keys(query).map(key => {
@@ -15701,9 +15701,9 @@ async function log(message, extra, options) {
15701
15701
  service: "embed",
15702
15702
  env: "production",
15703
15703
  embedVersion: 2,
15704
- version: "1.7.32",
15704
+ version: "1.7.33",
15705
15705
  isNpm: true,
15706
- commitHash: "26543c8"
15706
+ commitHash: "19ec9e2"
15707
15707
  }))
15708
15708
  });
15709
15709
  }
@@ -16241,7 +16241,7 @@ function proactiveShownWithinFrequency(proactiveConversationKey, frequency, hand
16241
16241
  return false;
16242
16242
  case "session":
16243
16243
  {
16244
- const storageValue = dist/* adaSessionStorage */.ad.getFnItem("marketing_campaigns_shown");
16244
+ const storageValue = dist/* adaSessionStorage */.ad.getFnItem("proactive_conversations_shown");
16245
16245
  const perSessionProactives = storageValue ? (storageValue[handle] || "").split(",") : [];
16246
16246
  return perSessionProactives.includes(proactiveConversationKey);
16247
16247
  }
@@ -16258,9 +16258,9 @@ function recordProactiveTrigger(proactiveConversationKey, frequency, handle) {
16258
16258
  break;
16259
16259
  case "session":
16260
16260
  {
16261
- const currentStorageValue = dist/* adaSessionStorage */.ad.getFnItem("marketing_campaigns_shown");
16261
+ const currentStorageValue = dist/* adaSessionStorage */.ad.getFnItem("proactive_conversations_shown");
16262
16262
  const newStorageValue = addProactiveToStorageString(currentStorageValue ? currentStorageValue[handle] || "" : "", proactiveConversationKey);
16263
- dist/* adaSessionStorage */.ad.setFnItem("marketing_campaigns_shown", proactiveConversation_objectSpread(proactiveConversation_objectSpread({}, currentStorageValue), {}, {
16263
+ dist/* adaSessionStorage */.ad.setFnItem("proactive_conversations_shown", proactiveConversation_objectSpread(proactiveConversation_objectSpread({}, currentStorageValue), {}, {
16264
16264
  [handle]: newStorageValue
16265
16265
  }));
16266
16266
  break;
@@ -16842,7 +16842,7 @@ class ChatFrame extends d {
16842
16842
  const hostPageUrlParams = new URL(window.location.href).searchParams;
16843
16843
  const smsToken = hostPageUrlParams.get("adaSMSToken");
16844
16844
  const queryParams = {
16845
- embedVersion: "26543c8".slice(0, 7),
16845
+ embedVersion: "19ec9e2".slice(0, 7),
16846
16846
  greeting,
16847
16847
  language,
16848
16848
  skipGreeting,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.7.32",
3
+ "version": "1.7.33",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index-npm.d.ts",
@@ -97,7 +97,7 @@
97
97
  },
98
98
  "dependencies": {
99
99
  "@ada-support/embed-types": "^1.8.0",
100
- "@ada-support/web-storage": "^1.2.6",
100
+ "@ada-support/web-storage": "^1.2.9",
101
101
  "@babel/runtime-corejs3": "^7.15.4",
102
102
  "@sentry/browser": "^8.33.0",
103
103
  "@sentry/types": "^8.33.1",