@ada-support/embed2 1.14.20 → 1.14.21
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export type AdaCluster = "
|
|
1
|
+
export type AdaCluster = "eu" | "maple" | undefined;
|
package/dist/npm-entry/index.js
CHANGED
|
@@ -16119,7 +16119,7 @@ const client = new BrowserClient({
|
|
|
16119
16119
|
return event;
|
|
16120
16120
|
},
|
|
16121
16121
|
environment: "production",
|
|
16122
|
-
release: "1.14.
|
|
16122
|
+
release: "1.14.21-7e99166",
|
|
16123
16123
|
sampleRate: 0.25,
|
|
16124
16124
|
autoSessionTracking: false,
|
|
16125
16125
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -16750,7 +16750,7 @@ function getEmbedURL(_ref) {
|
|
|
16750
16750
|
} else {
|
|
16751
16751
|
host = `http://${handle}.localhost:${ports.localhost.default}`;
|
|
16752
16752
|
}
|
|
16753
|
-
return `${host}/embed/${frameName}/${"
|
|
16753
|
+
return `${host}/embed/${frameName}/${"7e99166"}/index.html`;
|
|
16754
16754
|
}
|
|
16755
16755
|
function constructQueryString(query) {
|
|
16756
16756
|
return Object.keys(query).map(key => {
|
|
@@ -17586,9 +17586,9 @@ async function log(message, extra, options) {
|
|
|
17586
17586
|
service: "embed",
|
|
17587
17587
|
env: "production",
|
|
17588
17588
|
embedVersion: 2,
|
|
17589
|
-
version: "1.14.
|
|
17589
|
+
version: "1.14.21",
|
|
17590
17590
|
isNpm: true,
|
|
17591
|
-
commitHash: "
|
|
17591
|
+
commitHash: "7e99166"
|
|
17592
17592
|
}))
|
|
17593
17593
|
});
|
|
17594
17594
|
}
|
|
@@ -19163,12 +19163,11 @@ const getChatVersion = async adaSettings => {
|
|
|
19163
19163
|
return window.__AdaChatVersion;
|
|
19164
19164
|
}
|
|
19165
19165
|
const {
|
|
19166
|
-
cluster,
|
|
19167
19166
|
domain
|
|
19168
19167
|
} = adaSettings;
|
|
19169
19168
|
|
|
19170
|
-
// Skip automatic versioning for
|
|
19171
|
-
if (
|
|
19169
|
+
// Skip automatic versioning for dev/stage clusters but allow override through __AdaChatVersion or __ada-chat-version
|
|
19170
|
+
if (domain !== null && domain !== void 0 && domain.match(/ada-(dev|dev2|stage)/)) {
|
|
19172
19171
|
return undefined;
|
|
19173
19172
|
}
|
|
19174
19173
|
const manifest = await loadChatManifest();
|
|
@@ -20395,7 +20394,7 @@ class ChatFrame extends d {
|
|
|
20395
20394
|
log("Chat frame mount", {
|
|
20396
20395
|
handle,
|
|
20397
20396
|
chatUrl: this.url,
|
|
20398
|
-
embedVersion: "
|
|
20397
|
+
embedVersion: "7e99166".slice(0, 7),
|
|
20399
20398
|
embedSettings: adaSettings
|
|
20400
20399
|
});
|
|
20401
20400
|
|
|
@@ -20483,7 +20482,7 @@ class ChatFrame extends d {
|
|
|
20483
20482
|
const hostPageUrlParams = new URL(window.location.href).searchParams;
|
|
20484
20483
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
20485
20484
|
const queryParams = {
|
|
20486
|
-
embedVersion: "
|
|
20485
|
+
embedVersion: "7e99166".slice(0, 7),
|
|
20487
20486
|
greeting,
|
|
20488
20487
|
language,
|
|
20489
20488
|
skipGreeting,
|