openxiangda 1.0.152 → 1.0.154

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 (31) 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/openxiangda-skills/references/troubleshooting.md +18 -5
  6. package/package.json +1 -1
  7. package/packages/sdk/dist/{ProcessPreview-B_HqjU7v.d.mts → ProcessPreview-DMkzccq4.d.mts} +55 -1
  8. package/packages/sdk/dist/{ProcessPreview-B_HqjU7v.d.ts → ProcessPreview-DMkzccq4.d.ts} +55 -1
  9. package/packages/sdk/dist/components/index.cjs +73 -12
  10. package/packages/sdk/dist/components/index.cjs.map +1 -1
  11. package/packages/sdk/dist/components/index.d.mts +7 -59
  12. package/packages/sdk/dist/components/index.d.ts +7 -59
  13. package/packages/sdk/dist/components/index.mjs +73 -12
  14. package/packages/sdk/dist/components/index.mjs.map +1 -1
  15. package/packages/sdk/dist/{dataManagementApi-CEDsA3tT.d.ts → dataManagementApi-C9O-Bb0j.d.ts} +1 -1
  16. package/packages/sdk/dist/{dataManagementApi-quq3Zhgo.d.mts → dataManagementApi-gpZkgRDM.d.mts} +1 -1
  17. package/packages/sdk/dist/runtime/index.cjs +10528 -10211
  18. package/packages/sdk/dist/runtime/index.cjs.map +1 -1
  19. package/packages/sdk/dist/runtime/index.d.mts +3 -3
  20. package/packages/sdk/dist/runtime/index.d.ts +3 -3
  21. package/packages/sdk/dist/runtime/index.mjs +9892 -9575
  22. package/packages/sdk/dist/runtime/index.mjs.map +1 -1
  23. package/packages/sdk/dist/runtime/react.cjs +2936 -451
  24. package/packages/sdk/dist/runtime/react.cjs.map +1 -1
  25. package/packages/sdk/dist/runtime/react.d.mts +57 -3
  26. package/packages/sdk/dist/runtime/react.d.ts +57 -3
  27. package/packages/sdk/dist/runtime/react.mjs +2945 -437
  28. package/packages/sdk/dist/runtime/react.mjs.map +1 -1
  29. package/templates/openxiangda-react-spa/.cursor/rules/openxiangda.mdc +1 -0
  30. package/templates/openxiangda-react-spa/.qoder/rules/openxiangda.md +1 -0
  31. 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,9 @@ 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;
329
+ declare const normalizePreviewBlobContent: (response: unknown) => Promise<Blob>;
382
330
  declare const isDirectStorageItem: (item: AttachmentItem) => boolean;
383
331
  declare const getPreviewItemKey: (item: AttachmentItem, index?: number) => string;
384
332
  declare const getPreviewSourceUrl: (item: AttachmentItem) => string;
@@ -1014,4 +962,4 @@ interface PageSkeletonProps {
1014
962
  }
1015
963
  declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
1016
964
 
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 };
965
+ 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, normalizePreviewBlobContent, 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,9 @@ 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;
329
+ declare const normalizePreviewBlobContent: (response: unknown) => Promise<Blob>;
382
330
  declare const isDirectStorageItem: (item: AttachmentItem) => boolean;
383
331
  declare const getPreviewItemKey: (item: AttachmentItem, index?: number) => string;
384
332
  declare const getPreviewSourceUrl: (item: AttachmentItem) => string;
@@ -1014,4 +962,4 @@ interface PageSkeletonProps {
1014
962
  }
1015
963
  declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
