@blueking/chat-x 0.0.3-beta.4 → 0.0.3-beta.7

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.
Files changed (35) hide show
  1. package/dist/ag-ui/types/constants.d.ts +2 -0
  2. package/dist/ag-ui/types/contents.d.ts +29 -4
  3. package/dist/ag-ui/types/messages.d.ts +3 -3
  4. package/dist/common/constants.d.ts +4 -0
  5. package/dist/components/ai-shortcut/shortcut-render/shortcut-render.vue.d.ts +4 -0
  6. package/dist/components/chat-content/activity-layout/activity-layout.vue.d.ts +29 -0
  7. package/dist/components/chat-content/flow-agent-content/detail-section.vue.d.ts +16 -0
  8. package/dist/components/chat-content/flow-agent-content/flow-agent-content.vue.d.ts +17 -0
  9. package/dist/components/chat-content/flow-agent-content/flow-agent-node-detail.vue.d.ts +22 -0
  10. package/dist/components/chat-content/flow-agent-content/simple-table.vue.d.ts +12 -0
  11. package/dist/components/chat-content/knowledge-rag-content/knowledge-rag-content.vue.d.ts +17 -0
  12. package/dist/components/chat-content/reference-doc-content/reference-doc-content.vue.d.ts +15 -0
  13. package/dist/components/chat-input/chat-input.vue.d.ts +5 -0
  14. package/dist/components/chat-message/message-container/message-container.vue.d.ts +22 -12344
  15. package/dist/components/execution-summary/execution-summary.vue.d.ts +13 -0
  16. package/dist/components/highlight-keyword/highlight-keyword.d.ts +15 -0
  17. package/dist/components/index.d.ts +6 -1
  18. package/dist/components/message-loading/message-loading.vue.d.ts +33 -0
  19. package/dist/components/selection-footer/selection-footer.vue.d.ts +19 -0
  20. package/dist/composables/index.d.ts +2 -0
  21. package/dist/composables/use-common.d.ts +23 -0
  22. package/dist/composables/use-custom-tab.d.ts +31 -0
  23. package/dist/composables/use-message-group.d.ts +37039 -0
  24. package/dist/icons/ai.d.ts +3 -0
  25. package/dist/icons/execution.d.ts +18 -0
  26. package/dist/icons/index.d.ts +1 -0
  27. package/dist/index.css +1 -1
  28. package/dist/index.js +10958 -9456
  29. package/dist/index.js.map +1 -1
  30. package/dist/lang/lang.d.ts +11 -1
  31. package/dist/types/custom.d.ts +60 -0
  32. package/dist/types/index.d.ts +1 -0
  33. package/dist/types/tool.d.ts +1 -1
  34. package/dist/utils/utils.d.ts +2 -1
  35. package/package.json +23 -9
