openxiangda 1.0.151 → 1.0.152

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 (28) hide show
  1. package/README.md +2 -0
  2. package/openxiangda-skills/SKILL.md +1 -0
  3. package/openxiangda-skills/references/component-guide.md +4 -0
  4. package/openxiangda-skills/references/pages/page-sdk.md +3 -2
  5. package/package.json +6 -2
  6. package/packages/sdk/dist/{ProcessPreview-BOCARAvP.d.mts → ProcessPreview-B_HqjU7v.d.mts} +4 -2
  7. package/packages/sdk/dist/{ProcessPreview-BOCARAvP.d.ts → ProcessPreview-B_HqjU7v.d.ts} +4 -2
  8. package/packages/sdk/dist/components/index.cjs +3488 -2270
  9. package/packages/sdk/dist/components/index.cjs.map +1 -1
  10. package/packages/sdk/dist/components/index.d.mts +145 -38
  11. package/packages/sdk/dist/components/index.d.ts +145 -38
  12. package/packages/sdk/dist/components/index.mjs +3240 -2017
  13. package/packages/sdk/dist/components/index.mjs.map +1 -1
  14. package/packages/sdk/dist/{dataManagementApi-CLMqf79O.d.mts → dataManagementApi-CEDsA3tT.d.ts} +2 -2
  15. package/packages/sdk/dist/{dataManagementApi-DhpRKmlp.d.ts → dataManagementApi-quq3Zhgo.d.mts} +2 -2
  16. package/packages/sdk/dist/runtime/index.cjs +3172 -2301
  17. package/packages/sdk/dist/runtime/index.cjs.map +1 -1
  18. package/packages/sdk/dist/runtime/index.d.mts +5 -4
  19. package/packages/sdk/dist/runtime/index.d.ts +5 -4
  20. package/packages/sdk/dist/runtime/index.mjs +3068 -2192
  21. package/packages/sdk/dist/runtime/index.mjs.map +1 -1
  22. package/packages/sdk/dist/runtime/react.cjs +2 -2
  23. package/packages/sdk/dist/runtime/react.cjs.map +1 -1
  24. package/packages/sdk/dist/runtime/react.d.mts +9 -4
  25. package/packages/sdk/dist/runtime/react.d.ts +9 -4
  26. package/packages/sdk/dist/runtime/react.mjs +2 -2
  27. package/packages/sdk/dist/runtime/react.mjs.map +1 -1
  28. package/templates/openxiangda-react-spa/AGENTS.md +2 -0
