@ada-support/embed2 1.2.11 → 1.2.12
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 +8 -7
- 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.12-5def352",
|
|
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("5def352", "/index.html");
|
|
16430
16430
|
}
|
|
16431
16431
|
/**
|
|
16432
16432
|
* Generate the Chat / API URL
|
|
@@ -17848,6 +17848,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
17848
17848
|
|
|
17849
17849
|
|
|
17850
17850
|
const _excluded = ["chat", "chat_button", "features", "handle", "language", "persistence", "privacy", "rollout", "tint"];
|
|
17851
|
+
|
|
17851
17852
|
class Client {
|
|
17852
17853
|
constructor(clientResponse) {
|
|
17853
17854
|
_defineProperty(this, "tint", void 0);
|
|
@@ -17914,7 +17915,7 @@ function getButtonText(client) {
|
|
|
17914
17915
|
var _client$ui_settings, _client$ui_settings$e;
|
|
17915
17916
|
|
|
17916
17917
|
const buttonTextMap = client === null || client === void 0 ? void 0 : (_client$ui_settings = client.ui_settings) === null || _client$ui_settings === void 0 ? void 0 : (_client$ui_settings$e = _client$ui_settings.embed) === null || _client$ui_settings$e === void 0 ? void 0 : _client$ui_settings$e.button_text;
|
|
17917
|
-
const languageKey = (
|
|
17918
|
+
const languageKey = get_browser_language();
|
|
17918
17919
|
|
|
17919
17920
|
if (!buttonTextMap || !buttonTextMap[languageKey]) {
|
|
17920
17921
|
return "Chat";
|
|
@@ -18001,9 +18002,9 @@ async function log(message, extra, options) {
|
|
|
18001
18002
|
service: "embed",
|
|
18002
18003
|
env: "production",
|
|
18003
18004
|
embedVersion: 2,
|
|
18004
|
-
version: "1.2.
|
|
18005
|
+
version: "1.2.12",
|
|
18005
18006
|
isNpm: true,
|
|
18006
|
-
commitHash: "
|
|
18007
|
+
commitHash: "5def352"
|
|
18007
18008
|
}))
|
|
18008
18009
|
});
|
|
18009
18010
|
}
|
|
@@ -18430,7 +18431,7 @@ class ChatFrame extends d {
|
|
|
18430
18431
|
const hostPageUrlParams = new (url_default())(window.location.href).searchParams;
|
|
18431
18432
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
18432
18433
|
const queryParams = {
|
|
18433
|
-
embedVersion: "
|
|
18434
|
+
embedVersion: "5def352".slice(0, 7),
|
|
18434
18435
|
greeting,
|
|
18435
18436
|
language,
|
|
18436
18437
|
skipGreeting,
|
|
@@ -20574,7 +20575,7 @@ class Embed {
|
|
|
20574
20575
|
|
|
20575
20576
|
}
|
|
20576
20577
|
|
|
20577
|
-
_defineProperty(Embed, "embed2Version", "
|
|
20578
|
+
_defineProperty(Embed, "embed2Version", "5def352");
|
|
20578
20579
|
;// CONCATENATED MODULE: ./src/common/helpers/startup.ts
|
|
20579
20580
|
|
|
20580
20581
|
|