@oxyhq/services 19.0.1 → 19.1.1

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 (918) hide show
  1. package/lib/commonjs/assets/assets/icons/OxyServices.tsx +5 -12
  2. package/lib/commonjs/assets/icons/OxyServices.js +7 -7
  3. package/lib/commonjs/assets/icons/OxyServices.js.map +1 -1
  4. package/lib/commonjs/index.js +56 -25
  5. package/lib/commonjs/index.js.map +1 -1
  6. package/lib/commonjs/ui/boot/runProviderColdBoot.js +121 -0
  7. package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -0
  8. package/lib/commonjs/ui/client.js +10 -17
  9. package/lib/commonjs/ui/client.js.map +1 -1
  10. package/lib/commonjs/ui/components/FollowButton.js +28 -92
  11. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  12. package/lib/commonjs/ui/components/Header.js +127 -241
  13. package/lib/commonjs/ui/components/Header.js.map +1 -1
  14. package/lib/commonjs/ui/components/OxyAccountDialog.js +22 -18
  15. package/lib/commonjs/ui/components/OxyAccountDialog.js.map +1 -1
  16. package/lib/commonjs/ui/components/OxyConsentScreen.js +4 -6
  17. package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
  18. package/lib/commonjs/ui/components/OxyOAuthCallback.js +45 -0
  19. package/lib/commonjs/ui/components/OxyOAuthCallback.js.map +1 -0
  20. package/lib/commonjs/ui/components/OxyPayButton.js +20 -71
  21. package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
  22. package/lib/commonjs/ui/components/OxyProvider.js +3 -3
  23. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  24. package/lib/commonjs/ui/components/OxySignInButton.js +30 -135
  25. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  26. package/lib/commonjs/ui/components/ProfileButton.js +4 -2
  27. package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
  28. package/lib/commonjs/ui/components/ProfileSummaryCard.js +99 -0
  29. package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -0
  30. package/lib/commonjs/ui/components/RequireOxyAuth.js +7 -10
  31. package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -1
  32. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +9 -9
  33. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  34. package/lib/commonjs/ui/components/fileManagement/FileViewer.js +20 -23
  35. package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
  36. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +6 -6
  37. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
  38. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +14 -9
  39. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
  40. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +55 -55
  41. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  42. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
  43. package/lib/commonjs/ui/components/payment/paymentStyles.js +13 -13
  44. package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
  45. package/lib/commonjs/ui/context/OxyContext.js +129 -260
  46. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  47. package/lib/commonjs/ui/context/oxyContextHelpers.js +64 -0
  48. package/lib/commonjs/ui/context/oxyContextHelpers.js.map +1 -0
  49. package/lib/commonjs/ui/{components/TextField/Adornment/types.js → context/oxyContextTypes.js} +1 -1
  50. package/lib/commonjs/ui/context/oxyContextTypes.js.map +1 -0
  51. package/lib/commonjs/ui/context/useOxyAccountGraph.js +91 -0
  52. package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -0
  53. package/lib/commonjs/ui/hooks/queryClient.js +9 -18
  54. package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
  55. package/lib/commonjs/ui/hooks/useAuth.js +7 -5
  56. package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
  57. package/lib/commonjs/ui/hooks/useSessionManagement.js +2 -0
  58. package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
  59. package/lib/commonjs/ui/index.js +10 -17
  60. package/lib/commonjs/ui/index.js.map +1 -1
  61. package/lib/commonjs/ui/navigation/accountDialogManager.js +5 -44
  62. package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
  63. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +9 -8
  64. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
  65. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +2 -3
  66. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
  67. package/lib/commonjs/ui/screens/EditProfileScreen.js +8 -19
  68. package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
  69. package/lib/commonjs/ui/screens/FAQScreen.js +8 -8
  70. package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
  71. package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -1
  72. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  73. package/lib/commonjs/ui/screens/FileManagementScreen.js +59 -1105
  74. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  75. package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -8
  76. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  77. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +0 -1
  78. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  79. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +5 -4
  80. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  81. package/lib/commonjs/ui/screens/ManageAccountScreen.js +9 -49
  82. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
  83. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +6 -9
  84. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  85. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +247 -224
  86. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  87. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +21 -20
  88. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  89. package/lib/commonjs/ui/screens/ProfileScreen.js +4 -4
  90. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  91. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +12 -11
  92. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
  93. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +3 -2
  94. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  95. package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
  96. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  97. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +7 -8
  98. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  99. package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +114 -0
  100. package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -0
  101. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +512 -0
  102. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
  103. package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +59 -0
  104. package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -0
  105. package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +475 -0
  106. package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
  107. package/lib/commonjs/ui/screens/fileManagement/shared.js +67 -0
  108. package/lib/commonjs/ui/screens/fileManagement/shared.js.map +1 -0
  109. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +3 -2
  110. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  111. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +4 -7
  112. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  113. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +3 -3
  114. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  115. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +3 -2
  116. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  117. package/lib/commonjs/ui/server.js +4 -5
  118. package/lib/commonjs/ui/server.js.map +1 -1
  119. package/lib/commonjs/ui/session/createSessionClient.js +2 -2
  120. package/lib/commonjs/ui/utils/crossOriginRestore.js +109 -0
  121. package/lib/commonjs/ui/utils/crossOriginRestore.js.map +1 -0
  122. package/lib/commonjs/ui/utils/deviceCredential.js +23 -0
  123. package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -0
  124. package/lib/commonjs/ui/utils/oauthReturn.js +82 -0
  125. package/lib/commonjs/ui/utils/oauthReturn.js.map +1 -0
  126. package/lib/commonjs/ui/utils/storageHelpers.js +1 -2
  127. package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -1
  128. package/lib/module/assets/assets/icons/OxyServices.tsx +5 -12
  129. package/lib/module/assets/icons/OxyServices.js +7 -7
  130. package/lib/module/assets/icons/OxyServices.js.map +1 -1
  131. package/lib/module/index.js +10 -9
  132. package/lib/module/index.js.map +1 -1
  133. package/lib/module/ui/boot/runProviderColdBoot.js +116 -0
  134. package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -0
  135. package/lib/module/ui/client.js +3 -4
  136. package/lib/module/ui/client.js.map +1 -1
  137. package/lib/module/ui/components/FollowButton.js +28 -92
  138. package/lib/module/ui/components/FollowButton.js.map +1 -1
  139. package/lib/module/ui/components/Header.js +127 -241
  140. package/lib/module/ui/components/Header.js.map +1 -1
  141. package/lib/module/ui/components/OxyAccountDialog.js +22 -18
  142. package/lib/module/ui/components/OxyAccountDialog.js.map +1 -1
  143. package/lib/module/ui/components/OxyConsentScreen.js +4 -5
  144. package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
  145. package/lib/module/ui/components/OxyOAuthCallback.js +41 -0
  146. package/lib/module/ui/components/OxyOAuthCallback.js.map +1 -0
  147. package/lib/module/ui/components/OxyPayButton.js +21 -71
  148. package/lib/module/ui/components/OxyPayButton.js.map +1 -1
  149. package/lib/module/ui/components/OxyProvider.js +3 -3
  150. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  151. package/lib/module/ui/components/OxySignInButton.js +34 -139
  152. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  153. package/lib/module/ui/components/ProfileButton.js +5 -3
  154. package/lib/module/ui/components/ProfileButton.js.map +1 -1
  155. package/lib/module/ui/components/ProfileSummaryCard.js +95 -0
  156. package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -0
  157. package/lib/module/ui/components/RequireOxyAuth.js +7 -9
  158. package/lib/module/ui/components/RequireOxyAuth.js.map +1 -1
  159. package/lib/module/ui/components/fileManagement/FileDetailsModal.js +9 -9
  160. package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  161. package/lib/module/ui/components/fileManagement/FileViewer.js +20 -23
  162. package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
  163. package/lib/module/ui/components/fileManagement/UploadPreview.js +6 -6
  164. package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
  165. package/lib/module/ui/components/modals/DeleteAccountModal.js +14 -8
  166. package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
  167. package/lib/module/ui/components/payment/PaymentDetailsStep.js +54 -54
  168. package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  169. package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
  170. package/lib/module/ui/components/payment/paymentStyles.js +13 -13
  171. package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
  172. package/lib/module/ui/context/OxyContext.js +128 -259
  173. package/lib/module/ui/context/OxyContext.js.map +1 -1
  174. package/lib/module/ui/context/oxyContextHelpers.js +57 -0
  175. package/lib/module/ui/context/oxyContextHelpers.js.map +1 -0
  176. package/lib/module/ui/context/oxyContextTypes.js +4 -0
  177. package/lib/module/ui/context/oxyContextTypes.js.map +1 -0
  178. package/lib/module/ui/context/useOxyAccountGraph.js +87 -0
  179. package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -0
  180. package/lib/module/ui/hooks/queryClient.js +8 -17
  181. package/lib/module/ui/hooks/queryClient.js.map +1 -1
  182. package/lib/module/ui/hooks/useAuth.js +7 -5
  183. package/lib/module/ui/hooks/useAuth.js.map +1 -1
  184. package/lib/module/ui/hooks/useSessionManagement.js +2 -0
  185. package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
  186. package/lib/module/ui/index.js +2 -3
  187. package/lib/module/ui/index.js.map +1 -1
  188. package/lib/module/ui/navigation/accountDialogManager.js +4 -41
  189. package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
  190. package/lib/module/ui/screens/ConnectedAppsScreen.js +8 -7
  191. package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
  192. package/lib/module/ui/screens/EditProfileFieldScreen.js +2 -3
  193. package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
  194. package/lib/module/ui/screens/EditProfileScreen.js +7 -18
  195. package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
  196. package/lib/module/ui/screens/FAQScreen.js +8 -8
  197. package/lib/module/ui/screens/FAQScreen.js.map +1 -1
  198. package/lib/module/ui/screens/FeedbackScreen.js +0 -1
  199. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  200. package/lib/module/ui/screens/FileManagementScreen.js +53 -1098
  201. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  202. package/lib/module/ui/screens/HistoryViewScreen.js +9 -8
  203. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  204. package/lib/module/ui/screens/LanguageSelectorScreen.js +0 -1
  205. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  206. package/lib/module/ui/screens/LegalDocumentsScreen.js +5 -4
  207. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  208. package/lib/module/ui/screens/ManageAccountScreen.js +11 -51
  209. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
  210. package/lib/module/ui/screens/PaymentGatewayScreen.js +4 -7
  211. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  212. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +247 -224
  213. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  214. package/lib/module/ui/screens/PrivacySettingsScreen.js +19 -18
  215. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  216. package/lib/module/ui/screens/ProfileScreen.js +3 -3
  217. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  218. package/lib/module/ui/screens/SavesCollectionsScreen.js +12 -11
  219. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
  220. package/lib/module/ui/screens/SearchSettingsScreen.js +3 -2
  221. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  222. package/lib/module/ui/screens/UserListScreen.js +2 -2
  223. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  224. package/lib/module/ui/screens/WelcomeNewUserScreen.js +6 -6
  225. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  226. package/lib/module/ui/screens/fileManagement/FileListSection.js +110 -0
  227. package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -0
  228. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +509 -0
  229. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
  230. package/lib/module/ui/screens/fileManagement/UploadBar.js +55 -0
  231. package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -0
  232. package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +471 -0
  233. package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
  234. package/lib/module/ui/screens/fileManagement/shared.js +58 -0
  235. package/lib/module/ui/screens/fileManagement/shared.js.map +1 -0
  236. package/lib/module/ui/screens/trust/TrustCenterScreen.js +3 -2
  237. package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  238. package/lib/module/ui/screens/trust/TrustFAQScreen.js +4 -7
  239. package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  240. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
  241. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  242. package/lib/module/ui/screens/trust/TrustRulesScreen.js +3 -2
  243. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  244. package/lib/module/ui/server.js +2 -3
  245. package/lib/module/ui/server.js.map +1 -1
  246. package/lib/module/ui/session/createSessionClient.js +2 -2
  247. package/lib/module/ui/utils/crossOriginRestore.js +101 -0
  248. package/lib/module/ui/utils/crossOriginRestore.js.map +1 -0
  249. package/lib/module/ui/utils/deviceCredential.js +18 -0
  250. package/lib/module/ui/utils/deviceCredential.js.map +1 -0
  251. package/lib/module/ui/utils/oauthReturn.js +78 -0
  252. package/lib/module/ui/utils/oauthReturn.js.map +1 -0
  253. package/lib/module/ui/utils/storageHelpers.js +1 -2
  254. package/lib/module/ui/utils/storageHelpers.js.map +1 -1
  255. package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts +0 -5
  256. package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/index.d.ts +11 -6
  258. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +29 -0
  260. package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/ui/client.d.ts +3 -4
  262. package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/ui/components/Header.d.ts +16 -21
  265. package/lib/typescript/commonjs/ui/components/Header.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts +3 -7
  267. package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts +11 -0
  269. package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts.map +1 -0
  270. package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +0 -13
  272. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts +33 -0
  275. package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -0
  276. package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  279. package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/ui/components/payment/types.d.ts +6 -10
  281. package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +2 -185
  283. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts +7 -0
  285. package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +123 -0
  287. package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -0
  288. package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +26 -0
  289. package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +2 -3
  291. package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +7 -5
  293. package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/ui/index.d.ts +2 -3
  296. package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +4 -34
  298. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  300. package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
  302. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
  304. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  310. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  312. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts +40 -0
  314. package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
  315. package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +38 -0
  316. package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
  317. package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts +25 -0
  318. package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
  319. package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +39 -0
  320. package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts +34 -0
  322. package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  324. package/lib/typescript/commonjs/ui/server.d.ts +2 -3
  325. package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
  326. package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +2 -2
  327. package/lib/typescript/commonjs/ui/types/navigation.d.ts +2 -18
  328. package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
  329. package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts +24 -0
  330. package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts.map +1 -0
  331. package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts +8 -0
  332. package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -0
  333. package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts +25 -0
  334. package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts.map +1 -0
  335. package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts +0 -11
  336. package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts.map +1 -1
  337. package/lib/typescript/module/assets/icons/OxyServices.d.ts +0 -5
  338. package/lib/typescript/module/assets/icons/OxyServices.d.ts.map +1 -1
  339. package/lib/typescript/module/index.d.ts +11 -6
  340. package/lib/typescript/module/index.d.ts.map +1 -1
  341. package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +29 -0
  342. package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -0
  343. package/lib/typescript/module/ui/client.d.ts +3 -4
  344. package/lib/typescript/module/ui/client.d.ts.map +1 -1
  345. package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
  346. package/lib/typescript/module/ui/components/Header.d.ts +16 -21
  347. package/lib/typescript/module/ui/components/Header.d.ts.map +1 -1
  348. package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts +3 -7
  349. package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +1 -1
  350. package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts +11 -0
  351. package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts.map +1 -0
  352. package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -1
  353. package/lib/typescript/module/ui/components/OxySignInButton.d.ts +0 -13
  354. package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
  355. package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
  356. package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts +33 -0
  357. package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -0
  358. package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  359. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  360. package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  361. package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
  362. package/lib/typescript/module/ui/components/payment/types.d.ts +6 -10
  363. package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -1
  364. package/lib/typescript/module/ui/context/OxyContext.d.ts +2 -185
  365. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  366. package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts +7 -0
  367. package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts.map +1 -0
  368. package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +123 -0
  369. package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -0
  370. package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +26 -0
  371. package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -0
  372. package/lib/typescript/module/ui/hooks/queryClient.d.ts +2 -3
  373. package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
  374. package/lib/typescript/module/ui/hooks/useAuth.d.ts +7 -5
  375. package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
  376. package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
  377. package/lib/typescript/module/ui/index.d.ts +2 -3
  378. package/lib/typescript/module/ui/index.d.ts.map +1 -1
  379. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +4 -34
  380. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
  381. package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  382. package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  383. package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
  384. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
  385. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
  386. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  387. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  388. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  389. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  390. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  391. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  392. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  393. package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  394. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  395. package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts +40 -0
  396. package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
  397. package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +38 -0
  398. package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
  399. package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts +25 -0
  400. package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
  401. package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +39 -0
  402. package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
  403. package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts +34 -0
  404. package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts.map +1 -0
  405. package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  406. package/lib/typescript/module/ui/server.d.ts +2 -3
  407. package/lib/typescript/module/ui/server.d.ts.map +1 -1
  408. package/lib/typescript/module/ui/session/createSessionClient.d.ts +2 -2
  409. package/lib/typescript/module/ui/types/navigation.d.ts +2 -18
  410. package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
  411. package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts +24 -0
  412. package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts.map +1 -0
  413. package/lib/typescript/module/ui/utils/deviceCredential.d.ts +8 -0
  414. package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -0
  415. package/lib/typescript/module/ui/utils/oauthReturn.d.ts +25 -0
  416. package/lib/typescript/module/ui/utils/oauthReturn.d.ts.map +1 -0
  417. package/lib/typescript/module/ui/utils/storageHelpers.d.ts +0 -11
  418. package/lib/typescript/module/ui/utils/storageHelpers.d.ts.map +1 -1
  419. package/package.json +29 -17
  420. package/src/assets/icons/OxyServices.tsx +5 -12
  421. package/src/index.ts +16 -10
  422. package/src/ui/boot/runProviderColdBoot.ts +150 -0
  423. package/src/ui/client.ts +3 -4
  424. package/src/ui/components/FollowButton.tsx +30 -95
  425. package/src/ui/components/Header.tsx +135 -405
  426. package/src/ui/components/OxyAccountDialog.tsx +18 -16
  427. package/src/ui/components/OxyConsentScreen.tsx +2 -2
  428. package/src/ui/components/OxyOAuthCallback.tsx +38 -0
  429. package/src/ui/components/OxyPayButton.tsx +11 -60
  430. package/src/ui/components/OxyProvider.tsx +3 -3
  431. package/src/ui/components/OxySignInButton.tsx +35 -134
  432. package/src/ui/components/ProfileButton.tsx +8 -3
  433. package/src/ui/components/ProfileSummaryCard.tsx +123 -0
  434. package/src/ui/components/RequireOxyAuth.tsx +3 -3
  435. package/src/ui/components/__tests__/OxyConsentScreen.test.tsx +1 -3
  436. package/src/ui/components/fileManagement/FileDetailsModal.tsx +9 -9
  437. package/src/ui/components/fileManagement/FileViewer.tsx +20 -22
  438. package/src/ui/components/fileManagement/UploadPreview.tsx +6 -6
  439. package/src/ui/components/modals/DeleteAccountModal.tsx +7 -7
  440. package/src/ui/components/payment/PaymentDetailsStep.tsx +49 -39
  441. package/src/ui/components/payment/PaymentSummaryStep.tsx +4 -1
  442. package/src/ui/components/payment/paymentStyles.ts +14 -14
  443. package/src/ui/components/payment/types.ts +6 -10
  444. package/src/ui/context/OxyContext.tsx +136 -470
  445. package/src/ui/context/oxyContextHelpers.ts +58 -0
  446. package/src/ui/context/oxyContextTypes.ts +124 -0
  447. package/src/ui/context/useOxyAccountGraph.ts +114 -0
  448. package/src/ui/hooks/queryClient.ts +9 -20
  449. package/src/ui/hooks/useAuth.ts +7 -5
  450. package/src/ui/hooks/useSessionManagement.ts +2 -0
  451. package/src/ui/index.ts +2 -3
  452. package/src/ui/navigation/accountDialogManager.ts +4 -40
  453. package/src/ui/screens/ConnectedAppsScreen.tsx +8 -11
  454. package/src/ui/screens/EditProfileFieldScreen.tsx +2 -3
  455. package/src/ui/screens/EditProfileScreen.tsx +8 -14
  456. package/src/ui/screens/FAQScreen.tsx +7 -8
  457. package/src/ui/screens/FeedbackScreen.tsx +0 -1
  458. package/src/ui/screens/FileManagementScreen.tsx +54 -1158
  459. package/src/ui/screens/HistoryViewScreen.tsx +4 -4
  460. package/src/ui/screens/LanguageSelectorScreen.tsx +0 -1
  461. package/src/ui/screens/LegalDocumentsScreen.tsx +4 -3
  462. package/src/ui/screens/ManageAccountScreen.tsx +14 -47
  463. package/src/ui/screens/PaymentGatewayScreen.tsx +3 -7
  464. package/src/ui/screens/PremiumSubscriptionScreen.tsx +33 -31
  465. package/src/ui/screens/PrivacySettingsScreen.tsx +14 -16
  466. package/src/ui/screens/ProfileScreen.tsx +3 -3
  467. package/src/ui/screens/SavesCollectionsScreen.tsx +11 -12
  468. package/src/ui/screens/SearchSettingsScreen.tsx +2 -2
  469. package/src/ui/screens/UserListScreen.tsx +2 -2
  470. package/src/ui/screens/WelcomeNewUserScreen.tsx +6 -7
  471. package/src/ui/screens/fileManagement/FileListSection.tsx +126 -0
  472. package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +611 -0
  473. package/src/ui/screens/fileManagement/UploadBar.tsx +48 -0
  474. package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +497 -0
  475. package/src/ui/screens/fileManagement/shared.ts +65 -0
  476. package/src/ui/screens/trust/TrustCenterScreen.tsx +2 -2
  477. package/src/ui/screens/trust/TrustFAQScreen.tsx +4 -10
  478. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +2 -2
  479. package/src/ui/screens/trust/TrustRulesScreen.tsx +2 -2
  480. package/src/ui/server.ts +2 -3
  481. package/src/ui/session/createSessionClient.ts +2 -2
  482. package/src/ui/types/navigation.ts +2 -18
  483. package/src/ui/utils/crossOriginRestore.ts +129 -0
  484. package/src/ui/utils/deviceCredential.ts +17 -0
  485. package/src/ui/utils/oauthReturn.ts +101 -0
  486. package/src/ui/utils/storageHelpers.ts +0 -12
  487. package/lib/commonjs/ui/components/ActivityIndicator.js +0 -203
  488. package/lib/commonjs/ui/components/ActivityIndicator.js.map +0 -1
  489. package/lib/commonjs/ui/components/AutoHeightScrollView.js +0 -46
  490. package/lib/commonjs/ui/components/AutoHeightScrollView.js.map +0 -1
  491. package/lib/commonjs/ui/components/Avatar.js +0 -181
  492. package/lib/commonjs/ui/components/Avatar.js.map +0 -1
  493. package/lib/commonjs/ui/components/CrossFadeIcon.js +0 -106
  494. package/lib/commonjs/ui/components/CrossFadeIcon.js.map +0 -1
  495. package/lib/commonjs/ui/components/EmptyState.js +0 -41
  496. package/lib/commonjs/ui/components/EmptyState.js.map +0 -1
  497. package/lib/commonjs/ui/components/HelperText.js +0 -95
  498. package/lib/commonjs/ui/components/HelperText.js.map +0 -1
  499. package/lib/commonjs/ui/components/Icon.js +0 -112
  500. package/lib/commonjs/ui/components/Icon.js.map +0 -1
  501. package/lib/commonjs/ui/components/IconButton/IconButton.js +0 -153
  502. package/lib/commonjs/ui/components/IconButton/IconButton.js.map +0 -1
  503. package/lib/commonjs/ui/components/IconButton/utils.js +0 -155
  504. package/lib/commonjs/ui/components/IconButton/utils.js.map +0 -1
  505. package/lib/commonjs/ui/components/LoadingState.js +0 -47
  506. package/lib/commonjs/ui/components/LoadingState.js.map +0 -1
  507. package/lib/commonjs/ui/components/OxyLogo.js +0 -110
  508. package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
  509. package/lib/commonjs/ui/components/ProfileCard.js +0 -134
  510. package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
  511. package/lib/commonjs/ui/components/QuickActions.js +0 -84
  512. package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
  513. package/lib/commonjs/ui/components/StepBasedScreen.js +0 -423
  514. package/lib/commonjs/ui/components/StepBasedScreen.js.map +0 -1
  515. package/lib/commonjs/ui/components/Surface.js +0 -258
  516. package/lib/commonjs/ui/components/Surface.js.map +0 -1
  517. package/lib/commonjs/ui/components/TextField/Addons/Outline.js +0 -46
  518. package/lib/commonjs/ui/components/TextField/Addons/Outline.js.map +0 -1
  519. package/lib/commonjs/ui/components/TextField/Addons/Underline.js +0 -53
  520. package/lib/commonjs/ui/components/TextField/Addons/Underline.js.map +0 -1
  521. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -153
  522. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
  523. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js +0 -144
  524. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
  525. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js +0 -137
  526. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
  527. package/lib/commonjs/ui/components/TextField/Adornment/enums.js +0 -22
  528. package/lib/commonjs/ui/components/TextField/Adornment/enums.js.map +0 -1
  529. package/lib/commonjs/ui/components/TextField/Adornment/types.js.map +0 -1
  530. package/lib/commonjs/ui/components/TextField/Adornment/utils.js +0 -62
  531. package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +0 -1
  532. package/lib/commonjs/ui/components/TextField/Label/InputLabel.js +0 -176
  533. package/lib/commonjs/ui/components/TextField/Label/InputLabel.js.map +0 -1
  534. package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js +0 -84
  535. package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js.map +0 -1
  536. package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +0 -381
  537. package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +0 -1
  538. package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +0 -365
  539. package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +0 -1
  540. package/lib/commonjs/ui/components/TextField/constants.js +0 -50
  541. package/lib/commonjs/ui/components/TextField/constants.js.map +0 -1
  542. package/lib/commonjs/ui/components/TextField/helpers.js +0 -489
  543. package/lib/commonjs/ui/components/TextField/helpers.js.map +0 -1
  544. package/lib/commonjs/ui/components/TextField/types.js +0 -6
  545. package/lib/commonjs/ui/components/TextField/types.js.map +0 -1
  546. package/lib/commonjs/ui/components/TextField.js +0 -335
  547. package/lib/commonjs/ui/components/TextField.js.map +0 -1
  548. package/lib/commonjs/ui/components/TouchableRipple/Pressable.js +0 -12
  549. package/lib/commonjs/ui/components/TouchableRipple/Pressable.js.map +0 -1
  550. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +0 -258
  551. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
  552. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +0 -107
  553. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
  554. package/lib/commonjs/ui/components/TouchableRipple/utils.js +0 -56
  555. package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +0 -1
  556. package/lib/commonjs/ui/components/Typography/AnimatedText.js +0 -59
  557. package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +0 -1
  558. package/lib/commonjs/ui/components/Typography/types.js +0 -26
  559. package/lib/commonjs/ui/components/Typography/types.js.map +0 -1
  560. package/lib/commonjs/ui/components/feedback/ProgressIndicator.js +0 -33
  561. package/lib/commonjs/ui/components/feedback/ProgressIndicator.js.map +0 -1
  562. package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -26
  563. package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
  564. package/lib/commonjs/ui/components/theming.js +0 -128
  565. package/lib/commonjs/ui/components/theming.js.map +0 -1
  566. package/lib/commonjs/ui/components/types.js +0 -6
  567. package/lib/commonjs/ui/components/types.js.map +0 -1
  568. package/lib/commonjs/ui/components/utils/forwardRef.js +0 -18
  569. package/lib/commonjs/ui/components/utils/forwardRef.js.map +0 -1
  570. package/lib/commonjs/ui/constants/iconColors.js +0 -84
  571. package/lib/commonjs/ui/constants/iconColors.js.map +0 -1
  572. package/lib/commonjs/ui/constants/theme.js +0 -124
  573. package/lib/commonjs/ui/constants/theme.js.map +0 -1
  574. package/lib/commonjs/ui/context/ThemeContext.js +0 -36
  575. package/lib/commonjs/ui/context/ThemeContext.js.map +0 -1
  576. package/lib/commonjs/ui/hooks/useColorScheme.js +0 -29
  577. package/lib/commonjs/ui/hooks/useColorScheme.js.map +0 -1
  578. package/lib/commonjs/ui/styles/authStyles.js +0 -334
  579. package/lib/commonjs/ui/styles/authStyles.js.map +0 -1
  580. package/lib/commonjs/ui/styles/theme.js +0 -153
  581. package/lib/commonjs/ui/styles/theme.js.map +0 -1
  582. package/lib/module/ui/components/ActivityIndicator.js +0 -198
  583. package/lib/module/ui/components/ActivityIndicator.js.map +0 -1
  584. package/lib/module/ui/components/AutoHeightScrollView.js +0 -41
  585. package/lib/module/ui/components/AutoHeightScrollView.js.map +0 -1
  586. package/lib/module/ui/components/Avatar.js +0 -177
  587. package/lib/module/ui/components/Avatar.js.map +0 -1
  588. package/lib/module/ui/components/CrossFadeIcon.js +0 -101
  589. package/lib/module/ui/components/CrossFadeIcon.js.map +0 -1
  590. package/lib/module/ui/components/EmptyState.js +0 -36
  591. package/lib/module/ui/components/EmptyState.js.map +0 -1
  592. package/lib/module/ui/components/HelperText.js +0 -90
  593. package/lib/module/ui/components/HelperText.js.map +0 -1
  594. package/lib/module/ui/components/Icon.js +0 -106
  595. package/lib/module/ui/components/Icon.js.map +0 -1
  596. package/lib/module/ui/components/IconButton/IconButton.js +0 -148
  597. package/lib/module/ui/components/IconButton/IconButton.js.map +0 -1
  598. package/lib/module/ui/components/IconButton/utils.js +0 -149
  599. package/lib/module/ui/components/IconButton/utils.js.map +0 -1
  600. package/lib/module/ui/components/LoadingState.js +0 -42
  601. package/lib/module/ui/components/LoadingState.js.map +0 -1
  602. package/lib/module/ui/components/OxyLogo.js +0 -104
  603. package/lib/module/ui/components/OxyLogo.js.map +0 -1
  604. package/lib/module/ui/components/ProfileCard.js +0 -129
  605. package/lib/module/ui/components/ProfileCard.js.map +0 -1
  606. package/lib/module/ui/components/QuickActions.js +0 -80
  607. package/lib/module/ui/components/QuickActions.js.map +0 -1
  608. package/lib/module/ui/components/StepBasedScreen.js +0 -418
  609. package/lib/module/ui/components/StepBasedScreen.js.map +0 -1
  610. package/lib/module/ui/components/Surface.js +0 -252
  611. package/lib/module/ui/components/Surface.js.map +0 -1
  612. package/lib/module/ui/components/TextField/Addons/Outline.js +0 -40
  613. package/lib/module/ui/components/TextField/Addons/Outline.js.map +0 -1
  614. package/lib/module/ui/components/TextField/Addons/Underline.js +0 -47
  615. package/lib/module/ui/components/TextField/Addons/Underline.js.map +0 -1
  616. package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -146
  617. package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
  618. package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js +0 -141
  619. package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
  620. package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js +0 -135
  621. package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
  622. package/lib/module/ui/components/TextField/Adornment/enums.js +0 -18
  623. package/lib/module/ui/components/TextField/Adornment/enums.js.map +0 -1
  624. package/lib/module/ui/components/TextField/Adornment/types.js +0 -4
  625. package/lib/module/ui/components/TextField/Adornment/types.js.map +0 -1
  626. package/lib/module/ui/components/TextField/Adornment/utils.js +0 -57
  627. package/lib/module/ui/components/TextField/Adornment/utils.js.map +0 -1
  628. package/lib/module/ui/components/TextField/Label/InputLabel.js +0 -171
  629. package/lib/module/ui/components/TextField/Label/InputLabel.js.map +0 -1
  630. package/lib/module/ui/components/TextField/Label/LabelBackground.js +0 -78
  631. package/lib/module/ui/components/TextField/Label/LabelBackground.js.map +0 -1
  632. package/lib/module/ui/components/TextField/TextFieldFlat.js +0 -376
  633. package/lib/module/ui/components/TextField/TextFieldFlat.js.map +0 -1
  634. package/lib/module/ui/components/TextField/TextFieldOutlined.js +0 -359
  635. package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +0 -1
  636. package/lib/module/ui/components/TextField/constants.js +0 -46
  637. package/lib/module/ui/components/TextField/constants.js.map +0 -1
  638. package/lib/module/ui/components/TextField/helpers.js +0 -471
  639. package/lib/module/ui/components/TextField/helpers.js.map +0 -1
  640. package/lib/module/ui/components/TextField/types.js +0 -4
  641. package/lib/module/ui/components/TextField/types.js.map +0 -1
  642. package/lib/module/ui/components/TextField.js +0 -329
  643. package/lib/module/ui/components/TextField.js.map +0 -1
  644. package/lib/module/ui/components/TouchableRipple/Pressable.js +0 -9
  645. package/lib/module/ui/components/TouchableRipple/Pressable.js.map +0 -1
  646. package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +0 -253
  647. package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
  648. package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +0 -101
  649. package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
  650. package/lib/module/ui/components/TouchableRipple/utils.js +0 -50
  651. package/lib/module/ui/components/TouchableRipple/utils.js.map +0 -1
  652. package/lib/module/ui/components/Typography/AnimatedText.js +0 -54
  653. package/lib/module/ui/components/Typography/AnimatedText.js.map +0 -1
  654. package/lib/module/ui/components/Typography/types.js +0 -22
  655. package/lib/module/ui/components/Typography/types.js.map +0 -1
  656. package/lib/module/ui/components/feedback/ProgressIndicator.js +0 -28
  657. package/lib/module/ui/components/feedback/ProgressIndicator.js.map +0 -1
  658. package/lib/module/ui/components/icon/OxyIcon.js +0 -22
  659. package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
  660. package/lib/module/ui/components/theming.js +0 -123
  661. package/lib/module/ui/components/theming.js.map +0 -1
  662. package/lib/module/ui/components/types.js +0 -4
  663. package/lib/module/ui/components/types.js.map +0 -1
  664. package/lib/module/ui/components/utils/forwardRef.js +0 -13
  665. package/lib/module/ui/components/utils/forwardRef.js.map +0 -1
  666. package/lib/module/ui/constants/iconColors.js +0 -78
  667. package/lib/module/ui/constants/iconColors.js.map +0 -1
  668. package/lib/module/ui/constants/theme.js +0 -120
  669. package/lib/module/ui/constants/theme.js.map +0 -1
  670. package/lib/module/ui/context/ThemeContext.js +0 -29
  671. package/lib/module/ui/context/ThemeContext.js.map +0 -1
  672. package/lib/module/ui/hooks/useColorScheme.js +0 -26
  673. package/lib/module/ui/hooks/useColorScheme.js.map +0 -1
  674. package/lib/module/ui/styles/authStyles.js +0 -329
  675. package/lib/module/ui/styles/authStyles.js.map +0 -1
  676. package/lib/module/ui/styles/theme.js +0 -147
  677. package/lib/module/ui/styles/theme.js.map +0 -1
  678. package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts +0 -45
  679. package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts.map +0 -1
  680. package/lib/typescript/commonjs/ui/components/AutoHeightScrollView.d.ts +0 -23
  681. package/lib/typescript/commonjs/ui/components/AutoHeightScrollView.d.ts.map +0 -1
  682. package/lib/typescript/commonjs/ui/components/Avatar.d.ts +0 -61
  683. package/lib/typescript/commonjs/ui/components/Avatar.d.ts.map +0 -1
  684. package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts +0 -28
  685. package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts.map +0 -1
  686. package/lib/typescript/commonjs/ui/components/EmptyState.d.ts +0 -8
  687. package/lib/typescript/commonjs/ui/components/EmptyState.d.ts.map +0 -1
  688. package/lib/typescript/commonjs/ui/components/HelperText.d.ts +0 -47
  689. package/lib/typescript/commonjs/ui/components/HelperText.d.ts.map +0 -1
  690. package/lib/typescript/commonjs/ui/components/Icon.d.ts +0 -61
  691. package/lib/typescript/commonjs/ui/components/Icon.d.ts.map +0 -1
  692. package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts +0 -99
  693. package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts.map +0 -1
  694. package/lib/typescript/commonjs/ui/components/IconButton/utils.d.ts +0 -19
  695. package/lib/typescript/commonjs/ui/components/IconButton/utils.d.ts.map +0 -1
  696. package/lib/typescript/commonjs/ui/components/LoadingState.d.ts +0 -9
  697. package/lib/typescript/commonjs/ui/components/LoadingState.d.ts.map +0 -1
  698. package/lib/typescript/commonjs/ui/components/OxyLogo.d.ts +0 -16
  699. package/lib/typescript/commonjs/ui/components/OxyLogo.d.ts.map +0 -1
  700. package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts +0 -21
  701. package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts.map +0 -1
  702. package/lib/typescript/commonjs/ui/components/QuickActions.d.ts +0 -15
  703. package/lib/typescript/commonjs/ui/components/QuickActions.d.ts.map +0 -1
  704. package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts +0 -28
  705. package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +0 -1
  706. package/lib/typescript/commonjs/ui/components/Surface.d.ts +0 -76
  707. package/lib/typescript/commonjs/ui/components/Surface.d.ts.map +0 -1
  708. package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts +0 -17
  709. package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
  710. package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts +0 -20
  711. package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
  712. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
  713. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
  714. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
  715. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
  716. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
  717. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
  718. package/lib/typescript/commonjs/ui/components/TextField/Adornment/enums.d.ts +0 -13
  719. package/lib/typescript/commonjs/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
  720. package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts +0 -12
  721. package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts.map +0 -1
  722. package/lib/typescript/commonjs/ui/components/TextField/Adornment/utils.d.ts +0 -12
  723. package/lib/typescript/commonjs/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
  724. package/lib/typescript/commonjs/ui/components/TextField/Label/InputLabel.d.ts +0 -5
  725. package/lib/typescript/commonjs/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
  726. package/lib/typescript/commonjs/ui/components/TextField/Label/LabelBackground.d.ts +0 -5
  727. package/lib/typescript/commonjs/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
  728. package/lib/typescript/commonjs/ui/components/TextField/TextFieldFlat.d.ts +0 -5
  729. package/lib/typescript/commonjs/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
  730. package/lib/typescript/commonjs/ui/components/TextField/TextFieldOutlined.d.ts +0 -5
  731. package/lib/typescript/commonjs/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
  732. package/lib/typescript/commonjs/ui/components/TextField/constants.d.ts +0 -32
  733. package/lib/typescript/commonjs/ui/components/TextField/constants.d.ts.map +0 -1
  734. package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts +0 -97
  735. package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts.map +0 -1
  736. package/lib/typescript/commonjs/ui/components/TextField/types.d.ts +0 -155
  737. package/lib/typescript/commonjs/ui/components/TextField/types.d.ts.map +0 -1
  738. package/lib/typescript/commonjs/ui/components/TextField.d.ts +0 -192
  739. package/lib/typescript/commonjs/ui/components/TextField.d.ts.map +0 -1
  740. package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts +0 -13
  741. package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
  742. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
  743. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
  744. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
  745. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
  746. package/lib/typescript/commonjs/ui/components/TouchableRipple/utils.d.ts +0 -11
  747. package/lib/typescript/commonjs/ui/components/TouchableRipple/utils.d.ts.map +0 -1
  748. package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts +0 -35
  749. package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts.map +0 -1
  750. package/lib/typescript/commonjs/ui/components/Typography/types.d.ts +0 -19
  751. package/lib/typescript/commonjs/ui/components/Typography/types.d.ts.map +0 -1
  752. package/lib/typescript/commonjs/ui/components/feedback/ProgressIndicator.d.ts +0 -11
  753. package/lib/typescript/commonjs/ui/components/feedback/ProgressIndicator.d.ts.map +0 -1
  754. package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts +0 -10
  755. package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts.map +0 -1
  756. package/lib/typescript/commonjs/ui/components/theming.d.ts +0 -8
  757. package/lib/typescript/commonjs/ui/components/theming.d.ts.map +0 -1
  758. package/lib/typescript/commonjs/ui/components/types.d.ts +0 -81
  759. package/lib/typescript/commonjs/ui/components/types.d.ts.map +0 -1
  760. package/lib/typescript/commonjs/ui/components/utils/forwardRef.d.ts +0 -12
  761. package/lib/typescript/commonjs/ui/components/utils/forwardRef.d.ts.map +0 -1
  762. package/lib/typescript/commonjs/ui/constants/iconColors.d.ts +0 -130
  763. package/lib/typescript/commonjs/ui/constants/iconColors.d.ts.map +0 -1
  764. package/lib/typescript/commonjs/ui/constants/theme.d.ts +0 -98
  765. package/lib/typescript/commonjs/ui/constants/theme.d.ts.map +0 -1
  766. package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts +0 -19
  767. package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts.map +0 -1
  768. package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts +0 -8
  769. package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts.map +0 -1
  770. package/lib/typescript/commonjs/ui/styles/authStyles.d.ts +0 -328
  771. package/lib/typescript/commonjs/ui/styles/authStyles.d.ts.map +0 -1
  772. package/lib/typescript/commonjs/ui/styles/theme.d.ts +0 -75
  773. package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +0 -1
  774. package/lib/typescript/module/ui/components/ActivityIndicator.d.ts +0 -45
  775. package/lib/typescript/module/ui/components/ActivityIndicator.d.ts.map +0 -1
  776. package/lib/typescript/module/ui/components/AutoHeightScrollView.d.ts +0 -23
  777. package/lib/typescript/module/ui/components/AutoHeightScrollView.d.ts.map +0 -1
  778. package/lib/typescript/module/ui/components/Avatar.d.ts +0 -61
  779. package/lib/typescript/module/ui/components/Avatar.d.ts.map +0 -1
  780. package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts +0 -28
  781. package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts.map +0 -1
  782. package/lib/typescript/module/ui/components/EmptyState.d.ts +0 -8
  783. package/lib/typescript/module/ui/components/EmptyState.d.ts.map +0 -1
  784. package/lib/typescript/module/ui/components/HelperText.d.ts +0 -47
  785. package/lib/typescript/module/ui/components/HelperText.d.ts.map +0 -1
  786. package/lib/typescript/module/ui/components/Icon.d.ts +0 -61
  787. package/lib/typescript/module/ui/components/Icon.d.ts.map +0 -1
  788. package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts +0 -99
  789. package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts.map +0 -1
  790. package/lib/typescript/module/ui/components/IconButton/utils.d.ts +0 -19
  791. package/lib/typescript/module/ui/components/IconButton/utils.d.ts.map +0 -1
  792. package/lib/typescript/module/ui/components/LoadingState.d.ts +0 -9
  793. package/lib/typescript/module/ui/components/LoadingState.d.ts.map +0 -1
  794. package/lib/typescript/module/ui/components/OxyLogo.d.ts +0 -16
  795. package/lib/typescript/module/ui/components/OxyLogo.d.ts.map +0 -1
  796. package/lib/typescript/module/ui/components/ProfileCard.d.ts +0 -21
  797. package/lib/typescript/module/ui/components/ProfileCard.d.ts.map +0 -1
  798. package/lib/typescript/module/ui/components/QuickActions.d.ts +0 -15
  799. package/lib/typescript/module/ui/components/QuickActions.d.ts.map +0 -1
  800. package/lib/typescript/module/ui/components/StepBasedScreen.d.ts +0 -28
  801. package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +0 -1
  802. package/lib/typescript/module/ui/components/Surface.d.ts +0 -76
  803. package/lib/typescript/module/ui/components/Surface.d.ts.map +0 -1
  804. package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts +0 -17
  805. package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
  806. package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts +0 -20
  807. package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
  808. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
  809. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
  810. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
  811. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
  812. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
  813. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
  814. package/lib/typescript/module/ui/components/TextField/Adornment/enums.d.ts +0 -13
  815. package/lib/typescript/module/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
  816. package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts +0 -12
  817. package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts.map +0 -1
  818. package/lib/typescript/module/ui/components/TextField/Adornment/utils.d.ts +0 -12
  819. package/lib/typescript/module/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
  820. package/lib/typescript/module/ui/components/TextField/Label/InputLabel.d.ts +0 -5
  821. package/lib/typescript/module/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
  822. package/lib/typescript/module/ui/components/TextField/Label/LabelBackground.d.ts +0 -5
  823. package/lib/typescript/module/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
  824. package/lib/typescript/module/ui/components/TextField/TextFieldFlat.d.ts +0 -5
  825. package/lib/typescript/module/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
  826. package/lib/typescript/module/ui/components/TextField/TextFieldOutlined.d.ts +0 -5
  827. package/lib/typescript/module/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
  828. package/lib/typescript/module/ui/components/TextField/constants.d.ts +0 -32
  829. package/lib/typescript/module/ui/components/TextField/constants.d.ts.map +0 -1
  830. package/lib/typescript/module/ui/components/TextField/helpers.d.ts +0 -97
  831. package/lib/typescript/module/ui/components/TextField/helpers.d.ts.map +0 -1
  832. package/lib/typescript/module/ui/components/TextField/types.d.ts +0 -155
  833. package/lib/typescript/module/ui/components/TextField/types.d.ts.map +0 -1
  834. package/lib/typescript/module/ui/components/TextField.d.ts +0 -192
  835. package/lib/typescript/module/ui/components/TextField.d.ts.map +0 -1
  836. package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts +0 -13
  837. package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
  838. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
  839. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
  840. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
  841. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
  842. package/lib/typescript/module/ui/components/TouchableRipple/utils.d.ts +0 -11
  843. package/lib/typescript/module/ui/components/TouchableRipple/utils.d.ts.map +0 -1
  844. package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts +0 -35
  845. package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts.map +0 -1
  846. package/lib/typescript/module/ui/components/Typography/types.d.ts +0 -19
  847. package/lib/typescript/module/ui/components/Typography/types.d.ts.map +0 -1
  848. package/lib/typescript/module/ui/components/feedback/ProgressIndicator.d.ts +0 -11
  849. package/lib/typescript/module/ui/components/feedback/ProgressIndicator.d.ts.map +0 -1
  850. package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts +0 -10
  851. package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts.map +0 -1
  852. package/lib/typescript/module/ui/components/theming.d.ts +0 -8
  853. package/lib/typescript/module/ui/components/theming.d.ts.map +0 -1
  854. package/lib/typescript/module/ui/components/types.d.ts +0 -81
  855. package/lib/typescript/module/ui/components/types.d.ts.map +0 -1
  856. package/lib/typescript/module/ui/components/utils/forwardRef.d.ts +0 -12
  857. package/lib/typescript/module/ui/components/utils/forwardRef.d.ts.map +0 -1
  858. package/lib/typescript/module/ui/constants/iconColors.d.ts +0 -130
  859. package/lib/typescript/module/ui/constants/iconColors.d.ts.map +0 -1
  860. package/lib/typescript/module/ui/constants/theme.d.ts +0 -98
  861. package/lib/typescript/module/ui/constants/theme.d.ts.map +0 -1
  862. package/lib/typescript/module/ui/context/ThemeContext.d.ts +0 -19
  863. package/lib/typescript/module/ui/context/ThemeContext.d.ts.map +0 -1
  864. package/lib/typescript/module/ui/hooks/useColorScheme.d.ts +0 -8
  865. package/lib/typescript/module/ui/hooks/useColorScheme.d.ts.map +0 -1
  866. package/lib/typescript/module/ui/styles/authStyles.d.ts +0 -328
  867. package/lib/typescript/module/ui/styles/authStyles.d.ts.map +0 -1
  868. package/lib/typescript/module/ui/styles/theme.d.ts +0 -75
  869. package/lib/typescript/module/ui/styles/theme.d.ts.map +0 -1
  870. package/src/ui/components/ActivityIndicator.tsx +0 -254
  871. package/src/ui/components/AutoHeightScrollView.tsx +0 -50
  872. package/src/ui/components/Avatar.tsx +0 -284
  873. package/src/ui/components/CrossFadeIcon.tsx +0 -140
  874. package/src/ui/components/EmptyState.tsx +0 -39
  875. package/src/ui/components/HelperText.tsx +0 -149
  876. package/src/ui/components/Icon.tsx +0 -189
  877. package/src/ui/components/IconButton/IconButton.tsx +0 -232
  878. package/src/ui/components/IconButton/utils.ts +0 -190
  879. package/src/ui/components/LoadingState.tsx +0 -46
  880. package/src/ui/components/OxyLogo.tsx +0 -82
  881. package/src/ui/components/ProfileCard.tsx +0 -137
  882. package/src/ui/components/QuickActions.tsx +0 -91
  883. package/src/ui/components/StepBasedScreen.tsx +0 -499
  884. package/src/ui/components/Surface.tsx +0 -384
  885. package/src/ui/components/TextField/Addons/Outline.tsx +0 -64
  886. package/src/ui/components/TextField/Addons/Underline.tsx +0 -78
  887. package/src/ui/components/TextField/Adornment/TextFieldAdornment.tsx +0 -205
  888. package/src/ui/components/TextField/Adornment/TextFieldAffix.tsx +0 -212
  889. package/src/ui/components/TextField/Adornment/TextFieldIcon.tsx +0 -195
  890. package/src/ui/components/TextField/Adornment/enums.tsx +0 -12
  891. package/src/ui/components/TextField/Adornment/types.tsx +0 -11
  892. package/src/ui/components/TextField/Adornment/utils.ts +0 -66
  893. package/src/ui/components/TextField/Label/InputLabel.tsx +0 -219
  894. package/src/ui/components/TextField/Label/LabelBackground.tsx +0 -100
  895. package/src/ui/components/TextField/TextFieldFlat.tsx +0 -488
  896. package/src/ui/components/TextField/TextFieldOutlined.tsx +0 -464
  897. package/src/ui/components/TextField/constants.tsx +0 -48
  898. package/src/ui/components/TextField/helpers.tsx +0 -611
  899. package/src/ui/components/TextField/types.tsx +0 -160
  900. package/src/ui/components/TextField.tsx +0 -574
  901. package/src/ui/components/TouchableRipple/Pressable.tsx +0 -42
  902. package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +0 -146
  903. package/src/ui/components/TouchableRipple/TouchableRipple.tsx +0 -347
  904. package/src/ui/components/TouchableRipple/utils.ts +0 -66
  905. package/src/ui/components/Typography/AnimatedText.tsx +0 -106
  906. package/src/ui/components/Typography/types.tsx +0 -22
  907. package/src/ui/components/feedback/ProgressIndicator.tsx +0 -35
  908. package/src/ui/components/icon/OxyIcon.tsx +0 -31
  909. package/src/ui/components/theming.tsx +0 -126
  910. package/src/ui/components/types.tsx +0 -93
  911. package/src/ui/components/utils/forwardRef.tsx +0 -23
  912. package/src/ui/constants/iconColors.ts +0 -88
  913. package/src/ui/constants/theme.ts +0 -121
  914. package/src/ui/context/ThemeContext.tsx +0 -41
  915. package/src/ui/context/__tests__/OxyContext.coldBoot.test.tsx +0 -166
  916. package/src/ui/hooks/useColorScheme.ts +0 -24
  917. package/src/ui/styles/authStyles.ts +0 -348
  918. package/src/ui/styles/theme.ts +0 -169
