@ada-support/embed2 1.14.18 → 1.14.19
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 +11 -7
- package/package.json +1 -1
package/dist/npm-entry/index.js
CHANGED
|
@@ -16125,7 +16125,7 @@ const client = new BrowserClient({
|
|
|
16125
16125
|
return event;
|
|
16126
16126
|
},
|
|
16127
16127
|
environment: "production",
|
|
16128
|
-
release: "1.14.
|
|
16128
|
+
release: "1.14.19-b77b8fe",
|
|
16129
16129
|
sampleRate: 0.25,
|
|
16130
16130
|
autoSessionTracking: false,
|
|
16131
16131
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -16751,7 +16751,7 @@ function getEmbedURL(_ref) {
|
|
|
16751
16751
|
} else {
|
|
16752
16752
|
host = `http://${handle}.localhost:${ports.localhost.default}`;
|
|
16753
16753
|
}
|
|
16754
|
-
return `${host}/embed/${frameName}/${"
|
|
16754
|
+
return `${host}/embed/${frameName}/${"b77b8fe"}/index.html`;
|
|
16755
16755
|
}
|
|
16756
16756
|
function constructQueryString(query) {
|
|
16757
16757
|
return Object.keys(query).map(key => {
|
|
@@ -17591,9 +17591,9 @@ async function log(message, extra, options) {
|
|
|
17591
17591
|
service: "embed",
|
|
17592
17592
|
env: "production",
|
|
17593
17593
|
embedVersion: 2,
|
|
17594
|
-
version: "1.14.
|
|
17594
|
+
version: "1.14.19",
|
|
17595
17595
|
isNpm: true,
|
|
17596
|
-
commitHash: "
|
|
17596
|
+
commitHash: "b77b8fe"
|
|
17597
17597
|
}))
|
|
17598
17598
|
});
|
|
17599
17599
|
}
|
|
@@ -20386,7 +20386,7 @@ class ChatFrame extends d {
|
|
|
20386
20386
|
log("Chat frame mount", {
|
|
20387
20387
|
handle,
|
|
20388
20388
|
chatUrl: this.url,
|
|
20389
|
-
embedVersion: "
|
|
20389
|
+
embedVersion: "b77b8fe".slice(0, 7),
|
|
20390
20390
|
embedSettings: adaSettings
|
|
20391
20391
|
});
|
|
20392
20392
|
|
|
@@ -20474,7 +20474,7 @@ class ChatFrame extends d {
|
|
|
20474
20474
|
const hostPageUrlParams = new URL(window.location.href).searchParams;
|
|
20475
20475
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
20476
20476
|
const queryParams = {
|
|
20477
|
-
embedVersion: "
|
|
20477
|
+
embedVersion: "b77b8fe".slice(0, 7),
|
|
20478
20478
|
greeting,
|
|
20479
20479
|
language,
|
|
20480
20480
|
skipGreeting,
|
|
@@ -22409,7 +22409,11 @@ class Container extends d {
|
|
|
22409
22409
|
return;
|
|
22410
22410
|
}
|
|
22411
22411
|
const alternativeBot = primaryBotClient.alternative_bot;
|
|
22412
|
-
|
|
22412
|
+
|
|
22413
|
+
// A test-mode session must always exercise the bot it names, so it opts out of
|
|
22414
|
+
// launch-controls reassignment: otherwise a 0%-rollout bot pointing at an alternative_bot
|
|
22415
|
+
// sends the tester to that other bot (or to its domain-not-approved page).
|
|
22416
|
+
const assignedClient = adaSettings.testMode ? primaryBotClient : await fetchClientUsingAlternativeBotRollout(primaryBotClient, alternativeBot, adaSettings);
|
|
22413
22417
|
if (!assignedClient) {
|
|
22414
22418
|
this.unmount();
|
|
22415
22419
|
return;
|