@copilotkit/react-ui 1.10.5-next.9 → 1.10.6-next.0

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/{chunk-QPONDGDJ.mjs → chunk-5HQD6ZPA.mjs} +2 -2
  3. package/dist/{chunk-DSNTTAJX.mjs → chunk-7HAFY2YK.mjs} +3 -3
  4. package/dist/{chunk-CGEAG65D.mjs → chunk-ELGRNEAO.mjs} +7 -2
  5. package/dist/chunk-ELGRNEAO.mjs.map +1 -0
  6. package/dist/{chunk-K2FLPUR5.mjs → chunk-G7VB7A4O.mjs} +2 -2
  7. package/dist/{chunk-SDQTGCT2.mjs → chunk-SNGWNZNH.mjs} +2 -2
  8. package/dist/{chunk-DTRPPNSA.mjs → chunk-ZJCHKHE4.mjs} +2 -2
  9. package/dist/components/chat/Chat.js +36 -29
  10. package/dist/components/chat/Chat.js.map +1 -1
  11. package/dist/components/chat/Chat.mjs +3 -3
  12. package/dist/components/chat/Input.js +14 -7
  13. package/dist/components/chat/Input.js.map +1 -1
  14. package/dist/components/chat/Input.mjs +2 -2
  15. package/dist/components/chat/Modal.js +43 -36
  16. package/dist/components/chat/Modal.js.map +1 -1
  17. package/dist/components/chat/Modal.mjs +4 -4
  18. package/dist/components/chat/Popup.js +43 -36
  19. package/dist/components/chat/Popup.js.map +1 -1
  20. package/dist/components/chat/Popup.mjs +5 -5
  21. package/dist/components/chat/PoweredByTag.js +6 -1
  22. package/dist/components/chat/PoweredByTag.js.map +1 -1
  23. package/dist/components/chat/PoweredByTag.mjs +1 -1
  24. package/dist/components/chat/Sidebar.js +45 -38
  25. package/dist/components/chat/Sidebar.js.map +1 -1
  26. package/dist/components/chat/Sidebar.mjs +5 -5
  27. package/dist/components/chat/index.js +45 -38
  28. package/dist/components/chat/index.js.map +1 -1
  29. package/dist/components/chat/index.mjs +6 -6
  30. package/dist/components/index.js +45 -38
  31. package/dist/components/index.js.map +1 -1
  32. package/dist/components/index.mjs +6 -6
  33. package/dist/index.js +47 -40
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +11 -11
  36. package/package.json +4 -4
  37. package/src/components/chat/PoweredByTag.tsx +15 -2
  38. package/dist/chunk-CGEAG65D.mjs.map +0 -1
  39. /package/dist/{chunk-QPONDGDJ.mjs.map → chunk-5HQD6ZPA.mjs.map} +0 -0
  40. /package/dist/{chunk-DSNTTAJX.mjs.map → chunk-7HAFY2YK.mjs.map} +0 -0
  41. /package/dist/{chunk-K2FLPUR5.mjs.map → chunk-G7VB7A4O.mjs.map} +0 -0
  42. /package/dist/{chunk-SDQTGCT2.mjs.map → chunk-SNGWNZNH.mjs.map} +0 -0
  43. /package/dist/{chunk-DTRPPNSA.mjs.map → chunk-ZJCHKHE4.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,15 +1,20 @@
1
1
  "use client";
2
2
  import "./chunk-EFZPSZWO.mjs";
3
+ import "./chunk-IU3WTXLQ.mjs";
4
+ import "./chunk-T26KLXLH.mjs";
5
+ import {
6
+ useCopilotChatSuggestions
7
+ } from "./chunk-EYRKZDP5.mjs";
3
8
  import "./chunk-MMVDU6DF.mjs";
4
9
  import "./chunk-SC6JRFAJ.mjs";
5
10
  import {
6
11
  CopilotSidebar
7
- } from "./chunk-SDQTGCT2.mjs";
12
+ } from "./chunk-SNGWNZNH.mjs";
8
13
  import "./chunk-WB3YULQ4.mjs";
9
14
  import {
10
15
  CopilotPopup
11
- } from "./chunk-QPONDGDJ.mjs";
12
- import "./chunk-DSNTTAJX.mjs";
16
+ } from "./chunk-5HQD6ZPA.mjs";
17
+ import "./chunk-7HAFY2YK.mjs";
13
18
  import "./chunk-C3GSYRC3.mjs";
14
19
  import "./chunk-GDSZGYCE.mjs";
15
20
  import "./chunk-V7W6IM2V.mjs";
@@ -26,7 +31,7 @@ import "./chunk-BH6PCAAL.mjs";
26
31
  import "./chunk-UFN2VWSR.mjs";
27
32
  import {
28
33
  CopilotChat
29
- } from "./chunk-K2FLPUR5.mjs";
34
+ } from "./chunk-G7VB7A4O.mjs";
30
35
  import {
31
36
  Suggestions
32
37
  } from "./chunk-226ZMOE3.mjs";
@@ -34,8 +39,8 @@ import {
34
39
  Suggestion
35
40
  } from "./chunk-W26XFBEG.mjs";
