@atlaskit/rovo-agent-components 3.37.0 → 3.38.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,18 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 3.38.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.38.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`a4789cedc2893`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a4789cedc2893) -
14
+ Cleanup rovo_agent_empty_state_refresh FG
15
+
3
16
  ## 3.37.0
4
17
 
5
18
  ### Minor Changes
@@ -15,9 +15,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
15
15
  var _react = _interopRequireWildcard(require("react"));
16
16
  var _reactIntlNext = require("react-intl-next");
17
17
  var _new = require("@atlaskit/button/new");
18
- var _css = require("@atlaskit/css");
19
18
  var _retry = _interopRequireDefault(require("@atlaskit/icon/core/retry"));
20
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
19
  var _compiled = require("@atlaskit/primitives/compiled");
22
20
  var _agentChatIcon = require("../../common/ui/agent-chat-icon");
23
21
  var _chatPill = require("../../common/ui/chat-pill");
@@ -25,8 +23,7 @@ var _messages = require("./messages");
25
23
  var _excluded = ["userDefinedConversationStarters", "isAgentDefault"];
26
24
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
27
25
  var styles = {
28
- conversationStartersList: "_qtt8glyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf",
29
- conversationStartersListRefresh: "_1bsb1osq",
26
+ conversationStartersList: "_qtt8glyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bsb1osq",
30
27
  conversationStarterIcon: "_1o9zidpf",
31
28
  conversationStarterText: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c _1o9zkb7n _1ul9idpf",
32
29
  button: "_11c8fhey _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
@@ -110,17 +107,18 @@ var ConversationStarters = exports.ConversationStarters = function ConversationS
110
107
  return /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
111
108
  as: "ul",
112
109
  space: "space.050",
113
- xcss: (0, _css.cx)(styles.conversationStartersList, (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') && styles.conversationStartersListRefresh)
110
+ xcss: styles.conversationStartersList
114
111
  }, starters.map(function (starter, index) {
115
112
  var isLastStarter = index === starters.length - 1;
116
113
  var chatPill = /*#__PURE__*/_react.default.createElement(_compiled.Box, {
117
114
  as: "li",
118
115
  key: starter.message
119
- }, (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
116
+ }, /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
120
117
  xcss: styles.button,
121
118
  onClick: function onClick() {
122
119
  return onConversationStarterClick(starter);
123
- }
120
+ },
121
+ testId: "conversation-starter"
124
122
  }, /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
125
123
  space: "space.150",
126
124
  alignBlock: "center"
@@ -128,13 +126,7 @@ var ConversationStarters = exports.ConversationStarters = function ConversationS
128
126
  xcss: styles.conversationStarterIcon
129
127
  }, /*#__PURE__*/_react.default.createElement(_agentChatIcon.AgentChatIcon, null)), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
130
128
  xcss: styles.conversationStarterText
131
- }, starter.message))) : /*#__PURE__*/_react.default.createElement(_chatPill.ChatPill, {
132
- testId: "conversation-starter",
133
- key: starter.message,
134
- onClick: function onClick() {
135
- return onConversationStarterClick(starter);
136
- }
137
- }, starter.message));
129
+ }, starter.message))));
138
130
  return isLastStarter && showReloadButton ? /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
139
131
  space: "space.050",
140
132
  grow: "fill",
@@ -1,12 +1,10 @@
1
1
 
2
2
  ._zulp1b66{gap:var(--ds-space-050,4px)}
3
3
  ._1mouze3t{margin-block:var(--ds-space-0,0)}._19pkv77o{margin-top:var(--ds-space-025,2px)}
4
- ._19pkze3t{margin-top:var(--ds-space-0,0)}
5
4
  ._1bah1yb4{justify-content:space-between}
6
5
  ._1e0c1txw{display:flex}
7
6
  ._1i4qfg65{overflow-wrap:anywhere}
8
7
  ._1nmz1hna{word-break:break-word}
9
8
  ._4cvr1h6o{align-items:center}
10
9
  ._4cvr1y6m{align-items:flex-start}