@@ -1,9 +1,10 @@
1
- import { d as FormEngineConfig, b as FormSchema, e as FieldBehavior, O as OptionItem, a as FormRuntimeApi, f as FormRuntimeConfig, g as FormAppearanceConfig, V as ValidationPreset, h as ValidationRule, i as FormEffect, c as FormRuntimeApiConfig, j as OptionSourceConfig, P as ProcessStatus, S as StatusMeta, T as TaskStatus, A as ApprovalPermission, k as FormDataDeleteParams, C as ChangeRecordQueryParams, l as ChangeRecordListResponse, m as FormDataQueryParams, n as FormInstanceData, I as InitiatorSelectCandidate, o as InitiatorSelectRequirement, p as ProcessBasicInfo, q as ProcessDefinition, r as ProcessTask, s as ReturnableNodeResult, t as ReturnableNode, u as ViewPermissionQueryParams, v as ViewPermissionSummary, w as ApproveParams, x as PreviewParams, y as ProcessRoute, z as ResubmitParams, B as ReturnParams, D as SaveTaskParams, E as TransferParams, W as WithdrawParams, G as TextFieldProps, N as NumberFieldProps, H as TextAreaFieldProps, J as SelectFieldProps, M as MultiSelectFieldProps, K as RadioFieldProps, L as CheckboxFieldProps, Q as DateFieldProps, U as CascadeDateFieldProps, X as AttachmentFieldProps, Y as ImageFieldProps, Z as SubFormFieldProps, _ as UserSelectFieldProps, $ as DepartmentSelectFieldProps, a0 as CascadeSelectFieldProps, a1 as AddressFieldProps, a2 as AssociationFormFieldProps, a3 as EditorFieldProps, a4 as EditorChoiceOption, a5 as SerialNumberFieldProps, a6 as LocationFieldProps, a7 as DigitalSignatureFieldProps, a8 as JSONFieldProps, a9 as ProcessAction, aa as InitiatorSelectedApprovers, ab as ReturnPolicy, ac as ChangeRecord, ad as StandardFormPageMode, ae as LowcodePageSchema } from '../ProcessPreview-BOCARAvP.js';
2
- export { af as AddressValue, ag as ApprovalActionType, ah as ApprovalTimeline, ai as ApprovalTimelineProps, aj as AssociationFormConfig, ak as AssociationValue, al as AttachmentImageVariants, am as AttachmentItem, an as BaseFieldProps, ao as BaseLayoutNode, ap as DataFilter, aq as DataLinkageCondition, ar as DataLinkageConfig, as as DateRangeRestriction, at as DateRestrictionConfig, au as DateShortcutConfig, av as DateShortcutType, aw as DefaultValueLinkageConfig, ax as DepartmentSearchParams, ay as DepartmentSearchResult, az as DepartmentSearchScope, aA as DepartmentTreeNode, aB as DigitalSignatureValue, aC as EditorToolbarAction, F as FieldDefinition, aD as FieldLayoutNode, aE as FieldValueSyncConfig, aF as FormEffectAction, aG as FormEffectCondition, aH as FormEffectConditionOperator, aI as FormEngineMode, aJ as FormLayoutNode, aK as FormSection, aL as FormSectionProps, aM as FormSubmitBehavior, aN as FormTemplateConfig, aO as GridLayoutCell, aP as GridLayoutNode, aQ as ImageCompressionConfig, aR as ImageCompressionVariantConfig, aS as ImageVariant, aT as InitiatorSelectScope, aU as LayoutVisibleWhen, aV as LinkedFormOptionConfig, aW as LocationValue, aX as LowcodePageMeta, aY as LowcodePageNode, aZ as LowcodePageNodeType, a_ as OptionSourceType, a$ as PeopleShortcutConfig, b0 as PeopleShortcutType, b1 as ProcessNodeType, b2 as ProcessPreview, b3 as ProcessPreviewProps, b4 as RuntimeAuthHeadersProvider, b5 as RuntimeDataQueryParams, b6 as RuntimeDataQueryResult, b7 as RuntimeRequestConfig, R as RuntimeResponse, b8 as RuntimeUploadOptions, b9 as RuntimeUploadProvider, ba as SectionLayoutNode, bb as SignaturePoint, bc as StepLayoutItem, bd as StepsLayoutNode, be as SubFormColumn, bf as TabLayoutItem, bg as TabsLayoutNode, bh as TextShortcutConfig, bi as TextShortcutType, bj as UserDisplayFormat, bk as UserItem } from '../ProcessPreview-BOCARAvP.js';
1
+ import { Z as FormEngineConfig, a4 as FormSchema, O as FieldBehavior, au as OptionItem, a1 as FormRuntimeApi, a3 as FormRuntimeConfig, S as FormAppearanceConfig, bg as ValidationPreset, bh as ValidationRule, V as FormEffect, a2 as FormRuntimeApiConfig, av as OptionSourceConfig, aH as ProcessStatus, b0 as StatusMeta, b7 as TaskStatus, c as ApprovalPermission, T as FormDataDeleteParams, q as ChangeRecordQueryParams, p as ChangeRecordListResponse, U as FormDataQueryParams, $ as FormInstanceData, af as InitiatorSelectCandidate, ag as InitiatorSelectRequirement, aB as ProcessBasicInfo, aC as ProcessDefinition, aI as ProcessTask, aO as ReturnableNodeResult, aN as ReturnableNode, bi as ViewPermissionQueryParams, bj as ViewPermissionSummary, f as ApproveParams, az as PreviewParams, aG as ProcessRoute, aK as ResubmitParams, aL as ReturnParams, aW as SaveTaskParams, bc as TransferParams, bk as WithdrawParams, b9 as TextFieldProps, at as NumberFieldProps, b8 as TextAreaFieldProps, aY as SelectFieldProps, as as MultiSelectFieldProps, aJ as RadioFieldProps, r as CheckboxFieldProps, u as DateFieldProps, C as CascadeDateFieldProps, j as AttachmentFieldProps, ad as ImageFieldProps, b4 as SubFormFieldProps, bf as UserSelectFieldProps, H as DepartmentSelectFieldProps, n as CascadeSelectFieldProps, A as AddressFieldProps, h as AssociationFormFieldProps, M as EditorFieldProps, L as EditorChoiceOption, aZ as SerialNumberFieldProps, am as LocationFieldProps, J as DigitalSignatureFieldProps, aj as JSONFieldProps, l as AttachmentItem, aA as ProcessAction, ai as InitiatorSelectedApprovers, aM as ReturnPolicy, o as ChangeRecord, a$ as StandardFormPageMode, ar as LowcodePageSchema } from '../ProcessPreview-B_HqjU7v.js';
2
+ export { a as AddressValue, b as ApprovalActionType, d as ApprovalTimeline, e as ApprovalTimelineProps, g as AssociationFormConfig, i as AssociationValue, k as AttachmentImageVariants, B as BaseFieldProps, m as BaseLayoutNode, D as DataFilter, s as DataLinkageCondition, t as DataLinkageConfig, v as DateRangeRestriction, w as DateRestrictionConfig, x as DateShortcutConfig, y as DateShortcutType, z as DefaultValueLinkageConfig, E as DepartmentSearchParams, F as DepartmentSearchResult, G as DepartmentSearchScope, I as DepartmentTreeNode, K as DigitalSignatureValue, N as EditorToolbarAction, P as FieldDefinition, Q as FieldLayoutNode, R as FieldValueSyncConfig, W as FormEffectAction, X as FormEffectCondition, Y as FormEffectConditionOperator, _ as FormEngineMode, a0 as FormLayoutNode, a5 as FormSection, a6 as FormSectionProps, a7 as FormSubmitBehavior, a8 as FormTemplateConfig, a9 as GridLayoutCell, aa as GridLayoutNode, ab as ImageCompressionConfig, ac as ImageCompressionVariantConfig, ae as ImageVariant, ah as InitiatorSelectScope, ak as LayoutVisibleWhen, al as LinkedFormOptionConfig, an as LocationValue, ao as LowcodePageMeta, ap as LowcodePageNode, aq as LowcodePageNodeType, aw as OptionSourceType, ax as PeopleShortcutConfig, ay as PeopleShortcutType, aD as ProcessNodeType, aE as ProcessPreview, aF as ProcessPreviewProps, aP as RuntimeAuthHeadersProvider, aQ as RuntimeDataQueryParams, aR as RuntimeDataQueryResult, aS as RuntimeRequestConfig, aT as RuntimeResponse, aU as RuntimeUploadOptions, aV as RuntimeUploadProvider, aX as SectionLayoutNode, a_ as SignaturePoint, b1 as StepLayoutItem, b2 as StepsLayoutNode, b3 as SubFormColumn, b5 as TabLayoutItem, b6 as TabsLayoutNode, ba as TextShortcutConfig, bb as TextShortcutType, bd as UserDisplayFormat, be as UserItem } from '../ProcessPreview-B_HqjU7v.js';
3
3
  import * as React from 'react';
