@atlaskit/profilecard 23.7.2 → 23.7.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 +15 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/team-profile-card/main.compiled.css +8 -2
- package/dist/cjs/components/team-profile-card/main.js +6 -6
- package/dist/cjs/components/team-profile-card/team-connections/main.js +26 -5
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/team-profile-card/main.compiled.css +8 -2
- package/dist/es2019/components/team-profile-card/main.js +6 -6
- package/dist/es2019/components/team-profile-card/team-connections/main.js +24 -4
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/team-profile-card/main.compiled.css +8 -2
- package/dist/esm/components/team-profile-card/main.js +6 -6
- package/dist/esm/components/team-profile-card/team-connections/main.js +23 -4
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/components/team-profile-card/team-connections/main.d.ts +1 -1
- package/dist/types-ts4.5/components/team-profile-card/team-connections/main.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 23.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#133042](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/133042)
|
|
8
|
+
[`5168674830838`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5168674830838) -
|
|
9
|
+
make the connection item clickable
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 23.7.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 23.7.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
|
|
|
11
11
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
12
12
|
var addHeaders = function addHeaders(headers) {
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "23.7.
|
|
14
|
+
headers.append('atl-client-version', "23.7.4");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
66
66
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
67
67
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
68
68
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
69
|
-
headers.append('atl-client-version', "23.7.
|
|
69
|
+
headers.append('atl-client-version', "23.7.4");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
3
3
|
._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
|
|
4
4
|
._v564nm7n{transition:box-shadow .25s ease-in-out}
|
|
5
5
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
6
6
|
._1dqonqa1{border-style:solid}
|
|
7
|
-
._1h6dmuej{border-color:var(--ds-border,#091e4224)}
|
|
7
|
+
._1h6dmuej{border-color:var(--ds-border,#091e4224)}
|
|
8
|
+
._15a5nqa1{border-top-style:solid}
|
|
8
9
|
._18m915vq{overflow-y:hidden}
|
|
9
10
|
._18m91wug{overflow-y:auto}
|
|
10
11
|
._18u01ejb{margin-left:var(--ds-space-300,24px)}
|
|
12
|
+
._18u0pxbi{margin-left:var(--ds-space-200,1pc)}
|
|
13
|
+
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
11
14
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
12
15
|
._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
|
|
13
16
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
@@ -18,6 +21,8 @@
|
|
|
18
21
|
._1reo15vq{overflow-x:hidden}
|
|
19
22
|
._1ul95x59{min-width:340px}
|
|
20
23
|
._2hwx1ejb{margin-right:var(--ds-space-300,24px)}
|
|
24
|
+
._2hwxpxbi{margin-right:var(--ds-space-200,1pc)}
|
|
25
|
+
._2hwxu2gc{margin-right:var(--ds-space-100,8px)}
|
|
21
26
|
._2lx21bp4{flex-direction:column}
|
|
22
27
|
._4cvr1h6o{align-items:center}
|
|
23
28
|
._4t3i1ul9{height:30px}
|
|
@@ -27,6 +32,7 @@
|
|
|
27
32
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
28
33
|
._c71lx2si{max-height:265px}
|
|
29
34
|
._kqswstnw{position:absolute}
|
|
35
|
+
._otyr12x7{margin-bottom:var(--ds-space-075,6px)}
|
|
30
36
|
._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
|
|
31
37
|
._s7n4jp4b{vertical-align:top}
|
|
32
38
|
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
@@ -25,13 +25,14 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
25
25
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
26
26
|
var noop = function noop() {};
|
|
27
27
|
var styles = {
|
|
28
|
-
wrapperStyles: "_2rkopd34 _v564nm7n _1reo15vq _18m915vq
|
|
28
|
+
wrapperStyles: "_2rkopd34 _v564nm7n _1reo15vq _18m915vq _1e0c1txw _2lx21bp4 _1bsb1gwv _1ul95x59 _4t3i1wug",
|
|
29
29
|
containerStyles: "_otyrpxbi",
|
|
30
30
|
avatarImageStyles: "_kqswstnw _18u01ejb",
|
|
31
31
|
headerImageStyles: "_5ral1dfr _s7n4jp4b _4t3i53f4 _1bsb1osq",
|
|
32
32
|
teamInformationStyles: "_18u01ejb _19pku2gc _2hwx1ejb",
|
|
33
|
-
teamConnectionHeaderStyles: "
|
|
33
|
+
teamConnectionHeaderStyles: "_18u0u2gc _2hwxu2gc _c71lx2si _18m91wug",
|
|
34
34
|
teamConnectionContainerStyles: "_18u01ejb _2hwx1ejb",
|
|
35
|
+
connectionTitleStyles: "_11c81vhk _18u0pxbi _19pkpxbi _2hwxpxbi _otyr12x7 _syaz1gjq",
|
|
35
36
|
viewProfileContainerStyles: "_4cvr1h6o _uwhke4h9 _15a5nqa1 _1i53muej _19bv1ejb _u5f31ejb",
|
|
36
37
|
viewProfileButtonStyles: "_2rkoiti9 _189ee4h9 _1dqonqa1 _1h6dmuej _bfhksm61 _syaz1gjq _1bsb1osq _4t3i1ul9 _19pkpxbi"
|
|
37
38
|
};
|
|
@@ -128,11 +129,10 @@ var TeamProfileCard = exports.TeamProfileCard = function TeamProfileCard(_ref3)
|
|
|
128
129
|
})), description && /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
129
130
|
color: "color.text",
|
|
130
131
|
maxLines: 3
|
|
131
|
-
}, description)), (loading || hasOtherTeamConnections) && /*#__PURE__*/_react.default.createElement(_compiled.
|
|
132
|
-
space: 'space.200',
|
|
132
|
+
}, description)), (loading || hasOtherTeamConnections) && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
133
133
|
xcss: hasOtherTeamConnections ? styles.teamConnectionHeaderStyles : styles.teamConnectionContainerStyles
|
|
134
|
-
}, hasOtherTeamConnections && /*#__PURE__*/_react.default.createElement(
|
|
135
|
-
|
|
134
|
+
}, hasOtherTeamConnections && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
135
|
+
xcss: styles.connectionTitleStyles
|
|
136
136
|
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, {
|
|
137
137
|
defaultMessage: "Where we work",
|
|
138
138
|
id: "people-and-teams.team-profile-card.team-connections"
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
/* main.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.TeamConnections = void 0;
|
|
9
9
|
require("./main.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
|
-
var _react =
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
13
|
+
var _menu = require("@atlaskit/menu");
|
|
12
14
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
15
|
var _teamsPublic = require("@atlaskit/teams-public");
|
|
16
|
+
var _analytics = require("../../../util/analytics");
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
19
|
var styles = {
|
|
15
20
|
containerWrapperStyles: "_1e0c1txw _4cvr1h6o",
|
|
16
21
|
containerIconStyles: "_2rkoiti9 _4t3i1tcg _1bsb1tcg",
|
|
@@ -19,12 +24,28 @@ var styles = {
|
|
|
19
24
|
var TeamConnections = exports.TeamConnections = function TeamConnections(_ref) {
|
|
20
25
|
var containerType = _ref.containerType,
|
|
21
26
|
title = _ref.title,
|
|
22
|
-
containerIcon = _ref.containerIcon
|
|
27
|
+
containerIcon = _ref.containerIcon,
|
|
28
|
+
link = _ref.link;
|
|
23
29
|
var _getContainerProperti = (0, _teamsPublic.getContainerProperties)(containerType, 'medium'),
|
|
24
30
|
description = _getContainerProperti.description,
|
|
25
31
|
icon = _getContainerProperti.icon,
|
|
26
32
|
containerTypeText = _getContainerProperti.containerTypeText;
|
|
27
|
-
|
|
33
|
+
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
34
|
+
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
35
|
+
var onClick = (0, _react.useCallback)(function () {
|
|
36
|
+
(0, _analytics.fireEvent)(createAnalyticsEvent, {
|
|
37
|
+
action: 'clicked',
|
|
38
|
+
actionSubject: 'teamConnectionItem',
|
|
39
|
+
actionSubjectId: 'teamProfileCard',
|
|
40
|
+
attributes: {
|
|
41
|
+
container: containerType
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}, [containerType, createAnalyticsEvent]);
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_menu.LinkItem, {
|
|
46
|
+
href: link,
|
|
47
|
+
onClick: onClick
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
28
49
|
space: "space.100",
|
|
29
50
|
xcss: styles.containerWrapperStyles
|
|
30
51
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -48,5 +69,5 @@ var TeamConnections = exports.TeamConnections = function TeamConnections(_ref) {
|
|
|
48
69
|
backgroundColor: 'color.background.neutral.subtle',
|
|
49
70
|
xcss: styles.containerTypeIconButtonStyles,
|
|
50
71
|
testId: "container-type-icon"
|
|
51
|
-
}, icon));
|
|
72
|
+
}, icon)));
|
|
52
73
|
};
|
|
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
45
45
|
actionSubjectId: actionSubjectId,
|
|
46
46
|
attributes: _objectSpread(_objectSpread({
|
|
47
47
|
packageName: "@atlaskit/profilecard",
|
|
48
|
-
packageVersion: "23.7.
|
|
48
|
+
packageVersion: "23.7.4"
|
|
49
49
|
}, attributes), {}, {
|
|
50
50
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
51
51
|
})
|
|
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
|
|
|
6
6
|
}`;
|
|
7
7
|
const addHeaders = headers => {
|
|
8
8
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
9
|
-
headers.append('atl-client-version', "23.7.
|
|
9
|
+
headers.append('atl-client-version', "23.7.4");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -75,7 +75,7 @@ export const addHeaders = headers => {
|
|
|
75
75
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
76
76
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
77
77
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
78
|
-
headers.append('atl-client-version', "23.7.
|
|
78
|
+
headers.append('atl-client-version', "23.7.4");
|
|
79
79
|
return headers;
|
|
80
80
|
};
|
|
81
81
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
3
3
|
._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
|
|
4
4
|
._v564nm7n{transition:box-shadow .25s ease-in-out}
|
|
5
5
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
6
6
|
._1dqonqa1{border-style:solid}
|
|
7
|
-
._1h6dmuej{border-color:var(--ds-border,#091e4224)}
|
|
7
|
+
._1h6dmuej{border-color:var(--ds-border,#091e4224)}
|
|
8
|
+
._15a5nqa1{border-top-style:solid}
|
|
8
9
|
._18m915vq{overflow-y:hidden}
|
|
9
10
|
._18m91wug{overflow-y:auto}
|
|
10
11
|
._18u01ejb{margin-left:var(--ds-space-300,24px)}
|
|
12
|
+
._18u0pxbi{margin-left:var(--ds-space-200,1pc)}
|
|
13
|
+
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
11
14
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
12
15
|
._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
|
|
13
16
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
@@ -18,6 +21,8 @@
|
|
|
18
21
|
._1reo15vq{overflow-x:hidden}
|
|
19
22
|
._1ul95x59{min-width:340px}
|
|
20
23
|
._2hwx1ejb{margin-right:var(--ds-space-300,24px)}
|
|
24
|
+
._2hwxpxbi{margin-right:var(--ds-space-200,1pc)}
|
|
25
|
+
._2hwxu2gc{margin-right:var(--ds-space-100,8px)}
|
|
21
26
|
._2lx21bp4{flex-direction:column}
|
|
22
27
|
._4cvr1h6o{align-items:center}
|
|
23
28
|
._4t3i1ul9{height:30px}
|
|
@@ -27,6 +32,7 @@
|
|
|
27
32
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
28
33
|
._c71lx2si{max-height:265px}
|
|
29
34
|
._kqswstnw{position:absolute}
|
|
35
|
+
._otyr12x7{margin-bottom:var(--ds-space-075,6px)}
|
|
30
36
|
._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
|
|
31
37
|
._s7n4jp4b{vertical-align:top}
|
|
32
38
|
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
@@ -15,13 +15,14 @@ import { TeamConnections } from './team-connections/main';
|
|
|
15
15
|
import { TeamContainersSkeleton } from './team-containers-skeleton';
|
|
16
16
|
const noop = () => {};
|
|
17
17
|
const styles = {
|
|
18
|
-
wrapperStyles: "_2rkopd34 _v564nm7n _1reo15vq _18m915vq
|
|
18
|
+
wrapperStyles: "_2rkopd34 _v564nm7n _1reo15vq _18m915vq _1e0c1txw _2lx21bp4 _1bsb1gwv _1ul95x59 _4t3i1wug",
|
|
19
19
|
containerStyles: "_otyrpxbi",
|
|
20
20
|
avatarImageStyles: "_kqswstnw _18u01ejb",
|
|
21
21
|
headerImageStyles: "_5ral1dfr _s7n4jp4b _4t3i53f4 _1bsb1osq",
|
|
22
22
|
teamInformationStyles: "_18u01ejb _19pku2gc _2hwx1ejb",
|
|
23
|
-
teamConnectionHeaderStyles: "
|
|
23
|
+
teamConnectionHeaderStyles: "_18u0u2gc _2hwxu2gc _c71lx2si _18m91wug",
|
|
24
24
|
teamConnectionContainerStyles: "_18u01ejb _2hwx1ejb",
|
|
25
|
+
connectionTitleStyles: "_11c81vhk _18u0pxbi _19pkpxbi _2hwxpxbi _otyr12x7 _syaz1gjq",
|
|
25
26
|
viewProfileContainerStyles: "_4cvr1h6o _uwhke4h9 _15a5nqa1 _1i53muej _19bv1ejb _u5f31ejb",
|
|
26
27
|
viewProfileButtonStyles: "_2rkoiti9 _189ee4h9 _1dqonqa1 _1h6dmuej _bfhksm61 _syaz1gjq _1bsb1osq _4t3i1ul9 _19pkpxbi"
|
|
27
28
|
};
|
|
@@ -115,11 +116,10 @@ export const TeamProfileCard = ({
|
|
|
115
116
|
})), description && /*#__PURE__*/React.createElement(Text, {
|
|
116
117
|
color: "color.text",
|
|
117
118
|
maxLines: 3
|
|
118
|
-
}, description)), (loading || hasOtherTeamConnections) && /*#__PURE__*/React.createElement(
|
|
119
|
-
space: 'space.200',
|
|
119
|
+
}, description)), (loading || hasOtherTeamConnections) && /*#__PURE__*/React.createElement(Box, {
|
|
120
120
|
xcss: hasOtherTeamConnections ? styles.teamConnectionHeaderStyles : styles.teamConnectionContainerStyles
|
|
121
|
-
}, hasOtherTeamConnections && /*#__PURE__*/React.createElement(
|
|
122
|
-
|
|
121
|
+
}, hasOtherTeamConnections && /*#__PURE__*/React.createElement(Box, {
|
|
122
|
+
xcss: styles.connectionTitleStyles
|
|
123
123
|
}, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
124
124
|
defaultMessage: "Where we work",
|
|
125
125
|
id: "people-and-teams.team-profile-card.team-connections"
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/* main.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./main.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import React, { useCallback } from 'react';
|
|
5
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
|
+
import { LinkItem } from '@atlaskit/menu';
|
|
5
7
|
import { Box, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
6
8
|
import { getContainerProperties } from '@atlaskit/teams-public';
|
|
9
|
+
import { fireEvent } from '../../../util/analytics';
|
|
7
10
|
const styles = {
|
|
8
11
|
containerWrapperStyles: "_1e0c1txw _4cvr1h6o",
|
|
9
12
|
containerIconStyles: "_2rkoiti9 _4t3i1tcg _1bsb1tcg",
|
|
@@ -12,14 +15,31 @@ const styles = {
|
|
|
12
15
|
export const TeamConnections = ({
|
|
13
16
|
containerType,
|
|
14
17
|
title,
|
|
15
|
-
containerIcon
|
|
18
|
+
containerIcon,
|
|
19
|
+
link
|
|
16
20
|
}) => {
|
|
17
21
|
const {
|
|
18
22
|
description,
|
|
19
23
|
icon,
|
|
20
24
|
containerTypeText
|
|
21
25
|
} = getContainerProperties(containerType, 'medium');
|
|
22
|
-
|
|
26
|
+
const {
|
|
27
|
+
createAnalyticsEvent
|
|
28
|
+
} = useAnalyticsEvents();
|
|
29
|
+
const onClick = useCallback(() => {
|
|
30
|
+
fireEvent(createAnalyticsEvent, {
|
|
31
|
+
action: 'clicked',
|
|
32
|
+
actionSubject: 'teamConnectionItem',
|
|
33
|
+
actionSubjectId: 'teamProfileCard',
|
|
34
|
+
attributes: {
|
|
35
|
+
container: containerType
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}, [containerType, createAnalyticsEvent]);
|
|
39
|
+
return /*#__PURE__*/React.createElement(LinkItem, {
|
|
40
|
+
href: link,
|
|
41
|
+
onClick: onClick
|
|
42
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
23
43
|
space: "space.100",
|
|
24
44
|
xcss: styles.containerWrapperStyles
|
|
25
45
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -43,5 +63,5 @@ export const TeamConnections = ({
|
|
|
43
63
|
backgroundColor: 'color.background.neutral.subtle',
|
|
44
64
|
xcss: styles.containerTypeIconButtonStyles,
|
|
45
65
|
testId: "container-type-icon"
|
|
46
|
-
}, icon));
|
|
66
|
+
}, icon)));
|
|
47
67
|
};
|
|
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
32
32
|
actionSubjectId,
|
|
33
33
|
attributes: {
|
|
34
34
|
packageName: "@atlaskit/profilecard",
|
|
35
|
-
packageVersion: "23.7.
|
|
35
|
+
packageVersion: "23.7.4",
|
|
36
36
|
...attributes,
|
|
37
37
|
firedAt: Math.round(getPageTime())
|
|
38
38
|
}
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
|
|
|
4
4
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
5
5
|
var addHeaders = function addHeaders(headers) {
|
|
6
6
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
7
|
-
headers.append('atl-client-version', "23.7.
|
|
7
|
+
headers.append('atl-client-version', "23.7.4");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -57,7 +57,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
57
57
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
58
58
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
59
59
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
60
|
-
headers.append('atl-client-version', "23.7.
|
|
60
|
+
headers.append('atl-client-version', "23.7.4");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
3
3
|
._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
|
|
4
4
|
._v564nm7n{transition:box-shadow .25s ease-in-out}
|
|
5
5
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
6
6
|
._1dqonqa1{border-style:solid}
|
|
7
|
-
._1h6dmuej{border-color:var(--ds-border,#091e4224)}
|
|
7
|
+
._1h6dmuej{border-color:var(--ds-border,#091e4224)}
|
|
8
|
+
._15a5nqa1{border-top-style:solid}
|
|
8
9
|
._18m915vq{overflow-y:hidden}
|
|
9
10
|
._18m91wug{overflow-y:auto}
|
|
10
11
|
._18u01ejb{margin-left:var(--ds-space-300,24px)}
|
|
12
|
+
._18u0pxbi{margin-left:var(--ds-space-200,1pc)}
|
|
13
|
+
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
11
14
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
12
15
|
._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
|
|
13
16
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
@@ -18,6 +21,8 @@
|
|
|
18
21
|
._1reo15vq{overflow-x:hidden}
|
|
19
22
|
._1ul95x59{min-width:340px}
|
|
20
23
|
._2hwx1ejb{margin-right:var(--ds-space-300,24px)}
|
|
24
|
+
._2hwxpxbi{margin-right:var(--ds-space-200,1pc)}
|
|
25
|
+
._2hwxu2gc{margin-right:var(--ds-space-100,8px)}
|
|
21
26
|
._2lx21bp4{flex-direction:column}
|
|
22
27
|
._4cvr1h6o{align-items:center}
|
|
23
28
|
._4t3i1ul9{height:30px}
|
|
@@ -27,6 +32,7 @@
|
|
|
27
32
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
28
33
|
._c71lx2si{max-height:265px}
|
|
29
34
|
._kqswstnw{position:absolute}
|
|
35
|
+
._otyr12x7{margin-bottom:var(--ds-space-075,6px)}
|
|
30
36
|
._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
|
|
31
37
|
._s7n4jp4b{vertical-align:top}
|
|
32
38
|
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
@@ -15,13 +15,14 @@ import { TeamConnections } from './team-connections/main';
|
|
|
15
15
|
import { TeamContainersSkeleton } from './team-containers-skeleton';
|
|
16
16
|
var noop = function noop() {};
|
|
17
17
|
var styles = {
|
|
18
|
-
wrapperStyles: "_2rkopd34 _v564nm7n _1reo15vq _18m915vq
|
|
18
|
+
wrapperStyles: "_2rkopd34 _v564nm7n _1reo15vq _18m915vq _1e0c1txw _2lx21bp4 _1bsb1gwv _1ul95x59 _4t3i1wug",
|
|
19
19
|
containerStyles: "_otyrpxbi",
|
|
20
20
|
avatarImageStyles: "_kqswstnw _18u01ejb",
|
|
21
21
|
headerImageStyles: "_5ral1dfr _s7n4jp4b _4t3i53f4 _1bsb1osq",
|
|
22
22
|
teamInformationStyles: "_18u01ejb _19pku2gc _2hwx1ejb",
|
|
23
|
-
teamConnectionHeaderStyles: "
|
|
23
|
+
teamConnectionHeaderStyles: "_18u0u2gc _2hwxu2gc _c71lx2si _18m91wug",
|
|
24
24
|
teamConnectionContainerStyles: "_18u01ejb _2hwx1ejb",
|
|
25
|
+
connectionTitleStyles: "_11c81vhk _18u0pxbi _19pkpxbi _2hwxpxbi _otyr12x7 _syaz1gjq",
|
|
25
26
|
viewProfileContainerStyles: "_4cvr1h6o _uwhke4h9 _15a5nqa1 _1i53muej _19bv1ejb _u5f31ejb",
|
|
26
27
|
viewProfileButtonStyles: "_2rkoiti9 _189ee4h9 _1dqonqa1 _1h6dmuej _bfhksm61 _syaz1gjq _1bsb1osq _4t3i1ul9 _19pkpxbi"
|
|
27
28
|
};
|
|
@@ -118,11 +119,10 @@ export var TeamProfileCard = function TeamProfileCard(_ref3) {
|
|
|
118
119
|
})), description && /*#__PURE__*/React.createElement(Text, {
|
|
119
120
|
color: "color.text",
|
|
120
121
|
maxLines: 3
|
|
121
|
-
}, description)), (loading || hasOtherTeamConnections) && /*#__PURE__*/React.createElement(
|
|
122
|
-
space: 'space.200',
|
|
122
|
+
}, description)), (loading || hasOtherTeamConnections) && /*#__PURE__*/React.createElement(Box, {
|
|
123
123
|
xcss: hasOtherTeamConnections ? styles.teamConnectionHeaderStyles : styles.teamConnectionContainerStyles
|
|
124
|
-
}, hasOtherTeamConnections && /*#__PURE__*/React.createElement(
|
|
125
|
-
|
|
124
|
+
}, hasOtherTeamConnections && /*#__PURE__*/React.createElement(Box, {
|
|
125
|
+
xcss: styles.connectionTitleStyles
|
|
126
126
|
}, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
127
127
|
defaultMessage: "Where we work",
|
|
128
128
|
id: "people-and-teams.team-profile-card.team-connections"
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/* main.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./main.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import React, { useCallback } from 'react';
|
|
5
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
|
+
import { LinkItem } from '@atlaskit/menu';
|
|
5
7
|
import { Box, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
6
8
|
import { getContainerProperties } from '@atlaskit/teams-public';
|
|
9
|
+
import { fireEvent } from '../../../util/analytics';
|
|
7
10
|
var styles = {
|
|
8
11
|
containerWrapperStyles: "_1e0c1txw _4cvr1h6o",
|
|
9
12
|
containerIconStyles: "_2rkoiti9 _4t3i1tcg _1bsb1tcg",
|
|
@@ -12,12 +15,28 @@ var styles = {
|
|
|
12
15
|
export var TeamConnections = function TeamConnections(_ref) {
|
|
13
16
|
var containerType = _ref.containerType,
|
|
14
17
|
title = _ref.title,
|
|
15
|
-
containerIcon = _ref.containerIcon
|
|
18
|
+
containerIcon = _ref.containerIcon,
|
|
19
|
+
link = _ref.link;
|
|
16
20
|
var _getContainerProperti = getContainerProperties(containerType, 'medium'),
|
|
17
21
|
description = _getContainerProperti.description,
|
|
18
22
|
icon = _getContainerProperti.icon,
|
|
19
23
|
containerTypeText = _getContainerProperti.containerTypeText;
|
|
20
|
-
|
|
24
|
+
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
25
|
+
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
26
|
+
var onClick = useCallback(function () {
|
|
27
|
+
fireEvent(createAnalyticsEvent, {
|
|
28
|
+
action: 'clicked',
|
|
29
|
+
actionSubject: 'teamConnectionItem',
|
|
30
|
+
actionSubjectId: 'teamProfileCard',
|
|
31
|
+
attributes: {
|
|
32
|
+
container: containerType
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}, [containerType, createAnalyticsEvent]);
|
|
36
|
+
return /*#__PURE__*/React.createElement(LinkItem, {
|
|
37
|
+
href: link,
|
|
38
|
+
onClick: onClick
|
|
39
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
21
40
|
space: "space.100",
|
|
22
41
|
xcss: styles.containerWrapperStyles
|
|
23
42
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -41,5 +60,5 @@ export var TeamConnections = function TeamConnections(_ref) {
|
|
|
41
60
|
backgroundColor: 'color.background.neutral.subtle',
|
|
42
61
|
xcss: styles.containerTypeIconButtonStyles,
|
|
43
62
|
testId: "container-type-icon"
|
|
44
|
-
}, icon));
|
|
63
|
+
}, icon)));
|
|
45
64
|
};
|
|
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
39
39
|
actionSubjectId: actionSubjectId,
|
|
40
40
|
attributes: _objectSpread(_objectSpread({
|
|
41
41
|
packageName: "@atlaskit/profilecard",
|
|
42
|
-
packageVersion: "23.7.
|
|
42
|
+
packageVersion: "23.7.4"
|
|
43
43
|
}, attributes), {}, {
|
|
44
44
|
firedAt: Math.round(getPageTime())
|
|
45
45
|
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type LinkedContainerCardProps } from '@atlaskit/teams-public';
|
|
3
|
-
export declare const TeamConnections: ({ containerType, title, containerIcon, }: LinkedContainerCardProps) => React.JSX.Element;
|
|
3
|
+
export declare const TeamConnections: ({ containerType, title, containerIcon, link, }: LinkedContainerCardProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type LinkedContainerCardProps } from '@atlaskit/teams-public';
|
|
3
|
-
export declare const TeamConnections: ({ containerType, title, containerIcon, }: LinkedContainerCardProps) => React.JSX.Element;
|
|
3
|
+
export declare const TeamConnections: ({ containerType, title, containerIcon, link, }: LinkedContainerCardProps) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "23.7.
|
|
3
|
+
"version": "23.7.4",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/atlassian-context": "^0.2.0",
|
|
55
55
|
"@atlaskit/avatar": "^25.0.0",
|
|
56
56
|
"@atlaskit/avatar-group": "^12.0.0",
|
|
57
|
-
"@atlaskit/button": "^
|
|
57
|
+
"@atlaskit/button": "^22.0.0",
|
|
58
58
|
"@atlaskit/css": "^0.10.0",
|
|
59
59
|
"@atlaskit/dropdown-menu": "^13.0.0",
|
|
60
60
|
"@atlaskit/empty-state": "^9.0.0",
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"@atlaskit/icon": "^25.2.0",
|
|
65
65
|
"@atlaskit/logo": "^16.0.0",
|
|
66
66
|
"@atlaskit/lozenge": "^12.2.0",
|
|
67
|
-
"@atlaskit/menu": "^3.
|
|
67
|
+
"@atlaskit/menu": "^3.2.0",
|
|
68
68
|
"@atlaskit/modal-dialog": "^14.0.0",
|
|
69
69
|
"@atlaskit/people-teams-ui-public": "^3.1.0",
|
|
70
70
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
71
71
|
"@atlaskit/popup": "^3.0.0",
|
|
72
72
|
"@atlaskit/primitives": "^14.2.0",
|
|
73
73
|
"@atlaskit/rovo-agent-components": "^2.3.0",
|
|
74
|
-
"@atlaskit/rovo-triggers": "^2.
|
|
74
|
+
"@atlaskit/rovo-triggers": "^2.9.0",
|
|
75
75
|
"@atlaskit/spinner": "^18.0.0",
|
|
76
76
|
"@atlaskit/teams-avatar": "^2.3.0",
|
|
77
77
|
"@atlaskit/teams-public": "^0.23.0",
|