@ada-support/embed2 1.2.15 → 1.2.18
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.
- package/dist/npm-entry/index.js +12 -6
- package/package.json +1 -1
package/dist/npm-entry/index.js
CHANGED
|
@@ -15811,7 +15811,7 @@ const client = new error_tracker_BrowserClient({
|
|
|
15811
15811
|
},
|
|
15812
15812
|
|
|
15813
15813
|
environment: "production",
|
|
15814
|
-
release: "1.2.
|
|
15814
|
+
release: "1.2.18-946b98d",
|
|
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("
|
|
16429
|
+
return "".concat(host, "/embed/").concat(frameName, "/").concat("946b98d", "/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.
|
|
18004
|
+
version: "1.2.18",
|
|
18005
18005
|
isNpm: true,
|
|
18006
|
-
commitHash: "
|
|
18006
|
+
commitHash: "946b98d"
|
|
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: "
|
|
18422
|
+
embedVersion: "946b98d".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", "
|
|
20581
|
+
_defineProperty(Embed, "embed2Version", "946b98d");
|
|
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) => {
|