@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.
Files changed (140) hide show
  1. package/app-preview/index.d.ts +8 -0
  2. package/app-preview/src/app-preview.component.d.ts +22 -0
  3. package/app-preview/src/app-preview.props.d.ts +14 -0
  4. package/app-preview/src/types.d.ts +37 -0
  5. package/attachment-preview/index.d.ts +8 -0
  6. package/attachment-preview/src/attachment-preview.component.d.ts +20 -0
  7. package/attachment-preview/src/attachment-preview.props.d.ts +13 -0
  8. package/attachment-preview/src/types.d.ts +27 -0
  9. package/bubble/index.d.ts +10 -0
  10. package/bubble/src/bubble.component.d.ts +119 -0
  11. package/bubble/src/bubble.props.d.ts +79 -0
  12. package/bubble/src/components/action/bubble-action.component.d.ts +11 -0
  13. package/bubble/src/components/action/bubble-action.props.d.ts +15 -0
  14. package/bubble/src/components/attachment/bubble-attachment.component.d.ts +16 -0
  15. package/bubble/src/components/attachment/bubble-attachment.props.d.ts +18 -0
  16. package/bubble/src/components/bubble-think/bubble-think.component.d.ts +10 -0
  17. package/bubble/src/components/bubble-think/bubble-think.props.d.ts +16 -0
  18. package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.component.d.ts +6 -0
  19. package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.props.d.ts +9 -0
  20. package/bubble/src/components/embedded-content/file/file-embedded-content.component.d.ts +16 -0
  21. package/bubble/src/components/embedded-content/file/file-embedded-content.props.d.ts +26 -0
  22. package/bubble/src/components/embedded-content/page/page-embedded-content.component.d.ts +13 -0
  23. package/bubble/src/components/embedded-content/page/page-embedded-content.props.d.ts +20 -0
  24. package/bubble/src/components/header/content-header.component.d.ts +6 -0
  25. package/bubble/src/components/header/sender-header.component.d.ts +6 -0
  26. package/bubble/src/components/text-content/text-content.component.d.ts +20 -0
  27. package/bubble/src/components/text-content/text-content.props.d.ts +32 -0
  28. package/bubble/src/composition/types.d.ts +153 -0
  29. package/bubble/src/composition/use-attachment.d.ts +5 -0
  30. package/bubble/src/composition/use-embedded-content.d.ts +12 -0
  31. package/bubble/src/composition/use-widget-content.d.ts +47 -0
  32. package/bubble/test/bubble.spec.d.ts +1 -0
  33. package/carousel/index.d.ts +10 -0
  34. package/carousel/src/carousel.component.d.ts +169 -0
  35. package/carousel/src/carousel.props.d.ts +94 -0
  36. package/carousel/src/components/carousel-item.component.d.ts +61 -0
  37. package/carousel/src/components/carousel-item.props.d.ts +35 -0
  38. package/carousel/src/composition/type.d.ts +27 -0
  39. package/carousel/src/composition/use-carousel.d.ts +23 -0
  40. package/carousel/test/carousel.spec.d.ts +1 -0
  41. package/chat-preview/index.d.ts +13 -0
  42. package/chat-preview/src/agent-workbench-sdk.d.ts +61 -0
  43. package/chat-preview/src/chat-preview.component.d.ts +34 -0
  44. package/chat-preview/src/chat-preview.props.d.ts +19 -0
  45. package/chat-preview/src/preview-bridge-protocol.d.ts +22 -0
  46. package/chat-preview/src/preview-chrome-sdk.d.ts +28 -0
  47. package/chat-preview/src/preview-iframe-sdk.d.ts +6 -0
  48. package/coding/index.d.ts +8 -0
  49. package/coding/src/coding.component.d.ts +12 -0
  50. package/coding/src/coding.props.d.ts +10 -0
  51. package/coding/src/types.d.ts +23 -0
  52. package/common/index.d.ts +7 -0
  53. package/common/src/runtime-attachment-download.d.ts +16 -0
  54. package/common/src/types.d.ts +2 -0
  55. package/common/src/use-appearance.d.ts +14 -0
  56. package/common/src/use-render.d.ts +15 -0
  57. package/common/src/use-sequential-streaming.d.ts +19 -0
  58. package/common/src/use-streaming-output.d.ts +18 -0
  59. package/common/src/use-timer.d.ts +7 -0
  60. package/components.d.ts +40 -0
  61. package/confirm-dialog/index.d.ts +7 -0
  62. package/confirm-dialog/src/confirm-dialog.component.d.ts +38 -0
  63. package/confirm-dialog/src/confirm-dialog.props.d.ts +33 -0
  64. package/dynamic-component/index.d.ts +7 -0
  65. package/dynamic-component/src/composition/dynamic-component-registry.d.ts +9 -0
  66. package/dynamic-component/src/composition/types.d.ts +18 -0
  67. package/dynamic-component/src/composition/use-dynamic-component-parser.d.ts +14 -0
  68. package/dynamic-component/src/dynamic-component.component.d.ts +15 -0
  69. package/enterprise-cloud/index.d.ts +16 -0
  70. package/enterprise-cloud/src/agent-thinking.component.d.ts +15 -0
  71. package/enterprise-cloud/src/attachment-file.component.d.ts +15 -0
  72. package/enterprise-cloud/src/error-reminder.component.d.ts +15 -0
  73. package/enterprise-cloud/src/hitl-question.component.d.ts +43 -0
  74. package/enterprise-cloud/src/input-recommend.component.d.ts +25 -0
  75. package/enterprise-cloud/src/link-card.component.d.ts +15 -0
  76. package/enterprise-cloud/src/reference-sources.component.d.ts +15 -0
  77. package/enterprise-cloud/src/types.d.ts +155 -0
  78. package/enterprise-cloud/src/unknown-enterprise.component.d.ts +15 -0
  79. package/enterprise-cloud/src/user-auth.component.d.ts +25 -0
  80. package/farris.x-ui.esm.js +13185 -0
  81. package/farris.x-ui.umd.cjs +108 -0
  82. package/file-operation/index.d.ts +8 -0
  83. package/file-operation/src/file-operation.component.d.ts +12 -0
  84. package/file-operation/src/file-operation.props.d.ts +10 -0
  85. package/file-operation/src/types.d.ts +30 -0
  86. package/generate-process/index.d.ts +7 -0
  87. package/generate-process/src/composition/type.d.ts +1 -0
  88. package/generate-process/src/generate-process.component.d.ts +41 -0
  89. package/generate-process/src/generate-process.props.d.ts +47 -0
  90. package/history/index.d.ts +7 -0
  91. package/history/src/composition/type.d.ts +8 -0
  92. package/history/src/history.component.d.ts +15 -0
  93. package/history/src/history.props.d.ts +14 -0
  94. package/index.css +1 -0
  95. package/index.d.ts +8 -0
  96. package/markdown/index.d.ts +8 -0
  97. package/markdown/src/markdown.component.d.ts +12 -0
  98. package/markdown/src/markdown.props.d.ts +10 -0
  99. package/markdown/src/types.d.ts +8 -0
  100. package/markdown-preview/index.d.ts +7 -0
  101. package/markdown-preview/src/markdown-preview.component.d.ts +9 -0
  102. package/markdown-preview/src/markdown-preview.props.d.ts +9 -0
  103. package/package.json +19 -0
  104. package/prompts/index.d.ts +9 -0
  105. package/prompts/src/components/prompt.component.d.ts +131 -0
  106. package/prompts/src/components/prompt.props.d.ts +79 -0
  107. package/prompts/src/composition/type.d.ts +34 -0
  108. package/prompts/src/prompts.component.d.ts +46 -0
  109. package/prompts/src/prompts.props.d.ts +61 -0
  110. package/started-todo/index.d.ts +8 -0
  111. package/started-todo/src/started-todo.component.d.ts +108 -0
  112. package/started-todo/src/started-todo.props.d.ts +54 -0
  113. package/started-todo/src/types.d.ts +9 -0
  114. package/suggestion/index.d.ts +7 -0
  115. package/suggestion/src/composition/type.d.ts +6 -0
  116. package/suggestion/src/suggestion.component.d.ts +37 -0
  117. package/suggestion/src/suggestion.props.d.ts +34 -0
  118. package/todo/index.d.ts +12 -0
  119. package/todo/src/components/todo-list-item-view.component.d.ts +112 -0
  120. package/todo/src/components/todo-list-item-view.props.d.ts +57 -0
  121. package/todo/src/components/todo-list-view.d.ts +17 -0
  122. package/todo/src/components/todo-list-view.props.d.ts +11 -0
  123. package/todo/src/composition/status-icon.d.ts +6 -0
  124. package/todo/src/composition/type.d.ts +32 -0
  125. package/todo/src/todo.component.d.ts +41 -0
  126. package/todo/src/todo.props.d.ts +24 -0
  127. package/tool-use/index.d.ts +6 -0
  128. package/tool-use/src/tool-use.component.d.ts +19 -0
  129. package/welcome/index.d.ts +7 -0
  130. package/welcome/src/composition/type.d.ts +1 -0
  131. package/welcome/src/welcome.component.d.ts +35 -0
  132. package/welcome/src/welcome.props.d.ts +30 -0
  133. package/welcome/test/welcome.spec.d.ts +1 -0
  134. package/widget-container/index.d.ts +8 -0
  135. package/widget-container/src/composition/class/stage.class.d.ts +10 -0
  136. package/widget-container/src/composition/types.d.ts +24 -0
  137. package/widget-container/src/composition/use-deep-equal.d.ts +3 -0
  138. package/widget-container/src/composition/use-load-widget.d.ts +5 -0
  139. package/widget-container/src/widget-container.component.d.ts +28 -0
  140. package/widget-container/src/widget-container.props.d.ts +35 -0
