openxiangda 1.0.152 → 1.0.153

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/README.md +13 -1
  2. package/openxiangda-skills/SKILL.md +1 -1
  3. package/openxiangda-skills/references/component-guide.md +10 -1
  4. package/openxiangda-skills/references/pages/page-sdk.md +35 -2
  5. package/package.json +1 -1
  6. package/packages/sdk/dist/{ProcessPreview-B_HqjU7v.d.mts → ProcessPreview-DMkzccq4.d.mts} +55 -1
  7. package/packages/sdk/dist/{ProcessPreview-B_HqjU7v.d.ts → ProcessPreview-DMkzccq4.d.ts} +55 -1
  8. package/packages/sdk/dist/components/index.cjs +33 -12
  9. package/packages/sdk/dist/components/index.cjs.map +1 -1
  10. package/packages/sdk/dist/components/index.d.mts +6 -59
  11. package/packages/sdk/dist/components/index.d.ts +6 -59
  12. package/packages/sdk/dist/components/index.mjs +33 -12
  13. package/packages/sdk/dist/components/index.mjs.map +1 -1
  14. package/packages/sdk/dist/{dataManagementApi-CEDsA3tT.d.ts → dataManagementApi-C9O-Bb0j.d.ts} +1 -1
  15. package/packages/sdk/dist/{dataManagementApi-quq3Zhgo.d.mts → dataManagementApi-gpZkgRDM.d.mts} +1 -1
  16. package/packages/sdk/dist/runtime/index.cjs +10513 -10235
  17. package/packages/sdk/dist/runtime/index.cjs.map +1 -1
  18. package/packages/sdk/dist/runtime/index.d.mts +3 -3
  19. package/packages/sdk/dist/runtime/index.d.ts +3 -3
  20. package/packages/sdk/dist/runtime/index.mjs +9860 -9582
  21. package/packages/sdk/dist/runtime/index.mjs.map +1 -1
  22. package/packages/sdk/dist/runtime/react.cjs +2897 -451
  23. package/packages/sdk/dist/runtime/react.cjs.map +1 -1
  24. package/packages/sdk/dist/runtime/react.d.mts +57 -3
  25. package/packages/sdk/dist/runtime/react.d.ts +57 -3
  26. package/packages/sdk/dist/runtime/react.mjs +2906 -437
  27. package/packages/sdk/dist/runtime/react.mjs.map +1 -1
  28. package/templates/openxiangda-react-spa/.cursor/rules/openxiangda.mdc +1 -0
  29. package/templates/openxiangda-react-spa/.qoder/rules/openxiangda.md +1 -0
  30. package/templates/openxiangda-react-spa/AGENTS.md +4 -2
