@atlaskit/profilecard 24.35.1 → 24.36.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,25 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 24.36.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`ebdb0137330d9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ebdb0137330d9) -
8
+ Support REMOTE_A2A agent exposing isForgeAgentByCreatorType to public repo and deprecating
9
+ isForgeAgent from private repo
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 24.35.2
16
+
17
+ ### Patch Changes
18
+
19
+ - [`407b3926e2eb2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/407b3926e2eb2) -
20
+ Fix spacing on ProfileCardDetails to only add extra padding on custom lozenges when both meta and
21
+ lozenges are present, avoiding unintended layout shifts on cards without lozenges.
22
+
3
23
  ## 24.35.1
4
24
 
5
25
  ### Patch Changes
@@ -2,6 +2,7 @@ import { snapshot } from '@af/visual-regression';
2
2
 
3
3
  import {
4
4
  AlternateActions,
5
+ AppUserProfile,
5
6
  BestCaseProfile,
6
7
  BotCaseProfile,
7
8
  ErrorState,
@@ -14,4 +15,5 @@ snapshot(ErrorStateNotFound);
14
15
  snapshot(BestCaseProfile);
15
16
  snapshot(WorstCaseProfile);
16
17
  snapshot(BotCaseProfile);
18
+ snapshot(AppUserProfile);
17
19
  snapshot(AlternateActions);
@@ -200,7 +200,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
200
200
  agentIdentityAccountId: agent.identity_account_id,
201
201
  size: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? 'large' : 'xlarge',
202
202
  isRovoDev: isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card'),
203
- isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
203
+ isForgeAgent: (0, _platformFeatureFlags.fg)('rovo_agent_support_a2a_avatar') ? (0, _AgentAvatar.isForgeAgentByCreatorType)(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
204
204
  forgeAgentIconUrl: agent.icon
205
205
  })), /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
206
206
  space: "space.100",
@@ -142,9 +142,12 @@ var ProfileCardDetails = exports.ProfileCardDetails = function ProfileCardDetail
142
142
  status: status
143
143
  }));
144
144
  }
145
- return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, renderName(props.nickname, props.fullName, meta, nameRef), meta && /*#__PURE__*/_react.default.createElement(_Card.JobTitleLabel, null, meta), /*#__PURE__*/_react.default.createElement(CustomLozenges, {
145
+ var lozenges = /*#__PURE__*/_react.default.createElement(CustomLozenges, {
146
146
  lozenges: props.customLozenges
147
- }), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
147
+ });
148
+ return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, renderName(props.nickname, props.fullName, meta, nameRef), meta && /*#__PURE__*/_react.default.createElement(_Card.JobTitleLabel, null, meta), meta && props.customLozenges && props.customLozenges.length > 0 ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
149
+ paddingBlockStart: "space.150"
150
+ }, lozenges) : lozenges, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
148
151
  xcss: styles.detailedListWrapperNext
