@ada-support/embed2 1.0.66 → 1.0.69
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 +20 -7
- package/package.json +1 -1
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.69-8c748e1",
|
|
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, "8c748e1", "/index.html");
|
|
9494
9494
|
}
|
|
9495
9495
|
/**
|
|
9496
9496
|
* Generate the Chat / API URL
|
|
@@ -12998,7 +12998,14 @@ var Container = /*#__PURE__*/function (_Component) {
|
|
|
12998
12998
|
var chatHasBeenRendered = this.state.chatHasBeenRendered;
|
|
12999
12999
|
var campaignKey = params.campaignKey,
|
|
13000
13000
|
ignoreStatus = params.ignoreStatus,
|
|
13001
|
-
ignoreFrequency = params.ignoreFrequency;
|
|
13001
|
+
ignoreFrequency = params.ignoreFrequency;
|
|
13002
|
+
(0,services_logger/* log */.cM)("triggerCampaign called", {
|
|
13003
|
+
clientHandle: client === null || client === void 0 ? void 0 : client.handle,
|
|
13004
|
+
campaignKey: campaignKey,
|
|
13005
|
+
isDrawerOpen: isDrawerOpen
|
|
13006
|
+
}, {
|
|
13007
|
+
sampleRate: (client === null || client === void 0 ? void 0 : client.handle) === "tsi-cocoon" ? 1 : 0
|
|
13008
|
+
}); // Don't allow sending campaigns when chat is open, it would interrupt the conversation
|
|
13002
13009
|
|
|
13003
13010
|
if (isDrawerOpen) {
|
|
13004
13011
|
return;
|
|
@@ -13013,6 +13020,12 @@ var Container = /*#__PURE__*/function (_Component) {
|
|
|
13013
13020
|
}
|
|
13014
13021
|
|
|
13015
13022
|
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;
|
|
13023
|
+
(0,services_logger/* log */.cM)("followUpResponseId initialized", {
|
|
13024
|
+
clientHandle: client === null || client === void 0 ? void 0 : client.handle,
|
|
13025
|
+
followUpResponseId: followUpResponseId
|
|
13026
|
+
}, {
|
|
13027
|
+
sampleRate: (client === null || client === void 0 ? void 0 : client.handle) === "tsi-cocoon" ? 1 : 0
|
|
13028
|
+
});
|
|
13016
13029
|
setState({
|
|
13017
13030
|
latestCampaignKey: campaignKey,
|
|
13018
13031
|
hasChatOpenedAfterProactiveMessagesShown: false,
|
|
@@ -14348,7 +14361,7 @@ window.__AdaEmbedConstructor = Embed;
|
|
|
14348
14361
|
/* harmony export */ });
|
|
14349
14362
|
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);
|
|
14350
14363
|
var isProduction = "production" === "production";
|
|
14351
|
-
var embed2Version = "
|
|
14364
|
+
var embed2Version = "8c748e1";
|
|
14352
14365
|
|
|
14353
14366
|
/***/ }),
|
|
14354
14367
|
|
|
@@ -14694,9 +14707,9 @@ function _log() {
|
|
|
14694
14707
|
service: "embed",
|
|
14695
14708
|
env: "production",
|
|
14696
14709
|
embedVersion: 2,
|
|
14697
|
-
version: "1.0.
|
|
14710
|
+
version: "1.0.69",
|
|
14698
14711
|
isNpm: true,
|
|
14699
|
-
commitHash: "
|
|
14712
|
+
commitHash: "8c748e1"
|
|
14700
14713
|
}))
|
|
14701
14714
|
});
|
|
14702
14715
|
|
|
@@ -25637,7 +25650,7 @@ function _loadEmbed() {
|
|
|
25637
25650
|
polyfillVersionString = "legacy";
|
|
25638
25651
|
}
|
|
25639
25652
|
|
|
25640
|
-
embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "
|
|
25653
|
+
embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "8c748e1", "/index.js");
|
|
25641
25654
|
}
|
|
25642
25655
|
|
|
25643
25656
|
clientScriptExists = Boolean( true || // The client script is bundled with npm module
|