36
41
  import "./chunk-PLHTVHUW.mjs";
37
- import "./chunk-DTRPPNSA.mjs";
38
- import "./chunk-CGEAG65D.mjs";
42
+ import "./chunk-ZJCHKHE4.mjs";
43
+ import "./chunk-ELGRNEAO.mjs";
39
44
  import "./chunk-QIOJXTIQ.mjs";
40
45
  import "./chunk-W7ONZTSW.mjs";
41
46
  import "./chunk-2LIO4Z3E.mjs";
@@ -57,11 +62,6 @@ import {
57
62
  } from "./chunk-IEMQ2SQW.mjs";
58
63
  import "./chunk-IK2BPURM.mjs";
59
64
  import "./chunk-XWG3L6QC.mjs";
60
- import "./chunk-IU3WTXLQ.mjs";
61
- import "./chunk-T26KLXLH.mjs";
62
- import {
63
- useCopilotChatSuggestions
64
- } from "./chunk-EYRKZDP5.mjs";
65
65
  import "./chunk-54JAUBUJ.mjs";
66
66
  import "./chunk-JGMFJZMG.mjs";
67
67
  import "./chunk-O72ZB5V3.mjs";
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "version": "1.10.5-next.9",
12
+ "version": "1.10.6-next.0",
13
13
  "sideEffects": [
14
14
  "**/*.css"
15
15
  ],
@@ -51,9 +51,9 @@
51
51
  "rehype-raw": "^7.0.0",
52
52
  "remark-gfm": "^4.0.1",
53
53
  "remark-math": "^6.0.0",
54
- "@copilotkit/react-core": "1.10.5-next.9",
55
- "@copilotkit/runtime-client-gql": "1.10.5-next.9",
56
- "@copilotkit/shared": "1.10.5-next.9"
54
+ "@copilotkit/runtime-client-gql": "1.10.6-next.0",
55
+ "@copilotkit/shared": "1.10.6-next.0",
56
+ "@copilotkit/react-core": "1.10.6-next.0"
57
57
  },
58
58
  "keywords": [
59
59
  "copilotkit",
@@ -1,9 +1,22 @@
1
- import React from "react";
1
+ import React, { useState, useEffect } from "react";
2
2
  import { useDarkMode } from "../../hooks/use-dark-mode";
3
3
 
4
4
  export function PoweredByTag({ showPoweredBy = true }: { showPoweredBy?: boolean }) {
5
+ const [mounted, setMounted] = useState(false);
5
6
  const isDark = useDarkMode();
6
7
 
8
+ /*
9
+ note(tylerslaton):
10
+
11
+ Ensure we only use the isDark computed value after client-side mount.
12
+ This prevents hydration mismatches by using a default color on the
13
+ server and initial client render, then updating to the correct
14
+ dark mode color after hydration is complete.
15
+ */
16
+ useEffect(() => {
17
+ setMounted(true);
18
+ }, []);
19
+
7
20
  if (!showPoweredBy) {
8
21
  return null;
9
22
  }
@@ -15,7 +28,7 @@ export function PoweredByTag({ showPoweredBy = true }: { showPoweredBy?: boolean
15
28
  textAlign: "center",
16
29
  fontSize: "12px",
17
30
  padding: "3px 0",
18
- color: isDark ? "rgb(69, 69, 69)" : "rgb(214, 214, 214)",
31
+ color: mounted && isDark ? "rgb(69, 69, 69)" : "rgb(214, 214, 214)",
19
32
  };
20
33
 
21
34
  return (
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/chat/PoweredByTag.tsx"],"sourcesContent":["import React from \"react\";\nimport { useDarkMode } from \"../../hooks/use-dark-mode\";\n\nexport function PoweredByTag({ showPoweredBy = true }: { showPoweredBy?: boolean }) {\n const isDark = useDarkMode();\n\n if (!showPoweredBy) {\n return null;\n }\n\n const poweredByStyle = {\n visibility: \"visible\",\n display: \"block\",\n position: \"static\",\n textAlign: \"center\",\n fontSize: \"12px\",\n padding: \"3px 0\",\n color: isDark ? \"rgb(69, 69, 69)\" : \"rgb(214, 214, 214)\",\n };\n\n return (\n <div>\n {/*@ts-expect-error -- expecting position not to be a string, but it can be.*/}\n <p className=\"poweredBy\" style={poweredByStyle}>\n Powered by CopilotKit\n </p>\n </div>\n );\n}\n"],"mappings":";;;;;AAuBM;AApBC,SAAS,aAAa,EAAE,gBAAgB,KAAK,GAAgC;AAClF,QAAM,SAAS,YAAY;AAE3B,MAAI,CAAC,eAAe;AAClB,WAAO;AAAA,EACT;AAEA,QAAM,iBAAiB;AAAA,IACrB,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,UAAU;AAAA,IACV,WAAW;AAAA,IACX,UAAU;AAAA,IACV,SAAS;AAAA,IACT,OAAO,SAAS,oBAAoB;AAAA,EACtC;AAEA,SACE,oBAAC,SAEC,8BAAC,OAAE,WAAU,aAAY,OAAO,gBAAgB,mCAEhD,GACF;AAEJ;","names":[]}