reachat 2.1.0-alpha.4 → 2.1.0-alpha.6
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/AppBar/AppBar.d.ts +1 -1
- package/dist/{CSVFileRenderer-DodyJ8ty.js → CSVFileRenderer-DJB__cZL.js} +15 -14
- package/dist/CSVFileRenderer-DJB__cZL.js.map +1 -0
- package/dist/Chat.d.ts +3 -3
- package/dist/ChatBubble/ChatBubble.d.ts +1 -1
- package/dist/ChatContext.d.ts +2 -2
- package/dist/ChatInput/ChatInput.d.ts +8 -0
- package/dist/ChatInput/FileInput.d.ts +1 -1
- package/dist/{DefaultFileRenderer-CjPMoUSC.js → DefaultFileRenderer-36A7LSHw.js} +2 -2
- package/dist/DefaultFileRenderer-36A7LSHw.js.map +1 -0
- package/dist/ImageFileRenderer-C8tVW3I8.js.map +1 -1
- package/dist/Markdown/Table.d.ts +1 -1
- package/dist/Markdown/index.d.ts +2 -2
- package/dist/Markdown/plugins/remarkCve.d.ts +1 -1
- package/dist/PDFFileRenderer-BBn2EVrV.js +16 -0
- package/dist/PDFFileRenderer-BBn2EVrV.js.map +1 -0
- package/dist/SessionMessages/SessionEmpty.d.ts +1 -4
- package/dist/SessionMessages/SessionMessage/MessageFile/renderers/index.d.ts +1 -1
- package/dist/SessionMessages/SessionMessage/MessageFiles.d.ts +1 -1
- package/dist/SessionMessages/SessionMessage/MessageSources.d.ts +1 -1
- package/dist/SessionMessages/SessionMessage/index.d.ts +2 -2
- package/dist/SessionMessages/SessionMessages.d.ts +1 -1
- package/dist/SessionMessages/index.d.ts +2 -2
- package/dist/SessionsList/index.d.ts +2 -2
- package/dist/docs.json +39 -20
- package/dist/{index-B0_s-rPq.js → index-U0MTBsmW.js} +1119 -1133
- package/dist/index-U0MTBsmW.js.map +1 -0
- package/dist/index.css +6296 -738
- package/dist/index.d.ts +6 -6
- package/dist/index.js +31 -31
- package/dist/index.umd.cjs +1099 -1105
- package/dist/index.umd.cjs.map +1 -1
- package/dist/stories/Changelog.mdx +1 -1
- package/dist/stories/Chat.stories.tsx +5 -5
- package/dist/stories/ChatBubble.stories.tsx +3 -3
- package/dist/stories/Companion.stories.tsx +6 -6
- package/dist/stories/Console.stories.tsx +22 -22
- package/dist/stories/Integration.stories.tsx +2 -2
- package/dist/stories/Intro.mdx +1 -1
- package/dist/stories/assets/logo.svg +38 -19
- package/dist/stories/assets/paperclip.svg +4 -1
- package/dist/stories/assets/search.svg +5 -1
- package/dist/stories/examples.ts +20 -13
- package/dist/theme.d.ts +13 -0
- package/package.json +62 -46
- package/dist/CSVFileRenderer-DodyJ8ty.js.map +0 -1
- package/dist/DefaultFileRenderer-CjPMoUSC.js.map +0 -1
- package/dist/PDFFileRenderer-DQdFS2l6.js +0 -9
- package/dist/PDFFileRenderer-DQdFS2l6.js.map +0 -1
- package/dist/index-B0_s-rPq.js.map +0 -1
|
@@ -36,7 +36,7 @@ export const Compact = () => {
|
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
38
|
<div
|
|
39
|
-
className="dark:bg-
|
|
39
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
40
40
|
style={{
|
|
41
41
|
width: 350,
|
|
42
42
|
height: 500,
|
|
@@ -84,7 +84,7 @@ export const FullScreen = () => {
|
|
|
84
84
|
|
|
85
85
|
return (
|
|
86
86
|
<div
|
|
87
|
-
className="dark:bg-
|
|
87
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
88
88
|
style={{
|
|
89
89
|
position: 'absolute',
|
|
90
90
|
top: 0,
|
|
@@ -132,7 +132,7 @@ export const Empty = () => {
|
|
|
132
132
|
|
|
133
133
|
return (
|
|
134
134
|
<div
|
|
135
|
-
className="dark:bg-
|
|
135
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
136
136
|
style={{
|
|
137
137
|
width: 350,
|
|
138
138
|
height: 500,
|
|
@@ -167,7 +167,7 @@ export const Empty = () => {
|
|
|
167
167
|
<div className="flex flex-col gap-2 items-center justify-center h-full">
|
|
168
168
|
<Placeholder className="h-[50%] block dark:hidden max-w-[100%]" />
|
|
169
169
|
<PlaceholderDark className="h-[50%] hidden dark:block max-w-[100%]" />
|
|
170
|
-
<p className="text-
|
|
170
|
+
<p className="text-(--content-text-neutral-2) max-w-[400px] text-center">
|
|
171
171
|
Welcome to Reachat, a UI library for effortlessly building and
|
|
172
172
|
customizing chat experiences with Tailwind.
|
|
173
173
|
</p>
|
|
@@ -201,7 +201,7 @@ export const WithAppBar = () => {
|
|
|
201
201
|
|
|
202
202
|
return (
|
|
203
203
|
<div
|
|
204
|
-
className="dark:bg-
|
|
204
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
205
205
|
style={{
|
|
206
206
|
width: 800,
|
|
207
207
|
height: 600,
|
|
@@ -81,7 +81,7 @@ const ChatSample: FC = () => {
|
|
|
81
81
|
|
|
82
82
|
return (
|
|
83
83
|
<div
|
|
84
|
-
className="dark:bg-
|
|
84
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
85
85
|
style={{
|
|
86
86
|
width: 350,
|
|
87
87
|
height: 500,
|
|
@@ -158,7 +158,7 @@ export const WithChildren: Story = {
|
|
|
158
158
|
<div className="fixed left-5 bottom-5">
|
|
159
159
|
<ChatBubble {...args}>
|
|
160
160
|
<div
|
|
161
|
-
className="dark:bg-
|
|
161
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
162
162
|
style={{
|
|
163
163
|
width: 350,
|
|
164
164
|
height: 500,
|
|
@@ -219,7 +219,7 @@ export const WithChildrenPortal: Story = {
|
|
|
219
219
|
<p className="text-gray-600">The ChatBubble will portal here!</p>
|
|
220
220
|
<ChatBubble {...args} className="absolute left-5 bottom-5">
|
|
221
221
|
<div
|
|
222
|
-
className="dark:bg-
|
|
222
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
223
223
|
style={{
|
|
224
224
|
width: 350,
|
|
225
225
|
height: 500,
|
|
@@ -41,7 +41,7 @@ export const Basic = () => {
|
|
|
41
41
|
]);
|
|
42
42
|
return (
|
|
43
43
|
<div
|
|
44
|
-
className="dark:bg-
|
|
44
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
45
45
|
style={{
|
|
46
46
|
width: 350,
|
|
47
47
|
height: 500,
|
|
@@ -87,7 +87,7 @@ export const Basic = () => {
|
|
|
87
87
|
export const Empty = () => {
|
|
88
88
|
return (
|
|
89
89
|
<div
|
|
90
|
-
className="dark:bg-
|
|
90
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
91
91
|
style={{
|
|
92
92
|
width: 350,
|
|
93
93
|
height: 500,
|
|
@@ -133,7 +133,7 @@ export const WithAppBar = () => {
|
|
|
133
133
|
]);
|
|
134
134
|
return (
|
|
135
135
|
<div
|
|
136
|
-
className="dark:bg-
|
|
136
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
137
137
|
style={{
|
|
138
138
|
width: 350,
|
|
139
139
|
height: 500,
|
|
@@ -242,7 +242,7 @@ export const TemplatesView = () => {
|
|
|
242
242
|
|
|
243
243
|
return (
|
|
244
244
|
<div
|
|
245
|
-
className="dark:bg-
|
|
245
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
246
246
|
style={{
|
|
247
247
|
width: 350,
|
|
248
248
|
height: 500,
|
|
@@ -307,7 +307,7 @@ export const TemplatesViewWithTitle = () => {
|
|
|
307
307
|
|
|
308
308
|
return (
|
|
309
309
|
<div
|
|
310
|
-
className="dark:bg-
|
|
310
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
311
311
|
style={{
|
|
312
312
|
width: 350,
|
|
313
313
|
height: 500,
|
|
@@ -382,7 +382,7 @@ export const TemplatesViewWithAppBar = () => {
|
|
|
382
382
|
|
|
383
383
|
return (
|
|
384
384
|
<div
|
|
385
|
-
className="dark:bg-
|
|
385
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white) flex flex-col"
|
|
386
386
|
style={{
|
|
387
387
|
width: 350,
|
|
388
388
|
height: 500,
|
|
@@ -55,7 +55,7 @@ export default {
|
|
|
55
55
|
export const Basic = () => {
|
|
56
56
|
return (
|
|
57
57
|
<div
|
|
58
|
-
className="dark:bg-
|
|
58
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
59
59
|
style={{
|
|
60
60
|
position: 'absolute',
|
|
61
61
|
top: 0,
|
|
@@ -89,7 +89,7 @@ export const Basic = () => {
|
|
|
89
89
|
export const Embeds = () => {
|
|
90
90
|
return (
|
|
91
91
|
<div
|
|
92
|
-
className="dark:bg-
|
|
92
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
93
93
|
style={{
|
|
94
94
|
position: 'absolute',
|
|
95
95
|
top: 0,
|
|
@@ -123,7 +123,7 @@ export const Embeds = () => {
|
|
|
123
123
|
export const DefaultSession = () => {
|
|
124
124
|
return (
|
|
125
125
|
<div
|
|
126
|
-
className="dark:bg-
|
|
126
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
127
127
|
style={{
|
|
128
128
|
position: 'absolute',
|
|
129
129
|
top: 0,
|
|
@@ -159,7 +159,7 @@ export const DefaultSession = () => {
|
|
|
159
159
|
export const Loading = () => {
|
|
160
160
|
return (
|
|
161
161
|
<div
|
|
162
|
-
className="dark:bg-
|
|
162
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
163
163
|
style={{
|
|
164
164
|
position: 'absolute',
|
|
165
165
|
top: 0,
|
|
@@ -199,7 +199,7 @@ export const FileUploads = () => {
|
|
|
199
199
|
|
|
200
200
|
return (
|
|
201
201
|
<div
|
|
202
|
-
className="dark:bg-
|
|
202
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
203
203
|
style={{
|
|
204
204
|
position: 'absolute',
|
|
205
205
|
top: 0,
|
|
@@ -257,7 +257,7 @@ export const FileUploads = () => {
|
|
|
257
257
|
export const DefaultInputValue = () => {
|
|
258
258
|
return (
|
|
259
259
|
<div
|
|
260
|
-
className="dark:bg-
|
|
260
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
261
261
|
style={{
|
|
262
262
|
position: 'absolute',
|
|
263
263
|
top: 0,
|
|
@@ -293,7 +293,7 @@ export const DefaultInputValue = () => {
|
|
|
293
293
|
export const UndeleteableSessions = () => {
|
|
294
294
|
return (
|
|
295
295
|
<div
|
|
296
|
-
className="dark:bg-
|
|
296
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
297
297
|
style={{
|
|
298
298
|
position: 'absolute',
|
|
299
299
|
top: 0,
|
|
@@ -367,7 +367,7 @@ export const SessionGrouping = () => {
|
|
|
367
367
|
|
|
368
368
|
return (
|
|
369
369
|
<div
|
|
370
|
-
className="dark:bg-
|
|
370
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
371
371
|
style={{
|
|
372
372
|
position: 'absolute',
|
|
373
373
|
top: 0,
|
|
@@ -423,7 +423,7 @@ export const HundredSessions = () => {
|
|
|
423
423
|
|
|
424
424
|
return (
|
|
425
425
|
<div
|
|
426
|
-
className="dark:bg-
|
|
426
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
427
427
|
style={{
|
|
428
428
|
position: 'absolute',
|
|
429
429
|
top: 0,
|
|
@@ -474,7 +474,7 @@ export const HundredConversations = () => {
|
|
|
474
474
|
|
|
475
475
|
return (
|
|
476
476
|
<div
|
|
477
|
-
className="dark:bg-
|
|
477
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
478
478
|
style={{
|
|
479
479
|
position: 'absolute',
|
|
480
480
|
top: 0,
|
|
@@ -531,7 +531,7 @@ export const LongSessionNames = () => {
|
|
|
531
531
|
|
|
532
532
|
return (
|
|
533
533
|
<div
|
|
534
|
-
className="dark:bg-
|
|
534
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
535
535
|
style={{
|
|
536
536
|
position: 'absolute',
|
|
537
537
|
top: 0,
|
|
@@ -648,7 +648,7 @@ export const MarkdownShowcase = () => {
|
|
|
648
648
|
|
|
649
649
|
return (
|
|
650
650
|
<div
|
|
651
|
-
className="dark:bg-
|
|
651
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
652
652
|
style={{
|
|
653
653
|
position: 'absolute',
|
|
654
654
|
top: 0,
|
|
@@ -718,7 +718,7 @@ export const CVEExample = () => {
|
|
|
718
718
|
|
|
719
719
|
return (
|
|
720
720
|
<div
|
|
721
|
-
className="dark:bg-
|
|
721
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
722
722
|
style={{
|
|
723
723
|
position: 'absolute',
|
|
724
724
|
top: 0,
|
|
@@ -754,7 +754,7 @@ export const CVEExample = () => {
|
|
|
754
754
|
export const Empty = () => {
|
|
755
755
|
return (
|
|
756
756
|
<div
|
|
757
|
-
className="dark:bg-
|
|
757
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
758
758
|
style={{
|
|
759
759
|
position: 'absolute',
|
|
760
760
|
top: 0,
|
|
@@ -817,7 +817,7 @@ export const Empty = () => {
|
|
|
817
817
|
export const ConversationSources = () => {
|
|
818
818
|
return (
|
|
819
819
|
<div
|
|
820
|
-
className="dark:bg-
|
|
820
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
821
821
|
style={{
|
|
822
822
|
position: 'absolute',
|
|
823
823
|
top: 0,
|
|
@@ -954,7 +954,7 @@ const CustomSessionListItem: FC<SessionListItemProps> = ({
|
|
|
954
954
|
export const CustomComponents = () => {
|
|
955
955
|
return (
|
|
956
956
|
<div
|
|
957
|
-
className="dark:bg-
|
|
957
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
958
958
|
style={{
|
|
959
959
|
position: 'absolute',
|
|
960
960
|
top: 0,
|
|
@@ -1038,25 +1038,25 @@ export const ImageFiles = () => {
|
|
|
1038
1038
|
id: '1',
|
|
1039
1039
|
name: 'landscape.jpg',
|
|
1040
1040
|
type: 'image/jpeg',
|
|
1041
|
-
url: 'https://
|
|
1041
|
+
url: 'https://picsum.photos/200?random=1'
|
|
1042
1042
|
},
|
|
1043
1043
|
{
|
|
1044
1044
|
id: '2',
|
|
1045
1045
|
name: 'portrait.jpg',
|
|
1046
1046
|
type: 'image/jpeg',
|
|
1047
|
-
url: 'https://
|
|
1047
|
+
url: 'https://picsum.photos/200?random=2'
|
|
1048
1048
|
},
|
|
1049
1049
|
{
|
|
1050
1050
|
id: '3',
|
|
1051
1051
|
name: 'abstract.png',
|
|
1052
1052
|
type: 'image/jpg',
|
|
1053
|
-
url: 'https://
|
|
1053
|
+
url: 'https://picsum.photos/200?random=3'
|
|
1054
1054
|
},
|
|
1055
1055
|
{
|
|
1056
1056
|
id: '4',
|
|
1057
1057
|
name: 'nature.jpg',
|
|
1058
1058
|
type: 'image/jpeg',
|
|
1059
|
-
url: 'https://
|
|
1059
|
+
url: 'https://picsum.photos/200?random=4'
|
|
1060
1060
|
}
|
|
1061
1061
|
];
|
|
1062
1062
|
|
|
@@ -1089,7 +1089,7 @@ export const ImageFiles = () => {
|
|
|
1089
1089
|
|
|
1090
1090
|
return (
|
|
1091
1091
|
<div
|
|
1092
|
-
className="dark:bg-
|
|
1092
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
1093
1093
|
style={{
|
|
1094
1094
|
position: 'absolute',
|
|
1095
1095
|
top: 0,
|
|
@@ -1124,7 +1124,7 @@ export const ImageFiles = () => {
|
|
|
1124
1124
|
export const CSVPreview = () => {
|
|
1125
1125
|
return (
|
|
1126
1126
|
<div
|
|
1127
|
-
className="dark:bg-
|
|
1127
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
1128
1128
|
style={{
|
|
1129
1129
|
position: 'absolute',
|
|
1130
1130
|
inset: 0,
|
|
@@ -126,7 +126,7 @@ export const _OpenAI = () => {
|
|
|
126
126
|
onChange={e => setApiKey(e.target.value)}
|
|
127
127
|
/>
|
|
128
128
|
<div
|
|
129
|
-
className="dark:bg-
|
|
129
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
130
130
|
style={{
|
|
131
131
|
position: 'absolute',
|
|
132
132
|
top: 50,
|
|
@@ -273,7 +273,7 @@ export const VercelAI = () => {
|
|
|
273
273
|
onChange={e => setApiKey(e.target.value)}
|
|
274
274
|
/>
|
|
275
275
|
<div
|
|
276
|
-
className="dark:bg-
|
|
276
|
+
className="dark:bg-(--color-background-basic-black) bg-(--color-background-basic-white)"
|
|
277
277
|
style={{
|
|
278
278
|
position: 'absolute',
|
|
279
279
|
top: 50,
|
package/dist/stories/Intro.mdx
CHANGED
|
@@ -1,21 +1,40 @@
|
|
|
1
1
|
<svg width="795" height="140" viewBox="0 0 795 140" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<path
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<path
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
<path
|
|
3
|
+
d="M18.3191 17.5C10.2662 17.5 3.73579 24.0304 3.73579 32.0833V102.083L30.2775 84.5833H82.4858C90.5387 84.5833 97.0691 78.0529 97.0691 70V17.5H18.3191Z"
|
|
4
|
+
fill="url(#paint0_linear_182_647)" />
|
|
5
|
+
<path
|
|
6
|
+
d="M137.902 61.2501V134.167L111.361 116.667H59.1525C51.0995 116.667 44.5691 110.136 44.5691 102.083V84.5834H82.4858C90.5387 84.5834 97.0691 78.053 97.0691 70.0001V46.6667H123.319C131.372 46.6667 137.902 53.1972 137.902 61.2501Z"
|
|
7
|
+
fill="url(#paint1_linear_182_647)" />
|
|
8
|
+
<path
|
|
9
|
+
d="M251.987 103.6H237.683L224.147 80.2719H214.067V103.6H200.819V36.3999H227.699C233.939 36.3999 239.219 38.6079 243.539 42.9279C247.859 47.2479 250.067 52.5279 250.067 58.6719C250.067 67.0239 244.883 74.7039 237.107 78.2559L251.987 103.6ZM227.699 48.7839H200.819V68.6559H227.699C232.691 68.6559 236.819 64.1439 236.819 58.6719C236.819 53.1999 232.691 48.7839 227.699 48.7839Z"
|
|
10
|
+
fill="currentColor" />
|
|
11
|
+
<path
|
|
12
|
+
d="M290.508 75.8559V90.9279H332.076V103.6H290.508V36.3999H331.596V49.0719H290.508V63.3759H329.196V75.8559H290.508Z"
|
|
13
|
+
fill="currentColor" />
|
|
14
|
+
<path
|
|
15
|
+
d="M430.765 103.6H416.365L412.333 91.5039H385.549L381.517 103.6H367.213L390.733 36.3999H407.149L430.765 103.6ZM398.989 51.6639L385.549 91.5039H412.333L398.989 51.6639Z"
|
|
16
|
+
fill="currentColor" />
|
|
17
|
+
<path
|
|
18
|
+
d="M497.445 104.944C487.365 104.944 479.013 101.584 472.389 94.8639C465.765 88.1439 462.501 79.8879 462.501 69.9999C462.501 60.1119 465.765 51.7599 472.389 45.1359C479.013 38.4159 487.365 35.0559 497.445 35.0559C509.637 35.0559 520.581 41.1999 526.341 50.8959L514.917 57.5199C511.557 51.4719 505.125 47.9199 497.445 47.9199C490.917 47.9199 485.637 49.9359 481.605 54.0639C477.669 58.1919 475.653 63.4719 475.653 69.9999C475.653 76.4319 477.669 81.7119 481.605 85.8399C485.637 89.9679 490.917 91.9839 497.445 91.9839C505.125 91.9839 511.749 88.3359 514.917 82.4799L526.341 89.1039C520.581 98.7999 509.733 104.944 497.445 104.944Z"
|
|
19
|
+
fill="currentColor" />
|
|
20
|
+
<path
|
|
21
|
+
d="M603.407 63.0879V36.3999H616.559V103.6H603.407V75.7599H578.447V103.6H565.199V36.3999H578.447V63.0879H603.407Z"
|
|
22
|
+
fill="currentColor" />
|
|
23
|
+
<path
|
|
24
|
+
d="M717.363 103.6H702.963L698.931 91.5039H672.147L668.115 103.6H653.811L677.331 36.3999H693.747L717.363 103.6ZM685.587 51.6639L672.147 91.5039H698.931L685.587 51.6639Z"
|
|
25
|
+
fill="currentColor" />
|
|
26
|
+
<path d="M744.741 36.3999H794.181V49.0719H776.037V103.6H762.789V49.0719H744.741V36.3999Z"
|
|
27
|
+
fill="currentColor" />
|
|
28
|
+
<defs>
|
|
29
|
+
<linearGradient id="paint0_linear_182_647" x1="50.4025" y1="17.5" x2="50.4025" y2="102.083"
|
|
30
|
+
gradientUnits="userSpaceOnUse">
|
|
31
|
+
<stop stop-color="#105EFF" />
|
|
32
|
+
<stop offset="1" stop-color="#2E2E77" />
|
|
33
|
+
</linearGradient>
|
|
34
|
+
<linearGradient id="paint1_linear_182_647" x1="141.706" y1="169.085" x2="61.445" y2="30.0709"
|
|
35
|
+
gradientUnits="userSpaceOnUse">
|
|
36
|
+
<stop stop-color="#105EFF" />
|
|
37
|
+
<stop offset="1" stop-color="#105EFF" stop-opacity="0.71" />
|
|
38
|
+
</linearGradient>
|
|
39
|
+
</defs>
|
|
21
40
|
</svg>
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="24px" height="24px">
|
|
2
|
+
<path
|
|
3
|
+
d="M25.3,56.007c-3.409,0-6.818-1.297-9.414-3.893c-2.595-2.596-3.893-6.005-3.893-9.415c0-3.409,1.298-6.819,3.893-9.414 l20.4-20.4c1.847-1.847,4.302-2.864,6.914-2.864c2.611,0,5.067,1.017,6.914,2.864c3.812,3.813,3.812,10.016,0,13.829l-20.4,20.4 c-2.438,2.439-6.385,2.441-8.828,0c-2.434-2.435-2.434-6.395,0-8.829l13.7-13.7c0.781-0.781,2.047-0.781,2.828,0 c0.781,0.781,0.781,2.047,0,2.828l-13.7,13.7c-0.874,0.875-0.874,2.297,0.001,3.172c0.847,0.846,2.324,0.846,3.171,0l20.4-20.4 c2.252-2.253,2.252-5.919,0-8.172c-1.092-1.091-2.543-1.692-4.086-1.692c-1.544,0-2.994,0.601-4.086,1.692l-20.4,20.4 c-1.815,1.816-2.723,4.201-2.723,6.586c0,2.385,0.908,4.77,2.723,6.586c1.816,1.815,4.201,2.723,6.586,2.723 c2.385,0,4.771-0.907,6.586-2.723l12.7-12.7c0.781-0.781,2.047-0.781,2.828,0c0.781,0.781,0.781,2.047,0,2.828l-12.7,12.7 C32.119,54.709,28.71,56.007,25.3,56.007z" fill="currentColor" />
|
|
4
|
+
</svg>
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="none">
|
|
2
|
+
<path
|
|
3
|
+
d="M7.75 2C10.92 2 13.5 4.58 13.5 7.75C13.5 9.06476 13.0552 10.2773 12.3096 11.2471L15.7812 14.7188C16.0743 15.0118 16.0743 15.4873 15.7812 15.7803C15.6353 15.9263 15.443 16 15.251 16H15.25C15.058 16 14.8657 15.9273 14.7197 15.7803L11.248 12.3086C10.2781 13.0547 9.06525 13.5 7.75 13.5C4.58 13.5 2 10.92 2 7.75C2 4.58 4.58 2 7.75 2ZM7.75 3.5C5.407 3.5 3.5 5.407 3.5 7.75C3.5 10.093 5.407 12 7.75 12C10.093 12 12 10.093 12 7.75C12 5.407 10.093 3.5 7.75 3.5Z"
|
|
4
|
+
fill="currentColor" />
|
|
5
|
+
</svg>
|
package/dist/stories/examples.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Session } from '@/types';
|
|
2
1
|
import { subHours } from 'date-fns';
|
|
3
2
|
|
|
3
|
+
import type { Session } from '@/types';
|
|
4
|
+
|
|
4
5
|
export const fakeSessions: Session[] = [
|
|
5
6
|
{
|
|
6
7
|
id: '1',
|
|
@@ -187,12 +188,11 @@ export const sessionWithDataDocs: Session[] = [
|
|
|
187
188
|
{
|
|
188
189
|
id: '1',
|
|
189
190
|
question: 'Summarize the contents of the CSV.',
|
|
190
|
-
response:
|
|
191
|
+
response:
|
|
192
|
+
'The CSV file contains a dataset with the following columns: Name, Age, Occupation, and City.',
|
|
191
193
|
createdAt: new Date(),
|
|
192
194
|
updatedAt: new Date(),
|
|
193
|
-
files: [
|
|
194
|
-
{ name: 'sample.csv', size: 1024000, type: 'text/csv' }
|
|
195
|
-
]
|
|
195
|
+
files: [{ name: 'sample.csv', size: 1024000, type: 'text/csv' }]
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
id: '2',
|
|
@@ -201,7 +201,7 @@ export const sessionWithDataDocs: Session[] = [
|
|
|
201
201
|
createdAt: new Date(),
|
|
202
202
|
updatedAt: new Date(),
|
|
203
203
|
files: [
|
|
204
|
-
{ name: 'document.pdf', size: 1024000, type: 'application/pdf' }
|
|
204
|
+
{ name: 'document.pdf', size: 1024000, type: 'application/pdf' }
|
|
205
205
|
]
|
|
206
206
|
}
|
|
207
207
|
]
|
|
@@ -218,11 +218,17 @@ export const sessionWithCSVFiles: Session[] = [
|
|
|
218
218
|
{
|
|
219
219
|
id: '1',
|
|
220
220
|
question: 'Summarize the contents of the CSV.',
|
|
221
|
-
response:
|
|
221
|
+
response:
|
|
222
|
+
'The CSV file contains a dataset with the following columns: Name, HEX, RGB.',
|
|
222
223
|
createdAt: new Date(),
|
|
223
224
|
updatedAt: new Date(),
|
|
224
225
|
files: [
|
|
225
|
-
{
|
|
226
|
+
{
|
|
227
|
+
name: 'sample.csv',
|
|
228
|
+
size: 500,
|
|
229
|
+
type: 'text/csv',
|
|
230
|
+
url: 'https://gist.githubusercontent.com/RobVanGroenewoud/ba89ad7684df8cefe5c183adb498cc65/raw/f2eec6d2cb89f5d779e16b28ed0dab89d738ba96/sample.csv'
|
|
231
|
+
}
|
|
226
232
|
]
|
|
227
233
|
},
|
|
228
234
|
{
|
|
@@ -232,7 +238,7 @@ export const sessionWithCSVFiles: Session[] = [
|
|
|
232
238
|
createdAt: new Date(),
|
|
233
239
|
updatedAt: new Date(),
|
|
234
240
|
files: [
|
|
235
|
-
{ name: 'document.pdf', size: 1024000, type: 'application/pdf' }
|
|
241
|
+
{ name: 'document.pdf', size: 1024000, type: 'application/pdf' }
|
|
236
242
|
]
|
|
237
243
|
}
|
|
238
244
|
]
|
|
@@ -243,25 +249,26 @@ export const chatTemplates = [
|
|
|
243
249
|
{
|
|
244
250
|
id: '1',
|
|
245
251
|
title: 'Explore Components',
|
|
246
|
-
message:
|
|
252
|
+
message: 'Can you show me the main components available in Reachat?',
|
|
247
253
|
icon: 'SendPlane'
|
|
248
254
|
},
|
|
249
255
|
{
|
|
250
256
|
id: '2',
|
|
251
257
|
title: 'Customize Chat UI',
|
|
252
|
-
message:
|
|
258
|
+
message: 'How can I customize the appearance of my Reachat interface?',
|
|
253
259
|
icon: 'SendPlane'
|
|
254
260
|
},
|
|
255
261
|
{
|
|
256
262
|
id: '3',
|
|
257
263
|
title: 'Manage Sessions',
|
|
258
|
-
message:
|
|
264
|
+
message:
|
|
265
|
+
'What are the best practices for managing chat sessions in Reachat?',
|
|
259
266
|
icon: 'SendPlane'
|
|
260
267
|
},
|
|
261
268
|
{
|
|
262
269
|
id: '4',
|
|
263
270
|
title: 'Tailwind Setup',
|
|
264
|
-
message:
|
|
271
|
+
message: 'How do I properly set up Tailwind CSS with Reachat?',
|
|
265
272
|
icon: 'SendPlane'
|
|
266
273
|
}
|
|
267
274
|
];
|
package/dist/theme.d.ts
CHANGED
|
@@ -64,6 +64,19 @@ export interface ChatTheme {
|
|
|
64
64
|
ol: string;
|
|
65
65
|
copy: string;
|
|
66
66
|
};
|
|
67
|
+
csvPreview: {
|
|
68
|
+
base: string;
|
|
69
|
+
header: {
|
|
70
|
+
base: string;
|
|
71
|
+
icon: string;
|
|
72
|
+
actions: string;
|
|
73
|
+
};
|
|
74
|
+
tableContainer: string;
|
|
75
|
+
dialog: {
|
|
76
|
+
base: string;
|
|
77
|
+
container: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
67
80
|
footer: {
|
|
68
81
|
base: string;
|
|
69
82
|
copy: string;
|