@aheart-ui/ai 1.0.0 → 1.1.0

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 (126) hide show
  1. package/README.md +10 -1
  2. package/es/actions/index.d.ts +2 -0
  3. package/es/actions/index.js +5 -0
  4. package/es/actions/style.css +36 -0
  5. package/es/actions.vue.d.ts +4 -4
  6. package/es/agent/index.d.ts +5 -0
  7. package/es/agent/index.js +12 -0
  8. package/es/agent/style.css +308 -0
  9. package/es/agent-execution.vue.d.ts +4 -4
  10. package/es/agent-execution.vue.js +1 -1
  11. package/es/agent-workbench/index.d.ts +2 -0
  12. package/es/agent-workbench/index.js +5 -0
  13. package/es/agent-workbench/style.css +1332 -0
  14. package/es/agent-workbench.vue.d.ts +4 -4
  15. package/es/agent-workbench.vue.js +1 -1
  16. package/es/attachments/index.d.ts +2 -0
  17. package/es/attachments/index.js +5 -0
  18. package/es/attachments/style.css +62 -0
  19. package/es/attachments.vue.d.ts +4 -4
  20. package/es/bubble/index.d.ts +2 -0
  21. package/es/bubble/index.js +5 -0
  22. package/es/bubble/style.css +241 -0
  23. package/es/bubble.vue.d.ts +3 -3
  24. package/es/chat/index.d.ts +11 -0
  25. package/es/chat/index.js +23 -0
  26. package/es/chat/style.css +595 -0
  27. package/es/chat-panel/index.d.ts +3 -0
  28. package/es/chat-panel/index.js +8 -0
  29. package/es/chat-panel/style.css +595 -0
  30. package/es/chat-panel.vue.d.ts +4 -4
  31. package/es/conversations/index.d.ts +2 -0
  32. package/es/conversations/index.js +5 -0
  33. package/es/conversations/style.css +48 -0
  34. package/es/conversations.vue.d.ts +4 -4
  35. package/es/form/index.d.ts +3 -0
  36. package/es/form/index.js +9 -0
  37. package/es/form/style.css +242 -0
  38. package/es/form-field.vue.d.ts +4 -4
  39. package/es/form.vue.d.ts +4 -4
  40. package/es/process/index.d.ts +2 -0
  41. package/es/process/index.js +5 -0
  42. package/es/process/style.css +77 -0
  43. package/es/process.vue.d.ts +3 -3
  44. package/es/prompts/index.d.ts +2 -0
  45. package/es/prompts/index.js +5 -0
  46. package/es/prompts/style.css +76 -0
  47. package/es/prompts.vue.d.ts +4 -4
  48. package/es/sender/index.d.ts +2 -0
  49. package/es/sender/index.js +5 -0
  50. package/es/sender/style.css +88 -0
  51. package/es/sender.vue.d.ts +4 -4
  52. package/es/sources/index.d.ts +2 -0
  53. package/es/sources/index.js +5 -0
  54. package/es/sources/style.css +54 -0
  55. package/es/sources.vue.d.ts +3 -3
  56. package/es/thought-chain/index.d.ts +2 -0
  57. package/es/thought-chain/index.js +5 -0
  58. package/es/thought-chain/style.css +77 -0
  59. package/es/thought-chain.vue.d.ts +3 -3
  60. package/es/welcome/index.d.ts +2 -0
  61. package/es/welcome/index.js +5 -0
  62. package/es/welcome/style.css +33 -0
  63. package/es/welcome.vue.d.ts +3 -3
  64. package/lib/actions/index.d.ts +2 -0
  65. package/lib/actions/index.js +1 -0
  66. package/lib/actions/style.css +36 -0
  67. package/lib/actions.vue.d.ts +4 -4
  68. package/lib/agent/index.d.ts +5 -0
  69. package/lib/agent/index.js +1 -0
  70. package/lib/agent/style.css +308 -0
  71. package/lib/agent-execution.vue.d.ts +4 -4
  72. package/lib/agent-execution.vue.js +1 -1
  73. package/lib/agent-workbench/index.d.ts +2 -0
  74. package/lib/agent-workbench/index.js +1 -0
  75. package/lib/agent-workbench/style.css +1332 -0
  76. package/lib/agent-workbench.vue.d.ts +4 -4
  77. package/lib/agent-workbench.vue.js +1 -1
  78. package/lib/attachments/index.d.ts +2 -0
  79. package/lib/attachments/index.js +1 -0
  80. package/lib/attachments/style.css +62 -0
  81. package/lib/attachments.vue.d.ts +4 -4
  82. package/lib/bubble/index.d.ts +2 -0
  83. package/lib/bubble/index.js +1 -0
  84. package/lib/bubble/style.css +241 -0
  85. package/lib/bubble.vue.d.ts +3 -3
  86. package/lib/chat/index.d.ts +11 -0
  87. package/lib/chat/index.js +1 -0
  88. package/lib/chat/style.css +595 -0
  89. package/lib/chat-panel/index.d.ts +3 -0
  90. package/lib/chat-panel/index.js +1 -0
  91. package/lib/chat-panel/style.css +595 -0
  92. package/lib/chat-panel.vue.d.ts +4 -4
  93. package/lib/conversations/index.d.ts +2 -0
  94. package/lib/conversations/index.js +1 -0
  95. package/lib/conversations/style.css +48 -0
  96. package/lib/conversations.vue.d.ts +4 -4
  97. package/lib/form/index.d.ts +3 -0
  98. package/lib/form/index.js +1 -0
  99. package/lib/form/style.css +242 -0
  100. package/lib/form-field.vue.d.ts +4 -4
  101. package/lib/form.vue.d.ts +4 -4
  102. package/lib/process/index.d.ts +2 -0
  103. package/lib/process/index.js +1 -0
  104. package/lib/process/style.css +77 -0
  105. package/lib/process.vue.d.ts +3 -3
  106. package/lib/prompts/index.d.ts +2 -0
  107. package/lib/prompts/index.js +1 -0
  108. package/lib/prompts/style.css +76 -0
  109. package/lib/prompts.vue.d.ts +4 -4
  110. package/lib/sender/index.d.ts +2 -0
  111. package/lib/sender/index.js +1 -0
  112. package/lib/sender/style.css +88 -0
  113. package/lib/sender.vue.d.ts +4 -4
  114. package/lib/sources/index.d.ts +2 -0
  115. package/lib/sources/index.js +1 -0
  116. package/lib/sources/style.css +54 -0
  117. package/lib/sources.vue.d.ts +3 -3
  118. package/lib/thought-chain/index.d.ts +2 -0
  119. package/lib/thought-chain/index.js +1 -0
  120. package/lib/thought-chain/style.css +77 -0
  121. package/lib/thought-chain.vue.d.ts +3 -3
  122. package/lib/welcome/index.d.ts +2 -0
  123. package/lib/welcome/index.js +1 -0
  124. package/lib/welcome/style.css +33 -0
  125. package/lib/welcome.vue.d.ts +3 -3
  126. package/package.json +105 -3
