@farris/x-ui 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/bubble/src/bubble.component.d.ts +6 -0
  2. package/bubble/src/bubble.props.d.ts +13 -0
  3. package/bubble/src/components/attachment/bubble-attachment.component.d.ts +3 -0
  4. package/bubble/src/components/attachment/bubble-attachment.props.d.ts +5 -0
  5. package/bubble/src/components/bubble-think/bubble-think.props.d.ts +1 -1
  6. package/bubble/src/components/text-content/composition/block-type.d.ts +7 -5
  7. package/bubble/src/components/text-content/utils/block-renderer.d.ts +1 -1
  8. package/bubble/src/composition/types.d.ts +2 -1
  9. package/bubble/src/composition/use-widget-content.d.ts +1 -2
  10. package/chat-preview/index.d.ts +17 -0
  11. package/chat-preview/src/chat-preview.component.d.ts +34 -0
  12. package/chat-preview/src/chat-preview.props.d.ts +19 -0
  13. package/chat-preview/src/invoke-agent-workbench-sdk.d.ts +5 -0
  14. package/chat-preview/src/preview-bridge-host.d.ts +15 -0
  15. package/chat-preview/src/preview-bridge-protocol.d.ts +22 -0
  16. package/chat-preview/src/preview-chrome-sdk.d.ts +28 -0
  17. package/chat-preview/src/preview-iframe-sdk.d.ts +7 -0
  18. package/components.d.ts +2 -0
  19. package/dynamic-component/index.d.ts +1 -1
  20. package/dynamic-component/src/composition/dynamic-component-registry.d.ts +13 -0
  21. package/dynamic-component/src/composition/types.d.ts +5 -3
  22. package/enterprise-cloud/src/types.d.ts +15 -0
  23. package/farris.x-ui.esm.js +9476 -8715
  24. package/farris.x-ui.umd.cjs +131 -80
  25. package/index.css +1 -1
  26. package/package.json +1 -1
  27. package/prompts/src/components/prompt.component.d.ts +1 -1
  28. package/prompts/src/prompts.component.d.ts +3 -3
  29. package/tool-use/src/tool-use.component.d.ts +1 -1
  30. package/bubble/src/components/text-content/renderers/a2ui-renderer.d.ts +0 -3
  31. package/bubble/src/components/text-content/utils/widget-to-messages.d.ts +0 -44
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farris/x-ui",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "可复用的 AI 对话组件",
5
5
  "type": "module",
6
6
  "main": "./farris.x-ui.umd.cjs",
@@ -118,7 +118,6 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
118
118
  }>;
119
119
  id: string | number;
120
120
  customStyle: string | CSSProperties;
121
- children: import('../../../../../composition/type').BasePromptItemType[];
122
121
  disabled: boolean;
123
122
  description: string | VNode<import('../../../../vue').RendererNode, import('../../../../vue').RendererElement, {
124
123
  [key: string]: any;
@@ -127,5 +126,6 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
127
126
  badge: string | VNode<import('../../../../vue').RendererNode, import('../../../../vue').RendererElement, {
128
127
  [key: string]: any;
129
128
  }>;
129
+ children: import('../../../../../composition/type').BasePromptItemType[];
130
130
  }, {}, {}, {}, string, import('../../../../vue').ComponentProvideOptions, true, {}, any>;
131
131
  export default _default;
@@ -10,8 +10,8 @@ declare const _default: import('../../../vue').DefineComponent<{
10
10
  customStyle: string | import('../../../vue').CSSProperties;
11
11
  styles: Record<import('../../../composition/type').AppearanceType, import('../../../vue').CSSProperties>;
12
12
  gap: string | number;
13
- vertical: boolean;
14
13
  wrap: boolean;
14
+ vertical: boolean;
15
15
  fadeIn: boolean;
16
16
  fadeInLeft: boolean;
17
17
  }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<{
@@ -24,8 +24,8 @@ declare const _default: import('../../../vue').DefineComponent<{
24
24
  customStyle: string | import('../../../vue').CSSProperties;
25
25
  styles: Record<import('../../../composition/type').AppearanceType, import('../../../vue').CSSProperties>;
26
26
  gap: string | number;
27
- vertical: boolean;
28
27
  wrap: boolean;
28
+ vertical: boolean;
29
29
  fadeIn: boolean;
30
30
  fadeInLeft: boolean;
31
31
  }> & Readonly<{}>, {
@@ -38,8 +38,8 @@ declare const _default: import('../../../vue').DefineComponent<{
38
38
  customStyle: string | import('../../../vue').CSSProperties;
39
39
  styles: Record<import('../../../composition/type').AppearanceType, import('../../../vue').CSSProperties>;
40
40
  gap: string | number;
41
- vertical: boolean;
42
41
  wrap: boolean;
42
+ vertical: boolean;
43
43
  fadeIn: boolean;
44
44
  fadeInLeft: boolean;
45
45
  }, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
@@ -3,7 +3,7 @@ import { MessageContentToolUse } from '../../../../../enterprise-cloud/src/types
3
3
 
4
4
  /**
5
5
  * 智能体工具调用条:标题栏展示工具名;默认收折;
6
- * 展开后可查看调用参数与结果(结果到达后仍保持收折,徽章显示「完成」)。
6
+ * 展开后可查看调用参数与结果(结果到达后仍保持收折,徽章显示「完成」/「失败」)。
7
7
  */
8
8
  declare const _default: import('../../../vue').DefineComponent<import('../../../vue').ExtractPropTypes<{
9
9
  content: {
@@ -1,3 +0,0 @@
1
- import { BlockRenderer } from '../../../../../../../utils/block-renderer';
2
-
3
- export declare const renderA2UI: BlockRenderer;
@@ -1,44 +0,0 @@
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
- };