@atlaskit/rovo-agent-components 2.9.0 → 2.10.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,23 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 2.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#149822](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149822)
8
+ [`f9ab0e846ae21`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f9ab0e846ae21) -
9
+ Updated to support `size` prop for new icons from `@atlaskit/icon`.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 2.9.1
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 2.9.0
4
22
 
5
23
  ### Minor Changes
@@ -11,7 +11,9 @@ var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
12
  var _reactIntlNext = require("react-intl-next");
13
13
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
14
+ var _link = _interopRequireDefault(require("@atlaskit/link"));
14
15
  var _logo = require("@atlaskit/logo");
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
17
  var _compiled = require("@atlaskit/primitives/compiled");
16
18
  var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
17
19
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
@@ -60,7 +62,17 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
60
62
  }
61
63
  if (creator.type === 'CUSTOMER') {
62
64
  return formatMessage(_messages.messages.agentCreatedBy, {
63
- creatorNameWithLink: /*#__PURE__*/_react.default.createElement("a", {
65
+ creatorNameWithLink: (0, _platformFeatureFlags.fg)('dst-a11y__replace-anchor-with-link__ai-mate') ? /*#__PURE__*/_react.default.createElement(_link.default, {
66
+ "aria-label": creator.name || formatMessage(_messages.messages.creatorLabel),
67
+ href: creator.profileLink,
68
+ onClick: function onClick() {
69
+ return onCreatorLinkClick();
70
+ },
71
+ target: "_blank"
72
+ }, creator.name, ' ', creator.status === 'inactive' && formatMessage(_messages.messages.agentDeactivated)) :
73
+ /*#__PURE__*/
74
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
75
+ _react.default.createElement("a", {
64
76
  "aria-label": creator.name || formatMessage(_messages.messages.creatorLabel),
65
77
  href: creator.profileLink,
66
78
  onClick: function onClick() {
@@ -4,7 +4,9 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { useIntl } from 'react-intl-next';
6
6
  import Heading from '@atlaskit/heading';
7
+ import Link from '@atlaskit/link';
7
8
  import { AtlassianIcon, RovoIcon } from '@atlaskit/logo';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
8
10
  import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
9
11
  import Skeleton from '@atlaskit/skeleton';
10
12
  import Tooltip from '@atlaskit/tooltip';
@@ -55,7 +57,15 @@ export const AgentProfileCreator = ({
55
57
  }
56
58
  if (creator.type === 'CUSTOMER') {
57
59
  return formatMessage(messages.agentCreatedBy, {
58
- creatorNameWithLink: /*#__PURE__*/React.createElement("a", {
60
+ creatorNameWithLink: fg('dst-a11y__replace-anchor-with-link__ai-mate') ? /*#__PURE__*/React.createElement(Link, {
61
+ "aria-label": creator.name || formatMessage(messages.creatorLabel),
62
+ href: creator.profileLink,
63
+ onClick: () => onCreatorLinkClick(),
64
+ target: "_blank"
65
+ }, creator.name, ' ', creator.status === 'inactive' && formatMessage(messages.agentDeactivated)) :
66
+ /*#__PURE__*/
67
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
68
+ React.createElement("a", {
59
69
  "aria-label": creator.name || formatMessage(messages.creatorLabel),
60
70
  href: creator.profileLink,
61
71
  onClick: () => onCreatorLinkClick(),
@@ -4,7 +4,9 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { useIntl } from 'react-intl-next';
6
6
  import Heading from '@atlaskit/heading';
7
+ import Link from '@atlaskit/link';
7
8
  import { AtlassianIcon, RovoIcon } from '@atlaskit/logo';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
8
10
  import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
9
11
  import Skeleton from '@atlaskit/skeleton';
10
12
  import Tooltip from '@atlaskit/tooltip';
@@ -53,7 +55,17 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref) {
53
55
  }
54
56
  if (creator.type === 'CUSTOMER') {
55
57
  return formatMessage(messages.agentCreatedBy, {
56
- creatorNameWithLink: /*#__PURE__*/React.createElement("a", {
58
+ creatorNameWithLink: fg('dst-a11y__replace-anchor-with-link__ai-mate') ? /*#__PURE__*/React.createElement(Link, {
59
+ "aria-label": creator.name || formatMessage(messages.creatorLabel),
60
+ href: creator.profileLink,
61
+ onClick: function onClick() {
62
+ return onCreatorLinkClick();
63
+ },
64
+ target: "_blank"
65
+ }, creator.name, ' ', creator.status === 'inactive' && formatMessage(messages.agentDeactivated)) :
66
+ /*#__PURE__*/
67
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor
68
+ React.createElement("a", {
57
69
  "aria-label": creator.name || formatMessage(messages.creatorLabel),
58
70
  href: creator.profileLink,
59
71
  onClick: function onClick() {
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type IconProps } from '@atlaskit/icon';
3
- export declare const ChatPillIcon: (props: Omit<IconProps, 'label' | 'glyph'>) => React.JSX.Element;
2
+ import { type NewCoreIconProps } from '@atlaskit/icon';
3
+ export declare const ChatPillIcon: (props: Omit<NewCoreIconProps, 'label' | 'glyph'>) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type IconProps } from '@atlaskit/icon';
3
- export declare const HiddenIcon: (props: Omit<IconProps, 'glyph'>) => React.JSX.Element;
2
+ import { type NewCoreIconProps } from '@atlaskit/icon';
3
+ export declare const HiddenIcon: (props: Omit<NewCoreIconProps, 'glyph'>) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type IconProps } from '@atlaskit/icon';
3
- export declare const ShowIcon: (props: Omit<IconProps, 'glyph'>) => React.JSX.Element;
2
+ import { type NewCoreIconProps } from '@atlaskit/icon';
3
+ export declare const ShowIcon: (props: NewCoreIconProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type IconProps } from '@atlaskit/icon';
3
- export declare const ChatPillIcon: (props: Omit<IconProps, 'label' | 'glyph'>) => React.JSX.Element;
2
+ import { type NewCoreIconProps } from '@atlaskit/icon';
3
+ export declare const ChatPillIcon: (props: Omit<NewCoreIconProps, 'label' | 'glyph'>) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type IconProps } from '@atlaskit/icon';
3
- export declare const HiddenIcon: (props: Omit<IconProps, 'glyph'>) => React.JSX.Element;
2
+ import { type NewCoreIconProps } from '@atlaskit/icon';
3
+ export declare const HiddenIcon: (props: Omit<NewCoreIconProps, 'glyph'>) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type IconProps } from '@atlaskit/icon';
3
- export declare const ShowIcon: (props: Omit<IconProps, 'glyph'>) => React.JSX.Element;
2
+ import { type NewCoreIconProps } from '@atlaskit/icon';
3
+ export declare const ShowIcon: (props: NewCoreIconProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "2.9.0",
3
+ "version": "2.10.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",
@@ -38,17 +38,18 @@
38
38
  "dependencies": {
39
39
  "@atlaskit/analytics-next": "^11.0.0",
40
40
  "@atlaskit/avatar": "^25.1.0",
41
- "@atlaskit/button": "^23.0.0",
41
+ "@atlaskit/button": "^23.1.0",
42
42
  "@atlaskit/css": "^0.10.0",
43
- "@atlaskit/dropdown-menu": "^14.2.0",
43
+ "@atlaskit/dropdown-menu": "^15.1.0",
44
44
  "@atlaskit/heading": "^5.2.0",
45
- "@atlaskit/icon": "^26.0.0",
45
+ "@atlaskit/icon": "^26.1.0",
46
46
  "@atlaskit/legacy-custom-icons": "^0.22.0",
47
+ "@atlaskit/link": "^3.1.0",
47
48
  "@atlaskit/logo": "^18.0.0",
48
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
50
  "@atlaskit/primitives": "^14.7.0",
50
51
  "@atlaskit/skeleton": "^2.0.0",
51
- "@atlaskit/tokens": "^4.8.0",
52
+ "@atlaskit/tokens": "^4.9.0",
52
53
  "@atlaskit/tooltip": "^20.0.0",
53
54
  "@babel/runtime": "^7.0.0",
54
55
  "@compiled/react": "^0.18.3",
@@ -112,6 +113,9 @@
112
113
  "platform-feature-flags": {
113
114
  "rovo_chat_bugfix_agent_avatar_squish": {
114
115
  "type": "boolean"
116
+ },
117
+ "dst-a11y__replace-anchor-with-link__ai-mate": {
118
+ "type": "boolean"
115
119
  }
116
120
  }
117
121
  }