@copilotkit/react-ui 1.8.13-next.2 → 1.8.13
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 +20 -0
- package/dist/{chunk-3R6CEFJE.mjs → chunk-FWKHST6I.mjs} +67 -33
- package/dist/chunk-FWKHST6I.mjs.map +1 -0
- package/dist/{chunk-ZRW27A32.mjs → chunk-IAHSHPRJ.mjs} +12 -13
- package/dist/chunk-IAHSHPRJ.mjs.map +1 -0
- package/dist/{chunk-XZNY26GH.mjs → chunk-IMBPSLL4.mjs} +3 -3
- package/dist/chunk-IMBPSLL4.mjs.map +1 -0
- package/dist/{chunk-756IINQI.mjs → chunk-JU3HNL5N.mjs} +2 -2
- package/dist/{chunk-IQ7DDXDA.mjs → chunk-QEZ3YYLO.mjs} +2 -2
- package/dist/chunk-QGSPTXOV.mjs +24 -0
- package/dist/chunk-QGSPTXOV.mjs.map +1 -0
- package/dist/chunk-SC6JRFAJ.mjs +1 -0
- package/dist/components/chat/Button.d.ts +1 -0
- package/dist/components/chat/Chat.d.ts +6 -2
- package/dist/components/chat/Chat.js +39 -24
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +3 -2
- package/dist/components/chat/Header.d.ts +1 -0
- package/dist/components/chat/Input.d.ts +1 -0
- package/dist/components/chat/Messages.d.ts +1 -0
- package/dist/components/chat/Modal.d.ts +2 -2
- package/dist/components/chat/Modal.js +106 -62
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +4 -3
- package/dist/components/chat/Popup.d.ts +1 -1
- package/dist/components/chat/Popup.js +108 -64
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +5 -4
- package/dist/components/chat/Sidebar.d.ts +1 -1
- package/dist/components/chat/Sidebar.js +108 -64
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +5 -4
- package/dist/components/chat/Suggestion.d.ts +8 -4
- package/dist/components/chat/Suggestion.js +2 -2
- package/dist/components/chat/Suggestion.js.map +1 -1
- package/dist/components/chat/Suggestion.mjs +1 -1
- package/dist/components/chat/Suggestions.d.ts +9 -0
- package/dist/components/chat/Suggestions.js +73 -0
- package/dist/components/chat/Suggestions.js.map +1 -0
- package/dist/components/chat/Suggestions.mjs +10 -0
- package/dist/components/chat/Suggestions.mjs.map +1 -0
- package/dist/components/chat/Window.d.ts +1 -0
- package/dist/components/chat/index.d.ts +4 -2
- package/dist/components/chat/index.js +114 -66
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +14 -7
- package/dist/components/chat/messages/AssistantMessage.d.ts +1 -0
- package/dist/components/chat/messages/RenderActionExecutionMessage.d.ts +1 -0
- package/dist/components/chat/messages/RenderAgentStateMessage.d.ts +1 -0
- package/dist/components/chat/messages/RenderImageMessage.d.ts +1 -0
- package/dist/components/chat/messages/RenderResultMessage.d.ts +1 -0
- package/dist/components/chat/messages/RenderTextMessage.d.ts +1 -0
- package/dist/components/chat/messages/UserMessage.d.ts +1 -0
- package/dist/components/chat/props.d.ts +6 -1
- package/dist/components/chat/props.js.map +1 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.js +114 -66
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +14 -7
- package/dist/index.d.ts +4 -2
- package/dist/index.js +114 -66
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -7
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/chat/Chat.tsx +12 -14
- package/src/components/chat/Modal.tsx +2 -0
- package/src/components/chat/Suggestion.tsx +10 -3
- package/src/components/chat/Suggestions.tsx +20 -0
- package/src/components/chat/index.tsx +2 -0
- package/src/components/chat/props.ts +6 -0
- package/src/types/index.ts +1 -0
- package/dist/chunk-3R6CEFJE.mjs.map +0 -1
- package/dist/chunk-PXEVB7IK.mjs +0 -1
- package/dist/chunk-XZNY26GH.mjs.map +0 -1
- package/dist/chunk-ZRW27A32.mjs.map +0 -1
- /package/dist/{chunk-756IINQI.mjs.map → chunk-JU3HNL5N.mjs.map} +0 -0
- /package/dist/{chunk-IQ7DDXDA.mjs.map → chunk-QEZ3YYLO.mjs.map} +0 -0
- /package/dist/{chunk-PXEVB7IK.mjs.map → chunk-SC6JRFAJ.mjs.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CopilotChat,
|
|
3
3
|
WrappedCopilotChat,
|
|
4
4
|
useCopilotChatLogic
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-IAHSHPRJ.mjs";
|
|
6
6
|
import "../../chunk-MPZAMNCN.mjs";
|
|
7
7
|
import "../../chunk-ALWZ35SI.mjs";
|
|
8
8
|
import "../../chunk-UKWBNVMQ.mjs";
|
|
@@ -10,7 +10,8 @@ import "../../chunk-6VUDBDUN.mjs";
|
|
|
10
10
|
import "../../chunk-5INP2EWU.mjs";
|
|
11
11
|
import "../../chunk-XMNTLIK5.mjs";
|
|
12
12
|
import "../../chunk-HWMFMBJC.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-QGSPTXOV.mjs";
|
|
14
|
+
import "../../chunk-IMBPSLL4.mjs";
|
|
14
15
|
import "../../chunk-PLHTVHUW.mjs";
|
|
15
16
|
import "../../chunk-EMIYIMQ6.mjs";
|
|
16
17
|
import "../../chunk-CGEAG65D.mjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { HeaderProps } from './props.js';
|
|
3
3
|
import '@copilotkit/runtime-client-gql';
|
|
4
|
+
import '../../types/suggestions.js';
|
|
4
5
|
import 'react';
|
|
5
6
|
|
|
6
7
|
declare const Header: ({}: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { InputProps } from './props.js';
|
|
3
3
|
import '@copilotkit/runtime-client-gql';
|
|
4
|
+
import '../../types/suggestions.js';
|
|
4
5
|
import 'react';
|
|
5
6
|
|
|
6
7
|
declare const Input: ({ inProgress, onSend, isVisible, onStop, onUpload }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { MessagesProps } from './props.js';
|
|
4
4
|
import '@copilotkit/runtime-client-gql';
|
|
5
|
+
import '../../types/suggestions.js';
|
|
5
6
|
|
|
6
7
|
declare const Messages: ({ messages, inProgress, children, RenderTextMessage, RenderActionExecutionMessage, RenderAgentStateMessage, RenderResultMessage, RenderImageMessage, AssistantMessage, UserMessage, onRegenerate, onCopy, onThumbsUp, onThumbsDown, markdownTagRenderers, }: MessagesProps) => react_jsx_runtime.JSX.Element;
|
|
7
8
|
declare function useScrollToBottom(messages: any[]): {
|
|
@@ -3,9 +3,9 @@ import React__default from 'react';
|
|
|
3
3
|
import { WindowProps, ButtonProps, HeaderProps } from './props.js';
|
|
4
4
|
import { CopilotChatProps } from './Chat.js';
|
|
5
5
|
import '@copilotkit/runtime-client-gql';
|
|
6
|
+
import '../../types/suggestions.js';
|
|
6
7
|
import './ChatContext.js';
|
|
7
8
|
import '@copilotkit/react-core';
|
|
8
|
-
import '../../types/suggestions.js';
|
|
9
9
|
|
|
10
10
|
interface CopilotModalProps extends CopilotChatProps {
|
|
11
11
|
/**
|
|
@@ -46,6 +46,6 @@ interface CopilotModalProps extends CopilotChatProps {
|
|
|
46
46
|
*/
|
|
47
47
|
Header?: React__default.ComponentType<HeaderProps>;
|
|
48
48
|
}
|
|
49
|
-
declare const CopilotModal: ({ instructions, defaultOpen, clickOutsideToClose, hitEscapeToClose, onSetOpen, onSubmitMessage, onStopGeneration, onReloadMessages, shortcut, icons, labels, makeSystemMessage, onInProgress, Window, Button, Header, Messages, Input, AssistantMessage, UserMessage, onThumbsUp, onThumbsDown, onCopy, onRegenerate, markdownTagRenderers, className, children, }: CopilotModalProps) => react_jsx_runtime.JSX.Element;
|
|
49
|
+
declare const CopilotModal: ({ instructions, defaultOpen, clickOutsideToClose, hitEscapeToClose, onSetOpen, onSubmitMessage, onStopGeneration, onReloadMessages, shortcut, icons, labels, makeSystemMessage, onInProgress, Window, Button, Header, Messages, Input, AssistantMessage, UserMessage, onThumbsUp, onThumbsDown, onCopy, onRegenerate, markdownTagRenderers, className, children, ...props }: CopilotModalProps) => react_jsx_runtime.JSX.Element;
|
|
50
50
|
|
|
51
51
|
export { CopilotModal, CopilotModalProps };
|
|
@@ -2484,19 +2484,23 @@ function RenderImageMessage(_a) {
|
|
|
2484
2484
|
return null;
|
|
2485
2485
|
}
|
|
2486
2486
|
|
|
2487
|
+
// src/components/chat/Chat.tsx
|
|
2488
|
+
var import_react13 = __toESM(require("react"));
|
|
2489
|
+
var import_react_core10 = require("@copilotkit/react-core");
|
|
2490
|
+
|
|
2487
2491
|
// src/components/chat/Suggestion.tsx
|
|
2488
2492
|
var import_react_core9 = require("@copilotkit/react-core");
|
|
2489
2493
|
var import_shared2 = require("@copilotkit/shared");
|
|
2490
2494
|
var import_runtime_client_gql3 = require("@copilotkit/runtime-client-gql");
|
|
2491
2495
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2492
|
-
function Suggestion({ title,
|
|
2496
|
+
function Suggestion({ title, onClick, partial, className }) {
|
|
2493
2497
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2494
2498
|
"button",
|
|
2495
2499
|
{
|
|
2496
2500
|
disabled: partial,
|
|
2497
2501
|
onClick: (e) => {
|
|
2498
2502
|
e.preventDefault();
|
|
2499
|
-
onClick(
|
|
2503
|
+
onClick();
|
|
2500
2504
|
},
|
|
2501
2505
|
className: className || (partial ? "suggestion loading" : "suggestion"),
|
|
2502
2506
|
"data-test-id": "suggestion",
|
|
@@ -2575,8 +2579,6 @@ var reloadSuggestions = (context, chatSuggestionConfiguration, setCurrentSuggest
|
|
|
2575
2579
|
});
|
|
2576
2580
|
|
|
2577
2581
|
// src/components/chat/Chat.tsx
|
|
2578
|
-
var import_react13 = __toESM(require("react"));
|
|
2579
|
-
var import_react_core10 = require("@copilotkit/react-core");
|
|
2580
2582
|
var import_runtime_client_gql4 = require("@copilotkit/runtime-client-gql");
|
|
2581
2583
|
var import_shared3 = require("@copilotkit/shared");
|
|
2582
2584
|
var import_react_core11 = require("@copilotkit/react-core");
|
|
@@ -2659,8 +2661,24 @@ var ImageUploadQueue = ({
|
|
|
2659
2661
|
);
|
|
2660
2662
|
};
|
|
2661
2663
|
|
|
2662
|
-
// src/components/chat/
|
|
2664
|
+
// src/components/chat/Suggestions.tsx
|
|
2663
2665
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2666
|
+
function Suggestions({ suggestions, onSuggestionClick }) {
|
|
2667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "suggestions", children: suggestions.map((suggestion, index) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2668
|
+
Suggestion,
|
|
2669
|
+
{
|
|
2670
|
+
title: suggestion.title,
|
|
2671
|
+
message: suggestion.message,
|
|
2672
|
+
partial: suggestion.partial,
|
|
2673
|
+
className: suggestion.className,
|
|
2674
|
+
onClick: () => onSuggestionClick(suggestion.message)
|
|
2675
|
+
},
|
|
2676
|
+
index
|
|
2677
|
+
)) });
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
// src/components/chat/Chat.tsx
|
|
2681
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2664
2682
|
function CopilotChat({
|
|
2665
2683
|
instructions,
|
|
2666
2684
|
onSubmitMessage,
|
|
@@ -2679,6 +2697,7 @@ function CopilotChat({
|
|
|
2679
2697
|
RenderAgentStateMessage: RenderAgentStateMessage2 = RenderAgentStateMessage,
|
|
2680
2698
|
RenderResultMessage: RenderResultMessage2 = RenderResultMessage,
|
|
2681
2699
|
RenderImageMessage: RenderImageMessage2 = RenderImageMessage,
|
|
2700
|
+
RenderSuggestionsList = Suggestions,
|
|
2682
2701
|
Input: Input2 = Input,
|
|
2683
2702
|
className,
|
|
2684
2703
|
icons,
|
|
@@ -2818,8 +2837,8 @@ function CopilotChat({
|
|
|
2818
2837
|
const removeSelectedImage = (index) => {
|
|
2819
2838
|
setSelectedImages((prev) => prev.filter((_, i) => i !== index));
|
|
2820
2839
|
};
|
|
2821
|
-
return /* @__PURE__ */ (0,
|
|
2822
|
-
/* @__PURE__ */ (0,
|
|
2840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(WrappedCopilotChat, { icons, labels, className, children: [
|
|
2841
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2823
2842
|
Messages2,
|
|
2824
2843
|
{
|
|
2825
2844
|
AssistantMessage: AssistantMessage2,
|
|
@@ -2836,22 +2855,18 @@ function CopilotChat({
|
|
|
2836
2855
|
onThumbsUp,
|
|
2837
2856
|
onThumbsDown,
|
|
2838
2857
|
markdownTagRenderers,
|
|
2839
|
-
children: currentSuggestions.length > 0 && /* @__PURE__ */ (0,
|
|
2840
|
-
|
|
2858
|
+
children: currentSuggestions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2859
|
+
RenderSuggestionsList,
|
|
2841
2860
|
{
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
onClick: (message) => handleSendMessage(message)
|
|
2847
|
-
},
|
|
2848
|
-
index
|
|
2849
|
-
)) })
|
|
2861
|
+
onSuggestionClick: handleSendMessage,
|
|
2862
|
+
suggestions: currentSuggestions
|
|
2863
|
+
}
|
|
2864
|
+
)
|
|
2850
2865
|
}
|
|
2851
2866
|
),
|
|
2852
|
-
imageUploadsEnabled && /* @__PURE__ */ (0,
|
|
2853
|
-
/* @__PURE__ */ (0,
|
|
2854
|
-
/* @__PURE__ */ (0,
|
|
2867
|
+
imageUploadsEnabled && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
2868
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ImageUploadQueue, { images: selectedImages, onRemoveImage: removeSelectedImage }),
|
|
2869
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2855
2870
|
"input",
|
|
2856
2871
|
{
|
|
2857
2872
|
type: "file",
|
|
@@ -2863,7 +2878,7 @@ function CopilotChat({
|
|
|
2863
2878
|
}
|
|
2864
2879
|
)
|
|
2865
2880
|
] }),
|
|
2866
|
-
/* @__PURE__ */ (0,
|
|
2881
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2867
2882
|
Input2,
|
|
2868
2883
|
{
|
|
2869
2884
|
inProgress: isLoading,
|
|
@@ -2886,10 +2901,10 @@ function WrappedCopilotChat({
|
|
|
2886
2901
|
}) {
|
|
2887
2902
|
const chatContext = import_react13.default.useContext(ChatContext);
|
|
2888
2903
|
if (!chatContext) {
|
|
2889
|
-
return /* @__PURE__ */ (0,
|
|
2890
|
-
}, children: /* @__PURE__ */ (0,
|
|
2904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ChatContextProvider, { icons, labels, open: true, setOpen: () => {
|
|
2905
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: `copilotKitChat ${className != null ? className : ""}`, children }) });
|
|
2891
2906
|
}
|
|
2892
|
-
return /* @__PURE__ */ (0,
|
|
2907
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children });
|
|
2893
2908
|
}
|
|
2894
2909
|
var SUGGESTIONS_DEBOUNCE_TIMEOUT = 1e3;
|
|
2895
2910
|
var useCopilotChatLogic = (makeSystemMessage, onInProgress, onSubmitMessage, onStopGeneration, onReloadMessages) => {
|
|
@@ -3074,56 +3089,85 @@ var useCopilotChatLogic = (makeSystemMessage, onInProgress, onSubmitMessage, onS
|
|
|
3074
3089
|
};
|
|
3075
3090
|
|
|
3076
3091
|
// src/components/chat/Modal.tsx
|
|
3077
|
-
var
|
|
3078
|
-
var CopilotModal = ({
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3092
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3093
|
+
var CopilotModal = (_a) => {
|
|
3094
|
+
var _b = _a, {
|
|
3095
|
+
instructions,
|
|
3096
|
+
defaultOpen = false,
|
|
3097
|
+
clickOutsideToClose = true,
|
|
3098
|
+
hitEscapeToClose = true,
|
|
3099
|
+
onSetOpen,
|
|
3100
|
+
onSubmitMessage,
|
|
3101
|
+
onStopGeneration,
|
|
3102
|
+
onReloadMessages,
|
|
3103
|
+
shortcut = "/",
|
|
3104
|
+
icons,
|
|
3105
|
+
labels,
|
|
3106
|
+
makeSystemMessage,
|
|
3107
|
+
onInProgress,
|
|
3108
|
+
Window: Window2 = Window,
|
|
3109
|
+
Button: Button2 = Button,
|
|
3110
|
+
Header: Header2 = Header,
|
|
3111
|
+
Messages: Messages2 = Messages,
|
|
3112
|
+
Input: Input2 = Input,
|
|
3113
|
+
AssistantMessage: AssistantMessage2 = AssistantMessage,
|
|
3114
|
+
UserMessage: UserMessage2 = UserMessage,
|
|
3115
|
+
onThumbsUp,
|
|
3116
|
+
onThumbsDown,
|
|
3117
|
+
onCopy,
|
|
3118
|
+
onRegenerate,
|
|
3119
|
+
markdownTagRenderers,
|
|
3120
|
+
className,
|
|
3121
|
+
children
|
|
3122
|
+
} = _b, props = __objRest(_b, [
|
|
3123
|
+
"instructions",
|
|
3124
|
+
"defaultOpen",
|
|
3125
|
+
"clickOutsideToClose",
|
|
3126
|
+
"hitEscapeToClose",
|
|
3127
|
+
"onSetOpen",
|
|
3128
|
+
"onSubmitMessage",
|
|
3129
|
+
"onStopGeneration",
|
|
3130
|
+
"onReloadMessages",
|
|
3131
|
+
"shortcut",
|
|
3132
|
+
"icons",
|
|
3133
|
+
"labels",
|
|
3134
|
+
"makeSystemMessage",
|
|
3135
|
+
"onInProgress",
|
|
3136
|
+
"Window",
|
|
3137
|
+
"Button",
|
|
3138
|
+
"Header",
|
|
3139
|
+
"Messages",
|
|
3140
|
+
"Input",
|
|
3141
|
+
"AssistantMessage",
|
|
3142
|
+
"UserMessage",
|
|
3143
|
+
"onThumbsUp",
|
|
3144
|
+
"onThumbsDown",
|
|
3145
|
+
"onCopy",
|
|
3146
|
+
"onRegenerate",
|
|
3147
|
+
"markdownTagRenderers",
|
|
3148
|
+
"className",
|
|
3149
|
+
"children"
|
|
3150
|
+
]);
|
|
3107
3151
|
const [openState, setOpenState] = import_react14.default.useState(defaultOpen);
|
|
3108
3152
|
const setOpen = (open) => {
|
|
3109
3153
|
onSetOpen == null ? void 0 : onSetOpen(open);
|
|
3110
3154
|
setOpenState(open);
|
|
3111
3155
|
};
|
|
3112
|
-
return /* @__PURE__ */ (0,
|
|
3156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(ChatContextProvider, { icons, labels, open: openState, setOpen, children: [
|
|
3113
3157
|
children,
|
|
3114
|
-
/* @__PURE__ */ (0,
|
|
3115
|
-
/* @__PURE__ */ (0,
|
|
3116
|
-
/* @__PURE__ */ (0,
|
|
3158
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className, children: [
|
|
3159
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button2, {}),
|
|
3160
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
3117
3161
|
Window2,
|
|
3118
3162
|
{
|
|
3119
3163
|
clickOutsideToClose,
|
|
3120
3164
|
shortcut,
|
|
3121
3165
|
hitEscapeToClose,
|
|
3122
3166
|
children: [
|
|
3123
|
-
/* @__PURE__ */ (0,
|
|
3124
|
-
/* @__PURE__ */ (0,
|
|
3167
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Header2, {}),
|
|
3168
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3125
3169
|
CopilotChat,
|
|
3126
|
-
{
|
|
3170
|
+
__spreadProps(__spreadValues({}, props), {
|
|
3127
3171
|
instructions,
|
|
3128
3172
|
onSubmitMessage,
|
|
3129
3173
|
onStopGeneration,
|
|
@@ -3139,7 +3183,7 @@ var CopilotModal = ({
|
|
|
3139
3183
|
onCopy,
|
|
3140
3184
|
onRegenerate,
|
|
3141
3185
|
markdownTagRenderers
|
|
3142
|
-
}
|
|
3186
|
+
})
|
|
3143
3187
|
)
|
|
3144
3188
|
]
|
|
3145
3189
|
}
|