@atlaskit/people-teams-ui-public 3.4.1 → 3.5.0

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,16 @@
1
1
  # @atlaskit/people-teams-ui-public
2
2
 
3
+ ## 3.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`ab5ef8d6bd584`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab5ef8d6bd584) -
8
+ Migrated teams app analytics context source type from enum to string template literal
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 3.4.1
4
15
 
5
16
  ### Patch Changes
@@ -29,8 +29,12 @@ function _PeopleTeamsAnalyticsSubcontextProvider(_ref) {
29
29
  function _TeamsAppAnalyticsContext(_ref2) {
30
30
  var children = _ref2.children,
31
31
  topLevelAttributes = _ref2.topLevelAttributes;
32
- return /*#__PURE__*/_react.default.createElement(_teamsAppInternalAnalytics.TeamsAppAnalyticsContext, {
33
- data: topLevelAttributes
34
- }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children));
32
+ return (
33
+ /*#__PURE__*/
34
+ // @ts-ignore - source as a string is not a valid type for TeamsAppAnalyticsContext
35
+ _react.default.createElement(_teamsAppInternalAnalytics.TeamsAppAnalyticsContext, {
36
+ data: topLevelAttributes
37
+ }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children))
38
+ );
35
39
  }
36
40
  var PeopleTeamsAnalyticsSubcontextProvider = exports.PeopleTeamsAnalyticsSubcontextProvider = (0, _platformFeatureFlagsReact.componentWithFG)('ptc-enable-people-teams-ui-analytics-refactor', _TeamsAppAnalyticsContext, _PeopleTeamsAnalyticsSubcontextProvider);
@@ -15,7 +15,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
15
15
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
16
  var defaultAnalyticsContextData = {
17
17
  packageName: "@atlaskit/people-teams-ui-public",
18
- packageVersion: "0.0.0-development"
18
+ packageVersion: "3.4.1"
19
19
  };
20
20
 
21
21
  /**
@@ -24,8 +24,12 @@ function _TeamsAppAnalyticsContext({
24
24
  children,
25
25
  topLevelAttributes
26
26
  }) {
27
- return /*#__PURE__*/React.createElement(TeamsAppAnalyticsContext, {
28
- data: topLevelAttributes
29
- }, /*#__PURE__*/React.createElement(React.Fragment, null, children));
27
+ return (
28
+ /*#__PURE__*/
29
+ // @ts-ignore - source as a string is not a valid type for TeamsAppAnalyticsContext
30
+ React.createElement(TeamsAppAnalyticsContext, {
31
+ data: topLevelAttributes
32
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, children))
33
+ );
30
34
  }
31
35
  export const PeopleTeamsAnalyticsSubcontextProvider = componentWithFG('ptc-enable-people-teams-ui-analytics-refactor', _TeamsAppAnalyticsContext, _PeopleTeamsAnalyticsSubcontextProvider);
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
2
2
  import { PeopleTeamsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
3
3
  const defaultAnalyticsContextData = {
4
4
  packageName: "@atlaskit/people-teams-ui-public",
5
- packageVersion: "0.0.0-development"
5
+ packageVersion: "3.4.1"
6
6
  };
7
7
 
8
8
  /**
@@ -22,8 +22,12 @@ function _PeopleTeamsAnalyticsSubcontextProvider(_ref) {
22
22
  function _TeamsAppAnalyticsContext(_ref2) {
23
23
  var children = _ref2.children,
24
24
  topLevelAttributes = _ref2.topLevelAttributes;
25
- return /*#__PURE__*/React.createElement(TeamsAppAnalyticsContext, {
26
- data: topLevelAttributes
27
- }, /*#__PURE__*/React.createElement(React.Fragment, null, children));
25
+ return (
26
+ /*#__PURE__*/
27
+ // @ts-ignore - source as a string is not a valid type for TeamsAppAnalyticsContext
28
+ React.createElement(TeamsAppAnalyticsContext, {
29
+ data: topLevelAttributes
30
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, children))
31
+ );
28
32
  }
29
33
  export var PeopleTeamsAnalyticsSubcontextProvider = componentWithFG('ptc-enable-people-teams-ui-analytics-refactor', _TeamsAppAnalyticsContext, _PeopleTeamsAnalyticsSubcontextProvider);
@@ -6,7 +6,7 @@ import React, { useMemo } from 'react';
6
6
  import { PeopleTeamsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
7
7
  var defaultAnalyticsContextData = {
8
8
  packageName: "@atlaskit/people-teams-ui-public",
9
- packageVersion: "0.0.0-development"
9
+ packageVersion: "3.4.1"
10
10
  };
11
11
 
12
12
  /**
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import { type AnalyticsEventSource } from '@atlaskit/teams-app-internal-analytics';
3
2
  type PeopleTeamsAnalyticsSubcontextState = {
4
3
  topLevelAttributes?: {
5
- source?: AnalyticsEventSource;
4
+ source?: string;
6
5
  attributes?: Record<string, any>;
7
6
  };
8
7
  };
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import { type AnalyticsEventSource } from '@atlaskit/teams-app-internal-analytics';
3
2
  type PeopleTeamsAnalyticsSubcontextState = {
4
3
  topLevelAttributes?: {
5
- source?: AnalyticsEventSource;
4
+ source?: string;
6
5
  attributes?: Record<string, any>;
7
6
  };
8
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/people-teams-ui-public",
3
- "version": "3.4.1",
3
+ "version": "3.5.0",
4
4
  "description": "UI components for public packages",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,11 +36,11 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@atlaskit/analytics-namespaced-context": "^7.1.0",
39
- "@atlaskit/icon": "^28.4.0",
39
+ "@atlaskit/icon": "^28.5.0",
40
40
  "@atlaskit/legacy-custom-icons": "^0.22.0",
41
41
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
42
42
  "@atlaskit/primitives": "^14.15.0",
43
- "@atlaskit/teams-app-internal-analytics": "^1.10.0",
43
+ "@atlaskit/teams-app-internal-analytics": "^1.14.0",
44
44
  "@atlaskit/tokens": "^6.4.0",
45
45
  "@atlaskit/tooltip": "^20.5.0",
46
46
  "@babel/runtime": "^7.0.0",