@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 +14 -0
- package/dist/alpha.d.ts +1 -0
- package/dist/components/LightSpeedChat.esm.js +42 -27
- package/dist/components/LightSpeedChat.esm.js.map +1 -1
- package/dist/components/ToolCallContent.esm.js +11 -1
- package/dist/components/ToolCallContent.esm.js.map +1 -1
- package/dist/components/notebooks/NotebookCard.esm.js +93 -82
- package/dist/components/notebooks/NotebookCard.esm.js.map +1 -1
- package/dist/components/notebooks/NotebookView.esm.js +17 -5
- package/dist/components/notebooks/NotebookView.esm.js.map +1 -1
- package/dist/translations/de.esm.js +1 -0
- package/dist/translations/de.esm.js.map +1 -1
- package/dist/translations/es.esm.js +1 -0
- package/dist/translations/es.esm.js.map +1 -1
- package/dist/translations/fr.esm.js +1 -0
- package/dist/translations/fr.esm.js.map +1 -1
- package/dist/translations/it.esm.js +1 -0
- package/dist/translations/it.esm.js.map +1 -1
- package/dist/translations/ja.esm.js +1 -0
- package/dist/translations/ja.esm.js.map +1 -1
- package/dist/translations/ref.esm.js +1 -0
- package/dist/translations/ref.esm.js.map +1 -1
- package/dist/utils/formatToolResponseForMarkdown.esm.js +65 -13
- package/dist/utils/formatToolResponseForMarkdown.esm.js.map +1 -1
- package/package.json +2 -2
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(
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
{
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
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: [
|