149
152
  }, /*#__PURE__*/_react.default.createElement(_Icon.IconLabel, {
150
153
  icon: "email",
@@ -9,7 +9,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { Box, Flex, Stack, Text } from '@atlaskit/primitives/compiled';
10
10
  import { AgentBanner } from '@atlaskit/rovo-agent-components/ui/agent-avatar/GeneratedAvatar';
11
11
  import { AgentStarCount } from '@atlaskit/rovo-agent-components/ui/agent-profile-info/AgentStarCount';
12
- import { AgentAvatar } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
12
+ import { AgentAvatar, isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
13
13
  import { AgentProfileCreator, AgentProfileInfo } from '@atlaskit/rovo-agent-components/ui/AgentProfileInfo';
14
14
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
15
15
  import { PACKAGE_META_DATA } from '../../util/analytics';
@@ -153,7 +153,7 @@ const AgentProfileCard = ({
153
153
  agentIdentityAccountId: agent.identity_account_id,
154
154
  size: fg('rovo_agent_empty_state_refresh') ? 'large' : 'xlarge',
155
155
  isRovoDev: isRovoDev && fg('rovo_dev_themed_identity_card'),
156
- isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
156
+ isForgeAgent: fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
157
157
  forgeAgentIconUrl: agent.icon
158
158
  })), /*#__PURE__*/React.createElement(Stack, {
159
159
  space: "space.100",
@@ -136,9 +136,12 @@ export const ProfileCardDetails = props => {
136
136
  status: status
137
137
  }));
138
138
  }
139
- return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(props.nickname, props.fullName, meta, nameRef), meta && /*#__PURE__*/React.createElement(JobTitleLabel, null, meta), /*#__PURE__*/React.createElement(CustomLozenges, {
139
+ const lozenges = /*#__PURE__*/React.createElement(CustomLozenges, {
140
140
  lozenges: props.customLozenges
141
- }), /*#__PURE__*/React.createElement(Box, {
141
+ });
142
+ return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(props.nickname, props.fullName, meta, nameRef), meta && /*#__PURE__*/React.createElement(JobTitleLabel, null, meta), meta && props.customLozenges && props.customLozenges.length > 0 ? /*#__PURE__*/React.createElement(Box, {
143
+ paddingBlockStart: "space.150"
144
+ }, lozenges) : lozenges, /*#__PURE__*/React.createElement(Box, {
142
145
  xcss: styles.detailedListWrapperNext
143
146
  }, /*#__PURE__*/React.createElement(IconLabel, {
144
147
  icon: "email",
@@ -15,7 +15,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import { Box, Flex, Stack, Text } from '@atlaskit/primitives/compiled';
16
16
  import { AgentBanner } from '@atlaskit/rovo-agent-components/ui/agent-avatar/GeneratedAvatar';
17
17
  import { AgentStarCount } from '@atlaskit/rovo-agent-components/ui/agent-profile-info/AgentStarCount';
18
- import { AgentAvatar } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
18
+ import { AgentAvatar, isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
19
19
  import { AgentProfileCreator, AgentProfileInfo } from '@atlaskit/rovo-agent-components/ui/AgentProfileInfo';
20
20
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
21
21
  import { PACKAGE_META_DATA } from '../../util/analytics';
@@ -191,7 +191,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
191
191
  agentIdentityAccountId: agent.identity_account_id,
192
192
  size: fg('rovo_agent_empty_state_refresh') ? 'large' : 'xlarge',
193
193
  isRovoDev: isRovoDev && fg('rovo_dev_themed_identity_card'),
194
- isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
194
+ isForgeAgent: fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
195
195
  forgeAgentIconUrl: agent.icon
196
196
  })), /*#__PURE__*/React.createElement(Stack, {
197
197
  space: "space.100",
@@ -133,9 +133,12 @@ export var ProfileCardDetails = function ProfileCardDetails(props) {
133
133
  status: status
134
134
  }));
135
135
  }
136
- return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(props.nickname, props.fullName, meta, nameRef), meta && /*#__PURE__*/React.createElement(JobTitleLabel, null, meta), /*#__PURE__*/React.createElement(CustomLozenges, {
136
+ var lozenges = /*#__PURE__*/React.createElement(CustomLozenges, {
137
137
  lozenges: props.customLozenges
138
- }), /*#__PURE__*/React.createElement(Box, {
138
+ });
139
+ return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(props.nickname, props.fullName, meta, nameRef), meta && /*#__PURE__*/React.createElement(JobTitleLabel, null, meta), meta && props.customLozenges && props.customLozenges.length > 0 ? /*#__PURE__*/React.createElement(Box, {
140
+ paddingBlockStart: "space.150"
141
+ }, lozenges) : lozenges, /*#__PURE__*/React.createElement(Box, {
139
142
  xcss: styles.detailedListWrapperNext
140
143
  }, /*#__PURE__*/React.createElement(IconLabel, {
141
144
  icon: "email",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "24.35.1",
3
+ "version": "24.36.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -60,8 +60,8 @@
60
60
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
61
61
  "@atlaskit/popup": "^4.13.0",
62
62
  "@atlaskit/primitives": "^18.0.0",
63
- "@atlaskit/rovo-agent-components": "^3.32.0",
64
- "@atlaskit/rovo-triggers": "^5.13.0",
63
+ "@atlaskit/rovo-agent-components": "^3.33.0",
64
+ "@atlaskit/rovo-triggers": "^5.16.0",
65
65
  "@atlaskit/spinner": "^19.0.0",
66
66
  "@atlaskit/teams-app-config": "^1.12.0",
67
67
  "@atlaskit/teams-app-internal-analytics": "^1.24.0",
@@ -183,6 +183,9 @@
183
183
  },
184
184
  "new_team_profile_fedramp": {
185
185
  "type": "boolean"
186
+ },
187
+ "rovo_agent_support_a2a_avatar": {
188
+ "type": "boolean"
186
189
  }
187
190
  },
188
191
  "sideEffects": [
package/tsconfig.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "extends": "../../../tsconfig.json",
3
- "compilerOptions": {},
4
3
  "include": [
5
4
  "./src/**/*.ts",
6
5
  "./src/**/*.tsx",