@atlaskit/profilecard 26.21.17 → 26.22.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 +19 -0
- package/dist/cjs/client/addHeaders.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +7 -7
- package/dist/cjs/components/Agent/AgentProfileCardWrapper.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/createEvent.js +1 -1
- package/dist/es2019/client/addHeaders.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +7 -7
- package/dist/es2019/components/Agent/AgentProfileCardWrapper.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/createEvent.js +1 -1
- package/dist/esm/client/addHeaders.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +7 -7
- package/dist/esm/components/Agent/AgentProfileCardWrapper.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/createEvent.js +1 -1
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a75866f802a52`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a75866f802a52) -
|
|
8
|
+
Update i18n NPM package versions for people-and-teams,identity (Group 8)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 26.21.18
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`58af51ca2cc2f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/58af51ca2cc2f) -
|
|
19
|
+
Add agent profile card to mention typeahead in Jira
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 26.21.17
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -11,6 +11,6 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
11
11
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
12
12
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "26.21.
|
|
14
|
+
headers.append('atl-client-version', "26.21.18");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
@@ -11,7 +11,7 @@ var _AGGQuery = require("./AGGQuery");
|
|
|
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', "26.21.
|
|
14
|
+
headers.append('atl-client-version', "26.21.18");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -211,13 +211,13 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
211
211
|
// Both Jira Coding Agent and Rovo Dev do not support conversations and chat.
|
|
212
212
|
// They share the same creator_type ('ROVO_DEV') but have different display names.
|
|
213
213
|
var isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
|
|
214
|
-
var shouldShowConversationStarters = !isRovoDevOrJiraCodingAgent && !(((0, _fg.fg)('jira_ai_hide_conversation_starters_profilecard') || (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
|
|
214
|
+
var shouldShowConversationStarters = !isRovoDevOrJiraCodingAgent && !(((0, _fg.fg)('jira_ai_hide_conversation_starters_profilecard') || (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') || (0, _fg.fg)('platform_editor_agent_card_fixes')) && hideConversationStarters);
|
|
215
215
|
var shouldShowAgentActions = !isRovoDevOrJiraCodingAgent && !hideAgentActions;
|
|
216
216
|
|
|
217
217
|
// Only for M1 hideAgentActions preview cards so other consumers stay unchanged.
|
|
218
|
-
var needsBottomPaddingFallback = hideAgentActions && (_featureGates.default.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes'));
|
|
218
|
+
var needsBottomPaddingFallback = hideAgentActions && (_featureGates.default.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') || (0, _fg.fg)('platform_editor_agent_card_fixes'));
|
|
219
219
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
220
|
-
xcss: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
|
|
220
|
+
xcss: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') || (0, _fg.fg)('platform_editor_agent_card_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
|
|
221
221
|
}, /*#__PURE__*/_react.default.createElement(_GeneratedAvatar.AgentBanner, {
|
|
222
222
|
agentId: agent.id,
|
|
223
223
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
@@ -236,7 +236,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
236
236
|
isForgeAgent: (0, _fg.fg)('rovo_agent_support_a2a_avatar') ? (0, _isForgeAgent.isForgeAgentByCreatorType)(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
237
237
|
forgeAgentIconUrl: agent.icon
|
|
238
238
|
})), /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
|
|
239
|
-
space: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') ? 'space.150' : 'space.100',
|
|
239
|
+
space: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') || (0, _fg.fg)('platform_editor_agent_card_fixes') ? 'space.150' : 'space.100',
|
|
240
240
|
xcss: (0, _css.cx)(styles.detailWrapper, needsBottomPaddingFallback && styles.detailWrapperPreviewBottomPadding)
|
|
241
241
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
242
242
|
xcss: styles.agentProfileInfoWrapper
|
|
@@ -257,8 +257,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
257
257
|
showCreatorNameWithoutLink: showCreatorNameWithoutLink
|
|
258
258
|
}),
|
|
259
259
|
starCountRender: null,
|
|
260
|
-
agentDescription: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') ? undefined : agent.description
|
|
261
|
-
})), !!agent.description && (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
260
|
+
agentDescription: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') || (0, _fg.fg)('platform_editor_agent_card_fixes') ? undefined : agent.description
|
|
261
|
+
})), !!agent.description && ((0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') || (0, _fg.fg)('platform_editor_agent_card_fixes')) && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
262
262
|
xcss: styles.descriptionWrapper
|
|
263
263
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
264
264
|
xcss: styles.description,
|
|
@@ -267,7 +267,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
267
267
|
alignItems: "start",
|
|
268
268
|
direction: "column",
|
|
269
269
|
gap: "space.050",
|
|
270
|
-
xcss: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') ? styles.disclosureWrapper : styles.disclosureWrapperLegacy
|
|
270
|
+
xcss: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') || (0, _fg.fg)('platform_editor_agent_card_fixes') ? styles.disclosureWrapper : styles.disclosureWrapperLegacy
|
|
271
271
|
}, /*#__PURE__*/_react.default.createElement(_teamsLink.TeamsLink, {
|
|
272
272
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
273
273
|
intent: "reference",
|
|
@@ -18,7 +18,7 @@ var styles = {
|
|
|
18
18
|
};
|
|
19
19
|
var AgentProfileCardWrapper = exports.AgentProfileCardWrapper = function AgentProfileCardWrapper(_ref) {
|
|
20
20
|
var children = _ref.children;
|
|
21
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes')) {
|
|
21
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') || (0, _fg.fg)('platform_editor_agent_card_fixes')) {
|
|
22
22
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
23
23
|
xcss: styles.wrapper
|
|
24
24
|
}, children);
|
|
@@ -7,7 +7,7 @@ exports.USER_SUBJECT = exports.TEAM_SUBJECT = exports.PACKAGE_META_DATA = export
|
|
|
7
7
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
8
8
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
9
9
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
10
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.21.
|
|
10
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.21.18") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
11
11
|
};
|
|
12
12
|
var TEAM_SUBJECT = exports.TEAM_SUBJECT = 'teamProfileCard';
|
|
13
13
|
var USER_SUBJECT = exports.USER_SUBJECT = 'profilecard';
|
|
@@ -22,7 +22,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
|
|
|
22
22
|
actionSubjectId: actionSubjectId,
|
|
23
23
|
attributes: _objectSpread(_objectSpread({
|
|
24
24
|
packageName: "@atlaskit/profilecard",
|
|
25
|
-
packageVersion: "26.21.
|
|
25
|
+
packageVersion: "26.21.18"
|
|
26
26
|
}, attributes), {}, {
|
|
27
27
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
28
28
|
})
|
|
@@ -5,6 +5,6 @@ export const addHeaders = headers => {
|
|
|
5
5
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
6
6
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
7
7
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
8
|
-
headers.append('atl-client-version', "26.21.
|
|
8
|
+
headers.append('atl-client-version', "26.21.18");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -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', "26.21.
|
|
9
|
+
headers.append('atl-client-version', "26.21.18");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -159,13 +159,13 @@ const AgentProfileCard = ({
|
|
|
159
159
|
// Both Jira Coding Agent and Rovo Dev do not support conversations and chat.
|
|
160
160
|
// They share the same creator_type ('ROVO_DEV') but have different display names.
|
|
161
161
|
const isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
|
|
162
|
-
const shouldShowConversationStarters = !isRovoDevOrJiraCodingAgent && !((fg('jira_ai_hide_conversation_starters_profilecard') || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
|
|
162
|
+
const shouldShowConversationStarters = !isRovoDevOrJiraCodingAgent && !((fg('jira_ai_hide_conversation_starters_profilecard') || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes')) && hideConversationStarters);
|
|
163
163
|
const shouldShowAgentActions = !isRovoDevOrJiraCodingAgent && !hideAgentActions;
|
|
164
164
|
|
|
165
165
|
// Only for M1 hideAgentActions preview cards so other consumers stay unchanged.
|
|
166
|
-
const needsBottomPaddingFallback = hideAgentActions && (FeatureGates.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes'));
|
|
166
|
+
const needsBottomPaddingFallback = hideAgentActions && (FeatureGates.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes'));
|
|
167
167
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
168
|
-
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
|
|
168
|
+
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
|
|
169
169
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
170
170
|
agentId: agent.id,
|
|
171
171
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
@@ -184,7 +184,7 @@ const AgentProfileCard = ({
|
|
|
184
184
|
isForgeAgent: fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
185
185
|
forgeAgentIconUrl: agent.icon
|
|
186
186
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
187
|
-
space: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? 'space.150' : 'space.100',
|
|
187
|
+
space: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes') ? 'space.150' : 'space.100',
|
|
188
188
|
xcss: cx(styles.detailWrapper, needsBottomPaddingFallback && styles.detailWrapperPreviewBottomPadding)
|
|
189
189
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
190
190
|
xcss: styles.agentProfileInfoWrapper
|
|
@@ -205,8 +205,8 @@ const AgentProfileCard = ({
|
|
|
205
205
|
showCreatorNameWithoutLink: showCreatorNameWithoutLink
|
|
206
206
|
}),
|
|
207
207
|
starCountRender: null,
|
|
208
|
-
agentDescription: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? undefined : agent.description
|
|
209
|
-
})), !!agent.description && expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') && /*#__PURE__*/React.createElement(Box, {
|
|
208
|
+
agentDescription: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes') ? undefined : agent.description
|
|
209
|
+
})), !!agent.description && (expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes')) && /*#__PURE__*/React.createElement(Box, {
|
|
210
210
|
xcss: styles.descriptionWrapper
|
|
211
211
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
212
212
|
xcss: styles.description,
|
|
@@ -215,7 +215,7 @@ const AgentProfileCard = ({
|
|
|
215
215
|
alignItems: "start",
|
|
216
216
|
direction: "column",
|
|
217
217
|
gap: "space.050",
|
|
218
|
-
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.disclosureWrapper : styles.disclosureWrapperLegacy
|
|
218
|
+
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes') ? styles.disclosureWrapper : styles.disclosureWrapperLegacy
|
|
219
219
|
}, /*#__PURE__*/React.createElement(TeamsLink, {
|
|
220
220
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
221
221
|
intent: "reference",
|
|
@@ -12,7 +12,7 @@ const styles = {
|
|
|
12
12
|
export const AgentProfileCardWrapper = ({
|
|
13
13
|
children
|
|
14
14
|
}) => {
|
|
15
|
-
if (expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) {
|
|
15
|
+
if (expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes')) {
|
|
16
16
|
return /*#__PURE__*/React.createElement(Box, {
|
|
17
17
|
xcss: styles.wrapper
|
|
18
18
|
}, children);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
2
2
|
export const PACKAGE_META_DATA = {
|
|
3
3
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
4
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.21.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.21.18") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
5
5
|
};
|
|
6
6
|
export const TEAM_SUBJECT = 'teamProfileCard';
|
|
7
7
|
export const USER_SUBJECT = 'profilecard';
|
|
@@ -11,7 +11,7 @@ export const createEvent = (eventType, action, actionSubject, actionSubjectId, a
|
|
|
11
11
|
actionSubjectId,
|
|
12
12
|
attributes: {
|
|
13
13
|
packageName: "@atlaskit/profilecard",
|
|
14
|
-
packageVersion: "26.21.
|
|
14
|
+
packageVersion: "26.21.18",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: Math.round(getPageTime())
|
|
17
17
|
}
|
|
@@ -5,6 +5,6 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
5
5
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
6
6
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
7
7
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
8
|
-
headers.append('atl-client-version', "26.21.
|
|
8
|
+
headers.append('atl-client-version', "26.21.18");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './AGGQuery';
|
|
|
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', "26.21.
|
|
7
|
+
headers.append('atl-client-version', "26.21.18");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -202,13 +202,13 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
202
202
|
// Both Jira Coding Agent and Rovo Dev do not support conversations and chat.
|
|
203
203
|
// They share the same creator_type ('ROVO_DEV') but have different display names.
|
|
204
204
|
var isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
|
|
205
|
-
var shouldShowConversationStarters = !isRovoDevOrJiraCodingAgent && !((fg('jira_ai_hide_conversation_starters_profilecard') || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
|
|
205
|
+
var shouldShowConversationStarters = !isRovoDevOrJiraCodingAgent && !((fg('jira_ai_hide_conversation_starters_profilecard') || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes')) && hideConversationStarters);
|
|
206
206
|
var shouldShowAgentActions = !isRovoDevOrJiraCodingAgent && !hideAgentActions;
|
|
207
207
|
|
|
208
208
|
// Only for M1 hideAgentActions preview cards so other consumers stay unchanged.
|
|
209
|
-
var needsBottomPaddingFallback = hideAgentActions && (FeatureGates.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes'));
|
|
209
|
+
var needsBottomPaddingFallback = hideAgentActions && (FeatureGates.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes'));
|
|
210
210
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
211
|
-
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
|
|
211
|
+
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
|
|
212
212
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
213
213
|
agentId: agent.id,
|
|
214
214
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
@@ -227,7 +227,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
227
227
|
isForgeAgent: fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
228
228
|
forgeAgentIconUrl: agent.icon
|
|
229
229
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
230
|
-
space: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? 'space.150' : 'space.100',
|
|
230
|
+
space: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes') ? 'space.150' : 'space.100',
|
|
231
231
|
xcss: cx(styles.detailWrapper, needsBottomPaddingFallback && styles.detailWrapperPreviewBottomPadding)
|
|
232
232
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
233
233
|
xcss: styles.agentProfileInfoWrapper
|
|
@@ -248,8 +248,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
248
248
|
showCreatorNameWithoutLink: showCreatorNameWithoutLink
|
|
249
249
|
}),
|
|
250
250
|
starCountRender: null,
|
|
251
|
-
agentDescription: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? undefined : agent.description
|
|
252
|
-
})), !!agent.description && expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') && /*#__PURE__*/React.createElement(Box, {
|
|
251
|
+
agentDescription: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes') ? undefined : agent.description
|
|
252
|
+
})), !!agent.description && (expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes')) && /*#__PURE__*/React.createElement(Box, {
|
|
253
253
|
xcss: styles.descriptionWrapper
|
|
254
254
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
255
255
|
xcss: styles.description,
|
|
@@ -258,7 +258,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
258
258
|
alignItems: "start",
|
|
259
259
|
direction: "column",
|
|
260
260
|
gap: "space.050",
|
|
261
|
-
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.disclosureWrapper : styles.disclosureWrapperLegacy
|
|
261
|
+
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes') ? styles.disclosureWrapper : styles.disclosureWrapperLegacy
|
|
262
262
|
}, /*#__PURE__*/React.createElement(TeamsLink, {
|
|
263
263
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
264
264
|
intent: "reference",
|
|
@@ -11,7 +11,7 @@ var styles = {
|
|
|
11
11
|
};
|
|
12
12
|
export var AgentProfileCardWrapper = function AgentProfileCardWrapper(_ref) {
|
|
13
13
|
var children = _ref.children;
|
|
14
|
-
if (expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) {
|
|
14
|
+
if (expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes')) {
|
|
15
15
|
return /*#__PURE__*/React.createElement(Box, {
|
|
16
16
|
xcss: styles.wrapper
|
|
17
17
|
}, children);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
2
2
|
export var PACKAGE_META_DATA = {
|
|
3
3
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
4
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.21.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.21.18") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
5
5
|
};
|
|
6
6
|
export var TEAM_SUBJECT = 'teamProfileCard';
|
|
7
7
|
export var USER_SUBJECT = 'profilecard';
|
|
@@ -16,7 +16,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
|
|
|
16
16
|
actionSubjectId: actionSubjectId,
|
|
17
17
|
attributes: _objectSpread(_objectSpread({
|
|
18
18
|
packageName: "@atlaskit/profilecard",
|
|
19
|
-
packageVersion: "26.21.
|
|
19
|
+
packageVersion: "26.21.18"
|
|
20
20
|
}, attributes), {}, {
|
|
21
21
|
firedAt: Math.round(getPageTime())
|
|
22
22
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.22.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.
|
|
41
|
+
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.243.0",
|
|
42
42
|
"@atlaskit/atlassian-context": "^1.1.0",
|
|
43
43
|
"@atlaskit/avatar": "^28.0.0",
|
|
44
44
|
"@atlaskit/avatar-group": "^14.3.0",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"@atlaskit/teams-app-internal-analytics": "^2.4.0",
|
|
67
67
|
"@atlaskit/teams-app-internal-navigation": "^2.3.0",
|
|
68
68
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
69
|
-
"@atlaskit/teams-public": "^2.
|
|
69
|
+
"@atlaskit/teams-public": "^2.10.0",
|
|
70
70
|
"@atlaskit/theme": "^28.2.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^182.0.0",
|
|
72
72
|
"@atlaskit/tokens": "^16.11.0",
|
|
73
73
|
"@atlaskit/tooltip": "^24.3.0",
|
|
74
74
|
"@babel/runtime": "^7.0.0",
|
|
@@ -157,6 +157,9 @@
|
|
|
157
157
|
},
|
|
158
158
|
"platform_editor_agent_mentions_drop_one_fixes": {
|
|
159
159
|
"type": "boolean"
|
|
160
|
+
},
|
|
161
|
+
"platform_editor_agent_card_fixes": {
|
|
162
|
+
"type": "boolean"
|
|
160
163
|
}
|
|
161
164
|
},
|
|
162
165
|
"sideEffects": [
|