@@ -1,10 +1,10 @@
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.mjs';
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.mjs';
1
+ import { a5 as FormEngineConfig, ac as FormSchema, O as FieldBehavior, aC as OptionItem, a9 as FormRuntimeApi, ab as FormRuntimeConfig, _ as FormAppearanceConfig, bq as ValidationPreset, br as ValidationRule, a1 as FormEffect, aa as FormRuntimeApiConfig, aD as OptionSourceConfig, aR as ProcessStatus, ba as StatusMeta, bh as TaskStatus, c as ApprovalPermission, $ as FormDataDeleteParams, q as ChangeRecordQueryParams, p as ChangeRecordListResponse, a0 as FormDataQueryParams, a7 as FormInstanceData, an as InitiatorSelectCandidate, ao as InitiatorSelectRequirement, aL as ProcessBasicInfo, aM as ProcessDefinition, aS as ProcessTask, aY as ReturnableNodeResult, aX as ReturnableNode, bs as ViewPermissionQueryParams, bt as ViewPermissionSummary, f as ApproveParams, aJ as PreviewParams, aQ as ProcessRoute, aU as ResubmitParams, aV as ReturnParams, b4 as SaveTaskParams, bm as TransferParams, bu as WithdrawParams, bj as TextFieldProps, aB as NumberFieldProps, bi as TextAreaFieldProps, b6 as SelectFieldProps, aA as MultiSelectFieldProps, aT as RadioFieldProps, r as CheckboxFieldProps, u as DateFieldProps, C as CascadeDateFieldProps, j as AttachmentFieldProps, al as ImageFieldProps, be as SubFormFieldProps, bp as UserSelectFieldProps, H as DepartmentSelectFieldProps, n as CascadeSelectFieldProps, A as AddressFieldProps, h as AssociationFormFieldProps, M as EditorFieldProps, L as EditorChoiceOption, b7 as SerialNumberFieldProps, au as LocationFieldProps, J as DigitalSignatureFieldProps, ar as JSONFieldProps, l as AttachmentItem, aH as PreparedFilePreview, S as FilePreviewCapability, U as FilePreviewMetadata, X as FilePreviewRequest, aK as ProcessAction, aq as InitiatorSelectedApprovers, aW as ReturnPolicy, o as ChangeRecord, b9 as StandardFormPageMode, az as LowcodePageSchema } from '../ProcessPreview-DMkzccq4.mjs';
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, T as FilePreviewCapabilityBatch, V as FilePreviewProvider, W as FilePreviewRenderMode, Y as FilePreviewSurface, Z as FilePreviewType, a2 as FormEffectAction, a3 as FormEffectCondition, a4 as FormEffectConditionOperator, a6 as FormEngineMode, a8 as FormLayoutNode, ad as FormSection, ae as FormSectionProps, af as FormSubmitBehavior, ag as FormTemplateConfig, ah as GridLayoutCell, ai as GridLayoutNode, aj as ImageCompressionConfig, ak as ImageCompressionVariantConfig, am as ImageVariant, ap as InitiatorSelectScope, as as LayoutVisibleWhen, at as LinkedFormOptionConfig, av as LocationValue, aw as LowcodePageMeta, ax as LowcodePageNode, ay as LowcodePageNodeType, aE as OptionSourceType, aF as PeopleShortcutConfig, aG as PeopleShortcutType, aI as PreviewImageItem, aN as ProcessNodeType, aO as ProcessPreview, aP as ProcessPreviewProps, aZ as RuntimeAuthHeadersProvider, a_ as RuntimeDataQueryParams, a$ as RuntimeDataQueryResult, b0 as RuntimeRequestConfig, b1 as RuntimeResponse, b2 as RuntimeUploadOptions, b3 as RuntimeUploadProvider, b5 as SectionLayoutNode, b8 as SignaturePoint, bb as StepLayoutItem, bc as StepsLayoutNode, bd as SubFormColumn, bf as TabLayoutItem, bg as TabsLayoutNode, bk as TextShortcutConfig, bl as TextShortcutType, bn as UserDisplayFormat, bo as UserItem } from '../ProcessPreview-DMkzccq4.mjs';
3
3
  import * as React from 'react';
4
4
  import React__default from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import { a as DataManagementConfigScope, D as DataManagementConfig, F as FormActionPermission } from '../dataManagementApi-quq3Zhgo.mjs';
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-quq3Zhgo.mjs';
6
+ import { a as DataManagementConfigScope, D as DataManagementConfig, F as FormActionPermission } from '../dataManagementApi-gpZkgRDM.mjs';
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-gpZkgRDM.mjs';
8
8
 
