@atlaskit/rovo-agent-components 3.49.1 → 4.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 +21 -0
- package/dist/cjs/common/ui/chat-pill/index.js +2 -2
- package/dist/cjs/common/ui/chat-pill/messages.js +2 -2
- package/dist/cjs/common/ui/link-icon-button/index.js +2 -2
- package/dist/cjs/common/ui/link-icon-button/messages.js +2 -2
- package/dist/cjs/common/ui/star-icon-button/index.js +2 -2
- package/dist/cjs/common/ui/star-icon-button/messages.js +2 -2
- package/dist/cjs/ui/agent-avatar/index.js +2 -2
- package/dist/cjs/ui/agent-avatar/messages.js +2 -2
- package/dist/cjs/ui/agent-conversation-starters/index.js +2 -2
- package/dist/cjs/ui/agent-conversation-starters/messages.js +2 -2
- package/dist/cjs/ui/agent-dropdown-menu/index.js +3 -3
- package/dist/cjs/ui/agent-dropdown-menu/messages.js +2 -2
- package/dist/cjs/ui/agent-profile-info/agent-star-count/index.js +2 -2
- package/dist/cjs/ui/agent-profile-info/agent-star-count/messages.js +2 -2
- package/dist/cjs/ui/agent-profile-info/index.js +3 -3
- package/dist/cjs/ui/agent-profile-info/messages.js +2 -2
- package/dist/cjs/ui/agent-verification-dropdown-item/index.js +2 -2
- package/dist/cjs/ui/agent-verification-dropdown-item/messages.js +2 -2
- package/dist/cjs/ui/agent-verified/index.js +2 -2
- package/dist/cjs/ui/agent-verified/messages.js +2 -2
- package/dist/es2019/common/ui/chat-pill/index.js +1 -1
- package/dist/es2019/common/ui/chat-pill/messages.js +1 -1
- package/dist/es2019/common/ui/link-icon-button/index.js +1 -1
- package/dist/es2019/common/ui/link-icon-button/messages.js +1 -1
- package/dist/es2019/common/ui/star-icon-button/index.js +1 -1
- package/dist/es2019/common/ui/star-icon-button/messages.js +1 -1
- package/dist/es2019/ui/agent-avatar/index.js +1 -1
- package/dist/es2019/ui/agent-avatar/messages.js +1 -1
- package/dist/es2019/ui/agent-conversation-starters/index.js +1 -1
- package/dist/es2019/ui/agent-conversation-starters/messages.js +1 -1
- package/dist/es2019/ui/agent-dropdown-menu/index.js +1 -1
- package/dist/es2019/ui/agent-dropdown-menu/messages.js +1 -1
- package/dist/es2019/ui/agent-profile-info/agent-star-count/index.js +1 -1
- package/dist/es2019/ui/agent-profile-info/agent-star-count/messages.js +1 -1
- package/dist/es2019/ui/agent-profile-info/index.js +1 -1
- package/dist/es2019/ui/agent-profile-info/messages.js +1 -1
- package/dist/es2019/ui/agent-verification-dropdown-item/index.js +1 -1
- package/dist/es2019/ui/agent-verification-dropdown-item/messages.js +1 -1
- package/dist/es2019/ui/agent-verified/index.js +1 -1
- package/dist/es2019/ui/agent-verified/messages.js +1 -1
- package/dist/esm/common/ui/chat-pill/index.js +1 -1
- package/dist/esm/common/ui/chat-pill/messages.js +1 -1
- package/dist/esm/common/ui/link-icon-button/index.js +1 -1
- package/dist/esm/common/ui/link-icon-button/messages.js +1 -1
- package/dist/esm/common/ui/star-icon-button/index.js +1 -1
- package/dist/esm/common/ui/star-icon-button/messages.js +1 -1
- package/dist/esm/ui/agent-avatar/index.js +1 -1
- package/dist/esm/ui/agent-avatar/messages.js +1 -1
- package/dist/esm/ui/agent-conversation-starters/index.js +1 -1
- package/dist/esm/ui/agent-conversation-starters/messages.js +1 -1
- package/dist/esm/ui/agent-dropdown-menu/index.js +1 -1
- package/dist/esm/ui/agent-dropdown-menu/messages.js +1 -1
- package/dist/esm/ui/agent-profile-info/agent-star-count/index.js +1 -1
- package/dist/esm/ui/agent-profile-info/agent-star-count/messages.js +1 -1
- package/dist/esm/ui/agent-profile-info/index.js +1 -1
- package/dist/esm/ui/agent-profile-info/messages.js +1 -1
- package/dist/esm/ui/agent-verification-dropdown-item/index.js +1 -1
- package/dist/esm/ui/agent-verification-dropdown-item/messages.js +1 -1
- package/dist/esm/ui/agent-verified/index.js +1 -1
- package/dist/esm/ui/agent-verified/messages.js +1 -1
- package/dist/types/ui/agent-conversation-starters/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/agent-conversation-starters/index.d.ts +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`8004b39cfac18`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8004b39cfac18) -
|
|
8
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
9
|
+
|
|
10
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
11
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
12
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
13
|
+
|
|
14
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
15
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
16
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
17
|
+
|
|
18
|
+
## 3.49.2
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 3.49.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -13,7 +13,7 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
var _css = require("@atlaskit/css");
|
|
18
18
|
var _aiAgent = _interopRequireDefault(require("@atlaskit/icon/core/ai-agent"));
|
|
19
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
@@ -51,7 +51,7 @@ var ChatPill = exports.ChatPill = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
51
51
|
}, children))));
|
|
52
52
|
});
|
|
53
53
|
var BrowseAgentsPill = exports.BrowseAgentsPill = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
54
|
-
var _useIntl = (0,
|
|
54
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
55
55
|
formatMessage = _useIntl.formatMessage;
|
|
56
56
|
return /*#__PURE__*/React.createElement(_compiled.Pressable, (0, _extends2.default)({
|
|
57
57
|
ref: ref
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var _default_1 = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var _default_1 = (0, _reactIntl.defineMessages)({
|
|
9
9
|
browseAgentsPillLabel: {
|
|
10
10
|
id: 'ai-mate.rovo-agent-components.browse-agents-pill.label',
|
|
11
11
|
defaultMessage: 'Browse Agents',
|
|
@@ -11,7 +11,7 @@ require("./index.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
|
-
var
|
|
14
|
+
var _reactIntl = require("react-intl");
|
|
15
15
|
var _new = require("@atlaskit/button/new");
|
|
16
16
|
var _css = require("@atlaskit/css");
|
|
17
17
|
var _link = _interopRequireDefault(require("@atlaskit/icon/core/link"));
|
|
@@ -26,7 +26,7 @@ var LinkIconButton = exports.LinkIconButton = function LinkIconButton(_ref) {
|
|
|
26
26
|
_ref$visible = _ref.visible,
|
|
27
27
|
visible = _ref$visible === void 0 ? true : _ref$visible,
|
|
28
28
|
agentName = _ref.agentName;
|
|
29
|
-
var _useIntl = (0,
|
|
29
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
30
30
|
formatMessage = _useIntl.formatMessage;
|
|
31
31
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
32
32
|
xcss: (0, _css.cx)(!visible && styles.hidden)
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var _default_1 = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var _default_1 = (0, _reactIntl.defineMessages)({
|
|
9
9
|
copyAgentLinkLabel: {
|
|
10
10
|
id: 'rovo-chat.browse-agents.copy-agent-label',
|
|
11
11
|
defaultMessage: 'Copy link to {agentName}',
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
|
-
var
|
|
15
|
+
var _reactIntl = require("react-intl");
|
|
16
16
|
var _css = require("@atlaskit/css");
|
|
17
17
|
var _starStarred = _interopRequireDefault(require("@atlaskit/icon/core/star-starred"));
|
|
18
18
|
var _starUnstarred = _interopRequireDefault(require("@atlaskit/icon/core/star-unstarred"));
|
|
@@ -29,7 +29,7 @@ var StarIconButton = exports.StarIconButton = function StarIconButton(_ref) {
|
|
|
29
29
|
_ref$visible = _ref.visible,
|
|
30
30
|
visible = _ref$visible === void 0 ? true : _ref$visible,
|
|
31
31
|
agentName = _ref.agentName;
|
|
32
|
-
var _useIntl = (0,
|
|
32
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
33
33
|
formatMessage = _useIntl.formatMessage;
|
|
34
34
|
var _useState = (0, _react.useState)(false),
|
|
35
35
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var _default_1 = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var _default_1 = (0, _reactIntl.defineMessages)({
|
|
9
9
|
removeFromFavouritesLabel: {
|
|
10
10
|
id: 'rovo-chat.browse-agents.remove-from-favourites-label',
|
|
11
11
|
defaultMessage: 'Remove {agentName} from favourites',
|
|
@@ -11,7 +11,7 @@ require("./index.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
-
var
|
|
14
|
+
var _reactIntl = require("react-intl");
|
|
15
15
|
var _avatar = require("@atlaskit/avatar");
|
|
16
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
@@ -50,7 +50,7 @@ var AgentAvatar = exports.AgentAvatar = function AgentAvatar(_ref) {
|
|
|
50
50
|
isRovoDev = _ref.isRovoDev,
|
|
51
51
|
isForgeAgent = _ref.isForgeAgent,
|
|
52
52
|
forgeAgentIconUrl = _ref.forgeAgentIconUrl;
|
|
53
|
-
var _useIntl = (0,
|
|
53
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
54
54
|
formatMessage = _useIntl.formatMessage;
|
|
55
55
|
var imgUrl = isForgeAgent && forgeAgentIconUrl ? forgeAgentIconUrl : imageUrl;
|
|
56
56
|
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
agentAvatarLabel: {
|
|
10
10
|
id: 'ai-mate.agent-avatar-label',
|
|
11
11
|
defaultMessage: 'Agent avatar',
|
|
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
13
13
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
14
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
var _new = require("@atlaskit/button/new");
|
|
18
18
|
var _retry = _interopRequireDefault(require("@atlaskit/icon/core/retry"));
|
|
19
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
@@ -72,7 +72,7 @@ var AgentConversationStarters = exports.AgentConversationStarters = function Age
|
|
|
72
72
|
var userDefinedConversationStarters = _ref2.userDefinedConversationStarters,
|
|
73
73
|
isAgentDefault = _ref2.isAgentDefault,
|
|
74
74
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
75
|
-
var _useIntl = (0,
|
|
75
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
76
76
|
formatMessage = _useIntl.formatMessage;
|
|
77
77
|
var _useMemo = (0, _react.useMemo)(function () {
|
|
78
78
|
return getConversationStarters({
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
emptyStateSuggestion1: {
|
|
10
10
|
id: 'ai-mate.chat-history.empty-state.suggestion1',
|
|
11
11
|
defaultMessage: 'Are any of my tickets overdue?',
|
|
@@ -15,7 +15,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
15
15
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
16
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
|
-
var
|
|
18
|
+
var _reactIntl = require("react-intl");
|
|
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"));
|
|
@@ -35,7 +35,7 @@ var styles = {
|
|
|
35
35
|
};
|
|
36
36
|
var ChatToAgentButton = exports.ChatToAgentButton = function ChatToAgentButton(_ref) {
|
|
37
37
|
var onClick = _ref.onClick;
|
|
38
|
-
var _useIntl = (0,
|
|
38
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
39
39
|
formatMessage = _useIntl.formatMessage;
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
41
41
|
xcss: styles.chatToAgentButtonContainer
|
|
@@ -83,7 +83,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
83
83
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
84
84
|
isLoading = _useState2[0],
|
|
85
85
|
setIsLoading = _useState2[1];
|
|
86
|
-
var _useIntl2 = (0,
|
|
86
|
+
var _useIntl2 = (0, _reactIntl.useIntl)(),
|
|
87
87
|
formatMessage = _useIntl2.formatMessage;
|
|
88
88
|
var _useState3 = (0, _react.useState)(false),
|
|
89
89
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var _default_1 = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var _default_1 = (0, _reactIntl.defineMessages)({
|
|
9
9
|
chatToAgentButton: {
|
|
10
10
|
id: 'rovo-chat.view-agent.chat-to-agent-button',
|
|
11
11
|
defaultMessage: 'Chat to Agent',
|
|
@@ -10,7 +10,7 @@ exports.AgentStarCount = void 0;
|
|
|
10
10
|
require("./index.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _starUnstarred = _interopRequireDefault(require("@atlaskit/icon/core/star-unstarred"));
|
|
15
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
16
|
var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
|
|
@@ -23,7 +23,7 @@ var styles = {
|
|
|
23
23
|
var AgentStarCount = exports.AgentStarCount = function AgentStarCount(_ref) {
|
|
24
24
|
var starCount = _ref.starCount,
|
|
25
25
|
isLoading = _ref.isLoading;
|
|
26
|
-
var _useIntl = (0,
|
|
26
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
27
27
|
formatMessage = _useIntl.formatMessage;
|
|
28
28
|
if ((starCount === null || starCount === undefined) && !isLoading) {
|
|
29
29
|
return null;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
starredCount: {
|
|
10
10
|
id: 'ai-mate.agent-profile-info.starred-count',
|
|
11
11
|
defaultMessage: '{starCount} {starCount, plural, one {user} other {users}}',
|
|
@@ -9,7 +9,7 @@ exports.getAgentCreator = exports.AgentProfileInfo = exports.AgentProfileCreator
|
|
|
9
9
|
require("./index.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _reactIntl = require("react-intl");
|
|
13
13
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
14
14
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
15
15
|
var _logo = require("@atlaskit/logo");
|
|
@@ -76,7 +76,7 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
76
76
|
var creator = _ref2.creator,
|
|
77
77
|
onCreatorLinkClick = _ref2.onCreatorLinkClick,
|
|
78
78
|
isLoading = _ref2.isLoading;
|
|
79
|
-
var _useIntl = (0,
|
|
79
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
80
80
|
formatMessage = _useIntl.formatMessage;
|
|
81
81
|
var getCreatorRender = function getCreatorRender() {
|
|
82
82
|
if (isLoading) {
|
|
@@ -149,7 +149,7 @@ var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref
|
|
|
149
149
|
_ref3$showStarButton = _ref3.showStarButton,
|
|
150
150
|
showStarButton = _ref3$showStarButton === void 0 ? true : _ref3$showStarButton,
|
|
151
151
|
renderAdditionalContent = _ref3.renderAdditionalContent;
|
|
152
|
-
var _useIntl2 = (0,
|
|
152
|
+
var _useIntl2 = (0, _reactIntl.useIntl)(),
|
|
153
153
|
formatMessage = _useIntl2.formatMessage;
|
|
154
154
|
return /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
|
|
155
155
|
space: "space.100"
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
agentCreatedBy: {
|
|
10
10
|
id: 'ai-mate.agent-profile-info.created-by',
|
|
11
11
|
defaultMessage: 'Rovo Agent by {creatorNameWithLink}',
|
|
@@ -11,7 +11,7 @@ var _agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerifi
|
|
|
11
11
|
var _agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef2 = _interopRequireDefault(require("./__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef.graphql"));
|
|
12
12
|
var _agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef2 = _interopRequireDefault(require("./__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef.graphql"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
-
var
|
|
14
|
+
var _reactIntl = require("react-intl");
|
|
15
15
|
var _reactRelay = require("react-relay");
|
|
16
16
|
var _dropdownMenu = require("@atlaskit/dropdown-menu");
|
|
17
17
|
var _flag = require("@atlaskit/flag");
|
|
@@ -33,7 +33,7 @@ var AgentVerificationDropdownItem = exports.AgentVerificationDropdownItem = func
|
|
|
33
33
|
onVerificationSuccess = _ref.onVerificationSuccess,
|
|
34
34
|
testId = _ref.testId,
|
|
35
35
|
renderItem = _ref.renderItem;
|
|
36
|
-
var _useIntl = (0,
|
|
36
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
37
37
|
formatMessage = _useIntl.formatMessage;
|
|
38
38
|
var _useFlags = (0, _flag.useFlags)(),
|
|
39
39
|
showFlag = _useFlags.showFlag;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var _default_1 = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var _default_1 = (0, _reactIntl.defineMessages)({
|
|
9
9
|
verifyAgentLabel: {
|
|
10
10
|
id: 'rovo-agent-components.agent-verification-dropdown-item.verify-agent',
|
|
11
11
|
defaultMessage: 'Verify agent',
|
|
@@ -10,7 +10,7 @@ require("./index.compiled.css");
|
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _agentVerified_AtlaskitRovoAgentComponents2 = _interopRequireDefault(require("./__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _reactRelay = require("react-relay");
|
|
15
15
|
var _css = require("@atlaskit/css");
|
|
16
16
|
var _statusVerified = _interopRequireDefault(require("@atlaskit/icon/core/status-verified"));
|
|
@@ -37,7 +37,7 @@ var styles = {
|
|
|
37
37
|
var AgentVerifiedIcon = exports.AgentVerifiedIcon = function AgentVerifiedIcon(_ref2) {
|
|
38
38
|
var _ref2$adjacentTextSiz = _ref2.adjacentTextSize,
|
|
39
39
|
adjacentTextSize = _ref2$adjacentTextSiz === void 0 ? 'body' : _ref2$adjacentTextSiz;
|
|
40
|
-
var _useIntl = (0,
|
|
40
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
41
41
|
formatMessage = _useIntl.formatMessage;
|
|
42
42
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
43
43
|
content: formatMessage(_messages.default.verifiedAgentTooltip)
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var _default_1 = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var _default_1 = (0, _reactIntl.defineMessages)({
|
|
9
9
|
verifiedAgentTooltip: {
|
|
10
10
|
id: 'agent-studio-ui-components.agent-verified.tooltip',
|
|
11
11
|
defaultMessage: 'This agent has been verified by your organization.',
|
|
@@ -4,7 +4,7 @@ import "./index.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import { useIntl } from 'react-intl
|
|
7
|
+
import { useIntl } from 'react-intl';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import AgentIcon from '@atlaskit/icon/core/ai-agent';
|
|
10
10
|
import { Box, Inline, Pressable } from '@atlaskit/primitives/compiled';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { IconButton } from '@atlaskit/button/new';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useState } from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { cx } from '@atlaskit/css';
|
|
8
8
|
import StarIconMigration from '@atlaskit/icon/core/star-starred';
|
|
9
9
|
import StarUnstarredIconMigration from '@atlaskit/icon/core/star-unstarred';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import { AVATAR_SIZES } from '@atlaskit/avatar';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { IconButton } from '@atlaskit/button/new';
|
|
8
8
|
import RetryIcon from '@atlaskit/icon/core/retry';
|
|
9
9
|
import { Box, Inline, Pressable, Stack } from '@atlaskit/primitives/compiled';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useEffect, useState } from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
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';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import StarIcon from '@atlaskit/icon/core/star-unstarred';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import Skeleton from '@atlaskit/skeleton';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import Heading from '@atlaskit/heading';
|
|
7
7
|
import Link from '@atlaskit/link';
|
|
8
8
|
import { AtlassianIcon, RovoIcon } from '@atlaskit/logo';
|
|
@@ -2,7 +2,7 @@ import _agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVer
|
|
|
2
2
|
import _agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef from "./__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef.graphql";
|
|
3
3
|
import _agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef from "./__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef.graphql";
|
|
4
4
|
import React, { useCallback } from 'react';
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import { graphql, useFragment, useMutation } from 'react-relay';
|
|
7
7
|
import { DropdownItem } from '@atlaskit/dropdown-menu';
|
|
8
8
|
import { useFlags } from '@atlaskit/flag';
|
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import _agentVerified_AtlaskitRovoAgentComponents from "./__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { graphql, useFragment } from 'react-relay';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import VerifiedIcon from '@atlaskit/icon/core/status-verified';
|
|
@@ -6,7 +6,7 @@ import "./index.compiled.css";
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
|
-
import { useIntl } from 'react-intl
|
|
9
|
+
import { useIntl } from 'react-intl';
|
|
10
10
|
import { cx } from '@atlaskit/css';
|
|
11
11
|
import AgentIcon from '@atlaskit/icon/core/ai-agent';
|
|
12
12
|
import { Box, Inline, Pressable } from '@atlaskit/primitives/compiled';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { IconButton } from '@atlaskit/button/new';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
@@ -4,7 +4,7 @@ import "./index.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useState } from 'react';
|
|
7
|
-
import { useIntl } from 'react-intl
|
|
7
|
+
import { useIntl } from 'react-intl';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import StarIconMigration from '@atlaskit/icon/core/star-starred';
|
|
10
10
|
import StarUnstarredIconMigration from '@atlaskit/icon/core/star-unstarred';
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
-
import { useIntl } from 'react-intl
|
|
8
|
+
import { useIntl } from 'react-intl';
|
|
9
9
|
import { AVATAR_SIZES } from '@atlaskit/avatar';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -6,7 +6,7 @@ var _excluded = ["userDefinedConversationStarters", "isAgentDefault"];
|
|
|
6
6
|
import "./index.compiled.css";
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import React, { useMemo } from 'react';
|
|
9
|
-
import { useIntl } from 'react-intl
|
|
9
|
+
import { useIntl } from 'react-intl';
|
|
10
10
|
import { IconButton } from '@atlaskit/button/new';
|
|
11
11
|
import RetryIcon from '@atlaskit/icon/core/retry';
|
|
12
12
|
import { Box, Inline, Pressable, Stack } from '@atlaskit/primitives/compiled';
|
|
@@ -8,7 +8,7 @@ import "./index.compiled.css";
|
|
|
8
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
import React, { useEffect, useState } from 'react';
|
|
11
|
-
import { useIntl } from 'react-intl
|
|
11
|
+
import { useIntl } from 'react-intl';
|
|
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';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import StarIcon from '@atlaskit/icon/core/star-unstarred';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import Skeleton from '@atlaskit/skeleton';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import Heading from '@atlaskit/heading';
|
|
7
7
|
import Link from '@atlaskit/link';
|
|
8
8
|
import { AtlassianIcon, RovoIcon } from '@atlaskit/logo';
|
|
@@ -3,7 +3,7 @@ import _agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVer
|
|
|
3
3
|
import _agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef from "./__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef.graphql";
|
|
4
4
|
import _agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef from "./__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef.graphql";
|
|
5
5
|
import React, { useCallback } from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { graphql, useFragment, useMutation } from 'react-relay';
|
|
8
8
|
import { DropdownItem } from '@atlaskit/dropdown-menu';
|
|
9
9
|
import { useFlags } from '@atlaskit/flag';
|
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import _agentVerified_AtlaskitRovoAgentComponents from "./__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { graphql, useFragment } from 'react-relay';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import VerifiedIcon from '@atlaskit/icon/core/status-verified';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.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": {
|
|
@@ -51,15 +51,14 @@
|
|
|
51
51
|
"@atlaskit/link": "^3.4.0",
|
|
52
52
|
"@atlaskit/logo": "^20.0.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
|
-
"@atlaskit/primitives": "^
|
|
54
|
+
"@atlaskit/primitives": "^19.0.0",
|
|
55
55
|
"@atlaskit/rovo-agent-analytics": "^1.1.0",
|
|
56
56
|
"@atlaskit/skeleton": "^2.1.0",
|
|
57
|
-
"@atlaskit/tokens": "^
|
|
57
|
+
"@atlaskit/tokens": "^13.0.0",
|
|
58
58
|
"@atlaskit/tooltip": "^21.1.0",
|
|
59
59
|
"@babel/runtime": "^7.0.0",
|
|
60
60
|
"@compiled/react": "^0.20.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
|
-
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
63
62
|
"react-magnetic-di": "^3.1.4",
|
|
64
63
|
"react-relay": "npm:atl-react-relay@0.0.0-main-39e79f66"
|
|
65
64
|
},
|
|
@@ -74,11 +73,13 @@
|
|
|
74
73
|
"@testing-library/react": "^16.3.0",
|
|
75
74
|
"@testing-library/user-event": "^14.4.3",
|
|
76
75
|
"@types/relay-test-utils": "^18.0.0",
|
|
76
|
+
"react-intl": "^6.6.2",
|
|
77
77
|
"relay-test-utils": "^14.1.0",
|
|
78
78
|
"wait-for-expect": "^1.2.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"react": "^18.2.0"
|
|
81
|
+
"react": "^18.2.0",
|
|
82
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
82
83
|
},
|
|
83
84
|
"techstack": {
|
|
84
85
|
"@atlassian/frontend": {
|