1016
964
 
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 };
965
+ 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, normalizePreviewBlobContent, 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,64 @@ 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
+ };
3234
+ var isZipBytes = (bytes) => bytes.length >= 4 && bytes[0] === 80 && bytes[1] === 75 && (bytes[2] === 3 && bytes[3] === 4 || bytes[2] === 5 && bytes[3] === 6 || bytes[2] === 7 && bytes[3] === 8);
3235
+ var decodeBase64ZipBlob = async (blob) => {
3236
+ const prefix = (await blob.slice(0, 96).text()).replace(/^\uFEFF/, "").replace(/\s+/g, "");
3237
+ if (!prefix.startsWith("UEsDB")) return blob;
3238
+ if (blob.size > 32 * 1024 * 1024) {
3239
+ throw new Error("Base64 \u6587\u4EF6\u8D85\u8FC7\u6D4F\u89C8\u5668\u517C\u5BB9\u89E3\u7801\u4E0A\u9650");
3240
+ }
3241
+ const base64 = (await blob.text()).replace(/^\uFEFF/, "").replace(/\s+/g, "");
3242
+ if (!/^[A-Za-z0-9+/]+={0,2}$/.test(base64)) {
3243
+ throw new Error("\u6587\u4EF6\u5185\u5BB9\u662F\u65E0\u6548\u7684 Base64 \u4E8C\u8FDB\u5236\u6570\u636E");
3244
+ }
3245
+ let binary = "";
3246
+ try {
3247
+ binary = globalThis.atob(base64);
3248
+ } catch {
3249
+ throw new Error("\u6587\u4EF6\u5185\u5BB9\u662F\u65E0\u6548\u7684 Base64 \u4E8C\u8FDB\u5236\u6570\u636E");
3250
+ }
3251
+ const bytes = new Uint8Array(binary.length);
3252
+ for (let index = 0; index < binary.length; index += 1) {
3253
+ bytes[index] = binary.charCodeAt(index);
3254
+ }
3255
+ if (!isZipBytes(bytes)) {
3256
+ throw new Error("Base64 \u6587\u4EF6\u89E3\u7801\u540E\u4E0D\u662F\u6709\u6548\u7684 Office \u6587\u6863");
3257
+ }
3258
+ if (globalThis.btoa(binary).replace(/=+$/, "") !== base64.replace(/=+$/, "")) {
3259
+ throw new Error("\u6587\u4EF6\u5185\u5BB9\u662F\u65E0\u6548\u7684 Base64 \u4E8C\u8FDB\u5236\u6570\u636E");
3260
+ }
3261
+ return new Blob([bytes], { type: blob.type || "application/zip" });
3262
+ };
3263
+ var normalizePreviewBlobContent = async (response) => {
3264
+ const blob = normalizePreviewBlobResponse(response);
3265
+ if (String(blob.type || "").toLowerCase().includes("application/json")) {
3266
+ const payload = await blob.text().then((value) => JSON.parse(value)).catch(() => null);
3267
+ if (payload) {
3268
+ throw new Error(getBinaryResponseMessage(payload) || "\u6587\u4EF6\u5185\u5BB9\u8BF7\u6C42\u5931\u8D25");
3269
+ }
3270
+ }
3271
+ return decodeBase64ZipBlob(blob);
3272
+ };
3215
3273
  var isDirectStorageItem = (item) => item.provider === "oss" || item.uploadProvider === "oss" || item.uploadProvider === "builtin-oss" || Boolean(item.storageCode);
3216
3274
  var getPreviewItemKey = (item, index = 0) => getAttachmentItemIdentity(item) || item.id || item.uid || `${item.name || "file"}-${index}`;
3217
3275
  var getPreviewSourceUrl = (item) => item.previewUrl || item.publicUrl || item.url || "";
@@ -3385,10 +3443,7 @@ var prepareFilePreview = async (options) => {
3385
3443
  };
3386
3444
  var loadPreviewBlob = async (request, url) => {
3387
3445
  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;
3446
+ return normalizePreviewBlobContent(response);
3392
3447
  };
3393
3448
  var convertHeicPreview = async (request, url) => {
3394
3449
  const source = await loadPreviewBlob(request, url);
@@ -21333,14 +21388,18 @@ function createRuntimeRequest(context) {
21333
21388
  }
21334
21389
  });
21335
21390
  }
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
- });
21391
+ const isBinary = config.responseType === "blob";
21392
+ const response = await context.bridge?.invoke?.(
21393
+ isBinary ? "transport.download" : "transport.request",
21394
+ {
21395
+ path: config.url,
21396
+ method: config.method || "get",
21397
+ query: search?.toString(),
21398
+ body: config.data,
21399
+ headers: config.headers
21400
+ }
21401
+ );
21402
+ return isBinary ? normalizePreviewBlobResponse(response) : response;
21344
21403
  };
21345
21404
  }
21346
21405
  function LowcodePageRenderer({ schema, context }) {
@@ -21530,6 +21589,8 @@ export {
21530
21589
  normalizeDataManagementList,
21531
21590
  normalizeFieldBehaviors,
21532
21591
  normalizeOperation,
21592
+ normalizePreviewBlobContent,
21593
+ normalizePreviewBlobResponse,
21533
21594
  normalizeRichTextHtml,
21534
21595
  prepareFilePreview,
21535
21596
  previewProcess,