@copilotkit/react-ui 0.14.1-alpha.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.
@@ -1,10 +1,8 @@
1
- Debugger attached.
2
1
 
3
- > @copilotkit/react-ui@0.14.1-alpha.0 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-ui
2
+ > @copilotkit/react-ui@0.14.1 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-ui
4
3
  > tsup --treeshake
5
4
 
6
- Debugger attached.
7
- CLI Building entry: src/index.tsx, src/context/index.ts, src/components/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
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
8
6
  CLI Using tsconfig: tsconfig.json
9
7
  CLI tsup v6.7.0
10
8
  CLI Using tsup config: /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-ui/tsup.config.ts
@@ -36,162 +34,162 @@ Module level directives cause errors when bundled, "use client" in "dist/compone
36
34
  Module level directives cause errors when bundled, "use client" in "dist/hooks/use-copy-to-clipboard.mjs" was ignored.
37
35
  Generated an empty chunk: "types".
38
36
  Generated an empty chunk: "chunk-7NSRDJ5C".
39
- Generated an empty chunk: "chunk-IU3WTXLQ".
40
37
  Generated an empty chunk: "chunk-U6NJWGTV".
38
+ Generated an empty chunk: "chunk-IU3WTXLQ".
41
39
  Generated an empty chunk: "chunk-H4VKQGVU".
42
40
  ESM dist/index.css 23.69 KB
43
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
44
45
  ESM dist/types/types.mjs 67.00 B
45
46
  ESM dist/chunk-7NSRDJ5C.mjs 76.00 B
46
- ESM dist/chunk-MRXNTQOX.mjs 1.92 KB
47
- ESM dist/lib/utils.test.mjs 200.00 B
48
- ESM dist/components/chat-components/ui/textarea.mjs 924.00 B
49
- ESM dist/components/chat-components/ui/tooltip.mjs 248.00 B
50
- ESM dist/components/chat-components/ui/icons.mjs 527.00 B
51
- ESM dist/chunk-IU3WTXLQ.mjs 76.00 B
52
- ESM dist/components/chat-components/ui/dropdown-menu.mjs 4.02 KB
53
- ESM dist/components/chat-components/ui/input.mjs 999.00 B
54
47
  ESM dist/chunk-H4VKQGVU.mjs 76.00 B
55
- ESM dist/chunk-U6NJWGTV.mjs 76.00 B
56
- ESM dist/components/chat-components/ui/label.mjs 810.00 B
57
- ESM dist/components/chat-components/ui/select.mjs 4.14 KB
58
- ESM dist/components/chat-components/ui/separator.mjs 203.00 B
59
- ESM dist/components/chat-components/ui/sheet.mjs 3.85 KB
60
- ESM dist/components/chat-components/ui/switch.mjs 1.39 KB
61
- ESM dist/components/sidebar/copilot-sidebar-ui-provider.mjs 927.00 B
62
- ESM dist/components/sidebar/copilot-sidebar.mjs 835.00 B
63
- ESM dist/components/sidebar/sidebar-context.mjs 177.00 B
64
- ESM dist/components/chat-components/ui/alert-dialog.mjs 404.00 B
65
- ESM dist/components/chat-components/ui/badge.mjs 1.17 KB
66
- ESM dist/components/chat-components/ui/button.mjs 213.00 B
67
- ESM dist/components/chat-components/ui/dialog.mjs 4.18 KB
68
- ESM dist/components/chat-components/clear-history.mjs 2.42 KB
69
- ESM dist/components/chat-components/ui/codeblock.mjs 361.00 B
48
+ ESM dist/chunk-MRXNTQOX.mjs 1.92 KB
70
49
  ESM dist/chunk-SRBUGQTM.mjs 4.47 KB
