@atlaskit/people-teams-ui-public 3.4.1 → 3.5.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 +17 -0
- package/dist/cjs/common/utils/analytics/analytics-subcontext/index.js +7 -3
- package/dist/es2019/common/utils/analytics/analytics-subcontext/index.js +7 -3
- package/dist/esm/common/utils/analytics/analytics-subcontext/index.js +7 -3
- package/dist/types/common/utils/analytics/analytics-subcontext/index.d.ts +1 -2
- package/dist/types-ts4.5/common/utils/analytics/analytics-subcontext/index.d.ts +1 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/people-teams-ui-public
|
|
2
2
|
|
|
3
|
+
## 3.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`ab5ef8d6bd584`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab5ef8d6bd584) -
|
|
14
|
+
Migrated teams app analytics context source type from enum to string template literal
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 3.4.1
|
|
4
21
|
|
|
5
22
|
### 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
|
|
33
|
-
|
|
34
|
-
|
|
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);
|
|
@@ -24,8 +24,12 @@ function _TeamsAppAnalyticsContext({
|
|
|
24
24
|
children,
|
|
25
25
|
topLevelAttributes
|
|
26
26
|
}) {
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
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);
|
|
@@ -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
|
|
26
|
-
|
|
27
|
-
|
|
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);
|
|
@@ -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?:
|
|
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?:
|
|
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.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "UI components for public packages",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
39
|
-
"@atlaskit/icon": "^28.
|
|
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
|
-
"@atlaskit/primitives": "^
|
|
43
|
-
"@atlaskit/teams-app-internal-analytics": "^1.
|
|
44
|
-
"@atlaskit/tokens": "^6.
|
|
42
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
43
|
+
"@atlaskit/teams-app-internal-analytics": "^1.16.0",
|
|
44
|
+
"@atlaskit/tokens": "^6.5.0",
|
|
45
45
|
"@atlaskit/tooltip": "^20.5.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"@compiled/react": "^0.18.3",
|