@farris/x-ui 0.0.1 → 0.0.3

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 (161) hide show
  1. package/accordion/index.d.ts +9 -0
  2. package/accordion/src/accordion.component.d.ts +8 -0
  3. package/accordion/src/accordion.props.d.ts +2 -0
  4. package/accordion/src/components/accordion-item.component.d.ts +8 -0
  5. package/accordion/src/components/accordion-item.props.d.ts +2 -0
  6. package/app-preview/index.d.ts +4 -4
  7. package/app-preview/src/app-preview.component.d.ts +8 -8
  8. package/app-preview/src/app-preview.props.d.ts +2 -2
  9. package/app-preview/src/types.d.ts +4 -0
  10. package/attachment-preview/index.d.ts +4 -4
  11. package/attachment-preview/src/attachment-preview.component.d.ts +8 -8
  12. package/attachment-preview/src/attachment-preview.props.d.ts +2 -2
  13. package/bubble/index.d.ts +6 -6
  14. package/bubble/src/bubble.component.d.ts +59 -56
  15. package/bubble/src/bubble.props.d.ts +11 -6
  16. package/bubble/src/components/action/bubble-action.component.d.ts +6 -6
  17. package/bubble/src/components/action/bubble-action.props.d.ts +1 -1
  18. package/bubble/src/components/attachment/bubble-attachment.component.d.ts +10 -4
  19. package/bubble/src/components/attachment/bubble-attachment.props.d.ts +12 -2
  20. package/bubble/src/components/bubble-think/bubble-think.component.d.ts +8 -8
  21. package/bubble/src/components/bubble-think/bubble-think.props.d.ts +3 -3
  22. package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.component.d.ts +5 -5
  23. package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.props.d.ts +2 -2
  24. package/bubble/src/components/embedded-content/file/file-embedded-content.component.d.ts +14 -14
  25. package/bubble/src/components/embedded-content/file/file-embedded-content.props.d.ts +2 -2
  26. package/bubble/src/components/embedded-content/page/page-embedded-content.component.d.ts +6 -6
  27. package/bubble/src/components/embedded-content/page/page-embedded-content.props.d.ts +1 -1
  28. package/bubble/src/components/header/content-header.component.d.ts +2 -2
  29. package/bubble/src/components/header/sender-header.component.d.ts +2 -2
  30. package/bubble/src/components/text-content/text-content.component.d.ts +15 -9
  31. package/bubble/src/components/text-content/text-content.props.d.ts +14 -3
  32. package/bubble/src/components/text-content/utils/widget-to-messages.d.ts +44 -0
  33. package/bubble/src/composition/types.d.ts +4 -4
  34. package/bubble/src/composition/use-embedded-content.d.ts +2 -2
  35. package/bubble/src/composition/use-widget-content.d.ts +4 -3
  36. package/carousel/index.d.ts +6 -6
  37. package/carousel/src/carousel.component.d.ts +31 -31
  38. package/carousel/src/carousel.props.d.ts +2 -2
  39. package/carousel/src/components/carousel-item.component.d.ts +12 -12
  40. package/carousel/src/components/carousel-item.props.d.ts +2 -2
  41. package/carousel/src/composition/type.d.ts +1 -1
  42. package/carousel/src/composition/use-carousel.d.ts +5 -5
  43. package/chat-preview/index.d.ts +7 -7
  44. package/chat-preview/src/agent-workbench-sdk.d.ts +6 -6
  45. package/chat-preview/src/chat-preview.component.d.ts +11 -11
  46. package/chat-preview/src/chat-preview.props.d.ts +2 -2
  47. package/chat-preview/src/preview-chrome-sdk.d.ts +1 -1
  48. package/chat-preview/src/preview-iframe-sdk.d.ts +2 -2
  49. package/coding/index.d.ts +4 -4
  50. package/coding/src/coding.component.d.ts +5 -5
  51. package/coding/src/coding.props.d.ts +2 -2
  52. package/common/index.d.ts +7 -7
  53. package/common/src/use-render.d.ts +3 -3
  54. package/common/src/use-sequential-streaming.d.ts +1 -1
  55. package/common/src/use-streaming-output.d.ts +2 -2
  56. package/common/src/use-timer.d.ts +2 -2
  57. package/components.d.ts +52 -40
  58. package/confirm-dialog/index.d.ts +3 -3
  59. package/confirm-dialog/src/confirm-dialog.component.d.ts +9 -9
  60. package/confirm-dialog/src/confirm-dialog.props.d.ts +1 -1
  61. package/dynamic-component/index.d.ts +5 -5
  62. package/dynamic-component/src/composition/dynamic-component-registry.d.ts +1 -1
  63. package/dynamic-component/src/composition/types.d.ts +10 -5
  64. package/dynamic-component/src/composition/use-dynamic-component-parser.d.ts +3 -3
  65. package/dynamic-component/src/dynamic-component.component.d.ts +5 -5
  66. package/enterprise-cloud/index.d.ts +12 -12
  67. package/enterprise-cloud/src/agent-thinking.component.d.ts +5 -5
  68. package/enterprise-cloud/src/attachment-file.component.d.ts +5 -5
  69. package/enterprise-cloud/src/error-reminder.component.d.ts +5 -5
  70. package/enterprise-cloud/src/hitl-question.component.d.ts +5 -5
  71. package/enterprise-cloud/src/input-recommend.component.d.ts +5 -5
  72. package/enterprise-cloud/src/link-card.component.d.ts +5 -5
  73. package/enterprise-cloud/src/reference-sources.component.d.ts +5 -5
  74. package/enterprise-cloud/src/unknown-enterprise.component.d.ts +5 -5
  75. package/enterprise-cloud/src/user-auth.component.d.ts +5 -5
  76. package/farris.x-ui.esm.js +5827 -4249
  77. package/farris.x-ui.umd.cjs +118 -71
  78. package/file-operation/index.d.ts +4 -4
  79. package/file-operation/src/file-operation.component.d.ts +5 -5
  80. package/file-operation/src/file-operation.props.d.ts +2 -2
  81. package/generate-process/index.d.ts +3 -3
  82. package/generate-process/src/generate-process.component.d.ts +17 -17
  83. package/generate-process/src/generate-process.props.d.ts +2 -2
  84. package/history/index.d.ts +3 -3
  85. package/history/src/composition/type.d.ts +1 -1
  86. package/history/src/history.component.d.ts +4 -4
  87. package/history/src/history.props.d.ts +2 -2
  88. package/index.css +1 -1
  89. package/index.d.ts +3 -3
  90. package/list-view/index.d.ts +8 -0
  91. package/list-view/src/components/list-view-group-item.component.d.ts +41 -0
  92. package/list-view/src/components/list-view-item.component.d.ts +122 -0
  93. package/list-view/src/composition/types.d.ts +13 -0
  94. package/list-view/src/composition/use-data-view.d.ts +29 -0
  95. package/list-view/src/list-view.component.d.ts +32 -0
  96. package/list-view/src/list-view.props.d.ts +51 -0
  97. package/markdown/index.d.ts +4 -4
  98. package/markdown/src/markdown.component.d.ts +5 -5
  99. package/markdown/src/markdown.props.d.ts +2 -2
  100. package/markdown-preview/index.d.ts +3 -3
  101. package/markdown-preview/src/markdown-preview.component.d.ts +3 -3
  102. package/markdown-preview/src/markdown-preview.props.d.ts +1 -1
  103. package/nav/index.d.ts +8 -0
  104. package/nav/src/composition/types.d.ts +11 -0
  105. package/nav/src/nav.component.d.ts +8 -0
  106. package/nav/src/nav.props.d.ts +2 -0
  107. package/package.json +1 -2
  108. package/popover/index.d.ts +8 -0
  109. package/popover/src/composition/types.d.ts +28 -0
  110. package/popover/src/composition/use-delayed-ref.d.ts +4 -0
  111. package/popover/src/composition/use-host.d.ts +9 -0
  112. package/popover/src/composition/use-popup.d.ts +5 -0
  113. package/popover/src/composition/use-position.d.ts +5 -0
  114. package/popover/src/composition/use-resize.d.ts +5 -0
  115. package/popover/src/popover.component.d.ts +61 -0
  116. package/popover/src/popover.directive.d.ts +5 -0
  117. package/popover/src/popover.props.d.ts +104 -0
  118. package/popover/src/popover.service.d.ts +17 -0
  119. package/prompts/index.d.ts +5 -5
  120. package/prompts/src/components/prompt.component.d.ts +34 -34
  121. package/prompts/src/components/prompt.props.d.ts +2 -2
  122. package/prompts/src/composition/type.d.ts +1 -1
  123. package/prompts/src/prompts.component.d.ts +19 -19
  124. package/prompts/src/prompts.props.d.ts +2 -2
  125. package/search-box/index.d.ts +9 -0
  126. package/search-box/src/components/search-box-container.component.d.ts +26 -0
  127. package/search-box/src/components/search-box-container.props.d.ts +40 -0
  128. package/search-box/src/search-box.component.d.ts +40 -0
  129. package/search-box/src/search-box.props.d.ts +64 -0
  130. package/splitter/index.d.ts +8 -0
  131. package/splitter/src/components/splitter-pane.component.d.ts +8 -0
  132. package/splitter/src/components/splitter-pane.props.d.ts +5 -0
  133. package/splitter/src/composition/types.d.ts +26 -0
  134. package/splitter/src/composition/use-resize-handle.d.ts +4 -0
  135. package/splitter/src/composition/use-resize-pane.d.ts +4 -0
  136. package/splitter/src/splitter.component.d.ts +8 -0
  137. package/splitter/src/splitter.props.d.ts +5 -0
  138. package/started-todo/index.d.ts +4 -4
  139. package/started-todo/src/started-todo.component.d.ts +20 -20
  140. package/started-todo/src/started-todo.props.d.ts +3 -3
  141. package/started-todo/src/types.d.ts +1 -1
  142. package/suggestion/index.d.ts +3 -3
  143. package/suggestion/src/suggestion.component.d.ts +13 -13
  144. package/suggestion/src/suggestion.props.d.ts +2 -2
  145. package/todo/index.d.ts +8 -8
  146. package/todo/src/components/todo-list-item-view.component.d.ts +16 -16
  147. package/todo/src/components/todo-list-item-view.props.d.ts +3 -3
  148. package/todo/src/components/todo-list-view.d.ts +6 -6
  149. package/todo/src/components/todo-list-view.props.d.ts +2 -2
  150. package/todo/src/composition/status-icon.d.ts +1 -1
  151. package/todo/src/todo.component.d.ts +9 -9
  152. package/todo/src/todo.props.d.ts +2 -2
  153. package/tool-use/index.d.ts +2 -2
  154. package/tool-use/src/tool-use.component.d.ts +5 -5
  155. package/welcome/index.d.ts +3 -3
  156. package/welcome/src/welcome.component.d.ts +18 -18
  157. package/welcome/src/welcome.props.d.ts +2 -2
  158. package/widget-container/index.d.ts +4 -4
  159. package/widget-container/src/composition/use-load-widget.d.ts +1 -1
  160. package/widget-container/src/widget-container.component.d.ts +9 -9
  161. package/widget-container/src/widget-container.props.d.ts +2 -2
