@atlaskit/analytics-next 12.0.0 → 12.0.1

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,14 @@
1
1
  # @atlaskit/analytics-next
2
2
 
3
+ ## 12.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
8
+ Add @atlassian/react-compiler-gating as a runtime dependency to enable React Compiler platform
9
+ gating.
10
+ - Updated dependencies
11
+
3
12
  ## 12.0.0
4
13
 
5
14
  ### Major Changes
@@ -26,6 +26,9 @@
26
26
  "references": [
27
27
  {
28
28
  "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
29
+ },
30
+ {
31
+ "path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
29
32
  }
30
33
  ]
31
34
  }
@@ -26,6 +26,9 @@
26
26
  "references": [
27
27
  {
28
28
  "path": "../../../platform/feature-flags/afm-products/tsconfig.json"
29
+ },
30
+ {
31
+ "path": "../../../react-compiler/react-compiler-gating/afm-products/tsconfig.json"
29
32
  }
30
33
  ]
31
34
  }
@@ -16,7 +16,7 @@
16
16
 
17
17
  import path from 'path';
18
18
 
19
- import type { StructuredContentSource } from '@atlassian/structured-docs-types';
19
+ import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
20
20
 
21
21
  import packageJson from './package.json';
22
22
 
@@ -31,7 +31,7 @@ var ContextTypes = exports.ContextTypes = {
31
31
  * for any events fired by its descendents,
32
32
  * then passes the event up the hierarchy
33
33
  */
34
- // eslint-disable-next-line @repo/internal/react/no-class-components
34
+ // eslint-disable-next-line @repo/internal/react/no-class-components, @atlaskit/volt-strict-mode/no-multiple-exports
35
35
  var AnalyticsDecorator = exports.AnalyticsDecorator = /*#__PURE__*/function (_Component) {
36
36
  function AnalyticsDecorator() {
37
37
  var _this;
@@ -93,7 +93,7 @@ var AnalyticsDecorator = exports.AnalyticsDecorator = /*#__PURE__*/function (_Co
93
93
  return _react.default.Children.only(children);
94
94
  }
95
95
  }]);
96
- }(_react.Component);
96
+ }(_react.Component); // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
97
97
  (0, _defineProperty2.default)(AnalyticsDecorator, "defaultProps", {
98
98
  match: '*',
99
99
  matchPrivate: false
@@ -17,6 +17,8 @@ var isAnalyticsEvent = exports.isAnalyticsEvent = function isAnalyticsEvent(obj)
17
17
  // Backwards compatibility with older analytics-next packages
18
18
  (obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) === 'AnalyticsEvent';
19
19
  };
20
+
21
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
20
22
  var AnalyticsEvent = exports.default = /*#__PURE__*/function () {
21
23
  function AnalyticsEvent(props) {
22
24
  var _this = this;
@@ -23,6 +23,8 @@ var isUIAnalyticsEvent = exports.isUIAnalyticsEvent = function isUIAnalyticsEven
23
23
  // Backwards compatibility with older analytics-next packages
24
24
  (obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) === 'UIAnalyticsEvent';
25
25
  };
26
+
27
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
26
28
  var UIAnalyticsEvent = exports.default = /*#__PURE__*/function (_AnalyticsEvent) {
27
29
  function UIAnalyticsEvent(props) {
28
30
  var _this;
@@ -12,7 +12,7 @@ export const ContextTypes = {
12
12
  * for any events fired by its descendents,
13
13
  * then passes the event up the hierarchy
14
14
  */
15
- // eslint-disable-next-line @repo/internal/react/no-class-components
15
+ // eslint-disable-next-line @repo/internal/react/no-class-components, @atlaskit/volt-strict-mode/no-multiple-exports
16
16
  export class AnalyticsDecorator extends Component {
17
17
  constructor(...args) {
18
18
  super(...args);
@@ -70,6 +70,8 @@ export class AnalyticsDecorator extends Component {
70
70
  return React.Children.only(children);
71
71
  }
72
72
  }
73
+
74
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
73
75
  _defineProperty(AnalyticsDecorator, "defaultProps", {
74
76
  match: '*',
75
77
  matchPrivate: false
@@ -5,6 +5,8 @@ export const isAnalyticsEvent = obj => {
5
5
  // Backwards compatibility with older analytics-next packages
6
6
  (obj === null || obj === void 0 ? void 0 : (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) === 'AnalyticsEvent';
7
7
  };
8
+
9
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
8
10
  export default class AnalyticsEvent {
9
11
  constructor(props) {
10
12
  _defineProperty(this, "_isAnalyticsEvent", true);
@@ -7,6 +7,8 @@ export const isUIAnalyticsEvent = obj => {
7
7
  // Backwards compatibility with older analytics-next packages
8
8
  (obj === null || obj === void 0 ? void 0 : (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) === 'UIAnalyticsEvent';
9
9
  };
10
+
11
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
10
12
  export default class UIAnalyticsEvent extends AnalyticsEvent {
11
13
  constructor(props) {
12
14
  super(props);
@@ -22,7 +22,7 @@ export var ContextTypes = {
22
22
  * for any events fired by its descendents,
23
23
  * then passes the event up the hierarchy
24
24
  */
25
- // eslint-disable-next-line @repo/internal/react/no-class-components
25
+ // eslint-disable-next-line @repo/internal/react/no-class-components, @atlaskit/volt-strict-mode/no-multiple-exports
26
26
  export var AnalyticsDecorator = /*#__PURE__*/function (_Component) {
27
27
  function AnalyticsDecorator() {
28
28
  var _this;
@@ -85,6 +85,8 @@ export var AnalyticsDecorator = /*#__PURE__*/function (_Component) {
85
85
  }
86
86
  }]);
87
87
  }(Component);
88
+
89
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
88
90
  _defineProperty(AnalyticsDecorator, "defaultProps", {
89
91
  match: '*',
90
92
  matchPrivate: false
@@ -10,6 +10,8 @@ export var isAnalyticsEvent = function isAnalyticsEvent(obj) {
10
10
  // Backwards compatibility with older analytics-next packages
11
11
  (obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) === 'AnalyticsEvent';
12
12
  };
13
+
14
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
13
15
  var AnalyticsEvent = /*#__PURE__*/function () {
14
16
  function AnalyticsEvent(props) {
15
17
  var _this = this;
@@ -17,6 +17,8 @@ export var isUIAnalyticsEvent = function isUIAnalyticsEvent(obj) {
17
17
  // Backwards compatibility with older analytics-next packages
18
18
  (obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) === 'UIAnalyticsEvent';
19
19
  };
20
+
21
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
20
22
  var UIAnalyticsEvent = /*#__PURE__*/function (_AnalyticsEvent) {
21
23
  function UIAnalyticsEvent(props) {
22
24
  var _this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/analytics-next",
3
- "version": "12.0.0",
3
+ "version": "12.0.1",
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/"
@@ -31,6 +31,7 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
33
33
  "@atlaskit/platform-feature-flags": "^2.0.0",
34
+ "@atlassian/react-compiler-gating": "^0.2.0",
34
35
  "@babel/runtime": "^7.0.0",
35
36
  "prop-types": "^15.5.10",
36
37
  "use-memo-one": "^1.1.1"
@@ -41,7 +42,6 @@
41
42
  },
42
43
  "devDependencies": {
43
44
  "@atlassian/feature-flags-test-utils": "^1.1.0",
44
- "@atlassian/react-compiler-gating": "workspace:^",
45
45
  "@atlassian/ssr-tests": "workspace:^",
46
46
  "@atlassian/structured-docs-types": "workspace:^",
47
47
  "@testing-library/react": "^16.3.0",