@atlaskit/profilecard 24.20.3 → 24.20.5

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-example--default.png +0 -0
  3. package/__tests__/vr-tests/__snapshots__/user-profilecard/alternate-actions--default.png +0 -0
  4. package/__tests__/vr-tests/__snapshots__/user-profilecard/best-case-profile--default.png +0 -0
  5. package/__tests__/vr-tests/__snapshots__/user-profilecard/bot-case-profile--default.png +0 -0
  6. package/__tests__/vr-tests/__snapshots__/user-profilecard/error-state--default.png +0 -0
  7. package/__tests__/vr-tests/__snapshots__/user-profilecard/error-state-not-found--default.png +0 -0
  8. package/__tests__/vr-tests/__snapshots__/user-profilecard/worst-case-profile--default.png +0 -0
  9. package/afm-products/tsconfig.json +123 -0
  10. package/compass.yml +3 -0
  11. package/dist/cjs/components/common/ProfileCardTrigger.js +17 -21
  12. package/dist/cjs/components/team-profile-card/main.compiled.css +1 -15
  13. package/dist/cjs/components/team-profile-card/main.js +81 -185
  14. package/dist/cjs/components/team-profile-card/team-connections/main.compiled.css +1 -6
  15. package/dist/cjs/components/team-profile-card/team-connections/main.js +1 -65
  16. package/dist/es2019/components/common/ProfileCardTrigger.js +1 -4
  17. package/dist/es2019/components/team-profile-card/main.compiled.css +1 -15
  18. package/dist/es2019/components/team-profile-card/main.js +55 -157
  19. package/dist/es2019/components/team-profile-card/team-connections/main.compiled.css +1 -6
  20. package/dist/es2019/components/team-profile-card/team-connections/main.js +1 -69
  21. package/dist/esm/components/common/ProfileCardTrigger.js +17 -21
  22. package/dist/esm/components/team-profile-card/main.compiled.css +1 -15
  23. package/dist/esm/components/team-profile-card/main.js +69 -173
  24. package/dist/esm/components/team-profile-card/team-connections/main.compiled.css +1 -6
  25. package/dist/esm/components/team-profile-card/team-connections/main.js +1 -65
  26. package/dist/types/components/team-profile-card/team-connections/main.d.ts +0 -1
  27. package/dist/types-ts4.5/components/team-profile-card/team-connections/main.d.ts +0 -1
  28. package/package.json +16 -24
  29. package/afm-dev-agents/tsconfig.json +0 -123
  30. package/afm-passionfruit/tsconfig.json +0 -123
  31. package/afm-post-office/tsconfig.json +0 -123
  32. package/afm-rovo-extension/tsconfig.json +0 -123
  33. package/afm-townsquare/tsconfig.json +0 -123
  34. package/afm-volt/tsconfig.json +0 -117
@@ -3,8 +3,9 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["containerId", "teamId", "displayName", "description", "avatarImageUrl", "headerImageUrl", "memberAvatars", "memberCount", "cloudId", "userId", "isVerified", "teamProfileUrl"];
5
5
  import "./main.compiled.css";
6
+ import * as React from 'react';
6
7
  import { ax, ix } from "@compiled/react/runtime";
7
- import React, { useCallback, useMemo } from 'react';
8
+ import { useCallback, useMemo } from 'react';
8
9
  import { FormattedMessage } from 'react-intl-next';
9
10
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
10
11
  import AvatarGroup from '@atlaskit/avatar-group';
@@ -12,64 +13,41 @@ import Heading from '@atlaskit/heading';
12
13
  import LinkItem from '@atlaskit/menu/link-item';
13
14
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
14
15
  import { fg } from '@atlaskit/platform-feature-flags';
15
- import { Box, Flex, Inline, Pressable, Stack, Text } from '@atlaskit/primitives/compiled';
16
+ import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
16
17
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
17
18
  import TeamAvatar from '@atlaskit/teams-avatar';
18
19
  import { TeamContainers, useTeamContainers } from '@atlaskit/teams-public';
19
20
  import { fireEvent } from '../../util/analytics';
20
21
  import TeamAppTile from '../common/assets/TeamAppTile.svg';