9
9
  interface FormContextValue {
10
10
  mode: FormEngineConfig['mode'];
@@ -324,61 +324,8 @@ interface FormSummaryProps {
324
324
  }
325
325
  declare function FormSummary({ className, labelClassName, valueClassName, columns, fields, }: FormSummaryProps): react_jsx_runtime.JSX.Element;
326
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
327
  declare const unwrapFilePreviewPayload: (payload: any) => any;
328
+ declare const normalizePreviewBlobResponse: (response: unknown) => Blob;
382
329
  declare const isDirectStorageItem: (item: AttachmentItem) => boolean;
383
330
  declare const getPreviewItemKey: (item: AttachmentItem, index?: number) => string;
384
331
  declare const getPreviewSourceUrl: (item: AttachmentItem) => string;
@@ -1014,4 +961,4 @@ interface PageSkeletonProps {
1014
961
  }
1015
962
  declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
1016
963
 
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 };
964
+ 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, FilePreviewCapability, FilePreviewCapabilityError, FilePreviewContent, type FilePreviewContentProps, FilePreviewMetadata, FilePreviewPage, type FilePreviewPageProps, FilePreviewRequest, 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, PreparedFilePreview, 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, normalizePreviewBlobResponse, 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 };
@@ -1,10 +1,10 @@
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';
1
+ import { a5 as FormEngineConfig, ac as FormSchema, O as FieldBehavior, aC as OptionItem, a9 as FormRuntimeApi, ab as FormRuntimeConfig, _ as FormAppearanceConfig, bq as ValidationPreset, br as ValidationRule, a1 as FormEffect, aa as FormRuntimeApiConfig, aD as OptionSourceConfig, aR as ProcessStatus, ba as StatusMeta, bh as TaskStatus, c as ApprovalPermission, $ as FormDataDeleteParams, q as ChangeRecordQueryParams, p as ChangeRecordListResponse, a0 as FormDataQueryParams, a7 as FormInstanceData, an as InitiatorSelectCandidate, ao as InitiatorSelectRequirement, aL as ProcessBasicInfo, aM as ProcessDefinition, aS as ProcessTask, aY as ReturnableNodeResult, aX as ReturnableNode, bs as ViewPermissionQueryParams, bt as ViewPermissionSummary, f as ApproveParams, aJ as PreviewParams, aQ as ProcessRoute, aU as ResubmitParams, aV as ReturnParams, b4 as SaveTaskParams, bm as TransferParams, bu as WithdrawParams, bj as TextFieldProps, aB as NumberFieldProps, bi as TextAreaFieldProps, b6 as SelectFieldProps, aA as MultiSelectFieldProps, aT as RadioFieldProps, r as CheckboxFieldProps, u as DateFieldProps, C as CascadeDateFieldProps, j as AttachmentFieldProps, al as ImageFieldProps, be as SubFormFieldProps, bp as UserSelectFieldProps, H as DepartmentSelectFieldProps, n as CascadeSelectFieldProps, A as AddressFieldProps, h as AssociationFormFieldProps, M as EditorFieldProps, L as EditorChoiceOption, b7 as SerialNumberFieldProps, au as LocationFieldProps, J as DigitalSignatureFieldProps, ar as JSONFieldProps, l as AttachmentItem, aH as PreparedFilePreview, S as FilePreviewCapability, U as FilePreviewMetadata, X as FilePreviewRequest, aK as ProcessAction, aq as InitiatorSelectedApprovers, aW as ReturnPolicy, o as ChangeRecord, b9 as StandardFormPageMode, az as LowcodePageSchema } from '../ProcessPreview-DMkzccq4.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, T as FilePreviewCapabilityBatch, V as FilePreviewProvider, W as FilePreviewRenderMode, Y as FilePreviewSurface, Z as FilePreviewType, a2 as FormEffectAction, a3 as FormEffectCondition, a4 as FormEffectConditionOperator, a6 as FormEngineMode, a8 as FormLayoutNode, ad as FormSection, ae as FormSectionProps, af as FormSubmitBehavior, ag as FormTemplateConfig, ah as GridLayoutCell, ai as GridLayoutNode, aj as ImageCompressionConfig, ak as ImageCompressionVariantConfig, am as ImageVariant, ap as InitiatorSelectScope, as as LayoutVisibleWhen, at as LinkedFormOptionConfig, av as LocationValue, aw as LowcodePageMeta, ax as LowcodePageNode, ay as LowcodePageNodeType, aE as OptionSourceType, aF as PeopleShortcutConfig, aG as PeopleShortcutType, aI as PreviewImageItem, aN as ProcessNodeType, aO as ProcessPreview, aP as ProcessPreviewProps, aZ as RuntimeAuthHeadersProvider, a_ as RuntimeDataQueryParams, a$ as RuntimeDataQueryResult, b0 as RuntimeRequestConfig, b1 as RuntimeResponse, b2 as RuntimeUploadOptions, b3 as RuntimeUploadProvider, b5 as SectionLayoutNode, b8 as SignaturePoint, bb as StepLayoutItem, bc as StepsLayoutNode, bd as SubFormColumn, bf as TabLayoutItem, bg as TabsLayoutNode, bk as TextShortcutConfig, bl as TextShortcutType, bn as UserDisplayFormat, bo as UserItem } from '../ProcessPreview-DMkzccq4.js';
3
3
  import * as React from 'react';
4
4
  import React__default from 'react';
5
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';
6
+ import { a as DataManagementConfigScope, D as DataManagementConfig, F as FormActionPermission } from '../dataManagementApi-C9O-Bb0j.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-C9O-Bb0j.js';
8
8
 