@@ -0,0 +1,13 @@
1
+ import type { MessageGroup } from '../../composables';
2
+ type __VLS_Props = {
3
+ messageGroups: MessageGroup[];
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ locateMessageGroup: (uuid: string, group: MessageGroup) => any;
7
+ updateKeyword: (keyword: string) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onLocateMessageGroup?: ((uuid: string, group: MessageGroup) => any) | undefined;
10
+ onUpdateKeyword?: ((keyword: string) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import './highlight-keyword.scss';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ text: {
4
+ type: StringConstructor;
5
+ required: true;
6
+ };
7
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
8
+ [key: string]: any;
9
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ text: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
@@ -2,13 +2,18 @@ import AiSelection from './ai-selection/ai-selection.vue';
2
2
  import ShortcutBtn from './ai-shortcut/shortcut-btn/shortcut-btn.vue';
3
3
  import ShortcutBtns from './ai-shortcut/shortcut-btns/shortcut-btns.vue';
4
4
  import ShortcutRender from './ai-shortcut/shortcut-render/shortcut-render.vue';
5
+ import ChatContainer from './chat-container/chat-container.vue';
5
6
  import ContentRender from './chat-content/content-render/content-render.vue';
6
7
  import ChatInput from './chat-input/chat-input.vue';
7
8
  import MessageContainer from './chat-message/message-container/message-container.vue';
8
9
  import MessageRender from './chat-message/message-render/message-render.vue';
10
+ import ExecutionSummary from './execution-summary/execution-summary.vue';
11
+ import HighlightKeyword from './highlight-keyword/highlight-keyword';
9
12
  import ImagePreviewGroup from './image-preview/image-preview-group.vue';
10
13
  import ImagePreview from './image-preview/image-preview.vue';
11
14
  import AiImage from './image-preview/image.vue';
15
+ import MessageLoading from './message-loading/message-loading.vue';
12
16
  import MessageTools from './message-tools/message-tools.vue';
13
17
  import MessageUserFeedback from './message-tools/user-feedback/user-feedback.vue';
14
- export { AiImage, AiSelection, ChatInput, ContentRender, ImagePreview, ImagePreviewGroup, MessageContainer, MessageRender, MessageTools, MessageUserFeedback, ShortcutBtn, ShortcutBtns, ShortcutRender, };
18
+ import SelectionFooter from './selection-footer/selection-footer.vue';
19
+ export { AiImage, AiSelection, ChatContainer, ChatInput, ContentRender, ExecutionSummary, HighlightKeyword, ImagePreview, ImagePreviewGroup, MessageContainer, MessageLoading, MessageRender, MessageTools, MessageUserFeedback, SelectionFooter, ShortcutBtn, ShortcutBtns, ShortcutRender, };
@@ -0,0 +1,33 @@
1
+ type __VLS_Props = {
2
+ /** 单次循环时长(秒),与原版 motion duration 一致 */
3
+ duration?: number;
4
+ /** 图标与文字间距(px) */
5
+ gap?: number;
6
+ /** 图标边长(px),viewBox 24×24 等比缩放 */
7
+ iconSize?: number;
8
+ /** 相邻字符动画延迟(秒) */
9
+ stagger?: number;
10
+ /** 逐字动画的文案;使用插槽 #text 时可不传 */
11
+ text?: string;
12
+ };
13
+ declare var __VLS_1: {}, __VLS_9: {};
14
+ type __VLS_Slots = {} & {
15
+ icon?: (props: typeof __VLS_1) => any;
16
+ } & {
17
+ text?: (props: typeof __VLS_9) => any;
18
+ };
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
+ text: string;
21
+ duration: number;
22
+ gap: number;
23
+ iconSize: number;
24
+ stagger: number;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ /** 是否全选 */
3
+ isAllSelected: boolean;
4
+ /** 是否加载中 */
5
+ loading?: boolean;
6
+ /** 已选数量 */
7
+ selectedCount: number;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ cancel: () => any;
11
+ confirm: () => any;
12
+ "toggle-all": (checked: boolean) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onCancel?: (() => any) | undefined;
15
+ onConfirm?: (() => any) | undefined;
16
+ "onToggle-all"?: ((checked: boolean) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -2,7 +2,9 @@ export * from './use-animation-text';
2
2
  export * from './use-clipboard';
3
3
  export * from './use-command-selection';
4
4
  export * from './use-container-scroll';
5
+ export * from './use-custom-tab';
5
6
  export * from './use-global-config';
6
7
  export * from './use-menu-keydown';
8
+ export * from './use-message-group';
7
9
  export * from './use-observer-visible-list';
8
10
  export * from './use-parent-scrolling';
@@ -0,0 +1,23 @@
1
+ import { type ComputedRef } from 'vue';
2
+ import type { AITippyProps } from '../types';
3
+ /**
4
+ * 执行情况下的全局搜索关键词 token
5
+ */
6
+ export declare const KEYWORD_TOKEN: unique symbol;
7
+ export declare const COMMON_TIPPY_OPTIONS_TOKEN: unique symbol;
8
+ export declare const useKeywordProvider: () => {
9
+ keyword: import("vue").ShallowRef<string, string>;
10
+ };
11
+ export declare const useCommonTippyProvider: (options: {
12
+ tippyOptions: ComputedRef<AITippyProps | undefined>;
13
+ }) => void;
14
+ export declare const useKeywordInject: () => ComputedRef<string> | undefined;
15
+ export declare const useCommonTippyInject: () => ComputedRef<Partial<Pick<Partial<Omit<import("tippy.js").Props, "content" | "triggerTarget" | "getReferenceClientRect"> & {
16
+ content: import("vue-tippy").TippyContent;
17
+ triggerTarget: import("vue-tippy").TippyTarget;
18
+ getReferenceClientRect: null | (() => DOMRect & any);
19
+ }>, "zIndex" | "appendTo">>> | undefined;
20
+ export declare const useKeywordMatch: (getSearchTexts: () => (string | undefined)[]) => {
21
+ keywordMatched: ComputedRef<boolean | null>;
22
+ keyword: ComputedRef<string> | undefined;
23
+ };
@@ -0,0 +1,31 @@
1
+ import { type ShallowRef } from 'vue';
2
+ import { type CustomTab } from '../types';
3
+ export declare const CUSTOM_TAB_TOKEN: unique symbol;
4
+ export declare const EXECUTION_TAB_NAME = "execution";
5
+ export declare function useCustomTabProvider<T extends Record<string, unknown>>(options: {
6
+ onTabChange?: (tab: CustomTab<T>) => void;
7
+ }): {
8
+ tabs: ShallowRef<CustomTab<T>[], CustomTab<T>[]>;
9
+ selectedTab: import("vue").Ref<{
10
+ data?: import("vue").UnwrapRef<T> | undefined;
11
+ icon?: string | undefined;
12
+ label: string;
13
+ name: string;
14
+ }, CustomTab<T> | {
15
+ data?: import("vue").UnwrapRef<T> | undefined;
16
+ icon?: string | undefined;
17
+ label: string;
18
+ name: string;
19
+ }>;
20
+ isCollapse: ShallowRef<boolean, boolean>;
21
+ addCustomTab: (tab: CustomTab<T>) => void;
22
+ removeCustomTab: (tabName: CustomTab<T>["name"]) => void;
23
+ selectCustomTab: (tab: CustomTab<T>) => void;
24
+ };
25
+ export declare const useCustomTabConsumer: <T extends Record<string, unknown>>() => {
26
+ addCustomTab: (tab: CustomTab<T>) => void;
27
+ removeCustomTab: (tabName: CustomTab<T>["name"]) => void;
28
+ selectCustomTab: (tab: CustomTab<T>) => void;
29
+ selectedTab: ShallowRef<CustomTab<T> | null>;
30
+ tabs: ShallowRef<CustomTab<T>[]>;
31
+ } | undefined;