@ada-support/embed2 1.4.6 → 1.4.7
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.4.
|
|
15814
|
+
release: "1.4.7-3e5e695",
|
|
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
|
|
@@ -16432,7 +16432,7 @@ function getEmbedURL(_ref) {
|
|
|
16432
16432
|
host = "http://".concat(window.location.hostname, ":9001");
|
|
16433
16433
|
}
|
|
16434
16434
|
|
|
16435
|
-
return "".concat(host, "/embed/").concat(frameName, "/").concat("
|
|
16435
|
+
return "".concat(host, "/embed/").concat(frameName, "/").concat("3e5e695", "/index.html");
|
|
16436
16436
|
}
|
|
16437
16437
|
|
|
16438
16438
|
function constructQueryString(query) {
|
|
@@ -18299,9 +18299,9 @@ async function log(message, extra, options) {
|
|
|
18299
18299
|
service: "embed",
|
|
18300
18300
|
env: "production",
|
|
18301
18301
|
embedVersion: 2,
|
|
18302
|
-
version: "1.4.
|
|
18302
|
+
version: "1.4.7",
|
|
18303
18303
|
isNpm: true,
|
|
18304
|
-
commitHash: "
|
|
18304
|
+
commitHash: "3e5e695"
|
|
18305
18305
|
}))
|
|
18306
18306
|
});
|
|
18307
18307
|
}
|
|
@@ -18743,7 +18743,7 @@ class ChatFrame extends d {
|
|
|
18743
18743
|
const hostPageUrlParams = new (url_default())(window.location.href).searchParams;
|
|
18744
18744
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
18745
18745
|
const queryParams = {
|
|
18746
|
-
embedVersion: "
|
|
18746
|
+
embedVersion: "3e5e695".slice(0, 7),
|
|
18747
18747
|
greeting,
|
|
18748
18748
|
language,
|
|
18749
18749
|
skipGreeting,
|
|
@@ -20056,7 +20056,6 @@ class Container extends d {
|
|
|
20056
20056
|
} = adaSettings;
|
|
20057
20057
|
const localChannel = messageService.getChannel("local");
|
|
20058
20058
|
const xStorageChannel = messageService.getChannel(XSTORAGE_IFRAME);
|
|
20059
|
-
const chatChannel = messageService.getChannel(CHAT_IFRAME);
|
|
20060
20059
|
|
|
20061
20060
|
if (!localChannel) {
|
|
20062
20061
|
throw new AdaEmbedError("`localChannel` is null");
|
|
@@ -20290,6 +20289,8 @@ class Container extends d {
|
|
|
20290
20289
|
|
|
20291
20290
|
case CLOSE_CAMPAIGN:
|
|
20292
20291
|
{
|
|
20292
|
+
const chatChannel = messageService.getChannel(CHAT_IFRAME);
|
|
20293
|
+
|
|
20293
20294
|
if (chatChannel) {
|
|
20294
20295
|
chatChannel.postMessage(CLOSE_CAMPAIGN);
|
|
20295
20296
|
}
|
|
@@ -20924,7 +20925,7 @@ class Embed {
|
|
|
20924
20925
|
|
|
20925
20926
|
}
|
|
20926
20927
|
|
|
20927
|
-
_defineProperty(Embed, "embed2Version", "
|
|
20928
|
+
_defineProperty(Embed, "embed2Version", "3e5e695");
|
|
20928
20929
|
;// CONCATENATED MODULE: ./src/common/helpers/startup.ts
|
|
20929
20930
|
|
|
20930
20931
|
|