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.
Files changed (798) hide show
  1. package/dist/constants/aiChatSuggestions.d.ts +3 -0
  2. package/dist/constants/aiChatSuggestions.js +52 -0
  3. package/dist/constants/aiChatSuggestions.js.map +1 -0
  4. package/dist/constants/chatCommunityMedia.d.ts +2 -0
  5. package/dist/constants/chatCommunityMedia.js +3 -0
  6. package/dist/constants/chatCommunityMedia.js.map +1 -0
  7. package/dist/constants/chatConversationBackground.d.ts +10 -0
  8. package/dist/constants/chatConversationBackground.js +41 -0
  9. package/dist/constants/chatConversationBackground.js.map +1 -0
  10. package/dist/constants/chatDownloadDirectory.d.ts +1 -0
  11. package/dist/constants/chatDownloadDirectory.js +2 -0
  12. package/dist/constants/chatDownloadDirectory.js.map +1 -0
  13. package/dist/constants/chatFileMessageLocalPath.d.ts +1 -0
  14. package/dist/constants/chatFileMessageLocalPath.js +2 -0
  15. package/dist/constants/chatFileMessageLocalPath.js.map +1 -0
  16. package/dist/constants/chatLayout.d.ts +6 -0
  17. package/dist/constants/chatLayout.js +14 -0
  18. package/dist/constants/chatLayout.js.map +1 -0
  19. package/dist/constants/imStorage.d.ts +1 -0
  20. package/dist/constants/imStorage.js +2 -0
  21. package/dist/constants/imStorage.js.map +1 -0
  22. package/dist/functions/ai/aiAgentToolTimeline.d.ts +16 -0
  23. package/dist/functions/ai/aiAgentToolTimeline.js +18 -0
  24. package/dist/functions/ai/aiAgentToolTimeline.js.map +1 -0
  25. package/dist/functions/ai/aiChatSessionListDom.d.ts +4 -0
  26. package/dist/functions/ai/aiChatSessionListDom.js +32 -0
  27. package/dist/functions/ai/aiChatSessionListDom.js.map +1 -0
  28. package/dist/functions/ai/aiChatSessionOps.d.ts +25 -0
  29. package/dist/functions/ai/aiChatSessionOps.js +36 -0
  30. package/dist/functions/ai/aiChatSessionOps.js.map +1 -0
  31. package/dist/functions/ai/aiChatSessionPins.d.ts +14 -0
  32. package/dist/functions/ai/aiChatSessionPins.js +39 -0
  33. package/dist/functions/ai/aiChatSessionPins.js.map +1 -0
  34. package/dist/functions/ai/aiReplyStreamDisplay.d.ts +27 -0
  35. package/dist/functions/ai/aiReplyStreamDisplay.js +188 -0
  36. package/dist/functions/ai/aiReplyStreamDisplay.js.map +1 -0
  37. package/dist/functions/ai/fetchAiChatSuggestions.d.ts +2 -0
  38. package/dist/functions/ai/fetchAiChatSuggestions.js +16 -0
  39. package/dist/functions/ai/fetchAiChatSuggestions.js.map +1 -0
  40. package/dist/functions/ai/mapAiChatMessagesToImChat.d.ts +7 -0
  41. package/dist/functions/ai/mapAiChatMessagesToImChat.js +22 -0
  42. package/dist/functions/ai/mapAiChatMessagesToImChat.js.map +1 -0
  43. package/dist/functions/array/filterListExcludingIds.d.ts +4 -0
  44. package/dist/functions/array/filterListExcludingIds.js +8 -0
  45. package/dist/functions/array/filterListExcludingIds.js.map +1 -0
  46. package/dist/functions/auth/createAuthClaimsResolver.d.ts +4 -0
  47. package/dist/functions/auth/createAuthClaimsResolver.js +8 -0
  48. package/dist/functions/auth/createAuthClaimsResolver.js.map +1 -0
  49. package/dist/functions/auth/jwtAccessTokenClaims.d.ts +5 -0
  50. package/dist/functions/auth/jwtAccessTokenClaims.js +62 -0
  51. package/dist/functions/auth/jwtAccessTokenClaims.js.map +1 -0
  52. package/dist/functions/binary/arrayBufferToBase64.d.ts +1 -0
  53. package/dist/functions/binary/arrayBufferToBase64.js +13 -0
  54. package/dist/functions/binary/arrayBufferToBase64.js.map +1 -0
  55. package/dist/functions/binary/decodeBase64StringToArrayBuffer.d.ts +1 -0
  56. package/dist/functions/binary/decodeBase64StringToArrayBuffer.js +12 -0
  57. package/dist/functions/binary/decodeBase64StringToArrayBuffer.js.map +1 -0
  58. package/dist/functions/browser/isNonNativeBrowserShell.d.ts +7 -0
  59. package/dist/functions/browser/isNonNativeBrowserShell.js +18 -0
  60. package/dist/functions/browser/isNonNativeBrowserShell.js.map +1 -0
  61. package/dist/functions/browser/readBrowserDetectDeps.d.ts +2 -0
  62. package/dist/functions/browser/readBrowserDetectDeps.js +12 -0
  63. package/dist/functions/browser/readBrowserDetectDeps.js.map +1 -0
  64. package/dist/functions/browser/readBrowserImageCompressDeps.d.ts +2 -0
  65. package/dist/functions/browser/readBrowserImageCompressDeps.js +16 -0
  66. package/dist/functions/browser/readBrowserImageCompressDeps.js.map +1 -0
  67. package/dist/functions/browser/readBrowserOsInfo.d.ts +3 -0
  68. package/dist/functions/browser/readBrowserOsInfo.js +9 -0
  69. package/dist/functions/browser/readBrowserOsInfo.js.map +1 -0
  70. package/dist/functions/browser/requireBrowserLocalStorage.d.ts +2 -0
  71. package/dist/functions/browser/requireBrowserLocalStorage.js +8 -0
  72. package/dist/functions/browser/requireBrowserLocalStorage.js.map +1 -0
  73. package/dist/functions/build/readCapacitorShellExecBuildFlag.d.ts +1 -0
  74. package/dist/functions/build/readCapacitorShellExecBuildFlag.js +5 -0
  75. package/dist/functions/build/readCapacitorShellExecBuildFlag.js.map +1 -0
  76. package/dist/functions/build/readNativeShellBuildFlag.d.ts +1 -0
  77. package/dist/functions/build/readNativeShellBuildFlag.js +5 -0
  78. package/dist/functions/build/readNativeShellBuildFlag.js.map +1 -0
  79. package/dist/functions/build/readTruthyViteEnvFlag.d.ts +1 -0
  80. package/dist/functions/build/readTruthyViteEnvFlag.js +4 -0
  81. package/dist/functions/build/readTruthyViteEnvFlag.js.map +1 -0
  82. package/dist/functions/capacitor/resolveCapacitorSystemBarsStyle.d.ts +2 -0
  83. package/dist/functions/capacitor/resolveCapacitorSystemBarsStyle.js +4 -0
  84. package/dist/functions/capacitor/resolveCapacitorSystemBarsStyle.js.map +1 -0
  85. package/dist/functions/capacitor/shouldAttemptCapacitorShellExecLoad.d.ts +5 -0
  86. package/dist/functions/capacitor/shouldAttemptCapacitorShellExecLoad.js +10 -0
  87. package/dist/functions/capacitor/shouldAttemptCapacitorShellExecLoad.js.map +1 -0
  88. package/dist/functions/chat/chatAppearancePrefs.d.ts +8 -0
  89. package/dist/functions/chat/chatAppearancePrefs.js +31 -0
  90. package/dist/functions/chat/chatAppearancePrefs.js.map +1 -0
  91. package/dist/functions/chat/chatDownloadCompleteToastDsl.d.ts +10 -0
  92. package/dist/functions/chat/chatDownloadCompleteToastDsl.js +12 -0
  93. package/dist/functions/chat/chatDownloadCompleteToastDsl.js.map +1 -0
  94. package/dist/functions/chat/chatDownloadDirectoryPref.d.ts +1 -0
  95. package/dist/functions/chat/chatDownloadDirectoryPref.js +5 -0
  96. package/dist/functions/chat/chatDownloadDirectoryPref.js.map +1 -0
  97. package/dist/functions/chat/chatFileMessageLocalPathStorage.d.ts +8 -0
  98. package/dist/functions/chat/chatFileMessageLocalPathStorage.js +52 -0
  99. package/dist/functions/chat/chatFileMessageLocalPathStorage.js.map +1 -0
  100. package/dist/functions/chat/chatPrefsLocalStorage.d.ts +15 -0
  101. package/dist/functions/chat/chatPrefsLocalStorage.js +34 -0
  102. package/dist/functions/chat/chatPrefsLocalStorage.js.map +1 -0
  103. package/dist/functions/chat/createBrowserChatAppearanceModeAccess.d.ts +5 -0
  104. package/dist/functions/chat/createBrowserChatAppearanceModeAccess.js +19 -0
  105. package/dist/functions/chat/createBrowserChatAppearanceModeAccess.js.map +1 -0
  106. package/dist/functions/chat/createBrowserChatDownloadDirectoryPrefAccess.d.ts +4 -0
  107. package/dist/functions/chat/createBrowserChatDownloadDirectoryPrefAccess.js +20 -0
  108. package/dist/functions/chat/createBrowserChatDownloadDirectoryPrefAccess.js.map +1 -0
  109. package/dist/functions/chat/createBrowserChatFileMessageLocalPathAccess.d.ts +5 -0
  110. package/dist/functions/chat/createBrowserChatFileMessageLocalPathAccess.js +25 -0
  111. package/dist/functions/chat/createBrowserChatFileMessageLocalPathAccess.js.map +1 -0
  112. package/dist/functions/chat/createBrowserChatRootFontSizeAccess.d.ts +6 -0
  113. package/dist/functions/chat/createBrowserChatRootFontSizeAccess.js +29 -0
  114. package/dist/functions/chat/createBrowserChatRootFontSizeAccess.js.map +1 -0
  115. package/dist/functions/cloudDisk/buildCloudDiskFileActionSheetSpecs.d.ts +10 -0
  116. package/dist/functions/cloudDisk/buildCloudDiskFileActionSheetSpecs.js +12 -0
  117. package/dist/functions/cloudDisk/buildCloudDiskFileActionSheetSpecs.js.map +1 -0
  118. package/dist/functions/cloudDisk/buildCloudDiskListTabResult.d.ts +6 -0
  119. package/dist/functions/cloudDisk/buildCloudDiskListTabResult.js +27 -0
  120. package/dist/functions/cloudDisk/buildCloudDiskListTabResult.js.map +1 -0
  121. package/dist/functions/cloudDisk/cloudDiskApiPaths.d.ts +13 -0
  122. package/dist/functions/cloudDisk/cloudDiskApiPaths.js +41 -0
  123. package/dist/functions/cloudDisk/cloudDiskApiPaths.js.map +1 -0
  124. package/dist/functions/cloudDisk/cloudDiskApiRequestBodies.d.ts +26 -0
  125. package/dist/functions/cloudDisk/cloudDiskApiRequestBodies.js +26 -0
  126. package/dist/functions/cloudDisk/cloudDiskApiRequestBodies.js.map +1 -0
  127. package/dist/functions/cloudDisk/cloudDiskApiResponse.d.ts +9 -0
  128. package/dist/functions/cloudDisk/cloudDiskApiResponse.js +54 -0
  129. package/dist/functions/cloudDisk/cloudDiskApiResponse.js.map +1 -0
  130. package/dist/functions/cloudDisk/cloudDiskAsideNav.d.ts +18 -0
  131. package/dist/functions/cloudDisk/cloudDiskAsideNav.js +42 -0
  132. package/dist/functions/cloudDisk/cloudDiskAsideNav.js.map +1 -0
  133. package/dist/functions/cloudDisk/cloudDiskBreadcrumbNav.d.ts +19 -0
  134. package/dist/functions/cloudDisk/cloudDiskBreadcrumbNav.js +37 -0
  135. package/dist/functions/cloudDisk/cloudDiskBreadcrumbNav.js.map +1 -0
  136. package/dist/functions/cloudDisk/cloudDiskDirectUpload.d.ts +30 -0
  137. package/dist/functions/cloudDisk/cloudDiskDirectUpload.js +41 -0
  138. package/dist/functions/cloudDisk/cloudDiskDirectUpload.js.map +1 -0
  139. package/dist/functions/cloudDisk/cloudDiskFilePreviewUi.d.ts +20 -0
  140. package/dist/functions/cloudDisk/cloudDiskFilePreviewUi.js +42 -0
  141. package/dist/functions/cloudDisk/cloudDiskFilePreviewUi.js.map +1 -1
  142. package/dist/functions/cloudDisk/cloudDiskListFilesQuery.d.ts +11 -0
  143. package/dist/functions/cloudDisk/cloudDiskListFilesQuery.js +35 -0
  144. package/dist/functions/cloudDisk/cloudDiskListFilesQuery.js.map +1 -0
  145. package/dist/functions/cloudDisk/cloudDiskListLayoutUi.d.ts +30 -0
  146. package/dist/functions/cloudDisk/cloudDiskListLayoutUi.js +22 -0
  147. package/dist/functions/cloudDisk/cloudDiskListLayoutUi.js.map +1 -0
  148. package/dist/functions/cloudDisk/cloudDiskNodeDragDataTransfer.d.ts +5 -0
  149. package/dist/functions/cloudDisk/cloudDiskNodeDragDataTransfer.js +17 -0
  150. package/dist/functions/cloudDisk/cloudDiskNodeDragDataTransfer.js.map +1 -0
  151. package/dist/functions/cloudDisk/cloudDiskPrivacyLocalStorage.d.ts +9 -0
  152. package/dist/functions/cloudDisk/cloudDiskPrivacyLocalStorage.js +58 -0
  153. package/dist/functions/cloudDisk/cloudDiskPrivacyLocalStorage.js.map +1 -0
  154. package/dist/functions/cloudDisk/cloudDiskQuickAccessStorage.d.ts +13 -0
  155. package/dist/functions/cloudDisk/cloudDiskQuickAccessStorage.js +37 -0
  156. package/dist/functions/cloudDisk/cloudDiskQuickAccessStorage.js.map +1 -0
  157. package/dist/functions/cloudDisk/cloudDiskSelectionFeedback.d.ts +6 -0
  158. package/dist/functions/cloudDisk/cloudDiskSelectionFeedback.js +27 -0
  159. package/dist/functions/cloudDisk/cloudDiskSelectionFeedback.js.map +1 -0
  160. package/dist/functions/cloudDisk/cloudDiskShellNav.d.ts +19 -0
  161. package/dist/functions/cloudDisk/cloudDiskShellNav.js +47 -0
  162. package/dist/functions/cloudDisk/cloudDiskShellNav.js.map +1 -0
  163. package/dist/functions/cloudDisk/cloudDiskUniappFileOpenStrategy.d.ts +3 -0
  164. package/dist/functions/cloudDisk/cloudDiskUniappFileOpenStrategy.js +15 -0
  165. package/dist/functions/cloudDisk/cloudDiskUniappFileOpenStrategy.js.map +1 -0
  166. package/dist/functions/cloudDisk/cloudDiskUniappUi.d.ts +47 -0
  167. package/dist/functions/cloudDisk/cloudDiskUniappUi.js +57 -0
  168. package/dist/functions/cloudDisk/cloudDiskUniappUi.js.map +1 -0
  169. package/dist/functions/cloudDisk/cloudDiskUploadTaskUi.d.ts +2 -0
  170. package/dist/functions/cloudDisk/cloudDiskUploadTaskUi.js +12 -0
  171. package/dist/functions/cloudDisk/cloudDiskUploadTaskUi.js.map +1 -1
  172. package/dist/functions/cloudDisk/collectElementIdsInContentLassoBox.d.ts +19 -0
  173. package/dist/functions/cloudDisk/collectElementIdsInContentLassoBox.js +35 -0
  174. package/dist/functions/cloudDisk/collectElementIdsInContentLassoBox.js.map +1 -0
  175. package/dist/functions/cloudDisk/createBrowserCloudDiskPrivacyStorageAccess.d.ts +8 -0
  176. package/dist/functions/cloudDisk/createBrowserCloudDiskPrivacyStorageAccess.js +37 -0
  177. package/dist/functions/cloudDisk/createBrowserCloudDiskPrivacyStorageAccess.js.map +1 -0
  178. package/dist/functions/cloudDisk/createBrowserCloudDiskQuickAccessStorageAccess.d.ts +6 -0
  179. package/dist/functions/cloudDisk/createBrowserCloudDiskQuickAccessStorageAccess.js +21 -0
  180. package/dist/functions/cloudDisk/createBrowserCloudDiskQuickAccessStorageAccess.js.map +1 -0
  181. package/dist/functions/cloudDisk/executeCloudDiskDirectUpload.d.ts +22 -0
  182. package/dist/functions/cloudDisk/executeCloudDiskDirectUpload.js +59 -0
  183. package/dist/functions/cloudDisk/executeCloudDiskDirectUpload.js.map +1 -0
  184. package/dist/functions/cloudDisk/executeCloudDiskFileDirectUpload.d.ts +30 -0
  185. package/dist/functions/cloudDisk/executeCloudDiskFileDirectUpload.js +27 -0
  186. package/dist/functions/cloudDisk/executeCloudDiskFileDirectUpload.js.map +1 -0
  187. package/dist/functions/cloudDisk/extractCloudDiskPrivateFolderData.d.ts +3 -0
  188. package/dist/functions/cloudDisk/extractCloudDiskPrivateFolderData.js +17 -0
  189. package/dist/functions/cloudDisk/extractCloudDiskPrivateFolderData.js.map +1 -0
  190. package/dist/functions/cloudDisk/filterCloudDiskMoveTargetFolders.d.ts +10 -0
  191. package/dist/functions/cloudDisk/filterCloudDiskMoveTargetFolders.js +12 -0
  192. package/dist/functions/cloudDisk/filterCloudDiskMoveTargetFolders.js.map +1 -0
  193. package/dist/functions/cloudDisk/needsCloudDiskPrivateFolderUnlock.d.ts +2 -0
  194. package/dist/functions/cloudDisk/needsCloudDiskPrivateFolderUnlock.js +8 -0
  195. package/dist/functions/cloudDisk/needsCloudDiskPrivateFolderUnlock.js.map +1 -0
  196. package/dist/functions/cloudDisk/planCloudDiskBatchDownload.d.ts +10 -0
  197. package/dist/functions/cloudDisk/planCloudDiskBatchDownload.js +18 -0
  198. package/dist/functions/cloudDisk/planCloudDiskBatchDownload.js.map +1 -0
  199. package/dist/functions/cloudDisk/resolveCloudDiskNodeIdFromPointerEvent.d.ts +7 -0
  200. package/dist/functions/cloudDisk/resolveCloudDiskNodeIdFromPointerEvent.js +20 -0
  201. package/dist/functions/cloudDisk/resolveCloudDiskNodeIdFromPointerEvent.js.map +1 -0
  202. package/dist/functions/cloudDisk/sortCloudDiskNodes.d.ts +4 -0
  203. package/dist/functions/cloudDisk/sortCloudDiskNodes.js +22 -0
  204. package/dist/functions/cloudDisk/sortCloudDiskNodes.js.map +1 -0
  205. package/dist/functions/dom/domSelectionInElement.d.ts +4 -0
  206. package/dist/functions/dom/domSelectionInElement.js +39 -0
  207. package/dist/functions/dom/domSelectionInElement.js.map +1 -0
  208. package/dist/functions/dom/executeCopyTextToClipboard.d.ts +18 -0
  209. package/dist/functions/dom/executeCopyTextToClipboard.js +28 -0
  210. package/dist/functions/dom/executeCopyTextToClipboard.js.map +1 -0
  211. package/dist/functions/dom/fetchBlobFromUrl.d.ts +6 -0
  212. package/dist/functions/dom/fetchBlobFromUrl.js +27 -0
  213. package/dist/functions/dom/fetchBlobFromUrl.js.map +1 -0
  214. package/dist/functions/dom/imageBlobToPng.d.ts +6 -0
  215. package/dist/functions/dom/imageBlobToPng.js +68 -0
  216. package/dist/functions/dom/imageBlobToPng.js.map +1 -0
  217. package/dist/functions/dom/resolveChatMessageImageFromContextMenu.d.ts +3 -0
  218. package/dist/functions/dom/resolveChatMessageImageFromContextMenu.js +17 -0
  219. package/dist/functions/dom/resolveChatMessageImageFromContextMenu.js.map +1 -0
  220. package/dist/functions/dom/writeImageBlobToClipboard.d.ts +7 -0
  221. package/dist/functions/dom/writeImageBlobToClipboard.js +40 -0
  222. package/dist/functions/dom/writeImageBlobToClipboard.js.map +1 -0
  223. package/dist/functions/download/adaptDownloadDispatcherForUrlFeedback.d.ts +9 -0
  224. package/dist/functions/download/adaptDownloadDispatcherForUrlFeedback.js +31 -0
  225. package/dist/functions/download/adaptDownloadDispatcherForUrlFeedback.js.map +1 -0
  226. package/dist/functions/download/buildCapacitorDownloadRelativePath.d.ts +1 -0
  227. package/dist/functions/download/buildCapacitorDownloadRelativePath.js +6 -0
  228. package/dist/functions/download/buildCapacitorDownloadRelativePath.js.map +1 -0
  229. package/dist/functions/download/canUseElectronHttpDownload.d.ts +5 -0
  230. package/dist/functions/download/canUseElectronHttpDownload.js +9 -0
  231. package/dist/functions/download/canUseElectronHttpDownload.js.map +1 -0
  232. package/dist/functions/download/chatFileMessageDownloadProgress.d.ts +14 -0
  233. package/dist/functions/download/chatFileMessageDownloadProgress.js +36 -0
  234. package/dist/functions/download/chatFileMessageDownloadProgress.js.map +1 -0
  235. package/dist/functions/download/chatInlineAttachmentDownloadProgress.d.ts +7 -0
  236. package/dist/functions/download/chatInlineAttachmentDownloadProgress.js +19 -0
  237. package/dist/functions/download/chatInlineAttachmentDownloadProgress.js.map +1 -0
  238. package/dist/functions/download/createBrowserDownloadDepsFromGlobalThis.d.ts +2 -0
  239. package/dist/functions/download/createBrowserDownloadDepsFromGlobalThis.js +31 -0
  240. package/dist/functions/download/createBrowserDownloadDepsFromGlobalThis.js.map +1 -0
  241. package/dist/functions/download/createEffectiveDownloadDirectoryResolver.d.ts +10 -0
  242. package/dist/functions/download/createEffectiveDownloadDirectoryResolver.js +30 -0
  243. package/dist/functions/download/createEffectiveDownloadDirectoryResolver.js.map +1 -0
  244. package/dist/functions/download/executeChatDownloadByUrl.d.ts +24 -0
  245. package/dist/functions/download/executeChatDownloadByUrl.js +42 -0
  246. package/dist/functions/download/executeChatDownloadByUrl.js.map +1 -0
  247. package/dist/functions/download/executeChatInlineAttachmentDownload.d.ts +23 -0
  248. package/dist/functions/download/executeChatInlineAttachmentDownload.js +54 -0
  249. package/dist/functions/download/executeChatInlineAttachmentDownload.js.map +1 -0
  250. package/dist/functions/download/executeDownloadInCapacitorAndroid.d.ts +26 -0
  251. package/dist/functions/download/executeDownloadInCapacitorAndroid.js +102 -0
  252. package/dist/functions/download/executeDownloadInCapacitorAndroid.js.map +1 -0
  253. package/dist/functions/download/executeDownloadInElectron.d.ts +20 -0
  254. package/dist/functions/download/executeDownloadInElectron.js +53 -0
  255. package/dist/functions/download/executeDownloadInElectron.js.map +1 -0
  256. package/dist/functions/download/executeDownloadUrlWithFeedback.d.ts +27 -0
  257. package/dist/functions/download/executeDownloadUrlWithFeedback.js +39 -0
  258. package/dist/functions/download/executeDownloadUrlWithFeedback.js.map +1 -0
  259. package/dist/functions/download/executeRevealChatLocalFile.d.ts +10 -0
  260. package/dist/functions/download/executeRevealChatLocalFile.js +24 -0
  261. package/dist/functions/download/executeRevealChatLocalFile.js.map +1 -0
  262. package/dist/functions/download/isHttpDownloadUrl.d.ts +1 -0
  263. package/dist/functions/download/isHttpDownloadUrl.js +5 -0
  264. package/dist/functions/download/isHttpDownloadUrl.js.map +1 -0
  265. package/dist/functions/download/mergeDownloadDirectoryPrefIntoOptions.d.ts +5 -0
  266. package/dist/functions/download/mergeDownloadDirectoryPrefIntoOptions.js +15 -0
  267. package/dist/functions/download/mergeDownloadDirectoryPrefIntoOptions.js.map +1 -0
  268. package/dist/functions/download/mergeElectronDefaultDownloadDirectoryOptions.d.ts +6 -0
  269. package/dist/functions/download/mergeElectronDefaultDownloadDirectoryOptions.js +18 -0
  270. package/dist/functions/download/mergeElectronDefaultDownloadDirectoryOptions.js.map +1 -0
  271. package/dist/functions/download/newDownloadId.d.ts +1 -0
  272. package/dist/functions/download/newDownloadId.js +6 -0
  273. package/dist/functions/download/newDownloadId.js.map +1 -0
  274. package/dist/functions/download/readElectronSystemDefaultDownloadDirectory.d.ts +4 -0
  275. package/dist/functions/download/readElectronSystemDefaultDownloadDirectory.js +9 -0
  276. package/dist/functions/download/readElectronSystemDefaultDownloadDirectory.js.map +1 -0
  277. package/dist/functions/download/shouldTrackChatFileMessageDownload.d.ts +7 -0
  278. package/dist/functions/download/shouldTrackChatFileMessageDownload.js +14 -0
  279. package/dist/functions/download/shouldTrackChatFileMessageDownload.js.map +1 -0
  280. package/dist/functions/download/shouldTrackChatInlineAttachmentDownload.d.ts +6 -0
  281. package/dist/functions/download/shouldTrackChatInlineAttachmentDownload.js +12 -0
  282. package/dist/functions/download/shouldTrackChatInlineAttachmentDownload.js.map +1 -0
  283. package/dist/functions/im/alignActiveImConversationSelection.d.ts +22 -0
  284. package/dist/functions/im/alignActiveImConversationSelection.js +66 -0
  285. package/dist/functions/im/alignActiveImConversationSelection.js.map +1 -0
  286. package/dist/functions/im/assignChatConversationToWindowLocation.d.ts +8 -0
  287. package/dist/functions/im/assignChatConversationToWindowLocation.js +18 -0
  288. package/dist/functions/im/assignChatConversationToWindowLocation.js.map +1 -0
  289. package/dist/functions/im/buildChatConversationBackgroundMediaBlobRecord.d.ts +12 -0
  290. package/dist/functions/im/buildChatConversationBackgroundMediaBlobRecord.js +20 -0
  291. package/dist/functions/im/buildChatConversationBackgroundMediaBlobRecord.js.map +1 -0
  292. package/dist/functions/im/buildConversationListAssemblyOpts.d.ts +10 -0
  293. package/dist/functions/im/buildConversationListAssemblyOpts.js +9 -0
  294. package/dist/functions/im/buildConversationListAssemblyOpts.js.map +1 -0
  295. package/dist/functions/im/buildConversationListUiContextFromDexieSidecars.d.ts +13 -0
  296. package/dist/functions/im/buildConversationListUiContextFromDexieSidecars.js +13 -0
  297. package/dist/functions/im/buildConversationListUiContextFromDexieSidecars.js.map +1 -0
  298. package/dist/functions/im/buildConversationTailReconcileUpdate.d.ts +5 -0
  299. package/dist/functions/im/buildConversationTailReconcileUpdate.js +18 -0
  300. package/dist/functions/im/buildConversationTailReconcileUpdate.js.map +1 -0
  301. package/dist/functions/im/buildFinalizedOutboundDraftMessage.d.ts +2 -0
  302. package/dist/functions/im/buildFinalizedOutboundDraftMessage.js +22 -0
  303. package/dist/functions/im/buildFinalizedOutboundDraftMessage.js.map +1 -0
  304. package/dist/functions/im/buildImOutboundFailurePatchWithRetry.d.ts +2 -0
  305. package/dist/functions/im/buildImOutboundFailurePatchWithRetry.js +21 -0
  306. package/dist/functions/im/buildImOutboundFailurePatchWithRetry.js.map +1 -0
  307. package/dist/functions/im/buildImOutboundSendPayload.d.ts +20 -0
  308. package/dist/functions/im/buildImOutboundSendPayload.js +16 -0
  309. package/dist/functions/im/buildImOutboundSendPayload.js.map +1 -0
  310. package/dist/functions/im/buildImOutboundSendingStatusPatch.d.ts +2 -0
  311. package/dist/functions/im/buildImOutboundSendingStatusPatch.js +13 -0
  312. package/dist/functions/im/buildImOutboundSendingStatusPatch.js.map +1 -0
  313. package/dist/functions/im/buildLocalMediaOutboundDraftMessage.d.ts +12 -0
  314. package/dist/functions/im/buildLocalMediaOutboundDraftMessage.js +26 -0
  315. package/dist/functions/im/buildLocalMediaOutboundDraftMessage.js.map +1 -0
  316. package/dist/functions/im/buildMediaOutboundRegisterMergedMessage.d.ts +9 -0
  317. package/dist/functions/im/buildMediaOutboundRegisterMergedMessage.js +19 -0
  318. package/dist/functions/im/buildMediaOutboundRegisterMergedMessage.js.map +1 -0
  319. package/dist/functions/im/buildMediaUploadFailurePatch.d.ts +6 -0
  320. package/dist/functions/im/buildMediaUploadFailurePatch.js +17 -0
  321. package/dist/functions/im/buildMediaUploadFailurePatch.js.map +1 -0
  322. package/dist/functions/im/buildMislabeledDeliveredMediaRepairPatch.d.ts +2 -0
  323. package/dist/functions/im/buildMislabeledDeliveredMediaRepairPatch.js +20 -0
  324. package/dist/functions/im/buildMislabeledDeliveredMediaRepairPatch.js.map +1 -0
  325. package/dist/functions/im/buildQueuedOutboundDraftImMessage.d.ts +11 -0
  326. package/dist/functions/im/buildQueuedOutboundDraftImMessage.js +21 -0
  327. package/dist/functions/im/buildQueuedOutboundDraftImMessage.js.map +1 -0
  328. package/dist/functions/im/buildRecentImMessagesWindow.d.ts +2 -0
  329. package/dist/functions/im/buildRecentImMessagesWindow.js +21 -0
  330. package/dist/functions/im/buildRecentImMessagesWindow.js.map +1 -0
  331. package/dist/functions/im/buildSelectConversationUiState.d.ts +9 -0
  332. package/dist/functions/im/buildSelectConversationUiState.js +13 -0
  333. package/dist/functions/im/buildSelectConversationUiState.js.map +1 -0
  334. package/dist/functions/im/canUserDeleteImChatMessage.d.ts +4 -0
  335. package/dist/functions/im/canUserDeleteImChatMessage.js +22 -0
  336. package/dist/functions/im/canUserDeleteImChatMessage.js.map +1 -0
  337. package/dist/functions/im/chatMessageBubbleDom.d.ts +11 -0
  338. package/dist/functions/im/chatMessageBubbleDom.js +56 -0
  339. package/dist/functions/im/chatMessageBubbleDom.js.map +1 -0
  340. package/dist/functions/im/chatMessageList.d.ts +3 -0
  341. package/dist/functions/im/chatMessageList.js +11 -0
  342. package/dist/functions/im/chatMessageList.js.map +1 -1
  343. package/dist/functions/im/collectImMessageRelatedUserIds.d.ts +2 -0
  344. package/dist/functions/im/collectImMessageRelatedUserIds.js +16 -0
  345. package/dist/functions/im/collectImMessageRelatedUserIds.js.map +1 -0
  346. package/dist/functions/im/collectServerPersistedMessageApiIdsForDelete.d.ts +2 -0
  347. package/dist/functions/im/collectServerPersistedMessageApiIdsForDelete.js +9 -0
  348. package/dist/functions/im/collectServerPersistedMessageApiIdsForDelete.js.map +1 -0
  349. package/dist/functions/im/computeConversationMessagesHasOlder.d.ts +7 -0
  350. package/dist/functions/im/computeConversationMessagesHasOlder.js +6 -0
  351. package/dist/functions/im/computeConversationMessagesHasOlder.js.map +1 -0
  352. package/dist/functions/im/computeIncomingMessageConversationUpdate.d.ts +12 -0
  353. package/dist/functions/im/computeIncomingMessageConversationUpdate.js +20 -0
  354. package/dist/functions/im/computeIncomingMessageConversationUpdate.js.map +1 -0
  355. package/dist/functions/im/copyUsingClonedRangesOrMessagePlainText.d.ts +10 -0
  356. package/dist/functions/im/copyUsingClonedRangesOrMessagePlainText.js +53 -0
  357. package/dist/functions/im/copyUsingClonedRangesOrMessagePlainText.js.map +1 -0
  358. package/dist/functions/im/createConversationOutboundSerialQueue.d.ts +11 -0
  359. package/dist/functions/im/createConversationOutboundSerialQueue.js +43 -0
  360. package/dist/functions/im/createConversationOutboundSerialQueue.js.map +1 -0
  361. package/dist/functions/im/createElectronTrayUnreadPusher.d.ts +6 -0
  362. package/dist/functions/im/createElectronTrayUnreadPusher.js +18 -0
  363. package/dist/functions/im/createElectronTrayUnreadPusher.js.map +1 -0
  364. package/dist/functions/im/createImConversationListUiBinder.d.ts +12 -0
  365. package/dist/functions/im/createImConversationListUiBinder.js +16 -0
  366. package/dist/functions/im/createImConversationListUiBinder.js.map +1 -0
  367. package/dist/functions/im/desktopImNotifyEnricherRegistry.d.ts +17 -0
  368. package/dist/functions/im/desktopImNotifyEnricherRegistry.js +36 -0
  369. package/dist/functions/im/desktopImNotifyEnricherRegistry.js.map +1 -0
  370. package/dist/functions/im/enrichImContactsPeerProfiles.d.ts +6 -0
  371. package/dist/functions/im/enrichImContactsPeerProfiles.js +15 -0
  372. package/dist/functions/im/enrichImContactsPeerProfiles.js.map +1 -0
  373. package/dist/functions/im/executeChatAttachmentPreviewDownloadAction.d.ts +22 -0
  374. package/dist/functions/im/executeChatAttachmentPreviewDownloadAction.js +29 -0
  375. package/dist/functions/im/executeChatAttachmentPreviewDownloadAction.js.map +1 -0
  376. package/dist/functions/im/executeChatImageGalleryMenuAction.d.ts +27 -0
  377. package/dist/functions/im/executeChatImageGalleryMenuAction.js +26 -0
  378. package/dist/functions/im/executeChatImageGalleryMenuAction.js.map +1 -0
  379. package/dist/functions/im/executeCopyChatMessageContent.d.ts +12 -0
  380. package/dist/functions/im/executeCopyChatMessageContent.js +42 -0
  381. package/dist/functions/im/executeCopyChatMessageContent.js.map +1 -0
  382. package/dist/functions/im/executeCopyChatMessageImageToClipboard.d.ts +9 -0
  383. package/dist/functions/im/executeCopyChatMessageImageToClipboard.js +9 -0
  384. package/dist/functions/im/executeCopyChatMessageImageToClipboard.js.map +1 -0
  385. package/dist/functions/im/executeDownloadChatMessageMedia.d.ts +5 -0
  386. package/dist/functions/im/executeDownloadChatMessageMedia.js +12 -0
  387. package/dist/functions/im/executeDownloadChatMessageMedia.js.map +1 -0
  388. package/dist/functions/im/executeLoadTrayUnreadTotalFromDexie.d.ts +10 -0
  389. package/dist/functions/im/executeLoadTrayUnreadTotalFromDexie.js +10 -0
  390. package/dist/functions/im/executeLoadTrayUnreadTotalFromDexie.js.map +1 -0
  391. package/dist/functions/im/executeOpenChatConversationWithPeer.d.ts +9 -0
  392. package/dist/functions/im/executeOpenChatConversationWithPeer.js +12 -0
  393. package/dist/functions/im/executeOpenChatConversationWithPeer.js.map +1 -0
  394. package/dist/functions/im/executeShowDesktopImNotification.d.ts +40 -0
  395. package/dist/functions/im/executeShowDesktopImNotification.js +49 -0
  396. package/dist/functions/im/executeShowDesktopImNotification.js.map +1 -0
  397. package/dist/functions/im/fetchChatMessageImageBlob.d.ts +12 -0
  398. package/dist/functions/im/fetchChatMessageImageBlob.js +40 -0
  399. package/dist/functions/im/fetchChatMessageImageBlob.js.map +1 -0
  400. package/dist/functions/im/imAiChatSessionTitle.d.ts +2 -0
  401. package/dist/functions/im/imAiChatSessionTitle.js +4 -0
  402. package/dist/functions/im/imAiChatSessionTitle.js.map +1 -1
  403. package/dist/functions/im/imAiStreamOutboundQueue.d.ts +10 -0
  404. package/dist/functions/im/imAiStreamOutboundQueue.js +13 -0
  405. package/dist/functions/im/imAiStreamOutboundQueue.js.map +1 -0
  406. package/dist/functions/im/imAiStreamReplyDone.d.ts +34 -0
  407. package/dist/functions/im/imAiStreamReplyDone.js +52 -0
  408. package/dist/functions/im/imAiStreamReplyDone.js.map +1 -0
  409. package/dist/functions/im/imAiStreamSideBuffer.d.ts +16 -0
  410. package/dist/functions/im/imAiStreamSideBuffer.js +19 -0
  411. package/dist/functions/im/imAiStreamSideBuffer.js.map +1 -0
  412. package/dist/functions/im/imAiStreamStoppedRun.d.ts +6 -0
  413. package/dist/functions/im/imAiStreamStoppedRun.js +19 -0
  414. package/dist/functions/im/imAiStreamStoppedRun.js.map +1 -0
  415. package/dist/functions/im/imAiStreamUi.d.ts +40 -0
  416. package/dist/functions/im/imAiStreamUi.js +108 -0
  417. package/dist/functions/im/imAiStreamUi.js.map +1 -0
  418. package/dist/functions/im/imApiMessageMerge.js +4 -25
  419. package/dist/functions/im/imApiMessageMerge.js.map +1 -1
  420. package/dist/functions/im/imApiSyncPreservedOutboundOps.d.ts +9 -0
  421. package/dist/functions/im/imApiSyncPreservedOutboundOps.js +52 -0
  422. package/dist/functions/im/imApiSyncPreservedOutboundOps.js.map +1 -0
  423. package/dist/functions/im/imChatContextMenuSpecs.d.ts +5 -0
  424. package/dist/functions/im/imChatContextMenuSpecs.js +22 -0
  425. package/dist/functions/im/imChatContextMenuSpecs.js.map +1 -1
  426. package/dist/functions/im/imChatInlineAttachmentDisplay.d.ts +6 -0
  427. package/dist/functions/im/imChatInlineAttachmentDisplay.js +11 -0
  428. package/dist/functions/im/imChatInlineAttachmentDisplay.js.map +1 -1
  429. package/dist/functions/im/imChatMessageDeleteUi.d.ts +3 -0
  430. package/dist/functions/im/imChatMessageDeleteUi.js +14 -0
  431. package/dist/functions/im/imChatMessageDeleteUi.js.map +1 -0
  432. package/dist/functions/im/imChatMessageLookup.d.ts +3 -0
  433. package/dist/functions/im/imChatMessageLookup.js +13 -0
  434. package/dist/functions/im/imChatMessageLookup.js.map +1 -0
  435. package/dist/functions/im/imChatMessagePagination.d.ts +9 -0
  436. package/dist/functions/im/imChatMessagePagination.js +17 -0
  437. package/dist/functions/im/imChatMessagePagination.js.map +1 -1
  438. package/dist/functions/im/imComposerOutboundExtra.d.ts +17 -0
  439. package/dist/functions/im/imComposerOutboundExtra.js +52 -0
  440. package/dist/functions/im/imComposerOutboundExtra.js.map +1 -0
  441. package/dist/functions/im/imContactPeerProfileMerge.d.ts +9 -0
  442. package/dist/functions/im/imContactPeerProfileMerge.js +18 -0
  443. package/dist/functions/im/imContactPeerProfileMerge.js.map +1 -0
  444. package/dist/functions/im/imContactPickerFilter.d.ts +8 -0
  445. package/dist/functions/im/imContactPickerFilter.js +52 -0
  446. package/dist/functions/im/imContactPickerFilter.js.map +1 -0
  447. package/dist/functions/im/imConversationListPrefs.d.ts +21 -0
  448. package/dist/functions/im/imConversationListPrefs.js +44 -0
  449. package/dist/functions/im/imConversationListPrefs.js.map +1 -0
  450. package/dist/functions/im/imConversationMessageLoadFailurePolicy.d.ts +2 -0
  451. package/dist/functions/im/imConversationMessageLoadFailurePolicy.js +4 -0
  452. package/dist/functions/im/imConversationMessageLoadFailurePolicy.js.map +1 -0
  453. package/dist/functions/im/imConversationMessageSyncUi.d.ts +18 -0
  454. package/dist/functions/im/imConversationMessageSyncUi.js +32 -0
  455. package/dist/functions/im/imConversationMessageSyncUi.js.map +1 -0
  456. package/dist/functions/im/imConversationPrefNormalize.d.ts +29 -0
  457. package/dist/functions/im/imConversationPrefNormalize.js +81 -0
  458. package/dist/functions/im/imConversationPrefNormalize.js.map +1 -0
  459. package/dist/functions/im/imConversationRouteQuery.d.ts +5 -0
  460. package/dist/functions/im/imConversationRouteQuery.js +14 -0
  461. package/dist/functions/im/imConversationRouteQuery.js.map +1 -0
  462. package/dist/functions/im/imConversationSidebar.d.ts +41 -0
  463. package/dist/functions/im/imConversationSidebar.js +99 -0
  464. package/dist/functions/im/imConversationSidebar.js.map +1 -0
  465. package/dist/functions/im/imConversationSyncFailurePolicy.d.ts +10 -0
  466. package/dist/functions/im/imConversationSyncFailurePolicy.js +15 -0
  467. package/dist/functions/im/imConversationSyncFailurePolicy.js.map +1 -0
  468. package/dist/functions/im/imDesktopNotificationPrefs.d.ts +16 -0
  469. package/dist/functions/im/imDesktopNotificationPrefs.js +41 -0
  470. package/dist/functions/im/imDesktopNotificationPrefs.js.map +1 -0
  471. package/dist/functions/im/imDexieMessageLookup.d.ts +6 -0
  472. package/dist/functions/im/imDexieMessageLookup.js +28 -0
  473. package/dist/functions/im/imDexieMessageLookup.js.map +1 -0
  474. package/dist/functions/im/imDismissedConversationOps.d.ts +11 -0
  475. package/dist/functions/im/imDismissedConversationOps.js +20 -0
  476. package/dist/functions/im/imDismissedConversationOps.js.map +1 -0
  477. package/dist/functions/im/imForwardOutboundDispatch.d.ts +22 -0
  478. package/dist/functions/im/imForwardOutboundDispatch.js +32 -0
  479. package/dist/functions/im/imForwardOutboundDispatch.js.map +1 -0
  480. package/dist/functions/im/imInboundMessageUi.d.ts +10 -0
  481. package/dist/functions/im/imInboundMessageUi.js +26 -0
  482. package/dist/functions/im/imInboundMessageUi.js.map +1 -0
  483. package/dist/functions/im/imInlineAttachmentOutbound.d.ts +23 -0
  484. package/dist/functions/im/imInlineAttachmentOutbound.js +36 -0
  485. package/dist/functions/im/imInlineAttachmentOutbound.js.map +1 -0
  486. package/dist/functions/im/imInlineMediaUrlVideo.d.ts +5 -0
  487. package/dist/functions/im/imInlineMediaUrlVideo.js +3 -0
  488. package/dist/functions/im/imInlineMediaUrlVideo.js.map +1 -1
  489. package/dist/functions/im/imLocalMediaOutboundExtra.d.ts +5 -0
  490. package/dist/functions/im/imLocalMediaOutboundExtra.js +28 -0
  491. package/dist/functions/im/imLocalMediaOutboundExtra.js.map +1 -0
  492. package/dist/functions/im/imMediaOssUpload.d.ts +4 -0
  493. package/dist/functions/im/imMediaOssUpload.js +12 -0
  494. package/dist/functions/im/imMediaOssUpload.js.map +1 -0
  495. package/dist/functions/im/imMediaPipelineDimensionExtra.d.ts +9 -0
  496. package/dist/functions/im/imMediaPipelineDimensionExtra.js +11 -0
  497. package/dist/functions/im/imMediaPipelineDimensionExtra.js.map +1 -0
  498. package/dist/functions/im/imMediaPipelinePixelMeta.d.ts +33 -0
  499. package/dist/functions/im/imMediaPipelinePixelMeta.js +28 -0
  500. package/dist/functions/im/imMediaPipelinePixelMeta.js.map +1 -0
  501. package/dist/functions/im/imMediaPipelineQueueItem.d.ts +39 -0
  502. package/dist/functions/im/imMediaPipelineQueueItem.js +32 -0
  503. package/dist/functions/im/imMediaPipelineQueueItem.js.map +1 -0
  504. package/dist/functions/im/imMediaToolbarQueue.d.ts +16 -0
  505. package/dist/functions/im/imMediaToolbarQueue.js +14 -0
  506. package/dist/functions/im/imMediaToolbarQueue.js.map +1 -0
  507. package/dist/functions/im/imMemberProfileEnsurePolicy.d.ts +7 -0
  508. package/dist/functions/im/imMemberProfileEnsurePolicy.js +11 -0
  509. package/dist/functions/im/imMemberProfileEnsurePolicy.js.map +1 -0
  510. package/dist/functions/im/imMemberProfileRowsToUpsert.d.ts +7 -0
  511. package/dist/functions/im/imMemberProfileRowsToUpsert.js +18 -0
  512. package/dist/functions/im/imMemberProfileRowsToUpsert.js.map +1 -0
  513. package/dist/functions/im/imMentionAllowedUserIds.d.ts +1 -0
  514. package/dist/functions/im/imMentionAllowedUserIds.js.map +1 -1
  515. package/dist/functions/im/imMentionInputItems.d.ts +23 -0
  516. package/dist/functions/im/imMentionInputItems.js +32 -0
  517. package/dist/functions/im/imMentionInputItems.js.map +1 -0
  518. package/dist/functions/im/imMessageExtraRecord.d.ts +1 -0
  519. package/dist/functions/im/imMessageExtraRecord.js +4 -0
  520. package/dist/functions/im/imMessageExtraRecord.js.map +1 -1
  521. package/dist/functions/im/imMessageIsoTime.d.ts +2 -0
  522. package/dist/functions/im/imMessageIsoTime.js +17 -0
  523. package/dist/functions/im/imMessageIsoTime.js.map +1 -0
  524. package/dist/functions/im/imMultiSelectBatchAction.d.ts +9 -0
  525. package/dist/functions/im/imMultiSelectBatchAction.js +19 -0
  526. package/dist/functions/im/imMultiSelectBatchAction.js.map +1 -0
  527. package/dist/functions/im/imPeerProfileFromConversations.d.ts +14 -0
  528. package/dist/functions/im/imPeerProfileFromConversations.js +82 -0
  529. package/dist/functions/im/imPeerProfileFromConversations.js.map +1 -0
  530. package/dist/functions/im/imPendingMediaFlushPlan.d.ts +29 -0
  531. package/dist/functions/im/imPendingMediaFlushPlan.js +61 -0
  532. package/dist/functions/im/imPendingMediaFlushPlan.js.map +1 -0
  533. package/dist/functions/im/imSenderProfileMap.d.ts +24 -0
  534. package/dist/functions/im/imSenderProfileMap.js +72 -0
  535. package/dist/functions/im/imSenderProfileMap.js.map +1 -0
  536. package/dist/functions/im/imStandaloneMediaOutbound.d.ts +19 -0
  537. package/dist/functions/im/imStandaloneMediaOutbound.js +52 -0
  538. package/dist/functions/im/imStandaloneMediaOutbound.js.map +1 -0
  539. package/dist/functions/im/imTrayUnreadTotal.d.ts +12 -0
  540. package/dist/functions/im/imTrayUnreadTotal.js +19 -0
  541. package/dist/functions/im/imTrayUnreadTotal.js.map +1 -0
  542. package/dist/functions/im/imWalletEnvelopeClaim.d.ts +4 -0
  543. package/dist/functions/im/imWalletEnvelopeClaim.js +49 -0
  544. package/dist/functions/im/imWalletEnvelopeClaim.js.map +1 -0
  545. package/dist/functions/im/imWalletTransferPatch.d.ts +2 -0
  546. package/dist/functions/im/imWalletTransferPatch.js +18 -0
  547. package/dist/functions/im/imWalletTransferPatch.js.map +1 -0
  548. package/dist/functions/im/index.d.ts +32 -1
  549. package/dist/functions/im/index.js +32 -1
  550. package/dist/functions/im/index.js.map +1 -1
  551. package/dist/functions/im/isDesktopImNotificationEnvironmentSupported.d.ts +14 -0
  552. package/dist/functions/im/isDesktopImNotificationEnvironmentSupported.js +14 -0
  553. package/dist/functions/im/isDesktopImNotificationEnvironmentSupported.js.map +1 -0
  554. package/dist/functions/im/isImMessageNeedingLocalMediaPreview.d.ts +3 -0
  555. package/dist/functions/im/isImMessageNeedingLocalMediaPreview.js +16 -0
  556. package/dist/functions/im/isImMessageNeedingLocalMediaPreview.js.map +1 -0
  557. package/dist/functions/im/isLocalMediaPendingUploadMessage.d.ts +2 -0
  558. package/dist/functions/im/isLocalMediaPendingUploadMessage.js +24 -0
  559. package/dist/functions/im/isLocalMediaPendingUploadMessage.js.map +1 -0
  560. package/dist/functions/im/isPendingOutboundImMessage.d.ts +4 -0
  561. package/dist/functions/im/isPendingOutboundImMessage.js +16 -0
  562. package/dist/functions/im/isPendingOutboundImMessage.js.map +1 -0
  563. package/dist/functions/im/isStaleMessageForAbandonOnExit.d.ts +3 -0
  564. package/dist/functions/im/isStaleMessageForAbandonOnExit.js +35 -0
  565. package/dist/functions/im/isStaleMessageForAbandonOnExit.js.map +1 -0
  566. package/dist/functions/im/mapChatInlineAttachmentGallerySpecsToViewItems.d.ts +11 -0
  567. package/dist/functions/im/mapChatInlineAttachmentGallerySpecsToViewItems.js +11 -0
  568. package/dist/functions/im/mapChatInlineAttachmentGallerySpecsToViewItems.js.map +1 -0
  569. package/dist/functions/im/mapImAiAgentDtosToChatOptions.d.ts +2 -0
  570. package/dist/functions/im/mapImAiAgentDtosToChatOptions.js +15 -0
  571. package/dist/functions/im/mapImAiAgentDtosToChatOptions.js.map +1 -0
  572. package/dist/functions/im/mapUnreadHighlightsByConversation.d.ts +17 -0
  573. package/dist/functions/im/mapUnreadHighlightsByConversation.js +41 -0
  574. package/dist/functions/im/mapUnreadHighlightsByConversation.js.map +1 -0
  575. package/dist/functions/im/materializeUploadFileFromMediaBlobRecord.d.ts +7 -0
  576. package/dist/functions/im/materializeUploadFileFromMediaBlobRecord.js +10 -0
  577. package/dist/functions/im/materializeUploadFileFromMediaBlobRecord.js.map +1 -0
  578. package/dist/functions/im/mergeConversationLastMessageWithOutboundPatch.d.ts +4 -0
  579. package/dist/functions/im/mergeConversationLastMessageWithOutboundPatch.js +11 -0
  580. package/dist/functions/im/mergeConversationLastMessageWithOutboundPatch.js.map +1 -0
  581. package/dist/functions/im/mergeFinalizedMediaMessageWithLocalExtras.d.ts +5 -0
  582. package/dist/functions/im/mergeFinalizedMediaMessageWithLocalExtras.js +31 -0
  583. package/dist/functions/im/mergeFinalizedMediaMessageWithLocalExtras.js.map +1 -0
  584. package/dist/functions/im/mergeImMessageExtraData.d.ts +2 -0
  585. package/dist/functions/im/mergeImMessageExtraData.js +11 -0
  586. package/dist/functions/im/mergeImMessageExtraData.js.map +1 -0
  587. package/dist/functions/im/mergePreservedOutboundRowAfterApiSync.d.ts +2 -0
  588. package/dist/functions/im/mergePreservedOutboundRowAfterApiSync.js +19 -0
  589. package/dist/functions/im/mergePreservedOutboundRowAfterApiSync.js.map +1 -0
  590. package/dist/functions/im/newImClientMessageId.d.ts +1 -0
  591. package/dist/functions/im/newImClientMessageId.js +6 -0
  592. package/dist/functions/im/newImClientMessageId.js.map +1 -0
  593. package/dist/functions/im/newImClientMessageIdFromBrowser.d.ts +3 -0
  594. package/dist/functions/im/newImClientMessageIdFromBrowser.js +20 -0
  595. package/dist/functions/im/newImClientMessageIdFromBrowser.js.map +1 -0
  596. package/dist/functions/im/normalizeImConversationRowForStorage.d.ts +4 -0
  597. package/dist/functions/im/normalizeImConversationRowForStorage.js +15 -0
  598. package/dist/functions/im/normalizeImConversationRowForStorage.js.map +1 -0
  599. package/dist/functions/im/patchChatWalletTransferReceiverNames.d.ts +5 -0
  600. package/dist/functions/im/patchChatWalletTransferReceiverNames.js +22 -0
  601. package/dist/functions/im/patchChatWalletTransferReceiverNames.js.map +1 -0
  602. package/dist/functions/im/resolveChatMessageCopyFeedback.d.ts +6 -0
  603. package/dist/functions/im/resolveChatMessageCopyFeedback.js +7 -0
  604. package/dist/functions/im/resolveChatMessageCopyFeedback.js.map +1 -0
  605. package/dist/functions/im/resolveConversationClearExceptOutboundDraft.d.ts +8 -0
  606. package/dist/functions/im/resolveConversationClearExceptOutboundDraft.js +25 -0
  607. package/dist/functions/im/resolveConversationClearExceptOutboundDraft.js.map +1 -0
  608. package/dist/functions/im/resolveDroppedFilePathWithNativeGetter.d.ts +4 -0
  609. package/dist/functions/im/resolveDroppedFilePathWithNativeGetter.js +13 -0
  610. package/dist/functions/im/resolveDroppedFilePathWithNativeGetter.js.map +1 -0
  611. package/dist/functions/im/resolveImOutboundRetrySendParams.d.ts +10 -0
  612. package/dist/functions/im/resolveImOutboundRetrySendParams.js +17 -0
  613. package/dist/functions/im/resolveImOutboundRetrySendParams.js.map +1 -0
  614. package/dist/functions/im/resolveImOutboundSendExtraData.d.ts +2 -0
  615. package/dist/functions/im/resolveImOutboundSendExtraData.js +13 -0
  616. package/dist/functions/im/resolveImOutboundSendExtraData.js.map +1 -0
  617. package/dist/functions/im/resolveOutboundPatchTargetsByClientMessageId.d.ts +2 -0
  618. package/dist/functions/im/resolveOutboundPatchTargetsByClientMessageId.js +11 -0
  619. package/dist/functions/im/resolveOutboundPatchTargetsByClientMessageId.js.map +1 -0
  620. package/dist/functions/im/resolveUploadFileInputFromMediaBlobRecord.d.ts +11 -0
  621. package/dist/functions/im/resolveUploadFileInputFromMediaBlobRecord.js +11 -0
  622. package/dist/functions/im/resolveUploadFileInputFromMediaBlobRecord.js.map +1 -0
  623. package/dist/functions/im/shouldPromoteMessageAsConversationLast.d.ts +2 -0
  624. package/dist/functions/im/shouldPromoteMessageAsConversationLast.js +7 -0
  625. package/dist/functions/im/shouldPromoteMessageAsConversationLast.js.map +1 -0
  626. package/dist/functions/im/validateComposerOutboundSend.d.ts +14 -0
  627. package/dist/functions/im/validateComposerOutboundSend.js +27 -0
  628. package/dist/functions/im/validateComposerOutboundSend.js.map +1 -0
  629. package/dist/functions/image/compressChatConversationBackgroundImage.d.ts +4 -0
  630. package/dist/functions/image/compressChatConversationBackgroundImage.js +10 -0
  631. package/dist/functions/image/compressChatConversationBackgroundImage.js.map +1 -0
  632. package/dist/functions/image/compressImageFileToBoundedJpeg.d.ts +13 -0
  633. package/dist/functions/image/compressImageFileToBoundedJpeg.js +30 -0
  634. package/dist/functions/image/compressImageFileToBoundedJpeg.js.map +1 -0
  635. package/dist/functions/markdown/normalizeMarkdownHtmlVideoTags.d.ts +1 -0
  636. package/dist/functions/markdown/normalizeMarkdownHtmlVideoTags.js +26 -0
  637. package/dist/functions/markdown/normalizeMarkdownHtmlVideoTags.js.map +1 -0
  638. package/dist/functions/oss/fetchBlobViaOssDownloadApi.d.ts +12 -0
  639. package/dist/functions/oss/fetchBlobViaOssDownloadApi.js +18 -0
  640. package/dist/functions/oss/fetchBlobViaOssDownloadApi.js.map +1 -0
  641. package/dist/functions/oss/putOssFileViaSignedUploadUrl.d.ts +15 -0
  642. package/dist/functions/oss/putOssFileViaSignedUploadUrl.js +28 -0
  643. package/dist/functions/oss/putOssFileViaSignedUploadUrl.js.map +1 -0
  644. package/dist/functions/oss/tryUploadImVideoThumbnailToOss.d.ts +24 -0
  645. package/dist/functions/oss/tryUploadImVideoThumbnailToOss.js +21 -0
  646. package/dist/functions/oss/tryUploadImVideoThumbnailToOss.js.map +1 -0
  647. package/dist/functions/oss/uploadChatCommunityMediaToOss.d.ts +6 -0
  648. package/dist/functions/oss/uploadChatCommunityMediaToOss.js +15 -0
  649. package/dist/functions/oss/uploadChatCommunityMediaToOss.js.map +1 -0
  650. package/dist/functions/oss/uploadOssFileFromBrowser.js +10 -17
  651. package/dist/functions/oss/uploadOssFileFromBrowser.js.map +1 -1
  652. package/dist/functions/project/buildProjectMachineHeaders.d.ts +9 -0
  653. package/dist/functions/project/buildProjectMachineHeaders.js +41 -0
  654. package/dist/functions/project/buildProjectMachineHeaders.js.map +1 -0
  655. package/dist/functions/release/buildCapacitorApkCacheRelPath.d.ts +4 -0
  656. package/dist/functions/release/buildCapacitorApkCacheRelPath.js +10 -0
  657. package/dist/functions/release/buildCapacitorApkCacheRelPath.js.map +1 -0
  658. package/dist/functions/release/buildCapacitorApkUpdatePrompt.d.ts +12 -0
  659. package/dist/functions/release/buildCapacitorApkUpdatePrompt.js +16 -0
  660. package/dist/functions/release/buildCapacitorApkUpdatePrompt.js.map +1 -0
  661. package/dist/functions/release/buildCapacitorWebOtaUpdatePrompt.d.ts +12 -0
  662. package/dist/functions/release/buildCapacitorWebOtaUpdatePrompt.js +16 -0
  663. package/dist/functions/release/buildCapacitorWebOtaUpdatePrompt.js.map +1 -0
  664. package/dist/functions/release/buildRendererReleaseUpdatePrompt.d.ts +19 -0
  665. package/dist/functions/release/buildRendererReleaseUpdatePrompt.js +35 -0
  666. package/dist/functions/release/buildRendererReleaseUpdatePrompt.js.map +1 -0
  667. package/dist/functions/release/capacitorOtaReleaseManifestFetch.d.ts +4 -0
  668. package/dist/functions/release/capacitorOtaReleaseManifestFetch.js +16 -0
  669. package/dist/functions/release/capacitorOtaReleaseManifestFetch.js.map +1 -0
  670. package/dist/functions/release/capacitorReleaseManifestFetch.d.ts +3 -0
  671. package/dist/functions/release/capacitorReleaseManifestFetch.js +11 -0
  672. package/dist/functions/release/capacitorReleaseManifestFetch.js.map +1 -0
  673. package/dist/functions/release/capacitorUpdateDefaults.d.ts +27 -0
  674. package/dist/functions/release/capacitorUpdateDefaults.js +51 -0
  675. package/dist/functions/release/capacitorUpdateDefaults.js.map +1 -0
  676. package/dist/functions/release/clientDownloadTargets.d.ts +9 -0
  677. package/dist/functions/release/clientDownloadTargets.js +12 -0
  678. package/dist/functions/release/clientDownloadTargets.js.map +1 -0
  679. package/dist/functions/release/createCapacitorUpdateFetchDeps.d.ts +27 -0
  680. package/dist/functions/release/createCapacitorUpdateFetchDeps.js +27 -0
  681. package/dist/functions/release/createCapacitorUpdateFetchDeps.js.map +1 -0
  682. package/dist/functions/release/createReleaseManifestFetchDeps.d.ts +9 -0
  683. package/dist/functions/release/createReleaseManifestFetchDeps.js +16 -0
  684. package/dist/functions/release/createReleaseManifestFetchDeps.js.map +1 -0
  685. package/dist/functions/release/detectElectronReleaseBrowserTarget.d.ts +5 -0
  686. package/dist/functions/release/detectElectronReleaseBrowserTarget.js +15 -0
  687. package/dist/functions/release/detectElectronReleaseBrowserTarget.js.map +1 -0
  688. package/dist/functions/release/electronReleaseManifestFetch.d.ts +10 -0
  689. package/dist/functions/release/electronReleaseManifestFetch.js +40 -0
  690. package/dist/functions/release/electronReleaseManifestFetch.js.map +1 -0
  691. package/dist/functions/release/evaluateCapacitorAndroidApkUpdate.d.ts +23 -0
  692. package/dist/functions/release/evaluateCapacitorAndroidApkUpdate.js +35 -0
  693. package/dist/functions/release/evaluateCapacitorAndroidApkUpdate.js.map +1 -0
  694. package/dist/functions/release/evaluateCapacitorWebOtaUpdate.d.ts +31 -0
  695. package/dist/functions/release/evaluateCapacitorWebOtaUpdate.js +48 -0
  696. package/dist/functions/release/evaluateCapacitorWebOtaUpdate.js.map +1 -0
  697. package/dist/functions/release/executeCapacitorAndroidApkUpdateCheck.d.ts +23 -0
  698. package/dist/functions/release/executeCapacitorAndroidApkUpdateCheck.js +31 -0
  699. package/dist/functions/release/executeCapacitorAndroidApkUpdateCheck.js.map +1 -0
  700. package/dist/functions/release/executeCapacitorManualUpdateCheck.d.ts +8 -0
  701. package/dist/functions/release/executeCapacitorManualUpdateCheck.js +11 -0
  702. package/dist/functions/release/executeCapacitorManualUpdateCheck.js.map +1 -0
  703. package/dist/functions/release/executeCapacitorWebOtaUpdateCheck.d.ts +26 -0
  704. package/dist/functions/release/executeCapacitorWebOtaUpdateCheck.js +42 -0
  705. package/dist/functions/release/executeCapacitorWebOtaUpdateCheck.js.map +1 -0
  706. package/dist/functions/release/executeManualChatUpdateCheck.d.ts +13 -0
  707. package/dist/functions/release/executeManualChatUpdateCheck.js +21 -0
  708. package/dist/functions/release/executeManualChatUpdateCheck.js.map +1 -0
  709. package/dist/functions/release/executeRendererReleaseUpdateCheck.d.ts +28 -0
  710. package/dist/functions/release/executeRendererReleaseUpdateCheck.js +69 -0
  711. package/dist/functions/release/executeRendererReleaseUpdateCheck.js.map +1 -0
  712. package/dist/functions/release/isCapacitorWebViewOnViteDevServer.d.ts +4 -0
  713. package/dist/functions/release/isCapacitorWebViewOnViteDevServer.js +10 -0
  714. package/dist/functions/release/isCapacitorWebViewOnViteDevServer.js.map +1 -0
  715. package/dist/functions/release/openCapacitorMobileAppDownload.d.ts +10 -0
  716. package/dist/functions/release/openCapacitorMobileAppDownload.js +23 -0
  717. package/dist/functions/release/openCapacitorMobileAppDownload.js.map +1 -0
  718. package/dist/functions/release/openElectronDesktopClientDownload.d.ts +9 -0
  719. package/dist/functions/release/openElectronDesktopClientDownload.js +19 -0
  720. package/dist/functions/release/openElectronDesktopClientDownload.js.map +1 -0
  721. package/dist/functions/release/pickCapacitorAndroidPackage.d.ts +4 -0
  722. package/dist/functions/release/pickCapacitorAndroidPackage.js +17 -0
  723. package/dist/functions/release/pickCapacitorAndroidPackage.js.map +1 -0
  724. package/dist/functions/release/pickElectronReleasePackage.d.ts +4 -0
  725. package/dist/functions/release/pickElectronReleasePackage.js +14 -0
  726. package/dist/functions/release/pickElectronReleasePackage.js.map +1 -0
  727. package/dist/functions/release/releaseUpdateDismissSession.d.ts +5 -0
  728. package/dist/functions/release/releaseUpdateDismissSession.js +22 -0
  729. package/dist/functions/release/releaseUpdateDismissSession.js.map +1 -0
  730. package/dist/functions/release/releaseUpdatePolicy.d.ts +7 -0
  731. package/dist/functions/release/releaseUpdatePolicy.js +36 -0
  732. package/dist/functions/release/releaseUpdatePolicy.js.map +1 -0
  733. package/dist/functions/release/sanitizeCapacitorDownloadFileName.d.ts +1 -0
  734. package/dist/functions/release/sanitizeCapacitorDownloadFileName.js +4 -0
  735. package/dist/functions/release/sanitizeCapacitorDownloadFileName.js.map +1 -0
  736. package/dist/functions/release/semverToCapacitorVersionCode.d.ts +1 -0
  737. package/dist/functions/release/semverToCapacitorVersionCode.js +10 -0
  738. package/dist/functions/release/semverToCapacitorVersionCode.js.map +1 -0
  739. package/dist/functions/release/shouldSkipCapacitorReleaseUpdateOnLaunch.d.ts +5 -0
  740. package/dist/functions/release/shouldSkipCapacitorReleaseUpdateOnLaunch.js +10 -0
  741. package/dist/functions/release/shouldSkipCapacitorReleaseUpdateOnLaunch.js.map +1 -0
  742. package/dist/functions/release/verifyHttpContentLength.d.ts +5 -0
  743. package/dist/functions/release/verifyHttpContentLength.js +23 -0
  744. package/dist/functions/release/verifyHttpContentLength.js.map +1 -0
  745. package/dist/functions/sse/namedSseStream.d.ts +6 -0
  746. package/dist/functions/sse/namedSseStream.js +70 -0
  747. package/dist/functions/sse/namedSseStream.js.map +1 -0
  748. package/dist/functions/storage/clearAppCachePreservingAuth.d.ts +14 -0
  749. package/dist/functions/storage/clearAppCachePreservingAuth.js +45 -0
  750. package/dist/functions/storage/clearAppCachePreservingAuth.js.map +1 -0
  751. package/dist/functions/ui/imChatViewContextMenuMaterialize.d.ts +12 -0
  752. package/dist/functions/ui/imChatViewContextMenuMaterialize.js +16 -0
  753. package/dist/functions/ui/imChatViewContextMenuMaterialize.js.map +1 -0
  754. package/dist/functions/ui/imGalleryPreviewContextMenuMaterialize.d.ts +6 -0
  755. package/dist/functions/ui/imGalleryPreviewContextMenuMaterialize.js +12 -0
  756. package/dist/functions/ui/imGalleryPreviewContextMenuMaterialize.js.map +1 -0
  757. package/dist/functions/ui/imMarkdownImageGallery.d.ts +5 -0
  758. package/dist/functions/ui/imMarkdownImageGallery.js +12 -0
  759. package/dist/functions/ui/imMarkdownImageGallery.js.map +1 -0
  760. package/dist/functions/ui/resolveChatAttachmentPreviewContextMenuSelect.d.ts +24 -0
  761. package/dist/functions/ui/resolveChatAttachmentPreviewContextMenuSelect.js +31 -0
  762. package/dist/functions/ui/resolveChatAttachmentPreviewContextMenuSelect.js.map +1 -0
  763. package/dist/functions/ui/resolveChatGalleryMenuActionFeedback.d.ts +7 -0
  764. package/dist/functions/ui/resolveChatGalleryMenuActionFeedback.js +15 -0
  765. package/dist/functions/ui/resolveChatGalleryMenuActionFeedback.js.map +1 -0
  766. package/dist/functions/ui/resolveGalleryPreviewContextMenuEvent.d.ts +1 -0
  767. package/dist/functions/ui/resolveGalleryPreviewContextMenuEvent.js +2 -0
  768. package/dist/functions/ui/resolveGalleryPreviewContextMenuEvent.js.map +1 -1
  769. package/dist/functions/url/resolveCopyableAbsoluteUrl.d.ts +5 -0
  770. package/dist/functions/url/resolveCopyableAbsoluteUrl.js +17 -0
  771. package/dist/functions/url/resolveCopyableAbsoluteUrl.js.map +1 -0
  772. package/dist/functions/wallet/createBrowserWalletPayPasswordSessionAccess.d.ts +5 -0
  773. package/dist/functions/wallet/createBrowserWalletPayPasswordSessionAccess.js +32 -0
  774. package/dist/functions/wallet/createBrowserWalletPayPasswordSessionAccess.js.map +1 -0
  775. package/dist/functions/wallet/trc20PayQr.d.ts +3 -0
  776. package/dist/functions/wallet/trc20PayQr.js +16 -0
  777. package/dist/functions/wallet/trc20PayQr.js.map +1 -0
  778. package/dist/functions/wallet/walletLedgerUi.d.ts +44 -0
  779. package/dist/functions/wallet/walletLedgerUi.js +223 -0
  780. package/dist/functions/wallet/walletLedgerUi.js.map +1 -0
  781. package/dist/functions/wallet/walletPayPasswordSessionState.d.ts +8 -0
  782. package/dist/functions/wallet/walletPayPasswordSessionState.js +20 -0
  783. package/dist/functions/wallet/walletPayPasswordSessionState.js.map +1 -0
  784. package/dist/functions/wallet/walletPayPasswordUi.d.ts +3 -0
  785. package/dist/functions/wallet/walletPayPasswordUi.js +15 -0
  786. package/dist/functions/wallet/walletPayPasswordUi.js.map +1 -0
  787. package/dist/schemas/video.schema.d.ts +60 -60
  788. package/package.json +270 -14
  789. package/references/browser.d.ts +4 -1
  790. package/references/dom.d.ts +32 -0
  791. package/types/ai-chat.d.ts +23 -0
  792. package/types/capacitor-ota-release-manifest.d.ts +21 -0
  793. package/types/capacitor-release-manifest.d.ts +27 -0
  794. package/types/chat-appearance.d.ts +1 -0
  795. package/types/electron-release-manifest.d.ts +40 -0
  796. package/types/im-ai-agent.d.ts +23 -0
  797. package/types/named-sse.d.ts +11 -0
  798. 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,5 @@
