@ada-support/embed2 1.7.14 → 1.7.15

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.
@@ -13260,7 +13260,7 @@ const client = new error_tracker_BrowserClient({
13260
13260
  return event;
13261
13261
  },
13262
13262
  environment: "production",
13263
- release: "1.7.14-da38887",
13263
+ release: "1.7.15-1ccd0e0",
13264
13264
  sampleRate: 0.25,
13265
13265
  autoSessionTracking: false,
13266
13266
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -13832,7 +13832,7 @@ function getEmbedURL(_ref) {
13832
13832
  } else {
13833
13833
  host = `http://${handle}.localhost:9001`;
13834
13834
  }
13835
- return `${host}/embed/${frameName}/${"da38887"}/index.html`;
13835
+ return `${host}/embed/${frameName}/${"1ccd0e0"}/index.html`;
13836
13836
  }
13837
13837
  function constructQueryString(query) {
13838
13838
  return Object.keys(query).map(key => {
@@ -14993,9 +14993,9 @@ async function log(message, extra, options) {
14993
14993
  service: "embed",
14994
14994
  env: "production",
14995
14995
  embedVersion: 2,
14996
- version: "1.7.14",
14996
+ version: "1.7.15",
14997
14997
  isNpm: true,
14998
- commitHash: "da38887"
14998
+ commitHash: "1ccd0e0"
14999
14999
  }))
15000
15000
  });
15001
15001
  }
@@ -15122,12 +15122,21 @@ async function getClientObjectForEmbedInitialization(primaryBotClientObject, alt
15122
15122
  }
15123
15123
  const newBotAssignment = getAssignmentUsingAlternativeBotRolloutValue(alternativeBotRolloutValue);
15124
15124
  setBotAssignmentInBrowserStorage(newBotAssignment, primaryBotClientObject.handle);
15125
+ const botAssignmentLogAttributes = {
15126
+ primaryBot: primaryBotClientObject.handle,
15127
+ alternativeBotRollout: alternativeBotRolloutValue,
15128
+ alternativeBot: alternativeBotHandle
15129
+ };
15125
15130
  if (newBotAssignment === ALTERNATIVE_BOT_ASSIGNMENT_LABEL) {
15126
- log("Alternative Bot Rollout", {
15127
- primaryBot: primaryBotClientObject.handle,
15128
- alternativeBotRollout: alternativeBotRolloutValue,
15129
- alternativeBot: alternativeBotHandle
15130
- }, {
15131
+ log("Launch Controls Bot Assignment", alternative_bot_rollout_objectSpread(alternative_bot_rollout_objectSpread({}, botAssignmentLogAttributes), {}, {
15132
+ assignedBot: ALTERNATIVE_BOT_ASSIGNMENT_LABEL
15133
+ }), {
15134
+ sampleRate: 1
15135
+ });
15136
+ } else {
15137
+ log("Launch Controls Bot Assignment", alternative_bot_rollout_objectSpread(alternative_bot_rollout_objectSpread({}, botAssignmentLogAttributes), {}, {
15138
+ assignedBot: PRIMARY_BOT_ASSIGNMENT_LABEL
15139
+ }), {
15131
15140
  sampleRate: 1
15132
15141
  });
15133
15142
  }
@@ -16024,7 +16033,7 @@ class ChatFrame extends d {
16024
16033
  const hostPageUrlParams = new URL(window.location.href).searchParams;
16025
16034
  const smsToken = hostPageUrlParams.get("adaSMSToken");
16026
16035
  const queryParams = {
16027
- embedVersion: "da38887".slice(0, 7),
16036
+ embedVersion: "1ccd0e0".slice(0, 7),
16028
16037
  greeting,
16029
16038
  language,
16030
16039
  skipGreeting,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.7.14",
3
+ "version": "1.7.15",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index-npm.d.ts",