@copilotkit/react-ui 1.6.0-next.0 → 1.6.0-next.10

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 (38) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/dist/{chunk-652TZXBO.mjs → chunk-CU525PBJ.mjs} +2 -2
  3. package/dist/{chunk-525VKRDO.mjs → chunk-FUFTTTA3.mjs} +2 -2
  4. package/dist/{chunk-PO3UGUKD.mjs → chunk-UGTFROVP.mjs} +2 -2
  5. package/dist/{chunk-QRHVTE25.mjs → chunk-UY34ERRQ.mjs} +2 -2
  6. package/dist/{chunk-F7VWGY77.mjs → chunk-WEYDZBT7.mjs} +3 -1
  7. package/dist/{chunk-F7VWGY77.mjs.map → chunk-WEYDZBT7.mjs.map} +1 -1
  8. package/dist/components/chat/Chat.js +2 -0
  9. package/dist/components/chat/Chat.js.map +1 -1
  10. package/dist/components/chat/Chat.mjs +2 -2
  11. package/dist/components/chat/Modal.js +2 -0
  12. package/dist/components/chat/Modal.js.map +1 -1
  13. package/dist/components/chat/Modal.mjs +3 -3
  14. package/dist/components/chat/Popup.js +2 -0
  15. package/dist/components/chat/Popup.js.map +1 -1
  16. package/dist/components/chat/Popup.mjs +4 -4
  17. package/dist/components/chat/Sidebar.js +2 -0
  18. package/dist/components/chat/Sidebar.js.map +1 -1
  19. package/dist/components/chat/Sidebar.mjs +4 -4
  20. package/dist/components/chat/index.js +2 -0
  21. package/dist/components/chat/index.js.map +1 -1
  22. package/dist/components/chat/index.mjs +5 -5
  23. package/dist/components/chat/messages/RenderResultMessage.d.ts +1 -1
  24. package/dist/components/chat/messages/RenderResultMessage.js +2 -0
  25. package/dist/components/chat/messages/RenderResultMessage.js.map +1 -1
  26. package/dist/components/chat/messages/RenderResultMessage.mjs +1 -1
  27. package/dist/components/index.js +2 -0
  28. package/dist/components/index.js.map +1 -1
  29. package/dist/components/index.mjs +5 -5
  30. package/dist/index.js +2 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +5 -5
  33. package/package.json +4 -4
  34. package/src/components/chat/messages/RenderResultMessage.tsx +5 -0
  35. /package/dist/{chunk-652TZXBO.mjs.map → chunk-CU525PBJ.mjs.map} +0 -0
  36. /package/dist/{chunk-525VKRDO.mjs.map → chunk-FUFTTTA3.mjs.map} +0 -0
  37. /package/dist/{chunk-PO3UGUKD.mjs.map → chunk-UGTFROVP.mjs.map} +0 -0
  38. /package/dist/{chunk-QRHVTE25.mjs.map → chunk-UY34ERRQ.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,89 @@
1
1
  # ui
2
2
 
3
+ ## 1.6.0-next.10
4
+
5
+ ### Patch Changes
6
+
7
+ - @copilotkit/runtime-client-gql@1.6.0-next.10
8
+ - @copilotkit/react-core@1.6.0-next.10
9
+ - @copilotkit/shared@1.6.0-next.10
10
+
11
+ ## 1.6.0-next.9
12
+
13
+ ### Patch Changes
14
+
15
+ - @copilotkit/runtime-client-gql@1.6.0-next.9
16
+ - @copilotkit/react-core@1.6.0-next.9
17
+ - @copilotkit/shared@1.6.0-next.9
18
+
19
+ ## 1.6.0-next.8
20
+
21
+ ### Patch Changes
22
+
23
+ - @copilotkit/runtime-client-gql@1.6.0-next.8
24
+ - @copilotkit/react-core@1.6.0-next.8
25
+ - @copilotkit/shared@1.6.0-next.8
26
+
27
+ ## 1.6.0-next.7
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [d800f03]
32
+ - @copilotkit/react-core@1.6.0-next.7
33
+ - @copilotkit/runtime-client-gql@1.6.0-next.7
34
+ - @copilotkit/shared@1.6.0-next.7
35
+
36
+ ## 1.6.0-next.6
37
+
38
+ ### Patch Changes
39
+
40
+ - @copilotkit/runtime-client-gql@1.6.0-next.6
41
+ - @copilotkit/react-core@1.6.0-next.6
42
+ - @copilotkit/shared@1.6.0-next.6
43
+
44
+ ## 1.6.0-next.5
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [090203d]
49
+ - @copilotkit/shared@1.6.0-next.5
50
+ - @copilotkit/runtime-client-gql@1.6.0-next.5
51
+ - @copilotkit/react-core@1.6.0-next.5
52
+
53
+ ## 1.6.0-next.4
54
+
55
+ ### Patch Changes
56
+
57
+ - @copilotkit/runtime-client-gql@1.6.0-next.4
58
+ - @copilotkit/react-core@1.6.0-next.4
59
+ - @copilotkit/shared@1.6.0-next.4
60
+
61
+ ## 1.6.0-next.3
62
+
63
+ ### Patch Changes
64
+
65
+ - @copilotkit/runtime-client-gql@1.6.0-next.3
66
+ - @copilotkit/react-core@1.6.0-next.3
67
+ - @copilotkit/shared@1.6.0-next.3
68
+
69
+ ## 1.6.0-next.2
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies [b454827]
74
+ - @copilotkit/react-core@1.6.0-next.2
75
+ - @copilotkit/runtime-client-gql@1.6.0-next.2
76
+ - @copilotkit/shared@1.6.0-next.2
77
+
78
+ ## 1.6.0-next.1
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [d833f4c]
83
+ - @copilotkit/react-core@1.6.0-next.1
84
+ - @copilotkit/runtime-client-gql@1.6.0-next.1
85
+ - @copilotkit/shared@1.6.0-next.1
86
+
3
87
  ## 1.6.0-next.0
4
88
 
5
89
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CopilotModal
3
- } from "./chunk-QRHVTE25.mjs";
3
+ } from "./chunk-UY34ERRQ.mjs";
4
4
  import {
5
5
  __spreadProps,
6
6
  __spreadValues
@@ -27,4 +27,4 @@ function CopilotSidebar(props) {
27
27
  export {
28
28
  CopilotSidebar
29
29
  };
30
- //# sourceMappingURL=chunk-652TZXBO.mjs.map
30
+ //# sourceMappingURL=chunk-CU525PBJ.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-UWWMAJ7R.mjs";
4
4
  import {
5
5
  RenderResultMessage
6
- } from "./chunk-F7VWGY77.mjs";
6
+ } from "./chunk-WEYDZBT7.mjs";
7
7
  import {
8
8
  RenderTextMessage
9
9
  } from "./chunk-OFYI4UU4.mjs";
@@ -311,4 +311,4 @@ export {
311
311
  WrappedCopilotChat,
312
312
  useCopilotChatLogic
313
313
  };
314
- //# sourceMappingURL=chunk-525VKRDO.mjs.map
314
+ //# sourceMappingURL=chunk-FUFTTTA3.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CopilotModal
3
- } from "./chunk-QRHVTE25.mjs";
3
+ } from "./chunk-UY34ERRQ.mjs";
4
4
  import {
5
5
  __spreadProps,
6
6
  __spreadValues
@@ -18,4 +18,4 @@ function CopilotPopup(props) {
18
18
  export {
19
19
  CopilotPopup
20
20
  };
21
- //# sourceMappingURL=chunk-PO3UGUKD.mjs.map
21
+ //# sourceMappingURL=chunk-UGTFROVP.mjs.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-RQNJNK2W.mjs";
10
10
  import {
11
11
  CopilotChat
12
- } from "./chunk-525VKRDO.mjs";
12
+ } from "./chunk-FUFTTTA3.mjs";
13
13
  import {
14
14
  UserMessage
15
15
  } from "./chunk-HEIDCT7I.mjs";
@@ -102,4 +102,4 @@ var CopilotModal = ({
102
102
  export {
103
103
  CopilotModal
104
104
  };
105
- //# sourceMappingURL=chunk-QRHVTE25.mjs.map
105
+ //# sourceMappingURL=chunk-UY34ERRQ.mjs.map
@@ -13,10 +13,12 @@ function RenderResultMessage(props) {
13
13
  },
14
14
  index
15
15
  );
16
+ } else {
17
+ return null;
16
18
  }
17
19
  }