@@ -0,0 +1,471 @@
1
+ "use strict";
2
+
3
+ import { useCallback, useRef, useState } from 'react';
4
+ import { toast } from '@oxyhq/bloom';
5
+ import { useFileStore } from "../../../stores/fileStore.js";
6
+ import { convertDocumentPickerAssetToFile, formatFileSize } from "../../../utils/fileManagement.js";
7
+ import { candidateName, candidateSize, candidateType, candidateUri, getErrorMessage, loadDocumentPicker } from "../shared.js";
8
+
9
+ /** Dependencies threaded into the upload-state hook from the orchestrator. */
10
+
11
+ /** Public surface returned to the orchestrator. */
12
+
13
+ /**
14
+ * Owns the self-contained document-picking + upload-preview state and handlers
15
+ * extracted from FileManagementScreen. Behaviour is preserved verbatim — the
16
+ * orchestrator simply threads in the values these handlers depend on and
17
+ * consumes the returned state/handlers.
18
+ */
19
+ export const useFileUploadState = ({
20
+ targetUserId,
21
+ uploadFileMutation,
22
+ defaultVisibility,
23
+ selectMode,
24
+ multiSelect,
25
+ afterSelect,
26
+ onSelect,
27
+ goBack,
28
+ onClose,
29
+ selectedIds,
30
+ setSelectedIds,
31
+ loadFiles,
32
+ t
33
+ }) => {
34
+ const [isPickingDocument, setIsPickingDocument] = useState(false);
35
+ const [pendingFiles, setPendingFiles] = useState([]);
36
+ const [showUploadPreview, setShowUploadPreview] = useState(false);
37
+ const uploadStartRef = useRef(null);
38
+ const MIN_BANNER_MS = 600;
39
+ const storeSetUploading = useFileStore(s => s.setUploading);
40
+ const storeSetUploadProgress = useFileStore(s => s.setUploadProgress);
41
+ const endUpload = useCallback(() => {
42
+ const started = uploadStartRef.current;
43
+ const elapsed = started ? Date.now() - started : MIN_BANNER_MS;
44
+ const remaining = elapsed < MIN_BANNER_MS ? MIN_BANNER_MS - elapsed : 0;
45
+ setTimeout(() => {
46
+ useFileStore.getState().setUploading(false);
47
+ uploadStartRef.current = null;
48
+ }, remaining);
49
+ }, []);
50
+ const processFileUploads = async selectedFiles => {
51
+ if (selectedFiles.length === 0) return [];
52
+ if (!targetUserId) return []; // Guard clause to ensure userId is defined
53
+ const uploadedFiles = [];
54
+ try {
55
+ storeSetUploadProgress({
56
+ current: 0,
57
+ total: selectedFiles.length
58
+ });
59
+ const maxSize = 50 * 1024 * 1024; // 50MB
60
+ const oversizedFiles = selectedFiles.filter(file => candidateSize(file) > maxSize);
61
+ if (oversizedFiles.length > 0) {
62
+ const fileList = oversizedFiles.map(f => candidateName(f, 'file')).join(', ');
63
+ toast.error(t('fileManagement.toasts.filesTooLarge', {
64
+ files: fileList
65
+ }));
66
+ return [];
67
+ }
68
+ let successCount = 0;
69
+ let failureCount = 0;
70
+ const errors = [];
71
+ for (let i = 0; i < selectedFiles.length; i++) {
72
+ storeSetUploadProgress({
73
+ current: i + 1,
74
+ total: selectedFiles.length
75
+ });
76
+ const raw = selectedFiles[i];
77
+ const fileName = candidateName(raw, `file-${i + 1}`);
78
+ const fileSize = candidateSize(raw);
79
+ const fileType = candidateType(raw);
80
+ const optimisticId = `temp-${Date.now()}-${i}-${Math.random().toString(36).substr(2, 9)}`; // Unique ID per file
81
+
82
+ try {
83
+ // Validate file before upload
84
+ if (!raw || !fileName || fileSize <= 0) {
85
+ const errorMsg = `Invalid file: ${fileName}`;
86
+ if (__DEV__) {
87
+ console.error('Upload validation failed:', {
88
+ file: raw,
89
+ error: errorMsg
90
+ });
91
+ }
92
+ failureCount++;
93
+ errors.push(`${fileName}: Invalid file (missing name or size)`);
94
+ continue;
95
+ }
96
+ const optimisticFile = {
97
+ id: optimisticId,
98
+ filename: fileName,
99
+ contentType: fileType,
100
+ length: fileSize,
101
+ chunkSize: 0,
102
+ uploadDate: new Date().toISOString(),
103
+ metadata: {
104
+ uploading: true
105
+ },
106
+ variants: []
107
+ };
108
+ useFileStore.getState().addFile(optimisticFile, {
109
+ prepend: true
110
+ });
111
+
112
+ // Use the mutation hook with authentication handling
113
+ const result = await uploadFileMutation.mutateAsync({
114
+ file: raw,
115
+ visibility: defaultVisibility
116
+ });
117
+
118
+ // Attempt to refresh file list incrementally – fetch single file metadata if API allows
119
+ const f = result?.file ?? result?.files?.[0];
120
+ if (f) {
121
+ const merged = {
122
+ id: f.id,
123
+ filename: f.originalName || f.sha256 || fileName,
124
+ contentType: f.mime || fileType,
125
+ length: f.size || fileSize,
126
+ chunkSize: 0,
127
+ uploadDate: f.createdAt || new Date().toISOString(),
128
+ metadata: f.metadata || {},
129
+ variants: f.variants || []
130
+ };
131
+ // Remove optimistic then add real
132
+ useFileStore.getState().removeFile(optimisticId);
133
+ useFileStore.getState().addFile(merged, {
134
+ prepend: true
135
+ });
136
+ uploadedFiles.push(merged);
137
+ successCount++;
138
+ } else {
139
+ // Fallback: will reconcile on later list refresh
140
+ useFileStore.getState().updateFile(optimisticId, {
141
+ metadata: {
142
+ uploading: false
143
+ }
144
+ });
145
+ if (__DEV__) {
146
+ console.warn('Upload completed but no file data returned:', {
147
+ fileName,
148
+ result
149
+ });
150
+ }
151
+ // Still count as success if upload didn't throw
152
+ successCount++;
153
+ }
154
+ } catch (error) {
155
+ failureCount++;
156
+ const errorMessage = getErrorMessage(error) || 'Upload failed';
157
+ const fullError = `${fileName}: ${errorMessage}`;
158
+ errors.push(fullError);
159
+ if (__DEV__) {
160
+ console.error('File upload failed:', {
161
+ fileName,
162
+ fileSize,
163
+ fileType,
164
+ error: errorMessage,
165
+ stack: error instanceof Error ? error.stack : undefined
166
+ });
167
+ }
168
+
169
+ // Remove optimistic file on error (use the same optimisticId from above)
170
+ useFileStore.getState().removeFile(optimisticId);
171
+ }
172
+ }
173
+
174
+ // Show success/error messages
175
+ if (successCount > 0) {
176
+ toast.success(t('fileManagement.toasts.uploadSuccess', {
177
+ count: successCount
178
+ }));
179
+ }
180
+ if (failureCount > 0) {
181
+ // Show detailed error message with first few errors
182
+ const errorDetails = errors.length > 0 ? `\n${errors.slice(0, 3).join('\n')}${errors.length > 3 ? `\n...and ${errors.length - 3} more` : ''}` : '';
183
+ toast.error(`${t('fileManagement.toasts.uploadFailed', {
184
+ count: failureCount
185
+ })}${errorDetails}`);
186
+ }
187
+ // Silent background refresh to ensure metadata/variants updated
188
+ setTimeout(() => {
189
+ loadFiles('silent');
190
+ }, 1200);
191
+ } catch (error) {
192
+ toast.error(getErrorMessage(error) || t('fileManagement.toasts.uploadError'));
193
+ } finally {
194
+ storeSetUploadProgress(null);
195
+ }
196
+ return uploadedFiles;
197
+ };
198
+ const handleFileSelection = useCallback(async selectedFiles => {
199
+ const MAX_FILE_SIZE = 100 * 1024 * 1024; // 100MB
200
+ const processedFiles = [];
201
+ for (const file of selectedFiles) {
202
+ // Validate file has required properties
203
+ if (!file) {
204
+ if (__DEV__) {
205
+ console.error('Invalid file: file is null or undefined');
206
+ }
207
+ toast.error(t('fileManagement.toasts.invalidFileMissing'));
208
+ continue;
209
+ }
210
+ const name = candidateName(file, '');
211
+ if (!name) {
212
+ if (__DEV__) {
213
+ console.error('Invalid file: missing or invalid name property', file);
214
+ }
215
+ toast.error(t('fileManagement.toasts.invalidFileName'));
216
+ continue;
217
+ }
218
+ const size = file.size;
219
+ if (size === undefined || size === null || Number.isNaN(size)) {
220
+ if (__DEV__) {
221
+ console.error('Invalid file: missing or invalid size property', file);
222
+ }
223
+ toast.error(t('fileManagement.toasts.invalidFileSize', {
224
+ name
225
+ }));
226
+ continue;
227
+ }
228
+ if (size <= 0) {
229
+ if (__DEV__) {
230
+ console.error('Invalid file: file size is zero or negative', file);
231
+ }
232
+ toast.error(t('fileManagement.toasts.fileEmpty', {
233
+ name
234
+ }));
235
+ continue;
236
+ }
237
+
238
+ // Validate file size
239
+ if (size > MAX_FILE_SIZE) {
240
+ toast.error(t('fileManagement.toasts.fileTooLarge', {
241
+ name,
242
+ maxSize: formatFileSize(MAX_FILE_SIZE)
243
+ }));
244
+ continue;
245
+ }
246
+ const fileType = candidateType(file);
247
+
248
+ // Generate preview for images - unified approach
249
+ let preview;
250
+ if (fileType.startsWith('image/')) {
251
+ // Try to use file URI from expo-document-picker if available (works on all platforms)
252
+ const fileUri = candidateUri(file);
253
+ if (fileUri && (fileUri.startsWith('file://') || fileUri.startsWith('content://') || fileUri.startsWith('http://') || fileUri.startsWith('https://') || fileUri.startsWith('blob:'))) {
254
+ preview = fileUri;
255
+ } else {
256
+ // Fallback: create blob URL if possible (works on web only)
257
+ try {
258
+ if (typeof File !== 'undefined' && file instanceof File || typeof Blob !== 'undefined' && file instanceof Blob) {
259
+ preview = URL.createObjectURL(file);
260
+ }
261
+ } catch (error) {
262
+ if (__DEV__) {
263
+ console.warn('Failed to create preview URL:', error);
264
+ }
265
+ // Preview is optional, continue without it
266
+ }
267
+ }
268
+ }
269
+ processedFiles.push({
270
+ file,
271
+ preview,
272
+ size,
273
+ name,
274
+ type: fileType
275
+ });
276
+ }
277
+ if (processedFiles.length === 0) {
278
+ toast.error(t('fileManagement.toasts.noValidFiles'));
279
+ return;
280
+ }
281
+
282
+ // Show preview modal for user to review files before upload
283
+ setPendingFiles(processedFiles);
284
+ setShowUploadPreview(true);
285
+ }, [t]);
286
+ const handleConfirmUpload = async () => {
287
+ if (pendingFiles.length === 0) return;
288
+ setShowUploadPreview(false);
289
+ uploadStartRef.current = Date.now();
290
+ storeSetUploading(true);
291
+ storeSetUploadProgress(null);
292
+ try {
293
+ const filesToUpload = pendingFiles.map(pf => pf.file);
294
+ storeSetUploadProgress({
295
+ current: 0,
296
+ total: filesToUpload.length
297
+ });
298
+ const uploadedFiles = await processFileUploads(filesToUpload);
299
+
300
+ // Cleanup preview URLs
301
+ pendingFiles.forEach(pf => {
302
+ if (pf.preview) {
303
+ URL.revokeObjectURL(pf.preview);
304
+ }
305
+ });
306
+ setPendingFiles([]);
307
+
308
+ // If in selectMode, automatically select the uploaded file(s)
309
+ if (selectMode && uploadedFiles.length > 0) {
310
+ // Wait a bit for the file store to update and ensure file is available
311
+ setTimeout(() => {
312
+ const fileToSelect = uploadedFiles[0];
313
+ if (!multiSelect && fileToSelect) {
314
+ // Single select mode - directly call onSelect callback
315
+ onSelect?.(fileToSelect);
316
+ if (afterSelect === 'back') {
317
+ goBack?.();
318
+ } else if (afterSelect === 'close') {
319
+ onClose?.();
320
+ }
321
+ } else if (multiSelect) {
322
+ // Multi-select mode - add all uploaded files to selection
323
+ uploadedFiles.forEach(file => {
324
+ if (!selectedIds.has(file.id)) {
325
+ setSelectedIds(prev => new Set(prev).add(file.id));
326
+ }
327
+ });
328
+ }
329
+ }, 500);
330
+ }
331
+ endUpload();
332
+ } catch (error) {
333
+ toast.error(getErrorMessage(error) || t('fileManagement.toasts.uploadError'));
334
+ endUpload();
335
+ }
336
+ };
337
+ const handleCancelUpload = () => {
338
+ // Cleanup preview URLs
339
+ pendingFiles.forEach(pf => {
340
+ if (pf.preview) {
341
+ URL.revokeObjectURL(pf.preview);
342
+ }
343
+ });
344
+ setPendingFiles([]);
345
+ setShowUploadPreview(false);
346
+ };
347
+ const removePendingFile = index => {
348
+ const file = pendingFiles[index];
349
+ if (file.preview) {
350
+ URL.revokeObjectURL(file.preview);
351
+ }
352
+ const updated = pendingFiles.filter((_, i) => i !== index);
353
+ setPendingFiles(updated);
354
+ if (updated.length === 0) {
355
+ setShowUploadPreview(false);
356
+ }
357
+ };
358
+
359
+ /**
360
+ * Handle file upload - opens document picker and processes selected files
361
+ * Expo 54 compatible - works on web, iOS, and Android
362
+ */
363
+ const handleFileUpload = async () => {
364
+ // Prevent concurrent document picker calls
365
+ if (isPickingDocument) {
366
+ toast.error(t('fileManagement.toasts.waitForSelection'));
367
+ return;
368
+ }
369
+ try {
370
+ setIsPickingDocument(true);
371
+
372
+ // Lazy load expo-document-picker
373
+ const picker = await loadDocumentPicker();
374
+
375
+ // Use expo-document-picker (works on all platforms including web)
376
+ // On web, it uses the native file input and provides File objects directly
377
+ const result = await picker.getDocumentAsync({
378
+ type: '*/*',
379
+ multiple: true,
380
+ copyToCacheDirectory: true
381
+ });
382
+ if (result.canceled) {
383
+ setIsPickingDocument(false);
384
+ return;
385
+ }
386
+ if (!result.assets || result.assets.length === 0) {
387
+ setIsPickingDocument(false);
388
+ toast.error(t('fileManagement.toasts.noFilesSelected'));
389
+ return;
390
+ }
391
+
392
+ // Convert expo document picker results to File-like objects
393
+ // According to Expo 54 docs, expo-document-picker returns assets with:
394
+ // - uri: file URI (file://, content://, or blob URL)
395
+ // - name: file name
396
+ // - size: file size in bytes
397
+ // - mimeType: MIME type of the file
398
+ // - file: (optional) native File object (usually only on web)
399
+ const files = [];
400
+ const errors = [];
401
+
402
+ // Process files in parallel for better performance
403
+ // This allows multiple files to be converted simultaneously
404
+ const conversionPromises = result.assets.map((doc, index) => convertDocumentPickerAssetToFile(doc, index).then(file => {
405
+ if (file) {
406
+ // Validate file has required properties before adding
407
+ if (!file.name || file.size === undefined) {
408
+ errors.push(`File "${doc.name || 'file'}" is invalid: missing required properties`);
409
+ return null;
410
+ }
411
+ return file;
412
+ }
413
+ return null;
414
+ }).catch(error => {
415
+ errors.push(`File "${doc.name || 'file'}": ${getErrorMessage(error) || 'Failed to process'}`);
416
+ return null;
417
+ }));
418
+ const convertedFiles = await Promise.all(conversionPromises);
419
+
420
+ // Filter out null values
421
+ for (const file of convertedFiles) {
422
+ if (file) {
423
+ files.push(file);
424
+ }
425
+ }
426
+
427
+ // Show errors if any
428
+ if (errors.length > 0) {
429
+ const errorMessage = errors.slice(0, 3).join('\n') + (errors.length > 3 ? `\n...and ${errors.length - 3} more` : '');
430
+ toast.error(t('fileManagement.toasts.loadSomeFailed', {
431
+ errors: errorMessage
432
+ }));
433
+ }
434
+
435
+ // Process successfully converted files
436
+ if (files.length > 0) {
437
+ await handleFileSelection(files);
438
+ } else {
439
+ // Files were selected but none could be converted
440
+ toast.error(t('fileManagement.toasts.noFilesProcessed'));
441
+ }
442
+ } catch (error) {
443
+ if (__DEV__) {
444
+ console.error('File upload error:', error);
445
+ }
446
+ if (getErrorMessage(error)?.includes('expo-document-picker') || getErrorMessage(error)?.includes('Different document picking in progress')) {
447
+ if (getErrorMessage(error)?.includes('Different document picking in progress')) {
448
+ toast.error(t('fileManagement.toasts.waitForSelection'));
449
+ } else {
450
+ toast.error(t('fileManagement.toasts.filePickerNotAvailable'));
451
+ }
452
+ } else {
453
+ toast.error(getErrorMessage(error) || t('fileManagement.toasts.selectFilesFailed'));
454
+ }
455
+ } finally {
456
+ // Always reset the picking state, even if there was an error
457
+ setIsPickingDocument(false);
458
+ }
459
+ };
460
+ return {
461
+ isPickingDocument,
462
+ pendingFiles,
463
+ showUploadPreview,
464
+ handleFileUpload,
465
+ handleConfirmUpload,
466
+ handleCancelUpload,
467
+ removePendingFile
468
+ };
469
+ };
470
+ export default useFileUploadState;
471
+ //# sourceMappingURL=useFileUploadState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useCallback","useRef","useState","toast","useFileStore","convertDocumentPickerAssetToFile","formatFileSize","candidateName","candidateSize","candidateType","candidateUri","getErrorMessage","loadDocumentPicker","useFileUploadState","targetUserId","uploadFileMutation","defaultVisibility","selectMode","multiSelect","afterSelect","onSelect","goBack","onClose","selectedIds","setSelectedIds","loadFiles","t","isPickingDocument","setIsPickingDocument","pendingFiles","setPendingFiles","showUploadPreview","setShowUploadPreview","uploadStartRef","MIN_BANNER_MS","storeSetUploading","s","setUploading","storeSetUploadProgress","setUploadProgress","endUpload","started","current","elapsed","Date","now","remaining","setTimeout","getState","processFileUploads","selectedFiles","length","uploadedFiles","total","maxSize","oversizedFiles","filter","file","fileList","map","f","join","error","files","successCount","failureCount","errors","i","raw","fileName","fileSize","fileType","optimisticId","Math","random","toString","substr","errorMsg","__DEV__","console","push","optimisticFile","id","filename","contentType","chunkSize","uploadDate","toISOString","metadata","uploading","variants","addFile","prepend","result","mutateAsync","visibility","merged","originalName","sha256","mime","size","createdAt","removeFile","updateFile","warn","errorMessage","fullError","stack","Error","undefined","success","count","errorDetails","slice","handleFileSelection","MAX_FILE_SIZE","processedFiles","name","Number","isNaN","preview","startsWith","fileUri","File","Blob","URL","createObjectURL","type","handleConfirmUpload","filesToUpload","pf","forEach","revokeObjectURL","fileToSelect","has","prev","Set","add","handleCancelUpload","removePendingFile","index","updated","_","handleFileUpload","picker","getDocumentAsync","multiple","copyToCacheDirectory","canceled","assets","conversionPromises","doc","then","catch","convertedFiles","Promise","all","includes"],"sourceRoot":"../../../../../../src","sources":["ui/screens/fileManagement/hooks/useFileUploadState.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACrD,SAASC,KAAK,QAAQ,cAAc;AAEpC,SAASC,YAAY,QAAQ,8BAA2B;AAExD,SAASC,gCAAgC,EAAEC,cAAc,QAAQ,kCAA+B;AAChG,SAGIC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,YAAY,EACZC,eA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E,iBAAiB;IACjBgH,gBAAgB;IAChBf,mBAAmB;IACnBU,kBAAkB;IAClBC;EACJ,CAAC;AACL,CAAC;AAED,eAAe9H,kBAAkB","ignoreList":[]}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ import { getErrorMessage as getOxyErrorMessage } from '@oxyhq/core';
4
+
5
+ // Lazy load expo-document-picker (optional dependency).
6
+ // This allows the screen to work even if expo-document-picker is not installed.
7
+ let DocumentPicker = null;
8
+ export const loadDocumentPicker = async () => {
9
+ if (DocumentPicker) return DocumentPicker;
10
+ try {
11
+ DocumentPicker = await import('expo-document-picker');
12
+ return DocumentPicker;
13
+ } catch (error) {
14
+ throw new Error('expo-document-picker is not installed. Please install it: npx expo install expo-document-picker');
15
+ }
16
+ };
17
+
18
+ /**
19
+ * Extract error message from unknown error type.
20
+ * Delegates to the canonical `getErrorMessage` in `@oxyhq/core` and returns
21
+ * `undefined` for empty results (so callers can fall back to a translated
22
+ * message via `||`).
23
+ */
24
+ export const getErrorMessage = error => {
25
+ if (error == null) return undefined;
26
+ const message = getOxyErrorMessage(error, '');
27
+ return message ? message : undefined;
28
+ };
29
+
30
+ /**
31
+ * A picker-produced file ready to upload. On web this is a real `File`
32
+ * (carrying an optional `uri` for preview). On native, it's an
33
+ * {@link RNFileDescriptor} — passed straight to FormData by `assetUpload`.
34
+ */
35
+
36
+ /** Returns the display name for either a web File or an RN descriptor. */
37
+ export const candidateName = (candidate, fallback) => candidate.name && typeof candidate.name === 'string' ? candidate.name : fallback;
38
+
39
+ /** Returns the byte size for either a web File or an RN descriptor (0 if unknown). */
40
+ export const candidateSize = candidate => {
41
+ const size = candidate.size;
42
+ return typeof size === 'number' && Number.isFinite(size) ? size : 0;
43
+ };
44
+
45
+ /** Returns the mime type for either a web File or an RN descriptor. */
46
+ export const candidateType = candidate => {
47
+ const value = candidate.type;
48
+ return typeof value === 'string' && value.length > 0 ? value : 'application/octet-stream';
49
+ };
50
+
51
+ /** Returns the preview URI for an upload candidate, if available. */
52
+ export const candidateUri = candidate => {
53
+ const uri = candidate.uri;
54
+ return typeof uri === 'string' && uri.length > 0 ? uri : undefined;
55
+ };
56
+
57
+ /** A processed file ready for review in the upload preview modal. */
58
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getErrorMessage","getOxyErrorMessage","DocumentPicker","loadDocumentPicker","error","Error","undefined","message","candidateName","candidate","fallback","name","candidateSize","size","Number","isFinite","candidateType","value","type","length","candidateUri","uri"],"sourceRoot":"../../../../../src","sources":["ui/screens/fileManagement/shared.ts"],"mappings":";;AACA,SAASA,eAAe,IAAIC,kBAAkB,QAAQ,aAAa;;AAEnE;AACA;AACA,IAAIC,cAA4D,GAAG,IAAI;AACvE,OAAO,MAAMC,kBAAkB,GAAG,MAAAA,CAAA,KAAY;EAC1C,IAAID,cAAc,EAAE,OAAOA,cAAc;EACzC,IAAI;IACAA,cAAc,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC;IACrD,OAAOA,cAAc;EACzB,CAAC,CAAC,OAAOE,KAAK,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,iGAAiG,CAAC;EACtH;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAML,eAAe,GAAII,KAAc,IAAyB;EACnE,IAAIA,KAAK,IAAI,IAAI,EAAE,OAAOE,SAAS;EACnC,MAAMC,OAAO,GAAGN,kBAAkB,CAACG,KAAK,EAAE,EAAE,CAAC;EAC7C,OAAOG,OAAO,GAAGA,OAAO,GAAGD,SAAS;AACxC,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAGA;AACA,OAAO,MAAME,aAAa,GAAGA,CAACC,SAA0B,EAAEC,QAAgB,KACrED,SAAS,CAACE,IAAI,IAAI,OAAOF,SAAS,CAACE,IAAI,KAAK,QAAQ,GAAGF,SAAS,CAACE,IAAI,GAAGD,QAAS;;AAEtF;AACA,OAAO,MAAME,aAAa,GAAIH,SAA0B,IAAa;EACjE,MAAMI,IAAI,GAAIJ,SAAS,CAAuBI,IAAI;EAClD,OAAO,OAAOA,IAAI,KAAK,QAAQ,IAAIC,MAAM,CAACC,QAAQ,CAACF,IAAI,CAAC,GAAGA,IAAI,GAAG,CAAC;AACvE,CAAC;;AAED;AACA,OAAO,MAAMG,aAAa,GAAIP,SAA0B,IAAa;EACjE,MAAMQ,KAAK,GAAIR,SAAS,CAAuBS,IAAI;EACnD,OAAO,OAAOD,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACE,MAAM,GAAG,CAAC,GAAGF,KAAK,GAAG,0BAA0B;AAC7F,CAAC;;AAED;AACA,OAAO,MAAMG,YAAY,GAAIX,SAA0B,IAAyB;EAC5E,MAAMY,GAAG,GAAIZ,SAAS,CAAsBY,GAAG;EAC/C,OAAO,OAAOA,GAAG,KAAK,QAAQ,IAAIA,GAAG,CAACF,MAAM,GAAG,CAAC,GAAGE,GAAG,GAAGf,SAAS;AACtE,CAAC;;AAED","ignoreList":[]}
@@ -9,7 +9,7 @@ import { H1, Text } from '@oxyhq/bloom/typography';
9
9
  import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
