@copilotkit/react-ui 1.55.2-next.0 → 1.55.2-next.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkit/react-ui",
3
- "version": "1.55.2-next.0",
3
+ "version": "1.55.2-next.1",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "ai",
@@ -48,9 +48,9 @@
48
48
  "rehype-raw": "^7.0.0",
49
49
  "remark-gfm": "^4.0.1",
50
50
  "remark-math": "^6.0.0",
51
- "@copilotkit/react-core": "1.55.2-next.0",
52
- "@copilotkit/runtime-client-gql": "1.55.2-next.0",
53
- "@copilotkit/shared": "1.55.2-next.0"
51
+ "@copilotkit/react-core": "1.55.2-next.1",
52
+ "@copilotkit/runtime-client-gql": "1.55.2-next.1",
53
+ "@copilotkit/shared": "1.55.2-next.1"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/react": "^19.1.0",
@@ -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 {};
@@ -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) {