21
22
  import { TeamActions } from './team-actions';
22
- import { NewTeamConnections, TeamConnections } from './team-connections/main';
23
+ import { TeamConnections } from './team-connections/main';
23
24
  import { TeamContainersSkeleton } from './team-containers-skeleton';
24
25
  var noop = function noop() {};
25
26
  var styles = {
26
27
  wrapperStyles: "_2rko1mok _v564nm7n _1reo15vq _18m915vq _1e0c1txw _2lx21bp4 _1bsb1gwv _1ul95x59 _4t3i1wug",
27
28
  containerStyles: "_otyrpxbi",
28
29
  avatarImageStyles: "_kqswstnw _18u01ejb",
29
- headerImageStyles: "_5ral1dfr _s7n4jp4b _4t3i53f4 _1bsb1osq",
30
- newHeaderImageStyles: "_5ral1dfr _s7n4jp4b _4t3i12am _1bsb1osq",
30
+ headerImageStyles: "_5ral1dfr _s7n4jp4b _4t3i12am _1bsb1osq",
31
31
  teamInformationStyles: "_18u01ejb _19pku2gc _2hwx1ejb",
32
- teamConnectionHeaderStyles: "_18u0u2gc _2hwxu2gc _c71lx2si _18m91wug",
33
- teamConnectionContainerStyles: "_18u0u2gc _2hwxu2gc",
34
32
  teamConnectionStyles: "_18u0u2gc _2hwxu2gc",
35
33
  teamConnectionItemsStyles: "_c71lx2si _18m91wug",
36
34
  connectionTitleStyles: "_11c81vhk _18u0pxbi _19pk1b66 _2hwxpxbi _otyr12x7 _syaz1gjq",
37
- teamAppTileStyles: "_18u01wug _4t3i7vkz _1bsb7vkz",
38
- viewProfileContainerStyles: "_4cvr1h6o _uwhke4h9 _15a5nqa1 _1i53muej _19bv1ejb _u5f31ejb",
39
- viewProfileButtonStyles: "_2rko12b0 _189ee4h9 _1dqonqa1 _1h6dmuej _bfhksm61 _syaz1gjq _1bsb1osq _4t3i1ul9 _19pkpxbi"
35
+ teamAppTileStyles: "_18u01wug _4t3i7vkz _1bsb7vkz"
40
36
  };
41
- var TeamCardWrapper = function TeamCardWrapper(_ref) {
42
- var id = _ref.id,
43
- children = _ref.children;
44
- return /*#__PURE__*/React.createElement(Box, {
45
- xcss: styles.wrapperStyles,
46
- testId: "team-card-".concat(id)
47
- }, children);
48
- };
49
- var HeaderImage = function HeaderImage(_ref2) {
50
- var srcUrl = _ref2.srcUrl;
51
- return /*#__PURE__*/React.createElement(Box, {
52
- as: "img",
53
- src: srcUrl,
54
- xcss: styles.headerImageStyles,
55
- testId: "profile-header-image",
56
- alt: "team-header-image"
57
- });
58
- };
59
- export var TeamProfileCard = function TeamProfileCard(_ref3) {
60
- var containerId = _ref3.containerId,
61
- teamId = _ref3.teamId,
62
- displayName = _ref3.displayName,
63
- description = _ref3.description,
64
- avatarImageUrl = _ref3.avatarImageUrl,
65
- headerImageUrl = _ref3.headerImageUrl,
66
- memberAvatars = _ref3.memberAvatars,
67
- memberCount = _ref3.memberCount,
68
- cloudId = _ref3.cloudId,
69
- userId = _ref3.userId,
70
- isVerified = _ref3.isVerified,
71
- teamProfileUrl = _ref3.teamProfileUrl,
72
- props = _objectWithoutProperties(_ref3, _excluded);
37
+ export var TeamProfileCard = function TeamProfileCard(_ref) {
38
+ var containerId = _ref.containerId,
39
+ teamId = _ref.teamId,
40
+ displayName = _ref.displayName,
41
+ description = _ref.description,
42
+ avatarImageUrl = _ref.avatarImageUrl,
43
+ headerImageUrl = _ref.headerImageUrl,
44
+ memberAvatars = _ref.memberAvatars,
45
+ memberCount = _ref.memberCount,
46
+ cloudId = _ref.cloudId,
47
+ userId = _ref.userId,
48
+ isVerified = _ref.isVerified,
49
+ teamProfileUrl = _ref.teamProfileUrl,
50
+ props = _objectWithoutProperties(_ref, _excluded);
73
51
  var _useTeamContainers = useTeamContainers(teamId),
74
52
  teamContainers = _useTeamContainers.teamContainers,
75
53
  loading = _useTeamContainers.loading;
@@ -83,9 +61,6 @@ export var TeamProfileCard = function TeamProfileCard(_ref3) {
83
61
  return tc.id === containerId;
84
62
  }).length < teamContainers.length;
85
63
  }, [containerId, teamContainers]);
