aptolix_chatbot 1.0.6 → 1.0.9

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.
Files changed (44) hide show
  1. package/dist/web.mjs +1 -1
  2. package/dist/web.mjs.map +1 -1
  3. package/package.json +23 -3
  4. package/.gitattributes +0 -63
  5. package/.vs/Aptolix-Chatbot/CopilotIndices/17.14.995.13737/CodeChunks.db +0 -0
  6. package/.vs/Aptolix-Chatbot/CopilotIndices/17.14.995.13737/SemanticSymbols.db +0 -0
  7. package/.vs/Aptolix-Chatbot/FileContentIndex/7a6184fc-93ec-4d74-9ae5-f42762df27b5.vsidx +0 -0
  8. package/.vs/Aptolix-Chatbot/FileContentIndex/812b8a98-dfb2-4448-bf14-4ed36d2c34f3.vsidx +0 -0
  9. package/.vs/Aptolix-Chatbot/FileContentIndex/98c498ee-ddc5-46fc-82d9-ed30a218b641.vsidx +0 -0
  10. package/.vs/Aptolix-Chatbot/FileContentIndex/9f4cf152-a82c-4f20-97b4-5c50ab636d6f.vsidx +0 -0
  11. package/.vs/Aptolix-Chatbot/FileContentIndex/c402a8e1-cb87-4b94-8c7f-298a59a5fb1b.vsidx +0 -0
  12. package/.vs/Aptolix-Chatbot/config/applicationhost.config +0 -1011
  13. package/.vs/Aptolix-Chatbot/copilot-chat/c320fb0f/sessions/48c7360b-028f-426c-b850-39c47706c316 +0 -0
  14. package/.vs/Aptolix-Chatbot/v17/.wsuo +0 -0
  15. package/.vs/Aptolix-Chatbot/v17/DocumentLayout.backup.json +0 -62
  16. package/.vs/Aptolix-Chatbot/v17/DocumentLayout.json +0 -62
  17. package/.vs/Aptolix-Chatbot-Widget/CopilotIndices/17.14.995.13737/CodeChunks.db +0 -0
  18. package/.vs/Aptolix-Chatbot-Widget/CopilotIndices/17.14.995.13737/SemanticSymbols.db +0 -0
  19. package/.vs/Aptolix-Chatbot-Widget/FileContentIndex/5d6b4f41-52da-4119-be44-2b20a4cefcd3.vsidx +0 -0
  20. package/.vs/Aptolix-Chatbot-Widget/FileContentIndex/c0c65d68-1df0-4f38-a40a-82ac4f5b0852.vsidx +0 -0
  21. package/.vs/Aptolix-Chatbot-Widget/FileContentIndex/c92407ec-f2a5-4d8d-a76e-b5b00ad5bb95.vsidx +0 -0
  22. package/.vs/Aptolix-Chatbot-Widget/FileContentIndex/cabcefbd-2c41-4e7f-817f-d3eb21b99197.vsidx +0 -0
  23. package/.vs/Aptolix-Chatbot-Widget/FileContentIndex/ebb08769-a636-4f23-aa30-03ee4e0170df.vsidx +0 -0
  24. package/.vs/Aptolix-Chatbot-Widget/config/applicationhost.config +0 -1011
  25. package/.vs/Aptolix-Chatbot-Widget/copilot-chat/c320fb0f/sessions/3189df6f-a527-48b1-8a59-6cbda8035079 +0 -0
  26. package/.vs/Aptolix-Chatbot-Widget/copilot-chat/c320fb0f/sessions/71a58fcf-f873-4b3b-96f4-7c23ed9008ff +0 -0
  27. package/.vs/Aptolix-Chatbot-Widget/v17/.wsuo +0 -0
  28. package/.vs/Aptolix-Chatbot-Widget/v17/DocumentLayout.backup.json +0 -94
  29. package/.vs/Aptolix-Chatbot-Widget/v17/DocumentLayout.json +0 -93
  30. package/.vs/Aptolix_Chatbot/CopilotIndices/17.14.1368.60722/CodeChunks.db +0 -0
  31. package/.vs/Aptolix_Chatbot/CopilotIndices/17.14.1368.60722/SemanticSymbols.db +0 -0
  32. package/.vs/Aptolix_Chatbot/FileContentIndex/b14bec07-2499-48bc-a8f5-a3bf197e9f3c.vsidx +0 -0
  33. package/.vs/Aptolix_Chatbot/FileContentIndex/cb041aa7-a0e1-4bca-8679-9fa832fdb7f8.vsidx +0 -0
  34. package/.vs/Aptolix_Chatbot/FileContentIndex/e6968f22-96d6-4c7a-82cb-14a6ddf57328.vsidx +0 -0
  35. package/.vs/Aptolix_Chatbot/config/applicationhost.config +0 -1011
  36. package/.vs/Aptolix_Chatbot/copilot-chat/c320fb0f/sessions/17cf5d2a-65af-4522-8aad-84dfff696a04 +0 -0
  37. package/.vs/Aptolix_Chatbot/v17/.wsuo +0 -0
  38. package/.vs/Aptolix_Chatbot/v17/DocumentLayout.backup.json +0 -117
  39. package/.vs/Aptolix_Chatbot/v17/DocumentLayout.json +0 -117
  40. package/.vs/VSWorkspaceState.json +0 -9
  41. package/.vs/slnx.sqlite +0 -0
  42. package/rollup.config.js +0 -22
  43. package/src/chatbotstyle.css +0 -439
  44. package/src/index.js +0 -359
