@red-hat-developer-hub/backstage-plugin-lightspeed 2.6.5 → 2.6.7

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,19 @@
1
1
  ## @red-hat-developer-hub/backstage-plugin-lightspeed
2
2
 
3
+ ## 2.6.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 3d2854b: fixed tool call response
8
+ - @red-hat-developer-hub/backstage-plugin-lightspeed-common@2.6.7
9
+
10
+ ## 2.6.6
11
+
12
+ ### Patch Changes
13
+
14
+ - c6824df: fixed notebooks empty state backgroundColor
15
+ - @red-hat-developer-hub/backstage-plugin-lightspeed-common@2.6.6
16
+
3
17
  ## 2.6.5
4
18
 
5
19
  ### Patch Changes
package/dist/alpha.d.ts CHANGED
@@ -59,6 +59,7 @@ declare const lightspeedTranslationRef: _backstage_frontend_plugin_api.Translati
59
59
  readonly "notebooks.updated.yesterday": string;
60
60
  readonly "notebooks.updated.days": string;
61
61
  readonly "notebooks.updated.on": string;
62
+ readonly "notebooks.card.openAria": string;
62
63
  readonly "notebook.view.title": string;
63
64
  readonly "notebook.view.close": string;
64
65
  readonly "notebook.view.documents.count": string;
@@ -110,7 +110,8 @@ const useStyles = makeStyles((theme) => ({
110
110
  flexDirection: "column",
111
111
  flex: 1,
112
112
  minHeight: 0,
113
- overflowY: "auto"
113
+ overflowY: "auto",
114
+ backgroundColor: "var(--pf-t--global--background--color--floating--default)"
114
115
  },
115
116
  notebooksHeader: {
116
117
  display: "flex",
@@ -239,9 +240,13 @@ const useStyles = makeStyles((theme) => ({
239
240
  paddingRight: theme.spacing(1.5)
240
241
  },
241
242
  footer: {
243
+ backgroundColor: "var(--pf-t--global--background--color--floating--default)",
242
244
  "&>.pf-chatbot__footer-container": {
243
245
  width: "95% !important",
244
246
  maxWidth: "unset !important"
247
+ },
248
+ "& .pf-chatbot__message-bar": {
249
+ backgroundColor: theme.palette.grey[300]
245
250
  }
246
251
  },
247
252
  sortDropdown: {
@@ -277,6 +282,9 @@ const useStyles = makeStyles((theme) => ({
277
282
  overflowY: "auto",
278
283
  WebkitOverflowScrolling: "touch"
279
284
  },
285
+ chatbotContentScrollNewChat: {
286
+ backgroundColor: "var(--pf-t--global--background--color--floating--default)"
287
+ },
280
288
  toastAlertGroup: {
281
289
  "--pf-v6-c-alert-group--m-toast--InsetInlineEnd": `${theme.spacing(2.5)}px`,
282
290
  "--pf-v6-c-alert-group--m-toast--InsetBlockStart": `${theme.spacing(2.5)}px`,
@@ -1232,32 +1240,39 @@ const LightspeedChat = ({
1232
1240
  ChatbotContent,
1233
1241
  {
1234
1242
  className: `${classes.chatbotContent} ${hasChatContentOverflow ? classes.chatbotContentHasOverflow : ""}`,
1235
- children: /* @__PURE__ */ jsxs("div", { ref: contentScrollRef, className: classes.chatbotContentScroll, children: [
1236
- welcomePrompts.length > 0 && /* @__PURE__ */ jsx("div", { className: classes.chatbotContentSpacer, "aria-hidden": true }),
1237
- /* @__PURE__ */ jsx(
1238
- LightspeedChatBox,
1239
- {
1240
- userName,
1241
- messages,
1242
- profileLoading,
1243
- announcement,
1244
- ref: scrollToBottomRef,
1245
- welcomePrompts,
1246
- conversationId,
1247
- isStreaming: streamingUiMatchesView,
1248
- topicRestrictionEnabled,
1249
- displayMode
1250
- }
1251
- ),
1252
- welcomePrompts.length > 0 && /* @__PURE__ */ jsx(
1253
- "div",
1254
- {
1255
- ref: bottomSentinelRef,
1256
- "aria-hidden": true,
1257
- style: { height: 0, flexShrink: 0 }
1258
- }
1259
- )
1260
- ] })
1243
+ children: /* @__PURE__ */ jsxs(
1244
+ "div",
1245
+ {
1246
+ ref: contentScrollRef,
1247
+ className: `${classes.chatbotContentScroll}${welcomePrompts.length > 0 ? ` ${classes.chatbotContentScrollNewChat}` : ""}`,
1248
+ children: [
1249
+ welcomePrompts.length > 0 && /* @__PURE__ */ jsx("div", { className: classes.chatbotContentSpacer, "aria-hidden": true }),
1250
+ /* @__PURE__ */ jsx(
1251
+ LightspeedChatBox,
1252
+ {
1253
+ userName,
1254
+ messages,
1255
+ profileLoading,
1256
+ announcement,
1257
+ ref: scrollToBottomRef,
1258
+ welcomePrompts,
1259
+ conversationId,
1260
+ isStreaming: streamingUiMatchesView,
1261
+ topicRestrictionEnabled,
1262
+ displayMode
1263
+ }
1264
+ ),
1265
+ welcomePrompts.length > 0 && /* @__PURE__ */ jsx(
1266
+ "div",
1267
+ {
1268
+ ref: bottomSentinelRef,
1269
+ "aria-hidden": true,
1270
+ style: { height: 0, flexShrink: 0 }
1271
+ }
1272
+ )
1273
+ ]
1274
+ }
1275
+ )
1261
1276
  }
1262
1277
  ),
1263
1278
  /* @__PURE__ */ jsxs(ChatbotFooter, { className: classes.footer, children: [