@notebook-intelligence/notebook-intelligence 1.3.1 → 1.3.2
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/lib/chat-sidebar.js +3 -1
- package/package.json +1 -1
- package/src/chat-sidebar.tsx +5 -1
- package/style/base.css +4 -0
package/lib/chat-sidebar.js
CHANGED
|
@@ -151,9 +151,11 @@ function ChatResponse(props) {
|
|
|
151
151
|
};
|
|
152
152
|
const markFormConfirmed = (contentId) => {
|
|
153
153
|
answeredForms.set(contentId, 'confirmed');
|
|
154
|
+
setRenderCount(prev => prev + 1);
|
|
154
155
|
};
|
|
155
156
|
const markFormCanceled = (contentId) => {
|
|
156
157
|
answeredForms.set(contentId, 'canceled');
|
|
158
|
+
setRenderCount(prev => prev + 1);
|
|
157
159
|
};
|
|
158
160
|
const runCommand = (commandId, args) => {
|
|
159
161
|
props.getApp().commands.execute(commandId, args);
|
|
@@ -272,7 +274,7 @@ function ChatResponse(props) {
|
|
|
272
274
|
React.createElement("a", { href: item.content.uri, target: "_blank" }, item.content.title)));
|
|
273
275
|
case ResponseStreamDataType.Progress:
|
|
274
276
|
// show only if no more message available
|
|
275
|
-
return index === groupedContents.length - 1 ? (React.createElement("div", { key: `key-${index}` },
|
|
277
|
+
return index === groupedContents.length - 1 ? (React.createElement("div", { className: "chat-response-progress", key: `key-${index}` },
|
|
276
278
|
"\u2713 ",
|
|
277
279
|
item.content)) : null;
|
|
278
280
|
case ResponseStreamDataType.Confirmation:
|
package/package.json
CHANGED
package/src/chat-sidebar.tsx
CHANGED
|
@@ -314,9 +314,11 @@ function ChatResponse(props: any) {
|
|
|
314
314
|
|
|
315
315
|
const markFormConfirmed = (contentId: string) => {
|
|
316
316
|
answeredForms.set(contentId, 'confirmed');
|
|
317
|
+
setRenderCount(prev => prev + 1);
|
|
317
318
|
};
|
|
318
319
|
const markFormCanceled = (contentId: string) => {
|
|
319
320
|
answeredForms.set(contentId, 'canceled');
|
|
321
|
+
setRenderCount(prev => prev + 1);
|
|
320
322
|
};
|
|
321
323
|
|
|
322
324
|
const runCommand = (commandId: string, args: any) => {
|
|
@@ -517,7 +519,9 @@ function ChatResponse(props: any) {
|
|
|
517
519
|
case ResponseStreamDataType.Progress:
|
|
518
520
|
// show only if no more message available
|
|
519
521
|
return index === groupedContents.length - 1 ? (
|
|
520
|
-
<div key={`key-${index}`}
|
|
522
|
+
<div className="chat-response-progress" key={`key-${index}`}>
|
|
523
|
+
✓ {item.content}
|
|
524
|
+
</div>
|
|
521
525
|
) : null;
|
|
522
526
|
case ResponseStreamDataType.Confirmation:
|
|
523
527
|
return answeredForms.get(item.id) ===
|