10
10
  import Header from "../../components/Header.js";
11
11
  import { SettingsIcon } from "../../components/SettingsIcon.js";
12
- import LoadingState from "../../components/LoadingState.js";
12
+ import { Loading } from '@oxyhq/bloom/loading';
13
13
  import { useI18n } from "../../hooks/useI18n.js";
14
14
  import { useOxy } from "../../context/OxyContext.js";
15
15
  import { getTrustTierLabel } from "./trustTier.js";
@@ -75,7 +75,8 @@ const TrustCenterScreen = ({
75
75
  elevation: "subtle"
76
76
  }), /*#__PURE__*/_jsx(View, {
77
77
  style: styles.center,
78
- children: /*#__PURE__*/_jsx(LoadingState, {
78
+ children: /*#__PURE__*/_jsx(Loading, {
79
+ size: "large",
79
80
  color: primaryColor
80
81
  })
81
82
  })]
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useMemo","useState","View","ScrollView","StyleSheet","Ionicons","Chip","useTheme","H1","Text","SettingsListGroup","SettingsListItem","Header","SettingsIcon","LoadingState","useI18n","useOxy","getTrustTierLabel","jsx","_jsx","jsxs","_jsxs","TrustCenterScreen","onClose","goBack","navigate","user","oxyServices","isAuthenticated","t","reputationTotal","setReputationTotal","trustTier","setTrustTier","transactions","setTransactions","isLoading","setIsLoading","error","setError","bloomTheme","primaryColor","colors","primary","Promise","all","getReputationBalance","id","getReputationTransactions","then","balance","txns","total","Array","isArray","catch","err","Error","message","finally","trustTierLabel","title","className","children","onBack","elevation","style","styles","center","color","contentContainerClassName","variant","startIcon","name","size","infoText","icon","warning","onPress","info","success","secondary","length","textTertiary","showChevron","disabled","map","entry","points","reason","actionType","description","category","createdAt","Date","toLocaleString","rightElement","create","flex","alignItems","justifyContent","maxWidth"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustCenterScreen.tsx"],"mappings":";;AACA,SAASA,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAE3D,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,EAAE,EAAEC,IAAI,QAAQ,yBAAyB;AAClD,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,4BAA4B;AAEhF,OAAOC,MAAM,MAAM,4BAAyB;AAC5C,SAASC,YAAY,QAAQ,kCAA+B;AAC5D,OAAOC,YAAY,MAAM,kCAA+B;AACxD,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,MAAM,QAAQ,6BAA0B;AACjD,SAASC,iBAAiB,QAAQ,gBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,iBAA4C,GAAGA,CAAC;EAClDC,OAAO;EACPC,MAAM;EACNC;AACJ,CAAC,KAAK;EACF;EACA;EACA,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AA4B,CAAC,IAAI,gBACvC;UACD8D,WAAW,EACP,GAAGJ,KAAK,CAACK,QAAQ,GACbL,KAAK,CAACM,SAAS,GACT,MAAM,IAAIC,IAAI,CAACP,KAAK,CAACM,SAAS,CAAC,CAACE,cAAc,CAAC,CAAC,EAAE,GAClD,EAAE,EAEf;UACDC,YAAY,eACR7E,IAAA,CAACb,IAAI;YACDiE,OAAO,EAAC,MAAM;YACdG,IAAI,EAAC,OAAO;YACZL,KAAK,EAAEkB,KAAK,CAACC,MAAM,GAAG,CAAC,GAAG,SAAS,GAAG,OAAQ;YAAAzB,QAAA,EAE7C,GAAGwB,KAAK,CAACC,MAAM,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE,GAAGD,KAAK,CAACC,MAAM;UAAE,CAC9C,CACT;UACDJ,WAAW,EAAE;QAAM,GApCdG,KAAK,CAACxC,EAqCd,CACJ;MACJ,CACc,CAAC,EAEnBT,KAAK,gBACFnB,IAAA,CAACV,IAAI;QACDqD,SAAS,EAAC,iCAAiC;QAC3CI,KAAK,EAAE;UAAEG,KAAK,EAAE7B,UAAU,CAACE,MAAM,CAACJ;QAAM,CAAE;QAAAyB,QAAA,EAEzCzB;MAAK,CACJ,CAAC,GACP,IAAI;IAAA,CACA,CAAC;EAAA,CACX,CAAC;AAEf,CAAC;;AAED;AACA;AACA;AACA,MAAM6B,MAAM,GAAG/D,UAAU,CAAC6F,MAAM,CAAC;EAC7B7B,MAAM,EAAE;IACJ8B,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACpB,CAAC;EACDzB,QAAQ,EAAE;IACN0B,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC;AAEF,eAAe/E,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["useEffect","useMemo","useState","View","ScrollView","StyleSheet","Ionicons","Chip","useTheme","H1","Text","SettingsListGroup","SettingsListItem","Header","SettingsIcon","Loading","useI18n","useOxy","getTrustTierLabel","jsx","_jsx","jsxs","_jsxs","TrustCenterScreen","onClose","goBack","navigate","user","oxyServices","isAuthenticated","t","reputationTotal","setReputationTotal","trustTier","setTrustTier","transactions","setTransactions","isLoading","setIsLoading","error","setError","bloomTheme","primaryColor","colors","primary","Promise","all","getReputationBalance","id","getReputationTransactions","then","balance","txns","total","Array","isArray","catch","err","Error","message","finally","trustTierLabel","title","className","children","onBack","elevation","style","styles","center","size","color","contentContainerClassName","variant","startIcon","name","infoText","icon","warning","onPress","info","success","secondary","length","textTertiary","showChevron","disabled","map","entry","points","reason","actionType","description","category","createdAt","Date","toLocaleString","rightElement","create","flex","alignItems","justifyContent","maxWidth"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustCenterScreen.tsx"],"mappings":";;AACA,SAASA,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAE3D,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,EAAE,EAAEC,IAAI,QAAQ,yBAAyB;AAClD,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,4BAA4B;AAEhF,OAAOC,MAAM,MAAM,4BAAyB;AAC5C,SAASC,YAAY,QAAQ,kCAA+B;AAC5D,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,MAAM,QAAQ,6BAA0B;AACjD,SAASC,iBAAiB,QAAQ,gBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,iBAA4C,GAAGA,CAAC;EAClDC,OAAO;EACPC,MAAM;EACNC;AACJ,CAAC,KAAK;EACF;EACA;EACA,MAAM;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAC,GAAGZ,MAAM,CAAC,CAAC;EACv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AACK,QAAQ,GACbL,KAAK,CAACM,SAAS,GACT,MAAM,IAAIC,IAAI,CAACP,KAAK,CAACM,SAAS,CAAC,CAACE,cAAc,CAAC,CAAC,EAAE,GAClD,EAAE,EAEf;UACDC,YAAY,eACR7E,IAAA,CAACb,IAAI;YACDkE,OAAO,EAAC,MAAM;YACdH,IAAI,EAAC,OAAO;YACZC,KAAK,EAAEiB,KAAK,CAACC,MAAM,GAAG,CAAC,GAAG,SAAS,GAAG,OAAQ;YAAAzB,QAAA,EAE7C,GAAGwB,KAAK,CAACC,MAAM,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE,GAAGD,KAAK,CAACC,MAAM;UAAE,CAC9C,CACT;UACDJ,WAAW,EAAE;QAAM,GApCdG,KAAK,CAACxC,EAqCd,CACJ;MACJ,CACc,CAAC,EAEnBT,KAAK,gBACFnB,IAAA,CAACV,IAAI;QACDqD,SAAS,EAAC,iCAAiC;QAC3CI,KAAK,EAAE;UAAEI,KAAK,EAAE9B,UAAU,CAACE,MAAM,CAACJ;QAAM,CAAE;QAAAyB,QAAA,EAEzCzB;MAAK,CACJ,CAAC,GACP,IAAI;IAAA,CACA,CAAC;EAAA,CACX,CAAC;AAEf,CAAC;;AAED;AACA;AACA;AACA,MAAM6B,MAAM,GAAG/D,UAAU,CAAC6F,MAAM,CAAC;EAC7B7B,MAAM,EAAE;IACJ8B,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACpB,CAAC;EACDzB,QAAQ,EAAE;IACN0B,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC;AAEF,eAAe/E,iBAAiB","ignoreList":[]}
@@ -3,11 +3,9 @@
3
3
  import React, { useState, useMemo, useCallback } from 'react';
