2026-07-17 13:50:30 +08:00
|
|
|
export { XuqmSDK } from './sdk'
|
|
|
|
|
export type { XuqmInitOptions, XuqmConfig, XuqmLoginOptions, XuqmUserInfo } from './config'
|
|
|
|
|
export { getConfig, isInitialized, getUserId, getUserInfo } from './config'
|
2026-05-22 17:57:01 +08:00
|
|
|
export { awaitInitialization } from './sdk'
|
2026-07-17 13:50:30 +08:00
|
|
|
export { apiRequest, configureHttp } from './http'
|
|
|
|
|
export { decryptConfigFile, decryptXuqmFile, hmacSha256Base64Url, sha256Hex } from './crypto'
|
|
|
|
|
export type { DecryptedConfig, XuqmEncryptedFileMagic } from './crypto'
|
2026-04-29 15:46:40 +08:00
|
|
|
export { DEFAULT_TENANT_PLATFORM_URL, DEFAULT_IM_WS_URL } from './constants'
|
2026-04-25 16:41:19 +08:00
|
|
|
export { getDeviceId, getDeviceInfo, detectPushVendor } from './device'
|
|
|
|
|
export type { DeviceInfo, PushVendor } from './device'
|
2026-07-18 06:59:57 +08:00
|
|
|
export {
|
|
|
|
|
expirationStatus,
|
|
|
|
|
formatDateTime,
|
|
|
|
|
formatNumericDateTime,
|
|
|
|
|
millisecondsUntil,
|
|
|
|
|
toTimestamp,
|
|
|
|
|
} from './date'
|
|
|
|
|
export type { DateInput, ExpirationStatus, NumericDateTimeFormatOptions } from './date'
|
2026-07-17 13:50:30 +08:00
|
|
|
export {
|
|
|
|
|
deleteFile,
|
|
|
|
|
downloadFileToPath,
|
|
|
|
|
ensureDirectory,
|
|
|
|
|
fileExists,
|
|
|
|
|
getFileDirectories,
|
|
|
|
|
inferMimeType,
|
|
|
|
|
openLocalFile,
|
|
|
|
|
readFileAsBase64,
|
|
|
|
|
registerAndroidDownloadedFile,
|
|
|
|
|
resolveAvailableFilePath,
|
|
|
|
|
writeBase64File,
|
|
|
|
|
} from './file'
|
|
|
|
|
export type { FileConflictPolicy, FileDownloadTask, FileTransferProgress } from './file'
|
|
|
|
|
export {
|
|
|
|
|
fileExtension,
|
|
|
|
|
fileNameFromUrl,
|
|
|
|
|
parseContentDispositionFileName,
|
|
|
|
|
sanitizeFileName,
|
|
|
|
|
} from './fileName'
|
|
|
|
|
export { downloadBytes, downloadText, DownloadError } from './download'
|
|
|
|
|
export type { DownloadOptions, DownloadProgress } from './download'
|
|
|
|
|
export {
|
|
|
|
|
compareVersions,
|
|
|
|
|
compatibleMajorRange,
|
|
|
|
|
isVersionUpgrade,
|
|
|
|
|
normalizeVersion,
|
|
|
|
|
satisfiesVersion,
|
|
|
|
|
} from './version'
|
2026-04-25 16:41:19 +08:00
|
|
|
export { ScaledImage } from './components/ScaledImage'
|
2026-05-07 19:39:41 +08:00
|
|
|
export {
|
|
|
|
|
XWebViewControl,
|
|
|
|
|
getXWebViewConfig,
|
|
|
|
|
openXWebView,
|
|
|
|
|
setXWebViewController,
|
2026-06-16 12:01:44 +08:00
|
|
|
setXWebViewNavigationRef,
|
2026-06-16 12:10:28 +08:00
|
|
|
setXWebViewScanQRCodeHandler,
|
2026-06-16 12:01:44 +08:00
|
|
|
processJSBridgeMessage,
|
2026-05-07 19:39:41 +08:00
|
|
|
} from './xwebview/XWebViewBridge'
|
2026-06-16 12:10:28 +08:00
|
|
|
export type { XWebViewNavigationRef, ScanQRCodeHandler } from './xwebview/XWebViewBridge'
|
2026-05-07 19:39:41 +08:00
|
|
|
export type {
|
|
|
|
|
XWebViewClickMenu,
|
|
|
|
|
XWebViewConfig,
|
|
|
|
|
XWebViewControllerAPI,
|
2026-07-18 06:59:57 +08:00
|
|
|
XWebViewNavigationState,
|
2026-05-07 19:39:41 +08:00
|
|
|
XWebViewDownloadDecision,
|
2026-06-25 17:50:29 +08:00
|
|
|
XWebViewDownloadDestination,
|
2026-05-07 19:39:41 +08:00
|
|
|
XWebViewDownloadProgress,
|
|
|
|
|
XWebViewDownloadRequest,
|
|
|
|
|
XWebViewDownloadResult,
|
|
|
|
|
XWebViewMessageEvent,
|
|
|
|
|
XWebViewPermissionRequest,
|
|
|
|
|
} from './xwebview/types'
|
2026-06-16 12:01:44 +08:00
|
|
|
|
|
|
|
|
// api/ 子模块
|
|
|
|
|
export {
|
|
|
|
|
RequestError,
|
|
|
|
|
setGlobalApiErrorHandler,
|
|
|
|
|
useRequest,
|
|
|
|
|
useApi,
|
|
|
|
|
usePageApi,
|
2026-06-20 18:26:45 +08:00
|
|
|
ValidationError,
|
2026-06-16 12:01:44 +08:00
|
|
|
} from './api'
|
|
|
|
|
export type { RequestOptions as UseRequestOptions, ApiMethod } from './api'
|
|
|
|
|
export type { PageOptions } from './api'
|
|
|
|
|
export type { AxiosRequestConfig } from 'axios'
|
|
|
|
|
|
|
|
|
|
// ui/ 子模块
|
|
|
|
|
export { showToast, showAlert, showConfirm, configureToast } from './ui'
|