@@ -1,13 +1,13 @@
1
- declare const _default: import('vue').DefineComponent<{
2
- customStyle: import('vue').CSSProperties;
1
+ declare const _default: import('../../../../../../vue').DefineComponent<{
2
+ customStyle: import('../../../../../../vue').CSSProperties;
3
3
  pageUrl?: string | undefined;
4
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;
5
+ }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../../../../vue').ComponentOptionsMixin, import('../../../../../../vue').ComponentOptionsMixin, {}, string, import('../../../../../../vue').PublicProps, Readonly<{
6
+ customStyle: import('../../../../../../vue').CSSProperties;
7
7
  pageUrl?: string | undefined;
8
8
  onNavigate?: ((url: string) => void) | undefined;
9
9
  }> & Readonly<{}>, {
10
- customStyle: import('vue').CSSProperties;
10
+ customStyle: import('../../../../../../vue').CSSProperties;
11
11
  onNavigate: (url: string) => void;
12
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
+ }, {}, {}, {}, string, import('../../../../../../vue').ComponentProvideOptions, true, {}, any>;
13
13
  export default _default;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ExtractPropTypes, PropType } from 'vue';
1
+ import { CSSProperties, ExtractPropTypes, PropType } from '../../../../../../vue';
2
2
 
3
3
  export declare const pageEmbeddedContentProps: {
4
4
  /** 页面URL */
@@ -1,5 +1,5 @@
1
- import { SetupContext } from 'vue';
2
- import { BubbleProps } from '../../bubble.props';
1
+ import { SetupContext } from '../../../../../vue';
2
+ import { BubbleProps } from '../../../../../../../bubble.props';
3
3
 
4
4
  export default function (props: BubbleProps, context: SetupContext): {
5
5
  renderHeader: () => import("vue/jsx-runtime").JSX.Element | undefined;
@@ -1,5 +1,5 @@
1
- import { SetupContext } from 'vue';
2
- import { BubbleProps } from '../../bubble.props';
1
+ import { SetupContext } from '../../../../../vue';
2
+ import { BubbleProps } from '../../../../../../../bubble.props';
3
3
 
4
4
  export default function (props: BubbleProps, context: SetupContext): {
5
5
  renderHeader: () => import("vue/jsx-runtime").JSX.Element;
@@ -1,20 +1,26 @@
1
- declare const _default: import('vue').DefineComponent<{
1
+ declare const _default: import('../../../../../vue').DefineComponent<{
2
2
  title: string;
3
3
  text: string;
4
- placement: import('../../bubble.props').BubblePlacement;
4
+ placement: import('../../../../../../../bubble.props').BubblePlacement;
5
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<{
6
+ textFormat: import('../../../../../../../..').BubbleTextFormatType;
7
+ onDynamicComponentsDetected?: ((configs: import('../../../../../../../../..').DynamicComponentConfig[]) => void) | undefined;
8
+ onShowDynamicComponent?: ((config: import('../../../../../../../../..').DynamicComponentConfig) => void) | undefined;
9
+ }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../../../vue').ComponentOptionsMixin, import('../../../../../vue').ComponentOptionsMixin, {}, string, import('../../../../../vue').PublicProps, Readonly<{
8
10
  title: string;
9
11
  text: string;
10
- placement: import('../../bubble.props').BubblePlacement;
12
+ placement: import('../../../../../../../bubble.props').BubblePlacement;
11
13
  subtitle: string;
12
- textFormat: import('../../..').BubbleTextFormatType;
14
+ textFormat: import('../../../../../../../..').BubbleTextFormatType;
15
+ onDynamicComponentsDetected?: ((configs: import('../../../../../../../../..').DynamicComponentConfig[]) => void) | undefined;
16
+ onShowDynamicComponent?: ((config: import('../../../../../../../../..').DynamicComponentConfig) => void) | undefined;
13
17
  }> & Readonly<{}>, {
14
18
  title: string;
15
19
  text: string;
16
- placement: import('../../bubble.props').BubblePlacement;
20
+ placement: import('../../../../../../../bubble.props').BubblePlacement;
21
+ onDynamicComponentsDetected: (configs: import('../../../../../../../../..').DynamicComponentConfig[]) => void;
22
+ onShowDynamicComponent: (config: import('../../../../../../../../..').DynamicComponentConfig) => void;
17
23
  subtitle: string;
18
- textFormat: import('../../..').BubbleTextFormatType;
19
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
+ textFormat: import('../../../../../../../..').BubbleTextFormatType;
25
+ }, {}, {}, {}, string, import('../../../../../vue').ComponentProvideOptions, true, {}, any>;
20
26
  export default _default;
@@ -1,6 +1,7 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { BubblePlacement } from '../../bubble.props';
3
- import { BubbleTextFormatType } from '../../composition/types';
1
+ import { ExtractPropTypes, PropType } from '../../../../../vue';
2
+ import { BubblePlacement } from '../../../../../../../bubble.props';
3
+ import { BubbleTextFormatType } from '../../../../../../../composition/types';
4
+ import { DynamicComponentConfig } from '../../../../../../../../../dynamic-component/src/composition/types';
4
5
 
5
6
  export declare const textContentProps: {
6
7
  /** 标题 */
@@ -28,5 +29,15 @@ export declare const textContentProps: {
28
29
  type: PropType<BubblePlacement>;
29
30
  default: string;
30
31
  };
32
+ /** 检测到分屏内容区域需要展示动态组件时回调 */
33
+ onDynamicComponentsDetected: {
34
+ type: PropType<(configs: DynamicComponentConfig[]) => void>;
35
+ default: undefined;
36
+ };
37
+ /** 点击会话区域内动态组件相关内容并在分屏内容区域展示动态组件时回调 */
38
+ onShowDynamicComponent: {
39
+ type: PropType<(config: DynamicComponentConfig) => void>;
40
+ default: undefined;
41
+ };
31
42
  };
32
43
  export type TextContentProps = ExtractPropTypes<typeof textContentProps>;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * A2UI Widget to Protocol Messages Converter
3
+ *
4
+ * Converts a widget JSON (name, components[], data) from a2ui-widget-builder skill
5
+ * into A2UI v0.9 protocol messages for streaming.
6
+ *
7
+ * Input format:
8
+ * {
9
+ * "name": "Widget Name",
10
+ * "components": [...],
11
+ * "data": {...}
12
+ * }
13
+ *
14
+ * Output: Array of A2UI protocol messages
15
+ * [
16
+ * { "version": "v0.9", "createSurface": {...} },
17
+ * { "version": "v0.9", "updateComponents": {...} },
18
+ * { "version": "v0.9", "updateDataModel": {...} }
19
+ * ]
20
+ */
21
+ /**
22
+ * Convert widget name to a valid surfaceId
23
+ */
24
+ export declare function toSurfaceId(name: string): string;
25
+ /**
26
+ * Convert a widget JSON object into A2UI protocol messages
27
+ */
28
+ export declare function widgetToMessages(widget: {
29
+ name: string;
30
+ components: any[];
31
+ data?: any;
32
+ }): any[];
33
+ /**
34
+ * Create a MessageProcessor instance and process the widget messages
35
+ * Returns the surface ready for rendering
36
+ */
37
+ export declare function createSurfaceFromWidget(widget: {
38
+ name: string;
39
+ components: any[];
40
+ data?: any;
41
+ }, MessageProcessor: any, catalog: any): {
42
+ surface: any;
43
+ processor: any;
44
+ };
@@ -1,7 +1,7 @@
1
- import { VNode } from 'vue';
2
- import { DetailViewMode, TodoItemStatus, TodoWorkItem } from '../../../todo';
3
- import { MessageContentUserAuth, MessageContentToolUse } from '../../../enterprise-cloud/src/types';
4
- import { MessageContentAppPreview } from '../../../app-preview/src/types';
1
+ import { VNode } from '../../../../vue';
2
+ import { DetailViewMode, TodoItemStatus, TodoWorkItem } from '../../../../../../../todo';
3
+ import { MessageContentUserAuth, MessageContentToolUse } from '../../../../../../../enterprise-cloud/src/types';
4
+ import { MessageContentAppPreview } from '../../../../../../../app-preview/src/types';
5
5
 
6
6
  /** 气泡消息文本格式化类型 */
7
7
  export type BubbleTextFormatType = 'plain' | 'markdown';
@@ -1,5 +1,5 @@
1
- import { VNode } from 'vue';
2
- import { Attachment, EmbeddedContent } from './types';
1
+ import { VNode } from '../../../../vue';
2
+ import { Attachment, EmbeddedContent } from '../../../../types';
3
3
 
4
4
  export interface EmbeddedContentRenderContext {
5
5
  onPreviewFile?: (attachment: Attachment) => void;
@@ -38,10 +38,11 @@
38
38
  */
39
39
  export declare function isWidgetBlock(text: string): boolean;
40
40
  /**
41
- * 解析 displayText,将包含 assistant-widget 代码块的内容分割成多个部分
42
- * 支持完整和不完整的 assistant-widget 结构
43
- * 支持 ``` 后紧跟换行符 + 空格 + assistant-widget 的格式
41
+ * 解析 displayText,将包含 assistant-widget 或 A2UI 代码块的内容分割成多个部分
42
+ * 支持完整和不完整的 widget 结构
43
+ * 支持 ``` 后紧跟换行符 + 空格 + widget类型 的格式
44
44
  */
45
45
  export declare function formatDisplayText(displayText: string): string[];
46
46
  export declare function parseAssistantWidget(input: string): any;
47
+ export declare function parseA2UIWidget(input: string): any;
47
48
  export declare function getWidgetImplOptions(input: string): any;
@@ -1,10 +1,10 @@
1
- import { Plugin } from 'vue';
2
- import { default as FXCarousel } from './src/carousel.component';
3
- import { default as FXCarouselItem } from './src/components/carousel-item.component';
1
+ import { Plugin } from '../../vue';
2
+ import { default as FXCarousel } from '../../src/carousel.component';
3
+ import { default as FXCarouselItem } from '../../src/components/carousel-item.component';
4
4
 
5
- export * from './src/carousel.props';
6
- export * from './src/components/carousel-item.props';
7
- export * from './src/composition/type';
5
+ export * from '../../src/carousel.props';
6
+ export * from '../../src/components/carousel-item.props';
7
+ export * from '../../src/composition/type';
8
8
  export { FXCarousel, FXCarouselItem };
9
9
  declare const _default: typeof FXCarousel & Plugin;
10
10
  export default _default;
@@ -1,8 +1,8 @@
1
- import { CarouselItemType } from './composition/type';
1
+ import { CarouselItemType } from '../../../composition/type';
2
2
 
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ declare const _default: import('../../../vue').DefineComponent<import('../../../vue').ExtractPropTypes<{
4
4
  items: {
5
- type: import('vue').PropType<CarouselItemType[]>;
5
+ type: import('../../../vue').PropType<CarouselItemType[]>;
6
6
  default: () => never[];
7
7
  };
8
8
  modelValue: {
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  default: number;
11
11
  };
12
12
  direction: {
13
- type: import('vue').PropType<import('..').CarouselDirection>;
13
+ type: import('../../../vue').PropType<import('../../../..').CarouselDirection>;
14
14
  default: string;
15
15
  };
16
16
  autoplay: {
@@ -26,15 +26,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
26
26
  default: boolean;
27
27
  };
28
28
  trigger: {
29
- type: import('vue').PropType<import('..').CarouselTrigger>;
29
+ type: import('../../../vue').PropType<import('../../../..').CarouselTrigger>;
30
30
  default: string;
31
31
  };
32
32
  indicatorPosition: {
33
- type: import('vue').PropType<import('..').CarouselIndicatorPosition>;
33
+ type: import('../../../vue').PropType<import('../../../..').CarouselIndicatorPosition>;
34
34
  default: string;
35
35
  };
36
36
  arrowVisibility: {
37
- type: import('vue').PropType<import('..').CarouselArrowVisibility>;
37
+ type: import('../../../vue').PropType<import('../../../..').CarouselArrowVisibility>;
38
38
  default: string;
39
39
  };
40
40
  showIndicator: {
@@ -54,28 +54,28 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
54
54
  default: string;
55
55
  };
56
56
  styles: {
57
- type: import('vue').PropType<Record<import('..').CarouselAppearanceType, import('vue').CSSProperties>>;
57
+ type: import('../../../vue').PropType<Record<import('../../../..').CarouselAppearanceType, import('../../../vue').CSSProperties>>;
58
58
  default: () => {};
59
59
  };
60
60
  classNames: {
61
- type: import('vue').PropType<Record<import('..').CarouselAppearanceType, string | string[] | Record<string, boolean>>>;
61
+ type: import('../../../vue').PropType<Record<import('../../../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>>;
62
62
  default: () => {};
63
63
  };
64
64
  customClass: {
65
- type: import('vue').PropType<string | string[] | Record<string, boolean>>;
65
+ type: import('../../../vue').PropType<string | string[] | Record<string, boolean>>;
66
66
  default: string;
67
67
  };
68
68
  customStyle: {
69
- type: import('vue').PropType<import('vue').CSSProperties | string>;
69
+ type: import('../../../vue').PropType<import('../../../vue').CSSProperties | string>;
70
70
  default: string;
71
71
  };
72
72
  buttonPosition: {
73
- type: import('vue').PropType<"inner" | "outer">;
73
+ type: import('../../../vue').PropType<"inner" | "outer">;
74
74
  default: string;
75
75
  };
76
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, "change" | "update:modelValue" | "item-click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
76
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, "change" | "update:modelValue" | "item-click", import('../../../vue').PublicProps, Readonly<import('../../../vue').ExtractPropTypes<{
77
77
  items: {
78
- type: import('vue').PropType<CarouselItemType[]>;
78
+ type: import('../../../vue').PropType<CarouselItemType[]>;
79
79
  default: () => never[];
80
80
  };
81
81
  modelValue: {
@@ -83,7 +83,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
83
83
  default: number;
84
84
  };
85
85
  direction: {
86
- type: import('vue').PropType<import('..').CarouselDirection>;
86
+ type: import('../../../vue').PropType<import('../../../..').CarouselDirection>;
87
87
  default: string;
88
88
  };
89
89
  autoplay: {
@@ -99,15 +99,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
99
99
  default: boolean;
100
100
  };
101
101
  trigger: {
102
- type: import('vue').PropType<import('..').CarouselTrigger>;
102
+ type: import('../../../vue').PropType<import('../../../..').CarouselTrigger>;
103
103
  default: string;
104
104
  };
105
105
  indicatorPosition: {
106
- type: import('vue').PropType<import('..').CarouselIndicatorPosition>;
106
+ type: import('../../../vue').PropType<import('../../../..').CarouselIndicatorPosition>;
107
107
  default: string;
108
108
  };
109
109
  arrowVisibility: {
110
- type: import('vue').PropType<import('..').CarouselArrowVisibility>;
110
+ type: import('../../../vue').PropType<import('../../../..').CarouselArrowVisibility>;
111
111
  default: string;
112
112
  };
113
113
  showIndicator: {
@@ -127,43 +127,43 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
127
127
  default: string;
128
128
  };
129
129
  styles: {
130
- type: import('vue').PropType<Record<import('..').CarouselAppearanceType, import('vue').CSSProperties>>;
130
+ type: import('../../../vue').PropType<Record<import('../../../..').CarouselAppearanceType, import('../../../vue').CSSProperties>>;
131
131
  default: () => {};
132
132
  };
133
133
  classNames: {
134
- type: import('vue').PropType<Record<import('..').CarouselAppearanceType, string | string[] | Record<string, boolean>>>;
134
+ type: import('../../../vue').PropType<Record<import('../../../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>>;
135
135
  default: () => {};
136
136
  };
137
137
  customClass: {
138
- type: import('vue').PropType<string | string[] | Record<string, boolean>>;
138
+ type: import('../../../vue').PropType<string | string[] | Record<string, boolean>>;
139
139
  default: string;
140
140
  };
141
141
  customStyle: {
142
- type: import('vue').PropType<import('vue').CSSProperties | string>;
142
+ type: import('../../../vue').PropType<import('../../../vue').CSSProperties | string>;
143
143
  default: string;
144
144
  };
145
145
  buttonPosition: {
146
- type: import('vue').PropType<"inner" | "outer">;
146
+ type: import('../../../vue').PropType<"inner" | "outer">;
147
147
  default: string;
148
148
  };
149
149
  }>> & Readonly<{}>, {
150
150
  items: CarouselItemType[];
151
151
  customClass: string | string[] | Record<string, boolean>;
152
152
  showArrow: boolean;
153
- classNames: Record<import('..').CarouselAppearanceType, string | string[] | Record<string, boolean>>;
154
- customStyle: string | import('vue').CSSProperties;
155
- styles: Record<import('..').CarouselAppearanceType, import('vue').CSSProperties>;
153
+ classNames: Record<import('../../../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>;
154
+ customStyle: string | import('../../../vue').CSSProperties;
155
+ styles: Record<import('../../../..').CarouselAppearanceType, import('../../../vue').CSSProperties>;
156
156
  height: string | number;
157
- direction: import('..').CarouselDirection;
157
+ direction: import('../../../..').CarouselDirection;
158
158
  modelValue: number;
159
159
  autoplay: boolean;
160
160
  interval: number;
161
161
  loop: boolean;
162
- trigger: import('..').CarouselTrigger;
163
- indicatorPosition: import('..').CarouselIndicatorPosition;
164
- arrowVisibility: import('..').CarouselArrowVisibility;
162
+ trigger: import('../../../..').CarouselTrigger;
163
+ indicatorPosition: import('../../../..').CarouselIndicatorPosition;
164
+ arrowVisibility: import('../../../..').CarouselArrowVisibility;
165
165
  showIndicator: boolean;
166
166
  showInfo: boolean;
167
167
  buttonPosition: "inner" | "outer";
168
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
168
+ }, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
169
169
  export default _default;
@@ -1,5 +1,5 @@
1
- import { ExtractPropTypes, PropType, CSSProperties } from 'vue';
2
- import { CarouselItemType, CarouselDirection, CarouselTrigger, CarouselIndicatorPosition, CarouselArrowVisibility, CarouselAppearanceType } from './composition/type';
1
+ import { ExtractPropTypes, PropType, CSSProperties } from '../../../vue';
2
+ import { CarouselItemType, CarouselDirection, CarouselTrigger, CarouselIndicatorPosition, CarouselArrowVisibility, CarouselAppearanceType } from '../../../composition/type';
3
3
 
4
4
  export declare const carouselProps: {
5
5
  /** 轮播项列表 */
@@ -1,6 +1,6 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1
+ declare const _default: import('../../../../vue').DefineComponent<import('../../../../vue').ExtractPropTypes<{
2
2
  item: {
3
- type: import('vue').PropType<import('../..').CarouselItemType>;
3
+ type: import('../../../../vue').PropType<import('../../../../../..').CarouselItemType>;
4
4
  default: () => {};
5
5
  };
6
6
  index: {
@@ -16,16 +16,16 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
16
16
  default: boolean;
17
17
  };
18
18
  styles: {
19
- type: import('vue').PropType<Record<import('../..').CarouselAppearanceType, import('vue').CSSProperties>>;
19
+ type: import('../../../../vue').PropType<Record<import('../../../../../..').CarouselAppearanceType, import('../../../../vue').CSSProperties>>;
20
20
  default: () => {};
21
21
  };
22
22
  classNames: {
23
- type: import('vue').PropType<Record<import('../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>>;
23
+ type: import('../../../../vue').PropType<Record<import('../../../../../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>>;
24
24
  default: () => {};
25
25
  };
26
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../../vue').ComponentOptionsMixin, import('../../../../vue').ComponentOptionsMixin, "click"[], "click", import('../../../../vue').PublicProps, Readonly<import('../../../../vue').ExtractPropTypes<{
27
27
  item: {
28
- type: import('vue').PropType<import('../..').CarouselItemType>;
28
+ type: import('../../../../vue').PropType<import('../../../../../..').CarouselItemType>;
29
29
  default: () => {};
30
30
  };
31
31
  index: {
@@ -41,21 +41,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
41
41
  default: boolean;
42
42
  };
43
43
  styles: {
44
- type: import('vue').PropType<Record<import('../..').CarouselAppearanceType, import('vue').CSSProperties>>;
44
+ type: import('../../../../vue').PropType<Record<import('../../../../../..').CarouselAppearanceType, import('../../../../vue').CSSProperties>>;
45
45
  default: () => {};
46
46
  };
47
47
  classNames: {
48
- type: import('vue').PropType<Record<import('../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>>;
48
+ type: import('../../../../vue').PropType<Record<import('../../../../../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>>;
49
49
  default: () => {};
50
50
  };
51
51
  }>> & Readonly<{
52
52
  onClick?: ((...args: any[]) => any) | undefined;
53
53
  }>, {
54
- classNames: Record<import('../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>;
55
- styles: Record<import('../..').CarouselAppearanceType, import('vue').CSSProperties>;
54
+ classNames: Record<import('../../../../../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>;
55
+ styles: Record<import('../../../../../..').CarouselAppearanceType, import('../../../../vue').CSSProperties>;
56
56
  active: boolean;
57
- item: import('../..').CarouselItemType;
57
+ item: import('../../../../../..').CarouselItemType;
58
58
  showInfo: boolean;
59
59
  index: number;
60
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
60
+ }, {}, {}, {}, string, import('../../../../vue').ComponentProvideOptions, true, {}, any>;
61
61
  export default _default;
@@ -1,5 +1,5 @@
1
- import { ExtractPropTypes, PropType, CSSProperties } from 'vue';
2
- import { CarouselItemType, CarouselAppearanceType } from '../composition/type';
1
+ import { ExtractPropTypes, PropType, CSSProperties } from '../../../../vue';
2
+ import { CarouselItemType, CarouselAppearanceType } from '../../../../../composition/type';
3
3
 
4
4
  export declare const carouselItemProps: {
5
5
  /** 轮播项数据 */
@@ -1,4 +1,4 @@
1
- import { VNode } from 'vue';
1
+ import { VNode } from '../../../../vue';
2
2
 
3
3
  export interface CarouselItemType {
4
4
  /** 唯一标识 */
@@ -1,4 +1,4 @@
1
- import { CarouselItemType } from './type';
1
+ import { CarouselItemType } from '../../../../type';
2
2
 
3
3
  export interface UseCarouselOptions {
4
4
  items: CarouselItemType[];
@@ -8,10 +8,10 @@ export interface UseCarouselOptions {
8
8
  direction?: 'horizontal' | 'vertical';
9
9
  }
10
10
  export default function useCarousel(options: UseCarouselOptions): {
11
- currentIndex: import('vue').Ref<number, number>;
12
- totalItems: import('vue').ComputedRef<number>;
13
- isSingleItem: import('vue').ComputedRef<boolean>;
14
- trackStyle: import('vue').ComputedRef<{
11
+ currentIndex: import('../../../../vue').Ref<number, number>;
12
+ totalItems: import('../../../../vue').ComputedRef<number>;
13
+ isSingleItem: import('../../../../vue').ComputedRef<boolean>;
14
+ trackStyle: import('../../../../vue').ComputedRef<{
15
15
  transform: string;
16
16
  transition: string;
17
17
  }>;
@@ -1,13 +1,13 @@
1
- import { Plugin } from 'vue';
2
- import { default as FXChatPreview } from './src/chat-preview.component';
1
+ import { Plugin } from '../../vue';
2
+ import { default as FXChatPreview } from '../../src/chat-preview.component';
3
3
 
4
- export * from './src/chat-preview.props';
5
- export * from './src/preview-bridge-protocol';
6
- export { AgentWorkbenchSDK, invokeAgentWorkbenchSdkApi, postAssistantViaAgentWorkbenchSDK, subscribeAssistantViaAgentWorkbenchSDK, sendChatMessageViaAgentWorkbenchSDK, type AgentWorkbenchSDKSubscribeOptions, type SendWorkbenchChatMessageOptions, registerPreviewChromeSdk, type PreviewChromeSdkHandlers, } from './src/agent-workbench-sdk';
4
+ export * from '../../src/chat-preview.props';
5
+ export * from '../../src/preview-bridge-protocol';
6
+ export { AgentWorkbenchSDK, invokeAgentWorkbenchSdkApi, postAssistantViaAgentWorkbenchSDK, subscribeAssistantViaAgentWorkbenchSDK, sendChatMessageViaAgentWorkbenchSDK, type AgentWorkbenchSDKSubscribeOptions, type SendWorkbenchChatMessageOptions, registerPreviewChromeSdk, type PreviewChromeSdkHandlers, } from '../../src/agent-workbench-sdk';
7
7
  /** @deprecated 请使用 {@link AgentWorkbenchSDK.subscribe} */
8
- export { createPreviewIframeSdk } from './src/preview-iframe-sdk';
8
+ export { createPreviewIframeSdk } from '../../src/preview-iframe-sdk';
9
9
  /** @deprecated */
10
- export type { CreatePreviewIframeSdkOptions } from './src/preview-iframe-sdk';
10
+ export type { CreatePreviewIframeSdkOptions } from '../../src/preview-iframe-sdk';
11
11
  export { FXChatPreview };
12
12
  declare const _default: typeof FXChatPreview & Plugin;
13
13
  export default _default;
@@ -1,7 +1,7 @@
1
- import { PreviewBridgeAssistantPayload } from './preview-bridge-protocol';
1
+ import { PreviewBridgeAssistantPayload } from '../../../preview-bridge-protocol';
2
2
 
3
- export type { PreviewChromeSdkHandlers } from './preview-chrome-sdk';
4
- export { registerPreviewChromeSdk } from './preview-chrome-sdk';
3
+ export type { PreviewChromeSdkHandlers } from '../../../preview-chrome-sdk';
4
+ export { registerPreviewChromeSdk } from '../../../preview-chrome-sdk';
5
5
  export interface SendWorkbenchChatMessageOptions {
6
6
  /**
7
7
  * 接收 `message` 事件的窗口,默认 `window.top ?? window`(与 Workbench 挂载 `window.sendMessage` 时一致)。
@@ -45,12 +45,12 @@ export declare const AgentWorkbenchSDK: {
45
45
  readonly postAssistantMessage: typeof postAssistantViaAgentWorkbenchSDK;
46
46
  /** 向 Workbench 宿主投递会话发送(postMessage invoke / sendMessage) */
47
47
  readonly sendChatMessage: typeof sendChatMessageViaAgentWorkbenchSDK;
48
- readonly showPreview: (config: import('../..').PreviewConfig) => void;
48
+ readonly showPreview: (config: import('../../../../..').PreviewConfig) => void;
49
49
  /** 双栏(左、右均为预览 iframe)时,将右侧换成新的 `previewConfig`;其它情况与 `showPreview` 一致。 */
50
- readonly replaceRightPreview: (config: import('../..').PreviewConfig) => void;
50
+ readonly replaceRightPreview: (config: import('../../../../..').PreviewConfig) => void;
51
51
  readonly closePreviewPane: () => void;
52
52
  readonly closeRightPreview: () => void;
53
- readonly showFullScreenPreview: (config: import('../..').PreviewConfig) => void;
53
+ readonly showFullScreenPreview: (config: import('../../../../..').PreviewConfig) => void;
54
54
  readonly closeFullScreenPreview: () => void;
55
55
  readonly isPreviewLayoutActive: () => boolean;
56
56
  };
@@ -1,34 +1,34 @@
1
- import { PreviewConfig } from '../../app-preview';
1
+ import { PreviewConfig } from '../../../../../app-preview';
2
2
 
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ declare const _default: import('../../../vue').DefineComponent<import('../../../vue').ExtractPropTypes<{
4
4
  previewConfig: {
5
- type: import('vue').PropType<PreviewConfig>;
5
+ type: import('../../../vue').PropType<PreviewConfig>;
6
6
  default: () => {};
7
7
  };
8
8
  onClose: {
9
- type: import('vue').PropType<() => void>;
9
+ type: import('../../../vue').PropType<() => void>;
10
10
  default: () => void;
11
11
  };
12
12
  onIframeLoad: {
13
- type: import('vue').PropType<() => void>;
13
+ type: import('../../../vue').PropType<() => void>;
14
14
  default: () => void;
15
15
  };
16
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<import('../../../vue').ExtractPropTypes<{
17
17
  previewConfig: {
18
- type: import('vue').PropType<PreviewConfig>;
18
+ type: import('../../../vue').PropType<PreviewConfig>;
19
19
  default: () => {};
20
20
  };
21
21
  onClose: {
22
- type: import('vue').PropType<() => void>;
22
+ type: import('../../../vue').PropType<() => void>;
23
23
  default: () => void;
24
24
  };
25
25
  onIframeLoad: {
26
- type: import('vue').PropType<() => void>;
26
+ type: import('../../../vue').PropType<() => void>;
27
27
  default: () => void;
28
28
  };
29
29
  }>> & Readonly<{}>, {
30
- onClose: () => void;
31
30
  previewConfig: PreviewConfig;
31
+ onClose: () => void;
32
32
  onIframeLoad: () => void;
33
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
33
+ }, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
34
34
  export default _default;
@@ -1,5 +1,5 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { PreviewConfig } from '../../app-preview';
1
+ import { ExtractPropTypes, PropType } from '../../../vue';
2
+ import { PreviewConfig } from '../../../../../app-preview';
3
3
 
4
4
  export declare const chatPreviewProps: {
5
5
  previewConfig: {
@@ -1,4 +1,4 @@
1
- import { PreviewConfig } from '../../app-preview/src/types';
1
+ import { PreviewConfig } from '../../../../../app-preview/src/types';
2
2
 
3
3
  /** 由 FXConversation 注入,供 window 侧 imperative 调用(分屏 / 双栏预览) */
4
4
  export interface PreviewChromeSdkHandlers {
@@ -1,6 +1,6 @@
1
- import { AgentWorkbenchSDKSubscribeOptions } from './agent-workbench-sdk';
1
+ import { AgentWorkbenchSDKSubscribeOptions } from '../../../agent-workbench-sdk';
2
2
 
3
3
  export type CreatePreviewIframeSdkOptions = AgentWorkbenchSDKSubscribeOptions;
4
4
  /** @deprecated 请使用 {@link AgentWorkbenchSDK.subscribe} */
5
5
  export declare function createPreviewIframeSdk(options: CreatePreviewIframeSdkOptions): () => void;
6
- export { postAssistantViaAgentWorkbenchSDK } from './agent-workbench-sdk';
6
+ export { postAssistantViaAgentWorkbenchSDK } from '../../../agent-workbench-sdk';
package/coding/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Plugin } from 'vue';
2
- import { default as FXCoding } from './src/coding.component';
1
+ import { Plugin } from '../../vue';
2
+ import { default as FXCoding } from '../../src/coding.component';
3
3
 
4
- export * from './src/coding.props';
5
- export * from './src/types';
4
+ export * from '../../src/coding.props';
5
+ export * from '../../src/types';
6
6
  export { FXCoding };
7
7
  declare const _default: typeof FXCoding & Plugin;
8
8
  export default _default;