4
4
  import React__default from 'react';
5
- import { D as DataManagementConfigScope, a as DataManagementConfig, F as FormActionPermission } from '../dataManagementApi-DhpRKmlp.js';
6
- export { b as DataManagementDensity, c as DataManagementField, d as DataManagementFilterGroup, f as DataManagementFilterRule, g as DataManagementListResult, h as DataManagementQuery, i as DataManagementSort, j as advancedSearchDataManagement, k as batchApproveDataManagementRows, l as buildFilterPayload, m as deleteDataManagementRows, n as downloadDataManagementImportTemplate, o as exportDataManagementRows, p as getDataManagementConfig, q as getDataManagementSchema, r as getDataManagementTransferRecords, s as getSystemFieldsForFormType, t as importDataManagementRows, u as importPreviewDataManagementRows, v as normalizeColumnConfig, w as normalizeDataManagementFields, x as normalizeDataManagementList, y as saveDataManagementConfig } from '../dataManagementApi-DhpRKmlp.js';
5
+ import * as react_jsx_runtime from 'react/jsx-runtime';
6
+ import { a as DataManagementConfigScope, D as DataManagementConfig, F as FormActionPermission } from '../dataManagementApi-CEDsA3tT.js';
7
+ export { b as DataManagementDensity, c as DataManagementField, d as DataManagementFilterGroup, e as DataManagementFilterRule, f as DataManagementListResult, g as DataManagementQuery, h as DataManagementSort, i as advancedSearchDataManagement, j as batchApproveDataManagementRows, k as buildFilterPayload, l as deleteDataManagementRows, m as downloadDataManagementImportTemplate, n as exportDataManagementRows, p as getDataManagementConfig, q as getDataManagementSchema, r as getDataManagementTransferRecords, s as getSystemFieldsForFormType, t as importDataManagementRows, u as importPreviewDataManagementRows, v as normalizeColumnConfig, w as normalizeDataManagementFields, x as normalizeDataManagementList, y as saveDataManagementConfig } from '../dataManagementApi-CEDsA3tT.js';
7
8
 
