@atlaskit/rovo-agent-components 7.5.3 → 8.0.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
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 8.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`53dd004a01fc4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/53dd004a01fc4) -
|
|
8
|
+
Removes the Rovo creator icon on the agent profile card and across all other surfaces where this
|
|
9
|
+
is used. Removes the `hideCreatorIcon` prop from agent profile info - all usages have been cleaned
|
|
10
|
+
up in this PR
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 7.5.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -17,6 +17,7 @@ var _logo = require("@atlaskit/logo");
|
|
|
17
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
19
19
|
var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
|
|
20
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
21
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
21
22
|
var _hiddenIcon = require("../../common/ui/hidden-icon");
|
|
22
23
|
var _starIconButton = require("../../common/ui/star-icon-button");
|
|
@@ -77,9 +78,7 @@ var getAgentCreator = exports.getAgentCreator = function getAgentCreator(_ref) {
|
|
|
77
78
|
var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
78
79
|
var creator = _ref2.creator,
|
|
79
80
|
onCreatorLinkClick = _ref2.onCreatorLinkClick,
|
|
80
|
-
isLoading = _ref2.isLoading
|
|
81
|
-
_ref2$hideCreatorIcon = _ref2.hideCreatorIcon,
|
|
82
|
-
hideCreatorIcon = _ref2$hideCreatorIcon === void 0 ? false : _ref2$hideCreatorIcon;
|
|
81
|
+
isLoading = _ref2.isLoading;
|
|
83
82
|
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
84
83
|
formatMessage = _useIntl.formatMessage;
|
|
85
84
|
var getCreatorRender = function getCreatorRender() {
|
|
@@ -137,6 +136,7 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
137
136
|
return null;
|
|
138
137
|
};
|
|
139
138
|
var creatorRender = getCreatorRender();
|
|
139
|
+
var hideCreatorIcon = (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes');
|
|
140
140
|
if ((0, _platformFeatureFlags.fg)('jira_improve_agent_profile_for_a2a')) {
|
|
141
141
|
var showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
142
142
|
return creatorRender ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -10,6 +10,7 @@ import { AtlassianIcon, RovoIcon } from '@atlaskit/logo';
|
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import Skeleton from '@atlaskit/skeleton';
|
|
13
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
15
|
import { HiddenIcon } from '../../common/ui/hidden-icon';
|
|
15
16
|
import { StarIconButton } from '../../common/ui/star-icon-button';
|
|
@@ -71,8 +72,7 @@ export const getAgentCreator = ({
|
|
|
71
72
|
export const AgentProfileCreator = ({
|
|
72
73
|
creator,
|
|
73
74
|
onCreatorLinkClick,
|
|
74
|
-
isLoading
|
|
75
|
-
hideCreatorIcon = false
|
|
75
|
+
isLoading
|
|
76
76
|
}) => {
|
|
77
77
|
const {
|
|
78
78
|
formatMessage
|
|
@@ -130,6 +130,7 @@ export const AgentProfileCreator = ({
|
|
|
130
130
|
return null;
|
|
131
131
|
};
|
|
132
132
|
const creatorRender = getCreatorRender();
|
|
133
|
+
const hideCreatorIcon = expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes');
|
|
133
134
|
if (fg('jira_improve_agent_profile_for_a2a')) {
|
|
134
135
|
const showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
135
136
|
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -10,6 +10,7 @@ import { AtlassianIcon, RovoIcon } from '@atlaskit/logo';
|
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import Skeleton from '@atlaskit/skeleton';
|
|
13
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
15
|
import { HiddenIcon } from '../../common/ui/hidden-icon';
|
|
15
16
|
import { StarIconButton } from '../../common/ui/star-icon-button';
|
|
@@ -70,9 +71,7 @@ export var getAgentCreator = function getAgentCreator(_ref) {
|
|
|
70
71
|
export var AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
71
72
|
var creator = _ref2.creator,
|
|
72
73
|
onCreatorLinkClick = _ref2.onCreatorLinkClick,
|
|
73
|
-
isLoading = _ref2.isLoading
|
|
74
|
-
_ref2$hideCreatorIcon = _ref2.hideCreatorIcon,
|
|
75
|
-
hideCreatorIcon = _ref2$hideCreatorIcon === void 0 ? false : _ref2$hideCreatorIcon;
|
|
74
|
+
isLoading = _ref2.isLoading;
|
|
76
75
|
var _useIntl = useIntl(),
|
|
77
76
|
formatMessage = _useIntl.formatMessage;
|
|
78
77
|
var getCreatorRender = function getCreatorRender() {
|
|
@@ -130,6 +129,7 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
|
130
129
|
return null;
|
|
131
130
|
};
|
|
132
131
|
var creatorRender = getCreatorRender();
|
|
132
|
+
var hideCreatorIcon = expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes');
|
|
133
133
|
if (fg('jira_improve_agent_profile_for_a2a')) {
|
|
134
134
|
var showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
135
135
|
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -29,17 +29,13 @@ export declare const getAgentCreator: ({ creatorType, authoringTeam, userCreator
|
|
|
29
29
|
};
|
|
30
30
|
forgeCreator?: string;
|
|
31
31
|
}) => AgentCreator | undefined;
|
|
32
|
-
export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading,
|
|
32
|
+
export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading, }: {
|
|
33
33
|
/**
|
|
34
34
|
* Get this value from `getAgentCreator`
|
|
35
35
|
*/
|
|
36
36
|
creator?: AgentCreator;
|
|
37
37
|
isLoading: boolean;
|
|
38
38
|
onCreatorLinkClick: () => void;
|
|
39
|
-
/**
|
|
40
|
-
* Hides the leading Rovo icon shown next to the creator label
|
|
41
|
-
*/
|
|
42
|
-
hideCreatorIcon?: boolean;
|
|
43
39
|
}) => JSX.Element | null;
|
|
44
40
|
export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, headingRender, isStarred, isHidden, onStarToggle, showStarButton, renderAdditionalContent, }: {
|
|
45
41
|
agentName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.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
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
|
|
6
6
|
"atlassian": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/afm-i18n-platform-ai-mate-rovo-agent-components": "2.172.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^12.3.0",
|
|
36
|
-
"@atlaskit/avatar": "^26.
|
|
36
|
+
"@atlaskit/avatar": "^26.2.0",
|
|
37
37
|
"@atlaskit/button": "^24.3.0",
|
|
38
38
|
"@atlaskit/css": "^1.0.0",
|
|
39
39
|
"@atlaskit/dropdown-menu": "^17.1.0",
|
|
@@ -44,11 +44,12 @@
|
|
|
44
44
|
"@atlaskit/link": "^4.3.0",
|
|
45
45
|
"@atlaskit/logo": "^21.4.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
47
|
-
"@atlaskit/primitives": "^
|
|
47
|
+
"@atlaskit/primitives": "^22.0.0",
|
|
48
48
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
49
49
|
"@atlaskit/rovo-agent-analytics": "^5.3.0",
|
|
50
50
|
"@atlaskit/skeleton": "^4.2.0",
|
|
51
51
|
"@atlaskit/spinner": "^20.1.0",
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^126.2.0",
|
|
52
53
|
"@atlaskit/tokens": "^16.0.0",
|
|
53
54
|
"@atlaskit/tooltip": "^23.1.0",
|
|
54
55
|
"@babel/runtime": "^7.0.0",
|
|
@@ -112,6 +113,9 @@
|
|
|
112
113
|
}
|
|
113
114
|
},
|
|
114
115
|
"platform-feature-flags": {
|
|
116
|
+
"platform_editor_agent_mentions_drop_one_fixes": {
|
|
117
|
+
"type": "boolean"
|
|
118
|
+
},
|
|
115
119
|
"rovo_chat_bugfix_agent_avatar_squish": {
|
|
116
120
|
"type": "boolean"
|
|
117
121
|
},
|