@atlaskit/profilecard 24.23.1 → 24.24.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 +13 -0
- package/__tests__/vr-tests/agent-profilecard.vr.tsx +0 -1
- package/__tests__/vr-tests/user-profilecard.vr.tsx +6 -42
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/Actions.js +28 -49
- package/dist/cjs/components/Agent/AgentProfileCard.js +39 -41
- package/dist/cjs/components/User/ReportingLinesDetails.compiled.css +5 -0
- package/dist/cjs/components/User/ReportingLinesDetails.js +10 -20
- 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 +23 -43
- package/dist/es2019/components/Agent/AgentProfileCard.js +37 -40
- package/dist/es2019/components/User/ReportingLinesDetails.compiled.css +5 -0
- package/dist/es2019/components/User/ReportingLinesDetails.js +8 -19
- 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 +23 -43
- package/dist/esm/components/Agent/AgentProfileCard.js +35 -38
- package/dist/esm/components/User/ReportingLinesDetails.compiled.css +5 -0
- package/dist/esm/components/User/ReportingLinesDetails.js +8 -19
- package/dist/esm/util/analytics.js +2 -2
- package/dist/types/components/Agent/Actions.d.ts +1 -11
- package/dist/types/components/Agent/AgentProfileCard.d.ts +3 -14
- package/dist/types/components/Agent/lazyAgentProfileCard.d.ts +1 -13
- package/dist/types/components/User/ReportingLinesDetails.d.ts +2 -2
- package/dist/types-ts4.5/components/Agent/Actions.d.ts +1 -11
- package/dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts +3 -14
- package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +1 -13
- package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +2 -2
- package/package.json +4 -7
- package/dist/cjs/components/Agent/ActionsCompiled.js +0 -148
- package/dist/cjs/components/Agent/AgentProfileCardCompiled.js +0 -266
- package/dist/cjs/components/User/ReportingLinesDetailsCompiled.compiled.css +0 -11
- package/dist/cjs/components/User/ReportingLinesDetailsCompiled.js +0 -109
- package/dist/es2019/components/Agent/ActionsCompiled.js +0 -127
- package/dist/es2019/components/Agent/AgentProfileCardCompiled.js +0 -209
- package/dist/es2019/components/User/ReportingLinesDetailsCompiled.compiled.css +0 -11
- package/dist/es2019/components/User/ReportingLinesDetailsCompiled.js +0 -96
- package/dist/esm/components/Agent/ActionsCompiled.js +0 -139
- package/dist/esm/components/Agent/AgentProfileCardCompiled.js +0 -257
- package/dist/esm/components/User/ReportingLinesDetailsCompiled.compiled.css +0 -11
- package/dist/esm/components/User/ReportingLinesDetailsCompiled.js +0 -102
- package/dist/types/components/Agent/ActionsCompiled.d.ts +0 -15
- package/dist/types/components/Agent/AgentProfileCardCompiled.d.ts +0 -4
- package/dist/types/components/User/ReportingLinesDetailsCompiled.d.ts +0 -5
- package/dist/types-ts4.5/components/Agent/ActionsCompiled.d.ts +0 -15
- package/dist/types-ts4.5/components/Agent/AgentProfileCardCompiled.d.ts +0 -4
- package/dist/types-ts4.5/components/User/ReportingLinesDetailsCompiled.d.ts +0 -5
- /package/dist/cjs/components/Agent/{ActionsCompiled.compiled.css → Actions.compiled.css} +0 -0
- /package/dist/cjs/components/Agent/{AgentProfileCardCompiled.compiled.css → AgentProfileCard.compiled.css} +0 -0
- /package/dist/es2019/components/Agent/{ActionsCompiled.compiled.css → Actions.compiled.css} +0 -0
- /package/dist/es2019/components/Agent/{AgentProfileCardCompiled.compiled.css → AgentProfileCard.compiled.css} +0 -0
- /package/dist/esm/components/Agent/{ActionsCompiled.compiled.css → Actions.compiled.css} +0 -0
- /package/dist/esm/components/Agent/{AgentProfileCardCompiled.compiled.css → AgentProfileCard.compiled.css} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
/* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import "./AgentProfileCard.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
1
4
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
5
|
import { useIntl } from 'react-intl-next';
|
|
3
6
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
import {
|
|
6
|
-
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
7
|
-
import { Box, Stack, xcss } from '@atlaskit/primitives';
|
|
8
|
+
import { Box, Stack } from '@atlaskit/primitives/compiled';
|
|
8
9
|
import { AgentAvatar, AgentBanner, AgentProfileCreator, AgentProfileInfo, AgentStarCount } from '@atlaskit/rovo-agent-components';
|
|
9
10
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
|
|
10
11
|
import { fireEvent, PACKAGE_META_DATA, profileCardRendered } from '../../util/analytics';
|
|
@@ -12,25 +13,18 @@ import { getPageTime } from '../../util/performance';
|
|
|
12
13
|
import { LoadingState } from '../common/LoadingState';
|
|
13
14
|
import { ErrorMessage } from '../Error';
|
|
14
15
|
import { AgentActions } from './Actions';
|
|
15
|
-
import { default as AgentProfileCardCompiled } from './AgentProfileCardCompiled';
|
|
16
16
|
import { AgentProfileCardWrapper } from './AgentProfileCardWrapper';
|
|
17
17
|
import { ConversationStarters } from './ConversationStarters';
|
|
18
18
|
import { useAgentUrlActions } from './hooks/useAgentActions';
|
|
19
19
|
import { messages } from './messages';
|
|
20
|
-
const styles =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
29
|
-
const cardContainerStyles = xcss({
|
|
30
|
-
borderRadius: 'radius.large',
|
|
31
|
-
boxShadow: 'elevation.shadow.overlay',
|
|
32
|
-
position: 'relative'
|
|
33
|
-
});
|
|
20
|
+
const styles = {
|
|
21
|
+
detailWrapper: "_18zrpxbi _1q51xy5q",
|
|
22
|
+
detailWrapperRefresh: "_1q511ejb",
|
|
23
|
+
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
24
|
+
cardContainerStyles: "_2rko1mok _16qs130s _kqswh2mm",
|
|
25
|
+
agentProfileInfoWrapper: "_18zrpxbi",
|
|
26
|
+
conversationStartersWrapper: "_18zrutpp"
|
|
27
|
+
};
|
|
34
28
|
const AgentProfileCard = ({
|
|
35
29
|
agent,
|
|
36
30
|
isLoading,
|
|
@@ -62,7 +56,7 @@ const AgentProfileCard = ({
|
|
|
62
56
|
formatMessage
|
|
63
57
|
} = useIntl();
|
|
64
58
|
const {
|
|
65
|
-
fireEvent:
|
|
59
|
+
fireEvent: fireAnalyticsNext
|
|
66
60
|
} = useAnalyticsEventsNext();
|
|
67
61
|
const userDefinedConversationStarters = agent === null || agent === void 0 ? void 0 : (_agent$user_defined_c = agent.user_defined_conversation_starters) === null || _agent$user_defined_c === void 0 ? void 0 : _agent$user_defined_c.map(starter => {
|
|
68
62
|
return {
|
|
@@ -85,16 +79,16 @@ const AgentProfileCard = ({
|
|
|
85
79
|
const handleSetFavourite = useCallback(async () => {
|
|
86
80
|
if (agent !== null && agent !== void 0 && agent.id) {
|
|
87
81
|
try {
|
|
88
|
-
await resourceClient.setFavouriteAgent(agent.id, !isStarred, fireAnalytics,
|
|
82
|
+
await resourceClient.setFavouriteAgent(agent.id, !isStarred, fireAnalytics, fireAnalyticsNext);
|
|
89
83
|
if (isStarred) {
|
|
90
84
|
setStarCount(starCount ? starCount - 1 : 0);
|
|
91
85
|
} else {
|
|
92
86
|
setStarCount((starCount || 0) + 1);
|
|
93
87
|
}
|
|
94
88
|
setIsStarred(!isStarred);
|
|
95
|
-
} catch
|
|
89
|
+
} catch {}
|
|
96
90
|
}
|
|
97
|
-
}, [agent === null || agent === void 0 ? void 0 : agent.id, fireAnalytics,
|
|
91
|
+
}, [agent === null || agent === void 0 ? void 0 : agent.id, fireAnalytics, fireAnalyticsNext, isStarred, resourceClient, starCount]);
|
|
98
92
|
const handleOnDelete = useCallback(async () => {
|
|
99
93
|
if (agent && onDeleteAgent) {
|
|
100
94
|
// Optimistically remove from cache
|
|
@@ -102,7 +96,7 @@ const AgentProfileCard = ({
|
|
|
102
96
|
restore
|
|
103
97
|
} = onDeleteAgent(agent.id);
|
|
104
98
|
try {
|
|
105
|
-
await resourceClient.deleteAgent(agent.id, fireAnalytics,
|
|
99
|
+
await resourceClient.deleteAgent(agent.id, fireAnalytics, fireAnalyticsNext);
|
|
106
100
|
addFlag === null || addFlag === void 0 ? void 0 : addFlag({
|
|
107
101
|
title: formatMessage(messages.agentDeletedSuccessFlagTitle),
|
|
108
102
|
description: formatMessage(messages.agentDeletedSuccessFlagDescription, {
|
|
@@ -111,7 +105,7 @@ const AgentProfileCard = ({
|
|
|
111
105
|
type: 'success',
|
|
112
106
|
id: 'ptc-directory.agent-profile.delete-agent-success'
|
|
113
107
|
});
|
|
114
|
-
} catch
|
|
108
|
+
} catch {
|
|
115
109
|
// Restore agent to cache on error
|
|
116
110
|
restore();
|
|
117
111
|
addFlag === null || addFlag === void 0 ? void 0 : addFlag({
|
|
@@ -122,11 +116,11 @@ const AgentProfileCard = ({
|
|
|
122
116
|
});
|
|
123
117
|
}
|
|
124
118
|
}
|
|
125
|
-
}, [addFlag, agent, formatMessage, onDeleteAgent, resourceClient, fireAnalytics,
|
|
119
|
+
}, [addFlag, agent, formatMessage, onDeleteAgent, resourceClient, fireAnalytics, fireAnalyticsNext]);
|
|
126
120
|
useEffect(() => {
|
|
127
121
|
if (!isLoading && agent) {
|
|
128
122
|
if (fg('ptc-enable-profile-card-analytics-refactor')) {
|
|
129
|
-
|
|
123
|
+
fireAnalyticsNext(`ui.rovoAgentProfilecard.rendered.content`, {
|
|
130
124
|
...PACKAGE_META_DATA,
|
|
131
125
|
firedAt: Math.round(getPageTime())
|
|
132
126
|
});
|
|
@@ -134,40 +128,42 @@ const AgentProfileCard = ({
|
|
|
134
128
|
fireAnalytics(profileCardRendered('agent', 'content'));
|
|
135
129
|
}
|
|
136
130
|
}
|
|
137
|
-
}, [agent, fireAnalytics,
|
|
131
|
+
}, [agent, fireAnalytics, isLoading, fireAnalyticsNext]);
|
|
138
132
|
if (isLoading) {
|
|
139
133
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(LoadingState, {
|
|
140
134
|
profileType: "agent",
|
|
141
135
|
fireAnalytics: fireAnalytics,
|
|
142
|
-
fireAnalyticsNext:
|
|
136
|
+
fireAnalyticsNext: fireAnalyticsNext
|
|
143
137
|
}));
|
|
144
138
|
}
|
|
145
139
|
if (hasError || !agent) {
|
|
146
140
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
141
|
+
fireAnalyticsNext: fireAnalyticsNext,
|
|
147
142
|
errorType: errorType,
|
|
148
|
-
fireAnalytics: fireAnalytics
|
|
149
|
-
fireAnalyticsNext: fireEventNext
|
|
143
|
+
fireAnalytics: fireAnalytics
|
|
150
144
|
}));
|
|
151
145
|
}
|
|
152
146
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
153
|
-
xcss: cardContainerStyles
|
|
147
|
+
xcss: styles.cardContainerStyles
|
|
154
148
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
155
149
|
agentId: agent.id,
|
|
156
150
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
157
|
-
height: 96,
|
|
151
|
+
height: fg('rovo_agent_empty_state_refresh') ? 48 : 96,
|
|
158
152
|
agentIdentityAccountId: agent.identity_account_id
|
|
159
153
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
160
|
-
xcss: avatarStyles
|
|
154
|
+
xcss: styles.avatarStyles
|
|
161
155
|
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
162
156
|
agentId: agent.id,
|
|
163
157
|
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
164
158
|
agentIdentityAccountId: agent.identity_account_id,
|
|
165
|
-
size:
|
|
159
|
+
size: fg('rovo_agent_empty_state_refresh') ? 'large' : 'xlarge',
|
|
166
160
|
isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
167
161
|
forgeAgentIconUrl: agent.icon
|
|
168
162
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
169
163
|
space: "space.100",
|
|
170
|
-
xcss: styles
|
|
164
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.detailWrapperRefresh : styles.detailWrapper
|
|
165
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
166
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.agentProfileInfoWrapper : null
|
|
171
167
|
}, /*#__PURE__*/React.createElement(AgentProfileInfo, {
|
|
172
168
|
agentName: agent.name,
|
|
173
169
|
isStarred: isStarred,
|
|
@@ -182,12 +178,14 @@ const AgentProfileCard = ({
|
|
|
182
178
|
isLoading: false,
|
|
183
179
|
onCreatorLinkClick: () => {}
|
|
184
180
|
}),
|
|
185
|
-
starCountRender: /*#__PURE__*/React.createElement(AgentStarCount, {
|
|
181
|
+
starCountRender: fg('rovo_agent_empty_state_refresh') ? null : /*#__PURE__*/React.createElement(AgentStarCount, {
|
|
186
182
|
starCount: starCount,
|
|
187
183
|
isLoading: false
|
|
188
184
|
}),
|
|
189
185
|
agentDescription: agent.description
|
|
190
|
-
}), /*#__PURE__*/React.createElement(
|
|
186
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
187
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.conversationStartersWrapper : null
|
|
188
|
+
}, /*#__PURE__*/React.createElement(ConversationStarters, {
|
|
191
189
|
isAgentDefault: agent.is_default,
|
|
192
190
|
userDefinedConversationStarters: userDefinedConversationStarters,
|
|
193
191
|
onConversationStarterClick: conversationStarter => {
|
|
@@ -196,7 +194,7 @@ const AgentProfileCard = ({
|
|
|
196
194
|
prompt: conversationStarter.message
|
|
197
195
|
});
|
|
198
196
|
}
|
|
199
|
-
})), /*#__PURE__*/React.createElement(AgentActions, {
|
|
197
|
+
}))), /*#__PURE__*/React.createElement(AgentActions, {
|
|
200
198
|
agent: agent,
|
|
201
199
|
onEditAgent: () => onEditAgent(agent.id),
|
|
202
200
|
onCopyAgent: () => onCopyAgent(agent.id),
|
|
@@ -208,5 +206,4 @@ const AgentProfileCard = ({
|
|
|
208
206
|
hideMoreActions: hideMoreActions
|
|
209
207
|
})));
|
|
210
208
|
};
|
|
211
|
-
|
|
212
|
-
export default AgentProfileCardExport;
|
|
209
|
+
export default AgentProfileCard;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
1
2
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
2
3
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
3
4
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
5
|
+
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
4
6
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
7
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
8
|
+
._otyrze3t{margin-bottom:var(--ds-space-0,0)}
|
|
9
|
+
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
5
10
|
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
6
11
|
._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
@@ -5,30 +5,20 @@ import React from 'react';
|
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
6
6
|
import Avatar from '@atlaskit/avatar';
|
|
7
7
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
8
|
+
import { cx } from '@atlaskit/css';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
-
import {
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
11
|
-
import { Box, xcss } from '@atlaskit/primitives';
|
|
12
|
-
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
10
|
+
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
13
11
|
import messages from '../../messages';
|
|
14
12
|
import { ManagerName, ManagerSection, OffsetWrapper, ReportingLinesSection } from '../../styled/ReportingLines';
|
|
15
13
|
import { PACKAGE_META_DATA, reportingLinesClicked } from '../../util/analytics';
|
|
16
14
|
import { getPageTime } from '../../util/performance';
|
|
17
|
-
import { default as ReportingLinesDetailsCompiled } from './ReportingLinesDetailsCompiled';
|
|
18
15
|
function getProfileHref(userId, profileUrl) {
|
|
19
16
|
return profileUrl ? profileUrl + userId : undefined;
|
|
20
17
|
}
|
|
21
|
-
const reportingLinesHeadingDefaultStyles = xcss({
|
|
22
|
-
color: 'color.text',
|
|
23
|
-
font: 'font.heading.xxsmall',
|
|
24
|
-
fontWeight: 'font.weight.semibold',
|
|
25
|
-
marginBottom: 'space.100'
|
|
26
|
-
});
|
|
27
|
-
const reportingLinesHeadingStyles = xcss({
|
|
28
|
-
marginBottom: '0'
|
|
29
|
-
});
|
|
30
18
|
const styles = {
|
|
31
|
-
reportingLinesButton: "_ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _bfhksm61 _irr31dpa"
|
|
19
|
+
reportingLinesButton: "_ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _bfhksm61 _irr31dpa",
|
|
20
|
+
reportingLinesHeadingDefaultStyles: "_11c81vhk _syazi7uo _k48p1pd9 _otyru2gc",
|
|
21
|
+
reportingLinesHeadingStyles: "_otyrze3t"
|
|
32
22
|
};
|
|
33
23
|
const avatarGroupMaxCount = 5;
|
|
34
24
|
const ReportingLinesDetails = props => {
|
|
@@ -96,7 +86,7 @@ const ReportingLinesDetails = props => {
|
|
|
96
86
|
})
|
|
97
87
|
};
|
|
98
88
|
return /*#__PURE__*/React.createElement(React.Fragment, null, manager && /*#__PURE__*/React.createElement(ReportingLinesSection, null, /*#__PURE__*/React.createElement(Box, {
|
|
99
|
-
xcss:
|
|
89
|
+
xcss: cx(styles.reportingLinesHeadingDefaultStyles, styles.reportingLinesHeadingStyles)
|
|
100
90
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.managerSectionHeading)), /*#__PURE__*/React.createElement(OffsetWrapper, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
101
91
|
onClick: () => onReportingLinksClick(manager, 'manager', getProfileHref(manager.accountIdentifier, reportingLinesProfileUrl)),
|
|
102
92
|
isDisabled: !onReportingLinesClick,
|
|
@@ -105,7 +95,7 @@ const ReportingLinesDetails = props => {
|
|
|
105
95
|
size: "xsmall",
|
|
106
96
|
src: (_manager$pii = manager.pii) === null || _manager$pii === void 0 ? void 0 : _manager$pii.picture
|
|
107
97
|
}), /*#__PURE__*/React.createElement(ManagerName, null, (_manager$pii2 = manager.pii) === null || _manager$pii2 === void 0 ? void 0 : _manager$pii2.name))))), hasReports && /*#__PURE__*/React.createElement(ReportingLinesSection, null, /*#__PURE__*/React.createElement(Box, {
|
|
108
|
-
xcss: reportingLinesHeadingDefaultStyles
|
|
98
|
+
xcss: styles.reportingLinesHeadingDefaultStyles
|
|
109
99
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.directReportsSectionHeading)), /*#__PURE__*/React.createElement(AvatarGroup, {
|
|
110
100
|
appearance: "stack",
|
|
111
101
|
size: "small",
|
|
@@ -124,5 +114,4 @@ const ReportingLinesDetails = props => {
|
|
|
124
114
|
showMoreButtonProps: showMoreButtonProps
|
|
125
115
|
})));
|
|
126
116
|
};
|
|
127
|
-
|
|
128
|
-
export default ReportingLinesDetailsExport;
|
|
117
|
+
export default ReportingLinesDetails;
|
|
@@ -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: "24.
|
|
7
|
+
packageVersion: "24.24.0"
|
|
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: "24.
|
|
48
|
+
packageVersion: "24.24.0",
|
|
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', "24.
|
|
7
|
+
headers.append('atl-client-version', "24.24.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', "24.
|
|
62
|
+
headers.append('atl-client-version', "24.24.0");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -1,49 +1,29 @@
|
|
|
1
|
+
/* Actions.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
1
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
import "./Actions.compiled.css";
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
3
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
7
|
import React, { useCallback, useState } from 'react';
|
|
5
8
|
import { defineMessages, useIntl } from 'react-intl-next';
|
|
6
9
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
10
|
import Button from '@atlaskit/button/new';
|
|
8
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
-
import {
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
11
|
-
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
12
|
+
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
12
13
|
import { AgentDropdownMenu, ChatPillIcon } from '@atlaskit/rovo-agent-components';
|
|
13
14
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
|
|
14
15
|
import { fireEvent } from '../../util/analytics';
|
|
15
|
-
import { AgentActions as AgentActionsCompiled } from './ActionsCompiled';
|
|
16
16
|
import { AgentDeleteConfirmationModal } from './AgentDeleteConfirmationModal';
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
var
|
|
27
|
-
paddingInline: 'space.025'
|
|
28
|
-
});
|
|
29
|
-
var chatPillTextStyles = xcss({
|
|
30
|
-
wordBreak: 'break-word',
|
|
31
|
-
textAlign: 'left',
|
|
32
|
-
whiteSpace: 'pre-wrap'
|
|
33
|
-
});
|
|
34
|
-
var chatPillIconWrapper = xcss({
|
|
35
|
-
minWidth: '20px',
|
|
36
|
-
height: '20px'
|
|
37
|
-
});
|
|
38
|
-
var actionsWrapperStyles = xcss({
|
|
39
|
-
borderTopWidth: 'border.width',
|
|
40
|
-
borderTopStyle: 'solid',
|
|
41
|
-
borderColor: 'color.border',
|
|
42
|
-
padding: 'space.200',
|
|
43
|
-
marginBlockStart: 'space.200',
|
|
44
|
-
color: 'color.text'
|
|
45
|
-
});
|
|
46
|
-
var _AgentActions = function _AgentActions(_ref) {
|
|
17
|
+
var styles = {
|
|
18
|
+
chatToAgentButtonContainer: "_1bsb1osq",
|
|
19
|
+
chatToAgentButtonWrapper: "_1e0c1txw _1bah1h6o _k48p1wq8 _4t3igktf",
|
|
20
|
+
chatPillButtonInlineStyles: "_18zrv77o",
|
|
21
|
+
chatPillTextStyles: "_1nmz1hna _y3gn1e5h _o5721jtm",
|
|
22
|
+
chatPillIconWrapper: "_1ul9gktf _4t3igktf",
|
|
23
|
+
actionsWrapperStyles: "_189ee4h9 _1h6d1l7x _15a5nqa1 _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _1pfhpxbi _syazi7uo",
|
|
24
|
+
actionsWrapperStylesRefresh: "_ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _syazi7uo"
|
|
25
|
+
};
|
|
26
|
+
export var AgentActions = function AgentActions(_ref) {
|
|
47
27
|
var onEditAgent = _ref.onEditAgent,
|
|
48
28
|
onDeleteAgent = _ref.onDeleteAgent,
|
|
49
29
|
onDuplicateAgent = _ref.onDuplicateAgent,
|
|
@@ -109,9 +89,9 @@ var _AgentActions = function _AgentActions(_ref) {
|
|
|
109
89
|
}, [agent.id, createAnalyticsEvent, fireEventNext]);
|
|
110
90
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Inline, {
|
|
111
91
|
space: "space.100",
|
|
112
|
-
xcss: actionsWrapperStyles
|
|
92
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.actionsWrapperStylesRefresh : styles.actionsWrapperStyles
|
|
113
93
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
114
|
-
xcss: chatToAgentButtonContainer
|
|
94
|
+
xcss: styles.chatToAgentButtonContainer
|
|
115
95
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
116
96
|
shouldFitContainer: true,
|
|
117
97
|
onClick: function onClick(e) {
|
|
@@ -119,14 +99,15 @@ var _AgentActions = function _AgentActions(_ref) {
|
|
|
119
99
|
onChatClick(e);
|
|
120
100
|
}
|
|
121
101
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
122
|
-
xcss: chatToAgentButtonWrapper
|
|
102
|
+
xcss: styles.chatToAgentButtonWrapper
|
|
123
103
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
124
104
|
space: "space.050",
|
|
125
|
-
xcss: chatPillButtonInlineStyles
|
|
126
|
-
|
|
127
|
-
|
|
105
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? null : styles.chatPillButtonInlineStyles,
|
|
106
|
+
alignBlock: "center"
|
|
107
|
+
}, !fg('rovo_agent_empty_state_refresh') && /*#__PURE__*/React.createElement(Box, {
|
|
108
|
+
xcss: styles.chatPillIconWrapper
|
|
128
109
|
}, /*#__PURE__*/React.createElement(ChatPillIcon, null)), /*#__PURE__*/React.createElement(Box, {
|
|
129
|
-
xcss: chatPillTextStyles
|
|
110
|
+
xcss: styles.chatPillTextStyles
|
|
130
111
|
}, formatMessage(messages.actionChatToAgent)))))), !hideMoreActions && /*#__PURE__*/React.createElement(AgentDropdownMenu, {
|
|
131
112
|
agentId: agent.id,
|
|
132
113
|
onDeleteAgent: handleDeleteAgent,
|
|
@@ -156,5 +137,4 @@ var messages = defineMessages({
|
|
|
156
137
|
defaultMessage: 'Chat with Agent',
|
|
157
138
|
description: 'Text for the "chat with agent" action to chat to the agent'
|
|
158
139
|
}
|
|
159
|
-
});
|
|
160
|
-
export var AgentActions = componentWithFG('profilecard_primitives_compiled', AgentActionsCompiled, _AgentActions);
|
|
140
|
+
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
/* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
|
+
import "./AgentProfileCard.compiled.css";
|
|
6
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
8
|
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) { _defineProperty(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; }
|
|
6
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
@@ -8,9 +11,7 @@ import React, { useCallback, useEffect, useState } from 'react';
|
|
|
8
11
|
import { useIntl } from 'react-intl-next';
|
|
9
12
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
10
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
-
import {
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
13
|
-
import { Box, Stack, xcss } from '@atlaskit/primitives';
|
|
14
|
+
import { Box, Stack } from '@atlaskit/primitives/compiled';
|
|
14
15
|
import { AgentAvatar, AgentBanner, AgentProfileCreator, AgentProfileInfo, AgentStarCount } from '@atlaskit/rovo-agent-components';
|
|
15
16
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
|
|
16
17
|
import { fireEvent, PACKAGE_META_DATA, profileCardRendered } from '../../util/analytics';
|
|
@@ -18,25 +19,18 @@ import { getPageTime } from '../../util/performance';
|
|
|
18
19
|
import { LoadingState } from '../common/LoadingState';
|
|
19
20
|
import { ErrorMessage } from '../Error';
|
|
20
21
|
import { AgentActions } from './Actions';
|
|
21
|
-
import { default as AgentProfileCardCompiled } from './AgentProfileCardCompiled';
|
|
22
22
|
import { AgentProfileCardWrapper } from './AgentProfileCardWrapper';
|
|
23
23
|
import { ConversationStarters } from './ConversationStarters';
|
|
24
24
|
import { useAgentUrlActions } from './hooks/useAgentActions';
|
|
25
25
|
import { messages } from './messages';
|
|
26
|
-
var styles =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
35
|
-
var cardContainerStyles = xcss({
|
|
36
|
-
borderRadius: 'radius.large',
|
|
37
|
-
boxShadow: 'elevation.shadow.overlay',
|
|
38
|
-
position: 'relative'
|
|
39
|
-
});
|
|
26
|
+
var styles = {
|
|
27
|
+
detailWrapper: "_18zrpxbi _1q51xy5q",
|
|
28
|
+
detailWrapperRefresh: "_1q511ejb",
|
|
29
|
+
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
30
|
+
cardContainerStyles: "_2rko1mok _16qs130s _kqswh2mm",
|
|
31
|
+
agentProfileInfoWrapper: "_18zrpxbi",
|
|
32
|
+
conversationStartersWrapper: "_18zrutpp"
|
|
33
|
+
};
|
|
40
34
|
var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
41
35
|
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
42
36
|
var agent = _ref.agent,
|
|
@@ -71,7 +65,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
71
65
|
var _useIntl = useIntl(),
|
|
72
66
|
formatMessage = _useIntl.formatMessage;
|
|
73
67
|
var _useAnalyticsEventsNe = useAnalyticsEventsNext(),
|
|
74
|
-
|
|
68
|
+
fireAnalyticsNext = _useAnalyticsEventsNe.fireEvent;
|
|
75
69
|
var userDefinedConversationStarters = agent === null || agent === void 0 || (_agent$user_defined_c = agent.user_defined_conversation_starters) === null || _agent$user_defined_c === void 0 ? void 0 : _agent$user_defined_c.map(function (starter) {
|
|
76
70
|
return {
|
|
77
71
|
message: starter,
|
|
@@ -99,7 +93,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
99
93
|
}
|
|
100
94
|
_context.prev = 1;
|
|
101
95
|
_context.next = 4;
|
|
102
|
-
return resourceClient.setFavouriteAgent(agent.id, !isStarred, fireAnalytics,
|
|
96
|
+
return resourceClient.setFavouriteAgent(agent.id, !isStarred, fireAnalytics, fireAnalyticsNext);
|
|
103
97
|
case 4:
|
|
104
98
|
if (isStarred) {
|
|
105
99
|
setStarCount(starCount ? starCount - 1 : 0);
|
|
@@ -117,7 +111,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
117
111
|
return _context.stop();
|
|
118
112
|
}
|
|
119
113
|
}, _callee, null, [[1, 8]]);
|
|
120
|
-
})), [agent === null || agent === void 0 ? void 0 : agent.id, fireAnalytics,
|
|
114
|
+
})), [agent === null || agent === void 0 ? void 0 : agent.id, fireAnalytics, fireAnalyticsNext, isStarred, resourceClient, starCount]);
|
|
121
115
|
var handleOnDelete = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
122
116
|
var _onDeleteAgent, restore;
|
|
123
117
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -131,7 +125,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
131
125
|
_onDeleteAgent = onDeleteAgent(agent.id), restore = _onDeleteAgent.restore;
|
|
132
126
|
_context2.prev = 2;
|
|
133
127
|
_context2.next = 5;
|
|
134
|
-
return resourceClient.deleteAgent(agent.id, fireAnalytics,
|
|
128
|
+
return resourceClient.deleteAgent(agent.id, fireAnalytics, fireAnalyticsNext);
|
|
135
129
|
case 5:
|
|
136
130
|
addFlag === null || addFlag === void 0 || addFlag({
|
|
137
131
|
title: formatMessage(messages.agentDeletedSuccessFlagTitle),
|
|
@@ -159,51 +153,53 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
159
153
|
return _context2.stop();
|
|
160
154
|
}
|
|
161
155
|
}, _callee2, null, [[2, 8]]);
|
|
162
|
-
})), [addFlag, agent, formatMessage, onDeleteAgent, resourceClient, fireAnalytics,
|
|
156
|
+
})), [addFlag, agent, formatMessage, onDeleteAgent, resourceClient, fireAnalytics, fireAnalyticsNext]);
|
|
163
157
|
useEffect(function () {
|
|
164
158
|
if (!isLoading && agent) {
|
|
165
159
|
if (fg('ptc-enable-profile-card-analytics-refactor')) {
|
|
166
|
-
|
|
160
|
+
fireAnalyticsNext("ui.rovoAgentProfilecard.rendered.content", _objectSpread(_objectSpread({}, PACKAGE_META_DATA), {}, {
|
|
167
161
|
firedAt: Math.round(getPageTime())
|
|
168
162
|
}));
|
|
169
163
|
} else {
|
|
170
164
|
fireAnalytics(profileCardRendered('agent', 'content'));
|
|
171
165
|
}
|
|
172
166
|
}
|
|
173
|
-
}, [agent, fireAnalytics,
|
|
167
|
+
}, [agent, fireAnalytics, isLoading, fireAnalyticsNext]);
|
|
174
168
|
if (isLoading) {
|
|
175
169
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(LoadingState, {
|
|
176
170
|
profileType: "agent",
|
|
177
171
|
fireAnalytics: fireAnalytics,
|
|
178
|
-
fireAnalyticsNext:
|
|
172
|
+
fireAnalyticsNext: fireAnalyticsNext
|
|
179
173
|
}));
|
|
180
174
|
}
|
|
181
175
|
if (hasError || !agent) {
|
|
182
176
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
177
|
+
fireAnalyticsNext: fireAnalyticsNext,
|
|
183
178
|
errorType: errorType,
|
|
184
|
-
fireAnalytics: fireAnalytics
|
|
185
|
-
fireAnalyticsNext: fireEventNext
|
|
179
|
+
fireAnalytics: fireAnalytics
|
|
186
180
|
}));
|
|
187
181
|
}
|
|
188
182
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
189
|
-
xcss: cardContainerStyles
|
|
183
|
+
xcss: styles.cardContainerStyles
|
|
190
184
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
191
185
|
agentId: agent.id,
|
|
192
186
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
193
|
-
height: 96,
|
|
187
|
+
height: fg('rovo_agent_empty_state_refresh') ? 48 : 96,
|
|
194
188
|
agentIdentityAccountId: agent.identity_account_id
|
|
195
189
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
196
|
-
xcss: avatarStyles
|
|
190
|
+
xcss: styles.avatarStyles
|
|
197
191
|
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
198
192
|
agentId: agent.id,
|
|
199
193
|
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
200
194
|
agentIdentityAccountId: agent.identity_account_id,
|
|
201
|
-
size:
|
|
195
|
+
size: fg('rovo_agent_empty_state_refresh') ? 'large' : 'xlarge',
|
|
202
196
|
isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
203
197
|
forgeAgentIconUrl: agent.icon
|
|
204
198
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
205
199
|
space: "space.100",
|
|
206
|
-
xcss: styles
|
|
200
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.detailWrapperRefresh : styles.detailWrapper
|
|
201
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
202
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.agentProfileInfoWrapper : null
|
|
207
203
|
}, /*#__PURE__*/React.createElement(AgentProfileInfo, {
|
|
208
204
|
agentName: agent.name,
|
|
209
205
|
isStarred: isStarred,
|
|
@@ -218,12 +214,14 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
218
214
|
isLoading: false,
|
|
219
215
|
onCreatorLinkClick: function onCreatorLinkClick() {}
|
|
220
216
|
}),
|
|
221
|
-
starCountRender: /*#__PURE__*/React.createElement(AgentStarCount, {
|
|
217
|
+
starCountRender: fg('rovo_agent_empty_state_refresh') ? null : /*#__PURE__*/React.createElement(AgentStarCount, {
|
|
222
218
|
starCount: starCount,
|
|
223
219
|
isLoading: false
|
|
224
220
|
}),
|
|
225
221
|
agentDescription: agent.description
|
|
226
|
-
}), /*#__PURE__*/React.createElement(
|
|
222
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
223
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.conversationStartersWrapper : null
|
|
224
|
+
}, /*#__PURE__*/React.createElement(ConversationStarters, {
|
|
227
225
|
isAgentDefault: agent.is_default,
|
|
228
226
|
userDefinedConversationStarters: userDefinedConversationStarters,
|
|
229
227
|
onConversationStarterClick: function onConversationStarterClick(conversationStarter) {
|
|
@@ -232,7 +230,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
232
230
|
prompt: conversationStarter.message
|
|
233
231
|
});
|
|
234
232
|
}
|
|
235
|
-
})), /*#__PURE__*/React.createElement(AgentActions, {
|
|
233
|
+
}))), /*#__PURE__*/React.createElement(AgentActions, {
|
|
236
234
|
agent: agent,
|
|
237
235
|
onEditAgent: function onEditAgent() {
|
|
238
236
|
return _onEditAgent(agent.id);
|
|
@@ -256,5 +254,4 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
256
254
|
hideMoreActions: hideMoreActions
|
|
257
255
|
})));
|
|
258
256
|
};
|
|
259
|
-
|
|
260
|
-
export default AgentProfileCardExport;
|
|
257
|
+
export default AgentProfileCard;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
1
2
|
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
2
3
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
3
4
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
5
|
+
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
4
6
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
7
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
8
|
+
._otyrze3t{margin-bottom:var(--ds-space-0,0)}
|
|
9
|
+
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
5
10
|
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
6
11
|
._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|