18
20
 
19
21
  export {
20
22
  RenderResultMessage
21
23
  };
22
- //# sourceMappingURL=chunk-F7VWGY77.mjs.map
24
+ //# sourceMappingURL=chunk-WEYDZBT7.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/chat/messages/RenderResultMessage.tsx"],"sourcesContent":["import { RenderMessageProps } from \"../props\";\n\nexport function RenderResultMessage(props: RenderMessageProps) {\n const { message, inProgress, index, isCurrentMessage, AssistantMessage } = props;\n\n if (message.isResultMessage() && inProgress && isCurrentMessage) {\n return (\n <AssistantMessage\n key={index}\n data-message-role=\"assistant\"\n rawData={message}\n isLoading={true}\n isGenerating={true}\n />\n );\n }\n}\n"],"mappings":";AAOM;AALC,SAAS,oBAAoB,OAA2B;AAC7D,QAAM,EAAE,SAAS,YAAY,OAAO,kBAAkB,iBAAiB,IAAI;AAE3E,MAAI,QAAQ,gBAAgB,KAAK,cAAc,kBAAkB;AAC/D,WACE;AAAA,MAAC;AAAA;AAAA,QAEC,qBAAkB;AAAA,QAClB,SAAS;AAAA,QACT,WAAW;AAAA,QACX,cAAc;AAAA;AAAA,MAJT;AAAA,IAKP;AAAA,EAEJ;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/components/chat/messages/RenderResultMessage.tsx"],"sourcesContent":["import { RenderMessageProps } from \"../props\";\n\nexport function RenderResultMessage(props: RenderMessageProps) {\n const { message, inProgress, index, isCurrentMessage, AssistantMessage } = props;\n\n if (message.isResultMessage() && inProgress && isCurrentMessage) {\n return (\n <AssistantMessage\n key={index}\n data-message-role=\"assistant\"\n rawData={message}\n isLoading={true}\n isGenerating={true}\n />\n );\n }\n\n // Avoid 'Nothing was returned from render' React error\n else {\n return null;\n }\n}\n"],"mappings":";AAOM;AALC,SAAS,oBAAoB,OAA2B;AAC7D,QAAM,EAAE,SAAS,YAAY,OAAO,kBAAkB,iBAAiB,IAAI;AAE3E,MAAI,QAAQ,gBAAgB,KAAK,cAAc,kBAAkB;AAC/D,WACE;AAAA,MAAC;AAAA;AAAA,QAEC,qBAAkB;AAAA,QAClB,SAAS;AAAA,QACT,WAAW;AAAA,QACX,cAAc;AAAA;AAAA,MAJT;AAAA,IAKP;AAAA,EAEJ,OAGK;AACH,WAAO;AAAA,EACT;AACF;","names":[]}
@@ -966,6 +966,8 @@ function RenderResultMessage(props) {
966
966
  },
967
967
  index
968
968
  );
969
+ } else {
970
+ return null;
969
971
  }
970
972
  }
971
973