8
9
  interface FormContextValue {
9
10
  mode: FormEngineConfig['mode'];
@@ -57,14 +58,14 @@ interface FormRendererProps {
57
58
  columns?: 1 | 2 | 3 | 4;
58
59
  size?: 'compact' | 'default' | 'large';
59
60
  }
60
- declare function FormRenderer({ className, fieldClassName, columns, size, }: FormRendererProps): React__default.JSX.Element;
61
+ declare function FormRenderer({ className, fieldClassName, columns, size, }: FormRendererProps): react_jsx_runtime.JSX.Element;
61
62
 
62
63
  interface FormShellProps {
63
64
  children: React__default.ReactNode;
64
65
  appearance?: FormAppearanceConfig;
65
66
  className?: string;
66
67
  }
67
- declare function FormShell({ children, appearance, className }: FormShellProps): React__default.JSX.Element;
68
+ declare function FormShell({ children, appearance, className }: FormShellProps): react_jsx_runtime.JSX.Element;
68
69
 
69
70
  interface FormActionsProps {
70
71
  className?: string;
@@ -74,7 +75,7 @@ interface FormActionsProps {
74
75
  onSubmit?: (values: Record<string, any>) => Promise<void>;
75
76
  submitSuccessMode?: 'stay' | 'callback';
76
77
  }
77
- declare function FormActions({ className, submitText, resetText, showReset, onSubmit, }: FormActionsProps): React__default.JSX.Element | null;
78
+ declare function FormActions({ className, submitText, resetText, showReset, onSubmit, }: FormActionsProps): react_jsx_runtime.JSX.Element | null;
78
79
 
79
80
  declare const defaultComponentRegistry: Record<string, React__default.ComponentType<any>>;
80
81
 
@@ -114,7 +115,7 @@ interface FieldWrapperProps {
114
115
  tipsClassName?: string;
115
116
  children: React__default.ReactNode;
116
117
  }
117
- declare function FieldWrapper({ fieldId, label, required, tips, className, labelClassName, tipsClassName, children, }: FieldWrapperProps): React__default.JSX.Element;
118
+ declare function FieldWrapper({ fieldId, label, required, tips, className, labelClassName, tipsClassName, children, }: FieldWrapperProps): react_jsx_runtime.JSX.Element;
118
119
 
119
120
  interface FormContainerProps {
120
121
  title?: string;
@@ -123,7 +124,7 @@ interface FormContainerProps {
123
124
  maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
124
125
  className?: string;
125
126
  }
126
- declare function FormContainer({ title, description, children, maxWidth, className, }: FormContainerProps): React__default.JSX.Element;
127
+ declare function FormContainer({ title, description, children, maxWidth, className, }: FormContainerProps): react_jsx_runtime.JSX.Element;
127
128
 
128
129
  declare function createFormRuntimeApi(config?: FormRuntimeApiConfig): FormRuntimeApi;
129
130
 
@@ -212,39 +213,39 @@ declare function getChangeRecords(request: FormRuntimeApi['request'], params: Ch
212
213
  /** 获取视图权限摘要 */
213
214
  declare function getViewPermission(request: FormRuntimeApi['request'], params: ViewPermissionQueryParams): Promise<ViewPermissionSummary>;
214
215
 
215
- declare function TextField(props: TextFieldProps): React__default.JSX.Element | null;
216
+ declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element | null;
216
217
 
217
- declare function NumberField(props: NumberFieldProps): React__default.JSX.Element | null;
218
+ declare function NumberField(props: NumberFieldProps): react_jsx_runtime.JSX.Element | null;
218
219
 
219
- declare function TextAreaField(props: TextAreaFieldProps): React__default.JSX.Element | null;
220
+ declare function TextAreaField(props: TextAreaFieldProps): react_jsx_runtime.JSX.Element | null;
220
221
 
221
- declare function SelectField(props: SelectFieldProps): React__default.JSX.Element | null;
222
+ declare function SelectField(props: SelectFieldProps): react_jsx_runtime.JSX.Element | null;
222
223
 
223
- declare function MultiSelectField(props: MultiSelectFieldProps): React__default.JSX.Element | null;
224
+ declare function MultiSelectField(props: MultiSelectFieldProps): react_jsx_runtime.JSX.Element | null;
224
225
 
225
- declare function RadioField(props: RadioFieldProps): React__default.JSX.Element | null;
226
+ declare function RadioField(props: RadioFieldProps): react_jsx_runtime.JSX.Element | null;
226
227
 
227
- declare function CheckboxField(props: CheckboxFieldProps): React__default.JSX.Element | null;
228
+ declare function CheckboxField(props: CheckboxFieldProps): react_jsx_runtime.JSX.Element | null;
228
229
 
229
- declare function DateField(props: DateFieldProps): React__default.JSX.Element | null;
230
+ declare function DateField(props: DateFieldProps): react_jsx_runtime.JSX.Element | null;
230
231
 
231
- declare function CascadeDateField(props: CascadeDateFieldProps): React__default.JSX.Element | null;
232
+ declare function CascadeDateField(props: CascadeDateFieldProps): react_jsx_runtime.JSX.Element | null;
232
233
 
233
- declare function AttachmentField(props: AttachmentFieldProps): React__default.JSX.Element | null;
234
+ declare function AttachmentField(props: AttachmentFieldProps): react_jsx_runtime.JSX.Element | null;
234
235
 
235
- declare function ImageField(props: ImageFieldProps): React__default.JSX.Element | null;
236
+ declare function ImageField(props: ImageFieldProps): react_jsx_runtime.JSX.Element | null;
236
237
 
237
- declare function SubFormField(props: SubFormFieldProps): React__default.JSX.Element | null;
238
+ declare function SubFormField(props: SubFormFieldProps): react_jsx_runtime.JSX.Element | null;
238
239
 
239
- declare function UserSelectField(props: UserSelectFieldProps): React__default.JSX.Element | null;
240
+ declare function UserSelectField(props: UserSelectFieldProps): react_jsx_runtime.JSX.Element | null;
240
241
 
241
- declare function DepartmentSelectField(props: DepartmentSelectFieldProps): React__default.JSX.Element | null;
242
+ declare function DepartmentSelectField(props: DepartmentSelectFieldProps): react_jsx_runtime.JSX.Element | null;
242
243
 
243
- declare function CascadeSelectField(props: CascadeSelectFieldProps): React__default.JSX.Element | null;
244
+ declare function CascadeSelectField(props: CascadeSelectFieldProps): react_jsx_runtime.JSX.Element | null;
244
245
 
245
- declare function AddressField(props: AddressFieldProps): React__default.JSX.Element | null;
246
+ declare function AddressField(props: AddressFieldProps): react_jsx_runtime.JSX.Element | null;
246
247
 
247
- declare function AssociationFormField(props: AssociationFormFieldProps): React__default.JSX.Element | null;
248
+ declare function AssociationFormField(props: AssociationFormFieldProps): react_jsx_runtime.JSX.Element | null;
248
249
 
249
250
  interface RichTextEditorCoreProps {
250
251
  value?: string;
@@ -266,16 +267,16 @@ interface RichTextEditorCoreProps {
266
267
  fieldId?: string;
267
268
  mobile?: boolean;
268
269
  }
269
- declare function RichTextEditorCore({ value, onChange, disabled, inputClassName, placeholder, rows, maxLength, height, toolbarConfig, uploadBucketName, maxImageSize, allowedImageTypes, fontFamilies, fontSizes, colorPresets, api, fieldId, mobile, }: RichTextEditorCoreProps): React__default.JSX.Element;
270
- declare function EditorField(props: EditorFieldProps): React__default.JSX.Element | null;
270
+ declare function RichTextEditorCore({ value, onChange, disabled, inputClassName, placeholder, rows, maxLength, height, toolbarConfig, uploadBucketName, maxImageSize, allowedImageTypes, fontFamilies, fontSizes, colorPresets, api, fieldId, mobile, }: RichTextEditorCoreProps): react_jsx_runtime.JSX.Element;
271
+ declare function EditorField(props: EditorFieldProps): react_jsx_runtime.JSX.Element | null;
271
272
 
272
- declare function SerialNumberField(props: SerialNumberFieldProps): React__default.JSX.Element | null;
273
+ declare function SerialNumberField(props: SerialNumberFieldProps): react_jsx_runtime.JSX.Element | null;
273
274
 
274
- declare function LocationField(props: LocationFieldProps): React__default.JSX.Element | null;
275
+ declare function LocationField(props: LocationFieldProps): react_jsx_runtime.JSX.Element | null;
275
276
 
276
- declare function DigitalSignatureField(props: DigitalSignatureFieldProps): React__default.JSX.Element | null;
277
+ declare function DigitalSignatureField(props: DigitalSignatureFieldProps): react_jsx_runtime.JSX.Element | null;
277
278
 
278
- declare function JSONField(props: JSONFieldProps): React__default.JSX.Element | null;
279
+ declare function JSONField(props: JSONFieldProps): react_jsx_runtime.JSX.Element | null;
279
280
 
280
281
  interface FormGridProps {
281
282
  columns?: 1 | 2 | 3 | 4;
@@ -286,7 +287,7 @@ interface FormGridProps {
286
287
  className?: string;
287
288
  children: React__default.ReactNode;
288
289
  }
289
- declare function FormGrid({ columns, gap, columnGap, rowGap, columnRatios, className, children, }: FormGridProps): React__default.JSX.Element;
290
+ declare function FormGrid({ columns, gap, columnGap, rowGap, columnRatios, className, children, }: FormGridProps): react_jsx_runtime.JSX.Element;
290
291
 
291
292
  interface FormTabItem {
292
293
  key: string;
@@ -299,7 +300,7 @@ interface FormTabsProps {
299
300
  className?: string;
300
301
  tabClassName?: string;
301
302
  }
302
- declare function FormTabs({ items, defaultActiveKey, className, tabClassName }: FormTabsProps): React__default.JSX.Element;
303
+ declare function FormTabs({ items, defaultActiveKey, className, tabClassName }: FormTabsProps): react_jsx_runtime.JSX.Element;
303
304
 
304
305
  interface FormStepItem {
305
306
  key: string;
@@ -312,7 +313,7 @@ interface FormStepsProps {
312
313
  className?: string;
313
314
  onStepChange?: (step: number) => void;
314
315
  }
315
- declare function FormSteps({ items, className, onStepChange }: FormStepsProps): React__default.JSX.Element;
316
+ declare function FormSteps({ items, className, onStepChange }: FormStepsProps): react_jsx_runtime.JSX.Element;
316
317
 
317
318
  interface FormSummaryProps {
318
319
  className?: string;
@@ -321,7 +322,113 @@ interface FormSummaryProps {
321
322
  columns?: 1 | 2 | 3;
322
323
  fields?: string[];
323
324
  }
324
- declare function FormSummary({ className, labelClassName, valueClassName, columns, fields, }: FormSummaryProps): React__default.JSX.Element;
325
+ declare function FormSummary({ className, labelClassName, valueClassName, columns, fields, }: FormSummaryProps): react_jsx_runtime.JSX.Element;
326
+
327
+ type FilePreviewType = 'image' | 'video' | 'audio' | 'pdf' | 'spreadsheet' | 'text' | 'office' | 'download';
328
+ type FilePreviewRenderMode = 'inline' | 'image-transcode' | 'image-heic' | 'pdfjs' | 'excel-basic' | 'excel-client' | 'text' | 'text-client' | 'docx-html' | 'onlyoffice' | 'office-text' | 'download';
329
+ type FilePreviewSurface = 'media' | 'document' | 'download';
330
+ type FilePreviewProvider = 'browser' | 'platform' | 'onlyoffice' | 'none';
331
+ interface FilePreviewCapability {
332
+ key?: string;
333
+ extension?: string;
334
+ previewType?: FilePreviewType;
335
+ renderMode?: FilePreviewRenderMode;
336
+ previewSurface?: FilePreviewSurface;
337
+ previewProvider?: FilePreviewProvider;
338
+ canPreview?: boolean;
339
+ canDownload?: boolean;
340
+ unsupportedReason?: string;
341
+ }
342
+ interface FilePreviewMetadata extends FilePreviewCapability {
343
+ capabilityVersion?: number;
344
+ ticket?: string;
345
+ appType?: string;
346
+ fileName?: string;
347
+ bucketName?: string;
348
+ objectName?: string;
349
+ size?: number;
350
+ contentType?: string;
351
+ downloadUrl?: string;
352
+ previewUrl?: string;
353
+ previewPageUrl?: string;
354
+ metadataUrl?: string;
355
+ imagePreviewUrl?: string;
356
+ excelPreviewUrl?: string;
357
+ textPreviewUrl?: string;
358
+ officeTextPreviewUrl?: string;
359
+ onlyofficeConfigUrl?: string;
360
+ onlyofficeEnabled?: boolean;
361
+ expiresIn?: number;
362
+ }
363
+ interface PreparedFilePreview {
364
+ item: AttachmentItem;
365
+ metadata: FilePreviewMetadata;
366
+ direct: boolean;
367
+ }
368
+ type FilePreviewRequest = FormRuntimeApi['request'];
369
+ interface FilePreviewCapabilityBatch {
370
+ capabilityVersion?: number;
371
+ onlyofficeEnabled?: boolean;
372
+ items?: FilePreviewCapability[];
373
+ }
374
+ interface PreviewImageItem {
375
+ key: string;
376
+ src: string;
377
+ name: string;
378
+ revokeOnClose?: boolean;
379
+ }
380
+
381
+ declare const unwrapFilePreviewPayload: (payload: any) => any;
382
+ declare const isDirectStorageItem: (item: AttachmentItem) => boolean;
383
+ declare const getPreviewItemKey: (item: AttachmentItem, index?: number) => string;
384
+ declare const getPreviewSourceUrl: (item: AttachmentItem) => string;
385
+ declare const resolveLocalPreviewCapability: (item: AttachmentItem) => FilePreviewCapability;
386
+ declare const prepareFilePreview: (options: {
387
+ item: AttachmentItem;
388
+ api: FormRuntimeApi;
389
+ appType?: string;
390
+ bucketName: string;
391
+ }) => Promise<PreparedFilePreview>;
392
+ declare const loadPreviewBlob: (request: FormRuntimeApi["request"], url: string) => Promise<Blob>;
393
+ declare const convertHeicPreview: (request: FormRuntimeApi["request"], url: string) => Promise<string>;
394
+
395
+ declare const formatPreviewFileSize: (size?: number) => string;
396
+ declare const resolvePreviewServiceUrl: (url?: string, servicePrefix?: string) => string;
397
+ interface FilePreviewContentProps {
398
+ metadata: FilePreviewMetadata;
399
+ request: FilePreviewRequest;
400
+ servicePrefix?: string;
401
+ onDownload?: () => void;
402
+ }
403
+ declare const FilePreviewContent: ({ metadata, request, servicePrefix, onDownload, }: FilePreviewContentProps) => react_jsx_runtime.JSX.Element;
404
+
405
+ interface FilePreviewPageProps {
406
+ ticket: string;
407
+ request: FilePreviewRequest;
408
+ servicePrefix?: string;
409
+ }
410
+ declare const FilePreviewPage: ({ ticket, request, servicePrefix, }: FilePreviewPageProps) => react_jsx_runtime.JSX.Element;
411
+
412
+ interface UseFilePreviewOptions {
413
+ items: AttachmentItem[];
414
+ api: FormRuntimeApi;
415
+ appType?: string;
416
+ bucketName: string;
417
+ enabled?: boolean;
418
+ requireServerCapability?: boolean;
419
+ }
420
+ declare const useFilePreviewController: ({ items, api, appType, bucketName, enabled, requireServerCapability, }: UseFilePreviewOptions) => {
421
+ canPreview: (item: AttachmentItem) => boolean;
422
+ getCapability: (item: AttachmentItem) => FilePreviewCapability;
423
+ openPreview: (item: AttachmentItem) => Promise<void>;
424
+ openingKey: string;
425
+ isOpening: (item: AttachmentItem) => boolean;
426
+ downloadItem: (item: AttachmentItem, prepared?: PreparedFilePreview | null) => Promise<void>;
427
+ previewHost: react_jsx_runtime.JSX.Element | null;
428
+ };
429
+ declare const FilePreviewCapabilityError: ({ message }: {
430
+ message: string;
431
+ }) => react_jsx_runtime.JSX.Element;
325
432
 
326
433
  interface UseFormEngineReturn {
327
434
  formData: Record<string, any>;
@@ -900,11 +1007,11 @@ interface LowcodePageRendererProps {
900
1007
  schema: LowcodePageSchema;
901
1008
  context?: LowcodePageRuntimeContext;
902
1009
  }
903
- declare function LowcodePageRenderer({ schema, context }: LowcodePageRendererProps): React__default.JSX.Element;
1010
+ declare function LowcodePageRenderer({ schema, context }: LowcodePageRendererProps): react_jsx_runtime.JSX.Element;
904
1011
 
905
1012
  interface PageSkeletonProps {
906
1013
  type: 'submit' | 'detail' | 'process';
907
1014
  }
908
1015
  declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
909
1016
 
910
- export { type ActionConfig, AddressField, AddressFieldProps, ApprovalActionBar, type ApprovalActionBarProps, ApprovalActions, type ApprovalActionsProps, ApprovalPermission, ApproveParams, AssociationFormField, AssociationFormFieldProps, AttachmentField, AttachmentFieldProps, CascadeDateField, CascadeDateFieldProps, CascadeSelectField, CascadeSelectFieldProps, ChangeRecord, ChangeRecordListResponse, ChangeRecordQueryParams, ChangeRecords, type ChangeRecordsProps, CheckboxField, CheckboxFieldProps, ComponentRegistryContext, type ComponentRegistryContextValue, ComponentRegistryProvider, DataManagementConfig, DataManagementConfigScope, DataManagementList, type DataManagementListProps, type DataManagementRowAction, DateField, DateFieldProps, DepartmentSelectField, DepartmentSelectFieldProps, type DeviceDetectResult, DigitalSignatureField, DigitalSignatureFieldProps, DraftManager, type DraftManagerProps, EditorChoiceOption, EditorField, EditorFieldProps, UserSelectField as EmployeeSelectField, FieldBehavior, FieldWrapper, type FieldWrapperProps, FormActionBar, type FormActionBarProps, FormActions, type FormActionsProps, FormAppearanceConfig, FormContainer, type FormContainerProps, FormContext, type FormContextValue, FormDataDeleteParams, FormDataQueryParams, FormDetailTemplate, type FormDetailTemplateProps, FormEffect, FormEngineConfig, FormGrid, type FormGridProps, FormInstanceData, FormProvider, type FormProviderProps, FormRenderer, type FormRendererProps, FormRuntimeApi, FormRuntimeApiConfig, FormRuntimeConfig, FormSchema, FormShell, type FormShellProps, type FormStepItem, FormSteps, type FormStepsProps, FormSubmitTemplate, type FormSubmitTemplateProps, FormSummary, FormSummaryCard, type FormSummaryCardProps, type FormSummaryProps, type FormTabItem, FormTabs, type FormTabsProps, ImageField, ImageFieldProps, InitiatorSelectCandidate, InitiatorSelectRequirement, InitiatorSelectedApprovers, JSONField, JSONFieldProps, LocationField, LocationFieldProps, LowcodePageRenderer, type LowcodePageRendererProps, type LowcodePageRuntimeContext, LowcodePageSchema, MultiSelectField, MultiSelectFieldProps, NumberField, NumberFieldProps, OptionItem, OptionSourceConfig, PROCESS_STATUS_META, PageSkeleton, type PageSkeletonProps, PreviewParams, ProcessAction, ProcessBasicInfo, ProcessDefinition, ProcessDetailTemplate, type ProcessDetailTemplateProps, ProcessRoute, ProcessStatus, ProcessTask, RadioField, RadioFieldProps, RecordChangePanel, type RecordChangePanelProps, ResubmitParams, ReturnParams, ReturnPolicy, ReturnableNode, ReturnableNodeResult, RichTextEditorCore, type RichTextEditorCoreProps, RuntimePageShell, type RuntimePageShellProps, SaveTaskParams, SelectField, SelectFieldProps, SerialNumberField, SerialNumberFieldProps, StandardFormPage, StandardFormPageMode, type StandardFormPageProps, StatusMeta, StickyActionBar, type StickyActionBarProps, SubFormField, SubFormFieldProps, type SubmitConfig, type SubmitSuccessInfo, SummaryPanel, type SummaryPanelMetaItem, type SummaryPanelProps, TASK_STATUS_META, TaskStatus, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, TextAreaField as TextareaField, TransferParams, type UseApprovalActionsOptions, type UseApprovalActionsReturn, type UseChangeRecordsOptions, type UseChangeRecordsReturn, type UseDraftStorageOptions, type UseDraftStorageReturn, type UseFieldBehaviorOptions, type UseFieldPermissionOptions, type UseFieldPermissionReturn, type UseFormDataReturn, type UseFormDetailOptions, type UseFormDetailReturn, type UseFormEngineReturn, type UseFormNavigationOptions, type UseFormNavigationReturn, type UseFormSubmitReturn, type UseProcessDetailOptions, type UseProcessDetailReturn, UserSelectField, UserSelectFieldProps, VALIDATION_PRESETS, ValidationPreset, ValidationRule, ViewPermissionQueryParams, ViewPermissionSummary, WithdrawParams, checkUserApproval, createFormRuntimeApi, decodeHtmlEntities, defaultComponentRegistry, defineFormSchema, deleteFormData, evaluateEffects, extractFormValues, getChangeRecords, getFormData, getInitiatorSelectCandidates, getInitiatorSelectRequirements, getProcessBasic, getProcessDefinition, getProcessProgress, getResubmitInitiatorSelectRequirements, getReturnableNodeResult, getReturnableNodes, getViewPermission, handleApproval, hasViewOperation, hasViewPermission, normalizeFieldBehaviors, normalizeOperation, normalizeRichTextHtml, previewProcess, resolveDefaultValueLinkage, resolveOptions, resubmitTask, returnTask, sanitizeRichTextHtml, saveTask, transferTask, triggerCallbackTask, useApprovalActions, useChangeRecords, useComponent, useDeviceDetect, useDraftStorage, useFieldBehavior, useFieldPermission, useFormContext, useFormData, useFormDetail, useFormEngine, useFormNavigation, useFormSubmit, useProcessDetail, validateAllFields, validateField, withdrawProcess };
1017
+ export { type ActionConfig, AddressField, AddressFieldProps, ApprovalActionBar, type ApprovalActionBarProps, ApprovalActions, type ApprovalActionsProps, ApprovalPermission, ApproveParams, AssociationFormField, AssociationFormFieldProps, AttachmentField, AttachmentFieldProps, AttachmentItem, CascadeDateField, CascadeDateFieldProps, CascadeSelectField, CascadeSelectFieldProps, ChangeRecord, ChangeRecordListResponse, ChangeRecordQueryParams, ChangeRecords, type ChangeRecordsProps, CheckboxField, CheckboxFieldProps, ComponentRegistryContext, type ComponentRegistryContextValue, ComponentRegistryProvider, DataManagementConfig, DataManagementConfigScope, DataManagementList, type DataManagementListProps, type DataManagementRowAction, DateField, DateFieldProps, DepartmentSelectField, DepartmentSelectFieldProps, type DeviceDetectResult, DigitalSignatureField, DigitalSignatureFieldProps, DraftManager, type DraftManagerProps, EditorChoiceOption, EditorField, EditorFieldProps, UserSelectField as EmployeeSelectField, FieldBehavior, FieldWrapper, type FieldWrapperProps, type FilePreviewCapability, type FilePreviewCapabilityBatch, FilePreviewCapabilityError, FilePreviewContent, type FilePreviewContentProps, type FilePreviewMetadata, FilePreviewPage, type FilePreviewPageProps, type FilePreviewProvider, type FilePreviewRenderMode, type FilePreviewRequest, type FilePreviewSurface, type FilePreviewType, FormActionBar, type FormActionBarProps, FormActions, type FormActionsProps, FormAppearanceConfig, FormContainer, type FormContainerProps, FormContext, type FormContextValue, FormDataDeleteParams, FormDataQueryParams, FormDetailTemplate, type FormDetailTemplateProps, FormEffect, FormEngineConfig, FormGrid, type FormGridProps, FormInstanceData, FormProvider, type FormProviderProps, FormRenderer, type FormRendererProps, FormRuntimeApi, FormRuntimeApiConfig, FormRuntimeConfig, FormSchema, FormShell, type FormShellProps, type FormStepItem, FormSteps, type FormStepsProps, FormSubmitTemplate, type FormSubmitTemplateProps, FormSummary, FormSummaryCard, type FormSummaryCardProps, type FormSummaryProps, type FormTabItem, FormTabs, type FormTabsProps, ImageField, ImageFieldProps, InitiatorSelectCandidate, InitiatorSelectRequirement, InitiatorSelectedApprovers, JSONField, JSONFieldProps, LocationField, LocationFieldProps, LowcodePageRenderer, type LowcodePageRendererProps, type LowcodePageRuntimeContext, LowcodePageSchema, MultiSelectField, MultiSelectFieldProps, NumberField, NumberFieldProps, OptionItem, OptionSourceConfig, PROCESS_STATUS_META, PageSkeleton, type PageSkeletonProps, type PreparedFilePreview, type PreviewImageItem, PreviewParams, ProcessAction, ProcessBasicInfo, ProcessDefinition, ProcessDetailTemplate, type ProcessDetailTemplateProps, ProcessRoute, ProcessStatus, ProcessTask, RadioField, RadioFieldProps, RecordChangePanel, type RecordChangePanelProps, ResubmitParams, ReturnParams, ReturnPolicy, ReturnableNode, ReturnableNodeResult, RichTextEditorCore, type RichTextEditorCoreProps, RuntimePageShell, type RuntimePageShellProps, SaveTaskParams, SelectField, SelectFieldProps, SerialNumberField, SerialNumberFieldProps, StandardFormPage, StandardFormPageMode, type StandardFormPageProps, StatusMeta, StickyActionBar, type StickyActionBarProps, SubFormField, SubFormFieldProps, type SubmitConfig, type SubmitSuccessInfo, SummaryPanel, type SummaryPanelMetaItem, type SummaryPanelProps, TASK_STATUS_META, TaskStatus, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, TextAreaField as TextareaField, TransferParams, type UseApprovalActionsOptions, type UseApprovalActionsReturn, type UseChangeRecordsOptions, type UseChangeRecordsReturn, type UseDraftStorageOptions, type UseDraftStorageReturn, type UseFieldBehaviorOptions, type UseFieldPermissionOptions, type UseFieldPermissionReturn, type UseFormDataReturn, type UseFormDetailOptions, type UseFormDetailReturn, type UseFormEngineReturn, type UseFormNavigationOptions, type UseFormNavigationReturn, type UseFormSubmitReturn, type UseProcessDetailOptions, type UseProcessDetailReturn, UserSelectField, UserSelectFieldProps, VALIDATION_PRESETS, ValidationPreset, ValidationRule, ViewPermissionQueryParams, ViewPermissionSummary, WithdrawParams, checkUserApproval, convertHeicPreview, createFormRuntimeApi, decodeHtmlEntities, defaultComponentRegistry, defineFormSchema, deleteFormData, evaluateEffects, extractFormValues, formatPreviewFileSize, getChangeRecords, getFormData, getInitiatorSelectCandidates, getInitiatorSelectRequirements, getPreviewItemKey, getPreviewSourceUrl, getProcessBasic, getProcessDefinition, getProcessProgress, getResubmitInitiatorSelectRequirements, getReturnableNodeResult, getReturnableNodes, getViewPermission, handleApproval, hasViewOperation, hasViewPermission, isDirectStorageItem, loadPreviewBlob, normalizeFieldBehaviors, normalizeOperation, normalizeRichTextHtml, prepareFilePreview, previewProcess, resolveDefaultValueLinkage, resolveLocalPreviewCapability, resolveOptions, resolvePreviewServiceUrl, resubmitTask, returnTask, sanitizeRichTextHtml, saveTask, transferTask, triggerCallbackTask, unwrapFilePreviewPayload, useApprovalActions, useChangeRecords, useComponent, useDeviceDetect, useDraftStorage, useFieldBehavior, useFieldPermission, useFilePreviewController, useFormContext, useFormData, useFormDetail, useFormEngine, useFormNavigation, useFormSubmit, useProcessDetail, validateAllFields, validateField, withdrawProcess };