@ada-support/embed2 1.0.64 → 1.0.65

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.
@@ -20,7 +20,6 @@ export interface Features {
20
20
  developer_proactive?: boolean;
21
21
  afm_business_events?: boolean;
22
22
  afm_proactive_messaging?: boolean;
23
- afm_dont_show_proactive_messages_in_chat?: boolean;
24
23
  embed_test_bot?: boolean;
25
24
  translations?: boolean;
26
25
  }
@@ -8788,7 +8788,7 @@ var client = new error_tracker_BrowserClient({
8788
8788
  return event;
8789
8789
  },
8790
8790
  environment: "production",
8791
- release: "1.0.64-b369b05",
8791
+ release: "1.0.65-8e64b86",
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, "b369b05", "/index.html");
9493
+ return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "8e64b86", "/index.html");
9494
9494
  }
9495
9495
  /**
9496
9496
  * Generate the Chat / API URL
@@ -12989,7 +12989,7 @@ var Container = /*#__PURE__*/function (_Component) {
12989
12989
  }, {
12990
12990
  key: "triggerCampaign",
12991
12991
  value: function triggerCampaign(params) {
12992
- var _client$marketing_cam;
12992
+ var _client$marketing_cam, _campaign$follow_up_r;
12993
12993
 
12994
12994
  var _this$props7 = this.props,
12995
12995
  client = _this$props7.client,
@@ -13012,12 +13012,7 @@ var Container = /*#__PURE__*/function (_Component) {
13012
13012
  throw new errors/* AdaEmbedError */.S("Could not find campaign with key: ".concat(campaignKey));
13013
13013
  }
13014
13014
 
13015
- var followUpResponseId = campaign.follow_up_response_id;
13016
-
13017
- if (client !== null && client !== void 0 && client.features.afm_dont_show_proactive_messages_in_chat && !followUpResponseId) {
13018
- followUpResponseId = campaign.response_id;
13019
- }
13020
-
13015
+ 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;
13021
13016
  setState({
13022
13017
  latestCampaignKey: campaignKey,
13023
13018
  hasChatOpenedAfterProactiveMessagesShown: false,
@@ -14353,7 +14348,7 @@ window.__AdaEmbedConstructor = Embed;
14353
14348
  /* harmony export */ });
14354
14349
  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
14350
  var isProduction = "production" === "production";
14356
- var embed2Version = "b369b05";
14351
+ var embed2Version = "8e64b86";
14357
14352
 
14358
14353
  /***/ }),
14359
14354
 
@@ -14699,9 +14694,9 @@ function _log() {
14699
14694
  service: "embed",
14700
14695
  env: "production",
14701
14696
  embedVersion: 2,
14702
- version: "1.0.64",
14697
+ version: "1.0.65",
14703
14698
  isNpm: true,
14704
- commitHash: "b369b05"
14699
+ commitHash: "8e64b86"
14705
14700
  }))
14706
14701
  });
14707
14702
 
@@ -25642,7 +25637,7 @@ function _loadEmbed() {
25642
25637
  polyfillVersionString = "legacy";
25643
25638
  }
25644
25639
 
25645
- embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "b369b05", "/index.js");
25640
+ embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "8e64b86", "/index.js");
25646
25641
  }
25647
25642
 
25648
25643
  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.64",
3
+ "version": "1.0.65",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index.d.ts",