@ada-support/embed2 1.0.61 → 1.0.62

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.61-db21d26",
8791
+ release: "1.0.62-e5d1f99",
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
@@ -9488,7 +9488,7 @@ function getEmbedURL(_ref) {
9488
9488
  polyfillVersionString = "legacy";
9489
9489
  }
9490
9490
 
9491
- return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "db21d26", "/index.html");
9491
+ return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "e5d1f99", "/index.html");
9492
9492
  }
9493
9493
  /**
9494
9494
  * Generate the Chat / API URL
@@ -12900,7 +12900,7 @@ var Container = /*#__PURE__*/function (_Component) {
12900
12900
  // that a user might engage with another campaign on another page path
12901
12901
 
12902
12902
 
12903
- if (followUpResponseId && wasCampaignShownButNowClosed) {
12903
+ if (wasCampaignShownButNowClosed) {
12904
12904
  setState({
12905
12905
  wasCampaignShownButNowClosed: false
12906
12906
  });
@@ -14368,7 +14368,7 @@ window.__AdaEmbedConstructor = Embed;
14368
14368
  /* harmony export */ });
14369
14369
  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
14370
  var isProduction = "production" === "production";
14371
- var embed2Version = "db21d26";
14371
+ var embed2Version = "e5d1f99";
14372
14372
 
14373
14373
  /***/ }),
14374
14374
 
@@ -14714,9 +14714,9 @@ function _log() {
14714
14714
  service: "embed",
14715
14715
  env: "production",
14716
14716
  embedVersion: 2,
14717
- version: "1.0.61",
14717
+ version: "1.0.62",
14718
14718
  isNpm: true,
14719
- commitHash: "db21d26"
14719
+ commitHash: "e5d1f99"
14720
14720
  }))
14721
14721
  });
14722
14722
 
@@ -25657,7 +25657,7 @@ function _loadEmbed() {
25657
25657
  polyfillVersionString = "legacy";
25658
25658
  }
25659
25659
 
25660
- embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "db21d26", "/index.js");
25660
+ embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "e5d1f99", "/index.js");
25661
25661
  }
25662
25662
 
25663
25663
  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.61",
3
+ "version": "1.0.62",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "build:modern": "NODE_ENV=production BROWSERSLIST_ENV=modern npx webpack --config webpack.prod.ts",
11
11
  "build:npm-types": "tsc --project tsconfig.npm.json --declaration --outDir dist/npm-entry --emitDeclarationOnly --allowJs false --checkJs false",
12
12
  "build:npm": "./npm-build.sh",
13
- "lint": "tsc --noEmit --strict false && ./node_modules/.bin/eslint --report-unused-disable-directives --ext .js,.jsx,.ts,.tsx . --max-warnings 77",
13
+ "lint": "tsc --noEmit --strict false && ./node_modules/.bin/eslint --report-unused-disable-directives --ext .js,.jsx,.ts,.tsx . --max-warnings 74",
14
14
  "lint:fix": "yarn lint --fix",
15
15
  "deploy-legacy": "TS_NODE_PROJECT=wp.tsconfig.json NODE_ENV=production BROWSERSLIST_ENV=legacy npx webpack --config webpack.prod.ts",
16
16
  "deploy-modern": "TS_NODE_PROJECT=wp.tsconfig.json NODE_ENV=production BROWSERSLIST_ENV=modern npx webpack --config webpack.prod.ts",
@@ -74,6 +74,7 @@
74
74
  "eslint-plugin-chai-friendly": "^0.7.2",
75
75
  "eslint-plugin-compat": "^3.13.0",
76
76
  "eslint-plugin-cypress": "^2.11.3",
77
+ "eslint-plugin-sonarjs": "^0.11.0",
77
78
  "husky": "^7.0.0",
78
79
  "jest": "^27.3.1",
79
80
  "jest-localstorage-mock": "^2.4.0",