@copilotkit/react-ui 0.14.1 → 0.15.0-alpha.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/.turbo/turbo-build.log +279 -196
- package/CHANGELOG.md +22 -0
- package/dist/chunk-47SYBLI2.mjs +110 -0
- package/dist/chunk-47SYBLI2.mjs.map +1 -0
- package/dist/chunk-6H3Y2XEI.mjs +56 -0
- package/dist/chunk-6H3Y2XEI.mjs.map +1 -0
- package/dist/chunk-7YXG7D47.mjs +191 -0
- package/dist/chunk-7YXG7D47.mjs.map +1 -0
- package/dist/chunk-DN3OI5WF.mjs +72 -0
- package/dist/chunk-DN3OI5WF.mjs.map +1 -0
- package/dist/chunk-DPUPEOGG.mjs +14 -0
- package/dist/chunk-DPUPEOGG.mjs.map +1 -0
- package/dist/chunk-FZRTAML3.mjs +3 -0
- package/dist/chunk-GPEJCUWA.mjs +14 -0
- package/dist/chunk-GPEJCUWA.mjs.map +1 -0
- package/dist/chunk-NXWVWC33.mjs +117 -0
- package/dist/chunk-NXWVWC33.mjs.map +1 -0
- package/dist/chunk-P4GBO6MW.mjs +3 -0
- package/dist/chunk-P4GBO6MW.mjs.map +1 -0
- package/dist/chunk-QFASQEFJ.mjs +51 -0
- package/dist/chunk-QFASQEFJ.mjs.map +1 -0
- package/dist/chunk-UIRFLYXI.mjs +53 -0
- package/dist/chunk-UIRFLYXI.mjs.map +1 -0
- package/dist/chunk-WB3YULQ4.mjs +3 -0
- package/dist/chunk-WB3YULQ4.mjs.map +1 -0
- package/dist/chunk-WM6BS77F.mjs +53 -0
- package/dist/chunk-WM6BS77F.mjs.map +1 -0
- package/dist/chunk-X3Z2EVFV.mjs +26 -0
- package/dist/chunk-X3Z2EVFV.mjs.map +1 -0
- package/dist/chunk-X4T6ZUVM.mjs +14 -0
- package/dist/chunk-X4T6ZUVM.mjs.map +1 -0
- package/dist/chunk-Y2RUG4B3.mjs +21 -0
- package/dist/chunk-Y2RUG4B3.mjs.map +1 -0
- package/dist/chunk-ZVAH2Z2W.mjs +61 -0
- package/dist/chunk-ZVAH2Z2W.mjs.map +1 -0
- package/dist/components/chat/Button.d.ts +7 -0
- package/dist/components/chat/Button.mjs +6 -0
- package/dist/components/chat/Button.mjs.map +1 -0
- package/dist/components/chat/Chat.d.ts +95 -0
- package/dist/components/chat/Chat.mjs +16 -0
- package/dist/components/chat/Chat.mjs.map +1 -0
- package/dist/components/chat/ChatContext.d.ts +105 -0
- package/dist/components/chat/ChatContext.mjs +5 -0
- package/dist/components/chat/ChatContext.mjs.map +1 -0
- package/dist/components/chat/CodeBlock.d.ts +14 -0
- package/dist/components/chat/CodeBlock.mjs +6 -0
- package/dist/components/chat/CodeBlock.mjs.map +1 -0
- package/dist/components/chat/Header.d.ts +7 -0
- package/dist/components/chat/Header.mjs +6 -0
- package/dist/components/chat/Header.mjs.map +1 -0
- package/dist/components/chat/Icons.d.ts +15 -0
- package/dist/components/chat/Icons.mjs +4 -0
- package/dist/components/chat/Icons.mjs.map +1 -0
- package/dist/components/chat/Input.d.ts +7 -0
- package/dist/components/chat/Input.mjs +7 -0
- package/dist/components/chat/Input.mjs.map +1 -0
- package/dist/components/chat/Markdown.d.ts +8 -0
- package/dist/components/chat/Markdown.mjs +7 -0
- package/dist/components/chat/Markdown.mjs.map +1 -0
- package/dist/components/chat/Messages.d.ts +7 -0
- package/dist/components/chat/Messages.mjs +9 -0
- package/dist/components/chat/Messages.mjs.map +1 -0
- package/dist/components/chat/Popup.d.ts +9 -0
- package/dist/components/chat/Popup.mjs +17 -0
- package/dist/components/chat/Popup.mjs.map +1 -0
- package/dist/components/chat/Response.d.ts +7 -0
- package/dist/components/chat/Response.mjs +6 -0
- package/dist/components/chat/Response.mjs.map +1 -0
- package/dist/components/chat/Sidebar.d.ts +12 -0
- package/dist/components/chat/Sidebar.mjs +17 -0
- package/dist/components/chat/Sidebar.mjs.map +1 -0
- package/dist/components/chat/Textarea.d.ts +13 -0
- package/dist/components/chat/Textarea.mjs +4 -0
- package/dist/components/chat/Textarea.mjs.map +1 -0
- package/dist/components/chat/Window.d.ts +6 -0
- package/dist/components/chat/Window.mjs +4 -0
- package/dist/components/chat/Window.mjs.map +1 -0
- package/dist/components/chat/index.d.ts +7 -0
- package/dist/components/chat/index.mjs +20 -0
- package/dist/components/chat/index.mjs.map +1 -0
- package/dist/components/chat/props.d.ts +33 -0
- package/dist/components/chat/props.mjs +3 -0
- package/dist/components/chat/props.mjs.map +1 -0
- package/dist/components/chat-components/copilot-chat.mjs +1 -1
- package/dist/components/chat-components/ui/badge.d.ts +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.mjs +18 -2
- package/dist/components/sidebar/copilot-sidebar-ui-provider.mjs +1 -1
- package/dist/components/sidebar/copilot-sidebar.mjs +1 -1
- package/dist/index.css +452 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +18 -2
- package/package.json +5 -5
- package/src/components/chat/Button.tsx +24 -0
- package/src/components/chat/Chat.tsx +186 -0
- package/src/components/chat/ChatContext.tsx +176 -0
- package/src/components/chat/CodeBlock.tsx +149 -0
- package/src/components/chat/Header.tsx +16 -0
- package/src/components/chat/Icons.tsx +179 -0
- package/src/components/chat/Input.tsx +51 -0
- package/src/components/chat/Markdown.tsx +62 -0
- package/src/components/chat/Messages.tsx +113 -0
- package/src/components/chat/Popup.tsx +10 -0
- package/src/components/chat/Response.tsx +13 -0
- package/src/components/chat/Sidebar.tsx +28 -0
- package/src/components/chat/Textarea.tsx +61 -0
- package/src/components/chat/Window.tsx +141 -0
- package/src/components/chat/index.tsx +3 -0
- package/src/components/chat/props.ts +36 -0
- package/src/components/index.ts +2 -0
- package/src/css/animations.css +29 -0
- package/src/css/button.css +54 -0
- package/src/css/colors.css +61 -0
- package/src/css/header.css +43 -0
- package/src/css/input.css +79 -0
- package/src/css/messages.css +57 -0
- package/src/css/popup.css +22 -0
- package/src/css/response.css +29 -0
- package/src/css/sidebar.css +34 -0
- package/src/css/window.css +58 -0
- package/src/styles.css +11 -0
- package/dist/chunk-U6NJWGTV.mjs +0 -3
- /package/dist/{chunk-U6NJWGTV.mjs.map → chunk-FZRTAML3.mjs.map} +0 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Icons for CopilotKitChat component.
|
|
5
|
+
*/
|
|
6
|
+
interface CopilotKitChatIcons {
|
|
7
|
+
/**
|
|
8
|
+
* The icon to use for the open chat button.
|
|
9
|
+
* @default <OpenIcon />
|
|
10
|
+
*/
|
|
11
|
+
openIcon?: React__default.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* The icon to use for the close chat button.
|
|
14
|
+
* @default <CloseIcon />
|
|
15
|
+
*/
|
|
16
|
+
closeIcon?: React__default.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* The icon to use for the close chat button in the header.
|
|
19
|
+
* @default <HeaderCloseIcon />
|
|
20
|
+
*/
|
|
21
|
+
headerCloseIcon?: React__default.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* The icon to use for the send button.
|
|
24
|
+
* @default <SendIcon />
|
|
25
|
+
*/
|
|
26
|
+
sendIcon?: React__default.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* The icon to use for the activity indicator.
|
|
29
|
+
* @default <ActivityIcon />
|
|
30
|
+
*/
|
|
31
|
+
activityIcon?: React__default.ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* The icon to use for the spinner.
|
|
34
|
+
* @default <SpinnerIcon />
|
|
35
|
+
*/
|
|
36
|
+
spinnerIcon?: React__default.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* The icon to use for the stop button.
|
|
39
|
+
* @default <StopIcon />
|
|
40
|
+
*/
|
|
41
|
+
stopIcon?: React__default.ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* The icon to use for the regenerate button.
|
|
44
|
+
* @default <RegenerateIcon />
|
|
45
|
+
*/
|
|
46
|
+
regenerateIcon?: React__default.ReactNode;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Labels for CopilotKitChat component.
|
|
50
|
+
*/
|
|
51
|
+
interface CopilotKitChatLabels {
|
|
52
|
+
/**
|
|
53
|
+
* The initial message(s) to display in the chat window.
|
|
54
|
+
*/
|
|
55
|
+
initial?: string | string[];
|
|
56
|
+
/**
|
|
57
|
+
* The title to display in the header.
|
|
58
|
+
* @default "CopilotKit"
|
|
59
|
+
*/
|
|
60
|
+
title?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The placeholder to display in the input.
|
|
63
|
+
* @default "Type a message..."
|
|
64
|
+
*/
|
|
65
|
+
placeholder?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The message to display while the chat GPT is "thinking".
|
|
68
|
+
* @default "Thinking..."
|
|
69
|
+
*/
|
|
70
|
+
thinking?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The message to display when the chat is done executing a function.
|
|
73
|
+
* @default "✅ Done"
|
|
74
|
+
*/
|
|
75
|
+
done?: string;
|
|
76
|
+
/**
|
|
77
|
+
* The message to display when an error occurs.
|
|
78
|
+
* @default "❌ An error occurred. Please try again."
|
|
79
|
+
*/
|
|
80
|
+
error?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The label to display on the stop button.
|
|
83
|
+
* @default "Stop generating"
|
|
84
|
+
*/
|
|
85
|
+
stopGenerating?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The label to display on the regenerate button.
|
|
88
|
+
* @default "Regenerate response"
|
|
89
|
+
*/
|
|
90
|
+
regenerateResponse?: string;
|
|
91
|
+
}
|
|
92
|
+
interface ChatContext {
|
|
93
|
+
labels: Required<CopilotKitChatLabels>;
|
|
94
|
+
icons: Required<CopilotKitChatIcons>;
|
|
95
|
+
}
|
|
96
|
+
declare const ChatContext: React__default.Context<ChatContext | undefined>;
|
|
97
|
+
declare function useChatContext(): ChatContext;
|
|
98
|
+
interface ChatContextProps {
|
|
99
|
+
labels?: CopilotKitChatLabels;
|
|
100
|
+
icons?: CopilotKitChatIcons;
|
|
101
|
+
children?: React__default.ReactNode;
|
|
102
|
+
}
|
|
103
|
+
declare const ChatContextProvider: React__default.FC<ChatContextProps>;
|
|
104
|
+
|
|
105
|
+
export { ChatContext, ChatContextProvider, CopilotKitChatIcons, CopilotKitChatLabels, useChatContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
language: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
interface languageMap {
|
|
8
|
+
[key: string]: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
declare const programmingLanguages: languageMap;
|
|
11
|
+
declare const generateRandomString: (length: number, lowercase?: boolean) => string;
|
|
12
|
+
declare const CodeBlock: FC<Props>;
|
|
13
|
+
|
|
14
|
+
export { CodeBlock, generateRandomString, programmingLanguages };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { CodeBlock, generateRandomString, programmingLanguages } from '../../chunk-NXWVWC33.mjs';
|
|
2
|
+
import '../../chunk-7YXG7D47.mjs';
|
|
3
|
+
import '../../chunk-POVINPXX.mjs';
|
|
4
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
5
|
+
//# sourceMappingURL=out.js.map
|
|
6
|
+
//# sourceMappingURL=CodeBlock.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
declare const OpenIcon: JSX.Element;
|
|
4
|
+
declare const CloseIcon: JSX.Element;
|
|
5
|
+
declare const HeaderCloseIcon: JSX.Element;
|
|
6
|
+
declare const SendIcon: JSX.Element;
|
|
7
|
+
declare const SpinnerIcon: JSX.Element;
|
|
8
|
+
declare const ActivityIcon: JSX.Element;
|
|
9
|
+
declare function CheckIcon({ className, ...props }: React__default.ComponentProps<"svg">): JSX.Element;
|
|
10
|
+
declare function DownloadIcon({ className, ...props }: React__default.ComponentProps<"svg">): JSX.Element;
|
|
11
|
+
declare function CopyIcon({ className, ...props }: React__default.ComponentProps<"svg">): JSX.Element;
|
|
12
|
+
declare const StopIcon: JSX.Element;
|
|
13
|
+
declare const RegenerateIcon: JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { ActivityIcon, CheckIcon, CloseIcon, CopyIcon, DownloadIcon, HeaderCloseIcon, OpenIcon, RegenerateIcon, SendIcon, SpinnerIcon, StopIcon };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ActivityIcon, CheckIcon, CloseIcon, CopyIcon, DownloadIcon, HeaderCloseIcon, OpenIcon, RegenerateIcon, SendIcon, SpinnerIcon, StopIcon } from '../../chunk-7YXG7D47.mjs';
|
|
2
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
3
|
+
//# sourceMappingURL=out.js.map
|
|
4
|
+
//# sourceMappingURL=Icons.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Input } from '../../chunk-QFASQEFJ.mjs';
|
|
2
|
+
import '../../chunk-WM6BS77F.mjs';
|
|
3
|
+
import '../../chunk-6H3Y2XEI.mjs';
|
|
4
|
+
import '../../chunk-7YXG7D47.mjs';
|
|
5
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
6
|
+
//# sourceMappingURL=out.js.map
|
|
7
|
+
//# sourceMappingURL=Input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Markdown } from '../../chunk-UIRFLYXI.mjs';
|
|
2
|
+
import '../../chunk-NXWVWC33.mjs';
|
|
3
|
+
import '../../chunk-7YXG7D47.mjs';
|
|
4
|
+
import '../../chunk-POVINPXX.mjs';
|
|
5
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
6
|
+
//# sourceMappingURL=out.js.map
|
|
7
|
+
//# sourceMappingURL=Markdown.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { Messages } from '../../chunk-ZVAH2Z2W.mjs';
|
|
2
|
+
import '../../chunk-UIRFLYXI.mjs';
|
|
3
|
+
import '../../chunk-NXWVWC33.mjs';
|
|
4
|
+
import '../../chunk-6H3Y2XEI.mjs';
|
|
5
|
+
import '../../chunk-7YXG7D47.mjs';
|
|
6
|
+
import '../../chunk-POVINPXX.mjs';
|
|
7
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
8
|
+
//# sourceMappingURL=out.js.map
|
|
9
|
+
//# sourceMappingURL=Messages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { CopilotKitChatProps } from './Chat.js';
|
|
3
|
+
import './ChatContext.js';
|
|
4
|
+
import '@copilotkit/react-core';
|
|
5
|
+
import './props.js';
|
|
6
|
+
|
|
7
|
+
declare const CopilotKitPopup: React__default.FC<CopilotKitChatProps>;
|
|
8
|
+
|
|
9
|
+
export { CopilotKitPopup };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { CopilotKitPopup } from '../../chunk-X4T6ZUVM.mjs';
|
|
2
|
+
import '../../chunk-DN3OI5WF.mjs';
|
|
3
|
+
import '../../chunk-47SYBLI2.mjs';
|
|
4
|
+
import '../../chunk-QFASQEFJ.mjs';
|
|
5
|
+
import '../../chunk-ZVAH2Z2W.mjs';
|
|
6
|
+
import '../../chunk-UIRFLYXI.mjs';
|
|
7
|
+
import '../../chunk-GPEJCUWA.mjs';
|
|
8
|
+
import '../../chunk-WM6BS77F.mjs';
|
|
9
|
+
import '../../chunk-Y2RUG4B3.mjs';
|
|
10
|
+
import '../../chunk-NXWVWC33.mjs';
|
|
11
|
+
import '../../chunk-DPUPEOGG.mjs';
|
|
12
|
+
import '../../chunk-6H3Y2XEI.mjs';
|
|
13
|
+
import '../../chunk-7YXG7D47.mjs';
|
|
14
|
+
import '../../chunk-POVINPXX.mjs';
|
|
15
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
16
|
+
//# sourceMappingURL=out.js.map
|
|
17
|
+
//# sourceMappingURL=Popup.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { CopilotKitChatProps } from './Chat.js';
|
|
3
|
+
import './ChatContext.js';
|
|
4
|
+
import '@copilotkit/react-core';
|
|
5
|
+
import './props.js';
|
|
6
|
+
|
|
7
|
+
interface CopilotKitSidebarProps extends CopilotKitChatProps {
|
|
8
|
+
children?: React__default.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const CopilotKitSidebar: React__default.FC<CopilotKitSidebarProps>;
|
|
11
|
+
|
|
12
|
+
export { CopilotKitSidebar };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { CopilotKitSidebar } from '../../chunk-X3Z2EVFV.mjs';
|
|
2
|
+
import '../../chunk-DN3OI5WF.mjs';
|
|
3
|
+
import '../../chunk-47SYBLI2.mjs';
|
|
4
|
+
import '../../chunk-QFASQEFJ.mjs';
|
|
5
|
+
import '../../chunk-ZVAH2Z2W.mjs';
|
|
6
|
+
import '../../chunk-UIRFLYXI.mjs';
|
|
7
|
+
import '../../chunk-GPEJCUWA.mjs';
|
|
8
|
+
import '../../chunk-WM6BS77F.mjs';
|
|
9
|
+
import '../../chunk-Y2RUG4B3.mjs';
|
|
10
|
+
import '../../chunk-NXWVWC33.mjs';
|
|
11
|
+
import '../../chunk-DPUPEOGG.mjs';
|
|
12
|
+
import '../../chunk-6H3Y2XEI.mjs';
|
|
13
|
+
import '../../chunk-7YXG7D47.mjs';
|
|
14
|
+
import '../../chunk-POVINPXX.mjs';
|
|
15
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
16
|
+
//# sourceMappingURL=out.js.map
|
|
17
|
+
//# sourceMappingURL=Sidebar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface AutoResizingTextareaProps {
|
|
4
|
+
maxRows?: number;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
value: string;
|
|
7
|
+
onChange: (event: React__default.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
8
|
+
onKeyDown?: (event: React__default.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const AutoResizingTextarea: React__default.ForwardRefExoticComponent<AutoResizingTextareaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
12
|
+
|
|
13
|
+
export { AutoResizingTextarea as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ButtonProps, HeaderProps, InputProps, MessagesProps, ResponseButtonProps, WindowProps } from './props.js';
|
|
2
|
+
export { CopilotKitPopup } from './Popup.js';
|
|
3
|
+
export { CopilotKitSidebar } from './Sidebar.js';
|
|
4
|
+
import '@copilotkit/react-core';
|
|
5
|
+
import 'react';
|
|
6
|
+
import './Chat.js';
|
|
7
|
+
import './ChatContext.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import '../../chunk-P4GBO6MW.mjs';
|
|
2
|
+
import '../../chunk-WB3YULQ4.mjs';
|
|
3
|
+
export { CopilotKitPopup } from '../../chunk-X4T6ZUVM.mjs';
|
|
4
|
+
export { CopilotKitSidebar } from '../../chunk-X3Z2EVFV.mjs';
|
|
5
|
+
import '../../chunk-DN3OI5WF.mjs';
|
|
6
|
+
import '../../chunk-47SYBLI2.mjs';
|
|
7
|
+
import '../../chunk-QFASQEFJ.mjs';
|
|
8
|
+
import '../../chunk-ZVAH2Z2W.mjs';
|
|
9
|
+
import '../../chunk-UIRFLYXI.mjs';
|
|
10
|
+
import '../../chunk-GPEJCUWA.mjs';
|
|
11
|
+
import '../../chunk-WM6BS77F.mjs';
|
|
12
|
+
import '../../chunk-Y2RUG4B3.mjs';
|
|
13
|
+
import '../../chunk-NXWVWC33.mjs';
|
|
14
|
+
import '../../chunk-DPUPEOGG.mjs';
|
|
15
|
+
import '../../chunk-6H3Y2XEI.mjs';
|
|
16
|
+
import '../../chunk-7YXG7D47.mjs';
|
|
17
|
+
import '../../chunk-POVINPXX.mjs';
|
|
18
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
19
|
+
//# sourceMappingURL=out.js.map
|
|
20
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Message } from '@copilotkit/react-core';
|
|
2
|
+
|
|
3
|
+
interface ButtonProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
setOpen: (open: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
interface WindowProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
setOpen: (open: boolean) => void;
|
|
10
|
+
clickOutsideToClose: boolean;
|
|
11
|
+
hitEscapeToClose: boolean;
|
|
12
|
+
hotkey: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
interface HeaderProps {
|
|
16
|
+
open: boolean;
|
|
17
|
+
setOpen: (open: boolean) => void;
|
|
18
|
+
}
|
|
19
|
+
interface MessagesProps {
|
|
20
|
+
messages: Message[];
|
|
21
|
+
inProgress: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface InputProps {
|
|
24
|
+
inProgress: boolean;
|
|
25
|
+
onSend: (text: string) => void;
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
interface ResponseButtonProps {
|
|
29
|
+
onClick: () => void;
|
|
30
|
+
inProgress: boolean;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { ButtonProps, HeaderProps, InputProps, MessagesProps, ResponseButtonProps, WindowProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -12,8 +12,8 @@ import '../../chunk-INCNMGJ7.mjs';
|
|
|
12
12
|
import '../../chunk-VGX2W5ZB.mjs';
|
|
13
13
|
import '../../chunk-M3CZWJI3.mjs';
|
|
14
14
|
import '../../chunk-2KAF7NKC.mjs';
|
|
15
|
-
import '../../chunk-Q6YO7LDK.mjs';
|
|
16
15
|
import '../../chunk-IJLMKBSZ.mjs';
|
|
16
|
+
import '../../chunk-Q6YO7LDK.mjs';
|
|
17
17
|
import '../../chunk-ZYC5YVDO.mjs';
|
|
18
18
|
import '../../chunk-POVINPXX.mjs';
|
|
19
19
|
import '../../chunk-OHWEJUCS.mjs';
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const badgeVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "
|
|
6
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
7
7
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
8
8
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
9
9
|
}
|
|
@@ -3,7 +3,12 @@ export { Tooltip, TooltipProvider } from './chat-components/ui/tooltip.js';
|
|
|
3
3
|
export { CopilotSidebarUIProvider } from './sidebar/copilot-sidebar-ui-provider.js';
|
|
4
4
|
export { CopilotSidebar } from './sidebar/copilot-sidebar.js';
|
|
5
5
|
export { CopilotSidebarContext, CopilotSidebarContextType } from './sidebar/sidebar-context.js';
|
|
6
|
+
export { ButtonProps, HeaderProps, InputProps, MessagesProps, ResponseButtonProps, WindowProps } from './chat/props.js';
|
|
7
|
+
export { CopilotKitPopup } from './chat/Popup.js';
|
|
8
|
+
export { CopilotKitSidebar } from './chat/Sidebar.js';
|
|
6
9
|
import 'react';
|
|
7
10
|
import './chat-components/default-empty-screen.js';
|
|
8
11
|
import '@copilotkit/react-core';
|
|
9
12
|
import '@radix-ui/react-tooltip';
|
|
13
|
+
import './chat/Chat.js';
|
|
14
|
+
import './chat/ChatContext.js';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import '../chunk-
|
|
1
|
+
import '../chunk-FZRTAML3.mjs';
|
|
2
2
|
export { CopilotSidebarUIProvider } from '../chunk-XGUBRIUV.mjs';
|
|
3
3
|
export { CopilotSidebar } from '../chunk-C34L4AWW.mjs';
|
|
4
4
|
export { CopilotSidebarContext } from '../chunk-MC6KTH4X.mjs';
|
|
5
5
|
export { CopilotChat } from '../chunk-RPTRCFSO.mjs';
|
|
6
6
|
import '../chunk-SEH5PQVW.mjs';
|
|
7
7
|
import '../chunk-5KEDV5VC.mjs';
|
|
8
|
+
import '../chunk-P4GBO6MW.mjs';
|
|
9
|
+
import '../chunk-WB3YULQ4.mjs';
|
|
8
10
|
import '../chunk-SHOTWRKC.mjs';
|
|
9
11
|
import '../chunk-GCOPYGHH.mjs';
|
|
10
12
|
import '../chunk-CNQX2VY3.mjs';
|
|
@@ -16,8 +18,22 @@ import '../chunk-INCNMGJ7.mjs';
|
|
|
16
18
|
export { Tooltip, TooltipProvider } from '../chunk-VGX2W5ZB.mjs';
|
|
17
19
|
import '../chunk-M3CZWJI3.mjs';
|
|
18
20
|
import '../chunk-2KAF7NKC.mjs';
|
|
19
|
-
import '../chunk-Q6YO7LDK.mjs';
|
|
20
21
|
import '../chunk-IJLMKBSZ.mjs';
|
|
22
|
+
export { CopilotKitPopup } from '../chunk-X4T6ZUVM.mjs';
|
|
23
|
+
export { CopilotKitSidebar } from '../chunk-X3Z2EVFV.mjs';
|
|
24
|
+
import '../chunk-Q6YO7LDK.mjs';
|
|
25
|
+
import '../chunk-DN3OI5WF.mjs';
|
|
26
|
+
import '../chunk-47SYBLI2.mjs';
|
|
27
|
+
import '../chunk-QFASQEFJ.mjs';
|
|
28
|
+
import '../chunk-ZVAH2Z2W.mjs';
|
|
29
|
+
import '../chunk-UIRFLYXI.mjs';
|
|
30
|
+
import '../chunk-GPEJCUWA.mjs';
|
|
31
|
+
import '../chunk-WM6BS77F.mjs';
|
|
32
|
+
import '../chunk-Y2RUG4B3.mjs';
|
|
33
|
+
import '../chunk-NXWVWC33.mjs';
|
|
34
|
+
import '../chunk-DPUPEOGG.mjs';
|
|
35
|
+
import '../chunk-6H3Y2XEI.mjs';
|
|
36
|
+
import '../chunk-7YXG7D47.mjs';
|
|
21
37
|
import '../chunk-ZYC5YVDO.mjs';
|
|
22
38
|
import '../chunk-POVINPXX.mjs';
|
|
23
39
|
import '../chunk-OHWEJUCS.mjs';
|
|
@@ -15,8 +15,8 @@ import '../../chunk-INCNMGJ7.mjs';
|
|
|
15
15
|
import '../../chunk-VGX2W5ZB.mjs';
|
|
16
16
|
import '../../chunk-M3CZWJI3.mjs';
|
|
17
17
|
import '../../chunk-2KAF7NKC.mjs';
|
|
18
|
-
import '../../chunk-Q6YO7LDK.mjs';
|
|
19
18
|
import '../../chunk-IJLMKBSZ.mjs';
|
|
19
|
+
import '../../chunk-Q6YO7LDK.mjs';
|
|
20
20
|
import '../../chunk-ZYC5YVDO.mjs';
|
|
21
21
|
import '../../chunk-POVINPXX.mjs';
|
|
22
22
|
import '../../chunk-OHWEJUCS.mjs';
|
|
@@ -13,8 +13,8 @@ import '../../chunk-INCNMGJ7.mjs';
|
|
|
13
13
|
import '../../chunk-VGX2W5ZB.mjs';
|
|
14
14
|
import '../../chunk-M3CZWJI3.mjs';
|
|
15
15
|
import '../../chunk-2KAF7NKC.mjs';
|
|
16
|
-
import '../../chunk-Q6YO7LDK.mjs';
|
|
17
16
|
import '../../chunk-IJLMKBSZ.mjs';
|
|
17
|
+
import '../../chunk-Q6YO7LDK.mjs';
|
|
18
18
|
import '../../chunk-ZYC5YVDO.mjs';
|
|
19
19
|
import '../../chunk-POVINPXX.mjs';
|
|
20
20
|
import '../../chunk-OHWEJUCS.mjs';
|