86
-
87
- // TODO: set isNewLayout to be true when clean up 'team-bi-directional-container-connection' experiment
88
- var isNewLayout = Boolean(props.isKudosEnabled || props.otherActions);
89
64
  var onClick = useCallback(function () {
90
65
  if (fg('ptc-enable-profile-card-analytics-refactor')) {
91
66
  fireEventNext('ui.button.clicked.viewTeamProfileButton', {});
@@ -99,117 +74,16 @@ export var TeamProfileCard = function TeamProfileCard(_ref3) {
99
74
  });
100
75
  }
101
76
  }
102
- if (!isNewLayout) {
103
- window.open(teamProfileUrl, '_blank');
104
- }
105
- }, [createAnalyticsEvent, teamProfileUrl, isNewLayout, fireEventNext]);
106
- if (isNewLayout) {
107
- return /*#__PURE__*/React.createElement(Box, {
108
- xcss: styles.wrapperStyles,
109
- testId: "team-card-".concat(teamId)
110
- }, /*#__PURE__*/React.createElement(Box, {
111
- as: "img",
112
- src: headerImageUrl,
113
- xcss: styles.newHeaderImageStyles,
114
- testId: "profile-header-image",
115
- alt: "team-header-image"
116
- }), /*#__PURE__*/React.createElement(Stack, {
117
- space: "space.200",
118
- xcss: styles.containerStyles
119
- }, /*#__PURE__*/React.createElement(Inline, {
120
- spread: "space-between",
121
- alignBlock: "center"
122
- }, /*#__PURE__*/React.createElement(Box, {
123
- xcss: styles.avatarImageStyles
124
- }, /*#__PURE__*/React.createElement(TeamAvatar, {
125
- size: "medium",
126
- src: avatarImageUrl
127
- }))), /*#__PURE__*/React.createElement(Stack, {
128
- xcss: styles.teamInformationStyles,
129
- space: "space.200"
130
- }, /*#__PURE__*/React.createElement(Flex, {
131
- justifyContent: "space-between"
132
- }, /*#__PURE__*/React.createElement(Stack, {
133
- space: "space.050"
134
- }, /*#__PURE__*/React.createElement(Inline, {
135
- alignBlock: "center"
136
- }, /*#__PURE__*/React.createElement(Heading, {
137
- size: "medium"
138
- }, displayName), isVerified && /*#__PURE__*/React.createElement(VerifiedTeamIcon, {
139
- showTooltip: true
140
- })), /*#__PURE__*/React.createElement(Text, {
141
- color: "color.text.subtlest"
142
- }, typeof memberCount === 'string' ? /*#__PURE__*/React.createElement(FormattedMessage, {
143
- defaultMessage: "Contributing team \u2022 {memberCount} members",
144
- values: {
145
- memberCount: memberCount
146
- },
147
- id: "people-and-teams.team-profile-card.large-member-count"
148
- }) : /*#__PURE__*/React.createElement(FormattedMessage, {
149
- defaultMessage: "Contributing team \u2022 {count, plural, one {# member} other {# members}}",
150
- values: {
151
- count: memberCount
152
- },
153
- id: "people-and-teams.team-profile-card.member-count"
154
- }))), /*#__PURE__*/React.createElement(TeamActions, _extends({
155
- cloudId: cloudId,
156
- teamId: teamId
157
- }, props))), /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement(AvatarGroup, {
158
- appearance: "stack",
159
- data: memberAvatars
160
- })), description && /*#__PURE__*/React.createElement(Text, {
161
- color: "color.text",
162
- maxLines: 3
163
- }, description)), /*#__PURE__*/React.createElement(Box, {
164
- xcss: styles.teamConnectionStyles
165
- }, /*#__PURE__*/React.createElement(Box, {
166
- xcss: styles.connectionTitleStyles
167
- }, /*#__PURE__*/React.createElement(FormattedMessage, {
168
- defaultMessage: "Team links",
169
- id: "people-and-teams.team-profile-card.team-connections"
170
- })), /*#__PURE__*/React.createElement(Box, {
171
- xcss: styles.teamConnectionItemsStyles
172
- }, /*#__PURE__*/React.createElement(LinkItem, {
173
- href: teamProfileUrl,
174
- target: "_blank",
175
- onClick: onClick,
176
- description: /*#__PURE__*/React.createElement(FormattedMessage, {
177
- defaultMessage: "Team profile",
178
- id: "people-and-teams.team-profile-card.team-profile-description"
179
- }),
180
- iconBefore: /*#__PURE__*/React.createElement(TeamAvatar, {
181
- size: "small",
182
- src: avatarImageUrl
183
- }),
184
- iconAfter: /*#__PURE__*/React.createElement(Box, {
185
- as: "img",
186
- src: TeamAppTile,
187
- testId: "team-app-tile",
188
- alt: "team-app-tile",
189
- xcss: styles.teamAppTileStyles
190
- }),
191
- testId: "team-profile-card-profile-link-item"
192
- }, /*#__PURE__*/React.createElement(Text, {
193
- maxLines: 1,
194
- color: "color.text"
195
- }, displayName)), (loading || hasOtherTeamConnections) && /*#__PURE__*/React.createElement(TeamContainers, {
196
- teamId: teamId,
197
- onAddAContainerClick: noop,
198
- userId: userId,
199
- cloudId: cloudId,
200
- components: {
201
- ContainerCard: NewTeamConnections,
202
- TeamContainersSkeleton: TeamContainersSkeleton
203
- },
204
- filterContainerId: containerId,
205
- isDisplayedOnProfileCard: true,
206
- maxNumberOfContainersToShow: loading ? 0 : 9
207
- })))));
208
- }
209
- return /*#__PURE__*/React.createElement(TeamCardWrapper, {
210
- id: teamId
211
- }, /*#__PURE__*/React.createElement(HeaderImage, {
212
- srcUrl: headerImageUrl
77
+ }, [createAnalyticsEvent, fireEventNext]);
78
+ return /*#__PURE__*/React.createElement(Box, {
79
+ xcss: styles.wrapperStyles,
80
+ testId: "team-card-".concat(teamId)
81
+ }, /*#__PURE__*/React.createElement(Box, {
82
+ as: "img",
83
+ src: headerImageUrl,
84
+ xcss: styles.headerImageStyles,
85
+ testId: "profile-header-image",
86
+ alt: "team-header-image"
213
87
  }), /*#__PURE__*/React.createElement(Stack, {
214
88
  space: "space.200",
215
89
  xcss: styles.containerStyles
@@ -224,6 +98,8 @@ export var TeamProfileCard = function TeamProfileCard(_ref3) {
224
98
  }))), /*#__PURE__*/React.createElement(Stack, {
225
99
  xcss: styles.teamInformationStyles,
226
100
  space: "space.200"
101
+ }, /*#__PURE__*/React.createElement(Flex, {
102
+ justifyContent: "space-between"
227
103
  }, /*#__PURE__*/React.createElement(Stack, {
228
104
  space: "space.050"
229
105
  }, /*#__PURE__*/React.createElement(Inline, {
@@ -246,20 +122,48 @@ export var TeamProfileCard = function TeamProfileCard(_ref3) {
246
122
  count: memberCount
247
123
  },
248
124
  id: "people-and-teams.team-profile-card.member-count"
249
- }))), /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement(AvatarGroup, {
125
+ }))), /*#__PURE__*/React.createElement(TeamActions, _extends({
126
+ cloudId: cloudId,
127
+ teamId: teamId
128
+ }, props))), /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement(AvatarGroup, {
250
129
  appearance: "stack",
251
130
  data: memberAvatars
252
131
  })), description && /*#__PURE__*/React.createElement(Text, {
253
132
  color: "color.text",
254
133
  maxLines: 3
255
- }, description)), (loading || hasOtherTeamConnections) && /*#__PURE__*/React.createElement(Box, {
256
- xcss: hasOtherTeamConnections ? styles.teamConnectionHeaderStyles : styles.teamConnectionContainerStyles
257
- }, hasOtherTeamConnections && /*#__PURE__*/React.createElement(Box, {
134
+ }, description)), /*#__PURE__*/React.createElement(Box, {
135
+ xcss: styles.teamConnectionStyles
136
+ }, /*#__PURE__*/React.createElement(Box, {
258
137
  xcss: styles.connectionTitleStyles
259
138
  }, /*#__PURE__*/React.createElement(FormattedMessage, {
260
- defaultMessage: "Where we work",
261
- id: "people-and-teams.team-profile-card.team-connections-header"
262
- })), /*#__PURE__*/React.createElement(TeamContainers, {
139
+ defaultMessage: "Team links",
140
+ id: "people-and-teams.team-profile-card.team-connections"
141
+ })), /*#__PURE__*/React.createElement(Box, {
142
+ xcss: styles.teamConnectionItemsStyles
143
+ }, /*#__PURE__*/React.createElement(LinkItem, {
144
+ href: teamProfileUrl,
145
+ target: "_blank",
146
+ onClick: onClick,
147
+ description: /*#__PURE__*/React.createElement(FormattedMessage, {
148
+ defaultMessage: "Team profile",
149
+ id: "people-and-teams.team-profile-card.team-profile-description"
150
+ }),
151
+ iconBefore: /*#__PURE__*/React.createElement(TeamAvatar, {
152
+ size: "small",
153
+ src: avatarImageUrl
154
+ }),
155
+ iconAfter: /*#__PURE__*/React.createElement(Box, {
156
+ as: "img",
157
+ src: TeamAppTile,
158
+ testId: "team-app-tile",
159
+ alt: "team-app-tile",
160
+ xcss: styles.teamAppTileStyles
161
+ }),
162
+ testId: "team-profile-card-profile-link-item"
163
+ }, /*#__PURE__*/React.createElement(Text, {
164
+ maxLines: 1,
165
+ color: "color.text"
166
+ }, displayName)), (loading || hasOtherTeamConnections) && /*#__PURE__*/React.createElement(TeamContainers, {
263
167
  teamId: teamId,
264
168
  onAddAContainerClick: noop,
265
169
  userId: userId,
@@ -269,15 +173,7 @@ export var TeamProfileCard = function TeamProfileCard(_ref3) {
269
173
  TeamContainersSkeleton: TeamContainersSkeleton
270
174
  },
271
175
  filterContainerId: containerId,
272
- isDisplayedOnProfileCard: true
273
- })), teamProfileUrl && /*#__PURE__*/React.createElement(Stack, {
274
- xcss: styles.viewProfileContainerStyles
275
- }, /*#__PURE__*/React.createElement(Pressable, {
276
- onClick: onClick,
277
- xcss: styles.viewProfileButtonStyles,
278
- testId: "view-profile-button"
279
- }, /*#__PURE__*/React.createElement(FormattedMessage, {
280
- defaultMessage: "View profile",
281
- id: "people-and-teams.team-profile-card.view-profile"
176
+ isDisplayedOnProfileCard: true,
177
+ maxNumberOfContainersToShow: loading ? 0 : 9
282
178
  })))));
