@done-coding/forge-kit-agent 0.0.0-stage → 0.100.0-alpha.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/LICENSE +21 -0
- package/README.md +53 -2
- package/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/es/components/bubble/AiBubbleContent.vue.mjs +7 -0
- package/es/components/bubble/AiBubbleContent.vue2.mjs +209 -0
- package/es/components/bubble/AiBubbleFooter.vue.mjs +7 -0
- package/es/components/bubble/AiBubbleFooter.vue2.mjs +91 -0
- package/es/components/bubble/AiCodeHeaderControl.vue.mjs +7 -0
- package/es/components/bubble/AiCodeHeaderControl.vue2.mjs +97 -0
- package/es/components/bubble/AiContentSplit.vue.mjs +70 -0
- package/es/components/bubble/AiContentSplit.vue2.mjs +4 -0
- package/es/components/bubble/AiPartRenderer.vue.mjs +7 -0
- package/es/components/bubble/AiPartRenderer.vue2.mjs +184 -0
- package/es/components/bubble/AiThinkBox.vue.mjs +7 -0
- package/es/components/bubble/AiThinkBox.vue2.mjs +155 -0
- package/es/components/bubble/AiTypewriter.vue.mjs +81 -0
- package/es/components/bubble/AiTypewriter.vue2.mjs +4 -0
- package/es/components/config/AiConfigProvider.vue.mjs +31 -0
- package/es/components/config/AiConfigProvider.vue2.mjs +4 -0
- package/es/components/dialogue/AiDialogue.vue.mjs +7 -0
- package/es/components/dialogue/AiDialogue.vue2.mjs +242 -0
- package/es/components/dialogue/AiDialogueGroup.vue.mjs +7 -0
- package/es/components/dialogue/AiDialogueGroup.vue2.mjs +133 -0
- package/es/components/dialogue/AiDialogueWrap.vue.mjs +7 -0
- package/es/components/dialogue/AiDialogueWrap.vue2.mjs +73 -0
- package/es/components/dialogue/AiMessageList.vue.mjs +7 -0
- package/es/components/dialogue/AiMessageList.vue2.mjs +111 -0
- package/es/components/json-trigger/LlmJsonTrigger.vue.mjs +7 -0
- package/es/components/json-trigger/LlmJsonTrigger.vue2.mjs +130 -0
- package/es/components/operation/AiOperationBar.vue.mjs +7 -0
- package/es/components/operation/AiOperationBar.vue2.mjs +174 -0
- package/es/components/operation/AiOperationBtns.vue.mjs +7 -0
- package/es/components/operation/AiOperationBtns.vue2.mjs +140 -0
- package/es/components/sender/AiSender.vue.mjs +7 -0
- package/es/components/sender/AiSender.vue2.mjs +74 -0
- package/es/components/sender/AiSenderHeader.vue.mjs +7 -0
- package/es/components/sender/AiSenderHeader.vue2.mjs +78 -0
- package/es/hooks/CodeXSlot.mjs +20 -0
- package/es/hooks/SessionExpose.mjs +81 -0
- package/es/hooks/agent-tools.mjs +95 -0
- package/es/hooks/agent.mjs +143 -0
- package/es/hooks/bubble-list.mjs +64 -0
- package/es/hooks/expose.mjs +133 -0
- package/es/hooks/fix-bubble-list-bug.mjs +65 -0
- package/es/hooks/sender-history.mjs +28 -0
- package/es/hooks/sender.mjs +197 -0
- package/es/hooks/session-list.mjs +154 -0
- package/es/hooks/sse.mjs +401 -0
- package/es/hooks/storage.mjs +217 -0
- package/es/hooks/theme.mjs +253 -0
- package/es/hooks/use-density.mjs +100 -0
- package/es/hooks/use-empty-state-center.mjs +40 -0
- package/es/hooks/use-keyboard-inset.mjs +87 -0
- package/es/index.mjs +68 -0
- package/es/style.css +836 -0
- package/es/types/index.mjs +54 -0
- package/es/utils/index.mjs +34 -0
- package/es/utils/json-from-llm.mjs +26 -0
- package/es/utils/request-llm.mjs +60 -0
- package/package.json +83 -4
- package/types/bridge/config-hook.d.ts +21 -0
- package/types/bridge/index.d.ts +69 -0
- package/types/bridge/plugin.d.ts +39 -0
- package/types/bridge/state.d.ts +26 -0
- package/types/bridge/storage.d.ts +10 -0
- package/types/components/bubble/AiBubbleContent.vue.d.ts +57 -0
- package/types/components/bubble/AiBubbleFooter.vue.d.ts +6 -0
- package/types/components/bubble/AiCodeHeaderControl.vue.d.ts +7 -0
- package/types/components/bubble/AiContentSplit.vue.d.ts +36 -0
- package/types/components/bubble/AiPartRenderer.vue.d.ts +9 -0
- package/types/components/bubble/AiThinkBox.vue.d.ts +31 -0
- package/types/components/bubble/AiTypewriter.vue.d.ts +28 -0
- package/types/components/config/AiConfigProvider.vue.d.ts +28 -0
- package/types/components/dialogue/AiDialogue.vue.d.ts +546 -0
- package/types/components/dialogue/AiDialogueGroup.vue.d.ts +49 -0
- package/types/components/dialogue/AiDialogueWrap.vue.d.ts +38 -0
- package/types/components/dialogue/AiMessageList.vue.d.ts +65 -0
- package/types/components/json-trigger/LlmJsonTrigger.vue.d.ts +43 -0
- package/types/components/json-trigger/types.d.ts +12 -0
- package/types/components/operation/AiOperationBar.vue.d.ts +36 -0
- package/types/components/operation/AiOperationBtns.vue.d.ts +27 -0
- package/types/components/sender/AiSender.vue.d.ts +38 -0
- package/types/components/sender/AiSenderHeader.vue.d.ts +28 -0
- package/types/hooks/CodeXSlot.d.ts +7 -0
- package/types/hooks/SessionExpose.d.ts +20 -0
- package/types/hooks/agent-tools.d.ts +67 -0
- package/types/hooks/agent.d.ts +43 -0
- package/types/hooks/bubble-list.d.ts +22 -0
- package/types/hooks/expose.d.ts +111 -0
- package/types/hooks/fix-bubble-list-bug.d.ts +8 -0
- package/types/hooks/sender-history.d.ts +41 -0
- package/types/hooks/sender.d.ts +101 -0
- package/types/hooks/session-list.d.ts +36 -0
- package/types/hooks/sse.d.ts +239 -0
- package/types/hooks/storage.d.ts +70 -0
- package/types/hooks/theme.d.ts +37 -0
- package/types/hooks/use-density.d.ts +66 -0
- package/types/hooks/use-empty-state-center.d.ts +23 -0
- package/types/hooks/use-keyboard-inset.d.ts +37 -0
- package/types/index.d.ts +26 -0
- package/types/inject/key.d.ts +20 -0
- package/types/types/index.d.ts +612 -0
- package/types/utils/index.d.ts +29 -0
- package/types/utils/json-from-llm.d.ts +35 -0
- package/types/utils/request-llm.d.ts +44 -0
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
import { AiDataPart, AiDialogueProps, AiToolPart, XBubbleListItemProps, XConversationItem } from '../../types';
|
|
2
|
+
type __VLS_Props = AiDialogueProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
"sessionInfo"?: XConversationItem;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<{
|
|
9
|
+
/**
|
|
10
|
+
* 业务 data part 渲染口(转换器产出的 `data-*`,或 `ask({ parts })` 以用户名义发出的);
|
|
11
|
+
* 缺省退回平台占位。
|
|
12
|
+
* ----
|
|
13
|
+
* **AI 与用户气泡共用同一个槽**:`item.role` 在作用域里,需要分角色渲染就据它分支。
|
|
14
|
+
*
|
|
15
|
+
* 作用域键名与 `AiMessageList` 的 `#part` 刻意不同(此处是内部气泡项
|
|
16
|
+
* `XBubbleListItemProps`,那边是对外 `AiMessage`)——同名会制造虚假可移植性。
|
|
17
|
+
*/
|
|
18
|
+
part: (props: {
|
|
19
|
+
part: AiDataPart;
|
|
20
|
+
item: XBubbleListItemProps;
|
|
21
|
+
}) => unknown;
|
|
22
|
+
/**
|
|
23
|
+
* 工具调用 part 渲染口(generative UI / 人在环表单);缺省退回平台状态机块。
|
|
24
|
+
* ----
|
|
25
|
+
* 人在环回发:`part.id` === `AiToolCtx.toolCallId`,用它作 key 找到自己在
|
|
26
|
+
* `AiTool.execute` 里存下的 resolve 即可(库不代持 pending 句柄)。
|
|
27
|
+
*/
|
|
28
|
+
tool: (props: {
|
|
29
|
+
part: AiToolPart;
|
|
30
|
+
item: XBubbleListItemProps;
|
|
31
|
+
}) => unknown;
|
|
32
|
+
}> & {
|
|
33
|
+
/**
|
|
34
|
+
* 业务 data part 渲染口(转换器产出的 `data-*`,或 `ask({ parts })` 以用户名义发出的);
|
|
35
|
+
* 缺省退回平台占位。
|
|
36
|
+
* ----
|
|
37
|
+
* **AI 与用户气泡共用同一个槽**:`item.role` 在作用域里,需要分角色渲染就据它分支。
|
|
38
|
+
*
|
|
39
|
+
* 作用域键名与 `AiMessageList` 的 `#part` 刻意不同(此处是内部气泡项
|
|
40
|
+
* `XBubbleListItemProps`,那边是对外 `AiMessage`)——同名会制造虚假可移植性。
|
|
41
|
+
*/
|
|
42
|
+
part: (props: {
|
|
43
|
+
part: AiDataPart;
|
|
44
|
+
item: XBubbleListItemProps;
|
|
45
|
+
}) => unknown;
|
|
46
|
+
/**
|
|
47
|
+
* 工具调用 part 渲染口(generative UI / 人在环表单);缺省退回平台状态机块。
|
|
48
|
+
* ----
|
|
49
|
+
* 人在环回发:`part.id` === `AiToolCtx.toolCallId`,用它作 key 找到自己在
|
|
50
|
+
* `AiTool.execute` 里存下的 resolve 即可(库不代持 pending 句柄)。
|
|
51
|
+
*/
|
|
52
|
+
tool: (props: {
|
|
53
|
+
part: AiToolPart;
|
|
54
|
+
item: XBubbleListItemProps;
|
|
55
|
+
}) => unknown;
|
|
56
|
+
};
|
|
57
|
+
refs: {
|
|
58
|
+
bubbleListExpose: {
|
|
59
|
+
scrollToTop: () => void;
|
|
60
|
+
scrollToBottom: () => void;
|
|
61
|
+
scrollToBubble: (index: number) => void;
|
|
62
|
+
} | null;
|
|
63
|
+
senderExpose: ({
|
|
64
|
+
$: import('vue').ComponentInternalInstance;
|
|
65
|
+
$data: {};
|
|
66
|
+
$props: {
|
|
67
|
+
readonly modelValue?: string | undefined;
|
|
68
|
+
readonly placeholder?: string | undefined;
|
|
69
|
+
readonly autoSize?: {
|
|
70
|
+
minRows: number;
|
|
71
|
+
maxRows: number;
|
|
72
|
+
} | undefined;
|
|
73
|
+
readonly readOnly?: boolean | undefined;
|
|
74
|
+
readonly disabled?: boolean | undefined;
|
|
75
|
+
readonly loading?: boolean | undefined;
|
|
76
|
+
readonly clearable?: boolean | undefined;
|
|
77
|
+
readonly allowSpeech?: boolean | undefined;
|
|
78
|
+
readonly submitType?: "enter" | "shiftEnter" | "cmdOrCtrlEnter" | "altEnter" | undefined;
|
|
79
|
+
readonly headerAnimationTimer?: number | undefined;
|
|
80
|
+
readonly inputWidth?: string | undefined;
|
|
81
|
+
readonly variant?: "default" | "updown" | undefined;
|
|
82
|
+
readonly showUpdown?: boolean | undefined;
|
|
83
|
+
readonly submitBtnDisabled?: boolean | undefined;
|
|
84
|
+
readonly inputStyle?: string | CSSProperties | CSSProperties[] | string[];
|
|
85
|
+
readonly options?: import('vue-element-plus-x/types/MentionSender').MentionOption[] | undefined;
|
|
86
|
+
readonly filterOption?: ((pattern: string, option: import('vue-element-plus-x/types/MentionSender').MentionOption) => boolean) | undefined;
|
|
87
|
+
readonly whole?: boolean | undefined;
|
|
88
|
+
readonly checkIsWhole?: ((pattern: string, prefix: string) => boolean) | undefined;
|
|
89
|
+
readonly triggerLoading?: boolean | undefined;
|
|
90
|
+
readonly triggerStrings?: string[] | undefined;
|
|
91
|
+
readonly triggerSplit?: string | undefined;
|
|
92
|
+
readonly triggerPopoverPlacement?: "bottom" | "top" | undefined;
|
|
93
|
+
readonly triggerPopoverOffset?: number | undefined;
|
|
94
|
+
readonly onSearch?: ((pattern: string, prefix: string) => any) | undefined | undefined;
|
|
95
|
+
readonly onSelect?: ((option: import('vue-element-plus-x/types/MentionSender').MentionOption, prefix: string) => any) | undefined | undefined;
|
|
96
|
+
readonly onCancel?: ((internalValue: string) => any) | undefined | undefined;
|
|
97
|
+
readonly onSubmit?: ((internalValue: string) => any) | undefined | undefined;
|
|
98
|
+
readonly onPasteFile?: ((firstFile: File, fileList: FileList) => any) | undefined | undefined;
|
|
99
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
100
|
+
readonly onRecordingChange?: ((isRecording: boolean) => any) | undefined | undefined;
|
|
101
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
102
|
+
$attrs: import('vue').Attrs;
|
|
103
|
+
$refs: {
|
|
104
|
+
[x: string]: unknown;
|
|
105
|
+
} & {
|
|
106
|
+
senderRef: HTMLDivElement;
|
|
107
|
+
inputRef: unknown;
|
|
108
|
+
};
|
|
109
|
+
$slots: Readonly<{
|
|
110
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
111
|
+
}>;
|
|
112
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
113
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
114
|
+
$host: Element | null;
|
|
115
|
+
$emit: ((event: "cancel", internalValue: string) => void) & ((event: "search", pattern: string, prefix: string) => void) & ((event: "select", option: import('vue-element-plus-x/types/MentionSender').MentionOption, prefix: string) => void) & ((event: "submit", internalValue: string) => void) & ((event: "pasteFile", firstFile: File, fileList: FileList) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "recordingChange", isRecording: boolean) => void);
|
|
116
|
+
$el: HTMLDivElement;
|
|
117
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue-element-plus-x/types/MentionSender').MentionSenderProps> & Readonly<{
|
|
118
|
+
onSearch?: ((pattern: string, prefix: string) => any) | undefined;
|
|
119
|
+
onSelect?: ((option: import('vue-element-plus-x/types/MentionSender').MentionOption, prefix: string) => any) | undefined;
|
|
120
|
+
onCancel?: ((internalValue: string) => any) | undefined;
|
|
121
|
+
onSubmit?: ((internalValue: string) => any) | undefined;
|
|
122
|
+
onPasteFile?: ((firstFile: File, fileList: FileList) => any) | undefined;
|
|
123
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
124
|
+
onRecordingChange?: ((isRecording: boolean) => any) | undefined;
|
|
125
|
+
}>, {
|
|
126
|
+
openHeader: () => false | undefined;
|
|
127
|
+
closeHeader: () => void;
|
|
128
|
+
clear: () => void;
|
|
129
|
+
blur: () => false | undefined;
|
|
130
|
+
focus: (type?: string) => false | undefined;
|
|
131
|
+
submit: () => void;
|
|
132
|
+
cancel: () => void;
|
|
133
|
+
startRecognition: () => void;
|
|
134
|
+
stopRecognition: () => void;
|
|
135
|
+
popoverVisible: globalThis.ComputedRef<any>;
|
|
136
|
+
inputInstance: globalThis.ComputedRef<any>;
|
|
137
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
138
|
+
search: (pattern: string, prefix: string) => any;
|
|
139
|
+
select: (option: import('vue-element-plus-x/types/MentionSender').MentionOption, prefix: string) => any;
|
|
140
|
+
cancel: (internalValue: string) => any;
|
|
141
|
+
submit: (internalValue: string) => any;
|
|
142
|
+
pasteFile: (firstFile: File, fileList: FileList) => any;
|
|
143
|
+
"update:modelValue": (value: string) => any;
|
|
144
|
+
recordingChange: (isRecording: boolean) => any;
|
|
145
|
+
}, string, {
|
|
146
|
+
options: import('vue-element-plus-x/types/MentionSender').MentionOption[];
|
|
147
|
+
placeholder: string;
|
|
148
|
+
variant: "default" | "updown";
|
|
149
|
+
submitType: "enter" | "shiftEnter" | "cmdOrCtrlEnter" | "altEnter";
|
|
150
|
+
headerAnimationTimer: number;
|
|
151
|
+
modelValue: string;
|
|
152
|
+
autoSize: {
|
|
153
|
+
minRows: number;
|
|
154
|
+
maxRows: number;
|
|
155
|
+
};
|
|
156
|
+
inputWidth: string;
|
|
157
|
+
showUpdown: boolean;
|
|
158
|
+
submitBtnDisabled: boolean;
|
|
159
|
+
inputStyle: string | CSSProperties | CSSProperties[] | string[];
|
|
160
|
+
filterOption: (pattern: string, option: import('vue-element-plus-x/types/MentionSender').MentionOption) => boolean;
|
|
161
|
+
whole: boolean;
|
|
162
|
+
checkIsWhole: (pattern: string, prefix: string) => boolean;
|
|
163
|
+
triggerLoading: boolean;
|
|
164
|
+
triggerStrings: string[];
|
|
165
|
+
triggerSplit: string;
|
|
166
|
+
triggerPopoverPlacement: "bottom" | "top";
|
|
167
|
+
triggerPopoverOffset: number;
|
|
168
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
169
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
170
|
+
created?: (() => void) | (() => void)[];
|
|
171
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
172
|
+
mounted?: (() => void) | (() => void)[];
|
|
173
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
174
|
+
updated?: (() => void) | (() => void)[];
|
|
175
|
+
activated?: (() => void) | (() => void)[];
|
|
176
|
+
deactivated?: (() => void) | (() => void)[];
|
|
177
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
178
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
179
|
+
destroyed?: (() => void) | (() => void)[];
|
|
180
|
+
unmounted?: (() => void) | (() => void)[];
|
|
181
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
182
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
183
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
184
|
+
};
|
|
185
|
+
$forceUpdate: () => void;
|
|
186
|
+
$nextTick: typeof import('vue').nextTick;
|
|
187
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
188
|
+
} & Readonly<{
|
|
189
|
+
options: import('vue-element-plus-x/types/MentionSender').MentionOption[];
|
|
190
|
+
placeholder: string;
|
|
191
|
+
variant: "default" | "updown";
|
|
192
|
+
submitType: "enter" | "shiftEnter" | "cmdOrCtrlEnter" | "altEnter";
|
|
193
|
+
headerAnimationTimer: number;
|
|
194
|
+
modelValue: string;
|
|
195
|
+
autoSize: {
|
|
196
|
+
minRows: number;
|
|
197
|
+
maxRows: number;
|
|
198
|
+
};
|
|
199
|
+
inputWidth: string;
|
|
200
|
+
showUpdown: boolean;
|
|
201
|
+
submitBtnDisabled: boolean;
|
|
202
|
+
inputStyle: string | CSSProperties | CSSProperties[] | string[];
|
|
203
|
+
filterOption: (pattern: string, option: import('vue-element-plus-x/types/MentionSender').MentionOption) => boolean;
|
|
204
|
+
whole: boolean;
|
|
205
|
+
checkIsWhole: (pattern: string, prefix: string) => boolean;
|
|
206
|
+
triggerLoading: boolean;
|
|
207
|
+
triggerStrings: string[];
|
|
208
|
+
triggerSplit: string;
|
|
209
|
+
triggerPopoverPlacement: "bottom" | "top";
|
|
210
|
+
triggerPopoverOffset: number;
|
|
211
|
+
}> & Omit<Readonly<import('vue-element-plus-x/types/MentionSender').MentionSenderProps> & Readonly<{
|
|
212
|
+
onSearch?: ((pattern: string, prefix: string) => any) | undefined;
|
|
213
|
+
onSelect?: ((option: import('vue-element-plus-x/types/MentionSender').MentionOption, prefix: string) => any) | undefined;
|
|
214
|
+
onCancel?: ((internalValue: string) => any) | undefined;
|
|
215
|
+
onSubmit?: ((internalValue: string) => any) | undefined;
|
|
216
|
+
onPasteFile?: ((firstFile: File, fileList: FileList) => any) | undefined;
|
|
217
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
218
|
+
onRecordingChange?: ((isRecording: boolean) => any) | undefined;
|
|
219
|
+
}>, "variant" | "cancel" | "clear" | "blur" | "focus" | "openHeader" | "closeHeader" | "placeholder" | "submit" | "submitBtnDisabled" | "modelValue" | "autoSize" | "submitType" | "headerAnimationTimer" | "inputWidth" | "showUpdown" | "inputStyle" | "options" | "filterOption" | "whole" | "checkIsWhole" | "triggerLoading" | "triggerStrings" | "triggerSplit" | "triggerPopoverPlacement" | "triggerPopoverOffset" | "startRecognition" | "stopRecognition" | "popoverVisible" | "inputInstance"> & {
|
|
220
|
+
openHeader: () => false | undefined;
|
|
221
|
+
closeHeader: () => void;
|
|
222
|
+
clear: () => void;
|
|
223
|
+
blur: () => false | undefined;
|
|
224
|
+
focus: (type?: string) => false | undefined;
|
|
225
|
+
submit: () => void;
|
|
226
|
+
cancel: () => void;
|
|
227
|
+
startRecognition: () => void;
|
|
228
|
+
stopRecognition: () => void;
|
|
229
|
+
popoverVisible: globalThis.ComputedRef<any>;
|
|
230
|
+
inputInstance: globalThis.ComputedRef<any>;
|
|
231
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
232
|
+
$slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
233
|
+
}) | null;
|
|
234
|
+
senderHeaderRef: ({
|
|
235
|
+
$: import('vue').ComponentInternalInstance;
|
|
236
|
+
$data: {};
|
|
237
|
+
$props: {
|
|
238
|
+
readonly greeting?: string | undefined;
|
|
239
|
+
readonly swiftAsk?: string[] | undefined;
|
|
240
|
+
readonly logoUrl?: string | undefined;
|
|
241
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
242
|
+
$attrs: import('vue').Attrs;
|
|
243
|
+
$refs: {
|
|
244
|
+
[x: string]: unknown;
|
|
245
|
+
};
|
|
246
|
+
$slots: Readonly<{
|
|
247
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
248
|
+
}>;
|
|
249
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
250
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
251
|
+
$host: Element | null;
|
|
252
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
253
|
+
$el: HTMLDivElement;
|
|
254
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
255
|
+
greeting?: string;
|
|
256
|
+
swiftAsk?: string[];
|
|
257
|
+
logoUrl?: string;
|
|
258
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
259
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
260
|
+
created?: (() => void) | (() => void)[];
|
|
261
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
262
|
+
mounted?: (() => void) | (() => void)[];
|
|
263
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
264
|
+
updated?: (() => void) | (() => void)[];
|
|
265
|
+
activated?: (() => void) | (() => void)[];
|
|
266
|
+
deactivated?: (() => void) | (() => void)[];
|
|
267
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
268
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
269
|
+
destroyed?: (() => void) | (() => void)[];
|
|
270
|
+
unmounted?: (() => void) | (() => void)[];
|
|
271
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
272
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
273
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
274
|
+
};
|
|
275
|
+
$forceUpdate: () => void;
|
|
276
|
+
$nextTick: typeof import('vue').nextTick;
|
|
277
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
278
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
279
|
+
greeting?: string;
|
|
280
|
+
swiftAsk?: string[];
|
|
281
|
+
logoUrl?: string;
|
|
282
|
+
}> & Readonly<{}>, never> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
283
|
+
$slots: {
|
|
284
|
+
logo?(_: {
|
|
285
|
+
size: "25px";
|
|
286
|
+
mode: string;
|
|
287
|
+
}): any;
|
|
288
|
+
};
|
|
289
|
+
}) | null;
|
|
290
|
+
};
|
|
291
|
+
rootEl: HTMLDivElement;
|
|
292
|
+
};
|
|
293
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
294
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
295
|
+
"update:sessionInfo": (value: XConversationItem) => any;
|
|
296
|
+
} & {
|
|
297
|
+
sessionEnable: (data: XConversationItem) => any;
|
|
298
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
299
|
+
onSessionEnable?: ((data: XConversationItem) => any) | undefined;
|
|
300
|
+
"onUpdate:sessionInfo"?: ((value: XConversationItem) => any) | undefined;
|
|
301
|
+
}>, {
|
|
302
|
+
showThink: boolean;
|
|
303
|
+
showTitle: boolean;
|
|
304
|
+
bubbleMaxWidth: string;
|
|
305
|
+
titleHeight: number | string;
|
|
306
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
307
|
+
bubbleListExpose: {
|
|
308
|
+
scrollToTop: () => void;
|
|
309
|
+
scrollToBottom: () => void;
|
|
310
|
+
scrollToBubble: (index: number) => void;
|
|
311
|
+
} | null;
|
|
312
|
+
senderExpose: ({
|
|
313
|
+
$: import('vue').ComponentInternalInstance;
|
|
314
|
+
$data: {};
|
|
315
|
+
$props: {
|
|
316
|
+
readonly modelValue?: string | undefined;
|
|
317
|
+
readonly placeholder?: string | undefined;
|
|
318
|
+
readonly autoSize?: {
|
|
319
|
+
minRows: number;
|
|
320
|
+
maxRows: number;
|
|
321
|
+
} | undefined;
|
|
322
|
+
readonly readOnly?: boolean | undefined;
|
|
323
|
+
readonly disabled?: boolean | undefined;
|
|
324
|
+
readonly loading?: boolean | undefined;
|
|
325
|
+
readonly clearable?: boolean | undefined;
|
|
326
|
+
readonly allowSpeech?: boolean | undefined;
|
|
327
|
+
readonly submitType?: "enter" | "shiftEnter" | "cmdOrCtrlEnter" | "altEnter" | undefined;
|
|
328
|
+
readonly headerAnimationTimer?: number | undefined;
|
|
329
|
+
readonly inputWidth?: string | undefined;
|
|
330
|
+
readonly variant?: "default" | "updown" | undefined;
|
|
331
|
+
readonly showUpdown?: boolean | undefined;
|
|
332
|
+
readonly submitBtnDisabled?: boolean | undefined;
|
|
333
|
+
readonly inputStyle?: string | CSSProperties | CSSProperties[] | string[];
|
|
334
|
+
readonly options?: import('vue-element-plus-x/types/MentionSender').MentionOption[] | undefined;
|
|
335
|
+
readonly filterOption?: ((pattern: string, option: import('vue-element-plus-x/types/MentionSender').MentionOption) => boolean) | undefined;
|
|
336
|
+
readonly whole?: boolean | undefined;
|
|
337
|
+
readonly checkIsWhole?: ((pattern: string, prefix: string) => boolean) | undefined;
|
|
338
|
+
readonly triggerLoading?: boolean | undefined;
|
|
339
|
+
readonly triggerStrings?: string[] | undefined;
|
|
340
|
+
readonly triggerSplit?: string | undefined;
|
|
341
|
+
readonly triggerPopoverPlacement?: "bottom" | "top" | undefined;
|
|
342
|
+
readonly triggerPopoverOffset?: number | undefined;
|
|
343
|
+
readonly onSearch?: ((pattern: string, prefix: string) => any) | undefined | undefined;
|
|
344
|
+
readonly onSelect?: ((option: import('vue-element-plus-x/types/MentionSender').MentionOption, prefix: string) => any) | undefined | undefined;
|
|
345
|
+
readonly onCancel?: ((internalValue: string) => any) | undefined | undefined;
|
|
346
|
+
readonly onSubmit?: ((internalValue: string) => any) | undefined | undefined;
|
|
347
|
+
readonly onPasteFile?: ((firstFile: File, fileList: FileList) => any) | undefined | undefined;
|
|
348
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
349
|
+
readonly onRecordingChange?: ((isRecording: boolean) => any) | undefined | undefined;
|
|
350
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
351
|
+
$attrs: import('vue').Attrs;
|
|
352
|
+
$refs: {
|
|
353
|
+
[x: string]: unknown;
|
|
354
|
+
} & {
|
|
355
|
+
senderRef: HTMLDivElement;
|
|
356
|
+
inputRef: unknown;
|
|
357
|
+
};
|
|
358
|
+
$slots: Readonly<{
|
|
359
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
360
|
+
}>;
|
|
361
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
362
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
363
|
+
$host: Element | null;
|
|
364
|
+
$emit: ((event: "cancel", internalValue: string) => void) & ((event: "search", pattern: string, prefix: string) => void) & ((event: "select", option: import('vue-element-plus-x/types/MentionSender').MentionOption, prefix: string) => void) & ((event: "submit", internalValue: string) => void) & ((event: "pasteFile", firstFile: File, fileList: FileList) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "recordingChange", isRecording: boolean) => void);
|
|
365
|
+
$el: HTMLDivElement;
|
|
366
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue-element-plus-x/types/MentionSender').MentionSenderProps> & Readonly<{
|
|
367
|
+
onSearch?: ((pattern: string, prefix: string) => any) | undefined;
|
|
368
|
+
onSelect?: ((option: import('vue-element-plus-x/types/MentionSender').MentionOption, prefix: string) => any) | undefined;
|
|
369
|
+
onCancel?: ((internalValue: string) => any) | undefined;
|
|
370
|
+
onSubmit?: ((internalValue: string) => any) | undefined;
|
|
371
|
+
onPasteFile?: ((firstFile: File, fileList: FileList) => any) | undefined;
|
|
372
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
373
|
+
onRecordingChange?: ((isRecording: boolean) => any) | undefined;
|
|
374
|
+
}>, {
|
|
375
|
+
openHeader: () => false | undefined;
|
|
376
|
+
closeHeader: () => void;
|
|
377
|
+
clear: () => void;
|
|
378
|
+
blur: () => false | undefined;
|
|
379
|
+
focus: (type?: string) => false | undefined;
|
|
380
|
+
submit: () => void;
|
|
381
|
+
cancel: () => void;
|
|
382
|
+
startRecognition: () => void;
|
|
383
|
+
stopRecognition: () => void;
|
|
384
|
+
popoverVisible: globalThis.ComputedRef<any>;
|
|
385
|
+
inputInstance: globalThis.ComputedRef<any>;
|
|
386
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
387
|
+
search: (pattern: string, prefix: string) => any;
|
|
388
|
+
select: (option: import('vue-element-plus-x/types/MentionSender').MentionOption, prefix: string) => any;
|
|
389
|
+
cancel: (internalValue: string) => any;
|
|
390
|
+
submit: (internalValue: string) => any;
|
|
391
|
+
pasteFile: (firstFile: File, fileList: FileList) => any;
|
|
392
|
+
"update:modelValue": (value: string) => any;
|
|
393
|
+
recordingChange: (isRecording: boolean) => any;
|
|
394
|
+
}, string, {
|
|
395
|
+
options: import('vue-element-plus-x/types/MentionSender').MentionOption[];
|
|
396
|
+
placeholder: string;
|
|
397
|
+
variant: "default" | "updown";
|
|
398
|
+
submitType: "enter" | "shiftEnter" | "cmdOrCtrlEnter" | "altEnter";
|
|
399
|
+
headerAnimationTimer: number;
|
|
400
|
+
modelValue: string;
|
|
401
|
+
autoSize: {
|
|
402
|
+
minRows: number;
|
|
403
|
+
maxRows: number;
|
|
404
|
+
};
|
|
405
|
+
inputWidth: string;
|
|
406
|
+
showUpdown: boolean;
|
|
407
|
+
submitBtnDisabled: boolean;
|
|
408
|
+
inputStyle: string | CSSProperties | CSSProperties[] | string[];
|
|
409
|
+
filterOption: (pattern: string, option: import('vue-element-plus-x/types/MentionSender').MentionOption) => boolean;
|
|
410
|
+
whole: boolean;
|
|
411
|
+
checkIsWhole: (pattern: string, prefix: string) => boolean;
|
|
412
|
+
triggerLoading: boolean;
|
|
413
|
+
triggerStrings: string[];
|
|
414
|
+
triggerSplit: string;
|
|
415
|
+
triggerPopoverPlacement: "bottom" | "top";
|
|
416
|
+
triggerPopoverOffset: number;
|
|
417
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
418
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
419
|
+
created?: (() => void) | (() => void)[];
|
|
420
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
421
|
+
mounted?: (() => void) | (() => void)[];
|
|
422
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
423
|
+
updated?: (() => void) | (() => void)[];
|
|
424
|
+
activated?: (() => void) | (() => void)[];
|
|
425
|
+
deactivated?: (() => void) | (() => void)[];
|
|
426
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
427
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
428
|
+
destroyed?: (() => void) | (() => void)[];
|
|
429
|
+
unmounted?: (() => void) | (() => void)[];
|
|
430
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
431
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
432
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
433
|
+
};
|
|
434
|
+
$forceUpdate: () => void;
|
|
435
|
+
$nextTick: typeof import('vue').nextTick;
|
|
436
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
437
|
+
} & Readonly<{
|
|
438
|
+
options: import('vue-element-plus-x/types/MentionSender').MentionOption[];
|
|
439
|
+
placeholder: string;
|
|
440
|
+
variant: "default" | "updown";
|
|
441
|
+
submitType: "enter" | "shiftEnter" | "cmdOrCtrlEnter" | "altEnter";
|
|
442
|
+
headerAnimationTimer: number;
|
|
443
|
+
modelValue: string;
|
|
444
|
+
autoSize: {
|
|
445
|
+
minRows: number;
|
|
446
|
+
maxRows: number;
|
|
447
|
+
};
|
|
448
|
+
inputWidth: string;
|
|
449
|
+
showUpdown: boolean;
|
|
450
|
+
submitBtnDisabled: boolean;
|
|
451
|
+
inputStyle: string | CSSProperties | CSSProperties[] | string[];
|
|
452
|
+
filterOption: (pattern: string, option: import('vue-element-plus-x/types/MentionSender').MentionOption) => boolean;
|
|
453
|
+
whole: boolean;
|
|
454
|
+
checkIsWhole: (pattern: string, prefix: string) => boolean;
|
|
455
|
+
triggerLoading: boolean;
|
|
456
|
+
triggerStrings: string[];
|
|
457
|
+
triggerSplit: string;
|
|
458
|
+
triggerPopoverPlacement: "bottom" | "top";
|
|
459
|
+
triggerPopoverOffset: number;
|
|
460
|
+
}> & Omit<Readonly<import('vue-element-plus-x/types/MentionSender').MentionSenderProps> & Readonly<{
|
|
461
|
+
onSearch?: ((pattern: string, prefix: string) => any) | undefined;
|
|
462
|
+
onSelect?: ((option: import('vue-element-plus-x/types/MentionSender').MentionOption, prefix: string) => any) | undefined;
|
|
463
|
+
onCancel?: ((internalValue: string) => any) | undefined;
|
|
464
|
+
onSubmit?: ((internalValue: string) => any) | undefined;
|
|
465
|
+
onPasteFile?: ((firstFile: File, fileList: FileList) => any) | undefined;
|
|
466
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
467
|
+
onRecordingChange?: ((isRecording: boolean) => any) | undefined;
|
|
468
|
+
}>, "variant" | "cancel" | "clear" | "blur" | "focus" | "openHeader" | "closeHeader" | "placeholder" | "submit" | "submitBtnDisabled" | "modelValue" | "autoSize" | "submitType" | "headerAnimationTimer" | "inputWidth" | "showUpdown" | "inputStyle" | "options" | "filterOption" | "whole" | "checkIsWhole" | "triggerLoading" | "triggerStrings" | "triggerSplit" | "triggerPopoverPlacement" | "triggerPopoverOffset" | "startRecognition" | "stopRecognition" | "popoverVisible" | "inputInstance"> & {
|
|
469
|
+
openHeader: () => false | undefined;
|
|
470
|
+
closeHeader: () => void;
|
|
471
|
+
clear: () => void;
|
|
472
|
+
blur: () => false | undefined;
|
|
473
|
+
focus: (type?: string) => false | undefined;
|
|
474
|
+
submit: () => void;
|
|
475
|
+
cancel: () => void;
|
|
476
|
+
startRecognition: () => void;
|
|
477
|
+
stopRecognition: () => void;
|
|
478
|
+
popoverVisible: globalThis.ComputedRef<any>;
|
|
479
|
+
inputInstance: globalThis.ComputedRef<any>;
|
|
480
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
481
|
+
$slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
482
|
+
}) | null;
|
|
483
|
+
senderHeaderRef: ({
|
|
484
|
+
$: import('vue').ComponentInternalInstance;
|
|
485
|
+
$data: {};
|
|
486
|
+
$props: {
|
|
487
|
+
readonly greeting?: string | undefined;
|
|
488
|
+
readonly swiftAsk?: string[] | undefined;
|
|
489
|
+
readonly logoUrl?: string | undefined;
|
|
490
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
491
|
+
$attrs: import('vue').Attrs;
|
|
492
|
+
$refs: {
|
|
493
|
+
[x: string]: unknown;
|
|
494
|
+
};
|
|
495
|
+
$slots: Readonly<{
|
|
496
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
497
|
+
}>;
|
|
498
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
499
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
500
|
+
$host: Element | null;
|
|
501
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
502
|
+
$el: HTMLDivElement;
|
|
503
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
504
|
+
greeting?: string;
|
|
505
|
+
swiftAsk?: string[];
|
|
506
|
+
logoUrl?: string;
|
|
507
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
508
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
509
|
+
created?: (() => void) | (() => void)[];
|
|
510
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
511
|
+
mounted?: (() => void) | (() => void)[];
|
|
512
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
513
|
+
updated?: (() => void) | (() => void)[];
|
|
514
|
+
activated?: (() => void) | (() => void)[];
|
|
515
|
+
deactivated?: (() => void) | (() => void)[];
|
|
516
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
517
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
518
|
+
destroyed?: (() => void) | (() => void)[];
|
|
519
|
+
unmounted?: (() => void) | (() => void)[];
|
|
520
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
521
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
522
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
523
|
+
};
|
|
524
|
+
$forceUpdate: () => void;
|
|
525
|
+
$nextTick: typeof import('vue').nextTick;
|
|
526
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
527
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
528
|
+
greeting?: string;
|
|
529
|
+
swiftAsk?: string[];
|
|
530
|
+
logoUrl?: string;
|
|
531
|
+
}> & Readonly<{}>, never> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
532
|
+
$slots: {
|
|
533
|
+
logo?(_: {
|
|
534
|
+
size: "25px";
|
|
535
|
+
mode: string;
|
|
536
|
+
}): any;
|
|
537
|
+
};
|
|
538
|
+
}) | null;
|
|
539
|
+
}, HTMLDivElement>;
|
|
540
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
541
|
+
export default _default;
|
|
542
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
543
|
+
new (): {
|
|
544
|
+
$slots: S;
|
|
545
|
+
};
|
|
546
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AiDataPart, AiDialogueGroupProps, AiToolPart, XBubbleListItemProps } from '../../types';
|
|
2
|
+
type __VLS_Props = AiDialogueGroupProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
"isCollapsed"?: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<{
|
|
9
|
+
/** 业务 data part 渲染口(透传 AiDialogue)。 */
|
|
10
|
+
part: (props: {
|
|
11
|
+
part: AiDataPart;
|
|
12
|
+
item: XBubbleListItemProps;
|
|
13
|
+
}) => unknown;
|
|
14
|
+
/** 工具调用 part 渲染口(透传 AiDialogue)。 */
|
|
15
|
+
tool: (props: {
|
|
16
|
+
part: AiToolPart;
|
|
17
|
+
item: XBubbleListItemProps;
|
|
18
|
+
}) => unknown;
|
|
19
|
+
}> & {
|
|
20
|
+
/** 业务 data part 渲染口(透传 AiDialogue)。 */
|
|
21
|
+
part: (props: {
|
|
22
|
+
part: AiDataPart;
|
|
23
|
+
item: XBubbleListItemProps;
|
|
24
|
+
}) => unknown;
|
|
25
|
+
/** 工具调用 part 渲染口(透传 AiDialogue)。 */
|
|
26
|
+
tool: (props: {
|
|
27
|
+
part: AiToolPart;
|
|
28
|
+
item: XBubbleListItemProps;
|
|
29
|
+
}) => unknown;
|
|
30
|
+
};
|
|
31
|
+
refs: {};
|
|
32
|
+
rootEl: HTMLDivElement;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
"update:isCollapsed": (value: boolean) => any;
|
|
37
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
38
|
+
"onUpdate:isCollapsed"?: ((value: boolean) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
showThink: boolean;
|
|
41
|
+
showTitle: boolean;
|
|
42
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
43
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DensityMode } from '../../hooks/use-density';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/**
|
|
4
|
+
* 设备档 override:默认 `auto`(按 UA 判设备)。`mobile`/`desktop` 强制——
|
|
5
|
+
* 用于 demo 档对照、受控场景或异常 UA 兜底。
|
|
6
|
+
*/
|
|
7
|
+
density?: DensityMode;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = {
|
|
10
|
+
"show"?: boolean;
|
|
11
|
+
} & __VLS_Props;
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: {
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {
|
|
18
|
+
wrapRef: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
rootEl: any;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
"update:show": (value: boolean) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
density: DensityMode;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
|
+
wrapRef: HTMLDivElement;
|
|
31
|
+
}, any>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|