@copilotkit/react-ui 0.20.0 → 0.21.0-mme-fix-esm-error.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 +60 -60
- package/CHANGELOG.md +36 -0
- package/dist/{chunk-EIB4TGCW.mjs → chunk-3SXQEFGW.mjs} +3 -3
- package/dist/{chunk-NFMERKCE.mjs → chunk-7JYUCW7H.mjs} +2 -2
- package/dist/{chunk-N37JEHLI.mjs → chunk-7LMXXGJT.mjs} +8 -4
- package/dist/chunk-7LMXXGJT.mjs.map +1 -0
- package/dist/{chunk-BPT5B4JN.mjs → chunk-7UK4MYTF.mjs} +4 -7
- package/dist/{chunk-BPT5B4JN.mjs.map → chunk-7UK4MYTF.mjs.map} +1 -1
- package/dist/{chunk-EAKWARPJ.mjs → chunk-BJ75DW3Z.mjs} +30 -26
- package/dist/{chunk-EAKWARPJ.mjs.map → chunk-BJ75DW3Z.mjs.map} +1 -1
- package/dist/{chunk-WBXU5YXF.mjs → chunk-KE3N45ZY.mjs} +2 -2
- package/dist/{chunk-2JGAK63B.mjs → chunk-OTE2PMAQ.mjs} +3 -3
- package/dist/chunk-OTE2PMAQ.mjs.map +1 -0
- package/dist/{chunk-Q3WQ546F.mjs → chunk-PGPR52GM.mjs} +16 -3
- package/dist/chunk-PGPR52GM.mjs.map +1 -0
- package/dist/chunk-UGQQ4WEQ.mjs +1 -0
- package/dist/{chunk-OAIXDKPE.mjs → chunk-YEHO5VMA.mjs} +2 -2
- package/dist/{chunk-EZ3QSEI2.mjs → chunk-YTIGBBTC.mjs} +2 -2
- package/dist/components/chat/Button.js.map +1 -1
- package/dist/components/chat/Button.mjs +2 -2
- package/dist/components/chat/Chat.d.ts +5 -1
- package/dist/components/chat/Chat.js +45 -24
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +8 -8
- package/dist/components/chat/ChatContext.d.ts +5 -1
- package/dist/components/chat/ChatContext.js +7 -3
- package/dist/components/chat/ChatContext.js.map +1 -1
- package/dist/components/chat/ChatContext.mjs +1 -1
- package/dist/components/chat/Header.js.map +1 -1
- package/dist/components/chat/Header.mjs +2 -2
- package/dist/components/chat/Input.js.map +1 -1
- package/dist/components/chat/Input.mjs +2 -2
- package/dist/components/chat/Markdown.js +15 -2
- package/dist/components/chat/Markdown.js.map +1 -1
- package/dist/components/chat/Markdown.mjs +1 -1
- package/dist/components/chat/Messages.js +15 -2
- package/dist/components/chat/Messages.js.map +1 -1
- package/dist/components/chat/Messages.mjs +3 -3
- package/dist/components/chat/Popup.js +46 -25
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +9 -9
- package/dist/components/chat/Response.js.map +1 -1
- package/dist/components/chat/Response.mjs +2 -2
- package/dist/components/chat/Sidebar.js +46 -28
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +9 -9
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.js +51 -31
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +15 -12
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +51 -31
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +15 -12
- package/dist/index.css +4 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +51 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -12
- package/package.json +7 -7
- package/src/components/chat/Chat.tsx +8 -1
- package/src/components/chat/ChatContext.tsx +9 -1
- package/src/components/chat/Markdown.tsx +12 -0
- package/src/components/chat/Popup.tsx +5 -1
- package/src/components/chat/Sidebar.tsx +3 -2
- package/src/components/chat/index.tsx +1 -0
- package/src/css/messages.css +1 -0
- package/dist/chunk-2JGAK63B.mjs.map +0 -1
- package/dist/chunk-N37JEHLI.mjs.map +0 -1
- package/dist/chunk-P4GBO6MW.mjs +0 -1
- package/dist/chunk-Q3WQ546F.mjs.map +0 -1
- /package/dist/{chunk-EIB4TGCW.mjs.map → chunk-3SXQEFGW.mjs.map} +0 -0
- /package/dist/{chunk-NFMERKCE.mjs.map → chunk-7JYUCW7H.mjs.map} +0 -0
- /package/dist/{chunk-WBXU5YXF.mjs.map → chunk-KE3N45ZY.mjs.map} +0 -0
- /package/dist/{chunk-P4GBO6MW.mjs.map → chunk-UGQQ4WEQ.mjs.map} +0 -0
- /package/dist/{chunk-OAIXDKPE.mjs.map → chunk-YEHO5VMA.mjs.map} +0 -0
- /package/dist/{chunk-EZ3QSEI2.mjs.map → chunk-YTIGBBTC.mjs.map} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @copilotkit/react-ui@0.
|
|
2
|
+
> @copilotkit/react-ui@0.21.0-mme-fix-esm-error.1 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-ui
|
|
3
3
|
> tsup --clean
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx, src/components/index.ts, src/context/index.ts, src/hooks/index.ts, src/hooks/use-copy-to-clipboard.tsx, src/lib/utils.test.ts, src/lib/utils.ts, src/types/index.ts, src/types/types.ts, src/components/chat/Button.tsx, src/components/chat/Chat.tsx, src/components/chat/ChatContext.tsx, src/components/chat/CodeBlock.tsx, src/components/chat/Header.tsx, src/components/chat/Icons.tsx, src/components/chat/Input.tsx, src/components/chat/Markdown.tsx, src/components/chat/Messages.tsx, src/components/chat/Popup.tsx, src/components/chat/Response.tsx, src/components/chat/Sidebar.tsx, src/components/chat/Textarea.tsx, src/components/chat/Window.tsx, src/components/chat/index.tsx, src/components/chat/props.ts
|
|
@@ -14,28 +14,28 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
14
14
|
npx update-browserslist-db@latest
|
|
15
15
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
16
16
|
[34mDTS[39m Build start
|
|
17
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
18
|
-
[32mESM[39m [1mdist/components/index.mjs [22m[
|
|
17
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m869.00 B[39m
|
|
18
|
+
[32mESM[39m [1mdist/components/index.mjs [22m[32m781.00 B[39m
|
|
19
19
|
[32mESM[39m [1mdist/context/index.mjs [22m[32m66.00 B[39m
|
|
20
20
|
[32mESM[39m [1mdist/hooks/index.mjs [22m[32m66.00 B[39m
|
|
21
21
|
[32mESM[39m [1mdist/lib/utils.test.mjs [22m[32m168.00 B[39m
|
|
22
22
|
[32mESM[39m [1mdist/types/index.mjs [22m[32m66.00 B[39m
|
|
23
23
|
[32mESM[39m [1mdist/chunk-JD7BAH7U.mjs [22m[32m43.00 B[39m
|
|
24
|
-
[32mESM[39m [1mdist/chunk-
|
|
24
|
+
[32mESM[39m [1mdist/chunk-UGQQ4WEQ.mjs [22m[32m43.00 B[39m
|
|
25
25
|
[32mESM[39m [1mdist/chunk-WB3YULQ4.mjs [22m[32m43.00 B[39m
|
|
26
|
-
[32mESM[39m [1mdist/chunk-
|
|
27
|
-
[32mESM[39m [1mdist/chunk-
|
|
28
|
-
[32mESM[39m [1mdist/chunk-
|
|
29
|
-
[32mESM[39m [1mdist/chunk-
|
|
30
|
-
[32mESM[39m [1mdist/chunk-
|
|
31
|
-
[32mESM[39m [1mdist/chunk-
|
|
26
|
+
[32mESM[39m [1mdist/chunk-OTE2PMAQ.mjs [22m[32m573.00 B[39m
|
|
27
|
+
[32mESM[39m [1mdist/chunk-7UK4MYTF.mjs [22m[32m1.02 KB[39m
|
|
28
|
+
[32mESM[39m [1mdist/chunk-BJ75DW3Z.mjs [22m[32m2.75 KB[39m
|
|
29
|
+
[32mESM[39m [1mdist/chunk-3SXQEFGW.mjs [22m[32m4.94 KB[39m
|
|
30
|
+
[32mESM[39m [1mdist/chunk-PGPR52GM.mjs [22m[32m2.17 KB[39m
|
|
31
|
+
[32mESM[39m [1mdist/chunk-YEHO5VMA.mjs [22m[32m613.00 B[39m
|
|
32
32
|
[32mESM[39m [1mdist/chunk-B7DNOYVQ.mjs [22m[32m3.80 KB[39m
|
|
33
|
-
[32mESM[39m [1mdist/chunk-
|
|
33
|
+
[32mESM[39m [1mdist/chunk-YTIGBBTC.mjs [22m[32m825.00 B[39m
|
|
34
34
|
[32mESM[39m [1mdist/chunk-ZRJSYYXC.mjs [22m[32m3.55 KB[39m
|
|
35
|
-
[32mESM[39m [1mdist/chunk-
|
|
36
|
-
[32mESM[39m [1mdist/chunk-
|
|
35
|
+
[32mESM[39m [1mdist/chunk-7JYUCW7H.mjs [22m[32m566.00 B[39m
|
|
36
|
+
[32mESM[39m [1mdist/chunk-KE3N45ZY.mjs [22m[32m1.79 KB[39m
|
|
37
37
|
[32mESM[39m [1mdist/chunk-WM6BS77F.mjs [22m[32m1.54 KB[39m
|
|
38
|
-
[32mESM[39m [1mdist/chunk-
|
|
38
|
+
[32mESM[39m [1mdist/chunk-7LMXXGJT.mjs [22m[32m1.76 KB[39m
|
|
39
39
|
[32mESM[39m [1mdist/chunk-7YXG7D47.mjs [22m[32m6.52 KB[39m
|
|
40
40
|
[32mESM[39m [1mdist/chunk-IU3WTXLQ.mjs [22m[32m43.00 B[39m
|
|
41
41
|
[32mESM[39m [1mdist/chunk-H4VKQGVU.mjs [22m[32m43.00 B[39m
|
|
@@ -44,7 +44,7 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
44
44
|
[32mESM[39m [1mdist/lib/utils.mjs [22m[32m885.00 B[39m
|
|
45
45
|
[32mESM[39m [1mdist/chunk-MRXNTQOX.mjs [22m[32m1.89 KB[39m
|
|
46
46
|
[32mESM[39m [1mdist/chunk-7NSRDJ5C.mjs [22m[32m43.00 B[39m
|
|
47
|
-
[32mESM[39m [1mdist/index.css [22m[32m19.
|
|
47
|
+
[32mESM[39m [1mdist/index.css [22m[32m19.90 KB[39m
|
|
48
48
|
[32mESM[39m [1mdist/components/chat/props.mjs [22m[32m69.00 B[39m
|
|
49
49
|
[32mESM[39m [1mdist/components/chat/Markdown.mjs [22m[32m255.00 B[39m
|
|
50
50
|
[32mESM[39m [1mdist/components/chat/Messages.mjs [22m[32m325.00 B[39m
|
|
@@ -53,7 +53,7 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
53
53
|
[32mESM[39m [1mdist/components/chat/Sidebar.mjs [22m[32m616.00 B[39m
|
|
54
54
|
[32mESM[39m [1mdist/components/chat/Textarea.mjs [22m[32m177.00 B[39m
|
|
55
55
|
[32mESM[39m [1mdist/components/chat/Window.mjs [22m[32m144.00 B[39m
|
|
56
|
-
[32mESM[39m [1mdist/components/chat/index.mjs [22m[
|
|
56
|
+
[32mESM[39m [1mdist/components/chat/index.mjs [22m[32m803.00 B[39m
|
|
57
57
|
[32mESM[39m [1mdist/types/types.mjs [22m[32m34.00 B[39m
|
|
58
58
|
[32mESM[39m [1mdist/components/chat/Button.mjs [22m[32m214.00 B[39m
|
|
59
59
|
[32mESM[39m [1mdist/components/chat/Chat.mjs [22m[32m572.00 B[39m
|
|
@@ -69,21 +69,21 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
69
69
|
[32mESM[39m [1mdist/lib/utils.test.mjs.map [22m[32m350.00 B[39m
|
|
70
70
|
[32mESM[39m [1mdist/types/index.mjs.map [22m[32m71.00 B[39m
|
|
71
71
|
[32mESM[39m [1mdist/chunk-JD7BAH7U.mjs.map [22m[32m71.00 B[39m
|
|
72
|
-
[32mESM[39m [1mdist/chunk-
|
|
72
|
+
[32mESM[39m [1mdist/chunk-UGQQ4WEQ.mjs.map [22m[32m71.00 B[39m
|
|
73
73
|
[32mESM[39m [1mdist/chunk-WB3YULQ4.mjs.map [22m[32m71.00 B[39m
|
|
74
|
-
[32mESM[39m [1mdist/chunk-
|
|
75
|
-
[32mESM[39m [1mdist/chunk-
|
|
76
|
-
[32mESM[39m [1mdist/chunk-
|
|
77
|
-
[32mESM[39m [1mdist/chunk-
|
|
78
|
-
[32mESM[39m [1mdist/chunk-
|
|
79
|
-
[32mESM[39m [1mdist/chunk-
|
|
74
|
+
[32mESM[39m [1mdist/chunk-OTE2PMAQ.mjs.map [22m[32m687.00 B[39m
|
|
75
|
+
[32mESM[39m [1mdist/chunk-7UK4MYTF.mjs.map [22m[32m1.36 KB[39m
|
|
76
|
+
[32mESM[39m [1mdist/chunk-BJ75DW3Z.mjs.map [22m[32m7.26 KB[39m
|
|
77
|
+
[32mESM[39m [1mdist/chunk-3SXQEFGW.mjs.map [22m[32m8.79 KB[39m
|
|
78
|
+
[32mESM[39m [1mdist/chunk-PGPR52GM.mjs.map [22m[32m3.22 KB[39m
|
|
79
|
+
[32mESM[39m [1mdist/chunk-YEHO5VMA.mjs.map [22m[32m854.00 B[39m
|
|
80
80
|
[32mESM[39m [1mdist/chunk-B7DNOYVQ.mjs.map [22m[32m6.70 KB[39m
|
|
81
|
-
[32mESM[39m [1mdist/chunk-
|
|
81
|
+
[32mESM[39m [1mdist/chunk-YTIGBBTC.mjs.map [22m[32m1.26 KB[39m
|
|
82
82
|
[32mESM[39m [1mdist/chunk-ZRJSYYXC.mjs.map [22m[32m5.65 KB[39m
|
|
83
|
-
[32mESM[39m [1mdist/chunk-
|
|
84
|
-
[32mESM[39m [1mdist/chunk-
|
|
83
|
+
[32mESM[39m [1mdist/chunk-7JYUCW7H.mjs.map [22m[32m773.00 B[39m
|
|
84
|
+
[32mESM[39m [1mdist/chunk-KE3N45ZY.mjs.map [22m[32m2.78 KB[39m
|
|
85
85
|
[32mESM[39m [1mdist/chunk-WM6BS77F.mjs.map [22m[32m2.80 KB[39m
|
|
86
|
-
[32mESM[39m [1mdist/chunk-
|
|
86
|
+
[32mESM[39m [1mdist/chunk-7LMXXGJT.mjs.map [22m[32m5.02 KB[39m
|
|
87
87
|
[32mESM[39m [1mdist/chunk-7YXG7D47.mjs.map [22m[32m8.44 KB[39m
|
|
88
88
|
[32mESM[39m [1mdist/chunk-IU3WTXLQ.mjs.map [22m[32m71.00 B[39m
|
|
89
89
|
[32mESM[39m [1mdist/chunk-H4VKQGVU.mjs.map [22m[32m71.00 B[39m
|
|
@@ -92,7 +92,7 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
92
92
|
[32mESM[39m [1mdist/lib/utils.mjs.map [22m[32m1.49 KB[39m
|
|
93
93
|
[32mESM[39m [1mdist/chunk-MRXNTQOX.mjs.map [22m[32m71.00 B[39m
|
|
94
94
|
[32mESM[39m [1mdist/chunk-7NSRDJ5C.mjs.map [22m[32m71.00 B[39m
|
|
95
|
-
[32mESM[39m [1mdist/index.css.map [22m[
|
|
95
|
+
[32mESM[39m [1mdist/index.css.map [22m[32m31.02 KB[39m
|
|
96
96
|
[32mESM[39m [1mdist/components/chat/props.mjs.map [22m[32m71.00 B[39m
|
|
97
97
|
[32mESM[39m [1mdist/components/chat/Markdown.mjs.map [22m[32m71.00 B[39m
|
|
98
98
|
[32mESM[39m [1mdist/components/chat/Messages.mjs.map [22m[32m71.00 B[39m
|
|
@@ -110,10 +110,10 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
110
110
|
[32mESM[39m [1mdist/components/chat/Header.mjs.map [22m[32m71.00 B[39m
|
|
111
111
|
[32mESM[39m [1mdist/components/chat/Icons.mjs.map [22m[32m71.00 B[39m
|
|
112
112
|
[32mESM[39m [1mdist/components/chat/Input.mjs.map [22m[32m71.00 B[39m
|
|
113
|
-
[32mESM[39m ⚡️ Build success in
|
|
114
|
-
[32mCJS[39m [1mdist/index.js [22m[32m36.
|
|
115
|
-
[32mCJS[39m [1mdist/index.css [22m[32m19.
|
|
116
|
-
[32mCJS[39m [1mdist/components/index.js [22m[32m36.
|
|
113
|
+
[32mESM[39m ⚡️ Build success in 1546ms
|
|
114
|
+
[32mCJS[39m [1mdist/index.js [22m[32m36.74 KB[39m
|
|
115
|
+
[32mCJS[39m [1mdist/index.css [22m[32m19.90 KB[39m
|
|
116
|
+
[32mCJS[39m [1mdist/components/index.js [22m[32m36.76 KB[39m
|
|
117
117
|
[32mCJS[39m [1mdist/context/index.js [22m[32m803.00 B[39m
|
|
118
118
|
[32mCJS[39m [1mdist/hooks/index.js [22m[32m797.00 B[39m
|
|
119
119
|
[32mCJS[39m [1mdist/hooks/use-copy-to-clipboard.js [22m[32m2.30 KB[39m
|
|
@@ -122,24 +122,24 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
122
122
|
[32mCJS[39m [1mdist/types/index.js [22m[32m797.00 B[39m
|
|
123
123
|
[32mCJS[39m [1mdist/types/types.js [22m[32m797.00 B[39m
|
|
124
124
|
[32mCJS[39m [1mdist/components/chat/Button.js [22m[32m2.91 KB[39m
|
|
125
|
-
[32mCJS[39m [1mdist/components/chat/Chat.js [22m[
|
|
126
|
-
[32mCJS[39m [1mdist/components/chat/ChatContext.js [22m[
|
|
125
|
+
[32mCJS[39m [1mdist/components/chat/Chat.js [22m[32m35.28 KB[39m
|
|
126
|
+
[32mCJS[39m [1mdist/components/chat/ChatContext.js [22m[32m9.04 KB[39m
|
|
127
127
|
[32mCJS[39m [1mdist/components/chat/CodeBlock.js [22m[32m9.19 KB[39m
|
|
128
128
|
[32mCJS[39m [1mdist/components/chat/Header.js [22m[32m2.63 KB[39m
|
|
129
129
|
[32mCJS[39m [1mdist/components/chat/Icons.js [22m[32m9.51 KB[39m
|
|
130
130
|
[32mCJS[39m [1mdist/components/chat/Input.js [22m[32m5.44 KB[39m
|
|
131
|
-
[32mCJS[39m [1mdist/components/chat/Markdown.js [22m[32m11.
|
|
132
|
-
[32mCJS[39m [1mdist/components/chat/Messages.js [22m[
|
|
133
|
-
[32mCJS[39m [1mdist/components/chat/Popup.js [22m[32m35.
|
|
131
|
+
[32mCJS[39m [1mdist/components/chat/Markdown.js [22m[32m11.36 KB[39m
|
|
132
|
+
[32mCJS[39m [1mdist/components/chat/Messages.js [22m[32m17.10 KB[39m
|
|
133
|
+
[32mCJS[39m [1mdist/components/chat/Popup.js [22m[32m35.72 KB[39m
|
|
134
134
|
[32mCJS[39m [1mdist/components/chat/Response.js [22m[32m2.67 KB[39m
|
|
135
|
-
[32mCJS[39m [1mdist/components/chat/Sidebar.js [22m[
|
|
135
|
+
[32mCJS[39m [1mdist/components/chat/Sidebar.js [22m[32m36.25 KB[39m
|
|
136
136
|
[32mCJS[39m [1mdist/components/chat/Textarea.js [22m[32m2.51 KB[39m
|
|
137
137
|
[32mCJS[39m [1mdist/components/chat/Window.js [22m[32m5.46 KB[39m
|
|
138
|
-
[32mCJS[39m [1mdist/components/chat/index.js [22m[32m36.
|
|
138
|
+
[32mCJS[39m [1mdist/components/chat/index.js [22m[32m36.75 KB[39m
|
|
139
139
|
[32mCJS[39m [1mdist/components/chat/props.js [22m[32m807.00 B[39m
|
|
140
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
141
|
-
[32mCJS[39m [1mdist/index.css.map [22m[
|
|
142
|
-
[32mCJS[39m [1mdist/components/index.js.map [22m[
|
|
140
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m56.59 KB[39m
|
|
141
|
+
[32mCJS[39m [1mdist/index.css.map [22m[32m31.02 KB[39m
|
|
142
|
+
[32mCJS[39m [1mdist/components/index.js.map [22m[32m56.51 KB[39m
|
|
143
143
|
[32mCJS[39m [1mdist/context/index.js.map [22m[32m139.00 B[39m
|
|
144
144
|
[32mCJS[39m [1mdist/hooks/index.js.map [22m[32m137.00 B[39m
|
|
145
145
|
[32mCJS[39m [1mdist/hooks/use-copy-to-clipboard.js.map [22m[32m1.21 KB[39m
|
|
@@ -147,31 +147,31 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
147
147
|
[32mCJS[39m [1mdist/lib/utils.js.map [22m[32m1.55 KB[39m
|
|
148
148
|
[32mCJS[39m [1mdist/types/index.js.map [22m[32m137.00 B[39m
|
|
149
149
|
[32mCJS[39m [1mdist/types/types.js.map [22m[32m478.00 B[39m
|
|
150
|
-
[32mCJS[39m [1mdist/components/chat/Button.js.map [22m[32m5.
|
|
151
|
-
[32mCJS[39m [1mdist/components/chat/Chat.js.map [22m[
|
|
152
|
-
[32mCJS[39m [1mdist/components/chat/ChatContext.js.map [22m[32m12.
|
|
150
|
+
[32mCJS[39m [1mdist/components/chat/Button.js.map [22m[32m5.71 KB[39m
|
|
151
|
+
[32mCJS[39m [1mdist/components/chat/Chat.js.map [22m[32m54.51 KB[39m
|
|
152
|
+
[32mCJS[39m [1mdist/components/chat/ChatContext.js.map [22m[32m12.73 KB[39m
|
|
153
153
|
[32mCJS[39m [1mdist/components/chat/CodeBlock.js.map [22m[32m13.31 KB[39m
|
|
154
|
-
[32mCJS[39m [1mdist/components/chat/Header.js.map [22m[32m5.
|
|
154
|
+
[32mCJS[39m [1mdist/components/chat/Header.js.map [22m[32m5.20 KB[39m
|
|
155
155
|
[32mCJS[39m [1mdist/components/chat/Icons.js.map [22m[32m8.55 KB[39m
|
|
156
|
-
[32mCJS[39m [1mdist/components/chat/Input.js.map [22m[
|
|
157
|
-
[32mCJS[39m [1mdist/components/chat/Markdown.js.map [22m[32m16.
|
|
158
|
-
[32mCJS[39m [1mdist/components/chat/Messages.js.map [22m[32m29.
|
|
159
|
-
[32mCJS[39m [1mdist/components/chat/Popup.js.map [22m[
|
|
160
|
-
[32mCJS[39m [1mdist/components/chat/Response.js.map [22m[32m5.
|
|
161
|
-
[32mCJS[39m [1mdist/components/chat/Sidebar.js.map [22m[
|
|
156
|
+
[32mCJS[39m [1mdist/components/chat/Input.js.map [22m[32m10.01 KB[39m
|
|
157
|
+
[32mCJS[39m [1mdist/components/chat/Markdown.js.map [22m[32m16.55 KB[39m
|
|
158
|
+
[32mCJS[39m [1mdist/components/chat/Messages.js.map [22m[32m29.75 KB[39m
|
|
159
|
+
[32mCJS[39m [1mdist/components/chat/Popup.js.map [22m[32m55.15 KB[39m
|
|
160
|
+
[32mCJS[39m [1mdist/components/chat/Response.js.map [22m[32m5.28 KB[39m
|
|
161
|
+
[32mCJS[39m [1mdist/components/chat/Sidebar.js.map [22m[32m55.85 KB[39m
|
|
162
162
|
[32mCJS[39m [1mdist/components/chat/Textarea.js.map [22m[32m2.83 KB[39m
|
|
163
163
|
[32mCJS[39m [1mdist/components/chat/Window.js.map [22m[32m6.76 KB[39m
|
|
164
|
-
[32mCJS[39m [1mdist/components/chat/index.js.map [22m[
|
|
164
|
+
[32mCJS[39m [1mdist/components/chat/index.js.map [22m[32m56.71 KB[39m
|
|
165
165
|
[32mCJS[39m [1mdist/components/chat/props.js.map [22m[32m908.00 B[39m
|
|
166
|
-
[32mCJS[39m ⚡️ Build success in
|
|
167
|
-
[32mDTS[39m ⚡️ Build success in
|
|
168
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
166
|
+
[32mCJS[39m ⚡️ Build success in 1613ms
|
|
167
|
+
[32mDTS[39m ⚡️ Build success in 5721ms
|
|
168
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m435.00 B[39m
|
|
169
169
|
[32mDTS[39m [1mdist/components/chat/props.d.ts [22m[32m819.00 B[39m
|
|
170
170
|
[32mDTS[39m [1mdist/components/chat/Popup.d.ts [22m[32m269.00 B[39m
|
|
171
171
|
[32mDTS[39m [1mdist/components/chat/Sidebar.d.ts [22m[32m378.00 B[39m
|
|
172
|
-
[32mDTS[39m [1mdist/components/chat/
|
|
173
|
-
[32mDTS[39m [1mdist/components/chat/
|
|
174
|
-
[32mDTS[39m [1mdist/components/index.d.ts [22m[
|
|
172
|
+
[32mDTS[39m [1mdist/components/chat/ChatContext.d.ts [22m[32m2.73 KB[39m
|
|
173
|
+
[32mDTS[39m [1mdist/components/chat/Chat.d.ts [22m[32m3.74 KB[39m
|
|
174
|
+
[32mDTS[39m [1mdist/components/index.d.ts [22m[32m380.00 B[39m
|
|
175
175
|
[32mDTS[39m [1mdist/context/index.d.ts [22m[32m12.00 B[39m
|
|
176
176
|
[32mDTS[39m [1mdist/hooks/index.d.ts [22m[32m12.00 B[39m
|
|
177
177
|
[32mDTS[39m [1mdist/hooks/use-copy-to-clipboard.d.ts [22m[32m266.00 B[39m
|
|
@@ -189,4 +189,4 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
189
189
|
[32mDTS[39m [1mdist/components/chat/Response.d.ts [22m[32m201.00 B[39m
|
|
190
190
|
[32mDTS[39m [1mdist/components/chat/Textarea.d.ts [22m[32m490.00 B[39m
|
|
191
191
|
[32mDTS[39m [1mdist/components/chat/Window.d.ts [22m[32m223.00 B[39m
|
|
192
|
-
[32mDTS[39m [1mdist/components/chat/index.d.ts [22m[
|
|
192
|
+
[32mDTS[39m [1mdist/components/chat/index.d.ts [22m[32m355.00 B[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
+
## 0.21.0-mme-fix-esm-error.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ESM by default
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @copilotkit/react-core@0.24.0-mme-fix-esm-error.1
|
|
13
|
+
- @copilotkit/shared@0.8.0-mme-fix-esm-error.1
|
|
14
|
+
|
|
15
|
+
## 0.21.0-mme-fix-esm-error.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Use esm by default
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @copilotkit/react-core@0.24.0-mme-fix-esm-error.0
|
|
25
|
+
- @copilotkit/shared@0.8.0-mme-fix-esm-error.0
|
|
26
|
+
|
|
27
|
+
## 0.21.0-mme-fix-esm-error.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- Add distinct exports for cjs and esm
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Updated dependencies
|
|
36
|
+
- @copilotkit/react-core@0.24.0-mme-fix-esm-error.0
|
|
37
|
+
- @copilotkit/shared@0.8.0-mme-fix-esm-error.0
|
|
38
|
+
|
|
3
39
|
## 0.20.0
|
|
4
40
|
|
|
5
41
|
### Minor Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Markdown
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PGPR52GM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useChatContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7LMXXGJT.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/chat/Messages.tsx
|
|
9
9
|
import React, { useEffect, useMemo } from "react";
|
|
@@ -119,4 +119,4 @@ function makeInitialMessages(initial) {
|
|
|
119
119
|
export {
|
|
120
120
|
Messages
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=chunk-
|
|
122
|
+
//# sourceMappingURL=chunk-3SXQEFGW.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useChatContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7LMXXGJT.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/chat/Header.tsx
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -15,4 +15,4 @@ var Header = ({ setOpen }) => {
|
|
|
15
15
|
export {
|
|
16
16
|
Header
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-7JYUCW7H.mjs.map
|
|
@@ -32,7 +32,9 @@ var ChatContextProvider = ({
|
|
|
32
32
|
// maxFeedback,
|
|
33
33
|
labels,
|
|
34
34
|
icons,
|
|
35
|
-
children
|
|
35
|
+
children,
|
|
36
|
+
open,
|
|
37
|
+
setOpen
|
|
36
38
|
}) => {
|
|
37
39
|
const context = useMemo(
|
|
38
40
|
() => ({
|
|
@@ -56,9 +58,11 @@ var ChatContextProvider = ({
|
|
|
56
58
|
regenerateIcon: RegenerateIcon
|
|
57
59
|
}), {
|
|
58
60
|
icons
|
|
59
|
-
})
|
|
61
|
+
}),
|
|
62
|
+
open,
|
|
63
|
+
setOpen
|
|
60
64
|
}),
|
|
61
|
-
[labels, icons]
|
|
65
|
+
[labels, icons, open, setOpen]
|
|
62
66
|
);
|
|
63
67
|
return /* @__PURE__ */ jsx(ChatContext.Provider, { value: context, children });
|
|
64
68
|
};
|
|
@@ -68,4 +72,4 @@ export {
|
|
|
68
72
|
useChatContext,
|
|
69
73
|
ChatContextProvider
|
|
70
74
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
75
|
+
//# sourceMappingURL=chunk-7LMXXGJT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/chat/ChatContext.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport * as DefaultIcons from \"./Icons\";\n\n/**\n * Icons for CopilotChat component.\n */\nexport interface CopilotChatIcons {\n /**\n * The icon to use for the open chat button.\n * @default <OpenIcon />\n */\n openIcon?: React.ReactNode;\n\n /**\n * The icon to use for the close chat button.\n * @default <CloseIcon />\n */\n closeIcon?: React.ReactNode;\n\n /**\n * The icon to use for the close chat button in the header.\n * @default <HeaderCloseIcon />\n */\n headerCloseIcon?: React.ReactNode;\n\n /**\n * The icon to use for the send button.\n * @default <SendIcon />\n */\n sendIcon?: React.ReactNode;\n\n /**\n * The icon to use for the activity indicator.\n * @default <ActivityIcon />\n */\n activityIcon?: React.ReactNode;\n\n /**\n * The icon to use for the spinner.\n * @default <SpinnerIcon />\n */\n spinnerIcon?: React.ReactNode;\n\n /**\n * The icon to use for the stop button.\n * @default <StopIcon />\n */\n stopIcon?: React.ReactNode;\n\n /**\n * The icon to use for the regenerate button.\n * @default <RegenerateIcon />\n */\n regenerateIcon?: React.ReactNode;\n}\n\n/**\n * Labels for CopilotChat component.\n */\nexport interface CopilotChatLabels {\n /**\n * The initial message(s) to display in the chat window.\n */\n initial?: string | string[];\n\n /**\n * The title to display in the header.\n * @default \"CopilotKit\"\n */\n title?: string;\n\n /**\n * The placeholder to display in the input.\n * @default \"Type a message...\"\n */\n placeholder?: string;\n\n /**\n * The message to display while the chat GPT is \"thinking\".\n * @default \"Thinking...\"\n */\n thinking?: string;\n\n /**\n * The message to display when an error occurs.\n * @default \"❌ An error occurred. Please try again.\"\n */\n error?: string;\n\n /**\n * The label to display on the stop button.\n * @default \"Stop generating\"\n */\n stopGenerating?: string;\n\n /**\n * The label to display on the regenerate button.\n * @default \"Regenerate response\"\n */\n regenerateResponse?: string;\n}\n\ninterface ChatContext {\n labels: Required<CopilotChatLabels>;\n icons: Required<CopilotChatIcons>;\n open: boolean;\n setOpen: (open: boolean) => void;\n}\n\nexport const ChatContext = React.createContext<ChatContext | undefined>(undefined);\n\nexport function useChatContext(): ChatContext {\n const context = React.useContext(ChatContext);\n if (context === undefined) {\n throw new Error(\n \"Context not found. Did you forget to wrap your app in a <ChatContextProvider> component?\",\n );\n }\n return context;\n}\n\ninterface ChatContextProps {\n // temperature?: number;\n // instructions?: string;\n // maxFeedback?: number;\n labels?: CopilotChatLabels;\n icons?: CopilotChatIcons;\n children?: React.ReactNode;\n open: boolean;\n setOpen: (open: boolean) => void;\n}\n\nexport const ChatContextProvider = ({\n // temperature,\n // instructions,\n // maxFeedback,\n labels,\n icons,\n children,\n open,\n setOpen,\n}: ChatContextProps) => {\n const context = useMemo(\n () => ({\n labels: {\n ...{\n initial: \"\",\n title: \"CopilotKit\",\n placeholder: \"Type a message...\",\n thinking: \"Thinking...\",\n error: \"❌ An error occurred. Please try again.\",\n stopGenerating: \"Stop generating\",\n regenerateResponse: \"Regenerate response\",\n },\n ...labels,\n },\n\n icons: {\n ...{\n openIcon: DefaultIcons.OpenIcon,\n closeIcon: DefaultIcons.CloseIcon,\n headerCloseIcon: DefaultIcons.HeaderCloseIcon,\n sendIcon: DefaultIcons.SendIcon,\n activityIcon: DefaultIcons.ActivityIcon,\n spinnerIcon: DefaultIcons.SpinnerIcon,\n stopIcon: DefaultIcons.StopIcon,\n regenerateIcon: DefaultIcons.RegenerateIcon,\n },\n icons,\n },\n open,\n setOpen,\n }),\n [labels, icons, open, setOpen],\n );\n return <ChatContext.Provider value={context}>{children}</ChatContext.Provider>;\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO,SAAS,eAAe;AA+KtB;AAlEF,IAAM,cAAc,MAAM,cAAuC,MAAS;AAE1E,SAAS,iBAA8B;AAC5C,QAAM,UAAU,MAAM,WAAW,WAAW;AAC5C,MAAI,YAAY,QAAW;AACzB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;AAaO,IAAM,sBAAsB,CAAC;AAAA;AAAA;AAAA;AAAA,EAIlC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAwB;AACtB,QAAM,UAAU;AAAA,IACd,OAAO;AAAA,MACL,QAAQ,kCACH;AAAA,QACD,SAAS;AAAA,QACT,OAAO;AAAA,QACP,aAAa;AAAA,QACb,UAAU;AAAA,QACV,OAAO;AAAA,QACP,gBAAgB;AAAA,QAChB,oBAAoB;AAAA,MACtB,IACG;AAAA,MAGL,OAAO,iCACF;AAAA,QACD,UAAuB;AAAA,QACvB,WAAwB;AAAA,QACxB,iBAA8B;AAAA,QAC9B,UAAuB;AAAA,QACvB,cAA2B;AAAA,QAC3B,aAA0B;AAAA,QAC1B,UAAuB;AAAA,QACvB,gBAA6B;AAAA,MAC/B,IAVK;AAAA,QAWL;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,QAAQ,OAAO,MAAM,OAAO;AAAA,EAC/B;AACA,SAAO,oBAAC,YAAY,UAAZ,EAAqB,OAAO,SAAU,UAAS;AACzD;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotChat
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BJ75DW3Z.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__spreadProps,
|
|
6
6
|
__spreadValues
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
|
|
9
9
|
// src/components/chat/Sidebar.tsx
|
|
10
10
|
import { useState } from "react";
|
|
11
|
-
import { jsx
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
12
|
var CopilotSidebar = (props) => {
|
|
13
13
|
props = __spreadProps(__spreadValues({}, props), {
|
|
14
14
|
className: props.className ? props.className + " copilotKitSidebar" : "copilotKitSidebar"
|
|
@@ -21,13 +21,10 @@ var CopilotSidebar = (props) => {
|
|
|
21
21
|
(_a = props.onSetOpen) == null ? void 0 : _a.call(props, open);
|
|
22
22
|
setExpandedClassName(open ? "sidebarExpanded" : "");
|
|
23
23
|
};
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
props.children,
|
|
26
|
-
/* @__PURE__ */ jsx(CopilotChat, __spreadValues(__spreadValues({}, props), { onSetOpen }))
|
|
27
|
-
] });
|
|
24
|
+
return /* @__PURE__ */ jsx("div", { className: `copilotKitSidebarContentWrapper ${expandedClassName}`, children: /* @__PURE__ */ jsx(CopilotChat, __spreadProps(__spreadValues(__spreadValues({}, props), { onSetOpen }), { children: props.children })) });
|
|
28
25
|
};
|
|
29
26
|
|
|
30
27
|
export {
|
|
31
28
|
CopilotSidebar
|
|
32
29
|
};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-7UK4MYTF.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/chat/Sidebar.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport { CopilotChat, CopilotChatProps } from \"./Chat\";\n\ninterface CopilotSidebarProps extends CopilotChatProps {\n children?: React.ReactNode;\n}\n\nexport const CopilotSidebar = (props: CopilotSidebarProps) => {\n props = {\n ...props,\n className: props.className ? props.className + \" copilotKitSidebar\" : \"copilotKitSidebar\",\n };\n const [expandedClassName, setExpandedClassName] = useState(\n props.defaultOpen ? \"sidebarExpanded\" : \"\",\n );\n\n const onSetOpen = (open: boolean) => {\n props.onSetOpen?.(open);\n setExpandedClassName(open ? \"sidebarExpanded\" : \"\");\n };\n\n return (\n <div className={`copilotKitSidebarContentWrapper ${expandedClassName}`}>\n
|
|
1
|
+
{"version":3,"sources":["../src/components/chat/Sidebar.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport { CopilotChat, CopilotChatProps } from \"./Chat\";\n\ninterface CopilotSidebarProps extends CopilotChatProps {\n children?: React.ReactNode;\n}\n\nexport const CopilotSidebar = (props: CopilotSidebarProps) => {\n props = {\n ...props,\n className: props.className ? props.className + \" copilotKitSidebar\" : \"copilotKitSidebar\",\n };\n const [expandedClassName, setExpandedClassName] = useState(\n props.defaultOpen ? \"sidebarExpanded\" : \"\",\n );\n\n const onSetOpen = (open: boolean) => {\n props.onSetOpen?.(open);\n setExpandedClassName(open ? \"sidebarExpanded\" : \"\");\n };\n\n return (\n <div className={`copilotKitSidebarContentWrapper ${expandedClassName}`}>\n <CopilotChat {...props} {...{ onSetOpen }}>\n {props.children}\n </CopilotChat>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;AAAA,SAAgB,gBAAgB;AAuB1B;AAhBC,IAAM,iBAAiB,CAAC,UAA+B;AAC5D,UAAQ,iCACH,QADG;AAAA,IAEN,WAAW,MAAM,YAAY,MAAM,YAAY,uBAAuB;AAAA,EACxE;AACA,QAAM,CAAC,mBAAmB,oBAAoB,IAAI;AAAA,IAChD,MAAM,cAAc,oBAAoB;AAAA,EAC1C;AAEA,QAAM,YAAY,CAAC,SAAkB;AAhBvC;AAiBI,gBAAM,cAAN,+BAAkB;AAClB,yBAAqB,OAAO,oBAAoB,EAAE;AAAA,EACpD;AAEA,SACE,oBAAC,SAAI,WAAW,mCAAmC,qBACjD,8BAAC,6DAAgB,QAAW,EAAE,UAAU,IAAvC,EACE,gBAAM,WACT,GACF;AAEJ;","names":[]}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Messages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3SXQEFGW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ResponseButton
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YEHO5VMA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Window
|
|
9
9
|
} from "./chunk-B7DNOYVQ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Button
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YTIGBBTC.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Header
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7JYUCW7H.mjs";
|
|
16
16
|
import {
|
|
17
17
|
Input
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KE3N45ZY.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ChatContextProvider
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7LMXXGJT.mjs";
|
|
22
22
|
import {
|
|
23
23
|
__async
|
|
24
24
|
} from "./chunk-MRXNTQOX.mjs";
|
|
@@ -47,7 +47,8 @@ var CopilotChat = ({
|
|
|
47
47
|
Messages: Messages2 = Messages,
|
|
48
48
|
Input: Input2 = Input,
|
|
49
49
|
ResponseButton: ResponseButton2 = ResponseButton,
|
|
50
|
-
className
|
|
50
|
+
className,
|
|
51
|
+
children
|
|
51
52
|
}) => {
|
|
52
53
|
const { visibleMessages, append, reload, stop, isLoading, input, setInput } = useCopilotChat({
|
|
53
54
|
id: nanoid(),
|
|
@@ -70,27 +71,30 @@ var CopilotChat = ({
|
|
|
70
71
|
role: "user"
|
|
71
72
|
});
|
|
72
73
|
});
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
-
|
|
75
|
-
/* @__PURE__ */ jsxs(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
74
|
+
return /* @__PURE__ */ jsxs(ChatContextProvider, { icons, labels, open: openState, setOpen: setOpenState, children: [
|
|
75
|
+
children,
|
|
76
|
+
/* @__PURE__ */ jsxs("div", { className, children: [
|
|
77
|
+
/* @__PURE__ */ jsx(Button2, { open: openState, setOpen }),
|
|
78
|
+
/* @__PURE__ */ jsxs(
|
|
79
|
+
Window2,
|
|
80
|
+
{
|
|
81
|
+
open: openState,
|
|
82
|
+
setOpen,
|
|
83
|
+
clickOutsideToClose,
|
|
84
|
+
shortcut,
|
|
85
|
+
hitEscapeToClose,
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ jsx(Header2, { open: openState, setOpen }),
|
|
88
|
+
/* @__PURE__ */ jsx(Messages2, { messages: visibleMessages, inProgress: isLoading }),
|
|
89
|
+
/* @__PURE__ */ jsx(Input2, { inProgress: isLoading, onSend: sendMessage, isVisible: openState, children: showResponseButton && visibleMessages.length > 0 && /* @__PURE__ */ jsx(ResponseButton2, { onClick: isLoading ? stop : reload, inProgress: isLoading }) })
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] })
|
|
94
|
+
] });
|
|
91
95
|
};
|
|
92
96
|
|
|
93
97
|
export {
|
|
94
98
|
CopilotChat
|
|
95
99
|
};
|
|
96
|
-
//# sourceMappingURL=chunk-
|
|
100
|
+
//# sourceMappingURL=chunk-BJ75DW3Z.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/chat/Chat.tsx"],"sourcesContent":["import React, { useEffect } from \"react\";\nimport { CopilotChatIcons, ChatContextProvider, CopilotChatLabels } from \"./ChatContext\";\nimport { SystemMessageFunction, useCopilotChat } from \"@copilotkit/react-core\";\nimport {\n ButtonProps,\n HeaderProps,\n WindowProps,\n MessagesProps,\n InputProps,\n ResponseButtonProps,\n} from \"./props\";\nimport { Window as DefaultWindow } from \"./Window\";\nimport { Button as DefaultButton } from \"./Button\";\nimport { Header as DefaultHeader } from \"./Header\";\nimport { Messages as DefaultMessages } from \"./Messages\";\nimport { Input as DefaultInput } from \"./Input\";\nimport { nanoid } from \"nanoid\";\nimport { ResponseButton as DefaultResponseButton } from \"./Response\";\n\n/**\n * Props for CopilotChat component.\n */\nexport interface CopilotChatProps {\n /**\n * Custom instructions to be added to the system message. Use this property to\n * provide additional context or guidance to the language model, influencing\n * its responses. These instructions can include specific directions,\n * preferences, or criteria that the model should consider when generating\n * its output, thereby tailoring the conversation more precisely to the\n * user's needs or the application's requirements.\n */\n instructions?: string;\n\n /**\n * Whether the chat window should be open by default.\n * @default false\n */\n defaultOpen?: boolean;\n\n /**\n * If the chat window should close when the user clicks outside of it.\n * @default true\n */\n clickOutsideToClose?: boolean;\n\n /**\n * If the chat window should close when the user hits the Escape key.\n * @default true\n */\n hitEscapeToClose?: boolean;\n\n /**\n * A callback that gets called when the chat window opens or closes.\n */\n onSetOpen?: (open: boolean) => void;\n\n /**\n * A callback that gets called when the in progress state changes.\n */\n onInProgress?: (inProgress: boolean) => void;\n\n /**\n * A callback that gets called when a new message it submitted.\n */\n onSubmitMessage?: (message: string) => void;\n\n /**\n * The shortcut key to open the chat window.\n * Uses Command-<shortcut> on a Mac and Ctrl-<shortcut> on Windows.\n * @default \"e\"\n */\n shortcut?: string;\n\n /**\n * Icons can be used to set custom icons for the chat window.\n */\n icons?: CopilotChatIcons;\n\n /**\n * Labels can be used to set custom labels for the chat window.\n */\n labels?: CopilotChatLabels;\n\n /**\n * A function that takes in context string and instructions and returns\n * the system message to include in the chat request.\n * Use this to completely override the system message, when providing\n * instructions is not enough.\n */\n makeSystemMessage?: SystemMessageFunction;\n\n /**\n * Whether to show the response button.\n * @default true\n */\n showResponseButton?: boolean;\n\n /**\n * A custom Window component to use instead of the default.\n */\n Window?: React.ComponentType<WindowProps>;\n\n /**\n * A custom Button component to use instead of the default.\n */\n Button?: React.ComponentType<ButtonProps>;\n\n /**\n * A custom Header component to use instead of the default.\n */\n Header?: React.ComponentType<HeaderProps>;\n\n /**\n * A custom Messages component to use instead of the default.\n */\n Messages?: React.ComponentType<MessagesProps>;\n\n /**\n * A custom Input component to use instead of the default.\n */\n Input?: React.ComponentType<InputProps>;\n\n /**\n * A custom ResponseButton component to use instead of the default.\n */\n ResponseButton?: React.ComponentType<ResponseButtonProps>;\n\n /**\n * A class name to apply to the root element.\n */\n className?: string;\n}\n\nexport const CopilotChat = ({\n instructions,\n defaultOpen = false,\n clickOutsideToClose = true,\n hitEscapeToClose = true,\n onSetOpen,\n onSubmitMessage,\n shortcut = \"/\",\n icons,\n labels,\n makeSystemMessage,\n showResponseButton = true,\n onInProgress,\n Window = DefaultWindow,\n Button = DefaultButton,\n Header = DefaultHeader,\n Messages = DefaultMessages,\n Input = DefaultInput,\n ResponseButton = DefaultResponseButton,\n className,\n}: CopilotChatProps) => {\n const { visibleMessages, append, reload, stop, isLoading, input, setInput } = useCopilotChat({\n id: nanoid(),\n makeSystemMessage,\n additionalInstructions: instructions,\n });\n\n useEffect(() => {\n onInProgress?.(isLoading);\n }, [isLoading]);\n\n const [openState, setOpenState] = React.useState(defaultOpen);\n\n const setOpen = (open: boolean) => {\n onSetOpen?.(open);\n setOpenState(open);\n };\n\n const sendMessage = async (message: string) => {\n onSubmitMessage?.(message);\n append({\n id: nanoid(),\n content: message,\n role: \"user\",\n });\n };\n\n return (\n <ChatContextProvider icons={icons} labels={labels}>\n <div className={className}>\n <Button open={openState} setOpen={setOpen}></Button>\n <Window\n open={openState}\n setOpen={setOpen}\n clickOutsideToClose={clickOutsideToClose}\n shortcut={shortcut}\n hitEscapeToClose={hitEscapeToClose}\n >\n <Header open={openState} setOpen={setOpen} />\n <Messages messages={visibleMessages} inProgress={isLoading} />\n <Input inProgress={isLoading} onSend={sendMessage} isVisible={openState}>\n {showResponseButton && visibleMessages.length > 0 && (\n <ResponseButton onClick={isLoading ? stop : reload} inProgress={isLoading} />\n )}\n </Input>\n </Window>\n </div>\n </ChatContextProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,SAAS,iBAAiB;AAEjC,SAAgC,sBAAsB;AActD,SAAS,cAAc;
|
|
1
|
+
{"version":3,"sources":["../src/components/chat/Chat.tsx"],"sourcesContent":["import React, { useEffect } from \"react\";\nimport { CopilotChatIcons, ChatContextProvider, CopilotChatLabels } from \"./ChatContext\";\nimport { SystemMessageFunction, useCopilotChat } from \"@copilotkit/react-core\";\nimport {\n ButtonProps,\n HeaderProps,\n WindowProps,\n MessagesProps,\n InputProps,\n ResponseButtonProps,\n} from \"./props\";\nimport { Window as DefaultWindow } from \"./Window\";\nimport { Button as DefaultButton } from \"./Button\";\nimport { Header as DefaultHeader } from \"./Header\";\nimport { Messages as DefaultMessages } from \"./Messages\";\nimport { Input as DefaultInput } from \"./Input\";\nimport { nanoid } from \"nanoid\";\nimport { ResponseButton as DefaultResponseButton } from \"./Response\";\n\n/**\n * Props for CopilotChat component.\n */\nexport interface CopilotChatProps {\n /**\n * Custom instructions to be added to the system message. Use this property to\n * provide additional context or guidance to the language model, influencing\n * its responses. These instructions can include specific directions,\n * preferences, or criteria that the model should consider when generating\n * its output, thereby tailoring the conversation more precisely to the\n * user's needs or the application's requirements.\n */\n instructions?: string;\n\n /**\n * Whether the chat window should be open by default.\n * @default false\n */\n defaultOpen?: boolean;\n\n /**\n * If the chat window should close when the user clicks outside of it.\n * @default true\n */\n clickOutsideToClose?: boolean;\n\n /**\n * If the chat window should close when the user hits the Escape key.\n * @default true\n */\n hitEscapeToClose?: boolean;\n\n /**\n * A callback that gets called when the chat window opens or closes.\n */\n onSetOpen?: (open: boolean) => void;\n\n /**\n * A callback that gets called when the in progress state changes.\n */\n onInProgress?: (inProgress: boolean) => void;\n\n /**\n * A callback that gets called when a new message it submitted.\n */\n onSubmitMessage?: (message: string) => void;\n\n /**\n * The shortcut key to open the chat window.\n * Uses Command-<shortcut> on a Mac and Ctrl-<shortcut> on Windows.\n * @default \"e\"\n */\n shortcut?: string;\n\n /**\n * Icons can be used to set custom icons for the chat window.\n */\n icons?: CopilotChatIcons;\n\n /**\n * Labels can be used to set custom labels for the chat window.\n */\n labels?: CopilotChatLabels;\n\n /**\n * A function that takes in context string and instructions and returns\n * the system message to include in the chat request.\n * Use this to completely override the system message, when providing\n * instructions is not enough.\n */\n makeSystemMessage?: SystemMessageFunction;\n\n /**\n * Whether to show the response button.\n * @default true\n */\n showResponseButton?: boolean;\n\n /**\n * A custom Window component to use instead of the default.\n */\n Window?: React.ComponentType<WindowProps>;\n\n /**\n * A custom Button component to use instead of the default.\n */\n Button?: React.ComponentType<ButtonProps>;\n\n /**\n * A custom Header component to use instead of the default.\n */\n Header?: React.ComponentType<HeaderProps>;\n\n /**\n * A custom Messages component to use instead of the default.\n */\n Messages?: React.ComponentType<MessagesProps>;\n\n /**\n * A custom Input component to use instead of the default.\n */\n Input?: React.ComponentType<InputProps>;\n\n /**\n * A custom ResponseButton component to use instead of the default.\n */\n ResponseButton?: React.ComponentType<ResponseButtonProps>;\n\n /**\n * A class name to apply to the root element.\n */\n className?: string;\n\n /**\n * Children to render.\n */\n children?: React.ReactNode;\n}\n\nexport const CopilotChat = ({\n instructions,\n defaultOpen = false,\n clickOutsideToClose = true,\n hitEscapeToClose = true,\n onSetOpen,\n onSubmitMessage,\n shortcut = \"/\",\n icons,\n labels,\n makeSystemMessage,\n showResponseButton = true,\n onInProgress,\n Window = DefaultWindow,\n Button = DefaultButton,\n Header = DefaultHeader,\n Messages = DefaultMessages,\n Input = DefaultInput,\n ResponseButton = DefaultResponseButton,\n className,\n children,\n}: CopilotChatProps) => {\n const { visibleMessages, append, reload, stop, isLoading, input, setInput } = useCopilotChat({\n id: nanoid(),\n makeSystemMessage,\n additionalInstructions: instructions,\n });\n\n useEffect(() => {\n onInProgress?.(isLoading);\n }, [isLoading]);\n\n const [openState, setOpenState] = React.useState(defaultOpen);\n\n const setOpen = (open: boolean) => {\n onSetOpen?.(open);\n setOpenState(open);\n };\n\n const sendMessage = async (message: string) => {\n onSubmitMessage?.(message);\n append({\n id: nanoid(),\n content: message,\n role: \"user\",\n });\n };\n\n return (\n <ChatContextProvider icons={icons} labels={labels} open={openState} setOpen={setOpenState}>\n {children}\n <div className={className}>\n <Button open={openState} setOpen={setOpen}></Button>\n <Window\n open={openState}\n setOpen={setOpen}\n clickOutsideToClose={clickOutsideToClose}\n shortcut={shortcut}\n hitEscapeToClose={hitEscapeToClose}\n >\n <Header open={openState} setOpen={setOpen} />\n <Messages messages={visibleMessages} inProgress={isLoading} />\n <Input inProgress={isLoading} onSend={sendMessage} isVisible={openState}>\n {showResponseButton && visibleMessages.length > 0 && (\n <ResponseButton onClick={isLoading ? stop : reload} inProgress={isLoading} />\n )}\n </Input>\n </Window>\n </div>\n </ChatContextProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,SAAS,iBAAiB;AAEjC,SAAgC,sBAAsB;AActD,SAAS,cAAc;AA8Kf,cACA,YADA;AApDD,IAAM,cAAc,CAAC;AAAA,EAC1B;AAAA,EACA,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,mBAAmB;AAAA,EACnB;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA,qBAAqB;AAAA,EACrB;AAAA,EACA,QAAAA,UAAS;AAAA,EACT,QAAAC,UAAS;AAAA,EACT,QAAAC,UAAS;AAAA,EACT,UAAAC,YAAW;AAAA,EACX,OAAAC,SAAQ;AAAA,EACR,gBAAAC,kBAAiB;AAAA,EACjB;AAAA,EACA;AACF,MAAwB;AACtB,QAAM,EAAE,iBAAiB,QAAQ,QAAQ,MAAM,WAAW,OAAO,SAAS,IAAI,eAAe;AAAA,IAC3F,IAAI,OAAO;AAAA,IACX;AAAA,IACA,wBAAwB;AAAA,EAC1B,CAAC;AAED,YAAU,MAAM;AACd,iDAAe;AAAA,EACjB,GAAG,CAAC,SAAS,CAAC;AAEd,QAAM,CAAC,WAAW,YAAY,IAAI,MAAM,SAAS,WAAW;AAE5D,QAAM,UAAU,CAAC,SAAkB;AACjC,2CAAY;AACZ,iBAAa,IAAI;AAAA,EACnB;AAEA,QAAM,cAAc,CAAO,YAAoB;AAC7C,uDAAkB;AAClB,WAAO;AAAA,MACL,IAAI,OAAO;AAAA,MACX,SAAS;AAAA,MACT,MAAM;AAAA,IACR,CAAC;AAAA,EACH;AAEA,SACE,qBAAC,uBAAoB,OAAc,QAAgB,MAAM,WAAW,SAAS,cAC1E;AAAA;AAAA,IACD,qBAAC,SAAI,WACH;AAAA,0BAACJ,SAAA,EAAO,MAAM,WAAW,SAAkB;AAAA,MAC3C;AAAA,QAACD;AAAA,QAAA;AAAA,UACC,MAAM;AAAA,UACN;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UAEA;AAAA,gCAACE,SAAA,EAAO,MAAM,WAAW,SAAkB;AAAA,YAC3C,oBAACC,WAAA,EAAS,UAAU,iBAAiB,YAAY,WAAW;AAAA,YAC5D,oBAACC,QAAA,EAAM,YAAY,WAAW,QAAQ,aAAa,WAAW,WAC3D,gCAAsB,gBAAgB,SAAS,KAC9C,oBAACC,iBAAA,EAAe,SAAS,YAAY,OAAO,QAAQ,YAAY,WAAW,GAE/E;AAAA;AAAA;AAAA,MACF;AAAA,OACF;AAAA,KACF;AAEJ;","names":["Window","Button","Header","Messages","Input","ResponseButton"]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-WM6BS77F.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useChatContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7LMXXGJT.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/chat/Input.tsx
|
|
9
9
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -60,4 +60,4 @@ var Input = ({ inProgress, onSend, children, isVisible = false }) => {
|
|
|
60
60
|
export {
|
|
61
61
|
Input
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-KE3N45ZY.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotChat
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BJ75DW3Z.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__spreadProps,
|
|
6
6
|
__spreadValues
|
|
@@ -12,10 +12,10 @@ var CopilotPopup = (props) => {
|
|
|
12
12
|
props = __spreadProps(__spreadValues({}, props), {
|
|
13
13
|
className: props.className ? props.className + " copilotKitPopup" : "copilotKitPopup"
|
|
14
14
|
});
|
|
15
|
-
return /* @__PURE__ */ jsx(CopilotChat, __spreadValues({}, props));
|
|
15
|
+
return /* @__PURE__ */ jsx(CopilotChat, __spreadProps(__spreadValues({}, props), { children: props.children }));
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export {
|
|
19
19
|
CopilotPopup
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-OTE2PMAQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/chat/Popup.tsx"],"sourcesContent":["import { CopilotChat, CopilotChatProps } from \"./Chat\";\n\ninterface CopilotPopupProps extends CopilotChatProps {\n children?: React.ReactNode;\n}\n\nexport const CopilotPopup = (props: CopilotChatProps) => {\n props = {\n ...props,\n className: props.className ? props.className + \" copilotKitPopup\" : \"copilotKitPopup\",\n };\n return <CopilotChat {...props}>{props.children}</CopilotChat>;\n};\n"],"mappings":";;;;;;;;;AAWS;AALF,IAAM,eAAe,CAAC,UAA4B;AACvD,UAAQ,iCACH,QADG;AAAA,IAEN,WAAW,MAAM,YAAY,MAAM,YAAY,qBAAqB;AAAA,EACtE;AACA,SAAO,oBAAC,8CAAgB,QAAhB,EAAwB,gBAAM,WAAS;AACjD;","names":[]}
|
|
@@ -24,8 +24,21 @@ var components = {
|
|
|
24
24
|
p({ children }) {
|
|
25
25
|
return /* @__PURE__ */ jsx("p", { children });
|
|
26
26
|
},
|
|
27
|
-
|
|
28
|
-
var _b = _a, { children
|
|
27
|
+
a(_a) {
|
|
28
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
30
|
+
"a",
|
|
31
|
+
__spreadProps(__spreadValues({
|
|
32
|
+
style: { color: "blue", textDecoration: "underline" }
|
|
33
|
+
}, props), {
|
|
34
|
+
target: "_blank",
|
|
35
|
+
rel: "noopener noreferrer",
|
|
36
|
+
children
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
},
|
|
40
|
+
code(_c) {
|
|
41
|
+
var _d = _c, { children, className, inline } = _d, props = __objRest(_d, ["children", "className", "inline"]);
|
|
29
42
|
if (children.length) {
|
|
30
43
|
if (children[0] == "\u258D") {
|
|
31
44
|
return /* @__PURE__ */ jsx(
|
|
@@ -59,4 +72,4 @@ var components = {
|
|
|
59
72
|
export {
|
|
60
73
|
Markdown
|
|
61
74
|
};
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
75
|
+
//# sourceMappingURL=chunk-PGPR52GM.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/chat/Markdown.tsx"],"sourcesContent":["import { FC, memo } from \"react\";\nimport ReactMarkdown, { Options, Components } from \"react-markdown\";\nimport { CodeBlock } from \"./CodeBlock\";\nimport remarkGfm from \"remark-gfm\";\nimport remarkMath from \"remark-math\";\n\nconst MemoizedReactMarkdown: FC<Options> = memo(\n ReactMarkdown,\n (prevProps, nextProps) =>\n prevProps.children === nextProps.children && prevProps.className === nextProps.className,\n);\n\ntype MarkdownProps = {\n content: string;\n};\n\nexport const Markdown = ({ content }: MarkdownProps) => {\n return (\n <div className=\"copilotKitMarkdown\">\n <MemoizedReactMarkdown components={components} remarkPlugins={[remarkGfm, remarkMath]}>\n {content}\n </MemoizedReactMarkdown>\n </div>\n );\n};\n\nconst components: Components = {\n p({ children }) {\n return <p>{children}</p>;\n },\n a({ children, ...props }) {\n return (\n <a\n style={{ color: \"blue\", textDecoration: \"underline\" }}\n {...props}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n {children}\n </a>\n );\n },\n code({ children, className, inline, ...props }) {\n if (children.length) {\n if (children[0] == \"▍\") {\n return (\n <span\n style={{\n animation: \"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite\",\n marginTop: \"0.25rem\",\n }}\n >\n ▍\n </span>\n );\n }\n\n children[0] = (children[0] as string).replace(\"`▍`\", \"▍\");\n }\n\n const match = /language-(\\w+)/.exec(className || \"\");\n\n if (inline) {\n return (\n <code className={className} {...props}>\n {children}\n </code>\n );\n }\n\n return (\n <CodeBlock\n key={Math.random()}\n language={(match && match[1]) || \"\"}\n value={String(children).replace(/\\n$/, \"\")}\n {...props}\n />\n );\n },\n};\n"],"mappings":";;;;;;;;;;AAAA,SAAa,YAAY;AACzB,OAAO,mBAA4C;AAEnD,OAAO,eAAe;AACtB,OAAO,gBAAgB;AAejB;AAbN,IAAM,wBAAqC;AAAA,EACzC;AAAA,EACA,CAAC,WAAW,cACV,UAAU,aAAa,UAAU,YAAY,UAAU,cAAc,UAAU;AACnF;AAMO,IAAM,WAAW,CAAC,EAAE,QAAQ,MAAqB;AACtD,SACE,oBAAC,SAAI,WAAU,sBACb,8BAAC,yBAAsB,YAAwB,eAAe,CAAC,WAAW,UAAU,GACjF,mBACH,GACF;AAEJ;AAEA,IAAM,aAAyB;AAAA,EAC7B,EAAE,EAAE,SAAS,GAAG;AACd,WAAO,oBAAC,OAAG,UAAS;AAAA,EACtB;AAAA,EACA,EAAE,IAAwB;AAAxB,iBAAE,WA9BN,IA8BI,IAAe,kBAAf,IAAe,CAAb;AACF,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAO,EAAE,OAAO,QAAQ,gBAAgB,YAAY;AAAA,SAChD,QAFL;AAAA,QAGC,QAAO;AAAA,QACP,KAAI;AAAA,QAEH;AAAA;AAAA,IACH;AAAA,EAEJ;AAAA,EACA,KAAK,IAA2C;AAA3C,iBAAE,YAAU,WAAW,OA1C9B,IA0CO,IAAkC,kBAAlC,IAAkC,CAAhC,YAAU,aAAW;AAC1B,QAAI,SAAS,QAAQ;AACnB,UAAI,SAAS,CAAC,KAAK,UAAK;AACtB,eACE;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,cACL,WAAW;AAAA,cACX,WAAW;AAAA,YACb;AAAA,YACD;AAAA;AAAA,QAED;AAAA,MAEJ;AAEA,eAAS,CAAC,IAAK,SAAS,CAAC,EAAa,QAAQ,YAAO,QAAG;AAAA,IAC1D;AAEA,UAAM,QAAQ,iBAAiB,KAAK,aAAa,EAAE;AAEnD,QAAI,QAAQ;AACV,aACE,oBAAC,uCAAK,aAA0B,QAA/B,EACE,WACH;AAAA,IAEJ;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QAEC,UAAW,SAAS,MAAM,CAAC,KAAM;AAAA,QACjC,OAAO,OAAO,QAAQ,EAAE,QAAQ,OAAO,EAAE;AAAA,SACrC;AAAA,MAHC,KAAK,OAAO;AAAA,IAInB;AAAA,EAEJ;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-UGQQ4WEQ.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useChatContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7LMXXGJT.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/chat/Response.tsx
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -15,4 +15,4 @@ var ResponseButton = ({ onClick, inProgress }) => {
|
|
|
15
15
|
export {
|
|
16
16
|
ResponseButton
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-YEHO5VMA.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useChatContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7LMXXGJT.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/chat/Button.tsx
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -22,4 +22,4 @@ var Button = ({ open, setOpen }) => {
|
|
|
22
22
|
export {
|
|
23
23
|
Button
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-YTIGBBTC.mjs.map
|