@atlaskit/profilecard 20.0.0 → 20.1.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,13 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 20.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#144036](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144036)
8
+ [`a78d6e7aa1bf4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a78d6e7aa1bf4) -
9
+ Add custom forge avatar to profile card and profile page
10
+
3
11
  ## 20.0.0
4
12
 
5
13
  ### Major Changes
@@ -57,7 +57,7 @@ var addHeaders = exports.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', "20.0.0");
60
+ headers.append('atl-client-version', "20.1.0");
61
61
  return headers;
62
62
  };
63
63
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -177,7 +177,9 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
177
177
  agentId: agent.id,
178
178
  agentNamedId: agent.named_id,
179
179
  agentIdentityAccountId: agent.identity_account_id,
180
- size: "xlarge"
180
+ size: "xlarge",
181
+ isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
182
+ forgeAgentIconUrl: agent.icon
181
183
  })), /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
182
184
  space: "space.100",
183
185
  xcss: styles
@@ -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: "20.0.0"
48
+ packageVersion: "20.1.0"
49
49
  }, attributes), {}, {
50
50
  firedAt: Math.round((0, _performance.getPageTime)())
51
51
  })
@@ -67,7 +67,7 @@ export const addHeaders = headers => {
67
67
  headers.append('X-ExperimentalApi', 'teams-beta');
68
68
  headers.append('X-ExperimentalApi', 'team-members-beta');
69
69
  headers.append('atl-client-name', "@atlaskit/profilecard");
70
- headers.append('atl-client-version', "20.0.0");
70
+ headers.append('atl-client-version', "20.1.0");
71
71
  return headers;
72
72
  };
73
73
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -130,7 +130,9 @@ const AgentProfileCard = ({
130
130
  agentId: agent.id,
131
131
  agentNamedId: agent.named_id,
132
132
  agentIdentityAccountId: agent.identity_account_id,
133
- size: "xlarge"
133
+ size: "xlarge",
134
+ isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
135
+ forgeAgentIconUrl: agent.icon
134
136
  })), /*#__PURE__*/React.createElement(Stack, {
135
137
  space: "space.100",
136
138
  xcss: styles
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
32
32
  actionSubjectId,
33
33
  attributes: {
34
34
  packageName: "@atlaskit/profilecard",
35
- packageVersion: "20.0.0",
35
+ packageVersion: "20.1.0",
36
36
  ...attributes,
37
37
  firedAt: Math.round(getPageTime())
38
38
  }
@@ -48,7 +48,7 @@ export var addHeaders = function addHeaders(headers) {
48
48
  headers.append('X-ExperimentalApi', 'teams-beta');
49
49
  headers.append('X-ExperimentalApi', 'team-members-beta');
50
50
  headers.append('atl-client-name', "@atlaskit/profilecard");
51
- headers.append('atl-client-version', "20.0.0");
51
+ headers.append('atl-client-version', "20.1.0");
52
52
  return headers;
53
53
  };
54
54
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -167,7 +167,9 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
167
167
  agentId: agent.id,
168
168
  agentNamedId: agent.named_id,
169
169
  agentIdentityAccountId: agent.identity_account_id,
170
- size: "xlarge"
170
+ size: "xlarge",
171
+ isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
172
+ forgeAgentIconUrl: agent.icon
171
173
  })), /*#__PURE__*/React.createElement(Stack, {
172
174
  space: "space.100",
173
175
  xcss: styles
@@ -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: "20.0.0"
42
+ packageVersion: "20.1.0"
43
43
  }, attributes), {}, {
44
44
  firedAt: Math.round(getPageTime())
45
45
  })
@@ -73,6 +73,7 @@ export interface RovoAgent {
73
73
  favourite: boolean;
74
74
  favourite_count: number;
75
75
  deactivated?: boolean;
76
+ icon?: string | null;
76
77
  }
77
78
  export interface RovoAgentCreatorInfo {
78
79
  type: 'CUSTOMER' | 'SYSTEM' | 'THIRD_PARTY' | 'FORGE';
@@ -73,6 +73,7 @@ export interface RovoAgent {
73
73
  favourite: boolean;
74
74
  favourite_count: number;
75
75
  deactivated?: boolean;
76
+ icon?: string | null;
76
77
  }
77
78
  export interface RovoAgentCreatorInfo {
78
79
  type: 'CUSTOMER' | 'SYSTEM' | 'THIRD_PARTY' | 'FORGE';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "20.0.0",
3
+ "version": "20.1.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"