@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.
- 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 +308 -0
- package/es/agent-execution.vue.d.ts +4 -4
- package/es/agent-execution.vue.js +1 -1
- package/es/agent-workbench/index.d.ts +2 -0
- package/es/agent-workbench/index.js +5 -0
- package/es/agent-workbench/style.css +1332 -0
- package/es/agent-workbench.vue.d.ts +4 -4
- package/es/agent-workbench.vue.js +1 -1
- 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 +595 -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 +242 -0
- package/es/form-field.vue.d.ts +4 -4
- package/es/form.vue.d.ts +4 -4
- 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 +308 -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 +1332 -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 +595 -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 +242 -0
- package/lib/form-field.vue.d.ts +4 -4
- package/lib/form.vue.d.ts +4 -4
- 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 +105 -3
package/es/form/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as e, default as o } from "../form.vue.js";
|
|
2
|
+
import { AI_FORM_CONDITION_OPERATORS as O, AI_FORM_FIELD_TYPES as _, validateAIFormSchema as m } from "../form-schema.js";
|
|
3
|
+
export {
|
|
4
|
+
e as AIForm,
|
|
5
|
+
O as AI_FORM_CONDITION_OPERATORS,
|
|
6
|
+
_ as AI_FORM_FIELD_TYPES,
|
|
7
|
+
o as default,
|
|
8
|
+
m as validateAIFormSchema
|
|
9
|
+
};
|
|
@@ -0,0 +1,242 @@
|
|
|
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-form {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
color: var(--aheart-color-text, var(--aheart-ai-text));
|
|
28
|
+
letter-spacing: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.aheart-ai-form * {
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.aheart-ai-form {
|
|
36
|
+
display: grid;
|
|
37
|
+
gap: 20px;
|
|
38
|
+
inline-size: min(100%, 760px);
|
|
39
|
+
padding: clamp(18px, 4vw, 32px);
|
|
40
|
+
border: 1px solid var(--aheart-ai-line);
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
background: var(--aheart-ai-surface);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.aheart-ai-form__header {
|
|
46
|
+
display: grid;
|
|
47
|
+
gap: 5px;
|
|
48
|
+
padding-block-end: 18px;
|
|
49
|
+
border-block-end: 1px solid var(--aheart-ai-line);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.aheart-ai-form__header h2,
|
|
53
|
+
.aheart-ai-form__header p {
|
|
54
|
+
margin: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.aheart-ai-form__header h2 {
|
|
58
|
+
color: var(--aheart-ai-text);
|
|
59
|
+
font-size: 20px;
|
|
60
|
+
line-height: 1.4;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.aheart-ai-form__header p {
|
|
64
|
+
color: var(--aheart-ai-text-secondary);
|
|
65
|
+
line-height: 1.6;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.aheart-ai-form__group {
|
|
69
|
+
display: grid;
|
|
70
|
+
gap: 16px;
|
|
71
|
+
min-inline-size: 0;
|
|
72
|
+
margin: 0;
|
|
73
|
+
padding: 0;
|
|
74
|
+
border: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
fieldset.aheart-ai-form__group {
|
|
78
|
+
padding-block-start: 16px;
|
|
79
|
+
border-block-start: 1px solid var(--aheart-ai-line);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.aheart-ai-form__group legend {
|
|
83
|
+
display: grid;
|
|
84
|
+
gap: 3px;
|
|
85
|
+
inline-size: 100%;
|
|
86
|
+
padding: 0;
|
|
87
|
+
color: var(--aheart-ai-text);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.aheart-ai-form__group legend span {
|
|
91
|
+
font-weight: 650;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.aheart-ai-form__group legend small,
|
|
95
|
+
.aheart-ai-form__field-description {
|
|
96
|
+
color: var(--aheart-ai-text-secondary);
|
|
97
|
+
font-size: 12px;
|
|
98
|
+
line-height: 1.5;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.aheart-ai-form__field {
|
|
102
|
+
display: grid;
|
|
103
|
+
grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
|
|
104
|
+
column-gap: 18px;
|
|
105
|
+
row-gap: 6px;
|
|
106
|
+
align-items: start;
|
|
107
|
+
padding: 3px 0;
|
|
108
|
+
border-radius: 5px;
|
|
109
|
+
outline: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.aheart-ai-form__field:focus-visible {
|
|
113
|
+
box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.aheart-ai-form__field > label {
|
|
117
|
+
grid-column: 1;
|
|
118
|
+
grid-row: 1;
|
|
119
|
+
padding-block-start: 7px;
|
|
120
|
+
color: #344054;
|
|
121
|
+
font-weight: 550;
|
|
122
|
+
line-height: 1.5;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.aheart-ai-form__field-description {
|
|
126
|
+
grid-column: 1;
|
|
127
|
+
grid-row: 2;
|
|
128
|
+
margin: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.aheart-ai-form__field > :not(label):not(.aheart-ai-form__field-description):not(.aheart-ai-form__field-error):not(.aheart-switch) {
|
|
132
|
+
grid-column: 2;
|
|
133
|
+
grid-row: 1 / span 2;
|
|
134
|
+
inline-size: 100%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.aheart-ai-form__field > .aheart-switch {
|
|
138
|
+
grid-column: 2;
|
|
139
|
+
grid-row: 1 / span 2;
|
|
140
|
+
justify-self: start;
|
|
141
|
+
inline-size: fit-content;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.aheart-ai-form__required {
|
|
145
|
+
margin-inline-start: 3px;
|
|
146
|
+
color: var(--aheart-color-danger, #d92d20);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.aheart-ai-form__field-error {
|
|
150
|
+
grid-column: 2;
|
|
151
|
+
margin: 0;
|
|
152
|
+
color: var(--aheart-color-danger, #d92d20);
|
|
153
|
+
font-size: 12px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.aheart-ai-form__field.is-error {
|
|
157
|
+
padding: 8px;
|
|
158
|
+
background: #fff7f6;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.aheart-ai-form__error-summary,
|
|
162
|
+
.aheart-ai-form__submit-error,
|
|
163
|
+
.aheart-ai-form__error {
|
|
164
|
+
border-inline-start: 3px solid var(--aheart-color-danger, #d92d20);
|
|
165
|
+
background: #fff7f6;
|
|
166
|
+
color: #912018;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.aheart-ai-form__error-summary {
|
|
170
|
+
display: grid;
|
|
171
|
+
gap: 8px;
|
|
172
|
+
padding: 12px 14px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.aheart-ai-form__error-summary ul,
|
|
176
|
+
.aheart-ai-form__error ul {
|
|
177
|
+
display: grid;
|
|
178
|
+
gap: 4px;
|
|
179
|
+
margin: 0;
|
|
180
|
+
padding-inline-start: 20px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.aheart-ai-form__error-summary button {
|
|
184
|
+
padding: 0;
|
|
185
|
+
border: 0;
|
|
186
|
+
background: transparent;
|
|
187
|
+
color: inherit;
|
|
188
|
+
font: inherit;
|
|
189
|
+
text-decoration: underline;
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.aheart-ai-form__submit-error {
|
|
194
|
+
margin: 0;
|
|
195
|
+
padding: 9px 12px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.aheart-ai-form__footer {
|
|
199
|
+
display: flex;
|
|
200
|
+
justify-content: flex-end;
|
|
201
|
+
padding-block-start: 16px;
|
|
202
|
+
border-block-start: 1px solid var(--aheart-ai-line);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.aheart-ai-form__error {
|
|
206
|
+
display: grid;
|
|
207
|
+
gap: 8px;
|
|
208
|
+
max-inline-size: 760px;
|
|
209
|
+
padding: 16px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@media (max-width: 760px) {
|
|
213
|
+
|
|
214
|
+
.aheart-ai-form {
|
|
215
|
+
padding: 18px 14px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.aheart-ai-form__field {
|
|
219
|
+
grid-template-columns: minmax(0, 1fr);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.aheart-ai-form__field > label,
|
|
223
|
+
.aheart-ai-form__field-description,
|
|
224
|
+
.aheart-ai-form__field > :not(label):not(.aheart-ai-form__field-description):not(.aheart-ai-form__field-error):not(.aheart-switch),
|
|
225
|
+
.aheart-ai-form__field > .aheart-switch,
|
|
226
|
+
.aheart-ai-form__field-error {
|
|
227
|
+
grid-column: 1;
|
|
228
|
+
grid-row: auto;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.aheart-ai-form__field > label {
|
|
232
|
+
padding-block-start: 0;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@media (prefers-reduced-motion: reduce) {
|
|
237
|
+
.aheart-ai-form * {
|
|
238
|
+
scroll-behavior: auto !important;
|
|
239
|
+
transition-duration: 0.01ms !important;
|
|
240
|
+
animation-duration: 0.01ms !important;
|
|
241
|
+
}
|
|
242
|
+
}
|
package/es/form-field.vue.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { AIFormFieldV1 } from './form-schema';
|
|
2
|
-
declare const _default: import("
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
field: AIFormFieldV1;
|
|
4
4
|
value: unknown;
|
|
5
5
|
disabled?: boolean | undefined;
|
|
6
6
|
error?: string | undefined;
|
|
7
7
|
}>>, {
|
|
8
8
|
focus: () => void;
|
|
9
|
-
}, {}, {}, {}, import("
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
10
|
update: (value: unknown) => void;
|
|
11
|
-
}, string, import("
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
12
|
field: AIFormFieldV1;
|
|
13
13
|
value: unknown;
|
|
14
14
|
disabled?: boolean | undefined;
|
|
15
15
|
error?: string | undefined;
|
|
16
16
|
}>>> & Readonly<{
|
|
17
17
|
onUpdate?: ((value: unknown) => any) | undefined;
|
|
18
|
-
}>, {}, {}, {}, {}, string, import("
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
19
|
export default _default;
|
|
20
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
21
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
package/es/form.vue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AIFormAsyncValidator } from './form-schema';
|
|
2
|
-
declare const _default: import("
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
modelValue?: Record<string, unknown> | undefined;
|
|
4
4
|
schema: unknown;
|
|
5
5
|
disabled?: boolean | undefined;
|
|
@@ -22,7 +22,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
|
|
|
22
22
|
name: string;
|
|
23
23
|
errors: string[];
|
|
24
24
|
}[]) => void;
|
|
25
|
-
}, {}, {}, {}, import("
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
26
|
submit: (value: Record<string, unknown>) => void;
|
|
27
27
|
"update:modelValue": (value: Record<string, unknown>) => void;
|
|
28
28
|
"schema-error": (errors: string[]) => void;
|
|
@@ -30,7 +30,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
|
|
|
30
30
|
key: string;
|
|
31
31
|
message: string;
|
|
32
32
|
}[]) => void;
|
|
33
|
-
}, string, import("
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
34
34
|
modelValue?: Record<string, unknown> | undefined;
|
|
35
35
|
schema: unknown;
|
|
36
36
|
disabled?: boolean | undefined;
|
|
@@ -60,7 +60,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
|
|
|
60
60
|
submitText: string;
|
|
61
61
|
submitError: string;
|
|
62
62
|
validators: Record<string, AIFormAsyncValidator>;
|
|
63
|
-
}, {}, {}, {}, string, import("
|
|
63
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
64
64
|
export default _default;
|
|
65
65
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
66
66
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,77 @@
|
|
|
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-process h3 {
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.aheart-ai-process small {
|
|
18
|
+
display: block;
|
|
19
|
+
color: var(--aheart-ai-text-secondary);
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.aheart-ai-process {
|
|
24
|
+
display: grid;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.aheart-ai-process ol {
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
list-style: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.aheart-ai-process h3 {
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
color: var(--aheart-ai-text-secondary);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.aheart-ai-process ol {
|
|
40
|
+
display: grid;
|
|
41
|
+
gap: 6px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.aheart-ai-process li {
|
|
45
|
+
position: relative;
|
|
46
|
+
display: grid;
|
|
47
|
+
gap: 2px;
|
|
48
|
+
padding-inline-start: 16px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.aheart-ai-process li::before {
|
|
52
|
+
content: "";
|
|
53
|
+
position: absolute;
|
|
54
|
+
inset-block-start: 7px;
|
|
55
|
+
inset-inline-start: 2px;
|
|
56
|
+
inline-size: 6px;
|
|
57
|
+
block-size: 6px;
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
background: #98a2b3;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.aheart-ai-process li.is-running::before {
|
|
63
|
+
background: var(--aheart-ai-cyan);
|
|
64
|
+
box-shadow: 0 0 0 3px #cffafe;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.aheart-ai-process li.is-complete::before {
|
|
68
|
+
background: #12b76a;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.aheart-ai-process li.is-stopped::before {
|
|
72
|
+
background: #98a2b3;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.aheart-ai-process li.is-error {
|
|
76
|
+
color: var(--aheart-color-danger, #d92d20);
|
|
77
|
+
}
|
package/es/process.vue.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { AIProcessItem } from './types';
|
|
2
|
-
declare const _default: import("
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
items?: AIProcessItem[] | undefined;
|
|
4
4
|
}>, {
|
|
5
5
|
items: () => never[];
|
|
6
|
-
}>>, {}, {}, {}, {}, import("
|
|
6
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
items?: AIProcessItem[] | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
items: () => never[];
|
|
10
10
|
}>>> & Readonly<{}>, {
|
|
11
11
|
items: AIProcessItem[];
|
|
12
|
-
}, {}, {}, {}, string, import("
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
15
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,76 @@
|
|
|
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-prompts {
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
16
|
+
gap: 8px;
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
list-style: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.aheart-ai-prompts li {
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
min-inline-size: 0;
|
|
26
|
+
list-style: none !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.aheart-ai-prompts li::marker {
|
|
30
|
+
content: "";
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.aheart-ai-prompts button {
|
|
34
|
+
display: grid;
|
|
35
|
+
gap: 4px;
|
|
36
|
+
min-block-size: 64px;
|
|
37
|
+
inline-size: 100%;
|
|
38
|
+
padding: 11px 12px;
|
|
39
|
+
border: 1px solid #d0d5dd;
|
|
40
|
+
border-radius: 6px;
|
|
41
|
+
background: rgba(255, 255, 255, 0.96);
|
|
42
|
+
color: var(--aheart-ai-text);
|
|
43
|
+
font: inherit;
|
|
44
|
+
text-align: left;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
transition: transform 120ms ease-out, border-color 120ms ease-out, background-color 120ms ease-out;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.aheart-ai-prompts button:hover,
|
|
50
|
+
.aheart-ai-prompts button:focus-visible {
|
|
51
|
+
transform: translateY(-2px);
|
|
52
|
+
border-color: #69b1ff;
|
|
53
|
+
background: #f0f7ff;
|
|
54
|
+
outline: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.aheart-ai-prompts span {
|
|
58
|
+
display: block;
|
|
59
|
+
color: var(--aheart-ai-text-secondary);
|
|
60
|
+
font-size: 12px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (max-width: 760px) {
|
|
64
|
+
|
|
65
|
+
.aheart-ai-prompts {
|
|
66
|
+
grid-template-columns: minmax(0, 1fr);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (prefers-reduced-motion: reduce) {
|
|
71
|
+
|
|
72
|
+
.aheart-ai-prompts button:hover,
|
|
73
|
+
.aheart-ai-prompts button:focus-visible {
|
|
74
|
+
transform: none;
|
|
75
|
+
}
|
|
76
|
+
}
|
package/es/prompts.vue.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { AIPrompt } from './types';
|
|
2
|
-
declare const _default: import("
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
prompts?: AIPrompt[] | undefined;
|
|
4
4
|
disabled?: boolean | undefined;
|
|
5
5
|
}>, {
|
|
6
6
|
prompts: () => never[];
|
|
7
7
|
disabled: boolean;
|
|
8
|
-
}>>, {}, {}, {}, {}, import("
|
|
8
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
select: (prompt: AIPrompt) => void;
|
|
10
|
-
}, string, import("
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
11
|
prompts?: AIPrompt[] | undefined;
|
|
12
12
|
disabled?: boolean | undefined;
|
|
13
13
|
}>, {
|
|
@@ -18,7 +18,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
|
|
|
18
18
|
}>, {
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
prompts: AIPrompt[];
|
|
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> = {
|
|
@@ -0,0 +1,88 @@
|
|
|
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-sender {
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
16
|
+
align-items: end;
|
|
17
|
+
gap: 8px;
|
|
18
|
+
padding: 6px;
|
|
19
|
+
border: 1px solid #b9c2cf;
|
|
20
|
+
border-radius: 7px;
|
|
21
|
+
background: #fff;
|
|
22
|
+
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
|
|
23
|
+
transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.aheart-ai-sender:focus-within {
|
|
27
|
+
border-color: var(--aheart-color-primary, #1677ff);
|
|
28
|
+
box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.aheart-ai-sender textarea {
|
|
32
|
+
inline-size: 100%;
|
|
33
|
+
min-block-size: 56px;
|
|
34
|
+
max-block-size: 160px;
|
|
35
|
+
resize: vertical;
|
|
36
|
+
padding: 8px;
|
|
37
|
+
border: 0;
|
|
38
|
+
background: transparent;
|
|
39
|
+
color: var(--aheart-ai-text);
|
|
40
|
+
font: inherit;
|
|
41
|
+
line-height: 1.55;
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.aheart-ai-sender button {
|
|
46
|
+
min-inline-size: 72px;
|
|
47
|
+
min-block-size: 36px;
|
|
48
|
+
padding: 7px 14px;
|
|
49
|
+
border: 1px solid var(--aheart-color-primary, #1677ff);
|
|
50
|
+
border-radius: 5px;
|
|
51
|
+
background: var(--aheart-color-primary, #1677ff);
|
|
52
|
+
color: #fff;
|
|
53
|
+
font: 500 14px/1 inherit;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
transition: background-color 120ms ease-out, border-color 120ms ease-out;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.aheart-ai-sender button:hover:not(:disabled),
|
|
59
|
+
.aheart-ai-sender button:focus-visible {
|
|
60
|
+
border-color: #0958d9;
|
|
61
|
+
background: #0958d9;
|
|
62
|
+
outline: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.aheart-ai-sender button:disabled {
|
|
66
|
+
border-color: #d0d5dd;
|
|
67
|
+
background: #eaecf0;
|
|
68
|
+
color: #98a2b3;
|
|
69
|
+
cursor: not-allowed;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (max-width: 760px) {
|
|
73
|
+
|
|
74
|
+
.aheart-ai-sender {
|
|
75
|
+
grid-template-columns: minmax(0, 1fr);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.aheart-ai-sender button {
|
|
79
|
+
inline-size: 100%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@media (pointer: coarse) {
|
|
84
|
+
.aheart-ai-sender button {
|
|
85
|
+
min-block-size: 44px;
|
|
86
|
+
min-inline-size: 44px;
|
|
87
|
+
}
|
|
88
|
+
}
|
package/es/sender.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
modelValue?: string | undefined;
|
|
3
3
|
placeholder?: string | undefined;
|
|
4
4
|
disabled?: boolean | undefined;
|
|
@@ -8,11 +8,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
|
|
|
8
8
|
placeholder: string;
|
|
9
9
|
disabled: boolean;
|
|
10
10
|
loading: boolean;
|
|
11
|
-
}>>, {}, {}, {}, {}, import("
|
|
11
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
submit: (content: string) => void;
|
|
13
13
|
stop: () => void;
|
|
14
14
|
"update:modelValue": (value: string) => void;
|
|
15
|
-
}, string, import("
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
16
|
modelValue?: string | undefined;
|
|
17
17
|
placeholder?: string | undefined;
|
|
18
18
|
disabled?: boolean | undefined;
|
|
@@ -31,7 +31,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
|
|
|
31
31
|
loading: boolean;
|
|
32
32
|
placeholder: string;
|
|
33
33
|
modelValue: string;
|
|
34
|
-
}, {}, {}, {}, string, import("
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
35
|
export default _default;
|
|
36
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
37
|
type __VLS_TypePropsToRuntimeProps<T> = {
|