@copilotkit/react-ui 0.22.0-mme-cloud.0 → 0.22.0-multi-release-alpha.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.
- package/.turbo/turbo-build.log +190 -186
- package/CHANGELOG.md +4 -4
- package/dist/components/chat/Button.mjs +30 -6
- package/dist/components/chat/Button.mjs.map +1 -1
- package/dist/components/chat/Chat.mjs +1198 -16
- package/dist/components/chat/Chat.mjs.map +1 -1
- package/dist/components/chat/ChatContext.mjs +217 -7
- package/dist/components/chat/ChatContext.mjs.map +1 -1
- package/dist/components/chat/CodeBlock.mjs +483 -8
- package/dist/components/chat/CodeBlock.mjs.map +1 -1
- package/dist/components/chat/Header.mjs +23 -6
- package/dist/components/chat/Header.mjs.map +1 -1
- package/dist/components/chat/Icons.mjs +218 -14
- package/dist/components/chat/Icons.mjs.map +1 -1
- package/dist/components/chat/Input.mjs +116 -7
- package/dist/components/chat/Input.mjs.map +1 -1
- package/dist/components/chat/Markdown.mjs +547 -7
- package/dist/components/chat/Markdown.mjs.map +1 -1
- package/dist/components/chat/Messages.mjs +678 -9
- package/dist/components/chat/Messages.mjs.map +1 -1
- package/dist/components/chat/Popup.mjs +1207 -17
- package/dist/components/chat/Popup.mjs.map +1 -1
- package/dist/components/chat/Response.mjs +23 -6
- package/dist/components/chat/Response.mjs.map +1 -1
- package/dist/components/chat/Sidebar.mjs +1218 -17
- package/dist/components/chat/Sidebar.mjs.map +1 -1
- package/dist/components/chat/Textarea.mjs +48 -4
- package/dist/components/chat/Textarea.mjs.map +1 -1
- package/dist/components/chat/Window.mjs +105 -4
- package/dist/components/chat/Window.mjs.map +1 -1
- package/dist/components/chat/index.mjs +1225 -24
- package/dist/components/chat/index.mjs.map +1 -1
- package/dist/components/chat/props.mjs +0 -1
- package/dist/components/index.mjs +1225 -25
- package/dist/components/index.mjs.map +1 -1
- package/dist/context/index.mjs +0 -1
- package/dist/hooks/index.mjs +0 -1
- package/dist/hooks/use-copy-to-clipboard.mjs +21 -4
- package/dist/hooks/use-copy-to-clipboard.mjs.map +1 -1
- package/dist/index.mjs +1225 -28
- package/dist/index.mjs.map +1 -1
- package/dist/lib/utils.mjs +20 -3
- package/dist/lib/utils.mjs.map +1 -1
- package/dist/types/index.mjs +0 -1
- package/package.json +6 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,192 +1,196 @@
|
|
|
1
|
+
Debugger attached.
|
|
1
2
|
|
|
2
|
-
> @copilotkit/react-ui@0.22.0-
|
|
3
|
+
> @copilotkit/react-ui@0.22.0-function-calling-fixes.1 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-ui
|
|
3
4
|
> tsup --clean
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
Debugger attached.
|
|
7
|
+
CLI 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
|
|
8
|
+
CLI Using tsconfig: tsconfig.json
|
|
9
|
+
CLI tsup v6.7.0
|
|
10
|
+
CLI Using tsup config: /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-ui/tsup.config.ts
|
|
11
|
+
CLI Target: es6
|
|
12
|
+
CLI Cleaning output folder
|
|
13
|
+
ESM Build start
|
|
14
|
+
CJS Build start
|
|
13
15
|
Browserslist: caniuse-lite is outdated. Please run:
|
|
14
16
|
npx update-browserslist-db@latest
|
|
15
17
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
18
|
+
ESM dist/components/chat/Sidebar.mjs 616.00 B
|
|
19
|
+
ESM dist/components/chat/Markdown.mjs 255.00 B
|
|
20
|
+
ESM dist/components/chat/props.mjs 69.00 B
|
|
21
|
+
ESM dist/components/chat/Response.mjs 232.00 B
|
|
22
|
+
ESM dist/components/chat/Textarea.mjs 177.00 B
|
|
23
|
+
ESM dist/components/chat/Button.mjs 214.00 B
|
|
24
|
+
ESM dist/components/chat/index.mjs 803.00 B
|
|
25
|
+
ESM dist/types/types.mjs 34.00 B
|
|
26
|
+
ESM dist/components/chat/Popup.mjs 610.00 B
|
|
27
|
+
ESM dist/components/chat/Chat.mjs 572.00 B
|
|
28
|
+
ESM dist/components/chat/ChatContext.mjs 276.00 B
|
|
29
|
+
ESM dist/components/chat/Messages.mjs 325.00 B
|
|
30
|
+
ESM dist/components/chat/Header.mjs 214.00 B
|
|
31
|
+
ESM dist/index.mjs 869.00 B
|
|
32
|
+
ESM dist/components/chat/Input.mjs 246.00 B
|
|
33
|
+
ESM dist/components/index.mjs 781.00 B
|
|
34
|
+
ESM dist/components/chat/Icons.mjs 439.00 B
|
|
35
|
+
ESM dist/chunk-YAORLSQ3.mjs 573.00 B
|
|
36
|
+
ESM dist/chunk-WB3YULQ4.mjs 43.00 B
|
|
37
|
+
ESM dist/components/chat/CodeBlock.mjs 319.00 B
|
|
38
|
+
ESM dist/chunk-WDHLWSSU.mjs 2.17 KB
|
|
39
|
+
ESM dist/chunk-73EBDGYK.mjs 4.94 KB
|
|
40
|
+
ESM dist/chunk-T3WYKWNC.mjs 1.02 KB
|
|
41
|
+
ESM dist/chunk-UGQQ4WEQ.mjs 43.00 B
|
|
42
|
+
ESM dist/chunk-6U3O2JZP.mjs 2.75 KB
|
|
43
|
+
ESM dist/components/chat/Window.mjs 144.00 B
|
|
44
|
+
ESM dist/chunk-YEHO5VMA.mjs 613.00 B
|
|
45
|
+
ESM dist/chunk-MBYUBR3F.mjs 8.65 KB
|
|
46
|
+
ESM dist/chunk-YTIGBBTC.mjs 825.00 B
|
|
47
|
+
ESM dist/chunk-B7DNOYVQ.mjs 3.80 KB
|
|
48
|
+
ESM dist/chunk-WM6BS77F.mjs 1.54 KB
|
|
49
|
+
ESM dist/chunk-7YXG7D47.mjs 6.52 KB
|
|
50
|
+
ESM dist/context/index.mjs 66.00 B
|
|
51
|
+
ESM dist/chunk-JD7BAH7U.mjs 43.00 B
|
|
52
|
+
ESM dist/hooks/index.mjs 66.00 B
|
|
53
|
+
ESM dist/chunk-IU3WTXLQ.mjs 43.00 B
|
|
54
|
+
ESM dist/chunk-7JYUCW7H.mjs 566.00 B
|
|
55
|
+
ESM dist/hooks/use-copy-to-clipboard.mjs 177.00 B
|
|
56
|
+
ESM dist/chunk-7LMXXGJT.mjs 1.76 KB
|
|
57
|
+
ESM dist/lib/utils.test.mjs 168.00 B
|
|
58
|
+
ESM dist/chunk-54JAUBUJ.mjs 675.00 B
|
|
59
|
+
ESM dist/chunk-KE3N45ZY.mjs 1.79 KB
|
|
60
|
+
ESM dist/types/index.mjs 66.00 B
|
|
61
|
+
ESM dist/chunk-MRXNTQOX.mjs 1.89 KB
|
|
62
|
+
ESM dist/chunk-7NSRDJ5C.mjs 43.00 B
|
|
63
|
+
ESM dist/index.css 19.96 KB
|
|
64
|
+
ESM dist/chunk-H4VKQGVU.mjs 43.00 B
|
|
65
|
+
ESM dist/lib/utils.mjs 885.00 B
|
|
66
|
+
ESM dist/components/chat/Markdown.mjs.map 71.00 B
|
|
67
|
+
ESM dist/components/chat/Response.mjs.map 71.00 B
|
|
68
|
+
ESM dist/components/chat/props.mjs.map 71.00 B
|
|
69
|
+
ESM dist/components/chat/Textarea.mjs.map 71.00 B
|
|
70
|
+
ESM dist/components/chat/Button.mjs.map 71.00 B
|
|
71
|
+
ESM dist/components/chat/index.mjs.map 71.00 B
|
|
72
|
+
ESM dist/components/chat/Sidebar.mjs.map 71.00 B
|
|
73
|
+
ESM dist/types/types.mjs.map 71.00 B
|
|
74
|
+
ESM dist/components/chat/Popup.mjs.map 71.00 B
|
|
75
|
+
ESM dist/components/chat/Messages.mjs.map 71.00 B
|
|
76
|
+
ESM dist/components/chat/Chat.mjs.map 71.00 B
|
|
77
|
+
ESM dist/index.mjs.map 71.00 B
|
|
78
|
+
ESM dist/components/chat/Header.mjs.map 71.00 B
|
|
79
|
+
ESM dist/components/index.mjs.map 71.00 B
|
|
80
|
+
ESM dist/components/chat/Input.mjs.map 71.00 B
|
|
81
|
+
ESM dist/components/chat/Icons.mjs.map 71.00 B
|
|
82
|
+
ESM dist/chunk-YAORLSQ3.mjs.map 687.00 B
|
|
83
|
+
ESM dist/components/chat/CodeBlock.mjs.map 71.00 B
|
|
84
|
+
ESM dist/chunk-WDHLWSSU.mjs.map 3.22 KB
|
|
85
|
+
ESM dist/chunk-73EBDGYK.mjs.map 8.79 KB
|
|
86
|
+
ESM dist/chunk-T3WYKWNC.mjs.map 1.36 KB
|
|
87
|
+
ESM dist/chunk-UGQQ4WEQ.mjs.map 71.00 B
|
|
88
|
+
ESM dist/components/chat/ChatContext.mjs.map 71.00 B
|
|
89
|
+
ESM dist/chunk-WB3YULQ4.mjs.map 71.00 B
|
|
90
|
+
ESM dist/chunk-6U3O2JZP.mjs.map 7.26 KB
|
|
91
|
+
ESM dist/components/chat/Window.mjs.map 71.00 B
|
|
92
|
+
ESM dist/chunk-YEHO5VMA.mjs.map 854.00 B
|
|
93
|
+
ESM dist/chunk-B7DNOYVQ.mjs.map 6.70 KB
|
|
94
|
+
ESM dist/chunk-MBYUBR3F.mjs.map 15.59 KB
|
|
95
|
+
ESM dist/chunk-YTIGBBTC.mjs.map 1.26 KB
|
|
96
|
+
ESM dist/chunk-WM6BS77F.mjs.map 2.80 KB
|
|
97
|
+
ESM dist/chunk-7YXG7D47.mjs.map 8.44 KB
|
|
98
|
+
ESM dist/context/index.mjs.map 71.00 B
|
|
99
|
+
ESM dist/chunk-JD7BAH7U.mjs.map 71.00 B
|
|
100
|
+
ESM dist/hooks/index.mjs.map 71.00 B
|
|
101
|
+
ESM dist/chunk-IU3WTXLQ.mjs.map 71.00 B
|
|
102
|
+
ESM dist/chunk-7JYUCW7H.mjs.map 773.00 B
|
|
103
|
+
ESM dist/hooks/use-copy-to-clipboard.mjs.map 71.00 B
|
|
104
|
+
ESM dist/chunk-7LMXXGJT.mjs.map 5.02 KB
|
|
105
|
+
ESM dist/chunk-54JAUBUJ.mjs.map 1.16 KB
|
|
106
|
+
ESM dist/lib/utils.test.mjs.map 350.00 B
|
|
107
|
+
ESM dist/chunk-KE3N45ZY.mjs.map 2.78 KB
|
|
108
|
+
ESM dist/chunk-MRXNTQOX.mjs.map 71.00 B
|
|
109
|
+
ESM dist/types/index.mjs.map 71.00 B
|
|
110
|
+
ESM dist/index.css.map 31.12 KB
|
|
111
|
+
ESM dist/chunk-7NSRDJ5C.mjs.map 71.00 B
|
|
112
|
+
ESM dist/chunk-H4VKQGVU.mjs.map 71.00 B
|
|
113
|
+
ESM dist/lib/utils.mjs.map 1.49 KB
|
|
114
|
+
ESM ⚡️ Build success in 935ms
|
|
115
|
+
CJS dist/index.css 19.96 KB
|
|
116
|
+
CJS dist/index.js 41.85 KB
|
|
117
|
+
CJS dist/components/index.js 41.87 KB
|
|
118
|
+
CJS dist/context/index.js 803.00 B
|
|
119
|
+
CJS dist/lib/utils.test.js 182.00 B
|
|
120
|
+
CJS dist/hooks/index.js 797.00 B
|
|
121
|
+
CJS dist/hooks/use-copy-to-clipboard.js 2.30 KB
|
|
122
|
+
CJS dist/types/index.js 797.00 B
|
|
123
|
+
CJS dist/types/types.js 797.00 B
|
|
124
|
+
CJS dist/components/chat/Button.js 2.91 KB
|
|
125
|
+
CJS dist/components/chat/Chat.js 40.38 KB
|
|
126
|
+
CJS dist/components/chat/ChatContext.js 9.04 KB
|
|
127
|
+
CJS dist/components/chat/CodeBlock.js 14.30 KB
|
|
128
|
+
CJS dist/components/chat/Messages.js 22.21 KB
|
|
129
|
+
CJS dist/components/chat/Icons.js 9.51 KB
|
|
130
|
+
CJS dist/components/chat/Input.js 5.44 KB
|
|
131
|
+
CJS dist/lib/utils.js 2.40 KB
|
|
132
|
+
CJS dist/components/chat/Response.js 2.67 KB
|
|
133
|
+
CJS dist/components/chat/Header.js 2.63 KB
|
|
134
|
+
CJS dist/components/chat/Markdown.js 16.47 KB
|
|
135
|
+
CJS dist/components/chat/Sidebar.js 41.35 KB
|
|
136
|
+
CJS dist/components/chat/Popup.js 40.83 KB
|
|
137
|
+
CJS dist/components/chat/Window.js 5.46 KB
|
|
138
|
+
CJS dist/components/chat/index.js 41.85 KB
|
|
139
|
+
CJS dist/components/chat/props.js 807.00 B
|
|
140
|
+
CJS dist/components/chat/Textarea.js 2.51 KB
|
|
141
|
+
CJS dist/index.js.map 66.52 KB
|
|
142
|
+
CJS dist/index.css.map 31.12 KB
|
|
143
|
+
CJS dist/components/index.js.map 66.44 KB
|
|
144
|
+
CJS dist/context/index.js.map 139.00 B
|
|
145
|
+
CJS dist/hooks/index.js.map 137.00 B
|
|
146
|
+
CJS dist/hooks/use-copy-to-clipboard.js.map 1.21 KB
|
|
147
|
+
CJS dist/types/index.js.map 137.00 B
|
|
148
|
+
CJS dist/types/types.js.map 478.00 B
|
|
149
|
+
CJS dist/lib/utils.test.js.map 352.00 B
|
|
150
|
+
CJS dist/components/chat/Button.js.map 5.71 KB
|
|
151
|
+
CJS dist/components/chat/Chat.js.map 64.44 KB
|
|
152
|
+
CJS dist/components/chat/ChatContext.js.map 12.73 KB
|
|
153
|
+
CJS dist/components/chat/Messages.js.map 39.68 KB
|
|
154
|
+
CJS dist/components/chat/Input.js.map 10.01 KB
|
|
155
|
+
CJS dist/components/chat/Icons.js.map 8.55 KB
|
|
156
|
+
CJS dist/components/chat/CodeBlock.js.map 23.24 KB
|
|
157
|
+
CJS dist/lib/utils.js.map 1.55 KB
|
|
158
|
+
CJS dist/components/chat/Sidebar.js.map 65.78 KB
|
|
159
|
+
CJS dist/components/chat/Response.js.map 5.28 KB
|
|
160
|
+
CJS dist/components/chat/Markdown.js.map 26.48 KB
|
|
161
|
+
CJS dist/components/chat/Window.js.map 6.76 KB
|
|
162
|
+
CJS dist/components/chat/props.js.map 908.00 B
|
|
163
|
+
CJS dist/components/chat/Textarea.js.map 2.83 KB
|
|
164
|
+
CJS dist/components/chat/Header.js.map 5.20 KB
|
|
165
|
+
CJS dist/components/chat/Popup.js.map 65.08 KB
|
|
166
|
+
CJS dist/components/chat/index.js.map 66.63 KB
|
|
167
|
+
CJS ⚡️ Build success in 938ms
|
|
168
|
+
DTS Build start
|
|
169
|
+
DTS ⚡️ Build success in 3293ms
|
|
170
|
+
DTS dist/index.d.ts 435.00 B
|
|
171
|
+
DTS dist/components/chat/props.d.ts 819.00 B
|
|
172
|
+
DTS dist/components/chat/Popup.d.ts 269.00 B
|
|
173
|
+
DTS dist/components/chat/Sidebar.d.ts 378.00 B
|
|
174
|
+
DTS dist/components/chat/ChatContext.d.ts 2.73 KB
|
|
175
|
+
DTS dist/components/chat/Chat.d.ts 3.74 KB
|
|
176
|
+
DTS dist/components/index.d.ts 380.00 B
|
|
177
|
+
DTS dist/context/index.d.ts 12.00 B
|
|
178
|
+
DTS dist/hooks/index.d.ts 12.00 B
|
|
179
|
+
DTS dist/hooks/use-copy-to-clipboard.d.ts 266.00 B
|
|
180
|
+
DTS dist/lib/utils.test.d.ts 12.00 B
|
|
181
|
+
DTS dist/lib/utils.d.ts 263.00 B
|
|
182
|
+
DTS dist/types/index.d.ts 12.00 B
|
|
183
|
+
DTS dist/types/types.d.ts 351.00 B
|
|
184
|
+
DTS dist/components/chat/Button.d.ts 163.00 B
|
|
185
|
+
DTS dist/components/chat/CodeBlock.d.ts 392.00 B
|
|
186
|
+
DTS dist/components/chat/Header.d.ts 157.00 B
|
|
187
|
+
DTS dist/components/chat/Icons.d.ts 780.00 B
|
|
188
|
+
DTS dist/components/chat/Input.d.ts 185.00 B
|
|
189
|
+
DTS dist/components/chat/Markdown.d.ts 138.00 B
|
|
190
|
+
DTS dist/components/chat/Messages.d.ts 178.00 B
|
|
191
|
+
DTS dist/components/chat/Response.d.ts 201.00 B
|
|
192
|
+
DTS dist/components/chat/Textarea.d.ts 490.00 B
|
|
193
|
+
DTS dist/components/chat/Window.d.ts 223.00 B
|
|
194
|
+
DTS dist/components/chat/index.d.ts 355.00 B
|
|
195
|
+
Waiting for the debugger to disconnect...
|
|
196
|
+
Waiting for the debugger to disconnect...
|
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
-
## 0.22.0-
|
|
3
|
+
## 0.22.0-multi-release-alpha.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- types refactor
|
|
8
8
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
11
|
- Updated dependencies
|
|
12
|
-
- @copilotkit/react-core@0.25.0-
|
|
13
|
-
- @copilotkit/shared@0.9.0-
|
|
12
|
+
- @copilotkit/react-core@0.25.0-multi-release-alpha.0
|
|
13
|
+
- @copilotkit/shared@0.9.0-multi-release-alpha.0
|
|
14
14
|
|
|
15
15
|
## 0.21.0
|
|
16
16
|
|
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
} from "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
// src/components/chat/ChatContext.tsx
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var ChatContext = React.createContext(void 0);
|
|
5
|
+
function useChatContext() {
|
|
6
|
+
const context = React.useContext(ChatContext);
|
|
7
|
+
if (context === void 0) {
|
|
8
|
+
throw new Error(
|
|
9
|
+
"Context not found. Did you forget to wrap your app in a <ChatContextProvider> component?"
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
return context;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// src/components/chat/Button.tsx
|
|
16
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
17
|
+
var Button = ({ open, setOpen }) => {
|
|
18
|
+
const context = useChatContext();
|
|
19
|
+
return /* @__PURE__ */ jsx2("div", { onClick: () => setOpen(!open), children: /* @__PURE__ */ jsxs(
|
|
20
|
+
"button",
|
|
21
|
+
{
|
|
22
|
+
className: `copilotKitButton ${open ? "open" : ""}`,
|
|
23
|
+
"aria-label": open ? "Close Chat" : "Open Chat",
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsx2("div", { className: "copilotKitButtonIcon copilotKitButtonIconOpen", children: context.icons.openIcon }),
|
|
26
|
+
/* @__PURE__ */ jsx2("div", { className: "copilotKitButtonIcon copilotKitButtonIconClose", children: context.icons.closeIcon })
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
) });
|
|
30
|
+
};
|
|
7
31
|
export {
|
|
8
32
|
Button
|
|
9
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/chat/ChatContext.tsx","../../../src/components/chat/Button.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","import { ButtonProps } from \"./props\";\nimport { useChatContext } from \"./ChatContext\";\n\nexport const Button = ({ open, setOpen }: ButtonProps) => {\n const context = useChatContext();\n // To ensure that the mouse handler fires even when the button is scaled down\n // we wrap the button in a div and attach the handler to the div\n return (\n <div onClick={() => setOpen(!open)}>\n <button\n className={`copilotKitButton ${open ? \"open\" : \"\"}`}\n aria-label={open ? \"Close Chat\" : \"Open Chat\"}\n >\n <div className=\"copilotKitButtonIcon copilotKitButtonIconOpen\">\n {context.icons.openIcon}\n </div>\n <div className=\"copilotKitButtonIcon copilotKitButtonIconClose\">\n {context.icons.closeIcon}\n </div>\n </button>\n </div>\n );\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;;;AC9GM,SAIE,OAAAA,MAJF;AANC,IAAM,SAAS,CAAC,EAAE,MAAM,QAAQ,MAAmB;AACxD,QAAM,UAAU,eAAe;AAG/B,SACE,gBAAAA,KAAC,SAAI,SAAS,MAAM,QAAQ,CAAC,IAAI,GAC/B;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,oBAAoB,OAAO,SAAS;AAAA,MAC/C,cAAY,OAAO,eAAe;AAAA,MAElC;AAAA,wBAAAA,KAAC,SAAI,WAAU,iDACZ,kBAAQ,MAAM,UACjB;AAAA,QACA,gBAAAA,KAAC,SAAI,WAAU,kDACZ,kBAAQ,MAAM,WACjB;AAAA;AAAA;AAAA,EACF,GACF;AAEJ;","names":["jsx"]}
|