@@ -0,0 +1,34 @@
1
+ import { ExtractPropTypes, PropType, VNode } from 'vue';
2
+ import { SuggestionItem } from './composition/type';
3
+
4
+ export type PromptChar = '@' | '#';
5
+ export declare const suggestionProps: {
6
+ /** 快捷指令建议项 */
7
+ items: {
8
+ type: PropType<SuggestionItem[]>;
9
+ default: () => never[];
10
+ };
11
+ /** 建议项面板高度 */
12
+ height: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ /** 显示在建议项列表顶部的标题 */
17
+ title: {
18
+ type: PropType<string | VNode>;
19
+ default: string;
20
+ };
21
+ prompt: {
22
+ type: PropType<string | VNode>;
23
+ default: string;
24
+ };
25
+ promptChar: {
26
+ type: PropType<PromptChar>;
27
+ default: string;
28
+ };
29
+ promptAgentName: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ };
34
+ export type SuggestionProps = ExtractPropTypes<typeof suggestionProps>;
@@ -0,0 +1,12 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as FXTodo } from './src/todo.component';
3
+ import { default as FXTodoListView } from './src/components/todo-list-view';
4
+ import { default as FXTodoListItemView } from './src/components/todo-list-item-view.component';
5
+
6
+ export * from './src/todo.props';
7
+ export * from './src/components/todo-list-view.props';
8
+ export * from './src/components/todo-list-item-view.props';
9
+ export * from './src/composition/type';
10
+ export { FXTodo, FXTodoListView, FXTodoListItemView };
11
+ declare const _default: typeof FXTodo & Plugin;
12
+ export default _default;
@@ -0,0 +1,112 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ id: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ status: {
7
+ type: import('vue').PropType<import('../..').TodoItemStatus>;
8
+ };
9
+ task: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ todoList: {
14
+ type: import('vue').PropType<import('../..').TodoWorkItem[]>;
15
+ default: never[];
16
+ };
17
+ detailViewMode: {
18
+ type: import('vue').PropType<import('../..').DetailViewMode>;
19
+ default: import('../..').DetailViewMode;
20
+ };
21
+ initExpanded: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ showLoading: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ showLabel: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ shimmer: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ title: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ message: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ outputMode: {
46
+ type: import('vue').PropType<import('../../..').OutputMode>;
47
+ default: string;
48
+ };
49
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
50
+ id: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ status: {
55
+ type: import('vue').PropType<import('../..').TodoItemStatus>;
56
+ };
57
+ task: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ todoList: {
62
+ type: import('vue').PropType<import('../..').TodoWorkItem[]>;
63
+ default: never[];
64
+ };
65
+ detailViewMode: {
66
+ type: import('vue').PropType<import('../..').DetailViewMode>;
67
+ default: import('../..').DetailViewMode;
68
+ };
69
+ initExpanded: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ showLoading: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ showLabel: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ shimmer: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ title: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ message: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ outputMode: {
94
+ type: import('vue').PropType<import('../../..').OutputMode>;
95
+ default: string;
96
+ };
97
+ }>> & Readonly<{
98
+ onClick?: ((...args: any[]) => any) | undefined;
99
+ }>, {
100
+ title: string;
101
+ message: string;
102
+ id: number;
103
+ task: string;
104
+ todoList: import('../..').TodoWorkItem[];
105
+ detailViewMode: import('../..').DetailViewMode;
106
+ initExpanded: boolean;
107
+ showLoading: boolean;
108
+ showLabel: boolean;
109
+ shimmer: boolean;
110
+ outputMode: import('../../..').OutputMode;
111
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
112
+ export default _default;
@@ -0,0 +1,57 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { TodoItemStatus, TodoWorkItem, DetailViewMode } from '../composition/type';
3
+ import { OutputMode } from '../../../common';
4
+
5
+ export declare const todoListItemProps: {
6
+ /** 索引 */
7
+ id: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
11
+ status: {
12
+ type: PropType<TodoItemStatus>;
13
+ };
14
+ task: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ todoList: {
19
+ type: PropType<TodoWorkItem[]>;
20
+ default: never[];
21
+ };
22
+ detailViewMode: {
23
+ type: PropType<DetailViewMode>;
24
+ default: DetailViewMode;
25
+ };
26
+ initExpanded: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ showLoading: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ showLabel: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ shimmer: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ title: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ /** 与网关 `taskDetail` 对应:补充说明(纯文本) */
47
+ message: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ /** 输出模式 */
52
+ outputMode: {
53
+ type: PropType<OutputMode>;
54
+ default: string;
55
+ };
56
+ };
57
+ export type TodoListItemProps = ExtractPropTypes<typeof todoListItemProps>;
@@ -0,0 +1,17 @@
1
+ import { TodoWorkItem } from '../composition/type';
2
+
3
+ /** 待办列表组件 - 可复用 */
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ items: {
6
+ type: import('vue').PropType<TodoWorkItem[]>;
7
+ default: () => never[];
8
+ };
9
+ }>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ items: {
11
+ type: import('vue').PropType<TodoWorkItem[]>;
12
+ default: () => never[];
13
+ };
14
+ }>> & Readonly<{}>, {
15
+ items: TodoWorkItem[];
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { TodoWorkItem } from '../composition/type';
3
+
4
+ export declare const todoListViewProps: {
5
+ /** 待办事项列表 */
6
+ items: {
7
+ type: PropType<TodoWorkItem[]>;
8
+ default: () => never[];
9
+ };
10
+ };
11
+ export type TodoListViewProps = ExtractPropTypes<typeof todoListViewProps>;
@@ -0,0 +1,6 @@
1
+ import { TodoItemStatus } from './type';
2
+
3
+ /** 状态图标:NotStart 空心圆,Working 转圈,Down 对号圆。farrisicon 未找到时使用 CSS 占位 */
4
+ export declare function StatusIcon({ status }: {
5
+ status: TodoItemStatus;
6
+ }): import("vue/jsx-runtime").JSX.Element;
@@ -0,0 +1,32 @@
1
+ /** 待办项状态 */
2
+ export type TodoItemStatus = 'NotStart' | 'Working' | 'Done';
3
+ /** 带子任务时的展开/悬停展示方式 */
4
+ export type DetailViewMode = 'expand' | 'hover' | 'none';
5
+ /** 待办项 */
6
+ export interface TodoWorkItem {
7
+ task: string;
8
+ /** 消息类型标识 */
9
+ type?: TodoItemStatus;
10
+ /** 任务状态 */
11
+ status?: TodoItemStatus;
12
+ /** 消息文本 */
13
+ message?: string;
14
+ /** 待办列表 */
15
+ todoList?: TodoWorkItem[];
16
+ /** 详细信息查看方式 */
17
+ detailViewMode?: DetailViewMode;
18
+ /** 初始是否展开(仅 expand 模式生效) */
19
+ initExpanded?: boolean;
20
+ /** 是否显示加载图标 */
21
+ showLoading?: boolean;
22
+ showLabel?: boolean;
23
+ /** 任务标题,对 task 的简要概述 */
24
+ title?: string;
25
+ }
26
+ /** 待办任务类型消息内容 */
27
+ export interface MessageContentTodo {
28
+ type: 'Todo';
29
+ /** 消息标题,显示在列表外部 */
30
+ message: string;
31
+ items: TodoWorkItem[];
32
+ }
@@ -0,0 +1,41 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ type: {
3
+ type: import('vue').PropType<import('..').TodoItemStatus>;
4
+ default: string;
5
+ };
6
+ message: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ items: {
11
+ type: import('vue').PropType<import('..').TodoWorkItem[]>;
12
+ default: never[];
13
+ };
14
+ customClass: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ type: {
20
+ type: import('vue').PropType<import('..').TodoItemStatus>;
21
+ default: string;
22
+ };
23
+ message: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ items: {
28
+ type: import('vue').PropType<import('..').TodoWorkItem[]>;
29
+ default: never[];
30
+ };
31
+ customClass: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ type: import('..').TodoItemStatus;
37
+ message: string;
38
+ items: import('..').TodoWorkItem[];
39
+ customClass: string;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { TodoItemStatus, TodoWorkItem } from './composition/type';
3
+
4
+ export declare const todoProps: {
5
+ type: {
6
+ type: PropType<TodoItemStatus>;
7
+ default: string;
8
+ };
9
+ /** 消息标题,显示在列表外部 */
10
+ message: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ /** 待办事项列表 */
15
+ items: {
16
+ type: PropType<TodoWorkItem[]>;
17
+ default: never[];
18
+ };
19
+ customClass: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ };
24
+ export type TodoProps = ExtractPropTypes<typeof todoProps>;
@@ -0,0 +1,6 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as FXToolUse } from './src/tool-use.component';
3
+
4
+ export { FXToolUse };
5
+ declare const _default: typeof FXToolUse & Plugin;
6
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { PropType } from 'vue';
2
+ import { MessageContentToolUse } from '../../enterprise-cloud/src/types';
3
+
4
+ /**
5
+ * 智能体工具调用条:标题栏展示工具名;默认收折;
6
+ * 展开后可查看调用参数与结果(结果到达后仍保持收折,徽章显示「完成」)。
7
+ */
8
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
9
+ content: {
10
+ type: PropType<MessageContentToolUse>;
11
+ required: true;
12
+ };
13
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ content: {
15
+ type: PropType<MessageContentToolUse>;
16
+ required: true;
17
+ };
18
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
19
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as FXWelcome } from './src/welcome.component';
3
+
4
+ export * from './src/welcome.props';
5
+ export { FXWelcome };
6
+ declare const _default: typeof FXWelcome & Plugin;
7
+ export default _default;
@@ -0,0 +1 @@
1
+ export type AppearanceType = "icon" | "title" | "description" | "content";
@@ -0,0 +1,35 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ customClass: string | string[] | Record<string, boolean>;
3
+ classNames: Record<import('./composition/type').AppearanceType, string | string[] | Record<string, boolean>>;
4
+ customStyle: string | import('vue').CSSProperties;
5
+ styles: Record<import('./composition/type').AppearanceType, import('vue').CSSProperties>;
6
+ title?: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
7
+ [key: string]: any;
8
+ }> | undefined;
9
+ icon?: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
10
+ [key: string]: any;
11
+ }> | undefined;
12
+ description?: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
13
+ [key: string]: any;
14
+ }> | undefined;
15
+ }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
16
+ customClass: string | string[] | Record<string, boolean>;
17
+ classNames: Record<import('./composition/type').AppearanceType, string | string[] | Record<string, boolean>>;
18
+ customStyle: string | import('vue').CSSProperties;
19
+ styles: Record<import('./composition/type').AppearanceType, import('vue').CSSProperties>;
20
+ title?: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
21
+ [key: string]: any;
22
+ }> | undefined;
23
+ icon?: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
24
+ [key: string]: any;
25
+ }> | undefined;
26
+ description?: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
27
+ [key: string]: any;
28
+ }> | undefined;
29
+ }> & Readonly<{}>, {
30
+ customClass: string | string[] | Record<string, boolean>;
31
+ classNames: Record<import('./composition/type').AppearanceType, string | string[] | Record<string, boolean>>;
32
+ customStyle: string | import('vue').CSSProperties;
33
+ styles: Record<import('./composition/type').AppearanceType, import('vue').CSSProperties>;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import { CSSProperties, ExtractPropTypes, PropType, VNode } from 'vue';
2
+ import { AppearanceType } from './composition/type';
3
+
4
+ export declare const welcomeProps: {
5
+ /** 图标 */
6
+ icon: PropType<string | VNode>;
7
+ /** 标题 */
8
+ title: PropType<string | VNode>;
9
+ /** 描述 */
10
+ description: PropType<string | VNode>;
11
+ customClass: {
12
+ type: PropType<string | string[] | Record<string, boolean>>;
13
+ default: string;
14
+ };
15
+ customStyle: {
16
+ type: PropType<CSSProperties | string>;
17
+ default: string;
18
+ };
19
+ /** 自定义样式 */
20
+ styles: {
21
+ type: PropType<Record<AppearanceType, CSSProperties>>;
22
+ default: () => {};
23
+ };
24
+ /** 自定义样式类名 */
25
+ classNames: {
26
+ type: PropType<Record<AppearanceType, string | string[] | Record<string, boolean>>>;
27
+ default: () => {};
28
+ };
29
+ };
30
+ export type WelcomeProps = ExtractPropTypes<typeof welcomeProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as FXWidgetContainer } from './src/widget-container.component';
3
+
4
+ export * from './src/widget-container.props';
5
+ export * from './src/composition/types';
6
+ export { FXWidgetContainer };
7
+ declare const _default: typeof FXWidgetContainer & Plugin;
8
+ export default _default;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Stage 类
3
+ * 用于管理智能助手部件的渲染环境
4
+ */
5
+ export declare class Stage {
6
+ private root;
7
+ constructor(parentElement: HTMLElement);
8
+ dispose(): void;
9
+ getElement(): HTMLElement;
10
+ }
@@ -0,0 +1,24 @@
1
+ export interface IAssistantWidgetOptions {
2
+ mode: 'compact' | 'embedded' | 'full' | 'mobile';
3
+ implOptions: any;
4
+ }
5
+ export interface IAssistantWidget {
6
+ namespace(): string;
7
+ name(): string;
8
+ options(): IAssistantWidgetOptions;
9
+ updateOptions(options: Partial<IAssistantWidgetOptions>): void;
10
+ data(): any;
11
+ updateData(data: any): void;
12
+ mount(root: HTMLElement): Promise<void>;
13
+ unmount(): Promise<void>;
14
+ rerender(): Promise<void>;
15
+ dispose(): Promise<void>;
16
+ addEventListener(handler: EventHandler): FRemoveHanlder;
17
+ }
18
+ export interface IAssistantWidgetAPI {
19
+ initialize(): Promise<void>;
20
+ cleanup(): Promise<void>;
21
+ createWidget(): IAssistantWidget;
22
+ }
23
+ export type EventHandler = (eventType: string, payload: any) => void;
24
+ export type FRemoveHanlder = () => void;
@@ -0,0 +1,3 @@
1
+ export declare function useDeepEqual(): {
2
+ deepEqual: (obj1: any, obj2: any) => boolean;
3
+ };
@@ -0,0 +1,5 @@
1
+ import { IAssistantWidgetAPI } from './types';
2
+
3
+ export declare function useLoadWidgetAPI(): {
4
+ loadWidgetAPI: (url: string) => Promise<IAssistantWidgetAPI>;
5
+ };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * CardContainer 组件
3
+ * 智能助手部件的容器组件,负责:
4
+ * 1. 加载和管理部件脚本
5
+ * 2. 创建和管理部件实例
6
+ * 3. 处理部件的生命周期
7
+ * 4. 提供错误处理和状态管理
8
+ */
9
+ declare const _default: import('vue').DefineComponent<{
10
+ className: string;
11
+ viewStatus: import('./widget-container.props').ViewMode;
12
+ widgetAPIURL: string;
13
+ widgetOptions: import('..').IAssistantWidgetOptions;
14
+ widgetData: Record<string, any>;
15
+ }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
16
+ className: string;
17
+ viewStatus: import('./widget-container.props').ViewMode;
18
+ widgetAPIURL: string;
19
+ widgetOptions: import('..').IAssistantWidgetOptions;
20
+ widgetData: Record<string, any>;
21
+ }> & Readonly<{}>, {
22
+ className: string;
23
+ viewStatus: import('./widget-container.props').ViewMode;
24
+ widgetAPIURL: string;
25
+ widgetOptions: import('..').IAssistantWidgetOptions;
26
+ widgetData: Record<string, any>;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { IAssistantWidgetOptions } from './composition/types';
3
+
4
+ export type ViewMode = 'compact' | 'embedded' | 'full' | 'mobile' | 'buildin';
5
+ export declare const widgetContainerProps: {
6
+ /** 自定义类名 */
7
+ className: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ /** 视图状态 */
12
+ viewStatus: {
13
+ type: PropType<ViewMode>;
14
+ default: string;
15
+ };
16
+ /** 部件 API 脚本的 URL */
17
+ widgetAPIURL: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ /** 部件配置选项 */
22
+ widgetOptions: {
23
+ type: PropType<IAssistantWidgetOptions>;
24
+ default: () => {
25
+ mode: string;
26
+ implOptions: {};
27
+ };
28
+ };
29
+ /** 部件业务数据 */
30
+ widgetData: {
31
+ type: ObjectConstructor;
32
+ default: () => {};
33
+ };
34
+ };
35
+ export type WidgetContainerProps = ExtractPropTypes<typeof widgetContainerProps>;