@apform-ui/core 1.10.16 → 1.10.18

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.
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ /** 生成图片 URL */
3
+ imageUrl?: string;
4
+ /** 生成 prompt */
5
+ prompt?: string;
6
+ /** 模型名 */
7
+ model?: string;
8
+ /** 尺寸,如 1024x1024 */
9
+ size?: string;
10
+ /** 风格:vivid / natural 等(避免与 Vue 原生 style 属性冲突) */
11
+ imageStyle?: string;
12
+ /** 质量:standard / hd 等 */
13
+ quality?: string;
14
+ /** 生成中 */
15
+ loading?: boolean;
16
+ /** 错误信息 */
17
+ error?: string;
18
+ };
19
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ download: () => any;
21
+ regenerate: () => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onDownload?: (() => any) | undefined;
24
+ onRegenerate?: (() => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** ImageGenerateCard 文档 */
3
+ export declare const ImageGenerateCardDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as ImageGenerateCard } from './ImageGenerateCard.vue';
2
+ export type { ImageGenerateCardProps } from './types';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * ImageGenerateCard 相关类型
3
+ */
4
+ /** ImageGenerateCard props */
5
+ export interface ImageGenerateCardProps {
6
+ /** 生成图片 URL */
7
+ imageUrl?: string;
8
+ /** 生成 prompt */
9
+ prompt?: string;
10
+ /** 模型名 */
11
+ model?: string;
12
+ /** 尺寸,如 1024x1024 */
13
+ size?: string;
14
+ /** 风格:vivid / natural 等 */
15
+ style?: string;
16
+ /** 质量:standard / hd 等 */
17
+ quality?: string;
18
+ /** 生成中 */
19
+ loading?: boolean;
20
+ /** 错误信息 */
21
+ error?: string;
22
+ }
@@ -0,0 +1,14 @@
1
+ import { SuggestionItem } from './types';
2
+ type __VLS_Props = {
3
+ suggestion: SuggestionItem;
4
+ accepted?: boolean;
5
+ dismissed?: boolean;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ accept: (id: string) => any;
9
+ dismiss: (id: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onAccept?: ((id: string) => any) | undefined;
12
+ onDismiss?: ((id: string) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** SuggestionCard 文档 */
3
+ export declare const SuggestionCardDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as SuggestionCard } from './SuggestionCard.vue';
2
+ export type { SuggestionItem } from './types';
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 智能建议项
3
+ */
4
+ export interface SuggestionItem {
5
+ id: string;
6
+ type: 'action' | 'optimization' | 'reference' | (string & {});
7
+ title: string;
8
+ description: string;
9
+ priority: 'high' | 'medium' | 'low' | (string & {});
10
+ targetId?: string;
11
+ targetName?: string;
12
+ }
@@ -18,6 +18,10 @@ type __VLS_Props = {
18
18
  pdfUrl?: string;
19
19
  /** Excel 预览 URL */
20
20
  excelUrl?: string;
21
+ /** 透传给 PdfPreviewCard 的鉴权 headers */
22
+ pdfHttpHeaders?: Record<string, string>;
23
+ /** 透传给 ExcelPreviewCard 的 fetch headers */
24
+ excelFetchHeaders?: Record<string, string>;
21
25
  /** 加载中 */
22
26
  loading?: boolean;
23
27
  /** 错误信息 */
@@ -16,6 +16,10 @@ type __VLS_Props = {
16
16
  pdfUrl?: string;
17
17
  /** Excel 预览 URL */
18
18
  excelUrl?: string;
19
+ /** 透传给 PdfPreviewCard 的鉴权 headers */
20
+ pdfHttpHeaders?: Record<string, string>;
21
+ /** 透传给 ExcelPreviewCard 的 fetch headers */
22
+ excelFetchHeaders?: Record<string, string>;
19
23
  /** 加载中 */
20
24
  loading?: boolean;
21
25
  /** 错误信息 */
@@ -26,6 +26,10 @@ export interface DocumentPreviewPanelProps {
26
26
  pdfUrl?: string;
27
27
  /** Excel 预览 URL(提供时用 iframe) */
28
28
  excelUrl?: string;
29
+ /** 透传给 PdfPreviewCard 的鉴权 headers */
30
+ pdfHttpHeaders?: Record<string, string>;
31
+ /** 透传给 ExcelPreviewCard 的 fetch headers */
32
+ excelFetchHeaders?: Record<string, string>;
29
33
  /** 加载中 */
30
34
  loading?: boolean;
31
35
  /** 错误信息 */
@@ -17,6 +17,8 @@ type __VLS_Props = {
17
17
  src?: string;
18
18
  /** 已加载的 ArrayBuffer */
19
19
  arrayBuffer?: ArrayBuffer | null;
20
+ /** 远程 src fetch 鉴权 headers(可选) */
21
+ fetchHeaders?: Record<string, string>;
20
22
  };
21
23
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
24
  "update:modelValue": (value: string) => any;
@@ -11,6 +11,8 @@ type __VLS_Props = {
11
11
  minHeight?: string;
12
12
  /** 强制禁用 pdfjs,仅用 iframe */
13
13
  forceIframe?: boolean;
14
+ /** pdfjs getDocument 鉴权 headers(可选) */
15
+ httpHeaders?: Record<string, string>;
14
16
  };
15
17
  declare var __VLS_1: {
16
18
  url: string;
@@ -39,8 +39,10 @@ export { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc';
39
39
  export { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc';
40
40
  export { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc';
41
41
  export { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc';
42
+ export { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc';
42
43
  export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc';
43
44
  export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc';
45
+ export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc';
44
46
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
45
47
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
46
48
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
package/dist/index.d.ts CHANGED
@@ -111,10 +111,14 @@ export type { VariableDiffChange } from './components/Chat/VariableDiffCard';
111
111
  export { SubWorkflowStatusCard } from './components/Chat/SubWorkflowStatusCard';
112
112
  export { PptPreviewCard } from './components/Chat/PptPreviewCard';
113
113
  export type { PptSlide, PptMetadata } from './components/Chat/PptPreviewCard';
114
+ export { ImageGenerateCard } from './components/Chat/ImageGenerateCard';
115
+ export type { ImageGenerateCardProps } from './components/Chat/ImageGenerateCard';
114
116
  export { SchemaFormPreview } from './components/Chat/SchemaFormPreview';
115
117
  export type { SchemaFormPreviewField } from './components/Chat/SchemaFormPreview';
116
118
  export { WorkflowRunTimeline } from './components/Chat/WorkflowRunTimeline';
117
119
  export type { WorkflowRunStep } from './components/Chat/WorkflowRunTimeline';
120
+ export { SuggestionCard } from './components/Chat/SuggestionCard';
121
+ export type { SuggestionItem } from './components/Chat/SuggestionCard';
118
122
  export { AssistantPicker } from './components/Chat/AssistantPicker';
119
123
  export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
120
124
  export { ModelPicker } from './components/Chat/ModelPicker';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apform-ui/core",
3
- "version": "1.10.16",
3
+ "version": "1.10.18",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
package/src/docs/index.ts CHANGED
@@ -39,8 +39,10 @@ export { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
39
39
  export { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
40
40
  export { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
41
41
  export { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
42
+ export { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc'
42
43
  export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
43
44
  export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
45
+ export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
44
46
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
45
47
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
46
48
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -125,8 +127,10 @@ import { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
125
127
  import { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
126
128
  import { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
127
129
  import { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
130
+ import { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc'
128
131
  import { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
129
132
  import { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
133
+ import { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
130
134
  import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
131
135
  import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
132
136
  import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -212,8 +216,10 @@ export const componentDocs: Record<string, ComponentDoc> = {
212
216
  VariableDiffCard: VariableDiffCardDoc,
213
217
  SubWorkflowStatusCard: SubWorkflowStatusCardDoc,
214
218
  PptPreviewCard: PptPreviewCardDoc,
219
+ ImageGenerateCard: ImageGenerateCardDoc,
215
220
  SchemaFormPreview: SchemaFormPreviewDoc,
216
221
  WorkflowRunTimeline: WorkflowRunTimelineDoc,
222
+ SuggestionCard: SuggestionCardDoc,
217
223
  AttachmentPreviewModal: AttachmentPreviewModalDoc,
218
224
  DocumentSummaryList: DocumentSummaryListDoc,
219
225
  MessageAttachmentList: MessageAttachmentListDoc,