@apform-ui/core 1.10.17 → 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
+ }
@@ -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,6 +39,7 @@ 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';
44
45
  export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc';
package/dist/index.d.ts CHANGED
@@ -111,6 +111,8 @@ 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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apform-ui/core",
3
- "version": "1.10.17",
3
+ "version": "1.10.18",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
package/src/docs/index.ts CHANGED
@@ -39,6 +39,7 @@ 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'
44
45
  export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
@@ -126,6 +127,7 @@ import { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
126
127
  import { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
127
128
  import { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
128
129
  import { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
130
+ import { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc'
129
131
  import { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
130
132
  import { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
131
133
  import { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
@@ -214,6 +216,7 @@ export const componentDocs: Record<string, ComponentDoc> = {
214
216
  VariableDiffCard: VariableDiffCardDoc,
215
217
  SubWorkflowStatusCard: SubWorkflowStatusCardDoc,
216
218
  PptPreviewCard: PptPreviewCardDoc,
219
+ ImageGenerateCard: ImageGenerateCardDoc,
217
220
  SchemaFormPreview: SchemaFormPreviewDoc,
218
221
  WorkflowRunTimeline: WorkflowRunTimelineDoc,
219
222
  SuggestionCard: SuggestionCardDoc,