283
179
  };
@@ -1,8 +1,3 @@
1
-
2
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._18u01wug{margin-left:auto}
3
- ._1bsb1tcg{width:24px}
1
+ ._18u01wug{margin-left:auto}
4
2
  ._1bsb7vkz{width:1pc}
5
- ._1e0c1txw{display:flex}
6
- ._4cvr1h6o{align-items:center}
7
- ._4t3i1tcg{height:24px}
8
3
  ._4t3i7vkz{height:1pc}
@@ -5,13 +5,11 @@ import React, { useCallback } from 'react';
5
5
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
6
6
  import { LinkItem } from '@atlaskit/menu';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
- import { Box, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
8
+ import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
9
9
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
10
10
  import { ContainerIcon, getContainerProperties } from '@atlaskit/teams-public';
11
11
  import { fireEvent } from '../../../util/analytics';
12
12
  var styles = {
13
- containerWrapperStyles: "_1e0c1txw _4cvr1h6o",
14
- containerIconStyles: "_2rko12b0 _4t3i1tcg _1bsb1tcg",
15
13
  containerTypeIconButtonStyles: "_18u01wug _4t3i7vkz _1bsb7vkz"
16
14
  };
17
15
  export var TeamConnections = function TeamConnections(_ref) {
@@ -47,68 +45,6 @@ export var TeamConnections = function TeamConnections(_ref) {
47
45
  });
48
46
  }
