@atlaskit/rovo-agent-components 10.9.3 → 10.9.4
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,12 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 10.9.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`080910a39cbbe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/080910a39cbbe) -
|
|
8
|
+
Clean up feature gate `platform_editor_agent_card_fixes`
|
|
9
|
+
|
|
3
10
|
## 10.9.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -13,13 +13,11 @@ var _reactIntl = require("react-intl");
|
|
|
13
13
|
var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
|
|
14
14
|
var _link = _interopRequireDefault(require("@atlaskit/link/link"));
|
|
15
15
|
var _atlassianIcon = require("@atlaskit/logo/atlassian-icon");
|
|
16
|
-
var _icon = require("@atlaskit/logo/rovo/icon");
|
|
17
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
17
|
var _box = require("@atlaskit/primitives/compiled/box");
|
|
19
18
|
var _inline = require("@atlaskit/primitives/compiled/inline");
|
|
20
19
|
var _stack = require("@atlaskit/primitives/compiled/stack");
|
|
21
20
|
var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
|
|
22
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
23
21
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
24
22
|
var _hiddenIcon = require("../../common/ui/hidden-icon");
|
|
25
23
|
var _starIconButton = require("../../common/ui/star-icon-button");
|
|
@@ -27,7 +25,6 @@ var _isForgeAgent = require("../../common/utils/is-forge-agent");
|
|
|
27
25
|
var _messages = require("./messages");
|
|
28
26
|
var styles = {
|
|
29
27
|
clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
|
|
30
|
-
rovoIconWrapper: "_1e0c1txw",
|
|
31
28
|
name: "_1bah1yb4 _4cvr1y6m",
|
|
32
29
|
description: "_1mouze3t _1i4qfg65 _1nmz1hna",
|
|
33
30
|
headingWrapper: "_kqswh2mm",
|
|
@@ -138,30 +135,9 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
138
135
|
return null;
|
|
139
136
|
};
|
|
140
137
|
var creatorRender = getCreatorRender();
|
|
141
|
-
var hideCreatorIcon = (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') || (0, _fg.fg)('platform_editor_agent_card_fixes');
|
|
142
|
-
if ((0, _fg.fg)('jira_improve_agent_profile_for_a2a')) {
|
|
143
|
-
var showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
144
|
-
return creatorRender ? /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
145
|
-
xcss: styles.clickableItem
|
|
146
|
-
}, showRovoIcon ? /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
147
|
-
xcss: styles.rovoIconWrapper,
|
|
148
|
-
testId: "rovo-icon-wrapper",
|
|
149
|
-
"aria-hidden": "true"
|
|
150
|
-
}, /*#__PURE__*/_react.default.createElement(_icon.RovoIcon, {
|
|
151
|
-
appearance: "brand",
|
|
152
|
-
size: "small"
|
|
153
|
-
})) : null, creatorRender) : null;
|
|
154
|
-
}
|
|
155
138
|
return creatorRender ? /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
156
139
|
xcss: styles.clickableItem
|
|
157
|
-
},
|
|
158
|
-
xcss: styles.rovoIconWrapper,
|
|
159
|
-
testId: "rovo-icon-wrapper",
|
|
160
|
-
"aria-hidden": "true"
|
|
161
|
-
}, /*#__PURE__*/_react.default.createElement(_icon.RovoIcon, {
|
|
162
|
-
appearance: "brand",
|
|
163
|
-
size: "small"
|
|
164
|
-
})), creatorRender) : null;
|
|
140
|
+
}, creatorRender) : null;
|
|
165
141
|
};
|
|
166
142
|
var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref3) {
|
|
167
143
|
var agentName = _ref3.agentName,
|
|
@@ -6,13 +6,11 @@ import { useIntl } from 'react-intl';
|
|
|
6
6
|
import Heading from '@atlaskit/heading/heading';
|
|
7
7
|
import Link from '@atlaskit/link/link';
|
|
8
8
|
import { AtlassianIcon } from '@atlaskit/logo/atlassian-icon';
|
|
9
|
-
import { RovoIcon } from '@atlaskit/logo/rovo/icon';
|
|
10
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
10
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
12
11
|
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
13
12
|
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
14
13
|
import Skeleton from '@atlaskit/skeleton';
|
|
15
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
14
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
17
15
|
import { HiddenIcon } from '../../common/ui/hidden-icon';
|
|
18
16
|
import { StarIconButton } from '../../common/ui/star-icon-button';
|
|
@@ -20,7 +18,6 @@ import { isForgeAgentByCreatorType } from '../../common/utils/is-forge-agent';
|
|
|
20
18
|
import { messages } from './messages';
|
|
21
19
|
const styles = {
|
|
22
20
|
clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
|
|
23
|
-
rovoIconWrapper: "_1e0c1txw",
|
|
24
21
|
name: "_1bah1yb4 _4cvr1y6m",
|
|
25
22
|
description: "_1mouze3t _1i4qfg65 _1nmz1hna",
|
|
26
23
|
headingWrapper: "_kqswh2mm",
|
|
@@ -131,30 +128,9 @@ export const AgentProfileCreator = ({
|
|
|
131
128
|
return null;
|
|
132
129
|
};
|
|
133
130
|
const creatorRender = getCreatorRender();
|
|
134
|
-
const hideCreatorIcon = expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes');
|
|
135
|
-
if (fg('jira_improve_agent_profile_for_a2a')) {
|
|
136
|
-
const showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
137
|
-
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
138
|
-
xcss: styles.clickableItem
|
|
139
|
-
}, showRovoIcon ? /*#__PURE__*/React.createElement(Box, {
|
|
140
|
-
xcss: styles.rovoIconWrapper,
|
|
141
|
-
testId: "rovo-icon-wrapper",
|
|
142
|
-
"aria-hidden": "true"
|
|
143
|
-
}, /*#__PURE__*/React.createElement(RovoIcon, {
|
|
144
|
-
appearance: "brand",
|
|
145
|
-
size: "small"
|
|
146
|
-
})) : null, creatorRender) : null;
|
|
147
|
-
}
|
|
148
131
|
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
149
132
|
xcss: styles.clickableItem
|
|
150
|
-
},
|
|
151
|
-
xcss: styles.rovoIconWrapper,
|
|
152
|
-
testId: "rovo-icon-wrapper",
|
|
153
|
-
"aria-hidden": "true"
|
|
154
|
-
}, /*#__PURE__*/React.createElement(RovoIcon, {
|
|
155
|
-
appearance: "brand",
|
|
156
|
-
size: "small"
|
|
157
|
-
})), creatorRender) : null;
|
|
133
|
+
}, creatorRender) : null;
|
|
158
134
|
};
|
|
159
135
|
export const AgentProfileInfo = ({
|
|
160
136
|
agentName,
|
|
@@ -6,13 +6,11 @@ import { useIntl } from 'react-intl';
|
|
|
6
6
|
import Heading from '@atlaskit/heading/heading';
|
|
7
7
|
import Link from '@atlaskit/link/link';
|
|
8
8
|
import { AtlassianIcon } from '@atlaskit/logo/atlassian-icon';
|
|
9
|
-
import { RovoIcon } from '@atlaskit/logo/rovo/icon';
|
|
10
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
10
|
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
12
11
|
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
13
12
|
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
14
13
|
import Skeleton from '@atlaskit/skeleton';
|
|
15
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
14
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
17
15
|
import { HiddenIcon } from '../../common/ui/hidden-icon';
|
|
18
16
|
import { StarIconButton } from '../../common/ui/star-icon-button';
|
|
@@ -20,7 +18,6 @@ import { isForgeAgentByCreatorType } from '../../common/utils/is-forge-agent';
|
|
|
20
18
|
import { messages } from './messages';
|
|
21
19
|
var styles = {
|
|
22
20
|
clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
|
|
23
|
-
rovoIconWrapper: "_1e0c1txw",
|
|
24
21
|
name: "_1bah1yb4 _4cvr1y6m",
|
|
25
22
|
description: "_1mouze3t _1i4qfg65 _1nmz1hna",
|
|
26
23
|
headingWrapper: "_kqswh2mm",
|
|
@@ -131,30 +128,9 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
|
131
128
|
return null;
|
|
132
129
|
};
|
|
133
130
|
var creatorRender = getCreatorRender();
|
|
134
|
-
var hideCreatorIcon = expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes');
|
|
135
|
-
if (fg('jira_improve_agent_profile_for_a2a')) {
|
|
136
|
-
var showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
137
|
-
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
138
|
-
xcss: styles.clickableItem
|
|
139
|
-
}, showRovoIcon ? /*#__PURE__*/React.createElement(Box, {
|
|
140
|
-
xcss: styles.rovoIconWrapper,
|
|
141
|
-
testId: "rovo-icon-wrapper",
|
|
142
|
-
"aria-hidden": "true"
|
|
143
|
-
}, /*#__PURE__*/React.createElement(RovoIcon, {
|
|
144
|
-
appearance: "brand",
|
|
145
|
-
size: "small"
|
|
146
|
-
})) : null, creatorRender) : null;
|
|
147
|
-
}
|
|
148
131
|
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
149
132
|
xcss: styles.clickableItem
|
|
150
|
-
},
|
|
151
|
-
xcss: styles.rovoIconWrapper,
|
|
152
|
-
testId: "rovo-icon-wrapper",
|
|
153
|
-
"aria-hidden": "true"
|
|
154
|
-
}, /*#__PURE__*/React.createElement(RovoIcon, {
|
|
155
|
-
appearance: "brand",
|
|
156
|
-
size: "small"
|
|
157
|
-
})), creatorRender) : null;
|
|
133
|
+
}, creatorRender) : null;
|
|
158
134
|
};
|
|
159
135
|
export var AgentProfileInfo = function AgentProfileInfo(_ref3) {
|
|
160
136
|
var agentName = _ref3.agentName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "10.9.
|
|
3
|
+
"version": "10.9.4",
|
|
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": {
|
|
@@ -86,9 +86,6 @@
|
|
|
86
86
|
"platform_editor_agent_mentions_drop_one_fixes": {
|
|
87
87
|
"type": "boolean"
|
|
88
88
|
},
|
|
89
|
-
"platform_editor_agent_card_fixes": {
|
|
90
|
-
"type": "boolean"
|
|
91
|
-
},
|
|
92
89
|
"rovo_chat_bugfix_agent_avatar_squish": {
|
|
93
90
|
"type": "boolean"
|
|
94
91
|
},
|