@@ -0,0 +1,595 @@
1
+ :root {
2
+ --aheart-ai-cyan: #0e7490;
3
+ --aheart-ai-cyan-strong: #0e7490;
4
+ --aheart-ai-brand-strong: #0958d9;
5
+ --aheart-ai-cyan-soft: #ecfeff;
6
+ --aheart-ai-line: #e4e7ec;
7
+ --aheart-ai-surface: #ffffff;
8
+ --aheart-ai-surface-subtle: #f8fafc;
9
+ --aheart-ai-text: #182230;
10
+ --aheart-ai-text-secondary: #667085;
11
+ }
12
+
13
+ .aheart-ai-visually-hidden {
14
+ position: absolute;
15
+ width: 1px;
16
+ height: 1px;
17
+ padding: 0;
18
+ margin: -1px;
19
+ overflow: hidden;
20
+ clip: rect(0, 0, 0, 0);
21
+ white-space: nowrap;
22
+ border: 0;
23
+ }
24
+
25
+ .aheart-ai-chat-panel {
26
+ box-sizing: border-box;
27
+ color: var(--aheart-color-text, var(--aheart-ai-text));
28
+ letter-spacing: 0;
29
+ }
30
+
31
+ .aheart-ai-chat-panel * {
32
+ box-sizing: border-box;
33
+ }
34
+
35
+ .aheart-ai-chat-panel {
36
+ display: grid;
37
+ grid-template-columns: minmax(0, 1fr);
38
+ min-block-size: 520px;
39
+ overflow: hidden;
40
+ border: 1px solid var(--aheart-ai-line);
41
+ border-radius: 8px;
42
+ background: var(--aheart-ai-surface);
43
+ }
44
+
45
+ .aheart-ai-chat-panel > .aheart-ai-conversations {
46
+ display: flex;
47
+ gap: 2px;
48
+ overflow-x: auto;
49
+ padding: 8px 12px;
50
+ border-block-end: 1px solid var(--aheart-ai-line);
51
+ background: var(--aheart-ai-surface-subtle);
52
+ }
53
+
54
+ .aheart-ai-chat-panel > .aheart-ai-conversations button {
55
+ min-block-size: 32px;
56
+ padding: 5px 10px;
57
+ border: 1px solid transparent;
58
+ border-radius: 5px;
59
+ background: transparent;
60
+ color: var(--aheart-ai-text-secondary);
61
+ font: inherit;
62
+ white-space: nowrap;
63
+ cursor: pointer;
64
+ transition: border-color 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
65
+ }
66
+
67
+ .aheart-ai-chat-panel > .aheart-ai-conversations button:hover,
68
+ .aheart-ai-chat-panel > .aheart-ai-conversations button:focus-visible {
69
+ border-color: #b9c2cf;
70
+ background: #fff;
71
+ color: var(--aheart-ai-text);
72
+ outline: none;
73
+ }
74
+
75
+ .aheart-ai-chat-panel > .aheart-ai-conversations button.is-active {
76
+ border-color: #91caff;
77
+ background: #e6f4ff;
78
+ color: var(--aheart-color-primary, #1677ff);
79
+ }
80
+
81
+ .aheart-ai-chat-panel > .aheart-ai-conversations button.is-active:focus-visible {
82
+ outline: 2px solid #0958d9;
83
+ outline-offset: 2px;
84
+ }
85
+
86
+ .aheart-ai-chat-panel__surface {
87
+ display: grid;
88
+ grid-template-rows: minmax(0, 1fr) auto;
89
+ min-block-size: 0;
90
+ }
91
+
92
+ .aheart-ai-chat-panel__messages {
93
+ display: flex;
94
+ flex-direction: column;
95
+ gap: 18px;
96
+ min-block-size: 300px;
97
+ max-block-size: 560px;
98
+ overflow-y: auto;
99
+ padding: 24px clamp(16px, 4vw, 40px);
100
+ scroll-behavior: smooth;
101
+ }
102
+
103
+ .aheart-ai-chat-panel__empty {
104
+ display: grid;
105
+ align-content: center;
106
+ gap: 20px;
107
+ min-block-size: 340px;
108
+ padding: 32px clamp(20px, 6vw, 64px);
109
+ background-image:
110
+ linear-gradient(var(--aheart-ai-line) 1px, transparent 1px),
111
+ linear-gradient(90deg, var(--aheart-ai-line) 1px, transparent 1px);
112
+ background-size: 32px 32px;
113
+ background-position: -1px -1px;
114
+ }
115
+
116
+ .aheart-ai-chat-panel__empty::before {
117
+ content: "AI";
118
+ display: grid;
119
+ place-items: center;
120
+ inline-size: 40px;
121
+ block-size: 40px;
122
+ border: 1px solid #67e8f9;
123
+ border-radius: 7px;
124
+ background: var(--aheart-ai-cyan-soft);
125
+ color: #0e7490;
126
+ font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
127
+ }
128
+
129
+ .aheart-ai-welcome {
130
+ display: grid;
131
+ gap: 6px;
132
+ max-inline-size: 620px;
133
+ }
134
+
135
+ .aheart-ai-welcome__title,
136
+ .aheart-ai-welcome__description,
137
+ .aheart-ai-sources h3,
138
+ .aheart-ai-sources p,
139
+ .aheart-ai-process h3 {
140
+ margin: 0;
141
+ }
142
+
143
+ .aheart-ai-welcome__title {
144
+ color: var(--aheart-ai-text);
145
+ font-size: 24px;
146
+ line-height: 1.35;
147
+ }
148
+
149
+ .aheart-ai-welcome__description {
150
+ color: var(--aheart-ai-text-secondary);
151
+ line-height: 1.65;
152
+ }
153
+
154
+ .aheart-ai-prompts {
155
+ display: grid;
156
+ grid-template-columns: repeat(2, minmax(0, 1fr));
157
+ gap: 8px;
158
+ margin: 0;
159
+ padding: 0;
160
+ list-style: none;
161
+ }
162
+
163
+ .aheart-ai-prompts li {
164
+ margin: 0;
165
+ padding: 0;
166
+ min-inline-size: 0;
167
+ list-style: none !important;
168
+ }
169
+
170
+ .aheart-ai-prompts li::marker {
171
+ content: "";
172
+ }
173
+
174
+ .aheart-ai-prompts button {
175
+ display: grid;
176
+ gap: 4px;
177
+ min-block-size: 64px;
178
+ inline-size: 100%;
179
+ padding: 11px 12px;
180
+ border: 1px solid #d0d5dd;
181
+ border-radius: 6px;
182
+ background: rgba(255, 255, 255, 0.96);
183
+ color: var(--aheart-ai-text);
184
+ font: inherit;
185
+ text-align: left;
186
+ cursor: pointer;
187
+ transition: transform 120ms ease-out, border-color 120ms ease-out, background-color 120ms ease-out;
188
+ }
189
+
190
+ .aheart-ai-prompts button:hover,
191
+ .aheart-ai-prompts button:focus-visible {
192
+ transform: translateY(-2px);
193
+ border-color: #69b1ff;
194
+ background: #f0f7ff;
195
+ outline: none;
196
+ }
197
+
198
+ .aheart-ai-prompts span,
199
+ .aheart-ai-process small {
200
+ display: block;
201
+ color: var(--aheart-ai-text-secondary);
202
+ font-size: 12px;
203
+ }
204
+
205
+ .aheart-ai-bubble {
206
+ position: relative;
207
+ display: grid;
208
+ gap: 8px;
209
+ max-inline-size: min(760px, 92%);
210
+ margin: 0;
211
+ padding: 12px 14px;
212
+ border: 1px solid var(--aheart-ai-line);
213
+ border-radius: 7px;
214
+ background: #fff;
215
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
216
+ }
217
+
218
+ .aheart-ai-bubble.is-user {
219
+ align-self: end;
220
+ border-color: #91caff;
221
+ background: #f0f7ff;
222
+ }
223
+
224
+ .aheart-ai-bubble.is-assistant {
225
+ align-self: start;
226
+ border-inline-start: 3px solid var(--aheart-ai-cyan);
227
+ }
228
+
229
+ .aheart-ai-bubble__header {
230
+ color: var(--aheart-ai-text-secondary);
231
+ font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
232
+ text-transform: uppercase;
233
+ }
234
+
235
+ .aheart-ai-bubble__content,
236
+ .aheart-ai-bubble__error {
237
+ margin: 0;
238
+ line-height: 1.72;
239
+ white-space: pre-wrap;
240
+ overflow-wrap: anywhere;
241
+ }
242
+
243
+ .aheart-ai-bubble__content a {
244
+ color: var(--aheart-color-primary, #1677ff);
245
+ }
246
+
247
+ .aheart-ai-bubble__tool-call {
248
+ display: grid;
249
+ min-inline-size: 0;
250
+ gap: 10px;
251
+ margin-block: 10px;
252
+ padding: 12px;
253
+ overflow-wrap: anywhere;
254
+ border: 1px solid var(--aheart-ai-line, #d0d5dd);
255
+ border-radius: 8px;
256
+ background: var(--aheart-ai-surface-subtle, #f8fafc);
257
+ }
258
+ .aheart-ai-bubble__tool-heading {
259
+ display: grid;
260
+ gap: 3px;
261
+ }
262
+ .aheart-ai-bubble__tool-heading strong {
263
+ color: var(--aheart-ai-text, #101828);
264
+ font-size: 13px;
265
+ }
266
+ .aheart-ai-bubble__tool-heading span {
267
+ color: var(--aheart-ai-text-secondary, #475467);
268
+ font-size: 13px;
269
+ line-height: 1.45;
270
+ }
271
+ .aheart-ai-bubble__tool-details {
272
+ display: grid;
273
+ grid-template-columns: max-content minmax(0, 1fr);
274
+ gap: 6px 10px;
275
+ margin: 0;
276
+ font-size: 12px;
277
+ line-height: 1.45;
278
+ }
279
+ .aheart-ai-bubble__tool-details dt {
280
+ color: var(--aheart-ai-text-secondary, #667085);
281
+ font-weight: 600;
282
+ }
283
+ .aheart-ai-bubble__tool-details dd {
284
+ display: flex;
285
+ min-inline-size: 0;
286
+ flex-wrap: wrap;
287
+ gap: 6px;
288
+ margin: 0;
289
+ color: var(--aheart-ai-text, #344054);
290
+ }
291
+ .aheart-ai-bubble__tool-details small {
292
+ padding: 1px 5px;
293
+ border-radius: 4px;
294
+ background: color-mix(in srgb, currentColor 10%, transparent);
295
+ font-size: 11px;
296
+ }
297
+
298
+ .aheart-ai-chat-panel__stream-reconnecting {
299
+ margin: 0 0 8px;
300
+ padding: 7px 10px;
301
+ border: 1px solid var(--aheart-ai-brand, #84caff);
302
+ border-radius: 6px;
303
+ background: color-mix(in srgb, var(--aheart-ai-brand, #84caff) 12%, transparent);
304
+ color: var(--aheart-ai-text, #344054);
305
+ font-size: 12px;
306
+ line-height: 1.4;
307
+ }
308
+
309
+ .aheart-ai-bubble__error {
310
+ padding: 8px 10px;
311
+ border-inline-start: 3px solid var(--aheart-color-danger, #d92d20);
312
+ background: #fff1f0;
313
+ color: #b42318;
314
+ }
315
+
316
+ .aheart-ai-chat-panel__message-actions {
317
+ display: flex;
318
+ flex-wrap: wrap;
319
+ gap: 2px;
320
+ min-block-size: 26px;
321
+ }
322
+
323
+ .aheart-ai-chat-panel__message-actions button,
324
+ .aheart-ai-chat-panel__editing button,
325
+ .aheart-ai-actions button,
326
+ .aheart-ai-attachments button {
327
+ min-block-size: 28px;
328
+ padding: 3px 8px;
329
+ border: 1px solid transparent;
330
+ border-radius: 4px;
331
+ background: transparent;
332
+ color: var(--aheart-ai-text-secondary);
333
+ font: 12px/1.4 inherit;
334
+ cursor: pointer;
335
+ transition: border-color 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
336
+ }
337
+
338
+ .aheart-ai-chat-panel__message-actions button:hover,
339
+ .aheart-ai-chat-panel__message-actions button:focus-visible,
340
+ .aheart-ai-chat-panel__editing button:hover,
341
+ .aheart-ai-chat-panel__editing button:focus-visible,
342
+ .aheart-ai-actions button:hover,
343
+ .aheart-ai-actions button:focus-visible,
344
+ .aheart-ai-attachments button:hover,
345
+ .aheart-ai-attachments button:focus-visible {
346
+ border-color: #b9c2cf;
347
+ background: var(--aheart-ai-surface-subtle);
348
+ color: var(--aheart-ai-text);
349
+ outline: none;
350
+ }
351
+
352
+ .aheart-ai-chat-panel__composer {
353
+ display: grid;
354
+ gap: 8px;
355
+ padding: 12px 16px 16px;
356
+ border-block-start: 1px solid var(--aheart-ai-line);
357
+ background: #fff;
358
+ }
359
+
360
+ .aheart-ai-chat-panel__editing {
361
+ display: flex;
362
+ align-items: center;
363
+ justify-content: space-between;
364
+ gap: 12px;
365
+ padding: 6px 10px;
366
+ border-inline-start: 3px solid var(--aheart-color-primary, #1677ff);
367
+ background: #f0f7ff;
368
+ color: #175cd3;
369
+ font-size: 12px;
370
+ }
371
+
372
+ .aheart-ai-sender {
373
+ display: grid;
374
+ grid-template-columns: minmax(0, 1fr) auto;
375
+ align-items: end;
376
+ gap: 8px;
377
+ padding: 6px;
378
+ border: 1px solid #b9c2cf;
379
+ border-radius: 7px;
380
+ background: #fff;
381
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
382
+ transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
383
+ }
384
+
385
+ .aheart-ai-sender:focus-within {
386
+ border-color: var(--aheart-color-primary, #1677ff);
387
+ box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
388
+ }
389
+
390
+ .aheart-ai-sender textarea {
391
+ inline-size: 100%;
392
+ min-block-size: 56px;
393
+ max-block-size: 160px;
394
+ resize: vertical;
395
+ padding: 8px;
396
+ border: 0;
397
+ background: transparent;
398
+ color: var(--aheart-ai-text);
399
+ font: inherit;
400
+ line-height: 1.55;
401
+ outline: none;
402
+ }
403
+
404
+ .aheart-ai-sender button {
405
+ min-inline-size: 72px;
406
+ min-block-size: 36px;
407
+ padding: 7px 14px;
408
+ border: 1px solid var(--aheart-color-primary, #1677ff);
409
+ border-radius: 5px;
410
+ background: var(--aheart-color-primary, #1677ff);
411
+ color: #fff;
412
+ font: 500 14px/1 inherit;
413
+ cursor: pointer;
414
+ transition: background-color 120ms ease-out, border-color 120ms ease-out;
415
+ }
416
+
417
+ .aheart-ai-sender button:hover:not(:disabled),
418
+ .aheart-ai-sender button:focus-visible {
419
+ border-color: #0958d9;
420
+ background: #0958d9;
421
+ outline: none;
422
+ }
423
+
424
+ .aheart-ai-sender button:disabled {
425
+ border-color: #d0d5dd;
426
+ background: #eaecf0;
427
+ color: #98a2b3;
428
+ cursor: not-allowed;
429
+ }
430
+
431
+ .aheart-ai-conversations,
432
+ .aheart-ai-actions,
433
+ .aheart-ai-sources,
434
+ .aheart-ai-process,
435
+ .aheart-ai-attachments {
436
+ display: grid;
437
+ gap: 8px;
438
+ }
439
+
440
+ .aheart-ai-conversations button {
441
+ min-block-size: 36px;
442
+ padding: 7px 9px;
443
+ border: 1px solid transparent;
444
+ border-radius: 5px;
445
+ background: transparent;
446
+ color: var(--aheart-ai-text-secondary);
447
+ font: inherit;
448
+ text-align: left;
449
+ cursor: pointer;
450
+ }
451
+
452
+ .aheart-ai-conversations button:hover,
453
+ .aheart-ai-conversations button:focus-visible {
454
+ background: #f2f4f7;
455
+ color: var(--aheart-ai-text);
456
+ outline: none;
457
+ }
458
+
459
+ .aheart-ai-conversations button.is-active {
460
+ border-color: #b2ddff;
461
+ background: #eff8ff;
462
+ color: #175cd3;
463
+ }
464
+
465
+ .aheart-ai-attachments,
466
+ .aheart-ai-sources ul,
467
+ .aheart-ai-process ol {
468
+ margin: 0;
469
+ padding: 0;
470
+ list-style: none;
471
+ }
472
+
473
+ .aheart-ai-attachments li,
474
+ .aheart-ai-sources li {
475
+ display: flex;
476
+ align-items: center;
477
+ justify-content: space-between;
478
+ gap: 8px;
479
+ min-block-size: 34px;
480
+ padding: 6px 8px;
481
+ border: 1px solid var(--aheart-ai-line);
482
+ border-radius: 5px;
483
+ background: var(--aheart-ai-surface-subtle);
484
+ font-size: 12px;
485
+ }
486
+
487
+ .aheart-ai-sources {
488
+ padding-block-start: 8px;
489
+ border-block-start: 1px solid var(--aheart-ai-line);
490
+ }
491
+
492
+ .aheart-ai-sources a {
493
+ color: var(--aheart-ai-brand-strong);
494
+ }
495
+
496
+ .aheart-ai-sources h3,
497
+ .aheart-ai-process h3 {
498
+ font-size: 12px;
499
+ color: var(--aheart-ai-text-secondary);
500
+ }
501
+
502
+ .aheart-ai-process ol {
503
+ display: grid;
504
+ gap: 6px;
505
+ }
506
+
507
+ .aheart-ai-process li {
508
+ position: relative;
509
+ display: grid;
510
+ gap: 2px;
511
+ padding-inline-start: 16px;
512
+ }
513
+
514
+ .aheart-ai-process li::before {
515
+ content: "";
516
+ position: absolute;
517
+ inset-block-start: 7px;
518
+ inset-inline-start: 2px;
519
+ inline-size: 6px;
520
+ block-size: 6px;
521
+ border-radius: 50%;
522
+ background: #98a2b3;
523
+ }
524
+
525
+ .aheart-ai-process li.is-running::before {
526
+ background: var(--aheart-ai-cyan);
527
+ box-shadow: 0 0 0 3px #cffafe;
528
+ }
529
+
530
+ .aheart-ai-process li.is-complete::before {
531
+ background: #12b76a;
532
+ }
533
+
534
+ .aheart-ai-process li.is-stopped::before {
535
+ background: #98a2b3;
536
+ }
537
+
538
+ .aheart-ai-process li.is-error {
539
+ color: var(--aheart-color-danger, #d92d20);
540
+ }
541
+
542
+ @media (max-width: 760px) {
543
+ .aheart-ai-chat-panel {
544
+ min-block-size: 480px;
545
+ }
546
+
547
+ .aheart-ai-chat-panel__messages {
548
+ max-block-size: 500px;
549
+ padding: 18px 12px;
550
+ }
551
+
552
+ .aheart-ai-chat-panel__empty {
553
+ min-block-size: 300px;
554
+ padding: 24px 16px;
555
+ }
556
+
557
+ .aheart-ai-prompts {
558
+ grid-template-columns: minmax(0, 1fr);
559
+ }
560
+
561
+ .aheart-ai-bubble {
562
+ max-inline-size: 96%;
563
+ }
564
+
565
+ .aheart-ai-sender {
566
+ grid-template-columns: minmax(0, 1fr);
567
+ }
568
+
569
+ .aheart-ai-sender button {
570
+ inline-size: 100%;
571
+ }
572
+ }
573
+
574
+ @media (pointer: coarse) {
575
+ .aheart-ai-chat-panel > .aheart-ai-conversations button,
576
+ .aheart-ai-conversations button,
577
+ .aheart-ai-attachments button,
578
+ .aheart-ai-sender button {
579
+ min-block-size: 44px;
580
+ min-inline-size: 44px;
581
+ }
582
+ }
583
+
584
+ @media (prefers-reduced-motion: reduce) {
585
+ .aheart-ai-chat-panel * {
586
+ scroll-behavior: auto !important;
587
+ transition-duration: 0.01ms !important;
588
+ animation-duration: 0.01ms !important;
589
+ }
590
+
591
+ .aheart-ai-prompts button:hover,
592
+ .aheart-ai-prompts button:focus-visible {
593
+ transform: none;
594
+ }
595
+ }
@@ -1,5 +1,5 @@
1
1
  import type { AIAttachment, AIConversation, AIMessage, AIPrompt, AITransport, AITransportV2 } from './types';
2
- declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  messages?: AIMessage[] | undefined;
4
4
  defaultMessages?: AIMessage[] | undefined;
5
5
  transport: AITransport | AITransportV2;
@@ -24,7 +24,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
24
24
  welcomeDescription: string;
25
25
  disabled: boolean;
26
26
  maxReconnectAttempts: number;
27
- }>>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
27
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
28
  error: (error: string) => void;
29
29
  send: (content: string) => void;
30
30
  retry: (message: AIMessage) => void;
@@ -37,7 +37,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
37
37
  "update:attachments": (attachments: AIAttachment[]) => void;
38
38
  "stream-status": (status: string) => void;
39
39
  "stream-reject": (reason: string) => void;
40
- }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
40
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
41
41
  messages?: AIMessage[] | undefined;
42
42
  defaultMessages?: AIMessage[] | undefined;
43
43
  transport: AITransport | AITransportV2;
@@ -87,7 +87,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
87
87
  welcomeTitle: string;
88
88
  welcomeDescription: string;
89
89
  maxReconnectAttempts: number;
90
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
90
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
91
91
  export default _default;
92
92
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
93
93
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -0,0 +1,2 @@
1
+ export { default as AIConversations, default } from '../conversations.vue';
2
+ export type * from '../types';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../conversations.vue.js");exports.AIConversations=e.default;exports.default=e.default;
@@ -0,0 +1,48 @@
1
+ :root {
2
+ --aheart-ai-cyan: #0e7490;
3
+ --aheart-ai-cyan-strong: #0e7490;
4
+ --aheart-ai-brand-strong: #0958d9;
5
+ --aheart-ai-cyan-soft: #ecfeff;
6
+ --aheart-ai-line: #e4e7ec;
7
+ --aheart-ai-surface: #ffffff;
8
+ --aheart-ai-surface-subtle: #f8fafc;
9
+ --aheart-ai-text: #182230;
10
+ --aheart-ai-text-secondary: #667085;
11
+ }
12
+
13
+ .aheart-ai-conversations {
14
+ display: grid;
15
+ gap: 8px;
16
+ }
17
+
18
+ .aheart-ai-conversations button {
19
+ min-block-size: 36px;
20
+ padding: 7px 9px;
21
+ border: 1px solid transparent;
22
+ border-radius: 5px;
23
+ background: transparent;
24
+ color: var(--aheart-ai-text-secondary);
25
+ font: inherit;
26
+ text-align: left;
27
+ cursor: pointer;
28
+ }
29
+
30
+ .aheart-ai-conversations button:hover,
31
+ .aheart-ai-conversations button:focus-visible {
32
+ background: #f2f4f7;
33
+ color: var(--aheart-ai-text);
34
+ outline: none;
35
+ }
36
+
37
+ .aheart-ai-conversations button.is-active {
38
+ border-color: #b2ddff;
39
+ background: #eff8ff;
40
+ color: #175cd3;
41
+ }
42
+
43
+ @media (pointer: coarse) {
44
+ .aheart-ai-conversations button {
45
+ min-block-size: 44px;
46
+ min-inline-size: 44px;
47
+ }
48
+ }
@@ -1,13 +1,13 @@
1
1
  import type { AIConversation } from './types';
2
- declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  modelValue?: string | undefined;
4
4
  conversations?: AIConversation[] | undefined;
5
5
  }>, {
6
6
  modelValue: undefined;
7
7
  conversations: () => never[];
8
- }>>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (key: string) => void;
10
- }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
11
  modelValue?: string | undefined;
12
12
  conversations?: AIConversation[] | undefined;
13
13
  }>, {
@@ -18,7 +18,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
18
18
  }>, {
19
19
  modelValue: string;
20
20
  conversations: AIConversation[];
21
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
22
  export default _default;
23
23
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
24
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -0,0 +1,3 @@
1
+ export { default as AIForm, default } from '../form.vue';
2
+ export type * from '../types';
3
+ export * from '../form-schema';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("../form.vue.js"),e=require("../form-schema.js");exports.AIForm=_.default;exports.default=_.default;exports.AI_FORM_CONDITION_OPERATORS=e.AI_FORM_CONDITION_OPERATORS;exports.AI_FORM_FIELD_TYPES=e.AI_FORM_FIELD_TYPES;exports.validateAIFormSchema=e.validateAIFormSchema;