@atlaskit/profilecard 25.7.10 → 25.8.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 +20 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/client/RovoAgentCardClient.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +2 -1
- package/dist/cjs/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/cjs/components/User/ProfileCard.js +1 -16
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/RovoAgentCardClient.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +2 -1
- package/dist/es2019/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/es2019/components/User/ProfileCard.js +1 -11
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/esm/client/RovoAgentCardClient.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +2 -1
- package/dist/esm/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/esm/components/User/ProfileCard.js +1 -16
- package/dist/esm/util/analytics.js +2 -2
- package/dist/types/types.d.ts +2 -2
- package/dist/types-ts4.5/types.d.ts +2 -2
- package/package.json +8 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 25.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`2a6f508e4e6d2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2a6f508e4e6d2) -
|
|
8
|
+
Hide Rovo logo, hide behaviour, and show 'Agent by …' for REMOTE_A2A agents on the agent profile
|
|
9
|
+
card and the browse agents modal view-agent panel.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`c868d2e1c59f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c868d2e1c59f6) -
|
|
14
|
+
Cleaned up stale feature flag ptc-links-migrate-atlaskit-link-button
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 25.7.11
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 25.7.10
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
{
|
|
44
44
|
"path": "../../../design-system/empty-state/afm-products/tsconfig.json"
|
|
45
45
|
},
|
|
46
|
+
{
|
|
47
|
+
"path": "../../../measurement/feature-gate-js-client/afm-products/tsconfig.json"
|
|
48
|
+
},
|
|
46
49
|
{
|
|
47
50
|
"path": "../../../team-central/give-kudos/afm-products/tsconfig.json"
|
|
48
51
|
},
|
|
@@ -83,7 +83,7 @@ var RovoAgentCardClient = exports.default = /*#__PURE__*/function (_CachingClien
|
|
|
83
83
|
return (0, _createClass2.default)(RovoAgentCardClient, [{
|
|
84
84
|
key: "basePath",
|
|
85
85
|
value: function basePath() {
|
|
86
|
-
return
|
|
86
|
+
return '/gateway/api/assist/rovo/v1/agents';
|
|
87
87
|
}
|
|
88
88
|
}, {
|
|
89
89
|
key: "getActivationId",
|
|
@@ -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', "25.7.
|
|
14
|
+
headers.append('atl-client-version', "25.7.11");
|
|
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', "25.7.
|
|
69
|
+
headers.append('atl-client-version', "25.7.11");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -200,7 +200,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
200
200
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
201
201
|
height: 48,
|
|
202
202
|
agentIdentityAccountId: agent.identity_account_id,
|
|
203
|
-
isRovoDev: isRovoDev
|
|
203
|
+
isRovoDev: isRovoDev,
|
|
204
|
+
creatorType: (0, _platformFeatureFlags.fg)('jira_improve_agent_profile_for_a2a') ? agent.creator_type : undefined
|
|
204
205
|
}), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
205
206
|
xcss: styles.avatarStyles
|
|
206
207
|
}, /*#__PURE__*/_react.default.createElement(_AgentAvatar.AgentAvatar, {
|
|
@@ -78,7 +78,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
|
|
|
78
78
|
}
|
|
79
79
|
case 3:
|
|
80
80
|
creatorInfo = (0, _AgentProfileInfo.getAgentCreator)({
|
|
81
|
-
creatorType: creator_type
|
|
81
|
+
creatorType: creator_type,
|
|
82
82
|
authoringTeam: authoringTeam ? {
|
|
83
83
|
displayName: (_authoringTeam$displa = authoringTeam.displayName) !== null && _authoringTeam$displa !== void 0 ? _authoringTeam$displa : '',
|
|
84
84
|
profileLink: (_authoringTeam$profil = authoringTeam.profileUrl) !== null && _authoringTeam$profil !== void 0 ? _authoringTeam$profil : undefined
|
|
@@ -13,7 +13,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
15
|
var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
|
|
16
|
-
var _new = require("@atlaskit/button/new");
|
|
17
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
17
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
19
18
|
var _teamsAppInternalAnalytics = require("@atlaskit/teams-app-internal-analytics");
|
|
@@ -181,7 +180,7 @@ var Actions = function Actions(_ref) {
|
|
|
181
180
|
testId: "profilecard-actions"
|
|
182
181
|
}, regularActions.map(function (action, index) {
|
|
183
182
|
var isKudos = action.id === GIVE_KUDOS_ACTION_ID;
|
|
184
|
-
var button =
|
|
183
|
+
var button = /*#__PURE__*/_react.default.createElement(_teamsLinkButton.TeamsLinkButton, {
|
|
185
184
|
appearance: "default",
|
|
186
185
|
key: action.id || index,
|
|
187
186
|
onClick: function onClick(event) {
|
|
@@ -195,20 +194,6 @@ var Actions = function Actions(_ref) {
|
|
|
195
194
|
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
196
195
|
id: "action-button-".concat(action.id),
|
|
197
196
|
"aria-labelledby": "action-button-".concat(action.id, " profilecard-name-label")
|
|
198
|
-
}, action.label, isKudos && /*#__PURE__*/_react.default.createElement(_Card.AnimationWrapper, null, /*#__PURE__*/_react.default.createElement(_Card.KudosBlobAnimation, null))) : /*#__PURE__*/_react.default.createElement(_new.LinkButton, {
|
|
199
|
-
appearance: "default",
|
|
200
|
-
key: action.id || index,
|
|
201
|
-
onClick: function onClick(event) {
|
|
202
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
203
|
-
args[_key2 - 1] = arguments[_key2];
|
|
204
|
-
}
|
|
205
|
-
return onActionClick(action, args, event, index);
|
|
206
|
-
},
|
|
207
|
-
href: action.link || '',
|
|
208
|
-
target: action.target,
|
|
209
|
-
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
210
|
-
id: "action-button-".concat(action.id),
|
|
211
|
-
"aria-labelledby": "action-button-".concat(action.id, " profilecard-name-label")
|
|
212
197
|
}, action.label, isKudos && /*#__PURE__*/_react.default.createElement(_Card.AnimationWrapper, null, /*#__PURE__*/_react.default.createElement(_Card.KudosBlobAnimation, null)));
|
|
213
198
|
if (isKudos) {
|
|
214
199
|
return /*#__PURE__*/_react.default.createElement(_Card.AnimatedKudosButton, {
|
|
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
14
14
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
15
|
-
packageVersion: (_process$env$_PACKAGE2 = "25.7.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.7.11") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
16
16
|
};
|
|
17
17
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
18
18
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
31
|
actionSubjectId: actionSubjectId,
|
|
32
32
|
attributes: _objectSpread(_objectSpread({
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "25.7.
|
|
34
|
+
packageVersion: "25.7.11"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
37
37
|
})
|
|
@@ -101,7 +101,7 @@ export default class RovoAgentCardClient extends CachingClient {
|
|
|
101
101
|
this.options = options;
|
|
102
102
|
}
|
|
103
103
|
basePath() {
|
|
104
|
-
return
|
|
104
|
+
return '/gateway/api/assist/rovo/v1/agents';
|
|
105
105
|
}
|
|
106
106
|
async getActivationId(cloudId, product) {
|
|
107
107
|
var _response$tenantConte, _response$tenantConte2, _response$tenantConte3, _response$tenantConte4;
|
|
@@ -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', "25.7.
|
|
9
|
+
headers.append('atl-client-version', "25.7.11");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
|
|
|
78
78
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
79
79
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
80
80
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
81
|
-
headers.append('atl-client-version', "25.7.
|
|
81
|
+
headers.append('atl-client-version', "25.7.11");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -150,7 +150,8 @@ const AgentProfileCard = ({
|
|
|
150
150
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
151
151
|
height: 48,
|
|
152
152
|
agentIdentityAccountId: agent.identity_account_id,
|
|
153
|
-
isRovoDev: isRovoDev
|
|
153
|
+
isRovoDev: isRovoDev,
|
|
154
|
+
creatorType: fg('jira_improve_agent_profile_for_a2a') ? agent.creator_type : undefined
|
|
154
155
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
155
156
|
xcss: styles.avatarStyles
|
|
156
157
|
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
@@ -47,7 +47,7 @@ export const AgentProfileCardResourced = props => {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
const creatorInfo = getAgentCreator({
|
|
50
|
-
creatorType: creator_type
|
|
50
|
+
creatorType: creator_type,
|
|
51
51
|
authoringTeam: authoringTeam ? {
|
|
52
52
|
displayName: (_authoringTeam$displa = authoringTeam.displayName) !== null && _authoringTeam$displa !== void 0 ? _authoringTeam$displa : '',
|
|
53
53
|
profileLink: (_authoringTeam$profil = authoringTeam.profileUrl) !== null && _authoringTeam$profil !== void 0 ? _authoringTeam$profil : undefined
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import Avatar from '@atlaskit/avatar';
|
|
5
|
-
import { LinkButton } from '@atlaskit/button/new';
|
|
6
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import Spinner from '@atlaskit/spinner';
|
|
8
7
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
@@ -166,7 +165,7 @@ const Actions = ({
|
|
|
166
165
|
testId: "profilecard-actions"
|
|
167
166
|
}, regularActions.map((action, index) => {
|
|
168
167
|
const isKudos = action.id === GIVE_KUDOS_ACTION_ID;
|
|
169
|
-
const button =
|
|
168
|
+
const button = /*#__PURE__*/React.createElement(TeamsLinkButton, {
|
|
170
169
|
appearance: "default",
|
|
171
170
|
key: action.id || index,
|
|
172
171
|
onClick: (event, ...args) => onActionClick(action, args, event, index),
|
|
@@ -175,15 +174,6 @@ const Actions = ({
|
|
|
175
174
|
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
176
175
|
id: `action-button-${action.id}`,
|
|
177
176
|
"aria-labelledby": `action-button-${action.id} profilecard-name-label`
|
|
178
|
-
}, action.label, isKudos && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null))) : /*#__PURE__*/React.createElement(LinkButton, {
|
|
179
|
-
appearance: "default",
|
|
180
|
-
key: action.id || index,
|
|
181
|
-
onClick: (event, ...args) => onActionClick(action, args, event, index),
|
|
182
|
-
href: action.link || '',
|
|
183
|
-
target: action.target,
|
|
184
|
-
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
185
|
-
id: `action-button-${action.id}`,
|
|
186
|
-
"aria-labelledby": `action-button-${action.id} profilecard-name-label`
|
|
187
177
|
}, action.label, isKudos && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null)));
|
|
188
178
|
if (isKudos) {
|
|
189
179
|
return /*#__PURE__*/React.createElement(AnimatedKudosButton, {
|
|
@@ -2,7 +2,7 @@ var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
|
2
2
|
import { getPageTime } from './performance';
|
|
3
3
|
export const PACKAGE_META_DATA = {
|
|
4
4
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
5
|
-
packageVersion: (_process$env$_PACKAGE2 = "25.7.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.7.11") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
6
6
|
};
|
|
7
7
|
const TEAM_SUBJECT = 'teamProfileCard';
|
|
8
8
|
const USER_SUBJECT = 'profilecard';
|
|
@@ -19,7 +19,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
19
19
|
actionSubjectId,
|
|
20
20
|
attributes: {
|
|
21
21
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "25.7.
|
|
22
|
+
packageVersion: "25.7.11",
|
|
23
23
|
...attributes,
|
|
24
24
|
firedAt: Math.round(getPageTime())
|
|
25
25
|
}
|
|
@@ -76,7 +76,7 @@ var RovoAgentCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
76
76
|
return _createClass(RovoAgentCardClient, [{
|
|
77
77
|
key: "basePath",
|
|
78
78
|
value: function basePath() {
|
|
79
|
-
return
|
|
79
|
+
return '/gateway/api/assist/rovo/v1/agents';
|
|
80
80
|
}
|
|
81
81
|
}, {
|
|
82
82
|
key: "getActivationId",
|
|
@@ -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', "25.7.
|
|
7
|
+
headers.append('atl-client-version', "25.7.11");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
59
59
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
60
60
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
61
61
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
62
|
-
headers.append('atl-client-version', "25.7.
|
|
62
|
+
headers.append('atl-client-version', "25.7.11");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -191,7 +191,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
191
191
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
192
192
|
height: 48,
|
|
193
193
|
agentIdentityAccountId: agent.identity_account_id,
|
|
194
|
-
isRovoDev: isRovoDev
|
|
194
|
+
isRovoDev: isRovoDev,
|
|
195
|
+
creatorType: fg('jira_improve_agent_profile_for_a2a') ? agent.creator_type : undefined
|
|
195
196
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
196
197
|
xcss: styles.avatarStyles
|
|
197
198
|
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
@@ -69,7 +69,7 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
|
|
|
69
69
|
}
|
|
70
70
|
case 3:
|
|
71
71
|
creatorInfo = getAgentCreator({
|
|
72
|
-
creatorType: creator_type
|
|
72
|
+
creatorType: creator_type,
|
|
73
73
|
authoringTeam: authoringTeam ? {
|
|
74
74
|
displayName: (_authoringTeam$displa = authoringTeam.displayName) !== null && _authoringTeam$displa !== void 0 ? _authoringTeam$displa : '',
|
|
75
75
|
profileLink: (_authoringTeam$profil = authoringTeam.profileUrl) !== null && _authoringTeam$profil !== void 0 ? _authoringTeam$profil : undefined
|
|
@@ -7,7 +7,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
8
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
9
|
import Avatar from '@atlaskit/avatar';
|
|
10
|
-
import { LinkButton } from '@atlaskit/button/new';
|
|
11
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import Spinner from '@atlaskit/spinner';
|
|
13
12
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
@@ -172,7 +171,7 @@ var Actions = function Actions(_ref) {
|
|
|
172
171
|
testId: "profilecard-actions"
|
|
173
172
|
}, regularActions.map(function (action, index) {
|
|
174
173
|
var isKudos = action.id === GIVE_KUDOS_ACTION_ID;
|
|
175
|
-
var button =
|
|
174
|
+
var button = /*#__PURE__*/React.createElement(TeamsLinkButton, {
|
|
176
175
|
appearance: "default",
|
|
177
176
|
key: action.id || index,
|
|
178
177
|
onClick: function onClick(event) {
|
|
@@ -186,20 +185,6 @@ var Actions = function Actions(_ref) {
|
|
|
186
185
|
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
187
186
|
id: "action-button-".concat(action.id),
|
|
188
187
|
"aria-labelledby": "action-button-".concat(action.id, " profilecard-name-label")
|
|
189
|
-
}, action.label, isKudos && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null))) : /*#__PURE__*/React.createElement(LinkButton, {
|
|
190
|
-
appearance: "default",
|
|
191
|
-
key: action.id || index,
|
|
192
|
-
onClick: function onClick(event) {
|
|
193
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
194
|
-
args[_key2 - 1] = arguments[_key2];
|
|
195
|
-
}
|
|
196
|
-
return onActionClick(action, args, event, index);
|
|
197
|
-
},
|
|
198
|
-
href: action.link || '',
|
|
199
|
-
target: action.target,
|
|
200
|
-
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
201
|
-
id: "action-button-".concat(action.id),
|
|
202
|
-
"aria-labelledby": "action-button-".concat(action.id, " profilecard-name-label")
|
|
203
188
|
}, action.label, isKudos && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null)));
|
|
204
189
|
if (isKudos) {
|
|
205
190
|
return /*#__PURE__*/React.createElement(AnimatedKudosButton, {
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import { getPageTime } from './performance';
|
|
6
6
|
export var PACKAGE_META_DATA = {
|
|
7
7
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
8
|
-
packageVersion: (_process$env$_PACKAGE2 = "25.7.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.7.11") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
9
9
|
};
|
|
10
10
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
11
11
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -24,7 +24,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
24
24
|
actionSubjectId: actionSubjectId,
|
|
25
25
|
attributes: _objectSpread(_objectSpread({
|
|
26
26
|
packageName: "@atlaskit/profilecard",
|
|
27
|
-
packageVersion: "25.7.
|
|
27
|
+
packageVersion: "25.7.11"
|
|
28
28
|
}, attributes), {}, {
|
|
29
29
|
firedAt: Math.round(getPageTime())
|
|
30
30
|
})
|
package/dist/types/types.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface RovoAgent {
|
|
|
66
66
|
name: string;
|
|
67
67
|
description: string | null;
|
|
68
68
|
system_prompt_template?: string | null;
|
|
69
|
-
creator_type: 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'ROVO_DEV';
|
|
69
|
+
creator_type: 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'REMOTE_A2A' | 'ROVO_DEV';
|
|
70
70
|
creator?: string | null;
|
|
71
71
|
visibility?: 'PUBLIC' | 'PRIVATE' | null;
|
|
72
72
|
is_default: boolean;
|
|
@@ -91,7 +91,7 @@ export type RovoAgentCardClientResult = {
|
|
|
91
91
|
aggData: RovoAgentAgg | null | undefined;
|
|
92
92
|
};
|
|
93
93
|
export interface RovoAgentCreatorInfo {
|
|
94
|
-
type: 'CUSTOMER' | 'SYSTEM' | 'THIRD_PARTY' | 'FORGE' | 'OOTB';
|
|
94
|
+
type: 'CUSTOMER' | 'SYSTEM' | 'THIRD_PARTY' | 'FORGE' | 'OOTB' | 'REMOTE_A2A';
|
|
95
95
|
name?: string;
|
|
96
96
|
profileLink?: string;
|
|
97
97
|
id?: string;
|
|
@@ -66,7 +66,7 @@ export interface RovoAgent {
|
|
|
66
66
|
name: string;
|
|
67
67
|
description: string | null;
|
|
68
68
|
system_prompt_template?: string | null;
|
|
69
|
-
creator_type: 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'ROVO_DEV';
|
|
69
|
+
creator_type: 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'REMOTE_A2A' | 'ROVO_DEV';
|
|
70
70
|
creator?: string | null;
|
|
71
71
|
visibility?: 'PUBLIC' | 'PRIVATE' | null;
|
|
72
72
|
is_default: boolean;
|
|
@@ -91,7 +91,7 @@ export type RovoAgentCardClientResult = {
|
|
|
91
91
|
aggData: RovoAgentAgg | null | undefined;
|
|
92
92
|
};
|
|
93
93
|
export interface RovoAgentCreatorInfo {
|
|
94
|
-
type: 'CUSTOMER' | 'SYSTEM' | 'THIRD_PARTY' | 'FORGE' | 'OOTB';
|
|
94
|
+
type: 'CUSTOMER' | 'SYSTEM' | 'THIRD_PARTY' | 'FORGE' | 'OOTB' | 'REMOTE_A2A';
|
|
95
95
|
name?: string;
|
|
96
96
|
profileLink?: string;
|
|
97
97
|
id?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.8.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@atlaskit/css": "^0.19.0",
|
|
55
55
|
"@atlaskit/dropdown-menu": "^16.10.0",
|
|
56
56
|
"@atlaskit/empty-state": "^10.2.0",
|
|
57
|
+
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
57
58
|
"@atlaskit/give-kudos": "^5.12.0",
|
|
58
59
|
"@atlaskit/heading": "^5.4.0",
|
|
59
60
|
"@atlaskit/icon": "^35.3.0",
|
|
@@ -65,8 +66,8 @@
|
|
|
65
66
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
66
67
|
"@atlaskit/popup": "^4.23.0",
|
|
67
68
|
"@atlaskit/primitives": "^19.0.0",
|
|
68
|
-
"@atlaskit/rovo-agent-components": "^5.
|
|
69
|
-
"@atlaskit/rovo-triggers": "^7.
|
|
69
|
+
"@atlaskit/rovo-agent-components": "^5.1.0",
|
|
70
|
+
"@atlaskit/rovo-triggers": "^7.1.0",
|
|
70
71
|
"@atlaskit/spinner": "^19.1.0",
|
|
71
72
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
72
73
|
"@atlaskit/teams-app-internal-analytics": "^1.32.0",
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
"@atlaskit/teams-avatar": "^2.7.0",
|
|
75
76
|
"@atlaskit/teams-public": "^1.4.0",
|
|
76
77
|
"@atlaskit/theme": "^25.0.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
78
|
+
"@atlaskit/tmp-editor-statsig": "^88.0.0",
|
|
78
79
|
"@atlaskit/tokens": "^13.1.0",
|
|
79
80
|
"@atlaskit/tooltip": "^22.5.0",
|
|
80
81
|
"@atlassian/studio-entry-link": "^1.1.0",
|
|
@@ -94,7 +95,6 @@
|
|
|
94
95
|
},
|
|
95
96
|
"devDependencies": {
|
|
96
97
|
"@af/visual-regression": "workspace:^",
|
|
97
|
-
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
98
98
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
99
99
|
"@atlassian/feature-flags-storybook-utils": "^0.4.0",
|
|
100
100
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
@@ -138,18 +138,12 @@
|
|
|
138
138
|
"ptc-links-migrate-atlaskit-link": {
|
|
139
139
|
"type": "boolean"
|
|
140
140
|
},
|
|
141
|
-
"ptc-links-migrate-atlaskit-link-button": {
|
|
142
|
-
"type": "boolean"
|
|
143
|
-
},
|
|
144
141
|
"enable_ptc_townsquare_reporting_lines_unsharded": {
|
|
145
142
|
"type": "boolean"
|
|
146
143
|
},
|
|
147
144
|
"platform_agg_user_query_doc_change": {
|
|
148
145
|
"type": "boolean"
|
|
149
146
|
},
|
|
150
|
-
"pt-deprecate-assistance-service": {
|
|
151
|
-
"type": "boolean"
|
|
152
|
-
},
|
|
153
147
|
"platform-adopt-teams-nav-config": {
|
|
154
148
|
"type": "boolean"
|
|
155
149
|
},
|
|
@@ -177,6 +171,9 @@
|
|
|
177
171
|
"rovo_agent_support_a2a_avatar": {
|
|
178
172
|
"type": "boolean"
|
|
179
173
|
},
|
|
174
|
+
"jira_improve_agent_profile_for_a2a": {
|
|
175
|
+
"type": "boolean"
|
|
176
|
+
},
|
|
180
177
|
"jira_ai_hide_conversation_starters_profilecard": {
|
|
181
178
|
"type": "boolean"
|
|
182
179
|
},
|