11
- ._kqswh2mm{position:relative}
12
- ._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
10
+ ._kqswh2mm{position:relative}
@@ -25,9 +25,7 @@ var styles = {
25
25
  clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
26
26
  rovoIconWrapper: "_1e0c1txw",
27
27
  name: "_1bah1yb4 _4cvr1y6m",
28
- description: "_19pkze3t _otyru2gc _1i4qfg65 _1nmz1hna",
29
- descriptionRefresh: "_1mouze3t _1i4qfg65 _1nmz1hna",
30
- wrapper: "_otyru2gc",
28
+ description: "_1mouze3t _1i4qfg65 _1nmz1hna",
31
29
  headingWrapper: "_kqswh2mm",
32
30
  hiddenIconWrapper: "_19pkv77o"
33
31
  };
@@ -162,8 +160,7 @@ var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref
162
160
  var _useIntl2 = (0, _reactIntlNext.useIntl)(),
163
161
  formatMessage = _useIntl2.formatMessage;
164
162
  return /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
165
- space: "space.100",
166
- xcss: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? null : styles.wrapper
163
+ space: "space.100"
167
164
  }, /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
168
165
  xcss: styles.name,
169
166
  space: "space.100",
@@ -173,7 +170,7 @@ var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref
173
170
  xcss: styles.headingWrapper
174
171
  }, /*#__PURE__*/_react.default.createElement(_heading.default, {
175
172
  as: "h2",
176
- size: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? 'medium' : 'xlarge'
173
+ size: "medium"
177
174
  }, agentName), headingRender, isHidden && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
178
175
  xcss: styles.hiddenIconWrapper
179
176
  }, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
@@ -185,7 +182,7 @@ var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref
185
182
  isStarred: isStarred,
186
183
  handleToggle: onStarToggle
187
184
  })), creatorRender, !!agentDescription && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
188
- xcss: (0, _platformFeatureFlags.fg)('rovo_agent_empty_state_refresh') ? styles.descriptionRefresh : styles.description,
185
+ xcss: styles.description,
189
186
  as: "p"
190
187
  }, agentDescription), starCountRender);
191
188
  };
@@ -5,16 +5,13 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useMemo } from 'react';
6
6
  import { useIntl } from 'react-intl-next';
7
7
  import { IconButton } from '@atlaskit/button/new';
8
- import { cx } from '@atlaskit/css';
9
8
  import RetryIcon from '@atlaskit/icon/core/retry';
10
- import { fg } from '@atlaskit/platform-feature-flags';
11
9
  import { Box, Inline, Pressable, Stack } from '@atlaskit/primitives/compiled';
12
10
  import { AgentChatIcon } from '../../common/ui/agent-chat-icon';
13
- import { BrowseAgentsPill, ChatPill } from '../../common/ui/chat-pill';
11
+ import { BrowseAgentsPill } from '../../common/ui/chat-pill';
14
12
  import { messages } from './messages';
