@ada-support/embed2 1.0.68 → 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.
@@ -8788,7 +8788,7 @@ var client = new error_tracker_BrowserClient({
8788
8788
  return event;
8789
8789
  },
8790
8790
  environment: "production",
8791
- release: "1.0.68-063c7f1",
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, "063c7f1", "/index.html");
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
@@ -12773,12 +12773,6 @@ 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
- }, {
12780
- sampleRate: 1
12781
- });
12782
12776
 
12783
12777
  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") {
12784
12778
  this.computeButtonFrameWidth();
@@ -12840,14 +12834,6 @@ var Container = /*#__PURE__*/function (_Component) {
12840
12834
 
12841
12835
  if (isChatWebsocketConnected && isDrawerOpen && followUpResponseId) {
12842
12836
  var chatChannel = messageService.getChannel(CHAT_IFRAME);
12843
- (0,services_logger/* log */.cM)("SEND_GREETING", {
12844
- clientHandle: client === null || client === void 0 ? void 0 : client.handle,
12845
- chatChannel: chatChannel,
12846
- followUpResponseId: followUpResponseId,
12847
- wasCampaignShownButNowClosed: wasCampaignShownButNowClosed
12848
- }, {
12849
- sampleRate: 1
12850
- });
12851
12837
 
12852
12838
  if (chatChannel) {
12853
12839
  if (!wasCampaignShownButNowClosed) {
@@ -13012,7 +12998,14 @@ var Container = /*#__PURE__*/function (_Component) {
13012
12998
  var chatHasBeenRendered = this.state.chatHasBeenRendered;
13013
12999
  var campaignKey = params.campaignKey,
13014
13000
  ignoreStatus = params.ignoreStatus,
13015
- ignoreFrequency = params.ignoreFrequency; // Don't allow sending campaigns when chat is open, it would interrupt the conversation
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
13016
13009
 
13017
13010
  if (isDrawerOpen) {
13018
13011
  return;
@@ -13031,7 +13024,7 @@ var Container = /*#__PURE__*/function (_Component) {
13031
13024
  clientHandle: client === null || client === void 0 ? void 0 : client.handle,
13032
13025
  followUpResponseId: followUpResponseId
13033
13026
  }, {
13034
- sampleRate: 1
13027
+ sampleRate: (client === null || client === void 0 ? void 0 : client.handle) === "tsi-cocoon" ? 1 : 0
13035
13028
  });
13036
13029
  setState({
13037
13030
  latestCampaignKey: campaignKey,
@@ -14368,7 +14361,7 @@ window.__AdaEmbedConstructor = Embed;
14368
14361
  /* harmony export */ });
14369
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);
14370
14363
  var isProduction = "production" === "production";
14371
- var embed2Version = "063c7f1";
14364
+ var embed2Version = "8c748e1";
14372
14365
 
14373
14366
  /***/ }),
14374
14367
 
@@ -14714,9 +14707,9 @@ function _log() {
14714
14707
  service: "embed",
14715
14708
  env: "production",
14716
14709
  embedVersion: 2,
14717
- version: "1.0.68",
14710
+ version: "1.0.69",
14718
14711
  isNpm: true,
14719
- commitHash: "063c7f1"
14712
+ commitHash: "8c748e1"
14720
14713
  }))
14721
14714
  });
14722
14715
 
@@ -25657,7 +25650,7 @@ function _loadEmbed() {
25657
25650
  polyfillVersionString = "legacy";
25658
25651
  }
25659
25652
 
25660
- embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "063c7f1", "/index.js");
25653
+ embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "8c748e1", "/index.js");
25661
25654
  }
25662
25655
 
25663
25656
  clientScriptExists = Boolean( true || // The client script is bundled with npm module
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index.d.ts",