@red-hat-developer-hub/backstage-plugin-lightspeed 2.8.5 → 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,15 @@
1
1
  ## @red-hat-developer-hub/backstage-plugin-lightspeed
2
2
 
3
+ ## 2.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 824efa9: documents cannot be uploaded when a document processing is in progress
8
+
9
+ ### Patch Changes
10
+
11
+ - @red-hat-developer-hub/backstage-plugin-lightspeed-common@2.9.0
12
+
3
13
  ## 2.8.5
4
14
 
5
15
  ### Patch Changes
package/dist/alpha.d.ts CHANGED
@@ -77,6 +77,7 @@ declare const lightspeedTranslationRef: _backstage_frontend_plugin_api.Translati
77
77
  readonly "notebook.view.sidebar.resize": string;
78
78
  readonly "notebook.view.documents.uploading": string;
79
79
  readonly "notebook.view.documents.maxReached": string;
80
+ readonly "notebook.view.documents.uploadsInProgress": string;
80
81
  readonly "notebook.upload.failed": string;
81
82
  readonly "notebook.upload.modal.title": string;
82
83
  readonly "notebook.upload.modal.dragDropTitle": string;
@@ -571,9 +571,7 @@ const LightspeedChat = ({
571
571
  []
572
572
  );
573
573
  const createNotebookMutation = useCreateNotebook();
574
- const { data: notebookDocuments = [] } = useNotebookDocuments(
575
- activeNotebook?.session_id
576
- );
574
+ const { data: notebookDocuments = [], isFetching: isDocumentsFetching } = useNotebookDocuments(activeNotebook?.session_id);
577
575
  const [conversationId, setConversationId] = useState("");
578
576
  const [requestId, setRequestId] = useState("");
579
577
  const [newChatCreated, setNewChatCreated] = useState(false);
@@ -1775,6 +1773,7 @@ const LightspeedChat = ({
1775
1773
  sessionId: activeNotebook.session_id,
1776
1774
  notebookName: activeNotebook.name,
1777
1775
  documents: notebookDocuments,
1776
+ isDocumentsFetching,
1778
1777
  metadata: activeNotebook.metadata,
1779
1778
  topicSummary: conversations.find(
1780
1779
  (c) => c.conversation_id === activeNotebook.metadata?.conversation_id