1
+ export declare function resolveMarkdownImageGalleryFilenameHint(input: {
2
+ alt?: string | null;
3
+ title?: string | null;
4
+ key: string;
5
+ }): string | undefined;
@@ -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":"AAQA,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,GAAG,CAAC,MAAM,IAAI,IAAI;QAAE,OAAO,GAA4B,CAAA;IAC3D,OAAO,SAAS,CAAA;AAClB,CAAC"}
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,5 @@
1
+ export type ResolveCopyableAbsoluteUrlOptions = {
2
+ baseUrl?: string;
3
+ origin?: string;
4
+ };
5
+ export declare function resolveCopyableAbsoluteUrl(text: string, options?: ResolveCopyableAbsoluteUrlOptions): string;
@@ -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,5 @@
1
+ export declare function createBrowserWalletPayPasswordSessionAccess(getUserId: () => string | null): {
2
+ markSet(): void;
3
+ isSet(): boolean;
4
+ clear(): void;
5
+ };
@@ -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,3 @@
1
+ export declare const TRC20_USDT_CONTRACT = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
2
+ export declare function buildTrc20AddressQrPayload(address: string): string;
3
+ export declare function buildTrc20UsdtPaymentUri(address: string, amountUsdt: string): string;
@@ -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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,IAAI,CAAC,IAAI,CAAC,CAAA;;YACpB,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;IAC3B,CAAC;IACD,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;QACnD,KAAK;QACL,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAChC,MAAM,EAAE,GAAG,IAAI,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC,IAAI,CAAC,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,3 @@
1
+ export declare const WALLET_PAY_PASSWORD_SET_SESSION_KEY_PREFIX = "chat_wallet_pay_password_set:";
2
+ export declare function walletPayPasswordSetSessionKey(userId: string): string;
3
+ export declare function formatWalletPayPasswordLockedMessage(lockedUntil?: string): string;
@@ -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