@atlaskit/rovo-agent-components 0.1.0 → 0.1.1

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
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#125026](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/125026)
8
+ [`6a0fb797d9383`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a0fb797d9383) -
9
+ Fix not showing loading state if favouriteCount is undefined
10
+
3
11
  ## 0.1.0
4
12
 
5
13
  ### Minor Changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -88,7 +88,7 @@ var AgentStarCount = exports.AgentStarCount = function AgentStarCount(_ref2) {
88
88
  isLoading = _ref2.isLoading;
89
89
  var _useIntl2 = (0, _reactIntlNext.useIntl)(),
90
90
  formatMessage = _useIntl2.formatMessage;
91
- if (starCount === null || starCount === undefined) {
91
+ if ((starCount === null || starCount === undefined) && !isLoading) {
92
92
  return null;
93
93
  }
94
94
  return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
File without changes
File without changes
@@ -83,7 +83,7 @@ export const AgentStarCount = ({
83
83
  const {
84
84
  formatMessage
85
85
  } = useIntl();
86
- if (starCount === null || starCount === undefined) {
86
+ if ((starCount === null || starCount === undefined) && !isLoading) {
87
87
  return null;
88
88
  }
89
89
  return /*#__PURE__*/React.createElement(Box, {
File without changes
File without changes
@@ -81,7 +81,7 @@ export var AgentStarCount = function AgentStarCount(_ref2) {
81
81
  isLoading = _ref2.isLoading;
82
82
  var _useIntl2 = useIntl(),
83
83
  formatMessage = _useIntl2.formatMessage;
84
- if (starCount === null || starCount === undefined) {
84
+ if ((starCount === null || starCount === undefined) && !isLoading) {
85
85
  return null;
86
86
  }
87
87
  return /*#__PURE__*/React.createElement(Box, {
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
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",