@blueking/chat-x 0.0.6 → 0.0.8
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/ai-selection/ai-selection.vue.d.ts +2 -2
- package/dist/components/chat-content/content-render/content-render.vue.d.ts +8 -2
- package/dist/components/chat-content/markdown-content/markdown-content.vue.d.ts +16 -2
- package/dist/components/chat-message/message-render/message-render.vue.d.ts +5 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/markdown-token/code-content/code-content.vue.d.ts +14 -1
- package/dist/composables/use-global-config.d.ts +6 -8
- package/dist/index.css +1 -1
- package/dist/index.js +1916 -1902
- package/dist/index.js.map +1 -1
- package/dist/lang/lang.d.ts +1 -4
- package/dist/mcp/generated/docs/activity-message.md +0 -2
- package/dist/mcp/generated/docs/chat-container.md +39 -1
- package/dist/mcp/generated/docs/code-content.md +7 -0
- package/dist/mcp/generated/docs/content-render.md +4 -3
- package/dist/mcp/generated/docs/markdown-content.md +25 -10
- package/dist/mcp/generated/docs/message-render.md +4 -3
- package/dist/mcp/generated/docs/use-global-config.md +66 -95
- package/dist/mcp/generated/docs/user-message.md +4 -0
- package/dist/mcp/generated/index.json +4 -36
- package/package.json +2 -2
- package/dist/components/chat-message/flow-message/flow-detail.vue.d.ts +0 -11
- package/dist/components/chat-message/flow-message/flow-message.vue.d.ts +0 -4
- package/dist/components/chat-message/flow-message/flow-node-group.vue.d.ts +0 -12
- package/dist/components/chat-message/flow-message/flow-node-item.vue.d.ts +0 -11
- package/dist/components/chat-message/flow-message/flow-status-icons.d.ts +0 -36
- package/dist/components/chat-message/flow-message/index.d.ts +0 -6
- package/dist/components/chat-message/flow-message/mock.d.ts +0 -13
- package/dist/components/chat-message/flow-message/types.d.ts +0 -132
- package/dist/mcp/generated/docs/flow-message.md +0 -305
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Shortcut } from '../../types';
|
|
2
2
|
import 'tippy.js/dist/tippy.css';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
+
excludeSelectors?: string[];
|
|
4
5
|
maxShortcutCount?: number;
|
|
5
6
|
offset?: number;
|
|
6
7
|
shortcuts?: Shortcut[];
|
|
7
|
-
excludeSelectors?: string[];
|
|
8
8
|
};
|
|
9
9
|
type __VLS_ModelProps = {
|
|
10
10
|
'visible': boolean;
|
|
@@ -27,9 +27,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
27
27
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
offset: number;
|
|
30
|
+
excludeSelectors: string[];
|
|
30
31
|
maxShortcutCount: number;
|
|
31
32
|
shortcuts: Shortcut[];
|
|
32
|
-
excludeSelectors: string[];
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { type VNode } from 'vue';
|
|
1
2
|
import { MessageStatus } from '../../../ag-ui/types';
|
|
2
3
|
import type { ContentMap, ContentType } from '../../../ag-ui/types/contents';
|
|
4
|
+
import type { Token } from '../../../markdown-it';
|
|
3
5
|
declare const __VLS_export: <T extends ContentType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
6
|
props: __VLS_PrettifyLocal<{
|
|
5
7
|
content: ContentMap[T];
|
|
@@ -11,9 +13,13 @@ declare const __VLS_export: <T extends ContentType>(__VLS_props: NonNullable<Awa
|
|
|
11
13
|
expose: (exposed: {}) => void;
|
|
12
14
|
attrs: any;
|
|
13
15
|
slots: {
|
|
14
|
-
|
|
16
|
+
codeHeader: (props: {
|
|
17
|
+
language: string;
|
|
18
|
+
token: Token[];
|
|
19
|
+
}) => null | undefined | VNode;
|
|
20
|
+
default: (props: {
|
|
15
21
|
content: ContentMap[T];
|
|
16
|
-
}) =>
|
|
22
|
+
}) => null | undefined | VNode;
|
|
17
23
|
};
|
|
18
24
|
emit: {};
|
|
19
25
|
}>) => import("vue").VNode & {
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
+
import { type VNode } from 'vue';
|
|
1
2
|
import { MessageStatus } from '../../../ag-ui/types/constants';
|
|
2
|
-
import '
|
|
3
|
+
import type { Token } from 'markdown-it/index.js';
|
|
4
|
+
import 'github-markdown-css/github-markdown.css';
|
|
3
5
|
import 'highlight.js/styles/atom-one-dark.min.css';
|
|
4
6
|
import 'katex/dist/katex.min.css';
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
codeHeader: (props: {
|
|
9
|
+
language: string;
|
|
10
|
+
token: Token[];
|
|
11
|
+
}) => null | undefined | VNode;
|
|
12
|
+
};
|
|
5
13
|
type __VLS_Props = {
|
|
6
14
|
content?: string;
|
|
7
15
|
status?: MessageStatus;
|
|
8
16
|
};
|
|
9
|
-
declare const
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
19
|
declare const _default: typeof __VLS_export;
|
|
11
20
|
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type VNode } from 'vue';
|
|
2
2
|
import type { Message, MessageStatus } from '../../../ag-ui/types';
|
|
3
|
+
import type { Token } from '../../../markdown-it';
|
|
3
4
|
import type { MessageToolsProps } from '../../message-tools/message-tools.vue';
|
|
4
5
|
import type { UserMessageActionsProps } from '../user-message/user-message.vue';
|
|
5
6
|
type __VLS_Slots = {
|
|
7
|
+
codeHeader: (props: {
|
|
8
|
+
language: string;
|
|
9
|
+
token: Token[];
|
|
10
|
+
}) => null | undefined | VNode;
|
|
6
11
|
default: (props: {
|
|
7
12
|
content: string;
|
|
8
13
|
status: MessageStatus;
|
|
@@ -16,4 +16,5 @@ import MessageLoading from './message-loading/message-loading.vue';
|
|
|
16
16
|
import MessageTools from './message-tools/message-tools.vue';
|
|
17
17
|
import MessageUserFeedback from './message-tools/user-feedback/user-feedback.vue';
|
|
18
18
|
import SelectionFooter from './selection-footer/selection-footer.vue';
|
|
19
|
-
|
|
19
|
+
import ToolCallRender from './tool-call/toolcall-render/toolcall-render.vue';
|
|
20
|
+
export { AiImage, AiSelection, ChatContainer, ChatInput, ContentRender, ExecutionSummary, HighlightKeyword, ImagePreview, ImagePreviewGroup, MessageContainer, MessageLoading, MessageRender, MessageTools, MessageUserFeedback, SelectionFooter, ShortcutBtn, ShortcutBtns, ShortcutRender, ToolCallRender, };
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { type VNode } from 'vue';
|
|
1
2
|
import type { Token } from '../../../markdown-it';
|
|
2
3
|
import 'highlight.js/styles/github-dark.css';
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
header: (props: {
|
|
6
|
+
language: string;
|
|
7
|
+
token: Token[];
|
|
8
|
+
}) => null | undefined | VNode;
|
|
9
|
+
};
|
|
3
10
|
type __VLS_Props = {
|
|
4
11
|
token: Token[];
|
|
5
12
|
};
|
|
6
|
-
declare const
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
14
|
mounted: (payload: {
|
|
8
15
|
el: HTMLElement | null;
|
|
9
16
|
}) => any;
|
|
@@ -12,5 +19,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
19
|
el: HTMLElement | null;
|
|
13
20
|
}) => any) | undefined;
|
|
14
21
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
23
|
declare const _default: typeof __VLS_export;
|
|
16
24
|
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { type ComputedRef } from 'vue';
|
|
2
|
-
export declare const
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
export declare const useGlobalConfig: () => {
|
|
6
|
-
messageSlotId: ComputedRef<string>;
|
|
7
|
-
readonly rawMessageSlotId: string;
|
|
2
|
+
export declare const GLOBAL_CONFIG_TOKEN: unique symbol;
|
|
3
|
+
export type GlobalConfig = {
|
|
4
|
+
supportUpload: ComputedRef<boolean>;
|
|
8
5
|
};
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
6
|
+
export declare const useGlobalConfig: (options: GlobalConfig) => {
|
|
7
|
+
supportUpload: ComputedRef<boolean>;
|
|
11
8
|
};
|
|
9
|
+
export declare const injectGlobalConfig: () => GlobalConfig | undefined;
|