@apform-ui/core 1.12.0 → 1.13.0

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 (30) hide show
  1. package/dist/apform-ui.css +1 -1
  2. package/dist/apform-ui.js +4982 -4866
  3. package/dist/apform-ui.umd.cjs +42 -42
  4. package/dist/chat.css +1 -1
  5. package/dist/chat.d.ts +2 -0
  6. package/dist/chat.js +3736 -3620
  7. package/dist/chat.umd.cjs +46 -46
  8. package/dist/components/AppDialog/AppDialog.vue.d.ts +5 -5
  9. package/dist/components/Chat/Composer/Composer.promptOptimize.spec.d.ts +1 -0
  10. package/dist/components/Chat/Composer/Composer.vue.d.ts +36 -2
  11. package/dist/components/Chat/MessageBubble/MessageBubble.vue.d.ts +2 -2
  12. package/dist/components/Chat/MessageList/MessageList.vue.d.ts +2 -2
  13. package/dist/components/Chat/ProcessingDrawer/ProcessingDrawer.vue.d.ts +2 -2
  14. package/dist/components/Chat/PromptOptimizeButton/PromptOptimizeButton.vue.d.ts +21 -0
  15. package/dist/components/Chat/PromptOptimizeButton/doc.d.ts +3 -0
  16. package/dist/components/Chat/PromptOptimizeButton/index.d.ts +2 -0
  17. package/dist/components/Chat/PromptOptimizeButton/types.d.ts +30 -0
  18. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +1 -1
  19. package/dist/components/DocumentPreview/DocumentPreviewDrawer.vue.d.ts +2 -2
  20. package/dist/components/DocumentPreview/DocumentPreviewPanel.vue.d.ts +2 -2
  21. package/dist/components/ExcelPreviewCard/ExcelPreviewCard.vue.d.ts +1 -1
  22. package/dist/components/FormDialog/FormDialog.vue.d.ts +3 -3
  23. package/dist/components/MetricChart/MetricChart.vue.d.ts +1 -1
  24. package/dist/components/PdfPreviewCard/PdfPreviewCard.vue.d.ts +1 -1
  25. package/dist/components/ThresholdSlider/ThresholdSlider.vue.d.ts +2 -2
  26. package/dist/components/TimeRangePicker/TimeRangePicker.vue.d.ts +2 -2
  27. package/dist/docs/index.d.ts +1 -0
  28. package/dist/index.d.ts +3 -3
  29. package/package.json +1 -1
  30. package/src/docs/index.ts +3 -0
@@ -18,18 +18,18 @@ type __VLS_Slots = {} & {
18
18
  footer?: (props: typeof __VLS_29) => any;
19
19
  };
20
20
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- "update:modelValue": (value: boolean) => any;
22
- close: () => any;
23
21
  cancel: () => any;
22
+ close: () => any;
23
+ "update:modelValue": (value: boolean) => any;
24
24
  confirm: () => any;
25
25
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
26
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
27
- onClose?: (() => any) | undefined;
28
26
  onCancel?: (() => any) | undefined;
27
+ onClose?: (() => any) | undefined;
28
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
29
29
  onConfirm?: (() => any) | undefined;