71
- ESM dist/components/chat-components/default-empty-screen.mjs 319.00 B
72
- ESM dist/components/chat-components/external-link.mjs 166.00 B
73
- ESM dist/components/chat-components/markdown.mjs 170.00 B
74
- ESM dist/components/chat-components/prompt-form.mjs 337.00 B
75
- ESM dist/components/chat-components/copilot-chat.mjs 794.00 B
76
- ESM dist/components/chat-components/theme-toggle.mjs 1.02 KB
77
- ESM dist/components/chat-components/toaster.mjs 146.00 B
78
50
  ESM dist/lib/utils.mjs 171.00 B
79
- ESM dist/components/chat-components/chat-list.mjs 473.00 B
80
- ESM dist/components/chat-components/chat-scroll-anchor.mjs 210.00 B
51
+ ESM dist/chunk-IU3WTXLQ.mjs 76.00 B
81
52
  ESM dist/types/index.mjs 98.00 B
82
53
  ESM dist/index.mjs 1.02 KB
83
- ESM dist/context/index.mjs 98.00 B
84
- ESM dist/components/index.mjs 978.00 B
85
- ESM dist/components/chat-components/chat-message-actions.mjs 319.00 B
86
- ESM dist/chunk-C34L4AWW.mjs 1.48 KB
87
- ESM dist/components/chat-components/chat-message.mjs 409.00 B
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
88
57
  ESM dist/chunk-RPTRCFSO.mjs 1.49 KB
89
- ESM dist/chunk-XGUBRIUV.mjs 2.33 KB
90
- ESM dist/components/chat-components/chat-panel.mjs 370.00 B
91
- ESM dist/chunk-5KEDV5VC.mjs 900.00 B
92
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
93
61
  ESM dist/chunk-GCOPYGHH.mjs 908.00 B
94
62
  ESM dist/chunk-CNQX2VY3.mjs 2.80 KB
95
- ESM dist/chunk-SHOTWRKC.mjs 778.00 B
96
63
  ESM dist/chunk-6LAZQHEB.mjs 4.06 KB
97
64
  ESM dist/chunk-TEYIQHMK.mjs 403.00 B
65
+ ESM dist/chunk-OOBQC5H6.mjs 1.30 KB
98
66
  ESM dist/chunk-CF3BK4OX.mjs 1.93 KB
99
67
  ESM dist/chunk-INCNMGJ7.mjs 2.63 KB
100
- ESM dist/chunk-OOBQC5H6.mjs 1.30 KB
101
68
  ESM dist/chunk-VGX2W5ZB.mjs 1.20 KB
69
+ ESM dist/chunk-2KAF7NKC.mjs 22.15 KB
102
70
  ESM dist/chunk-M3CZWJI3.mjs 1.83 KB
103
71
  ESM dist/chunk-Q6YO7LDK.mjs 1.01 KB
104
- ESM dist/chunk-2KAF7NKC.mjs 22.15 KB
105
72
  ESM dist/chunk-IJLMKBSZ.mjs 802.00 B
106
- ESM dist/hooks/index.mjs 98.00 B
73
+ ESM dist/hooks/use-at-bottom.mjs 159.00 B
107
74
  ESM dist/chunk-ZYC5YVDO.mjs 638.00 B
108
75
  ESM dist/hooks/use-copy-to-clipboard.mjs 174.00 B
109
76
  ESM dist/chunk-POVINPXX.mjs 706.00 B
110
- ESM dist/hooks/use-at-bottom.mjs 159.00 B
111
77
  ESM dist/hooks/use-enter-submit.mjs 165.00 B
112
78
  ESM dist/chunk-OHWEJUCS.mjs 524.00 B
113
- ESM dist/chunk-MC6KTH4X.mjs 297.00 B
114
- ESM dist/chunk-7NSRDJ5C.mjs.map 51.00 B
115
- ESM dist/types/types.mjs.map 51.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
116
109
  ESM dist/lib/utils.test.mjs.map 349.00 B
