@ada-support/embed2 1.0.64 → 1.0.67
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
CHANGED
|
@@ -8788,7 +8788,7 @@ var client = new error_tracker_BrowserClient({
|
|
|
8788
8788
|
return event;
|
|
8789
8789
|
},
|
|
8790
8790
|
environment: "production",
|
|
8791
|
-
release: "1.0.
|
|
8791
|
+
release: "1.0.67-91b1c31",
|
|
8792
8792
|
sampleRate: 0.25,
|
|
8793
8793
|
autoSessionTracking: false,
|
|
8794
8794
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -9490,7 +9490,7 @@ function getEmbedURL(_ref) {
|
|
|
9490
9490
|
polyfillVersionString = "legacy";
|
|
9491
9491
|
}
|
|
9492
9492
|
|
|
9493
|
-
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "
|
|
9493
|
+
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "91b1c31", "/index.html");
|
|
9494
9494
|
}
|
|
9495
9495
|
/**
|
|
9496
9496
|
* Generate the Chat / API URL
|
|
@@ -12773,6 +12773,10 @@ var Container = /*#__PURE__*/function (_Component) {
|
|
|
12773
12773
|
setState = _this$props2.setState;
|
|
12774
12774
|
var adaReadyCallback = adaSettings.adaReadyCallback,
|
|
12775
12775
|
toggleCallback = adaSettings.toggleCallback;
|
|
12776
|
+
(0,services_logger/* log */.cM)("SEND_GREETING Init", {
|
|
12777
|
+
clientHandle: client === null || client === void 0 ? void 0 : client.handle,
|
|
12778
|
+
wasCampaignShownButNowClosed: wasCampaignShownButNowClosed
|
|
12779
|
+
});
|
|
12776
12780
|
|
|
12777
12781
|
if ((client === null || client === void 0 ? void 0 : (_client$ui_settings = client.ui_settings) === null || _client$ui_settings === void 0 ? void 0 : (_client$ui_settings$e = _client$ui_settings.embed) === null || _client$ui_settings$e === void 0 ? void 0 : _client$ui_settings$e.style) === "text") {
|
|
12778
12782
|
this.computeButtonFrameWidth();
|
|
@@ -12834,6 +12838,12 @@ var Container = /*#__PURE__*/function (_Component) {
|
|
|
12834
12838
|
|
|
12835
12839
|
if (isChatWebsocketConnected && isDrawerOpen && followUpResponseId) {
|
|
12836
12840
|
var chatChannel = messageService.getChannel(CHAT_IFRAME);
|
|
12841
|
+
(0,services_logger/* log */.cM)("SEND_GREETING", {
|
|
12842
|
+
clientHandle: client === null || client === void 0 ? void 0 : client.handle,
|
|
12843
|
+
chatChannel: chatChannel,
|
|
12844
|
+
followUpResponseId: followUpResponseId,
|
|
12845
|
+
wasCampaignShownButNowClosed: wasCampaignShownButNowClosed
|
|
12846
|
+
});
|
|
12837
12847
|
|
|
12838
12848
|
if (chatChannel) {
|
|
12839
12849
|
if (!wasCampaignShownButNowClosed) {
|
|
@@ -12989,7 +12999,7 @@ var Container = /*#__PURE__*/function (_Component) {
|
|
|
12989
12999
|
}, {
|
|
12990
13000
|
key: "triggerCampaign",
|
|
12991
13001
|
value: function triggerCampaign(params) {
|
|
12992
|
-
var _client$marketing_cam;
|
|
13002
|
+
var _client$marketing_cam, _campaign$follow_up_r;
|
|
12993
13003
|
|
|
12994
13004
|
var _this$props7 = this.props,
|
|
12995
13005
|
client = _this$props7.client,
|
|
@@ -13012,12 +13022,11 @@ var Container = /*#__PURE__*/function (_Component) {
|
|
|
13012
13022
|
throw new errors/* AdaEmbedError */.S("Could not find campaign with key: ".concat(campaignKey));
|
|
13013
13023
|
}
|
|
13014
13024
|
|
|
13015
|
-
var followUpResponseId = campaign.follow_up_response_id;
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
followUpResponseId
|
|
13019
|
-
}
|
|
13020
|
-
|
|
13025
|
+
var followUpResponseId = (_campaign$follow_up_r = campaign.follow_up_response_id) !== null && _campaign$follow_up_r !== void 0 ? _campaign$follow_up_r : campaign.response_id;
|
|
13026
|
+
(0,services_logger/* log */.cM)("followUpResponseId initialized", {
|
|
13027
|
+
clientHandle: client === null || client === void 0 ? void 0 : client.handle,
|
|
13028
|
+
followUpResponseId: followUpResponseId
|
|
13029
|
+
});
|
|
13021
13030
|
setState({
|
|
13022
13031
|
latestCampaignKey: campaignKey,
|
|
13023
13032
|
hasChatOpenedAfterProactiveMessagesShown: false,
|
|
@@ -14353,7 +14362,7 @@ window.__AdaEmbedConstructor = Embed;
|
|
|
14353
14362
|
/* harmony export */ });
|
|
14354
14363
|
var isModern = new RegExp("((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(15|(1[6-9]|[2-9]\\d|\\d{3,}))[_.]\\d+(?:[_.]\\d+)?)|((Chromium|Chrome)\\/(97|(9[8-9]|\\d{3,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(15|(1[6-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(96|(9[7-9]|\\d{3,}))\\.\\d+\\.\\d+)|(Firefox\\/(96|(9[7-9]|\\d{3,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
|
|
14355
14364
|
var isProduction = "production" === "production";
|
|
14356
|
-
var embed2Version = "
|
|
14365
|
+
var embed2Version = "91b1c31";
|
|
14357
14366
|
|
|
14358
14367
|
/***/ }),
|
|
14359
14368
|
|
|
@@ -14699,9 +14708,9 @@ function _log() {
|
|
|
14699
14708
|
service: "embed",
|
|
14700
14709
|
env: "production",
|
|
14701
14710
|
embedVersion: 2,
|
|
14702
|
-
version: "1.0.
|
|
14711
|
+
version: "1.0.67",
|
|
14703
14712
|
isNpm: true,
|
|
14704
|
-
commitHash: "
|
|
14713
|
+
commitHash: "91b1c31"
|
|
14705
14714
|
}))
|
|
14706
14715
|
});
|
|
14707
14716
|
|
|
@@ -25642,7 +25651,7 @@ function _loadEmbed() {
|
|
|
25642
25651
|
polyfillVersionString = "legacy";
|
|
25643
25652
|
}
|
|
25644
25653
|
|
|
25645
|
-
embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "
|
|
25654
|
+
embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "91b1c31", "/index.js");
|
|
25646
25655
|
}
|
|
25647
25656
|
|
|
25648
25657
|
clientScriptExists = Boolean( true || // The client script is bundled with npm module
|