@ada-support/embed2 1.2.10 → 1.2.11
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 +10 -8
- 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.11-4375ed8",
|
|
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("4375ed8", "/index.html");
|
|
16430
16430
|
}
|
|
16431
16431
|
/**
|
|
16432
16432
|
* Generate the Chat / API URL
|
|
@@ -17588,9 +17588,11 @@ let WebNotificationEvents;
|
|
|
17588
17588
|
|
|
17589
17589
|
function handleWebNotificationClick(data) {
|
|
17590
17590
|
if (data.type === WebNotificationEvents.NOTIFICATION_CLICK) {
|
|
17591
|
-
|
|
17591
|
+
setTimeout(() => {
|
|
17592
|
+
var _window$adaEmbed;
|
|
17592
17593
|
|
|
17593
|
-
|
|
17594
|
+
return (_window$adaEmbed = window.adaEmbed) === null || _window$adaEmbed === void 0 ? void 0 : _window$adaEmbed.handleNotification();
|
|
17595
|
+
}, 0);
|
|
17594
17596
|
}
|
|
17595
17597
|
} // the Firebase client will post messages to the host page running the bot.
|
|
17596
17598
|
// the messages will contain event data that embed would need to take action on
|
|
@@ -17999,9 +18001,9 @@ async function log(message, extra, options) {
|
|
|
17999
18001
|
service: "embed",
|
|
18000
18002
|
env: "production",
|
|
18001
18003
|
embedVersion: 2,
|
|
18002
|
-
version: "1.2.
|
|
18004
|
+
version: "1.2.11",
|
|
18003
18005
|
isNpm: true,
|
|
18004
|
-
commitHash: "
|
|
18006
|
+
commitHash: "4375ed8"
|
|
18005
18007
|
}))
|
|
18006
18008
|
});
|
|
18007
18009
|
}
|
|
@@ -18428,7 +18430,7 @@ class ChatFrame extends d {
|
|
|
18428
18430
|
const hostPageUrlParams = new (url_default())(window.location.href).searchParams;
|
|
18429
18431
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
18430
18432
|
const queryParams = {
|
|
18431
|
-
embedVersion: "
|
|
18433
|
+
embedVersion: "4375ed8".slice(0, 7),
|
|
18432
18434
|
greeting,
|
|
18433
18435
|
language,
|
|
18434
18436
|
skipGreeting,
|
|
@@ -20572,7 +20574,7 @@ class Embed {
|
|
|
20572
20574
|
|
|
20573
20575
|
}
|
|
20574
20576
|
|
|
20575
|
-
_defineProperty(Embed, "embed2Version", "
|
|
20577
|
+
_defineProperty(Embed, "embed2Version", "4375ed8");
|
|
20576
20578
|
;// CONCATENATED MODULE: ./src/common/helpers/startup.ts
|
|
20577
20579
|
|
|
20578
20580
|
|