@fv-ui/ai-chat 1.7.3 → 1.8.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 +1422 -1014
- package/dist/index.d.ts +1158 -194
- package/dist/style.css +1 -1
- package/es/assets/fvai-welcome-m4yx7X4O.gif +0 -0
- package/es/assets/fvai_avatar_256-MFSx99l5.webp +0 -0
- package/es/assets/fvai_avatar_256-nD3H5BI9.png +0 -0
- package/es/index.mjs +3217 -687
- package/lib/index.js +3290 -749
- package/package.json +80 -80
package/dist/index.d.ts
CHANGED
|
@@ -105,6 +105,57 @@ declare const zhCN: {
|
|
|
105
105
|
deleteTitle: string;
|
|
106
106
|
deleteConfirm: string;
|
|
107
107
|
};
|
|
108
|
+
sessionSidebar: {
|
|
109
|
+
newChat: string;
|
|
110
|
+
searchPlaceholder: string;
|
|
111
|
+
collapse: string;
|
|
112
|
+
expand: string;
|
|
113
|
+
activeTab: string;
|
|
114
|
+
archivedTab: string;
|
|
115
|
+
today: string;
|
|
116
|
+
earlier: string;
|
|
117
|
+
archived: string;
|
|
118
|
+
restore: string;
|
|
119
|
+
archive: string;
|
|
120
|
+
renamed: string;
|
|
121
|
+
deleted: string;
|
|
122
|
+
archivedDone: string;
|
|
123
|
+
restored: string;
|
|
124
|
+
operationFailed: string;
|
|
125
|
+
listLoading: string;
|
|
126
|
+
};
|
|
127
|
+
aiChatPanel: {
|
|
128
|
+
loadEarlier: string;
|
|
129
|
+
createFailed: string;
|
|
130
|
+
generateFailed: string;
|
|
131
|
+
/** 悬浮面板头部关闭按钮 aria */
|
|
132
|
+
close: string;
|
|
133
|
+
/** 悬浮面板头部模式切换按钮:当前抽屉态,点击切悬窗 */
|
|
134
|
+
floatMode: string;
|
|
135
|
+
/** 悬浮面板头部模式切换按钮:当前悬窗态,点击切回抽屉 */
|
|
136
|
+
drawerMode: string;
|
|
137
|
+
/** 悬浮面板头部最大化按钮:点击进最大化(占满视口 + 侧栏 + 大屏欢迎页) */
|
|
138
|
+
maximize: string;
|
|
139
|
+
/** 悬浮面板头部最大化按钮:最大化态,点击还原原形态 */
|
|
140
|
+
restore: string;
|
|
141
|
+
/** 悬浮面板头部历史会话按钮(下拉覆盖层) */
|
|
142
|
+
history: string;
|
|
143
|
+
/** 历史会话下拉空态文案 */
|
|
144
|
+
historyEmpty: string;
|
|
145
|
+
/** 历史会话下拉层「返回」按钮(收起下拉层,露出对话区) */
|
|
146
|
+
back: string;
|
|
147
|
+
/** 悬浮入口按钮 aria */
|
|
148
|
+
launcher: string;
|
|
149
|
+
};
|
|
150
|
+
/** 历史回放状态文案(historyMapper 以中文原文为 key 查表,miss 回落 key 原文) */
|
|
151
|
+
historyMapper: {
|
|
152
|
+
回复生成中断: string;
|
|
153
|
+
回复失败: string;
|
|
154
|
+
回复已中断: string;
|
|
155
|
+
'\u56DE\u590D\u5DF2\u4E2D\u65AD\uFF0C\u4EE5\u4E0A\u4E3A\u5DF2\u751F\u6210\u90E8\u5206': string;
|
|
156
|
+
'\u7528\u65F6 {s}': string;
|
|
157
|
+
已归档: string;
|
|
158
|
+
};
|
|
108
159
|
scroll: {
|
|
109
160
|
toBottom: string;
|
|
110
161
|
};
|
|
@@ -272,6 +323,47 @@ declare const PACKS: {
|
|
|
272
323
|
deleteTitle: string;
|
|
273
324
|
deleteConfirm: string;
|
|
274
325
|
};
|
|
326
|
+
sessionSidebar: {
|
|
327
|
+
newChat: string;
|
|
328
|
+
searchPlaceholder: string;
|
|
329
|
+
collapse: string;
|
|
330
|
+
expand: string;
|
|
331
|
+
activeTab: string;
|
|
332
|
+
archivedTab: string;
|
|
333
|
+
today: string;
|
|
334
|
+
earlier: string;
|
|
335
|
+
archived: string;
|
|
336
|
+
restore: string;
|
|
337
|
+
archive: string;
|
|
338
|
+
renamed: string;
|
|
339
|
+
deleted: string;
|
|
340
|
+
archivedDone: string;
|
|
341
|
+
restored: string;
|
|
342
|
+
operationFailed: string;
|
|
343
|
+
listLoading: string;
|
|
344
|
+
};
|
|
345
|
+
aiChatPanel: {
|
|
346
|
+
loadEarlier: string;
|
|
347
|
+
createFailed: string;
|
|
348
|
+
generateFailed: string;
|
|
349
|
+
close: string;
|
|
350
|
+
floatMode: string;
|
|
351
|
+
drawerMode: string;
|
|
352
|
+
maximize: string;
|
|
353
|
+
restore: string;
|
|
354
|
+
history: string;
|
|
355
|
+
historyEmpty: string;
|
|
356
|
+
back: string;
|
|
357
|
+
launcher: string;
|
|
358
|
+
};
|
|
359
|
+
historyMapper: {
|
|
360
|
+
回复生成中断: string;
|
|
361
|
+
回复失败: string;
|
|
362
|
+
回复已中断: string;
|
|
363
|
+
'\u56DE\u590D\u5DF2\u4E2D\u65AD\uFF0C\u4EE5\u4E0A\u4E3A\u5DF2\u751F\u6210\u90E8\u5206': string;
|
|
364
|
+
'\u7528\u65F6 {s}': string;
|
|
365
|
+
已归档: string;
|
|
366
|
+
};
|
|
275
367
|
scroll: {
|
|
276
368
|
toBottom: string;
|
|
277
369
|
};
|
|
@@ -401,6 +493,47 @@ declare const PACKS: {
|
|
|
401
493
|
deleteTitle: string;
|
|
402
494
|
deleteConfirm: string;
|
|
403
495
|
};
|
|
496
|
+
sessionSidebar: {
|
|
497
|
+
newChat: string;
|
|
498
|
+
searchPlaceholder: string;
|
|
499
|
+
collapse: string;
|
|
500
|
+
expand: string;
|
|
501
|
+
activeTab: string;
|
|
502
|
+
archivedTab: string;
|
|
503
|
+
today: string;
|
|
504
|
+
earlier: string;
|
|
505
|
+
archived: string;
|
|
506
|
+
restore: string;
|
|
507
|
+
archive: string;
|
|
508
|
+
renamed: string;
|
|
509
|
+
deleted: string;
|
|
510
|
+
archivedDone: string;
|
|
511
|
+
restored: string;
|
|
512
|
+
operationFailed: string;
|
|
513
|
+
listLoading: string;
|
|
514
|
+
};
|
|
515
|
+
aiChatPanel: {
|
|
516
|
+
loadEarlier: string;
|
|
517
|
+
createFailed: string;
|
|
518
|
+
generateFailed: string;
|
|
519
|
+
close: string;
|
|
520
|
+
floatMode: string;
|
|
521
|
+
drawerMode: string;
|
|
522
|
+
maximize: string;
|
|
523
|
+
restore: string;
|
|
524
|
+
history: string;
|
|
525
|
+
historyEmpty: string;
|
|
526
|
+
back: string;
|
|
527
|
+
launcher: string;
|
|
528
|
+
};
|
|
529
|
+
historyMapper: {
|
|
530
|
+
回复生成中断: string;
|
|
531
|
+
回复失败: string;
|
|
532
|
+
回复已中断: string;
|
|
533
|
+
'\u56DE\u590D\u5DF2\u4E2D\u65AD\uFF0C\u4EE5\u4E0A\u4E3A\u5DF2\u751F\u6210\u90E8\u5206': string;
|
|
534
|
+
'\u7528\u65F6 {s}': string;
|
|
535
|
+
已归档: string;
|
|
536
|
+
};
|
|
404
537
|
scroll: {
|
|
405
538
|
toBottom: string;
|
|
406
539
|
};
|
|
@@ -530,6 +663,47 @@ declare const PACKS: {
|
|
|
530
663
|
deleteTitle: string;
|
|
531
664
|
deleteConfirm: string;
|
|
532
665
|
};
|
|
666
|
+
sessionSidebar: {
|
|
667
|
+
newChat: string;
|
|
668
|
+
searchPlaceholder: string;
|
|
669
|
+
collapse: string;
|
|
670
|
+
expand: string;
|
|
671
|
+
activeTab: string;
|
|
672
|
+
archivedTab: string;
|
|
673
|
+
today: string;
|
|
674
|
+
earlier: string;
|
|
675
|
+
archived: string;
|
|
676
|
+
restore: string;
|
|
677
|
+
archive: string;
|
|
678
|
+
renamed: string;
|
|
679
|
+
deleted: string;
|
|
680
|
+
archivedDone: string;
|
|
681
|
+
restored: string;
|
|
682
|
+
operationFailed: string;
|
|
683
|
+
listLoading: string;
|
|
684
|
+
};
|
|
685
|
+
aiChatPanel: {
|
|
686
|
+
loadEarlier: string;
|
|
687
|
+
createFailed: string;
|
|
688
|
+
generateFailed: string;
|
|
689
|
+
close: string;
|
|
690
|
+
floatMode: string;
|
|
691
|
+
drawerMode: string;
|
|
692
|
+
maximize: string;
|
|
693
|
+
restore: string;
|
|
694
|
+
history: string;
|
|
695
|
+
historyEmpty: string;
|
|
696
|
+
back: string;
|
|
697
|
+
launcher: string;
|
|
698
|
+
};
|
|
699
|
+
historyMapper: {
|
|
700
|
+
回复生成中断: string;
|
|
701
|
+
回复失败: string;
|
|
702
|
+
回复已中断: string;
|
|
703
|
+
'\u56DE\u590D\u5DF2\u4E2D\u65AD\uFF0C\u4EE5\u4E0A\u4E3A\u5DF2\u751F\u6210\u90E8\u5206': string;
|
|
704
|
+
'\u7528\u65F6 {s}': string;
|
|
705
|
+
已归档: string;
|
|
706
|
+
};
|
|
533
707
|
scroll: {
|
|
534
708
|
toBottom: string;
|
|
535
709
|
};
|
|
@@ -659,6 +833,47 @@ declare const PACKS: {
|
|
|
659
833
|
deleteTitle: string;
|
|
660
834
|
deleteConfirm: string;
|
|
661
835
|
};
|
|
836
|
+
sessionSidebar: {
|
|
837
|
+
newChat: string;
|
|
838
|
+
searchPlaceholder: string;
|
|
839
|
+
collapse: string;
|
|
840
|
+
expand: string;
|
|
841
|
+
activeTab: string;
|
|
842
|
+
archivedTab: string;
|
|
843
|
+
today: string;
|
|
844
|
+
earlier: string;
|
|
845
|
+
archived: string;
|
|
846
|
+
restore: string;
|
|
847
|
+
archive: string;
|
|
848
|
+
renamed: string;
|
|
849
|
+
deleted: string;
|
|
850
|
+
archivedDone: string;
|
|
851
|
+
restored: string;
|
|
852
|
+
operationFailed: string;
|
|
853
|
+
listLoading: string;
|
|
854
|
+
};
|
|
855
|
+
aiChatPanel: {
|
|
856
|
+
loadEarlier: string;
|
|
857
|
+
createFailed: string;
|
|
858
|
+
generateFailed: string;
|
|
859
|
+
close: string;
|
|
860
|
+
floatMode: string;
|
|
861
|
+
drawerMode: string;
|
|
862
|
+
maximize: string;
|
|
863
|
+
restore: string;
|
|
864
|
+
history: string;
|
|
865
|
+
historyEmpty: string;
|
|
866
|
+
back: string;
|
|
867
|
+
launcher: string;
|
|
868
|
+
};
|
|
869
|
+
historyMapper: {
|
|
870
|
+
回复生成中断: string;
|
|
871
|
+
回复失败: string;
|
|
872
|
+
回复已中断: string;
|
|
873
|
+
'\u56DE\u590D\u5DF2\u4E2D\u65AD\uFF0C\u4EE5\u4E0A\u4E3A\u5DF2\u751F\u6210\u90E8\u5206': string;
|
|
874
|
+
'\u7528\u65F6 {s}': string;
|
|
875
|
+
已归档: string;
|
|
876
|
+
};
|
|
662
877
|
scroll: {
|
|
663
878
|
toBottom: string;
|
|
664
879
|
};
|
|
@@ -788,6 +1003,47 @@ declare const PACKS: {
|
|
|
788
1003
|
deleteTitle: string;
|
|
789
1004
|
deleteConfirm: string;
|
|
790
1005
|
};
|
|
1006
|
+
sessionSidebar: {
|
|
1007
|
+
newChat: string;
|
|
1008
|
+
searchPlaceholder: string;
|
|
1009
|
+
collapse: string;
|
|
1010
|
+
expand: string;
|
|
1011
|
+
activeTab: string;
|
|
1012
|
+
archivedTab: string;
|
|
1013
|
+
today: string;
|
|
1014
|
+
earlier: string;
|
|
1015
|
+
archived: string;
|
|
1016
|
+
restore: string;
|
|
1017
|
+
archive: string;
|
|
1018
|
+
renamed: string;
|
|
1019
|
+
deleted: string;
|
|
1020
|
+
archivedDone: string;
|
|
1021
|
+
restored: string;
|
|
1022
|
+
operationFailed: string;
|
|
1023
|
+
listLoading: string;
|
|
1024
|
+
};
|
|
1025
|
+
aiChatPanel: {
|
|
1026
|
+
loadEarlier: string;
|
|
1027
|
+
createFailed: string;
|
|
1028
|
+
generateFailed: string;
|
|
1029
|
+
close: string;
|
|
1030
|
+
floatMode: string;
|
|
1031
|
+
drawerMode: string;
|
|
1032
|
+
maximize: string;
|
|
1033
|
+
restore: string;
|
|
1034
|
+
history: string;
|
|
1035
|
+
historyEmpty: string;
|
|
1036
|
+
back: string;
|
|
1037
|
+
launcher: string;
|
|
1038
|
+
};
|
|
1039
|
+
historyMapper: {
|
|
1040
|
+
回复生成中断: string;
|
|
1041
|
+
回复失败: string;
|
|
1042
|
+
回复已中断: string;
|
|
1043
|
+
'\u56DE\u590D\u5DF2\u4E2D\u65AD\uFF0C\u4EE5\u4E0A\u4E3A\u5DF2\u751F\u6210\u90E8\u5206': string;
|
|
1044
|
+
'\u7528\u65F6 {s}': string;
|
|
1045
|
+
已归档: string;
|
|
1046
|
+
};
|
|
791
1047
|
scroll: {
|
|
792
1048
|
toBottom: string;
|
|
793
1049
|
};
|
|
@@ -855,7 +1111,7 @@ type LocaleCode = keyof typeof PACKS;
|
|
|
855
1111
|
*/
|
|
856
1112
|
declare function configureLocale(locale: LocaleCode | LocaleMessages): void;
|
|
857
1113
|
|
|
858
|
-
type __VLS_Props$
|
|
1114
|
+
type __VLS_Props$n = {
|
|
859
1115
|
content: string;
|
|
860
1116
|
mdPlugins?: CreateMarkdownOptions['mdPlugins'];
|
|
861
1117
|
highlight?: (str: string, lang: string) => string;
|
|
@@ -869,14 +1125,14 @@ type __VLS_Props$h = {
|
|
|
869
1125
|
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
870
1126
|
locale?: LocaleInput;
|
|
871
1127
|
};
|
|
872
|
-
declare const __VLS_export$
|
|
1128
|
+
declare const __VLS_export$n: vue.DefineComponent<__VLS_Props$n, {
|
|
873
1129
|
getHtml: () => string;
|
|
874
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1130
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$n> & Readonly<{}>, {
|
|
875
1131
|
tableToolbar: boolean;
|
|
876
1132
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
877
|
-
declare const _default$
|
|
1133
|
+
declare const _default$n: typeof __VLS_export$n;
|
|
878
1134
|
|
|
879
|
-
type __VLS_Props$
|
|
1135
|
+
type __VLS_Props$m = {
|
|
880
1136
|
content: string;
|
|
881
1137
|
isMarkdown?: boolean;
|
|
882
1138
|
isFog?: boolean | {
|
|
@@ -899,7 +1155,7 @@ declare function interrupt$1(): void;
|
|
|
899
1155
|
declare function continueTy$1(): void;
|
|
900
1156
|
declare function restart$1(): void;
|
|
901
1157
|
declare function destroy$1(): void;
|
|
902
|
-
declare const __VLS_export$
|
|
1158
|
+
declare const __VLS_export$m: vue.DefineComponent<__VLS_Props$m, {
|
|
903
1159
|
interrupt: typeof interrupt$1;
|
|
904
1160
|
continue: typeof continueTy$1;
|
|
905
1161
|
restart: typeof restart$1;
|
|
@@ -911,7 +1167,7 @@ declare const __VLS_export$g: vue.DefineComponent<__VLS_Props$g, {
|
|
|
911
1167
|
start: () => any;
|
|
912
1168
|
finish: () => any;
|
|
913
1169
|
writing: () => any;
|
|
914
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1170
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$m> & Readonly<{
|
|
915
1171
|
onStart?: (() => any) | undefined;
|
|
916
1172
|
onFinish?: (() => any) | undefined;
|
|
917
1173
|
onWriting?: (() => any) | undefined;
|
|
@@ -927,7 +1183,7 @@ declare const __VLS_export$g: vue.DefineComponent<__VLS_Props$g, {
|
|
|
927
1183
|
suffix?: string;
|
|
928
1184
|
};
|
|
929
1185
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
930
|
-
declare const _default$
|
|
1186
|
+
declare const _default$m: typeof __VLS_export$m;
|
|
931
1187
|
|
|
932
1188
|
/** Typewriter 对外实例形态(defineExpose 经 proxyRefs 已自动解包,宽松兼容 Ref | 值) */
|
|
933
1189
|
interface TypewriterExposed {
|
|
@@ -944,7 +1200,7 @@ type TypingConfig = {
|
|
|
944
1200
|
interval?: number;
|
|
945
1201
|
suffix?: string;
|
|
946
1202
|
};
|
|
947
|
-
type __VLS_Props$
|
|
1203
|
+
type __VLS_Props$l = {
|
|
948
1204
|
/** 气泡内容 */
|
|
949
1205
|
content?: string;
|
|
950
1206
|
/** 对齐:start 靠左 / end 靠右(end 时头像随 row-reverse 翻转到右侧) */
|
|
@@ -988,7 +1244,7 @@ declare var __VLS_10$2: {};
|
|
|
988
1244
|
declare var __VLS_12$1: {};
|
|
989
1245
|
declare var __VLS_14: {};
|
|
990
1246
|
declare var __VLS_32: {};
|
|
991
|
-
type __VLS_Slots$
|
|
1247
|
+
type __VLS_Slots$i = {} & {
|
|
992
1248
|
avatar?: (props: typeof __VLS_1$9) => any;
|
|
993
1249
|
} & {
|
|
994
1250
|
header?: (props: typeof __VLS_10$2) => any;
|
|
@@ -999,7 +1255,7 @@ type __VLS_Slots$e = {} & {
|
|
|
999
1255
|
} & {
|
|
1000
1256
|
footer?: (props: typeof __VLS_32) => any;
|
|
1001
1257
|
};
|
|
1002
|
-
declare const __VLS_base$
|
|
1258
|
+
declare const __VLS_base$i: vue.DefineComponent<__VLS_Props$l, {
|
|
1003
1259
|
interrupt: typeof interrupt;
|
|
1004
1260
|
continue: typeof continueTy;
|
|
1005
1261
|
restart: typeof restart;
|
|
@@ -1029,7 +1285,7 @@ declare const __VLS_base$e: vue.DefineComponent<__VLS_Props$f, {
|
|
|
1029
1285
|
finish: () => any;
|
|
1030
1286
|
writing: () => any;
|
|
1031
1287
|
"avatar-error": (event: Event) => any;
|
|
1032
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1288
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$l> & Readonly<{
|
|
1033
1289
|
onStart?: (() => any) | undefined;
|
|
1034
1290
|
onFinish?: (() => any) | undefined;
|
|
1035
1291
|
onWriting?: (() => any) | undefined;
|
|
@@ -1056,10 +1312,10 @@ declare const __VLS_base$e: vue.DefineComponent<__VLS_Props$f, {
|
|
|
1056
1312
|
noPadding: boolean;
|
|
1057
1313
|
noStyle: boolean;
|
|
1058
1314
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1059
|
-
declare const __VLS_export$
|
|
1060
|
-
declare const _default$
|
|
1315
|
+
declare const __VLS_export$l: __VLS_WithSlots$i<typeof __VLS_base$i, __VLS_Slots$i>;
|
|
1316
|
+
declare const _default$l: typeof __VLS_export$l;
|
|
1061
1317
|
|
|
1062
|
-
type __VLS_WithSlots$
|
|
1318
|
+
type __VLS_WithSlots$i<T, S> = T & {
|
|
1063
1319
|
new (): {
|
|
1064
1320
|
$slots: S;
|
|
1065
1321
|
};
|
|
@@ -1070,7 +1326,7 @@ interface BubbleListItemProps {
|
|
|
1070
1326
|
key: string | number;
|
|
1071
1327
|
[prop: string]: unknown;
|
|
1072
1328
|
}
|
|
1073
|
-
type __VLS_Props$
|
|
1329
|
+
type __VLS_Props$k = {
|
|
1074
1330
|
/** 气泡列表 */
|
|
1075
1331
|
list: BubbleListItemProps[];
|
|
1076
1332
|
/** 滚动容器最大高度(如 '350px'/'60vh') */
|
|
@@ -1114,36 +1370,36 @@ declare var __VLS_13$1: {
|
|
|
1114
1370
|
item: BubbleListItemProps;
|
|
1115
1371
|
index: number;
|
|
1116
1372
|
};
|
|
1117
|
-
declare var __VLS_16$
|
|
1373
|
+
declare var __VLS_16$3: {
|
|
1118
1374
|
item: BubbleListItemProps;
|
|
1119
1375
|
index: number;
|
|
1120
1376
|
};
|
|
1121
|
-
declare var __VLS_19$
|
|
1377
|
+
declare var __VLS_19$4: {
|
|
1122
1378
|
item: BubbleListItemProps;
|
|
1123
1379
|
index: number;
|
|
1124
1380
|
};
|
|
1125
|
-
declare var __VLS_22$
|
|
1381
|
+
declare var __VLS_22$2: {
|
|
1126
1382
|
item: BubbleListItemProps;
|
|
1127
1383
|
index: number;
|
|
1128
1384
|
};
|
|
1129
|
-
type __VLS_Slots$
|
|
1385
|
+
type __VLS_Slots$h = {} & {
|
|
1130
1386
|
avatar?: (props: typeof __VLS_10$1) => any;
|
|
1131
1387
|
} & {
|
|
1132
1388
|
header?: (props: typeof __VLS_13$1) => any;
|
|
1133
1389
|
} & {
|
|
1134
|
-
content?: (props: typeof __VLS_16$
|
|
1390
|
+
content?: (props: typeof __VLS_16$3) => any;
|
|
1135
1391
|
} & {
|
|
1136
|
-
loading?: (props: typeof __VLS_19$
|
|
1392
|
+
loading?: (props: typeof __VLS_19$4) => any;
|
|
1137
1393
|
} & {
|
|
1138
|
-
footer?: (props: typeof __VLS_22$
|
|
1394
|
+
footer?: (props: typeof __VLS_22$2) => any;
|
|
1139
1395
|
};
|
|
1140
|
-
declare const __VLS_base$
|
|
1396
|
+
declare const __VLS_base$h: vue.DefineComponent<__VLS_Props$k, {
|
|
1141
1397
|
scrollToTop: typeof scrollToTop$1;
|
|
1142
1398
|
scrollToBottom: typeof scrollToBottom$1;
|
|
1143
1399
|
scrollToBubble: typeof scrollToBubble;
|
|
1144
1400
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
1145
1401
|
complete: (instance: unknown, index: number) => any;
|
|
1146
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1402
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$k> & Readonly<{
|
|
1147
1403
|
onComplete?: ((instance: unknown, index: number) => any) | undefined;
|
|
1148
1404
|
}>, {
|
|
1149
1405
|
locale: LocaleInput;
|
|
@@ -1161,16 +1417,16 @@ declare const __VLS_base$d: vue.DefineComponent<__VLS_Props$e, {
|
|
|
1161
1417
|
btnIconSize: number;
|
|
1162
1418
|
triggerIndices: "only-last" | "all" | number[];
|
|
1163
1419
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1164
|
-
declare const __VLS_export$
|
|
1165
|
-
declare const _default$
|
|
1420
|
+
declare const __VLS_export$k: __VLS_WithSlots$h<typeof __VLS_base$h, __VLS_Slots$h>;
|
|
1421
|
+
declare const _default$k: typeof __VLS_export$k;
|
|
1166
1422
|
|
|
1167
|
-
type __VLS_WithSlots$
|
|
1423
|
+
type __VLS_WithSlots$h<T, S> = T & {
|
|
1168
1424
|
new (): {
|
|
1169
1425
|
$slots: S;
|
|
1170
1426
|
};
|
|
1171
1427
|
};
|
|
1172
1428
|
|
|
1173
|
-
type __VLS_Props$
|
|
1429
|
+
type __VLS_Props$j = {
|
|
1174
1430
|
/** 输入值(v-model) */
|
|
1175
1431
|
modelValue?: string;
|
|
1176
1432
|
placeholder?: string;
|
|
@@ -1235,7 +1491,7 @@ declare var __VLS_52$1: {
|
|
|
1235
1491
|
declare var __VLS_54: {};
|
|
1236
1492
|
declare var __VLS_56$1: {};
|
|
1237
1493
|
declare var __VLS_134: {};
|
|
1238
|
-
type __VLS_Slots$
|
|
1494
|
+
type __VLS_Slots$g = {} & {
|
|
1239
1495
|
header?: (props: typeof __VLS_1$8) => any;
|
|
1240
1496
|
} & {
|
|
1241
1497
|
'body-top'?: (props: typeof __VLS_3$3) => any;
|
|
@@ -1250,7 +1506,7 @@ type __VLS_Slots$c = {} & {
|
|
|
1250
1506
|
} & {
|
|
1251
1507
|
footer?: (props: typeof __VLS_134) => any;
|
|
1252
1508
|
};
|
|
1253
|
-
declare const __VLS_base$
|
|
1509
|
+
declare const __VLS_base$g: vue.DefineComponent<__VLS_Props$j, {
|
|
1254
1510
|
submit: typeof submit$1;
|
|
1255
1511
|
cancel: typeof cancel$1;
|
|
1256
1512
|
clear: typeof clear$2;
|
|
@@ -1267,7 +1523,7 @@ declare const __VLS_base$c: vue.DefineComponent<__VLS_Props$d, {
|
|
|
1267
1523
|
"recording-change": (recording: boolean) => any;
|
|
1268
1524
|
"paste-file": (file: File) => any;
|
|
1269
1525
|
"update:triggerPopoverVisible": (value: boolean) => any;
|
|
1270
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1526
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$j> & Readonly<{
|
|
1271
1527
|
onCancel?: (() => any) | undefined;
|
|
1272
1528
|
onSubmit?: ((value: string) => any) | undefined;
|
|
1273
1529
|
onTrigger?: ((keyword: string, visible: boolean) => any) | undefined;
|
|
@@ -1303,10 +1559,10 @@ declare const __VLS_base$c: vue.DefineComponent<__VLS_Props$d, {
|
|
|
1303
1559
|
allowSpeech: boolean;
|
|
1304
1560
|
allowEmptySubmit: boolean;
|
|
1305
1561
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1306
|
-
declare const __VLS_export$
|
|
1307
|
-
declare const _default$
|
|
1562
|
+
declare const __VLS_export$j: __VLS_WithSlots$g<typeof __VLS_base$g, __VLS_Slots$g>;
|
|
1563
|
+
declare const _default$j: typeof __VLS_export$j;
|
|
1308
1564
|
|
|
1309
|
-
type __VLS_WithSlots$
|
|
1565
|
+
type __VLS_WithSlots$g<T, S> = T & {
|
|
1310
1566
|
new (): {
|
|
1311
1567
|
$slots: S;
|
|
1312
1568
|
};
|
|
@@ -1329,7 +1585,7 @@ interface MentionCustomTrigger {
|
|
|
1329
1585
|
pinyin?: string;
|
|
1330
1586
|
}>;
|
|
1331
1587
|
}
|
|
1332
|
-
type __VLS_Props$
|
|
1588
|
+
type __VLS_Props$i = {
|
|
1333
1589
|
/** 输入值(v-model) */
|
|
1334
1590
|
modelValue?: string;
|
|
1335
1591
|
/** @ 触发的候选用户列表 */
|
|
@@ -1355,10 +1611,10 @@ declare function setUserTag$1(userId: string): void;
|
|
|
1355
1611
|
declare function setCustomTag$1(prefix: string, id: string): void;
|
|
1356
1612
|
declare var __VLS_20$1: string;
|
|
1357
1613
|
declare var __VLS_21$3: any;
|
|
1358
|
-
type __VLS_Slots$
|
|
1614
|
+
type __VLS_Slots$f = {} & {
|
|
1359
1615
|
[K in NonNullable<typeof __VLS_20$1>]?: (props: typeof __VLS_21$3) => any;
|
|
1360
1616
|
};
|
|
1361
|
-
declare const __VLS_base$
|
|
1617
|
+
declare const __VLS_base$f: vue.DefineComponent<__VLS_Props$i, {
|
|
1362
1618
|
submit: typeof submit;
|
|
1363
1619
|
cancel: typeof cancel;
|
|
1364
1620
|
clear: typeof clear$1;
|
|
@@ -1378,7 +1634,7 @@ declare const __VLS_base$b: vue.DefineComponent<__VLS_Props$c, {
|
|
|
1378
1634
|
"paste-file": (file: File) => any;
|
|
1379
1635
|
"update:triggerPopoverVisible": (value: boolean) => any;
|
|
1380
1636
|
"show-at-dialog": (visible: boolean) => any;
|
|
1381
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1637
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$i> & Readonly<{
|
|
1382
1638
|
onCancel?: (() => any) | undefined;
|
|
1383
1639
|
onSubmit?: ((value: string) => any) | undefined;
|
|
1384
1640
|
onTrigger?: ((keyword: string, visible: boolean) => any) | undefined;
|
|
@@ -1395,10 +1651,10 @@ declare const __VLS_base$b: vue.DefineComponent<__VLS_Props$c, {
|
|
|
1395
1651
|
customTrigger: MentionCustomTrigger[];
|
|
1396
1652
|
asyncMatchFun: (search: string) => Promise<MentionUserInfo[]>;
|
|
1397
1653
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1398
|
-
declare const __VLS_export$
|
|
1399
|
-
declare const _default$
|
|
1654
|
+
declare const __VLS_export$i: __VLS_WithSlots$f<typeof __VLS_base$f, __VLS_Slots$f>;
|
|
1655
|
+
declare const _default$i: typeof __VLS_export$i;
|
|
1400
1656
|
|
|
1401
|
-
type __VLS_WithSlots$
|
|
1657
|
+
type __VLS_WithSlots$f<T, S> = T & {
|
|
1402
1658
|
new (): {
|
|
1403
1659
|
$slots: S;
|
|
1404
1660
|
};
|
|
@@ -1491,7 +1747,7 @@ type MixTag = {
|
|
|
1491
1747
|
type: 'text';
|
|
1492
1748
|
value: string;
|
|
1493
1749
|
};
|
|
1494
|
-
type __VLS_Props$
|
|
1750
|
+
type __VLS_Props$h = {
|
|
1495
1751
|
placeholder?: string;
|
|
1496
1752
|
/** 设备形态:仅影响样式(pc 默认 / h5 紧凑) */
|
|
1497
1753
|
device?: 'pc' | 'h5';
|
|
@@ -1579,23 +1835,23 @@ declare function openHeader(): void;
|
|
|
1579
1835
|
declare function closeHeader(): void;
|
|
1580
1836
|
declare var __VLS_1$7: {};
|
|
1581
1837
|
declare var __VLS_3$2: {};
|
|
1582
|
-
declare var __VLS_19$
|
|
1838
|
+
declare var __VLS_19$3: {
|
|
1583
1839
|
nodeId: string;
|
|
1584
1840
|
};
|
|
1585
1841
|
declare var __VLS_21$2: {};
|
|
1586
1842
|
declare var __VLS_80$1: {};
|
|
1587
|
-
type __VLS_Slots$
|
|
1843
|
+
type __VLS_Slots$e = {} & {
|
|
1588
1844
|
header?: (props: typeof __VLS_1$7) => any;
|
|
1589
1845
|
} & {
|
|
1590
1846
|
prefix?: (props: typeof __VLS_3$2) => any;
|
|
1591
1847
|
} & {
|
|
1592
|
-
'tag-tip'?: (props: typeof __VLS_19$
|
|
1848
|
+
'tag-tip'?: (props: typeof __VLS_19$3) => any;
|
|
1593
1849
|
} & {
|
|
1594
1850
|
'action-list'?: (props: typeof __VLS_21$2) => any;
|
|
1595
1851
|
} & {
|
|
1596
1852
|
footer?: (props: typeof __VLS_80$1) => any;
|
|
1597
1853
|
};
|
|
1598
|
-
declare const __VLS_base$
|
|
1854
|
+
declare const __VLS_base$e: vue.DefineComponent<__VLS_Props$h, {
|
|
1599
1855
|
getCurrentValue: typeof getCurrentValue;
|
|
1600
1856
|
focusToStart: typeof focusToStart;
|
|
1601
1857
|
focusToEnd: typeof placeCursorEnd;
|
|
@@ -1627,7 +1883,7 @@ declare const __VLS_base$a: vue.DefineComponent<__VLS_Props$b, {
|
|
|
1627
1883
|
"show-at-dialog": (visible: boolean) => any;
|
|
1628
1884
|
"show-select-dialog": (visible: boolean) => any;
|
|
1629
1885
|
"show-tag-dialog": (visible: boolean) => any;
|
|
1630
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1886
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$h> & Readonly<{
|
|
1631
1887
|
onCancel?: (() => any) | undefined;
|
|
1632
1888
|
onSubmit?: ((payload: SubmitResult) => any) | undefined;
|
|
1633
1889
|
onChange?: ((payload: SubmitResult) => any) | undefined;
|
|
@@ -1652,17 +1908,17 @@ declare const __VLS_base$a: vue.DefineComponent<__VLS_Props$b, {
|
|
|
1652
1908
|
headerAnimationTimer: number;
|
|
1653
1909
|
customDialog: boolean;
|
|
1654
1910
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1655
|
-
declare const __VLS_export$
|
|
1656
|
-
declare const _default$
|
|
1911
|
+
declare const __VLS_export$h: __VLS_WithSlots$e<typeof __VLS_base$e, __VLS_Slots$e>;
|
|
1912
|
+
declare const _default$h: typeof __VLS_export$h;
|
|
1657
1913
|
|
|
1658
|
-
type __VLS_WithSlots$
|
|
1914
|
+
type __VLS_WithSlots$e<T, S> = T & {
|
|
1659
1915
|
new (): {
|
|
1660
1916
|
$slots: S;
|
|
1661
1917
|
};
|
|
1662
1918
|
};
|
|
1663
1919
|
|
|
1664
1920
|
type ThinkingStatus = 'start' | 'thinking' | 'end' | 'interrupted' | 'error';
|
|
1665
|
-
type __VLS_Props$
|
|
1921
|
+
type __VLS_Props$g = {
|
|
1666
1922
|
/** 展开/收起(v-model) */
|
|
1667
1923
|
modelValue?: boolean;
|
|
1668
1924
|
/** 思考内容(#content 插槽常嵌 FvMarkdown/Typewriter 渲染思考流) */
|
|
@@ -1690,26 +1946,26 @@ type __VLS_Props$a = {
|
|
|
1690
1946
|
declare function toggle(): void;
|
|
1691
1947
|
declare var __VLS_1$6: {};
|
|
1692
1948
|
declare var __VLS_47$1: {};
|
|
1693
|
-
declare var __VLS_49$
|
|
1949
|
+
declare var __VLS_49$2: {};
|
|
1694
1950
|
declare var __VLS_62: {};
|
|
1695
1951
|
declare var __VLS_64$1: {};
|
|
1696
|
-
type __VLS_Slots$
|
|
1952
|
+
type __VLS_Slots$d = {} & {
|
|
1697
1953
|
'status-icon'?: (props: typeof __VLS_1$6) => any;
|
|
1698
1954
|
} & {
|
|
1699
1955
|
label?: (props: typeof __VLS_47$1) => any;
|
|
1700
1956
|
} & {
|
|
1701
|
-
arrow?: (props: typeof __VLS_49$
|
|
1957
|
+
arrow?: (props: typeof __VLS_49$2) => any;
|
|
1702
1958
|
} & {
|
|
1703
1959
|
error?: (props: typeof __VLS_62) => any;
|
|
1704
1960
|
} & {
|
|
1705
1961
|
content?: (props: typeof __VLS_64$1) => any;
|
|
1706
1962
|
};
|
|
1707
|
-
declare const __VLS_base$
|
|
1963
|
+
declare const __VLS_base$d: vue.DefineComponent<__VLS_Props$g, {
|
|
1708
1964
|
modelValue: vue.Ref<boolean, boolean>;
|
|
1709
1965
|
toggle: typeof toggle;
|
|
1710
1966
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
1711
1967
|
"update:modelValue": (value: boolean) => any;
|
|
1712
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1968
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$g> & Readonly<{
|
|
1713
1969
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1714
1970
|
}>, {
|
|
1715
1971
|
content: string;
|
|
@@ -1723,10 +1979,10 @@ declare const __VLS_base$9: vue.DefineComponent<__VLS_Props$a, {
|
|
|
1723
1979
|
maxWidth: string;
|
|
1724
1980
|
backgroundColor: string;
|
|
1725
1981
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1726
|
-
declare const __VLS_export$
|
|
1727
|
-
declare const _default$
|
|
1982
|
+
declare const __VLS_export$g: __VLS_WithSlots$d<typeof __VLS_base$d, __VLS_Slots$d>;
|
|
1983
|
+
declare const _default$g: typeof __VLS_export$g;
|
|
1728
1984
|
|
|
1729
|
-
type __VLS_WithSlots$
|
|
1985
|
+
type __VLS_WithSlots$d<T, S> = T & {
|
|
1730
1986
|
new (): {
|
|
1731
1987
|
$slots: S;
|
|
1732
1988
|
};
|
|
@@ -1753,7 +2009,7 @@ interface ThoughtChainItem {
|
|
|
1753
2009
|
* 该步后续不再增长;仍在打字时剩余文字直接冲刷出完(一次性回落静态) */
|
|
1754
2010
|
closed?: boolean;
|
|
1755
2011
|
}
|
|
1756
|
-
type __VLS_Props$
|
|
2012
|
+
type __VLS_Props$f = {
|
|
1757
2013
|
/** 步骤列表 */
|
|
1758
2014
|
items: ThoughtChainItem[];
|
|
1759
2015
|
/** 排列方向:vertical 纵向(带连接线)/ horizontal 横向 */
|
|
@@ -1769,12 +2025,12 @@ declare var __VLS_45: {
|
|
|
1769
2025
|
item: ThoughtChainItem;
|
|
1770
2026
|
index: number;
|
|
1771
2027
|
};
|
|
1772
|
-
type __VLS_Slots$
|
|
2028
|
+
type __VLS_Slots$c = {} & {
|
|
1773
2029
|
content?: (props: typeof __VLS_45) => any;
|
|
1774
2030
|
};
|
|
1775
|
-
declare const __VLS_base$
|
|
2031
|
+
declare const __VLS_base$c: vue.DefineComponent<__VLS_Props$f, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
1776
2032
|
typing: () => any;
|
|
1777
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
2033
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$f> & Readonly<{
|
|
1778
2034
|
onTyping?: (() => any) | undefined;
|
|
1779
2035
|
}>, {
|
|
1780
2036
|
items: ThoughtChainItem[];
|
|
@@ -1782,16 +2038,16 @@ declare const __VLS_base$8: vue.DefineComponent<__VLS_Props$9, {}, {}, {}, {}, v
|
|
|
1782
2038
|
collapsible: boolean;
|
|
1783
2039
|
showDuration: boolean;
|
|
1784
2040
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1785
|
-
declare const __VLS_export$
|
|
1786
|
-
declare const _default$
|
|
2041
|
+
declare const __VLS_export$f: __VLS_WithSlots$c<typeof __VLS_base$c, __VLS_Slots$c>;
|
|
2042
|
+
declare const _default$f: typeof __VLS_export$f;
|
|
1787
2043
|
|
|
1788
|
-
type __VLS_WithSlots$
|
|
2044
|
+
type __VLS_WithSlots$c<T, S> = T & {
|
|
1789
2045
|
new (): {
|
|
1790
2046
|
$slots: S;
|
|
1791
2047
|
};
|
|
1792
2048
|
};
|
|
1793
2049
|
|
|
1794
|
-
type __VLS_Props$
|
|
2050
|
+
type __VLS_Props$e = {
|
|
1795
2051
|
/** 图标:字符串为图片地址;也可传组件;缺省渲染内置品牌动图 */
|
|
1796
2052
|
icon?: string | Component;
|
|
1797
2053
|
/** 名称(未传回落内置问候语「你好,我是 Gizmo」) */
|
|
@@ -1804,28 +2060,28 @@ type __VLS_Props$8 = {
|
|
|
1804
2060
|
locale?: LocaleInput;
|
|
1805
2061
|
};
|
|
1806
2062
|
declare var __VLS_1$5: {};
|
|
1807
|
-
declare var __VLS_19$
|
|
2063
|
+
declare var __VLS_19$2: {};
|
|
1808
2064
|
declare var __VLS_21$1: {};
|
|
1809
2065
|
declare var __VLS_23: {};
|
|
1810
|
-
type __VLS_Slots$
|
|
2066
|
+
type __VLS_Slots$b = {} & {
|
|
1811
2067
|
icon?: (props: typeof __VLS_1$5) => any;
|
|
1812
2068
|
} & {
|
|
1813
|
-
name?: (props: typeof __VLS_19$
|
|
2069
|
+
name?: (props: typeof __VLS_19$2) => any;
|
|
1814
2070
|
} & {
|
|
1815
2071
|
description?: (props: typeof __VLS_21$1) => any;
|
|
1816
2072
|
} & {
|
|
1817
2073
|
suggestions?: (props: typeof __VLS_23) => any;
|
|
1818
2074
|
};
|
|
1819
|
-
declare const __VLS_base$
|
|
2075
|
+
declare const __VLS_base$b: vue.DefineComponent<__VLS_Props$e, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$e> & Readonly<{}>, {
|
|
1820
2076
|
description: string;
|
|
1821
2077
|
name: string;
|
|
1822
2078
|
icon: string | Component;
|
|
1823
2079
|
layout: "vertical" | "horizontal";
|
|
1824
2080
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1825
|
-
declare const __VLS_export$
|
|
1826
|
-
declare const _default$
|
|
2081
|
+
declare const __VLS_export$e: __VLS_WithSlots$b<typeof __VLS_base$b, __VLS_Slots$b>;
|
|
2082
|
+
declare const _default$e: typeof __VLS_export$e;
|
|
1827
2083
|
|
|
1828
|
-
type __VLS_WithSlots$
|
|
2084
|
+
type __VLS_WithSlots$b<T, S> = T & {
|
|
1829
2085
|
new (): {
|
|
1830
2086
|
$slots: S;
|
|
1831
2087
|
};
|
|
@@ -1838,7 +2094,7 @@ interface PromptItem {
|
|
|
1838
2094
|
icon?: string | Component;
|
|
1839
2095
|
disabled?: boolean;
|
|
1840
2096
|
}
|
|
1841
|
-
type __VLS_Props$
|
|
2097
|
+
type __VLS_Props$d = {
|
|
1842
2098
|
/** 建议 prompt 列表 */
|
|
1843
2099
|
prompts?: PromptItem[];
|
|
1844
2100
|
/** 网格标题 */
|
|
@@ -1850,28 +2106,28 @@ declare var __VLS_1$4: {
|
|
|
1850
2106
|
item: PromptItem;
|
|
1851
2107
|
index: number;
|
|
1852
2108
|
};
|
|
1853
|
-
type __VLS_Slots$
|
|
2109
|
+
type __VLS_Slots$a = {} & {
|
|
1854
2110
|
default?: (props: typeof __VLS_1$4) => any;
|
|
1855
2111
|
};
|
|
1856
|
-
declare const __VLS_base$
|
|
2112
|
+
declare const __VLS_base$a: vue.DefineComponent<__VLS_Props$d, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
1857
2113
|
select: (item: PromptItem) => any;
|
|
1858
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
2114
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$d> & Readonly<{
|
|
1859
2115
|
onSelect?: ((item: PromptItem) => any) | undefined;
|
|
1860
2116
|
}>, {
|
|
1861
2117
|
title: string;
|
|
1862
2118
|
prompts: PromptItem[];
|
|
1863
2119
|
wrap: boolean;
|
|
1864
2120
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1865
|
-
declare const __VLS_export$
|
|
1866
|
-
declare const _default$
|
|
2121
|
+
declare const __VLS_export$d: __VLS_WithSlots$a<typeof __VLS_base$a, __VLS_Slots$a>;
|
|
2122
|
+
declare const _default$d: typeof __VLS_export$d;
|
|
1867
2123
|
|
|
1868
|
-
type __VLS_WithSlots$
|
|
2124
|
+
type __VLS_WithSlots$a<T, S> = T & {
|
|
1869
2125
|
new (): {
|
|
1870
2126
|
$slots: S;
|
|
1871
2127
|
};
|
|
1872
2128
|
};
|
|
1873
2129
|
|
|
1874
|
-
type __VLS_Props$
|
|
2130
|
+
type __VLS_Props$c = {
|
|
1875
2131
|
/** 文件名 */
|
|
1876
2132
|
name: string;
|
|
1877
2133
|
/** 文件形态:image 渲染缩略图,file 渲染文档图标卡 */
|
|
@@ -1894,10 +2150,10 @@ type __VLS_Props$6 = {
|
|
|
1894
2150
|
locale?: LocaleInput;
|
|
1895
2151
|
};
|
|
1896
2152
|
declare var __VLS_1$3: {};
|
|
1897
|
-
type __VLS_Slots$
|
|
2153
|
+
type __VLS_Slots$9 = {} & {
|
|
1898
2154
|
image?: (props: typeof __VLS_1$3) => any;
|
|
1899
2155
|
};
|
|
1900
|
-
declare const __VLS_base$
|
|
2156
|
+
declare const __VLS_base$9: vue.DefineComponent<__VLS_Props$c, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$c> & Readonly<{}>, {
|
|
1901
2157
|
url: string;
|
|
1902
2158
|
name: string;
|
|
1903
2159
|
locale: LocaleInput;
|
|
@@ -1909,10 +2165,10 @@ declare const __VLS_base$5: vue.DefineComponent<__VLS_Props$6, {}, {}, {}, {}, v
|
|
|
1909
2165
|
onDelete: () => void;
|
|
1910
2166
|
onDownload: () => void;
|
|
1911
2167
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1912
|
-
declare const __VLS_export$
|
|
1913
|
-
declare const _default$
|
|
2168
|
+
declare const __VLS_export$c: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
|
|
2169
|
+
declare const _default$c: typeof __VLS_export$c;
|
|
1914
2170
|
|
|
1915
|
-
type __VLS_WithSlots$
|
|
2171
|
+
type __VLS_WithSlots$9<T, S> = T & {
|
|
1916
2172
|
new (): {
|
|
1917
2173
|
$slots: S;
|
|
1918
2174
|
};
|
|
@@ -1935,7 +2191,7 @@ interface AttachmentItem {
|
|
|
1935
2191
|
* 可重传。缺省不调(纯本地待发列表,向后兼容)
|
|
1936
2192
|
*/
|
|
1937
2193
|
type AttachmentUpload = (file: File, item: AttachmentItem) => Promise<Partial<AttachmentItem> | undefined | void> | Partial<AttachmentItem> | undefined | void;
|
|
1938
|
-
type __VLS_Props$
|
|
2194
|
+
type __VLS_Props$b = {
|
|
1939
2195
|
/** 附件列表(v-model) */
|
|
1940
2196
|
modelValue?: object[];
|
|
1941
2197
|
/** input[type=file] accept 属性,如 'image/*' */
|
|
@@ -1966,12 +2222,12 @@ declare var __VLS_21: {
|
|
|
1966
2222
|
item: object;
|
|
1967
2223
|
index: number;
|
|
1968
2224
|
};
|
|
1969
|
-
type __VLS_Slots$
|
|
2225
|
+
type __VLS_Slots$8 = {} & {
|
|
1970
2226
|
'list-item'?: (props: typeof __VLS_12) => any;
|
|
1971
2227
|
} & {
|
|
1972
2228
|
'list-thumb'?: (props: typeof __VLS_21) => any;
|
|
1973
2229
|
};
|
|
1974
|
-
declare const __VLS_base$
|
|
2230
|
+
declare const __VLS_base$8: vue.DefineComponent<__VLS_Props$b, {
|
|
1975
2231
|
openSelect: typeof openSelect;
|
|
1976
2232
|
retry: typeof retry;
|
|
1977
2233
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
@@ -1980,7 +2236,7 @@ declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$5, {
|
|
|
1980
2236
|
change: (list: object[]) => any;
|
|
1981
2237
|
exceed: (file: File) => any;
|
|
1982
2238
|
uploaded: (item: AttachmentItem, result?: Partial<AttachmentItem> | undefined) => any;
|
|
1983
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
2239
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$b> & Readonly<{
|
|
1984
2240
|
onDelete?: ((item: object) => any) | undefined;
|
|
1985
2241
|
"onUpdate:modelValue"?: ((list: object[]) => any) | undefined;
|
|
1986
2242
|
onChange?: ((list: object[]) => any) | undefined;
|
|
@@ -1997,10 +2253,10 @@ declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$5, {
|
|
|
1997
2253
|
beforeUpload: (file: File) => boolean | Promise<boolean>;
|
|
1998
2254
|
upload: AttachmentUpload;
|
|
1999
2255
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2000
|
-
declare const __VLS_export$
|
|
2001
|
-
declare const _default$
|
|
2256
|
+
declare const __VLS_export$b: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
|
|
2257
|
+
declare const _default$b: typeof __VLS_export$b;
|
|
2002
2258
|
|
|
2003
|
-
type __VLS_WithSlots$
|
|
2259
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
2004
2260
|
new (): {
|
|
2005
2261
|
$slots: S;
|
|
2006
2262
|
};
|
|
@@ -2020,7 +2276,7 @@ interface ConversationGroup {
|
|
|
2020
2276
|
}
|
|
2021
2277
|
/** 内置菜单指令 */
|
|
2022
2278
|
type MenuCommand = 'rename' | 'delete';
|
|
2023
|
-
type __VLS_Props$
|
|
2279
|
+
type __VLS_Props$a = {
|
|
2024
2280
|
/** 会话列表(按 group 字段分组,保持插入顺序) */
|
|
2025
2281
|
items: ConversationItem[];
|
|
2026
2282
|
/** 当前激活会话 key(v-model:active) */
|
|
@@ -2051,17 +2307,17 @@ declare var __VLS_3$1: {
|
|
|
2051
2307
|
item: ConversationItem;
|
|
2052
2308
|
active: boolean;
|
|
2053
2309
|
};
|
|
2054
|
-
declare var __VLS_31$
|
|
2310
|
+
declare var __VLS_31$2: {
|
|
2055
2311
|
item: ConversationItem;
|
|
2056
2312
|
};
|
|
2057
|
-
type __VLS_Slots$
|
|
2313
|
+
type __VLS_Slots$7 = {} & {
|
|
2058
2314
|
'group-title'?: (props: typeof __VLS_1$2) => any;
|
|
2059
2315
|
} & {
|
|
2060
2316
|
item?: (props: typeof __VLS_3$1) => any;
|
|
2061
2317
|
} & {
|
|
2062
|
-
menu?: (props: typeof __VLS_31$
|
|
2318
|
+
menu?: (props: typeof __VLS_31$2) => any;
|
|
2063
2319
|
};
|
|
2064
|
-
declare const __VLS_base$
|
|
2320
|
+
declare const __VLS_base$7: vue.DefineComponent<__VLS_Props$a, {
|
|
2065
2321
|
handleMenuCommand: typeof handleMenuCommand;
|
|
2066
2322
|
renamePrompt: typeof renamePrompt;
|
|
2067
2323
|
deleteConfirm: typeof deleteConfirm;
|
|
@@ -2074,7 +2330,7 @@ declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$4, {
|
|
|
2074
2330
|
value?: string;
|
|
2075
2331
|
}) => any;
|
|
2076
2332
|
"load-more": () => any;
|
|
2077
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
2333
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$a> & Readonly<{
|
|
2078
2334
|
onChange?: ((item: ConversationItem) => any) | undefined;
|
|
2079
2335
|
"onUpdate:active"?: ((key: string | number) => any) | undefined;
|
|
2080
2336
|
"onMenu-command"?: ((cmd: {
|
|
@@ -2092,15 +2348,61 @@ declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$4, {
|
|
|
2092
2348
|
groupable: (a: ConversationGroup, b: ConversationGroup) => number;
|
|
2093
2349
|
hasMore: boolean;
|
|
2094
2350
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2095
|
-
declare const __VLS_export$
|
|
2096
|
-
declare const _default$
|
|
2351
|
+
declare const __VLS_export$a: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
|
|
2352
|
+
declare const _default$a: typeof __VLS_export$a;
|
|
2097
2353
|
|
|
2098
|
-
type __VLS_WithSlots$
|
|
2354
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
2099
2355
|
new (): {
|
|
2100
2356
|
$slots: S;
|
|
2101
2357
|
};
|
|
2102
2358
|
};
|
|
2103
2359
|
|
|
2360
|
+
/** 色板槽位项:色值字符串(透明度走全局 props)或对象(可按色覆盖透明度/渐变/缩放) */
|
|
2361
|
+
interface FvBlobHaloColor {
|
|
2362
|
+
/** 色值(CSS 任意色:变量/16 进制/rgba;缺省保留默认色,纯调 scale/透明度时可省) */
|
|
2363
|
+
color?: string;
|
|
2364
|
+
/** 本色正体透明度(缺省回落全局 opacity) */
|
|
2365
|
+
opacity?: number;
|
|
2366
|
+
/** 本色 alt 淡体透明度(缺省回落全局 altOpacity) */
|
|
2367
|
+
altOpacity?: number;
|
|
2368
|
+
/**
|
|
2369
|
+
* 高光渐变中带(半径 50% 处)色浓,0~1:小 = 更快向外淡出(缺省 .45)。
|
|
2370
|
+
* 仅第 4 槽位(高光位)消费;其余槽位彩团平涂不受影响
|
|
2371
|
+
*/
|
|
2372
|
+
mid?: number;
|
|
2373
|
+
/** 本色团缩放(0~1+,缺省回落槽位内置:1/2/3 槽 .8/.78/.76、高光位 .62) */
|
|
2374
|
+
scale?: number;
|
|
2375
|
+
}
|
|
2376
|
+
type __VLS_Props$9 = {
|
|
2377
|
+
/**
|
|
2378
|
+
* 色团色板(每色一组正体 + alt 淡体):槽位传色值字符串或
|
|
2379
|
+
* { color, opacity?, altOpacity? } 对象;null/undefined 保留默认色
|
|
2380
|
+
*/
|
|
2381
|
+
colors?: (string | FvBlobHaloColor | null | undefined)[];
|
|
2382
|
+
/** 光晕尺寸(px,正圆直径;内容 svg 撑满) */
|
|
2383
|
+
size?: number;
|
|
2384
|
+
/** 光晕相对挂载点放大倍率(>1 越出挂载盒,需使用方 overflow visible) */
|
|
2385
|
+
scale?: number;
|
|
2386
|
+
/** 正体透明度(0~1;被 colors 槽位对象 opacity 覆盖) */
|
|
2387
|
+
opacity?: number;
|
|
2388
|
+
/** alt 淡体透明度(0~1;被 colors 槽位对象 altOpacity 覆盖) */
|
|
2389
|
+
altOpacity?: number;
|
|
2390
|
+
/** 旋转一周时长(s;0 停转只保留变形蠕动) */
|
|
2391
|
+
rotateDuration?: number;
|
|
2392
|
+
/** 暂停全部动画(静帧装饰) */
|
|
2393
|
+
paused?: boolean;
|
|
2394
|
+
};
|
|
2395
|
+
declare const __VLS_export$9: vue.DefineComponent<__VLS_Props$9, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$9> & Readonly<{}>, {
|
|
2396
|
+
size: number;
|
|
2397
|
+
paused: boolean;
|
|
2398
|
+
colors: (string | FvBlobHaloColor | null | undefined)[];
|
|
2399
|
+
scale: number;
|
|
2400
|
+
opacity: number;
|
|
2401
|
+
altOpacity: number;
|
|
2402
|
+
rotateDuration: number;
|
|
2403
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2404
|
+
declare const _default$9: typeof __VLS_export$9;
|
|
2405
|
+
|
|
2104
2406
|
/**
|
|
2105
2407
|
* adapter 层透传的附件描述(结构兼容 types.ChatFile:消费方 ChatFile[] 可直传)。
|
|
2106
2408
|
* 先传后发架构下 id 即消费方上传端点返回的附件标识,由 adapter 拼进 send 入参
|
|
@@ -2526,7 +2828,7 @@ interface AiMessageBranchInfo {
|
|
|
2526
2828
|
/** 当前分支序号(1 起) */
|
|
2527
2829
|
index: number;
|
|
2528
2830
|
}
|
|
2529
|
-
type __VLS_Props$
|
|
2831
|
+
type __VLS_Props$8 = {
|
|
2530
2832
|
/** 消息节点(树节点代理,流式期间 content/reasoning 增长驱动更新) */
|
|
2531
2833
|
message: MessageNode;
|
|
2532
2834
|
/** 同层分支元数据;缺省视为单分支(不渲染切换器) */
|
|
@@ -2612,7 +2914,7 @@ declare var __VLS_1$1: {
|
|
|
2612
2914
|
message: MessageNode;
|
|
2613
2915
|
};
|
|
2614
2916
|
declare var __VLS_3: {};
|
|
2615
|
-
declare var __VLS_16$
|
|
2917
|
+
declare var __VLS_16$2: {
|
|
2616
2918
|
status: "thinking" | "error" | "done";
|
|
2617
2919
|
message: MessageNode;
|
|
2618
2920
|
};
|
|
@@ -2622,29 +2924,29 @@ declare var __VLS_18: {
|
|
|
2622
2924
|
declare var __VLS_20: {
|
|
2623
2925
|
message: MessageNode;
|
|
2624
2926
|
};
|
|
2625
|
-
declare var __VLS_22: {
|
|
2927
|
+
declare var __VLS_22$1: {
|
|
2626
2928
|
message: MessageNode;
|
|
2627
2929
|
files: ChatFile[];
|
|
2628
2930
|
};
|
|
2629
2931
|
declare var __VLS_80: {
|
|
2630
2932
|
message: MessageNode;
|
|
2631
2933
|
};
|
|
2632
|
-
type __VLS_Slots$
|
|
2934
|
+
type __VLS_Slots$6 = {} & {
|
|
2633
2935
|
'message-avatar'?: (props: typeof __VLS_1$1) => any;
|
|
2634
2936
|
} & {
|
|
2635
2937
|
'user-avatar'?: (props: typeof __VLS_3) => any;
|
|
2636
2938
|
} & {
|
|
2637
|
-
'assistant-avatar'?: (props: typeof __VLS_16$
|
|
2939
|
+
'assistant-avatar'?: (props: typeof __VLS_16$2) => any;
|
|
2638
2940
|
} & {
|
|
2639
2941
|
'user-name'?: (props: typeof __VLS_18) => any;
|
|
2640
2942
|
} & {
|
|
2641
2943
|
'assistant-name'?: (props: typeof __VLS_20) => any;
|
|
2642
2944
|
} & {
|
|
2643
|
-
'message-files'?: (props: typeof __VLS_22) => any;
|
|
2945
|
+
'message-files'?: (props: typeof __VLS_22$1) => any;
|
|
2644
2946
|
} & {
|
|
2645
2947
|
'message-actions'?: (props: typeof __VLS_80) => any;
|
|
2646
2948
|
};
|
|
2647
|
-
declare const __VLS_base$
|
|
2949
|
+
declare const __VLS_base$6: vue.DefineComponent<__VLS_Props$8, {
|
|
2648
2950
|
message: vue.ComputedRef<MessageNode>;
|
|
2649
2951
|
expandThoughtChain: typeof expandThoughtChain;
|
|
2650
2952
|
collapseThoughtChain: typeof collapseThoughtChain;
|
|
@@ -2657,7 +2959,7 @@ declare const __VLS_base$2: vue.DefineComponent<__VLS_Props$3, {
|
|
|
2657
2959
|
"file-click": (file: ChatFile, message: MessageNode) => any;
|
|
2658
2960
|
"feedback-change": (message: MessageNode, action: "LIKE" | "DISLIKE" | "CLEAR") => any;
|
|
2659
2961
|
"feedback-error": (message: string) => any;
|
|
2660
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
2962
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$8> & Readonly<{
|
|
2661
2963
|
onCopy?: ((message: MessageNode) => any) | undefined;
|
|
2662
2964
|
onRegenerate?: ((message: MessageNode) => any) | undefined;
|
|
2663
2965
|
onTyping?: (() => any) | undefined;
|
|
@@ -2694,10 +2996,10 @@ declare const __VLS_base$2: vue.DefineComponent<__VLS_Props$3, {
|
|
|
2694
2996
|
resolveFileUrl: (file: ChatFile) => Promise<string> | string;
|
|
2695
2997
|
feedbackHandler: FeedbackHandler;
|
|
2696
2998
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2697
|
-
declare const __VLS_export$
|
|
2698
|
-
declare const _default$
|
|
2999
|
+
declare const __VLS_export$8: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
|
|
3000
|
+
declare const _default$8: typeof __VLS_export$8;
|
|
2699
3001
|
|
|
2700
|
-
type __VLS_WithSlots$
|
|
3002
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
2701
3003
|
new (): {
|
|
2702
3004
|
$slots: S;
|
|
2703
3005
|
};
|
|
@@ -2711,7 +3013,7 @@ interface AiMessagesSuggestion {
|
|
|
2711
3013
|
icon?: string | Component;
|
|
2712
3014
|
disabled?: boolean;
|
|
2713
3015
|
}
|
|
2714
|
-
type __VLS_Props$
|
|
3016
|
+
type __VLS_Props$7 = {
|
|
2715
3017
|
/** 当前链消息(根 → 焦点,时间正序) */
|
|
2716
3018
|
messages: MessageNode[];
|
|
2717
3019
|
/** 全量节点表(分支计算需查父节点 childrenIds) */
|
|
@@ -2728,6 +3030,8 @@ type __VLS_Props$2 = {
|
|
|
2728
3030
|
suggestionsTitle?: string;
|
|
2729
3031
|
/** 空态建议换行模式(默认 true 自动换行;false 不换行,超出横向滚动) */
|
|
2730
3032
|
suggestionsWrap?: boolean;
|
|
3033
|
+
/** 空态欢迎页布局(透传 Welcome layout):horizontal 横排(默认)/ vertical 纵排(窄宽悬浮形态) */
|
|
3034
|
+
welcomeLayout?: 'horizontal' | 'vertical';
|
|
2731
3035
|
/** 用户上滚免打扰阈值(px):距底不超过该值视为「钉在底部」,流式/完成自动跟随 */
|
|
2732
3036
|
scrollThreshold?: number;
|
|
2733
3037
|
/** 显示滚到底部悬浮按钮 */
|
|
@@ -2810,8 +3114,8 @@ declare function collapseThoughtChains$1(): void;
|
|
|
2810
3114
|
declare var __VLS_1: {};
|
|
2811
3115
|
declare var __VLS_10: {};
|
|
2812
3116
|
declare var __VLS_13: {};
|
|
2813
|
-
declare var __VLS_16: {};
|
|
2814
|
-
declare var __VLS_19: {};
|
|
3117
|
+
declare var __VLS_16$1: {};
|
|
3118
|
+
declare var __VLS_19$1: {};
|
|
2815
3119
|
declare var __VLS_44: {
|
|
2816
3120
|
message: MessageNode;
|
|
2817
3121
|
};
|
|
@@ -2834,16 +3138,16 @@ declare var __VLS_67$1: {
|
|
|
2834
3138
|
awayFromBottom: boolean;
|
|
2835
3139
|
};
|
|
2836
3140
|
declare var __VLS_83: {};
|
|
2837
|
-
type __VLS_Slots$
|
|
3141
|
+
type __VLS_Slots$5 = {} & {
|
|
2838
3142
|
empty?: (props: typeof __VLS_1) => any;
|
|
2839
3143
|
} & {
|
|
2840
3144
|
'welcome-name'?: (props: typeof __VLS_10) => any;
|
|
2841
3145
|
} & {
|
|
2842
3146
|
'welcome-description'?: (props: typeof __VLS_13) => any;
|
|
2843
3147
|
} & {
|
|
2844
|
-
'welcome-icon'?: (props: typeof __VLS_16) => any;
|
|
3148
|
+
'welcome-icon'?: (props: typeof __VLS_16$1) => any;
|
|
2845
3149
|
} & {
|
|
2846
|
-
'welcome-suggestions'?: (props: typeof __VLS_19) => any;
|
|
3150
|
+
'welcome-suggestions'?: (props: typeof __VLS_19$1) => any;
|
|
2847
3151
|
} & {
|
|
2848
3152
|
'message-avatar'?: (props: typeof __VLS_44) => any;
|
|
2849
3153
|
} & {
|
|
@@ -2861,7 +3165,7 @@ type __VLS_Slots$1 = {} & {
|
|
|
2861
3165
|
} & {
|
|
2862
3166
|
'scroll-button-icon'?: (props: typeof __VLS_83) => any;
|
|
2863
3167
|
};
|
|
2864
|
-
declare const __VLS_base$
|
|
3168
|
+
declare const __VLS_base$5: vue.DefineComponent<__VLS_Props$7, {
|
|
2865
3169
|
scrollTo: typeof scrollTo$1;
|
|
2866
3170
|
scrollToBottom: typeof scrollToBottom;
|
|
2867
3171
|
scrollToTop: typeof scrollToTop;
|
|
@@ -2877,7 +3181,7 @@ declare const __VLS_base$1: vue.DefineComponent<__VLS_Props$2, {
|
|
|
2877
3181
|
"feedback-change": (message: MessageNode, action: "LIKE" | "DISLIKE" | "CLEAR") => any;
|
|
2878
3182
|
"feedback-error": (message: string) => any;
|
|
2879
3183
|
"message-file-click": (file: ChatFile, message: MessageNode) => any;
|
|
2880
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
3184
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$7> & Readonly<{
|
|
2881
3185
|
onScroll?: ((event: Event) => any) | undefined;
|
|
2882
3186
|
onCopy?: ((message: MessageNode) => any) | undefined;
|
|
2883
3187
|
onRegenerate?: ((message: MessageNode) => any) | undefined;
|
|
@@ -2919,14 +3223,15 @@ declare const __VLS_base$1: vue.DefineComponent<__VLS_Props$2, {
|
|
|
2919
3223
|
feedbackHandler: FeedbackHandler;
|
|
2920
3224
|
suggestionsTitle: string;
|
|
2921
3225
|
suggestionsWrap: boolean;
|
|
3226
|
+
welcomeLayout: "horizontal" | "vertical";
|
|
2922
3227
|
scrollThreshold: number;
|
|
2923
3228
|
showScrollButton: boolean;
|
|
2924
3229
|
scrollButtonThreshold: number;
|
|
2925
3230
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2926
|
-
declare const __VLS_export$
|
|
2927
|
-
declare const _default$
|
|
3231
|
+
declare const __VLS_export$7: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
3232
|
+
declare const _default$7: typeof __VLS_export$7;
|
|
2928
3233
|
|
|
2929
|
-
type __VLS_WithSlots$
|
|
3234
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
2930
3235
|
new (): {
|
|
2931
3236
|
$slots: S;
|
|
2932
3237
|
};
|
|
@@ -2956,7 +3261,7 @@ interface AiChatFeatures {
|
|
|
2956
3261
|
continueGenerate?: boolean;
|
|
2957
3262
|
fullscreenEditor?: boolean;
|
|
2958
3263
|
}
|
|
2959
|
-
type __VLS_Props$
|
|
3264
|
+
type __VLS_Props$6 = {
|
|
2960
3265
|
/** 默认模型(顶栏单选展示;未传 models 时作为单模型) */
|
|
2961
3266
|
model?: string;
|
|
2962
3267
|
/** 可选模型列表(multiple 选择器) */
|
|
@@ -3037,6 +3342,8 @@ type __VLS_Props$1 = {
|
|
|
3037
3342
|
suggestions?: AiChatSuggestion[];
|
|
3038
3343
|
/** 空态建议换行模式(透传 AiMessages→Prompts;默认 true 自动换行,false 不换行横向滚动) */
|
|
3039
3344
|
suggestionsWrap?: boolean;
|
|
3345
|
+
/** 空态欢迎页布局(透传 AiMessages→Welcome):horizontal 横排(默认)/ vertical 纵排(悬浮窗等窄宽场景) */
|
|
3346
|
+
welcomeLayout?: 'horizontal' | 'vertical';
|
|
3040
3347
|
/**
|
|
3041
3348
|
* 追问建议展示样式(透传 AiMessages→AiMessage;默认 'list' 纵向列表一行一条,
|
|
3042
3349
|
* 回答操作区下方带分隔线与加粗「追问」标题(字号/颜色随正文),历史消息同样渲染;
|
|
@@ -3100,24 +3407,24 @@ declare function expandThoughtChains(): void;
|
|
|
3100
3407
|
declare function collapseThoughtChains(): void;
|
|
3101
3408
|
/** 消息区滚动到指定位置(透传 AiMessages scrollTo;options 同原生 ScrollToOptions) */
|
|
3102
3409
|
declare function scrollTo(options: ScrollToOptions | number): void;
|
|
3103
|
-
declare var __VLS_31: {
|
|
3410
|
+
declare var __VLS_31$1: {
|
|
3104
3411
|
message: MessageNode;
|
|
3105
3412
|
};
|
|
3106
|
-
declare var __VLS_34: {
|
|
3413
|
+
declare var __VLS_34$1: {
|
|
3107
3414
|
message: MessageNode;
|
|
3108
3415
|
};
|
|
3109
|
-
declare var __VLS_37: {};
|
|
3110
|
-
declare var __VLS_40: {
|
|
3416
|
+
declare var __VLS_37$1: {};
|
|
3417
|
+
declare var __VLS_40$1: {
|
|
3111
3418
|
status: "thinking" | "error" | "done";
|
|
3112
3419
|
message: MessageNode;
|
|
3113
3420
|
};
|
|
3114
|
-
declare var __VLS_43: {
|
|
3421
|
+
declare var __VLS_43$1: {
|
|
3115
3422
|
message: MessageNode;
|
|
3116
3423
|
};
|
|
3117
|
-
declare var __VLS_46: {
|
|
3424
|
+
declare var __VLS_46$1: {
|
|
3118
3425
|
message: MessageNode;
|
|
3119
3426
|
};
|
|
3120
|
-
declare var __VLS_49: {};
|
|
3427
|
+
declare var __VLS_49$1: {};
|
|
3121
3428
|
declare var __VLS_52: {};
|
|
3122
3429
|
declare var __VLS_55: {};
|
|
3123
3430
|
declare var __VLS_58: {};
|
|
@@ -3128,20 +3435,20 @@ declare var __VLS_64: {
|
|
|
3128
3435
|
};
|
|
3129
3436
|
declare var __VLS_67: {};
|
|
3130
3437
|
declare var __VLS_105: {};
|
|
3131
|
-
type __VLS_Slots = {} & {
|
|
3132
|
-
'message-avatar'?: (props: typeof __VLS_31) => any;
|
|
3438
|
+
type __VLS_Slots$4 = {} & {
|
|
3439
|
+
'message-avatar'?: (props: typeof __VLS_31$1) => any;
|
|
3133
3440
|
} & {
|
|
3134
|
-
'message-actions'?: (props: typeof __VLS_34) => any;
|
|
3441
|
+
'message-actions'?: (props: typeof __VLS_34$1) => any;
|
|
3135
3442
|
} & {
|
|
3136
|
-
'user-avatar'?: (props: typeof __VLS_37) => any;
|
|
3443
|
+
'user-avatar'?: (props: typeof __VLS_37$1) => any;
|
|
3137
3444
|
} & {
|
|
3138
|
-
'assistant-avatar'?: (props: typeof __VLS_40) => any;
|
|
3445
|
+
'assistant-avatar'?: (props: typeof __VLS_40$1) => any;
|
|
3139
3446
|
} & {
|
|
3140
|
-
'user-name'?: (props: typeof __VLS_43) => any;
|
|
3447
|
+
'user-name'?: (props: typeof __VLS_43$1) => any;
|
|
3141
3448
|
} & {
|
|
3142
|
-
'assistant-name'?: (props: typeof __VLS_46) => any;
|
|
3449
|
+
'assistant-name'?: (props: typeof __VLS_46$1) => any;
|
|
3143
3450
|
} & {
|
|
3144
|
-
empty?: (props: typeof __VLS_49) => any;
|
|
3451
|
+
empty?: (props: typeof __VLS_49$1) => any;
|
|
3145
3452
|
} & {
|
|
3146
3453
|
'welcome-name'?: (props: typeof __VLS_52) => any;
|
|
3147
3454
|
} & {
|
|
@@ -3157,7 +3464,7 @@ type __VLS_Slots = {} & {
|
|
|
3157
3464
|
} & {
|
|
3158
3465
|
'sender-prefix'?: (props: typeof __VLS_105) => any;
|
|
3159
3466
|
};
|
|
3160
|
-
declare const __VLS_base: vue.DefineComponent<__VLS_Props$
|
|
3467
|
+
declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$6, {
|
|
3161
3468
|
sendMessage: typeof sendMessage;
|
|
3162
3469
|
stop: typeof stop;
|
|
3163
3470
|
regenerate: typeof regenerate;
|
|
@@ -3190,7 +3497,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props$1, {
|
|
|
3190
3497
|
toolName: string;
|
|
3191
3498
|
status: "start" | "done";
|
|
3192
3499
|
}) => any;
|
|
3193
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
3500
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$6> & Readonly<{
|
|
3194
3501
|
onScroll?: ((event: Event) => any) | undefined;
|
|
3195
3502
|
onSend?: ((text: string, files?: ChatFile[] | undefined) => any) | undefined;
|
|
3196
3503
|
onError?: ((err: Error, message?: MessageNode | undefined) => any) | undefined;
|
|
@@ -3245,6 +3552,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props$1, {
|
|
|
3245
3552
|
feedbackHandler: FeedbackHandler;
|
|
3246
3553
|
showHeader: boolean;
|
|
3247
3554
|
suggestionsWrap: boolean;
|
|
3555
|
+
welcomeLayout: "horizontal" | "vertical";
|
|
3248
3556
|
scrollThreshold: number;
|
|
3249
3557
|
showScrollButton: boolean;
|
|
3250
3558
|
scrollButtonThreshold: number;
|
|
@@ -3263,10 +3571,10 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props$1, {
|
|
|
3263
3571
|
uploadAttachment: (file: File, item: AttachmentItem) => Promise<Partial<AttachmentItem> | string | undefined | void> | Partial<AttachmentItem> | string | undefined | void;
|
|
3264
3572
|
theme: "light" | "dark" | "auto";
|
|
3265
3573
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
3266
|
-
declare const __VLS_export$
|
|
3267
|
-
declare const _default$
|
|
3574
|
+
declare const __VLS_export$6: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
3575
|
+
declare const _default$6: typeof __VLS_export$6;
|
|
3268
3576
|
|
|
3269
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
3577
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
3270
3578
|
new (): {
|
|
3271
3579
|
$slots: S;
|
|
3272
3580
|
};
|
|
@@ -3283,7 +3591,7 @@ interface AiArtifactItem {
|
|
|
3283
3591
|
/** 展示标题(缺省回退 key) */
|
|
3284
3592
|
title?: string;
|
|
3285
3593
|
}
|
|
3286
|
-
type __VLS_Props = {
|
|
3594
|
+
type __VLS_Props$5 = {
|
|
3287
3595
|
/** artifact 列表(从消息 ```html / ```svg 代码块提取组装) */
|
|
3288
3596
|
artifacts: AiArtifactItem[];
|
|
3289
3597
|
/** 当前展示的 artifact key;为空时面板隐藏 */
|
|
@@ -3297,16 +3605,16 @@ type __VLS_Props = {
|
|
|
3297
3605
|
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
3298
3606
|
locale?: LocaleInput;
|
|
3299
3607
|
};
|
|
3300
|
-
declare function open(key: string): void;
|
|
3301
|
-
declare function close(): void;
|
|
3302
|
-
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
|
|
3303
|
-
open: typeof open;
|
|
3304
|
-
close: typeof close;
|
|
3608
|
+
declare function open$1(key: string): void;
|
|
3609
|
+
declare function close$1(): void;
|
|
3610
|
+
declare const __VLS_export$5: vue.DefineComponent<__VLS_Props$5, {
|
|
3611
|
+
open: typeof open$1;
|
|
3612
|
+
close: typeof close$1;
|
|
3305
3613
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
3306
3614
|
close: () => any;
|
|
3307
3615
|
change: (key: string) => any;
|
|
3308
3616
|
navigate: (href: string) => any;
|
|
3309
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
3617
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$5> & Readonly<{
|
|
3310
3618
|
onClose?: (() => any) | undefined;
|
|
3311
3619
|
onChange?: ((key: string) => any) | undefined;
|
|
3312
3620
|
onNavigate?: ((href: string) => any) | undefined;
|
|
@@ -3317,49 +3625,675 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
|
|
|
3317
3625
|
activeKey: string;
|
|
3318
3626
|
minWidth: string;
|
|
3319
3627
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
3320
|
-
declare const _default: typeof __VLS_export;
|
|
3628
|
+
declare const _default$5: typeof __VLS_export$5;
|
|
3321
3629
|
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3630
|
+
/**
|
|
3631
|
+
* 草稿会话哨兵:进入模块/新建/删除当前会话即切草稿态,不调 service.create;
|
|
3632
|
+
* 首条消息发出时由 FvAiChatPanel 的懒创建包装 adapter 调 service.create 后
|
|
3633
|
+
* 上抛 session-created 换真实 id(与参考项目宿主侧哨兵同值,迁移零成本)。
|
|
3634
|
+
*/
|
|
3635
|
+
declare const DRAFT_SESSION_ID = "__draft__";
|
|
3636
|
+
/** 会话列表查询(分页 + 状态筛选 + 关键字,正交同传) */
|
|
3637
|
+
interface FvAiSessionListQuery {
|
|
3638
|
+
pageNum: number;
|
|
3639
|
+
pageSize: number;
|
|
3640
|
+
status?: 'ACTIVE' | 'ARCHIVED';
|
|
3641
|
+
keyword?: string;
|
|
3331
3642
|
}
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
/** 请求地址 */
|
|
3337
|
-
url: string;
|
|
3338
|
-
/** 请求方法,默认 POST */
|
|
3339
|
-
method?: string;
|
|
3340
|
-
/** 请求头 */
|
|
3341
|
-
headers?: Record<string, string>;
|
|
3342
|
-
/** 请求体对象(内部 JSON.stringify) */
|
|
3343
|
-
body?: object;
|
|
3344
|
-
/** 可选转换流,接在 TextDecoderStream 之后(如协议转换) */
|
|
3345
|
-
transformStream?: TransformStream<any, any>;
|
|
3346
|
-
/** 全部 SSE 事件透传(含 event 名;tool/message_start 等非 content 事件不再被吞) */
|
|
3347
|
-
onEvent?: (ev: SSEEvent) => void;
|
|
3348
|
-
/** 内容分片回调:SSE data 为 JSON 且含字符串 content 时逐块触发 */
|
|
3349
|
-
onChunk?: (text: string) => void;
|
|
3643
|
+
/** 列表页归一化形状(宿主 IPage 格式由胶水转换) */
|
|
3644
|
+
interface FvAiSessionPage {
|
|
3645
|
+
items: FvCommonSessionItem[];
|
|
3646
|
+
hasMore: boolean;
|
|
3350
3647
|
}
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
abort: () => void;
|
|
3356
|
-
loading: Ref<boolean>;
|
|
3357
|
-
error: Ref<Error | null>;
|
|
3648
|
+
/** 加载更早消息页归一化形状 */
|
|
3649
|
+
interface FvAiMessagePage {
|
|
3650
|
+
messages: FvCommonMessage[];
|
|
3651
|
+
hasMore: boolean;
|
|
3358
3652
|
}
|
|
3359
|
-
declare function useSend(): UseSendReturn;
|
|
3360
3653
|
/**
|
|
3361
|
-
*
|
|
3362
|
-
*
|
|
3654
|
+
* AI 会话数据服务接口:宿主实现后经 prop 注入 FvAiSessionSidebar/FvAiChatPanel/
|
|
3655
|
+
* FvAiChatWidget。库内不内置网络实现;错误提示(toast)由宿主胶水层统一承担,
|
|
3656
|
+
* 库对 service 失败静默(侧栏)/空态重建(面板)。
|
|
3657
|
+
*/
|
|
3658
|
+
interface FvAiSessionService {
|
|
3659
|
+
/** 会话列表(分页,updatedTime DESC) */
|
|
3660
|
+
list(q: FvAiSessionListQuery): Promise<FvAiSessionPage>;
|
|
3661
|
+
/** 新建会话,返回新会话 id */
|
|
3662
|
+
create(): Promise<string>;
|
|
3663
|
+
/** 会话详情消息(尾部 limit 条,seq 升序) */
|
|
3664
|
+
detail(sessionId: string, limit?: number): Promise<FvCommonMessage[]>;
|
|
3665
|
+
/** 加载更早消息(beforeSeq 游标) */
|
|
3666
|
+
history(sessionId: string, beforeSeq: number, limit?: number): Promise<FvAiMessagePage>;
|
|
3667
|
+
/** 重命名 */
|
|
3668
|
+
rename(args: {
|
|
3669
|
+
sessionId: string;
|
|
3670
|
+
title: string;
|
|
3671
|
+
}): Promise<void>;
|
|
3672
|
+
/** 删除 */
|
|
3673
|
+
remove(sessionId: string): Promise<void>;
|
|
3674
|
+
/** 归档/恢复(可选;未实现时侧栏隐藏归档 tab 与菜单项) */
|
|
3675
|
+
archive?(args: {
|
|
3676
|
+
sessionId: string;
|
|
3677
|
+
archived: boolean;
|
|
3678
|
+
}): Promise<void>;
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
interface __VLS_ConversationItem {
|
|
3682
|
+
key: string | number;
|
|
3683
|
+
label: string;
|
|
3684
|
+
group?: string;
|
|
3685
|
+
disabled?: boolean;
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
type __VLS_Props$4 = {
|
|
3689
|
+
/** 会话数据服务(宿主注入;archive 可选,未实现时隐藏归档 tab 与菜单项) */
|
|
3690
|
+
service: FvAiSessionService;
|
|
3691
|
+
/** 当前会话 id(草稿哨兵或真实 id) */
|
|
3692
|
+
activeId: string;
|
|
3693
|
+
/** 列表分页大小 */
|
|
3694
|
+
pageSize?: number;
|
|
3695
|
+
/** 显示搜索框(默认 true) */
|
|
3696
|
+
searchable?: boolean;
|
|
3697
|
+
/** 品牌名称(默认 'Gizmo') */
|
|
3698
|
+
brandName?: string;
|
|
3699
|
+
/** 品牌徽章图片 URL(空时渲染渐变底圆形占位) */
|
|
3700
|
+
brandIcon?: string;
|
|
3701
|
+
/** 收起态(v-model:collapsed;默认 false 展开) */
|
|
3702
|
+
collapsed?: boolean;
|
|
3703
|
+
/** 语言配置:内置语言名(如 'en-US')或部分文案对象(深合并覆盖) */
|
|
3704
|
+
locale?: LocaleInput;
|
|
3705
|
+
};
|
|
3706
|
+
|
|
3707
|
+
declare var __VLS_brand: {};
|
|
3708
|
+
declare var __VLS_newChat: {};
|
|
3709
|
+
declare var __VLS_menu: {
|
|
3710
|
+
item: __VLS_ConversationItem;
|
|
3711
|
+
};
|
|
3712
|
+
declare var __VLS_item: {
|
|
3713
|
+
item: __VLS_ConversationItem;
|
|
3714
|
+
active: boolean;
|
|
3715
|
+
};
|
|
3716
|
+
|
|
3717
|
+
type __VLS_Slots$3 = {} & {
|
|
3718
|
+
brand?: (props: typeof __VLS_brand) => any;
|
|
3719
|
+
} & {
|
|
3720
|
+
'new-chat'?: (props: typeof __VLS_newChat) => any;
|
|
3721
|
+
} & {
|
|
3722
|
+
menu?: (props: typeof __VLS_menu) => any;
|
|
3723
|
+
} & {
|
|
3724
|
+
item?: (props: typeof __VLS_item) => any;
|
|
3725
|
+
};
|
|
3726
|
+
|
|
3727
|
+
declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$4, {
|
|
3728
|
+
refresh: () => Promise<void>;
|
|
3729
|
+
reload: () => Promise<void>;
|
|
3730
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
3731
|
+
'update:collapsed': (collapsed: boolean) => any;
|
|
3732
|
+
select: (sessionId: string, status?: 'ACTIVE' | 'ARCHIVED') => any;
|
|
3733
|
+
'new-chat': () => any;
|
|
3734
|
+
removed: (sessionId: string) => any;
|
|
3735
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$4> & Readonly<{
|
|
3736
|
+
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
|
3737
|
+
onSelect?: ((sessionId: string, status?: 'ACTIVE' | 'ARCHIVED') => any) | undefined;
|
|
3738
|
+
"onNew-chat"?: (() => any) | undefined;
|
|
3739
|
+
onRemoved?: ((sessionId: string) => any) | undefined;
|
|
3740
|
+
}>, {
|
|
3741
|
+
locale: LocaleInput;
|
|
3742
|
+
activeId: string;
|
|
3743
|
+
service: FvAiSessionService;
|
|
3744
|
+
pageSize: number;
|
|
3745
|
+
searchable: boolean;
|
|
3746
|
+
brandName: string;
|
|
3747
|
+
brandIcon: string;
|
|
3748
|
+
collapsed: boolean;
|
|
3749
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
3750
|
+
|
|
3751
|
+
declare const __VLS_export$4: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
3752
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
3753
|
+
|
|
3754
|
+
|
|
3755
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
3756
|
+
new (): {
|
|
3757
|
+
$slots: S;
|
|
3758
|
+
};
|
|
3759
|
+
};
|
|
3760
|
+
|
|
3761
|
+
type __VLS_Props$3 = {
|
|
3762
|
+
/** 会话数据服务(宿主注入;list/rename/remove 面板不消费,接口完整传入) */
|
|
3763
|
+
service: FvAiSessionService;
|
|
3764
|
+
/** 聊天适配器(真 adapter;草稿懒创建由面板包装层承担) */
|
|
3765
|
+
adapter: ChatAdapter;
|
|
3766
|
+
/** 当前会话 id(草稿哨兵或真实 id) */
|
|
3767
|
+
sessionId: string;
|
|
3768
|
+
/** 空态欢迎页布局(透传 FvAiChat):horizontal 横排(默认)/ vertical 纵排(悬浮窗等窄宽场景) */
|
|
3769
|
+
welcomeLayout?: 'horizontal' | 'vertical';
|
|
3770
|
+
/** 空态欢迎内容垂直居中(透传 FvAiChat;悬浮窗等窄高场景传 false,欢迎页贴上、输入区贴底) */
|
|
3771
|
+
centerWelcome?: boolean;
|
|
3772
|
+
/** 输入框占位(透传 FvAiChat) */
|
|
3773
|
+
placeholder?: string;
|
|
3774
|
+
/** 空态建议列表(透传 FvAiChat;建议池属宿主业务,库内不做抽样) */
|
|
3775
|
+
suggestions?: AiChatSuggestion[];
|
|
3776
|
+
/** 空态建议标题(透传 FvAiChat) */
|
|
3777
|
+
suggestionsTitle?: string;
|
|
3778
|
+
/** 空态建议换行模式(透传 FvAiChat,默认 true) */
|
|
3779
|
+
suggestionsWrap?: boolean;
|
|
3780
|
+
/** 打字机(透传 FvAiChat) */
|
|
3781
|
+
typing?: boolean | {
|
|
3782
|
+
step?: number;
|
|
3783
|
+
interval?: number;
|
|
3784
|
+
};
|
|
3785
|
+
/** 思考链长文案展开/收起开关(透传 FvAiChat) */
|
|
3786
|
+
collapsible?: boolean;
|
|
3787
|
+
/** 显示消息时间(透传 FvAiChat) */
|
|
3788
|
+
showTime?: boolean;
|
|
3789
|
+
/** 主题(透传 FvAiChat):light/dark/auto */
|
|
3790
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
3791
|
+
/** 语言配置(透传 FvAiChat + 面板自身文案) */
|
|
3792
|
+
locale?: LocaleInput;
|
|
3793
|
+
/** 工具名 → 步骤展示名(透传 FvAiChat) */
|
|
3794
|
+
toolStepLabel?: (toolName: string) => string;
|
|
3795
|
+
/** 开启输入区附件上传(透传 FvAiChat) */
|
|
3796
|
+
allowAttachments?: boolean;
|
|
3797
|
+
/** 附件 input accept 属性(透传 FvAiChat) */
|
|
3798
|
+
accept?: string;
|
|
3799
|
+
/** 附件数量上限(透传 FvAiChat) */
|
|
3800
|
+
attachmentLimit?: number;
|
|
3801
|
+
/** 附件上传钩子(透传 FvAiChat;草稿态懒创建由面板包装层承担) */
|
|
3802
|
+
uploadAttachment?: (file: File, item: AttachmentItem) => Promise<Partial<AttachmentItem> | string | undefined | void> | Partial<AttachmentItem> | string | undefined | void;
|
|
3803
|
+
/** 附件地址解析钩子(透传 FvAiChat) */
|
|
3804
|
+
resolveFileUrl?: (file: ChatFile) => Promise<string> | string;
|
|
3805
|
+
/** 消息评价提交钩子(透传 FvAiChat) */
|
|
3806
|
+
feedbackHandler?: FeedbackHandler;
|
|
3807
|
+
/** 消息区限宽(css 值;CSS 变量 --fv-messages-max-width 注入) */
|
|
3808
|
+
messagesMaxWidth?: string;
|
|
3809
|
+
/** 输入区限宽(css 值;非草稿态,CSS 变量注入) */
|
|
3810
|
+
senderMaxWidth?: string;
|
|
3811
|
+
/** 草稿态输入区限宽(css 值;聚焦欢迎页视觉中心,CSS 变量注入) */
|
|
3812
|
+
draftSenderMaxWidth?: string;
|
|
3813
|
+
/** 首屏 detail 条数(默认 100) */
|
|
3814
|
+
detailLimit?: number;
|
|
3815
|
+
/** 「加载更早」每次拉取条数(默认 50) */
|
|
3816
|
+
historyLimit?: number;
|
|
3817
|
+
};
|
|
3818
|
+
/**
|
|
3819
|
+
* 重播欢迎页:草稿态下重复点「新对话」(sessionId 不变,watch 不触发),
|
|
3820
|
+
* 父层经此方法让整框重建(viewKey 自增),动画从头跑一遍
|
|
3821
|
+
*/
|
|
3822
|
+
declare function replayWelcome(): void;
|
|
3823
|
+
/**
|
|
3824
|
+
* 直通刷新(spec §6.2):对当前会话重新拉 detail 并重建视图。
|
|
3825
|
+
* 复用 watch(sessionId) 的加载路径(含过期响应守卫);草稿态 no-op。
|
|
3826
|
+
* 注意:刷新视为外部驱动的会话状态对账,清掉懒创建引用(此时不应有流式在途,
|
|
3827
|
+
* 若有则属宿主误调,以拉回服务端真值为准)
|
|
3828
|
+
*/
|
|
3829
|
+
declare function refresh$1(): Promise<void> | undefined;
|
|
3830
|
+
/**
|
|
3831
|
+
* 加载更早历史:游标=当前最早 seq(seq 不连续,勿做算术),合并后重建整框。
|
|
3832
|
+
* 重建后库 onMounted 恒滚到底部(messages 组件写死 scrollToBottom),需回补:
|
|
3833
|
+
* 优先锚点节点(旧消息最后一条的 data-message-id)精确对位,将锚点顶端
|
|
3834
|
+
* 对齐视口顶端;高度差公式(新增高-旧高+旧 scrollTop)兜底。
|
|
3835
|
+
*/
|
|
3836
|
+
declare function loadEarlier(): Promise<void>;
|
|
3837
|
+
declare var __VLS_16: {};
|
|
3838
|
+
declare var __VLS_19: {};
|
|
3839
|
+
declare var __VLS_22: {};
|
|
3840
|
+
declare var __VLS_25: {};
|
|
3841
|
+
declare var __VLS_28$1: {};
|
|
3842
|
+
declare var __VLS_31: {};
|
|
3843
|
+
declare var __VLS_34: {
|
|
3844
|
+
status: "thinking" | "error" | "done";
|
|
3845
|
+
message: MessageNode;
|
|
3846
|
+
};
|
|
3847
|
+
declare var __VLS_37: {
|
|
3848
|
+
message: MessageNode;
|
|
3849
|
+
};
|
|
3850
|
+
declare var __VLS_40: {
|
|
3851
|
+
message: MessageNode;
|
|
3852
|
+
};
|
|
3853
|
+
declare var __VLS_43: {
|
|
3854
|
+
message: MessageNode;
|
|
3855
|
+
};
|
|
3856
|
+
declare var __VLS_46: {
|
|
3857
|
+
message: MessageNode;
|
|
3858
|
+
};
|
|
3859
|
+
declare var __VLS_49: {};
|
|
3860
|
+
type __VLS_Slots$2 = {} & {
|
|
3861
|
+
empty?: (props: typeof __VLS_16) => any;
|
|
3862
|
+
} & {
|
|
3863
|
+
'welcome-name'?: (props: typeof __VLS_19) => any;
|
|
3864
|
+
} & {
|
|
3865
|
+
'welcome-description'?: (props: typeof __VLS_22) => any;
|
|
3866
|
+
} & {
|
|
3867
|
+
'welcome-icon'?: (props: typeof __VLS_25) => any;
|
|
3868
|
+
} & {
|
|
3869
|
+
'welcome-suggestions'?: (props: typeof __VLS_28$1) => any;
|
|
3870
|
+
} & {
|
|
3871
|
+
'user-avatar'?: (props: typeof __VLS_31) => any;
|
|
3872
|
+
} & {
|
|
3873
|
+
'assistant-avatar'?: (props: typeof __VLS_34) => any;
|
|
3874
|
+
} & {
|
|
3875
|
+
'user-name'?: (props: typeof __VLS_37) => any;
|
|
3876
|
+
} & {
|
|
3877
|
+
'assistant-name'?: (props: typeof __VLS_40) => any;
|
|
3878
|
+
} & {
|
|
3879
|
+
'message-avatar'?: (props: typeof __VLS_43) => any;
|
|
3880
|
+
} & {
|
|
3881
|
+
'message-actions'?: (props: typeof __VLS_46) => any;
|
|
3882
|
+
} & {
|
|
3883
|
+
'sender-prefix'?: (props: typeof __VLS_49) => any;
|
|
3884
|
+
};
|
|
3885
|
+
declare const __VLS_base$2: vue.DefineComponent<__VLS_Props$3, {
|
|
3886
|
+
replayWelcome: typeof replayWelcome;
|
|
3887
|
+
loadEarlier: typeof loadEarlier;
|
|
3888
|
+
refresh: typeof refresh$1;
|
|
3889
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
3890
|
+
error: (err: Error) => any;
|
|
3891
|
+
"feedback-change": (message: MessageNode, action: "LIKE" | "DISLIKE" | "CLEAR") => any;
|
|
3892
|
+
"feedback-error": (message: string) => any;
|
|
3893
|
+
"message-file-click": (file: ChatFile, message: MessageNode) => any;
|
|
3894
|
+
"message-complete": (message: MessageNode) => any;
|
|
3895
|
+
"attachment-exceed": (file: File) => any;
|
|
3896
|
+
"attachment-uploaded": (item: AttachmentItem, result: {
|
|
3897
|
+
ok: boolean;
|
|
3898
|
+
message?: string;
|
|
3899
|
+
}) => any;
|
|
3900
|
+
"session-created": (sessionId: string) => any;
|
|
3901
|
+
"round-complete": () => any;
|
|
3902
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$3> & Readonly<{
|
|
3903
|
+
onError?: ((err: Error) => any) | undefined;
|
|
3904
|
+
"onFeedback-change"?: ((message: MessageNode, action: "LIKE" | "DISLIKE" | "CLEAR") => any) | undefined;
|
|
3905
|
+
"onFeedback-error"?: ((message: string) => any) | undefined;
|
|
3906
|
+
"onMessage-file-click"?: ((file: ChatFile, message: MessageNode) => any) | undefined;
|
|
3907
|
+
"onMessage-complete"?: ((message: MessageNode) => any) | undefined;
|
|
3908
|
+
"onAttachment-exceed"?: ((file: File) => any) | undefined;
|
|
3909
|
+
"onAttachment-uploaded"?: ((item: AttachmentItem, result: {
|
|
3910
|
+
ok: boolean;
|
|
3911
|
+
message?: string;
|
|
3912
|
+
}) => any) | undefined;
|
|
3913
|
+
"onSession-created"?: ((sessionId: string) => any) | undefined;
|
|
3914
|
+
"onRound-complete"?: (() => any) | undefined;
|
|
3915
|
+
}>, {
|
|
3916
|
+
locale: LocaleInput;
|
|
3917
|
+
typing: boolean | {
|
|
3918
|
+
step?: number;
|
|
3919
|
+
interval?: number;
|
|
3920
|
+
};
|
|
3921
|
+
placeholder: string;
|
|
3922
|
+
collapsible: boolean;
|
|
3923
|
+
suggestions: AiChatSuggestion[];
|
|
3924
|
+
accept: string;
|
|
3925
|
+
showTime: boolean;
|
|
3926
|
+
resolveFileUrl: (file: ChatFile) => Promise<string> | string;
|
|
3927
|
+
feedbackHandler: FeedbackHandler;
|
|
3928
|
+
suggestionsTitle: string;
|
|
3929
|
+
suggestionsWrap: boolean;
|
|
3930
|
+
welcomeLayout: "horizontal" | "vertical";
|
|
3931
|
+
centerWelcome: boolean;
|
|
3932
|
+
toolStepLabel: (toolName: string) => string;
|
|
3933
|
+
allowAttachments: boolean;
|
|
3934
|
+
attachmentLimit: number;
|
|
3935
|
+
uploadAttachment: (file: File, item: AttachmentItem) => Promise<Partial<AttachmentItem> | string | undefined | void> | Partial<AttachmentItem> | string | undefined | void;
|
|
3936
|
+
theme: "light" | "dark" | "auto";
|
|
3937
|
+
messagesMaxWidth: string;
|
|
3938
|
+
senderMaxWidth: string;
|
|
3939
|
+
draftSenderMaxWidth: string;
|
|
3940
|
+
detailLimit: number;
|
|
3941
|
+
historyLimit: number;
|
|
3942
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
3943
|
+
declare const __VLS_export$3: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
3944
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
3945
|
+
|
|
3946
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
3947
|
+
new (): {
|
|
3948
|
+
$slots: S;
|
|
3949
|
+
};
|
|
3950
|
+
};
|
|
3951
|
+
|
|
3952
|
+
type __VLS_Props$2 = {
|
|
3953
|
+
/** v-model 显隐 */
|
|
3954
|
+
modelValue?: boolean;
|
|
3955
|
+
/** 面板宽度(css 值;拖拽调宽在其上生效) */
|
|
3956
|
+
width?: string;
|
|
3957
|
+
/** 面板最小宽度(px;拖拽下界,默认 450) */
|
|
3958
|
+
minWidth?: number;
|
|
3959
|
+
/** 面板最大宽度(px;拖拽上界,默认 640) */
|
|
3960
|
+
maxWidth?: number;
|
|
3961
|
+
/** 贴靠侧(滑入方向随侧) */
|
|
3962
|
+
position?: 'right' | 'left';
|
|
3963
|
+
/** 面板距屏幕上边缘留白(px) */
|
|
3964
|
+
offsetTop?: number;
|
|
3965
|
+
/** 面板距屏幕下边缘留白(px) */
|
|
3966
|
+
offsetBottom?: number;
|
|
3967
|
+
/** 面板形态:drawer 抽屉(贴侧全屏高,默认)/ floating 悬窗(独立定高,可拖 header 移动) */
|
|
3968
|
+
mode?: 'drawer' | 'floating';
|
|
3969
|
+
/** 悬窗模式高度(css 值,默认按视口高 - offsetTop - offsetBottom - 80;drawer 模式忽略) */
|
|
3970
|
+
floatingHeight?: string;
|
|
3971
|
+
/** 宽度记忆 storage key:以 '!' 结尾视为完整 key,否则作前缀拼 '-width'(空串禁用记忆) */
|
|
3972
|
+
storageKey?: string;
|
|
3973
|
+
/** 关闭保活(默认 true):关闭仅隐藏(v-show),组件实例与内嵌对话树原样保留,
|
|
3974
|
+
* 再开不重新渲染、不重拉历史;设 false 则关闭即销毁(v-if),每次打开重建 */
|
|
3975
|
+
keepAlive?: boolean;
|
|
3976
|
+
/** 支持最大化(默认 true):头部显示最大化按钮(关闭按钮左侧);最大化占满视口,
|
|
3977
|
+
* 头部历史/新对话/模式按钮收敛为内嵌 FvAiSessionSidebar,欢迎页转大屏横排 */
|
|
3978
|
+
maximizable?: boolean;
|
|
3979
|
+
/** 头部标题(空时回落 locale AI 名称) */
|
|
3980
|
+
title?: string;
|
|
3981
|
+
/** 头部头像图片 URL(默认内置品牌头像) */
|
|
3982
|
+
avatar?: string;
|
|
3983
|
+
/** 会话数据服务(透传 Panel 与 Sidebar) */
|
|
3984
|
+
service: FvAiSessionService;
|
|
3985
|
+
/** 聊天适配器(透传 Panel) */
|
|
3986
|
+
adapter: ChatAdapter;
|
|
3987
|
+
/** 当前会话 id(缺省内部 DRAFT 编排;传入则受控优先) */
|
|
3988
|
+
sessionId?: string;
|
|
3989
|
+
/** 输入框占位(透传 Panel) */
|
|
3990
|
+
placeholder?: string;
|
|
3991
|
+
/** 空态建议列表(透传 Panel) */
|
|
3992
|
+
suggestions?: AiChatSuggestion[];
|
|
3993
|
+
/** 空态建议标题(透传 Panel) */
|
|
3994
|
+
suggestionsTitle?: string;
|
|
3995
|
+
/** 空态建议换行模式(透传 Panel) */
|
|
3996
|
+
suggestionsWrap?: boolean;
|
|
3997
|
+
/** 打字机(透传 Panel) */
|
|
3998
|
+
typing?: boolean | {
|
|
3999
|
+
step?: number;
|
|
4000
|
+
interval?: number;
|
|
4001
|
+
};
|
|
4002
|
+
/** 思考链长文案展开/收起开关(透传 Panel) */
|
|
4003
|
+
collapsible?: boolean;
|
|
4004
|
+
/** 显示消息时间(透传 Panel) */
|
|
4005
|
+
showTime?: boolean;
|
|
4006
|
+
/** 主题(透传 Panel) */
|
|
4007
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
4008
|
+
/** 语言配置(透传 Panel/Sidebar 与头部文案) */
|
|
4009
|
+
locale?: LocaleInput;
|
|
4010
|
+
/** 工具名 → 步骤展示名(透传 Panel) */
|
|
4011
|
+
toolStepLabel?: (toolName: string) => string;
|
|
4012
|
+
/** 开启输入区附件上传(透传 Panel) */
|
|
4013
|
+
allowAttachments?: boolean;
|
|
4014
|
+
/** 附件 input accept 属性(透传 Panel) */
|
|
4015
|
+
accept?: string;
|
|
4016
|
+
/** 附件数量上限(透传 Panel) */
|
|
4017
|
+
attachmentLimit?: number;
|
|
4018
|
+
/** 附件上传钩子(透传 Panel) */
|
|
4019
|
+
uploadAttachment?: (file: File, item: AttachmentItem) => Promise<Partial<AttachmentItem> | string | undefined | void> | Partial<AttachmentItem> | string | undefined | void;
|
|
4020
|
+
/** 附件地址解析钩子(透传 Panel) */
|
|
4021
|
+
resolveFileUrl?: (file: ChatFile) => Promise<string> | string;
|
|
4022
|
+
/** 消息评价提交钩子(透传 Panel) */
|
|
4023
|
+
feedbackHandler?: FeedbackHandler;
|
|
4024
|
+
/** 首屏 detail 条数(透传 Panel,默认 100) */
|
|
4025
|
+
detailLimit?: number;
|
|
4026
|
+
/** 「加载更早」每次拉取条数(透传 Panel,默认 50) */
|
|
4027
|
+
historyLimit?: number;
|
|
4028
|
+
};
|
|
4029
|
+
declare function toggleMaximize(): void;
|
|
4030
|
+
declare function toggleMode(): void;
|
|
4031
|
+
/** 编程式开合(与 v-model 等价) */
|
|
4032
|
+
declare function open(): void;
|
|
4033
|
+
declare function close(): void;
|
|
4034
|
+
/** 新建对话(与头部「新对话」按钮等价):切草稿;已在草稿则重播欢迎页 */
|
|
4035
|
+
declare function newChat(): void;
|
|
4036
|
+
/** 刷新当前会话(透传 Panel.refresh:重新拉 detail 并重建视图;草稿态 no-op) */
|
|
4037
|
+
declare function refresh(): Promise<void> | undefined;
|
|
4038
|
+
/**
|
|
4039
|
+
* 切回上一次对话:优先回退来路栈(浏览器后退式导航),返回是否有可回退的会话;
|
|
4040
|
+
* 来路栈空时回落「最近一次有过消息的真实会话」——从已加载的历史列表(updatedTime
|
|
4041
|
+
* DESC)取首个非草稿且非当前项,即「继续上次对话」;都无则 no-op 返回 false
|
|
4042
|
+
*/
|
|
4043
|
+
declare function switchToPrevious(): boolean;
|
|
4044
|
+
declare var __VLS_24: {};
|
|
4045
|
+
declare var __VLS_26: {};
|
|
4046
|
+
declare var __VLS_28: {};
|
|
4047
|
+
declare var __VLS_154: string;
|
|
4048
|
+
declare var __VLS_155: any;
|
|
4049
|
+
type __VLS_Slots$1 = {} & {
|
|
4050
|
+
[K in NonNullable<typeof __VLS_154>]?: (props: typeof __VLS_155) => any;
|
|
4051
|
+
} & {
|
|
4052
|
+
'header-avatar'?: (props: typeof __VLS_24) => any;
|
|
4053
|
+
} & {
|
|
4054
|
+
'header-title'?: (props: typeof __VLS_26) => any;
|
|
4055
|
+
} & {
|
|
4056
|
+
'header-actions'?: (props: typeof __VLS_28) => any;
|
|
4057
|
+
};
|
|
4058
|
+
declare const __VLS_base$1: vue.DefineComponent<__VLS_Props$2, {
|
|
4059
|
+
open: typeof open;
|
|
4060
|
+
close: typeof close;
|
|
4061
|
+
toggleMode: typeof toggleMode;
|
|
4062
|
+
toggleMaximize: typeof toggleMaximize;
|
|
4063
|
+
newChat: typeof newChat;
|
|
4064
|
+
switchToPrevious: typeof switchToPrevious;
|
|
4065
|
+
refresh: typeof refresh;
|
|
4066
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
4067
|
+
close: () => any;
|
|
4068
|
+
error: (err: Error) => any;
|
|
4069
|
+
open: () => any;
|
|
4070
|
+
"update:modelValue": (v: boolean) => any;
|
|
4071
|
+
"feedback-change": (message: MessageNode, action: "LIKE" | "DISLIKE" | "CLEAR") => any;
|
|
4072
|
+
"feedback-error": (message: string) => any;
|
|
4073
|
+
"message-file-click": (file: ChatFile, message: MessageNode) => any;
|
|
4074
|
+
"message-complete": (message: MessageNode) => any;
|
|
4075
|
+
"attachment-exceed": (file: File) => any;
|
|
4076
|
+
"attachment-uploaded": (item: AttachmentItem, result: {
|
|
4077
|
+
ok: boolean;
|
|
4078
|
+
message?: string;
|
|
4079
|
+
}) => any;
|
|
4080
|
+
"session-created": (sessionId: string) => any;
|
|
4081
|
+
"round-complete": () => any;
|
|
4082
|
+
"session-change": (sessionId: string) => any;
|
|
4083
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$2> & Readonly<{
|
|
4084
|
+
onClose?: (() => any) | undefined;
|
|
4085
|
+
onError?: ((err: Error) => any) | undefined;
|
|
4086
|
+
onOpen?: (() => any) | undefined;
|
|
4087
|
+
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
4088
|
+
"onFeedback-change"?: ((message: MessageNode, action: "LIKE" | "DISLIKE" | "CLEAR") => any) | undefined;
|
|
4089
|
+
"onFeedback-error"?: ((message: string) => any) | undefined;
|
|
4090
|
+
"onMessage-file-click"?: ((file: ChatFile, message: MessageNode) => any) | undefined;
|
|
4091
|
+
"onMessage-complete"?: ((message: MessageNode) => any) | undefined;
|
|
4092
|
+
"onAttachment-exceed"?: ((file: File) => any) | undefined;
|
|
4093
|
+
"onAttachment-uploaded"?: ((item: AttachmentItem, result: {
|
|
4094
|
+
ok: boolean;
|
|
4095
|
+
message?: string;
|
|
4096
|
+
}) => any) | undefined;
|
|
4097
|
+
"onSession-created"?: ((sessionId: string) => any) | undefined;
|
|
4098
|
+
"onRound-complete"?: (() => any) | undefined;
|
|
4099
|
+
"onSession-change"?: ((sessionId: string) => any) | undefined;
|
|
4100
|
+
}>, {
|
|
4101
|
+
locale: LocaleInput;
|
|
4102
|
+
title: string;
|
|
4103
|
+
typing: boolean | {
|
|
4104
|
+
step?: number;
|
|
4105
|
+
interval?: number;
|
|
4106
|
+
};
|
|
4107
|
+
width: string;
|
|
4108
|
+
avatar: string;
|
|
4109
|
+
mode: "drawer" | "floating";
|
|
4110
|
+
modelValue: boolean;
|
|
4111
|
+
placeholder: string;
|
|
4112
|
+
position: "right" | "left";
|
|
4113
|
+
maxWidth: number;
|
|
4114
|
+
collapsible: boolean;
|
|
4115
|
+
suggestions: AiChatSuggestion[];
|
|
4116
|
+
accept: string;
|
|
4117
|
+
sessionId: string;
|
|
4118
|
+
showTime: boolean;
|
|
4119
|
+
resolveFileUrl: (file: ChatFile) => Promise<string> | string;
|
|
4120
|
+
feedbackHandler: FeedbackHandler;
|
|
4121
|
+
suggestionsTitle: string;
|
|
4122
|
+
suggestionsWrap: boolean;
|
|
4123
|
+
minWidth: number;
|
|
4124
|
+
toolStepLabel: (toolName: string) => string;
|
|
4125
|
+
allowAttachments: boolean;
|
|
4126
|
+
attachmentLimit: number;
|
|
4127
|
+
uploadAttachment: (file: File, item: AttachmentItem) => Promise<Partial<AttachmentItem> | string | undefined | void> | Partial<AttachmentItem> | string | undefined | void;
|
|
4128
|
+
theme: "light" | "dark" | "auto";
|
|
4129
|
+
detailLimit: number;
|
|
4130
|
+
historyLimit: number;
|
|
4131
|
+
offsetTop: number;
|
|
4132
|
+
offsetBottom: number;
|
|
4133
|
+
floatingHeight: string;
|
|
4134
|
+
storageKey: string;
|
|
4135
|
+
keepAlive: boolean;
|
|
4136
|
+
maximizable: boolean;
|
|
4137
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
4138
|
+
declare const __VLS_export$2: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
4139
|
+
declare const _default$2: typeof __VLS_export$2;
|
|
4140
|
+
|
|
4141
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
4142
|
+
new (): {
|
|
4143
|
+
$slots: S;
|
|
4144
|
+
};
|
|
4145
|
+
};
|
|
4146
|
+
|
|
4147
|
+
/** 光晕透传项(内嵌 FvBlobHalo 的可配子集;size 随按钮 size 不透传) */
|
|
4148
|
+
interface FvAiChatLauncherHalo {
|
|
4149
|
+
colors?: (string | {
|
|
4150
|
+
color?: string;
|
|
4151
|
+
opacity?: number;
|
|
4152
|
+
altOpacity?: number;
|
|
4153
|
+
mid?: number;
|
|
4154
|
+
scale?: number;
|
|
4155
|
+
} | null | undefined)[];
|
|
4156
|
+
scale?: number;
|
|
4157
|
+
opacity?: number;
|
|
4158
|
+
altOpacity?: number;
|
|
4159
|
+
rotateDuration?: number;
|
|
4160
|
+
paused?: boolean;
|
|
4161
|
+
}
|
|
4162
|
+
type __VLS_Props$1 = {
|
|
4163
|
+
/** 按钮激活态(面板开时按钮高亮,仅视觉;interactive=false 时不渲染激活态) */
|
|
4164
|
+
modelValue?: boolean;
|
|
4165
|
+
/** 是否悬浮贴角(默认 true);false 时文档流内联(placement/offset 失效) */
|
|
4166
|
+
floating?: boolean;
|
|
4167
|
+
/** 是否可交互(默认 true);false 时渲染 <span>,无点击/hover,纯展示图标引用 */
|
|
4168
|
+
interactive?: boolean;
|
|
4169
|
+
/** 悬浮四角定位(floating 时生效) */
|
|
4170
|
+
placement?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
4171
|
+
/**
|
|
4172
|
+
* 贴靠侧(废弃,仅兼容保留):传了且未传 placement 时按 bottom-{position} 推导,
|
|
4173
|
+
* 新代码请用 placement
|
|
4174
|
+
*/
|
|
4175
|
+
position?: 'right' | 'left';
|
|
4176
|
+
/** 距角横轴留白(px,缺省回落 offset) */
|
|
4177
|
+
offsetX?: number;
|
|
4178
|
+
/** 距角纵轴留白(px,缺省回落 offset) */
|
|
4179
|
+
offsetY?: number;
|
|
4180
|
+
/** 距角双轴统一留白(px 简写;offsetX/offsetY 优先) */
|
|
4181
|
+
offset?: number;
|
|
4182
|
+
/** 按钮直径(px) */
|
|
4183
|
+
size?: number;
|
|
4184
|
+
/** 默认图标图片 URL(缺省内置品牌头像;iconComponent/#icon 优先) */
|
|
4185
|
+
icon?: string;
|
|
4186
|
+
/** 组件形态图标(与 icon 冲突时优先;#icon 插槽仍最高) */
|
|
4187
|
+
iconComponent?: Component;
|
|
4188
|
+
/** 光晕属性透传(色板/缩放/透明度/转速/暂停;覆盖 Launcher 内置默认) */
|
|
4189
|
+
halo?: FvAiChatLauncherHalo;
|
|
4190
|
+
/** 无障碍标签(interactive 时生效) */
|
|
4191
|
+
ariaLabel?: string;
|
|
4192
|
+
/** 语言包 */
|
|
4193
|
+
locale?: LocaleInput;
|
|
4194
|
+
};
|
|
4195
|
+
declare var __VLS_15: {};
|
|
4196
|
+
declare var __VLS_17: {};
|
|
4197
|
+
type __VLS_Slots = {} & {
|
|
4198
|
+
default?: (props: typeof __VLS_15) => any;
|
|
4199
|
+
} & {
|
|
4200
|
+
icon?: (props: typeof __VLS_17) => any;
|
|
4201
|
+
};
|
|
4202
|
+
declare const __VLS_base: vue.DefineComponent<__VLS_Props$1, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
4203
|
+
click: (ev: MouseEvent) => any;
|
|
4204
|
+
"update:modelValue": (v: boolean) => any;
|
|
4205
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$1> & Readonly<{
|
|
4206
|
+
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
4207
|
+
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
4208
|
+
}>, {
|
|
4209
|
+
locale: LocaleInput;
|
|
4210
|
+
size: number;
|
|
4211
|
+
icon: string;
|
|
4212
|
+
offset: number;
|
|
4213
|
+
placement: "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
4214
|
+
ariaLabel: string;
|
|
4215
|
+
modelValue: boolean;
|
|
4216
|
+
position: "right" | "left";
|
|
4217
|
+
iconComponent: Component;
|
|
4218
|
+
floating: boolean;
|
|
4219
|
+
interactive: boolean;
|
|
4220
|
+
offsetX: number;
|
|
4221
|
+
offsetY: number;
|
|
4222
|
+
halo: FvAiChatLauncherHalo;
|
|
4223
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
4224
|
+
declare const __VLS_export$1: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4225
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
4226
|
+
|
|
4227
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
4228
|
+
new (): {
|
|
4229
|
+
$slots: S;
|
|
4230
|
+
};
|
|
4231
|
+
};
|
|
4232
|
+
|
|
4233
|
+
type __VLS_Props = {
|
|
4234
|
+
/** 图标名(assests/icons/ 下的文件名,不含扩展名,如 'maximize') */
|
|
4235
|
+
name: string;
|
|
4236
|
+
/** 尺寸(px number 或 css 字符串如 '1em';默认 16) */
|
|
4237
|
+
size?: number | string;
|
|
4238
|
+
};
|
|
4239
|
+
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
4240
|
+
size: number | string;
|
|
4241
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
4242
|
+
declare const _default: typeof __VLS_export;
|
|
4243
|
+
|
|
4244
|
+
/**
|
|
4245
|
+
* 图标注册表:构建期收集 assests/icons/*.svg 的源文本(?raw)。
|
|
4246
|
+
*
|
|
4247
|
+
* - Vite(dev/docs 站/单元测试):import.meta.glob 原生支持 query:'?raw'
|
|
4248
|
+
* - rollup(es/lib 产物):rollup 不识别 ?raw 与 import.meta.glob,
|
|
4249
|
+
* 由 rollup.config.ts 的 svgRawIcons 插件把本文件改写为显式
|
|
4250
|
+
* import + 映射字面量(见该插件注释),语义等价
|
|
4251
|
+
* - 换图标只替换 assests/icons/ 下的 svg 文件;新增图标丢文件进目录即自动可用
|
|
4252
|
+
*/
|
|
4253
|
+
/** name(文件名去扩展名)→ svg 源文本 */
|
|
4254
|
+
declare const iconRegistry: Record<string, string>;
|
|
4255
|
+
|
|
4256
|
+
interface UseXStreamReturn {
|
|
4257
|
+
startStream(options: {
|
|
4258
|
+
readableStream: ReadableStream<Uint8Array>;
|
|
4259
|
+
transformStream?: TransformStream<any, any>;
|
|
4260
|
+
}): Promise<void>;
|
|
4261
|
+
cancel(): void;
|
|
4262
|
+
data: Ref<SSEEvent[]>;
|
|
4263
|
+
error: Ref<Error | null>;
|
|
4264
|
+
isLoading: Ref<boolean>;
|
|
4265
|
+
}
|
|
4266
|
+
declare function useXStream(): UseXStreamReturn;
|
|
4267
|
+
|
|
4268
|
+
/** send 请求参数 */
|
|
4269
|
+
interface SendOptions {
|
|
4270
|
+
/** 请求地址 */
|
|
4271
|
+
url: string;
|
|
4272
|
+
/** 请求方法,默认 POST */
|
|
4273
|
+
method?: string;
|
|
4274
|
+
/** 请求头 */
|
|
4275
|
+
headers?: Record<string, string>;
|
|
4276
|
+
/** 请求体对象(内部 JSON.stringify) */
|
|
4277
|
+
body?: object;
|
|
4278
|
+
/** 可选转换流,接在 TextDecoderStream 之后(如协议转换) */
|
|
4279
|
+
transformStream?: TransformStream<any, any>;
|
|
4280
|
+
/** 全部 SSE 事件透传(含 event 名;tool/message_start 等非 content 事件不再被吞) */
|
|
4281
|
+
onEvent?: (ev: SSEEvent) => void;
|
|
4282
|
+
/** 内容分片回调:SSE data 为 JSON 且含字符串 content 时逐块触发 */
|
|
4283
|
+
onChunk?: (text: string) => void;
|
|
4284
|
+
}
|
|
4285
|
+
interface UseSendReturn {
|
|
4286
|
+
/** 发起请求并消费 SSE 流(逐块回调 onChunk) */
|
|
4287
|
+
send: (options: SendOptions) => Promise<void>;
|
|
4288
|
+
/** 中止当前请求/流消费 */
|
|
4289
|
+
abort: () => void;
|
|
4290
|
+
loading: Ref<boolean>;
|
|
4291
|
+
error: Ref<Error | null>;
|
|
4292
|
+
}
|
|
4293
|
+
declare function useSend(): UseSendReturn;
|
|
4294
|
+
/**
|
|
4295
|
+
* XRequest:Promise 化的流式请求,resolve 累计全文。
|
|
4296
|
+
* options 同 SendOptions(url 由首参覆盖),onChunk 透传照常触发。
|
|
3363
4297
|
*/
|
|
3364
4298
|
declare function XRequest(url: string, options?: Omit<SendOptions, 'url'>): Promise<string>;
|
|
3365
4299
|
|
|
@@ -3488,7 +4422,37 @@ declare function createMessageTree(initial?: {
|
|
|
3488
4422
|
currentId?: string | null;
|
|
3489
4423
|
}): MessageTree;
|
|
3490
4424
|
|
|
4425
|
+
/** 翻译函数形态(vue-i18n t 的结构子类型,便于纯函数测试注入桩);文案 key 为库 locale 平面 key */
|
|
4426
|
+
type AiChatT = (key: string, named?: Record<string, string>) => string;
|
|
4427
|
+
/**
|
|
4428
|
+
* FvCommonMessage[](seq 升序)→ MessageNode[](线性链,无分支)。
|
|
4429
|
+
* 分组状态机:user 开新轮;assistant(toolCalls) 起工具段收集 tool 行,多轮循环
|
|
4430
|
+
* 顺序累积(中间轮过渡文案以 text 步织入,保持发生顺序);下一个非 tool 行(最终
|
|
4431
|
+
* assistant / 下一轮 user)时把收集到的全部工具段作为 toolSteps 挂给本轮最终
|
|
4432
|
+
* assistant(若无最终行则丢弃——异常残留)。
|
|
4433
|
+
*
|
|
4434
|
+
* 附件(V1.1+):user 行 attachments(AiChatAttachmentDTO[],旧数据/无附件 null)
|
|
4435
|
+
* → MessageNode.files(chips 渲染;id=附件 id,name=originalName,type IMAGE→image)。
|
|
4436
|
+
* user 行 content 为服务端物化文本(图片占位行 + 文档解析块 + 用户输入),原样展示
|
|
4437
|
+
* 不与 chips 互斥——content 是正文留底,files 是附件入口。
|
|
4438
|
+
*/
|
|
4439
|
+
declare function mapHistoryToNodes(messages: FvCommonMessage[], t?: AiChatT): MessageNode[];
|
|
4440
|
+
/**
|
|
4441
|
+
* 会话列表项 → FvConversations item(key=id;group 仅作归档兜底分组,
|
|
4442
|
+
* 展示分组由消费方按「今天/以往」覆写;disabled 供草稿占位等禁用态)
|
|
4443
|
+
*/
|
|
4444
|
+
declare function sessionToConversationItem(s: FvCommonSessionItem, t?: AiChatT): {
|
|
4445
|
+
key: string;
|
|
4446
|
+
label: string;
|
|
4447
|
+
group?: string;
|
|
4448
|
+
disabled?: boolean;
|
|
4449
|
+
};
|
|
4450
|
+
|
|
3491
4451
|
declare const version = "0.1.0";
|
|
3492
4452
|
|
|
3493
|
-
|
|
3494
|
-
|
|
4453
|
+
declare const FvSparkleIcon: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
4454
|
+
[key: string]: any;
|
|
4455
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
4456
|
+
|
|
4457
|
+
export { DRAFT_SESSION_ID, _default$5 as FvAiArtifacts, _default$6 as FvAiChat, _default$1 as FvAiChatLauncher, _default$3 as FvAiChatPanel, _default$2 as FvAiChatWidget, _default$8 as FvAiMessage, _default$7 as FvAiMessages, _default$4 as FvAiSessionSidebar, _default$b as FvAttachments, _default$9 as FvBlobHalo, _default$l as FvBubble, _default$k as FvBubbleList, FvCommonAdapter, FvCommonError, _default$a as FvConversations, _default$h as FvEditorSender, _default$c as FvFilesCard, _default$n as FvMarkdown, _default$i as FvMentionSender, _default$d as FvPrompts, _default$j as FvSender, FvSparkleIcon, _default as FvSvgIcon, _default$g as FvThinking, _default$f as FvThoughtChain, _default$m as FvTypewriter, _default$e as FvWelcome, OpenAIAdapter, XRequest, configureLocale, createLocalStorageAdapter, createMemoryAdapter, createMessageTree, createSSEParser, en, iconRegistry, ko, mapHistoryToNodes, parseSuggestions, sessionToConversationItem, useChat, useMessages, useRecord, useSend, useXStream, version, vi, zhCN, zhHK };
|
|
4458
|
+
export type { AdapterChatFile, AdapterChatMessage, AiArtifactItem, AiChatArtifactsOptions, AiChatFeatures, AiChatSuggestion, AiChatT, AiMessageBranchInfo, AiMessagesSuggestion, AttachmentItem, AttachmentUpload, BranchDirection, ChatAdapter, ChatAdapterHandlers, ChatAdapterRequest, ChatFile, DeepPartialLocale, FeedbackHandler, FvAiMessagePage, FvAiSessionListQuery, FvAiSessionPage, FvAiSessionService, FvBlobHaloColor, 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 };
|