30
30
  }>, {
31
- width: string;
32
31
  loading: boolean;
32
+ width: string;
33
33
  appendToBody: boolean;
34
34
  destroyOnClose: boolean;
35
35
  draggable: boolean;
@@ -1,3 +1,4 @@
1
+ import { PromptOptimizeConfig, PromptOptimizeSlotProps } from '../PromptOptimizeButton';
1
2
  type __VLS_Props = {
2
3
  disabled: boolean;
3
4
  placeholder?: string;
@@ -16,8 +17,33 @@ type __VLS_Props = {
16
17
  hideMeta?: boolean;
17
18
  /** 撑满父容器宽度(嵌入业务面板) */
18
19
  stretch?: boolean;
20
+ /**
21
+ * 提示词优化:注入 request 后在发送左侧显示默认 ✨;
22
+ * 可用 #optimize 替换按钮,或用 #actions 替换整块操作区。
23
+ */
24
+ promptOptimize?: PromptOptimizeConfig;
25
+ };
26
+ /**
27
+ * 写入输入框并自适应高度。
28
+ * @param value 新文本
29
+ */
30
+ declare function setText(value: string): Promise<void>;
31
+ /**
32
+ * 调用业务注入的 request,成功后直接替换输入框。
33
+ */
34
+ declare function optimize(): Promise<void>;
35
+ declare function send(): Promise<void>;
36
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {
37
+ canSend: boolean;
38
+ send: typeof send;
39
+ optimizeProps: PromptOptimizeSlotProps;
40
+ }, __VLS_9: {
41
+ text: string;
42
+ setText: (value: string) => void | Promise<void>;
43
+ disabled: boolean;
44
+ loading: boolean;
45
+ optimize: () => Promise<void>;
19
46
  };
20
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
21
47
  type __VLS_Slots = {} & {
22
48
  pending?: (props: typeof __VLS_1) => any;
23
49
  } & {
@@ -26,17 +52,25 @@ type __VLS_Slots = {} & {
26
52
  tools?: (props: typeof __VLS_5) => any;
27
53
  } & {
28
54
  actions?: (props: typeof __VLS_7) => any;
55
+ } & {
56
+ optimize?: (props: typeof __VLS_9) => any;
29
57
  };
30
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
58
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
59
+ getText: () => string;
60
+ setText: typeof setText;
61
+ optimize: typeof optimize;
62
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
31
63
  upload: (file: File) => any;
32
64
  send: (content: string, attachmentIds: string[]) => any;
33
65
  "remove-attachment": (id: string) => any;
34
66
  "ws-click": () => any;
67
+ "optimize-error": (error: unknown) => any;
35
68
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
36
69
  onUpload?: ((file: File) => any) | undefined;
37
70
  onSend?: ((content: string, attachmentIds: string[]) => any) | undefined;
38
71
  "onRemove-attachment"?: ((id: string) => any) | undefined;
39
72
  "onWs-click"?: (() => any) | undefined;
73
+ "onOptimize-error"?: ((error: unknown) => any) | undefined;
40
74
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
41
75
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
42
76
  export default _default;
@@ -15,14 +15,14 @@ type __VLS_Slots = {} & {
15
15
  default?: (props: typeof __VLS_14) => any;
16
16
  };
17
17
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
- preview: (attachment: MessageAttachment) => any;
19
18
  cancel: () => any;
19
+ preview: (attachment: MessageAttachment) => any;
20
20
  resume: (action: string, payload?: string | undefined) => any;
21
21
  retry: () => any;
22
22
  "open-process": () => any;
23
23
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
- onPreview?: ((attachment: MessageAttachment) => any) | undefined;
25
24
  onCancel?: (() => any) | undefined;
25
+ onPreview?: ((attachment: MessageAttachment) => any) | undefined;
26
26
  onResume?: ((action: string, payload?: string | undefined) => any) | undefined;
27
27
  onRetry?: (() => any) | undefined;
28
28
  "onOpen-process"?: (() => any) | undefined;
@@ -24,14 +24,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
24
24
  scrollToBottom: typeof scrollToBottom;
25
25
  container: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
26
26
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
27
- preview: (attachment: any) => any;
28
27
  cancel: () => any;
28
+ preview: (attachment: any) => any;
29
29
  resume: (action: string, payload?: string | undefined) => any;
30
30
  retry: () => any;
31
31
  "open-process": (message: Message) => any;
32
32
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
33
- onPreview?: ((attachment: any) => any) | undefined;
34
33
  onCancel?: (() => any) | undefined;
34
+ onPreview?: ((attachment: any) => any) | undefined;
35
35
  onResume?: ((action: string, payload?: string | undefined) => any) | undefined;
36
36
  onRetry?: (() => any) | undefined;
37
37
  "onOpen-process"?: ((message: Message) => any) | undefined;
@@ -16,11 +16,11 @@ type __VLS_Slots = {} & {
16
16
  default?: (props: typeof __VLS_18) => any;
17
17
  };
18
18
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- "update:modelValue": (args_0: boolean) => any;
20
19
  cancel: () => any;
20
+ "update:modelValue": (args_0: boolean) => any;
21
21
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
- "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
23
22
  onCancel?: (() => any) | undefined;
23
+ "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
24
24
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
25
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
26
  export default _default;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * PromptOptimizeButton — 提示词优化按钮(纯 UI,不发起网络请求)
3
+ */
4
+ type __VLS_Props = {
5
+ /** 是否禁用 */
6
+ disabled?: boolean;
7
+ /** 是否加载中 */
8
+ loading?: boolean;
9
+ /** 悬停提示 */
10
+ tooltip?: string;
11
+ };
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ click: (event: MouseEvent) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onClick?: ((event: MouseEvent) => any) | undefined;
16
+ }>, {
17
+ loading: boolean;
18
+ disabled: boolean;
19
+ tooltip: string;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** PromptOptimizeButton 文档 */
3
+ export declare const PromptOptimizeButtonDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as PromptOptimizeButton } from './PromptOptimizeButton.vue';
2
+ export type { PromptOptimizeConfig, PromptOptimizeSlotProps } from './types';
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Composer / PromptOptimizeButton 提示词优化配置(业务注入调用,库不写死模型与 URL)
3
+ */
4
+ export interface PromptOptimizeConfig {
5
+ /**
6
+ * 业务侧请求:原文 → 优化后文案
7
+ * @param text 当前输入框文本
8
+ */
9
+ request: (text: string) => Promise<string>;
10
+ /** 按钮 tooltip,默认「优化提示词」 */
11
+ tooltip?: string;
12
+ }
13
+ /**
14
+ * `#optimize` 作用域插槽参数
15
+ */
16
+ export interface PromptOptimizeSlotProps {
17
+ /** 当前输入文本 */
18
+ text: string;
19
+ /**
20
+ * 写入输入框并自适应高度
21
+ * @param value 新文本
22
+ */
23
+ setText: (value: string) => void | Promise<void>;
24
+ /** 是否禁用(Composer disabled / 上传中等) */
25
+ disabled: boolean;
26
+ /** 优化请求进行中 */
27
+ loading: boolean;
28
+ /** 触发一次优化(内部会调 config.request) */
29
+ optimize: () => Promise<void>;
30
+ }
@@ -15,10 +15,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
15
15
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
16
16
  onConfirm?: (() => any) | undefined;
17
17
  }>, {
18
+ loading: boolean;
18
19
  type: "info" | "warning" | "danger";
19
20
  title: string;
20
21
  width: string;
21
- loading: boolean;
22
22
  cancelText: string;
23
23
  confirmText: string;
24
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -47,13 +47,13 @@ type __VLS_Slots = {} & {
47
47
  media?: (props: typeof __VLS_23) => any;
48
48
  };
49
49
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
50
+ close: () => any;
50
51
  "update:modelValue": (value: boolean) => any;
51
52
  download: () => any;
52
- close: () => any;
53
53
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
54
+ onClose?: (() => any) | undefined;
54
55
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
55
56
  onDownload?: (() => any) | undefined;
56
- onClose?: (() => any) | undefined;
57
57
  }>, {
58
58
  error: string | null;
59
59
  loading: boolean;
@@ -45,11 +45,11 @@ type __VLS_Slots = {} & {
45
45
  media?: (props: typeof __VLS_19) => any;
46
46
  };
47
47
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
- download: () => any;
49
48
  close: () => any;
49
+ download: () => any;
50
50
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
51
- onDownload?: (() => any) | undefined;
52
51
  onClose?: (() => any) | undefined;
52
+ onDownload?: (() => any) | undefined;
53
53
  }>, {
54
54
  error: string | null;
55
55
  loading: boolean;
@@ -26,8 +26,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
26
26
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
27
27
  }>, {
28
28
  error: string | null;
29
- src: string;
30
29
  loading: boolean;
30
+ src: string;
31
31
  modelValue: string;
32
32
  rows: string[][];
33
33
  sheetNames: string[];
@@ -19,15 +19,15 @@ type __VLS_Slots = {} & {
19
19
  };
20
20
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
21
  submit: (data: Record<string, unknown>) => any;
22
- "update:modelValue": (value: boolean) => any;
23
22
  cancel: () => any;
23
+ "update:modelValue": (value: boolean) => any;
24
24
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
25
  onSubmit?: ((data: Record<string, unknown>) => any) | undefined;
26
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
27
26
  onCancel?: (() => any) | undefined;
27
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
28
28
  }>, {
29
- width: string;
30
29
  loading: boolean;
30
+ width: string;
31
31
  labelWidth: string;
32
32
  showFullscreenBtn: boolean;
33
33
  cancelText: string;
@@ -36,8 +36,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
36
36
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
37
37
  "onChart-click"?: ((params: unknown) => any) | undefined;
38
38
  }>, {
39
- type: "line" | "bar" | "area";
40
39
  loading: boolean;
40
+ type: "line" | "bar" | "area";
41
41
  variant: "full" | "spark";
42
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -22,8 +22,8 @@ type __VLS_Slots = {} & {
22
22
  };
23
23
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
24
24
  error: string | null;
25
- title: string;
26
25
  loading: boolean;
26
+ title: string;
27
27
  minHeight: string;
28
28
  forceIframe: boolean;
29
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -11,11 +11,11 @@ type __VLS_Props = {
11
11
  disabled?: boolean;
12
12
  };
13
13
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- "update:modelValue": (value: number) => any;
15
14
  change: (value: number) => any;
15
+ "update:modelValue": (value: number) => any;
16
16
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
18
17
  onChange?: ((value: number) => any) | undefined;
18
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
19
19
  }>, {
20
20
  disabled: boolean;
21
21
  showInput: boolean;
@@ -21,11 +21,11 @@ type __VLS_Props = {
21
21
  disabled?: boolean;
22
22
  };
23
23
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
- "update:modelValue": (value: TimeRange) => any;
25
24
  change: (value: TimeRange) => any;
25
+ "update:modelValue": (value: TimeRange) => any;
26
26
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
27
- "onUpdate:modelValue"?: ((value: TimeRange) => any) | undefined;
28
27
  onChange?: ((value: TimeRange) => any) | undefined;
28
+ "onUpdate:modelValue"?: ((value: TimeRange) => any) | undefined;
29
29
  }>, {
30
30
  disabled: boolean;
31
31
  size: "small" | "default" | "large";
@@ -13,6 +13,7 @@ export { CardTableDoc } from '../components/CardTable/doc';
13
13
  export { ApprovalCardDoc } from '../components/Chat/ApprovalCard/doc';
14
14
  export { AssistantPickerDoc } from '../components/Chat/AssistantPicker/doc';
15
15
  export { ComposerDoc } from '../components/Chat/Composer/doc';
16
+ export { PromptOptimizeButtonDoc } from '../components/Chat/PromptOptimizeButton/doc';
16
17
  export { ConversationHeaderDoc } from '../components/Chat/ConversationHeader/doc';
17
18
  export { PendingAttachmentChipDoc } from '../components/Chat/PendingAttachmentChip/doc';
18
19
  export { MessageBubbleDoc } from '../components/Chat/MessageBubble/doc';
package/dist/index.d.ts CHANGED
@@ -81,8 +81,8 @@ export { ArtifactGallery } from './components/ArtifactGallery';
81
81
  export { NodeArtifactStrip } from './components/NodeArtifactStrip';
82
82
  export { HitlArtifactPanel } from './components/HitlArtifactPanel';
83
83
  export { ExecutionArtifactPanel } from './components/ExecutionArtifactPanel';
84
- export { MessageBubble, TipBanner, StarterPromptGrid, MessageList, Composer, RunStatusBar, StreamStatusBanner, ApprovalCard, MessageParts, MessageAttachmentList, DocumentSummaryList, AttachmentPreviewModal, SessionSidebar, SessionHistoryDrawer, VirtualMessageScroller, ProcessingDrawer, ConversationHeader, PendingAttachmentChip, MentionInput, ThinkingBlock, EditableArtifactCard, MessageActionBar, CollapsibleStepCard, AgentTransferCard, FieldListCard, FlowNodeStripCard, TokenUsageCard, QuestionnaireCard, ChecklistProposalCard, RequirementAnalysisCard, DocumentDetailSummaryCard, ErrorRecoveryCard, VariableDiffCard, SubWorkflowStatusCard, PptPreviewCard, FlowPreviewShell, Model3dPreviewCard, ImageGenerateCard, SchemaFormPreview, WorkflowRunTimeline, SuggestionCard, ConversationSearchBar, TaskChainBar, RagContextPanel, AssistantPicker, ModelPicker, useChatScroll, renderMarkdown, splitTextAndCodeBlocks, isImage, isPdf, isOffice, isPreviewable, fileKind, formatSize, } from './chat';
85
- export type { StarterPromptItem, MentionTab, MentionResultItem, MentionChip, MentionSearchFn, StepCardTone, FieldListItem, FlowStripNode, QuestionnaireQuestion, ChecklistProposal, ChecklistProposalItem, ChecklistItemPriority, ChecklistItemKind, RequirementAnalysis, RequirementConfirmQuestion, DocumentDetailSummaryItem, DocumentDetailSummaryBody, ErrorRecoveryStrategy, VariableDiffChange, PptSlide, PptMetadata, FlowPreviewShellProps, Model3dPreviewCardProps, ImageGenerateCardProps, SchemaFormPreviewField, WorkflowRunStep, SuggestionItem, ConversationSearchResult, ConversationSearchSourceOption, TaskChainStepItem, TaskChainStepStatus, RagContextItem, AssistantPickerItem, ModelPickerItem, UseChatScrollOptions, UseChatScrollReturn, TextPart, } from './chat';
84
+ export { MessageBubble, TipBanner, StarterPromptGrid, MessageList, Composer, PromptOptimizeButton, RunStatusBar, StreamStatusBanner, ApprovalCard, MessageParts, MessageAttachmentList, DocumentSummaryList, AttachmentPreviewModal, SessionSidebar, SessionHistoryDrawer, VirtualMessageScroller, ProcessingDrawer, ConversationHeader, PendingAttachmentChip, MentionInput, ThinkingBlock, EditableArtifactCard, MessageActionBar, CollapsibleStepCard, AgentTransferCard, FieldListCard, FlowNodeStripCard, TokenUsageCard, QuestionnaireCard, ChecklistProposalCard, RequirementAnalysisCard, DocumentDetailSummaryCard, ErrorRecoveryCard, VariableDiffCard, SubWorkflowStatusCard, PptPreviewCard, FlowPreviewShell, Model3dPreviewCard, ImageGenerateCard, SchemaFormPreview, WorkflowRunTimeline, SuggestionCard, ConversationSearchBar, TaskChainBar, RagContextPanel, AssistantPicker, ModelPicker, useChatScroll, renderMarkdown, splitTextAndCodeBlocks, isImage, isPdf, isOffice, isPreviewable, fileKind, formatSize, } from './chat';
85
+ export type { StarterPromptItem, MentionTab, MentionResultItem, MentionChip, MentionSearchFn, StepCardTone, FieldListItem, FlowStripNode, QuestionnaireQuestion, ChecklistProposal, ChecklistProposalItem, ChecklistItemPriority, ChecklistItemKind, RequirementAnalysis, RequirementConfirmQuestion, DocumentDetailSummaryItem, DocumentDetailSummaryBody, ErrorRecoveryStrategy, VariableDiffChange, PptSlide, PptMetadata, FlowPreviewShellProps, Model3dPreviewCardProps, ImageGenerateCardProps, SchemaFormPreviewField, WorkflowRunStep, SuggestionItem, ConversationSearchResult, ConversationSearchSourceOption, TaskChainStepItem, TaskChainStepStatus, RagContextItem, AssistantPickerItem, ModelPickerItem, PromptOptimizeConfig, PromptOptimizeSlotProps, UseChatScrollOptions, UseChatScrollReturn, TextPart, } from './chat';
86
86
  export { useToast, provideToast } from './composables';
87
87
  export { useConfirm } from './composables';
88
88
  export type { ConfirmOptions } from './composables';
@@ -108,6 +108,6 @@ export type { StructuredJsonKind } from './utils/structuredJson';
108
108
  export { extractBusinessResultTables, extractChartOption, } from './utils/businessResultTables';
109
109
  export type { BusinessResultTable, ChartOptionExtract, } from './utils/businessResultTables';
110
110
  export { COLORS, CHART_COLORS, TEXT_COLORS, SPACING, BORDER_RADIUS, SHADOWS, DURATION, Z_INDEX, FONT_SIZE, CONTROL_HEIGHT, LAYOUT_HEIGHT, ICON_SIZE, PAGE, FORM, AVATAR_SIZE, } from './tokens';
111
- export declare const SCHEMA_UI_VERSION = "1.11.1";
111
+ export declare const SCHEMA_UI_VERSION = "1.13.0";
112
112
  export declare const EP_FORK_BASE = "2.14.2";
113
113
  export declare const EP_FORK_DATE = "2026-08-27";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apform-ui/core",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
package/src/docs/index.ts CHANGED
@@ -13,6 +13,7 @@ export { CardTableDoc } from '../components/CardTable/doc'
13
13
  export { ApprovalCardDoc } from '../components/Chat/ApprovalCard/doc'
14
14
  export { AssistantPickerDoc } from '../components/Chat/AssistantPicker/doc'
15
15
  export { ComposerDoc } from '../components/Chat/Composer/doc'
16
+ export { PromptOptimizeButtonDoc } from '../components/Chat/PromptOptimizeButton/doc'
16
17
  export { ConversationHeaderDoc } from '../components/Chat/ConversationHeader/doc'
17
18
  export { PendingAttachmentChipDoc } from '../components/Chat/PendingAttachmentChip/doc'
18
19
  export { MessageBubbleDoc } from '../components/Chat/MessageBubble/doc'
@@ -124,6 +125,7 @@ import { CardTableDoc } from '../components/CardTable/doc'
124
125
  import { ApprovalCardDoc } from '../components/Chat/ApprovalCard/doc'
125
126
  import { AssistantPickerDoc } from '../components/Chat/AssistantPicker/doc'
126
127
  import { ComposerDoc } from '../components/Chat/Composer/doc'
128
+ import { PromptOptimizeButtonDoc } from '../components/Chat/PromptOptimizeButton/doc'
127
129
  import { ConversationHeaderDoc } from '../components/Chat/ConversationHeader/doc'
128
130
  import { PendingAttachmentChipDoc } from '../components/Chat/PendingAttachmentChip/doc'
129
131
  import { MessageBubbleDoc } from '../components/Chat/MessageBubble/doc'
@@ -236,6 +238,7 @@ export const componentDocs: Record<string, ComponentDoc> = {
236
238
  ApprovalCard: ApprovalCardDoc,
237
239
  AssistantPicker: AssistantPickerDoc,
238
240
  Composer: ComposerDoc,
241
+ PromptOptimizeButton: PromptOptimizeButtonDoc,
239
242
  ConversationHeader: ConversationHeaderDoc,
240
243
  PendingAttachmentChip: PendingAttachmentChipDoc,
241
244
  MessageBubble: MessageBubbleDoc,