openxiangda 1.0.153 → 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.
- package/openxiangda-skills/references/troubleshooting.md +18 -5
- package/package.json +1 -1
- package/packages/sdk/dist/components/index.cjs +41 -1
- package/packages/sdk/dist/components/index.cjs.map +1 -1
- package/packages/sdk/dist/components/index.d.mts +2 -1
- package/packages/sdk/dist/components/index.d.ts +2 -1
- package/packages/sdk/dist/components/index.mjs +41 -1
- package/packages/sdk/dist/components/index.mjs.map +1 -1
- package/packages/sdk/dist/runtime/index.cjs +40 -1
- package/packages/sdk/dist/runtime/index.cjs.map +1 -1
- package/packages/sdk/dist/runtime/index.mjs +40 -1
- package/packages/sdk/dist/runtime/index.mjs.map +1 -1
- package/packages/sdk/dist/runtime/react.cjs +40 -1
- package/packages/sdk/dist/runtime/react.cjs.map +1 -1
- package/packages/sdk/dist/runtime/react.mjs +40 -1
- package/packages/sdk/dist/runtime/react.mjs.map +1 -1
|
@@ -326,6 +326,7 @@ declare function FormSummary({ className, labelClassName, valueClassName, column
|
|
|
326
326
|
|
|
327
327
|
declare const unwrapFilePreviewPayload: (payload: any) => any;
|
|
328
328
|
declare const normalizePreviewBlobResponse: (response: unknown) => Blob;
|
|
329
|
+
declare const normalizePreviewBlobContent: (response: unknown) => Promise<Blob>;
|
|
329
330
|
declare const isDirectStorageItem: (item: AttachmentItem) => boolean;
|
|
330
331
|
declare const getPreviewItemKey: (item: AttachmentItem, index?: number) => string;
|
|
331
332
|
declare const getPreviewSourceUrl: (item: AttachmentItem) => string;
|
|
@@ -961,4 +962,4 @@ interface PageSkeletonProps {
|
|
|
961
962
|
}
|
|
962
963
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
963
964
|
|
|
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 };
|
|
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 };
|
|
@@ -326,6 +326,7 @@ declare function FormSummary({ className, labelClassName, valueClassName, column
|
|
|
326
326
|
|
|
327
327
|
declare const unwrapFilePreviewPayload: (payload: any) => any;
|
|
328
328
|
declare const normalizePreviewBlobResponse: (response: unknown) => Blob;
|
|
329
|
+
declare const normalizePreviewBlobContent: (response: unknown) => Promise<Blob>;
|
|
329
330
|
declare const isDirectStorageItem: (item: AttachmentItem) => boolean;
|
|
330
331
|
declare const getPreviewItemKey: (item: AttachmentItem, index?: number) => string;
|
|
331
332
|
declare const getPreviewSourceUrl: (item: AttachmentItem) => string;
|
|
@@ -961,4 +962,4 @@ interface PageSkeletonProps {
|
|
|
961
962
|
}
|
|
962
963
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
963
964
|
|
|
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 };
|
|
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 };
|
|
@@ -3231,6 +3231,45 @@ var normalizePreviewBlobResponse = (response) => {
|
|
|
3231
3231
|
if (blob) return blob;
|
|
3232
3232
|
throw new Error(getBinaryResponseMessage(payload) || "\u6587\u4EF6\u5185\u5BB9\u54CD\u5E94\u4E0D\u662F\u4E8C\u8FDB\u5236\u6570\u636E");
|
|
3233
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
|
+
};
|
|
3234
3273
|
var isDirectStorageItem = (item) => item.provider === "oss" || item.uploadProvider === "oss" || item.uploadProvider === "builtin-oss" || Boolean(item.storageCode);
|
|
3235
3274
|
var getPreviewItemKey = (item, index = 0) => getAttachmentItemIdentity(item) || item.id || item.uid || `${item.name || "file"}-${index}`;
|
|
3236
3275
|
var getPreviewSourceUrl = (item) => item.previewUrl || item.publicUrl || item.url || "";
|
|
@@ -3404,7 +3443,7 @@ var prepareFilePreview = async (options) => {
|
|
|
3404
3443
|
};
|
|
3405
3444
|
var loadPreviewBlob = async (request, url) => {
|
|
3406
3445
|
const response = await request({ url, method: "get", responseType: "blob" });
|
|
3407
|
-
return
|
|
3446
|
+
return normalizePreviewBlobContent(response);
|
|
3408
3447
|
};
|
|
3409
3448
|
var convertHeicPreview = async (request, url) => {
|
|
3410
3449
|
const source = await loadPreviewBlob(request, url);
|
|
@@ -21550,6 +21589,7 @@ export {
|
|
|
21550
21589
|
normalizeDataManagementList,
|
|
21551
21590
|
normalizeFieldBehaviors,
|
|
21552
21591
|
normalizeOperation,
|
|
21592
|
+
normalizePreviewBlobContent,
|
|
21553
21593
|
normalizePreviewBlobResponse,
|
|
21554
21594
|
normalizeRichTextHtml,
|
|
21555
21595
|
prepareFilePreview,
|