@ada-support/embed2 1.0.72 → 1.0.74

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.72-6eb0fae",
8791
+ release: "1.0.74-98a17a0",
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, "6eb0fae", "/index.html");
9493
+ return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "98a17a0", "/index.html");
9494
9494
  }
9495
9495
  /**
9496
9496
  * Generate the Chat / API URL
@@ -9594,11 +9594,10 @@ var actions = {
9594
9594
  });
9595
9595
  }
9596
9596
 
9597
- var hasChatOpenedAfterProactiveMessagesShown = currentState.hasChatOpenedAfterProactiveMessagesShown;
9598
-
9599
- if (!currentState.isDrawerOpen && !hasChatOpenedAfterProactiveMessagesShown && currentState.latestCampaignKey) {
9600
- hasChatOpenedAfterProactiveMessagesShown = true;
9597
+ var hasChatOpenedAfterProactiveMessagesShown = currentState.hasChatOpenedAfterProactiveMessagesShown,
9598
+ wasCampaignShownButNowClosed = currentState.wasCampaignShownButNowClosed;
9601
9599
 
9600
+ if (!currentState.isDrawerOpen && !hasChatOpenedAfterProactiveMessagesShown && !wasCampaignShownButNowClosed && currentState.latestCampaignKey) {
9602
9601
  var _url = getURL({
9603
9602
  name: "api",
9604
9603
  handle: currentState.handle,
@@ -9788,8 +9787,9 @@ var mutations = function mutations(state, action) {
9788
9787
  case ActionTypes.TOGGLE_CHAT_TYPE:
9789
9788
  {
9790
9789
  var hasChatOpenedAfterProactiveMessagesShown = state.hasChatOpenedAfterProactiveMessagesShown;
9790
+ var wasCampaignShownButNowClosed = state.wasCampaignShownButNowClosed;
9791
9791
 
9792
- if (!state.isDrawerOpen && state.latestCampaignKey && !hasChatOpenedAfterProactiveMessagesShown) {
9792
+ if (!state.isDrawerOpen && state.latestCampaignKey && !hasChatOpenedAfterProactiveMessagesShown && !wasCampaignShownButNowClosed) {
9793
9793
  hasChatOpenedAfterProactiveMessagesShown = true;
9794
9794
  }
9795
9795
 
@@ -14344,7 +14344,7 @@ window.__AdaEmbedConstructor = Embed;
14344
14344
  /* harmony export */ });
14345
14345
  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)\\/(99|([1-9]\\d\\d|\\d{4,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(15|(1[6-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(98|(99|\\d{3,}))\\.\\d+\\.\\d+)|(Firefox\\/(98|(99|\\d{3,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
14346
14346
  var isProduction = "production" === "production";
14347
- var embed2Version = "6eb0fae";
14347
+ var embed2Version = "98a17a0";
14348
14348
 
14349
14349
  /***/ }),
14350
14350
 
@@ -14690,9 +14690,9 @@ function _log() {
14690
14690
  service: "embed",
14691
14691
  env: "production",
14692
14692
  embedVersion: 2,
14693
- version: "1.0.72",
14693
+ version: "1.0.74",
14694
14694
  isNpm: true,
14695
- commitHash: "6eb0fae"
14695
+ commitHash: "98a17a0"
14696
14696
  }))
14697
14697
  });
14698
14698
 
@@ -25633,7 +25633,7 @@ function _loadEmbed() {
25633
25633
  polyfillVersionString = "legacy";
25634
25634
  }
25635
25635
 
25636
- embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "6eb0fae", "/index.js");
25636
+ embedScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "98a17a0", "/index.js");
25637
25637
  }
25638
25638
 
25639
25639
  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.72",
3
+ "version": "1.0.74",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index.d.ts",