@fv-ui/ai-chat 1.6.1 → 1.7.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 +35 -30
- package/dist/index.d.ts +676 -22
- package/dist/style.css +1 -1
- package/es/index.mjs +555 -51
- package/lib/index.js +544 -50
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ interface CreateMarkdownOptions {
|
|
|
23
23
|
/**
|
|
24
24
|
* zh-CN 语言包(默认语言)。
|
|
25
25
|
* 值与各组件历史硬编码文案逐字一致(全角标点、省略号均保持),保证零配置升级无任何视觉变化。
|
|
26
|
-
* 结构即 LocaleMessages 源型;en-
|
|
26
|
+
* 结构即 LocaleMessages 源型;en/ko/vi/zh-HK 以类型注解同构对齐。
|
|
27
27
|
*/
|
|
28
28
|
declare const zhCN: {
|
|
29
29
|
common: {
|
|
@@ -88,6 +88,8 @@ declare const zhCN: {
|
|
|
88
88
|
};
|
|
89
89
|
filesCard: {
|
|
90
90
|
remove: string;
|
|
91
|
+
/** 下载按钮(onDownload 注入时渲染,aria 标签) */
|
|
92
|
+
download: string;
|
|
91
93
|
};
|
|
92
94
|
conversations: {
|
|
93
95
|
menuLabel: string;
|
|
@@ -168,12 +170,21 @@ declare const zhCN: {
|
|
|
168
170
|
};
|
|
169
171
|
|
|
170
172
|
/**
|
|
171
|
-
* 语言包类型:以 zh-CN 为源型推导(单一事实来源,勿手写接口——新增 key 只改 zh-CN
|
|
173
|
+
* 语言包类型:以 zh-CN 为源型推导(单一事实来源,勿手写接口——新增 key 只改 zh-CN,其余包编译期报缺)。
|
|
172
174
|
*/
|
|
173
175
|
type LocaleMessages = typeof zhCN;
|
|
174
176
|
|
|
175
|
-
/** en
|
|
176
|
-
declare const
|
|
177
|
+
/** en 语言包(LocaleMessages 类型注解:key 集合与 zh-CN 编译期对齐) */
|
|
178
|
+
declare const en: LocaleMessages;
|
|
179
|
+
|
|
180
|
+
/** ko(한국어)语言包(LocaleMessages 类型注解:key 集合与 zh-CN 编译期对齐) */
|
|
181
|
+
declare const ko: LocaleMessages;
|
|
182
|
+
|
|
183
|
+
/** vi(Tiếng Việt)语言包(LocaleMessages 类型注解:key 集合与 zh-CN 编译期对齐) */
|
|
184
|
+
declare const vi: LocaleMessages;
|
|
185
|
+
|
|
186
|
+
/** zh-HK(香港繁體)语言包(LocaleMessages 类型注解:key 集合与 zh-CN 编译期对齐;港式用词:檔案/資料/支援/上載/傳送) */
|
|
187
|
+
declare const zhHK: LocaleMessages;
|
|
177
188
|
|
|
178
189
|
/** 递归深 Partial:数组/叶子保持原样(与 deepMerge 覆盖语义对齐),对象层级逐层可选 */
|
|
179
190
|
type DeepPartial<T> = T extends readonly (infer _)[] ? T : T extends object ? {
|
|
@@ -183,12 +194,652 @@ type DeepPartial<T> = T extends readonly (infer _)[] ? T : T extends object ? {
|
|
|
183
194
|
type DeepPartialLocale = DeepPartial<LocaleMessages>;
|
|
184
195
|
/** 组件 locale prop 形态:内置语言名字符串(整包切换)或部分文案对象(在基底上深合并) */
|
|
185
196
|
type LocaleInput = string | DeepPartialLocale;
|
|
197
|
+
/** 内置语言包注册表(configureLocale 字符串形态查这里);zh-HK 系繁体需与简体区分故保留区域码,其余用短码 */
|
|
198
|
+
declare const PACKS: {
|
|
199
|
+
readonly 'zh-CN': {
|
|
200
|
+
common: {
|
|
201
|
+
copy: string;
|
|
202
|
+
delete: string;
|
|
203
|
+
confirm: string;
|
|
204
|
+
cancel: string;
|
|
205
|
+
retry: string;
|
|
206
|
+
close: string;
|
|
207
|
+
preview: string;
|
|
208
|
+
clear: string;
|
|
209
|
+
stop: string;
|
|
210
|
+
send: string;
|
|
211
|
+
download: string;
|
|
212
|
+
fullscreen: string;
|
|
213
|
+
collapse: string;
|
|
214
|
+
expand: string;
|
|
215
|
+
copied: string;
|
|
216
|
+
};
|
|
217
|
+
thinking: {
|
|
218
|
+
start: string;
|
|
219
|
+
thinking: string;
|
|
220
|
+
end: string;
|
|
221
|
+
error: string;
|
|
222
|
+
endWithTools: string;
|
|
223
|
+
thinkingItem: string;
|
|
224
|
+
thoughtDoneItem: string;
|
|
225
|
+
};
|
|
226
|
+
welcome: {
|
|
227
|
+
greetingPrefix: string;
|
|
228
|
+
greetingName: string;
|
|
229
|
+
description: string;
|
|
230
|
+
};
|
|
231
|
+
sender: {
|
|
232
|
+
clear: string;
|
|
233
|
+
stop: string;
|
|
234
|
+
send: string;
|
|
235
|
+
speech: string;
|
|
236
|
+
recordCancel: string;
|
|
237
|
+
recordConfirm: string;
|
|
238
|
+
micUnavailable: string;
|
|
239
|
+
inputPlaceholder: string;
|
|
240
|
+
};
|
|
241
|
+
editorSender: {
|
|
242
|
+
clear: string;
|
|
243
|
+
stop: string;
|
|
244
|
+
send: string;
|
|
245
|
+
inputPlaceholder: string;
|
|
246
|
+
selectTagTitle: string;
|
|
247
|
+
loading: string;
|
|
248
|
+
tagTip: string;
|
|
249
|
+
};
|
|
250
|
+
attachments: {
|
|
251
|
+
add: string;
|
|
252
|
+
retry: string;
|
|
253
|
+
uploading: string;
|
|
254
|
+
};
|
|
255
|
+
filesCard: {
|
|
256
|
+
remove: string;
|
|
257
|
+
download: string;
|
|
258
|
+
};
|
|
259
|
+
conversations: {
|
|
260
|
+
menuLabel: string;
|
|
261
|
+
rename: string;
|
|
262
|
+
delete: string;
|
|
263
|
+
renameTitle: string;
|
|
264
|
+
renamePrompt: string;
|
|
265
|
+
renamePlaceholder: string;
|
|
266
|
+
deleteTitle: string;
|
|
267
|
+
deleteConfirm: string;
|
|
268
|
+
};
|
|
269
|
+
scroll: {
|
|
270
|
+
toBottom: string;
|
|
271
|
+
};
|
|
272
|
+
aiChat: {
|
|
273
|
+
modelPlaceholder: string;
|
|
274
|
+
adapterMissing: string;
|
|
275
|
+
generateFailed: string;
|
|
276
|
+
exportUser: string;
|
|
277
|
+
exportAssistant: string;
|
|
278
|
+
};
|
|
279
|
+
aiMessage: {
|
|
280
|
+
copy: string;
|
|
281
|
+
regenerate: string;
|
|
282
|
+
prevBranch: string;
|
|
283
|
+
nextBranch: string;
|
|
284
|
+
defaultUserName: string;
|
|
285
|
+
defaultAssistantName: string;
|
|
286
|
+
querying: string;
|
|
287
|
+
queried: string;
|
|
288
|
+
generateFailed: string;
|
|
289
|
+
followups: string;
|
|
290
|
+
followupsTitle: string;
|
|
291
|
+
loadingPhrases: string[];
|
|
292
|
+
feedback: {
|
|
293
|
+
like: string;
|
|
294
|
+
dislike: string;
|
|
295
|
+
dislikeTitle: string;
|
|
296
|
+
dislikePlaceholder: string;
|
|
297
|
+
submit: string;
|
|
298
|
+
skip: string;
|
|
299
|
+
failed: string;
|
|
300
|
+
cleared: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
aiArtifacts: {
|
|
304
|
+
copy: string;
|
|
305
|
+
download: string;
|
|
306
|
+
fullscreen: string;
|
|
307
|
+
close: string;
|
|
308
|
+
};
|
|
309
|
+
chat: {
|
|
310
|
+
fileTag: string;
|
|
311
|
+
fileImageTag: string;
|
|
312
|
+
filesSystemPrompt: string;
|
|
313
|
+
toolDuration: string;
|
|
314
|
+
continuePrompt: string;
|
|
315
|
+
};
|
|
316
|
+
errors: {
|
|
317
|
+
requestFailed: string;
|
|
318
|
+
sessionIdMissing: string;
|
|
319
|
+
noBody: string;
|
|
320
|
+
generateFailed: string;
|
|
321
|
+
recordUnsupported: string;
|
|
322
|
+
speechError: string;
|
|
323
|
+
attachmentRejected: string;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly en: {
|
|
327
|
+
common: {
|
|
328
|
+
copy: string;
|
|
329
|
+
delete: string;
|
|
330
|
+
confirm: string;
|
|
331
|
+
cancel: string;
|
|
332
|
+
retry: string;
|
|
333
|
+
close: string;
|
|
334
|
+
preview: string;
|
|
335
|
+
clear: string;
|
|
336
|
+
stop: string;
|
|
337
|
+
send: string;
|
|
338
|
+
download: string;
|
|
339
|
+
fullscreen: string;
|
|
340
|
+
collapse: string;
|
|
341
|
+
expand: string;
|
|
342
|
+
copied: string;
|
|
343
|
+
};
|
|
344
|
+
thinking: {
|
|
345
|
+
start: string;
|
|
346
|
+
thinking: string;
|
|
347
|
+
end: string;
|
|
348
|
+
error: string;
|
|
349
|
+
endWithTools: string;
|
|
350
|
+
thinkingItem: string;
|
|
351
|
+
thoughtDoneItem: string;
|
|
352
|
+
};
|
|
353
|
+
welcome: {
|
|
354
|
+
greetingPrefix: string;
|
|
355
|
+
greetingName: string;
|
|
356
|
+
description: string;
|
|
357
|
+
};
|
|
358
|
+
sender: {
|
|
359
|
+
clear: string;
|
|
360
|
+
stop: string;
|
|
361
|
+
send: string;
|
|
362
|
+
speech: string;
|
|
363
|
+
recordCancel: string;
|
|
364
|
+
recordConfirm: string;
|
|
365
|
+
micUnavailable: string;
|
|
366
|
+
inputPlaceholder: string;
|
|
367
|
+
};
|
|
368
|
+
editorSender: {
|
|
369
|
+
clear: string;
|
|
370
|
+
stop: string;
|
|
371
|
+
send: string;
|
|
372
|
+
inputPlaceholder: string;
|
|
373
|
+
selectTagTitle: string;
|
|
374
|
+
loading: string;
|
|
375
|
+
tagTip: string;
|
|
376
|
+
};
|
|
377
|
+
attachments: {
|
|
378
|
+
add: string;
|
|
379
|
+
retry: string;
|
|
380
|
+
uploading: string;
|
|
381
|
+
};
|
|
382
|
+
filesCard: {
|
|
383
|
+
remove: string;
|
|
384
|
+
download: string;
|
|
385
|
+
};
|
|
386
|
+
conversations: {
|
|
387
|
+
menuLabel: string;
|
|
388
|
+
rename: string;
|
|
389
|
+
delete: string;
|
|
390
|
+
renameTitle: string;
|
|
391
|
+
renamePrompt: string;
|
|
392
|
+
renamePlaceholder: string;
|
|
393
|
+
deleteTitle: string;
|
|
394
|
+
deleteConfirm: string;
|
|
395
|
+
};
|
|
396
|
+
scroll: {
|
|
397
|
+
toBottom: string;
|
|
398
|
+
};
|
|
399
|
+
aiChat: {
|
|
400
|
+
modelPlaceholder: string;
|
|
401
|
+
adapterMissing: string;
|
|
402
|
+
generateFailed: string;
|
|
403
|
+
exportUser: string;
|
|
404
|
+
exportAssistant: string;
|
|
405
|
+
};
|
|
406
|
+
aiMessage: {
|
|
407
|
+
copy: string;
|
|
408
|
+
regenerate: string;
|
|
409
|
+
prevBranch: string;
|
|
410
|
+
nextBranch: string;
|
|
411
|
+
defaultUserName: string;
|
|
412
|
+
defaultAssistantName: string;
|
|
413
|
+
querying: string;
|
|
414
|
+
queried: string;
|
|
415
|
+
generateFailed: string;
|
|
416
|
+
followups: string;
|
|
417
|
+
followupsTitle: string;
|
|
418
|
+
loadingPhrases: string[];
|
|
419
|
+
feedback: {
|
|
420
|
+
like: string;
|
|
421
|
+
dislike: string;
|
|
422
|
+
dislikeTitle: string;
|
|
423
|
+
dislikePlaceholder: string;
|
|
424
|
+
submit: string;
|
|
425
|
+
skip: string;
|
|
426
|
+
failed: string;
|
|
427
|
+
cleared: string;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
aiArtifacts: {
|
|
431
|
+
copy: string;
|
|
432
|
+
download: string;
|
|
433
|
+
fullscreen: string;
|
|
434
|
+
close: string;
|
|
435
|
+
};
|
|
436
|
+
chat: {
|
|
437
|
+
fileTag: string;
|
|
438
|
+
fileImageTag: string;
|
|
439
|
+
filesSystemPrompt: string;
|
|
440
|
+
toolDuration: string;
|
|
441
|
+
continuePrompt: string;
|
|
442
|
+
};
|
|
443
|
+
errors: {
|
|
444
|
+
requestFailed: string;
|
|
445
|
+
sessionIdMissing: string;
|
|
446
|
+
noBody: string;
|
|
447
|
+
generateFailed: string;
|
|
448
|
+
recordUnsupported: string;
|
|
449
|
+
speechError: string;
|
|
450
|
+
attachmentRejected: string;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
readonly ko: {
|
|
454
|
+
common: {
|
|
455
|
+
copy: string;
|
|
456
|
+
delete: string;
|
|
457
|
+
confirm: string;
|
|
458
|
+
cancel: string;
|
|
459
|
+
retry: string;
|
|
460
|
+
close: string;
|
|
461
|
+
preview: string;
|
|
462
|
+
clear: string;
|
|
463
|
+
stop: string;
|
|
464
|
+
send: string;
|
|
465
|
+
download: string;
|
|
466
|
+
fullscreen: string;
|
|
467
|
+
collapse: string;
|
|
468
|
+
expand: string;
|
|
469
|
+
copied: string;
|
|
470
|
+
};
|
|
471
|
+
thinking: {
|
|
472
|
+
start: string;
|
|
473
|
+
thinking: string;
|
|
474
|
+
end: string;
|
|
475
|
+
error: string;
|
|
476
|
+
endWithTools: string;
|
|
477
|
+
thinkingItem: string;
|
|
478
|
+
thoughtDoneItem: string;
|
|
479
|
+
};
|
|
480
|
+
welcome: {
|
|
481
|
+
greetingPrefix: string;
|
|
482
|
+
greetingName: string;
|
|
483
|
+
description: string;
|
|
484
|
+
};
|
|
485
|
+
sender: {
|
|
486
|
+
clear: string;
|
|
487
|
+
stop: string;
|
|
488
|
+
send: string;
|
|
489
|
+
speech: string;
|
|
490
|
+
recordCancel: string;
|
|
491
|
+
recordConfirm: string;
|
|
492
|
+
micUnavailable: string;
|
|
493
|
+
inputPlaceholder: string;
|
|
494
|
+
};
|
|
495
|
+
editorSender: {
|
|
496
|
+
clear: string;
|
|
497
|
+
stop: string;
|
|
498
|
+
send: string;
|
|
499
|
+
inputPlaceholder: string;
|
|
500
|
+
selectTagTitle: string;
|
|
501
|
+
loading: string;
|
|
502
|
+
tagTip: string;
|
|
503
|
+
};
|
|
504
|
+
attachments: {
|
|
505
|
+
add: string;
|
|
506
|
+
retry: string;
|
|
507
|
+
uploading: string;
|
|
508
|
+
};
|
|
509
|
+
filesCard: {
|
|
510
|
+
remove: string;
|
|
511
|
+
download: string;
|
|
512
|
+
};
|
|
513
|
+
conversations: {
|
|
514
|
+
menuLabel: string;
|
|
515
|
+
rename: string;
|
|
516
|
+
delete: string;
|
|
517
|
+
renameTitle: string;
|
|
518
|
+
renamePrompt: string;
|
|
519
|
+
renamePlaceholder: string;
|
|
520
|
+
deleteTitle: string;
|
|
521
|
+
deleteConfirm: string;
|
|
522
|
+
};
|
|
523
|
+
scroll: {
|
|
524
|
+
toBottom: string;
|
|
525
|
+
};
|
|
526
|
+
aiChat: {
|
|
527
|
+
modelPlaceholder: string;
|
|
528
|
+
adapterMissing: string;
|
|
529
|
+
generateFailed: string;
|
|
530
|
+
exportUser: string;
|
|
531
|
+
exportAssistant: string;
|
|
532
|
+
};
|
|
533
|
+
aiMessage: {
|
|
534
|
+
copy: string;
|
|
535
|
+
regenerate: string;
|
|
536
|
+
prevBranch: string;
|
|
537
|
+
nextBranch: string;
|
|
538
|
+
defaultUserName: string;
|
|
539
|
+
defaultAssistantName: string;
|
|
540
|
+
querying: string;
|
|
541
|
+
queried: string;
|
|
542
|
+
generateFailed: string;
|
|
543
|
+
followups: string;
|
|
544
|
+
followupsTitle: string;
|
|
545
|
+
loadingPhrases: string[];
|
|
546
|
+
feedback: {
|
|
547
|
+
like: string;
|
|
548
|
+
dislike: string;
|
|
549
|
+
dislikeTitle: string;
|
|
550
|
+
dislikePlaceholder: string;
|
|
551
|
+
submit: string;
|
|
552
|
+
skip: string;
|
|
553
|
+
failed: string;
|
|
554
|
+
cleared: string;
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
aiArtifacts: {
|
|
558
|
+
copy: string;
|
|
559
|
+
download: string;
|
|
560
|
+
fullscreen: string;
|
|
561
|
+
close: string;
|
|
562
|
+
};
|
|
563
|
+
chat: {
|
|
564
|
+
fileTag: string;
|
|
565
|
+
fileImageTag: string;
|
|
566
|
+
filesSystemPrompt: string;
|
|
567
|
+
toolDuration: string;
|
|
568
|
+
continuePrompt: string;
|
|
569
|
+
};
|
|
570
|
+
errors: {
|
|
571
|
+
requestFailed: string;
|
|
572
|
+
sessionIdMissing: string;
|
|
573
|
+
noBody: string;
|
|
574
|
+
generateFailed: string;
|
|
575
|
+
recordUnsupported: string;
|
|
576
|
+
speechError: string;
|
|
577
|
+
attachmentRejected: string;
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
readonly vi: {
|
|
581
|
+
common: {
|
|
582
|
+
copy: string;
|
|
583
|
+
delete: string;
|
|
584
|
+
confirm: string;
|
|
585
|
+
cancel: string;
|
|
586
|
+
retry: string;
|
|
587
|
+
close: string;
|
|
588
|
+
preview: string;
|
|
589
|
+
clear: string;
|
|
590
|
+
stop: string;
|
|
591
|
+
send: string;
|
|
592
|
+
download: string;
|
|
593
|
+
fullscreen: string;
|
|
594
|
+
collapse: string;
|
|
595
|
+
expand: string;
|
|
596
|
+
copied: string;
|
|
597
|
+
};
|
|
598
|
+
thinking: {
|
|
599
|
+
start: string;
|
|
600
|
+
thinking: string;
|
|
601
|
+
end: string;
|
|
602
|
+
error: string;
|
|
603
|
+
endWithTools: string;
|
|
604
|
+
thinkingItem: string;
|
|
605
|
+
thoughtDoneItem: string;
|
|
606
|
+
};
|
|
607
|
+
welcome: {
|
|
608
|
+
greetingPrefix: string;
|
|
609
|
+
greetingName: string;
|
|
610
|
+
description: string;
|
|
611
|
+
};
|
|
612
|
+
sender: {
|
|
613
|
+
clear: string;
|
|
614
|
+
stop: string;
|
|
615
|
+
send: string;
|
|
616
|
+
speech: string;
|
|
617
|
+
recordCancel: string;
|
|
618
|
+
recordConfirm: string;
|
|
619
|
+
micUnavailable: string;
|
|
620
|
+
inputPlaceholder: string;
|
|
621
|
+
};
|
|
622
|
+
editorSender: {
|
|
623
|
+
clear: string;
|
|
624
|
+
stop: string;
|
|
625
|
+
send: string;
|
|
626
|
+
inputPlaceholder: string;
|
|
627
|
+
selectTagTitle: string;
|
|
628
|
+
loading: string;
|
|
629
|
+
tagTip: string;
|
|
630
|
+
};
|
|
631
|
+
attachments: {
|
|
632
|
+
add: string;
|
|
633
|
+
retry: string;
|
|
634
|
+
uploading: string;
|
|
635
|
+
};
|
|
636
|
+
filesCard: {
|
|
637
|
+
remove: string;
|
|
638
|
+
download: string;
|
|
639
|
+
};
|
|
640
|
+
conversations: {
|
|
641
|
+
menuLabel: string;
|
|
642
|
+
rename: string;
|
|
643
|
+
delete: string;
|
|
644
|
+
renameTitle: string;
|
|
645
|
+
renamePrompt: string;
|
|
646
|
+
renamePlaceholder: string;
|
|
647
|
+
deleteTitle: string;
|
|
648
|
+
deleteConfirm: string;
|
|
649
|
+
};
|
|
650
|
+
scroll: {
|
|
651
|
+
toBottom: string;
|
|
652
|
+
};
|
|
653
|
+
aiChat: {
|
|
654
|
+
modelPlaceholder: string;
|
|
655
|
+
adapterMissing: string;
|
|
656
|
+
generateFailed: string;
|
|
657
|
+
exportUser: string;
|
|
658
|
+
exportAssistant: string;
|
|
659
|
+
};
|
|
660
|
+
aiMessage: {
|
|
661
|
+
copy: string;
|
|
662
|
+
regenerate: string;
|
|
663
|
+
prevBranch: string;
|
|
664
|
+
nextBranch: string;
|
|
665
|
+
defaultUserName: string;
|
|
666
|
+
defaultAssistantName: string;
|
|
667
|
+
querying: string;
|
|
668
|
+
queried: string;
|
|
669
|
+
generateFailed: string;
|
|
670
|
+
followups: string;
|
|
671
|
+
followupsTitle: string;
|
|
672
|
+
loadingPhrases: string[];
|
|
673
|
+
feedback: {
|
|
674
|
+
like: string;
|
|
675
|
+
dislike: string;
|
|
676
|
+
dislikeTitle: string;
|
|
677
|
+
dislikePlaceholder: string;
|
|
678
|
+
submit: string;
|
|
679
|
+
skip: string;
|
|
680
|
+
failed: string;
|
|
681
|
+
cleared: string;
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
aiArtifacts: {
|
|
685
|
+
copy: string;
|
|
686
|
+
download: string;
|
|
687
|
+
fullscreen: string;
|
|
688
|
+
close: string;
|
|
689
|
+
};
|
|
690
|
+
chat: {
|
|
691
|
+
fileTag: string;
|
|
692
|
+
fileImageTag: string;
|
|
693
|
+
filesSystemPrompt: string;
|
|
694
|
+
toolDuration: string;
|
|
695
|
+
continuePrompt: string;
|
|
696
|
+
};
|
|
697
|
+
errors: {
|
|
698
|
+
requestFailed: string;
|
|
699
|
+
sessionIdMissing: string;
|
|
700
|
+
noBody: string;
|
|
701
|
+
generateFailed: string;
|
|
702
|
+
recordUnsupported: string;
|
|
703
|
+
speechError: string;
|
|
704
|
+
attachmentRejected: string;
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
readonly 'zh-HK': {
|
|
708
|
+
common: {
|
|
709
|
+
copy: string;
|
|
710
|
+
delete: string;
|
|
711
|
+
confirm: string;
|
|
712
|
+
cancel: string;
|
|
713
|
+
retry: string;
|
|
714
|
+
close: string;
|
|
715
|
+
preview: string;
|
|
716
|
+
clear: string;
|
|
717
|
+
stop: string;
|
|
718
|
+
send: string;
|
|
719
|
+
download: string;
|
|
720
|
+
fullscreen: string;
|
|
721
|
+
collapse: string;
|
|
722
|
+
expand: string;
|
|
723
|
+
copied: string;
|
|
724
|
+
};
|
|
725
|
+
thinking: {
|
|
726
|
+
start: string;
|
|
727
|
+
thinking: string;
|
|
728
|
+
end: string;
|
|
729
|
+
error: string;
|
|
730
|
+
endWithTools: string;
|
|
731
|
+
thinkingItem: string;
|
|
732
|
+
thoughtDoneItem: string;
|
|
733
|
+
};
|
|
734
|
+
welcome: {
|
|
735
|
+
greetingPrefix: string;
|
|
736
|
+
greetingName: string;
|
|
737
|
+
description: string;
|
|
738
|
+
};
|
|
739
|
+
sender: {
|
|
740
|
+
clear: string;
|
|
741
|
+
stop: string;
|
|
742
|
+
send: string;
|
|
743
|
+
speech: string;
|
|
744
|
+
recordCancel: string;
|
|
745
|
+
recordConfirm: string;
|
|
746
|
+
micUnavailable: string;
|
|
747
|
+
inputPlaceholder: string;
|
|
748
|
+
};
|
|
749
|
+
editorSender: {
|
|
750
|
+
clear: string;
|
|
751
|
+
stop: string;
|
|
752
|
+
send: string;
|
|
753
|
+
inputPlaceholder: string;
|
|
754
|
+
selectTagTitle: string;
|
|
755
|
+
loading: string;
|
|
756
|
+
tagTip: string;
|
|
757
|
+
};
|
|
758
|
+
attachments: {
|
|
759
|
+
add: string;
|
|
760
|
+
retry: string;
|
|
761
|
+
uploading: string;
|
|
762
|
+
};
|
|
763
|
+
filesCard: {
|
|
764
|
+
remove: string;
|
|
765
|
+
download: string;
|
|
766
|
+
};
|
|
767
|
+
conversations: {
|
|
768
|
+
menuLabel: string;
|
|
769
|
+
rename: string;
|
|
770
|
+
delete: string;
|
|
771
|
+
renameTitle: string;
|
|
772
|
+
renamePrompt: string;
|
|
773
|
+
renamePlaceholder: string;
|
|
774
|
+
deleteTitle: string;
|
|
775
|
+
deleteConfirm: string;
|
|
776
|
+
};
|
|
777
|
+
scroll: {
|
|
778
|
+
toBottom: string;
|
|
779
|
+
};
|
|
780
|
+
aiChat: {
|
|
781
|
+
modelPlaceholder: string;
|
|
782
|
+
adapterMissing: string;
|
|
783
|
+
generateFailed: string;
|
|
784
|
+
exportUser: string;
|
|
785
|
+
exportAssistant: string;
|
|
786
|
+
};
|
|
787
|
+
aiMessage: {
|
|
788
|
+
copy: string;
|
|
789
|
+
regenerate: string;
|
|
790
|
+
prevBranch: string;
|
|
791
|
+
nextBranch: string;
|
|
792
|
+
defaultUserName: string;
|
|
793
|
+
defaultAssistantName: string;
|
|
794
|
+
querying: string;
|
|
795
|
+
queried: string;
|
|
796
|
+
generateFailed: string;
|
|
797
|
+
followups: string;
|
|
798
|
+
followupsTitle: string;
|
|
799
|
+
loadingPhrases: string[];
|
|
800
|
+
feedback: {
|
|
801
|
+
like: string;
|
|
802
|
+
dislike: string;
|
|
803
|
+
dislikeTitle: string;
|
|
804
|
+
dislikePlaceholder: string;
|
|
805
|
+
submit: string;
|
|
806
|
+
skip: string;
|
|
807
|
+
failed: string;
|
|
808
|
+
cleared: string;
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
aiArtifacts: {
|
|
812
|
+
copy: string;
|
|
813
|
+
download: string;
|
|
814
|
+
fullscreen: string;
|
|
815
|
+
close: string;
|
|
816
|
+
};
|
|
817
|
+
chat: {
|
|
818
|
+
fileTag: string;
|
|
819
|
+
fileImageTag: string;
|
|
820
|
+
filesSystemPrompt: string;
|
|
821
|
+
toolDuration: string;
|
|
822
|
+
continuePrompt: string;
|
|
823
|
+
};
|
|
824
|
+
errors: {
|
|
825
|
+
requestFailed: string;
|
|
826
|
+
sessionIdMissing: string;
|
|
827
|
+
noBody: string;
|
|
828
|
+
generateFailed: string;
|
|
829
|
+
recordUnsupported: string;
|
|
830
|
+
speechError: string;
|
|
831
|
+
attachmentRejected: string;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
/** 内置语言名(字符串形态 locale/configureLocale 的合法取值) */
|
|
836
|
+
type LocaleCode = keyof typeof PACKS;
|
|
186
837
|
/**
|
|
187
838
|
* 全局语言设置。
|
|
188
839
|
* 字符串选内置包(未知回落 zh-CN);对象视为**完整语言包**(消费方自建语言的主入口,
|
|
189
840
|
* 与组件 prop 的"部分覆盖"语义有意不同:全局是定基准,prop 是在基准上微调)。
|
|
190
841
|
*/
|
|
191
|
-
declare function configureLocale(locale:
|
|
842
|
+
declare function configureLocale(locale: LocaleCode | LocaleMessages): void;
|
|
192
843
|
|
|
193
844
|
type __VLS_Props$h = {
|
|
194
845
|
content: string;
|
|
@@ -201,7 +852,7 @@ type __VLS_Props$h = {
|
|
|
201
852
|
codeTriggerLangs?: string[];
|
|
202
853
|
/** 表格工具栏:默认开启。表格上方注入复制(markdown 源文本)/下载(CSV)单图标按钮 */
|
|
203
854
|
tableToolbar?: boolean;
|
|
204
|
-
/** 语言包:'zh-CN'/'en-
|
|
855
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
205
856
|
locale?: LocaleInput;
|
|
206
857
|
};
|
|
207
858
|
declare const __VLS_export$h: vue.DefineComponent<__VLS_Props$h, {
|
|
@@ -434,7 +1085,7 @@ type __VLS_Props$e = {
|
|
|
434
1085
|
* - number[]:仅指定索引上抛(无效索引过滤并 console.warn)
|
|
435
1086
|
*/
|
|
436
1087
|
triggerIndices?: 'only-last' | 'all' | number[];
|
|
437
|
-
/** 语言配置:内置语言名(如 'en
|
|
1088
|
+
/** 语言配置:内置语言名(如 'en')或部分文案对象(深合并覆盖) */
|
|
438
1089
|
locale?: LocaleInput;
|
|
439
1090
|
};
|
|
440
1091
|
declare function scrollToTop$1(): void;
|
|
@@ -550,7 +1201,7 @@ type __VLS_Props$d = {
|
|
|
550
1201
|
allowSpeech?: boolean;
|
|
551
1202
|
/** 允许空内容提交(附件场景:只发文件不输文字时提交按钮保持可点) */
|
|
552
1203
|
allowEmptySubmit?: boolean;
|
|
553
|
-
/** 语言包:'zh-CN'/'en-
|
|
1204
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
554
1205
|
locale?: LocaleInput;
|
|
555
1206
|
};
|
|
556
1207
|
declare function submit$1(): void;
|
|
@@ -673,7 +1324,7 @@ type __VLS_Props$c = {
|
|
|
673
1324
|
customTrigger?: MentionCustomTrigger[];
|
|
674
1325
|
/** 异步候选:存在时防抖 300ms 拉取(后端负责过滤) */
|
|
675
1326
|
asyncMatchFun?: (search: string) => Promise<MentionUserInfo[]>;
|
|
676
|
-
/** 语言包:'zh-CN'/'en-
|
|
1327
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
677
1328
|
locale?: LocaleInput;
|
|
678
1329
|
};
|
|
679
1330
|
declare function submit(): void;
|
|
@@ -855,7 +1506,7 @@ type __VLS_Props$b = {
|
|
|
855
1506
|
asyncMatchFun?: (search: string) => Promise<EditorUser[]>;
|
|
856
1507
|
/** 自定义弹窗:true 时不弹内置选择弹窗,仅上抛 show-select-dialog 由外部接管 */
|
|
857
1508
|
customDialog?: boolean;
|
|
858
|
-
/** 语言包:'zh-CN'/'en-
|
|
1509
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
859
1510
|
locale?: LocaleInput;
|
|
860
1511
|
};
|
|
861
1512
|
/**
|
|
@@ -1018,7 +1669,7 @@ type __VLS_Props$a = {
|
|
|
1018
1669
|
color?: string;
|
|
1019
1670
|
/** 背景色 */
|
|
1020
1671
|
backgroundColor?: string;
|
|
1021
|
-
/** 语言包:'zh-CN'/'en-
|
|
1672
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
1022
1673
|
locale?: LocaleInput;
|
|
1023
1674
|
};
|
|
1024
1675
|
/** 切换门控:start 起始态不可切换;thinking 中可展开查看思考流,end/error 后可自由收起展开 */
|
|
@@ -1097,7 +1748,7 @@ type __VLS_Props$9 = {
|
|
|
1097
1748
|
collapsible?: boolean;
|
|
1098
1749
|
/** 显示工具步用时 description(默认关闭:流式期间干扰观感,历史回放/调试场景可开) */
|
|
1099
1750
|
showDuration?: boolean;
|
|
1100
|
-
/** 语言包:'zh-CN'/'en-
|
|
1751
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
1101
1752
|
locale?: LocaleInput;
|
|
1102
1753
|
};
|
|
1103
1754
|
declare var __VLS_45: {
|
|
@@ -1135,7 +1786,7 @@ type __VLS_Props$8 = {
|
|
|
1135
1786
|
description?: string;
|
|
1136
1787
|
/** 布局:vertical 纵排(形象在上,默认)/ horizontal 横排(欢迎吉祥物浮于文案右上,空态欢迎形态) */
|
|
1137
1788
|
layout?: 'vertical' | 'horizontal';
|
|
1138
|
-
/** 语言包:'zh-CN'/'en-
|
|
1789
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
1139
1790
|
locale?: LocaleInput;
|
|
1140
1791
|
};
|
|
1141
1792
|
declare var __VLS_1$5: {};
|
|
@@ -1223,7 +1874,9 @@ type __VLS_Props$6 = {
|
|
|
1223
1874
|
errorText?: string;
|
|
1224
1875
|
/** 删除回调:右上删除按钮点击时调用 */
|
|
1225
1876
|
onDelete?: () => void;
|
|
1226
|
-
/**
|
|
1877
|
+
/** 下载回调:注入时右上角渲染下载按钮(hover 浮现,与删除按钮同位互斥),点击调用 */
|
|
1878
|
+
onDownload?: () => void;
|
|
1879
|
+
/** 语言配置:内置语言名(如 'en')或部分文案对象(深合并覆盖) */
|
|
1227
1880
|
locale?: LocaleInput;
|
|
1228
1881
|
};
|
|
1229
1882
|
declare var __VLS_1$3: {};
|
|
@@ -1240,6 +1893,7 @@ declare const __VLS_base$5: vue.DefineComponent<__VLS_Props$6, {}, {}, {}, {}, v
|
|
|
1240
1893
|
imageSize: string;
|
|
1241
1894
|
errorText: string;
|
|
1242
1895
|
onDelete: () => void;
|
|
1896
|
+
onDownload: () => void;
|
|
1243
1897
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1244
1898
|
declare const __VLS_export$6: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
1245
1899
|
declare const _default$6: typeof __VLS_export$6;
|
|
@@ -1284,7 +1938,7 @@ type __VLS_Props$5 = {
|
|
|
1284
1938
|
disabled?: boolean;
|
|
1285
1939
|
/** 布局:inline(默认)按钮+列表+提示一行;triggerOnly 只渲染回形针按钮;listOnly 只渲染文件列表 */
|
|
1286
1940
|
layout?: 'inline' | 'triggerOnly' | 'listOnly';
|
|
1287
|
-
/** 语言配置:内置语言名(如 'en
|
|
1941
|
+
/** 语言配置:内置语言名(如 'en')或部分文案对象(深合并覆盖) */
|
|
1288
1942
|
locale?: LocaleInput;
|
|
1289
1943
|
};
|
|
1290
1944
|
/** 重传:error 项重新走 upload(无钩子时仅置回 loading 等外部接线) */
|
|
@@ -1365,7 +2019,7 @@ type __VLS_Props$4 = {
|
|
|
1365
2019
|
loading?: boolean;
|
|
1366
2020
|
/** 是否还有更早分页(缺省 false 表示一次性全量,不触发 load-more) */
|
|
1367
2021
|
hasMore?: boolean;
|
|
1368
|
-
/** 语言配置:内置语言名(如 'en
|
|
2022
|
+
/** 语言配置:内置语言名(如 'en')或部分文案对象(深合并覆盖) */
|
|
1369
2023
|
locale?: LocaleInput;
|
|
1370
2024
|
};
|
|
1371
2025
|
declare function handleMenuCommand(cmd: {
|
|
@@ -1930,7 +2584,7 @@ type __VLS_Props$3 = {
|
|
|
1930
2584
|
* 乐观更新:先翻转本地 feedback 再调钩子,失败回滚并上抛 feedback-error
|
|
1931
2585
|
*/
|
|
1932
2586
|
feedbackHandler?: FeedbackHandler;
|
|
1933
|
-
/** 语言包:'zh-CN'/'en-
|
|
2587
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
1934
2588
|
locale?: LocaleInput;
|
|
1935
2589
|
};
|
|
1936
2590
|
/** 展开/折叠本条消息的思考链(user 消息与无思考链消息调用无效) */
|
|
@@ -2119,7 +2773,7 @@ type __VLS_Props$2 = {
|
|
|
2119
2773
|
* 缺省不渲染)。点击 👍/👎 经此上抛消费方端点,乐观更新失败回滚
|
|
2120
2774
|
*/
|
|
2121
2775
|
feedbackHandler?: FeedbackHandler;
|
|
2122
|
-
/** 语言包:'zh-CN'/'en-
|
|
2776
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
2123
2777
|
locale?: LocaleInput;
|
|
2124
2778
|
};
|
|
2125
2779
|
declare function scrollToBottom(smooth?: boolean): void;
|
|
@@ -2404,7 +3058,7 @@ type __VLS_Props$1 = {
|
|
|
2404
3058
|
feedbackHandler?: FeedbackHandler;
|
|
2405
3059
|
/** 主题:light/dark/auto(注入 html dark class) */
|
|
2406
3060
|
theme?: 'light' | 'dark' | 'auto';
|
|
2407
|
-
/** 语言包:'zh-CN'/'en-
|
|
3061
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象;解析后向整框后代注入(后代仍可用自身 locale prop 覆盖) */
|
|
2408
3062
|
locale?: LocaleInput;
|
|
2409
3063
|
};
|
|
2410
3064
|
/** 停止生成:生成在途时置位 stopped(空闲时无待收口轮次,不置位避免残留误吞下一轮),再中止在途请求 */
|
|
@@ -2620,7 +3274,7 @@ type __VLS_Props = {
|
|
|
2620
3274
|
minWidth?: string;
|
|
2621
3275
|
/** 面板最大宽度(css 值;默认 60%,防窄屏挤占消息区) */
|
|
2622
3276
|
maxWidth?: string;
|
|
2623
|
-
/** 语言包:'zh-CN'/'en-
|
|
3277
|
+
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
2624
3278
|
locale?: LocaleInput;
|
|
2625
3279
|
};
|
|
2626
3280
|
declare function open(key: string): void;
|
|
@@ -2816,5 +3470,5 @@ declare function createMessageTree(initial?: {
|
|
|
2816
3470
|
|
|
2817
3471
|
declare const version = "0.1.0";
|
|
2818
3472
|
|
|
2819
|
-
export { _default as FvAiArtifacts, _default$1 as FvAiChat, _default$3 as FvAiMessage, _default$2 as FvAiMessages, _default$5 as FvAttachments, _default$f as FvBubble, _default$e as FvBubbleList, FvCommonAdapter, FvCommonError, _default$4 as FvConversations, _default$b as FvEditorSender, _default$6 as FvFilesCard, _default$h as FvMarkdown, _default$c as FvMentionSender, _default$7 as FvPrompts, _default$d as FvSender, _default$a as FvThinking, _default$9 as FvThoughtChain, _default$g as FvTypewriter, _default$8 as FvWelcome, OpenAIAdapter, XRequest, configureLocale, createLocalStorageAdapter, createMemoryAdapter, createMessageTree, createSSEParser,
|
|
2820
|
-
export type { AdapterChatFile, AdapterChatMessage, AiArtifactItem, AiChatArtifactsOptions, AiChatFeatures, AiChatSuggestion, AiMessageBranchInfo, AiMessagesSuggestion, AttachmentItem, AttachmentUpload, BranchDirection, ChatAdapter, ChatAdapterHandlers, ChatAdapterRequest, ChatFile, DeepPartialLocale, FeedbackHandler, FvCommonAdapterConfig, FvCommonMessage, FvCommonMessagePage, FvCommonSendBody, FvCommonSessionDetail, FvCommonSessionItem, FvCommonToolEvent, LocaleInput, LocaleMessages, MessageFeedback, MessageNode, MessageNodeInput, MessageRole, MessageStatus, MessageTree, MessageUsage, OpenAIAdapterConfig, QueueItem, RawUsage, SSEEvent, SSEParser, SendOptions, StorageAdapter, ToolCallItem, ToolStepItem, UseChatOptions, UseChatReturn, UseMessagesReturn, UseRecordReturn, UseSendReturn, UseXStreamReturn };
|
|
3473
|
+
export { _default as FvAiArtifacts, _default$1 as FvAiChat, _default$3 as FvAiMessage, _default$2 as FvAiMessages, _default$5 as FvAttachments, _default$f as FvBubble, _default$e as FvBubbleList, FvCommonAdapter, FvCommonError, _default$4 as FvConversations, _default$b as FvEditorSender, _default$6 as FvFilesCard, _default$h as FvMarkdown, _default$c as FvMentionSender, _default$7 as FvPrompts, _default$d as FvSender, _default$a as FvThinking, _default$9 as FvThoughtChain, _default$g as FvTypewriter, _default$8 as FvWelcome, OpenAIAdapter, XRequest, configureLocale, createLocalStorageAdapter, createMemoryAdapter, createMessageTree, createSSEParser, en, ko, parseSuggestions, useChat, useMessages, useRecord, useSend, useXStream, version, vi, zhCN, zhHK };
|
|
3474
|
+
export type { AdapterChatFile, AdapterChatMessage, AiArtifactItem, AiChatArtifactsOptions, AiChatFeatures, AiChatSuggestion, AiMessageBranchInfo, AiMessagesSuggestion, AttachmentItem, AttachmentUpload, BranchDirection, ChatAdapter, ChatAdapterHandlers, ChatAdapterRequest, ChatFile, DeepPartialLocale, FeedbackHandler, FvCommonAdapterConfig, FvCommonMessage, FvCommonMessagePage, FvCommonSendBody, FvCommonSessionDetail, FvCommonSessionItem, FvCommonToolEvent, LocaleCode, LocaleInput, LocaleMessages, MessageFeedback, MessageNode, MessageNodeInput, MessageRole, MessageStatus, MessageTree, MessageUsage, OpenAIAdapterConfig, QueueItem, RawUsage, SSEEvent, SSEParser, SendOptions, StorageAdapter, ToolCallItem, ToolStepItem, UseChatOptions, UseChatReturn, UseMessagesReturn, UseRecordReturn, UseSendReturn, UseXStreamReturn };
|