@atlaskit/profilecard 24.21.9 → 24.22.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/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-example--default--rovo-agent-empty-state-refresh-false.png +0 -0
- package/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-example--default--rovo-agent-empty-state-refresh-true.png +0 -0
- package/__tests__/vr-tests/agent-profilecard.vr.tsx +3 -4
- package/dist/cjs/components/Agent/ActionsCompiled.compiled.css +4 -0
- package/dist/cjs/components/Agent/ActionsCompiled.js +5 -4
- package/dist/cjs/components/Agent/AgentProfileCardCompiled.compiled.css +3 -1
- package/dist/cjs/components/Agent/AgentProfileCardCompiled.js +14 -7
- package/dist/cjs/components/Team/TeamProfileCard.js +1 -4
- package/dist/es2019/components/Agent/ActionsCompiled.compiled.css +4 -0
- package/dist/es2019/components/Agent/ActionsCompiled.js +5 -4
- package/dist/es2019/components/Agent/AgentProfileCardCompiled.compiled.css +3 -1
- package/dist/es2019/components/Agent/AgentProfileCardCompiled.js +14 -7
- package/dist/es2019/components/Team/TeamProfileCard.js +1 -4
- package/dist/esm/components/Agent/ActionsCompiled.compiled.css +4 -0
- package/dist/esm/components/Agent/ActionsCompiled.js +5 -4
- package/dist/esm/components/Agent/AgentProfileCardCompiled.compiled.css +3 -1
- package/dist/esm/components/Agent/AgentProfileCardCompiled.js +14 -7
- package/dist/esm/components/Team/TeamProfileCard.js +1 -4
- package/package.json +7 -4
- package/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-example--default.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 24.22.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
|
|
8
|
+
tsignores added for help-center local consumpton removed
|
|
9
|
+
|
|
10
|
+
## 24.22.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`4e43c6db295d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4e43c6db295d3) -
|
|
15
|
+
[ux] Refresh agent profile card UI
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 24.21.9
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
Binary file
|
|
Binary file
|
|
@@ -3,9 +3,8 @@ import { snapshot } from '@af/visual-regression';
|
|
|
3
3
|
import { AgentProfileCardExample } from '../../examples/13-agent-profilecard';
|
|
4
4
|
|
|
5
5
|
snapshot(AgentProfileCardExample, {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
6
|
+
featureFlags: {
|
|
7
|
+
profilecard_primitives_compiled: true,
|
|
8
|
+
rovo_agent_empty_state_refresh: [true, false],
|
|
10
9
|
},
|
|
11
10
|
});
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
._18zrv77o{padding-inline:var(--ds-space-025,2px)}
|
|
4
4
|
._1h6d1l7x{border-color:var(--ds-border,#0b120e24)}._15a5nqa1{border-top-style:solid}
|
|
5
5
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
6
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
6
7
|
._1bah1h6o{justify-content:center}
|
|
7
8
|
._1bsb1osq{width:100%}
|
|
8
9
|
._1e0c1txw{display:flex}
|
|
@@ -11,9 +12,12 @@
|
|
|
11
12
|
._1ul9gktf{min-width:20px}
|
|
12
13
|
._4t3igktf{height:20px}
|
|
13
14
|
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
15
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
14
16
|
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
15
17
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
18
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
16
19
|
._o5721jtm{white-space:pre-wrap}
|
|
17
20
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
18
21
|
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
22
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
19
23
|
._y3gn1e5h{text-align:left}
|
|
@@ -29,7 +29,8 @@ var styles = {
|
|
|
29
29
|
chatPillButtonInlineStyles: "_18zrv77o",
|
|
30
30
|
chatPillTextStyles: "_1nmz1hna _y3gn1e5h _o5721jtm",
|
|
31
31
|
chatPillIconWrapper: "_1ul9gktf _4t3igktf",
|
|
32
|
-
actionsWrapperStyles: "_189ee4h9 _1h6d1l7x _15a5nqa1 _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _1pfhpxbi _syazi7uo"
|
|
32
|
+
actionsWrapperStyles: "_189ee4h9 _1h6d1l7x _15a5nqa1 _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _1pfhpxbi _syazi7uo",
|
|
33
|
+
actionsWrapperStylesRefresh: "_ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _syazi7uo"
|
|
33
34
|
};
|
|
34
35
|
var AgentActions = exports.AgentActions = function AgentActions(_ref) {
|
|
35
36
|
var onEditAgent = _ref.onEditAgent,
|
|
@@ -97,7 +98,7 @@ var AgentActions = exports.AgentActions = function AgentActions(_ref) {
|
|
|
97
98
|
}, [agent.id, createAnalyticsEvent, fireEventNext]);
|
|
98
99
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
99
100
|
space: "space.100",
|
|
100
|
-
xcss: styles.actionsWrapperStyles
|
|
101
|
+
xcss: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? styles.actionsWrapperStylesRefresh : styles.actionsWrapperStyles
|
|
101
102
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
102
103
|
xcss: styles.chatToAgentButtonContainer
|
|
103
104
|
}, /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
@@ -110,9 +111,9 @@ var AgentActions = exports.AgentActions = function AgentActions(_ref) {
|
|
|
110
111
|
xcss: styles.chatToAgentButtonWrapper
|
|
111
112
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
112
113
|
space: "space.050",
|
|
113
|
-
xcss: styles.chatPillButtonInlineStyles,
|
|
114
|
+
xcss: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? null : styles.chatPillButtonInlineStyles,
|
|
114
115
|
alignBlock: "center"
|
|
115
|
-
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
116
|
+
}, !(0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
116
117
|
xcss: styles.chatPillIconWrapper
|
|
117
118
|
}, /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.ChatPillIcon, null)), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
118
119
|
xcss: styles.chatPillTextStyles
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
|
-
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
3
|
+
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
4
|
+
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}._154i1ejb{top:var(--ds-space-300,24px)}
|
|
4
5
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
5
6
|
._1ltvpxbi{left:var(--ds-space-200,1pc)}
|
|
7
|
+
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
6
8
|
._1q51xy5q{padding-block-start:var(--ds-space-400,2pc)}
|
|
7
9
|
._kqswh2mm{position:relative}
|
|
8
10
|
._kqswstnw{position:absolute}
|
|
@@ -34,8 +34,11 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
34
34
|
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; }
|
|
35
35
|
var styles = {
|
|
36
36
|
detailWrapper: "_18zrpxbi _1q51xy5q",
|
|
37
|
+
detailWrapperRefresh: "_1q511ejb",
|
|
37
38
|
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
38
|
-
cardContainerStyles: "_2rko1mok _16qs130s _kqswh2mm"
|
|
39
|
+
cardContainerStyles: "_2rko1mok _16qs130s _kqswh2mm",
|
|
40
|
+
agentProfileInfoWrapper: "_18zrpxbi",
|
|
41
|
+
conversationStartersWrapper: "_18zrutpp"
|
|
39
42
|
};
|
|
40
43
|
var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
41
44
|
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
@@ -190,7 +193,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
190
193
|
}, /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.AgentBanner, {
|
|
191
194
|
agentId: agent.id,
|
|
192
195
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
193
|
-
height: 96,
|
|
196
|
+
height: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? 48 : 96,
|
|
194
197
|
agentIdentityAccountId: agent.identity_account_id
|
|
195
198
|
}), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
196
199
|
xcss: styles.avatarStyles
|
|
@@ -198,12 +201,14 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
198
201
|
agentId: agent.id,
|
|
199
202
|
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
200
203
|
agentIdentityAccountId: agent.identity_account_id,
|
|
201
|
-
size:
|
|
204
|
+
size: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? 'large' : 'xlarge',
|
|
202
205
|
isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
203
206
|
forgeAgentIconUrl: agent.icon
|
|
204
207
|
})), /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
|
|
205
208
|
space: "space.100",
|
|
206
|
-
xcss: styles.detailWrapper
|
|
209
|
+
xcss: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? styles.detailWrapperRefresh : styles.detailWrapper
|
|
210
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
211
|
+
xcss: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? styles.agentProfileInfoWrapper : null
|
|
207
212
|
}, /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.AgentProfileInfo, {
|
|
208
213
|
agentName: agent.name,
|
|
209
214
|
isStarred: isStarred,
|
|
@@ -218,12 +223,14 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
218
223
|
isLoading: false,
|
|
219
224
|
onCreatorLinkClick: function onCreatorLinkClick() {}
|
|
220
225
|
}),
|
|
221
|
-
starCountRender: /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.AgentStarCount, {
|
|
226
|
+
starCountRender: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? null : /*#__PURE__*/_react.default.createElement(_rovoAgentComponents.AgentStarCount, {
|
|
222
227
|
starCount: starCount,
|
|
223
228
|
isLoading: false
|
|
224
229
|
}),
|
|
225
230
|
agentDescription: agent.description
|
|
226
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
231
|
+
})), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
232
|
+
xcss: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? styles.conversationStartersWrapper : null
|
|
233
|
+
}, /*#__PURE__*/_react.default.createElement(_ConversationStarters.ConversationStarters, {
|
|
227
234
|
isAgentDefault: agent.is_default,
|
|
228
235
|
userDefinedConversationStarters: userDefinedConversationStarters,
|
|
229
236
|
onConversationStarterClick: function onConversationStarterClick(conversationStarter) {
|
|
@@ -232,7 +239,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
232
239
|
prompt: conversationStarter.message
|
|
233
240
|
});
|
|
234
241
|
}
|
|
235
|
-
})), /*#__PURE__*/_react.default.createElement(_Actions.AgentActions, {
|
|
242
|
+
}))), /*#__PURE__*/_react.default.createElement(_Actions.AgentActions, {
|
|
236
243
|
agent: agent,
|
|
237
244
|
onEditAgent: function onEditAgent() {
|
|
238
245
|
return _onEditAgent(agent.id);
|
|
@@ -152,10 +152,7 @@ var TeamMembers = function TeamMembers(_ref) {
|
|
|
152
152
|
ref: ref
|
|
153
153
|
}, props, {
|
|
154
154
|
testId: "first-member"
|
|
155
|
-
})) :
|
|
156
|
-
/*#__PURE__*/
|
|
157
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
158
|
-
_react.default.createElement(Component, props);
|
|
155
|
+
})) : /*#__PURE__*/_react.default.createElement(Component, props);
|
|
159
156
|
}
|
|
160
157
|
}
|
|
161
158
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
._18zrv77o{padding-inline:var(--ds-space-025,2px)}
|
|
4
4
|
._1h6d1l7x{border-color:var(--ds-border,#0b120e24)}._15a5nqa1{border-top-style:solid}
|
|
5
5
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
6
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
6
7
|
._1bah1h6o{justify-content:center}
|
|
7
8
|
._1bsb1osq{width:100%}
|
|
8
9
|
._1e0c1txw{display:flex}
|
|
@@ -11,9 +12,12 @@
|
|
|
11
12
|
._1ul9gktf{min-width:20px}
|
|
12
13
|
._4t3igktf{height:20px}
|
|
13
14
|
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
15
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
14
16
|
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
15
17
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
18
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
16
19
|
._o5721jtm{white-space:pre-wrap}
|
|
17
20
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
18
21
|
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
22
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
19
23
|
._y3gn1e5h{text-align:left}
|
|
@@ -17,7 +17,8 @@ const styles = {
|
|
|
17
17
|
chatPillButtonInlineStyles: "_18zrv77o",
|
|
18
18
|
chatPillTextStyles: "_1nmz1hna _y3gn1e5h _o5721jtm",
|
|
19
19
|
chatPillIconWrapper: "_1ul9gktf _4t3igktf",
|
|
20
|
-
actionsWrapperStyles: "_189ee4h9 _1h6d1l7x _15a5nqa1 _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _1pfhpxbi _syazi7uo"
|
|
20
|
+
actionsWrapperStyles: "_189ee4h9 _1h6d1l7x _15a5nqa1 _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _1pfhpxbi _syazi7uo",
|
|
21
|
+
actionsWrapperStylesRefresh: "_ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _syazi7uo"
|
|
21
22
|
};
|
|
22
23
|
export const AgentActions = ({
|
|
23
24
|
onEditAgent,
|
|
@@ -76,7 +77,7 @@ export const AgentActions = ({
|
|
|
76
77
|
}, [agent.id, createAnalyticsEvent, fireEventNext]);
|
|
77
78
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Inline, {
|
|
78
79
|
space: "space.100",
|
|
79
|
-
xcss: styles.actionsWrapperStyles
|
|
80
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.actionsWrapperStylesRefresh : styles.actionsWrapperStyles
|
|
80
81
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
81
82
|
xcss: styles.chatToAgentButtonContainer
|
|
82
83
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -89,9 +90,9 @@ export const AgentActions = ({
|
|
|
89
90
|
xcss: styles.chatToAgentButtonWrapper
|
|
90
91
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
91
92
|
space: "space.050",
|
|
92
|
-
xcss: styles.chatPillButtonInlineStyles,
|
|
93
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? null : styles.chatPillButtonInlineStyles,
|
|
93
94
|
alignBlock: "center"
|
|
94
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
95
|
+
}, !fg('rovo_agent_empty_state_refresh') && /*#__PURE__*/React.createElement(Box, {
|
|
95
96
|
xcss: styles.chatPillIconWrapper
|
|
96
97
|
}, /*#__PURE__*/React.createElement(ChatPillIcon, null)), /*#__PURE__*/React.createElement(Box, {
|
|
97
98
|
xcss: styles.chatPillTextStyles
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
|
-
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
3
|
+
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
4
|
+
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}._154i1ejb{top:var(--ds-space-300,24px)}
|
|
4
5
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
5
6
|
._1ltvpxbi{left:var(--ds-space-200,1pc)}
|
|
7
|
+
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
6
8
|
._1q51xy5q{padding-block-start:var(--ds-space-400,2pc)}
|
|
7
9
|
._kqswh2mm{position:relative}
|
|
8
10
|
._kqswstnw{position:absolute}
|
|
@@ -19,8 +19,11 @@ import { useAgentUrlActions } from './hooks/useAgentActions';
|
|
|
19
19
|
import { messages } from './messages';
|
|
20
20
|
const styles = {
|
|
21
21
|
detailWrapper: "_18zrpxbi _1q51xy5q",
|
|
22
|
+
detailWrapperRefresh: "_1q511ejb",
|
|
22
23
|
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
23
|
-
cardContainerStyles: "_2rko1mok _16qs130s _kqswh2mm"
|
|
24
|
+
cardContainerStyles: "_2rko1mok _16qs130s _kqswh2mm",
|
|
25
|
+
agentProfileInfoWrapper: "_18zrpxbi",
|
|
26
|
+
conversationStartersWrapper: "_18zrutpp"
|
|
24
27
|
};
|
|
25
28
|
const AgentProfileCard = ({
|
|
26
29
|
agent,
|
|
@@ -145,7 +148,7 @@ const AgentProfileCard = ({
|
|
|
145
148
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
146
149
|
agentId: agent.id,
|
|
147
150
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
148
|
-
height: 96,
|
|
151
|
+
height: fg('rovo_agent_empty_state_refresh') ? 48 : 96,
|
|
149
152
|
agentIdentityAccountId: agent.identity_account_id
|
|
150
153
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
151
154
|
xcss: styles.avatarStyles
|
|
@@ -153,12 +156,14 @@ const AgentProfileCard = ({
|
|
|
153
156
|
agentId: agent.id,
|
|
154
157
|
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
155
158
|
agentIdentityAccountId: agent.identity_account_id,
|
|
156
|
-
size:
|
|
159
|
+
size: fg('rovo_agent_empty_state_refresh') ? 'large' : 'xlarge',
|
|
157
160
|
isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
158
161
|
forgeAgentIconUrl: agent.icon
|
|
159
162
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
160
163
|
space: "space.100",
|
|
161
|
-
xcss: styles.detailWrapper
|
|
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
|
|
162
167
|
}, /*#__PURE__*/React.createElement(AgentProfileInfo, {
|
|
163
168
|
agentName: agent.name,
|
|
164
169
|
isStarred: isStarred,
|
|
@@ -173,12 +178,14 @@ const AgentProfileCard = ({
|
|
|
173
178
|
isLoading: false,
|
|
174
179
|
onCreatorLinkClick: () => {}
|
|
175
180
|
}),
|
|
176
|
-
starCountRender: /*#__PURE__*/React.createElement(AgentStarCount, {
|
|
181
|
+
starCountRender: fg('rovo_agent_empty_state_refresh') ? null : /*#__PURE__*/React.createElement(AgentStarCount, {
|
|
177
182
|
starCount: starCount,
|
|
178
183
|
isLoading: false
|
|
179
184
|
}),
|
|
180
185
|
agentDescription: agent.description
|
|
181
|
-
}), /*#__PURE__*/React.createElement(
|
|
186
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
187
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.conversationStartersWrapper : null
|
|
188
|
+
}, /*#__PURE__*/React.createElement(ConversationStarters, {
|
|
182
189
|
isAgentDefault: agent.is_default,
|
|
183
190
|
userDefinedConversationStarters: userDefinedConversationStarters,
|
|
184
191
|
onConversationStarterClick: conversationStarter => {
|
|
@@ -187,7 +194,7 @@ const AgentProfileCard = ({
|
|
|
187
194
|
prompt: conversationStarter.message
|
|
188
195
|
});
|
|
189
196
|
}
|
|
190
|
-
})), /*#__PURE__*/React.createElement(AgentActions, {
|
|
197
|
+
}))), /*#__PURE__*/React.createElement(AgentActions, {
|
|
191
198
|
agent: agent,
|
|
192
199
|
onEditAgent: () => onEditAgent(agent.id),
|
|
193
200
|
onCopyAgent: () => onCopyAgent(agent.id),
|
|
@@ -135,10 +135,7 @@ const TeamMembers = ({
|
|
|
135
135
|
ref: ref
|
|
136
136
|
}, props, {
|
|
137
137
|
testId: "first-member"
|
|
138
|
-
})) :
|
|
139
|
-
/*#__PURE__*/
|
|
140
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
141
|
-
React.createElement(Component, props)
|
|
138
|
+
})) : /*#__PURE__*/React.createElement(Component, props)
|
|
142
139
|
}
|
|
143
140
|
}
|
|
144
141
|
})));
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
._18zrv77o{padding-inline:var(--ds-space-025,2px)}
|
|
4
4
|
._1h6d1l7x{border-color:var(--ds-border,#0b120e24)}._15a5nqa1{border-top-style:solid}
|
|
5
5
|
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
6
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
6
7
|
._1bah1h6o{justify-content:center}
|
|
7
8
|
._1bsb1osq{width:100%}
|
|
8
9
|
._1e0c1txw{display:flex}
|
|
@@ -11,9 +12,12 @@
|
|
|
11
12
|
._1ul9gktf{min-width:20px}
|
|
12
13
|
._4t3igktf{height:20px}
|
|
13
14
|
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
15
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
14
16
|
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
15
17
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
18
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
16
19
|
._o5721jtm{white-space:pre-wrap}
|
|
17
20
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
18
21
|
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
22
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
19
23
|
._y3gn1e5h{text-align:left}
|
|
@@ -20,7 +20,8 @@ var styles = {
|
|
|
20
20
|
chatPillButtonInlineStyles: "_18zrv77o",
|
|
21
21
|
chatPillTextStyles: "_1nmz1hna _y3gn1e5h _o5721jtm",
|
|
22
22
|
chatPillIconWrapper: "_1ul9gktf _4t3igktf",
|
|
23
|
-
actionsWrapperStyles: "_189ee4h9 _1h6d1l7x _15a5nqa1 _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _1pfhpxbi _syazi7uo"
|
|
23
|
+
actionsWrapperStyles: "_189ee4h9 _1h6d1l7x _15a5nqa1 _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _1pfhpxbi _syazi7uo",
|
|
24
|
+
actionsWrapperStylesRefresh: "_ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _syazi7uo"
|
|
24
25
|
};
|
|
25
26
|
export var AgentActions = function AgentActions(_ref) {
|
|
26
27
|
var onEditAgent = _ref.onEditAgent,
|
|
@@ -88,7 +89,7 @@ export var AgentActions = function AgentActions(_ref) {
|
|
|
88
89
|
}, [agent.id, createAnalyticsEvent, fireEventNext]);
|
|
89
90
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Inline, {
|
|
90
91
|
space: "space.100",
|
|
91
|
-
xcss: styles.actionsWrapperStyles
|
|
92
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.actionsWrapperStylesRefresh : styles.actionsWrapperStyles
|
|
92
93
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
93
94
|
xcss: styles.chatToAgentButtonContainer
|
|
94
95
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -101,9 +102,9 @@ export var AgentActions = function AgentActions(_ref) {
|
|
|
101
102
|
xcss: styles.chatToAgentButtonWrapper
|
|
102
103
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
103
104
|
space: "space.050",
|
|
104
|
-
xcss: styles.chatPillButtonInlineStyles,
|
|
105
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? null : styles.chatPillButtonInlineStyles,
|
|
105
106
|
alignBlock: "center"
|
|
106
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
107
|
+
}, !fg('rovo_agent_empty_state_refresh') && /*#__PURE__*/React.createElement(Box, {
|
|
107
108
|
xcss: styles.chatPillIconWrapper
|
|
108
109
|
}, /*#__PURE__*/React.createElement(ChatPillIcon, null)), /*#__PURE__*/React.createElement(Box, {
|
|
109
110
|
xcss: styles.chatPillTextStyles
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
|
-
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
3
|
+
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
4
|
+
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}._154i1ejb{top:var(--ds-space-300,24px)}
|
|
4
5
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
5
6
|
._1ltvpxbi{left:var(--ds-space-200,1pc)}
|
|
7
|
+
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
6
8
|
._1q51xy5q{padding-block-start:var(--ds-space-400,2pc)}
|
|
7
9
|
._kqswh2mm{position:relative}
|
|
8
10
|
._kqswstnw{position:absolute}
|
|
@@ -25,8 +25,11 @@ import { useAgentUrlActions } from './hooks/useAgentActions';
|
|
|
25
25
|
import { messages } from './messages';
|
|
26
26
|
var styles = {
|
|
27
27
|
detailWrapper: "_18zrpxbi _1q51xy5q",
|
|
28
|
+
detailWrapperRefresh: "_1q511ejb",
|
|
28
29
|
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
29
|
-
cardContainerStyles: "_2rko1mok _16qs130s _kqswh2mm"
|
|
30
|
+
cardContainerStyles: "_2rko1mok _16qs130s _kqswh2mm",
|
|
31
|
+
agentProfileInfoWrapper: "_18zrpxbi",
|
|
32
|
+
conversationStartersWrapper: "_18zrutpp"
|
|
30
33
|
};
|
|
31
34
|
var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
32
35
|
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
@@ -181,7 +184,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
181
184
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
182
185
|
agentId: agent.id,
|
|
183
186
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
184
|
-
height: 96,
|
|
187
|
+
height: fg('rovo_agent_empty_state_refresh') ? 48 : 96,
|
|
185
188
|
agentIdentityAccountId: agent.identity_account_id
|
|
186
189
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
187
190
|
xcss: styles.avatarStyles
|
|
@@ -189,12 +192,14 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
189
192
|
agentId: agent.id,
|
|
190
193
|
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
191
194
|
agentIdentityAccountId: agent.identity_account_id,
|
|
192
|
-
size:
|
|
195
|
+
size: fg('rovo_agent_empty_state_refresh') ? 'large' : 'xlarge',
|
|
193
196
|
isForgeAgent: agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
194
197
|
forgeAgentIconUrl: agent.icon
|
|
195
198
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
196
199
|
space: "space.100",
|
|
197
|
-
xcss: styles.detailWrapper
|
|
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
|
|
198
203
|
}, /*#__PURE__*/React.createElement(AgentProfileInfo, {
|
|
199
204
|
agentName: agent.name,
|
|
200
205
|
isStarred: isStarred,
|
|
@@ -209,12 +214,14 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
209
214
|
isLoading: false,
|
|
210
215
|
onCreatorLinkClick: function onCreatorLinkClick() {}
|
|
211
216
|
}),
|
|
212
|
-
starCountRender: /*#__PURE__*/React.createElement(AgentStarCount, {
|
|
217
|
+
starCountRender: fg('rovo_agent_empty_state_refresh') ? null : /*#__PURE__*/React.createElement(AgentStarCount, {
|
|
213
218
|
starCount: starCount,
|
|
214
219
|
isLoading: false
|
|
215
220
|
}),
|
|
216
221
|
agentDescription: agent.description
|
|
217
|
-
}), /*#__PURE__*/React.createElement(
|
|
222
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
223
|
+
xcss: fg('rovo_agent_empty_state_refresh') ? styles.conversationStartersWrapper : null
|
|
224
|
+
}, /*#__PURE__*/React.createElement(ConversationStarters, {
|
|
218
225
|
isAgentDefault: agent.is_default,
|
|
219
226
|
userDefinedConversationStarters: userDefinedConversationStarters,
|
|
220
227
|
onConversationStarterClick: function onConversationStarterClick(conversationStarter) {
|
|
@@ -223,7 +230,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
223
230
|
prompt: conversationStarter.message
|
|
224
231
|
});
|
|
225
232
|
}
|
|
226
|
-
})), /*#__PURE__*/React.createElement(AgentActions, {
|
|
233
|
+
}))), /*#__PURE__*/React.createElement(AgentActions, {
|
|
227
234
|
agent: agent,
|
|
228
235
|
onEditAgent: function onEditAgent() {
|
|
229
236
|
return _onEditAgent(agent.id);
|
|
@@ -143,10 +143,7 @@ var TeamMembers = function TeamMembers(_ref) {
|
|
|
143
143
|
ref: ref
|
|
144
144
|
}, props, {
|
|
145
145
|
testId: "first-member"
|
|
146
|
-
})) :
|
|
147
|
-
/*#__PURE__*/
|
|
148
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
149
|
-
React.createElement(Component, props);
|
|
146
|
+
})) : /*#__PURE__*/React.createElement(Component, props);
|
|
150
147
|
}
|
|
151
148
|
}
|
|
152
149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.22.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
63
63
|
"@atlaskit/popup": "^4.6.0",
|
|
64
64
|
"@atlaskit/primitives": "^16.4.0",
|
|
65
|
-
"@atlaskit/rovo-agent-components": "^3.
|
|
66
|
-
"@atlaskit/rovo-triggers": "^4.
|
|
65
|
+
"@atlaskit/rovo-agent-components": "^3.14.0",
|
|
66
|
+
"@atlaskit/rovo-triggers": "^4.6.0",
|
|
67
67
|
"@atlaskit/spinner": "^19.0.0",
|
|
68
68
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
69
69
|
"@atlaskit/teams-app-internal-analytics": "^1.20.0",
|
|
70
70
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
71
71
|
"@atlaskit/teams-public": "^0.63.0",
|
|
72
72
|
"@atlaskit/theme": "^21.0.0",
|
|
73
|
-
"@atlaskit/tokens": "^8.
|
|
73
|
+
"@atlaskit/tokens": "^8.4.0",
|
|
74
74
|
"@atlaskit/tooltip": "^20.10.0",
|
|
75
75
|
"@babel/runtime": "^7.0.0",
|
|
76
76
|
"@compiled/react": "^0.18.6",
|
|
@@ -165,6 +165,9 @@
|
|
|
165
165
|
},
|
|
166
166
|
"legion-enable-archive-teams": {
|
|
167
167
|
"type": "boolean"
|
|
168
|
+
},
|
|
169
|
+
"rovo_agent_empty_state_refresh": {
|
|
170
|
+
"type": "boolean"
|
|
168
171
|
}
|
|
169
172
|
},
|
|
170
173
|
"sideEffects": [
|