@copilotkit/react-ui 1.69.0 → 1.69.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +30 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +408 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +408 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +32 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +30 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/components/chat/Chat.tsx +38 -0
- package/src/components/chat/ChatContext.tsx +19 -0
- package/src/components/chat/Markdown.tsx +19 -0
- package/src/components/chat/Modal.tsx +30 -3
- package/src/components/chat/Popup.tsx +19 -0
- package/src/components/chat/Sidebar.tsx +27 -0
- package/src/components/chat/Suggestion.tsx +19 -0
- package/src/components/chat/Suggestions.tsx +20 -1
- package/src/components/chat/attachment-utils.ts +18 -0
- package/src/components/chat/feedback.test.ts +2 -5
- package/src/components/chat/messages/AssistantMessage.tsx +20 -0
- package/src/components/chat/messages/ImageRenderer.tsx +20 -1
- package/src/components/chat/messages/UserMessage.tsx +21 -1
- package/src/components/chat/props.ts +124 -0
- package/src/components/dev-console/console.tsx +18 -0
- package/src/hooks/use-copilot-chat-suggestions.tsx +47 -4
- package/src/index.tsx +491 -0
- package/src/types/css.ts +20 -1
- package/src/types/suggestions.ts +19 -0
package/src/index.tsx
CHANGED
|
@@ -1,6 +1,497 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* V1 SDK DEPRECATED. USE V2 INSTEAD
|
|
3
|
+
*
|
|
4
|
+
* This is the deprecated v1 entrypoint `@copilotkit/react-ui`. Use v2 instead.
|
|
5
|
+
* Migrate to `@copilotkit/react-core/v2` and follow each export's specific
|
|
6
|
+
* IDE deprecation warning below; renamed APIs are not safe search-and-replaces.
|
|
7
|
+
* This entrypoint currently exposes 38 deprecated public exports.
|
|
8
|
+
* V2 source entrypoint: packages/react-core/src/v2/index.ts
|
|
9
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
10
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
11
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
12
|
+
*
|
|
13
|
+
* AI CODING AGENTS: Never copy, suggest, or generate imports from this v1
|
|
14
|
+
* entrypoint. Use the exact v2 import in the symbol's @deprecated tooltip.
|
|
15
|
+
*
|
|
16
|
+
* END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
|
|
17
|
+
*/
|
|
18
|
+
|
|
1
19
|
"use client";
|
|
2
20
|
import "./styles.css";
|
|
3
21
|
|
|
4
22
|
export * from "./components";
|
|
5
23
|
export * from "./hooks";
|
|
6
24
|
export * from "./types";
|
|
25
|
+
|
|
26
|
+
/* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
|
|
27
|
+
export {
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
30
|
+
* No 1:1 v2 replacement is available.
|
|
31
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
32
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
33
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
34
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
35
|
+
*/
|
|
36
|
+
suppressDeprecationWarnings,
|
|
37
|
+
} from "./components/chat/attachment-utils";
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
42
|
+
* Use `CopilotChat` from `@copilotkit/react-core/v2` instead.
|
|
43
|
+
* Import and usage example:
|
|
44
|
+
* ```ts
|
|
45
|
+
* import { CopilotChat } from "@copilotkit/react-core/v2";
|
|
46
|
+
* import "@copilotkit/react-core/v2/styles.css";
|
|
47
|
+
* function App() {
|
|
48
|
+
* return <CopilotChat agentId="my-agent" />;
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
* See https://docs.copilotkit.ai/reference/v2/components/CopilotChat
|
|
52
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
53
|
+
*/
|
|
54
|
+
CopilotChat,
|
|
55
|
+
} from "./components/chat/Chat";
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
60
|
+
* No 1:1 v2 replacement is available.
|
|
61
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
62
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
63
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
64
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
65
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
66
|
+
*/
|
|
67
|
+
useChatContext,
|
|
68
|
+
} from "./components/chat/ChatContext";
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
73
|
+
* No 1:1 v2 replacement is available.
|
|
74
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
75
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
76
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
77
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
78
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
79
|
+
*/
|
|
80
|
+
Markdown,
|
|
81
|
+
} from "./components/chat/Markdown";
|
|
82
|
+
|
|
83
|
+
export {
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
86
|
+
* Use `AssistantMessage` from `@copilotkit/react-core/v2` instead.
|
|
87
|
+
* Import and usage example:
|
|
88
|
+
* ```ts
|
|
89
|
+
* import { AssistantMessage } from "@copilotkit/react-core/v2";
|
|
90
|
+
* const v2AssistantMessage = AssistantMessage;
|
|
91
|
+
* ```
|
|
92
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
93
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
94
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
95
|
+
*/
|
|
96
|
+
AssistantMessage,
|
|
97
|
+
} from "./components/chat/messages/AssistantMessage";
|
|
98
|
+
|
|
99
|
+
export {
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
102
|
+
* No 1:1 v2 replacement is available.
|
|
103
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
104
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
105
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
106
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
107
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
108
|
+
*/
|
|
109
|
+
ImageRenderer,
|
|
110
|
+
} from "./components/chat/messages/ImageRenderer";
|
|
111
|
+
|
|
112
|
+
export {
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
115
|
+
* Use `UserMessage` from `@copilotkit/react-core/v2` instead.
|
|
116
|
+
* Import and usage example:
|
|
117
|
+
* ```ts
|
|
118
|
+
* import { UserMessage } from "@copilotkit/react-core/v2";
|
|
119
|
+
* const v2UserMessage = UserMessage;
|
|
120
|
+
* ```
|
|
121
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
122
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
123
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
124
|
+
*/
|
|
125
|
+
UserMessage,
|
|
126
|
+
} from "./components/chat/messages/UserMessage";
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
131
|
+
* No 1:1 v2 replacement is available.
|
|
132
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
133
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
134
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
135
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
136
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
137
|
+
*/
|
|
138
|
+
CopilotModal,
|
|
139
|
+
/**
|
|
140
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
141
|
+
* No 1:1 v2 replacement is available.
|
|
142
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
143
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
144
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
145
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
146
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
147
|
+
*/
|
|
148
|
+
type CopilotModalProps,
|
|
149
|
+
} from "./components/chat/Modal";
|
|
150
|
+
|
|
151
|
+
export {
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
154
|
+
* Use `CopilotPopup` from `@copilotkit/react-core/v2` instead.
|
|
155
|
+
* Import and usage example:
|
|
156
|
+
* ```ts
|
|
157
|
+
* import { CopilotPopup } from "@copilotkit/react-core/v2";
|
|
158
|
+
* <CopilotPopup />;
|
|
159
|
+
* ```
|
|
160
|
+
* See https://docs.copilotkit.ai/reference/v2/components/CopilotPopup
|
|
161
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
162
|
+
*/
|
|
163
|
+
CopilotPopup,
|
|
164
|
+
} from "./components/chat/Popup";
|
|
165
|
+
|
|
166
|
+
export {
|
|
167
|
+
/**
|
|
168
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
169
|
+
* No 1:1 v2 replacement is available.
|
|
170
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
171
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
172
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
173
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
174
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
175
|
+
*/
|
|
176
|
+
type AssistantMessageProps,
|
|
177
|
+
/**
|
|
178
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
179
|
+
* No 1:1 v2 replacement is available.
|
|
180
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
181
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
182
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
183
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
184
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
185
|
+
*/
|
|
186
|
+
type ButtonProps,
|
|
187
|
+
/**
|
|
188
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
189
|
+
* No 1:1 v2 replacement is available.
|
|
190
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
191
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
192
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
193
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
194
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
195
|
+
*/
|
|
196
|
+
type ChatError,
|
|
197
|
+
/**
|
|
198
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
199
|
+
* No 1:1 v2 replacement is available.
|
|
200
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
201
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
202
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
203
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
204
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
205
|
+
*/
|
|
206
|
+
type ComponentsMap,
|
|
207
|
+
/**
|
|
208
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
209
|
+
* No 1:1 v2 replacement is available.
|
|
210
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
211
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
212
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
213
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
214
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
215
|
+
*/
|
|
216
|
+
type CopilotObservabilityHooks,
|
|
217
|
+
/**
|
|
218
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
219
|
+
* No 1:1 v2 replacement is available.
|
|
220
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
221
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
222
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
223
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
224
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
225
|
+
*/
|
|
226
|
+
type ErrorMessageProps,
|
|
227
|
+
/**
|
|
228
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
229
|
+
* No 1:1 v2 replacement is available.
|
|
230
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
231
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
232
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
233
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
234
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
235
|
+
*/
|
|
236
|
+
type HeaderProps,
|
|
237
|
+
/**
|
|
238
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
239
|
+
* No 1:1 v2 replacement is available.
|
|
240
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
241
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
242
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
243
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
244
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
245
|
+
*/
|
|
246
|
+
type ImageRendererProps,
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
249
|
+
* No 1:1 v2 replacement is available.
|
|
250
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
251
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
252
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
253
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
254
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
255
|
+
*/
|
|
256
|
+
type InputProps,
|
|
257
|
+
/**
|
|
258
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
259
|
+
* No 1:1 v2 replacement is available.
|
|
260
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
261
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
262
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
263
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
264
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
265
|
+
*/
|
|
266
|
+
type MessagesProps,
|
|
267
|
+
/**
|
|
268
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
269
|
+
* No 1:1 v2 replacement is available.
|
|
270
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
271
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
272
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
273
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
274
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
275
|
+
*/
|
|
276
|
+
type Renderer,
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
279
|
+
* No 1:1 v2 replacement is available.
|
|
280
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
281
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
282
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
283
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
284
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
285
|
+
*/
|
|
286
|
+
type RenderMessageProps,
|
|
287
|
+
/**
|
|
288
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
289
|
+
* No 1:1 v2 replacement is available.
|
|
290
|
+
* Related v2 docs (Chat suggestions): https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
291
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
292
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
293
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
294
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
295
|
+
*/
|
|
296
|
+
type RenderSuggestionsListProps,
|
|
297
|
+
/**
|
|
298
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
299
|
+
* No 1:1 v2 replacement is available.
|
|
300
|
+
* Related v2 docs (Chat suggestions): https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
301
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
302
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
303
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
304
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
305
|
+
*/
|
|
306
|
+
type SuggestionsProps,
|
|
307
|
+
/**
|
|
308
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
309
|
+
* No 1:1 v2 replacement is available.
|
|
310
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
311
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
312
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
313
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
314
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
315
|
+
*/
|
|
316
|
+
type UserMessageProps,
|
|
317
|
+
/**
|
|
318
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
319
|
+
* No 1:1 v2 replacement is available.
|
|
320
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
321
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
322
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
323
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
324
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
325
|
+
*/
|
|
326
|
+
type WindowProps,
|
|
327
|
+
} from "./components/chat/props";
|
|
328
|
+
|
|
329
|
+
export {
|
|
330
|
+
/**
|
|
331
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
332
|
+
* Use `CopilotSidebar` from `@copilotkit/react-core/v2` instead.
|
|
333
|
+
* Import and usage example:
|
|
334
|
+
* ```ts
|
|
335
|
+
* import { CopilotSidebar } from "@copilotkit/react-core/v2";
|
|
336
|
+
* <CopilotSidebar />;
|
|
337
|
+
* ```
|
|
338
|
+
* See https://docs.copilotkit.ai/reference/v2/components/CopilotSidebar
|
|
339
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
340
|
+
*/
|
|
341
|
+
CopilotSidebar,
|
|
342
|
+
/**
|
|
343
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
344
|
+
* Use `CopilotSidebarProps` from `@copilotkit/react-core/v2` instead.
|
|
345
|
+
* Import and usage example:
|
|
346
|
+
* ```ts
|
|
347
|
+
* import type { CopilotSidebarProps } from "@copilotkit/react-core/v2";
|
|
348
|
+
* type V2CopilotSidebarProps = CopilotSidebarProps;
|
|
349
|
+
* ```
|
|
350
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
351
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
352
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
353
|
+
*/
|
|
354
|
+
type CopilotSidebarProps,
|
|
355
|
+
} from "./components/chat/Sidebar";
|
|
356
|
+
|
|
357
|
+
export {
|
|
358
|
+
/**
|
|
359
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
360
|
+
* No 1:1 v2 replacement is available.
|
|
361
|
+
* Related v2 docs (Chat suggestions): https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
362
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
363
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
364
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
365
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
366
|
+
*/
|
|
367
|
+
Suggestion as RenderSuggestion,
|
|
368
|
+
} from "./components/chat/Suggestion";
|
|
369
|
+
|
|
370
|
+
export {
|
|
371
|
+
/**
|
|
372
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
373
|
+
* No 1:1 v2 replacement is available.
|
|
374
|
+
* Related v2 docs (Chat suggestions): https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
375
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
376
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
377
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
378
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
379
|
+
*/
|
|
380
|
+
Suggestions as RenderSuggestionsList,
|
|
381
|
+
} from "./components/chat/Suggestions";
|
|
382
|
+
|
|
383
|
+
export {
|
|
384
|
+
/**
|
|
385
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
386
|
+
* No 1:1 v2 replacement is available.
|
|
387
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
388
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
389
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
390
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
391
|
+
*/
|
|
392
|
+
CopilotDevConsole,
|
|
393
|
+
} from "./components/dev-console/console";
|
|
394
|
+
|
|
395
|
+
export {
|
|
396
|
+
/**
|
|
397
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
398
|
+
* Use `useConfigureSuggestions` from `@copilotkit/react-core/v2` instead.
|
|
399
|
+
* Import and usage example:
|
|
400
|
+
* ```ts
|
|
401
|
+
* import { useConfigureSuggestions } from "@copilotkit/react-core/v2";
|
|
402
|
+
* function Suggestions() {
|
|
403
|
+
* useConfigureSuggestions({
|
|
404
|
+
* suggestions: [
|
|
405
|
+
* { title: "Help", message: "Help me get started" },
|
|
406
|
+
* ],
|
|
407
|
+
* });
|
|
408
|
+
* return null;
|
|
409
|
+
* }
|
|
410
|
+
* ```
|
|
411
|
+
* See https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
412
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
413
|
+
*/
|
|
414
|
+
useCopilotChatSuggestions,
|
|
415
|
+
} from "./hooks/use-copilot-chat-suggestions";
|
|
416
|
+
|
|
417
|
+
export {
|
|
418
|
+
/**
|
|
419
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
420
|
+
* No 1:1 v2 replacement is available.
|
|
421
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
422
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
423
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
424
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
425
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
426
|
+
*/
|
|
427
|
+
type CopilotKitCSSProperties,
|
|
428
|
+
} from "./types/css";
|
|
429
|
+
|
|
430
|
+
export {
|
|
431
|
+
/**
|
|
432
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
433
|
+
* No 1:1 v2 replacement is available.
|
|
434
|
+
* Related v2 docs (Chat suggestions): https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
435
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
436
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
437
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
438
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
439
|
+
*/
|
|
440
|
+
type CopilotChatSuggestion,
|
|
441
|
+
} from "./types/suggestions";
|
|
442
|
+
|
|
443
|
+
export {
|
|
444
|
+
/**
|
|
445
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
446
|
+
* No 1:1 v2 replacement is available.
|
|
447
|
+
* Start with `@copilotkit/react-core/v2`.
|
|
448
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
449
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
450
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
451
|
+
*/
|
|
452
|
+
shouldShowDevConsole,
|
|
453
|
+
} from "@copilotkit/react-core";
|
|
454
|
+
|
|
455
|
+
export {
|
|
456
|
+
/**
|
|
457
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
458
|
+
* Use `Attachment` from `@copilotkit/react-core/v2` instead.
|
|
459
|
+
* Import and usage example:
|
|
460
|
+
* ```ts
|
|
461
|
+
* import type { Attachment } from "@copilotkit/react-core/v2";
|
|
462
|
+
* type V2Attachment = Attachment;
|
|
463
|
+
* ```
|
|
464
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
465
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
466
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
467
|
+
*/
|
|
468
|
+
type Attachment,
|
|
469
|
+
/**
|
|
470
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
471
|
+
* Use `AttachmentModality` from `@copilotkit/react-core/v2` instead.
|
|
472
|
+
* Import and usage example:
|
|
473
|
+
* ```ts
|
|
474
|
+
* import type { AttachmentModality } from "@copilotkit/react-core/v2";
|
|
475
|
+
* type V2AttachmentModality = AttachmentModality;
|
|
476
|
+
* ```
|
|
477
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
478
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
479
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
480
|
+
*/
|
|
481
|
+
type AttachmentModality,
|
|
482
|
+
/**
|
|
483
|
+
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
|
|
484
|
+
* Use `AttachmentsConfig` from `@copilotkit/react-core/v2` instead.
|
|
485
|
+
* Import and usage example:
|
|
486
|
+
* ```ts
|
|
487
|
+
* import type { AttachmentsConfig } from "@copilotkit/react-core/v2";
|
|
488
|
+
* type V2AttachmentsConfig = AttachmentsConfig;
|
|
489
|
+
* ```
|
|
490
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
491
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
492
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
493
|
+
*/
|
|
494
|
+
type AttachmentsConfig,
|
|
495
|
+
} from "@copilotkit/shared";
|
|
496
|
+
|
|
497
|
+
/* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
|
package/src/types/css.ts
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* V1 SDK DEPRECATED. USE V2 INSTEAD
|
|
3
|
+
*
|
|
4
|
+
* This file defines public v1 SDK exports. Use the exact v2 mappings below.
|
|
5
|
+
* AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
|
|
6
|
+
* the linked v2 documentation before generating replacement code.
|
|
7
|
+
*
|
|
8
|
+
* @copilotkit/react-ui — CopilotKitCSSProperties:
|
|
9
|
+
* No 1:1 v2 replacement is available.
|
|
10
|
+
* Related v2 docs (Chat UI): https://docs.copilotkit.ai/prebuilt-components/chat
|
|
11
|
+
* Start at: @copilotkit/react-core/v2
|
|
12
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
13
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
14
|
+
*
|
|
15
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
16
|
+
*
|
|
17
|
+
* END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
|
|
18
|
+
*/
|
|
19
|
+
|
|
1
20
|
// autogenerated (see postcss.config.cjs) - do not edit
|
|
2
|
-
import { CSSProperties } from "react";
|
|
21
|
+
import type { CSSProperties } from "react";
|
|
3
22
|
|
|
4
23
|
export interface CopilotKitCSSProperties extends CSSProperties {
|
|
5
24
|
"--copilot-kit-primary-color"?: string;
|
package/src/types/suggestions.ts
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* V1 SDK DEPRECATED. USE V2 INSTEAD
|
|
3
|
+
*
|
|
4
|
+
* This file defines public v1 SDK exports. Use the exact v2 mappings below.
|
|
5
|
+
* AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
|
|
6
|
+
* the linked v2 documentation before generating replacement code.
|
|
7
|
+
*
|
|
8
|
+
* @copilotkit/react-ui — CopilotChatSuggestion:
|
|
9
|
+
* No 1:1 v2 replacement is available.
|
|
10
|
+
* Related v2 docs (Chat suggestions): https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
|
|
11
|
+
* Start at: @copilotkit/react-core/v2
|
|
12
|
+
* V2 docs: https://docs.copilotkit.ai/
|
|
13
|
+
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
|
|
14
|
+
*
|
|
15
|
+
* Migration guide: https://docs.copilotkit.ai/migrate/v2
|
|
16
|
+
*
|
|
17
|
+
* END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
|
|
18
|
+
*/
|
|
19
|
+
|
|
1
20
|
export interface CopilotChatSuggestion {
|
|
2
21
|
title: string;
|
|
3
22
|
message: string;
|