@notebook-intelligence/notebook-intelligence 4.2.0 → 4.2.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/lib/chat-sidebar.js +5 -0
- package/package.json +1 -1
- package/src/chat-sidebar.tsx +16 -0
package/lib/chat-sidebar.js
CHANGED
|
@@ -327,6 +327,11 @@ function ChatResponse(props) {
|
|
|
327
327
|
runCommand('notebook-intelligence:chat-user-input', item.content.confirmArgs);
|
|
328
328
|
} },
|
|
329
329
|
React.createElement("div", { className: "jp-Dialog-buttonLabel" }, item.content.confirmLabel)),
|
|
330
|
+
item.content.confirmSessionArgs ? (React.createElement("button", { className: "jp-Dialog-button jp-mod-accept jp-mod-styled", onClick: () => {
|
|
331
|
+
markFormConfirmed(item.id);
|
|
332
|
+
runCommand('notebook-intelligence:chat-user-input', item.content.confirmSessionArgs);
|
|
333
|
+
} },
|
|
334
|
+
React.createElement("div", { className: "jp-Dialog-buttonLabel" }, item.content.confirmSessionLabel))) : null,
|
|
330
335
|
React.createElement("button", { className: "jp-Dialog-button jp-mod-reject jp-mod-styled", onClick: () => {
|
|
331
336
|
markFormCanceled(item.id);
|
|
332
337
|
runCommand('notebook-intelligence:chat-user-input', item.content.cancelArgs);
|
package/package.json
CHANGED
package/src/chat-sidebar.tsx
CHANGED
|
@@ -613,6 +613,22 @@ function ChatResponse(props: any) {
|
|
|
613
613
|
{item.content.confirmLabel}
|
|
614
614
|
</div>
|
|
615
615
|
</button>
|
|
616
|
+
{item.content.confirmSessionArgs ? (
|
|
617
|
+
<button
|
|
618
|
+
className="jp-Dialog-button jp-mod-accept jp-mod-styled"
|
|
619
|
+
onClick={() => {
|
|
620
|
+
markFormConfirmed(item.id);
|
|
621
|
+
runCommand(
|
|
622
|
+
'notebook-intelligence:chat-user-input',
|
|
623
|
+
item.content.confirmSessionArgs
|
|
624
|
+
);
|
|
625
|
+
}}
|
|
626
|
+
>
|
|
627
|
+
<div className="jp-Dialog-buttonLabel">
|
|
628
|
+
{item.content.confirmSessionLabel}
|
|
629
|
+
</div>
|
|
630
|
+
</button>
|
|
631
|
+
) : null}
|
|
616
632
|
<button
|
|
617
633
|
className="jp-Dialog-button jp-mod-reject jp-mod-styled"
|
|
618
634
|
onClick={() => {
|