49
47
  }, [containerType, createAnalyticsEvent, fireEventNext]);
50
- return /*#__PURE__*/React.createElement(LinkItem, {
51
- href: link,
52
- onClick: onClick,
53
- target: "_blank"
54
- }, /*#__PURE__*/React.createElement(Inline, {
55
- space: "space.100",
56
- xcss: styles.containerWrapperStyles
57
- }, /*#__PURE__*/React.createElement(ContainerIcon, {
58
- containerType: containerType,
59
- title: title,
60
- containerIcon: containerIcon,
61
- size: "small"
62
- }), /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Text, {
63
- maxLines: 1,
64
- color: "color.text"
65
- }, title), /*#__PURE__*/React.createElement(Inline, {
66
- space: "space.050"
67
- }, /*#__PURE__*/React.createElement(Text, {
68
- size: "small",
69
- color: "color.text.subtlest"
70
- }, description), /*#__PURE__*/React.createElement(Text, {
71
- size: "small",
72
- color: "color.text.subtlest"
73
- }, containerTypeText))), /*#__PURE__*/React.createElement(Box, {
74
- backgroundColor: 'color.background.neutral.subtle',
75
- xcss: styles.containerTypeIconButtonStyles,
76
- testId: "container-type-icon"
77
- }, icon)));
78
- };
79
- export var NewTeamConnections = function NewTeamConnections(_ref2) {
80
- var containerType = _ref2.containerType,
81
- title = _ref2.title,
82
- containerIcon = _ref2.containerIcon,
83
- link = _ref2.link;
84
- var _getContainerProperti2 = getContainerProperties({
85
- containerType: containerType,
86
- iconSize: 'medium',
87
- isDisplayedOnProfileCard: true
88
- }),
89
- description = _getContainerProperti2.description,
90
- icon = _getContainerProperti2.icon,
91
- containerTypeText = _getContainerProperti2.containerTypeText;
92
- var _useAnalyticsEvents2 = useAnalyticsEvents(),
93
- createAnalyticsEvent = _useAnalyticsEvents2.createAnalyticsEvent;
94
- var _useAnalyticsEventsNe2 = useAnalyticsEventsNext(),
95
- fireEventNext = _useAnalyticsEventsNe2.fireEvent;
96
- var onClick = useCallback(function () {
97
- if (fg('ptc-enable-profile-card-analytics-refactor')) {
98
- fireEventNext('ui.teamConnectionItem.clicked.teamProfileCard', {
99
- container: containerType
100
- });
101
- } else {
102
- fireEvent(createAnalyticsEvent, {
103
- action: 'clicked',
104
- actionSubject: 'teamConnectionItem',
105
- actionSubjectId: 'teamProfileCard',
106
- attributes: {
107
- container: containerType
108
- }
109
- });
110
- }
111
- }, [containerType, createAnalyticsEvent, fireEventNext]);
112
48
  return /*#__PURE__*/React.createElement(LinkItem, {
113
49
  href: link,
114
50
  onClick: onClick,
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
2
  import { type LinkedContainerCardProps } from '@atlaskit/teams-public';
3
3
  export declare const TeamConnections: ({ containerType, title, containerIcon, link, }: LinkedContainerCardProps) => React.JSX.Element;
4
- export declare const NewTeamConnections: ({ containerType, title, containerIcon, link, }: LinkedContainerCardProps) => React.JSX.Element;
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
2
  import { type LinkedContainerCardProps } from '@atlaskit/teams-public';
3
3
  export declare const TeamConnections: ({ containerType, title, containerIcon, link, }: LinkedContainerCardProps) => React.JSX.Element;
4
- export declare const NewTeamConnections: ({ 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": "24.20.3",
3
+ "version": "24.20.5",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,9 +42,9 @@
42
42
  "@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.7.0",
43
43
  "@atlaskit/analytics-next": "^11.1.0",
44
44
  "@atlaskit/atlassian-context": "^0.6.0",
45
- "@atlaskit/avatar": "^25.4.0",
46
- "@atlaskit/avatar-group": "^12.3.0",
47
- "@atlaskit/button": "^23.5.0",
45
+ "@atlaskit/avatar": "^25.5.0",
46
+ "@atlaskit/avatar-group": "^12.4.0",
47
+ "@atlaskit/button": "^23.6.0",
48
48
  "@atlaskit/css": "^0.15.0",
49
49
  "@atlaskit/dropdown-menu": "^16.3.0",
50
50
  "@atlaskit/empty-state": "^10.1.0",
@@ -54,28 +54,26 @@
54
54
  "@atlaskit/icon": "^28.5.0",
55
55
  "@atlaskit/link": "^3.2.0",
56
56
  "@atlaskit/logo": "^19.9.0",
57
- "@atlaskit/lozenge": "^13.0.0",
57
+ "@atlaskit/lozenge": "^13.1.0",
58
58
  "@atlaskit/menu": "^8.4.0",
59
- "@atlaskit/modal-dialog": "^14.5.0",
60
- "@atlaskit/people-teams-ui-public": "^3.5.0",
59
+ "@atlaskit/modal-dialog": "^14.6.0",
60
+ "@atlaskit/people-teams-ui-public": "^3.6.0",
61
61
  "@atlaskit/platform-feature-flags": "^1.1.0",
62
- "@atlaskit/platform-feature-flags-react": "^0.3.0",
63
- "@atlaskit/popup": "^4.4.0",
64
- "@atlaskit/primitives": "^16.0.0",
65
- "@atlaskit/rovo-agent-components": "^3.9.0",
66
- "@atlaskit/rovo-triggers": "^3.15.0",
62
+ "@atlaskit/platform-feature-flags-react": "^0.4.0",
63
+ "@atlaskit/popup": "^4.6.0",
64
+ "@atlaskit/primitives": "^16.1.0",
65
+ "@atlaskit/rovo-agent-components": "^3.10.0",
66
+ "@atlaskit/rovo-triggers": "^4.0.0",
67
67
  "@atlaskit/spinner": "^19.0.0",
68
68
  "@atlaskit/teams-app-config": "^1.12.0",
69
- "@atlaskit/teams-app-internal-analytics": "^1.18.0",
70
- "@atlaskit/teams-avatar": "^2.3.0",
69
+ "@atlaskit/teams-app-internal-analytics": "^1.19.0",
70
+ "@atlaskit/teams-avatar": "^2.4.0",
71
71
  "@atlaskit/teams-public": "^0.62.0",
72
72
  "@atlaskit/theme": "^21.0.0",
73
- "@atlaskit/tokens": "^7.0.0",
74
- "@atlaskit/tooltip": "^20.6.0",
73
+ "@atlaskit/tokens": "^8.0.0",
74
+ "@atlaskit/tooltip": "^20.8.0",
75
75
  "@babel/runtime": "^7.0.0",
76
76
  "@compiled/react": "^0.18.6",
77
- "@emotion/react": "^11.7.1",
78
- "@emotion/styled": "^11.0.0",
79
77
  "date-fns": "^2.17.0",
80
78
  "date-fns-tz": "^2.0.0",
81
79
  "graphql": "^15.8.0",
@@ -141,12 +139,6 @@
141
139
  "pt-deprecate-assistance-service": {
142
140
  "type": "boolean"
143
141
  },
144
- "dst-a11y__replace-anchor-with-link__people-and-tea": {
145
- "type": "boolean"
146
- },
147
- "should-render-to-parent-should-be-true-people-and-": {
148
- "type": "boolean"
149
- },
150
142
  "platform-adopt-teams-nav-config": {
151
143
  "type": "boolean"
152
144
  },
@@ -1,123 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.dev-agents.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../dev-agents/tsDist/@atlaskit__profilecard/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-next/afm-dev-agents/tsconfig.json"
28
- },
29
- {
30
- "path": "../../../uip/atlassian-context/afm-dev-agents/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../design-system/avatar/afm-dev-agents/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../design-system/avatar-group/afm-dev-agents/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../design-system/button/afm-dev-agents/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../design-system/css/afm-dev-agents/tsconfig.json"
43
- },
44
- {
45
- "path": "../../../design-system/dropdown-menu/afm-dev-agents/tsconfig.json"
46
- },
47
- {
48
- "path": "../../../design-system/empty-state/afm-dev-agents/tsconfig.json"
49
- },
50
- {
51
- "path": "../../../measurement/feature-gate-js-client/afm-dev-agents/tsconfig.json"
52
- },
53
- {
54
- "path": "../../../team-central/give-kudos/afm-dev-agents/tsconfig.json"
55
- },
56
- {
57
- "path": "../../../design-system/heading/afm-dev-agents/tsconfig.json"
58
- },
59
- {
60
- "path": "../../../design-system/icon/afm-dev-agents/tsconfig.json"
61
- },
62
- {
63
- "path": "../../../design-system/link/afm-dev-agents/tsconfig.json"
64
- },
65
- {
66
- "path": "../../../design-system/logo/afm-dev-agents/tsconfig.json"
67
- },
68
- {
69
- "path": "../../../design-system/lozenge/afm-dev-agents/tsconfig.json"
70
- },
71
- {
72
- "path": "../../../design-system/menu/afm-dev-agents/tsconfig.json"
73
- },
74
- {
75
- "path": "../../../design-system/modal-dialog/afm-dev-agents/tsconfig.json"
76
- },
77
- {
78
- "path": "../../people-teams-ui-public/afm-dev-agents/tsconfig.json"
79
- },
80
- {
81
- "path": "../../../platform/feature-flags/afm-dev-agents/tsconfig.json"
82
- },
83
- {
84
- "path": "../../../platform/feature-flags-react/afm-dev-agents/tsconfig.json"
85
- },
86
- {
87
- "path": "../../../design-system/popup/afm-dev-agents/tsconfig.json"
88
- },
89
- {
90
- "path": "../../../design-system/primitives/afm-dev-agents/tsconfig.json"
91
- },
92
- {
93
- "path": "../../../ai-mate/rovo-agent-components/afm-dev-agents/tsconfig.json"
94
- },
95
- {
96
- "path": "../../../ai-mate/rovo-triggers/afm-dev-agents/tsconfig.json"
97
- },
98
- {
99
- "path": "../../../design-system/spinner/afm-dev-agents/tsconfig.json"
100
- },
101
- {
102
- "path": "../../teams-app-config/afm-dev-agents/tsconfig.json"
103
- },
104
- {
105
- "path": "../../teams-app-internal-analytics/afm-dev-agents/tsconfig.json"
106
- },
107
- {
108
- "path": "../../teams-avatar/afm-dev-agents/tsconfig.json"
109
- },
110
- {
111
- "path": "../../teams-public/afm-dev-agents/tsconfig.json"
112
- },
113
- {
114
- "path": "../../../design-system/theme/afm-dev-agents/tsconfig.json"
115
- },
116
- {
117
- "path": "../../../design-system/tokens/afm-dev-agents/tsconfig.json"
118
- },
119
- {
120
- "path": "../../../design-system/tooltip/afm-dev-agents/tsconfig.json"
121
- }
122
- ]
123
- }