@farris/x-ui 0.0.1
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/app-preview/index.d.ts +8 -0
- package/app-preview/src/app-preview.component.d.ts +22 -0
- package/app-preview/src/app-preview.props.d.ts +14 -0
- package/app-preview/src/types.d.ts +37 -0
- package/attachment-preview/index.d.ts +8 -0
- package/attachment-preview/src/attachment-preview.component.d.ts +20 -0
- package/attachment-preview/src/attachment-preview.props.d.ts +13 -0
- package/attachment-preview/src/types.d.ts +27 -0
- package/bubble/index.d.ts +10 -0
- package/bubble/src/bubble.component.d.ts +119 -0
- package/bubble/src/bubble.props.d.ts +79 -0
- package/bubble/src/components/action/bubble-action.component.d.ts +11 -0
- package/bubble/src/components/action/bubble-action.props.d.ts +15 -0
- package/bubble/src/components/attachment/bubble-attachment.component.d.ts +16 -0
- package/bubble/src/components/attachment/bubble-attachment.props.d.ts +18 -0
- package/bubble/src/components/bubble-think/bubble-think.component.d.ts +10 -0
- package/bubble/src/components/bubble-think/bubble-think.props.d.ts +16 -0
- package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.component.d.ts +6 -0
- package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.props.d.ts +9 -0
- package/bubble/src/components/embedded-content/file/file-embedded-content.component.d.ts +16 -0
- package/bubble/src/components/embedded-content/file/file-embedded-content.props.d.ts +26 -0
- package/bubble/src/components/embedded-content/page/page-embedded-content.component.d.ts +13 -0
- package/bubble/src/components/embedded-content/page/page-embedded-content.props.d.ts +20 -0
- package/bubble/src/components/header/content-header.component.d.ts +6 -0
- package/bubble/src/components/header/sender-header.component.d.ts +6 -0
- package/bubble/src/components/text-content/text-content.component.d.ts +20 -0
- package/bubble/src/components/text-content/text-content.props.d.ts +32 -0
- package/bubble/src/composition/types.d.ts +153 -0
- package/bubble/src/composition/use-attachment.d.ts +5 -0
- package/bubble/src/composition/use-embedded-content.d.ts +12 -0
- package/bubble/src/composition/use-widget-content.d.ts +47 -0
- package/bubble/test/bubble.spec.d.ts +1 -0
- package/carousel/index.d.ts +10 -0
- package/carousel/src/carousel.component.d.ts +169 -0
- package/carousel/src/carousel.props.d.ts +94 -0
- package/carousel/src/components/carousel-item.component.d.ts +61 -0
- package/carousel/src/components/carousel-item.props.d.ts +35 -0
- package/carousel/src/composition/type.d.ts +27 -0
- package/carousel/src/composition/use-carousel.d.ts +23 -0
- package/carousel/test/carousel.spec.d.ts +1 -0
- package/chat-preview/index.d.ts +13 -0
- package/chat-preview/src/agent-workbench-sdk.d.ts +61 -0
- package/chat-preview/src/chat-preview.component.d.ts +34 -0
- package/chat-preview/src/chat-preview.props.d.ts +19 -0
- package/chat-preview/src/preview-bridge-protocol.d.ts +22 -0
- package/chat-preview/src/preview-chrome-sdk.d.ts +28 -0
- package/chat-preview/src/preview-iframe-sdk.d.ts +6 -0
- package/coding/index.d.ts +8 -0
- package/coding/src/coding.component.d.ts +12 -0
- package/coding/src/coding.props.d.ts +10 -0
- package/coding/src/types.d.ts +23 -0
- package/common/index.d.ts +7 -0
- package/common/src/runtime-attachment-download.d.ts +16 -0
- package/common/src/types.d.ts +2 -0
- package/common/src/use-appearance.d.ts +14 -0
- package/common/src/use-render.d.ts +15 -0
- package/common/src/use-sequential-streaming.d.ts +19 -0
- package/common/src/use-streaming-output.d.ts +18 -0
- package/common/src/use-timer.d.ts +7 -0
- package/components.d.ts +40 -0
- package/confirm-dialog/index.d.ts +7 -0
- package/confirm-dialog/src/confirm-dialog.component.d.ts +38 -0
- package/confirm-dialog/src/confirm-dialog.props.d.ts +33 -0
- package/dynamic-component/index.d.ts +7 -0
- package/dynamic-component/src/composition/dynamic-component-registry.d.ts +9 -0
- package/dynamic-component/src/composition/types.d.ts +18 -0
- package/dynamic-component/src/composition/use-dynamic-component-parser.d.ts +14 -0
- package/dynamic-component/src/dynamic-component.component.d.ts +15 -0
- package/enterprise-cloud/index.d.ts +16 -0
- package/enterprise-cloud/src/agent-thinking.component.d.ts +15 -0
- package/enterprise-cloud/src/attachment-file.component.d.ts +15 -0
- package/enterprise-cloud/src/error-reminder.component.d.ts +15 -0
- package/enterprise-cloud/src/hitl-question.component.d.ts +43 -0
- package/enterprise-cloud/src/input-recommend.component.d.ts +25 -0
- package/enterprise-cloud/src/link-card.component.d.ts +15 -0
- package/enterprise-cloud/src/reference-sources.component.d.ts +15 -0
- package/enterprise-cloud/src/types.d.ts +155 -0
- package/enterprise-cloud/src/unknown-enterprise.component.d.ts +15 -0
- package/enterprise-cloud/src/user-auth.component.d.ts +25 -0
- package/farris.x-ui.esm.js +13185 -0
- package/farris.x-ui.umd.cjs +108 -0
- package/file-operation/index.d.ts +8 -0
- package/file-operation/src/file-operation.component.d.ts +12 -0
- package/file-operation/src/file-operation.props.d.ts +10 -0
- package/file-operation/src/types.d.ts +30 -0
- package/generate-process/index.d.ts +7 -0
- package/generate-process/src/composition/type.d.ts +1 -0
- package/generate-process/src/generate-process.component.d.ts +41 -0
- package/generate-process/src/generate-process.props.d.ts +47 -0
- package/history/index.d.ts +7 -0
- package/history/src/composition/type.d.ts +8 -0
- package/history/src/history.component.d.ts +15 -0
- package/history/src/history.props.d.ts +14 -0
- package/index.css +1 -0
- package/index.d.ts +8 -0
- package/markdown/index.d.ts +8 -0
- package/markdown/src/markdown.component.d.ts +12 -0
- package/markdown/src/markdown.props.d.ts +10 -0
- package/markdown/src/types.d.ts +8 -0
- package/markdown-preview/index.d.ts +7 -0
- package/markdown-preview/src/markdown-preview.component.d.ts +9 -0
- package/markdown-preview/src/markdown-preview.props.d.ts +9 -0
- package/package.json +19 -0
- package/prompts/index.d.ts +9 -0
- package/prompts/src/components/prompt.component.d.ts +131 -0
- package/prompts/src/components/prompt.props.d.ts +79 -0
- package/prompts/src/composition/type.d.ts +34 -0
- package/prompts/src/prompts.component.d.ts +46 -0
- package/prompts/src/prompts.props.d.ts +61 -0
- package/started-todo/index.d.ts +8 -0
- package/started-todo/src/started-todo.component.d.ts +108 -0
- package/started-todo/src/started-todo.props.d.ts +54 -0
- package/started-todo/src/types.d.ts +9 -0
- package/suggestion/index.d.ts +7 -0
- package/suggestion/src/composition/type.d.ts +6 -0
- package/suggestion/src/suggestion.component.d.ts +37 -0
- package/suggestion/src/suggestion.props.d.ts +34 -0
- package/todo/index.d.ts +12 -0
- package/todo/src/components/todo-list-item-view.component.d.ts +112 -0
- package/todo/src/components/todo-list-item-view.props.d.ts +57 -0
- package/todo/src/components/todo-list-view.d.ts +17 -0
- package/todo/src/components/todo-list-view.props.d.ts +11 -0
- package/todo/src/composition/status-icon.d.ts +6 -0
- package/todo/src/composition/type.d.ts +32 -0
- package/todo/src/todo.component.d.ts +41 -0
- package/todo/src/todo.props.d.ts +24 -0
- package/tool-use/index.d.ts +6 -0
- package/tool-use/src/tool-use.component.d.ts +19 -0
- package/welcome/index.d.ts +7 -0
- package/welcome/src/composition/type.d.ts +1 -0
- package/welcome/src/welcome.component.d.ts +35 -0
- package/welcome/src/welcome.props.d.ts +30 -0
- package/welcome/test/welcome.spec.d.ts +1 -0
- package/widget-container/index.d.ts +8 -0
- package/widget-container/src/composition/class/stage.class.d.ts +10 -0
- package/widget-container/src/composition/types.d.ts +24 -0
- package/widget-container/src/composition/use-deep-equal.d.ts +3 -0
- package/widget-container/src/composition/use-load-widget.d.ts +5 -0
- package/widget-container/src/widget-container.component.d.ts +28 -0
- package/widget-container/src/widget-container.props.d.ts +35 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as FXAppPreview } from './src/app-preview.component';
|
|
3
|
+
|
|
4
|
+
export * from './src/app-preview.props';
|
|
5
|
+
export * from './src/types';
|
|
6
|
+
export { FXAppPreview };
|
|
7
|
+
declare const _default: typeof FXAppPreview & Plugin;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
content: {
|
|
3
|
+
type: import('vue').PropType<import('./types').MessageContentAppPreview>;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
onOpen: {
|
|
7
|
+
type: import('vue').PropType<(config: import('./types').PreviewConfig) => void>;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
content: {
|
|
12
|
+
type: import('vue').PropType<import('./types').MessageContentAppPreview>;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
onOpen: {
|
|
16
|
+
type: import('vue').PropType<(config: import('./types').PreviewConfig) => void>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
onOpen: (config: import('./types').PreviewConfig) => void;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { MessageContentAppPreview, PreviewConfig } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const appPreviewMessageProps: {
|
|
5
|
+
content: {
|
|
6
|
+
type: PropType<MessageContentAppPreview>;
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
onOpen: {
|
|
10
|
+
type: PropType<(config: PreviewConfig) => void>;
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type AppPreviewMessageProps = ExtractPropTypes<typeof appPreviewMessageProps>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** 预览配置 */
|
|
2
|
+
export type PreviewMode = 'splitScreen' | 'fullScreen';
|
|
3
|
+
export interface PreviewConfig {
|
|
4
|
+
/** 直接预览 URL(优先级最高,设置后忽略其它拼接字段) */
|
|
5
|
+
url?: string;
|
|
6
|
+
/** 预览内容(用于 markdown 等内容直接渲染) */
|
|
7
|
+
content?: string;
|
|
8
|
+
contentMap?: Record<string, string>;
|
|
9
|
+
/** 内容类型(当设置 content 时生效) */
|
|
10
|
+
contentType?: 'markdown' | 'text';
|
|
11
|
+
previewMode?: PreviewMode;
|
|
12
|
+
baseUri?: string;
|
|
13
|
+
metadataPath?: string;
|
|
14
|
+
projectPath?: string;
|
|
15
|
+
baseMetadataId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* postMessage 的 targetOrigin;不填则从预览 URL(含拼接后的完整地址)推导。
|
|
18
|
+
* 跨域嵌入时若自动推导不符,可显式指定为 iframe 页面所在 origin。
|
|
19
|
+
*/
|
|
20
|
+
postMessageTargetOrigin?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface AppConfig {
|
|
23
|
+
appPath: string;
|
|
24
|
+
appObjectId: string;
|
|
25
|
+
appBuilderUri?: string;
|
|
26
|
+
ws?: string;
|
|
27
|
+
}
|
|
28
|
+
/** 应用预览消息类型内容 */
|
|
29
|
+
export interface MessageContentAppPreview {
|
|
30
|
+
type: 'AppPreview';
|
|
31
|
+
message: string;
|
|
32
|
+
appIcon: string;
|
|
33
|
+
appName: string;
|
|
34
|
+
appConfig: AppConfig;
|
|
35
|
+
previewConfig: PreviewConfig;
|
|
36
|
+
createdDatetime: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as FXAttachmentPreview } from './src/attachment-preview.component';
|
|
3
|
+
|
|
4
|
+
export * from './src/attachment-preview.props';
|
|
5
|
+
export * from './src/types';
|
|
6
|
+
export { FXAttachmentPreview };
|
|
7
|
+
declare const _default: typeof FXAttachmentPreview & Plugin;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AttachmentPreviewConfig } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
content: {
|
|
5
|
+
type: import('vue').PropType<import('./types').MessageContentAttachmentPreview>;
|
|
6
|
+
required: boolean;
|
|
7
|
+
};
|
|
8
|
+
onOpen: {
|
|
9
|
+
type: import('vue').PropType<(config: AttachmentPreviewConfig) => void>;
|
|
10
|
+
};
|
|
11
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, never[], never, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
+
content: {
|
|
13
|
+
type: import('vue').PropType<import('./types').MessageContentAttachmentPreview>;
|
|
14
|
+
required: boolean;
|
|
15
|
+
};
|
|
16
|
+
onOpen: {
|
|
17
|
+
type: import('vue').PropType<(config: AttachmentPreviewConfig) => void>;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { MessageContentAttachmentPreview, AttachmentPreviewConfig } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const attachmentPreviewProps: {
|
|
5
|
+
content: {
|
|
6
|
+
type: PropType<MessageContentAttachmentPreview>;
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
onOpen: {
|
|
10
|
+
type: PropType<(config: AttachmentPreviewConfig) => void>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type AttachmentPreviewProps = ExtractPropTypes<typeof attachmentPreviewProps>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** 附件预览配置 */
|
|
2
|
+
export interface AttachmentPreviewConfig {
|
|
3
|
+
/** 显式运行时 fileId(与 `GET .../attachment/{fileId}/download` 对齐) */
|
|
4
|
+
fileId?: string;
|
|
5
|
+
/** 附件预览 URL */
|
|
6
|
+
url?: string;
|
|
7
|
+
/** 附件名称 */
|
|
8
|
+
name: string;
|
|
9
|
+
/** 附件类型,如 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'image', 'video', 'audio' 等 */
|
|
10
|
+
type: string;
|
|
11
|
+
/** 附件大小,单位字节 */
|
|
12
|
+
size?: number;
|
|
13
|
+
/** 附件图标 */
|
|
14
|
+
icon?: string;
|
|
15
|
+
/** 缩略图 URL */
|
|
16
|
+
thumbnailUrl?: string;
|
|
17
|
+
}
|
|
18
|
+
/** 附件预览消息类型内容 */
|
|
19
|
+
export interface MessageContentAttachmentPreview {
|
|
20
|
+
type: 'AttachmentPreview';
|
|
21
|
+
/** 提示消息 */
|
|
22
|
+
message?: string;
|
|
23
|
+
/** 附件预览配置列表 */
|
|
24
|
+
attachments: AttachmentPreviewConfig[];
|
|
25
|
+
/** 创建时间 */
|
|
26
|
+
createdDatetime?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as FXBubble } from './src/bubble.component';
|
|
3
|
+
import { default as FXBubbleAction } from './src/components/action/bubble-action.component';
|
|
4
|
+
|
|
5
|
+
export * from './src/bubble.props';
|
|
6
|
+
export * from './src/components/action/bubble-action.props';
|
|
7
|
+
export * from './src/composition/types';
|
|
8
|
+
export { FXBubble, FXBubbleAction };
|
|
9
|
+
declare const _default: typeof FXBubble & Plugin;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Attachment } from './composition/types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
header: import('./bubble.props').BubbleHeaderType;
|
|
5
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
6
|
+
outputMode: import('../..').OutputMode;
|
|
7
|
+
placement: import('./bubble.props').BubblePlacement;
|
|
8
|
+
classNames: Record<import('..').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
9
|
+
customStyle: string | import('vue').CSSProperties;
|
|
10
|
+
showAvatar: boolean;
|
|
11
|
+
styles: Record<import('..').AppearanceType, import('vue').CSSProperties>;
|
|
12
|
+
attachments: Attachment[];
|
|
13
|
+
content?: import('..').BubbleContent | undefined;
|
|
14
|
+
onPreview?: ((config: import('../..').PreviewConfig) => void) | undefined;
|
|
15
|
+
onUserAuthConfirm?: ((optionId: string, name: string, message?: string) => void) | undefined;
|
|
16
|
+
compositeTailRender?: (() => import('vue').VNode | null | undefined) | undefined;
|
|
17
|
+
onDynamicComponentsDetected?: ((configs: import('../..').DynamicComponentConfig[]) => void) | undefined;
|
|
18
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
19
|
+
header: import('./bubble.props').BubbleHeaderType;
|
|
20
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
21
|
+
outputMode: import('../..').OutputMode;
|
|
22
|
+
placement: import('./bubble.props').BubblePlacement;
|
|
23
|
+
classNames: Record<import('..').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
24
|
+
customStyle: string | import('vue').CSSProperties;
|
|
25
|
+
showAvatar: boolean;
|
|
26
|
+
styles: Record<import('..').AppearanceType, import('vue').CSSProperties>;
|
|
27
|
+
attachments: Attachment[];
|
|
28
|
+
content?: import('..').BubbleContent | undefined;
|
|
29
|
+
onPreview?: ((config: import('../..').PreviewConfig) => void) | undefined;
|
|
30
|
+
onUserAuthConfirm?: ((optionId: string, name: string, message?: string) => void) | undefined;
|
|
31
|
+
compositeTailRender?: (() => import('vue').VNode | null | undefined) | undefined;
|
|
32
|
+
onDynamicComponentsDetected?: ((configs: import('../..').DynamicComponentConfig[]) => void) | undefined;
|
|
33
|
+
}> & Readonly<{}>, {
|
|
34
|
+
header: import('./bubble.props').BubbleHeaderType;
|
|
35
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
36
|
+
outputMode: import('../..').OutputMode;
|
|
37
|
+
placement: import('./bubble.props').BubblePlacement;
|
|
38
|
+
classNames: Record<import('..').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
39
|
+
customStyle: string | import('vue').CSSProperties;
|
|
40
|
+
showAvatar: boolean;
|
|
41
|
+
styles: Record<import('..').AppearanceType, import('vue').CSSProperties>;
|
|
42
|
+
attachments: Attachment[];
|
|
43
|
+
onPreview: (config: import('../..').PreviewConfig) => void;
|
|
44
|
+
onUserAuthConfirm: (optionId: string, name: string, message?: string) => void;
|
|
45
|
+
compositeTailRender: () => import('vue').VNode | null | undefined;
|
|
46
|
+
onDynamicComponentsDetected: (configs: import('../..').DynamicComponentConfig[]) => void;
|
|
47
|
+
}, {}, {
|
|
48
|
+
'fx-user-auth-inline': import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
49
|
+
content: {
|
|
50
|
+
type: import('vue').PropType<import('../..').MessageContentUserAuth>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
onConfirm: {
|
|
54
|
+
type: import('vue').PropType<(optionId: string, name: string, message?: string) => void>;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
58
|
+
content: {
|
|
59
|
+
type: import('vue').PropType<import('../..').MessageContentUserAuth>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
onConfirm: {
|
|
63
|
+
type: import('vue').PropType<(optionId: string, name: string, message?: string) => void>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
}>> & Readonly<{}>, {
|
|
67
|
+
onConfirm: (optionId: string, name: string, message?: string) => void;
|
|
68
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
69
|
+
'fx-app-preview-inline': import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
70
|
+
content: {
|
|
71
|
+
type: import('vue').PropType<import('../..').MessageContentAppPreview>;
|
|
72
|
+
required: boolean;
|
|
73
|
+
};
|
|
74
|
+
onOpen: {
|
|
75
|
+
type: import('vue').PropType<(config: import('../..').PreviewConfig) => void>;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
78
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
79
|
+
content: {
|
|
80
|
+
type: import('vue').PropType<import('../..').MessageContentAppPreview>;
|
|
81
|
+
required: boolean;
|
|
82
|
+
};
|
|
83
|
+
onOpen: {
|
|
84
|
+
type: import('vue').PropType<(config: import('../..').PreviewConfig) => void>;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
}>> & Readonly<{}>, {
|
|
88
|
+
onOpen: (config: import('../..').PreviewConfig) => void;
|
|
89
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
90
|
+
FXToolUse: {
|
|
91
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
92
|
+
content: {
|
|
93
|
+
type: import('vue').PropType<import('../..').MessageContentToolUse>;
|
|
94
|
+
required: true;
|
|
95
|
+
};
|
|
96
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
97
|
+
P: {};
|
|
98
|
+
B: {};
|
|
99
|
+
D: {};
|
|
100
|
+
C: {};
|
|
101
|
+
M: {};
|
|
102
|
+
Defaults: {};
|
|
103
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
104
|
+
content: {
|
|
105
|
+
type: import('vue').PropType<import('../..').MessageContentToolUse>;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {}>;
|
|
109
|
+
__isFragment?: never;
|
|
110
|
+
__isTeleport?: never;
|
|
111
|
+
__isSuspense?: never;
|
|
112
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
113
|
+
content: {
|
|
114
|
+
type: import('vue').PropType<import('../..').MessageContentToolUse>;
|
|
115
|
+
required: true;
|
|
116
|
+
};
|
|
117
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
118
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
119
|
+
export default _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { CSSProperties, ExtractPropTypes, PropType, VNode } from 'vue';
|
|
2
|
+
import { AppearanceType, BubbleContent, Attachment } from './composition/types';
|
|
3
|
+
import { PreviewConfig } from '../../app-preview';
|
|
4
|
+
import { OutputMode } from '../../common';
|
|
5
|
+
import { DynamicComponentConfig } from '../../dynamic-component/src/composition/types';
|
|
6
|
+
|
|
7
|
+
export type BubblePlacement = 'start' | 'end';
|
|
8
|
+
export type BubbleHeaderType = 'sender' | 'ContentHeader';
|
|
9
|
+
export declare const bubbleProps: {
|
|
10
|
+
/** 气泡内容 */
|
|
11
|
+
content: {
|
|
12
|
+
type: PropType<BubbleContent>;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
outputMode: {
|
|
16
|
+
type: PropType<OutputMode>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
/** 自定义样式类名 */
|
|
20
|
+
classNames: {
|
|
21
|
+
type: PropType<Record<AppearanceType, string | string[] | Record<string, boolean>>>;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
/** 组件自定义样式类名 */
|
|
25
|
+
customClass: {
|
|
26
|
+
type: PropType<string | string[] | Record<string, boolean>>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
/** 组件自定义样式 */
|
|
30
|
+
customStyle: {
|
|
31
|
+
type: PropType<CSSProperties | string>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
/** 气泡header类型 */
|
|
35
|
+
header: {
|
|
36
|
+
type: PropType<BubbleHeaderType>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
/** 气泡位置 */
|
|
40
|
+
placement: {
|
|
41
|
+
type: PropType<BubblePlacement>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
/** 显示头像 */
|
|
45
|
+
showAvatar: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
/** 自定义样式 */
|
|
50
|
+
styles: {
|
|
51
|
+
type: PropType<Record<AppearanceType, CSSProperties>>;
|
|
52
|
+
default: () => {};
|
|
53
|
+
};
|
|
54
|
+
/** 附件列表 */
|
|
55
|
+
attachments: {
|
|
56
|
+
type: PropType<Attachment[]>;
|
|
57
|
+
default: () => never[];
|
|
58
|
+
};
|
|
59
|
+
onPreview: {
|
|
60
|
+
type: PropType<(config: PreviewConfig) => void>;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
63
|
+
/** 气泡内 agent/request-run 等按钮确认 */
|
|
64
|
+
onUserAuthConfirm: {
|
|
65
|
+
type: PropType<(optionId: string, name: string, message?: string) => void>;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
/** 复合消息:在正文区尾部追加渲染(单气泡内多块) */
|
|
69
|
+
compositeTailRender: {
|
|
70
|
+
type: PropType<() => VNode | null | undefined>;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
/** 检测到分屏内容区域展示动态组件时回调 */
|
|
74
|
+
onDynamicComponentsDetected: {
|
|
75
|
+
type: PropType<(configs: DynamicComponentConfig[]) => void>;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export type BubbleProps = ExtractPropTypes<typeof bubbleProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
3
|
+
customStyle: string | import('vue').CSSProperties;
|
|
4
|
+
}, () => import("vue/jsx-runtime").JSX.Element | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
5
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
6
|
+
customStyle: string | import('vue').CSSProperties;
|
|
7
|
+
}> & Readonly<{}>, {
|
|
8
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
9
|
+
customStyle: string | import('vue').CSSProperties;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSProperties, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare const bubbleActionProps: {
|
|
4
|
+
/** 组件自定义样式类名 */
|
|
5
|
+
customClass: {
|
|
6
|
+
type: PropType<string | string[] | Record<string, boolean>>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
/** 组件自定义样式 */
|
|
10
|
+
customStyle: {
|
|
11
|
+
type: PropType<CSSProperties | string>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type BubbleActionProps = ExtractPropTypes<typeof bubbleActionProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Attachment } from '../../composition/types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
attachments: Attachment[];
|
|
5
|
+
enableBatchPreview: boolean;
|
|
6
|
+
enableFixedWidth: boolean;
|
|
7
|
+
}, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
8
|
+
attachments: Attachment[];
|
|
9
|
+
enableBatchPreview: boolean;
|
|
10
|
+
enableFixedWidth: boolean;
|
|
11
|
+
}> & Readonly<{}>, {
|
|
12
|
+
attachments: Attachment[];
|
|
13
|
+
enableBatchPreview: boolean;
|
|
14
|
+
enableFixedWidth: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Attachment } from '../../composition/types';
|
|
3
|
+
|
|
4
|
+
export declare const bubbleAttachmentProps: {
|
|
5
|
+
attachments: {
|
|
6
|
+
type: PropType<Attachment[]>;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
};
|
|
9
|
+
enableBatchPreview: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
enableFixedWidth: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type BubbleAttachmentProps = ExtractPropTypes<typeof bubbleAttachmentProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
outputMode: import('../../../..').OutputMode;
|
|
3
|
+
content?: import('../../..').ThinkContent | undefined;
|
|
4
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
5
|
+
outputMode: import('../../../..').OutputMode;
|
|
6
|
+
content?: import('../../..').ThinkContent | undefined;
|
|
7
|
+
}> & Readonly<{}>, {
|
|
8
|
+
outputMode: import('../../../..').OutputMode;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ThinkContent } from '../../composition/types';
|
|
3
|
+
import { OutputMode } from '../../../../common';
|
|
4
|
+
|
|
5
|
+
export declare const bubbleThinkProps: {
|
|
6
|
+
/** 思考内容 */
|
|
7
|
+
content: {
|
|
8
|
+
type: PropType<ThinkContent>;
|
|
9
|
+
};
|
|
10
|
+
/** 输出模式 */
|
|
11
|
+
outputMode: {
|
|
12
|
+
type: PropType<OutputMode>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type BubbleThinkProps = ExtractPropTypes<typeof bubbleThinkProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
content?: import('../../..').ThoughtChainContent | undefined;
|
|
3
|
+
}, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
+
content?: import('../../..').ThoughtChainContent | undefined;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ThoughtChainContent } from '../../composition/types';
|
|
3
|
+
|
|
4
|
+
export declare const bubbleThoughtChainProps: {
|
|
5
|
+
content: {
|
|
6
|
+
type: PropType<ThoughtChainContent>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export type BubbleThoughtChainProps = ExtractPropTypes<typeof bubbleThoughtChainProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
customStyle: import('vue').CSSProperties;
|
|
3
|
+
file?: import('../../../..').Attachment | import('../../../..').Attachment[] | undefined;
|
|
4
|
+
onPreviewFile?: ((attachment: import('../../../..').Attachment) => void) | undefined;
|
|
5
|
+
onBatchPreviewFile?: ((attachments: import('../../../..').Attachment[]) => void) | undefined;
|
|
6
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
+
customStyle: import('vue').CSSProperties;
|
|
8
|
+
file?: import('../../../..').Attachment | import('../../../..').Attachment[] | undefined;
|
|
9
|
+
onPreviewFile?: ((attachment: import('../../../..').Attachment) => void) | undefined;
|
|
10
|
+
onBatchPreviewFile?: ((attachments: import('../../../..').Attachment[]) => void) | undefined;
|
|
11
|
+
}> & Readonly<{}>, {
|
|
12
|
+
customStyle: import('vue').CSSProperties;
|
|
13
|
+
onPreviewFile: (attachment: import('../../../..').Attachment) => void;
|
|
14
|
+
onBatchPreviewFile: (attachments: import('../../../..').Attachment[]) => void;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CSSProperties, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Attachment } from '../../../composition/types';
|
|
3
|
+
|
|
4
|
+
export declare const fileEmbeddedContentProps: {
|
|
5
|
+
/** 文件 */
|
|
6
|
+
file: {
|
|
7
|
+
type: PropType<Attachment | Attachment[]>;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
/** 组件自定义样式 */
|
|
11
|
+
customStyle: {
|
|
12
|
+
type: PropType<CSSProperties>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
/** 预览文件事件 */
|
|
16
|
+
onPreviewFile: {
|
|
17
|
+
type: PropType<(attachment: Attachment) => void>;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
/** 批量预览文件事件 */
|
|
21
|
+
onBatchPreviewFile: {
|
|
22
|
+
type: PropType<(attachments: Attachment[]) => void>;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export type FileEmbeddedContentProps = ExtractPropTypes<typeof fileEmbeddedContentProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
customStyle: import('vue').CSSProperties;
|
|
3
|
+
pageUrl?: string | undefined;
|
|
4
|
+
onNavigate?: ((url: string) => void) | undefined;
|
|
5
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
+
customStyle: import('vue').CSSProperties;
|
|
7
|
+
pageUrl?: string | undefined;
|
|
8
|
+
onNavigate?: ((url: string) => void) | undefined;
|
|
9
|
+
}> & Readonly<{}>, {
|
|
10
|
+
customStyle: import('vue').CSSProperties;
|
|
11
|
+
onNavigate: (url: string) => void;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CSSProperties, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare const pageEmbeddedContentProps: {
|
|
4
|
+
/** 页面URL */
|
|
5
|
+
pageUrl: {
|
|
6
|
+
type: PropType<string>;
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
/** 组件自定义样式 */
|
|
10
|
+
customStyle: {
|
|
11
|
+
type: PropType<CSSProperties>;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
/** 导航事件回调 */
|
|
15
|
+
onNavigate: {
|
|
16
|
+
type: PropType<(url: string) => void>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type PageEmbeddedContentProps = ExtractPropTypes<typeof pageEmbeddedContentProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
title: string;
|
|
3
|
+
text: string;
|
|
4
|
+
placement: import('../../bubble.props').BubblePlacement;
|
|
5
|
+
subtitle: string;
|
|
6
|
+
textFormat: import('../../..').BubbleTextFormatType;
|
|
7
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
8
|
+
title: string;
|
|
9
|
+
text: string;
|
|
10
|
+
placement: import('../../bubble.props').BubblePlacement;
|
|
11
|
+
subtitle: string;
|
|
12
|
+
textFormat: import('../../..').BubbleTextFormatType;
|
|
13
|
+
}> & Readonly<{}>, {
|
|
14
|
+
title: string;
|
|
15
|
+
text: string;
|
|
16
|
+
placement: import('../../bubble.props').BubblePlacement;
|
|
17
|
+
subtitle: string;
|
|
18
|
+
textFormat: import('../../..').BubbleTextFormatType;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BubblePlacement } from '../../bubble.props';
|
|
3
|
+
import { BubbleTextFormatType } from '../../composition/types';
|
|
4
|
+
|
|
5
|
+
export declare const textContentProps: {
|
|
6
|
+
/** 标题 */
|
|
7
|
+
title: {
|
|
8
|
+
type: PropType<string>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
/** 副标题 */
|
|
12
|
+
subtitle: {
|
|
13
|
+
type: PropType<string>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
/** 正文 */
|
|
17
|
+
text: {
|
|
18
|
+
type: PropType<string>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/** 正文展示形式 */
|
|
22
|
+
textFormat: {
|
|
23
|
+
type: PropType<BubbleTextFormatType>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
/** 气泡位置 */
|
|
27
|
+
placement: {
|
|
28
|
+
type: PropType<BubblePlacement>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export type TextContentProps = ExtractPropTypes<typeof textContentProps>;
|