@atlaskit/analytics-next 8.3.3 → 8.3.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/analytics-next
2
2
 
3
+ ## 8.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2cbb787f8b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cbb787f8b3) - AFO-711 Analytics-next: nullable check for context
8
+
3
9
  ## 8.3.3
4
10
 
5
11
  ### Patch Changes
@@ -11,9 +11,11 @@ var _LegacyAnalyticsContext = _interopRequireDefault(require("./LegacyAnalyticsC
11
11
 
12
12
  var _ModernAnalyticsContext = _interopRequireDefault(require("./ModernAnalyticsContext"));
13
13
 
14
+ var _process, _process$env;
15
+
14
16
  var ExportedAnalyticsContext;
15
17
 
16
- if (typeof process !== 'undefined' && process.env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
18
+ if ((_process = process) !== null && _process !== void 0 && (_process$env = _process.env) !== null && _process$env !== void 0 && _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
17
19
  ExportedAnalyticsContext = _ModernAnalyticsContext.default;
18
20
  } else {
19
21
  ExportedAnalyticsContext = _LegacyAnalyticsContext.default;
@@ -11,9 +11,11 @@ var _LegacyAnalyticsListener = _interopRequireDefault(require("./LegacyAnalytics
11
11
 
12
12
  var _ModernAnalyticsListener = _interopRequireDefault(require("./ModernAnalyticsListener"));
13
13
 
14
+ var _process, _process$env;
15
+
14
16
  var ExportedAnalyticsListener;
15
17
 
16
- if (typeof process !== 'undefined' && process.env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
18
+ if ((_process = process) !== null && _process !== void 0 && (_process$env = _process.env) !== null && _process$env !== void 0 && _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
17
19
  ExportedAnalyticsListener = _ModernAnalyticsListener.default;
18
20
  } else {
19
21
  ExportedAnalyticsListener = _LegacyAnalyticsListener.default;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-next",
3
- "version": "8.3.3",
3
+ "version": "8.3.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,8 +1,10 @@
1
+ var _process, _process$env;
2
+
1
3
  import LegacyAnalyticsContext from './LegacyAnalyticsContext';
2
4
  import ModernAnalyticsContext from './ModernAnalyticsContext';
3
5
  let ExportedAnalyticsContext;
4
6
 
5
- if (typeof process !== 'undefined' && process.env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
7
+ if ((_process = process) !== null && _process !== void 0 && (_process$env = _process.env) !== null && _process$env !== void 0 && _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
6
8
  ExportedAnalyticsContext = ModernAnalyticsContext;
7
9
  } else {
8
10
  ExportedAnalyticsContext = LegacyAnalyticsContext;
@@ -1,8 +1,10 @@
1
+ var _process, _process$env;
2
+
1
3
  import LegacyAnalyticsListener from './LegacyAnalyticsListener';
2
4
  import ModernAnalyticsListener from './ModernAnalyticsListener';
3
5
  let ExportedAnalyticsListener;
4
6
 
5
- if (typeof process !== 'undefined' && process.env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
7
+ if ((_process = process) !== null && _process !== void 0 && (_process$env = _process.env) !== null && _process$env !== void 0 && _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
6
8
  ExportedAnalyticsListener = ModernAnalyticsListener;
7
9
  } else {
8
10
  ExportedAnalyticsListener = LegacyAnalyticsListener;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-next",
3
- "version": "8.3.3",
3
+ "version": "8.3.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,8 +1,10 @@
1
+ var _process, _process$env;
2
+
1
3
  import LegacyAnalyticsContext from './LegacyAnalyticsContext';
2
4
  import ModernAnalyticsContext from './ModernAnalyticsContext';
3
5
  var ExportedAnalyticsContext;
4
6
 
5
- if (typeof process !== 'undefined' && process.env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
7
+ if ((_process = process) !== null && _process !== void 0 && (_process$env = _process.env) !== null && _process$env !== void 0 && _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
6
8
  ExportedAnalyticsContext = ModernAnalyticsContext;
7
9
  } else {
8
10
  ExportedAnalyticsContext = LegacyAnalyticsContext;
@@ -1,8 +1,10 @@
1
+ var _process, _process$env;
2
+
1
3
  import LegacyAnalyticsListener from './LegacyAnalyticsListener';
2
4
  import ModernAnalyticsListener from './ModernAnalyticsListener';
3
5
  var ExportedAnalyticsListener;
4
6
 
5
- if (typeof process !== 'undefined' && process.env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
7
+ if ((_process = process) !== null && _process !== void 0 && (_process$env = _process.env) !== null && _process$env !== void 0 && _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']) {
6
8
  ExportedAnalyticsListener = ModernAnalyticsListener;
7
9
  } else {
8
10
  ExportedAnalyticsListener = LegacyAnalyticsListener;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-next",
3
- "version": "8.3.3",
3
+ "version": "8.3.4",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-next",
3
- "version": "8.3.3",
3
+ "version": "8.3.4",
4
4
  "description": "React components, HOCs and hooks to assist with tracking user activity with React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -58,7 +58,7 @@
58
58
  "@atlaskit/button": "^16.3.0",
59
59
  "@atlaskit/docs": "*",
60
60
  "@atlaskit/ssr": "*",
61
- "@atlaskit/textfield": "^5.2.0",
61
+ "@atlaskit/textfield": "^5.3.0",
62
62
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
63
63
  "@testing-library/react": "^12.1.5",
64
64
  "enzyme": "^3.10.0",
package/report.api.md CHANGED
@@ -1,6 +1,8 @@
1
- ## API Report File for "@atlaskit/analytics-next"
1
+ ## API Report File for "@atlaskit/analytics-next".
2
2
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
4
6
 
5
7
  ```ts
6
8
  /// <reference types="react" />