@atlaskit/rovo-agent-components 2.8.2 → 2.9.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,13 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 2.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#154958](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/154958)
8
+ [`21f93614739fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/21f93614739fd) -
9
+ Patch to respect agent avatar size prop when fixing squished avatar bug
10
+
3
11
  ## 2.8.2
4
12
 
5
13
  ### Patch Changes
@@ -2,8 +2,6 @@
2
2
  ._1bsb1lk2{width:95%}
3
3
  ._1bsb1osq{width:100%}
4
4
  ._1e0c1txw{display:flex}
5
- ._1tkezwfg{min-height:2pc}
6
- ._1ul9zwfg{min-width:2pc}
7
5
  ._4cvr1h6o{align-items:center}
8
6
  ._4t3i1lk2{height:95%}
9
7
  ._4t3i1osq{height:100%}
@@ -23,7 +23,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
23
23
  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) { (0, _defineProperty2.default)(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; }
24
24
  var styles = {
25
25
  agentAvatar: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g",
26
- agentAvatarPreventSquish: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g _1ul9zwfg _1tkezwfg",
27
26
  image: "_5ral1dfr _4t3i1osq _1bsb1osq",
28
27
  avatarContentContainer: "_1bsb1osq _4t3i1osq _1e0c1txw _1bah1h6o _4cvr1h6o"
29
28
  };
@@ -55,14 +54,19 @@ var AgentAvatar = exports.AgentAvatar = function AgentAvatar(_ref) {
55
54
  var imgUrl = isForgeAgent && forgeAgentIconUrl ? forgeAgentIconUrl : imageUrl;
56
55
  return /*#__PURE__*/React.createElement(_compiled.Box, {
57
56
  "aria-label": label,
58
- xcss: (0, _platformFeatureFlags.fg)('rovo_chat_bugfix_agent_avatar_squish') ? styles.agentAvatarPreventSquish : styles.agentAvatar,
59
- style: _objectSpread({
57
+ xcss: styles.agentAvatar,
58
+ style: _objectSpread(_objectSpread({
60
59
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
61
60
  height: _avatar.AVATAR_SIZES[size],
62
61
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
63
62
  width: _avatar.AVATAR_SIZES[size]
64
63
  }, showBorder ? {
65
64
  backgroundColor: '#fff'
65
+ } : {}), (0, _platformFeatureFlags.fg)('rovo_chat_bugfix_agent_avatar_squish') ? {
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
67
+ minHeight: _avatar.AVATAR_SIZES[size],
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
69
+ minWidth: _avatar.AVATAR_SIZES[size]
66
70
  } : {})
67
71
  }, /*#__PURE__*/React.createElement("div", {
68
72
  className: (0, _runtime.ax)([stylesCompiled.innerShape])
@@ -2,8 +2,6 @@
2
2
  ._1bsb1lk2{width:95%}
3
3
  ._1bsb1osq{width:100%}
4
4
  ._1e0c1txw{display:flex}
5
- ._1tkezwfg{min-height:2pc}
6
- ._1ul9zwfg{min-width:2pc}
7
5
  ._4cvr1h6o{align-items:center}
8
6
  ._4t3i1lk2{height:95%}
9
7
  ._4t3i1osq{height:100%}
@@ -10,7 +10,6 @@ import { GeneratedAvatar } from './generated-avatars';
10
10
  import { messages } from './messages';
11
11
  const styles = {
12
12
  agentAvatar: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g",
13
- agentAvatarPreventSquish: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g _1ul9zwfg _1tkezwfg",
14
13
  image: "_5ral1dfr _4t3i1osq _1bsb1osq",
15
14
  avatarContentContainer: "_1bsb1osq _4t3i1osq _1e0c1txw _1bah1h6o _4cvr1h6o"
16
15
  };
@@ -42,7 +41,7 @@ export const AgentAvatar = ({
42
41
  const imgUrl = isForgeAgent && forgeAgentIconUrl ? forgeAgentIconUrl : imageUrl;
43
42
  return /*#__PURE__*/React.createElement(Box, {
44
43
  "aria-label": label,
45
- xcss: fg('rovo_chat_bugfix_agent_avatar_squish') ? styles.agentAvatarPreventSquish : styles.agentAvatar,
44
+ xcss: styles.agentAvatar,
46
45
  style: {
47
46
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
48
47
  height: AVATAR_SIZES[size],
@@ -51,6 +50,13 @@ export const AgentAvatar = ({
51
50
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/ensure-design-token-usage
52
51
  ...(showBorder ? {
53
52
  backgroundColor: '#fff'
53
+ } : {}),
54
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
55
+ ...(fg('rovo_chat_bugfix_agent_avatar_squish') ? {
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
57
+ minHeight: AVATAR_SIZES[size],
58
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
59
+ minWidth: AVATAR_SIZES[size]
54
60
  } : {})
55
61
  }
56
62
  }, /*#__PURE__*/React.createElement("div", {
@@ -2,8 +2,6 @@
2
2
  ._1bsb1lk2{width:95%}
3
3
  ._1bsb1osq{width:100%}
4
4
  ._1e0c1txw{display:flex}
5
- ._1tkezwfg{min-height:2pc}
6
- ._1ul9zwfg{min-width:2pc}
7
5
  ._4cvr1h6o{align-items:center}
8
6
  ._4t3i1lk2{height:95%}
9
7
  ._4t3i1osq{height:100%}
@@ -13,7 +13,6 @@ import { GeneratedAvatar } from './generated-avatars';
13
13
  import { messages } from './messages';
14
14
  var styles = {
15
15
  agentAvatar: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g",
16
- agentAvatarPreventSquish: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g _1ul9zwfg _1tkezwfg",
17
16
  image: "_5ral1dfr _4t3i1osq _1bsb1osq",
18
17
  avatarContentContainer: "_1bsb1osq _4t3i1osq _1e0c1txw _1bah1h6o _4cvr1h6o"
19
18
  };
@@ -45,14 +44,19 @@ export var AgentAvatar = function AgentAvatar(_ref) {
45
44
  var imgUrl = isForgeAgent && forgeAgentIconUrl ? forgeAgentIconUrl : imageUrl;
46
45
  return /*#__PURE__*/React.createElement(Box, {
47
46
  "aria-label": label,
48
- xcss: fg('rovo_chat_bugfix_agent_avatar_squish') ? styles.agentAvatarPreventSquish : styles.agentAvatar,
49
- style: _objectSpread({
47
+ xcss: styles.agentAvatar,
48
+ style: _objectSpread(_objectSpread({
50
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
51
50
  height: AVATAR_SIZES[size],
52
51
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
53
52
  width: AVATAR_SIZES[size]
54
53
  }, showBorder ? {
55
54
  backgroundColor: '#fff'
55
+ } : {}), fg('rovo_chat_bugfix_agent_avatar_squish') ? {
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
57
+ minHeight: AVATAR_SIZES[size],
58
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
59
+ minWidth: AVATAR_SIZES[size]
56
60
  } : {})
57
61
  }, /*#__PURE__*/React.createElement("div", {
58
62
  className: ax([stylesCompiled.innerShape])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "2.8.2",
3
+ "version": "2.9.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",
@@ -37,10 +37,10 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@atlaskit/analytics-next": "^11.0.0",
40
- "@atlaskit/avatar": "^25.0.0",
40
+ "@atlaskit/avatar": "^25.1.0",
41
41
  "@atlaskit/button": "^23.0.0",
42
42
  "@atlaskit/css": "^0.10.0",
43
- "@atlaskit/dropdown-menu": "^14.1.0",
43
+ "@atlaskit/dropdown-menu": "^14.2.0",
44
44
  "@atlaskit/heading": "^5.2.0",
45
45
  "@atlaskit/icon": "^26.0.0",
46
46
  "@atlaskit/legacy-custom-icons": "^0.22.0",