@atlaskit/profilecard 25.3.0 → 25.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +5 -2
- package/dist/cjs/components/Agent/AgentProfileCardResourced.js +2 -1
- 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/AgentProfileCard.js +4 -2
- package/dist/es2019/components/Agent/AgentProfileCardResourced.js +2 -1
- 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/AgentProfileCard.js +5 -2
- package/dist/esm/components/Agent/AgentProfileCardResourced.js +2 -1
- package/dist/esm/util/analytics.js +2 -2
- package/dist/types/components/Agent/AgentProfileCard.d.ts +1 -1
- package/dist/types/components/Agent/AgentProfileCardResourced.d.ts +3 -1
- package/dist/types/components/Agent/lazyAgentProfileCard.d.ts +1 -1
- package/dist/types/types.d.ts +3 -1
- package/dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts +1 -1
- package/dist/types-ts4.5/components/Agent/AgentProfileCardResourced.d.ts +3 -1
- package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +3 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 25.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 25.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`7fffcd1adae61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7fffcd1adae61) -
|
|
14
|
+
[ux] This change gives the option to hide agent actions such as chat and extra options via a new
|
|
15
|
+
optional prop on agent profile cards.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 25.3.0
|
|
4
22
|
|
|
5
23
|
### Minor 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', "25.
|
|
14
|
+
headers.append('atl-client-version', "25.4.0");
|
|
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.
|
|
69
|
+
headers.append('atl-client-version', "25.4.0");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -63,7 +63,9 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
63
63
|
_ref$hideAiDisclaimer = _ref.hideAiDisclaimer,
|
|
64
64
|
hideAiDisclaimer = _ref$hideAiDisclaimer === void 0 ? false : _ref$hideAiDisclaimer,
|
|
65
65
|
_ref$hideConversation = _ref.hideConversationStarters,
|
|
66
|
-
hideConversationStarters = _ref$hideConversation === void 0 ? false : _ref$hideConversation
|
|
66
|
+
hideConversationStarters = _ref$hideConversation === void 0 ? false : _ref$hideConversation,
|
|
67
|
+
_ref$hideAgentActions = _ref.hideAgentActions,
|
|
68
|
+
hideAgentActions = _ref$hideAgentActions === void 0 ? false : _ref$hideAgentActions;
|
|
67
69
|
var _useAgentUrlActions = (0, _useAgentActions.useAgentUrlActions)({
|
|
68
70
|
cloudId: cloudId || '',
|
|
69
71
|
email: email,
|
|
@@ -189,6 +191,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
189
191
|
}
|
|
190
192
|
var isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
191
193
|
var shouldShowConversationStarters = !isRovoDev && !((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
194
|
+
var shouldShowAgentActions = !isRovoDev && !(hideAgentActions && (0, _platformFeatureFlags.fg)('issue_view_agent_discovery_fast_follows'));
|
|
192
195
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
193
196
|
xcss: (0, _platformFeatureFlags.fg)('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
194
197
|
}, /*#__PURE__*/_react.default.createElement(_GeneratedAvatar.AgentBanner, {
|
|
@@ -268,7 +271,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
268
271
|
prompt: conversationStarter.message
|
|
269
272
|
});
|
|
270
273
|
}
|
|
271
|
-
}))),
|
|
274
|
+
}))), shouldShowAgentActions && /*#__PURE__*/_react.default.createElement(_Actions.AgentActions, {
|
|
272
275
|
agent: agent,
|
|
273
276
|
onEditAgent: function onEditAgent() {
|
|
274
277
|
return _onEditAgent(agent.id);
|
|
@@ -190,6 +190,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
|
|
|
190
190
|
onDeleteAgent: props.onDeleteAgent,
|
|
191
191
|
hideMoreActions: props.hideMoreActions,
|
|
192
192
|
hideAiDisclaimer: props.hideAiDisclaimer,
|
|
193
|
-
hideConversationStarters: props.hideConversationStarters
|
|
193
|
+
hideConversationStarters: props.hideConversationStarters,
|
|
194
|
+
hideAgentActions: props.hideAgentActions
|
|
194
195
|
}));
|
|
195
196
|
};
|
|
@@ -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.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.4.0") !== 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.
|
|
34
|
+
packageVersion: "25.4.0"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
37
37
|
})
|
|
@@ -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.
|
|
9
|
+
headers.append('atl-client-version', "25.4.0");
|
|
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.
|
|
81
|
+
headers.append('atl-client-version', "25.4.0");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -45,7 +45,8 @@ const AgentProfileCard = ({
|
|
|
45
45
|
onDeleteAgent,
|
|
46
46
|
hideMoreActions,
|
|
47
47
|
hideAiDisclaimer = false,
|
|
48
|
-
hideConversationStarters = false
|
|
48
|
+
hideConversationStarters = false,
|
|
49
|
+
hideAgentActions = false
|
|
49
50
|
}) => {
|
|
50
51
|
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
51
52
|
const {
|
|
@@ -141,6 +142,7 @@ const AgentProfileCard = ({
|
|
|
141
142
|
}
|
|
142
143
|
const isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
143
144
|
const shouldShowConversationStarters = !isRovoDev && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
145
|
+
const shouldShowAgentActions = !isRovoDev && !(hideAgentActions && fg('issue_view_agent_discovery_fast_follows'));
|
|
144
146
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
145
147
|
xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
146
148
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
@@ -220,7 +222,7 @@ const AgentProfileCard = ({
|
|
|
220
222
|
prompt: conversationStarter.message
|
|
221
223
|
});
|
|
222
224
|
}
|
|
223
|
-
}))),
|
|
225
|
+
}))), shouldShowAgentActions && /*#__PURE__*/React.createElement(AgentActions, {
|
|
224
226
|
agent: agent,
|
|
225
227
|
onEditAgent: () => onEditAgent(agent.id),
|
|
226
228
|
onCopyAgent: () => onCopyAgent(agent.id),
|
|
@@ -131,6 +131,7 @@ export const AgentProfileCardResourced = props => {
|
|
|
131
131
|
onDeleteAgent: props.onDeleteAgent,
|
|
132
132
|
hideMoreActions: props.hideMoreActions,
|
|
133
133
|
hideAiDisclaimer: props.hideAiDisclaimer,
|
|
134
|
-
hideConversationStarters: props.hideConversationStarters
|
|
134
|
+
hideConversationStarters: props.hideConversationStarters,
|
|
135
|
+
hideAgentActions: props.hideAgentActions
|
|
135
136
|
}));
|
|
136
137
|
};
|
|
@@ -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.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.4.0") !== 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.
|
|
22
|
+
packageVersion: "25.4.0",
|
|
23
23
|
...attributes,
|
|
24
24
|
firedAt: Math.round(getPageTime())
|
|
25
25
|
}
|
|
@@ -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
|
+
headers.append('atl-client-version', "25.4.0");
|
|
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.
|
|
62
|
+
headers.append('atl-client-version', "25.4.0");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -54,7 +54,9 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
54
54
|
_ref$hideAiDisclaimer = _ref.hideAiDisclaimer,
|
|
55
55
|
hideAiDisclaimer = _ref$hideAiDisclaimer === void 0 ? false : _ref$hideAiDisclaimer,
|
|
56
56
|
_ref$hideConversation = _ref.hideConversationStarters,
|
|
57
|
-
hideConversationStarters = _ref$hideConversation === void 0 ? false : _ref$hideConversation
|
|
57
|
+
hideConversationStarters = _ref$hideConversation === void 0 ? false : _ref$hideConversation,
|
|
58
|
+
_ref$hideAgentActions = _ref.hideAgentActions,
|
|
59
|
+
hideAgentActions = _ref$hideAgentActions === void 0 ? false : _ref$hideAgentActions;
|
|
58
60
|
var _useAgentUrlActions = useAgentUrlActions({
|
|
59
61
|
cloudId: cloudId || '',
|
|
60
62
|
email: email,
|
|
@@ -180,6 +182,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
180
182
|
}
|
|
181
183
|
var isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
182
184
|
var shouldShowConversationStarters = !isRovoDev && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
185
|
+
var shouldShowAgentActions = !isRovoDev && !(hideAgentActions && fg('issue_view_agent_discovery_fast_follows'));
|
|
183
186
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
184
187
|
xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
185
188
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
@@ -259,7 +262,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
259
262
|
prompt: conversationStarter.message
|
|
260
263
|
});
|
|
261
264
|
}
|
|
262
|
-
}))),
|
|
265
|
+
}))), shouldShowAgentActions && /*#__PURE__*/React.createElement(AgentActions, {
|
|
263
266
|
agent: agent,
|
|
264
267
|
onEditAgent: function onEditAgent() {
|
|
265
268
|
return _onEditAgent(agent.id);
|
|
@@ -181,6 +181,7 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
|
|
|
181
181
|
onDeleteAgent: props.onDeleteAgent,
|
|
182
182
|
hideMoreActions: props.hideMoreActions,
|
|
183
183
|
hideAiDisclaimer: props.hideAiDisclaimer,
|
|
184
|
-
hideConversationStarters: props.hideConversationStarters
|
|
184
|
+
hideConversationStarters: props.hideConversationStarters,
|
|
185
|
+
hideAgentActions: props.hideAgentActions
|
|
185
186
|
}));
|
|
186
187
|
};
|
|
@@ -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.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.4.0") !== 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.
|
|
27
|
+
packageVersion: "25.4.0"
|
|
28
28
|
}, attributes), {}, {
|
|
29
29
|
firedAt: Math.round(getPageTime())
|
|
30
30
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AgentProfileCardProps } from '../../types';
|
|
3
|
-
declare const AgentProfileCard: ({ agent, isLoading, cloudId, email, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, }: AgentProfileCardProps) => React.JSX.Element;
|
|
3
|
+
declare const AgentProfileCard: ({ agent, isLoading, cloudId, email, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, hideAgentActions, }: AgentProfileCardProps) => React.JSX.Element;
|
|
4
4
|
export default AgentProfileCard;
|
|
@@ -10,11 +10,13 @@ export type AgentProfileCardResourcedProps = {
|
|
|
10
10
|
onDeleteAgent?: (agentId: string) => {
|
|
11
11
|
restore: () => void;
|
|
12
12
|
};
|
|
13
|
-
/** Hide the Agent more actions dropdown when true */
|
|
13
|
+
/** Hide the Agent more actions dropdown when true, is also hidden when hideAgentActions is true */
|
|
14
14
|
hideMoreActions?: boolean;
|
|
15
15
|
/** Hide the AI disclaimer. Defaults to false (disclaimer is shown by default). */
|
|
16
16
|
hideAiDisclaimer?: boolean;
|
|
17
17
|
/** Hide the conversation starters. Defaults to false (conversation starters are shown by default). */
|
|
18
18
|
hideConversationStarters?: boolean;
|
|
19
|
+
/** Hide the agent actions (chat button and dropdown menu). Defaults to false (agent actions are shown by default). */
|
|
20
|
+
hideAgentActions?: boolean;
|
|
19
21
|
} & AgentActionsType;
|
|
20
22
|
export declare const AgentProfileCardResourced: (props: AgentProfileCardResourcedProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type LazyExoticComponent } from 'react';
|
|
2
2
|
import type { AgentProfileCardProps } from '../../types';
|
|
3
|
-
export declare const AgentProfileCardLazy: LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, }: AgentProfileCardProps) => React.JSX.Element>;
|
|
3
|
+
export declare const AgentProfileCardLazy: LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, hideAgentActions, }: AgentProfileCardProps) => React.JSX.Element>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -407,12 +407,14 @@ export type AgentProfileCardProps = {
|
|
|
407
407
|
onDeleteAgent?: (agentId: string) => {
|
|
408
408
|
restore: () => void;
|
|
409
409
|
};
|
|
410
|
-
/** Hide the Agent more actions dropdown when true */
|
|
410
|
+
/** Hide the Agent more actions dropdown when true, is also hidden when hideAgentActions is true */
|
|
411
411
|
hideMoreActions?: boolean;
|
|
412
412
|
/** Hide the AI disclaimer. Defaults to false (disclaimer is shown by default). */
|
|
413
413
|
hideAiDisclaimer?: boolean;
|
|
414
414
|
/** Hide the conversation starters. Defaults to false (conversation starters are shown by default). */
|
|
415
415
|
hideConversationStarters?: boolean;
|
|
416
|
+
/** Hide the agent actions (chat button and dropdown menu). Defaults to false (agent actions are shown by default). */
|
|
417
|
+
hideAgentActions?: boolean;
|
|
416
418
|
} & AgentActionsType;
|
|
417
419
|
export type StatusType = 'active' | 'inactive' | 'closed';
|
|
418
420
|
export type TriggerType = 'hover' | 'click';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AgentProfileCardProps } from '../../types';
|
|
3
|
-
declare const AgentProfileCard: ({ agent, isLoading, cloudId, email, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, }: AgentProfileCardProps) => React.JSX.Element;
|
|
3
|
+
declare const AgentProfileCard: ({ agent, isLoading, cloudId, email, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, hideAgentActions, }: AgentProfileCardProps) => React.JSX.Element;
|
|
4
4
|
export default AgentProfileCard;
|
|
@@ -10,11 +10,13 @@ export type AgentProfileCardResourcedProps = {
|
|
|
10
10
|
onDeleteAgent?: (agentId: string) => {
|
|
11
11
|
restore: () => void;
|
|
12
12
|
};
|
|
13
|
-
/** Hide the Agent more actions dropdown when true */
|
|
13
|
+
/** Hide the Agent more actions dropdown when true, is also hidden when hideAgentActions is true */
|
|
14
14
|
hideMoreActions?: boolean;
|
|
15
15
|
/** Hide the AI disclaimer. Defaults to false (disclaimer is shown by default). */
|
|
16
16
|
hideAiDisclaimer?: boolean;
|
|
17
17
|
/** Hide the conversation starters. Defaults to false (conversation starters are shown by default). */
|
|
18
18
|
hideConversationStarters?: boolean;
|
|
19
|
+
/** Hide the agent actions (chat button and dropdown menu). Defaults to false (agent actions are shown by default). */
|
|
20
|
+
hideAgentActions?: boolean;
|
|
19
21
|
} & AgentActionsType;
|
|
20
22
|
export declare const AgentProfileCardResourced: (props: AgentProfileCardResourcedProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type LazyExoticComponent } from 'react';
|
|
2
2
|
import type { AgentProfileCardProps } from '../../types';
|
|
3
|
-
export declare const AgentProfileCardLazy: LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, }: AgentProfileCardProps) => React.JSX.Element>;
|
|
3
|
+
export declare const AgentProfileCardLazy: LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, hideAgentActions, }: AgentProfileCardProps) => React.JSX.Element>;
|
|
@@ -413,12 +413,14 @@ export type AgentProfileCardProps = {
|
|
|
413
413
|
onDeleteAgent?: (agentId: string) => {
|
|
414
414
|
restore: () => void;
|
|
415
415
|
};
|
|
416
|
-
/** Hide the Agent more actions dropdown when true */
|
|
416
|
+
/** Hide the Agent more actions dropdown when true, is also hidden when hideAgentActions is true */
|
|
417
417
|
hideMoreActions?: boolean;
|
|
418
418
|
/** Hide the AI disclaimer. Defaults to false (disclaimer is shown by default). */
|
|
419
419
|
hideAiDisclaimer?: boolean;
|
|
420
420
|
/** Hide the conversation starters. Defaults to false (conversation starters are shown by default). */
|
|
421
421
|
hideConversationStarters?: boolean;
|
|
422
|
+
/** Hide the agent actions (chat button and dropdown menu). Defaults to false (agent actions are shown by default). */
|
|
423
|
+
hideAgentActions?: boolean;
|
|
422
424
|
} & AgentActionsType;
|
|
423
425
|
export type StatusType = 'active' | 'inactive' | 'closed';
|
|
424
426
|
export type TriggerType = 'hover' | 'click';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.4.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/empty-state": "^10.2.0",
|
|
57
57
|
"@atlaskit/give-kudos": "^5.7.0",
|
|
58
58
|
"@atlaskit/heading": "^5.4.0",
|
|
59
|
-
"@atlaskit/icon": "^34.
|
|
59
|
+
"@atlaskit/icon": "^34.4.0",
|
|
60
60
|
"@atlaskit/link": "3.4.2",
|
|
61
61
|
"@atlaskit/lozenge": "^13.8.0",
|
|
62
62
|
"@atlaskit/menu": "^8.5.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/teams-avatar": "^2.6.0",
|
|
75
75
|
"@atlaskit/teams-public": "^1.3.0",
|
|
76
76
|
"@atlaskit/theme": "^23.2.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^77.0.0",
|
|
78
78
|
"@atlaskit/tokens": "^13.0.0",
|
|
79
79
|
"@atlaskit/tooltip": "^22.0.0",
|
|
80
80
|
"@atlassian/studio-entry-link": "^1.1.0",
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
"enable_teams_t26_design_drop_core_experiences": {
|
|
191
191
|
"type": "boolean"
|
|
192
192
|
},
|
|
193
|
+
"issue_view_agent_discovery_fast_follows": {
|
|
194
|
+
"type": "boolean"
|
|
195
|
+
},
|
|
193
196
|
"update_profile_card_to_open_on_mouse_over": {
|
|
194
197
|
"type": "boolean"
|
|
195
198
|
}
|