15
13
  const styles = {
16
- conversationStartersList: "_qtt8glyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf",
17
- conversationStartersListRefresh: "_1bsb1osq",
14
+ conversationStartersList: "_qtt8glyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bsb1osq",
18
15
  conversationStarterIcon: "_1o9zidpf",
19
16
  conversationStarterText: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c _1o9zkb7n _1ul9idpf",
20
17
  button: "_11c8fhey _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
@@ -95,15 +92,16 @@ export const ConversationStarters = ({
95
92
  return /*#__PURE__*/React.createElement(Stack, {
96
93
  as: "ul",
97
94
  space: "space.050",
98
- xcss: cx(styles.conversationStartersList, fg('rovo_agent_empty_state_refresh') && styles.conversationStartersListRefresh)
95
+ xcss: styles.conversationStartersList
99
96
  }, starters.map((starter, index) => {
100
97
  const isLastStarter = index === starters.length - 1;
101
98
  const chatPill = /*#__PURE__*/React.createElement(Box, {
102
99
  as: "li",
103
100
  key: starter.message
104
- }, fg('rovo_agent_empty_state_refresh') ? /*#__PURE__*/React.createElement(Pressable, {
101
+ }, /*#__PURE__*/React.createElement(Pressable, {
105
102
  xcss: styles.button,
106
- onClick: () => onConversationStarterClick(starter)
103
+ onClick: () => onConversationStarterClick(starter),
104
+ testId: "conversation-starter"
107
105
  }, /*#__PURE__*/React.createElement(Inline, {
108
106
  space: "space.150",
109
107
  alignBlock: "center"
@@ -111,11 +109,7 @@ export const ConversationStarters = ({
111
109
  xcss: styles.conversationStarterIcon
112
110
  }, /*#__PURE__*/React.createElement(AgentChatIcon, null)), /*#__PURE__*/React.createElement(Box, {
113
111
  xcss: styles.conversationStarterText
114
- }, starter.message))) : /*#__PURE__*/React.createElement(ChatPill, {
115
- testId: "conversation-starter",
116
- key: starter.message,
117
- onClick: () => onConversationStarterClick(starter)
118
- }, starter.message));
112
+ }, starter.message))));
119
113
  return isLastStarter && showReloadButton ? /*#__PURE__*/React.createElement(Inline, {
120
114
  space: "space.050",
121
115
  grow: "fill",
@@ -1,12 +1,10 @@
1
1
 
2
2
  ._zulp1b66{gap:var(--ds-space-050,4px)}
3
3
  ._1mouze3t{margin-block:var(--ds-space-0,0)}._19pkv77o{margin-top:var(--ds-space-025,2px)}
4
- ._19pkze3t{margin-top:var(--ds-space-0,0)}
5
4
  ._1bah1yb4{justify-content:space-between}
6
5
  ._1e0c1txw{display:flex}
7
6
  ._1i4qfg65{overflow-wrap:anywhere}
8
7
  ._1nmz1hna{word-break:break-word}
9
8
  ._4cvr1h6o{align-items:center}
10
9
  ._4cvr1y6m{align-items:flex-start}
11
- ._kqswh2mm{position:relative}
12
- ._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
10
+ ._kqswh2mm{position:relative}
@@ -18,9 +18,7 @@ const styles = {
18
18
  clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
19
19
  rovoIconWrapper: "_1e0c1txw",
20
20
  name: "_1bah1yb4 _4cvr1y6m",
21
- description: "_19pkze3t _otyru2gc _1i4qfg65 _1nmz1hna",
22
- descriptionRefresh: "_1mouze3t _1i4qfg65 _1nmz1hna",
23
- wrapper: "_otyru2gc",
21
+ description: "_1mouze3t _1i4qfg65 _1nmz1hna",
24
22
  headingWrapper: "_kqswh2mm",
25
23
  hiddenIconWrapper: "_19pkv77o"
26
24
  };
@@ -155,8 +153,7 @@ export const AgentProfileInfo = ({
155
153
  formatMessage
156
154
  } = useIntl();
157
155
  return /*#__PURE__*/React.createElement(Stack, {
158
- space: "space.100",
159
- xcss: fg('rovo_agent_empty_state_refresh') ? null : styles.wrapper
156
+ space: "space.100"
160
157
  }, /*#__PURE__*/React.createElement(Inline, {
161
158
  xcss: styles.name,
162
159
  space: "space.100",
@@ -166,7 +163,7 @@ export const AgentProfileInfo = ({
166
163
  xcss: styles.headingWrapper
167
164
  }, /*#__PURE__*/React.createElement(Heading, {
168
165
  as: "h2",
169
- size: fg('rovo_agent_empty_state_refresh') ? 'medium' : 'xlarge'
166
+ size: "medium"
170
167
  }, agentName), headingRender, isHidden && /*#__PURE__*/React.createElement(Box, {
171
168
  xcss: styles.hiddenIconWrapper
172
169
  }, /*#__PURE__*/React.createElement(Tooltip, {
@@ -178,7 +175,7 @@ export const AgentProfileInfo = ({
178
175
  isStarred: isStarred,
179
176
  handleToggle: onStarToggle
180
177
  })), creatorRender, !!agentDescription && /*#__PURE__*/React.createElement(Box, {
181
- xcss: fg('rovo_agent_empty_state_refresh') ? styles.descriptionRefresh : styles.description,
178
+ xcss: styles.description,
182
179
  as: "p"
183
180
  }, agentDescription), starCountRender);
184
181
  };
@@ -8,16 +8,13 @@ import { ax, ix } from "@compiled/react/runtime";
8
8
  import React, { useMemo } from 'react';
9
9
  import { useIntl } from 'react-intl-next';
10
10
  import { IconButton } from '@atlaskit/button/new';
11
- import { cx } from '@atlaskit/css';
12
11
  import RetryIcon from '@atlaskit/icon/core/retry';
13
- import { fg } from '@atlaskit/platform-feature-flags';
14
12
  import { Box, Inline, Pressable, Stack } from '@atlaskit/primitives/compiled';
15
13
  import { AgentChatIcon } from '../../common/ui/agent-chat-icon';
16
- import { BrowseAgentsPill, ChatPill } from '../../common/ui/chat-pill';
14
+ import { BrowseAgentsPill } from '../../common/ui/chat-pill';
17
15
  import { messages } from './messages';
18
16
  var styles = {
19
- conversationStartersList: "_qtt8glyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf",
20
- conversationStartersListRefresh: "_1bsb1osq",
17
+ conversationStartersList: "_qtt8glyw _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bsb1osq",
21
18
  conversationStarterIcon: "_1o9zidpf",
22
19
  conversationStarterText: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c _1o9zkb7n _1ul9idpf",
23
20
  button: "_11c8fhey _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
@@ -101,17 +98,18 @@ export var ConversationStarters = function ConversationStarters(_ref3) {
101
98
  return /*#__PURE__*/React.createElement(Stack, {
102
99
  as: "ul",
103
100
  space: "space.050",
104
- xcss: cx(styles.conversationStartersList, fg('rovo_agent_empty_state_refresh') && styles.conversationStartersListRefresh)
101
+ xcss: styles.conversationStartersList
105
102
  }, starters.map(function (starter, index) {
106
103
  var isLastStarter = index === starters.length - 1;
107
104
  var chatPill = /*#__PURE__*/React.createElement(Box, {
108
105
  as: "li",
109
106
  key: starter.message
110
- }, fg('rovo_agent_empty_state_refresh') ? /*#__PURE__*/React.createElement(Pressable, {
107
+ }, /*#__PURE__*/React.createElement(Pressable, {
111
108
  xcss: styles.button,
112
109
  onClick: function onClick() {
113
110
  return onConversationStarterClick(starter);
114
- }
111
+ },
112
+ testId: "conversation-starter"
115
113
  }, /*#__PURE__*/React.createElement(Inline, {
116
114
  space: "space.150",
117
115
  alignBlock: "center"
@@ -119,13 +117,7 @@ export var ConversationStarters = function ConversationStarters(_ref3) {
119
117
  xcss: styles.conversationStarterIcon
120
118
  }, /*#__PURE__*/React.createElement(AgentChatIcon, null)), /*#__PURE__*/React.createElement(Box, {
121
119
  xcss: styles.conversationStarterText
122
- }, starter.message))) : /*#__PURE__*/React.createElement(ChatPill, {
123
- testId: "conversation-starter",
124
- key: starter.message,
125
- onClick: function onClick() {
126
- return onConversationStarterClick(starter);
127
- }
128
- }, starter.message));
120
+ }, starter.message))));
129
121
  return isLastStarter && showReloadButton ? /*#__PURE__*/React.createElement(Inline, {
130
122
  space: "space.050",
131
123
  grow: "fill",
@@ -1,12 +1,10 @@
1
1
 
2
2
  ._zulp1b66{gap:var(--ds-space-050,4px)}
3
3
  ._1mouze3t{margin-block:var(--ds-space-0,0)}._19pkv77o{margin-top:var(--ds-space-025,2px)}
4
- ._19pkze3t{margin-top:var(--ds-space-0,0)}
5
4
  ._1bah1yb4{justify-content:space-between}
6
5
  ._1e0c1txw{display:flex}
7
6
  ._1i4qfg65{overflow-wrap:anywhere}
8
7
  ._1nmz1hna{word-break:break-word}
9
8
  ._4cvr1h6o{align-items:center}
10
9
  ._4cvr1y6m{align-items:flex-start}
11
- ._kqswh2mm{position:relative}
12
- ._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
10
+ ._kqswh2mm{position:relative}
@@ -18,9 +18,7 @@ var styles = {
18
18
  clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
19
19
  rovoIconWrapper: "_1e0c1txw",
20
20
  name: "_1bah1yb4 _4cvr1y6m",
21
- description: "_19pkze3t _otyru2gc _1i4qfg65 _1nmz1hna",
22
- descriptionRefresh: "_1mouze3t _1i4qfg65 _1nmz1hna",
23
- wrapper: "_otyru2gc",
21
+ description: "_1mouze3t _1i4qfg65 _1nmz1hna",
24
22
  headingWrapper: "_kqswh2mm",
25
23
  hiddenIconWrapper: "_19pkv77o"
26
24
  };
@@ -155,8 +153,7 @@ export var AgentProfileInfo = function AgentProfileInfo(_ref3) {
155
153
  var _useIntl2 = useIntl(),
156
154
  formatMessage = _useIntl2.formatMessage;
157
155
  return /*#__PURE__*/React.createElement(Stack, {
158
- space: "space.100",
159
- xcss: fg('rovo_agent_empty_state_refresh') ? null : styles.wrapper
156
+ space: "space.100"
160
157
  }, /*#__PURE__*/React.createElement(Inline, {
161
158
  xcss: styles.name,
162
159
  space: "space.100",
@@ -166,7 +163,7 @@ export var AgentProfileInfo = function AgentProfileInfo(_ref3) {
166
163
  xcss: styles.headingWrapper
167
164
  }, /*#__PURE__*/React.createElement(Heading, {
168
165
  as: "h2",
169
- size: fg('rovo_agent_empty_state_refresh') ? 'medium' : 'xlarge'
166
+ size: "medium"
170
167
  }, agentName), headingRender, isHidden && /*#__PURE__*/React.createElement(Box, {
171
168
  xcss: styles.hiddenIconWrapper
172
169
  }, /*#__PURE__*/React.createElement(Tooltip, {
@@ -178,7 +175,7 @@ export var AgentProfileInfo = function AgentProfileInfo(_ref3) {
178
175
  isStarred: isStarred,
179
176
  handleToggle: onStarToggle
180
177
  })), creatorRender, !!agentDescription && /*#__PURE__*/React.createElement(Box, {
181
- xcss: fg('rovo_agent_empty_state_refresh') ? styles.descriptionRefresh : styles.description,
178
+ xcss: styles.description,
182
179
  as: "p"
183
180
  }, agentDescription), starCountRender);
184
181
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "3.37.0",
3
+ "version": "3.38.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",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/logo": "^19.10.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/primitives": "^18.0.0",
48
- "@atlaskit/rovo-agent-analytics": "^0.19.0",
48
+ "@atlaskit/rovo-agent-analytics": "^0.20.0",
49
49
  "@atlaskit/skeleton": "^2.1.0",
50
50
  "@atlaskit/tokens": "^11.0.0",
51
51
  "@atlaskit/tooltip": "^20.14.0",
@@ -120,9 +120,6 @@
120
120
  "jira_ai_force_rovo_dev_avatar": {
121
121
  "type": "boolean"
122
122
  },
123
- "rovo_agent_empty_state_refresh": {
124
- "type": "boolean"
125
- },
126
123
  "rovo_dev_themed_identity_card": {
127
124
  "type": "boolean"
128
125
  },