@atlaskit/rovo-agent-components 3.18.1 → 3.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/agent-verified/package.json +17 -0
- package/dist/cjs/common/ui/chat-pill/index.compiled.css +1 -1
- package/dist/cjs/common/ui/chat-pill/index.js +1 -1
- package/dist/cjs/ui/agent-conversation-starters/index.compiled.css +1 -1
- package/dist/cjs/ui/agent-conversation-starters/index.js +1 -1
- package/dist/cjs/ui/agent-dropdown-menu/index.js +7 -2
- package/dist/cjs/ui/agent-dropdown-menu/messages.js +10 -0
- package/dist/cjs/ui/agent-profile-info/agent-star-count/index.compiled.css +1 -1
- package/dist/cjs/ui/agent-profile-info/agent-star-count/index.js +1 -1
- package/dist/cjs/ui/agent-verified/__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql.js +29 -0
- package/dist/cjs/ui/agent-verified/agent-verified.stories.js +36 -0
- package/dist/cjs/ui/agent-verified/index.js +32 -0
- package/dist/cjs/ui/agent-verified/messages.js +19 -0
- package/dist/es2019/common/ui/chat-pill/index.compiled.css +1 -1
- package/dist/es2019/common/ui/chat-pill/index.js +1 -1
- package/dist/es2019/ui/agent-conversation-starters/index.compiled.css +1 -1
- package/dist/es2019/ui/agent-conversation-starters/index.js +1 -1
- package/dist/es2019/ui/agent-dropdown-menu/index.js +7 -2
- package/dist/es2019/ui/agent-dropdown-menu/messages.js +10 -0
- package/dist/es2019/ui/agent-profile-info/agent-star-count/index.compiled.css +1 -1
- package/dist/es2019/ui/agent-profile-info/agent-star-count/index.js +1 -1
- package/dist/es2019/ui/agent-verified/__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql.js +23 -0
- package/dist/es2019/ui/agent-verified/agent-verified.stories.js +23 -0
- package/dist/es2019/ui/agent-verified/index.js +26 -0
- package/dist/es2019/ui/agent-verified/messages.js +13 -0
- package/dist/esm/common/ui/chat-pill/index.compiled.css +1 -1
- package/dist/esm/common/ui/chat-pill/index.js +1 -1
- package/dist/esm/ui/agent-conversation-starters/index.compiled.css +1 -1
- package/dist/esm/ui/agent-conversation-starters/index.js +1 -1
- package/dist/esm/ui/agent-dropdown-menu/index.js +7 -2
- package/dist/esm/ui/agent-dropdown-menu/messages.js +10 -0
- package/dist/esm/ui/agent-profile-info/agent-star-count/index.compiled.css +1 -1
- package/dist/esm/ui/agent-profile-info/agent-star-count/index.js +1 -1
- package/dist/esm/ui/agent-verified/__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql.js +23 -0
- package/dist/esm/ui/agent-verified/agent-verified.stories.js +29 -0
- package/dist/esm/ui/agent-verified/index.js +25 -0
- package/dist/esm/ui/agent-verified/messages.js +13 -0
- package/dist/types/ui/agent-dropdown-menu/index.d.ts +3 -1
- package/dist/types/ui/agent-dropdown-menu/messages.d.ts +10 -0
- package/dist/types/ui/agent-verified/__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql.d.ts +18 -0
- package/dist/types/ui/agent-verified/index.d.ts +7 -0
- package/dist/types/ui/agent-verified/messages.d.ts +13 -0
- package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +3 -1
- package/dist/types-ts4.5/ui/agent-dropdown-menu/messages.d.ts +10 -0
- package/dist/types-ts4.5/ui/agent-verified/__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql.d.ts +18 -0
- package/dist/types-ts4.5/ui/agent-verified/index.d.ts +7 -0
- package/dist/types-ts4.5/ui/agent-verified/messages.d.ts +13 -0
- package/package.json +12 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 3.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`85b20848660df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/85b20848660df) -
|
|
8
|
+
[ux] Display agent verified icon
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 3.19.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`61adbaa3e8ae1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/61adbaa3e8ae1) -
|
|
19
|
+
[ux] add agent verfication option in dropdown menu
|
|
20
|
+
|
|
3
21
|
## 3.18.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/rovo-agent-components/agent-verified",
|
|
3
|
+
"main": "../dist/cjs/ui/agent-verified/index.js",
|
|
4
|
+
"module": "../dist/esm/ui/agent-verified/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/ui/agent-verified/index.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/ui/agent-verified/index.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/ui/agent-verified/index.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
4
|
._18zrv77o{padding-inline:var(--ds-space-025,2px)}
|
|
@@ -25,7 +25,7 @@ var stylesCompiled = {
|
|
|
25
25
|
pillLineHeight: "_vwz47vkz"
|
|
26
26
|
};
|
|
27
27
|
var styles = {
|
|
28
|
-
button: "_2rko12b0
|
|
28
|
+
button: "_2rko12b0 _11c8fhey _189ee4h9 _1dqonqa1 _1h6d1l7x _syazazsu _ca0q12x7 _u5f3utpp _n3td12x7 _19bvutpp _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhksm61 _irr31dpa _1di6fcek",
|
|
29
29
|
buttonInline: "_18zrv77o",
|
|
30
30
|
queryText: "_1nmz1hna _y3gn1e5h",
|
|
31
31
|
whiteSpacePreWrap: "_o5721jtm"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._qtt8glyw{list-style:none}
|
|
4
4
|
._18m915vq{overflow-y:hidden}
|
|
@@ -29,7 +29,7 @@ var styles = {
|
|
|
29
29
|
conversationStartersListRefresh: "_1bsb1osq",
|
|
30
30
|
conversationStarterIcon: "_1o9zidpf",
|
|
31
31
|
conversationStarterText: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c _1o9zkb7n _1ul9idpf",
|
|
32
|
-
button: "
|
|
32
|
+
button: "_11c8fhey _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
|
|
33
33
|
};
|
|
34
34
|
var getConversationStarters = exports.getConversationStarters = function getConversationStarters(_ref) {
|
|
35
35
|
var userDefinedConversationStartersParam = _ref.userDefinedConversationStarters,
|
|
@@ -19,6 +19,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
19
19
|
var _new = _interopRequireWildcard(require("@atlaskit/button/new"));
|
|
20
20
|
var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
|
|
21
21
|
var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
|
|
22
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
23
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
23
24
|
var _chatIcon = require("../../common/ui/chat-icon");
|
|
24
25
|
var _messages = _interopRequireDefault(require("./messages"));
|
|
@@ -72,7 +73,9 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
72
73
|
loadAgentPermissions = _ref2.loadAgentPermissions,
|
|
73
74
|
loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
|
|
74
75
|
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
|
|
75
|
-
agentName = _ref2.agentName
|
|
76
|
+
agentName = _ref2.agentName,
|
|
77
|
+
isVerified = _ref2.isVerified,
|
|
78
|
+
isAbleToGovernAgents = _ref2.isAbleToGovernAgents;
|
|
76
79
|
var _useState = (0, _react.useState)(false),
|
|
77
80
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
78
81
|
isLoading = _useState2[0],
|
|
@@ -192,5 +195,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
192
195
|
setHasBeenCopied(true);
|
|
193
196
|
onCopyAgent === null || onCopyAgent === void 0 || onCopyAgent(e);
|
|
194
197
|
}
|
|
195
|
-
}, formatMessage(hasBeenCopied ? _messages.default.linkedCopiedToProfile : _messages.default.copyLinkToProfile))
|
|
198
|
+
}, formatMessage(hasBeenCopied ? _messages.default.linkedCopiedToProfile : _messages.default.copyLinkToProfile)), isAbleToGovernAgents && (0, _platformFeatureFlags.fg)('rovo_agents_agent_verification') && /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, {
|
|
199
|
+
onClick: function onClick() {}
|
|
200
|
+
}, formatMessage(isVerified ? _messages.default.unverifyAgent : _messages.default.verifyAgent))), renderEditDelete());
|
|
196
201
|
};
|
|
@@ -60,5 +60,15 @@ var _default = exports.default = (0, _reactIntlNext.defineMessages)({
|
|
|
60
60
|
id: 'rovo-chat.view-agents.use-template-button',
|
|
61
61
|
defaultMessage: 'Use template',
|
|
62
62
|
description: 'Button to copy and use a template'
|
|
63
|
+
},
|
|
64
|
+
verifyAgent: {
|
|
65
|
+
id: 'rovo-chat.view-agents.verify-agent',
|
|
66
|
+
defaultMessage: 'Verify agent',
|
|
67
|
+
description: 'Button to verify an agent'
|
|
68
|
+
},
|
|
69
|
+
unverifyAgent: {
|
|
70
|
+
id: 'rovo-chat.view-agents.unverify-agent',
|
|
71
|
+
defaultMessage: 'Unverify agent',
|
|
72
|
+
description: 'Button to unverify an agent'
|
|
63
73
|
}
|
|
64
74
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
3
|
._1e0c1txw{display:flex}
|
|
4
4
|
._4cvr1h6o{align-items:center}
|
|
@@ -18,7 +18,7 @@ var _messages = require("./messages");
|
|
|
18
18
|
var _utils = require("./utils");
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var styles = {
|
|
21
|
-
count: "
|
|
21
|
+
count: "_11c8wadc _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
|
|
22
22
|
};
|
|
23
23
|
var AgentStarCount = exports.AgentStarCount = function AgentStarCount(_ref) {
|
|
24
24
|
var starCount = _ref.starCount,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* @generated SignedSource<<80d05744924cbc0bdc011e1a63323c52>>
|
|
9
|
+
* @lightSyntaxTransform
|
|
10
|
+
* @nogrep
|
|
11
|
+
* @codegen-command: yarn relay
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/* tslint:disable */
|
|
15
|
+
/* eslint-disable */
|
|
16
|
+
// @ts-nocheck
|
|
17
|
+
|
|
18
|
+
var node = {
|
|
19
|
+
"argumentDefinitions": [],
|
|
20
|
+
"kind": "Fragment",
|
|
21
|
+
"name": "agentVerified_AtlaskitRovoAgentComponents",
|
|
22
|
+
"selections": [{
|
|
23
|
+
"kind": "ScalarField",
|
|
24
|
+
"name": "isVerified"
|
|
25
|
+
}],
|
|
26
|
+
"type": "AgentStudioAssistant"
|
|
27
|
+
};
|
|
28
|
+
node.hash = "7c196c0efd61b63c8a3de1c1b32e11ec";
|
|
29
|
+
var _default = exports.default = node;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.MediumSize = exports.Default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactMagneticDi = require("react-magnetic-di");
|
|
10
|
+
var _reactRelay = require("react-relay");
|
|
11
|
+
var _storybookDecorators = require("@atlassian/agent-studio-test-utils/storybook-decorators");
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
var commonDeps = [(0, _reactMagneticDi.injectable)(_reactRelay.useFragment, function () {
|
|
14
|
+
return {
|
|
15
|
+
isVerified: true
|
|
16
|
+
};
|
|
17
|
+
})];
|
|
18
|
+
var meta = {
|
|
19
|
+
decorators: [(0, _storybookDecorators.withUseIntl)(), (0, _storybookDecorators.withDi)(commonDeps)]
|
|
20
|
+
};
|
|
21
|
+
var _default = exports.default = meta;
|
|
22
|
+
var Default = exports.Default = {
|
|
23
|
+
render: function render() {
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_index.AgentVerified, {
|
|
25
|
+
agentRef: {}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var MediumSize = exports.MediumSize = {
|
|
30
|
+
render: function render() {
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_index.AgentVerified, {
|
|
32
|
+
agentRef: {},
|
|
33
|
+
size: "medium"
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.AgentVerified = void 0;
|
|
8
|
+
var _agentVerified_AtlaskitRovoAgentComponents2 = _interopRequireDefault(require("./__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _reactIntlNext = require("react-intl-next");
|
|
11
|
+
var _reactRelay = require("react-relay");
|
|
12
|
+
var _statusVerified = _interopRequireDefault(require("@atlaskit/icon/core/status-verified"));
|
|
13
|
+
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
14
|
+
var _messages = _interopRequireDefault(require("./messages"));
|
|
15
|
+
var AgentVerified = exports.AgentVerified = function AgentVerified(_ref) {
|
|
16
|
+
var agentRef = _ref.agentRef,
|
|
17
|
+
_ref$size = _ref.size,
|
|
18
|
+
size = _ref$size === void 0 ? 'small' : _ref$size;
|
|
19
|
+
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
20
|
+
formatMessage = _useIntl.formatMessage;
|
|
21
|
+
var data = (0, _reactRelay.useFragment)(_agentVerified_AtlaskitRovoAgentComponents2.default, agentRef);
|
|
22
|
+
if (!(data !== null && data !== void 0 && data.isVerified)) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
26
|
+
content: formatMessage(_messages.default.verifiedAgentTooltip)
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement(_statusVerified.default, {
|
|
28
|
+
color: "var(--ds-icon-accent-blue, #357DE8)",
|
|
29
|
+
label: formatMessage(_messages.default.verifiedIconLabel),
|
|
30
|
+
size: size
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
var _default = exports.default = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
verifiedAgentTooltip: {
|
|
10
|
+
id: 'agent-studio-ui-components.agent-verified.tooltip',
|
|
11
|
+
defaultMessage: 'This agent has been verified by your organization.',
|
|
12
|
+
description: 'Verified icon tooltip shown when hovering over the verified icon'
|
|
13
|
+
},
|
|
14
|
+
verifiedIconLabel: {
|
|
15
|
+
id: 'agent-studio-ui-components.agent-verified.label',
|
|
16
|
+
defaultMessage: 'Agent verified',
|
|
17
|
+
description: 'Verified icon label for the agent studio side navigation'
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
4
|
._18zrv77o{padding-inline:var(--ds-space-025,2px)}
|
|
@@ -14,7 +14,7 @@ const stylesCompiled = {
|
|
|
14
14
|
pillLineHeight: "_vwz47vkz"
|
|
15
15
|
};
|
|
16
16
|
const styles = {
|
|
17
|
-
button: "_2rko12b0
|
|
17
|
+
button: "_2rko12b0 _11c8fhey _189ee4h9 _1dqonqa1 _1h6d1l7x _syazazsu _ca0q12x7 _u5f3utpp _n3td12x7 _19bvutpp _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhksm61 _irr31dpa _1di6fcek",
|
|
18
18
|
buttonInline: "_18zrv77o",
|
|
19
19
|
queryText: "_1nmz1hna _y3gn1e5h",
|
|
20
20
|
whiteSpacePreWrap: "_o5721jtm"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._qtt8glyw{list-style:none}
|
|
4
4
|
._18m915vq{overflow-y:hidden}
|
|
@@ -17,7 +17,7 @@ const styles = {
|
|
|
17
17
|
conversationStartersListRefresh: "_1bsb1osq",
|
|
18
18
|
conversationStarterIcon: "_1o9zidpf",
|
|
19
19
|
conversationStarterText: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c _1o9zkb7n _1ul9idpf",
|
|
20
|
-
button: "
|
|
20
|
+
button: "_11c8fhey _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
|
|
21
21
|
};
|
|
22
22
|
export const getConversationStarters = ({
|
|
23
23
|
userDefinedConversationStarters: userDefinedConversationStartersParam,
|
|
@@ -7,6 +7,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
7
7
|
import Button, { IconButton } from '@atlaskit/button/new';
|
|
8
8
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
9
9
|
import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
11
12
|
import { ChatPillIcon } from '../../common/ui/chat-icon';
|
|
12
13
|
import messages from './messages';
|
|
@@ -59,7 +60,9 @@ export const AgentDropdownMenu = ({
|
|
|
59
60
|
loadAgentPermissions,
|
|
60
61
|
loadPermissionsOnMount,
|
|
61
62
|
shouldTriggerStopPropagation,
|
|
62
|
-
agentName
|
|
63
|
+
agentName,
|
|
64
|
+
isVerified,
|
|
65
|
+
isAbleToGovernAgents
|
|
63
66
|
}) => {
|
|
64
67
|
const [isLoading, setIsLoading] = useState(false);
|
|
65
68
|
const {
|
|
@@ -152,5 +155,7 @@ export const AgentDropdownMenu = ({
|
|
|
152
155
|
setHasBeenCopied(true);
|
|
153
156
|
onCopyAgent === null || onCopyAgent === void 0 ? void 0 : onCopyAgent(e);
|
|
154
157
|
}
|
|
155
|
-
}, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile))
|
|
158
|
+
}, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile)), isAbleToGovernAgents && fg('rovo_agents_agent_verification') && /*#__PURE__*/React.createElement(DropdownItem, {
|
|
159
|
+
onClick: () => {}
|
|
160
|
+
}, formatMessage(isVerified ? messages.unverifyAgent : messages.verifyAgent))), renderEditDelete());
|
|
156
161
|
};
|
|
@@ -54,5 +54,15 @@ export default defineMessages({
|
|
|
54
54
|
id: 'rovo-chat.view-agents.use-template-button',
|
|
55
55
|
defaultMessage: 'Use template',
|
|
56
56
|
description: 'Button to copy and use a template'
|
|
57
|
+
},
|
|
58
|
+
verifyAgent: {
|
|
59
|
+
id: 'rovo-chat.view-agents.verify-agent',
|
|
60
|
+
defaultMessage: 'Verify agent',
|
|
61
|
+
description: 'Button to verify an agent'
|
|
62
|
+
},
|
|
63
|
+
unverifyAgent: {
|
|
64
|
+
id: 'rovo-chat.view-agents.unverify-agent',
|
|
65
|
+
defaultMessage: 'Unverify agent',
|
|
66
|
+
description: 'Button to unverify an agent'
|
|
57
67
|
}
|
|
58
68
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
3
|
._1e0c1txw{display:flex}
|
|
4
4
|
._4cvr1h6o{align-items:center}
|
|
@@ -9,7 +9,7 @@ import Skeleton from '@atlaskit/skeleton';
|
|
|
9
9
|
import { messages } from './messages';
|
|
10
10
|
import { formatNumber } from './utils';
|
|
11
11
|
const styles = {
|
|
12
|
-
count: "
|
|
12
|
+
count: "_11c8wadc _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
|
|
13
13
|
};
|
|
14
14
|
export const AgentStarCount = ({
|
|
15
15
|
starCount,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<80d05744924cbc0bdc011e1a63323c52>>
|
|
3
|
+
* @lightSyntaxTransform
|
|
4
|
+
* @nogrep
|
|
5
|
+
* @codegen-command: yarn relay
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
// @ts-nocheck
|
|
11
|
+
|
|
12
|
+
const node = {
|
|
13
|
+
"argumentDefinitions": [],
|
|
14
|
+
"kind": "Fragment",
|
|
15
|
+
"name": "agentVerified_AtlaskitRovoAgentComponents",
|
|
16
|
+
"selections": [{
|
|
17
|
+
"kind": "ScalarField",
|
|
18
|
+
"name": "isVerified"
|
|
19
|
+
}],
|
|
20
|
+
"type": "AgentStudioAssistant"
|
|
21
|
+
};
|
|
22
|
+
node.hash = "7c196c0efd61b63c8a3de1c1b32e11ec";
|
|
23
|
+
export default node;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { injectable } from 'react-magnetic-di';
|
|
3
|
+
import { useFragment } from 'react-relay';
|
|
4
|
+
import { withDi, withUseIntl } from '@atlassian/agent-studio-test-utils/storybook-decorators';
|
|
5
|
+
import { AgentVerified } from './index';
|
|
6
|
+
const commonDeps = [injectable(useFragment, () => ({
|
|
7
|
+
isVerified: true
|
|
8
|
+
}))];
|
|
9
|
+
const meta = {
|
|
10
|
+
decorators: [withUseIntl(), withDi(commonDeps)]
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
export const Default = {
|
|
14
|
+
render: () => /*#__PURE__*/React.createElement(AgentVerified, {
|
|
15
|
+
agentRef: {}
|
|
16
|
+
})
|
|
17
|
+
};
|
|
18
|
+
export const MediumSize = {
|
|
19
|
+
render: () => /*#__PURE__*/React.createElement(AgentVerified, {
|
|
20
|
+
agentRef: {},
|
|
21
|
+
size: "medium"
|
|
22
|
+
})
|
|
23
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import _agentVerified_AtlaskitRovoAgentComponents from "./__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useIntl } from 'react-intl-next';
|
|
4
|
+
import { graphql, useFragment } from 'react-relay';
|
|
5
|
+
import VerifiedIcon from '@atlaskit/icon/core/status-verified';
|
|
6
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
7
|
+
import messages from './messages';
|
|
8
|
+
export const AgentVerified = ({
|
|
9
|
+
agentRef,
|
|
10
|
+
size = 'small'
|
|
11
|
+
}) => {
|
|
12
|
+
const {
|
|
13
|
+
formatMessage
|
|
14
|
+
} = useIntl();
|
|
15
|
+
const data = useFragment(_agentVerified_AtlaskitRovoAgentComponents, agentRef);
|
|
16
|
+
if (!(data !== null && data !== void 0 && data.isVerified)) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
20
|
+
content: formatMessage(messages.verifiedAgentTooltip)
|
|
21
|
+
}, /*#__PURE__*/React.createElement(VerifiedIcon, {
|
|
22
|
+
color: "var(--ds-icon-accent-blue, #357DE8)",
|
|
23
|
+
label: formatMessage(messages.verifiedIconLabel),
|
|
24
|
+
size: size
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export default defineMessages({
|
|
3
|
+
verifiedAgentTooltip: {
|
|
4
|
+
id: 'agent-studio-ui-components.agent-verified.tooltip',
|
|
5
|
+
defaultMessage: 'This agent has been verified by your organization.',
|
|
6
|
+
description: 'Verified icon tooltip shown when hovering over the verified icon'
|
|
7
|
+
},
|
|
8
|
+
verifiedIconLabel: {
|
|
9
|
+
id: 'agent-studio-ui-components.agent-verified.label',
|
|
10
|
+
defaultMessage: 'Agent verified',
|
|
11
|
+
description: 'Verified icon label for the agent studio side navigation'
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
4
|
._18zrv77o{padding-inline:var(--ds-space-025,2px)}
|
|
@@ -16,7 +16,7 @@ var stylesCompiled = {
|
|
|
16
16
|
pillLineHeight: "_vwz47vkz"
|
|
17
17
|
};
|
|
18
18
|
var styles = {
|
|
19
|
-
button: "_2rko12b0
|
|
19
|
+
button: "_2rko12b0 _11c8fhey _189ee4h9 _1dqonqa1 _1h6d1l7x _syazazsu _ca0q12x7 _u5f3utpp _n3td12x7 _19bvutpp _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhksm61 _irr31dpa _1di6fcek",
|
|
20
20
|
buttonInline: "_18zrv77o",
|
|
21
21
|
queryText: "_1nmz1hna _y3gn1e5h",
|
|
22
22
|
whiteSpacePreWrap: "_o5721jtm"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._qtt8glyw{list-style:none}
|
|
4
4
|
._18m915vq{overflow-y:hidden}
|
|
@@ -20,7 +20,7 @@ var styles = {
|
|
|
20
20
|
conversationStartersListRefresh: "_1bsb1osq",
|
|
21
21
|
conversationStarterIcon: "_1o9zidpf",
|
|
22
22
|
conversationStarterText: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c _1o9zkb7n _1ul9idpf",
|
|
23
|
-
button: "
|
|
23
|
+
button: "_11c8fhey _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
|
|
24
24
|
};
|
|
25
25
|
export var getConversationStarters = function getConversationStarters(_ref) {
|
|
26
26
|
var userDefinedConversationStartersParam = _ref.userDefinedConversationStarters,
|
|
@@ -12,6 +12,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
12
12
|
import Button, { IconButton } from '@atlaskit/button/new';
|
|
13
13
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
14
14
|
import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
16
17
|
import { ChatPillIcon } from '../../common/ui/chat-icon';
|
|
17
18
|
import messages from './messages';
|
|
@@ -63,7 +64,9 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
63
64
|
loadAgentPermissions = _ref2.loadAgentPermissions,
|
|
64
65
|
loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
|
|
65
66
|
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
|
|
66
|
-
agentName = _ref2.agentName
|
|
67
|
+
agentName = _ref2.agentName,
|
|
68
|
+
isVerified = _ref2.isVerified,
|
|
69
|
+
isAbleToGovernAgents = _ref2.isAbleToGovernAgents;
|
|
67
70
|
var _useState = useState(false),
|
|
68
71
|
_useState2 = _slicedToArray(_useState, 2),
|
|
69
72
|
isLoading = _useState2[0],
|
|
@@ -183,5 +186,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
183
186
|
setHasBeenCopied(true);
|
|
184
187
|
onCopyAgent === null || onCopyAgent === void 0 || onCopyAgent(e);
|
|
185
188
|
}
|
|
186
|
-
}, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile))
|
|
189
|
+
}, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile)), isAbleToGovernAgents && fg('rovo_agents_agent_verification') && /*#__PURE__*/React.createElement(DropdownItem, {
|
|
190
|
+
onClick: function onClick() {}
|
|
191
|
+
}, formatMessage(isVerified ? messages.unverifyAgent : messages.verifyAgent))), renderEditDelete());
|
|
187
192
|
};
|
|
@@ -54,5 +54,15 @@ export default defineMessages({
|
|
|
54
54
|
id: 'rovo-chat.view-agents.use-template-button',
|
|
55
55
|
defaultMessage: 'Use template',
|
|
56
56
|
description: 'Button to copy and use a template'
|
|
57
|
+
},
|
|
58
|
+
verifyAgent: {
|
|
59
|
+
id: 'rovo-chat.view-agents.verify-agent',
|
|
60
|
+
defaultMessage: 'Verify agent',
|
|
61
|
+
description: 'Button to verify an agent'
|
|
62
|
+
},
|
|
63
|
+
unverifyAgent: {
|
|
64
|
+
id: 'rovo-chat.view-agents.unverify-agent',
|
|
65
|
+
defaultMessage: 'Unverify agent',
|
|
66
|
+
description: 'Button to unverify an agent'
|
|
57
67
|
}
|
|
58
68
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
3
|
._1e0c1txw{display:flex}
|
|
4
4
|
._4cvr1h6o{align-items:center}
|
|
@@ -9,7 +9,7 @@ import Skeleton from '@atlaskit/skeleton';
|
|
|
9
9
|
import { messages } from './messages';
|
|
10
10
|
import { formatNumber } from './utils';
|
|
11
11
|
var styles = {
|
|
12
|
-
count: "
|
|
12
|
+
count: "_11c8wadc _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
|
|
13
13
|
};
|
|
14
14
|
export var AgentStarCount = function AgentStarCount(_ref) {
|
|
15
15
|
var starCount = _ref.starCount,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<80d05744924cbc0bdc011e1a63323c52>>
|
|
3
|
+
* @lightSyntaxTransform
|
|
4
|
+
* @nogrep
|
|
5
|
+
* @codegen-command: yarn relay
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
// @ts-nocheck
|
|
11
|
+
|
|
12
|
+
var node = {
|
|
13
|
+
"argumentDefinitions": [],
|
|
14
|
+
"kind": "Fragment",
|
|
15
|
+
"name": "agentVerified_AtlaskitRovoAgentComponents",
|
|
16
|
+
"selections": [{
|
|
17
|
+
"kind": "ScalarField",
|
|
18
|
+
"name": "isVerified"
|
|
19
|
+
}],
|
|
20
|
+
"type": "AgentStudioAssistant"
|
|
21
|
+
};
|
|
22
|
+
node.hash = "7c196c0efd61b63c8a3de1c1b32e11ec";
|
|
23
|
+
export default node;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { injectable } from 'react-magnetic-di';
|
|
3
|
+
import { useFragment } from 'react-relay';
|
|
4
|
+
import { withDi, withUseIntl } from '@atlassian/agent-studio-test-utils/storybook-decorators';
|
|
5
|
+
import { AgentVerified } from './index';
|
|
6
|
+
var commonDeps = [injectable(useFragment, function () {
|
|
7
|
+
return {
|
|
8
|
+
isVerified: true
|
|
9
|
+
};
|
|
10
|
+
})];
|
|
11
|
+
var meta = {
|
|
12
|
+
decorators: [withUseIntl(), withDi(commonDeps)]
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
export var Default = {
|
|
16
|
+
render: function render() {
|
|
17
|
+
return /*#__PURE__*/React.createElement(AgentVerified, {
|
|
18
|
+
agentRef: {}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export var MediumSize = {
|
|
23
|
+
render: function render() {
|
|
24
|
+
return /*#__PURE__*/React.createElement(AgentVerified, {
|
|
25
|
+
agentRef: {},
|
|
26
|
+
size: "medium"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import _agentVerified_AtlaskitRovoAgentComponents from "./__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useIntl } from 'react-intl-next';
|
|
4
|
+
import { graphql, useFragment } from 'react-relay';
|
|
5
|
+
import VerifiedIcon from '@atlaskit/icon/core/status-verified';
|
|
6
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
7
|
+
import messages from './messages';
|
|
8
|
+
export var AgentVerified = function AgentVerified(_ref) {
|
|
9
|
+
var agentRef = _ref.agentRef,
|
|
10
|
+
_ref$size = _ref.size,
|
|
11
|
+
size = _ref$size === void 0 ? 'small' : _ref$size;
|
|
12
|
+
var _useIntl = useIntl(),
|
|
13
|
+
formatMessage = _useIntl.formatMessage;
|
|
14
|
+
var data = useFragment(_agentVerified_AtlaskitRovoAgentComponents, agentRef);
|
|
15
|
+
if (!(data !== null && data !== void 0 && data.isVerified)) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
19
|
+
content: formatMessage(messages.verifiedAgentTooltip)
|
|
20
|
+
}, /*#__PURE__*/React.createElement(VerifiedIcon, {
|
|
21
|
+
color: "var(--ds-icon-accent-blue, #357DE8)",
|
|
22
|
+
label: formatMessage(messages.verifiedIconLabel),
|
|
23
|
+
size: size
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export default defineMessages({
|
|
3
|
+
verifiedAgentTooltip: {
|
|
4
|
+
id: 'agent-studio-ui-components.agent-verified.tooltip',
|
|
5
|
+
defaultMessage: 'This agent has been verified by your organization.',
|
|
6
|
+
description: 'Verified icon tooltip shown when hovering over the verified icon'
|
|
7
|
+
},
|
|
8
|
+
verifiedIconLabel: {
|
|
9
|
+
id: 'agent-studio-ui-components.agent-verified.label',
|
|
10
|
+
defaultMessage: 'Agent verified',
|
|
11
|
+
description: 'Verified icon label for the agent studio side navigation'
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -45,6 +45,8 @@ type AgentDropdownMenuProps = {
|
|
|
45
45
|
isEditEnabled: boolean;
|
|
46
46
|
isDeleteEnabled: boolean;
|
|
47
47
|
}>;
|
|
48
|
+
isVerified?: boolean | null;
|
|
49
|
+
isAbleToGovernAgents?: boolean | null;
|
|
48
50
|
} & ViewAgentOptionProps & ViewAgentFullProfileProps;
|
|
49
|
-
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, }: AgentDropdownMenuProps) => JSX.Element;
|
|
51
|
+
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, isVerified, isAbleToGovernAgents, }: AgentDropdownMenuProps) => JSX.Element;
|
|
50
52
|
export {};
|
|
@@ -54,5 +54,15 @@ declare const _default: {
|
|
|
54
54
|
readonly defaultMessage: "Use template";
|
|
55
55
|
readonly description: "Button to copy and use a template";
|
|
56
56
|
};
|
|
57
|
+
readonly verifyAgent: {
|
|
58
|
+
readonly id: "rovo-chat.view-agents.verify-agent";
|
|
59
|
+
readonly defaultMessage: "Verify agent";
|
|
60
|
+
readonly description: "Button to verify an agent";
|
|
61
|
+
};
|
|
62
|
+
readonly unverifyAgent: {
|
|
63
|
+
readonly id: "rovo-chat.view-agents.unverify-agent";
|
|
64
|
+
readonly defaultMessage: "Unverify agent";
|
|
65
|
+
readonly description: "Button to unverify an agent";
|
|
66
|
+
};
|
|
57
67
|
};
|
|
58
68
|
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<80d05744924cbc0bdc011e1a63323c52>>
|
|
3
|
+
* @lightSyntaxTransform
|
|
4
|
+
* @nogrep
|
|
5
|
+
* @codegen-command: yarn relay
|
|
6
|
+
*/
|
|
7
|
+
import type { ReaderFragment } from 'relay-runtime';
|
|
8
|
+
import type { FragmentRefs } from "relay-runtime";
|
|
9
|
+
export type agentVerified_AtlaskitRovoAgentComponents$data = {
|
|
10
|
+
readonly isVerified: boolean | null | undefined;
|
|
11
|
+
readonly " $fragmentType": "agentVerified_AtlaskitRovoAgentComponents";
|
|
12
|
+
};
|
|
13
|
+
export type agentVerified_AtlaskitRovoAgentComponents$key = {
|
|
14
|
+
readonly " $data"?: agentVerified_AtlaskitRovoAgentComponents$data;
|
|
15
|
+
readonly " $fragmentSpreads": FragmentRefs<"agentVerified_AtlaskitRovoAgentComponents">;
|
|
16
|
+
};
|
|
17
|
+
declare const node: ReaderFragment;
|
|
18
|
+
export default node;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IconSize } from '@atlaskit/icon';
|
|
3
|
+
import type { agentVerified_AtlaskitRovoAgentComponents$key } from './__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql';
|
|
4
|
+
export declare const AgentVerified: ({ agentRef, size, }: {
|
|
5
|
+
agentRef: agentVerified_AtlaskitRovoAgentComponents$key | null;
|
|
6
|
+
size?: IconSize;
|
|
7
|
+
}) => React.JSX.Element | null;
|
|
@@ -45,6 +45,8 @@ type AgentDropdownMenuProps = {
|
|
|
45
45
|
isEditEnabled: boolean;
|
|
46
46
|
isDeleteEnabled: boolean;
|
|
47
47
|
}>;
|
|
48
|
+
isVerified?: boolean | null;
|
|
49
|
+
isAbleToGovernAgents?: boolean | null;
|
|
48
50
|
} & ViewAgentOptionProps & ViewAgentFullProfileProps;
|
|
49
|
-
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, }: AgentDropdownMenuProps) => JSX.Element;
|
|
51
|
+
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, isVerified, isAbleToGovernAgents, }: AgentDropdownMenuProps) => JSX.Element;
|
|
50
52
|
export {};
|
|
@@ -54,5 +54,15 @@ declare const _default: {
|
|
|
54
54
|
readonly defaultMessage: "Use template";
|
|
55
55
|
readonly description: "Button to copy and use a template";
|
|
56
56
|
};
|
|
57
|
+
readonly verifyAgent: {
|
|
58
|
+
readonly id: "rovo-chat.view-agents.verify-agent";
|
|
59
|
+
readonly defaultMessage: "Verify agent";
|
|
60
|
+
readonly description: "Button to verify an agent";
|
|
61
|
+
};
|
|
62
|
+
readonly unverifyAgent: {
|
|
63
|
+
readonly id: "rovo-chat.view-agents.unverify-agent";
|
|
64
|
+
readonly defaultMessage: "Unverify agent";
|
|
65
|
+
readonly description: "Button to unverify an agent";
|
|
66
|
+
};
|
|
57
67
|
};
|
|
58
68
|
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<80d05744924cbc0bdc011e1a63323c52>>
|
|
3
|
+
* @lightSyntaxTransform
|
|
4
|
+
* @nogrep
|
|
5
|
+
* @codegen-command: yarn relay
|
|
6
|
+
*/
|
|
7
|
+
import type { ReaderFragment } from 'relay-runtime';
|
|
8
|
+
import type { FragmentRefs } from "relay-runtime";
|
|
9
|
+
export type agentVerified_AtlaskitRovoAgentComponents$data = {
|
|
10
|
+
readonly isVerified: boolean | null | undefined;
|
|
11
|
+
readonly " $fragmentType": "agentVerified_AtlaskitRovoAgentComponents";
|
|
12
|
+
};
|
|
13
|
+
export type agentVerified_AtlaskitRovoAgentComponents$key = {
|
|
14
|
+
readonly " $data"?: agentVerified_AtlaskitRovoAgentComponents$data;
|
|
15
|
+
readonly " $fragmentSpreads": FragmentRefs<"agentVerified_AtlaskitRovoAgentComponents">;
|
|
16
|
+
};
|
|
17
|
+
declare const node: ReaderFragment;
|
|
18
|
+
export default node;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IconSize } from '@atlaskit/icon';
|
|
3
|
+
import type { agentVerified_AtlaskitRovoAgentComponents$key } from './__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql';
|
|
4
|
+
export declare const AgentVerified: ({ agentRef, size, }: {
|
|
5
|
+
agentRef: agentVerified_AtlaskitRovoAgentComponents$key | null;
|
|
6
|
+
size?: IconSize;
|
|
7
|
+
}) => React.JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.0",
|
|
4
4
|
"description": "This package host public components related to rovo agents, the components here are needed for other public atlaskit packages",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"@compiled/react": "^0.18.6",
|
|
52
52
|
"react-dom": "^18.2.0",
|
|
53
53
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
54
|
-
"react-magnetic-di": "^3.1.4"
|
|
54
|
+
"react-magnetic-di": "^3.1.4",
|
|
55
|
+
"react-relay": "npm:atl-react-relay@0.0.0-main-39e79f66"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
57
58
|
"react": "^18.2.0"
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"@af/integration-testing": "workspace:^",
|
|
61
62
|
"@af/visual-regression": "workspace:^",
|
|
62
63
|
"@atlaskit/ssr": "workspace:^",
|
|
64
|
+
"@atlassian/agent-studio-test-utils": "workspace:^",
|
|
63
65
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
64
66
|
"@atlassian/testing-library": "^0.4.0",
|
|
65
67
|
"@testing-library/react": "^16.3.0",
|
|
@@ -104,6 +106,11 @@
|
|
|
104
106
|
]
|
|
105
107
|
}
|
|
106
108
|
},
|
|
109
|
+
"techstackIgnore": {
|
|
110
|
+
"stricter": [
|
|
111
|
+
"@atlassian/tangerine/project-structure"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
107
114
|
"platform-feature-flags": {
|
|
108
115
|
"rovo_chat_bugfix_agent_avatar_squish": {
|
|
109
116
|
"type": "boolean"
|
|
@@ -119,6 +126,9 @@
|
|
|
119
126
|
},
|
|
120
127
|
"rovo_agent_empty_state_refresh": {
|
|
121
128
|
"type": "boolean"
|
|
129
|
+
},
|
|
130
|
+
"rovo_agents_agent_verification": {
|
|
131
|
+
"type": "boolean"
|
|
122
132
|
}
|
|
123
133
|
}
|
|
124
134
|
}
|