@copilotkit/react-ui 1.55.1-next.0 → 1.55.2-canary.test-01

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkit/react-ui",
3
- "version": "1.55.1-next.0",
3
+ "version": "1.55.2-canary.test-01",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "ai",
@@ -42,15 +42,15 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
+ "@copilotkit/react-core": "1.55.2-canary.test-01",
46
+ "@copilotkit/runtime-client-gql": "1.55.2-canary.test-01",
47
+ "@copilotkit/shared": "1.55.2-canary.test-01",
45
48
  "@headlessui/react": "^2.2.9",
46
49
  "react-markdown": "^10.1.0",
47
50
  "react-syntax-highlighter": "^15.6.1",
48
51
  "rehype-raw": "^7.0.0",
49
52
  "remark-gfm": "^4.0.1",
50
- "remark-math": "^6.0.0",
51
- "@copilotkit/react-core": "1.55.1-next.0",
52
- "@copilotkit/runtime-client-gql": "1.55.1-next.0",
53
- "@copilotkit/shared": "1.55.1-next.0"
53
+ "remark-math": "^6.0.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/react": "^19.1.0",
@@ -929,7 +929,7 @@ export function CopilotChat({
929
929
  onDragOver={handleDragOver}
930
930
  onDragLeave={handleDragLeave}
931
931
  onDrop={handleDrop}
932
- className={dragOver ? "copilotKitDragOver" : ""}
932
+ className={`copilotKitChatBody${dragOver ? " copilotKitDragOver" : ""}`}
933
933
  >
934
934
  {/* Render error above messages if present */}
935
935
  {chatError &&
@@ -197,18 +197,16 @@ export const ChatContextProvider = ({
197
197
  }: ChatContextProps) => {
198
198
  const memoizedLabels = useMemo(
199
199
  () => ({
200
- ...{
201
- initial: "",
202
- title: "CopilotKit",
203
- placeholder: "Type a message...",
204
- error: " An error occurred. Please try again.",
205
- stopGenerating: "Stop generating",
206
- regenerateResponse: "Regenerate response",
207
- copyToClipboard: "Copy to clipboard",
208
- thumbsUp: "Thumbs up",
209
- thumbsDown: "Thumbs down",
210
- copied: "Copied!",
211
- },
200
+ initial: "",
201
+ title: "CopilotKit",
202
+ placeholder: "Type a message...",
203
+ error: " An error occurred. Please try again.",
204
+ stopGenerating: "Stop generating",
205
+ regenerateResponse: "Regenerate response",
206
+ copyToClipboard: "Copy to clipboard",
207
+ thumbsUp: "Thumbs up",
208
+ thumbsDown: "Thumbs down",
209
+ copied: "Copied!",
212
210
  ...labels,
213
211
  }),
214
212
  [labels],
@@ -216,21 +214,19 @@ export const ChatContextProvider = ({
216
214
 
217
215
  const memoizedIcons = useMemo(
218
216
  () => ({
219
- ...{
220
- openIcon: DefaultIcons.OpenIcon,
221
- closeIcon: DefaultIcons.CloseIcon,
222
- headerCloseIcon: DefaultIcons.HeaderCloseIcon,
223
- sendIcon: DefaultIcons.SendIcon,
224
- activityIcon: DefaultIcons.ActivityIcon,
225
- spinnerIcon: DefaultIcons.SpinnerIcon,
226
- stopIcon: DefaultIcons.StopIcon,
227
- regenerateIcon: DefaultIcons.RegenerateIcon,
228
- pushToTalkIcon: DefaultIcons.MicrophoneIcon,
229
- copyIcon: DefaultIcons.CopyIcon,
230
- thumbsUpIcon: DefaultIcons.ThumbsUpIcon,
231
- thumbsDownIcon: DefaultIcons.ThumbsDownIcon,
232
- uploadIcon: DefaultIcons.UploadIcon,
233
- },
217
+ openIcon: DefaultIcons.OpenIcon,
218
+ closeIcon: DefaultIcons.CloseIcon,
219
+ headerCloseIcon: DefaultIcons.HeaderCloseIcon,
220
+ sendIcon: DefaultIcons.SendIcon,
221
+ activityIcon: DefaultIcons.ActivityIcon,
222
+ spinnerIcon: DefaultIcons.SpinnerIcon,
223
+ stopIcon: DefaultIcons.StopIcon,
224
+ regenerateIcon: DefaultIcons.RegenerateIcon,
225
+ pushToTalkIcon: DefaultIcons.MicrophoneIcon,
226
+ copyIcon: DefaultIcons.CopyIcon,
227
+ thumbsUpIcon: DefaultIcons.ThumbsUpIcon,
228
+ thumbsDownIcon: DefaultIcons.ThumbsDownIcon,
229
+ uploadIcon: DefaultIcons.UploadIcon,
234
230
  ...icons,
235
231
  }),
236
232
  [icons],
@@ -1 +0,0 @@
1
- export {};
@@ -37,19 +37,6 @@
37
37
  overflow: visible;
38
38
  margin-right: 0px;
39
39
  transition: margin-right 0.3s ease;
40
- min-height: 100vh;
41
- min-height: 100dvh;
42
- height: 100%;
43
- }
44
-
45
- .copilotKitSidebarContentWrapper > .copilotKitModalChildrenWrapper {
46
- min-height: 100%;
47
- height: 100%;
48
- }
49
-
50
- .copilotKitSidebarContentWrapper > .copilotKitModalChildrenWrapper > * {
51
- min-height: 100%;
52
- height: 100%;
53
40
  }
54
41
 
55
42
  @media (min-width: 640px) {
@@ -32,6 +32,13 @@
32
32
  transform: translateX(0);
33
33
  }
34
34
 
35
+ .copilotKitChatBody {
36
+ flex: 1 1 0%;
37
+ display: flex;
38
+ flex-direction: column;
39
+ min-height: 0;
40
+ }
41
+
35
42
  @media (min-width: 640px) {
36
43
  .copilotKitWindow {
37
44
  transform-origin: bottom right;
@@ -7,7 +7,7 @@ export interface useCopyToClipboardProps {
7
7
  export function useCopyToClipboard({
8
8
  timeout = 2000,
9
9
  }: useCopyToClipboardProps) {
10
- const [isCopied, setIsCopied] = React.useState<Boolean>(false);
10
+ const [isCopied, setIsCopied] = React.useState<boolean>(false);
11
11
 
12
12
  const copyToClipboard = (value: string) => {
13
13
  if (typeof window === "undefined" || !navigator.clipboard?.writeText) {