117
- ESM dist/chunk-MRXNTQOX.mjs.map 71.00 B
118
- ESM dist/components/chat-components/ui/tooltip.mjs.map 51.00 B
119
- ESM dist/components/chat-components/ui/textarea.mjs.map 1.17 KB
120
- ESM dist/chunk-IU3WTXLQ.mjs.map 51.00 B
121
- ESM dist/components/chat-components/ui/dropdown-menu.mjs.map 5.79 KB
122
- ESM dist/chunk-U6NJWGTV.mjs.map 51.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
123
115
  ESM dist/chunk-H4VKQGVU.mjs.map 51.00 B
124
- ESM dist/components/chat-components/ui/input.mjs.map 1.25 KB
125
- ESM dist/components/chat-components/ui/icons.mjs.map 51.00 B
126
- ESM dist/components/chat-components/ui/label.mjs.map 1.14 KB
127
- ESM dist/components/chat-components/ui/select.mjs.map 5.80 KB
128
- ESM dist/components/chat-components/ui/separator.mjs.map 51.00 B
129
- ESM dist/components/chat-components/ui/sheet.mjs.map 5.30 KB
130
- ESM dist/components/chat-components/ui/switch.mjs.map 1.67 KB
131
- ESM dist/components/sidebar/sidebar-context.mjs.map 51.00 B
132
- ESM dist/components/chat-components/ui/alert-dialog.mjs.map 51.00 B
133
- ESM dist/components/chat-components/ui/badge.mjs.map 1.66 KB
134
- ESM dist/components/sidebar/copilot-sidebar.mjs.map 51.00 B
135
- ESM dist/components/sidebar/copilot-sidebar-ui-provider.mjs.map 51.00 B
136
- ESM dist/components/chat-components/ui/codeblock.mjs.map 51.00 B
137
- ESM dist/components/chat-components/clear-history.mjs.map 3.25 KB
116
+ ESM dist/chunk-MRXNTQOX.mjs.map 71.00 B
138
117
  ESM dist/chunk-SRBUGQTM.mjs.map 6.48 KB
139
- ESM dist/components/chat-components/default-empty-screen.mjs.map 51.00 B
140
- ESM dist/components/chat-components/ui/button.mjs.map 51.00 B
141
- ESM dist/components/chat-components/external-link.mjs.map 51.00 B
142
- ESM dist/components/chat-components/prompt-form.mjs.map 51.00 B
143
- ESM dist/components/chat-components/ui/dialog.mjs.map 5.60 KB
144
- ESM dist/components/chat-components/theme-toggle.mjs.map 1.35 KB
145
- ESM dist/components/chat-components/chat-list.mjs.map 51.00 B
146
- ESM dist/lib/utils.mjs.map 51.00 B
147
- ESM dist/components/chat-components/markdown.mjs.map 51.00 B
148
- ESM dist/components/chat-components/copilot-chat.mjs.map 51.00 B
118
+ ESM dist/chunk-7NSRDJ5C.mjs.map 51.00 B
119
+ ESM dist/types/types.mjs.map 51.00 B
149
120
  ESM dist/index.mjs.map 51.00 B
150
- ESM dist/context/index.mjs.map 51.00 B
151
- ESM dist/components/index.mjs.map 51.00 B
152
- ESM dist/components/chat-components/chat-message-actions.mjs.map 51.00 B
153
- ESM dist/chunk-C34L4AWW.mjs.map 1.89 KB
154
- ESM dist/components/chat-components/chat-message.mjs.map 51.00 B
155
- ESM dist/chunk-RPTRCFSO.mjs.map 2.39 KB
156
- ESM dist/components/chat-components/chat-panel.mjs.map 51.00 B
157
- ESM dist/chunk-XGUBRIUV.mjs.map 3.44 KB
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
158
124
  ESM dist/chunk-SEH5PQVW.mjs.map 2.85 KB
159
125
  ESM dist/chunk-5KEDV5VC.mjs.map 1.05 KB
