@agno-hq/chat-react 0.3.1 → 0.3.3
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/README.md +35 -5
- package/dist/chat/index.cjs +94 -82
- package/dist/chat/index.d.cts +72 -17
- package/dist/chat/index.d.ts +72 -17
- package/dist/chat/index.js +1 -1
- package/dist/{chunk-JEPFGKHH.cjs → chunk-3IEYJIYJ.cjs} +249 -222
- package/dist/chunk-3IEYJIYJ.cjs.map +1 -0
- package/dist/{chunk-BZC2674Z.js → chunk-E4CFQ457.js} +103 -79
- package/dist/chunk-E4CFQ457.js.map +1 -0
- package/dist/index.cjs +95 -83
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +57 -19
- package/package.json +9 -11
- package/dist/chunk-BZC2674Z.js.map +0 -1
- package/dist/chunk-JEPFGKHH.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunk3IEYJIYJ_cjs = require('./chunk-3IEYJIYJ.cjs');
|
|
5
5
|
var chunk2WM3CCFE_cjs = require('./chunk-2WM3CCFE.cjs');
|
|
6
6
|
var chunk55HQJGLP_cjs = require('./chunk-55HQJGLP.cjs');
|
|
7
7
|
|
|
@@ -9,331 +9,343 @@ var chunk55HQJGLP_cjs = require('./chunk-55HQJGLP.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "AgnoChat", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk3IEYJIYJ_cjs.AgnoChat; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "AgnoMark", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk3IEYJIYJ_cjs.AgnoMark; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "ArrowUp", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk3IEYJIYJ_cjs.ArrowUp; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "BehindTheScenes", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk3IEYJIYJ_cjs.BehindTheScenes; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "BookOpen", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk3IEYJIYJ_cjs.BookOpen; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "Box", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk3IEYJIYJ_cjs.Box; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "Brain", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk3IEYJIYJ_cjs.Brain; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "ChatBubble", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk3IEYJIYJ_cjs.ChatBubble; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "ChatInput", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk3IEYJIYJ_cjs.ChatInput; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "ChatLauncher", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk3IEYJIYJ_cjs.ChatLauncher; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "ChatProvider", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunk3IEYJIYJ_cjs.ChatProvider; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "ChatWindow", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunk3IEYJIYJ_cjs.ChatWindow; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "Check", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk3IEYJIYJ_cjs.Check; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "ChevronDown", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk3IEYJIYJ_cjs.ChevronDown; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "Citations", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk3IEYJIYJ_cjs.Citations; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "Close", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk3IEYJIYJ_cjs.Close; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "Copy", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunk3IEYJIYJ_cjs.Copy; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "CopyButton", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunk3IEYJIYJ_cjs.CopyButton; }
|
|
77
81
|
});
|
|
78
82
|
Object.defineProperty(exports, "EntityBadge", {
|
|
79
83
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunk3IEYJIYJ_cjs.EntityBadge; }
|
|
81
85
|
});
|
|
82
86
|
Object.defineProperty(exports, "EntitySelector", {
|
|
83
87
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunk3IEYJIYJ_cjs.EntitySelector; }
|
|
85
89
|
});
|
|
86
90
|
Object.defineProperty(exports, "EventLog", {
|
|
87
91
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunk3IEYJIYJ_cjs.EventLog; }
|
|
89
93
|
});
|
|
90
94
|
Object.defineProperty(exports, "Favicon", {
|
|
91
95
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunk3IEYJIYJ_cjs.Favicon; }
|
|
93
97
|
});
|
|
94
98
|
Object.defineProperty(exports, "FileAudio", {
|
|
95
99
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunk3IEYJIYJ_cjs.FileAudio; }
|
|
97
101
|
});
|
|
98
102
|
Object.defineProperty(exports, "FileIcon", {
|
|
99
103
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunk3IEYJIYJ_cjs.FileIcon; }
|
|
101
105
|
});
|
|
102
106
|
Object.defineProperty(exports, "FilePreview", {
|
|
103
107
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunk3IEYJIYJ_cjs.FilePreview; }
|
|
105
109
|
});
|
|
106
110
|
Object.defineProperty(exports, "FileType", {
|
|
107
111
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunk3IEYJIYJ_cjs.FileType; }
|
|
109
113
|
});
|
|
110
114
|
Object.defineProperty(exports, "FileVideo", {
|
|
111
115
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunk3IEYJIYJ_cjs.FileVideo; }
|
|
113
117
|
});
|
|
114
118
|
Object.defineProperty(exports, "Followups", {
|
|
115
119
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunk3IEYJIYJ_cjs.Followups; }
|
|
117
121
|
});
|
|
118
122
|
Object.defineProperty(exports, "Globe", {
|
|
119
123
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunk3IEYJIYJ_cjs.Globe; }
|
|
121
125
|
});
|
|
122
126
|
Object.defineProperty(exports, "GridLoader", {
|
|
123
127
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunk3IEYJIYJ_cjs.GridLoader; }
|
|
125
129
|
});
|
|
126
130
|
Object.defineProperty(exports, "HoverPreview", {
|
|
127
131
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunk3IEYJIYJ_cjs.HoverPreview; }
|
|
129
133
|
});
|
|
130
134
|
Object.defineProperty(exports, "HumanInput", {
|
|
131
135
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunk3IEYJIYJ_cjs.HumanInput; }
|
|
133
137
|
});
|
|
134
138
|
Object.defineProperty(exports, "LinkIcon", {
|
|
135
139
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunk3IEYJIYJ_cjs.LinkIcon; }
|
|
137
141
|
});
|
|
138
142
|
Object.defineProperty(exports, "LinkPreviewCard", {
|
|
139
143
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunk3IEYJIYJ_cjs.LinkPreviewCard; }
|
|
141
145
|
});
|
|
142
146
|
Object.defineProperty(exports, "Markdown", {
|
|
143
147
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunk3IEYJIYJ_cjs.Markdown; }
|
|
145
149
|
});
|
|
146
150
|
Object.defineProperty(exports, "MemberResponses", {
|
|
147
151
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunk3IEYJIYJ_cjs.MemberResponses; }
|
|
149
153
|
});
|
|
150
154
|
Object.defineProperty(exports, "Memory", {
|
|
151
155
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunk3IEYJIYJ_cjs.Memory; }
|
|
153
157
|
});
|
|
154
158
|
Object.defineProperty(exports, "Message", {
|
|
155
159
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunk3IEYJIYJ_cjs.Message; }
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "MessageActions", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () { return chunk3IEYJIYJ_cjs.MessageActions; }
|
|
157
165
|
});
|
|
158
166
|
Object.defineProperty(exports, "MessageList", {
|
|
159
167
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunk3IEYJIYJ_cjs.MessageList; }
|
|
161
169
|
});
|
|
162
170
|
Object.defineProperty(exports, "Multimedia", {
|
|
163
171
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunk3IEYJIYJ_cjs.Multimedia; }
|
|
165
173
|
});
|
|
166
174
|
Object.defineProperty(exports, "Paperclip", {
|
|
167
175
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunk3IEYJIYJ_cjs.Paperclip; }
|
|
169
177
|
});
|
|
170
178
|
Object.defineProperty(exports, "Plus", {
|
|
171
179
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunk3IEYJIYJ_cjs.Plus; }
|
|
173
181
|
});
|
|
174
182
|
Object.defineProperty(exports, "Pulse", {
|
|
175
183
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunk3IEYJIYJ_cjs.Pulse; }
|
|
177
185
|
});
|
|
178
186
|
Object.defineProperty(exports, "QuickPrompts", {
|
|
179
187
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunk3IEYJIYJ_cjs.QuickPrompts; }
|
|
181
189
|
});
|
|
182
190
|
Object.defineProperty(exports, "Reasoning", {
|
|
183
191
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunk3IEYJIYJ_cjs.Reasoning; }
|
|
185
193
|
});
|
|
186
194
|
Object.defineProperty(exports, "Rerun", {
|
|
187
195
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunk3IEYJIYJ_cjs.Rerun; }
|
|
189
197
|
});
|
|
190
198
|
Object.defineProperty(exports, "SessionList", {
|
|
191
199
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunk3IEYJIYJ_cjs.SessionList; }
|
|
193
201
|
});
|
|
194
202
|
Object.defineProperty(exports, "SourceCard", {
|
|
195
203
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunk3IEYJIYJ_cjs.SourceCard; }
|
|
197
205
|
});
|
|
198
206
|
Object.defineProperty(exports, "SourcesProvider", {
|
|
199
207
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunk3IEYJIYJ_cjs.SourcesProvider; }
|
|
201
209
|
});
|
|
202
210
|
Object.defineProperty(exports, "Spinner", {
|
|
203
211
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunk3IEYJIYJ_cjs.Spinner; }
|
|
205
213
|
});
|
|
206
214
|
Object.defineProperty(exports, "StatusIndicator", {
|
|
207
215
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunk3IEYJIYJ_cjs.StatusIndicator; }
|
|
209
217
|
});
|
|
210
218
|
Object.defineProperty(exports, "Stop", {
|
|
211
219
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunk3IEYJIYJ_cjs.Stop; }
|
|
213
221
|
});
|
|
214
222
|
Object.defineProperty(exports, "TeamGlyph", {
|
|
215
223
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunk3IEYJIYJ_cjs.TeamGlyph; }
|
|
217
225
|
});
|
|
218
226
|
Object.defineProperty(exports, "ToolCalls", {
|
|
219
227
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunk3IEYJIYJ_cjs.ToolCalls; }
|
|
221
229
|
});
|
|
222
230
|
Object.defineProperty(exports, "Trash", {
|
|
223
231
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunk3IEYJIYJ_cjs.Trash; }
|
|
225
233
|
});
|
|
226
234
|
Object.defineProperty(exports, "WorkflowSteps", {
|
|
227
235
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunk3IEYJIYJ_cjs.WorkflowSteps; }
|
|
229
237
|
});
|
|
230
238
|
Object.defineProperty(exports, "Wrench", {
|
|
231
239
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunk3IEYJIYJ_cjs.Wrench; }
|
|
233
241
|
});
|
|
234
242
|
Object.defineProperty(exports, "admitFiles", {
|
|
235
243
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunk3IEYJIYJ_cjs.admitFiles; }
|
|
237
245
|
});
|
|
238
246
|
Object.defineProperty(exports, "behindTheScenesItems", {
|
|
239
247
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunk3IEYJIYJ_cjs.behindTheScenesItems; }
|
|
241
249
|
});
|
|
242
250
|
Object.defineProperty(exports, "behindTheScenesLabel", {
|
|
243
251
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunk3IEYJIYJ_cjs.behindTheScenesLabel; }
|
|
245
253
|
});
|
|
246
254
|
Object.defineProperty(exports, "collectSources", {
|
|
247
255
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunk3IEYJIYJ_cjs.collectSources; }
|
|
249
257
|
});
|
|
250
258
|
Object.defineProperty(exports, "cx", {
|
|
251
259
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunk3IEYJIYJ_cjs.cx; }
|
|
253
261
|
});
|
|
254
262
|
Object.defineProperty(exports, "displayUrl", {
|
|
255
263
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunk3IEYJIYJ_cjs.displayUrl; }
|
|
265
|
+
});
|
|
266
|
+
Object.defineProperty(exports, "faviconFallbacks", {
|
|
267
|
+
enumerable: true,
|
|
268
|
+
get: function () { return chunk3IEYJIYJ_cjs.faviconFallbacks; }
|
|
257
269
|
});
|
|
258
270
|
Object.defineProperty(exports, "faviconUrl", {
|
|
259
271
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunk3IEYJIYJ_cjs.faviconUrl; }
|
|
261
273
|
});
|
|
262
274
|
Object.defineProperty(exports, "fileAccepted", {
|
|
263
275
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunk3IEYJIYJ_cjs.fileAccepted; }
|
|
265
277
|
});
|
|
266
278
|
Object.defineProperty(exports, "getProviderIcon", {
|
|
267
279
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunk3IEYJIYJ_cjs.getProviderIcon; }
|
|
269
281
|
});
|
|
270
282
|
Object.defineProperty(exports, "hasBehindTheScenes", {
|
|
271
283
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunk3IEYJIYJ_cjs.hasBehindTheScenes; }
|
|
273
285
|
});
|
|
274
286
|
Object.defineProperty(exports, "linkCitations", {
|
|
275
287
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunk3IEYJIYJ_cjs.linkCitations; }
|
|
277
289
|
});
|
|
278
290
|
Object.defineProperty(exports, "normalizeFollowups", {
|
|
279
291
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunk3IEYJIYJ_cjs.normalizeFollowups; }
|
|
281
293
|
});
|
|
282
294
|
Object.defineProperty(exports, "quickPromptLabel", {
|
|
283
295
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunk3IEYJIYJ_cjs.quickPromptLabel; }
|
|
285
297
|
});
|
|
286
298
|
Object.defineProperty(exports, "quickPromptText", {
|
|
287
299
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunk3IEYJIYJ_cjs.quickPromptText; }
|
|
289
301
|
});
|
|
290
302
|
Object.defineProperty(exports, "sourceHost", {
|
|
291
303
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunk3IEYJIYJ_cjs.sourceHost; }
|
|
293
305
|
});
|
|
294
306
|
Object.defineProperty(exports, "sourcesFromMarkdown", {
|
|
295
307
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunk3IEYJIYJ_cjs.sourcesFromMarkdown; }
|
|
297
309
|
});
|
|
298
310
|
Object.defineProperty(exports, "useAgnoChat", {
|
|
299
311
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunk3IEYJIYJ_cjs.useAgnoChat; }
|
|
301
313
|
});
|
|
302
314
|
Object.defineProperty(exports, "useChatContext", {
|
|
303
315
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunk3IEYJIYJ_cjs.useChatContext; }
|
|
305
317
|
});
|
|
306
318
|
Object.defineProperty(exports, "useLinkComponent", {
|
|
307
319
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunk3IEYJIYJ_cjs.useLinkComponent; }
|
|
309
321
|
});
|
|
310
322
|
Object.defineProperty(exports, "useLinkPreview", {
|
|
311
323
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunk3IEYJIYJ_cjs.useLinkPreview; }
|
|
313
325
|
});
|
|
314
326
|
Object.defineProperty(exports, "useOptionalChatContext", {
|
|
315
327
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunk3IEYJIYJ_cjs.useOptionalChatContext; }
|
|
317
329
|
});
|
|
318
330
|
Object.defineProperty(exports, "useResolvedChat", {
|
|
319
331
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunk3IEYJIYJ_cjs.useResolvedChat; }
|
|
321
333
|
});
|
|
322
334
|
Object.defineProperty(exports, "useResolvedClassNames", {
|
|
323
335
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunk3IEYJIYJ_cjs.useResolvedClassNames; }
|
|
325
337
|
});
|
|
326
338
|
Object.defineProperty(exports, "useSources", {
|
|
327
339
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunk3IEYJIYJ_cjs.useSources; }
|
|
329
341
|
});
|
|
330
342
|
Object.defineProperty(exports, "withoutSourcesLine", {
|
|
331
343
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunk3IEYJIYJ_cjs.withoutSourcesLine; }
|
|
333
345
|
});
|
|
334
346
|
Object.defineProperty(exports, "writeClipboard", {
|
|
335
347
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunk3IEYJIYJ_cjs.writeClipboard; }
|
|
337
349
|
});
|
|
338
350
|
Object.defineProperty(exports, "RunEvent", {
|
|
339
351
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as AgnoClient, a as AgnoClientOptions, b as AnyRunEventName, c as AudioData, C as ChatMessage, d as ChatRole, e as ChatStatus, f as CitationsData, E as Entity, g as EntityType, I as ImageData, M as Model, P as Pagination, h as PauseType, R as ReasoningStep, i as Reference, j as ReferenceData, k as RunEvent, l as RunEventData, m as RunRequirement, S as SessionEntry, n as SessionsResponse, o as SubRun, p as SubRunStatus, T as TeamRunEvent, q as ToolExecution, U as UserInputField, V as VideoData, W as WorkflowRunEvent, r as WorkflowStep, s as normaliseBaseUrl } from './client-DUyVqxU9.cjs';
|
|
2
2
|
export { StreamEvent, StreamRunOptions, activityLabel, applyStepEvent, applySubRunEvent, isCompletedEvent, isContentEvent, isErrorEvent, isFollowupsCompletedEvent, isPausedEvent, isReasoningStepEvent, isStepEvent, isSubRunEvent, isToolEvent, mergeTool, sessionRunsToMessages, streamRun, toolsFromEvent } from './core/index.cjs';
|
|
3
|
-
export { AgnoChat, AgnoChatProps, AgnoMark, ArrowUp, BehindTheScenes, BehindTheScenesProps, BookOpen, Box, Brain, ChatBubble, ChatClassNames, ChatContextValue, ChatInput, ChatInputProps, ChatLauncher, ChatLauncherProps, ChatProvider, ChatProviderProps, ChatTextareaProps, ChatWindow, ChatWindowProps, Check, ChevronDown, Citations, CitationsProps, Close, Copy, EntityBadge, EntityBadgeProps, EntitySelector, EventLog, Favicon, FileAudio, FileIcon, FileLimits, FilePreview, FilePreviewProps, FileType, FileVideo, Followups, FollowupsProps, Globe, GridLoader, HoverPreview, HoverPreviewProps, HumanInput, HumanInputProps, LauncherPanel, LauncherPosition, LinkComponent, LinkIcon, LinkPreview, LinkPreviewCard, LinkPreviewCardProps, Markdown, MarkdownProps, MemberResponses, Memory, Message, MessageList, MessageListProps, MessageProps, Multimedia, Paperclip, Plus, Pulse, QuickPrompt, QuickPrompts, QuickPromptsProps, Reasoning, RenderMarkdown, Rerun, ResolveLinkPreview, SendOptions, SessionList, SessionListProps, Source, SourceCard, SourcesProvider, Spinner, StatusIndicator, Stop, TeamGlyph, ToolCalls, Trash, UseAgnoChat, UseAgnoChatOptions, WorkflowSteps, Wrench, admitFiles, behindTheScenesItems, behindTheScenesLabel, collectSources, displayUrl, faviconUrl, fileAccepted, getProviderIcon, hasBehindTheScenes, linkCitations, normalizeFollowups, quickPromptLabel, quickPromptText, sourceHost, sourcesFromMarkdown, useAgnoChat, useChatContext, useLinkComponent, useLinkPreview, useOptionalChatContext, useResolvedChat, useResolvedClassNames, useSources, withoutSourcesLine, writeClipboard } from './chat/index.cjs';
|
|
3
|
+
export { AgnoChat, AgnoChatProps, AgnoMark, ArrowUp, BehindTheScenes, BehindTheScenesProps, BookOpen, Box, Brain, ChatBubble, ChatClassNames, ChatContextValue, ChatInput, ChatInputProps, ChatLauncher, ChatLauncherProps, ChatProvider, ChatProviderProps, ChatTextareaProps, ChatWindow, ChatWindowProps, Check, ChevronDown, Citations, CitationsProps, Close, Copy, CopyButton, CopyButtonProps, EntityBadge, EntityBadgeProps, EntitySelector, EventLog, Favicon, FileAudio, FileIcon, FileLimits, FilePreview, FilePreviewProps, FileType, FileVideo, Followups, FollowupsProps, Globe, GridLoader, HoverPreview, HoverPreviewProps, HumanInput, HumanInputProps, LauncherPanel, LauncherPosition, LinkComponent, LinkIcon, LinkPreview, LinkPreviewCard, LinkPreviewCardProps, Markdown, MarkdownProps, MemberResponses, Memory, Message, MessageActions, MessageActionsProps, MessageList, MessageListProps, MessageProps, Multimedia, Paperclip, Plus, Pulse, QuickPrompt, QuickPrompts, QuickPromptsProps, Reasoning, RenderMarkdown, Rerun, ResolveLinkPreview, SendOptions, SessionList, SessionListProps, Source, SourceCard, SourcesProvider, Spinner, StatusIndicator, Stop, TeamGlyph, ToolCalls, Trash, UseAgnoChat, UseAgnoChatOptions, WorkflowSteps, Wrench, admitFiles, behindTheScenesItems, behindTheScenesLabel, collectSources, displayUrl, faviconFallbacks, faviconUrl, fileAccepted, getProviderIcon, hasBehindTheScenes, linkCitations, normalizeFollowups, quickPromptLabel, quickPromptText, sourceHost, sourcesFromMarkdown, useAgnoChat, useChatContext, useLinkComponent, useLinkPreview, useOptionalChatContext, useResolvedChat, useResolvedClassNames, useSources, withoutSourcesLine, writeClipboard } from './chat/index.cjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'streamdown';
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as AgnoClient, a as AgnoClientOptions, b as AnyRunEventName, c as AudioData, C as ChatMessage, d as ChatRole, e as ChatStatus, f as CitationsData, E as Entity, g as EntityType, I as ImageData, M as Model, P as Pagination, h as PauseType, R as ReasoningStep, i as Reference, j as ReferenceData, k as RunEvent, l as RunEventData, m as RunRequirement, S as SessionEntry, n as SessionsResponse, o as SubRun, p as SubRunStatus, T as TeamRunEvent, q as ToolExecution, U as UserInputField, V as VideoData, W as WorkflowRunEvent, r as WorkflowStep, s as normaliseBaseUrl } from './client-DUyVqxU9.js';
|
|
2
2
|
export { StreamEvent, StreamRunOptions, activityLabel, applyStepEvent, applySubRunEvent, isCompletedEvent, isContentEvent, isErrorEvent, isFollowupsCompletedEvent, isPausedEvent, isReasoningStepEvent, isStepEvent, isSubRunEvent, isToolEvent, mergeTool, sessionRunsToMessages, streamRun, toolsFromEvent } from './core/index.js';
|
|
3
|
-
export { AgnoChat, AgnoChatProps, AgnoMark, ArrowUp, BehindTheScenes, BehindTheScenesProps, BookOpen, Box, Brain, ChatBubble, ChatClassNames, ChatContextValue, ChatInput, ChatInputProps, ChatLauncher, ChatLauncherProps, ChatProvider, ChatProviderProps, ChatTextareaProps, ChatWindow, ChatWindowProps, Check, ChevronDown, Citations, CitationsProps, Close, Copy, EntityBadge, EntityBadgeProps, EntitySelector, EventLog, Favicon, FileAudio, FileIcon, FileLimits, FilePreview, FilePreviewProps, FileType, FileVideo, Followups, FollowupsProps, Globe, GridLoader, HoverPreview, HoverPreviewProps, HumanInput, HumanInputProps, LauncherPanel, LauncherPosition, LinkComponent, LinkIcon, LinkPreview, LinkPreviewCard, LinkPreviewCardProps, Markdown, MarkdownProps, MemberResponses, Memory, Message, MessageList, MessageListProps, MessageProps, Multimedia, Paperclip, Plus, Pulse, QuickPrompt, QuickPrompts, QuickPromptsProps, Reasoning, RenderMarkdown, Rerun, ResolveLinkPreview, SendOptions, SessionList, SessionListProps, Source, SourceCard, SourcesProvider, Spinner, StatusIndicator, Stop, TeamGlyph, ToolCalls, Trash, UseAgnoChat, UseAgnoChatOptions, WorkflowSteps, Wrench, admitFiles, behindTheScenesItems, behindTheScenesLabel, collectSources, displayUrl, faviconUrl, fileAccepted, getProviderIcon, hasBehindTheScenes, linkCitations, normalizeFollowups, quickPromptLabel, quickPromptText, sourceHost, sourcesFromMarkdown, useAgnoChat, useChatContext, useLinkComponent, useLinkPreview, useOptionalChatContext, useResolvedChat, useResolvedClassNames, useSources, withoutSourcesLine, writeClipboard } from './chat/index.js';
|
|
3
|
+
export { AgnoChat, AgnoChatProps, AgnoMark, ArrowUp, BehindTheScenes, BehindTheScenesProps, BookOpen, Box, Brain, ChatBubble, ChatClassNames, ChatContextValue, ChatInput, ChatInputProps, ChatLauncher, ChatLauncherProps, ChatProvider, ChatProviderProps, ChatTextareaProps, ChatWindow, ChatWindowProps, Check, ChevronDown, Citations, CitationsProps, Close, Copy, CopyButton, CopyButtonProps, EntityBadge, EntityBadgeProps, EntitySelector, EventLog, Favicon, FileAudio, FileIcon, FileLimits, FilePreview, FilePreviewProps, FileType, FileVideo, Followups, FollowupsProps, Globe, GridLoader, HoverPreview, HoverPreviewProps, HumanInput, HumanInputProps, LauncherPanel, LauncherPosition, LinkComponent, LinkIcon, LinkPreview, LinkPreviewCard, LinkPreviewCardProps, Markdown, MarkdownProps, MemberResponses, Memory, Message, MessageActions, MessageActionsProps, MessageList, MessageListProps, MessageProps, Multimedia, Paperclip, Plus, Pulse, QuickPrompt, QuickPrompts, QuickPromptsProps, Reasoning, RenderMarkdown, Rerun, ResolveLinkPreview, SendOptions, SessionList, SessionListProps, Source, SourceCard, SourcesProvider, Spinner, StatusIndicator, Stop, TeamGlyph, ToolCalls, Trash, UseAgnoChat, UseAgnoChatOptions, WorkflowSteps, Wrench, admitFiles, behindTheScenesItems, behindTheScenesLabel, collectSources, displayUrl, faviconFallbacks, faviconUrl, fileAccepted, getProviderIcon, hasBehindTheScenes, linkCitations, normalizeFollowups, quickPromptLabel, quickPromptText, sourceHost, sourcesFromMarkdown, useAgnoChat, useChatContext, useLinkComponent, useLinkPreview, useOptionalChatContext, useResolvedChat, useResolvedClassNames, useSources, withoutSourcesLine, writeClipboard } from './chat/index.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'streamdown';
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { AgnoChat, AgnoMark, ArrowUp, BehindTheScenes, BookOpen, Box, Brain, ChatBubble, ChatInput, ChatLauncher, ChatProvider, ChatWindow, Check, ChevronDown, Citations, Close, Copy, EntityBadge, EntitySelector, EventLog, Favicon, FileAudio, FileIcon, FilePreview, FileType, FileVideo, Followups, Globe, GridLoader, HoverPreview, HumanInput, LinkIcon, LinkPreviewCard, Markdown, MemberResponses, Memory, Message, MessageList, Multimedia, Paperclip, Plus, Pulse, QuickPrompts, Reasoning, Rerun, SessionList, SourceCard, SourcesProvider, Spinner, StatusIndicator, Stop, TeamGlyph, ToolCalls, Trash, WorkflowSteps, Wrench, admitFiles, behindTheScenesItems, behindTheScenesLabel, collectSources, cx, displayUrl, faviconUrl, fileAccepted, getProviderIcon, hasBehindTheScenes, linkCitations, normalizeFollowups, quickPromptLabel, quickPromptText, sourceHost, sourcesFromMarkdown, useAgnoChat, useChatContext, useLinkComponent, useLinkPreview, useOptionalChatContext, useResolvedChat, useResolvedClassNames, useSources, withoutSourcesLine, writeClipboard } from './chunk-
|
|
2
|
+
export { AgnoChat, AgnoMark, ArrowUp, BehindTheScenes, BookOpen, Box, Brain, ChatBubble, ChatInput, ChatLauncher, ChatProvider, ChatWindow, Check, ChevronDown, Citations, Close, Copy, CopyButton, EntityBadge, EntitySelector, EventLog, Favicon, FileAudio, FileIcon, FilePreview, FileType, FileVideo, Followups, Globe, GridLoader, HoverPreview, HumanInput, LinkIcon, LinkPreviewCard, Markdown, MemberResponses, Memory, Message, MessageActions, MessageList, Multimedia, Paperclip, Plus, Pulse, QuickPrompts, Reasoning, Rerun, SessionList, SourceCard, SourcesProvider, Spinner, StatusIndicator, Stop, TeamGlyph, ToolCalls, Trash, WorkflowSteps, Wrench, admitFiles, behindTheScenesItems, behindTheScenesLabel, collectSources, cx, displayUrl, faviconFallbacks, faviconUrl, fileAccepted, getProviderIcon, hasBehindTheScenes, linkCitations, normalizeFollowups, quickPromptLabel, quickPromptText, sourceHost, sourcesFromMarkdown, useAgnoChat, useChatContext, useLinkComponent, useLinkPreview, useOptionalChatContext, useResolvedChat, useResolvedClassNames, useSources, withoutSourcesLine, writeClipboard } from './chunk-E4CFQ457.js';
|
|
3
3
|
export { RunEvent, TeamRunEvent, WorkflowRunEvent } from './chunk-RE7ZT73K.js';
|
|
4
4
|
export { AgnoClient, activityLabel, applyStepEvent, applySubRunEvent, isCompletedEvent, isContentEvent, isErrorEvent, isFollowupsCompletedEvent, isPausedEvent, isReasoningStepEvent, isStepEvent, isSubRunEvent, isToolEvent, mergeTool, normaliseBaseUrl, sessionRunsToMessages, streamRun, toolsFromEvent } from './chunk-6V2YIPHF.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/styles.css
CHANGED
|
@@ -289,6 +289,34 @@
|
|
|
289
289
|
gap: 12px;
|
|
290
290
|
color: var(--agno-primary);
|
|
291
291
|
}
|
|
292
|
+
/* The action row under a finished answer (Figma: _Chat messages/Actions):
|
|
293
|
+
14px marks in a line, 16px apart. Hidden until the message is pointed at
|
|
294
|
+
or focused; always there where nothing hovers. */
|
|
295
|
+
.agno-msg__actions {
|
|
296
|
+
display: flex;
|
|
297
|
+
align-items: center;
|
|
298
|
+
gap: 16px;
|
|
299
|
+
min-height: 14px;
|
|
300
|
+
color: var(--agno-muted);
|
|
301
|
+
opacity: 0;
|
|
302
|
+
transition: opacity 0.15s ease;
|
|
303
|
+
}
|
|
304
|
+
.agno-msg:hover .agno-msg__actions,
|
|
305
|
+
.agno-msg:focus-within .agno-msg__actions,
|
|
306
|
+
.agno-msg__actions:has(.is-copied) {
|
|
307
|
+
opacity: 1;
|
|
308
|
+
}
|
|
309
|
+
@media (hover: none) {
|
|
310
|
+
.agno-msg__actions {
|
|
311
|
+
opacity: 1;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
.agno-msg__action {
|
|
315
|
+
display: grid;
|
|
316
|
+
place-items: center;
|
|
317
|
+
width: 14px;
|
|
318
|
+
height: 14px;
|
|
319
|
+
}
|
|
292
320
|
/* Agent and user messages are both plain text in Agno OS — no bubbles. */
|
|
293
321
|
.agno-msg__content {
|
|
294
322
|
word-break: break-word;
|
|
@@ -372,27 +400,35 @@
|
|
|
372
400
|
color: var(--agno-muted);
|
|
373
401
|
letter-spacing: -0.01em;
|
|
374
402
|
}
|
|
375
|
-
|
|
403
|
+
/* The copy control, wherever it sits — a code block's header, an answer's action
|
|
404
|
+
row. Flat until pointed at; the tick is green while the copy stands. */
|
|
405
|
+
.agno-copy {
|
|
376
406
|
display: grid;
|
|
377
407
|
place-items: center;
|
|
378
|
-
width: 26px;
|
|
379
|
-
height: 26px;
|
|
380
408
|
padding: 0;
|
|
381
409
|
border: 0;
|
|
382
|
-
border-radius: var(--agno-radius-sm);
|
|
383
410
|
background: transparent;
|
|
384
411
|
color: var(--agno-muted);
|
|
385
412
|
cursor: pointer;
|
|
386
413
|
transition: color 0.15s ease, background-color 0.15s ease;
|
|
387
414
|
}
|
|
388
|
-
.agno-
|
|
389
|
-
.agno-
|
|
415
|
+
.agno-copy:hover,
|
|
416
|
+
.agno-copy:focus-visible {
|
|
390
417
|
color: var(--agno-primary);
|
|
391
|
-
background: var(--agno-tint);
|
|
392
418
|
}
|
|
393
|
-
.agno-
|
|
419
|
+
.agno-copy.is-copied {
|
|
394
420
|
color: var(--agno-positive);
|
|
395
421
|
}
|
|
422
|
+
/* In a code block's header it gets a hit area and a hover ground. */
|
|
423
|
+
.agno-md-copy {
|
|
424
|
+
width: 26px;
|
|
425
|
+
height: 26px;
|
|
426
|
+
border-radius: var(--agno-radius-sm);
|
|
427
|
+
}
|
|
428
|
+
.agno-md-copy:hover,
|
|
429
|
+
.agno-md-copy:focus-visible {
|
|
430
|
+
background: var(--agno-tint);
|
|
431
|
+
}
|
|
396
432
|
|
|
397
433
|
.agno-md-pre {
|
|
398
434
|
margin: 0;
|
|
@@ -1179,30 +1215,32 @@ a.agno-source--row:hover {
|
|
|
1179
1215
|
/* The card is portalled to <body>, so this only has to hold the trigger. */
|
|
1180
1216
|
display: inline;
|
|
1181
1217
|
}
|
|
1218
|
+
/* A filled disc with the number, so it reads at a glance in running text. */
|
|
1182
1219
|
.agno-cite {
|
|
1183
1220
|
display: inline-grid;
|
|
1184
1221
|
place-items: center;
|
|
1185
|
-
min-width:
|
|
1186
|
-
height:
|
|
1187
|
-
margin: 0 1px 0
|
|
1188
|
-
padding: 0
|
|
1222
|
+
min-width: 18px;
|
|
1223
|
+
height: 18px;
|
|
1224
|
+
margin: 0 1px 0 3px;
|
|
1225
|
+
padding: 0 5px;
|
|
1189
1226
|
border-radius: var(--agno-radius-full);
|
|
1190
|
-
background: var(--agno-
|
|
1191
|
-
color: var(--agno-
|
|
1192
|
-
font-size: 0.
|
|
1227
|
+
background: var(--agno-primary);
|
|
1228
|
+
color: var(--agno-accent);
|
|
1229
|
+
font-size: 0.6875rem;
|
|
1230
|
+
font-weight: 600;
|
|
1193
1231
|
font-variant-numeric: tabular-nums;
|
|
1194
1232
|
line-height: 1;
|
|
1195
1233
|
text-decoration: none;
|
|
1196
1234
|
vertical-align: 2px;
|
|
1197
|
-
transition: background 0.15s ease
|
|
1235
|
+
transition: background 0.15s ease;
|
|
1198
1236
|
}
|
|
1199
1237
|
.agno-md a.agno-cite {
|
|
1200
|
-
color: var(--agno-
|
|
1238
|
+
color: var(--agno-accent);
|
|
1201
1239
|
}
|
|
1202
1240
|
.agno-cite:hover,
|
|
1203
1241
|
.agno-cite:focus-visible {
|
|
1204
|
-
background: var(--
|
|
1205
|
-
color: var(--agno-
|
|
1242
|
+
background: rgba(var(--color-primary), 0.8);
|
|
1243
|
+
color: var(--agno-accent);
|
|
1206
1244
|
}
|
|
1207
1245
|
|
|
1208
1246
|
.agno-hovercard {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agno-hq/chat-react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Composable, embeddable React components for AgentOS — a headless chat hook, a provider for building your own layout, and drop-in chat embeds.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Agno",
|
|
@@ -57,14 +57,6 @@
|
|
|
57
57
|
"files": [
|
|
58
58
|
"dist"
|
|
59
59
|
],
|
|
60
|
-
"scripts": {
|
|
61
|
-
"build": "tsup",
|
|
62
|
-
"test": "node --import tsx --test test/*.test.ts",
|
|
63
|
-
"typecheck": "tsc --noEmit",
|
|
64
|
-
"prepublishOnly": "npm test && npm run typecheck && npm run build",
|
|
65
|
-
"storybook": "storybook dev -p 6006",
|
|
66
|
-
"storybook:build": "storybook build -o storybook-static"
|
|
67
|
-
},
|
|
68
60
|
"peerDependencies": {
|
|
69
61
|
"react": ">=18",
|
|
70
62
|
"react-dom": ">=18"
|
|
@@ -107,5 +99,11 @@
|
|
|
107
99
|
"components",
|
|
108
100
|
"embeddable"
|
|
109
101
|
],
|
|
110
|
-
"
|
|
111
|
-
|
|
102
|
+
"scripts": {
|
|
103
|
+
"build": "tsup",
|
|
104
|
+
"test": "node --import tsx --test test/*.test.ts",
|
|
105
|
+
"typecheck": "tsc --noEmit",
|
|
106
|
+
"storybook": "storybook dev -p 6006",
|
|
107
|
+
"storybook:build": "storybook build -o storybook-static"
|
|
108
|
+
}
|
|
109
|
+
}
|