@copilotkit/react-ui 0.14.1 → 0.15.0-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 +195 -195
- package/CHANGELOG.md +11 -0
- package/dist/{chunk-C34L4AWW.mjs → chunk-NMT7XT2R.mjs} +2 -2
- package/dist/chunk-NMT7XT2R.mjs.map +1 -0
- package/dist/{chunk-XGUBRIUV.mjs → chunk-WLTEQ2FW.mjs} +12 -4
- package/dist/chunk-WLTEQ2FW.mjs.map +1 -0
- package/dist/components/index.mjs +2 -2
- package/dist/components/sidebar/copilot-sidebar-ui-provider.d.ts +2 -1
- package/dist/components/sidebar/copilot-sidebar-ui-provider.mjs +2 -2
- package/dist/components/sidebar/copilot-sidebar.d.ts +1 -0
- package/dist/components/sidebar/copilot-sidebar.mjs +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
- package/src/components/sidebar/copilot-sidebar-ui-provider.tsx +6 -2
- package/src/components/sidebar/copilot-sidebar.tsx +2 -1
- package/dist/chunk-C34L4AWW.mjs.map +0 -1
- package/dist/chunk-XGUBRIUV.mjs.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @copilotkit/react-ui@0.14.1 build /
|
|
2
|
+
> @copilotkit/react-ui@0.14.1 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-ui
|
|
3
3
|
> tsup --treeshake
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
CLI Building entry: src/index.tsx, src/components/index.ts, src/context/index.ts, src/hooks/index.ts, src/hooks/use-at-bottom.tsx, src/hooks/use-copy-to-clipboard.tsx, src/hooks/use-enter-submit.tsx, src/lib/utils.test.ts, src/lib/utils.ts, src/types/index.ts, src/types/types.ts, src/components/chat-components/chat-list.tsx, src/components/chat-components/chat-message-actions.tsx, src/components/chat-components/chat-message.tsx, src/components/chat-components/chat-panel.tsx, src/components/chat-components/chat-scroll-anchor.tsx, src/components/chat-components/clear-history.tsx, src/components/chat-components/copilot-chat.tsx, src/components/chat-components/default-empty-screen.tsx, src/components/chat-components/external-link.tsx, src/components/chat-components/markdown.tsx, src/components/chat-components/prompt-form.tsx, src/components/chat-components/theme-toggle.tsx, src/components/chat-components/toaster.tsx, src/components/sidebar/copilot-sidebar-ui-provider.tsx, src/components/sidebar/copilot-sidebar.tsx, src/components/sidebar/sidebar-context.tsx, src/components/chat-components/ui/alert-dialog.tsx, src/components/chat-components/ui/badge.tsx, src/components/chat-components/ui/button.tsx, src/components/chat-components/ui/codeblock.tsx, src/components/chat-components/ui/dialog.tsx, src/components/chat-components/ui/dropdown-menu.tsx, src/components/chat-components/ui/icons.tsx, src/components/chat-components/ui/input.tsx, src/components/chat-components/ui/label.tsx, src/components/chat-components/ui/select.tsx, src/components/chat-components/ui/separator.tsx, src/components/chat-components/ui/sheet.tsx, src/components/chat-components/ui/switch.tsx, src/components/chat-components/ui/textarea.tsx, src/components/chat-components/ui/tooltip.tsx
|
|
6
|
+
CLI Using tsconfig: tsconfig.json
|
|
7
|
+
CLI tsup v6.7.0
|
|
8
|
+
CLI Using tsup config: /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-ui/tsup.config.ts
|
|
9
|
+
CLI Target: es6
|
|
10
|
+
CLI Cleaning output folder
|
|
11
|
+
ESM Build start
|
|
12
12
|
Browserslist: caniuse-lite is outdated. Please run:
|
|
13
13
|
npx update-browserslist-db@latest
|
|
14
14
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
15
|
-
|
|
15
|
+
DTS Build start
|
|
16
16
|
Module level directives cause errors when bundled, "use client" in "dist/components/chat-components/ui/tooltip.mjs" was ignored.
|
|
17
17
|
Module level directives cause errors when bundled, "use client" in "dist/components/chat-components/ui/dropdown-menu.mjs" was ignored.
|
|
18
18
|
Module level directives cause errors when bundled, "use client" in "dist/components/chat-components/ui/icons.mjs" was ignored.
|
|
@@ -37,189 +37,189 @@ Generated an empty chunk: "chunk-7NSRDJ5C".
|
|
|
37
37
|
Generated an empty chunk: "chunk-U6NJWGTV".
|
|
38
38
|
Generated an empty chunk: "chunk-IU3WTXLQ".
|
|
39
39
|
Generated an empty chunk: "chunk-H4VKQGVU".
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
40
|
+
ESM dist/index.css 23.69 KB
|
|
41
|
+
ESM dist/index.css.map 35.28 KB
|
|
42
|
+
ESM dist/lib/utils.test.mjs 200.00 B
|
|
43
|
+
ESM dist/components/index.mjs 978.00 B
|
|
44
|
+
ESM dist/context/index.mjs 98.00 B
|
|
45
|
+
ESM dist/types/types.mjs 67.00 B
|
|
46
|
+
ESM dist/chunk-7NSRDJ5C.mjs 76.00 B
|
|
47
|
+
ESM dist/chunk-H4VKQGVU.mjs 76.00 B
|
|
48
|
+
ESM dist/chunk-MRXNTQOX.mjs 1.92 KB
|
|
49
|
+
ESM dist/chunk-SRBUGQTM.mjs 4.47 KB
|
|
50
|
+
ESM dist/lib/utils.mjs 171.00 B
|
|
51
|
+
ESM dist/chunk-IU3WTXLQ.mjs 76.00 B
|
|
52
|
+
ESM dist/types/index.mjs 98.00 B
|
|
53
|
+
ESM dist/index.mjs 1.02 KB
|
|
54
|
+
ESM dist/chunk-NMT7XT2R.mjs 1.53 KB
|
|
55
|
+
ESM dist/chunk-MC6KTH4X.mjs 297.00 B
|
|
56
|
+
ESM dist/chunk-WLTEQ2FW.mjs 2.56 KB
|
|
57
|
+
ESM dist/chunk-RPTRCFSO.mjs 1.49 KB
|
|
58
|
+
ESM dist/chunk-SEH5PQVW.mjs 2.02 KB
|
|
59
|
+
ESM dist/chunk-5KEDV5VC.mjs 900.00 B
|
|
60
|
+
ESM dist/chunk-SHOTWRKC.mjs 778.00 B
|
|
61
|
+
ESM dist/chunk-GCOPYGHH.mjs 908.00 B
|
|
62
|
+
ESM dist/chunk-CNQX2VY3.mjs 2.80 KB
|
|
63
|
+
ESM dist/chunk-6LAZQHEB.mjs 4.06 KB
|
|
64
|
+
ESM dist/chunk-TEYIQHMK.mjs 403.00 B
|
|
65
|
+
ESM dist/chunk-OOBQC5H6.mjs 1.30 KB
|
|
66
|
+
ESM dist/chunk-CF3BK4OX.mjs 1.93 KB
|
|
67
|
+
ESM dist/chunk-INCNMGJ7.mjs 2.63 KB
|
|
68
|
+
ESM dist/chunk-VGX2W5ZB.mjs 1.20 KB
|
|
69
|
+
ESM dist/chunk-2KAF7NKC.mjs 22.15 KB
|
|
70
|
+
ESM dist/chunk-M3CZWJI3.mjs 1.83 KB
|
|
71
|
+
ESM dist/chunk-Q6YO7LDK.mjs 1.01 KB
|
|
72
|
+
ESM dist/chunk-IJLMKBSZ.mjs 802.00 B
|
|
73
|
+
ESM dist/hooks/use-at-bottom.mjs 159.00 B
|
|
74
|
+
ESM dist/chunk-ZYC5YVDO.mjs 638.00 B
|
|
75
|
+
ESM dist/hooks/use-copy-to-clipboard.mjs 174.00 B
|
|
76
|
+
ESM dist/chunk-POVINPXX.mjs 706.00 B
|
|
77
|
+
ESM dist/hooks/use-enter-submit.mjs 165.00 B
|
|
78
|
+
ESM dist/chunk-OHWEJUCS.mjs 524.00 B
|
|
79
|
+
ESM dist/hooks/index.mjs 98.00 B
|
|
80
|
+
ESM dist/chunk-U6NJWGTV.mjs 76.00 B
|
|
81
|
+
ESM dist/components/chat-components/ui/textarea.mjs 924.00 B
|
|
82
|
+
ESM dist/components/sidebar/copilot-sidebar-ui-provider.mjs 927.00 B
|
|
83
|
+
ESM dist/components/chat-components/ui/tooltip.mjs 248.00 B
|
|
84
|
+
ESM dist/components/chat-components/ui/dropdown-menu.mjs 4.02 KB
|
|
85
|
+
ESM dist/components/chat-components/ui/input.mjs 999.00 B
|
|
86
|
+
ESM dist/components/chat-components/ui/label.mjs 810.00 B
|
|
87
|
+
ESM dist/components/chat-components/ui/select.mjs 4.14 KB
|
|
88
|
+
ESM dist/components/chat-components/ui/sheet.mjs 3.85 KB
|
|
89
|
+
ESM dist/components/chat-components/ui/separator.mjs 203.00 B
|
|
90
|
+
ESM dist/components/chat-components/ui/button.mjs 213.00 B
|
|
91
|
+
ESM dist/components/chat-components/ui/codeblock.mjs 361.00 B
|
|
92
|
+
ESM dist/components/chat-components/ui/dialog.mjs 4.18 KB
|
|
93
|
+
ESM dist/components/chat-components/clear-history.mjs 2.42 KB
|
|
94
|
+
ESM dist/components/chat-components/ui/switch.mjs 1.39 KB
|
|
95
|
+
ESM dist/components/chat-components/default-empty-screen.mjs 319.00 B
|
|
96
|
+
ESM dist/components/chat-components/external-link.mjs 166.00 B
|
|
97
|
+
ESM dist/components/chat-components/markdown.mjs 170.00 B
|
|
98
|
+
ESM dist/components/chat-components/prompt-form.mjs 337.00 B
|
|
99
|
+
ESM dist/components/chat-components/ui/badge.mjs 1.17 KB
|
|
100
|
+
ESM dist/components/chat-components/copilot-chat.mjs 794.00 B
|
|
101
|
+
ESM dist/components/chat-components/ui/alert-dialog.mjs 404.00 B
|
|
102
|
+
ESM dist/components/chat-components/theme-toggle.mjs 1.02 KB
|
|
103
|
+
ESM dist/components/chat-components/chat-scroll-anchor.mjs 210.00 B
|
|
104
|
+
ESM dist/components/chat-components/chat-message.mjs 409.00 B
|
|
105
|
+
ESM dist/components/chat-components/ui/icons.mjs 527.00 B
|
|
106
|
+
ESM dist/components/chat-components/chat-panel.mjs 370.00 B
|
|
107
|
+
ESM dist/components/sidebar/sidebar-context.mjs 177.00 B
|
|
108
|
+
ESM dist/components/chat-components/toaster.mjs 146.00 B
|
|
109
|
+
ESM dist/lib/utils.test.mjs.map 349.00 B
|
|
110
|
+
ESM dist/components/chat-components/chat-message-actions.mjs 319.00 B
|
|
111
|
+
ESM dist/components/sidebar/copilot-sidebar.mjs 835.00 B
|
|
112
|
+
ESM dist/components/chat-components/chat-list.mjs 473.00 B
|
|
113
|
+
ESM dist/components/index.mjs.map 51.00 B
|
|
114
|
+
ESM dist/context/index.mjs.map 51.00 B
|
|
115
|
+
ESM dist/chunk-H4VKQGVU.mjs.map 51.00 B
|
|
116
|
+
ESM dist/chunk-MRXNTQOX.mjs.map 71.00 B
|
|
117
|
+
ESM dist/chunk-SRBUGQTM.mjs.map 6.48 KB
|
|
118
|
+
ESM dist/chunk-7NSRDJ5C.mjs.map 51.00 B
|
|
119
|
+
ESM dist/types/types.mjs.map 51.00 B
|
|
120
|
+
ESM dist/index.mjs.map 51.00 B
|
|
121
|
+
ESM dist/chunk-NMT7XT2R.mjs.map 2.01 KB
|
|
122
|
+
ESM dist/chunk-MC6KTH4X.mjs.map 520.00 B
|
|
123
|
+
ESM dist/chunk-WLTEQ2FW.mjs.map 3.68 KB
|
|
124
|
+
ESM dist/chunk-SEH5PQVW.mjs.map 2.85 KB
|
|
125
|
+
ESM dist/chunk-5KEDV5VC.mjs.map 1.05 KB
|
|
126
|
+
ESM dist/chunk-SHOTWRKC.mjs.map 1.23 KB
|
|
127
|
+
ESM dist/chunk-GCOPYGHH.mjs.map 1.23 KB
|
|
128
|
+
ESM dist/chunk-CNQX2VY3.mjs.map 3.73 KB
|
|
129
|
+
ESM dist/chunk-6LAZQHEB.mjs.map 6.24 KB
|
|
130
|
+
ESM dist/chunk-OOBQC5H6.mjs.map 1.70 KB
|
|
131
|
+
ESM dist/chunk-CF3BK4OX.mjs.map 2.81 KB
|
|
132
|
+
ESM dist/chunk-INCNMGJ7.mjs.map 4.04 KB
|
|
133
|
+
ESM dist/chunk-M3CZWJI3.mjs.map 2.62 KB
|
|
134
|
+
ESM dist/chunk-2KAF7NKC.mjs.map 27.13 KB
|
|
135
|
+
ESM dist/chunk-VGX2W5ZB.mjs.map 1.56 KB
|
|
136
|
+
ESM dist/chunk-Q6YO7LDK.mjs.map 1.75 KB
|
|
137
|
+
ESM dist/chunk-IJLMKBSZ.mjs.map 1.27 KB
|
|
138
|
+
ESM dist/chunk-ZYC5YVDO.mjs.map 994.00 B
|
|
139
|
+
ESM dist/hooks/use-at-bottom.mjs.map 51.00 B
|
|
140
|
+
ESM dist/hooks/use-copy-to-clipboard.mjs.map 51.00 B
|
|
141
|
+
ESM dist/chunk-POVINPXX.mjs.map 1.18 KB
|
|
142
|
+
ESM dist/chunk-OHWEJUCS.mjs.map 933.00 B
|
|
143
|
+
ESM dist/hooks/index.mjs.map 51.00 B
|
|
144
|
+
ESM dist/chunk-U6NJWGTV.mjs.map 51.00 B
|
|
145
|
+
ESM dist/lib/utils.mjs.map 51.00 B
|
|
146
|
+
ESM dist/components/chat-components/ui/textarea.mjs.map 1.17 KB
|
|
147
|
+
ESM dist/chunk-TEYIQHMK.mjs.map 551.00 B
|
|
148
|
+
ESM dist/hooks/use-enter-submit.mjs.map 51.00 B
|
|
149
|
+
ESM dist/chunk-IU3WTXLQ.mjs.map 51.00 B
|
|
150
|
+
ESM dist/types/index.mjs.map 51.00 B
|
|
151
|
+
ESM dist/chunk-RPTRCFSO.mjs.map 2.39 KB
|
|
152
|
+
ESM dist/components/sidebar/copilot-sidebar-ui-provider.mjs.map 51.00 B
|
|
153
|
+
ESM dist/components/chat-components/ui/tooltip.mjs.map 51.00 B
|
|
154
|
+
ESM dist/components/chat-components/ui/input.mjs.map 1.25 KB
|
|
155
|
+
ESM dist/components/chat-components/ui/label.mjs.map 1.14 KB
|
|
156
|
+
ESM dist/components/chat-components/ui/select.mjs.map 5.80 KB
|
|
157
|
+
ESM dist/components/chat-components/ui/sheet.mjs.map 5.30 KB
|
|
158
|
+
ESM dist/components/chat-components/ui/separator.mjs.map 51.00 B
|
|
159
|
+
ESM dist/components/chat-components/ui/codeblock.mjs.map 51.00 B
|
|
160
|
+
ESM dist/components/chat-components/ui/dialog.mjs.map 5.60 KB
|
|
161
|
+
ESM dist/components/chat-components/clear-history.mjs.map 3.25 KB
|
|
162
|
+
ESM dist/components/chat-components/ui/button.mjs.map 51.00 B
|
|
163
|
+
ESM dist/components/chat-components/ui/switch.mjs.map 1.67 KB
|
|
164
|
+
ESM dist/components/chat-components/default-empty-screen.mjs.map 51.00 B
|
|
165
|
+
ESM dist/components/chat-components/external-link.mjs.map 51.00 B
|
|
166
|
+
ESM dist/components/chat-components/markdown.mjs.map 51.00 B
|
|
167
|
+
ESM dist/components/chat-components/prompt-form.mjs.map 51.00 B
|
|
168
|
+
ESM dist/components/chat-components/ui/badge.mjs.map 1.66 KB
|
|
169
|
+
ESM dist/components/chat-components/copilot-chat.mjs.map 51.00 B
|
|
170
|
+
ESM dist/components/chat-components/theme-toggle.mjs.map 1.35 KB
|
|
171
|
+
ESM dist/components/chat-components/chat-scroll-anchor.mjs.map 51.00 B
|
|
172
|
+
ESM dist/components/chat-components/chat-message.mjs.map 51.00 B
|
|
173
|
+
ESM dist/components/chat-components/ui/icons.mjs.map 51.00 B
|
|
174
|
+
ESM dist/components/chat-components/ui/dropdown-menu.mjs.map 5.79 KB
|
|
175
|
+
ESM dist/components/sidebar/sidebar-context.mjs.map 51.00 B
|
|
176
|
+
ESM dist/components/chat-components/chat-message-actions.mjs.map 51.00 B
|
|
177
|
+
ESM dist/components/chat-components/chat-panel.mjs.map 51.00 B
|
|
178
|
+
ESM dist/components/chat-components/ui/alert-dialog.mjs.map 51.00 B
|
|
179
|
+
ESM dist/components/chat-components/chat-list.mjs.map 51.00 B
|
|
180
|
+
ESM dist/components/chat-components/toaster.mjs.map 209.00 B
|
|
181
|
+
ESM dist/components/sidebar/copilot-sidebar.mjs.map 51.00 B
|
|
182
|
+
ESM ⚡️ Build success in 655ms
|
|
183
|
+
DTS ⚡️ Build success in 5789ms
|
|
184
|
+
DTS dist/index.d.ts 587.00 B
|
|
185
|
+
DTS dist/components/chat-components/copilot-chat.d.ts 496.00 B
|
|
186
|
+
DTS dist/components/chat-components/ui/tooltip.d.ts 640.00 B
|
|
187
|
+
DTS dist/components/sidebar/copilot-sidebar-ui-provider.d.ts 344.00 B
|
|
188
|
+
DTS dist/components/sidebar/copilot-sidebar.d.ts 240.00 B
|
|
189
|
+
DTS dist/components/sidebar/sidebar-context.d.ts 273.00 B
|
|
190
|
+
DTS dist/components/chat-components/default-empty-screen.d.ts 267.00 B
|
|
191
|
+
DTS dist/components/index.d.ts 521.00 B
|
|
192
|
+
DTS dist/context/index.d.ts 12.00 B
|
|
193
|
+
DTS dist/hooks/index.d.ts 12.00 B
|
|
194
|
+
DTS dist/hooks/use-at-bottom.d.ts 81.00 B
|
|
195
|
+
DTS dist/hooks/use-copy-to-clipboard.d.ts 266.00 B
|
|
196
|
+
DTS dist/hooks/use-enter-submit.d.ts 219.00 B
|
|
197
|
+
DTS dist/lib/utils.test.d.ts 12.00 B
|
|
198
|
+
DTS dist/lib/utils.d.ts 357.00 B
|
|
199
|
+
DTS dist/types/index.d.ts 12.00 B
|
|
200
|
+
DTS dist/types/types.d.ts 355.00 B
|
|
201
|
+
DTS dist/components/chat-components/chat-list.d.ts 192.00 B
|
|
202
|
+
DTS dist/components/chat-components/chat-message-actions.d.ts 288.00 B
|
|
203
|
+
DTS dist/components/chat-components/chat-message.d.ts 231.00 B
|
|
204
|
+
DTS dist/components/chat-components/chat-panel.d.ts 378.00 B
|
|
205
|
+
DTS dist/components/chat-components/chat-scroll-anchor.d.ts 189.00 B
|
|
206
|
+
DTS dist/components/chat-components/clear-history.d.ts 278.00 B
|
|
207
|
+
DTS dist/components/chat-components/external-link.d.ts 144.00 B
|
|
208
|
+
DTS dist/components/chat-components/markdown.d.ts 156.00 B
|
|
209
|
+
DTS dist/components/chat-components/prompt-form.d.ts 341.00 B
|
|
210
|
+
DTS dist/components/chat-components/theme-toggle.d.ts 70.00 B
|
|
211
|
+
DTS dist/components/chat-components/toaster.d.ts 43.00 B
|
|
212
|
+
DTS dist/components/chat-components/ui/alert-dialog.d.ts 1.80 KB
|
|
213
|
+
DTS dist/components/chat-components/ui/badge.d.ts 619.00 B
|
|
214
|
+
DTS dist/components/chat-components/ui/button.d.ts 766.00 B
|
|
215
|
+
DTS dist/components/chat-components/ui/codeblock.d.ts 392.00 B
|
|
216
|
+
DTS dist/components/chat-components/ui/dialog.d.ts 1.23 KB
|
|
217
|
+
DTS dist/components/chat-components/ui/dropdown-menu.d.ts 2.28 KB
|
|
218
|
+
DTS dist/components/chat-components/ui/icons.d.ts 2.96 KB
|
|
219
|
+
DTS dist/components/chat-components/ui/input.d.ts 247.00 B
|
|
220
|
+
DTS dist/components/chat-components/ui/label.d.ts 526.00 B
|
|
221
|
+
DTS dist/components/chat-components/ui/select.d.ts 1.44 KB
|
|
222
|
+
DTS dist/components/chat-components/ui/separator.d.ts 303.00 B
|
|
223
|
+
DTS dist/components/chat-components/ui/sheet.d.ts 1.36 KB
|
|
224
|
+
DTS dist/components/chat-components/ui/switch.d.ts 293.00 B
|
|
225
|
+
DTS dist/components/chat-components/ui/textarea.d.ts 271.00 B
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
+
## 0.15.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- propagate makeSystemMessage through CopilotSidebarUIProvider
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @copilotkit/react-core@0.18.0-alpha.0
|
|
13
|
+
|
|
3
14
|
## 0.14.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ function CopilotSidebar(props) {
|
|
|
11
11
|
style: { width: "100%", height: "100%" },
|
|
12
12
|
children: [
|
|
13
13
|
/* @__PURE__ */ jsx(TopBar, __spreadValues({}, props)),
|
|
14
|
-
/* @__PURE__ */ jsx(CopilotChat, {})
|
|
14
|
+
/* @__PURE__ */ jsx(CopilotChat, { makeSystemMessage: props.makeSystemMessage })
|
|
15
15
|
]
|
|
16
16
|
}
|
|
17
17
|
);
|
|
@@ -36,4 +36,4 @@ function TopBar(props) {
|
|
|
36
36
|
|
|
37
37
|
export { CopilotSidebar };
|
|
38
38
|
//# sourceMappingURL=out.js.map
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-NMT7XT2R.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/sidebar/copilot-sidebar.tsx"],"names":[],"mappings":";;;;;;;;AAoBA,SAAS,iBAAiB;AAVtB,SAIE,KAJF;AAFG,SAAS,eAAe,OAAkC;AAC/D,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,OAAO,QAAQ,QAAQ,OAAO;AAAA,MAEvC;AAAA,4BAAC,2BAAW,MAAO;AAAA,QACnB,oBAAC,eAAY,mBAAmB,MAAM,mBAAmB;AAAA;AAAA;AAAA,EAC3D;AAEJ;AAIA,SAAS,OAAO,OAAkC;AAChD,SACE,qBAAC,SAAI,WAAU,0DACb;AAAA,wBAAC,QAAG,WAAU,mDAAkD,0BAAY;AAAA,IAC5E,oBAAC,SAAI,WAAU,8BACb;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAAS,MAAM,MAAM,eAAe,KAAK;AAAA,QAEzC;AAAA,8BAAC,UAAK,WAAU,WAAU,yBAAW;AAAA,UACrC,oBAAC,aAAU,WAAU,WAAU,eAAY,QAAO;AAAA;AAAA;AAAA,IACpD,GACF;AAAA,KACF;AAEJ","sourcesContent":["import React from \"react\";\nimport { CopilotChat } from \"../chat-components/copilot-chat\";\n\nexport interface SidebarProps {\n setSidebarOpen: (open: boolean) => void;\n makeSystemMessage?: (contextString: string) => string;\n}\n\nexport function CopilotSidebar(props: SidebarProps): JSX.Element {\n return (\n <div\n className=\"shadow-lg bg-gray-50 flex flex-col border-l-2\"\n style={{ width: \"100%\", height: \"100%\" }}\n >\n <TopBar {...props} />\n <CopilotChat makeSystemMessage={props.makeSystemMessage} />\n </div>\n );\n}\n\nimport { XMarkIcon } from \"@heroicons/react/24/outline\";\n\nfunction TopBar(props: SidebarProps): JSX.Element {\n return (\n <div className=\"py-6 flex bg-gray-50 items-center justify-between px-4\">\n <h1 className=\"text-base font-semibold leading-6 text-gray-900\">Copilot Chat</h1>\n <div className=\"ml-3 flex h-7 items-center\">\n <button\n type=\"button\"\n className=\"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2\"\n onClick={() => props.setSidebarOpen(false)}\n >\n <span className=\"sr-only\">Close panel</span>\n <XMarkIcon className=\"h-6 w-6\" aria-hidden=\"true\" />\n </button>\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { CopilotSidebar } from './chunk-
|
|
1
|
+
import { CopilotSidebar } from './chunk-NMT7XT2R.mjs';
|
|
2
2
|
import { CopilotSidebarContext } from './chunk-MC6KTH4X.mjs';
|
|
3
3
|
import { TooltipProvider } from './chunk-VGX2W5ZB.mjs';
|
|
4
|
+
import { __objRest } from './chunk-MRXNTQOX.mjs';
|
|
4
5
|
import { useState, useCallback } from 'react';
|
|
5
6
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
6
7
|
|
|
7
|
-
function CopilotSidebarUIProvider(
|
|
8
|
+
function CopilotSidebarUIProvider(_a) {
|
|
9
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
8
10
|
const [sidebarOpen, setSidebarOpen] = useState(true);
|
|
9
11
|
const toggleSidebar = useCallback(() => {
|
|
10
12
|
setSidebarOpen((prev) => !prev);
|
|
@@ -44,7 +46,13 @@ function CopilotSidebarUIProvider({ children }) {
|
|
|
44
46
|
right: sidebarOpen ? "0" : "-450px",
|
|
45
47
|
transition: "right 0.5s ease-in-out"
|
|
46
48
|
},
|
|
47
|
-
children: /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(
|
|
49
|
+
children: /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(
|
|
50
|
+
CopilotSidebar,
|
|
51
|
+
{
|
|
52
|
+
setSidebarOpen,
|
|
53
|
+
makeSystemMessage: props.makeSystemMessage
|
|
54
|
+
}
|
|
55
|
+
) })
|
|
48
56
|
}
|
|
49
57
|
),
|
|
50
58
|
!sidebarOpen && /* @__PURE__ */ jsx(
|
|
@@ -69,4 +77,4 @@ function CopilotSidebarUIProvider({ children }) {
|
|
|
69
77
|
|
|
70
78
|
export { CopilotSidebarUIProvider };
|
|
71
79
|
//# sourceMappingURL=out.js.map
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-WLTEQ2FW.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/sidebar/copilot-sidebar-ui-provider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,SAA2B,mBAAmB;AAC9C,SAAS,gBAAgB;AAmBnB,mBAkBM,KAjBJ,YADF;AATC,SAAS,yBAAyB,IAAuD;AAAvD,eAAE,WAX3C,IAWyC,IAAe,kBAAf,IAAe,CAAb;AACzC,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,IAAI;AAEnD,QAAM,gBAAgB,YAAY,MAAM;AACtC,mBAAe,CAAC,SAAS,CAAC,IAAI;AAAA,EAChC,GAAG,CAAC,CAAC;AAEL,SACE,oBAAC,sBAAsB,UAAtB,EAA+B,OAAO,EAAE,eAAe,aAAa,cAAc,GACjF,0CACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,MAEA;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,cACL,WAAW;AAAA,cACX,WAAW;AAAA,cACX,QAAQ;AAAA,cACR,OAAO,cAAc,uBAAuB;AAAA,cAC5C,UAAU;AAAA,cACV,YAAY;AAAA;AAAA,YACd;AAAA,YAEA,8BAAC,UAAM,UAAS;AAAA;AAAA,QAClB;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,cACL,WAAW;AAAA,cACX,QAAQ;AAAA,cACR,OAAO;AAAA,cACP,UAAU;AAAA,cACV,OAAO,cAAc,MAAM;AAAA,cAC3B,YAAY;AAAA,YACd;AAAA,YAEA,8BAAC,mBACC;AAAA,cAAC;AAAA;AAAA,gBACC;AAAA,gBACA,mBAAmB,MAAM;AAAA;AAAA,YAC3B,GACF;AAAA;AAAA,QACF;AAAA,QACC,CAAC,eACA;AAAA,UAAC;AAAA;AAAA,YACC,SAAS;AAAA,YACT,OAAO;AAAA,cACL,UAAU;AAAA,cACV,KAAK;AAAA,cACL,OAAO;AAAA,cACP,WAAW;AAAA,cACX,YAAY;AAAA,YACd;AAAA,YACA,WAAU;AAAA,YACX;AAAA;AAAA,QAED;AAAA;AAAA;AAAA,EAEJ,GACF,GACF;AAEJ","sourcesContent":["import React, { ReactNode, useCallback } from \"react\";\nimport { useState } from \"react\";\nimport { CopilotSidebar } from \"./copilot-sidebar\";\nimport { CopilotSidebarContext } from \"./sidebar-context\";\nimport { TooltipProvider } from \"../chat-components/ui/tooltip\";\n\nexport interface CopilotSidebarUIProviderProps {\n children: ReactNode;\n makeSystemMessage?: (contextString: string) => string;\n}\n\nexport function CopilotSidebarUIProvider({ children, ...props }: CopilotSidebarUIProviderProps) {\n const [sidebarOpen, setSidebarOpen] = useState(true);\n\n const toggleSidebar = useCallback(() => {\n setSidebarOpen((prev) => !prev);\n }, []);\n\n return (\n <CopilotSidebarContext.Provider value={{ isSidebarOpen: sidebarOpen, toggleSidebar }}>\n <>\n <div\n style={{\n height: \"100vh\",\n width: \"100vw\",\n position: \"relative\",\n }}\n >\n <div\n style={{\n overflowY: \"auto\",\n overflowX: \"hidden\",\n height: \"100%\",\n width: sidebarOpen ? \"calc(100% - 450px)\" : \"100%\",\n position: \"absolute\",\n transition: \"width 0.5s ease-in-out\", // New\n }}\n >\n <main>{children}</main>\n </div>\n <div\n style={{\n overflowY: \"auto\",\n height: \"100%\",\n width: \"450px\",\n position: \"absolute\",\n right: sidebarOpen ? \"0\" : \"-450px\",\n transition: \"right 0.5s ease-in-out\",\n }}\n >\n <TooltipProvider>\n <CopilotSidebar\n setSidebarOpen={setSidebarOpen}\n makeSystemMessage={props.makeSystemMessage}\n />\n </TooltipProvider>\n </div>\n {!sidebarOpen && (\n <button\n onClick={toggleSidebar}\n style={{\n position: \"absolute\",\n top: \"5%\",\n right: \"20px\",\n transform: \"translateY(-50%)\",\n transition: \"opacity 0.5s ease-in-out\",\n }}\n className=\"bg-slate-100 ring-2 ring-slate-600 font-semibold text-black p-2 rounded-lg shadow-lg\"\n >\n Open Copilot\n </button>\n )}\n </div>\n </>\n </CopilotSidebarContext.Provider>\n );\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../chunk-U6NJWGTV.mjs';
|
|
2
|
-
export { CopilotSidebarUIProvider } from '../chunk-
|
|
3
|
-
export { CopilotSidebar } from '../chunk-
|
|
2
|
+
export { CopilotSidebarUIProvider } from '../chunk-WLTEQ2FW.mjs';
|
|
3
|
+
export { CopilotSidebar } from '../chunk-NMT7XT2R.mjs';
|
|
4
4
|
export { CopilotSidebarContext } from '../chunk-MC6KTH4X.mjs';
|
|
5
5
|
export { CopilotChat } from '../chunk-RPTRCFSO.mjs';
|
|
6
6
|
import '../chunk-SEH5PQVW.mjs';
|
|
@@ -2,7 +2,8 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
|
|
3
3
|
interface CopilotSidebarUIProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
5
|
+
makeSystemMessage?: (contextString: string) => string;
|
|
5
6
|
}
|
|
6
|
-
declare function CopilotSidebarUIProvider({ children }: CopilotSidebarUIProviderProps): JSX.Element;
|
|
7
|
+
declare function CopilotSidebarUIProvider({ children, ...props }: CopilotSidebarUIProviderProps): JSX.Element;
|
|
7
8
|
|
|
8
9
|
export { CopilotSidebarUIProvider, CopilotSidebarUIProviderProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CopilotSidebarUIProvider } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { CopilotSidebarUIProvider } from '../../chunk-WLTEQ2FW.mjs';
|
|
2
|
+
import '../../chunk-NMT7XT2R.mjs';
|
|
3
3
|
import '../../chunk-MC6KTH4X.mjs';
|
|
4
4
|
import '../../chunk-RPTRCFSO.mjs';
|
|
5
5
|
import '../../chunk-SEH5PQVW.mjs';
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './chunk-7NSRDJ5C.mjs';
|
|
2
2
|
import './chunk-U6NJWGTV.mjs';
|
|
3
|
-
export { CopilotSidebarUIProvider } from './chunk-
|
|
4
|
-
export { CopilotSidebar } from './chunk-
|
|
3
|
+
export { CopilotSidebarUIProvider } from './chunk-WLTEQ2FW.mjs';
|
|
4
|
+
export { CopilotSidebar } from './chunk-NMT7XT2R.mjs';
|
|
5
5
|
export { CopilotSidebarContext } from './chunk-MC6KTH4X.mjs';
|
|
6
6
|
export { CopilotChat } from './chunk-RPTRCFSO.mjs';
|
|
7
7
|
import './chunk-SEH5PQVW.mjs';
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.15.0-alpha.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"**/*.css"
|
|
10
10
|
],
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"remark-gfm": "^3.0.1",
|
|
60
60
|
"remark-math": "^5.1.1",
|
|
61
61
|
"tailwind-merge": "^1.13.2",
|
|
62
|
-
"@copilotkit/react-core": "0.
|
|
62
|
+
"@copilotkit/react-core": "0.18.0-alpha.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsup --treeshake",
|
|
@@ -6,9 +6,10 @@ import { TooltipProvider } from "../chat-components/ui/tooltip";
|
|
|
6
6
|
|
|
7
7
|
export interface CopilotSidebarUIProviderProps {
|
|
8
8
|
children: ReactNode;
|
|
9
|
+
makeSystemMessage?: (contextString: string) => string;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
export function CopilotSidebarUIProvider({ children }: CopilotSidebarUIProviderProps) {
|
|
12
|
+
export function CopilotSidebarUIProvider({ children, ...props }: CopilotSidebarUIProviderProps) {
|
|
12
13
|
const [sidebarOpen, setSidebarOpen] = useState(true);
|
|
13
14
|
|
|
14
15
|
const toggleSidebar = useCallback(() => {
|
|
@@ -48,7 +49,10 @@ export function CopilotSidebarUIProvider({ children }: CopilotSidebarUIProviderP
|
|
|
48
49
|
}}
|
|
49
50
|
>
|
|
50
51
|
<TooltipProvider>
|
|
51
|
-
<CopilotSidebar
|
|
52
|
+
<CopilotSidebar
|
|
53
|
+
setSidebarOpen={setSidebarOpen}
|
|
54
|
+
makeSystemMessage={props.makeSystemMessage}
|
|
55
|
+
/>
|
|
52
56
|
</TooltipProvider>
|
|
53
57
|
</div>
|
|
54
58
|
{!sidebarOpen && (
|
|
@@ -3,6 +3,7 @@ import { CopilotChat } from "../chat-components/copilot-chat";
|
|
|
3
3
|
|
|
4
4
|
export interface SidebarProps {
|
|
5
5
|
setSidebarOpen: (open: boolean) => void;
|
|
6
|
+
makeSystemMessage?: (contextString: string) => string;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export function CopilotSidebar(props: SidebarProps): JSX.Element {
|
|
@@ -12,7 +13,7 @@ export function CopilotSidebar(props: SidebarProps): JSX.Element {
|
|
|
12
13
|
style={{ width: "100%", height: "100%" }}
|
|
13
14
|
>
|
|
14
15
|
<TopBar {...props} />
|
|
15
|
-
<CopilotChat />
|
|
16
|
+
<CopilotChat makeSystemMessage={props.makeSystemMessage} />
|
|
16
17
|
</div>
|
|
17
18
|
);
|
|
18
19
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/sidebar/copilot-sidebar.tsx"],"names":[],"mappings":";;;;;;;;AAmBA,SAAS,iBAAiB;AAVtB,SAIE,KAJF;AAFG,SAAS,eAAe,OAAkC;AAC/D,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,OAAO,QAAQ,QAAQ,OAAO;AAAA,MAEvC;AAAA,4BAAC,2BAAW,MAAO;AAAA,QACnB,oBAAC,eAAY;AAAA;AAAA;AAAA,EACf;AAEJ;AAIA,SAAS,OAAO,OAAkC;AAChD,SACE,qBAAC,SAAI,WAAU,0DACb;AAAA,wBAAC,QAAG,WAAU,mDAAkD,0BAAY;AAAA,IAC5E,oBAAC,SAAI,WAAU,8BACb;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAAS,MAAM,MAAM,eAAe,KAAK;AAAA,QAEzC;AAAA,8BAAC,UAAK,WAAU,WAAU,yBAAW;AAAA,UACrC,oBAAC,aAAU,WAAU,WAAU,eAAY,QAAO;AAAA;AAAA;AAAA,IACpD,GACF;AAAA,KACF;AAEJ","sourcesContent":["import React from \"react\";\nimport { CopilotChat } from \"../chat-components/copilot-chat\";\n\nexport interface SidebarProps {\n setSidebarOpen: (open: boolean) => void;\n}\n\nexport function CopilotSidebar(props: SidebarProps): JSX.Element {\n return (\n <div\n className=\"shadow-lg bg-gray-50 flex flex-col border-l-2\"\n style={{ width: \"100%\", height: \"100%\" }}\n >\n <TopBar {...props} />\n <CopilotChat />\n </div>\n );\n}\n\nimport { XMarkIcon } from \"@heroicons/react/24/outline\";\n\nfunction TopBar(props: SidebarProps): JSX.Element {\n return (\n <div className=\"py-6 flex bg-gray-50 items-center justify-between px-4\">\n <h1 className=\"text-base font-semibold leading-6 text-gray-900\">Copilot Chat</h1>\n <div className=\"ml-3 flex h-7 items-center\">\n <button\n type=\"button\"\n className=\"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2\"\n onClick={() => props.setSidebarOpen(false)}\n >\n <span className=\"sr-only\">Close panel</span>\n <XMarkIcon className=\"h-6 w-6\" aria-hidden=\"true\" />\n </button>\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/sidebar/copilot-sidebar-ui-provider.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,SAA2B,mBAAmB;AAC9C,SAAS,gBAAgB;AAkBnB,mBAkBM,KAjBJ,YADF;AATC,SAAS,yBAAyB,EAAE,SAAS,GAAkC;AACpF,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,IAAI;AAEnD,QAAM,gBAAgB,YAAY,MAAM;AACtC,mBAAe,CAAC,SAAS,CAAC,IAAI;AAAA,EAChC,GAAG,CAAC,CAAC;AAEL,SACE,oBAAC,sBAAsB,UAAtB,EAA+B,OAAO,EAAE,eAAe,aAAa,cAAc,GACjF,0CACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,MAEA;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,cACL,WAAW;AAAA,cACX,WAAW;AAAA,cACX,QAAQ;AAAA,cACR,OAAO,cAAc,uBAAuB;AAAA,cAC5C,UAAU;AAAA,cACV,YAAY;AAAA;AAAA,YACd;AAAA,YAEA,8BAAC,UAAM,UAAS;AAAA;AAAA,QAClB;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,cACL,WAAW;AAAA,cACX,QAAQ;AAAA,cACR,OAAO;AAAA,cACP,UAAU;AAAA,cACV,OAAO,cAAc,MAAM;AAAA,cAC3B,YAAY;AAAA,YACd;AAAA,YAEA,8BAAC,mBACC,8BAAC,kBAAe,gBAAgC,GAClD;AAAA;AAAA,QACF;AAAA,QACC,CAAC,eACA;AAAA,UAAC;AAAA;AAAA,YACC,SAAS;AAAA,YACT,OAAO;AAAA,cACL,UAAU;AAAA,cACV,KAAK;AAAA,cACL,OAAO;AAAA,cACP,WAAW;AAAA,cACX,YAAY;AAAA,YACd;AAAA,YACA,WAAU;AAAA,YACX;AAAA;AAAA,QAED;AAAA;AAAA;AAAA,EAEJ,GACF,GACF;AAEJ","sourcesContent":["import React, { ReactNode, useCallback } from \"react\";\nimport { useState } from \"react\";\nimport { CopilotSidebar } from \"./copilot-sidebar\";\nimport { CopilotSidebarContext } from \"./sidebar-context\";\nimport { TooltipProvider } from \"../chat-components/ui/tooltip\";\n\nexport interface CopilotSidebarUIProviderProps {\n children: ReactNode;\n}\n\nexport function CopilotSidebarUIProvider({ children }: CopilotSidebarUIProviderProps) {\n const [sidebarOpen, setSidebarOpen] = useState(true);\n\n const toggleSidebar = useCallback(() => {\n setSidebarOpen((prev) => !prev);\n }, []);\n\n return (\n <CopilotSidebarContext.Provider value={{ isSidebarOpen: sidebarOpen, toggleSidebar }}>\n <>\n <div\n style={{\n height: \"100vh\",\n width: \"100vw\",\n position: \"relative\",\n }}\n >\n <div\n style={{\n overflowY: \"auto\",\n overflowX: \"hidden\",\n height: \"100%\",\n width: sidebarOpen ? \"calc(100% - 450px)\" : \"100%\",\n position: \"absolute\",\n transition: \"width 0.5s ease-in-out\", // New\n }}\n >\n <main>{children}</main>\n </div>\n <div\n style={{\n overflowY: \"auto\",\n height: \"100%\",\n width: \"450px\",\n position: \"absolute\",\n right: sidebarOpen ? \"0\" : \"-450px\",\n transition: \"right 0.5s ease-in-out\",\n }}\n >\n <TooltipProvider>\n <CopilotSidebar setSidebarOpen={setSidebarOpen} />\n </TooltipProvider>\n </div>\n {!sidebarOpen && (\n <button\n onClick={toggleSidebar}\n style={{\n position: \"absolute\",\n top: \"5%\",\n right: \"20px\",\n transform: \"translateY(-50%)\",\n transition: \"opacity 0.5s ease-in-out\",\n }}\n className=\"bg-slate-100 ring-2 ring-slate-600 font-semibold text-black p-2 rounded-lg shadow-lg\"\n >\n Open Copilot\n </button>\n )}\n </div>\n </>\n </CopilotSidebarContext.Provider>\n );\n}\n"]}
|