@ada-support/embed2 1.8.2 → 1.8.3
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 +16 -5
- package/package.json +1 -1
package/dist/npm-entry/index.js
CHANGED
|
@@ -13949,7 +13949,7 @@ const client = new BrowserClient({
|
|
|
13949
13949
|
return event;
|
|
13950
13950
|
},
|
|
13951
13951
|
environment: "production",
|
|
13952
|
-
release: "1.8.
|
|
13952
|
+
release: "1.8.3-500613b",
|
|
13953
13953
|
sampleRate: 0.25,
|
|
13954
13954
|
autoSessionTracking: false,
|
|
13955
13955
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -14524,7 +14524,7 @@ function getEmbedURL(_ref) {
|
|
|
14524
14524
|
} else {
|
|
14525
14525
|
host = `http://${handle}.localhost:9001`;
|
|
14526
14526
|
}
|
|
14527
|
-
return `${host}/embed/${frameName}/${"
|
|
14527
|
+
return `${host}/embed/${frameName}/${"500613b"}/index.html`;
|
|
14528
14528
|
}
|
|
14529
14529
|
function constructQueryString(query) {
|
|
14530
14530
|
return Object.keys(query).map(key => {
|
|
@@ -15702,9 +15702,9 @@ async function log(message, extra, options) {
|
|
|
15702
15702
|
service: "embed",
|
|
15703
15703
|
env: "production",
|
|
15704
15704
|
embedVersion: 2,
|
|
15705
|
-
version: "1.8.
|
|
15705
|
+
version: "1.8.3",
|
|
15706
15706
|
isNpm: true,
|
|
15707
|
-
commitHash: "
|
|
15707
|
+
commitHash: "500613b"
|
|
15708
15708
|
}))
|
|
15709
15709
|
});
|
|
15710
15710
|
}
|
|
@@ -16238,6 +16238,7 @@ function proactiveConversation_objectSpread(e) { for (var r = 1; r < arguments.l
|
|
|
16238
16238
|
|
|
16239
16239
|
|
|
16240
16240
|
|
|
16241
|
+
|
|
16241
16242
|
function proactiveShownWithinFrequency(proactiveConversationKey, frequency, handle) {
|
|
16242
16243
|
switch (frequency) {
|
|
16243
16244
|
case "always":
|
|
@@ -16313,6 +16314,12 @@ function proactiveTriggerImpl(_ref) {
|
|
|
16313
16314
|
duration,
|
|
16314
16315
|
delay
|
|
16315
16316
|
});
|
|
16317
|
+
log("Proactive message displayed", {
|
|
16318
|
+
handle,
|
|
16319
|
+
language: lang,
|
|
16320
|
+
duration,
|
|
16321
|
+
delay
|
|
16322
|
+
});
|
|
16316
16323
|
}
|
|
16317
16324
|
function evaluateUrlTriggerConditions(conditions, url) {
|
|
16318
16325
|
if (!conditions.length) {
|
|
@@ -16846,7 +16853,7 @@ class ChatFrame extends d {
|
|
|
16846
16853
|
const hostPageUrlParams = new URL(window.location.href).searchParams;
|
|
16847
16854
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
16848
16855
|
const queryParams = {
|
|
16849
|
-
embedVersion: "
|
|
16856
|
+
embedVersion: "500613b".slice(0, 7),
|
|
16850
16857
|
greeting,
|
|
16851
16858
|
language,
|
|
16852
16859
|
skipGreeting,
|
|
@@ -17912,6 +17919,10 @@ class Container extends d {
|
|
|
17912
17919
|
chatChannel.postMessage(INJECT_PROACTIVE_CONVERSATION, {
|
|
17913
17920
|
key: recentProactiveConversationKey
|
|
17914
17921
|
});
|
|
17922
|
+
log("Proactive message clicked", {
|
|
17923
|
+
handle: adaSettings.handle,
|
|
17924
|
+
embedSettings: adaSettings
|
|
17925
|
+
});
|
|
17915
17926
|
this.setState({
|
|
17916
17927
|
recentProactiveConversationKey: null
|
|
17917
17928
|
});
|