@copilotkit/react-ui 0.9.0-alpha.7 → 0.9.0-alpha.8
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 +156 -138
- package/CHANGELOG.md +10 -0
- package/dist/components/chat-components/chat-list.d.ts +8 -0
- package/dist/components/chat-components/chat-message-actions.d.ts +8 -0
- package/dist/components/chat-components/chat-message.d.ts +8 -0
- package/dist/components/chat-components/chat-panel.d.ts +8 -0
- package/dist/components/chat-components/chat-scroll-anchor.d.ts +6 -0
- package/dist/components/chat-components/clear-history.d.ts +9 -0
- package/dist/components/chat-components/copilot-chat.d.ts +12 -0
- package/dist/components/chat-components/default-empty-screen.d.ts +8 -0
- package/dist/components/chat-components/external-link.d.ts +6 -0
- package/dist/components/chat-components/markdown.d.ts +6 -0
- package/dist/components/chat-components/prompt-form.d.ts +9 -0
- package/dist/components/chat-components/theme-toggle.d.ts +3 -0
- package/dist/components/chat-components/toaster.d.ts +1 -0
- package/dist/components/chat-components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/chat-components/ui/badge.d.ts +12 -0
- package/dist/components/chat-components/ui/button.d.ts +14 -0
- package/dist/components/chat-components/ui/codeblock.d.ts +14 -0
- package/dist/components/chat-components/ui/dialog.d.ts +18 -0
- package/dist/components/chat-components/ui/dropdown-menu.d.ts +24 -0
- package/dist/components/chat-components/ui/icons.d.ts +33 -0
- package/dist/components/chat-components/ui/input.d.ts +7 -0
- package/dist/components/chat-components/ui/label.d.ts +8 -0
- package/dist/components/chat-components/ui/select.d.ts +13 -0
- package/dist/components/chat-components/ui/separator.d.ts +6 -0
- package/dist/components/chat-components/ui/sheet.d.ts +19 -0
- package/dist/components/chat-components/ui/switch.d.ts +6 -0
- package/dist/components/chat-components/ui/textarea.d.ts +7 -0
- package/dist/components/chat-components/ui/tooltip.d.ts +9 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/sidebar/copilot-sidebar-ui-provider.d.ts +8 -0
- package/dist/components/sidebar/copilot-sidebar.d.ts +6 -0
- package/dist/components/sidebar/sidebar-context.d.ts +9 -0
- package/dist/context/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-at-bottom.d.ts +3 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +9 -0
- package/dist/hooks/use-enter-submit.d.ts +8 -0
- package/dist/index.d.ts +9 -0
- package/dist/lib/utils.d.ts +8 -0
- package/dist/lib/utils.test.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +16 -0
- package/package.json +6 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
Debugger attached.
|
|
2
1
|
|
|
3
|
-
> @copilotkit/react-ui@0.9.0-alpha.
|
|
2
|
+
> @copilotkit/react-ui@0.9.0-alpha.7 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/react-ui
|
|
4
3
|
> tsup --treeshake
|
|
5
4
|
|
|
6
|
-
Debugger attached.
|
|
7
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.5.0
|
|
@@ -14,6 +12,7 @@ ESM Build start
|
|
|
14
12
|
Browserslist: caniuse-lite is outdated. Please run:
|
|
15
13
|
npx update-browserslist-db@latest
|
|
16
14
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
15
|
+
DTS Build start
|
|
17
16
|
Generated an empty chunk: "types".
|
|
18
17
|
Generated an empty chunk: "chunk-7NSRDJ5C".
|
|
19
18
|
Generated an empty chunk: "chunk-U6NJWGTV".
|
|
@@ -21,168 +20,187 @@ Generated an empty chunk: "chunk-IU3WTXLQ".
|
|
|
21
20
|
Generated an empty chunk: "chunk-H4VKQGVU".
|
|
22
21
|
ESM dist/index.css 23.69 KB
|
|
23
22
|
ESM dist/index.css.map 35.28 KB
|
|
24
|
-
ESM dist/chunk-7NSRDJ5C.mjs 76.00 B
|
|
25
|
-
ESM dist/chunk-U6NJWGTV.mjs 76.00 B
|
|
26
23
|
ESM dist/types/types.mjs 67.00 B
|
|
27
|
-
ESM dist/chunk-MRXNTQOX.mjs 1.92 KB
|
|
28
|
-
ESM dist/chunk-IU3WTXLQ.mjs 76.00 B
|
|
29
24
|
ESM dist/lib/utils.test.mjs 200.00 B
|
|
30
|
-
ESM dist/components/
|
|
31
|
-
ESM dist/
|
|
32
|
-
ESM dist/
|
|
25
|
+
ESM dist/components/index.mjs 978.00 B
|
|
26
|
+
ESM dist/context/index.mjs 98.00 B
|
|
27
|
+
ESM dist/chunk-IU3WTXLQ.mjs 76.00 B
|
|
28
|
+
ESM dist/chunk-7NSRDJ5C.mjs 76.00 B
|
|
33
29
|
ESM dist/chunk-H4VKQGVU.mjs 76.00 B
|
|
34
|
-
ESM dist/
|
|
35
|
-
ESM dist/
|
|
36
|
-
ESM dist/
|
|
37
|
-
ESM dist/components/chat-components/ui/select.mjs 4.11 KB
|
|
38
|
-
ESM dist/components/chat-components/ui/sheet.mjs 3.93 KB
|
|
39
|
-
ESM dist/components/sidebar/copilot-sidebar-ui-provider.mjs 927.00 B
|
|
40
|
-
ESM dist/components/chat-components/ui/switch.mjs 1.33 KB
|
|
41
|
-
ESM dist/components/chat-components/ui/label.mjs 820.00 B
|
|
42
|
-
ESM dist/components/chat-components/ui/badge.mjs 1.18 KB
|
|
43
|
-
ESM dist/components/chat-components/ui/codeblock.mjs 361.00 B
|
|
44
|
-
ESM dist/components/chat-components/ui/dialog.mjs 4.32 KB
|
|
45
|
-
ESM dist/components/chat-components/default-empty-screen.mjs 319.00 B
|
|
46
|
-
ESM dist/components/chat-components/copilot-chat.mjs 794.00 B
|
|
47
|
-
ESM dist/components/chat-components/external-link.mjs 166.00 B
|
|
48
|
-
ESM dist/components/chat-components/clear-history.mjs 2.83 KB
|
|
49
|
-
ESM dist/chunk-I2AB5FK4.mjs 4.50 KB
|
|
50
|
-
ESM dist/components/sidebar/copilot-sidebar.mjs 835.00 B
|
|
51
|
-
ESM dist/components/chat-components/theme-toggle.mjs 1.04 KB
|
|
52
|
-
ESM dist/components/chat-components/prompt-form.mjs 337.00 B
|
|
53
|
-
ESM dist/lib/utils.mjs 171.00 B
|
|
54
|
-
ESM dist/components/chat-components/toaster.mjs 146.00 B
|
|
55
|
-
ESM dist/components/chat-components/markdown.mjs 170.00 B
|
|
56
|
-
ESM dist/types/index.mjs 98.00 B
|
|
57
|
-
ESM dist/components/sidebar/sidebar-context.mjs 177.00 B
|
|
58
|
-
ESM dist/components/chat-components/chat-message.mjs 409.00 B
|
|
30
|
+
ESM dist/chunk-MRXNTQOX.mjs 1.92 KB
|
|
31
|
+
ESM dist/hooks/index.mjs 98.00 B
|
|
32
|
+
ESM dist/chunk-U6NJWGTV.mjs 76.00 B
|
|
59
33
|
ESM dist/index.mjs 1.02 KB
|
|
60
|
-
ESM dist/components/chat-components/ui/button.mjs 213.00 B
|
|
61
|
-
ESM dist/components/chat-components/chat-scroll-anchor.mjs 210.00 B
|
|
62
|
-
ESM dist/components/index.mjs 978.00 B
|
|
63
|
-
ESM dist/chunk-MC6KTH4X.mjs 297.00 B
|
|
64
|
-
ESM dist/components/chat-components/chat-list.mjs 473.00 B
|
|
65
34
|
ESM dist/chunk-2NO6SF5H.mjs 1.65 KB
|
|
66
35
|
ESM dist/chunk-VSNDSL6W.mjs 2.34 KB
|
|
67
|
-
ESM dist/components/chat-components/ui/alert-dialog.mjs 404.00 B
|
|
68
|
-
ESM dist/components/chat-components/chat-panel.mjs 370.00 B
|
|
69
36
|
ESM dist/chunk-KXJV37FS.mjs 908.00 B
|
|
70
37
|
ESM dist/chunk-LMCFSE4V.mjs 854.00 B
|
|
71
38
|
ESM dist/chunk-DOMJCSI6.mjs 906.00 B
|
|
72
|
-
ESM dist/chunk-
|
|
39
|
+
ESM dist/chunk-MC6KTH4X.mjs 297.00 B
|
|
40
|
+
ESM dist/chunk-I2AB5FK4.mjs 4.50 KB
|
|
73
41
|
ESM dist/chunk-ZB6JHNDT.mjs 3.00 KB
|
|
74
|
-
ESM dist/chunk-
|
|
75
|
-
ESM dist/chunk-
|
|
42
|
+
ESM dist/chunk-6LRNF2VU.mjs 403.00 B
|
|
43
|
+
ESM dist/chunk-HKSY5T7Y.mjs 4.22 KB
|
|
44
|
+
ESM dist/lib/utils.mjs 171.00 B
|
|
45
|
+
ESM dist/types/index.mjs 98.00 B
|
|
76
46
|
ESM dist/chunk-BS6RR2DJ.mjs 1.18 KB
|
|
77
|
-
ESM dist/
|
|
47
|
+
ESM dist/chunk-APH6ZQHG.mjs 2.10 KB
|
|
48
|
+
ESM dist/chunk-V6QYUEJR.mjs 1.84 KB
|
|
78
49
|
ESM dist/chunk-KR7MH7XO.mjs 21.81 KB
|
|
79
|
-
ESM dist/chunk-
|
|
80
|
-
ESM dist/
|
|
81
|
-
ESM dist/hooks/index.mjs 98.00 B
|
|
50
|
+
ESM dist/chunk-6UJWRTL6.mjs 1.35 KB
|
|
51
|
+
ESM dist/chunk-UKKJ6H2K.mjs 2.84 KB
|
|
82
52
|
ESM dist/chunk-TUPGAO7T.mjs 2.33 KB
|
|
83
|
-
ESM dist/
|
|
84
|
-
ESM dist/chunk-
|
|
53
|
+
ESM dist/chunk-RSONJDLO.mjs 812.00 B
|
|
54
|
+
ESM dist/chunk-N7KB3Z57.mjs 654.00 B
|
|
85
55
|
ESM dist/hooks/use-copy-to-clipboard.mjs 174.00 B
|
|
86
|
-
ESM dist/chunk-V6QYUEJR.mjs 1.84 KB
|
|
87
56
|
ESM dist/hooks/use-enter-submit.mjs 165.00 B
|
|
88
|
-
ESM dist/chunk-N7KB3Z57.mjs 654.00 B
|
|
89
57
|
ESM dist/chunk-BIPCPNHG.mjs 524.00 B
|
|
90
|
-
ESM dist/chunk-HKSY5T7Y.mjs 4.22 KB
|
|
91
|
-
ESM dist/chunk-UKKJ6H2K.mjs 2.84 KB
|
|
92
|
-
ESM dist/chunk-TVTG3V4F.mjs 1.01 KB
|
|
93
58
|
ESM dist/chunk-6LAC5RA2.mjs 708.00 B
|
|
94
|
-
ESM dist/
|
|
59
|
+
ESM dist/hooks/use-at-bottom.mjs 159.00 B
|
|
60
|
+
ESM dist/chunk-7KPMJBGH.mjs 1.59 KB
|
|
61
|
+
ESM dist/components/chat-components/ui/textarea.mjs 894.00 B
|
|
62
|
+
ESM dist/chunk-TVTG3V4F.mjs 1.01 KB
|
|
63
|
+
ESM dist/components/sidebar/copilot-sidebar-ui-provider.mjs 927.00 B
|
|
64
|
+
ESM dist/components/chat-components/ui/icons.mjs 527.00 B
|
|
65
|
+
ESM dist/components/chat-components/ui/label.mjs 820.00 B
|
|
66
|
+
ESM dist/components/chat-components/ui/input.mjs 967.00 B
|
|
67
|
+
ESM dist/components/chat-components/ui/select.mjs 4.11 KB
|
|
68
|
+
ESM dist/components/chat-components/ui/sheet.mjs 3.93 KB
|
|
69
|
+
ESM dist/components/sidebar/sidebar-context.mjs 177.00 B
|
|
70
|
+
ESM dist/components/chat-components/ui/alert-dialog.mjs 404.00 B
|
|
71
|
+
ESM dist/components/chat-components/ui/dialog.mjs 4.32 KB
|
|
72
|
+
ESM dist/components/chat-components/ui/button.mjs 213.00 B
|
|
73
|
+
ESM dist/components/chat-components/ui/codeblock.mjs 361.00 B
|
|
74
|
+
ESM dist/components/chat-components/ui/switch.mjs 1.33 KB
|
|
75
|
+
ESM dist/components/sidebar/copilot-sidebar.mjs 835.00 B
|
|
76
|
+
ESM dist/components/chat-components/ui/tooltip.mjs 248.00 B
|
|
77
|
+
ESM dist/components/chat-components/copilot-chat.mjs 794.00 B
|
|
78
|
+
ESM dist/components/chat-components/default-empty-screen.mjs 319.00 B
|
|
79
|
+
ESM dist/components/chat-components/prompt-form.mjs 337.00 B
|
|
80
|
+
ESM dist/components/chat-components/theme-toggle.mjs 1.04 KB
|
|
81
|
+
ESM dist/components/chat-components/markdown.mjs 170.00 B
|
|
82
|
+
ESM dist/components/chat-components/toaster.mjs 146.00 B
|
|
83
|
+
ESM dist/components/chat-components/chat-message.mjs 409.00 B
|
|
84
|
+
ESM dist/components/chat-components/chat-panel.mjs 370.00 B
|
|
85
|
+
ESM dist/components/chat-components/ui/dropdown-menu.mjs 3.97 KB
|
|
86
|
+
ESM dist/components/chat-components/chat-list.mjs 473.00 B
|
|
87
|
+
ESM dist/components/chat-components/external-link.mjs 166.00 B
|
|
88
|
+
ESM dist/components/chat-components/chat-message-actions.mjs 319.00 B
|
|
89
|
+
ESM dist/components/chat-components/chat-scroll-anchor.mjs 210.00 B
|
|
90
|
+
ESM dist/components/chat-components/ui/separator.mjs 203.00 B
|
|
91
|
+
ESM dist/components/chat-components/ui/badge.mjs 1.18 KB
|
|
95
92
|
ESM dist/types/types.mjs.map 51.00 B
|
|
96
|
-
ESM dist/
|
|
97
|
-
ESM dist/chunk-U6NJWGTV.mjs.map 51.00 B
|
|
98
|
-
ESM dist/chunk-IU3WTXLQ.mjs.map 51.00 B
|
|
93
|
+
ESM dist/components/chat-components/clear-history.mjs 2.83 KB
|
|
99
94
|
ESM dist/lib/utils.test.mjs.map 349.00 B
|
|
100
|
-
ESM dist/components/
|
|
95
|
+
ESM dist/components/index.mjs.map 51.00 B
|
|
96
|
+
ESM dist/context/index.mjs.map 51.00 B
|
|
97
|
+
ESM dist/chunk-IU3WTXLQ.mjs.map 51.00 B
|
|
98
|
+
ESM dist/chunk-7NSRDJ5C.mjs.map 51.00 B
|
|
99
|
+
ESM dist/chunk-MRXNTQOX.mjs.map 71.00 B
|
|
100
|
+
ESM dist/hooks/index.mjs.map 51.00 B
|
|
101
|
+
ESM dist/index.mjs.map 51.00 B
|
|
102
|
+
ESM dist/chunk-VSNDSL6W.mjs.map 3.07 KB
|
|
103
|
+
ESM dist/chunk-KXJV37FS.mjs.map 1.14 KB
|
|
104
|
+
ESM dist/chunk-DOMJCSI6.mjs.map 1.27 KB
|
|
105
|
+
ESM dist/chunk-LMCFSE4V.mjs.map 1.30 KB
|
|
106
|
+
ESM dist/chunk-I2AB5FK4.mjs.map 6.66 KB
|
|
107
|
+
ESM dist/chunk-ZB6JHNDT.mjs.map 3.81 KB
|
|
108
|
+
ESM dist/chunk-6LRNF2VU.mjs.map 556.00 B
|
|
109
|
+
ESM dist/chunk-HKSY5T7Y.mjs.map 6.33 KB
|
|
110
|
+
ESM dist/lib/utils.mjs.map 51.00 B
|
|
111
|
+
ESM dist/chunk-APH6ZQHG.mjs.map 2.95 KB
|
|
112
|
+
ESM dist/chunk-V6QYUEJR.mjs.map 2.71 KB
|
|
113
|
+
ESM dist/chunk-6UJWRTL6.mjs.map 1.74 KB
|
|
114
|
+
ESM dist/chunk-2NO6SF5H.mjs.map 2.44 KB
|
|
115
|
+
ESM dist/chunk-TUPGAO7T.mjs.map 3.45 KB
|
|
116
|
+
ESM dist/chunk-RSONJDLO.mjs.map 1.29 KB
|
|
117
|
+
ESM dist/chunk-KR7MH7XO.mjs.map 27.32 KB
|
|
118
|
+
ESM dist/chunk-N7KB3Z57.mjs.map 1.01 KB
|
|
101
119
|
ESM dist/chunk-H4VKQGVU.mjs.map 51.00 B
|
|
102
|
-
ESM dist/
|
|
103
|
-
ESM dist/
|
|
104
|
-
ESM dist/
|
|
105
|
-
ESM dist/
|
|
106
|
-
ESM dist/
|
|
107
|
-
ESM dist/
|
|
108
|
-
ESM dist/
|
|
120
|
+
ESM dist/chunk-MC6KTH4X.mjs.map 520.00 B
|
|
121
|
+
ESM dist/hooks/use-enter-submit.mjs.map 51.00 B
|
|
122
|
+
ESM dist/chunk-BIPCPNHG.mjs.map 970.00 B
|
|
123
|
+
ESM dist/chunk-6LAC5RA2.mjs.map 1.19 KB
|
|
124
|
+
ESM dist/chunk-BS6RR2DJ.mjs.map 1.55 KB
|
|
125
|
+
ESM dist/chunk-U6NJWGTV.mjs.map 51.00 B
|
|
126
|
+
ESM dist/hooks/use-copy-to-clipboard.mjs.map 51.00 B
|
|
127
|
+
ESM dist/hooks/use-at-bottom.mjs.map 51.00 B
|
|
128
|
+
ESM dist/chunk-7KPMJBGH.mjs.map 1.95 KB
|
|
129
|
+
ESM dist/types/index.mjs.map 51.00 B
|
|
130
|
+
ESM dist/chunk-UKKJ6H2K.mjs.map 4.13 KB
|
|
109
131
|
ESM dist/components/chat-components/ui/textarea.mjs.map 1.16 KB
|
|
110
|
-
ESM dist/
|
|
111
|
-
ESM dist/components/chat-components/ui/dialog.mjs.map 5.81 KB
|
|
112
|
-
ESM dist/components/chat-components/ui/input.mjs.map 1.24 KB
|
|
132
|
+
ESM dist/chunk-TVTG3V4F.mjs.map 1.75 KB
|
|
113
133
|
ESM dist/components/sidebar/copilot-sidebar-ui-provider.mjs.map 51.00 B
|
|
114
|
-
ESM dist/components/chat-components/
|
|
115
|
-
ESM dist/
|
|
116
|
-
ESM dist/components/
|
|
134
|
+
ESM dist/components/chat-components/ui/label.mjs.map 1.18 KB
|
|
135
|
+
ESM dist/components/chat-components/ui/select.mjs.map 5.80 KB
|
|
136
|
+
ESM dist/components/chat-components/ui/sheet.mjs.map 5.43 KB
|
|
137
|
+
ESM dist/components/chat-components/ui/alert-dialog.mjs.map 51.00 B
|
|
117
138
|
ESM dist/components/chat-components/ui/codeblock.mjs.map 51.00 B
|
|
139
|
+
ESM dist/components/chat-components/ui/button.mjs.map 51.00 B
|
|
140
|
+
ESM dist/components/chat-components/ui/switch.mjs.map 1.65 KB
|
|
141
|
+
ESM dist/components/sidebar/copilot-sidebar.mjs.map 51.00 B
|
|
118
142
|
ESM dist/components/chat-components/copilot-chat.mjs.map 51.00 B
|
|
119
|
-
ESM dist/components/chat-components/
|
|
120
|
-
ESM dist/components/chat-components/ui/badge.mjs.map 1.69 KB
|
|
121
|
-
ESM dist/components/chat-components/clear-history.mjs.map 3.39 KB
|
|
143
|
+
ESM dist/components/chat-components/ui/tooltip.mjs.map 51.00 B
|
|
122
144
|
ESM dist/components/chat-components/prompt-form.mjs.map 51.00 B
|
|
123
|
-
ESM dist/
|
|
145
|
+
ESM dist/components/chat-components/default-empty-screen.mjs.map 51.00 B
|
|
146
|
+
ESM dist/components/chat-components/theme-toggle.mjs.map 1.38 KB
|
|
124
147
|
ESM dist/components/chat-components/toaster.mjs.map 214.00 B
|
|
125
|
-
ESM dist/types/index.mjs.map 51.00 B
|
|
126
|
-
ESM dist/components/chat-components/ui/button.mjs.map 51.00 B
|
|
127
|
-
ESM dist/components/chat-components/chat-scroll-anchor.mjs.map 51.00 B
|
|
128
|
-
ESM dist/index.mjs.map 51.00 B
|
|
129
148
|
ESM dist/components/chat-components/markdown.mjs.map 51.00 B
|
|
130
|
-
ESM dist/components/
|
|
131
|
-
ESM dist/components/chat-components/chat-list.mjs.map 51.00 B
|
|
132
|
-
ESM dist/chunk-MC6KTH4X.mjs.map 520.00 B
|
|
133
|
-
ESM dist/chunk-2NO6SF5H.mjs.map 2.44 KB
|
|
134
|
-
ESM dist/chunk-VSNDSL6W.mjs.map 3.07 KB
|
|
135
|
-
ESM dist/components/chat-components/ui/alert-dialog.mjs.map 51.00 B
|
|
149
|
+
ESM dist/components/chat-components/chat-message.mjs.map 51.00 B
|
|
136
150
|
ESM dist/components/chat-components/chat-panel.mjs.map 51.00 B
|
|
137
|
-
ESM dist/
|
|
138
|
-
ESM dist/
|
|
139
|
-
ESM dist/
|
|
140
|
-
ESM dist/chunk-KXJV37FS.mjs.map 1.14 KB
|
|
141
|
-
ESM dist/chunk-ZB6JHNDT.mjs.map 3.81 KB
|
|
142
|
-
ESM dist/chunk-6UJWRTL6.mjs.map 1.74 KB
|
|
143
|
-
ESM dist/chunk-BS6RR2DJ.mjs.map 1.55 KB
|
|
144
|
-
ESM dist/chunk-APH6ZQHG.mjs.map 2.95 KB
|
|
151
|
+
ESM dist/components/chat-components/chat-list.mjs.map 51.00 B
|
|
152
|
+
ESM dist/components/chat-components/ui/dropdown-menu.mjs.map 5.84 KB
|
|
153
|
+
ESM dist/components/chat-components/external-link.mjs.map 51.00 B
|
|
145
154
|
ESM dist/components/chat-components/chat-message-actions.mjs.map 51.00 B
|
|
146
|
-
ESM dist/
|
|
147
|
-
ESM dist/
|
|
148
|
-
ESM dist/
|
|
149
|
-
ESM dist/
|
|
150
|
-
ESM dist/
|
|
151
|
-
ESM dist/
|
|
152
|
-
ESM dist/
|
|
153
|
-
ESM dist/chunk-6LRNF2VU.mjs.map 556.00 B
|
|
154
|
-
ESM dist/hooks/use-enter-submit.mjs.map 51.00 B
|
|
155
|
-
ESM dist/chunk-V6QYUEJR.mjs.map 2.71 KB
|
|
156
|
-
ESM dist/chunk-N7KB3Z57.mjs.map 1.01 KB
|
|
157
|
-
ESM dist/chunk-BIPCPNHG.mjs.map 970.00 B
|
|
158
|
-
ESM dist/chunk-HKSY5T7Y.mjs.map 6.33 KB
|
|
159
|
-
ESM dist/chunk-TVTG3V4F.mjs.map 1.75 KB
|
|
160
|
-
ESM dist/chunk-UKKJ6H2K.mjs.map 4.13 KB
|
|
161
|
-
ESM dist/chunk-6LAC5RA2.mjs.map 1.19 KB
|
|
155
|
+
ESM dist/components/chat-components/chat-scroll-anchor.mjs.map 51.00 B
|
|
156
|
+
ESM dist/components/chat-components/ui/separator.mjs.map 51.00 B
|
|
157
|
+
ESM dist/components/chat-components/ui/badge.mjs.map 1.69 KB
|
|
158
|
+
ESM dist/components/chat-components/ui/icons.mjs.map 51.00 B
|
|
159
|
+
ESM dist/components/chat-components/ui/dialog.mjs.map 5.81 KB
|
|
160
|
+
ESM dist/components/chat-components/ui/input.mjs.map 1.24 KB
|
|
161
|
+
ESM dist/components/chat-components/clear-history.mjs.map 3.39 KB
|
|
162
162
|
ESM dist/components/sidebar/sidebar-context.mjs.map 51.00 B
|
|
163
|
-
ESM
|
|
164
|
-
|
|
165
|
-
DTS
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
DTS
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
163
|
+
ESM ⚡️ Build success in 853ms
|
|
164
|
+
DTS ⚡️ Build success in 2376ms
|
|
165
|
+
DTS dist/index.d.ts 587.00 B
|
|
166
|
+
DTS dist/components/chat-components/copilot-chat.d.ts 496.00 B
|
|
167
|
+
DTS dist/components/chat-components/ui/tooltip.d.ts 640.00 B
|
|
168
|
+
DTS dist/components/sidebar/copilot-sidebar-ui-provider.d.ts 276.00 B
|
|
169
|
+
DTS dist/components/sidebar/copilot-sidebar.d.ts 181.00 B
|
|
170
|
+
DTS dist/components/sidebar/sidebar-context.d.ts 273.00 B
|
|
171
|
+
DTS dist/components/chat-components/default-empty-screen.d.ts 267.00 B
|
|
172
|
+
DTS dist/components/index.d.ts 521.00 B
|
|
173
|
+
DTS dist/context/index.d.ts 1.00 B
|
|
174
|
+
DTS dist/hooks/index.d.ts 1.00 B
|
|
175
|
+
DTS dist/hooks/use-at-bottom.d.ts 81.00 B
|
|
176
|
+
DTS dist/hooks/use-copy-to-clipboard.d.ts 267.00 B
|
|
177
|
+
DTS dist/hooks/use-enter-submit.d.ts 219.00 B
|
|
178
|
+
DTS dist/lib/utils.test.d.ts 1.00 B
|
|
179
|
+
DTS dist/lib/utils.d.ts 357.00 B
|
|
180
|
+
DTS dist/types/index.d.ts 1.00 B
|
|
181
|
+
DTS dist/types/types.d.ts 335.00 B
|
|
182
|
+
DTS dist/components/chat-components/chat-list.d.ts 172.00 B
|
|
183
|
+
DTS dist/components/chat-components/chat-message-actions.d.ts 268.00 B
|
|
184
|
+
DTS dist/components/chat-components/chat-message.d.ts 211.00 B
|
|
185
|
+
DTS dist/components/chat-components/chat-panel.d.ts 364.00 B
|
|
186
|
+
DTS dist/components/chat-components/chat-scroll-anchor.d.ts 189.00 B
|
|
187
|
+
DTS dist/components/chat-components/clear-history.d.ts 258.00 B
|
|
188
|
+
DTS dist/components/chat-components/external-link.d.ts 145.00 B
|
|
189
|
+
DTS dist/components/chat-components/markdown.d.ts 156.00 B
|
|
190
|
+
DTS dist/components/chat-components/prompt-form.d.ts 328.00 B
|
|
191
|
+
DTS dist/components/chat-components/theme-toggle.d.ts 70.00 B
|
|
192
|
+
DTS dist/components/chat-components/toaster.d.ts 43.00 B
|
|
193
|
+
DTS dist/components/chat-components/ui/alert-dialog.d.ts 1.80 KB
|
|
194
|
+
DTS dist/components/chat-components/ui/badge.d.ts 619.00 B
|
|
195
|
+
DTS dist/components/chat-components/ui/button.d.ts 766.00 B
|
|
196
|
+
DTS dist/components/chat-components/ui/codeblock.d.ts 392.00 B
|
|
197
|
+
DTS dist/components/chat-components/ui/dialog.d.ts 1.23 KB
|
|
198
|
+
DTS dist/components/chat-components/ui/dropdown-menu.d.ts 2.28 KB
|
|
199
|
+
DTS dist/components/chat-components/ui/icons.d.ts 2.96 KB
|
|
200
|
+
DTS dist/components/chat-components/ui/input.d.ts 247.00 B
|
|
201
|
+
DTS dist/components/chat-components/ui/label.d.ts 526.00 B
|
|
202
|
+
DTS dist/components/chat-components/ui/select.d.ts 1.44 KB
|
|
203
|
+
DTS dist/components/chat-components/ui/separator.d.ts 303.00 B
|
|
204
|
+
DTS dist/components/chat-components/ui/sheet.d.ts 1.36 KB
|
|
205
|
+
DTS dist/components/chat-components/ui/switch.d.ts 293.00 B
|
|
206
|
+
DTS dist/components/chat-components/ui/textarea.d.ts 271.00 B
|
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Message } from 'ai';
|
|
2
|
+
|
|
3
|
+
interface ChatMessageActionsProps extends React.ComponentProps<"div"> {
|
|
4
|
+
message: Message;
|
|
5
|
+
}
|
|
6
|
+
declare function ChatMessageActions({ message, className, ...props }: ChatMessageActionsProps): JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { ChatMessageActions };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseChatHelpers } from 'ai/react';
|
|
2
|
+
|
|
3
|
+
interface ChatPanelProps extends Pick<UseChatHelpers, "append" | "isLoading" | "reload" | "messages" | "stop" | "input" | "setInput"> {
|
|
4
|
+
id?: string;
|
|
5
|
+
}
|
|
6
|
+
declare function ChatPanel({ id, isLoading, stop, append, reload, input, setInput, messages, }: ChatPanelProps): JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { ChatPanel, ChatPanelProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ServerActionResult } from '../../types/types.js';
|
|
2
|
+
import 'ai';
|
|
3
|
+
|
|
4
|
+
interface ClearHistoryProps {
|
|
5
|
+
clearChats: () => ServerActionResult<void>;
|
|
6
|
+
}
|
|
7
|
+
declare function ClearHistory({ clearChats }: ClearHistoryProps): JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { ClearHistory };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { EmptyScreenProps } from './default-empty-screen.js';
|
|
3
|
+
import { UseCopilotChatOptions } from '@copilotkit/react-core';
|
|
4
|
+
|
|
5
|
+
interface ChatComponentInjectionsProps {
|
|
6
|
+
EmptyScreen?: React__default.FC<EmptyScreenProps>;
|
|
7
|
+
}
|
|
8
|
+
interface CopilotChatProps extends UseCopilotChatOptions, ChatComponentInjectionsProps {
|
|
9
|
+
}
|
|
10
|
+
declare function CopilotChat({ id, initialMessages, makeSystemMessage, EmptyScreen, }: CopilotChatProps): JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { CopilotChat };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface EmptyScreenProps {
|
|
4
|
+
setInput: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
5
|
+
}
|
|
6
|
+
declare const DefaultEmptyScreen: React__default.FC<EmptyScreenProps>;
|
|
7
|
+
|
|
8
|
+
export { DefaultEmptyScreen, EmptyScreenProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UseChatHelpers } from 'ai/react';
|
|
2
|
+
|
|
3
|
+
interface PromptProps extends Pick<UseChatHelpers, "input" | "setInput"> {
|
|
4
|
+
onSubmit: (value: string) => Promise<void>;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function PromptForm({ onSubmit, input, setInput, isLoading, }: PromptProps): JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { PromptForm, PromptProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toaster } from 'react-hot-toast';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
+
|
|
4
|
+
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
5
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const AlertDialogHeader: {
|
|
8
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
declare const AlertDialogFooter: {
|
|
12
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
16
|
+
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
17
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
|
|
20
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const badgeVariants: (props?: ({
|
|
6
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
7
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
8
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
9
|
+
}
|
|
10
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { Badge, BadgeProps, badgeVariants };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const buttonVariants: (props?: ({
|
|
6
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
7
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
8
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
|
|
14
|
+
export { Button, ButtonProps, buttonVariants };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
language: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
interface languageMap {
|
|
8
|
+
[key: string]: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
declare const programmingLanguages: languageMap;
|
|
11
|
+
declare const generateRandomString: (length: number, lowercase?: boolean) => string;
|
|
12
|
+
declare const CodeBlock: FC<Props>;
|
|
13
|
+
|
|
14
|
+
export { CodeBlock, generateRandomString, programmingLanguages };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
|
|
4
|
+
declare const Dialog: React.FC<SheetPrimitive.DialogProps>;
|
|
5
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const DialogHeader: {
|
|
8
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
declare const DialogFooter: {
|
|
12
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
16
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
17
|
+
|
|
18
|
+
export { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
|
|
4
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
5
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
8
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
9
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
13
|
+
inset?: boolean | undefined;
|
|
14
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
16
|
+
inset?: boolean | undefined;
|
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const DropdownMenuShortcut: {
|
|
20
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuTrigger };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare function IconNextChat({ className, inverted, ...props }: React.ComponentProps<"svg"> & {
|
|
4
|
+
inverted?: boolean;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
declare function IconOpenAI({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
7
|
+
declare function IconVercel({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
8
|
+
declare function IconGitHub({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
9
|
+
declare function IconSeparator({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
10
|
+
declare function IconArrowDown({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
11
|
+
declare function IconArrowRight({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
12
|
+
declare function IconUser({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
13
|
+
declare function IconPlus({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
14
|
+
declare function IconArrowElbow({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
15
|
+
declare function IconSpinner({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
16
|
+
declare function IconMessage({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
17
|
+
declare function IconTrash({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
18
|
+
declare function IconRefresh({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
19
|
+
declare function IconStop({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
20
|
+
declare function IconSidebar({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
21
|
+
declare function IconMoon({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
22
|
+
declare function IconSun({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
23
|
+
declare function IconCopy({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
24
|
+
declare function IconCheck({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
25
|
+
declare function IconDownload({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
26
|
+
declare function IconClose({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
27
|
+
declare function IconEdit({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
28
|
+
declare function IconShare({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
29
|
+
declare function IconUsers({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
30
|
+
declare function IconExternalLink({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
31
|
+
declare function IconChevronUpDown({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
|
|
32
|
+
|
|
33
|
+
export { IconArrowDown, IconArrowElbow, IconArrowRight, IconCheck, IconChevronUpDown, IconClose, IconCopy, IconDownload, IconEdit, IconExternalLink, IconGitHub, IconMessage, IconMoon, IconNextChat, IconOpenAI, IconPlus, IconRefresh, IconSeparator, IconShare, IconSidebar, IconSpinner, IconStop, IconSun, IconTrash, IconUser, IconUsers, IconVercel };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_dist_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
+
|
|
8
|
+
export { Label };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
+
|
|
4
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
5
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
|
|
13
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
|
|
4
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
|
|
6
|
+
export { Separator };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
|
|
4
|
+
declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
|
|
5
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SheetContent: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SheetHeader: {
|
|
9
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
declare const SheetFooter: {
|
|
13
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
+
|
|
19
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
3
|
+
|
|
4
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
|
|
6
|
+
export { Switch };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
6
|
+
|
|
7
|
+
export { Textarea, TextareaProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
|
|
4
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
5
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
6
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { CopilotChat } from './chat-components/copilot-chat.js';
|
|
2
|
+
export { Tooltip, TooltipProvider } from './chat-components/ui/tooltip.js';
|
|
3
|
+
export { CopilotSidebarUIProvider } from './sidebar/copilot-sidebar-ui-provider.js';
|
|
4
|
+
export { CopilotSidebar } from './sidebar/copilot-sidebar.js';
|
|
5
|
+
export { CopilotSidebarContext, CopilotSidebarContextType } from './sidebar/sidebar-context.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import './chat-components/default-empty-screen.js';
|
|
8
|
+
import '@copilotkit/react-core';
|
|
9
|
+
import '@radix-ui/react-tooltip';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface CopilotSidebarUIProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare function CopilotSidebarUIProvider({ children, }: CopilotSidebarUIProviderProps): JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { CopilotSidebarUIProvider, CopilotSidebarUIProviderProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CopilotSidebarContextType {
|
|
4
|
+
isSidebarOpen: boolean;
|
|
5
|
+
toggleSidebar: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const CopilotSidebarContext: React.Context<CopilotSidebarContextType>;
|
|
8
|
+
|
|
9
|
+
export { CopilotSidebarContext, CopilotSidebarContextType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface useCopyToClipboardProps {
|
|
2
|
+
timeout?: number;
|
|
3
|
+
}
|
|
4
|
+
declare function useCopyToClipboard({ timeout, }: useCopyToClipboardProps): {
|
|
5
|
+
isCopied: Boolean;
|
|
6
|
+
copyToClipboard: (value: string) => void;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { useCopyToClipboard, useCopyToClipboardProps };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { CopilotChat } from './components/chat-components/copilot-chat.js';
|
|
2
|
+
export { Tooltip, TooltipProvider } from './components/chat-components/ui/tooltip.js';
|
|
3
|
+
export { CopilotSidebarUIProvider } from './components/sidebar/copilot-sidebar-ui-provider.js';
|
|
4
|
+
export { CopilotSidebar } from './components/sidebar/copilot-sidebar.js';
|
|
5
|
+
export { CopilotSidebarContext, CopilotSidebarContextType } from './components/sidebar/sidebar-context.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import './components/chat-components/default-empty-screen.js';
|
|
8
|
+
import '@copilotkit/react-core';
|
|
9
|
+
import '@radix-ui/react-tooltip';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
|
|
3
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
4
|
+
declare const nanoid: (size?: number | undefined) => string;
|
|
5
|
+
declare function fetcher<JSON = any>(input: RequestInfo, init?: RequestInit): Promise<JSON>;
|
|
6
|
+
declare function formatDate(input: string | number | Date): string;
|
|
7
|
+
|
|
8
|
+
export { cn, fetcher, formatDate, nanoid };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Message } from 'ai';
|
|
2
|
+
|
|
3
|
+
interface Chat extends Record<string, any> {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
userId: string;
|
|
8
|
+
path: string;
|
|
9
|
+
messages: Message[];
|
|
10
|
+
sharePath?: string;
|
|
11
|
+
}
|
|
12
|
+
type ServerActionResult<Result> = Promise<Result | {
|
|
13
|
+
error: string;
|
|
14
|
+
}>;
|
|
15
|
+
|
|
16
|
+
export { Chat, ServerActionResult };
|
package/package.json
CHANGED
|
@@ -4,16 +4,17 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.9.0-alpha.
|
|
7
|
+
"version": "0.9.0-alpha.8",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"**/*.css"
|
|
10
10
|
],
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"module": "./dist/index.mjs",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": "./dist/index.mjs",
|
|
15
15
|
"./styles.css": "./dist/index.css"
|
|
16
16
|
},
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
17
18
|
"license": "MIT",
|
|
18
19
|
"peerDependencies": {
|
|
19
20
|
"react": "^18.2.0"
|
|
@@ -30,9 +31,9 @@
|
|
|
30
31
|
"ts-jest": "^29.1.1",
|
|
31
32
|
"tsup": "^6.1.3",
|
|
32
33
|
"typescript": "^4.9.4",
|
|
33
|
-
"eslint-config-custom": "0.2.0",
|
|
34
34
|
"tailwind-config": "0.1.0",
|
|
35
|
-
"
|
|
35
|
+
"eslint-config-custom": "0.2.0",
|
|
36
|
+
"tsconfig": "0.4.0-alpha.1"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
39
|
"@heroicons/react": "^2.0.18",
|