4
4
  import { View, ScrollView } from 'react-native';
5
5
  import Header from "../../components/Header.js";
6
- import EmptyState from "../../components/EmptyState.js";
7
6
  import { SearchInput } from '@oxyhq/bloom/search-input';
8
7
  import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '@oxyhq/bloom/accordion';
9
8
  import { Text } from '@oxyhq/bloom/typography';
10
- import { useTheme } from '@oxyhq/bloom/theme';
11
9
  import { useI18n } from "../../hooks/useI18n.js";
12
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
11
  const FAQ_KEYS = ['what', 'earn', 'lose', 'use', 'transfer', 'support'];
@@ -26,7 +24,6 @@ const TrustFAQScreen = ({
26
24
  const {
27
25
  t
28
26
  } = useI18n();
29
- const bloomTheme = useTheme();
30
27
  const [search, setSearch] = useState('');
31
28
  const [expanded, setExpanded] = useState(undefined);
32
29
  const faqs = useMemo(() => FAQ_KEYS.map(key => ({
@@ -62,11 +59,11 @@ const TrustFAQScreen = ({
62
59
  }), /*#__PURE__*/_jsx(ScrollView, {
63
60
  className: "flex-1 px-screen-margin",
64
61
  showsVerticalScrollIndicator: false,
65
- children: filteredFaqs.length === 0 ? /*#__PURE__*/_jsx(EmptyState, {
66
- message: t('trust.faq.noResults', {
62
+ children: filteredFaqs.length === 0 ? /*#__PURE__*/_jsx(Text, {
63
+ className: "text-text-secondary text-center p-space-40",
64
+ children: t('trust.faq.noResults', {
67
65
  query: search
68
- }) || `No FAQ items found matching "${search}"`,
69
- textColor: bloomTheme.colors.text
66
+ }) || `No FAQ items found matching "${search}"`
70
67
  }) : /*#__PURE__*/_jsx(Accordion, {
71
68
  type: "single",
72
69
  value: expanded,