@aheart-ui/ai 1.0.0 → 1.2.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.
- package/README.md +10 -1
- package/es/actions/index.d.ts +2 -0
- package/es/actions/index.js +5 -0
- package/es/actions/style.css +36 -0
- package/es/actions.vue.d.ts +4 -4
- package/es/agent/index.d.ts +5 -0
- package/es/agent/index.js +12 -0
- package/es/agent/style.css +3241 -0
- package/es/agent-execution.vue.d.ts +4 -4
- package/es/agent-execution.vue.js +2 -2
- package/es/agent-workbench/index.d.ts +2 -0
- package/es/agent-workbench/index.js +5 -0
- package/es/agent-workbench/style.css +2423 -0
- package/es/agent-workbench.vue.d.ts +4 -4
- package/es/agent-workbench.vue.js +10 -7
- package/es/attachments/index.d.ts +2 -0
- package/es/attachments/index.js +5 -0
- package/es/attachments/style.css +62 -0
- package/es/attachments.vue.d.ts +4 -4
- package/es/bubble/index.d.ts +2 -0
- package/es/bubble/index.js +5 -0
- package/es/bubble/style.css +241 -0
- package/es/bubble.vue.d.ts +3 -3
- package/es/chat/index.d.ts +11 -0
- package/es/chat/index.js +23 -0
- package/es/chat/style.css +595 -0
- package/es/chat-panel/index.d.ts +3 -0
- package/es/chat-panel/index.js +8 -0
- package/es/chat-panel/style.css +591 -0
- package/es/chat-panel.vue.d.ts +4 -4
- package/es/conversations/index.d.ts +2 -0
- package/es/conversations/index.js +5 -0
- package/es/conversations/style.css +48 -0
- package/es/conversations.vue.d.ts +4 -4
- package/es/form/index.d.ts +3 -0
- package/es/form/index.js +9 -0
- package/es/form/style.css +3175 -0
- package/es/form-field.vue.d.ts +4 -4
- package/es/form-field.vue.js +53 -43
- package/es/form.vue.d.ts +4 -4
- package/es/form.vue.js +7 -6
- package/es/process/index.d.ts +2 -0
- package/es/process/index.js +5 -0
- package/es/process/style.css +77 -0
- package/es/process.vue.d.ts +3 -3
- package/es/prompts/index.d.ts +2 -0
- package/es/prompts/index.js +5 -0
- package/es/prompts/style.css +76 -0
- package/es/prompts.vue.d.ts +4 -4
- package/es/sender/index.d.ts +2 -0
- package/es/sender/index.js +5 -0
- package/es/sender/style.css +88 -0
- package/es/sender.vue.d.ts +4 -4
- package/es/sources/index.d.ts +2 -0
- package/es/sources/index.js +5 -0
- package/es/sources/style.css +54 -0
- package/es/sources.vue.d.ts +3 -3
- package/es/thought-chain/index.d.ts +2 -0
- package/es/thought-chain/index.js +5 -0
- package/es/thought-chain/style.css +77 -0
- package/es/thought-chain.vue.d.ts +3 -3
- package/es/welcome/index.d.ts +2 -0
- package/es/welcome/index.js +5 -0
- package/es/welcome/style.css +33 -0
- package/es/welcome.vue.d.ts +3 -3
- package/lib/actions/index.d.ts +2 -0
- package/lib/actions/index.js +1 -0
- package/lib/actions/style.css +36 -0
- package/lib/actions.vue.d.ts +4 -4
- package/lib/agent/index.d.ts +5 -0
- package/lib/agent/index.js +1 -0
- package/lib/agent/style.css +3241 -0
- package/lib/agent-execution.vue.d.ts +4 -4
- package/lib/agent-execution.vue.js +1 -1
- package/lib/agent-workbench/index.d.ts +2 -0
- package/lib/agent-workbench/index.js +1 -0
- package/lib/agent-workbench/style.css +2423 -0
- package/lib/agent-workbench.vue.d.ts +4 -4
- package/lib/agent-workbench.vue.js +1 -1
- package/lib/attachments/index.d.ts +2 -0
- package/lib/attachments/index.js +1 -0
- package/lib/attachments/style.css +62 -0
- package/lib/attachments.vue.d.ts +4 -4
- package/lib/bubble/index.d.ts +2 -0
- package/lib/bubble/index.js +1 -0
- package/lib/bubble/style.css +241 -0
- package/lib/bubble.vue.d.ts +3 -3
- package/lib/chat/index.d.ts +11 -0
- package/lib/chat/index.js +1 -0
- package/lib/chat/style.css +595 -0
- package/lib/chat-panel/index.d.ts +3 -0
- package/lib/chat-panel/index.js +1 -0
- package/lib/chat-panel/style.css +591 -0
- package/lib/chat-panel.vue.d.ts +4 -4
- package/lib/conversations/index.d.ts +2 -0
- package/lib/conversations/index.js +1 -0
- package/lib/conversations/style.css +48 -0
- package/lib/conversations.vue.d.ts +4 -4
- package/lib/form/index.d.ts +3 -0
- package/lib/form/index.js +1 -0
- package/lib/form/style.css +3175 -0
- package/lib/form-field.vue.d.ts +4 -4
- package/lib/form-field.vue.js +1 -1
- package/lib/form.vue.d.ts +4 -4
- package/lib/form.vue.js +1 -1
- package/lib/process/index.d.ts +2 -0
- package/lib/process/index.js +1 -0
- package/lib/process/style.css +77 -0
- package/lib/process.vue.d.ts +3 -3
- package/lib/prompts/index.d.ts +2 -0
- package/lib/prompts/index.js +1 -0
- package/lib/prompts/style.css +76 -0
- package/lib/prompts.vue.d.ts +4 -4
- package/lib/sender/index.d.ts +2 -0
- package/lib/sender/index.js +1 -0
- package/lib/sender/style.css +88 -0
- package/lib/sender.vue.d.ts +4 -4
- package/lib/sources/index.d.ts +2 -0
- package/lib/sources/index.js +1 -0
- package/lib/sources/style.css +54 -0
- package/lib/sources.vue.d.ts +3 -3
- package/lib/thought-chain/index.d.ts +2 -0
- package/lib/thought-chain/index.js +1 -0
- package/lib/thought-chain/style.css +77 -0
- package/lib/thought-chain.vue.d.ts +3 -3
- package/lib/welcome/index.d.ts +2 -0
- package/lib/welcome/index.js +1 -0
- package/lib/welcome/style.css +33 -0
- package/lib/welcome.vue.d.ts +3 -3
- package/package.json +106 -4
|
@@ -0,0 +1,591 @@
|
|
|
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-attachments button {
|
|
326
|
+
min-block-size: 28px;
|
|
327
|
+
padding: 3px 8px;
|
|
328
|
+
border: 1px solid transparent;
|
|
329
|
+
border-radius: 4px;
|
|
330
|
+
background: transparent;
|
|
331
|
+
color: var(--aheart-ai-text-secondary);
|
|
332
|
+
font: 12px/1.4 inherit;
|
|
333
|
+
cursor: pointer;
|
|
334
|
+
transition: border-color 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.aheart-ai-chat-panel__message-actions button:hover,
|
|
338
|
+
.aheart-ai-chat-panel__message-actions button:focus-visible,
|
|
339
|
+
.aheart-ai-chat-panel__editing button:hover,
|
|
340
|
+
.aheart-ai-chat-panel__editing button:focus-visible,
|
|
341
|
+
.aheart-ai-attachments button:hover,
|
|
342
|
+
.aheart-ai-attachments button:focus-visible {
|
|
343
|
+
border-color: #b9c2cf;
|
|
344
|
+
background: var(--aheart-ai-surface-subtle);
|
|
345
|
+
color: var(--aheart-ai-text);
|
|
346
|
+
outline: none;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.aheart-ai-chat-panel__composer {
|
|
350
|
+
display: grid;
|
|
351
|
+
gap: 8px;
|
|
352
|
+
padding: 12px 16px 16px;
|
|
353
|
+
border-block-start: 1px solid var(--aheart-ai-line);
|
|
354
|
+
background: #fff;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.aheart-ai-chat-panel__editing {
|
|
358
|
+
display: flex;
|
|
359
|
+
align-items: center;
|
|
360
|
+
justify-content: space-between;
|
|
361
|
+
gap: 12px;
|
|
362
|
+
padding: 6px 10px;
|
|
363
|
+
border-inline-start: 3px solid var(--aheart-color-primary, #1677ff);
|
|
364
|
+
background: #f0f7ff;
|
|
365
|
+
color: #175cd3;
|
|
366
|
+
font-size: 12px;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.aheart-ai-sender {
|
|
370
|
+
display: grid;
|
|
371
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
372
|
+
align-items: end;
|
|
373
|
+
gap: 8px;
|
|
374
|
+
padding: 6px;
|
|
375
|
+
border: 1px solid #b9c2cf;
|
|
376
|
+
border-radius: 7px;
|
|
377
|
+
background: #fff;
|
|
378
|
+
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
|
|
379
|
+
transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.aheart-ai-sender:focus-within {
|
|
383
|
+
border-color: var(--aheart-color-primary, #1677ff);
|
|
384
|
+
box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.aheart-ai-sender textarea {
|
|
388
|
+
inline-size: 100%;
|
|
389
|
+
min-block-size: 56px;
|
|
390
|
+
max-block-size: 160px;
|
|
391
|
+
resize: vertical;
|
|
392
|
+
padding: 8px;
|
|
393
|
+
border: 0;
|
|
394
|
+
background: transparent;
|
|
395
|
+
color: var(--aheart-ai-text);
|
|
396
|
+
font: inherit;
|
|
397
|
+
line-height: 1.55;
|
|
398
|
+
outline: none;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.aheart-ai-sender button {
|
|
402
|
+
min-inline-size: 72px;
|
|
403
|
+
min-block-size: 36px;
|
|
404
|
+
padding: 7px 14px;
|
|
405
|
+
border: 1px solid var(--aheart-color-primary, #1677ff);
|
|
406
|
+
border-radius: 5px;
|
|
407
|
+
background: var(--aheart-color-primary, #1677ff);
|
|
408
|
+
color: #fff;
|
|
409
|
+
font: 500 14px/1 inherit;
|
|
410
|
+
cursor: pointer;
|
|
411
|
+
transition: background-color 120ms ease-out, border-color 120ms ease-out;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.aheart-ai-sender button:hover:not(:disabled),
|
|
415
|
+
.aheart-ai-sender button:focus-visible {
|
|
416
|
+
border-color: #0958d9;
|
|
417
|
+
background: #0958d9;
|
|
418
|
+
outline: none;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.aheart-ai-sender button:disabled {
|
|
422
|
+
border-color: #d0d5dd;
|
|
423
|
+
background: #eaecf0;
|
|
424
|
+
color: #98a2b3;
|
|
425
|
+
cursor: not-allowed;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.aheart-ai-conversations,
|
|
429
|
+
.aheart-ai-sources,
|
|
430
|
+
.aheart-ai-process,
|
|
431
|
+
.aheart-ai-attachments {
|
|
432
|
+
display: grid;
|
|
433
|
+
gap: 8px;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.aheart-ai-conversations button {
|
|
437
|
+
min-block-size: 36px;
|
|
438
|
+
padding: 7px 9px;
|
|
439
|
+
border: 1px solid transparent;
|
|
440
|
+
border-radius: 5px;
|
|
441
|
+
background: transparent;
|
|
442
|
+
color: var(--aheart-ai-text-secondary);
|
|
443
|
+
font: inherit;
|
|
444
|
+
text-align: left;
|
|
445
|
+
cursor: pointer;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.aheart-ai-conversations button:hover,
|
|
449
|
+
.aheart-ai-conversations button:focus-visible {
|
|
450
|
+
background: #f2f4f7;
|
|
451
|
+
color: var(--aheart-ai-text);
|
|
452
|
+
outline: none;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.aheart-ai-conversations button.is-active {
|
|
456
|
+
border-color: #b2ddff;
|
|
457
|
+
background: #eff8ff;
|
|
458
|
+
color: #175cd3;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.aheart-ai-attachments,
|
|
462
|
+
.aheart-ai-sources ul,
|
|
463
|
+
.aheart-ai-process ol {
|
|
464
|
+
margin: 0;
|
|
465
|
+
padding: 0;
|
|
466
|
+
list-style: none;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.aheart-ai-attachments li,
|
|
470
|
+
.aheart-ai-sources li {
|
|
471
|
+
display: flex;
|
|
472
|
+
align-items: center;
|
|
473
|
+
justify-content: space-between;
|
|
474
|
+
gap: 8px;
|
|
475
|
+
min-block-size: 34px;
|
|
476
|
+
padding: 6px 8px;
|
|
477
|
+
border: 1px solid var(--aheart-ai-line);
|
|
478
|
+
border-radius: 5px;
|
|
479
|
+
background: var(--aheart-ai-surface-subtle);
|
|
480
|
+
font-size: 12px;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.aheart-ai-sources {
|
|
484
|
+
padding-block-start: 8px;
|
|
485
|
+
border-block-start: 1px solid var(--aheart-ai-line);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.aheart-ai-sources a {
|
|
489
|
+
color: var(--aheart-ai-brand-strong);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.aheart-ai-sources h3,
|
|
493
|
+
.aheart-ai-process h3 {
|
|
494
|
+
font-size: 12px;
|
|
495
|
+
color: var(--aheart-ai-text-secondary);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.aheart-ai-process ol {
|
|
499
|
+
display: grid;
|
|
500
|
+
gap: 6px;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.aheart-ai-process li {
|
|
504
|
+
position: relative;
|
|
505
|
+
display: grid;
|
|
506
|
+
gap: 2px;
|
|
507
|
+
padding-inline-start: 16px;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.aheart-ai-process li::before {
|
|
511
|
+
content: "";
|
|
512
|
+
position: absolute;
|
|
513
|
+
inset-block-start: 7px;
|
|
514
|
+
inset-inline-start: 2px;
|
|
515
|
+
inline-size: 6px;
|
|
516
|
+
block-size: 6px;
|
|
517
|
+
border-radius: 50%;
|
|
518
|
+
background: #98a2b3;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.aheart-ai-process li.is-running::before {
|
|
522
|
+
background: var(--aheart-ai-cyan);
|
|
523
|
+
box-shadow: 0 0 0 3px #cffafe;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.aheart-ai-process li.is-complete::before {
|
|
527
|
+
background: #12b76a;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.aheart-ai-process li.is-stopped::before {
|
|
531
|
+
background: #98a2b3;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.aheart-ai-process li.is-error {
|
|
535
|
+
color: var(--aheart-color-danger, #d92d20);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
@media (max-width: 760px) {
|
|
539
|
+
.aheart-ai-chat-panel {
|
|
540
|
+
min-block-size: 480px;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.aheart-ai-chat-panel__messages {
|
|
544
|
+
max-block-size: 500px;
|
|
545
|
+
padding: 18px 12px;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.aheart-ai-chat-panel__empty {
|
|
549
|
+
min-block-size: 300px;
|
|
550
|
+
padding: 24px 16px;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.aheart-ai-prompts {
|
|
554
|
+
grid-template-columns: minmax(0, 1fr);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.aheart-ai-bubble {
|
|
558
|
+
max-inline-size: 96%;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.aheart-ai-sender {
|
|
562
|
+
grid-template-columns: minmax(0, 1fr);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.aheart-ai-sender button {
|
|
566
|
+
inline-size: 100%;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
@media (pointer: coarse) {
|
|
571
|
+
.aheart-ai-chat-panel > .aheart-ai-conversations button,
|
|
572
|
+
.aheart-ai-conversations button,
|
|
573
|
+
.aheart-ai-attachments button,
|
|
574
|
+
.aheart-ai-sender button {
|
|
575
|
+
min-block-size: 44px;
|
|
576
|
+
min-inline-size: 44px;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
@media (prefers-reduced-motion: reduce) {
|
|
581
|
+
.aheart-ai-chat-panel * {
|
|
582
|
+
scroll-behavior: auto !important;
|
|
583
|
+
transition-duration: 0.01ms !important;
|
|
584
|
+
animation-duration: 0.01ms !important;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.aheart-ai-prompts button:hover,
|
|
588
|
+
.aheart-ai-prompts button:focus-visible {
|
|
589
|
+
transform: none;
|
|
590
|
+
}
|
|
591
|
+
}
|
package/es/chat-panel.vue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AIAttachment, AIConversation, AIMessage, AIPrompt, AITransport, AITransportV2 } from './types';
|
|
2
|
-
declare const _default: import("
|
|
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("
|
|
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("
|
|
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("
|
|
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,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("
|
|
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("
|
|
8
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (key: string) => void;
|
|
10
|
-
}, string, import("
|
|
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("
|
|
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> = {
|