160
- ESM dist/types/index.mjs.map 51.00 B
161
- ESM dist/chunk-GCOPYGHH.mjs.map 1.23 KB
162
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
163
129
  ESM dist/chunk-6LAZQHEB.mjs.map 6.24 KB
164
- ESM dist/chunk-TEYIQHMK.mjs.map 551.00 B
165
- ESM dist/components/chat-components/toaster.mjs.map 209.00 B
130
+ ESM dist/chunk-OOBQC5H6.mjs.map 1.70 KB
166
131
  ESM dist/chunk-CF3BK4OX.mjs.map 2.81 KB
167
- ESM dist/chunk-CNQX2VY3.mjs.map 3.73 KB
168
132
  ESM dist/chunk-INCNMGJ7.mjs.map 4.04 KB
169
- ESM dist/chunk-OOBQC5H6.mjs.map 1.70 KB
170
133
  ESM dist/chunk-M3CZWJI3.mjs.map 2.62 KB
171
- ESM dist/chunk-VGX2W5ZB.mjs.map 1.56 KB
172
134
  ESM dist/chunk-2KAF7NKC.mjs.map 27.13 KB
173
- ESM dist/hooks/index.mjs.map 51.00 B
135
+ ESM dist/chunk-VGX2W5ZB.mjs.map 1.56 KB
136
+ ESM dist/chunk-Q6YO7LDK.mjs.map 1.75 KB
174
137
  ESM dist/chunk-IJLMKBSZ.mjs.map 1.27 KB
175
138
  ESM dist/chunk-ZYC5YVDO.mjs.map 994.00 B
139
+ ESM dist/hooks/use-at-bottom.mjs.map 51.00 B
176
140
  ESM dist/hooks/use-copy-to-clipboard.mjs.map 51.00 B
177
141
  ESM dist/chunk-POVINPXX.mjs.map 1.18 KB
178
- ESM dist/hooks/use-at-bottom.mjs.map 51.00 B
179
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
180
148
  ESM dist/hooks/use-enter-submit.mjs.map 51.00 B
181
- ESM dist/chunk-MC6KTH4X.mjs.map 520.00 B
182
- ESM dist/chunk-Q6YO7LDK.mjs.map 1.75 KB
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
183
171
  ESM dist/components/chat-components/chat-scroll-anchor.mjs.map 51.00 B
184
- ESM ⚡️ Build success in 1358ms
185
- DTS ⚡️ Build success in 7409ms
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
186
184
  DTS dist/index.d.ts 587.00 B
187
185
  DTS dist/components/chat-components/copilot-chat.d.ts 496.00 B
188
186
  DTS dist/components/chat-components/ui/tooltip.d.ts 640.00 B
189
- DTS dist/components/sidebar/copilot-sidebar-ui-provider.d.ts 275.00 B
190
- DTS dist/components/sidebar/copilot-sidebar.d.ts 181.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
191
189
  DTS dist/components/sidebar/sidebar-context.d.ts 273.00 B
192
190
  DTS dist/components/chat-components/default-empty-screen.d.ts 267.00 B
193
- DTS dist/context/index.d.ts 12.00 B
194
191
  DTS dist/components/index.d.ts 521.00 B
192
+ DTS dist/context/index.d.ts 12.00 B
195
193
  DTS dist/hooks/index.d.ts 12.00 B
196
194
  DTS dist/hooks/use-at-bottom.d.ts 81.00 B
197
195
  DTS dist/hooks/use-copy-to-clipboard.d.ts 266.00 B
@@ -225,5 +223,3 @@ DTS dist/components/chat-components/ui/separator.d.ts 303.00 B
225
223
  DTS dist/components/chat-components/ui/sheet.d.ts 1.36 KB
226
224
  DTS dist/components/chat-components/ui/switch.d.ts 293.00 B
227
225
  DTS dist/components/chat-components/ui/textarea.d.ts 271.00 B