9
9
  interface FormContextValue {
10
10
  mode: FormEngineConfig['mode'];
@@ -324,61 +324,8 @@ interface FormSummaryProps {
324
324
  }
325
325
  declare function FormSummary({ className, labelClassName, valueClassName, columns, fields, }: FormSummaryProps): react_jsx_runtime.JSX.Element;
326
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
327
  declare const unwrapFilePreviewPayload: (payload: any) => any;
328
+ declare const normalizePreviewBlobResponse: (response: unknown) => Blob;
382
329
  declare const isDirectStorageItem: (item: AttachmentItem) => boolean;
383
330
  declare const getPreviewItemKey: (item: AttachmentItem, index?: number) => string;
384
331
  declare const getPreviewSourceUrl: (item: AttachmentItem) => string;
@@ -1014,4 +961,4 @@ interface PageSkeletonProps {
1014
961
  }
1015
962
  declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
1016
963
 
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 };
964
+ 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, FilePreviewCapability, FilePreviewCapabilityError, FilePreviewContent, type FilePreviewContentProps, FilePreviewMetadata, FilePreviewPage, type FilePreviewPageProps, FilePreviewRequest, 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, PreparedFilePreview, 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, normalizePreviewBlobResponse, 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 };
@@ -3212,6 +3212,25 @@ var TEXT_EXTENSIONS = /* @__PURE__ */ new Set([
3212
3212
  "vue"
3213
3213
  ]);
3214
3214
  var unwrapFilePreviewPayload = (payload) => payload?.data ?? payload?.result ?? payload;
3215
+ var getBinaryResponseMessage = (response) => String(
3216
+ response?.message || response?.error || response?.errorMessage || response?.data?.message || response?.data?.error || response?.result?.message || ""
3217
+ ).trim();
3218
+ var normalizePreviewBlobResponse = (response) => {
3219
+ const payload = response;
3220
+ const candidates = [
3221
+ response,
3222
+ payload?.blob,
3223
+ payload?.data,
3224
+ payload?.data?.blob,
3225
+ payload?.result,
3226
+ payload?.result?.blob
3227
+ ];
3228
+ const blob = candidates.find(
3229
+ (candidate) => typeof Blob !== "undefined" && candidate instanceof Blob
3230
+ );
3231
+ if (blob) return blob;
3232
+ throw new Error(getBinaryResponseMessage(payload) || "\u6587\u4EF6\u5185\u5BB9\u54CD\u5E94\u4E0D\u662F\u4E8C\u8FDB\u5236\u6570\u636E");
3233
+ };
3215
3234
  var isDirectStorageItem = (item) => item.provider === "oss" || item.uploadProvider === "oss" || item.uploadProvider === "builtin-oss" || Boolean(item.storageCode);
3216
3235
  var getPreviewItemKey = (item, index = 0) => getAttachmentItemIdentity(item) || item.id || item.uid || `${item.name || "file"}-${index}`;
3217
3236
  var getPreviewSourceUrl = (item) => item.previewUrl || item.publicUrl || item.url || "";
@@ -3385,10 +3404,7 @@ var prepareFilePreview = async (options) => {
3385
3404
  };
3386
3405
  var loadPreviewBlob = async (request, url) => {
3387
3406
  const response = await request({ url, method: "get", responseType: "blob" });
3388
- if (!(response instanceof Blob)) {
3389
- throw new Error("\u6587\u4EF6\u5185\u5BB9\u54CD\u5E94\u4E0D\u662F\u4E8C\u8FDB\u5236\u6570\u636E");
3390
- }
3391
- return response;
3407
+ return normalizePreviewBlobResponse(response);
3392
3408
  };
3393
3409
  var convertHeicPreview = async (request, url) => {
3394
3410
  const source = await loadPreviewBlob(request, url);
@@ -21333,14 +21349,18 @@ function createRuntimeRequest(context) {
21333
21349
  }
21334
21350
  });
21335
21351
  }
21336
- const method = config.responseType === "blob" ? "transport.download" : "transport.request";
21337
- return context.bridge?.invoke?.(method, {
21338
- path: config.url,
21339
- method: config.method || "get",
21340
- query: search?.toString(),
21341
- body: config.data,
21342
- headers: config.headers
21343
- });
21352
+ const isBinary = config.responseType === "blob";
21353
+ const response = await context.bridge?.invoke?.(
21354
+ isBinary ? "transport.download" : "transport.request",
21355
+ {
21356
+ path: config.url,
21357
+ method: config.method || "get",
21358
+ query: search?.toString(),
21359
+ body: config.data,
21360
+ headers: config.headers
21361
+ }
21362
+ );
21363
+ return isBinary ? normalizePreviewBlobResponse(response) : response;
21344
21364
  };
21345
21365
  }
21346
21366
  function LowcodePageRenderer({ schema, context }) {
@@ -21530,6 +21550,7 @@ export {
21530
21550
  normalizeDataManagementList,
21531
21551
  normalizeFieldBehaviors,
21532
21552
  normalizeOperation,
21553
+ normalizePreviewBlobResponse,
21533
21554
  normalizeRichTextHtml,
21534
21555
  prepareFilePreview,
21535
21556
  previewProcess,