@blueking/chat-x 0.0.52-dev.3 → 0.0.52-dev.4
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/dist/components/chat-input/chat-input.vue.d.ts +8 -8
- package/dist/components/chat-input/input-menu/index.d.ts +1 -0
- package/dist/components/chat-input/input-menu/input-menu.vue.d.ts +32 -0
- package/dist/components/chat-input/model-selector/model-selector.vue.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1089 -1031
- package/dist/index.js.map +1 -1
- package/dist/mcp/generated/docs/chat-input.md +11 -11
- package/dist/mcp/generated/docs/input-menu-panel.md +4 -3
- package/dist/mcp/generated/docs/model-selector.md +1 -0
- package/dist/mcp/generated/index.json +3 -3
- package/dist/mcp/index.js +0 -0
- package/package.json +21 -20
- package/skills/blueking-chat-x/references/components/chat-input.md +11 -11
- package/skills/blueking-chat-x/references/components/input-menu-panel.md +4 -3
- package/skills/blueking-chat-x/references/components/model-selector.md +1 -0
|
@@ -46,7 +46,7 @@ type __VLS_ModelProps = {
|
|
|
46
46
|
'selectedModel'?: string;
|
|
47
47
|
};
|
|
48
48
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
49
|
-
declare var __VLS_1: {}, __VLS_3: {},
|
|
49
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_15: {}, __VLS_24: {
|
|
50
50
|
files: {
|
|
51
51
|
data?: string | undefined;
|
|
52
52
|
filename?: string | undefined;
|
|
@@ -70,24 +70,24 @@ declare var __VLS_1: {}, __VLS_3: {}, __VLS_14: {}, __VLS_23: {
|
|
|
70
70
|
} | undefined;
|
|
71
71
|
status?: UploadStatus | undefined;
|
|
72
72
|
}[];
|
|
73
|
-
},
|
|
73
|
+
}, __VLS_62: {}, __VLS_86: {
|
|
74
74
|
models: IModelOption[] | undefined;
|
|
75
75
|
selectedModel: string | undefined;
|
|
76
|
-
},
|
|
76
|
+
}, __VLS_97: {};
|
|
77
77
|
type __VLS_Slots = {} & {
|
|
78
78
|
top?: (props: typeof __VLS_1) => any;
|
|
79
79
|
} & {
|
|
80
80
|
interrupt?: (props: typeof __VLS_3) => any;
|
|
81
81
|
} & {
|
|
82
|
-
'input-header'?: (props: typeof
|
|
82
|
+
'input-header'?: (props: typeof __VLS_15) => any;
|
|
83
83
|
} & {
|
|
84
|
-
files?: (props: typeof
|
|
84
|
+
files?: (props: typeof __VLS_24) => any;
|
|
85
85
|
} & {
|
|
86
|
-
attachment?: (props: typeof
|
|
86
|
+
attachment?: (props: typeof __VLS_62) => any;
|
|
87
87
|
} & {
|
|
88
|
-
'model-selector'?: (props: typeof
|
|
88
|
+
'model-selector'?: (props: typeof __VLS_86) => any;
|
|
89
89
|
} & {
|
|
90
|
-
'send-icon'?: (props: typeof
|
|
90
|
+
'send-icon'?: (props: typeof __VLS_97) => any;
|
|
91
91
|
};
|
|
92
92
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
93
93
|
focus: () => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { CHAR_TRIGGERS, DEFAULT_GROUP_ITEM_LIMIT, MENU_GROUP_DEFS, TRIGGER_GROUP_KEYS } from './constants';
|
|
2
2
|
export type { MenuGroupKey } from './constants';
|
|
3
|
+
export { default as InputMenu } from './input-menu.vue';
|
|
3
4
|
export { default as InputMenuPanel } from './input-menu-panel.vue';
|
|
4
5
|
export { useInputMenu } from './use-input-menu';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AITippyProps, IInputMenuGroup, IInputMenuItem } from '../../../types';
|
|
2
|
+
import 'tippy.js/dist/tippy.css';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** 当前可见且可选中的条目,顺序与面板一致 */
|
|
5
|
+
flatItems: IInputMenuItem[];
|
|
6
|
+
groups: IInputMenuGroup[];
|
|
7
|
+
/** 透传给 tippy 的额外配置(全屏时由上层覆盖 appendTo) */
|
|
8
|
+
tippyOptions?: AITippyProps;
|
|
9
|
+
/** 菜单是否展开;由触发态与是否有条目共同决定 */
|
|
10
|
+
visible: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_9: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_9) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
|
+
select: (item: IInputMenuItem) => any;
|
|
18
|
+
close: () => any;
|
|
19
|
+
toggleGroup: (key: string) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onSelect?: ((item: IInputMenuItem) => any) | undefined;
|
|
22
|
+
onClose?: (() => any) | undefined;
|
|
23
|
+
onToggleGroup?: ((key: string) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -22,9 +22,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
22
22
|
"update:modelValue": (value: string | undefined) => any;
|
|
23
23
|
} & {
|
|
24
24
|
change: (model: IModelOption) => any;
|
|
25
|
+
show: () => any;
|
|
25
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
27
|
onChange?: ((model: IModelOption) => any) | undefined;
|
|
27
28
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
29
|
+
onShow?: (() => any) | undefined;
|
|
28
30
|
}>, {
|
|
29
31
|
placeholder: string;
|
|
30
32
|
searchPlaceholder: string;
|