228
- Waiting for the debugger to disconnect...
229
- Waiting for the debugger to disconnect...
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
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
+
14
+ ## 0.14.1
15
+
16
+ ### Patch Changes
17
+
18
+ - stop generating button working
19
+ - aa6bc5a: fix stop generate
20
+ - cf0bde6: change order of operations on stop cleanup
21
+ - Updated dependencies
22
+ - Updated dependencies [aa6bc5a]
23
+ - Updated dependencies [cf0bde6]
24
+ - @copilotkit/react-core@0.17.1
25
+
3
26
  ## 0.14.1-alpha.1
4
27
 
5
28
  ### 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-C34L4AWW.mjs.map
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-C34L4AWW.mjs';
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({ children }) {
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(CopilotSidebar, { setSidebarOpen }) })
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-XGUBRIUV.mjs.map
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-XGUBRIUV.mjs';
3
- export { CopilotSidebar } from '../chunk-C34L4AWW.mjs';
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-XGUBRIUV.mjs';
2
- import '../../chunk-C34L4AWW.mjs';
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';
@@ -1,5 +1,6 @@
1
1
  interface SidebarProps {
2
2
  setSidebarOpen: (open: boolean) => void;
3
+ makeSystemMessage?: (contextString: string) => string;
3
4
  }
4
5
  declare function CopilotSidebar(props: SidebarProps): JSX.Element;
5
6
 
@@ -1,4 +1,4 @@
1
- export { CopilotSidebar } from '../../chunk-C34L4AWW.mjs';
1
+ export { CopilotSidebar } from '../../chunk-NMT7XT2R.mjs';
2
2
  import '../../chunk-RPTRCFSO.mjs';
3
3
  import '../../chunk-SEH5PQVW.mjs';
4
4
  import '../../chunk-5KEDV5VC.mjs';
package/dist/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  import './chunk-7NSRDJ5C.mjs';
2
- import './chunk-IU3WTXLQ.mjs';
3
2
  import './chunk-U6NJWGTV.mjs';
4
- export { CopilotSidebarUIProvider } from './chunk-XGUBRIUV.mjs';
5
- export { CopilotSidebar } from './chunk-C34L4AWW.mjs';
3
+ export { CopilotSidebarUIProvider } from './chunk-WLTEQ2FW.mjs';
4
+ export { CopilotSidebar } from './chunk-NMT7XT2R.mjs';
6
5
  export { CopilotSidebarContext } from './chunk-MC6KTH4X.mjs';
7
6
  export { CopilotChat } from './chunk-RPTRCFSO.mjs';
8
7
  import './chunk-SEH5PQVW.mjs';
@@ -20,6 +19,7 @@ import './chunk-M3CZWJI3.mjs';
20
19
  import './chunk-2KAF7NKC.mjs';
21
20
  import './chunk-Q6YO7LDK.mjs';
22
21
  import './chunk-IJLMKBSZ.mjs';
22
+ import './chunk-IU3WTXLQ.mjs';
23
23
  import './chunk-H4VKQGVU.mjs';
24
24
  import './chunk-ZYC5YVDO.mjs';
25
25
  import './chunk-POVINPXX.mjs';
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.14.1-alpha.1",
7
+ "version": "0.15.0-alpha.0",
8
8
  "sideEffects": [
9
9
  "**/*.css"
10
10
  ],
@@ -31,8 +31,8 @@
31
31
  "ts-jest": "^29.1.1",
32
32
  "tsup": "^6.7.0",
33
33
  "typescript": "^5.1.3",
34
- "tailwind-config": "0.1.0",
35
34
  "eslint-config-custom": "0.2.0",
35
+ "tailwind-config": "0.1.0",
36
36
  "tsconfig": "0.6.0"
37
37
  },
38
38
  "dependencies": {
@@ -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.17.1-alpha.1"
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 setSidebarOpen={setSidebarOpen} />
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"]}