@@ -1,439 +0,0 @@
1
- /* =========================
2
- COMMON STYLES
3
- ========================= */
4
- #aptolix-chat-window {
5
- font-family: 'Inter', sans-serif;
6
- display: flex;
7
- flex-direction: column;
8
- overflow: hidden;
9
- box-sizing: border-box;
10
- background: #f6f3ff;
11
- width: 100%;
12
- height: 100%;
13
- min-width: 0;
14
- min-height: 0;
15
- max-width: 100%;
16
- max-height: 100%;
17
- margin: 0;
18
- border-radius: 16px;
19
- box-shadow: 0 12px 40px rgba(167, 139, 250, 0.12);
20
- border: 2.5px solid #9333ea;
21
- }
22
-
23
- #aptolix-chat-header {
24
- font-weight: 600;
25
- padding: 18px 16px 16px 16px;
26
- font-size: 1.15rem;
27
- border-bottom: 2px solid #ede9fe;
28
- display: flex;
29
- align-items: center;
30
- justify-content: space-between;
31
- background: #9333ea;
32
- color: #fff;
33
- }
34
-
35
- .aptolix-header-title {
36
- display: flex;
37
- flex-direction: column;
38
- gap: 2px;
39
- justify-content: center;
40
- }
41
-
42
- .aptolix-header-subtitle {
43
- font-size: 0.95rem;
44
- color: #ede9fe;
45
- font-weight: 400;
46
- margin-top: 2px;
47
- }
48
-
49
- .aptolix-header-actions {
50
- display: flex;
51
- gap: 12px;
52
- align-items: center; /* ensure buttons are vertically centered */
53
- margin-top: 0; /* remove any margin that could push it down */
54
- }
55
-
56
- .aptolix-header-flex {
57
- display: flex;
58
- justify-content: space-between;
59
- align-items: center;
60
- width: 100%;
61
- }
62
-
63
- #aptolix-chat-messages {
64
- flex: 1 1 auto;
65
- min-height: 120px;
66
- overflow-y: auto;
67
- padding: 18px 16px 16px 16px;
68
- background: #f6f3ff;
69
- display: flex;
70
- flex-direction: column;
71
- gap: 6px;
72
- }
73
-
74
- .aptolix-powered-by {
75
- text-align: center;
76
- font-size: 0.95rem;
77
- color: #a78bfa;
78
- padding: 10px 0 8px 0;
79
- background: transparent;
80
- font-weight: 500;
81
- letter-spacing: 0.02em;
82
- }
83
-
84
- .aptolix-powered-by .aptolix-link {
85
- color: #9333ea;
86
- text-decoration: underline;
87
- font-weight: 600;
88
- }
89
-
90
- #aptolix-chat-input {
91
- display: flex;
92
- align-items: center;
93
- gap: 8px;
94
- padding: 14px 12px;
95
- border-top: 2px solid #ede9fe;
96
- background: #fff;
97
- min-height: 56px;
98
- }
99
-
100
- #aptolix-chat-input input {
101
- flex: 1 1 auto;
102
- padding: 10px 14px;
103
- border: 1.5px solid #d1d5db;
104
- border-radius: 10px;
105
- font-size: 1rem;
106
- background: #f6f3ff;
107
- color: #7c3aed;
108
- transition: border 0.2s;
109
- min-width: 0;
110
- }
111
-
112
- #aptolix-chat-input input:focus {
113
- border-color: #a78bfa;
114
- outline: none;
115
- }
116
-
117
- #aptolix-chat-input button {
118
- background: #a78bfa;
119
- color: #fff;
120
- border: none;
121
- border-radius: 10px;
122
- padding: 8px 18px;
123
- font-size: 1rem;
124
- cursor: pointer;
125
- font-weight: 600;
126
- box-shadow: 0 2px 8px rgba(167, 139, 250, 0.10);
127
- transition: background 0.2s, box-shadow 0.2s;
128
- flex-shrink: 0;
129
- }
130
-
131
- #aptolix-chat-input button:hover {
132
- background: #7c3aed;
133
- box-shadow: 0 4px 16px rgba(124, 62, 237, 0.18);
134
- }
135
-
136
- #aptolix-chat-input button:not(:first-child) {
137
- padding: 8px 12px;
138
- font-size: 1.1rem;
139
- background: rgba(167,139,250,0.12);
140
- color: #9333ea;
141
- border-radius: 8px;
142
- box-shadow: none;
143
- font-weight: 500;
144
- }
145
-
146
- #aptolix-chat-input button:not(:first-child):hover {
147
- background: rgba(167,139,250,0.22);
148
- color: #4b5563;
149
- }
150
-
151
- #aptolix-chat-inputbox {
152
- font-family: inherit;
153
- font-size: 1rem;
154
- padding: 6px 12px;
155
- border: 1px solid #ccc;
156
- border-radius: 4px;
157
- outline: none;
158
- box-sizing: border-box;
159
- width: 100%;
160
- min-height: 42px; /* 1 line */
161
- max-height: 130px; /* 4 lines */
162
- resize: none;
163
- background: #fff;
164
- transition: border-color 0.2s;
165
- overflow-y: auto;
166
- }
167
-
168
- /* Message bubbles */
169
- .message.user,
170
- .message.bot {
171
- display: block;
172
- word-break: break-word;
173
- max-width: 90%;
174
- margin-bottom: 0;
175
- font-family: 'Inter', sans-serif;
176
- }
177
-
178
- .message.user {
179
- align-self: flex-end;
180
- text-align: right;
181
- color: #fff;
182
- background: #a78bfa;
183
- padding: 8px 14px;
184
- border-radius: 14px 14px 4px 14px;
185
- font-weight: 500;
186
- box-shadow: 0 2px 8px rgba(167, 139, 250, 0.10);
187
- }
188
-
189
- .message.bot {
190
- align-self: flex-start;
191
- text-align: left;
192
- color: #4b5563;
193
- background: #ede9fe;
194
- padding: 8px 14px;
195
- border-radius: 14px 14px 14px 4px;
196
- font-weight: 500;
197
- box-shadow: 0 2px 8px rgba(167, 139, 250, 0.08);
198
- }
199
-
200
- .message.bot a {
201
- color: #7c3aed;
202
- text-decoration: underline;
203
- word-break: break-all;
204
- }
205
-
206
- .message.bot strong, .message.bot b {
207
- font-weight: 700;
208
- color: #312e81;
209
- }
210
-
211
- .message.bot h1, .message.bot h2, .message.bot h3 {
212
- margin: 10px 0 6px 0;
213
- font-size: 1.3rem;
214
- line-height: 1.2;
215
- }
216
- .message.bot h2 { font-size: 1.15rem; }
217
- .message.bot h3 { font-size: 1.05rem; }
218
-
219
- .message.bot p {
220
- margin: 10px 0;
221
- }
222
-
223
- .message.bot ul, .message.bot ol {
224
- margin: 8px 0 8px 18px;
225
- padding-left: 18px;
226
- }
227
-
228
- .message.bot ul {
229
- list-style: none;
230
- padding-left: 0;
231
- }
232
-
233
- .message.bot ul li {
234
- position: relative;
235
- padding-left: 1.3em;
236
- margin-bottom: 4px;
237
- }
238
-
239
- .message.bot ul li::before {
240
- content: '';
241
- position: absolute;
242
- left: 0.3em;
243
- top: 0.7em;
244
- width: 0.5em;
245
- height: 0.5em;
246
- background: #9333ea;
247
- border-radius: 50%;
248
- display: inline-block;
249
- }
250
-
251
- .message.bot li {
252
- margin-bottom: 4px;
253
- }
254
-
255
- .message.bot pre, .message.bot code {
256
- margin: 8px 0;
257
- padding: 4px 10px;
258
- background: #f3f4f6;
259
- border-radius: 6px;
260
- font-size: 1em;
261
- font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
262
- color: #7c3aed;
263
- }
264
- .message.bot pre {
265
- padding: 12px 16px;
266
- overflow-x: auto;
267
- }
268
-
269
- /* Typing indicator */
270
- .typing-dots span {
271
- animation: blink 1.2s infinite;
272
- opacity: 0.5;
273
- font-size: 1.5em;
274
- margin-right: 2px;
275
- }
276
- .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
277
- .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
278
- @keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
279
-
280
- /* =========================
281
- BUBBLE MODE STYLES
282
- ========================= */
283
- #aptolix-chat-bubble {
284
- position: fixed;
285
- bottom: 32px;
286
- right: 32px;
287
- width: 56px;
288
- height: 56px;
289
- background: #9333ea;
290
- color: #fff;
291
- font-size: 2rem;
292
- border-radius: 50%;
293
- box-shadow: 0 6px 24px rgba(167, 139, 250, 0.18);
294
- display: flex;
295
- align-items: center;
296
- justify-content: center;
297
- cursor: pointer;
298
- z-index: 9999;
299
- transition: background 0.2s, box-shadow 0.2s;
300
- }
301
-
302
- #aptolix-chat-bubble:hover {
303
- background: #7c3aed;
304
- box-shadow: 0 8px 32px rgba(124, 62, 237, 0.28);
305
- }
306
-
307
- #aptolix-chat-window.bubble-mode {
308
- position: fixed;
309
- bottom: 100px;
310
- right: 32px;
311
- width: 400px;
312
- height: 595px;
313
- min-height: 595px;
314
- max-height: 80vh;
315
- border-radius: 16px;
316
- z-index: 9999;
317
- }
318
-
319
- /* =========================
320
- SECTION MODE STYLES
321
- ========================= */
322
- #aptolix-chat-window.section-mode {
323
- position: static !important;
324
- width: 100%;
325
- height: 100%;
326
- max-width: 100%;
327
- max-height: 100%;
328
- border-radius: 18px;
329
- box-shadow: 0 4px 24px rgba(167, 139, 250, 0.10);
330
- border: 2px solid #a78bfa;
331
- }
332
-
333
- #aptolix-chat-window.section-mode #aptolix-chat-header {
334
- background: #9333ea;
335
- color: #fff;
336
- }
337
-
338
- /* Hide bubble and controls in section mode */
339
- #aptolix-chat-window.section-mode ~ #aptolix-chat-bubble,
340
- #aptolix-chat-window.section-mode #aptolix-chat-close,
341
- #aptolix-chat-window.section-mode #aptolix-chat-expand {
342
- display: none !important;
343
- }
344
-
345
- /* Section mode message tweaks */
346
- #aptolix-chat-window.section-mode .message.user {
347
- background: #a78bfa;
348
- color: #fff;
349
- }
350
- #aptolix-chat-window.section-mode .message.bot {
351
- background: #ede9fe;
352
- color: #4b5563;
353
- }
354
-
355
- /* Section mode messages area */
356
- #aptolix-chat-window.section-mode #aptolix-chat-messages {
357
- background: #f6f3ff;
358
- padding: 20px 18px 18px 18px;
359
- }
360
-
361
- /* =========================
362
- RESPONSIVE
363
- ========================= */
364
- @media (max-width: 600px) {
365
- #aptolix-chat-window,
366
- #aptolix-chat-window.section-mode,
367
- #aptolix-chat-window.bubble-mode {
368
- border-radius: 12px;
369
- padding: 0;
370
- min-height: 180px;
371
- width: 100vw;
372
- max-width: 100vw;
373
- left: 0;
374
- right: 0;
375
- margin: 0;
376
- }
377
- #aptolix-chat-header {
378
- font-size: 1rem;
379
- padding: 10px 6px 8px 6px;
380
- }
381
- #aptolix-chat-messages {
382
- padding: 8px 4px 6px 4px;
383
- }
384
- #aptolix-chat-input {
385
- padding: 6px 2px;
386
- }
387
- #aptolix-chat-expand {
388
- display: none !important;
389
- }
390
- #aptolix-chat-window.section-mode #aptolix-chat-close {
391
- display: none !important;
392
- }
393
- }
394
-
395
- .aptolix-retry-btn {
396
- margin-top: 8px;
397
- padding: 4px 12px;
398
- background: #ede9fe;
399
- color: #7c3aed;
400
- border: none;
401
- border-radius: 6px;
402
- cursor: pointer;
403
- font-weight: 600;
404
- }
405
- .aptolix-retry-btn:hover {
406
- background: #d8b4fe;
407
- }
408
-
409
- .aptolix-hint-bubble {
410
- position: fixed;
411
- bottom: 110px; /* Adjust so it's above the bubble */
412
- right: 40px; /* Adjust to align with bubble */
413
- background: #fff;
414
- color: #333;
415
- padding: 10px 18px;
416
- border-radius: 18px;
417
- box-shadow: 0 2px 12px rgba(0,0,0,0.12);
418
- font-size: 15px;
419
- z-index: 9999;
420
- transition: opacity 0.3s;
421
- opacity: 1;
422
- pointer-events: none;
423
- max-width: 220px;
424
- }
425
-
426
- .aptolix-hint-bubble::after {
427
- content: "";
428
- position: absolute;
429
- bottom: -12px; /* Position arrow below the bubble */
430
- right: 28px; /* Align arrow with bubble */
431
- width: 0;
432
- height: 0;
433
- border-left: 10px solid transparent;
434
- border-right: 10px solid transparent;
435
- border-top: 12px solid #fff; /* Same as bubble background */
436
- }
437
-
438
-
439
-