@atlaskit/profilecard 20.0.0 → 20.1.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 +14 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +3 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +3 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +3 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 20.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 20.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#144036](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144036)
|
|
14
|
+
[`a78d6e7aa1bf4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a78d6e7aa1bf4) -
|
|
15
|
+
Add custom forge avatar to profile card and profile page
|
|
16
|
+
|
|
3
17
|
## 20.0.0
|
|
4
18
|
|
|
5
19
|
### 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.
|
|
60
|
+
headers.append('atl-client-version', "20.1.1");
|
|
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.
|
|
48
|
+
packageVersion: "20.1.1"
|
|
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.
|
|
70
|
+
headers.append('atl-client-version', "20.1.1");
|
|
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.
|
|
35
|
+
packageVersion: "20.1.1",
|
|
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.
|
|
51
|
+
headers.append('atl-client-version', "20.1.1");
|
|
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.
|
|
42
|
+
packageVersion: "20.1.1"
|
|
43
43
|
}, attributes), {}, {
|
|
44
44
|
firedAt: Math.round(getPageTime())
|
|
45
45
|
})
|
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.1.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
53
|
-
"@atlaskit/atlassian-context": "^0.0.
|
|
53
|
+
"@atlaskit/atlassian-context": "^0.0.2",
|
|
54
54
|
"@atlaskit/avatar": "^21.15.0",
|
|
55
55
|
"@atlaskit/avatar-group": "^9.11.0",
|
|
56
56
|
"@atlaskit/button": "^20.2.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/icon": "^22.18.0",
|
|
62
62
|
"@atlaskit/lozenge": "^11.10.0",
|
|
63
63
|
"@atlaskit/menu": "^2.12.0",
|
|
64
|
-
"@atlaskit/modal-dialog": "^12.
|
|
64
|
+
"@atlaskit/modal-dialog": "^12.17.0",
|
|
65
65
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
66
66
|
"@atlaskit/popup": "^1.27.0",
|
|
67
67
|
"@atlaskit/primitives": "^12.2.0",
|