@atlaskit/profilecard 24.16.1 → 24.17.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 +11 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/Actions.js +3 -2
- package/dist/cjs/components/Agent/ActionsCompiled.js +3 -2
- package/dist/cjs/components/Agent/AgentProfileCard.js +4 -2
- package/dist/cjs/components/Agent/AgentProfileCardCompiled.js +4 -2
- package/dist/cjs/components/Agent/AgentProfileCardResourced.js +2 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +9 -4
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/Actions.js +3 -2
- package/dist/es2019/components/Agent/ActionsCompiled.js +3 -2
- package/dist/es2019/components/Agent/AgentProfileCard.js +4 -2
- package/dist/es2019/components/Agent/AgentProfileCardCompiled.js +4 -2
- package/dist/es2019/components/Agent/AgentProfileCardResourced.js +2 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +9 -4
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/Actions.js +3 -2
- package/dist/esm/components/Agent/ActionsCompiled.js +3 -2
- package/dist/esm/components/Agent/AgentProfileCard.js +4 -2
- package/dist/esm/components/Agent/AgentProfileCardCompiled.js +4 -2
- package/dist/esm/components/Agent/AgentProfileCardResourced.js +2 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +9 -4
- package/dist/esm/util/analytics.js +2 -2
- package/dist/types/components/Agent/Actions.d.ts +2 -0
- package/dist/types/components/Agent/ActionsCompiled.d.ts +2 -1
- package/dist/types/components/Agent/AgentProfileCard.d.ts +1 -0
- package/dist/types/components/Agent/AgentProfileCardCompiled.d.ts +1 -1
- package/dist/types/components/Agent/AgentProfileCardResourced.d.ts +2 -0
- package/dist/types/components/Agent/lazyAgentProfileCard.d.ts +1 -0
- package/dist/types/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types/types.d.ts +3 -0
- package/dist/types-ts4.5/components/Agent/Actions.d.ts +2 -0
- package/dist/types-ts4.5/components/Agent/ActionsCompiled.d.ts +2 -1
- package/dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts +1 -0
- package/dist/types-ts4.5/components/Agent/AgentProfileCardCompiled.d.ts +1 -1
- package/dist/types-ts4.5/components/Agent/AgentProfileCardResourced.d.ts +2 -0
- package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +1 -0
- package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +3 -0
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 24.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1d4e57d1d41ef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1d4e57d1d41ef) -
|
|
8
|
+
[ux] add prop to hideAgentMoreActions for ProfileCard and AgentProfileCard
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 24.16.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -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', "
|
|
14
|
+
headers.append('atl-client-version', "24.16.1");
|
|
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', "
|
|
69
|
+
headers.append('atl-client-version', "24.16.1");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -62,7 +62,8 @@ var _AgentActions = function _AgentActions(_ref) {
|
|
|
62
62
|
onChatClick = _ref.onChatClick,
|
|
63
63
|
onViewFullProfileClick = _ref.onViewFullProfileClick,
|
|
64
64
|
agent = _ref.agent,
|
|
65
|
-
resourceClient = _ref.resourceClient
|
|
65
|
+
resourceClient = _ref.resourceClient,
|
|
66
|
+
hideMoreActions = _ref.hideMoreActions;
|
|
66
67
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
67
68
|
formatMessage = _useIntl.formatMessage;
|
|
68
69
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
@@ -138,7 +139,7 @@ var _AgentActions = function _AgentActions(_ref) {
|
|
|
138
139
|
xcss: chatPillIconWrapper
|
|
139
140
|
}, /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.ChatPillIcon, null)), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
140
141
|
xcss: chatPillTextStyles
|
|
141
|
-
}, formatMessage(messages.actionChatToAgent)))))), /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.AgentDropdownMenu, {
|
|
142
|
+
}, formatMessage(messages.actionChatToAgent)))))), !hideMoreActions && /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.AgentDropdownMenu, {
|
|
142
143
|
agentId: agent.id,
|
|
143
144
|
onDeleteAgent: handleDeleteAgent,
|
|
144
145
|
onEditAgent: onEditAgent,
|
|
@@ -42,7 +42,8 @@ var AgentActions = exports.AgentActions = function AgentActions(_ref) {
|
|
|
42
42
|
onChatClick = _ref.onChatClick,
|
|
43
43
|
onViewFullProfileClick = _ref.onViewFullProfileClick,
|
|
44
44
|
agent = _ref.agent,
|
|
45
|
-
resourceClient = _ref.resourceClient
|
|
45
|
+
resourceClient = _ref.resourceClient,
|
|
46
|
+
hideMoreActions = _ref.hideMoreActions;
|
|
46
47
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
47
48
|
formatMessage = _useIntl.formatMessage;
|
|
48
49
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
@@ -119,7 +120,7 @@ var AgentActions = exports.AgentActions = function AgentActions(_ref) {
|
|
|
119
120
|
xcss: styles.chatPillIconWrapper
|
|
120
121
|
}, /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.ChatPillIcon, null)), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
121
122
|
xcss: styles.chatPillTextStyles
|
|
122
|
-
}, formatMessage(messages.actionChatToAgent)))))), /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.AgentDropdownMenu, {
|
|
123
|
+
}, formatMessage(messages.actionChatToAgent)))))), !hideMoreActions && /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.AgentDropdownMenu, {
|
|
123
124
|
agentId: agent.id,
|
|
124
125
|
onDeleteAgent: handleDeleteAgent,
|
|
125
126
|
onEditAgent: onEditAgent,
|
|
@@ -56,7 +56,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
56
56
|
onConversationStartersClick = _ref.onConversationStartersClick,
|
|
57
57
|
resourceClient = _ref.resourceClient,
|
|
58
58
|
addFlag = _ref.addFlag,
|
|
59
|
-
onDeleteAgent = _ref.onDeleteAgent
|
|
59
|
+
onDeleteAgent = _ref.onDeleteAgent,
|
|
60
|
+
hideMoreActions = _ref.hideMoreActions;
|
|
60
61
|
var _useAgentUrlActions = (0, _useAgentActions.useAgentUrlActions)({
|
|
61
62
|
cloudId: cloudId || '',
|
|
62
63
|
source: 'agentProfileCard'
|
|
@@ -259,7 +260,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
259
260
|
resourceClient: resourceClient,
|
|
260
261
|
onViewFullProfileClick: function onViewFullProfileClick() {
|
|
261
262
|
return onViewFullProfile(agent.id);
|
|
262
|
-
}
|
|
263
|
+
},
|
|
264
|
+
hideMoreActions: hideMoreActions
|
|
263
265
|
})));
|
|
264
266
|
};
|
|
265
267
|
var AgentProfileCardExport = (0, _platformFeatureFlagsReact.componentWithFG)('profilecard_primitives_compiled', _AgentProfileCardCompiled.default, AgentProfileCard);
|
|
@@ -48,7 +48,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
48
48
|
onConversationStartersClick = _ref.onConversationStartersClick,
|
|
49
49
|
resourceClient = _ref.resourceClient,
|
|
50
50
|
addFlag = _ref.addFlag,
|
|
51
|
-
onDeleteAgent = _ref.onDeleteAgent
|
|
51
|
+
onDeleteAgent = _ref.onDeleteAgent,
|
|
52
|
+
hideMoreActions = _ref.hideMoreActions;
|
|
52
53
|
var _useAgentUrlActions = (0, _useAgentActions.useAgentUrlActions)({
|
|
53
54
|
cloudId: cloudId || '',
|
|
54
55
|
source: 'agentProfileCard'
|
|
@@ -251,7 +252,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
251
252
|
resourceClient: resourceClient,
|
|
252
253
|
onViewFullProfileClick: function onViewFullProfileClick() {
|
|
253
254
|
return onViewFullProfile(agent.id);
|
|
254
|
-
}
|
|
255
|
+
},
|
|
256
|
+
hideMoreActions: hideMoreActions
|
|
255
257
|
})));
|
|
256
258
|
};
|
|
257
259
|
var _default = exports.default = AgentProfileCard;
|
|
@@ -175,6 +175,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
|
|
|
175
175
|
addFlag: props.addFlag,
|
|
176
176
|
resourceClient: props.resourceClient,
|
|
177
177
|
cloudId: props.cloudId,
|
|
178
|
-
onDeleteAgent: props.onDeleteAgent
|
|
178
|
+
onDeleteAgent: props.onDeleteAgent,
|
|
179
|
+
hideMoreActions: props.hideMoreActions
|
|
179
180
|
}));
|
|
180
181
|
};
|
|
@@ -55,7 +55,8 @@ function ProfileCardContent(_ref) {
|
|
|
55
55
|
hasError = _ref.hasError,
|
|
56
56
|
errorType = _ref.errorType,
|
|
57
57
|
agentActions = _ref.agentActions,
|
|
58
|
-
addFlag = _ref.addFlag
|
|
58
|
+
addFlag = _ref.addFlag,
|
|
59
|
+
hideAgentMoreActions = _ref.hideAgentMoreActions;
|
|
59
60
|
if (isAgent) {
|
|
60
61
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardResourced.AgentProfileCardResourced, {
|
|
61
62
|
accountId: userId,
|
|
@@ -64,7 +65,8 @@ function ProfileCardContent(_ref) {
|
|
|
64
65
|
trigger: trigger,
|
|
65
66
|
onChatClick: agentActions === null || agentActions === void 0 ? void 0 : agentActions.onChatClick,
|
|
66
67
|
onConversationStartersClick: agentActions === null || agentActions === void 0 ? void 0 : agentActions.onConversationStartersClick,
|
|
67
|
-
addFlag: addFlag
|
|
68
|
+
addFlag: addFlag,
|
|
69
|
+
hideMoreActions: (0, _platformFeatureFlags.fg)('jira_ai_profilecard_hide_agent_actions') && !!hideAgentMoreActions
|
|
68
70
|
});
|
|
69
71
|
} else {
|
|
70
72
|
return /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
@@ -101,6 +103,7 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
101
103
|
viewingUserId = _ref2.viewingUserId,
|
|
102
104
|
product = _ref2.product,
|
|
103
105
|
agentActions = _ref2.agentActions,
|
|
106
|
+
hideAgentMoreActions = _ref2.hideAgentMoreActions,
|
|
104
107
|
_ref2$ariaHideProfile = _ref2.ariaHideProfileTrigger,
|
|
105
108
|
ariaHideProfileTrigger = _ref2$ariaHideProfile === void 0 ? false : _ref2$ariaHideProfile,
|
|
106
109
|
propsIsVisible = _ref2.isVisible,
|
|
@@ -425,7 +428,8 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
425
428
|
errorType: error,
|
|
426
429
|
hasError: hasError,
|
|
427
430
|
agentActions: agentActions,
|
|
428
|
-
addFlag: addFlag
|
|
431
|
+
addFlag: addFlag,
|
|
432
|
+
hideAgentMoreActions: hideAgentMoreActions
|
|
429
433
|
}));
|
|
430
434
|
},
|
|
431
435
|
trigger: function trigger(triggerProps) {
|
|
@@ -501,7 +505,8 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
501
505
|
errorType: error,
|
|
502
506
|
hasError: hasError,
|
|
503
507
|
agentActions: agentActions,
|
|
504
|
-
addFlag: addFlag
|
|
508
|
+
addFlag: addFlag,
|
|
509
|
+
hideAgentMoreActions: hideAgentMoreActions
|
|
505
510
|
}));
|
|
506
511
|
},
|
|
507
512
|
trigger: function trigger(triggerProps) {
|
|
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
var ANALYTICS_CHANNEL = 'peopleTeams';
|
|
14
14
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
15
15
|
packageName: "@atlaskit/profilecard",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "24.16.1"
|
|
17
17
|
};
|
|
18
18
|
var runItLater = function runItLater(cb) {
|
|
19
19
|
var requestIdleCallback = window.requestIdleCallback;
|
|
@@ -58,7 +58,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
58
58
|
actionSubjectId: actionSubjectId,
|
|
59
59
|
attributes: _objectSpread(_objectSpread({
|
|
60
60
|
packageName: "@atlaskit/profilecard",
|
|
61
|
-
packageVersion: "
|
|
61
|
+
packageVersion: "24.16.1"
|
|
62
62
|
}, attributes), {}, {
|
|
63
63
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
64
64
|
})
|
|
@@ -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', "
|
|
9
|
+
headers.append('atl-client-version', "24.16.1");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -77,7 +77,7 @@ export const addHeaders = headers => {
|
|
|
77
77
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
78
78
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
79
79
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
80
|
-
headers.append('atl-client-version', "
|
|
80
|
+
headers.append('atl-client-version', "24.16.1");
|
|
81
81
|
return headers;
|
|
82
82
|
};
|
|
83
83
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -48,7 +48,8 @@ const _AgentActions = ({
|
|
|
48
48
|
onChatClick,
|
|
49
49
|
onViewFullProfileClick,
|
|
50
50
|
agent,
|
|
51
|
-
resourceClient
|
|
51
|
+
resourceClient,
|
|
52
|
+
hideMoreActions
|
|
52
53
|
}) => {
|
|
53
54
|
const {
|
|
54
55
|
formatMessage
|
|
@@ -116,7 +117,7 @@ const _AgentActions = ({
|
|
|
116
117
|
xcss: chatPillIconWrapper
|
|
117
118
|
}, /*#__PURE__*/React.createElement(ChatPillIcon, null)), /*#__PURE__*/React.createElement(Box, {
|
|
118
119
|
xcss: chatPillTextStyles
|
|
119
|
-
}, formatMessage(messages.actionChatToAgent)))))), /*#__PURE__*/React.createElement(AgentDropdownMenu, {
|
|
120
|
+
}, formatMessage(messages.actionChatToAgent)))))), !hideMoreActions && /*#__PURE__*/React.createElement(AgentDropdownMenu, {
|
|
120
121
|
agentId: agent.id,
|
|
121
122
|
onDeleteAgent: handleDeleteAgent,
|
|
122
123
|
onEditAgent: onEditAgent,
|
|
@@ -27,7 +27,8 @@ export const AgentActions = ({
|
|
|
27
27
|
onChatClick,
|
|
28
28
|
onViewFullProfileClick,
|
|
29
29
|
agent,
|
|
30
|
-
resourceClient
|
|
30
|
+
resourceClient,
|
|
31
|
+
hideMoreActions
|
|
31
32
|
}) => {
|
|
32
33
|
const {
|
|
33
34
|
formatMessage
|
|
@@ -96,7 +97,7 @@ export const AgentActions = ({
|
|
|
96
97
|
xcss: styles.chatPillIconWrapper
|
|
97
98
|
}, /*#__PURE__*/React.createElement(ChatPillIcon, null)), /*#__PURE__*/React.createElement(Box, {
|
|
98
99
|
xcss: styles.chatPillTextStyles
|
|
99
|
-
}, formatMessage(messages.actionChatToAgent)))))), /*#__PURE__*/React.createElement(AgentDropdownMenu, {
|
|
100
|
+
}, formatMessage(messages.actionChatToAgent)))))), !hideMoreActions && /*#__PURE__*/React.createElement(AgentDropdownMenu, {
|
|
100
101
|
agentId: agent.id,
|
|
101
102
|
onDeleteAgent: handleDeleteAgent,
|
|
102
103
|
onEditAgent: onEditAgent,
|
|
@@ -41,7 +41,8 @@ const AgentProfileCard = ({
|
|
|
41
41
|
onConversationStartersClick,
|
|
42
42
|
resourceClient,
|
|
43
43
|
addFlag,
|
|
44
|
-
onDeleteAgent
|
|
44
|
+
onDeleteAgent,
|
|
45
|
+
hideMoreActions
|
|
45
46
|
}) => {
|
|
46
47
|
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
47
48
|
const {
|
|
@@ -203,7 +204,8 @@ const AgentProfileCard = ({
|
|
|
203
204
|
onDeleteAgent: handleOnDelete,
|
|
204
205
|
onChatClick: onChatClick ? event => onChatClick(event) : () => onOpenChatFullScreen(agent.id, agent.name),
|
|
205
206
|
resourceClient: resourceClient,
|
|
206
|
-
onViewFullProfileClick: () => onViewFullProfile(agent.id)
|
|
207
|
+
onViewFullProfileClick: () => onViewFullProfile(agent.id),
|
|
208
|
+
hideMoreActions: hideMoreActions
|
|
207
209
|
})));
|
|
208
210
|
};
|
|
209
211
|
const AgentProfileCardExport = componentWithFG('profilecard_primitives_compiled', AgentProfileCardCompiled, AgentProfileCard);
|
|
@@ -32,7 +32,8 @@ const AgentProfileCard = ({
|
|
|
32
32
|
onConversationStartersClick,
|
|
33
33
|
resourceClient,
|
|
34
34
|
addFlag,
|
|
35
|
-
onDeleteAgent
|
|
35
|
+
onDeleteAgent,
|
|
36
|
+
hideMoreActions
|
|
36
37
|
}) => {
|
|
37
38
|
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
38
39
|
const {
|
|
@@ -194,7 +195,8 @@ const AgentProfileCard = ({
|
|
|
194
195
|
onDeleteAgent: handleOnDelete,
|
|
195
196
|
onChatClick: onChatClick ? event => onChatClick(event) : () => onOpenChatFullScreen(agent.id, agent.name),
|
|
196
197
|
resourceClient: resourceClient,
|
|
197
|
-
onViewFullProfileClick: () => onViewFullProfile(agent.id)
|
|
198
|
+
onViewFullProfileClick: () => onViewFullProfile(agent.id),
|
|
199
|
+
hideMoreActions: hideMoreActions
|
|
198
200
|
})));
|
|
199
201
|
};
|
|
200
202
|
export default AgentProfileCard;
|
|
@@ -108,6 +108,7 @@ export const AgentProfileCardResourced = props => {
|
|
|
108
108
|
addFlag: props.addFlag,
|
|
109
109
|
resourceClient: props.resourceClient,
|
|
110
110
|
cloudId: props.cloudId,
|
|
111
|
-
onDeleteAgent: props.onDeleteAgent
|
|
111
|
+
onDeleteAgent: props.onDeleteAgent,
|
|
112
|
+
hideMoreActions: props.hideMoreActions
|
|
112
113
|
}));
|
|
113
114
|
};
|
|
@@ -34,7 +34,8 @@ function ProfileCardContent({
|
|
|
34
34
|
hasError,
|
|
35
35
|
errorType,
|
|
36
36
|
agentActions,
|
|
37
|
-
addFlag
|
|
37
|
+
addFlag,
|
|
38
|
+
hideAgentMoreActions
|
|
38
39
|
}) {
|
|
39
40
|
if (isAgent) {
|
|
40
41
|
return /*#__PURE__*/React.createElement(AgentProfileCardResourced, {
|
|
@@ -44,7 +45,8 @@ function ProfileCardContent({
|
|
|
44
45
|
trigger: trigger,
|
|
45
46
|
onChatClick: agentActions === null || agentActions === void 0 ? void 0 : agentActions.onChatClick,
|
|
46
47
|
onConversationStartersClick: agentActions === null || agentActions === void 0 ? void 0 : agentActions.onConversationStartersClick,
|
|
47
|
-
addFlag: addFlag
|
|
48
|
+
addFlag: addFlag,
|
|
49
|
+
hideMoreActions: fg('jira_ai_profilecard_hide_agent_actions') && !!hideAgentMoreActions
|
|
48
50
|
});
|
|
49
51
|
} else {
|
|
50
52
|
return /*#__PURE__*/React.createElement(Suspense, {
|
|
@@ -78,6 +80,7 @@ export default function ProfilecardTriggerNext({
|
|
|
78
80
|
viewingUserId,
|
|
79
81
|
product,
|
|
80
82
|
agentActions,
|
|
83
|
+
hideAgentMoreActions,
|
|
81
84
|
ariaHideProfileTrigger = false,
|
|
82
85
|
isVisible: propsIsVisible,
|
|
83
86
|
ssrPlaceholderId,
|
|
@@ -353,7 +356,8 @@ export default function ProfilecardTriggerNext({
|
|
|
353
356
|
errorType: error,
|
|
354
357
|
hasError: hasError,
|
|
355
358
|
agentActions: agentActions,
|
|
356
|
-
addFlag: addFlag
|
|
359
|
+
addFlag: addFlag,
|
|
360
|
+
hideAgentMoreActions: hideAgentMoreActions
|
|
357
361
|
})),
|
|
358
362
|
trigger: triggerProps => {
|
|
359
363
|
const {
|
|
@@ -431,7 +435,8 @@ export default function ProfilecardTriggerNext({
|
|
|
431
435
|
errorType: error,
|
|
432
436
|
hasError: hasError,
|
|
433
437
|
agentActions: agentActions,
|
|
434
|
-
addFlag: addFlag
|
|
438
|
+
addFlag: addFlag,
|
|
439
|
+
hideAgentMoreActions: hideAgentMoreActions
|
|
435
440
|
})),
|
|
436
441
|
trigger: triggerProps => {
|
|
437
442
|
const {
|
|
@@ -4,7 +4,7 @@ import { getPageTime } from './performance';
|
|
|
4
4
|
const ANALYTICS_CHANNEL = 'peopleTeams';
|
|
5
5
|
export const PACKAGE_META_DATA = {
|
|
6
6
|
packageName: "@atlaskit/profilecard",
|
|
7
|
-
packageVersion: "
|
|
7
|
+
packageVersion: "24.16.1"
|
|
8
8
|
};
|
|
9
9
|
const runItLater = cb => {
|
|
10
10
|
const requestIdleCallback = window.requestIdleCallback;
|
|
@@ -45,7 +45,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
45
45
|
actionSubjectId,
|
|
46
46
|
attributes: {
|
|
47
47
|
packageName: "@atlaskit/profilecard",
|
|
48
|
-
packageVersion: "
|
|
48
|
+
packageVersion: "24.16.1",
|
|
49
49
|
...attributes,
|
|
50
50
|
firedAt: Math.round(getPageTime())
|
|
51
51
|
}
|
|
@@ -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', "
|
|
7
|
+
headers.append('atl-client-version', "24.16.1");
|
|
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', "
|
|
62
|
+
headers.append('atl-client-version', "24.16.1");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -54,7 +54,8 @@ var _AgentActions = function _AgentActions(_ref) {
|
|
|
54
54
|
onChatClick = _ref.onChatClick,
|
|
55
55
|
onViewFullProfileClick = _ref.onViewFullProfileClick,
|
|
56
56
|
agent = _ref.agent,
|
|
57
|
-
resourceClient = _ref.resourceClient
|
|
57
|
+
resourceClient = _ref.resourceClient,
|
|
58
|
+
hideMoreActions = _ref.hideMoreActions;
|
|
58
59
|
var _useIntl = useIntl(),
|
|
59
60
|
formatMessage = _useIntl.formatMessage;
|
|
60
61
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
@@ -130,7 +131,7 @@ var _AgentActions = function _AgentActions(_ref) {
|
|
|
130
131
|
xcss: chatPillIconWrapper
|
|
131
132
|
}, /*#__PURE__*/React.createElement(ChatPillIcon, null)), /*#__PURE__*/React.createElement(Box, {
|
|
132
133
|
xcss: chatPillTextStyles
|
|
133
|
-
}, formatMessage(messages.actionChatToAgent)))))), /*#__PURE__*/React.createElement(AgentDropdownMenu, {
|
|
134
|
+
}, formatMessage(messages.actionChatToAgent)))))), !hideMoreActions && /*#__PURE__*/React.createElement(AgentDropdownMenu, {
|
|
134
135
|
agentId: agent.id,
|
|
135
136
|
onDeleteAgent: handleDeleteAgent,
|
|
136
137
|
onEditAgent: onEditAgent,
|
|
@@ -33,7 +33,8 @@ export var AgentActions = function AgentActions(_ref) {
|
|
|
33
33
|
onChatClick = _ref.onChatClick,
|
|
34
34
|
onViewFullProfileClick = _ref.onViewFullProfileClick,
|
|
35
35
|
agent = _ref.agent,
|
|
36
|
-
resourceClient = _ref.resourceClient
|
|
36
|
+
resourceClient = _ref.resourceClient,
|
|
37
|
+
hideMoreActions = _ref.hideMoreActions;
|
|
37
38
|
var _useIntl = useIntl(),
|
|
38
39
|
formatMessage = _useIntl.formatMessage;
|
|
39
40
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
@@ -110,7 +111,7 @@ export var AgentActions = function AgentActions(_ref) {
|
|
|
110
111
|
xcss: styles.chatPillIconWrapper
|
|
111
112
|
}, /*#__PURE__*/React.createElement(ChatPillIcon, null)), /*#__PURE__*/React.createElement(Box, {
|
|
112
113
|
xcss: styles.chatPillTextStyles
|
|
113
|
-
}, formatMessage(messages.actionChatToAgent)))))), /*#__PURE__*/React.createElement(AgentDropdownMenu, {
|
|
114
|
+
}, formatMessage(messages.actionChatToAgent)))))), !hideMoreActions && /*#__PURE__*/React.createElement(AgentDropdownMenu, {
|
|
114
115
|
agentId: agent.id,
|
|
115
116
|
onDeleteAgent: handleDeleteAgent,
|
|
116
117
|
onEditAgent: onEditAgent,
|
|
@@ -48,7 +48,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
48
48
|
onConversationStartersClick = _ref.onConversationStartersClick,
|
|
49
49
|
resourceClient = _ref.resourceClient,
|
|
50
50
|
addFlag = _ref.addFlag,
|
|
51
|
-
onDeleteAgent = _ref.onDeleteAgent
|
|
51
|
+
onDeleteAgent = _ref.onDeleteAgent,
|
|
52
|
+
hideMoreActions = _ref.hideMoreActions;
|
|
52
53
|
var _useAgentUrlActions = useAgentUrlActions({
|
|
53
54
|
cloudId: cloudId || '',
|
|
54
55
|
source: 'agentProfileCard'
|
|
@@ -251,7 +252,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
251
252
|
resourceClient: resourceClient,
|
|
252
253
|
onViewFullProfileClick: function onViewFullProfileClick() {
|
|
253
254
|
return onViewFullProfile(agent.id);
|
|
254
|
-
}
|
|
255
|
+
},
|
|
256
|
+
hideMoreActions: hideMoreActions
|
|
255
257
|
})));
|
|
256
258
|
};
|
|
257
259
|
var AgentProfileCardExport = componentWithFG('profilecard_primitives_compiled', AgentProfileCardCompiled, AgentProfileCard);
|
|
@@ -39,7 +39,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
39
39
|
onConversationStartersClick = _ref.onConversationStartersClick,
|
|
40
40
|
resourceClient = _ref.resourceClient,
|
|
41
41
|
addFlag = _ref.addFlag,
|
|
42
|
-
onDeleteAgent = _ref.onDeleteAgent
|
|
42
|
+
onDeleteAgent = _ref.onDeleteAgent,
|
|
43
|
+
hideMoreActions = _ref.hideMoreActions;
|
|
43
44
|
var _useAgentUrlActions = useAgentUrlActions({
|
|
44
45
|
cloudId: cloudId || '',
|
|
45
46
|
source: 'agentProfileCard'
|
|
@@ -242,7 +243,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
242
243
|
resourceClient: resourceClient,
|
|
243
244
|
onViewFullProfileClick: function onViewFullProfileClick() {
|
|
244
245
|
return onViewFullProfile(agent.id);
|
|
245
|
-
}
|
|
246
|
+
},
|
|
247
|
+
hideMoreActions: hideMoreActions
|
|
246
248
|
})));
|
|
247
249
|
};
|
|
248
250
|
export default AgentProfileCard;
|
|
@@ -166,6 +166,7 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
|
|
|
166
166
|
addFlag: props.addFlag,
|
|
167
167
|
resourceClient: props.resourceClient,
|
|
168
168
|
cloudId: props.cloudId,
|
|
169
|
-
onDeleteAgent: props.onDeleteAgent
|
|
169
|
+
onDeleteAgent: props.onDeleteAgent,
|
|
170
|
+
hideMoreActions: props.hideMoreActions
|
|
170
171
|
}));
|
|
171
172
|
};
|
|
@@ -46,7 +46,8 @@ function ProfileCardContent(_ref) {
|
|
|
46
46
|
hasError = _ref.hasError,
|
|
47
47
|
errorType = _ref.errorType,
|
|
48
48
|
agentActions = _ref.agentActions,
|
|
49
|
-
addFlag = _ref.addFlag
|
|
49
|
+
addFlag = _ref.addFlag,
|
|
50
|
+
hideAgentMoreActions = _ref.hideAgentMoreActions;
|
|
50
51
|
if (isAgent) {
|
|
51
52
|
return /*#__PURE__*/React.createElement(AgentProfileCardResourced, {
|
|
52
53
|
accountId: userId,
|
|
@@ -55,7 +56,8 @@ function ProfileCardContent(_ref) {
|
|
|
55
56
|
trigger: trigger,
|
|
56
57
|
onChatClick: agentActions === null || agentActions === void 0 ? void 0 : agentActions.onChatClick,
|
|
57
58
|
onConversationStartersClick: agentActions === null || agentActions === void 0 ? void 0 : agentActions.onConversationStartersClick,
|
|
58
|
-
addFlag: addFlag
|
|
59
|
+
addFlag: addFlag,
|
|
60
|
+
hideMoreActions: fg('jira_ai_profilecard_hide_agent_actions') && !!hideAgentMoreActions
|
|
59
61
|
});
|
|
60
62
|
} else {
|
|
61
63
|
return /*#__PURE__*/React.createElement(Suspense, {
|
|
@@ -92,6 +94,7 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
92
94
|
viewingUserId = _ref2.viewingUserId,
|
|
93
95
|
product = _ref2.product,
|
|
94
96
|
agentActions = _ref2.agentActions,
|
|
97
|
+
hideAgentMoreActions = _ref2.hideAgentMoreActions,
|
|
95
98
|
_ref2$ariaHideProfile = _ref2.ariaHideProfileTrigger,
|
|
96
99
|
ariaHideProfileTrigger = _ref2$ariaHideProfile === void 0 ? false : _ref2$ariaHideProfile,
|
|
97
100
|
propsIsVisible = _ref2.isVisible,
|
|
@@ -416,7 +419,8 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
416
419
|
errorType: error,
|
|
417
420
|
hasError: hasError,
|
|
418
421
|
agentActions: agentActions,
|
|
419
|
-
addFlag: addFlag
|
|
422
|
+
addFlag: addFlag,
|
|
423
|
+
hideAgentMoreActions: hideAgentMoreActions
|
|
420
424
|
}));
|
|
421
425
|
},
|
|
422
426
|
trigger: function trigger(triggerProps) {
|
|
@@ -492,7 +496,8 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
492
496
|
errorType: error,
|
|
493
497
|
hasError: hasError,
|
|
494
498
|
agentActions: agentActions,
|
|
495
|
-
addFlag: addFlag
|
|
499
|
+
addFlag: addFlag,
|
|
500
|
+
hideAgentMoreActions: hideAgentMoreActions
|
|
496
501
|
}));
|
|
497
502
|
},
|
|
498
503
|
trigger: function trigger(triggerProps) {
|
|
@@ -7,7 +7,7 @@ import { getPageTime } from './performance';
|
|
|
7
7
|
var ANALYTICS_CHANNEL = 'peopleTeams';
|
|
8
8
|
export var PACKAGE_META_DATA = {
|
|
9
9
|
packageName: "@atlaskit/profilecard",
|
|
10
|
-
packageVersion: "
|
|
10
|
+
packageVersion: "24.16.1"
|
|
11
11
|
};
|
|
12
12
|
var runItLater = function runItLater(cb) {
|
|
13
13
|
var requestIdleCallback = window.requestIdleCallback;
|
|
@@ -52,7 +52,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
52
52
|
actionSubjectId: actionSubjectId,
|
|
53
53
|
attributes: _objectSpread(_objectSpread({
|
|
54
54
|
packageName: "@atlaskit/profilecard",
|
|
55
|
-
packageVersion: "
|
|
55
|
+
packageVersion: "24.16.1"
|
|
56
56
|
}, attributes), {}, {
|
|
57
57
|
firedAt: Math.round(getPageTime())
|
|
58
58
|
})
|
|
@@ -9,6 +9,7 @@ type AgentActionsProps = {
|
|
|
9
9
|
onChatClick: (event: React.MouseEvent) => void;
|
|
10
10
|
onViewFullProfileClick: () => void;
|
|
11
11
|
resourceClient: ProfileClient;
|
|
12
|
+
hideMoreActions?: boolean;
|
|
12
13
|
};
|
|
13
14
|
export declare const AgentActions: React.FC<{
|
|
14
15
|
agent: RovoAgentProfileCardInfo;
|
|
@@ -19,5 +20,6 @@ export declare const AgentActions: React.FC<{
|
|
|
19
20
|
onChatClick: (event: React.MouseEvent) => void;
|
|
20
21
|
onViewFullProfileClick: () => void;
|
|
21
22
|
resourceClient: ProfileClient;
|
|
23
|
+
hideMoreActions?: boolean;
|
|
22
24
|
} & AgentActionsProps>;
|
|
23
25
|
export {};
|
|
@@ -9,6 +9,7 @@ type AgentActionsProps = {
|
|
|
9
9
|
onChatClick: (event: React.MouseEvent) => void;
|
|
10
10
|
onViewFullProfileClick: () => void;
|
|
11
11
|
resourceClient: ProfileClient;
|
|
12
|
+
hideMoreActions?: boolean;
|
|
12
13
|
};
|
|
13
|
-
export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
|
|
14
|
+
export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, hideMoreActions, }: AgentActionsProps) => React.JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AgentProfileCardProps } from '../../types';
|
|
3
|
-
declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
|
|
3
|
+
declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, }: AgentProfileCardProps) => React.JSX.Element;
|
|
4
4
|
export default AgentProfileCard;
|
|
@@ -10,5 +10,7 @@ export type AgentProfileCardResourcedProps = {
|
|
|
10
10
|
onDeleteAgent?: (agentId: string) => {
|
|
11
11
|
restore: () => void;
|
|
12
12
|
};
|
|
13
|
+
/** Hide the Agent more actions dropdown when true */
|
|
14
|
+
hideMoreActions?: boolean;
|
|
13
15
|
} & AgentActionsType;
|
|
14
16
|
export declare const AgentProfileCardResourced: (props: AgentProfileCardResourcedProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ProfileCardTriggerProps } from '../../types';
|
|
3
|
-
export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, offset, viewingUserId, product, agentActions, ariaHideProfileTrigger, isVisible: propsIsVisible, ssrPlaceholderId, showDelay: customShowDelay, hideDelay: customHideDelay, }: ProfileCardTriggerProps): React.JSX.Element;
|
|
3
|
+
export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, offset, viewingUserId, product, agentActions, hideAgentMoreActions, ariaHideProfileTrigger, isVisible: propsIsVisible, ssrPlaceholderId, showDelay: customShowDelay, hideDelay: customHideDelay, }: ProfileCardTriggerProps): React.JSX.Element;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -186,6 +186,7 @@ export interface ProfileCardTriggerProps {
|
|
|
186
186
|
ssrPlaceholderId?: string;
|
|
187
187
|
showDelay?: number;
|
|
188
188
|
hideDelay?: number;
|
|
189
|
+
hideAgentMoreActions?: boolean;
|
|
189
190
|
}
|
|
190
191
|
export interface ProfileCardTriggerState {
|
|
191
192
|
visible?: boolean;
|
|
@@ -368,6 +369,8 @@ export type AgentProfileCardProps = {
|
|
|
368
369
|
onDeleteAgent?: (agentId: string) => {
|
|
369
370
|
restore: () => void;
|
|
370
371
|
};
|
|
372
|
+
/** Hide the Agent more actions dropdown when true */
|
|
373
|
+
hideMoreActions?: boolean;
|
|
371
374
|
} & AgentActionsType;
|
|
372
375
|
export type StatusType = 'active' | 'inactive' | 'closed';
|
|
373
376
|
export type TriggerType = 'hover' | 'click';
|
|
@@ -9,6 +9,7 @@ type AgentActionsProps = {
|
|
|
9
9
|
onChatClick: (event: React.MouseEvent) => void;
|
|
10
10
|
onViewFullProfileClick: () => void;
|
|
11
11
|
resourceClient: ProfileClient;
|
|
12
|
+
hideMoreActions?: boolean;
|
|
12
13
|
};
|
|
13
14
|
export declare const AgentActions: React.FC<{
|
|
14
15
|
agent: RovoAgentProfileCardInfo;
|
|
@@ -19,5 +20,6 @@ export declare const AgentActions: React.FC<{
|
|
|
19
20
|
onChatClick: (event: React.MouseEvent) => void;
|
|
20
21
|
onViewFullProfileClick: () => void;
|
|
21
22
|
resourceClient: ProfileClient;
|
|
23
|
+
hideMoreActions?: boolean;
|
|
22
24
|
} & AgentActionsProps>;
|
|
23
25
|
export {};
|
|
@@ -9,6 +9,7 @@ type AgentActionsProps = {
|
|
|
9
9
|
onChatClick: (event: React.MouseEvent) => void;
|
|
10
10
|
onViewFullProfileClick: () => void;
|
|
11
11
|
resourceClient: ProfileClient;
|
|
12
|
+
hideMoreActions?: boolean;
|
|
12
13
|
};
|
|
13
|
-
export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
|
|
14
|
+
export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, hideMoreActions, }: AgentActionsProps) => React.JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AgentProfileCardProps } from '../../types';
|
|
3
|
-
declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
|
|
3
|
+
declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, }: AgentProfileCardProps) => React.JSX.Element;
|
|
4
4
|
export default AgentProfileCard;
|
|
@@ -10,5 +10,7 @@ export type AgentProfileCardResourcedProps = {
|
|
|
10
10
|
onDeleteAgent?: (agentId: string) => {
|
|
11
11
|
restore: () => void;
|
|
12
12
|
};
|
|
13
|
+
/** Hide the Agent more actions dropdown when true */
|
|
14
|
+
hideMoreActions?: boolean;
|
|
13
15
|
} & AgentActionsType;
|
|
14
16
|
export declare const AgentProfileCardResourced: (props: AgentProfileCardResourcedProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ProfileCardTriggerProps } from '../../types';
|
|
3
|
-
export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, offset, viewingUserId, product, agentActions, ariaHideProfileTrigger, isVisible: propsIsVisible, ssrPlaceholderId, showDelay: customShowDelay, hideDelay: customHideDelay, }: ProfileCardTriggerProps): React.JSX.Element;
|
|
3
|
+
export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, offset, viewingUserId, product, agentActions, hideAgentMoreActions, ariaHideProfileTrigger, isVisible: propsIsVisible, ssrPlaceholderId, showDelay: customShowDelay, hideDelay: customHideDelay, }: ProfileCardTriggerProps): React.JSX.Element;
|
|
@@ -189,6 +189,7 @@ export interface ProfileCardTriggerProps {
|
|
|
189
189
|
ssrPlaceholderId?: string;
|
|
190
190
|
showDelay?: number;
|
|
191
191
|
hideDelay?: number;
|
|
192
|
+
hideAgentMoreActions?: boolean;
|
|
192
193
|
}
|
|
193
194
|
export interface ProfileCardTriggerState {
|
|
194
195
|
visible?: boolean;
|
|
@@ -374,6 +375,8 @@ export type AgentProfileCardProps = {
|
|
|
374
375
|
onDeleteAgent?: (agentId: string) => {
|
|
375
376
|
restore: () => void;
|
|
376
377
|
};
|
|
378
|
+
/** Hide the Agent more actions dropdown when true */
|
|
379
|
+
hideMoreActions?: boolean;
|
|
377
380
|
} & AgentActionsType;
|
|
378
381
|
export type StatusType = 'active' | 'inactive' | 'closed';
|
|
379
382
|
export type TriggerType = 'hover' | 'click';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.17.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
52
52
|
"@atlaskit/give-kudos": "^4.4.0",
|
|
53
53
|
"@atlaskit/heading": "^5.2.0",
|
|
54
|
-
"@atlaskit/icon": "^28.
|
|
54
|
+
"@atlaskit/icon": "^28.4.0",
|
|
55
55
|
"@atlaskit/link": "^3.2.0",
|
|
56
56
|
"@atlaskit/logo": "^19.8.0",
|
|
57
57
|
"@atlaskit/lozenge": "^13.0.0",
|
|
@@ -170,6 +170,9 @@
|
|
|
170
170
|
},
|
|
171
171
|
"cover-header-image-team-profilecard": {
|
|
172
172
|
"type": "boolean"
|
|
173
|
+
},
|
|
174
|
+
"jira_ai_profilecard_hide_agent_actions": {
|
|
175
|
+
"type": "boolean"
|
|
173
176
|
}
|
|
174
177
|
},
|
|
175
178
|
"sideEffects": [
|