flowdit-chatbot-library 1.0.0 → 1.0.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.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css +280 -93
- package/dist/utilities/API.d.ts +1 -0
- package/dist/utilities/API.d.ts.map +1 -1
- package/dist/utilities/API.js.map +1 -1
- package/dist/views/ConversationHistory.d.ts +15 -0
- package/dist/views/ConversationHistory.d.ts.map +1 -0
- package/dist/views/ConversationHistory.js +75 -0
- package/dist/views/ConversationHistory.js.map +1 -0
- package/dist/views/fullscreen/index.d.ts +8 -1
- package/dist/views/fullscreen/index.d.ts.map +1 -1
- package/dist/views/fullscreen/index.functions.d.ts.map +1 -1
- package/dist/views/fullscreen/index.functions.js +8 -1
- package/dist/views/fullscreen/index.functions.js.map +1 -1
- package/dist/views/fullscreen/index.js +350 -205
- package/dist/views/fullscreen/index.js.map +1 -1
- package/package.json +4 -2
- package/LICENSE +0 -21
- package/README.md +0 -218
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { FullScreenChat } from './views/fullscreen';
|
|
2
2
|
export { default as ChatbotToolsWrapper } from './views/tools';
|
|
3
|
+
export { ConversationHistory } from './views/ConversationHistory';
|
|
4
|
+
export type { Conversation } from './views/ConversationHistory';
|
|
3
5
|
export { ChatbotProvider } from './redux/Provider';
|
|
4
6
|
export { useChatbotDispatch, useChatbotSelector, useChatbotState } from './redux/hooks';
|
|
5
7
|
export { getStore, resetStore } from './redux/store';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,YAAY,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAG/D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EAChB,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAGpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAGrE,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAG/D,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAC3E,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,MAAM,4BAA4B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Components
|
|
3
3
|
export { FullScreenChat } from './views/fullscreen';
|
|
4
4
|
export { default as ChatbotToolsWrapper } from './views/tools';
|
|
5
|
+
export { ConversationHistory } from './views/ConversationHistory';
|
|
5
6
|
// Redux Provider (wraps components with internal store)
|
|
6
7
|
export { ChatbotProvider } from './redux/Provider';
|
|
7
8
|
// Redux Hooks (for accessing internal store)
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAE3C,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAE3C,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAGjE,wDAAwD;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,6CAA6C;AAC7C,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EAChB,MAAM,eAAe,CAAA;AAEtB,mCAAmC;AACnC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEpD,uDAAuD;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAOrE,YAAY;AACZ,OAAO,EAAE,GAAG,EAAE,aAAa,EAAyB,MAAM,iBAAiB,CAAA;AAC3E,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAmC,MAAM,4BAA4B,CAAA;AAE5G,yDAAyD;AACzD,oDAAoD"}
|
package/dist/styles.css
CHANGED
|
@@ -1,11 +1,231 @@
|
|
|
1
1
|
.chat-gpt-interface {
|
|
2
2
|
display: flex;
|
|
3
|
-
flex-direction:
|
|
4
|
-
height:
|
|
5
|
-
background-color: #
|
|
6
|
-
font-family: "Inter", system-ui,
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
height: 100vh;
|
|
5
|
+
background-color: #212121;
|
|
6
|
+
font-family: "Outfit", "Inter", system-ui, sans-serif;
|
|
7
7
|
color: #ECECF1;
|
|
8
8
|
overflow: hidden;
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
.chat-gpt-interface .sidebar-overlay {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
@media (max-width: 768px) {
|
|
15
|
+
.chat-gpt-interface .sidebar-overlay {
|
|
16
|
+
display: block;
|
|
17
|
+
position: fixed;
|
|
18
|
+
inset: 0;
|
|
19
|
+
background: rgba(0, 0, 0, 0.5);
|
|
20
|
+
z-index: 90;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.chat-gpt-interface .chat-sidebar {
|
|
24
|
+
width: 260px;
|
|
25
|
+
height: 100%;
|
|
26
|
+
background-color: #171717;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s;
|
|
30
|
+
z-index: 100;
|
|
31
|
+
border-right: 1px solid rgba(255, 255, 255, 0.05);
|
|
32
|
+
}
|
|
33
|
+
@media (max-width: 768px) {
|
|
34
|
+
.chat-gpt-interface .chat-sidebar {
|
|
35
|
+
position: fixed;
|
|
36
|
+
left: 0;
|
|
37
|
+
top: 0;
|
|
38
|
+
transform: translateX(-100%);
|
|
39
|
+
}
|
|
40
|
+
.chat-gpt-interface .chat-sidebar.open {
|
|
41
|
+
transform: translateX(0);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
.chat-gpt-interface .chat-sidebar .sidebar-header {
|
|
45
|
+
padding: 12px;
|
|
46
|
+
display: flex;
|
|
47
|
+
gap: 8px;
|
|
48
|
+
}
|
|
49
|
+
.chat-gpt-interface .chat-sidebar .sidebar-header .new-chat-sidebar-btn {
|
|
50
|
+
flex: 1;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: 12px;
|
|
54
|
+
background: transparent;
|
|
55
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
56
|
+
border-radius: 8px;
|
|
57
|
+
padding: 10px 12px;
|
|
58
|
+
color: #fff;
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
font-weight: 500;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
transition: background 0.2s;
|
|
63
|
+
}
|
|
64
|
+
.chat-gpt-interface .chat-sidebar .sidebar-header .new-chat-sidebar-btn:hover {
|
|
65
|
+
background: rgba(255, 255, 255, 0.05);
|
|
66
|
+
}
|
|
67
|
+
.chat-gpt-interface .chat-sidebar .sidebar-header .sidebar-toggle-mobile {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
@media (max-width: 768px) {
|
|
71
|
+
.chat-gpt-interface .chat-sidebar .sidebar-header .sidebar-toggle-mobile {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
background: transparent;
|
|
76
|
+
border: none;
|
|
77
|
+
color: #888;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.chat-gpt-interface .chat-sidebar .sidebar-history {
|
|
81
|
+
flex: 1;
|
|
82
|
+
overflow-y: auto;
|
|
83
|
+
padding: 8px;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
gap: 4px;
|
|
87
|
+
}
|
|
88
|
+
.chat-gpt-interface .chat-sidebar .sidebar-history .history-label {
|
|
89
|
+
font-size: 11px;
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
color: #666;
|
|
92
|
+
padding: 8px 12px;
|
|
93
|
+
text-transform: uppercase;
|
|
94
|
+
letter-spacing: 0.5px;
|
|
95
|
+
}
|
|
96
|
+
.chat-gpt-interface .chat-sidebar .sidebar-history .history-item {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: 12px;
|
|
100
|
+
padding: 10px 12px;
|
|
101
|
+
border-radius: 8px;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
color: #ccc;
|
|
104
|
+
font-size: 13.5px;
|
|
105
|
+
transition: all 0.2s;
|
|
106
|
+
position: relative;
|
|
107
|
+
position: relative;
|
|
108
|
+
}
|
|
109
|
+
.chat-gpt-interface .chat-sidebar .sidebar-history .history-item:hover {
|
|
110
|
+
background: rgba(255, 255, 255, 0.05);
|
|
111
|
+
color: #fff;
|
|
112
|
+
}
|
|
113
|
+
.chat-gpt-interface .chat-sidebar .sidebar-history .history-item:hover .delete-btn {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
}
|
|
116
|
+
.chat-gpt-interface .chat-sidebar .sidebar-history .history-item.active {
|
|
117
|
+
background: rgba(255, 255, 255, 0.1);
|
|
118
|
+
color: #fff;
|
|
119
|
+
}
|
|
120
|
+
.chat-gpt-interface .chat-sidebar .sidebar-history .history-item .item-icon {
|
|
121
|
+
flex-shrink: 0;
|
|
122
|
+
opacity: 0.7;
|
|
123
|
+
}
|
|
124
|
+
.chat-gpt-interface .chat-sidebar .sidebar-history .history-item .item-title {
|
|
125
|
+
flex: 1;
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
text-overflow: ellipsis;
|
|
129
|
+
}
|
|
130
|
+
.chat-gpt-interface .chat-sidebar .sidebar-history .history-item .delete-btn {
|
|
131
|
+
opacity: 0;
|
|
132
|
+
background: transparent;
|
|
133
|
+
border: none;
|
|
134
|
+
color: #666;
|
|
135
|
+
padding: 4px;
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
transition: color 0.2s;
|
|
140
|
+
}
|
|
141
|
+
.chat-gpt-interface .chat-sidebar .sidebar-history .history-item .delete-btn:hover {
|
|
142
|
+
color: #ff4d4d;
|
|
143
|
+
}
|
|
144
|
+
.chat-gpt-interface .chat-sidebar .sidebar-footer {
|
|
145
|
+
padding: 12px;
|
|
146
|
+
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
|
147
|
+
}
|
|
148
|
+
.chat-gpt-interface .chat-sidebar .sidebar-footer .user-profile {
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
gap: 12px;
|
|
152
|
+
padding: 8px;
|
|
153
|
+
border-radius: 8px;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
}
|
|
156
|
+
.chat-gpt-interface .chat-sidebar .sidebar-footer .user-profile:hover {
|
|
157
|
+
background: rgba(255, 255, 255, 0.05);
|
|
158
|
+
}
|
|
159
|
+
.chat-gpt-interface .chat-sidebar .sidebar-footer .user-profile .user-avatar-small {
|
|
160
|
+
width: 32px;
|
|
161
|
+
height: 32px;
|
|
162
|
+
border-radius: 50%;
|
|
163
|
+
background: #5436DA;
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
justify-content: center;
|
|
167
|
+
color: #fff;
|
|
168
|
+
}
|
|
169
|
+
.chat-gpt-interface .chat-sidebar .sidebar-footer .user-profile .user-avatar-small svg {
|
|
170
|
+
width: 18px;
|
|
171
|
+
height: 18px;
|
|
172
|
+
}
|
|
173
|
+
.chat-gpt-interface .chat-sidebar .sidebar-footer .user-profile .user-name {
|
|
174
|
+
font-size: 14px;
|
|
175
|
+
font-weight: 500;
|
|
176
|
+
}
|
|
177
|
+
.chat-gpt-interface .chat-main {
|
|
178
|
+
flex: 1;
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
min-width: 0;
|
|
182
|
+
position: relative;
|
|
183
|
+
background-color: #212121;
|
|
184
|
+
}
|
|
185
|
+
.chat-gpt-interface .chat-header {
|
|
186
|
+
height: 52px;
|
|
187
|
+
display: flex;
|
|
188
|
+
align-items: center;
|
|
189
|
+
padding: 0 16px;
|
|
190
|
+
background: rgba(33, 33, 33, 0.8);
|
|
191
|
+
backdrop-filter: blur(8px);
|
|
192
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
193
|
+
z-index: 80;
|
|
194
|
+
}
|
|
195
|
+
.chat-gpt-interface .chat-header .sidebar-toggle-btn {
|
|
196
|
+
background: transparent;
|
|
197
|
+
border: none;
|
|
198
|
+
color: #888;
|
|
199
|
+
padding: 8px;
|
|
200
|
+
border-radius: 6px;
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
display: flex;
|
|
203
|
+
align-items: center;
|
|
204
|
+
justify-content: center;
|
|
205
|
+
transition: all 0.2s;
|
|
206
|
+
}
|
|
207
|
+
.chat-gpt-interface .chat-header .sidebar-toggle-btn:hover {
|
|
208
|
+
background: rgba(255, 255, 255, 0.05);
|
|
209
|
+
color: #fff;
|
|
210
|
+
}
|
|
211
|
+
.chat-gpt-interface .chat-header .header-title {
|
|
212
|
+
flex: 1;
|
|
213
|
+
text-align: center;
|
|
214
|
+
font-size: 14px;
|
|
215
|
+
font-weight: 600;
|
|
216
|
+
color: #ececf1;
|
|
217
|
+
white-space: nowrap;
|
|
218
|
+
overflow: hidden;
|
|
219
|
+
text-overflow: ellipsis;
|
|
220
|
+
margin: 0 40px;
|
|
221
|
+
}
|
|
222
|
+
.chat-gpt-interface.sidebar-closed .chat-sidebar {
|
|
223
|
+
margin-left: -260px;
|
|
224
|
+
}
|
|
225
|
+
@media (max-width: 768px) {
|
|
226
|
+
.chat-gpt-interface.sidebar-closed .chat-sidebar {
|
|
227
|
+
margin-left: 0;
|
|
228
|
+
}
|
|
9
229
|
}
|
|
10
230
|
.chat-gpt-interface .chat-scroll-area {
|
|
11
231
|
flex: 1;
|
|
@@ -16,14 +236,11 @@
|
|
|
16
236
|
flex-direction: column;
|
|
17
237
|
}
|
|
18
238
|
.chat-gpt-interface .chat-scroll-area::-webkit-scrollbar {
|
|
19
|
-
width:
|
|
20
|
-
}
|
|
21
|
-
.chat-gpt-interface .chat-scroll-area::-webkit-scrollbar-track {
|
|
22
|
-
background: transparent;
|
|
239
|
+
width: 6px;
|
|
23
240
|
}
|
|
24
241
|
.chat-gpt-interface .chat-scroll-area::-webkit-scrollbar-thumb {
|
|
25
|
-
background-color: rgba(255, 255, 255, 0.
|
|
26
|
-
border-radius:
|
|
242
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
243
|
+
border-radius: 10px;
|
|
27
244
|
}
|
|
28
245
|
.chat-gpt-interface .chat-scroll-area .empty-state-container {
|
|
29
246
|
flex: 1;
|
|
@@ -32,150 +249,120 @@
|
|
|
32
249
|
align-items: center;
|
|
33
250
|
justify-content: center;
|
|
34
251
|
padding: 0 20px;
|
|
35
|
-
margin-bottom:
|
|
252
|
+
margin-bottom: 80px;
|
|
36
253
|
}
|
|
37
254
|
.chat-gpt-interface .chat-scroll-area .empty-state-container .empty-state-content {
|
|
38
255
|
display: flex;
|
|
39
256
|
flex-direction: column;
|
|
40
257
|
align-items: center;
|
|
41
|
-
max-width:
|
|
258
|
+
max-width: 650px;
|
|
42
259
|
width: 100%;
|
|
43
260
|
}
|
|
44
261
|
.chat-gpt-interface .chat-scroll-area .empty-state-container .empty-state-content .logo-placeholder {
|
|
45
|
-
background
|
|
46
|
-
width:
|
|
47
|
-
height:
|
|
48
|
-
border-radius:
|
|
262
|
+
background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
|
|
263
|
+
width: 80px;
|
|
264
|
+
height: 80px;
|
|
265
|
+
border-radius: 22px;
|
|
49
266
|
display: flex;
|
|
50
267
|
align-items: center;
|
|
51
268
|
justify-content: center;
|
|
52
|
-
margin-bottom:
|
|
269
|
+
margin-bottom: 32px;
|
|
270
|
+
box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
|
|
53
271
|
}
|
|
54
272
|
.chat-gpt-interface .chat-scroll-area .empty-state-container .empty-state-content .logo-placeholder svg {
|
|
55
|
-
width:
|
|
56
|
-
height:
|
|
57
|
-
color: #
|
|
273
|
+
width: 44px;
|
|
274
|
+
height: 44px;
|
|
275
|
+
color: #fff;
|
|
58
276
|
}
|
|
59
277
|
.chat-gpt-interface .chat-scroll-area .empty-state-container .empty-state-content h2 {
|
|
60
|
-
font-
|
|
61
|
-
|
|
62
|
-
|
|
278
|
+
font-size: 28px;
|
|
279
|
+
font-weight: 700;
|
|
280
|
+
margin-bottom: 48px;
|
|
281
|
+
color: #fff;
|
|
282
|
+
letter-spacing: -0.5px;
|
|
63
283
|
}
|
|
64
284
|
.chat-gpt-interface .chat-scroll-area .empty-state-container .empty-state-content .capabilities-grid {
|
|
65
285
|
display: grid;
|
|
66
|
-
grid-template-columns: repeat(
|
|
67
|
-
gap:
|
|
286
|
+
grid-template-columns: repeat(3, 1fr);
|
|
287
|
+
gap: 12px;
|
|
68
288
|
width: 100%;
|
|
69
289
|
}
|
|
290
|
+
@media (max-width: 640px) {
|
|
291
|
+
.chat-gpt-interface .chat-scroll-area .empty-state-container .empty-state-content .capabilities-grid {
|
|
292
|
+
grid-template-columns: 1fr;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
70
295
|
.chat-gpt-interface .chat-scroll-area .empty-state-container .empty-state-content .capabilities-grid .capability-card {
|
|
71
|
-
background-color:
|
|
72
|
-
border: 1px solid rgba(255, 255, 255, 0.
|
|
73
|
-
border-radius:
|
|
74
|
-
padding:
|
|
75
|
-
text-align:
|
|
76
|
-
font-size:
|
|
77
|
-
color: #
|
|
296
|
+
background-color: #2f2f2f;
|
|
297
|
+
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
298
|
+
border-radius: 14px;
|
|
299
|
+
padding: 16px;
|
|
300
|
+
text-align: left;
|
|
301
|
+
font-size: 13.5px;
|
|
302
|
+
color: #aaa;
|
|
78
303
|
cursor: pointer;
|
|
79
|
-
transition:
|
|
304
|
+
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
80
305
|
}
|
|
81
306
|
.chat-gpt-interface .chat-scroll-area .empty-state-container .empty-state-content .capabilities-grid .capability-card:hover {
|
|
82
|
-
background-color:
|
|
307
|
+
background-color: #3a3a3a;
|
|
308
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
309
|
+
transform: translateY(-2px);
|
|
310
|
+
color: #fff;
|
|
83
311
|
}
|
|
84
312
|
.chat-gpt-interface .message-row {
|
|
85
313
|
width: 100%;
|
|
86
314
|
padding: 24px 0;
|
|
87
|
-
|
|
315
|
+
transition: background 0.2s;
|
|
88
316
|
}
|
|
89
317
|
.chat-gpt-interface .message-row.user {
|
|
90
|
-
background-color:
|
|
318
|
+
background-color: transparent;
|
|
91
319
|
}
|
|
92
320
|
.chat-gpt-interface .message-row.assistant {
|
|
93
|
-
background-color: #
|
|
321
|
+
background-color: #212121;
|
|
94
322
|
}
|
|
95
323
|
.chat-gpt-interface .message-row .message-content-container {
|
|
96
324
|
display: flex;
|
|
97
|
-
max-width:
|
|
325
|
+
max-width: 760px;
|
|
98
326
|
margin: 0 auto;
|
|
99
|
-
padding: 0
|
|
100
|
-
gap:
|
|
327
|
+
padding: 0 24px;
|
|
328
|
+
gap: 20px;
|
|
101
329
|
}
|
|
102
330
|
.chat-gpt-interface .message-row .message-content-container .avatar {
|
|
103
|
-
width:
|
|
104
|
-
height:
|
|
105
|
-
border-radius:
|
|
331
|
+
width: 32px;
|
|
332
|
+
height: 32px;
|
|
333
|
+
border-radius: 8px;
|
|
106
334
|
flex-shrink: 0;
|
|
107
335
|
display: flex;
|
|
108
336
|
align-items: center;
|
|
109
337
|
justify-content: center;
|
|
110
|
-
|
|
338
|
+
overflow: hidden;
|
|
111
339
|
}
|
|
112
340
|
.chat-gpt-interface .message-row .message-content-container .avatar.user-avatar {
|
|
113
|
-
background
|
|
341
|
+
background: #5436DA;
|
|
114
342
|
color: white;
|
|
115
343
|
}
|
|
116
344
|
.chat-gpt-interface .message-row .message-content-container .avatar.assistant-avatar {
|
|
117
|
-
background
|
|
345
|
+
background: #19C37D;
|
|
118
346
|
color: white;
|
|
347
|
+
box-shadow: 0 2px 10px rgba(25, 195, 125, 0.3);
|
|
119
348
|
}
|
|
120
|
-
.chat-gpt-interface .message-row .message-content-container .avatar img,
|
|
121
349
|
.chat-gpt-interface .message-row .message-content-container .avatar svg {
|
|
122
|
-
width:
|
|
123
|
-
height:
|
|
350
|
+
width: 20px;
|
|
351
|
+
height: 20px;
|
|
124
352
|
}
|
|
125
353
|
.chat-gpt-interface .message-row .message-content-container .text-content {
|
|
126
354
|
flex: 1;
|
|
127
355
|
line-height: 1.6;
|
|
128
|
-
font-size:
|
|
129
|
-
color: #
|
|
356
|
+
font-size: 15.5px;
|
|
357
|
+
color: #e5e5e5;
|
|
130
358
|
min-width: 0;
|
|
131
|
-
text-align: start;
|
|
132
359
|
}
|
|
133
360
|
.chat-gpt-interface .message-row .message-content-container .text-content p {
|
|
134
|
-
margin-bottom:
|
|
361
|
+
margin-bottom: 1.25em;
|
|
135
362
|
}
|
|
136
363
|
.chat-gpt-interface .message-row .message-content-container .text-content p:last-child {
|
|
137
364
|
margin-bottom: 0;
|
|
138
365
|
}
|
|
139
|
-
.chat-gpt-interface .message-row .message-content-container .text-content h1,
|
|
140
|
-
.chat-gpt-interface .message-row .message-content-container .text-content h2,
|
|
141
|
-
.chat-gpt-interface .message-row .message-content-container .text-content h3,
|
|
142
|
-
.chat-gpt-interface .message-row .message-content-container .text-content h4,
|
|
143
|
-
.chat-gpt-interface .message-row .message-content-container .text-content h5,
|
|
144
|
-
.chat-gpt-interface .message-row .message-content-container .text-content h6 {
|
|
145
|
-
color: #ECECF1;
|
|
146
|
-
margin-top: 1em;
|
|
147
|
-
margin-bottom: 0.5em;
|
|
148
|
-
font-weight: 600;
|
|
149
|
-
}
|
|
150
|
-
.chat-gpt-interface .message-row .message-content-container .text-content ul,
|
|
151
|
-
.chat-gpt-interface .message-row .message-content-container .text-content ol {
|
|
152
|
-
margin-bottom: 1em;
|
|
153
|
-
padding-left: 1.5em;
|
|
154
|
-
}
|
|
155
|
-
.chat-gpt-interface .message-row .message-content-container .text-content li {
|
|
156
|
-
margin-bottom: 0.5em;
|
|
157
|
-
}
|
|
158
|
-
.chat-gpt-interface .message-row .message-content-container .text-content code {
|
|
159
|
-
background: rgba(255, 255, 255, 0.1);
|
|
160
|
-
padding: 2px 4px;
|
|
161
|
-
border-radius: 4px;
|
|
162
|
-
font-family: "Monaco", "Consolas", monospace;
|
|
163
|
-
font-size: 0.9em;
|
|
164
|
-
}
|
|
165
|
-
.chat-gpt-interface .message-row .message-content-container .text-content pre {
|
|
166
|
-
background: #000;
|
|
167
|
-
padding: 16px;
|
|
168
|
-
border-radius: 6px;
|
|
169
|
-
overflow-x: auto;
|
|
170
|
-
margin: 1em 0;
|
|
171
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
172
|
-
}
|
|
173
|
-
.chat-gpt-interface .message-row .message-content-container .text-content pre code {
|
|
174
|
-
background: transparent;
|
|
175
|
-
padding: 0;
|
|
176
|
-
border: none;
|
|
177
|
-
color: #E0E0E0;
|
|
178
|
-
}
|
|
179
366
|
.chat-gpt-interface .input-area-container {
|
|
180
367
|
background-image: linear-gradient(180deg, rgba(53, 53, 65, 0), #353541 20%);
|
|
181
368
|
background-color: #353541;
|
package/dist/utilities/API.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"API.d.ts","sourceRoot":"","sources":["../../utilities/API.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAsB,MAAM,OAAO,CAAA;AAGhE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,eAAe,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"API.d.ts","sourceRoot":"","sources":["../../utilities/API.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAsB,MAAM,OAAO,CAAA;AAGhE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,SAAS,CAAC,EAAE,cAAc,GAAG,iBAAiB,CAAA;CAC/C;AA4BD,QAAA,IAAI,GAAG,EAAE,aAAa,GAAG,SAAS,CAAA;AAElC;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,SAAQ,gBAAqB,kBA2B1D,CAAA;AAQD,eAAO,MAAM,MAAM,QAAO,aAKzB,CAAA;AAED,OAAO,EAAE,GAAG,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"API.js","sourceRoot":"","sources":["../../utilities/API.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"API.js","sourceRoot":"","sources":["../../utilities/API.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAA;AAYhE,iFAAiF;AACjF,MAAM,SAAS,GAAG,CAAC,GAAW,EAAU,EAAE;IACxC,4BAA4B;IAC5B,IAAI,CAAC;QACH,oEAAoE;QACpE,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,WAAW,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YAC1D,aAAa;YACb,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAA;QACnC,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,yDAAyD;IAC3D,CAAC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AC,GAAG,EAAE,CAAC;IACT,GAAG,GAAG,aAAa,EAAE,CAAA;AACvB,CAAC;AAED,6DAA6D;AAC7D,MAAM,CAAC,MAAM,MAAM,GAAG,GAAkB,EAAE;IACxC,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,GAAG,GAAG,aAAa,EAAE,CAAA;IACvB,CAAC;IACD,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,OAAO,EAAE,GAAG,EAAE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Conversation {
|
|
3
|
+
conversation_id: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
created_at: string;
|
|
6
|
+
updated_at: string;
|
|
7
|
+
message_count: number;
|
|
8
|
+
}
|
|
9
|
+
interface ConversationHistoryProps {
|
|
10
|
+
onSelectConversation?: (conversationId: string) => void;
|
|
11
|
+
embedMode: 'with_history' | 'without_history';
|
|
12
|
+
}
|
|
13
|
+
export declare const ConversationHistory: React.FC<ConversationHistoryProps>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=ConversationHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationHistory.d.ts","sourceRoot":"","sources":["../../views/ConversationHistory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAGlD,MAAM,WAAW,YAAY;IACzB,eAAe,EAAE,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACxB;AAED,UAAU,wBAAwB;IAC9B,oBAAoB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAA;IACvD,SAAS,EAAE,cAAc,GAAG,iBAAiB,CAAA;CAChD;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA8GlE,CAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { getAPI } from '../utilities/API';
|
|
3
|
+
export const ConversationHistory = ({ onSelectConversation, embedMode }) => {
|
|
4
|
+
const [conversations, setConversations] = useState([]);
|
|
5
|
+
const [loading, setLoading] = useState(false);
|
|
6
|
+
const [error, setError] = useState(null);
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
// Only fetch if embedMode is 'with_history'
|
|
9
|
+
if (embedMode !== 'with_history') {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const fetchConversations = async () => {
|
|
13
|
+
setLoading(true);
|
|
14
|
+
setError(null);
|
|
15
|
+
try {
|
|
16
|
+
const api = getAPI();
|
|
17
|
+
const response = await api.get('/v1/conversations');
|
|
18
|
+
setConversations(response.data || []);
|
|
19
|
+
}
|
|
20
|
+
catch (err) {
|
|
21
|
+
console.error('Failed to fetch conversations:', err);
|
|
22
|
+
setError(err?.response?.data?.detail || 'Failed to load conversations');
|
|
23
|
+
}
|
|
24
|
+
finally {
|
|
25
|
+
setLoading(false);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
fetchConversations();
|
|
29
|
+
}, [embedMode]);
|
|
30
|
+
// Don't render anything if embedMode is 'without_history'
|
|
31
|
+
if (embedMode !== 'with_history') {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return (React.createElement("div", { className: "conversation-history", style: {
|
|
35
|
+
width: '250px',
|
|
36
|
+
height: '100%',
|
|
37
|
+
borderRight: '1px solid #e0e0e0',
|
|
38
|
+
padding: '16px',
|
|
39
|
+
overflowY: 'auto',
|
|
40
|
+
backgroundColor: '#f9f9f9'
|
|
41
|
+
} },
|
|
42
|
+
React.createElement("h3", { style: { margin: '0 0 16px 0', fontSize: '16px', fontWeight: 600 } }, "History"),
|
|
43
|
+
loading && (React.createElement("div", { style: { color: '#666', fontSize: '14px' } }, "Loading...")),
|
|
44
|
+
error && (React.createElement("div", { style: { color: '#d32f2f', fontSize: '14px', marginBottom: '16px' } }, error)),
|
|
45
|
+
!loading && conversations.length === 0 && (React.createElement("div", { style: { color: '#999', fontSize: '14px' } }, "No conversations yet")),
|
|
46
|
+
React.createElement("div", { style: { display: 'flex', flexDirection: 'column', gap: '8px' } }, conversations.map((conv) => (React.createElement("div", { key: conv.conversation_id, onClick: () => onSelectConversation?.(conv.conversation_id), style: {
|
|
47
|
+
padding: '12px',
|
|
48
|
+
backgroundColor: '#fff',
|
|
49
|
+
borderRadius: '8px',
|
|
50
|
+
cursor: 'pointer',
|
|
51
|
+
border: '1px solid #e0e0e0',
|
|
52
|
+
transition: 'all 0.2s',
|
|
53
|
+
}, onMouseEnter: (e) => {
|
|
54
|
+
e.currentTarget.style.backgroundColor = '#f0f0f0';
|
|
55
|
+
e.currentTarget.style.borderColor = '#ccc';
|
|
56
|
+
}, onMouseLeave: (e) => {
|
|
57
|
+
e.currentTarget.style.backgroundColor = '#fff';
|
|
58
|
+
e.currentTarget.style.borderColor = '#e0e0e0';
|
|
59
|
+
} },
|
|
60
|
+
React.createElement("div", { style: {
|
|
61
|
+
fontSize: '14px',
|
|
62
|
+
fontWeight: 500,
|
|
63
|
+
marginBottom: '4px',
|
|
64
|
+
overflow: 'hidden',
|
|
65
|
+
textOverflow: 'ellipsis',
|
|
66
|
+
whiteSpace: 'nowrap'
|
|
67
|
+
} }, conv.title || `Conversation ${conv.conversation_id.slice(0, 8)}`),
|
|
68
|
+
React.createElement("div", { style: {
|
|
69
|
+
fontSize: '12px',
|
|
70
|
+
color: '#999'
|
|
71
|
+
} },
|
|
72
|
+
conv.message_count,
|
|
73
|
+
" messages")))))));
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=ConversationHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationHistory.js","sourceRoot":"","sources":["../../views/ConversationHistory.tsx"],"names":[],"mappings":"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B,MAAM,EAAE,SAAS;gBACjB,MAAM,EAAE,mBAAmB;gBAC3B,UAAU,EAAE,UAAU;aACzB,EACD,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE;gBAChB,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,eAAe,GAAG,SAAS,CAAA;gBACjD,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,GAAG,MAAM,CAAA;YAC9C,CAAC,EACD,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE;gBAChB,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,eAAe,GAAG,MAAM,CAAA;gBAC9C,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;YACjD,CAAC;YAED,6BAAK,KAAK,EAAE;oBACR,QAAQ,EAAE,MAAM;oBAChB,UAAU,EAAE,GAAG;oBACf,YAAY,EAAE,KAAK;oBACnB,QAAQ,EAAE,QAAQ;oBAClB,YAAY,EAAE,UAAU;oBACxB,UAAU,EAAE,QAAQ;iBACvB,IACI,IAAI,CAAC,KAAK,IAAI,gBAAgB,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAC/D;YACN,6BAAK,KAAK,EAAE;oBACR,QAAQ,EAAE,MAAM;oBAChB,KAAK,EAAE,MAAM;iBAChB;gBACI,IAAI,CAAC,aAAa;4BACjB,CACJ,CACT,CAAC,CACA,CACJ,CACT,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -14,7 +14,14 @@ type ChatMessage = {
|
|
|
14
14
|
pendingToolCalls?: ToolCall[];
|
|
15
15
|
isStreaming?: boolean;
|
|
16
16
|
animationComplete?: boolean;
|
|
17
|
+
hasError?: boolean;
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
type ChatSession = {
|
|
20
|
+
id: string;
|
|
21
|
+
title: string;
|
|
22
|
+
messages: ChatMessage[];
|
|
23
|
+
createdAt: number;
|
|
24
|
+
};
|
|
25
|
+
export type { ChatMessage, ToolCall, ChatSession };
|
|
19
26
|
export declare const FullScreenChat: React.FC;
|
|
20
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../views/fullscreen/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAU1D,KAAK,IAAI,GAAG,MAAM,GAAG,WAAW,CAAC;AAEjC,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../views/fullscreen/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAU1D,KAAK,IAAI,GAAG,MAAM,GAAG,WAAW,CAAC;AAEjC,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,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