zcw-shared 2.24.0 → 2.25.0
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/dist/constants/aiChatSuggestions.d.ts +3 -0
- package/dist/constants/aiChatSuggestions.js +52 -0
- package/dist/constants/aiChatSuggestions.js.map +1 -0
- package/dist/constants/chatCommunityMedia.d.ts +2 -0
- package/dist/constants/chatCommunityMedia.js +3 -0
- package/dist/constants/chatCommunityMedia.js.map +1 -0
- package/dist/constants/chatConversationBackground.d.ts +10 -0
- package/dist/constants/chatConversationBackground.js +41 -0
- package/dist/constants/chatConversationBackground.js.map +1 -0
- package/dist/constants/chatDownloadDirectory.d.ts +1 -0
- package/dist/constants/chatDownloadDirectory.js +2 -0
- package/dist/constants/chatDownloadDirectory.js.map +1 -0
- package/dist/constants/chatFileMessageLocalPath.d.ts +1 -0
- package/dist/constants/chatFileMessageLocalPath.js +2 -0
- package/dist/constants/chatFileMessageLocalPath.js.map +1 -0
- package/dist/constants/chatLayout.d.ts +6 -0
- package/dist/constants/chatLayout.js +14 -0
- package/dist/constants/chatLayout.js.map +1 -0
- package/dist/constants/imStorage.d.ts +1 -0
- package/dist/constants/imStorage.js +2 -0
- package/dist/constants/imStorage.js.map +1 -0
- package/dist/functions/ai/aiAgentToolTimeline.d.ts +16 -0
- package/dist/functions/ai/aiAgentToolTimeline.js +18 -0
- package/dist/functions/ai/aiAgentToolTimeline.js.map +1 -0
- package/dist/functions/ai/aiChatSessionListDom.d.ts +4 -0
- package/dist/functions/ai/aiChatSessionListDom.js +32 -0
- package/dist/functions/ai/aiChatSessionListDom.js.map +1 -0
- package/dist/functions/ai/aiChatSessionOps.d.ts +25 -0
- package/dist/functions/ai/aiChatSessionOps.js +36 -0
- package/dist/functions/ai/aiChatSessionOps.js.map +1 -0
- package/dist/functions/ai/aiChatSessionPins.d.ts +14 -0
- package/dist/functions/ai/aiChatSessionPins.js +39 -0
- package/dist/functions/ai/aiChatSessionPins.js.map +1 -0
- package/dist/functions/ai/aiReplyStreamDisplay.d.ts +27 -0
- package/dist/functions/ai/aiReplyStreamDisplay.js +188 -0
- package/dist/functions/ai/aiReplyStreamDisplay.js.map +1 -0
- package/dist/functions/ai/fetchAiChatSuggestions.d.ts +2 -0
- package/dist/functions/ai/fetchAiChatSuggestions.js +16 -0
- package/dist/functions/ai/fetchAiChatSuggestions.js.map +1 -0
- package/dist/functions/ai/mapAiChatMessagesToImChat.d.ts +7 -0
- package/dist/functions/ai/mapAiChatMessagesToImChat.js +22 -0
- package/dist/functions/ai/mapAiChatMessagesToImChat.js.map +1 -0
- package/dist/functions/array/filterListExcludingIds.d.ts +4 -0
- package/dist/functions/array/filterListExcludingIds.js +8 -0
- package/dist/functions/array/filterListExcludingIds.js.map +1 -0
- package/dist/functions/auth/createAuthClaimsResolver.d.ts +4 -0
- package/dist/functions/auth/createAuthClaimsResolver.js +8 -0
- package/dist/functions/auth/createAuthClaimsResolver.js.map +1 -0
- package/dist/functions/auth/jwtAccessTokenClaims.d.ts +5 -0
- package/dist/functions/auth/jwtAccessTokenClaims.js +62 -0
- package/dist/functions/auth/jwtAccessTokenClaims.js.map +1 -0
- package/dist/functions/binary/arrayBufferToBase64.d.ts +1 -0
- package/dist/functions/binary/arrayBufferToBase64.js +13 -0
- package/dist/functions/binary/arrayBufferToBase64.js.map +1 -0
- package/dist/functions/binary/decodeBase64StringToArrayBuffer.d.ts +1 -0
- package/dist/functions/binary/decodeBase64StringToArrayBuffer.js +12 -0
- package/dist/functions/binary/decodeBase64StringToArrayBuffer.js.map +1 -0
- package/dist/functions/browser/isNonNativeBrowserShell.d.ts +7 -0
- package/dist/functions/browser/isNonNativeBrowserShell.js +18 -0
- package/dist/functions/browser/isNonNativeBrowserShell.js.map +1 -0
- package/dist/functions/browser/readBrowserDetectDeps.d.ts +2 -0
- package/dist/functions/browser/readBrowserDetectDeps.js +12 -0
- package/dist/functions/browser/readBrowserDetectDeps.js.map +1 -0
- package/dist/functions/browser/readBrowserImageCompressDeps.d.ts +2 -0
- package/dist/functions/browser/readBrowserImageCompressDeps.js +16 -0
- package/dist/functions/browser/readBrowserImageCompressDeps.js.map +1 -0
- package/dist/functions/browser/readBrowserOsInfo.d.ts +3 -0
- package/dist/functions/browser/readBrowserOsInfo.js +9 -0
- package/dist/functions/browser/readBrowserOsInfo.js.map +1 -0
- package/dist/functions/browser/requireBrowserLocalStorage.d.ts +2 -0
- package/dist/functions/browser/requireBrowserLocalStorage.js +8 -0
- package/dist/functions/browser/requireBrowserLocalStorage.js.map +1 -0
- package/dist/functions/build/readCapacitorShellExecBuildFlag.d.ts +1 -0
- package/dist/functions/build/readCapacitorShellExecBuildFlag.js +5 -0
- package/dist/functions/build/readCapacitorShellExecBuildFlag.js.map +1 -0
- package/dist/functions/build/readNativeShellBuildFlag.d.ts +1 -0
- package/dist/functions/build/readNativeShellBuildFlag.js +5 -0
- package/dist/functions/build/readNativeShellBuildFlag.js.map +1 -0
- package/dist/functions/build/readTruthyViteEnvFlag.d.ts +1 -0
- package/dist/functions/build/readTruthyViteEnvFlag.js +4 -0
- package/dist/functions/build/readTruthyViteEnvFlag.js.map +1 -0
- package/dist/functions/capacitor/resolveCapacitorSystemBarsStyle.d.ts +2 -0
- package/dist/functions/capacitor/resolveCapacitorSystemBarsStyle.js +4 -0
- package/dist/functions/capacitor/resolveCapacitorSystemBarsStyle.js.map +1 -0
- package/dist/functions/capacitor/shouldAttemptCapacitorShellExecLoad.d.ts +5 -0
- package/dist/functions/capacitor/shouldAttemptCapacitorShellExecLoad.js +10 -0
- package/dist/functions/capacitor/shouldAttemptCapacitorShellExecLoad.js.map +1 -0
- package/dist/functions/chat/chatAppearancePrefs.d.ts +8 -0
- package/dist/functions/chat/chatAppearancePrefs.js +31 -0
- package/dist/functions/chat/chatAppearancePrefs.js.map +1 -0
- package/dist/functions/chat/chatDownloadCompleteToastDsl.d.ts +10 -0
- package/dist/functions/chat/chatDownloadCompleteToastDsl.js +12 -0
- package/dist/functions/chat/chatDownloadCompleteToastDsl.js.map +1 -0
- package/dist/functions/chat/chatDownloadDirectoryPref.d.ts +1 -0
- package/dist/functions/chat/chatDownloadDirectoryPref.js +5 -0
- package/dist/functions/chat/chatDownloadDirectoryPref.js.map +1 -0
- package/dist/functions/chat/chatFileMessageLocalPathStorage.d.ts +8 -0
- package/dist/functions/chat/chatFileMessageLocalPathStorage.js +52 -0
- package/dist/functions/chat/chatFileMessageLocalPathStorage.js.map +1 -0
- package/dist/functions/chat/chatPrefsLocalStorage.d.ts +15 -0
- package/dist/functions/chat/chatPrefsLocalStorage.js +34 -0
- package/dist/functions/chat/chatPrefsLocalStorage.js.map +1 -0
- package/dist/functions/chat/createBrowserChatAppearanceModeAccess.d.ts +5 -0
- package/dist/functions/chat/createBrowserChatAppearanceModeAccess.js +19 -0
- package/dist/functions/chat/createBrowserChatAppearanceModeAccess.js.map +1 -0
- package/dist/functions/chat/createBrowserChatDownloadDirectoryPrefAccess.d.ts +4 -0
- package/dist/functions/chat/createBrowserChatDownloadDirectoryPrefAccess.js +20 -0
- package/dist/functions/chat/createBrowserChatDownloadDirectoryPrefAccess.js.map +1 -0
- package/dist/functions/chat/createBrowserChatFileMessageLocalPathAccess.d.ts +5 -0
- package/dist/functions/chat/createBrowserChatFileMessageLocalPathAccess.js +25 -0
- package/dist/functions/chat/createBrowserChatFileMessageLocalPathAccess.js.map +1 -0
- package/dist/functions/chat/createBrowserChatRootFontSizeAccess.d.ts +6 -0
- package/dist/functions/chat/createBrowserChatRootFontSizeAccess.js +29 -0
- package/dist/functions/chat/createBrowserChatRootFontSizeAccess.js.map +1 -0
- package/dist/functions/cloudDisk/buildCloudDiskFileActionSheetSpecs.d.ts +10 -0
- package/dist/functions/cloudDisk/buildCloudDiskFileActionSheetSpecs.js +12 -0
- package/dist/functions/cloudDisk/buildCloudDiskFileActionSheetSpecs.js.map +1 -0
- package/dist/functions/cloudDisk/buildCloudDiskListTabResult.d.ts +6 -0
- package/dist/functions/cloudDisk/buildCloudDiskListTabResult.js +27 -0
- package/dist/functions/cloudDisk/buildCloudDiskListTabResult.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskApiPaths.d.ts +13 -0
- package/dist/functions/cloudDisk/cloudDiskApiPaths.js +41 -0
- package/dist/functions/cloudDisk/cloudDiskApiPaths.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskApiRequestBodies.d.ts +26 -0
- package/dist/functions/cloudDisk/cloudDiskApiRequestBodies.js +26 -0
- package/dist/functions/cloudDisk/cloudDiskApiRequestBodies.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskApiResponse.d.ts +9 -0
- package/dist/functions/cloudDisk/cloudDiskApiResponse.js +54 -0
- package/dist/functions/cloudDisk/cloudDiskApiResponse.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskAsideNav.d.ts +18 -0
- package/dist/functions/cloudDisk/cloudDiskAsideNav.js +42 -0
- package/dist/functions/cloudDisk/cloudDiskAsideNav.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskBreadcrumbNav.d.ts +19 -0
- package/dist/functions/cloudDisk/cloudDiskBreadcrumbNav.js +37 -0
- package/dist/functions/cloudDisk/cloudDiskBreadcrumbNav.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskDirectUpload.d.ts +30 -0
- package/dist/functions/cloudDisk/cloudDiskDirectUpload.js +41 -0
- package/dist/functions/cloudDisk/cloudDiskDirectUpload.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskFilePreviewUi.d.ts +20 -0
- package/dist/functions/cloudDisk/cloudDiskFilePreviewUi.js +42 -0
- package/dist/functions/cloudDisk/cloudDiskFilePreviewUi.js.map +1 -1
- package/dist/functions/cloudDisk/cloudDiskListFilesQuery.d.ts +11 -0
- package/dist/functions/cloudDisk/cloudDiskListFilesQuery.js +35 -0
- package/dist/functions/cloudDisk/cloudDiskListFilesQuery.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskListLayoutUi.d.ts +30 -0
- package/dist/functions/cloudDisk/cloudDiskListLayoutUi.js +22 -0
- package/dist/functions/cloudDisk/cloudDiskListLayoutUi.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskNodeDragDataTransfer.d.ts +5 -0
- package/dist/functions/cloudDisk/cloudDiskNodeDragDataTransfer.js +17 -0
- package/dist/functions/cloudDisk/cloudDiskNodeDragDataTransfer.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskPrivacyLocalStorage.d.ts +9 -0
- package/dist/functions/cloudDisk/cloudDiskPrivacyLocalStorage.js +58 -0
- package/dist/functions/cloudDisk/cloudDiskPrivacyLocalStorage.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskQuickAccessStorage.d.ts +13 -0
- package/dist/functions/cloudDisk/cloudDiskQuickAccessStorage.js +37 -0
- package/dist/functions/cloudDisk/cloudDiskQuickAccessStorage.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskSelectionFeedback.d.ts +6 -0
- package/dist/functions/cloudDisk/cloudDiskSelectionFeedback.js +27 -0
- package/dist/functions/cloudDisk/cloudDiskSelectionFeedback.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskShellNav.d.ts +19 -0
- package/dist/functions/cloudDisk/cloudDiskShellNav.js +47 -0
- package/dist/functions/cloudDisk/cloudDiskShellNav.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskUniappFileOpenStrategy.d.ts +3 -0
- package/dist/functions/cloudDisk/cloudDiskUniappFileOpenStrategy.js +15 -0
- package/dist/functions/cloudDisk/cloudDiskUniappFileOpenStrategy.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskUniappUi.d.ts +47 -0
- package/dist/functions/cloudDisk/cloudDiskUniappUi.js +57 -0
- package/dist/functions/cloudDisk/cloudDiskUniappUi.js.map +1 -0
- package/dist/functions/cloudDisk/cloudDiskUploadTaskUi.d.ts +2 -0
- package/dist/functions/cloudDisk/cloudDiskUploadTaskUi.js +12 -0
- package/dist/functions/cloudDisk/cloudDiskUploadTaskUi.js.map +1 -1
- package/dist/functions/cloudDisk/collectElementIdsInContentLassoBox.d.ts +19 -0
- package/dist/functions/cloudDisk/collectElementIdsInContentLassoBox.js +35 -0
- package/dist/functions/cloudDisk/collectElementIdsInContentLassoBox.js.map +1 -0
- package/dist/functions/cloudDisk/createBrowserCloudDiskPrivacyStorageAccess.d.ts +8 -0
- package/dist/functions/cloudDisk/createBrowserCloudDiskPrivacyStorageAccess.js +37 -0
- package/dist/functions/cloudDisk/createBrowserCloudDiskPrivacyStorageAccess.js.map +1 -0
- package/dist/functions/cloudDisk/createBrowserCloudDiskQuickAccessStorageAccess.d.ts +6 -0
- package/dist/functions/cloudDisk/createBrowserCloudDiskQuickAccessStorageAccess.js +21 -0
- package/dist/functions/cloudDisk/createBrowserCloudDiskQuickAccessStorageAccess.js.map +1 -0
- package/dist/functions/cloudDisk/executeCloudDiskDirectUpload.d.ts +22 -0
- package/dist/functions/cloudDisk/executeCloudDiskDirectUpload.js +59 -0
- package/dist/functions/cloudDisk/executeCloudDiskDirectUpload.js.map +1 -0
- package/dist/functions/cloudDisk/executeCloudDiskFileDirectUpload.d.ts +30 -0
- package/dist/functions/cloudDisk/executeCloudDiskFileDirectUpload.js +27 -0
- package/dist/functions/cloudDisk/executeCloudDiskFileDirectUpload.js.map +1 -0
- package/dist/functions/cloudDisk/extractCloudDiskPrivateFolderData.d.ts +3 -0
- package/dist/functions/cloudDisk/extractCloudDiskPrivateFolderData.js +17 -0
- package/dist/functions/cloudDisk/extractCloudDiskPrivateFolderData.js.map +1 -0
- package/dist/functions/cloudDisk/filterCloudDiskMoveTargetFolders.d.ts +10 -0
- package/dist/functions/cloudDisk/filterCloudDiskMoveTargetFolders.js +12 -0
- package/dist/functions/cloudDisk/filterCloudDiskMoveTargetFolders.js.map +1 -0
- package/dist/functions/cloudDisk/needsCloudDiskPrivateFolderUnlock.d.ts +2 -0
- package/dist/functions/cloudDisk/needsCloudDiskPrivateFolderUnlock.js +8 -0
- package/dist/functions/cloudDisk/needsCloudDiskPrivateFolderUnlock.js.map +1 -0
- package/dist/functions/cloudDisk/planCloudDiskBatchDownload.d.ts +10 -0
- package/dist/functions/cloudDisk/planCloudDiskBatchDownload.js +18 -0
- package/dist/functions/cloudDisk/planCloudDiskBatchDownload.js.map +1 -0
- package/dist/functions/cloudDisk/resolveCloudDiskNodeIdFromPointerEvent.d.ts +7 -0
- package/dist/functions/cloudDisk/resolveCloudDiskNodeIdFromPointerEvent.js +20 -0
- package/dist/functions/cloudDisk/resolveCloudDiskNodeIdFromPointerEvent.js.map +1 -0
- package/dist/functions/cloudDisk/sortCloudDiskNodes.d.ts +4 -0
- package/dist/functions/cloudDisk/sortCloudDiskNodes.js +22 -0
- package/dist/functions/cloudDisk/sortCloudDiskNodes.js.map +1 -0
- package/dist/functions/dom/domSelectionInElement.d.ts +4 -0
- package/dist/functions/dom/domSelectionInElement.js +39 -0
- package/dist/functions/dom/domSelectionInElement.js.map +1 -0
- package/dist/functions/dom/executeCopyTextToClipboard.d.ts +18 -0
- package/dist/functions/dom/executeCopyTextToClipboard.js +28 -0
- package/dist/functions/dom/executeCopyTextToClipboard.js.map +1 -0
- package/dist/functions/dom/fetchBlobFromUrl.d.ts +6 -0
- package/dist/functions/dom/fetchBlobFromUrl.js +27 -0
- package/dist/functions/dom/fetchBlobFromUrl.js.map +1 -0
- package/dist/functions/dom/imageBlobToPng.d.ts +6 -0
- package/dist/functions/dom/imageBlobToPng.js +68 -0
- package/dist/functions/dom/imageBlobToPng.js.map +1 -0
- package/dist/functions/dom/resolveChatMessageImageFromContextMenu.d.ts +3 -0
- package/dist/functions/dom/resolveChatMessageImageFromContextMenu.js +17 -0
- package/dist/functions/dom/resolveChatMessageImageFromContextMenu.js.map +1 -0
- package/dist/functions/dom/writeImageBlobToClipboard.d.ts +7 -0
- package/dist/functions/dom/writeImageBlobToClipboard.js +40 -0
- package/dist/functions/dom/writeImageBlobToClipboard.js.map +1 -0
- package/dist/functions/download/adaptDownloadDispatcherForUrlFeedback.d.ts +9 -0
- package/dist/functions/download/adaptDownloadDispatcherForUrlFeedback.js +31 -0
- package/dist/functions/download/adaptDownloadDispatcherForUrlFeedback.js.map +1 -0
- package/dist/functions/download/buildCapacitorDownloadRelativePath.d.ts +1 -0
- package/dist/functions/download/buildCapacitorDownloadRelativePath.js +6 -0
- package/dist/functions/download/buildCapacitorDownloadRelativePath.js.map +1 -0
- package/dist/functions/download/canUseElectronHttpDownload.d.ts +5 -0
- package/dist/functions/download/canUseElectronHttpDownload.js +9 -0
- package/dist/functions/download/canUseElectronHttpDownload.js.map +1 -0
- package/dist/functions/download/chatFileMessageDownloadProgress.d.ts +14 -0
- package/dist/functions/download/chatFileMessageDownloadProgress.js +36 -0
- package/dist/functions/download/chatFileMessageDownloadProgress.js.map +1 -0
- package/dist/functions/download/chatInlineAttachmentDownloadProgress.d.ts +7 -0
- package/dist/functions/download/chatInlineAttachmentDownloadProgress.js +19 -0
- package/dist/functions/download/chatInlineAttachmentDownloadProgress.js.map +1 -0
- package/dist/functions/download/createBrowserDownloadDepsFromGlobalThis.d.ts +2 -0
- package/dist/functions/download/createBrowserDownloadDepsFromGlobalThis.js +31 -0
- package/dist/functions/download/createBrowserDownloadDepsFromGlobalThis.js.map +1 -0
- package/dist/functions/download/createEffectiveDownloadDirectoryResolver.d.ts +10 -0
- package/dist/functions/download/createEffectiveDownloadDirectoryResolver.js +30 -0
- package/dist/functions/download/createEffectiveDownloadDirectoryResolver.js.map +1 -0
- package/dist/functions/download/executeChatDownloadByUrl.d.ts +24 -0
- package/dist/functions/download/executeChatDownloadByUrl.js +42 -0
- package/dist/functions/download/executeChatDownloadByUrl.js.map +1 -0
- package/dist/functions/download/executeChatInlineAttachmentDownload.d.ts +23 -0
- package/dist/functions/download/executeChatInlineAttachmentDownload.js +54 -0
- package/dist/functions/download/executeChatInlineAttachmentDownload.js.map +1 -0
- package/dist/functions/download/executeDownloadInCapacitorAndroid.d.ts +26 -0
- package/dist/functions/download/executeDownloadInCapacitorAndroid.js +102 -0
- package/dist/functions/download/executeDownloadInCapacitorAndroid.js.map +1 -0
- package/dist/functions/download/executeDownloadInElectron.d.ts +20 -0
- package/dist/functions/download/executeDownloadInElectron.js +53 -0
- package/dist/functions/download/executeDownloadInElectron.js.map +1 -0
- package/dist/functions/download/executeDownloadUrlWithFeedback.d.ts +27 -0
- package/dist/functions/download/executeDownloadUrlWithFeedback.js +39 -0
- package/dist/functions/download/executeDownloadUrlWithFeedback.js.map +1 -0
- package/dist/functions/download/executeRevealChatLocalFile.d.ts +10 -0
- package/dist/functions/download/executeRevealChatLocalFile.js +24 -0
- package/dist/functions/download/executeRevealChatLocalFile.js.map +1 -0
- package/dist/functions/download/isHttpDownloadUrl.d.ts +1 -0
- package/dist/functions/download/isHttpDownloadUrl.js +5 -0
- package/dist/functions/download/isHttpDownloadUrl.js.map +1 -0
- package/dist/functions/download/mergeDownloadDirectoryPrefIntoOptions.d.ts +5 -0
- package/dist/functions/download/mergeDownloadDirectoryPrefIntoOptions.js +15 -0
- package/dist/functions/download/mergeDownloadDirectoryPrefIntoOptions.js.map +1 -0
- package/dist/functions/download/mergeElectronDefaultDownloadDirectoryOptions.d.ts +6 -0
- package/dist/functions/download/mergeElectronDefaultDownloadDirectoryOptions.js +18 -0
- package/dist/functions/download/mergeElectronDefaultDownloadDirectoryOptions.js.map +1 -0
- package/dist/functions/download/newDownloadId.d.ts +1 -0
- package/dist/functions/download/newDownloadId.js +6 -0
- package/dist/functions/download/newDownloadId.js.map +1 -0
- package/dist/functions/download/readElectronSystemDefaultDownloadDirectory.d.ts +4 -0
- package/dist/functions/download/readElectronSystemDefaultDownloadDirectory.js +9 -0
- package/dist/functions/download/readElectronSystemDefaultDownloadDirectory.js.map +1 -0
- package/dist/functions/download/shouldTrackChatFileMessageDownload.d.ts +7 -0
- package/dist/functions/download/shouldTrackChatFileMessageDownload.js +14 -0
- package/dist/functions/download/shouldTrackChatFileMessageDownload.js.map +1 -0
- package/dist/functions/download/shouldTrackChatInlineAttachmentDownload.d.ts +6 -0
- package/dist/functions/download/shouldTrackChatInlineAttachmentDownload.js +12 -0
- package/dist/functions/download/shouldTrackChatInlineAttachmentDownload.js.map +1 -0
- package/dist/functions/im/alignActiveImConversationSelection.d.ts +22 -0
- package/dist/functions/im/alignActiveImConversationSelection.js +66 -0
- package/dist/functions/im/alignActiveImConversationSelection.js.map +1 -0
- package/dist/functions/im/assignChatConversationToWindowLocation.d.ts +8 -0
- package/dist/functions/im/assignChatConversationToWindowLocation.js +18 -0
- package/dist/functions/im/assignChatConversationToWindowLocation.js.map +1 -0
- package/dist/functions/im/buildChatConversationBackgroundMediaBlobRecord.d.ts +12 -0
- package/dist/functions/im/buildChatConversationBackgroundMediaBlobRecord.js +20 -0
- package/dist/functions/im/buildChatConversationBackgroundMediaBlobRecord.js.map +1 -0
- package/dist/functions/im/buildConversationListAssemblyOpts.d.ts +10 -0
- package/dist/functions/im/buildConversationListAssemblyOpts.js +9 -0
- package/dist/functions/im/buildConversationListAssemblyOpts.js.map +1 -0
- package/dist/functions/im/buildConversationListUiContextFromDexieSidecars.d.ts +13 -0
- package/dist/functions/im/buildConversationListUiContextFromDexieSidecars.js +13 -0
- package/dist/functions/im/buildConversationListUiContextFromDexieSidecars.js.map +1 -0
- package/dist/functions/im/buildConversationTailReconcileUpdate.d.ts +5 -0
- package/dist/functions/im/buildConversationTailReconcileUpdate.js +18 -0
- package/dist/functions/im/buildConversationTailReconcileUpdate.js.map +1 -0
- package/dist/functions/im/buildFinalizedOutboundDraftMessage.d.ts +2 -0
- package/dist/functions/im/buildFinalizedOutboundDraftMessage.js +22 -0
- package/dist/functions/im/buildFinalizedOutboundDraftMessage.js.map +1 -0
- package/dist/functions/im/buildImOutboundFailurePatchWithRetry.d.ts +2 -0
- package/dist/functions/im/buildImOutboundFailurePatchWithRetry.js +21 -0
- package/dist/functions/im/buildImOutboundFailurePatchWithRetry.js.map +1 -0
- package/dist/functions/im/buildImOutboundSendPayload.d.ts +20 -0
- package/dist/functions/im/buildImOutboundSendPayload.js +16 -0
- package/dist/functions/im/buildImOutboundSendPayload.js.map +1 -0
- package/dist/functions/im/buildImOutboundSendingStatusPatch.d.ts +2 -0
- package/dist/functions/im/buildImOutboundSendingStatusPatch.js +13 -0
- package/dist/functions/im/buildImOutboundSendingStatusPatch.js.map +1 -0
- package/dist/functions/im/buildLocalMediaOutboundDraftMessage.d.ts +12 -0
- package/dist/functions/im/buildLocalMediaOutboundDraftMessage.js +26 -0
- package/dist/functions/im/buildLocalMediaOutboundDraftMessage.js.map +1 -0
- package/dist/functions/im/buildMediaOutboundRegisterMergedMessage.d.ts +9 -0
- package/dist/functions/im/buildMediaOutboundRegisterMergedMessage.js +19 -0
- package/dist/functions/im/buildMediaOutboundRegisterMergedMessage.js.map +1 -0
- package/dist/functions/im/buildMediaUploadFailurePatch.d.ts +6 -0
- package/dist/functions/im/buildMediaUploadFailurePatch.js +17 -0
- package/dist/functions/im/buildMediaUploadFailurePatch.js.map +1 -0
- package/dist/functions/im/buildMislabeledDeliveredMediaRepairPatch.d.ts +2 -0
- package/dist/functions/im/buildMislabeledDeliveredMediaRepairPatch.js +20 -0
- package/dist/functions/im/buildMislabeledDeliveredMediaRepairPatch.js.map +1 -0
- package/dist/functions/im/buildQueuedOutboundDraftImMessage.d.ts +11 -0
- package/dist/functions/im/buildQueuedOutboundDraftImMessage.js +21 -0
- package/dist/functions/im/buildQueuedOutboundDraftImMessage.js.map +1 -0
- package/dist/functions/im/buildRecentImMessagesWindow.d.ts +2 -0
- package/dist/functions/im/buildRecentImMessagesWindow.js +21 -0
- package/dist/functions/im/buildRecentImMessagesWindow.js.map +1 -0
- package/dist/functions/im/buildSelectConversationUiState.d.ts +9 -0
- package/dist/functions/im/buildSelectConversationUiState.js +13 -0
- package/dist/functions/im/buildSelectConversationUiState.js.map +1 -0
- package/dist/functions/im/canUserDeleteImChatMessage.d.ts +4 -0
- package/dist/functions/im/canUserDeleteImChatMessage.js +22 -0
- package/dist/functions/im/canUserDeleteImChatMessage.js.map +1 -0
- package/dist/functions/im/chatMessageBubbleDom.d.ts +11 -0
- package/dist/functions/im/chatMessageBubbleDom.js +56 -0
- package/dist/functions/im/chatMessageBubbleDom.js.map +1 -0
- package/dist/functions/im/chatMessageList.d.ts +3 -0
- package/dist/functions/im/chatMessageList.js +11 -0
- package/dist/functions/im/chatMessageList.js.map +1 -1
- package/dist/functions/im/collectImMessageRelatedUserIds.d.ts +2 -0
- package/dist/functions/im/collectImMessageRelatedUserIds.js +16 -0
- package/dist/functions/im/collectImMessageRelatedUserIds.js.map +1 -0
- package/dist/functions/im/collectServerPersistedMessageApiIdsForDelete.d.ts +2 -0
- package/dist/functions/im/collectServerPersistedMessageApiIdsForDelete.js +9 -0
- package/dist/functions/im/collectServerPersistedMessageApiIdsForDelete.js.map +1 -0
- package/dist/functions/im/computeConversationMessagesHasOlder.d.ts +7 -0
- package/dist/functions/im/computeConversationMessagesHasOlder.js +6 -0
- package/dist/functions/im/computeConversationMessagesHasOlder.js.map +1 -0
- package/dist/functions/im/computeIncomingMessageConversationUpdate.d.ts +12 -0
- package/dist/functions/im/computeIncomingMessageConversationUpdate.js +20 -0
- package/dist/functions/im/computeIncomingMessageConversationUpdate.js.map +1 -0
- package/dist/functions/im/copyUsingClonedRangesOrMessagePlainText.d.ts +10 -0
- package/dist/functions/im/copyUsingClonedRangesOrMessagePlainText.js +53 -0
- package/dist/functions/im/copyUsingClonedRangesOrMessagePlainText.js.map +1 -0
- package/dist/functions/im/createConversationOutboundSerialQueue.d.ts +11 -0
- package/dist/functions/im/createConversationOutboundSerialQueue.js +43 -0
- package/dist/functions/im/createConversationOutboundSerialQueue.js.map +1 -0
- package/dist/functions/im/createElectronTrayUnreadPusher.d.ts +6 -0
- package/dist/functions/im/createElectronTrayUnreadPusher.js +18 -0
- package/dist/functions/im/createElectronTrayUnreadPusher.js.map +1 -0
- package/dist/functions/im/createImConversationListUiBinder.d.ts +12 -0
- package/dist/functions/im/createImConversationListUiBinder.js +16 -0
- package/dist/functions/im/createImConversationListUiBinder.js.map +1 -0
- package/dist/functions/im/desktopImNotifyEnricherRegistry.d.ts +17 -0
- package/dist/functions/im/desktopImNotifyEnricherRegistry.js +36 -0
- package/dist/functions/im/desktopImNotifyEnricherRegistry.js.map +1 -0
- package/dist/functions/im/enrichImContactsPeerProfiles.d.ts +6 -0
- package/dist/functions/im/enrichImContactsPeerProfiles.js +15 -0
- package/dist/functions/im/enrichImContactsPeerProfiles.js.map +1 -0
- package/dist/functions/im/executeChatAttachmentPreviewDownloadAction.d.ts +22 -0
- package/dist/functions/im/executeChatAttachmentPreviewDownloadAction.js +29 -0
- package/dist/functions/im/executeChatAttachmentPreviewDownloadAction.js.map +1 -0
- package/dist/functions/im/executeChatImageGalleryMenuAction.d.ts +27 -0
- package/dist/functions/im/executeChatImageGalleryMenuAction.js +26 -0
- package/dist/functions/im/executeChatImageGalleryMenuAction.js.map +1 -0
- package/dist/functions/im/executeCopyChatMessageContent.d.ts +12 -0
- package/dist/functions/im/executeCopyChatMessageContent.js +42 -0
- package/dist/functions/im/executeCopyChatMessageContent.js.map +1 -0
- package/dist/functions/im/executeCopyChatMessageImageToClipboard.d.ts +9 -0
- package/dist/functions/im/executeCopyChatMessageImageToClipboard.js +9 -0
- package/dist/functions/im/executeCopyChatMessageImageToClipboard.js.map +1 -0
- package/dist/functions/im/executeDownloadChatMessageMedia.d.ts +5 -0
- package/dist/functions/im/executeDownloadChatMessageMedia.js +12 -0
- package/dist/functions/im/executeDownloadChatMessageMedia.js.map +1 -0
- package/dist/functions/im/executeLoadTrayUnreadTotalFromDexie.d.ts +10 -0
- package/dist/functions/im/executeLoadTrayUnreadTotalFromDexie.js +10 -0
- package/dist/functions/im/executeLoadTrayUnreadTotalFromDexie.js.map +1 -0
- package/dist/functions/im/executeOpenChatConversationWithPeer.d.ts +9 -0
- package/dist/functions/im/executeOpenChatConversationWithPeer.js +12 -0
- package/dist/functions/im/executeOpenChatConversationWithPeer.js.map +1 -0
- package/dist/functions/im/executeShowDesktopImNotification.d.ts +40 -0
- package/dist/functions/im/executeShowDesktopImNotification.js +49 -0
- package/dist/functions/im/executeShowDesktopImNotification.js.map +1 -0
- package/dist/functions/im/fetchChatMessageImageBlob.d.ts +12 -0
- package/dist/functions/im/fetchChatMessageImageBlob.js +40 -0
- package/dist/functions/im/fetchChatMessageImageBlob.js.map +1 -0
- package/dist/functions/im/imAiChatSessionTitle.d.ts +2 -0
- package/dist/functions/im/imAiChatSessionTitle.js +4 -0
- package/dist/functions/im/imAiChatSessionTitle.js.map +1 -1
- package/dist/functions/im/imAiStreamOutboundQueue.d.ts +10 -0
- package/dist/functions/im/imAiStreamOutboundQueue.js +13 -0
- package/dist/functions/im/imAiStreamOutboundQueue.js.map +1 -0
- package/dist/functions/im/imAiStreamReplyDone.d.ts +34 -0
- package/dist/functions/im/imAiStreamReplyDone.js +52 -0
- package/dist/functions/im/imAiStreamReplyDone.js.map +1 -0
- package/dist/functions/im/imAiStreamSideBuffer.d.ts +16 -0
- package/dist/functions/im/imAiStreamSideBuffer.js +19 -0
- package/dist/functions/im/imAiStreamSideBuffer.js.map +1 -0
- package/dist/functions/im/imAiStreamStoppedRun.d.ts +6 -0
- package/dist/functions/im/imAiStreamStoppedRun.js +19 -0
- package/dist/functions/im/imAiStreamStoppedRun.js.map +1 -0
- package/dist/functions/im/imAiStreamUi.d.ts +40 -0
- package/dist/functions/im/imAiStreamUi.js +108 -0
- package/dist/functions/im/imAiStreamUi.js.map +1 -0
- package/dist/functions/im/imApiMessageMerge.js +4 -25
- package/dist/functions/im/imApiMessageMerge.js.map +1 -1
- package/dist/functions/im/imApiSyncPreservedOutboundOps.d.ts +9 -0
- package/dist/functions/im/imApiSyncPreservedOutboundOps.js +52 -0
- package/dist/functions/im/imApiSyncPreservedOutboundOps.js.map +1 -0
- package/dist/functions/im/imChatContextMenuSpecs.d.ts +5 -0
- package/dist/functions/im/imChatContextMenuSpecs.js +22 -0
- package/dist/functions/im/imChatContextMenuSpecs.js.map +1 -1
- package/dist/functions/im/imChatInlineAttachmentDisplay.d.ts +6 -0
- package/dist/functions/im/imChatInlineAttachmentDisplay.js +11 -0
- package/dist/functions/im/imChatInlineAttachmentDisplay.js.map +1 -1
- package/dist/functions/im/imChatMessageDeleteUi.d.ts +3 -0
- package/dist/functions/im/imChatMessageDeleteUi.js +14 -0
- package/dist/functions/im/imChatMessageDeleteUi.js.map +1 -0
- package/dist/functions/im/imChatMessageLookup.d.ts +3 -0
- package/dist/functions/im/imChatMessageLookup.js +13 -0
- package/dist/functions/im/imChatMessageLookup.js.map +1 -0
- package/dist/functions/im/imChatMessagePagination.d.ts +9 -0
- package/dist/functions/im/imChatMessagePagination.js +17 -0
- package/dist/functions/im/imChatMessagePagination.js.map +1 -1
- package/dist/functions/im/imComposerOutboundExtra.d.ts +17 -0
- package/dist/functions/im/imComposerOutboundExtra.js +52 -0
- package/dist/functions/im/imComposerOutboundExtra.js.map +1 -0
- package/dist/functions/im/imContactPeerProfileMerge.d.ts +9 -0
- package/dist/functions/im/imContactPeerProfileMerge.js +18 -0
- package/dist/functions/im/imContactPeerProfileMerge.js.map +1 -0
- package/dist/functions/im/imContactPickerFilter.d.ts +8 -0
- package/dist/functions/im/imContactPickerFilter.js +52 -0
- package/dist/functions/im/imContactPickerFilter.js.map +1 -0
- package/dist/functions/im/imConversationListPrefs.d.ts +21 -0
- package/dist/functions/im/imConversationListPrefs.js +44 -0
- package/dist/functions/im/imConversationListPrefs.js.map +1 -0
- package/dist/functions/im/imConversationMessageLoadFailurePolicy.d.ts +2 -0
- package/dist/functions/im/imConversationMessageLoadFailurePolicy.js +4 -0
- package/dist/functions/im/imConversationMessageLoadFailurePolicy.js.map +1 -0
- package/dist/functions/im/imConversationMessageSyncUi.d.ts +18 -0
- package/dist/functions/im/imConversationMessageSyncUi.js +32 -0
- package/dist/functions/im/imConversationMessageSyncUi.js.map +1 -0
- package/dist/functions/im/imConversationPrefNormalize.d.ts +29 -0
- package/dist/functions/im/imConversationPrefNormalize.js +81 -0
- package/dist/functions/im/imConversationPrefNormalize.js.map +1 -0
- package/dist/functions/im/imConversationRouteQuery.d.ts +5 -0
- package/dist/functions/im/imConversationRouteQuery.js +14 -0
- package/dist/functions/im/imConversationRouteQuery.js.map +1 -0
- package/dist/functions/im/imConversationSidebar.d.ts +41 -0
- package/dist/functions/im/imConversationSidebar.js +99 -0
- package/dist/functions/im/imConversationSidebar.js.map +1 -0
- package/dist/functions/im/imConversationSyncFailurePolicy.d.ts +10 -0
- package/dist/functions/im/imConversationSyncFailurePolicy.js +15 -0
- package/dist/functions/im/imConversationSyncFailurePolicy.js.map +1 -0
- package/dist/functions/im/imDesktopNotificationPrefs.d.ts +16 -0
- package/dist/functions/im/imDesktopNotificationPrefs.js +41 -0
- package/dist/functions/im/imDesktopNotificationPrefs.js.map +1 -0
- package/dist/functions/im/imDexieMessageLookup.d.ts +6 -0
- package/dist/functions/im/imDexieMessageLookup.js +28 -0
- package/dist/functions/im/imDexieMessageLookup.js.map +1 -0
- package/dist/functions/im/imDismissedConversationOps.d.ts +11 -0
- package/dist/functions/im/imDismissedConversationOps.js +20 -0
- package/dist/functions/im/imDismissedConversationOps.js.map +1 -0
- package/dist/functions/im/imForwardOutboundDispatch.d.ts +22 -0
- package/dist/functions/im/imForwardOutboundDispatch.js +32 -0
- package/dist/functions/im/imForwardOutboundDispatch.js.map +1 -0
- package/dist/functions/im/imInboundMessageUi.d.ts +10 -0
- package/dist/functions/im/imInboundMessageUi.js +26 -0
- package/dist/functions/im/imInboundMessageUi.js.map +1 -0
- package/dist/functions/im/imInlineAttachmentOutbound.d.ts +23 -0
- package/dist/functions/im/imInlineAttachmentOutbound.js +36 -0
- package/dist/functions/im/imInlineAttachmentOutbound.js.map +1 -0
- package/dist/functions/im/imInlineMediaUrlVideo.d.ts +5 -0
- package/dist/functions/im/imInlineMediaUrlVideo.js +3 -0
- package/dist/functions/im/imInlineMediaUrlVideo.js.map +1 -1
- package/dist/functions/im/imLocalMediaOutboundExtra.d.ts +5 -0
- package/dist/functions/im/imLocalMediaOutboundExtra.js +28 -0
- package/dist/functions/im/imLocalMediaOutboundExtra.js.map +1 -0
- package/dist/functions/im/imMediaOssUpload.d.ts +4 -0
- package/dist/functions/im/imMediaOssUpload.js +12 -0
- package/dist/functions/im/imMediaOssUpload.js.map +1 -0
- package/dist/functions/im/imMediaPipelineDimensionExtra.d.ts +9 -0
- package/dist/functions/im/imMediaPipelineDimensionExtra.js +11 -0
- package/dist/functions/im/imMediaPipelineDimensionExtra.js.map +1 -0
- package/dist/functions/im/imMediaPipelinePixelMeta.d.ts +33 -0
- package/dist/functions/im/imMediaPipelinePixelMeta.js +28 -0
- package/dist/functions/im/imMediaPipelinePixelMeta.js.map +1 -0
- package/dist/functions/im/imMediaPipelineQueueItem.d.ts +39 -0
- package/dist/functions/im/imMediaPipelineQueueItem.js +32 -0
- package/dist/functions/im/imMediaPipelineQueueItem.js.map +1 -0
- package/dist/functions/im/imMediaToolbarQueue.d.ts +16 -0
- package/dist/functions/im/imMediaToolbarQueue.js +14 -0
- package/dist/functions/im/imMediaToolbarQueue.js.map +1 -0
- package/dist/functions/im/imMemberProfileEnsurePolicy.d.ts +7 -0
- package/dist/functions/im/imMemberProfileEnsurePolicy.js +11 -0
- package/dist/functions/im/imMemberProfileEnsurePolicy.js.map +1 -0
- package/dist/functions/im/imMemberProfileRowsToUpsert.d.ts +7 -0
- package/dist/functions/im/imMemberProfileRowsToUpsert.js +18 -0
- package/dist/functions/im/imMemberProfileRowsToUpsert.js.map +1 -0
- package/dist/functions/im/imMentionAllowedUserIds.d.ts +1 -0
- package/dist/functions/im/imMentionAllowedUserIds.js.map +1 -1
- package/dist/functions/im/imMentionInputItems.d.ts +23 -0
- package/dist/functions/im/imMentionInputItems.js +32 -0
- package/dist/functions/im/imMentionInputItems.js.map +1 -0
- package/dist/functions/im/imMessageExtraRecord.d.ts +1 -0
- package/dist/functions/im/imMessageExtraRecord.js +4 -0
- package/dist/functions/im/imMessageExtraRecord.js.map +1 -1
- package/dist/functions/im/imMessageIsoTime.d.ts +2 -0
- package/dist/functions/im/imMessageIsoTime.js +17 -0
- package/dist/functions/im/imMessageIsoTime.js.map +1 -0
- package/dist/functions/im/imMultiSelectBatchAction.d.ts +9 -0
- package/dist/functions/im/imMultiSelectBatchAction.js +19 -0
- package/dist/functions/im/imMultiSelectBatchAction.js.map +1 -0
- package/dist/functions/im/imPeerProfileFromConversations.d.ts +14 -0
- package/dist/functions/im/imPeerProfileFromConversations.js +82 -0
- package/dist/functions/im/imPeerProfileFromConversations.js.map +1 -0
- package/dist/functions/im/imPendingMediaFlushPlan.d.ts +29 -0
- package/dist/functions/im/imPendingMediaFlushPlan.js +61 -0
- package/dist/functions/im/imPendingMediaFlushPlan.js.map +1 -0
- package/dist/functions/im/imSenderProfileMap.d.ts +24 -0
- package/dist/functions/im/imSenderProfileMap.js +72 -0
- package/dist/functions/im/imSenderProfileMap.js.map +1 -0
- package/dist/functions/im/imStandaloneMediaOutbound.d.ts +19 -0
- package/dist/functions/im/imStandaloneMediaOutbound.js +52 -0
- package/dist/functions/im/imStandaloneMediaOutbound.js.map +1 -0
- package/dist/functions/im/imTrayUnreadTotal.d.ts +12 -0
- package/dist/functions/im/imTrayUnreadTotal.js +19 -0
- package/dist/functions/im/imTrayUnreadTotal.js.map +1 -0
- package/dist/functions/im/imWalletEnvelopeClaim.d.ts +4 -0
- package/dist/functions/im/imWalletEnvelopeClaim.js +49 -0
- package/dist/functions/im/imWalletEnvelopeClaim.js.map +1 -0
- package/dist/functions/im/imWalletTransferPatch.d.ts +2 -0
- package/dist/functions/im/imWalletTransferPatch.js +18 -0
- package/dist/functions/im/imWalletTransferPatch.js.map +1 -0
- package/dist/functions/im/index.d.ts +32 -1
- package/dist/functions/im/index.js +32 -1
- package/dist/functions/im/index.js.map +1 -1
- package/dist/functions/im/isDesktopImNotificationEnvironmentSupported.d.ts +14 -0
- package/dist/functions/im/isDesktopImNotificationEnvironmentSupported.js +14 -0
- package/dist/functions/im/isDesktopImNotificationEnvironmentSupported.js.map +1 -0
- package/dist/functions/im/isImMessageNeedingLocalMediaPreview.d.ts +3 -0
- package/dist/functions/im/isImMessageNeedingLocalMediaPreview.js +16 -0
- package/dist/functions/im/isImMessageNeedingLocalMediaPreview.js.map +1 -0
- package/dist/functions/im/isLocalMediaPendingUploadMessage.d.ts +2 -0
- package/dist/functions/im/isLocalMediaPendingUploadMessage.js +24 -0
- package/dist/functions/im/isLocalMediaPendingUploadMessage.js.map +1 -0
- package/dist/functions/im/isPendingOutboundImMessage.d.ts +4 -0
- package/dist/functions/im/isPendingOutboundImMessage.js +16 -0
- package/dist/functions/im/isPendingOutboundImMessage.js.map +1 -0
- package/dist/functions/im/isStaleMessageForAbandonOnExit.d.ts +3 -0
- package/dist/functions/im/isStaleMessageForAbandonOnExit.js +35 -0
- package/dist/functions/im/isStaleMessageForAbandonOnExit.js.map +1 -0
- package/dist/functions/im/mapChatInlineAttachmentGallerySpecsToViewItems.d.ts +11 -0
- package/dist/functions/im/mapChatInlineAttachmentGallerySpecsToViewItems.js +11 -0
- package/dist/functions/im/mapChatInlineAttachmentGallerySpecsToViewItems.js.map +1 -0
- package/dist/functions/im/mapImAiAgentDtosToChatOptions.d.ts +2 -0
- package/dist/functions/im/mapImAiAgentDtosToChatOptions.js +15 -0
- package/dist/functions/im/mapImAiAgentDtosToChatOptions.js.map +1 -0
- package/dist/functions/im/mapUnreadHighlightsByConversation.d.ts +17 -0
- package/dist/functions/im/mapUnreadHighlightsByConversation.js +41 -0
- package/dist/functions/im/mapUnreadHighlightsByConversation.js.map +1 -0
- package/dist/functions/im/materializeUploadFileFromMediaBlobRecord.d.ts +7 -0
- package/dist/functions/im/materializeUploadFileFromMediaBlobRecord.js +10 -0
- package/dist/functions/im/materializeUploadFileFromMediaBlobRecord.js.map +1 -0
- package/dist/functions/im/mergeConversationLastMessageWithOutboundPatch.d.ts +4 -0
- package/dist/functions/im/mergeConversationLastMessageWithOutboundPatch.js +11 -0
- package/dist/functions/im/mergeConversationLastMessageWithOutboundPatch.js.map +1 -0
- package/dist/functions/im/mergeFinalizedMediaMessageWithLocalExtras.d.ts +5 -0
- package/dist/functions/im/mergeFinalizedMediaMessageWithLocalExtras.js +31 -0
- package/dist/functions/im/mergeFinalizedMediaMessageWithLocalExtras.js.map +1 -0
- package/dist/functions/im/mergeImMessageExtraData.d.ts +2 -0
- package/dist/functions/im/mergeImMessageExtraData.js +11 -0
- package/dist/functions/im/mergeImMessageExtraData.js.map +1 -0
- package/dist/functions/im/mergePreservedOutboundRowAfterApiSync.d.ts +2 -0
- package/dist/functions/im/mergePreservedOutboundRowAfterApiSync.js +19 -0
- package/dist/functions/im/mergePreservedOutboundRowAfterApiSync.js.map +1 -0
- package/dist/functions/im/newImClientMessageId.d.ts +1 -0
- package/dist/functions/im/newImClientMessageId.js +6 -0
- package/dist/functions/im/newImClientMessageId.js.map +1 -0
- package/dist/functions/im/newImClientMessageIdFromBrowser.d.ts +3 -0
- package/dist/functions/im/newImClientMessageIdFromBrowser.js +20 -0
- package/dist/functions/im/newImClientMessageIdFromBrowser.js.map +1 -0
- package/dist/functions/im/normalizeImConversationRowForStorage.d.ts +4 -0
- package/dist/functions/im/normalizeImConversationRowForStorage.js +15 -0
- package/dist/functions/im/normalizeImConversationRowForStorage.js.map +1 -0
- package/dist/functions/im/patchChatWalletTransferReceiverNames.d.ts +5 -0
- package/dist/functions/im/patchChatWalletTransferReceiverNames.js +22 -0
- package/dist/functions/im/patchChatWalletTransferReceiverNames.js.map +1 -0
- package/dist/functions/im/resolveChatMessageCopyFeedback.d.ts +6 -0
- package/dist/functions/im/resolveChatMessageCopyFeedback.js +7 -0
- package/dist/functions/im/resolveChatMessageCopyFeedback.js.map +1 -0
- package/dist/functions/im/resolveConversationClearExceptOutboundDraft.d.ts +8 -0
- package/dist/functions/im/resolveConversationClearExceptOutboundDraft.js +25 -0
- package/dist/functions/im/resolveConversationClearExceptOutboundDraft.js.map +1 -0
- package/dist/functions/im/resolveDroppedFilePathWithNativeGetter.d.ts +4 -0
- package/dist/functions/im/resolveDroppedFilePathWithNativeGetter.js +13 -0
- package/dist/functions/im/resolveDroppedFilePathWithNativeGetter.js.map +1 -0
- package/dist/functions/im/resolveImOutboundRetrySendParams.d.ts +10 -0
- package/dist/functions/im/resolveImOutboundRetrySendParams.js +17 -0
- package/dist/functions/im/resolveImOutboundRetrySendParams.js.map +1 -0
- package/dist/functions/im/resolveImOutboundSendExtraData.d.ts +2 -0
- package/dist/functions/im/resolveImOutboundSendExtraData.js +13 -0
- package/dist/functions/im/resolveImOutboundSendExtraData.js.map +1 -0
- package/dist/functions/im/resolveOutboundPatchTargetsByClientMessageId.d.ts +2 -0
- package/dist/functions/im/resolveOutboundPatchTargetsByClientMessageId.js +11 -0
- package/dist/functions/im/resolveOutboundPatchTargetsByClientMessageId.js.map +1 -0
- package/dist/functions/im/resolveUploadFileInputFromMediaBlobRecord.d.ts +11 -0
- package/dist/functions/im/resolveUploadFileInputFromMediaBlobRecord.js +11 -0
- package/dist/functions/im/resolveUploadFileInputFromMediaBlobRecord.js.map +1 -0
- package/dist/functions/im/shouldPromoteMessageAsConversationLast.d.ts +2 -0
- package/dist/functions/im/shouldPromoteMessageAsConversationLast.js +7 -0
- package/dist/functions/im/shouldPromoteMessageAsConversationLast.js.map +1 -0
- package/dist/functions/im/validateComposerOutboundSend.d.ts +14 -0
- package/dist/functions/im/validateComposerOutboundSend.js +27 -0
- package/dist/functions/im/validateComposerOutboundSend.js.map +1 -0
- package/dist/functions/image/compressChatConversationBackgroundImage.d.ts +4 -0
- package/dist/functions/image/compressChatConversationBackgroundImage.js +10 -0
- package/dist/functions/image/compressChatConversationBackgroundImage.js.map +1 -0
- package/dist/functions/image/compressImageFileToBoundedJpeg.d.ts +13 -0
- package/dist/functions/image/compressImageFileToBoundedJpeg.js +30 -0
- package/dist/functions/image/compressImageFileToBoundedJpeg.js.map +1 -0
- package/dist/functions/markdown/normalizeMarkdownHtmlVideoTags.d.ts +1 -0
- package/dist/functions/markdown/normalizeMarkdownHtmlVideoTags.js +26 -0
- package/dist/functions/markdown/normalizeMarkdownHtmlVideoTags.js.map +1 -0
- package/dist/functions/oss/fetchBlobViaOssDownloadApi.d.ts +12 -0
- package/dist/functions/oss/fetchBlobViaOssDownloadApi.js +18 -0
- package/dist/functions/oss/fetchBlobViaOssDownloadApi.js.map +1 -0
- package/dist/functions/oss/putOssFileViaSignedUploadUrl.d.ts +15 -0
- package/dist/functions/oss/putOssFileViaSignedUploadUrl.js +28 -0
- package/dist/functions/oss/putOssFileViaSignedUploadUrl.js.map +1 -0
- package/dist/functions/oss/tryUploadImVideoThumbnailToOss.d.ts +24 -0
- package/dist/functions/oss/tryUploadImVideoThumbnailToOss.js +21 -0
- package/dist/functions/oss/tryUploadImVideoThumbnailToOss.js.map +1 -0
- package/dist/functions/oss/uploadChatCommunityMediaToOss.d.ts +6 -0
- package/dist/functions/oss/uploadChatCommunityMediaToOss.js +15 -0
- package/dist/functions/oss/uploadChatCommunityMediaToOss.js.map +1 -0
- package/dist/functions/oss/uploadOssFileFromBrowser.js +10 -17
- package/dist/functions/oss/uploadOssFileFromBrowser.js.map +1 -1
- package/dist/functions/project/buildProjectMachineHeaders.d.ts +9 -0
- package/dist/functions/project/buildProjectMachineHeaders.js +41 -0
- package/dist/functions/project/buildProjectMachineHeaders.js.map +1 -0
- package/dist/functions/release/buildCapacitorApkCacheRelPath.d.ts +4 -0
- package/dist/functions/release/buildCapacitorApkCacheRelPath.js +10 -0
- package/dist/functions/release/buildCapacitorApkCacheRelPath.js.map +1 -0
- package/dist/functions/release/buildCapacitorApkUpdatePrompt.d.ts +12 -0
- package/dist/functions/release/buildCapacitorApkUpdatePrompt.js +16 -0
- package/dist/functions/release/buildCapacitorApkUpdatePrompt.js.map +1 -0
- package/dist/functions/release/buildCapacitorWebOtaUpdatePrompt.d.ts +12 -0
- package/dist/functions/release/buildCapacitorWebOtaUpdatePrompt.js +16 -0
- package/dist/functions/release/buildCapacitorWebOtaUpdatePrompt.js.map +1 -0
- package/dist/functions/release/buildRendererReleaseUpdatePrompt.d.ts +19 -0
- package/dist/functions/release/buildRendererReleaseUpdatePrompt.js +35 -0
- package/dist/functions/release/buildRendererReleaseUpdatePrompt.js.map +1 -0
- package/dist/functions/release/capacitorOtaReleaseManifestFetch.d.ts +4 -0
- package/dist/functions/release/capacitorOtaReleaseManifestFetch.js +16 -0
- package/dist/functions/release/capacitorOtaReleaseManifestFetch.js.map +1 -0
- package/dist/functions/release/capacitorReleaseManifestFetch.d.ts +3 -0
- package/dist/functions/release/capacitorReleaseManifestFetch.js +11 -0
- package/dist/functions/release/capacitorReleaseManifestFetch.js.map +1 -0
- package/dist/functions/release/capacitorUpdateDefaults.d.ts +27 -0
- package/dist/functions/release/capacitorUpdateDefaults.js +51 -0
- package/dist/functions/release/capacitorUpdateDefaults.js.map +1 -0
- package/dist/functions/release/clientDownloadTargets.d.ts +9 -0
- package/dist/functions/release/clientDownloadTargets.js +12 -0
- package/dist/functions/release/clientDownloadTargets.js.map +1 -0
- package/dist/functions/release/createCapacitorUpdateFetchDeps.d.ts +27 -0
- package/dist/functions/release/createCapacitorUpdateFetchDeps.js +27 -0
- package/dist/functions/release/createCapacitorUpdateFetchDeps.js.map +1 -0
- package/dist/functions/release/createReleaseManifestFetchDeps.d.ts +9 -0
- package/dist/functions/release/createReleaseManifestFetchDeps.js +16 -0
- package/dist/functions/release/createReleaseManifestFetchDeps.js.map +1 -0
- package/dist/functions/release/detectElectronReleaseBrowserTarget.d.ts +5 -0
- package/dist/functions/release/detectElectronReleaseBrowserTarget.js +15 -0
- package/dist/functions/release/detectElectronReleaseBrowserTarget.js.map +1 -0
- package/dist/functions/release/electronReleaseManifestFetch.d.ts +10 -0
- package/dist/functions/release/electronReleaseManifestFetch.js +40 -0
- package/dist/functions/release/electronReleaseManifestFetch.js.map +1 -0
- package/dist/functions/release/evaluateCapacitorAndroidApkUpdate.d.ts +23 -0
- package/dist/functions/release/evaluateCapacitorAndroidApkUpdate.js +35 -0
- package/dist/functions/release/evaluateCapacitorAndroidApkUpdate.js.map +1 -0
- package/dist/functions/release/evaluateCapacitorWebOtaUpdate.d.ts +31 -0
- package/dist/functions/release/evaluateCapacitorWebOtaUpdate.js +48 -0
- package/dist/functions/release/evaluateCapacitorWebOtaUpdate.js.map +1 -0
- package/dist/functions/release/executeCapacitorAndroidApkUpdateCheck.d.ts +23 -0
- package/dist/functions/release/executeCapacitorAndroidApkUpdateCheck.js +31 -0
- package/dist/functions/release/executeCapacitorAndroidApkUpdateCheck.js.map +1 -0
- package/dist/functions/release/executeCapacitorManualUpdateCheck.d.ts +8 -0
- package/dist/functions/release/executeCapacitorManualUpdateCheck.js +11 -0
- package/dist/functions/release/executeCapacitorManualUpdateCheck.js.map +1 -0
- package/dist/functions/release/executeCapacitorWebOtaUpdateCheck.d.ts +26 -0
- package/dist/functions/release/executeCapacitorWebOtaUpdateCheck.js +42 -0
- package/dist/functions/release/executeCapacitorWebOtaUpdateCheck.js.map +1 -0
- package/dist/functions/release/executeManualChatUpdateCheck.d.ts +13 -0
- package/dist/functions/release/executeManualChatUpdateCheck.js +21 -0
- package/dist/functions/release/executeManualChatUpdateCheck.js.map +1 -0
- package/dist/functions/release/executeRendererReleaseUpdateCheck.d.ts +28 -0
- package/dist/functions/release/executeRendererReleaseUpdateCheck.js +69 -0
- package/dist/functions/release/executeRendererReleaseUpdateCheck.js.map +1 -0
- package/dist/functions/release/isCapacitorWebViewOnViteDevServer.d.ts +4 -0
- package/dist/functions/release/isCapacitorWebViewOnViteDevServer.js +10 -0
- package/dist/functions/release/isCapacitorWebViewOnViteDevServer.js.map +1 -0
- package/dist/functions/release/openCapacitorMobileAppDownload.d.ts +10 -0
- package/dist/functions/release/openCapacitorMobileAppDownload.js +23 -0
- package/dist/functions/release/openCapacitorMobileAppDownload.js.map +1 -0
- package/dist/functions/release/openElectronDesktopClientDownload.d.ts +9 -0
- package/dist/functions/release/openElectronDesktopClientDownload.js +19 -0
- package/dist/functions/release/openElectronDesktopClientDownload.js.map +1 -0
- package/dist/functions/release/pickCapacitorAndroidPackage.d.ts +4 -0
- package/dist/functions/release/pickCapacitorAndroidPackage.js +17 -0
- package/dist/functions/release/pickCapacitorAndroidPackage.js.map +1 -0
- package/dist/functions/release/pickElectronReleasePackage.d.ts +4 -0
- package/dist/functions/release/pickElectronReleasePackage.js +14 -0
- package/dist/functions/release/pickElectronReleasePackage.js.map +1 -0
- package/dist/functions/release/releaseUpdateDismissSession.d.ts +5 -0
- package/dist/functions/release/releaseUpdateDismissSession.js +22 -0
- package/dist/functions/release/releaseUpdateDismissSession.js.map +1 -0
- package/dist/functions/release/releaseUpdatePolicy.d.ts +7 -0
- package/dist/functions/release/releaseUpdatePolicy.js +36 -0
- package/dist/functions/release/releaseUpdatePolicy.js.map +1 -0
- package/dist/functions/release/sanitizeCapacitorDownloadFileName.d.ts +1 -0
- package/dist/functions/release/sanitizeCapacitorDownloadFileName.js +4 -0
- package/dist/functions/release/sanitizeCapacitorDownloadFileName.js.map +1 -0
- package/dist/functions/release/semverToCapacitorVersionCode.d.ts +1 -0
- package/dist/functions/release/semverToCapacitorVersionCode.js +10 -0
- package/dist/functions/release/semverToCapacitorVersionCode.js.map +1 -0
- package/dist/functions/release/shouldSkipCapacitorReleaseUpdateOnLaunch.d.ts +5 -0
- package/dist/functions/release/shouldSkipCapacitorReleaseUpdateOnLaunch.js +10 -0
- package/dist/functions/release/shouldSkipCapacitorReleaseUpdateOnLaunch.js.map +1 -0
- package/dist/functions/release/verifyHttpContentLength.d.ts +5 -0
- package/dist/functions/release/verifyHttpContentLength.js +23 -0
- package/dist/functions/release/verifyHttpContentLength.js.map +1 -0
- package/dist/functions/sse/namedSseStream.d.ts +6 -0
- package/dist/functions/sse/namedSseStream.js +70 -0
- package/dist/functions/sse/namedSseStream.js.map +1 -0
- package/dist/functions/storage/clearAppCachePreservingAuth.d.ts +14 -0
- package/dist/functions/storage/clearAppCachePreservingAuth.js +45 -0
- package/dist/functions/storage/clearAppCachePreservingAuth.js.map +1 -0
- package/dist/functions/ui/imChatViewContextMenuMaterialize.d.ts +12 -0
- package/dist/functions/ui/imChatViewContextMenuMaterialize.js +16 -0
- package/dist/functions/ui/imChatViewContextMenuMaterialize.js.map +1 -0
- package/dist/functions/ui/imGalleryPreviewContextMenuMaterialize.d.ts +6 -0
- package/dist/functions/ui/imGalleryPreviewContextMenuMaterialize.js +12 -0
- package/dist/functions/ui/imGalleryPreviewContextMenuMaterialize.js.map +1 -0
- package/dist/functions/ui/imMarkdownImageGallery.d.ts +5 -0
- package/dist/functions/ui/imMarkdownImageGallery.js +12 -0
- package/dist/functions/ui/imMarkdownImageGallery.js.map +1 -0
- package/dist/functions/ui/resolveChatAttachmentPreviewContextMenuSelect.d.ts +24 -0
- package/dist/functions/ui/resolveChatAttachmentPreviewContextMenuSelect.js +31 -0
- package/dist/functions/ui/resolveChatAttachmentPreviewContextMenuSelect.js.map +1 -0
- package/dist/functions/ui/resolveChatGalleryMenuActionFeedback.d.ts +7 -0
- package/dist/functions/ui/resolveChatGalleryMenuActionFeedback.js +15 -0
- package/dist/functions/ui/resolveChatGalleryMenuActionFeedback.js.map +1 -0
- package/dist/functions/ui/resolveGalleryPreviewContextMenuEvent.d.ts +1 -0
- package/dist/functions/ui/resolveGalleryPreviewContextMenuEvent.js +2 -0
- package/dist/functions/ui/resolveGalleryPreviewContextMenuEvent.js.map +1 -1
- package/dist/functions/url/resolveCopyableAbsoluteUrl.d.ts +5 -0
- package/dist/functions/url/resolveCopyableAbsoluteUrl.js +17 -0
- package/dist/functions/url/resolveCopyableAbsoluteUrl.js.map +1 -0
- package/dist/functions/wallet/createBrowserWalletPayPasswordSessionAccess.d.ts +5 -0
- package/dist/functions/wallet/createBrowserWalletPayPasswordSessionAccess.js +32 -0
- package/dist/functions/wallet/createBrowserWalletPayPasswordSessionAccess.js.map +1 -0
- package/dist/functions/wallet/trc20PayQr.d.ts +3 -0
- package/dist/functions/wallet/trc20PayQr.js +16 -0
- package/dist/functions/wallet/trc20PayQr.js.map +1 -0
- package/dist/functions/wallet/walletLedgerUi.d.ts +44 -0
- package/dist/functions/wallet/walletLedgerUi.js +223 -0
- package/dist/functions/wallet/walletLedgerUi.js.map +1 -0
- package/dist/functions/wallet/walletPayPasswordSessionState.d.ts +8 -0
- package/dist/functions/wallet/walletPayPasswordSessionState.js +20 -0
- package/dist/functions/wallet/walletPayPasswordSessionState.js.map +1 -0
- package/dist/functions/wallet/walletPayPasswordUi.d.ts +3 -0
- package/dist/functions/wallet/walletPayPasswordUi.js +15 -0
- package/dist/functions/wallet/walletPayPasswordUi.js.map +1 -0
- package/dist/schemas/video.schema.d.ts +60 -60
- package/package.json +270 -14
- package/references/browser.d.ts +4 -1
- package/references/dom.d.ts +32 -0
- package/types/ai-chat.d.ts +23 -0
- package/types/capacitor-ota-release-manifest.d.ts +21 -0
- package/types/capacitor-release-manifest.d.ts +27 -0
- package/types/chat-appearance.d.ts +1 -0
- package/types/electron-release-manifest.d.ts +40 -0
- package/types/im-ai-agent.d.ts +23 -0
- package/types/named-sse.d.ts +11 -0
- package/types/wallet-ledger.d.ts +47 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { buildImConversationContextMenuSpecs, buildImMessageContextMenuSpecs, buildImMultiSelectBatchActionSpecs, IM_CODE_WORKSPACE_MESSAGE_CONTEXT_MENU_OPTS, } from '../im/imChatViewContextMenu.js';
|
|
2
|
+
import { materializeImUiContextMenuItems } from './materializeImUiContextMenuItems.js';
|
|
3
|
+
export { IM_CODE_WORKSPACE_MESSAGE_CONTEXT_MENU_OPTS };
|
|
4
|
+
export function buildImMultiSelectBatchActionItems(count, messages) {
|
|
5
|
+
return buildImMultiSelectBatchActionSpecs(count, messages);
|
|
6
|
+
}
|
|
7
|
+
export function buildImMultiSelectBatchContextMenuItems(count, messages) {
|
|
8
|
+
return materializeImUiContextMenuItems(buildImMultiSelectBatchActionSpecs(count, messages));
|
|
9
|
+
}
|
|
10
|
+
export function buildImMessageContextMenuItems(m, uid, currentConversation, bubbleSelectionText, menuOpts) {
|
|
11
|
+
return materializeImUiContextMenuItems(buildImMessageContextMenuSpecs(m, uid, currentConversation, bubbleSelectionText, menuOpts));
|
|
12
|
+
}
|
|
13
|
+
export function buildImConversationContextMenuItems(c) {
|
|
14
|
+
return materializeImUiContextMenuItems(buildImConversationContextMenuSpecs(c));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=imChatViewContextMenuMaterialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imChatViewContextMenuMaterialize.js","sourceRoot":"","sources":["../../../src/functions/ui/imChatViewContextMenuMaterialize.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mCAAmC,EACnC,8BAA8B,EAC9B,kCAAkC,EAClC,2CAA2C,GAG5C,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAA;AAGnF,OAAO,EAAE,2CAA2C,EAAE,CAAA;AAMtD,MAAM,UAAU,kCAAkC,CAChD,KAAa,EACb,QAAgC;IAEhC,OAAO,kCAAkC,CAAC,KAAK,EAAE,QAAQ,CAAmC,CAAA;AAC9F,CAAC;AAED,MAAM,UAAU,uCAAuC,CACrD,KAAa,EACb,QAAgC;IAEhC,OAAO,+BAA+B,CAAC,kCAAkC,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAA;AAC7F,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,CAAc,EACd,GAAkB,EAClB,mBAA4C,EAC5C,mBAA4B,EAC5B,QAAsC;IAEtC,OAAO,+BAA+B,CACpC,8BAA8B,CAAC,CAAC,EAAE,GAAG,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,QAAQ,CAAC,CAC3F,CAAA;AACH,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,CAAmB;IAEnB,OAAO,+BAA+B,CAAC,mCAAmC,CAAC,CAAC,CAAC,CAAC,CAAA;AAChF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ImUiContextMenuItemSpec } from '../im/imChatContextMenuSpecs';
|
|
2
|
+
export declare function buildImAttachmentGalleryPreviewContextMenuItems(hasImageSource: boolean, hasDownloadSource: boolean): ImUiContextMenuItemSpec[];
|
|
3
|
+
export declare function buildImImageGalleryPreviewContextMenuItems(hasActionSource: boolean): ImUiContextMenuItemSpec[];
|
|
4
|
+
export declare function buildImMarkdownImageContextMenuItemsFromPayload(payload: {
|
|
5
|
+
src?: string | null;
|
|
6
|
+
}, isVideo: boolean): ImUiContextMenuItemSpec[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { materializeChatAttachmentPreviewContextMenuItems, materializeChatMarkdownImageContextMenuItems, } from '../im/imChatContextMenuSpecs.js';
|
|
2
|
+
export function buildImAttachmentGalleryPreviewContextMenuItems(hasImageSource, hasDownloadSource) {
|
|
3
|
+
return materializeChatAttachmentPreviewContextMenuItems(hasImageSource, hasDownloadSource);
|
|
4
|
+
}
|
|
5
|
+
export function buildImImageGalleryPreviewContextMenuItems(hasActionSource) {
|
|
6
|
+
return materializeChatMarkdownImageContextMenuItems(false, hasActionSource);
|
|
7
|
+
}
|
|
8
|
+
export function buildImMarkdownImageContextMenuItemsFromPayload(payload, isVideo) {
|
|
9
|
+
const src = payload.src?.trim();
|
|
10
|
+
return materializeChatMarkdownImageContextMenuItems(isVideo, !!src);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=imGalleryPreviewContextMenuMaterialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imGalleryPreviewContextMenuMaterialize.js","sourceRoot":"","sources":["../../../src/functions/ui/imGalleryPreviewContextMenuMaterialize.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gDAAgD,EAChD,4CAA4C,GAE7C,MAAM,8BAA8B,CAAA;AAErC,MAAM,UAAU,+CAA+C,CAC7D,cAAuB,EACvB,iBAA0B;IAE1B,OAAO,gDAAgD,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAA;AAC5F,CAAC;AAED,MAAM,UAAU,0CAA0C,CACxD,eAAwB;IAExB,OAAO,4CAA4C,CAAC,KAAK,EAAE,eAAe,CAAC,CAAA;AAC7E,CAAC;AAED,MAAM,UAAU,+CAA+C,CAC7D,OAAgC,EAChC,OAAgB;IAEhB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,IAAI,EAAE,CAAA;IAC/B,OAAO,4CAA4C,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAA;AACrE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function resolveMarkdownImageGalleryFilenameHint(input) {
|
|
2
|
+
const alt = String(input.alt ?? '').trim();
|
|
3
|
+
if (alt)
|
|
4
|
+
return alt;
|
|
5
|
+
const title = String(input.title ?? '').trim();
|
|
6
|
+
if (title)
|
|
7
|
+
return title;
|
|
8
|
+
if (input.key === 'download-video')
|
|
9
|
+
return 'video.mp4';
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=imMarkdownImageGallery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imMarkdownImageGallery.js","sourceRoot":"","sources":["../../../src/functions/ui/imMarkdownImageGallery.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,uCAAuC,CAAC,KAIvD;IACC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;IAC1C,IAAI,GAAG;QAAE,OAAO,GAAG,CAAA;IACnB,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;IAC9C,IAAI,KAAK;QAAE,OAAO,KAAK,CAAA;IACvB,IAAI,KAAK,CAAC,GAAG,KAAK,gBAAgB;QAAE,OAAO,WAAW,CAAA;IACtD,OAAO,SAAS,CAAA;AAClB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { MouseEvent } from '../../../references/dom.d';
|
|
2
|
+
import type { ChatInlineAttachmentListItem } from '../../../types/im-chat';
|
|
3
|
+
import { type ChatAttachmentGalleryDownloadSource, type ExecuteChatAttachmentPreviewDownloadInput } from '../im/executeChatAttachmentPreviewDownloadAction';
|
|
4
|
+
import { type ChatImageCopySource, type ChatImageGalleryMenuActionHostDeps, type ChatImageGalleryMenuActionResult } from '../im/executeChatImageGalleryMenuAction';
|
|
5
|
+
export type ChatAttachmentPreviewContextMenuSelectResult = ChatImageGalleryMenuActionResult | {
|
|
6
|
+
action: 'download';
|
|
7
|
+
ok: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function resolveChatAttachmentPreviewContextMenuSelect(key: string, input: {
|
|
10
|
+
imageSource: {
|
|
11
|
+
src: ChatImageCopySource;
|
|
12
|
+
filename?: string;
|
|
13
|
+
} | null;
|
|
14
|
+
downloadSource: ChatAttachmentGalleryDownloadSource | null;
|
|
15
|
+
galleryDeps: ChatImageGalleryMenuActionHostDeps;
|
|
16
|
+
downloadInput?: Omit<ExecuteChatAttachmentPreviewDownloadInput, 'downloadSource' | 'downloadByUrl' | 'downloadLocal' | 'downloadInlineAttachment'>;
|
|
17
|
+
downloadInlineAttachment?: ExecuteChatAttachmentPreviewDownloadInput['downloadInlineAttachment'];
|
|
18
|
+
downloadByUrl: ExecuteChatAttachmentPreviewDownloadInput['downloadByUrl'];
|
|
19
|
+
downloadLocal: ExecuteChatAttachmentPreviewDownloadInput['downloadLocal'];
|
|
20
|
+
contextMenuEvent?: MouseEvent;
|
|
21
|
+
chatMessageId?: string;
|
|
22
|
+
sourceIndex?: number | null;
|
|
23
|
+
inlineAttachmentList?: readonly ChatInlineAttachmentListItem[];
|
|
24
|
+
}): Promise<ChatAttachmentPreviewContextMenuSelectResult | null>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { executeChatAttachmentPreviewDownloadAction, } from '../im/executeChatAttachmentPreviewDownloadAction.js';
|
|
2
|
+
import { invokeChatImageGalleryMenuAction, } from '../im/executeChatImageGalleryMenuAction.js';
|
|
3
|
+
export async function resolveChatAttachmentPreviewContextMenuSelect(key, input) {
|
|
4
|
+
if (key === 'copy-image') {
|
|
5
|
+
if (!input.imageSource)
|
|
6
|
+
return null;
|
|
7
|
+
return invokeChatImageGalleryMenuAction(input.galleryDeps, {
|
|
8
|
+
key,
|
|
9
|
+
src: input.imageSource.src,
|
|
10
|
+
filenameHint: input.imageSource.filename,
|
|
11
|
+
contextMenuEvent: input.contextMenuEvent,
|
|
12
|
+
chatMessageId: input.chatMessageId,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
if (key === 'download-attachment') {
|
|
16
|
+
if (!input.downloadSource)
|
|
17
|
+
return { action: 'download', ok: false };
|
|
18
|
+
const result = executeChatAttachmentPreviewDownloadAction({
|
|
19
|
+
downloadSource: input.downloadSource,
|
|
20
|
+
chatMessageId: input.chatMessageId,
|
|
21
|
+
sourceIndex: input.sourceIndex,
|
|
22
|
+
inlineAttachmentList: input.inlineAttachmentList,
|
|
23
|
+
downloadInlineAttachment: input.downloadInlineAttachment,
|
|
24
|
+
downloadByUrl: input.downloadByUrl,
|
|
25
|
+
downloadLocal: input.downloadLocal,
|
|
26
|
+
});
|
|
27
|
+
return { action: 'download', ok: result.ok };
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=resolveChatAttachmentPreviewContextMenuSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveChatAttachmentPreviewContextMenuSelect.js","sourceRoot":"","sources":["../../../src/functions/ui/resolveChatAttachmentPreviewContextMenuSelect.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,0CAA0C,GAG3C,MAAM,kDAAkD,CAAA;AACzD,OAAO,EACL,gCAAgC,GAIjC,MAAM,yCAAyC,CAAA;AAMhD,MAAM,CAAC,KAAK,UAAU,6CAA6C,CACjE,GAAW,EACX,KAeC;IAED,IAAI,GAAG,KAAK,YAAY,EAAE,CAAC;QACzB,IAAI,CAAC,KAAK,CAAC,WAAW;YAAE,OAAO,IAAI,CAAA;QACnC,OAAO,gCAAgC,CAAC,KAAK,CAAC,WAAW,EAAE;YACzD,GAAG;YACH,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG;YAC1B,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ;YACxC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,aAAa,EAAE,KAAK,CAAC,aAAa;SACnC,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,GAAG,KAAK,qBAAqB,EAAE,CAAC;QAClC,IAAI,CAAC,KAAK,CAAC,cAAc;YAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,CAAA;QACnE,MAAM,MAAM,GAAG,0CAA0C,CAAC;YACxD,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,oBAAoB,EAAE,KAAK,CAAC,oBAAoB;YAChD,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;YACxD,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,aAAa,EAAE,KAAK,CAAC,aAAa;SACnC,CAAC,CAAA;QACF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAA;IAC9C,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ChatImageGalleryMenuActionResult } from '../im/executeChatImageGalleryMenuAction';
|
|
2
|
+
export declare function resolveChatGalleryMenuActionFeedback(result: ChatImageGalleryMenuActionResult, options?: {
|
|
3
|
+
copySuccessLabel?: string;
|
|
4
|
+
}): {
|
|
5
|
+
message: string;
|
|
6
|
+
tone: 'success' | 'error';
|
|
7
|
+
} | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function resolveChatGalleryMenuActionFeedback(result, options) {
|
|
2
|
+
if (result.action === 'copy') {
|
|
3
|
+
return {
|
|
4
|
+
message: result.ok
|
|
5
|
+
? (options?.copySuccessLabel ?? '已复制图片')
|
|
6
|
+
: '复制失败',
|
|
7
|
+
tone: result.ok ? 'success' : 'error',
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
if (!result.ok) {
|
|
11
|
+
return { message: '下载失败', tone: 'error' };
|
|
12
|
+
}
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=resolveChatGalleryMenuActionFeedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveChatGalleryMenuActionFeedback.js","sourceRoot":"","sources":["../../../src/functions/ui/resolveChatGalleryMenuActionFeedback.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oCAAoC,CAClD,MAAwC,EACxC,OAAuC;IAEvC,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;QAC7B,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,EAAE;gBAChB,CAAC,CAAC,CAAC,OAAO,EAAE,gBAAgB,IAAI,OAAO,CAAC;gBACxC,CAAC,CAAC,MAAM;YACV,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;SACtC,CAAA;IACH,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IAC3C,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC"}
|
|
@@ -2,5 +2,6 @@ import type { MouseEvent } from '../../../references/dom.d';
|
|
|
2
2
|
export type GalleryPreviewContextMenuEventLike = {
|
|
3
3
|
event?: MouseEvent;
|
|
4
4
|
target?: unknown;
|
|
5
|
+
clientX?: number;
|
|
5
6
|
};
|
|
6
7
|
export declare function resolveGalleryPreviewContextMenuEvent(ctx: GalleryPreviewContextMenuEventLike): MouseEvent | undefined;
|
|
@@ -2,6 +2,8 @@ export function resolveGalleryPreviewContextMenuEvent(ctx) {
|
|
|
2
2
|
if (ctx.event != null && typeof ctx.event === 'object' && 'clientX' in ctx.event) {
|
|
3
3
|
return ctx.event;
|
|
4
4
|
}
|
|
5
|
+
if (typeof ctx.clientX === 'number')
|
|
6
|
+
return ctx;
|
|
5
7
|
if (ctx.target != null)
|
|
6
8
|
return ctx;
|
|
7
9
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveGalleryPreviewContextMenuEvent.js","sourceRoot":"","sources":["../../../src/functions/ui/resolveGalleryPreviewContextMenuEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveGalleryPreviewContextMenuEvent.js","sourceRoot":"","sources":["../../../src/functions/ui/resolveGalleryPreviewContextMenuEvent.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,qCAAqC,CACnD,GAAuC;IAEvC,IAAI,GAAG,CAAC,KAAK,IAAI,IAAI,IAAI,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,IAAI,SAAS,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC;QACjF,OAAO,GAAG,CAAC,KAAK,CAAA;IAClB,CAAC;IACD,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;QAAE,OAAO,GAA4B,CAAA;IACxE,IAAI,GAAG,CAAC,MAAM,IAAI,IAAI;QAAE,OAAO,GAA4B,CAAA;IAC3D,OAAO,SAAS,CAAA;AAClB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function resolveCopyableAbsoluteUrl(text, options) {
|
|
2
|
+
const t = text.trim();
|
|
3
|
+
if (!t)
|
|
4
|
+
return '';
|
|
5
|
+
if (/^https?:\/\//i.test(t))
|
|
6
|
+
return t;
|
|
7
|
+
if (t.startsWith('/')) {
|
|
8
|
+
const base = options?.baseUrl?.replace(/\/$/, '') ?? '';
|
|
9
|
+
if (base)
|
|
10
|
+
return `${base}${t}`;
|
|
11
|
+
const origin = options?.origin?.replace(/\/$/, '') ?? '';
|
|
12
|
+
if (origin)
|
|
13
|
+
return `${origin}${t}`;
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=resolveCopyableAbsoluteUrl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveCopyableAbsoluteUrl.js","sourceRoot":"","sources":["../../../src/functions/url/resolveCopyableAbsoluteUrl.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,0BAA0B,CACxC,IAAY,EACZ,OAA2C;IAE3C,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;IACrB,IAAI,CAAC,CAAC;QAAE,OAAO,EAAE,CAAA;IACjB,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,CAAC,CAAA;IACrC,IAAI,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,GAAG,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;QACvD,IAAI,IAAI;YAAE,OAAO,GAAG,IAAI,GAAG,CAAC,EAAE,CAAA;QAC9B,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;QACxD,IAAI,MAAM;YAAE,OAAO,GAAG,MAAM,GAAG,CAAC,EAAE,CAAA;IACpC,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { clearWalletPayPasswordSetInSession, isWalletPayPasswordSetInSession, markWalletPayPasswordSetInSession, } from './walletPayPasswordSessionState.js';
|
|
2
|
+
function readBrowserSessionStorage() {
|
|
3
|
+
if (typeof globalThis === 'undefined')
|
|
4
|
+
return null;
|
|
5
|
+
return globalThis.sessionStorage ?? null;
|
|
6
|
+
}
|
|
7
|
+
export function createBrowserWalletPayPasswordSessionAccess(getUserId) {
|
|
8
|
+
return {
|
|
9
|
+
markSet() {
|
|
10
|
+
const uid = getUserId()?.trim();
|
|
11
|
+
const session = readBrowserSessionStorage();
|
|
12
|
+
if (!uid || !session)
|
|
13
|
+
return;
|
|
14
|
+
markWalletPayPasswordSetInSession(uid, session);
|
|
15
|
+
},
|
|
16
|
+
isSet() {
|
|
17
|
+
const uid = getUserId()?.trim();
|
|
18
|
+
const session = readBrowserSessionStorage();
|
|
19
|
+
if (!uid || !session)
|
|
20
|
+
return false;
|
|
21
|
+
return isWalletPayPasswordSetInSession(uid, session);
|
|
22
|
+
},
|
|
23
|
+
clear() {
|
|
24
|
+
const uid = getUserId()?.trim();
|
|
25
|
+
const session = readBrowserSessionStorage();
|
|
26
|
+
if (!uid || !session)
|
|
27
|
+
return;
|
|
28
|
+
clearWalletPayPasswordSetInSession(uid, session);
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=createBrowserWalletPayPasswordSessionAccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createBrowserWalletPayPasswordSessionAccess.js","sourceRoot":"","sources":["../../../src/functions/wallet/createBrowserWalletPayPasswordSessionAccess.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kCAAkC,EAClC,+BAA+B,EAC/B,iCAAiC,GAClC,MAAM,iCAAiC,CAAA;AAExC,SAAS,yBAAyB;IAChC,IAAI,OAAO,UAAU,KAAK,WAAW;QAAE,OAAO,IAAI,CAAA;IAClD,OAAQ,UAAsD,CAAC,cAAc,IAAI,IAAI,CAAA;AACvF,CAAC;AAGD,MAAM,UAAU,2CAA2C,CAAC,SAA8B;IACxF,OAAO;QACL,OAAO;YACL,MAAM,GAAG,GAAG,SAAS,EAAE,EAAE,IAAI,EAAE,CAAA;YAC/B,MAAM,OAAO,GAAG,yBAAyB,EAAE,CAAA;YAC3C,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO;gBAAE,OAAM;YAC5B,iCAAiC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QACjD,CAAC;QACD,KAAK;YACH,MAAM,GAAG,GAAG,SAAS,EAAE,EAAE,IAAI,EAAE,CAAA;YAC/B,MAAM,OAAO,GAAG,yBAAyB,EAAE,CAAA;YAC3C,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO;gBAAE,OAAO,KAAK,CAAA;YAClC,OAAO,+BAA+B,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QACtD,CAAC;QACD,KAAK;YACH,MAAM,GAAG,GAAG,SAAS,EAAE,EAAE,IAAI,EAAE,CAAA;YAC/B,MAAM,OAAO,GAAG,yBAAyB,EAAE,CAAA;YAC3C,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO;gBAAE,OAAM;YAC5B,kCAAkC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QAClD,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const TRC20_USDT_CONTRACT = 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t';
|
|
2
|
+
export function buildTrc20AddressQrPayload(address) {
|
|
3
|
+
return address.trim();
|
|
4
|
+
}
|
|
5
|
+
function usdtToSmallestUnit(amount) {
|
|
6
|
+
const [wholePart = '0', frac = ''] = amount.trim().split('.');
|
|
7
|
+
const padded = (frac + '000000').slice(0, 6);
|
|
8
|
+
const micro = BigInt(wholePart) * 1000000n + BigInt(padded);
|
|
9
|
+
return micro.toString();
|
|
10
|
+
}
|
|
11
|
+
export function buildTrc20UsdtPaymentUri(address, amountUsdt) {
|
|
12
|
+
const amount = usdtToSmallestUnit(amountUsdt);
|
|
13
|
+
const params = `contract=${encodeURIComponent(TRC20_USDT_CONTRACT)}&amount=${encodeURIComponent(amount)}`;
|
|
14
|
+
return `tron:${address.trim()}?${params}`;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=trc20PayQr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trc20PayQr.js","sourceRoot":"","sources":["../../../src/functions/wallet/trc20PayQr.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,mBAAmB,GAAG,oCAAoC,CAAA;AAGvE,MAAM,UAAU,0BAA0B,CAAC,OAAe;IACxD,OAAO,OAAO,CAAC,IAAI,EAAE,CAAA;AACvB,CAAC;AAED,SAAS,kBAAkB,CAAC,MAAc;IACxC,MAAM,CAAC,SAAS,GAAG,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAC7D,MAAM,MAAM,GAAG,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAC5C,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,QAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;IAC7D,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAA;AACzB,CAAC;AAGD,MAAM,UAAU,wBAAwB,CAAC,OAAe,EAAE,UAAkB;IAC1E,MAAM,MAAM,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAA;IAC7C,MAAM,MAAM,GAAG,YAAY,kBAAkB,CAAC,mBAAmB,CAAC,WAAW,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAA;IACzG,OAAO,QAAQ,OAAO,CAAC,IAAI,EAAE,IAAI,MAAM,EAAE,CAAA;AAC3C,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { WalletLedgerCategory, WalletLedgerCategoryOption, WalletLedgerCryptoTransaction, WalletLedgerFiatTransaction, WalletLedgerMonthStats } from '../../../types/wallet-ledger';
|
|
2
|
+
export declare const FIAT_LEDGER_CATEGORIES: WalletLedgerCategoryOption[];
|
|
3
|
+
export declare const CRYPTO_LEDGER_CATEGORIES: WalletLedgerCategoryOption[];
|
|
4
|
+
export declare function getWalletLedgerCategoryButtonLabel(categories: WalletLedgerCategoryOption[], active: WalletLedgerCategory): string;
|
|
5
|
+
export declare function walletLedgerCategoryToApiQuery(category: WalletLedgerCategory): {
|
|
6
|
+
type?: string;
|
|
7
|
+
source?: string;
|
|
8
|
+
clientOnly?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function walletLedgerMatchesFiatCategory(tx: WalletLedgerFiatTransaction, category: WalletLedgerCategory): boolean;
|
|
11
|
+
export declare function walletLedgerMatchesCryptoCategory(tx: WalletLedgerCryptoTransaction, category: WalletLedgerCategory): boolean;
|
|
12
|
+
export declare function formatWalletLedgerFiatTitle(tx: WalletLedgerFiatTransaction): string;
|
|
13
|
+
export declare function formatWalletLedgerCryptoTitle(tx: WalletLedgerCryptoTransaction): string;
|
|
14
|
+
export declare function resolveWalletLedgerTxCreatedAt(tx: {
|
|
15
|
+
created_at?: string;
|
|
16
|
+
createdAt?: string;
|
|
17
|
+
createTime?: number | string;
|
|
18
|
+
_createTime?: number | string;
|
|
19
|
+
}): string | undefined;
|
|
20
|
+
export declare function formatWalletLedgerMonthKey(iso?: string): string;
|
|
21
|
+
export declare function formatWalletLedgerWeChatTime(iso?: string): string;
|
|
22
|
+
export declare function formatWalletLedgerRowTime(tx: {
|
|
23
|
+
created_at?: string;
|
|
24
|
+
createdAt?: string;
|
|
25
|
+
createTime?: number | string;
|
|
26
|
+
_createTime?: number | string;
|
|
27
|
+
}): string;
|
|
28
|
+
export declare function formatWalletLedgerTime(iso?: string): string;
|
|
29
|
+
export declare function summarizeWalletLedgerFiatMonth(items: WalletLedgerFiatTransaction[]): WalletLedgerMonthStats;
|
|
30
|
+
export declare function summarizeWalletLedgerCryptoMonth(items: WalletLedgerCryptoTransaction[]): WalletLedgerMonthStats;
|
|
31
|
+
export declare function matchesWalletLedgerSearch(tx: {
|
|
32
|
+
description?: string;
|
|
33
|
+
related_id?: string;
|
|
34
|
+
source?: string;
|
|
35
|
+
}, title: string, keyword: string): boolean;
|
|
36
|
+
export declare function groupWalletLedgerByMonth<T extends {
|
|
37
|
+
created_at?: string;
|
|
38
|
+
createdAt?: string;
|
|
39
|
+
createTime?: number | string;
|
|
40
|
+
_createTime?: number | string;
|
|
41
|
+
}>(items: T[]): {
|
|
42
|
+
month: string;
|
|
43
|
+
items: T[];
|
|
44
|
+
}[];
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
export const FIAT_LEDGER_CATEGORIES = [
|
|
2
|
+
{ id: 'all', label: '全部账单' },
|
|
3
|
+
{ id: 'recharge', label: '充值' },
|
|
4
|
+
{ id: 'transfer', label: '转账' },
|
|
5
|
+
{ id: 'red_envelope', label: '红包' },
|
|
6
|
+
{ id: 'lottery', label: '彩票' },
|
|
7
|
+
{ id: 'refund', label: '退款' },
|
|
8
|
+
{ id: 'other', label: '其他' },
|
|
9
|
+
];
|
|
10
|
+
export const CRYPTO_LEDGER_CATEGORIES = [
|
|
11
|
+
{ id: 'all', label: '全部账单' },
|
|
12
|
+
{ id: 'recharge', label: '充值' },
|
|
13
|
+
{ id: 'transfer', label: '转出' },
|
|
14
|
+
{ id: 'other', label: '其他' },
|
|
15
|
+
];
|
|
16
|
+
export function getWalletLedgerCategoryButtonLabel(categories, active) {
|
|
17
|
+
if (active === 'all')
|
|
18
|
+
return '全部账单';
|
|
19
|
+
const found = categories.find((c) => c.id === active);
|
|
20
|
+
return found ? `${found.label}账单` : '全部账单';
|
|
21
|
+
}
|
|
22
|
+
const FIAT_SOURCE_BY_CATEGORY = {
|
|
23
|
+
recharge: 'recharge',
|
|
24
|
+
transfer: 'im_transfer',
|
|
25
|
+
red_envelope: 'im_red_envelope',
|
|
26
|
+
lottery: 'lottery',
|
|
27
|
+
};
|
|
28
|
+
const KNOWN_FIAT_SOURCES = new Set([
|
|
29
|
+
'recharge',
|
|
30
|
+
'im_transfer',
|
|
31
|
+
'im_red_envelope',
|
|
32
|
+
'lottery',
|
|
33
|
+
]);
|
|
34
|
+
const TYPE_LABELS = {
|
|
35
|
+
credit: '入账',
|
|
36
|
+
debit: '支出',
|
|
37
|
+
refund: '退款',
|
|
38
|
+
freeze: '冻结',
|
|
39
|
+
unfreeze: '解冻',
|
|
40
|
+
};
|
|
41
|
+
const SOURCE_LABELS = {
|
|
42
|
+
recharge: '充值',
|
|
43
|
+
im_transfer: '转账',
|
|
44
|
+
im_red_envelope: '红包',
|
|
45
|
+
lottery: '彩票',
|
|
46
|
+
deposit: 'USDT 充值',
|
|
47
|
+
withdraw: 'USDT 转出',
|
|
48
|
+
};
|
|
49
|
+
export function walletLedgerCategoryToApiQuery(category) {
|
|
50
|
+
if (category === 'all')
|
|
51
|
+
return {};
|
|
52
|
+
if (category === 'refund')
|
|
53
|
+
return { type: 'refund' };
|
|
54
|
+
if (category === 'other')
|
|
55
|
+
return { clientOnly: true };
|
|
56
|
+
const source = FIAT_SOURCE_BY_CATEGORY[category];
|
|
57
|
+
if (source)
|
|
58
|
+
return { source };
|
|
59
|
+
return {};
|
|
60
|
+
}
|
|
61
|
+
export function walletLedgerMatchesFiatCategory(tx, category) {
|
|
62
|
+
if (category === 'all')
|
|
63
|
+
return true;
|
|
64
|
+
if (category === 'refund')
|
|
65
|
+
return tx.type === 'refund';
|
|
66
|
+
if (category === 'other') {
|
|
67
|
+
return !KNOWN_FIAT_SOURCES.has(tx.source) && tx.type !== 'refund';
|
|
68
|
+
}
|
|
69
|
+
const source = FIAT_SOURCE_BY_CATEGORY[category];
|
|
70
|
+
return source != null && tx.source === source;
|
|
71
|
+
}
|
|
72
|
+
export function walletLedgerMatchesCryptoCategory(tx, category) {
|
|
73
|
+
if (category === 'all')
|
|
74
|
+
return true;
|
|
75
|
+
if (category === 'recharge') {
|
|
76
|
+
return tx.direction === 'in' && (tx.source === 'deposit' || tx.type === 'credit');
|
|
77
|
+
}
|
|
78
|
+
if (category === 'transfer') {
|
|
79
|
+
return tx.direction === 'out' || tx.source === 'withdraw';
|
|
80
|
+
}
|
|
81
|
+
if (category === 'other') {
|
|
82
|
+
const known = tx.source === 'deposit' ||
|
|
83
|
+
tx.source === 'withdraw' ||
|
|
84
|
+
tx.type === 'credit' ||
|
|
85
|
+
tx.type === 'debit';
|
|
86
|
+
return !known;
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
export function formatWalletLedgerFiatTitle(tx) {
|
|
91
|
+
if (tx.description?.trim())
|
|
92
|
+
return tx.description.trim();
|
|
93
|
+
const sourceLabel = SOURCE_LABELS[tx.source] ?? tx.source;
|
|
94
|
+
if (tx.source === 'im_transfer') {
|
|
95
|
+
return tx.direction === 'in' ? '收到转账' : '发起转账';
|
|
96
|
+
}
|
|
97
|
+
if (tx.source === 'im_red_envelope') {
|
|
98
|
+
if (tx.type === 'freeze')
|
|
99
|
+
return '发红包';
|
|
100
|
+
if (tx.type === 'unfreeze')
|
|
101
|
+
return '红包退回';
|
|
102
|
+
return tx.direction === 'in' ? '领取红包' : '红包';
|
|
103
|
+
}
|
|
104
|
+
if (tx.source === 'recharge')
|
|
105
|
+
return '余额充值';
|
|
106
|
+
if (tx.source === 'lottery') {
|
|
107
|
+
return tx.direction === 'in' ? '彩票中奖' : '彩票投注';
|
|
108
|
+
}
|
|
109
|
+
const typeLabel = TYPE_LABELS[tx.type] ?? tx.type;
|
|
110
|
+
return `${sourceLabel}${typeLabel !== sourceLabel ? ` · ${typeLabel}` : ''}`;
|
|
111
|
+
}
|
|
112
|
+
export function formatWalletLedgerCryptoTitle(tx) {
|
|
113
|
+
if (tx.description?.trim())
|
|
114
|
+
return tx.description.trim();
|
|
115
|
+
if (tx.source === 'deposit')
|
|
116
|
+
return 'USDT 充值';
|
|
117
|
+
if (tx.source === 'withdraw')
|
|
118
|
+
return 'USDT 转出';
|
|
119
|
+
const typeLabel = TYPE_LABELS[tx.type] ?? tx.type;
|
|
120
|
+
const sourceLabel = SOURCE_LABELS[tx.source] ?? tx.source;
|
|
121
|
+
return `${sourceLabel}${typeLabel !== sourceLabel ? ` · ${typeLabel}` : ''}`;
|
|
122
|
+
}
|
|
123
|
+
export function resolveWalletLedgerTxCreatedAt(tx) {
|
|
124
|
+
const candidates = [
|
|
125
|
+
tx.created_at,
|
|
126
|
+
tx.createdAt,
|
|
127
|
+
tx.createTime,
|
|
128
|
+
tx._createTime,
|
|
129
|
+
];
|
|
130
|
+
for (const raw of candidates) {
|
|
131
|
+
if (typeof raw === 'string' && raw.trim())
|
|
132
|
+
return raw.trim();
|
|
133
|
+
if (typeof raw === 'number' && Number.isFinite(raw)) {
|
|
134
|
+
const ms = raw < 1_000_000_000_000 ? raw * 1000 : raw;
|
|
135
|
+
const d = new Date(ms);
|
|
136
|
+
if (!Number.isNaN(d.getTime()))
|
|
137
|
+
return d.toISOString();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return undefined;
|
|
141
|
+
}
|
|
142
|
+
export function formatWalletLedgerMonthKey(iso) {
|
|
143
|
+
const resolved = iso ? resolveWalletLedgerTxCreatedAt({ created_at: iso }) ?? iso : undefined;
|
|
144
|
+
if (!resolved)
|
|
145
|
+
return '未知日期';
|
|
146
|
+
const d = new Date(resolved);
|
|
147
|
+
if (Number.isNaN(d.getTime()))
|
|
148
|
+
return '未知日期';
|
|
149
|
+
return `${d.getFullYear()}年${d.getMonth() + 1}月`;
|
|
150
|
+
}
|
|
151
|
+
export function formatWalletLedgerWeChatTime(iso) {
|
|
152
|
+
if (!iso)
|
|
153
|
+
return '';
|
|
154
|
+
const d = new Date(iso);
|
|
155
|
+
if (Number.isNaN(d.getTime()))
|
|
156
|
+
return iso;
|
|
157
|
+
const pad = (n) => String(n).padStart(2, '0');
|
|
158
|
+
return `${d.getMonth() + 1}月${d.getDate()}日 ${pad(d.getHours())}:${pad(d.getMinutes())}`;
|
|
159
|
+
}
|
|
160
|
+
export function formatWalletLedgerRowTime(tx) {
|
|
161
|
+
const iso = resolveWalletLedgerTxCreatedAt(tx);
|
|
162
|
+
if (!iso)
|
|
163
|
+
return '';
|
|
164
|
+
return formatWalletLedgerWeChatTime(iso);
|
|
165
|
+
}
|
|
166
|
+
export function formatWalletLedgerTime(iso) {
|
|
167
|
+
return formatWalletLedgerWeChatTime(iso);
|
|
168
|
+
}
|
|
169
|
+
export function summarizeWalletLedgerFiatMonth(items) {
|
|
170
|
+
let expense = 0;
|
|
171
|
+
let income = 0;
|
|
172
|
+
for (const tx of items) {
|
|
173
|
+
if (tx.direction === 'out')
|
|
174
|
+
expense += tx.amount;
|
|
175
|
+
else
|
|
176
|
+
income += tx.amount;
|
|
177
|
+
}
|
|
178
|
+
return { expense, income };
|
|
179
|
+
}
|
|
180
|
+
export function summarizeWalletLedgerCryptoMonth(items) {
|
|
181
|
+
let expense = 0;
|
|
182
|
+
let income = 0;
|
|
183
|
+
for (const tx of items) {
|
|
184
|
+
const n = Number(tx.amount);
|
|
185
|
+
if (!Number.isFinite(n))
|
|
186
|
+
continue;
|
|
187
|
+
if (tx.direction === 'out')
|
|
188
|
+
expense += n;
|
|
189
|
+
else
|
|
190
|
+
income += n;
|
|
191
|
+
}
|
|
192
|
+
return { expense, income };
|
|
193
|
+
}
|
|
194
|
+
export function matchesWalletLedgerSearch(tx, title, keyword) {
|
|
195
|
+
const q = keyword.trim().toLowerCase();
|
|
196
|
+
if (!q)
|
|
197
|
+
return true;
|
|
198
|
+
const hay = [title, tx.description, tx.related_id, tx.source]
|
|
199
|
+
.filter(Boolean)
|
|
200
|
+
.join(' ')
|
|
201
|
+
.toLowerCase();
|
|
202
|
+
return hay.includes(q);
|
|
203
|
+
}
|
|
204
|
+
export function groupWalletLedgerByMonth(items) {
|
|
205
|
+
const map = new Map();
|
|
206
|
+
for (const item of items) {
|
|
207
|
+
const key = formatWalletLedgerMonthKey(resolveWalletLedgerTxCreatedAt(item));
|
|
208
|
+
const list = map.get(key);
|
|
209
|
+
if (list)
|
|
210
|
+
list.push(item);
|
|
211
|
+
else
|
|
212
|
+
map.set(key, [item]);
|
|
213
|
+
}
|
|
214
|
+
return [...map.entries()].map(([month, grouped]) => ({
|
|
215
|
+
month,
|
|
216
|
+
items: [...grouped].sort((a, b) => {
|
|
217
|
+
const ta = new Date(resolveWalletLedgerTxCreatedAt(a) ?? 0).getTime();
|
|
218
|
+
const tb = new Date(resolveWalletLedgerTxCreatedAt(b) ?? 0).getTime();
|
|
219
|
+
return tb - ta;
|
|
220
|
+
}),
|
|
221
|
+
}));
|
|
222
|
+
}
|
|
223
|
+
//# sourceMappingURL=walletLedgerUi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletLedgerUi.js","sourceRoot":"","sources":["../../../src/functions/wallet/walletLedgerUi.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,sBAAsB,GAAiC;IAClE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;IAC5B,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE;IAC/B,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE;IAC/B,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE;IACnC,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE;IAC9B,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;IAC7B,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE;CAC7B,CAAA;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAiC;IACpE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;IAC5B,EAAE,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AC,CAAC,CAAC,OAAO,EAAE,CAAA;YACrE,MAAM,EAAE,GAAG,IAAI,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,CAAA;YACrE,OAAO,EAAE,GAAG,EAAE,CAAA;QAChB,CAAC,CAAC;KACH,CAAC,CAAC,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type SessionStorageLike = {
|
|
2
|
+
getItem(key: string): string | null;
|
|
3
|
+
setItem(key: string, value: string): void;
|
|
4
|
+
removeItem(key: string): void;
|
|
5
|
+
};
|
|
6
|
+
export declare function markWalletPayPasswordSetInSession(uid: string, session: SessionStorageLike): void;
|
|
7
|
+
export declare function isWalletPayPasswordSetInSession(uid: string, session: SessionStorageLike): boolean;
|
|
8
|
+
export declare function clearWalletPayPasswordSetInSession(uid: string, session: SessionStorageLike): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { walletPayPasswordSetSessionKey } from '../wallet/walletPayPasswordUi.js';
|
|
2
|
+
export function markWalletPayPasswordSetInSession(uid, session) {
|
|
3
|
+
const id = uid.trim();
|
|
4
|
+
if (!id)
|
|
5
|
+
return;
|
|
6
|
+
session.setItem(walletPayPasswordSetSessionKey(id), '1');
|
|
7
|
+
}
|
|
8
|
+
export function isWalletPayPasswordSetInSession(uid, session) {
|
|
9
|
+
const id = uid.trim();
|
|
10
|
+
if (!id)
|
|
11
|
+
return false;
|
|
12
|
+
return session.getItem(walletPayPasswordSetSessionKey(id)) === '1';
|
|
13
|
+
}
|
|
14
|
+
export function clearWalletPayPasswordSetInSession(uid, session) {
|
|
15
|
+
const id = uid.trim();
|
|
16
|
+
if (!id)
|
|
17
|
+
return;
|
|
18
|
+
session.removeItem(walletPayPasswordSetSessionKey(id));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=walletPayPasswordSessionState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletPayPasswordSessionState.js","sourceRoot":"","sources":["../../../src/functions/wallet/walletPayPasswordSessionState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAA;AAQ9E,MAAM,UAAU,iCAAiC,CAC/C,GAAW,EACX,OAA2B;IAE3B,MAAM,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE;QAAE,OAAM;IACf,OAAO,CAAC,OAAO,CAAC,8BAA8B,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAA;AAC1D,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,GAAW,EACX,OAA2B;IAE3B,MAAM,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE;QAAE,OAAO,KAAK,CAAA;IACrB,OAAO,OAAO,CAAC,OAAO,CAAC,8BAA8B,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,CAAA;AACpE,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,GAAW,EACX,OAA2B;IAE3B,MAAM,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE;QAAE,OAAM;IACf,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC,EAAE,CAAC,CAAC,CAAA;AACxD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const WALLET_PAY_PASSWORD_SET_SESSION_KEY_PREFIX = 'chat_wallet_pay_password_set:';
|
|
2
|
+
export function walletPayPasswordSetSessionKey(userId) {
|
|
3
|
+
return `${WALLET_PAY_PASSWORD_SET_SESSION_KEY_PREFIX}${userId.trim()}`;
|
|
4
|
+
}
|
|
5
|
+
export function formatWalletPayPasswordLockedMessage(lockedUntil) {
|
|
6
|
+
if (!lockedUntil)
|
|
7
|
+
return '支付密码已锁定,请稍后再试';
|
|
8
|
+
const until = new Date(lockedUntil);
|
|
9
|
+
if (Number.isNaN(until.getTime()))
|
|
10
|
+
return '支付密码已锁定,请稍后再试';
|
|
11
|
+
const hh = String(until.getHours()).padStart(2, '0');
|
|
12
|
+
const mm = String(until.getMinutes()).padStart(2, '0');
|
|
13
|
+
return `支付密码错误次数过多,请于 ${hh}:${mm} 后再试`;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=walletPayPasswordUi.js.map
|