@ada-support/embed2 1.2.16 → 1.2.17

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.
@@ -15811,7 +15811,7 @@ const client = new error_tracker_BrowserClient({
15811
15811
  },
15812
15812
 
15813
15813
  environment: "production",
15814
- release: "1.2.16-cdd3a2e",
15814
+ release: "1.2.17-d6480a6",
15815
15815
  sampleRate: 0.25,
15816
15816
  autoSessionTracking: false,
15817
15817
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -16426,7 +16426,7 @@ function getEmbedURL(_ref) {
16426
16426
  host = "http://".concat(window.location.hostname, ":9001");
16427
16427
  }
16428
16428
 
16429
- return "".concat(host, "/embed/").concat(frameName, "/").concat("cdd3a2e", "/index.html");
16429
+ return "".concat(host, "/embed/").concat(frameName, "/").concat("d6480a6", "/index.html");
16430
16430
  }
16431
16431
  /**
16432
16432
  * Generate the Chat / API URL
@@ -18001,9 +18001,9 @@ async function log(message, extra, options) {
18001
18001
  service: "embed",
18002
18002
  env: "production",
18003
18003
  embedVersion: 2,
18004
- version: "1.2.16",
18004
+ version: "1.2.17",
18005
18005
  isNpm: true,
18006
- commitHash: "cdd3a2e"
18006
+ commitHash: "d6480a6"
18007
18007
  }))
18008
18008
  });
18009
18009
  }
@@ -18419,7 +18419,7 @@ class ChatFrame extends d {
18419
18419
  const hostPageUrlParams = new (url_default())(window.location.href).searchParams;
18420
18420
  const smsToken = hostPageUrlParams.get("adaSMSToken");
18421
18421
  const queryParams = {
18422
- embedVersion: "cdd3a2e".slice(0, 7),
18422
+ embedVersion: "d6480a6".slice(0, 7),
18423
18423
  greeting,
18424
18424
  language,
18425
18425
  skipGreeting,
@@ -20578,7 +20578,7 @@ class Embed {
20578
20578
 
20579
20579
  }
20580
20580
 
20581
- _defineProperty(Embed, "embed2Version", "cdd3a2e");
20581
+ _defineProperty(Embed, "embed2Version", "d6480a6");
20582
20582
  ;// CONCATENATED MODULE: ./src/common/helpers/startup.ts
20583
20583
 
20584
20584
 
@@ -20671,6 +20671,12 @@ function createEmbedObject() {
20671
20671
  var _embed6;
20672
20672
 
20673
20673
  await waitForEmbedInit();
20674
+ log("Embed reset", {
20675
+ initialURL: window.location.href,
20676
+ // not sure if the handle will be present so adding the URL to help out with id'ing the client
20677
+ resetChatHistory: resetParams === null || resetParams === void 0 ? void 0 : resetParams.resetChatHistory,
20678
+ greeting: resetParams === null || resetParams === void 0 ? void 0 : resetParams.greeting
20679
+ });
20674
20680
  return (_embed6 = embed) === null || _embed6 === void 0 ? void 0 : _embed6.reset(resetParams);
20675
20681
  },
20676
20682
  trackEvent: async (eventKey, value, meta) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index-npm.d.ts",