openxiangda 1.0.154 → 1.0.155

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.
@@ -1,6 +1,6 @@
1
1
  import React__default, { Dispatch, SetStateAction, CSSProperties } from 'react';
2
+ import { a9 as FormRuntimeApi, l as AttachmentItem, S as FilePreviewCapability, aH as PreparedFilePreview, ao as InitiatorSelectRequirement, an as InitiatorSelectCandidate, aP as ProcessPreviewProps, e as ApprovalTimelineProps } from '../ProcessPreview-DMkzccq4.mjs';
2
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { l as AttachmentItem, S as FilePreviewCapability, aH as PreparedFilePreview, a9 as FormRuntimeApi, ao as InitiatorSelectRequirement, an as InitiatorSelectCandidate, aP as ProcessPreviewProps, e as ApprovalTimelineProps } from '../ProcessPreview-DMkzccq4.mjs';
4
4
 
5
5
  type PageQueryValue = string | string[];
6
6
  type PageHttpMethod = "get" | "post" | "put" | "delete" | "patch";
@@ -1998,6 +1998,14 @@ declare const usePageRoute: () => PageRouteInfo;
1998
1998
 
1999
1999
  declare const usePageSdk: () => PageSdk;
2000
2000
 
2001
+ /**
2002
+ * Adapts PageSdk to the form component runtime, including binary Blob requests.
2003
+ * Use this instead of implementing FormEngineConfig.api.request in application code.
2004
+ */
2005
+ declare const createPageFormRuntimeApi: (sdk: PageSdk) => FormRuntimeApi;
2006
+ /** Returns the current PageSdk as a complete FormRuntimeApi for FormProvider. */
2007
+ declare const usePageFormRuntimeApi: () => FormRuntimeApi;
2008
+
2001
2009
  interface UseFilePreviewOptions {
2002
2010
  /** Files from a form value, data view row, App Function, or another PageSdk result. */
2003
2011
  items?: AttachmentItem[];
@@ -2373,4 +2381,4 @@ interface PublicAccessGateProps extends UsePublicAccessOptions {
2373
2381
  }
2374
2382
  declare const PublicAccessGate: React__default.FC<PublicAccessGateProps>;
2375
2383
 
2376
- export { type ApiEnvelope, type ApiPermissionListParams, type AppAuthClient, type AppFunctionConnectorApi, type AppFunctionContext, type AppFunctionDataViewApi, type AppFunctionFormApi, type AppFunctionFormGetByIdParams, type AppFunctionFormQueryParams, type AppFunctionFormWriteParams, type AppFunctionNotificationApi, type AppFunctionOperatorInfo, type AppFunctionOrganizationApi, type AppFunctionPermissionContext, type AppFunctionRuntimeContext, type ApproveTaskParams, type AssignPermissionsParams, type AssignRolesParams, AttachmentPreviewList, type AttachmentPreviewListProps, type AuthChallengePayload, AuthClientError, type AuthClientErrorOptions, type AuthClientOptions, type AuthErrorExtra, type AuthLogoutRedirectOptions, type AuthMethod, type AuthMethodType, type AuthTokenData, type AuthUser, type BatchAddUsersToRoleParams, type BatchSendNotificationByTypeParams, type ChangeOrganizationAccountPasswordParams, type ChangeUserRoleParams, type ConnectorCallParams, type ConnectorInvokeParams, type ConnectorInvokeResult, type ConnectorRequestBodyType, type ConnectorResponseType, type CreateApiPermissionParams, type CreateFileAccessTicketOptions, type CreateFormPermissionGroupDto, type CreateOrganizationAccountParams, type CreateOrganizationDepartmentParams, type CreatePagePermissionGroupDto, type CreateRoleParams, type CreateUiPermissionParams, type CreateUserParams, type CurrentUserDepartmentParents, type CustomPageEntryConfig, type CustomPageEntryMode, type DataManagementConfigParams, type DataManagementFilterState, type DataPermissionConditionDto, type DataPermissionDto, type DataPermissionRuleDto, type DataViewQueryParams, type DataViewQueryResult, type DataViewStatsParams, type DingTalkLoginInput, type DingTalkNotificationCapabilities, type DingTalkNotificationCardConfig, type DingTalkNotificationCardField, type DingTalkNotificationCardMode, type DingTalkNotificationCardPreview, type DingTalkNotificationChannelConfig, type DingTalkNotificationDeliveryMode, type DingTalkNotificationPreviewResult, type ExecuteProcessOperationInput, type FieldAccessLevel, type FieldAccessPolicyDto, type FieldAccessPolicyItemDto, type FieldOptionValue, type FieldPermissionDto, type FileAccessTicketAction, type FileAccessTicketPurpose, type FileAccessTicketResult, type FilePreviewController, type FilePreviewItem, type FindNotificationConfigParams, type FormAdvancedSearchParams, type FormChangeRecordParams, type FormCreateParams, type FormCreateResult, type FormDetailResult, type FormExportParams, type FormFieldValue, type FormGetDetailParams, type FormImportParams, type FormInstanceIdentifierResult, type FormPermissionGroup, type FormRemoveParams, type FormSearchParams, type FormUpdateParams, type FormUpdateResult, type FunctionInvokeParams, type FunctionInvokeResult, type GetParentDepartmentsOptions, type GetProcessInstanceParams, type GetUserRolesParams, type GuestLoginInput, ImagePreviewGrid, type ImagePreviewGridProps, type ImportExportRecordDownloadParams, type ImportExportRecordQuery, InitiatorApproverSelector, type InstanceStatus, type ListNotificationInboxParams, type ListWorkCenterItemsParams, type LoginLogGetParams, type LoginLogListParams, type LoginLogRecord, type LoginLogStats, type LoginLogStatsParams, type LoginLogStatus, type LoginMethodsResult, LoginPage, type LoginPageProps, type MarkAllNotificationReadResult, type NotificationChannel, type NotificationChannelConfig, type NotificationChannelsConfig, type NotificationConfigLevel, type NotificationInboxListResult, type NotificationInboxMessage, type NotificationInboxReadStatus, type NotificationMessageRecord, type NotificationTemplate, type NotificationTemplatePreview, type NotificationTypeConfig, type NotificationUnreadCountResult, OpenXiangdaPageProvider, type OpenXiangdaPageProviderProps, OpenXiangdaProvider, type OpenXiangdaProviderProps, type OrganizationAccountListParams, type OrganizationCapabilities, type OrganizationListResult, type PageApiPermissionRecord, type PageApiResponse, type PageAppInfo, type PageBinaryResponse, type PageBridgeApi, type PageContext, type PageDataManagementConfig, type PageDataSourceDescriptor, type PageDepartmentInfo, type PageDepartmentRecord, type PageHttpMethod, type PageInfo, type PageListResult, type PageMessageApi, type PageModalApi, type PageNavigationApi, type PageOffsetListResult, type PagePermissionGroup, type PagePermissionInfo, PageProvider, type PageQueryValue, type PageRequestOptions, type PageRoleRecord, type PageRouteInfo, type PageScope, type PageSdk, type PageSdkError, type PageSdkMeta, type PageTransportDownloadPayload, type PageTransportRequestPayload, type PageUiPermissionRecord, type PageUiPermissionType, type PageUserInfo, type PageUserRecord, type PageUserType, type PasswordLoginInput, PermissionBoundary, type PermissionBoundaryFallback, type PermissionBoundaryFallbackState, type PermissionBoundaryProps, type PhoneCodeInput, type PhoneCodeLoginInput, type PhoneCodeRegisterInput, type PhoneCodeSendResult, type PreviewDingTalkNotificationParams, type PreviewNotificationTemplateParams, ProcessActionBar, type ProcessActionBarProps, type ProcessApproveAction, type ProcessCapabilities, type ProcessCapabilityOperation, type ProcessInstanceLookupParams, ProcessPreviewPanel, type ProcessPreviewPanelProps, ProcessTimeline, type ProcessTimelineProps, type PublicAccessClaim, type PublicAccessClient, PublicAccessClientError, type PublicAccessClientOptions, PublicAccessGate, type PublicAccessGateProps, type PublicAccessSessionData, type PublicAccessSessionInput, type PublicStorageAction, type PublicStorageGrant, type QueryFormPermissionGroupDto, type QueryPagePermissionGroupDto, type RefreshInput, type ResetOrganizationAccountPasswordParams, type ResolveLoginUrlInput, type ResolveProcessCapabilitiesParams, type RoleListParams, type RoleUsersParams, type RouteAccessResult, RuntimeAuthGuard, type RuntimeAuthGuardProps, type RuntimeAuthState, type RuntimeAuthStatus, type RuntimeBootstrap, type RuntimeErrorSnapshot, type RuntimeErrorType, type RuntimeLogoutOptions, type RuntimeMenuItem, type RuntimePagePermissions, type RuntimeRedirectLoginOptions, type RuntimeRequestError, type RuntimeRequestState, type RuntimeResolveLoginOptions, type SaveDataManagementConfigParams, type SearchComponentName, type SearchExpression, type SearchFieldKey, type SearchGroup, type SearchLogic, type SearchOperator, type SearchRule, type SearchSortItem, type SearchSystemField, type SendNotificationByTypeParams, type SendNotificationResult, type SsoLoginUrlInput, type SsoLoginUrlResult, type SubFormRule, type SwitchAppRoleParams, type SwitchPlatformRoleParams, type TerminateProcessInstanceParams, type TriggerCallbackTaskParams, type UiPermissionListParams, type UpdateApiPermissionParams, type UpdateFormPermissionGroupDto, type UpdateOrganizationAccountParams, type UpdateOrganizationDepartmentParams, type UpdatePagePermissionGroupDto, type UpdateRoleParams, type UpdateUiPermissionParams, type UpdateUserParams, type UseAuthOptions, type UseCanAccessRouteInput, type UseFilePreviewOptions, type UseLoginMethodsState, type UseProcessActionsOptions, type UseProcessActionsReturn, type UseProcessCapabilitiesOptions, type UseProcessCapabilitiesReturn, type UsePublicAccessOptions, type UsePublicAccessState, type UserListParams, type UserMenuPermissionsResponse, type ValidateUserParams, type ViewFieldPermissionValue, type ViewOperationPermission, type ViewPermissionSummary, type WorkCenterBoxType, type WorkCenterGroupedStat, type WorkCenterItem, type WorkCenterListResult, type WorkCenterStats, type WorkCenterStatsParams, type WorkflowApproveParams, type WorkflowCapabilityActionKey, type WorkflowDefinitionByFormParams, type WorkflowInitiatorSelectCandidatesParams, type WorkflowInitiatorSelectRequirementsParams, type WorkflowPreviewParams, type WorkflowResubmitInitiatorSelectRequirementsParams, type WorkflowResubmitParams, type WorkflowReturnParams, type WorkflowSaveTaskParams, type WorkflowStartFromExistingInstanceParams, type WorkflowTaskParams, type WorkflowTransferParams, type WorkflowWithdrawParams, createAuthClient, createPageSdk, createPublicAccessClient, createReactPage, getAuthErrorExtra, getAuthErrorReason, isAuthChallengeRequired, isAuthClientError, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap };
2384
+ export { type ApiEnvelope, type ApiPermissionListParams, type AppAuthClient, type AppFunctionConnectorApi, type AppFunctionContext, type AppFunctionDataViewApi, type AppFunctionFormApi, type AppFunctionFormGetByIdParams, type AppFunctionFormQueryParams, type AppFunctionFormWriteParams, type AppFunctionNotificationApi, type AppFunctionOperatorInfo, type AppFunctionOrganizationApi, type AppFunctionPermissionContext, type AppFunctionRuntimeContext, type ApproveTaskParams, type AssignPermissionsParams, type AssignRolesParams, AttachmentPreviewList, type AttachmentPreviewListProps, type AuthChallengePayload, AuthClientError, type AuthClientErrorOptions, type AuthClientOptions, type AuthErrorExtra, type AuthLogoutRedirectOptions, type AuthMethod, type AuthMethodType, type AuthTokenData, type AuthUser, type BatchAddUsersToRoleParams, type BatchSendNotificationByTypeParams, type ChangeOrganizationAccountPasswordParams, type ChangeUserRoleParams, type ConnectorCallParams, type ConnectorInvokeParams, type ConnectorInvokeResult, type ConnectorRequestBodyType, type ConnectorResponseType, type CreateApiPermissionParams, type CreateFileAccessTicketOptions, type CreateFormPermissionGroupDto, type CreateOrganizationAccountParams, type CreateOrganizationDepartmentParams, type CreatePagePermissionGroupDto, type CreateRoleParams, type CreateUiPermissionParams, type CreateUserParams, type CurrentUserDepartmentParents, type CustomPageEntryConfig, type CustomPageEntryMode, type DataManagementConfigParams, type DataManagementFilterState, type DataPermissionConditionDto, type DataPermissionDto, type DataPermissionRuleDto, type DataViewQueryParams, type DataViewQueryResult, type DataViewStatsParams, type DingTalkLoginInput, type DingTalkNotificationCapabilities, type DingTalkNotificationCardConfig, type DingTalkNotificationCardField, type DingTalkNotificationCardMode, type DingTalkNotificationCardPreview, type DingTalkNotificationChannelConfig, type DingTalkNotificationDeliveryMode, type DingTalkNotificationPreviewResult, type ExecuteProcessOperationInput, type FieldAccessLevel, type FieldAccessPolicyDto, type FieldAccessPolicyItemDto, type FieldOptionValue, type FieldPermissionDto, type FileAccessTicketAction, type FileAccessTicketPurpose, type FileAccessTicketResult, type FilePreviewController, type FilePreviewItem, type FindNotificationConfigParams, type FormAdvancedSearchParams, type FormChangeRecordParams, type FormCreateParams, type FormCreateResult, type FormDetailResult, type FormExportParams, type FormFieldValue, type FormGetDetailParams, type FormImportParams, type FormInstanceIdentifierResult, type FormPermissionGroup, type FormRemoveParams, type FormSearchParams, type FormUpdateParams, type FormUpdateResult, type FunctionInvokeParams, type FunctionInvokeResult, type GetParentDepartmentsOptions, type GetProcessInstanceParams, type GetUserRolesParams, type GuestLoginInput, ImagePreviewGrid, type ImagePreviewGridProps, type ImportExportRecordDownloadParams, type ImportExportRecordQuery, InitiatorApproverSelector, type InstanceStatus, type ListNotificationInboxParams, type ListWorkCenterItemsParams, type LoginLogGetParams, type LoginLogListParams, type LoginLogRecord, type LoginLogStats, type LoginLogStatsParams, type LoginLogStatus, type LoginMethodsResult, LoginPage, type LoginPageProps, type MarkAllNotificationReadResult, type NotificationChannel, type NotificationChannelConfig, type NotificationChannelsConfig, type NotificationConfigLevel, type NotificationInboxListResult, type NotificationInboxMessage, type NotificationInboxReadStatus, type NotificationMessageRecord, type NotificationTemplate, type NotificationTemplatePreview, type NotificationTypeConfig, type NotificationUnreadCountResult, OpenXiangdaPageProvider, type OpenXiangdaPageProviderProps, OpenXiangdaProvider, type OpenXiangdaProviderProps, type OrganizationAccountListParams, type OrganizationCapabilities, type OrganizationListResult, type PageApiPermissionRecord, type PageApiResponse, type PageAppInfo, type PageBinaryResponse, type PageBridgeApi, type PageContext, type PageDataManagementConfig, type PageDataSourceDescriptor, type PageDepartmentInfo, type PageDepartmentRecord, type PageHttpMethod, type PageInfo, type PageListResult, type PageMessageApi, type PageModalApi, type PageNavigationApi, type PageOffsetListResult, type PagePermissionGroup, type PagePermissionInfo, PageProvider, type PageQueryValue, type PageRequestOptions, type PageRoleRecord, type PageRouteInfo, type PageScope, type PageSdk, type PageSdkError, type PageSdkMeta, type PageTransportDownloadPayload, type PageTransportRequestPayload, type PageUiPermissionRecord, type PageUiPermissionType, type PageUserInfo, type PageUserRecord, type PageUserType, type PasswordLoginInput, PermissionBoundary, type PermissionBoundaryFallback, type PermissionBoundaryFallbackState, type PermissionBoundaryProps, type PhoneCodeInput, type PhoneCodeLoginInput, type PhoneCodeRegisterInput, type PhoneCodeSendResult, type PreviewDingTalkNotificationParams, type PreviewNotificationTemplateParams, ProcessActionBar, type ProcessActionBarProps, type ProcessApproveAction, type ProcessCapabilities, type ProcessCapabilityOperation, type ProcessInstanceLookupParams, ProcessPreviewPanel, type ProcessPreviewPanelProps, ProcessTimeline, type ProcessTimelineProps, type PublicAccessClaim, type PublicAccessClient, PublicAccessClientError, type PublicAccessClientOptions, PublicAccessGate, type PublicAccessGateProps, type PublicAccessSessionData, type PublicAccessSessionInput, type PublicStorageAction, type PublicStorageGrant, type QueryFormPermissionGroupDto, type QueryPagePermissionGroupDto, type RefreshInput, type ResetOrganizationAccountPasswordParams, type ResolveLoginUrlInput, type ResolveProcessCapabilitiesParams, type RoleListParams, type RoleUsersParams, type RouteAccessResult, RuntimeAuthGuard, type RuntimeAuthGuardProps, type RuntimeAuthState, type RuntimeAuthStatus, type RuntimeBootstrap, type RuntimeErrorSnapshot, type RuntimeErrorType, type RuntimeLogoutOptions, type RuntimeMenuItem, type RuntimePagePermissions, type RuntimeRedirectLoginOptions, type RuntimeRequestError, type RuntimeRequestState, type RuntimeResolveLoginOptions, type SaveDataManagementConfigParams, type SearchComponentName, type SearchExpression, type SearchFieldKey, type SearchGroup, type SearchLogic, type SearchOperator, type SearchRule, type SearchSortItem, type SearchSystemField, type SendNotificationByTypeParams, type SendNotificationResult, type SsoLoginUrlInput, type SsoLoginUrlResult, type SubFormRule, type SwitchAppRoleParams, type SwitchPlatformRoleParams, type TerminateProcessInstanceParams, type TriggerCallbackTaskParams, type UiPermissionListParams, type UpdateApiPermissionParams, type UpdateFormPermissionGroupDto, type UpdateOrganizationAccountParams, type UpdateOrganizationDepartmentParams, type UpdatePagePermissionGroupDto, type UpdateRoleParams, type UpdateUiPermissionParams, type UpdateUserParams, type UseAuthOptions, type UseCanAccessRouteInput, type UseFilePreviewOptions, type UseLoginMethodsState, type UseProcessActionsOptions, type UseProcessActionsReturn, type UseProcessCapabilitiesOptions, type UseProcessCapabilitiesReturn, type UsePublicAccessOptions, type UsePublicAccessState, type UserListParams, type UserMenuPermissionsResponse, type ValidateUserParams, type ViewFieldPermissionValue, type ViewOperationPermission, type ViewPermissionSummary, type WorkCenterBoxType, type WorkCenterGroupedStat, type WorkCenterItem, type WorkCenterListResult, type WorkCenterStats, type WorkCenterStatsParams, type WorkflowApproveParams, type WorkflowCapabilityActionKey, type WorkflowDefinitionByFormParams, type WorkflowInitiatorSelectCandidatesParams, type WorkflowInitiatorSelectRequirementsParams, type WorkflowPreviewParams, type WorkflowResubmitInitiatorSelectRequirementsParams, type WorkflowResubmitParams, type WorkflowReturnParams, type WorkflowSaveTaskParams, type WorkflowStartFromExistingInstanceParams, type WorkflowTaskParams, type WorkflowTransferParams, type WorkflowWithdrawParams, createAuthClient, createPageFormRuntimeApi, createPageSdk, createPublicAccessClient, createReactPage, getAuthErrorExtra, getAuthErrorReason, isAuthChallengeRequired, isAuthClientError, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageFormRuntimeApi, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap };
@@ -1,6 +1,6 @@
1
1
  import React__default, { Dispatch, SetStateAction, CSSProperties } from 'react';
2
+ import { a9 as FormRuntimeApi, l as AttachmentItem, S as FilePreviewCapability, aH as PreparedFilePreview, ao as InitiatorSelectRequirement, an as InitiatorSelectCandidate, aP as ProcessPreviewProps, e as ApprovalTimelineProps } from '../ProcessPreview-DMkzccq4.js';
2
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { l as AttachmentItem, S as FilePreviewCapability, aH as PreparedFilePreview, a9 as FormRuntimeApi, ao as InitiatorSelectRequirement, an as InitiatorSelectCandidate, aP as ProcessPreviewProps, e as ApprovalTimelineProps } from '../ProcessPreview-DMkzccq4.js';
4
4
 
5
5
  type PageQueryValue = string | string[];
6
6
  type PageHttpMethod = "get" | "post" | "put" | "delete" | "patch";
@@ -1998,6 +1998,14 @@ declare const usePageRoute: () => PageRouteInfo;
1998
1998
 
1999
1999
  declare const usePageSdk: () => PageSdk;
2000
2000
 
2001
+ /**
2002
+ * Adapts PageSdk to the form component runtime, including binary Blob requests.
2003
+ * Use this instead of implementing FormEngineConfig.api.request in application code.
2004
+ */
2005
+ declare const createPageFormRuntimeApi: (sdk: PageSdk) => FormRuntimeApi;
2006
+ /** Returns the current PageSdk as a complete FormRuntimeApi for FormProvider. */
2007
+ declare const usePageFormRuntimeApi: () => FormRuntimeApi;
2008
+
2001
2009
  interface UseFilePreviewOptions {
2002
2010
  /** Files from a form value, data view row, App Function, or another PageSdk result. */
2003
2011
  items?: AttachmentItem[];
@@ -2373,4 +2381,4 @@ interface PublicAccessGateProps extends UsePublicAccessOptions {
2373
2381
  }
2374
2382
  declare const PublicAccessGate: React__default.FC<PublicAccessGateProps>;
2375
2383
 
2376
- export { type ApiEnvelope, type ApiPermissionListParams, type AppAuthClient, type AppFunctionConnectorApi, type AppFunctionContext, type AppFunctionDataViewApi, type AppFunctionFormApi, type AppFunctionFormGetByIdParams, type AppFunctionFormQueryParams, type AppFunctionFormWriteParams, type AppFunctionNotificationApi, type AppFunctionOperatorInfo, type AppFunctionOrganizationApi, type AppFunctionPermissionContext, type AppFunctionRuntimeContext, type ApproveTaskParams, type AssignPermissionsParams, type AssignRolesParams, AttachmentPreviewList, type AttachmentPreviewListProps, type AuthChallengePayload, AuthClientError, type AuthClientErrorOptions, type AuthClientOptions, type AuthErrorExtra, type AuthLogoutRedirectOptions, type AuthMethod, type AuthMethodType, type AuthTokenData, type AuthUser, type BatchAddUsersToRoleParams, type BatchSendNotificationByTypeParams, type ChangeOrganizationAccountPasswordParams, type ChangeUserRoleParams, type ConnectorCallParams, type ConnectorInvokeParams, type ConnectorInvokeResult, type ConnectorRequestBodyType, type ConnectorResponseType, type CreateApiPermissionParams, type CreateFileAccessTicketOptions, type CreateFormPermissionGroupDto, type CreateOrganizationAccountParams, type CreateOrganizationDepartmentParams, type CreatePagePermissionGroupDto, type CreateRoleParams, type CreateUiPermissionParams, type CreateUserParams, type CurrentUserDepartmentParents, type CustomPageEntryConfig, type CustomPageEntryMode, type DataManagementConfigParams, type DataManagementFilterState, type DataPermissionConditionDto, type DataPermissionDto, type DataPermissionRuleDto, type DataViewQueryParams, type DataViewQueryResult, type DataViewStatsParams, type DingTalkLoginInput, type DingTalkNotificationCapabilities, type DingTalkNotificationCardConfig, type DingTalkNotificationCardField, type DingTalkNotificationCardMode, type DingTalkNotificationCardPreview, type DingTalkNotificationChannelConfig, type DingTalkNotificationDeliveryMode, type DingTalkNotificationPreviewResult, type ExecuteProcessOperationInput, type FieldAccessLevel, type FieldAccessPolicyDto, type FieldAccessPolicyItemDto, type FieldOptionValue, type FieldPermissionDto, type FileAccessTicketAction, type FileAccessTicketPurpose, type FileAccessTicketResult, type FilePreviewController, type FilePreviewItem, type FindNotificationConfigParams, type FormAdvancedSearchParams, type FormChangeRecordParams, type FormCreateParams, type FormCreateResult, type FormDetailResult, type FormExportParams, type FormFieldValue, type FormGetDetailParams, type FormImportParams, type FormInstanceIdentifierResult, type FormPermissionGroup, type FormRemoveParams, type FormSearchParams, type FormUpdateParams, type FormUpdateResult, type FunctionInvokeParams, type FunctionInvokeResult, type GetParentDepartmentsOptions, type GetProcessInstanceParams, type GetUserRolesParams, type GuestLoginInput, ImagePreviewGrid, type ImagePreviewGridProps, type ImportExportRecordDownloadParams, type ImportExportRecordQuery, InitiatorApproverSelector, type InstanceStatus, type ListNotificationInboxParams, type ListWorkCenterItemsParams, type LoginLogGetParams, type LoginLogListParams, type LoginLogRecord, type LoginLogStats, type LoginLogStatsParams, type LoginLogStatus, type LoginMethodsResult, LoginPage, type LoginPageProps, type MarkAllNotificationReadResult, type NotificationChannel, type NotificationChannelConfig, type NotificationChannelsConfig, type NotificationConfigLevel, type NotificationInboxListResult, type NotificationInboxMessage, type NotificationInboxReadStatus, type NotificationMessageRecord, type NotificationTemplate, type NotificationTemplatePreview, type NotificationTypeConfig, type NotificationUnreadCountResult, OpenXiangdaPageProvider, type OpenXiangdaPageProviderProps, OpenXiangdaProvider, type OpenXiangdaProviderProps, type OrganizationAccountListParams, type OrganizationCapabilities, type OrganizationListResult, type PageApiPermissionRecord, type PageApiResponse, type PageAppInfo, type PageBinaryResponse, type PageBridgeApi, type PageContext, type PageDataManagementConfig, type PageDataSourceDescriptor, type PageDepartmentInfo, type PageDepartmentRecord, type PageHttpMethod, type PageInfo, type PageListResult, type PageMessageApi, type PageModalApi, type PageNavigationApi, type PageOffsetListResult, type PagePermissionGroup, type PagePermissionInfo, PageProvider, type PageQueryValue, type PageRequestOptions, type PageRoleRecord, type PageRouteInfo, type PageScope, type PageSdk, type PageSdkError, type PageSdkMeta, type PageTransportDownloadPayload, type PageTransportRequestPayload, type PageUiPermissionRecord, type PageUiPermissionType, type PageUserInfo, type PageUserRecord, type PageUserType, type PasswordLoginInput, PermissionBoundary, type PermissionBoundaryFallback, type PermissionBoundaryFallbackState, type PermissionBoundaryProps, type PhoneCodeInput, type PhoneCodeLoginInput, type PhoneCodeRegisterInput, type PhoneCodeSendResult, type PreviewDingTalkNotificationParams, type PreviewNotificationTemplateParams, ProcessActionBar, type ProcessActionBarProps, type ProcessApproveAction, type ProcessCapabilities, type ProcessCapabilityOperation, type ProcessInstanceLookupParams, ProcessPreviewPanel, type ProcessPreviewPanelProps, ProcessTimeline, type ProcessTimelineProps, type PublicAccessClaim, type PublicAccessClient, PublicAccessClientError, type PublicAccessClientOptions, PublicAccessGate, type PublicAccessGateProps, type PublicAccessSessionData, type PublicAccessSessionInput, type PublicStorageAction, type PublicStorageGrant, type QueryFormPermissionGroupDto, type QueryPagePermissionGroupDto, type RefreshInput, type ResetOrganizationAccountPasswordParams, type ResolveLoginUrlInput, type ResolveProcessCapabilitiesParams, type RoleListParams, type RoleUsersParams, type RouteAccessResult, RuntimeAuthGuard, type RuntimeAuthGuardProps, type RuntimeAuthState, type RuntimeAuthStatus, type RuntimeBootstrap, type RuntimeErrorSnapshot, type RuntimeErrorType, type RuntimeLogoutOptions, type RuntimeMenuItem, type RuntimePagePermissions, type RuntimeRedirectLoginOptions, type RuntimeRequestError, type RuntimeRequestState, type RuntimeResolveLoginOptions, type SaveDataManagementConfigParams, type SearchComponentName, type SearchExpression, type SearchFieldKey, type SearchGroup, type SearchLogic, type SearchOperator, type SearchRule, type SearchSortItem, type SearchSystemField, type SendNotificationByTypeParams, type SendNotificationResult, type SsoLoginUrlInput, type SsoLoginUrlResult, type SubFormRule, type SwitchAppRoleParams, type SwitchPlatformRoleParams, type TerminateProcessInstanceParams, type TriggerCallbackTaskParams, type UiPermissionListParams, type UpdateApiPermissionParams, type UpdateFormPermissionGroupDto, type UpdateOrganizationAccountParams, type UpdateOrganizationDepartmentParams, type UpdatePagePermissionGroupDto, type UpdateRoleParams, type UpdateUiPermissionParams, type UpdateUserParams, type UseAuthOptions, type UseCanAccessRouteInput, type UseFilePreviewOptions, type UseLoginMethodsState, type UseProcessActionsOptions, type UseProcessActionsReturn, type UseProcessCapabilitiesOptions, type UseProcessCapabilitiesReturn, type UsePublicAccessOptions, type UsePublicAccessState, type UserListParams, type UserMenuPermissionsResponse, type ValidateUserParams, type ViewFieldPermissionValue, type ViewOperationPermission, type ViewPermissionSummary, type WorkCenterBoxType, type WorkCenterGroupedStat, type WorkCenterItem, type WorkCenterListResult, type WorkCenterStats, type WorkCenterStatsParams, type WorkflowApproveParams, type WorkflowCapabilityActionKey, type WorkflowDefinitionByFormParams, type WorkflowInitiatorSelectCandidatesParams, type WorkflowInitiatorSelectRequirementsParams, type WorkflowPreviewParams, type WorkflowResubmitInitiatorSelectRequirementsParams, type WorkflowResubmitParams, type WorkflowReturnParams, type WorkflowSaveTaskParams, type WorkflowStartFromExistingInstanceParams, type WorkflowTaskParams, type WorkflowTransferParams, type WorkflowWithdrawParams, createAuthClient, createPageSdk, createPublicAccessClient, createReactPage, getAuthErrorExtra, getAuthErrorReason, isAuthChallengeRequired, isAuthClientError, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap };
2384
+ export { type ApiEnvelope, type ApiPermissionListParams, type AppAuthClient, type AppFunctionConnectorApi, type AppFunctionContext, type AppFunctionDataViewApi, type AppFunctionFormApi, type AppFunctionFormGetByIdParams, type AppFunctionFormQueryParams, type AppFunctionFormWriteParams, type AppFunctionNotificationApi, type AppFunctionOperatorInfo, type AppFunctionOrganizationApi, type AppFunctionPermissionContext, type AppFunctionRuntimeContext, type ApproveTaskParams, type AssignPermissionsParams, type AssignRolesParams, AttachmentPreviewList, type AttachmentPreviewListProps, type AuthChallengePayload, AuthClientError, type AuthClientErrorOptions, type AuthClientOptions, type AuthErrorExtra, type AuthLogoutRedirectOptions, type AuthMethod, type AuthMethodType, type AuthTokenData, type AuthUser, type BatchAddUsersToRoleParams, type BatchSendNotificationByTypeParams, type ChangeOrganizationAccountPasswordParams, type ChangeUserRoleParams, type ConnectorCallParams, type ConnectorInvokeParams, type ConnectorInvokeResult, type ConnectorRequestBodyType, type ConnectorResponseType, type CreateApiPermissionParams, type CreateFileAccessTicketOptions, type CreateFormPermissionGroupDto, type CreateOrganizationAccountParams, type CreateOrganizationDepartmentParams, type CreatePagePermissionGroupDto, type CreateRoleParams, type CreateUiPermissionParams, type CreateUserParams, type CurrentUserDepartmentParents, type CustomPageEntryConfig, type CustomPageEntryMode, type DataManagementConfigParams, type DataManagementFilterState, type DataPermissionConditionDto, type DataPermissionDto, type DataPermissionRuleDto, type DataViewQueryParams, type DataViewQueryResult, type DataViewStatsParams, type DingTalkLoginInput, type DingTalkNotificationCapabilities, type DingTalkNotificationCardConfig, type DingTalkNotificationCardField, type DingTalkNotificationCardMode, type DingTalkNotificationCardPreview, type DingTalkNotificationChannelConfig, type DingTalkNotificationDeliveryMode, type DingTalkNotificationPreviewResult, type ExecuteProcessOperationInput, type FieldAccessLevel, type FieldAccessPolicyDto, type FieldAccessPolicyItemDto, type FieldOptionValue, type FieldPermissionDto, type FileAccessTicketAction, type FileAccessTicketPurpose, type FileAccessTicketResult, type FilePreviewController, type FilePreviewItem, type FindNotificationConfigParams, type FormAdvancedSearchParams, type FormChangeRecordParams, type FormCreateParams, type FormCreateResult, type FormDetailResult, type FormExportParams, type FormFieldValue, type FormGetDetailParams, type FormImportParams, type FormInstanceIdentifierResult, type FormPermissionGroup, type FormRemoveParams, type FormSearchParams, type FormUpdateParams, type FormUpdateResult, type FunctionInvokeParams, type FunctionInvokeResult, type GetParentDepartmentsOptions, type GetProcessInstanceParams, type GetUserRolesParams, type GuestLoginInput, ImagePreviewGrid, type ImagePreviewGridProps, type ImportExportRecordDownloadParams, type ImportExportRecordQuery, InitiatorApproverSelector, type InstanceStatus, type ListNotificationInboxParams, type ListWorkCenterItemsParams, type LoginLogGetParams, type LoginLogListParams, type LoginLogRecord, type LoginLogStats, type LoginLogStatsParams, type LoginLogStatus, type LoginMethodsResult, LoginPage, type LoginPageProps, type MarkAllNotificationReadResult, type NotificationChannel, type NotificationChannelConfig, type NotificationChannelsConfig, type NotificationConfigLevel, type NotificationInboxListResult, type NotificationInboxMessage, type NotificationInboxReadStatus, type NotificationMessageRecord, type NotificationTemplate, type NotificationTemplatePreview, type NotificationTypeConfig, type NotificationUnreadCountResult, OpenXiangdaPageProvider, type OpenXiangdaPageProviderProps, OpenXiangdaProvider, type OpenXiangdaProviderProps, type OrganizationAccountListParams, type OrganizationCapabilities, type OrganizationListResult, type PageApiPermissionRecord, type PageApiResponse, type PageAppInfo, type PageBinaryResponse, type PageBridgeApi, type PageContext, type PageDataManagementConfig, type PageDataSourceDescriptor, type PageDepartmentInfo, type PageDepartmentRecord, type PageHttpMethod, type PageInfo, type PageListResult, type PageMessageApi, type PageModalApi, type PageNavigationApi, type PageOffsetListResult, type PagePermissionGroup, type PagePermissionInfo, PageProvider, type PageQueryValue, type PageRequestOptions, type PageRoleRecord, type PageRouteInfo, type PageScope, type PageSdk, type PageSdkError, type PageSdkMeta, type PageTransportDownloadPayload, type PageTransportRequestPayload, type PageUiPermissionRecord, type PageUiPermissionType, type PageUserInfo, type PageUserRecord, type PageUserType, type PasswordLoginInput, PermissionBoundary, type PermissionBoundaryFallback, type PermissionBoundaryFallbackState, type PermissionBoundaryProps, type PhoneCodeInput, type PhoneCodeLoginInput, type PhoneCodeRegisterInput, type PhoneCodeSendResult, type PreviewDingTalkNotificationParams, type PreviewNotificationTemplateParams, ProcessActionBar, type ProcessActionBarProps, type ProcessApproveAction, type ProcessCapabilities, type ProcessCapabilityOperation, type ProcessInstanceLookupParams, ProcessPreviewPanel, type ProcessPreviewPanelProps, ProcessTimeline, type ProcessTimelineProps, type PublicAccessClaim, type PublicAccessClient, PublicAccessClientError, type PublicAccessClientOptions, PublicAccessGate, type PublicAccessGateProps, type PublicAccessSessionData, type PublicAccessSessionInput, type PublicStorageAction, type PublicStorageGrant, type QueryFormPermissionGroupDto, type QueryPagePermissionGroupDto, type RefreshInput, type ResetOrganizationAccountPasswordParams, type ResolveLoginUrlInput, type ResolveProcessCapabilitiesParams, type RoleListParams, type RoleUsersParams, type RouteAccessResult, RuntimeAuthGuard, type RuntimeAuthGuardProps, type RuntimeAuthState, type RuntimeAuthStatus, type RuntimeBootstrap, type RuntimeErrorSnapshot, type RuntimeErrorType, type RuntimeLogoutOptions, type RuntimeMenuItem, type RuntimePagePermissions, type RuntimeRedirectLoginOptions, type RuntimeRequestError, type RuntimeRequestState, type RuntimeResolveLoginOptions, type SaveDataManagementConfigParams, type SearchComponentName, type SearchExpression, type SearchFieldKey, type SearchGroup, type SearchLogic, type SearchOperator, type SearchRule, type SearchSortItem, type SearchSystemField, type SendNotificationByTypeParams, type SendNotificationResult, type SsoLoginUrlInput, type SsoLoginUrlResult, type SubFormRule, type SwitchAppRoleParams, type SwitchPlatformRoleParams, type TerminateProcessInstanceParams, type TriggerCallbackTaskParams, type UiPermissionListParams, type UpdateApiPermissionParams, type UpdateFormPermissionGroupDto, type UpdateOrganizationAccountParams, type UpdateOrganizationDepartmentParams, type UpdatePagePermissionGroupDto, type UpdateRoleParams, type UpdateUiPermissionParams, type UpdateUserParams, type UseAuthOptions, type UseCanAccessRouteInput, type UseFilePreviewOptions, type UseLoginMethodsState, type UseProcessActionsOptions, type UseProcessActionsReturn, type UseProcessCapabilitiesOptions, type UseProcessCapabilitiesReturn, type UsePublicAccessOptions, type UsePublicAccessState, type UserListParams, type UserMenuPermissionsResponse, type ValidateUserParams, type ViewFieldPermissionValue, type ViewOperationPermission, type ViewPermissionSummary, type WorkCenterBoxType, type WorkCenterGroupedStat, type WorkCenterItem, type WorkCenterListResult, type WorkCenterStats, type WorkCenterStatsParams, type WorkflowApproveParams, type WorkflowCapabilityActionKey, type WorkflowDefinitionByFormParams, type WorkflowInitiatorSelectCandidatesParams, type WorkflowInitiatorSelectRequirementsParams, type WorkflowPreviewParams, type WorkflowResubmitInitiatorSelectRequirementsParams, type WorkflowResubmitParams, type WorkflowReturnParams, type WorkflowSaveTaskParams, type WorkflowStartFromExistingInstanceParams, type WorkflowTaskParams, type WorkflowTransferParams, type WorkflowWithdrawParams, createAuthClient, createPageFormRuntimeApi, createPageSdk, createPublicAccessClient, createReactPage, getAuthErrorExtra, getAuthErrorReason, isAuthChallengeRequired, isAuthClientError, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFilePreview, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageFormRuntimeApi, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap };
@@ -2619,9 +2619,8 @@ var usePageRoute = () => {
2619
2619
  return usePageContext().route;
2620
2620
  };
2621
2621
 
2622
- // packages/sdk/src/runtime/react/filePreview.tsx
2623
- import React6, { useMemo as useMemo6, useState as useState6 } from "react";
2624
- import { Empty as Empty3 } from "antd";
2622
+ // packages/sdk/src/runtime/react/formRuntime.ts
2623
+ import { useMemo as useMemo4 } from "react";
2625
2624
 
2626
2625
  // packages/sdk/src/components/core/imageCompression.ts
2627
2626
  var DEFAULT_THUMB = {
@@ -3474,6 +3473,73 @@ function createFormRuntimeApi(config) {
3474
3473
  return { ...defaults, ...overrides, request };
3475
3474
  }
3476
3475
 
3476
+ // packages/sdk/src/runtime/react/formRuntime.ts
3477
+ var normalizeMethod2 = (method) => {
3478
+ const value = String(method || "get").toLowerCase();
3479
+ return ["get", "post", "put", "delete", "patch"].includes(value) ? value : "get";
3480
+ };
3481
+ var normalizeHeaders = (headers) => {
3482
+ if (!headers) return void 0;
3483
+ return Object.fromEntries(new Headers(headers).entries());
3484
+ };
3485
+ var toPageRequest = (config) => ({
3486
+ path: config.url,
3487
+ method: normalizeMethod2(config.method),
3488
+ query: config.params,
3489
+ body: config.data,
3490
+ headers: normalizeHeaders(config.headers)
3491
+ });
3492
+ var toRuntimeResponse = (response) => {
3493
+ if (response.raw && typeof response.raw === "object") {
3494
+ return response.raw;
3495
+ }
3496
+ return {
3497
+ code: Number(response.code) || 200,
3498
+ success: response.success,
3499
+ message: response.message,
3500
+ data: response.result,
3501
+ result: response.result
3502
+ };
3503
+ };
3504
+ var unwrapPageResult = (response) => response.result ?? response.data ?? null;
3505
+ var createPageFormRuntimeApi = (sdk) => {
3506
+ const request = async (config) => {
3507
+ const options = toPageRequest(config);
3508
+ if (config.responseType === "blob") {
3509
+ const response = await sdk.transport.download(options);
3510
+ return response.blob;
3511
+ }
3512
+ return toRuntimeResponse(await sdk.transport.request(options));
3513
+ };
3514
+ return createFormRuntimeApi({
3515
+ request,
3516
+ createFileAccessTicket: async (bucketName, objectName, fileName, purpose = "preview", options = {}) => unwrapPageResult(
3517
+ await sdk.createFileAccessTicket(
3518
+ bucketName,
3519
+ objectName,
3520
+ fileName,
3521
+ purpose,
3522
+ options
3523
+ )
3524
+ ),
3525
+ createDownloadTicket: async (bucketName, objectName, fileName) => unwrapPageResult(
3526
+ await sdk.request({
3527
+ path: "/file/download-ticket",
3528
+ method: "post",
3529
+ body: { bucketName, objectName, fileName }
3530
+ })
3531
+ )
3532
+ });
3533
+ };
3534
+ var usePageFormRuntimeApi = () => {
3535
+ const sdk = usePageSdk();
3536
+ return useMemo4(() => createPageFormRuntimeApi(sdk), [sdk]);
3537
+ };
3538
+
3539
+ // packages/sdk/src/runtime/react/filePreview.tsx
3540
+ import React6, { useMemo as useMemo7, useState as useState6 } from "react";
3541
+ import { Empty as Empty3 } from "antd";
3542
+
3477
3543
  // packages/sdk/src/components/fields/shared/fieldFormat.ts
3478
3544
  function getUserId(user) {
3479
3545
  if (typeof user === "string" || typeof user === "number") return String(user).trim();
@@ -3897,7 +3963,7 @@ var convertHeicPreview = async (request, url) => {
3897
3963
  };
3898
3964
 
3899
3965
  // packages/sdk/src/components/file-preview/FilePreviewContent.tsx
3900
- import { useEffect as useEffect3, useMemo as useMemo4, useRef as useRef2, useState as useState3 } from "react";
3966
+ import { useEffect as useEffect3, useMemo as useMemo5, useRef as useRef2, useState as useState3 } from "react";
3901
3967
  import { Alert, Button, Empty, Image as Image2, Spin, Table, Tabs, Typography } from "antd";
3902
3968
  import { DownloadOutlined, FileOutlined, ReloadOutlined } from "@ant-design/icons";
3903
3969
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
@@ -4342,7 +4408,7 @@ var OnlyOfficePreview = ({
4342
4408
  configUrl,
4343
4409
  ticket
4344
4410
  }) => {
4345
- const editorId = useMemo4(
4411
+ const editorId = useMemo5(
4346
4412
  () => `openxiangda-onlyoffice-${String(ticket || "editor").replace(/[^a-zA-Z0-9_-]/g, "")}`,
4347
4413
  [ticket]
4348
4414
  );
@@ -4542,7 +4608,7 @@ import {
4542
4608
  import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
4543
4609
 
4544
4610
  // packages/sdk/src/components/file-preview/useFilePreview.tsx
4545
- import { useCallback as useCallback4, useEffect as useEffect5, useMemo as useMemo5, useState as useState5 } from "react";
4611
+ import { useCallback as useCallback4, useEffect as useEffect5, useMemo as useMemo6, useState as useState5 } from "react";
4546
4612
  import { Alert as Alert3, Button as Button3, Image as Image3, Modal, Spin as Spin3, Typography as Typography3 } from "antd";
4547
4613
  import { CloseOutlined, DownloadOutlined as DownloadOutlined3 } from "@ant-design/icons";
4548
4614
  import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
@@ -4571,7 +4637,7 @@ var useFilePreviewController = ({
4571
4637
  enabled = true,
4572
4638
  requireServerCapability = true
4573
4639
  }) => {
4574
- const itemSignature = useMemo5(
4640
+ const itemSignature = useMemo6(
4575
4641
  () => items.map(
4576
4642
  (item, index) => [
4577
4643
  getPreviewItemKey(item, index),
@@ -4934,63 +5000,6 @@ function FileStatusText({
4934
5000
  // packages/sdk/src/runtime/react/filePreview.tsx
4935
5001
  import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
4936
5002
  var EMPTY_ITEMS = [];
4937
- var normalizeMethod2 = (method) => {
4938
- const value = String(method || "get").toLowerCase();
4939
- return ["get", "post", "put", "delete", "patch"].includes(value) ? value : "get";
4940
- };
4941
- var normalizeHeaders = (headers) => {
4942
- if (!headers) return void 0;
4943
- return Object.fromEntries(new Headers(headers).entries());
4944
- };
4945
- var toPageRequest = (config) => ({
4946
- path: config.url,
4947
- method: normalizeMethod2(config.method),
4948
- query: config.params,
4949
- body: config.data,
4950
- headers: normalizeHeaders(config.headers)
4951
- });
4952
- var toRuntimeResponse = (response) => {
4953
- if (response.raw && typeof response.raw === "object") {
4954
- return response.raw;
4955
- }
4956
- return {
4957
- code: Number(response.code) || 200,
4958
- success: response.success,
4959
- message: response.message,
4960
- data: response.result,
4961
- result: response.result
4962
- };
4963
- };
4964
- var unwrapPageResult = (response) => response.result ?? response.data ?? null;
4965
- var createPageFileRuntimeApi = (sdk) => {
4966
- const request = async (config) => {
4967
- const options = toPageRequest(config);
4968
- if (config.responseType === "blob") {
4969
- const response = await sdk.transport.download(options);
4970
- return response.blob;
4971
- }
4972
- return toRuntimeResponse(await sdk.transport.request(options));
4973
- };
4974
- return createFormRuntimeApi({
4975
- request,
4976
- createFileAccessTicket: async (bucketName, objectName, fileName, purpose = "preview", options = {}) => unwrapPageResult(
4977
- await sdk.createFileAccessTicket(
4978
- bucketName,
4979
- objectName,
4980
- fileName,
4981
- purpose,
4982
- options
4983
- )
4984
- ),
4985
- createDownloadTicket: async (bucketName, objectName, fileName) => unwrapPageResult(
4986
- await sdk.request({
4987
- path: "/file/download-ticket",
4988
- method: "post",
4989
- body: { bucketName, objectName, fileName }
4990
- })
4991
- )
4992
- });
4993
- };
4994
5003
  var useFilePreview = ({
4995
5004
  items = EMPTY_ITEMS,
4996
5005
  appType,
@@ -4999,7 +5008,7 @@ var useFilePreview = ({
4999
5008
  requireServerCapability = true
5000
5009
  }) => {
5001
5010
  const sdk = usePageSdk();
5002
- const api = useMemo6(() => createPageFileRuntimeApi(sdk), [sdk]);
5011
+ const api = useMemo7(() => createPageFormRuntimeApi(sdk), [sdk]);
5003
5012
  const preview = useFilePreviewController({
5004
5013
  items,
5005
5014
  api,
@@ -5187,7 +5196,7 @@ var ImagePreviewGrid = ({
5187
5196
  };
5188
5197
 
5189
5198
  // packages/sdk/src/runtime/react/workflow.tsx
5190
- import { useCallback as useCallback8, useEffect as useEffect10, useMemo as useMemo12, useRef as useRef5, useState as useState11 } from "react";
5199
+ import { useCallback as useCallback8, useEffect as useEffect10, useMemo as useMemo13, useRef as useRef5, useState as useState11 } from "react";
5191
5200
  import { Form, Input as Input2, Modal as Modal5, Select as Select2 } from "antd";
5192
5201
  import {
5193
5202
  CheckOutlined,
@@ -5199,7 +5208,7 @@ import {
5199
5208
  } from "@ant-design/icons";
5200
5209
 
5201
5210
  // packages/sdk/src/components/modules/StickyActionBar.tsx
5202
- import { useEffect as useEffect6, useMemo as useMemo7, useState as useState7 } from "react";
5211
+ import { useEffect as useEffect6, useMemo as useMemo8, useState as useState7 } from "react";
5203
5212
  import { Button as Button4, Dropdown, Tooltip as Tooltip2 } from "antd";
5204
5213
  import { MoreOutlined } from "@ant-design/icons";
5205
5214
 
@@ -5242,7 +5251,7 @@ var StickyActionBar = ({
5242
5251
  window.addEventListener("resize", update);
5243
5252
  return () => window.removeEventListener("resize", update);
5244
5253
  }, []);
5245
- const visibleActions = useMemo7(
5254
+ const visibleActions = useMemo8(
5246
5255
  () => actions.filter((action) => action.visible !== false).sort((left, right) => getActionPriority(left) - getActionPriority(right)),
5247
5256
  [actions]
5248
5257
  );
@@ -5311,7 +5320,7 @@ var StickyActionBar = ({
5311
5320
  };
5312
5321
 
5313
5322
  // packages/sdk/src/components/modules/ApprovalTimeline.tsx
5314
- import { useMemo as useMemo8 } from "react";
5323
+ import { useMemo as useMemo9 } from "react";
5315
5324
  import {
5316
5325
  ApiOutlined,
5317
5326
  CheckCircleFilled,
@@ -5489,8 +5498,8 @@ var ApprovalTimeline = ({
5489
5498
  compactMode = false,
5490
5499
  showApproverInfo = true
5491
5500
  }) => {
5492
- const taskList = useMemo8(() => Array.isArray(tasks) ? tasks : [], [tasks]);
5493
- const groups = useMemo8(() => groupTasks(taskList), [taskList]);
5501
+ const taskList = useMemo9(() => Array.isArray(tasks) ? tasks : [], [tasks]);
5502
+ const groups = useMemo9(() => groupTasks(taskList), [taskList]);
5494
5503
  if (taskList.length === 0) {
5495
5504
  return /* @__PURE__ */ jsx9(
5496
5505
  "div",
@@ -5636,7 +5645,7 @@ var ProcessPreview = ({
5636
5645
  };
5637
5646
 
5638
5647
  // packages/sdk/src/components/modules/InitiatorApproverSelector.tsx
5639
- import { useCallback as useCallback7, useEffect as useEffect9, useMemo as useMemo11, useRef as useRef4, useState as useState10 } from "react";
5648
+ import { useCallback as useCallback7, useEffect as useEffect9, useMemo as useMemo12, useRef as useRef4, useState as useState10 } from "react";
5640
5649
  import { Button as Button7, Empty as Empty5, Modal as Modal4, Select, Space as Space2, Tag as Tag3, Typography as Typography4, message as message2 } from "antd";
5641
5650
 
5642
5651
  // packages/sdk/src/components/core/processApi.ts
@@ -5681,7 +5690,7 @@ async function getInitiatorSelectCandidates(request, params) {
5681
5690
  }
5682
5691
 
5683
5692
  // packages/sdk/src/components/fields/shared/UserPicker.tsx
5684
- import { useCallback as useCallback6, useEffect as useEffect8, useMemo as useMemo10, useState as useState9 } from "react";
5693
+ import { useCallback as useCallback6, useEffect as useEffect8, useMemo as useMemo11, useState as useState9 } from "react";
5685
5694
  import {
5686
5695
  Avatar,
5687
5696
  Button as Button6,
@@ -5700,7 +5709,7 @@ import { SearchOutlined, TeamOutlined, UserOutlined as UserOutlined3 } from "@an
5700
5709
  import * as MobileAntd from "antd-mobile";
5701
5710
 
5702
5711
  // packages/sdk/src/components/fields/shared/useLazyDepartmentTree.ts
5703
- import { useCallback as useCallback5, useEffect as useEffect7, useMemo as useMemo9, useRef as useRef3, useState as useState8 } from "react";
5712
+ import { useCallback as useCallback5, useEffect as useEffect7, useMemo as useMemo10, useRef as useRef3, useState as useState8 } from "react";
5704
5713
  var toLazyNode = (node) => {
5705
5714
  const normalized = normalizeDepartmentNode(node);
5706
5715
  const id = getDepartmentId(normalized);
@@ -5810,7 +5819,7 @@ function useLazyDepartmentTree(api, configuredTreeData) {
5810
5819
  },
5811
5820
  [api, setTreeData]
5812
5821
  );
5813
- const indexes = useMemo9(() => buildIndexes(treeData), [treeData]);
5822
+ const indexes = useMemo10(() => buildIndexes(treeData), [treeData]);
5814
5823
  useEffect7(() => {
5815
5824
  void loadRootDepartments();
5816
5825
  }, [loadRootDepartments]);
@@ -5871,7 +5880,7 @@ function UserPickerPanel({
5871
5880
  const selectedIds = selected.map(getUserId);
5872
5881
  const MobileSearchBar = getMobileComponent("SearchBar");
5873
5882
  const activeMemberKeyword = (mobile ? mobileKeyword : memberKeyword).trim();
5874
- const staticUsers = useMemo10(() => normalizeUsers(dataSource), [dataSource]);
5883
+ const staticUsers = useMemo11(() => normalizeUsers(dataSource), [dataSource]);
5875
5884
  const hasStaticUserSource = staticUsers.length > 0;
5876
5885
  useEffect8(() => {
5877
5886
  if (mobile) return;
@@ -5964,7 +5973,7 @@ function UserPickerPanel({
5964
5973
  memberReloadKey,
5965
5974
  staticUsers
5966
5975
  ]);
5967
- const currentPath = useMemo10(() => {
5976
+ const currentPath = useMemo11(() => {
5968
5977
  if (!currentDeptId) return [];
5969
5978
  const path = [];
5970
5979
  let cursor = currentDeptId;
@@ -5976,7 +5985,7 @@ function UserPickerPanel({
5976
5985
  }
5977
5986
  return path;
5978
5987
  }, [currentDeptId, nodeMap, parentMap]);
5979
- const mobileDepartments = useMemo10(() => {
5988
+ const mobileDepartments = useMemo11(() => {
5980
5989
  const keyword = mobileKeyword.trim().toLowerCase();
5981
5990
  if (keyword) {
5982
5991
  return flatNodes.filter((item) => item.name.toLowerCase().includes(keyword)).map((item) => item.node);
@@ -6241,7 +6250,7 @@ var RequirementSelect = ({
6241
6250
  onChange
6242
6251
  }) => {
6243
6252
  const [pickerOpen, setPickerOpen] = useState10(false);
6244
- const initialCandidates = useMemo11(
6253
+ const initialCandidates = useMemo12(
6245
6254
  () => (requirement.candidateUsers || []).map(normalizeCandidate).filter(Boolean),
6246
6255
  [requirement.candidateUsers]
6247
6256
  );
@@ -6295,7 +6304,7 @@ var RequirementSelect = ({
6295
6304
  void loadCandidates();
6296
6305
  }
6297
6306
  }, [appType, formUuid, loadCandidates, open, requirement.nodeId, requirement.scope]);
6298
- const options = useMemo11(
6307
+ const options = useMemo12(
6299
6308
  () => optionsSource.map((user) => ({
6300
6309
  value: user.id,
6301
6310
  label: getUserLabel(user)
@@ -6733,7 +6742,7 @@ var ProcessActionBar = ({
6733
6742
  }
6734
6743
  void actions.executeOperation(operation);
6735
6744
  };
6736
- const actionConfigs = useMemo12(
6745
+ const actionConfigs = useMemo13(
6737
6746
  () => operations.map((operation) => ({
6738
6747
  key: operation.key,
6739
6748
  label: operation.label || operation.key,
@@ -6852,7 +6861,7 @@ import {
6852
6861
  useCallback as useCallback10,
6853
6862
  useContext as useContext2,
6854
6863
  useEffect as useEffect12,
6855
- useMemo as useMemo14,
6864
+ useMemo as useMemo15,
6856
6865
  useRef as useRef6,
6857
6866
  useState as useState13
6858
6867
  } from "react";
@@ -7083,7 +7092,7 @@ var createBrowserPageContext = (bootstrap, options = {}) => {
7083
7092
  import {
7084
7093
  useCallback as useCallback9,
7085
7094
  useEffect as useEffect11,
7086
- useMemo as useMemo13,
7095
+ useMemo as useMemo14,
7087
7096
  useState as useState12
7088
7097
  } from "react";
7089
7098
  import {
@@ -7285,7 +7294,7 @@ var getCurrentHref2 = () => typeof window === "undefined" ? "" : window.location
7285
7294
  import { Fragment as Fragment5, jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
7286
7295
  var useAuth = (options = {}) => {
7287
7296
  const runtime = useOpenXiangda();
7288
- const client = useMemo13(
7297
+ const client = useMemo14(
7289
7298
  () => createAuthClient({
7290
7299
  appType: options.appType || runtime.appType,
7291
7300
  servicePrefix: options.servicePrefix || runtime.servicePrefix,
@@ -7300,7 +7309,7 @@ var useAuth = (options = {}) => {
7300
7309
  runtime.servicePrefix
7301
7310
  ]
7302
7311
  );
7303
- return useMemo13(
7312
+ return useMemo14(
7304
7313
  () => ({
7305
7314
  client,
7306
7315
  getMethods: client.getMethods,
@@ -7400,7 +7409,7 @@ var LoginPage = ({
7400
7409
  const ssoMethod = findMethod(methods, "sso");
7401
7410
  const guestMethod = findMethod(methods, "guest");
7402
7411
  const allowRegister = methodsState.data?.registration?.mode !== "reject";
7403
- const tabItems = useMemo13(() => {
7412
+ const tabItems = useMemo14(() => {
7404
7413
  const items = [];
7405
7414
  if (passwordMethod) {
7406
7415
  items.push({
@@ -7866,8 +7875,8 @@ var OpenXiangdaProvider = ({
7866
7875
  fetchImpl,
7867
7876
  children
7868
7877
  }) => {
7869
- const resolvedFetch = useMemo14(() => createBoundFetch(fetchImpl), [fetchImpl]);
7870
- const resolvedAppType = useMemo14(
7878
+ const resolvedFetch = useMemo15(() => createBoundFetch(fetchImpl), [fetchImpl]);
7879
+ const resolvedAppType = useMemo15(
7871
7880
  () => appType || resolveAppTypeFromLocation(),
7872
7881
  [appType]
7873
7882
  );
@@ -7981,7 +7990,7 @@ var OpenXiangdaProvider = ({
7981
7990
  }
7982
7991
  return refreshRequestRef.current;
7983
7992
  }, [applyAccessToken, resolvedAppType, resolvedFetch, servicePrefix]);
7984
- const authorizedFetch = useMemo14(
7993
+ const authorizedFetch = useMemo15(
7985
7994
  () => createAuthorizedFetch({
7986
7995
  appType: resolvedAppType,
7987
7996
  baseFetch: resolvedFetch,
@@ -8069,7 +8078,7 @@ var OpenXiangdaProvider = ({
8069
8078
  useEffect12(() => {
8070
8079
  void reload();
8071
8080
  }, [reload]);
8072
- const value = useMemo14(
8081
+ const value = useMemo15(
8073
8082
  () => ({
8074
8083
  ...state,
8075
8084
  appType: resolvedAppType,
@@ -8112,7 +8121,7 @@ var OpenXiangdaPageProvider = ({
8112
8121
  navigation
8113
8122
  }) => {
8114
8123
  const runtime = useOpenXiangda();
8115
- const context = useMemo14(() => {
8124
+ const context = useMemo15(() => {
8116
8125
  const bootstrap = runtime.data;
8117
8126
  const app = toRuntimeRecord(bootstrap?.app);
8118
8127
  const user = toRuntimeRecord(bootstrap?.user);
@@ -8438,7 +8447,7 @@ var useRuntimeAuth = () => {
8438
8447
  },
8439
8448
  [logout, redirectToLogin]
8440
8449
  );
8441
- return useMemo14(
8450
+ return useMemo15(
8442
8451
  () => ({
8443
8452
  logout,
8444
8453
  logoutAndRedirect,
@@ -8808,7 +8817,7 @@ var resolveAppTypeFromLocation = () => {
8808
8817
  };
8809
8818
 
8810
8819
  // packages/sdk/src/runtime/react/publicAccess.tsx
8811
- import { useCallback as useCallback11, useEffect as useEffect13, useMemo as useMemo15, useRef as useRef7, useState as useState14 } from "react";
8820
+ import { useCallback as useCallback11, useEffect as useEffect13, useMemo as useMemo16, useRef as useRef7, useState as useState14 } from "react";
8812
8821
 
8813
8822
  // packages/sdk/src/runtime/core/publicAccess.ts
8814
8823
  var PublicAccessClientError = class extends Error {
@@ -8947,8 +8956,8 @@ var usePublicAccess = (options = {}) => {
8947
8956
  const activeSessionRef = useRef7(null);
8948
8957
  const mountedRef = useRef7(true);
8949
8958
  const sessionInputKey = JSON.stringify(sessionInput);
8950
- const stableSessionInput = useMemo15(() => sessionInput, [sessionInputKey]);
8951
- const client = useMemo15(
8959
+ const stableSessionInput = useMemo16(() => sessionInput, [sessionInputKey]);
8960
+ const client = useMemo16(
8952
8961
  () => createPublicAccessClient({
8953
8962
  appType,
8954
8963
  servicePrefix,
@@ -9063,6 +9072,7 @@ export {
9063
9072
  PublicAccessGate,
9064
9073
  RuntimeAuthGuard,
9065
9074
  createAuthClient,
9075
+ createPageFormRuntimeApi,
9066
9076
  createPageSdk,
9067
9077
  createPublicAccessClient,
9068
9078
  createReactPage,
@@ -9083,6 +9093,7 @@ export {
9083
9093
  useNavigation,
9084
9094
  useOpenXiangda,
9085
9095
  usePageContext,
9096
+ usePageFormRuntimeApi,
9086
9097
  usePageProps,
9087
9098
  usePageRoute,
9088
9099
  usePageSdk,