@oxyhq/services 19.0.1 → 19.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (913) 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/paymentStyles.js +13 -13
  43. package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
  44. package/lib/commonjs/ui/context/OxyContext.js +129 -260
  45. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  46. package/lib/commonjs/ui/context/oxyContextHelpers.js +64 -0
  47. package/lib/commonjs/ui/context/oxyContextHelpers.js.map +1 -0
  48. package/lib/commonjs/ui/{components/TextField/Adornment/types.js → context/oxyContextTypes.js} +1 -1
  49. package/lib/commonjs/ui/context/oxyContextTypes.js.map +1 -0
  50. package/lib/commonjs/ui/context/useOxyAccountGraph.js +91 -0
  51. package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -0
  52. package/lib/commonjs/ui/hooks/queryClient.js +9 -18
  53. package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
  54. package/lib/commonjs/ui/hooks/useAuth.js +7 -5
  55. package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
  56. package/lib/commonjs/ui/hooks/useSessionManagement.js +2 -0
  57. package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
  58. package/lib/commonjs/ui/index.js +10 -17
  59. package/lib/commonjs/ui/index.js.map +1 -1
  60. package/lib/commonjs/ui/navigation/accountDialogManager.js +5 -44
  61. package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
  62. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +9 -8
  63. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
  64. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +2 -3
  65. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
  66. package/lib/commonjs/ui/screens/EditProfileScreen.js +8 -19
  67. package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
  68. package/lib/commonjs/ui/screens/FAQScreen.js +8 -8
  69. package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
  70. package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -1
  71. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  72. package/lib/commonjs/ui/screens/FileManagementScreen.js +59 -1105
  73. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  74. package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -8
  75. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  76. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +0 -1
  77. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  78. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +5 -4
  79. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  80. package/lib/commonjs/ui/screens/ManageAccountScreen.js +9 -49
  81. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
  82. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +6 -9
  83. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  84. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +247 -224
  85. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  86. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +21 -20
  87. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  88. package/lib/commonjs/ui/screens/ProfileScreen.js +4 -4
  89. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  90. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +12 -11
  91. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
  92. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +3 -2
  93. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  94. package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
  95. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  96. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +7 -8
  97. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  98. package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +114 -0
  99. package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -0
  100. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +512 -0
  101. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
  102. package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +59 -0
  103. package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -0
  104. package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +475 -0
  105. package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
  106. package/lib/commonjs/ui/screens/fileManagement/shared.js +67 -0
  107. package/lib/commonjs/ui/screens/fileManagement/shared.js.map +1 -0
  108. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +3 -2
  109. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  110. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +4 -7
  111. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  112. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +3 -3
  113. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  114. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +3 -2
  115. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  116. package/lib/commonjs/ui/server.js +4 -5
  117. package/lib/commonjs/ui/server.js.map +1 -1
  118. package/lib/commonjs/ui/session/createSessionClient.js +2 -2
  119. package/lib/commonjs/ui/utils/crossOriginRestore.js +109 -0
  120. package/lib/commonjs/ui/utils/crossOriginRestore.js.map +1 -0
  121. package/lib/commonjs/ui/utils/deviceCredential.js +23 -0
  122. package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -0
  123. package/lib/commonjs/ui/utils/oauthReturn.js +82 -0
  124. package/lib/commonjs/ui/utils/oauthReturn.js.map +1 -0
  125. package/lib/commonjs/ui/utils/storageHelpers.js +1 -2
  126. package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -1
  127. package/lib/module/assets/assets/icons/OxyServices.tsx +5 -12
  128. package/lib/module/assets/icons/OxyServices.js +7 -7
  129. package/lib/module/assets/icons/OxyServices.js.map +1 -1
  130. package/lib/module/index.js +10 -9
  131. package/lib/module/index.js.map +1 -1
  132. package/lib/module/ui/boot/runProviderColdBoot.js +116 -0
  133. package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -0
  134. package/lib/module/ui/client.js +3 -4
  135. package/lib/module/ui/client.js.map +1 -1
  136. package/lib/module/ui/components/FollowButton.js +28 -92
  137. package/lib/module/ui/components/FollowButton.js.map +1 -1
  138. package/lib/module/ui/components/Header.js +127 -241
  139. package/lib/module/ui/components/Header.js.map +1 -1
  140. package/lib/module/ui/components/OxyAccountDialog.js +22 -18
  141. package/lib/module/ui/components/OxyAccountDialog.js.map +1 -1
  142. package/lib/module/ui/components/OxyConsentScreen.js +4 -5
  143. package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
  144. package/lib/module/ui/components/OxyOAuthCallback.js +41 -0
  145. package/lib/module/ui/components/OxyOAuthCallback.js.map +1 -0
  146. package/lib/module/ui/components/OxyPayButton.js +21 -71
  147. package/lib/module/ui/components/OxyPayButton.js.map +1 -1
  148. package/lib/module/ui/components/OxyProvider.js +3 -3
  149. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  150. package/lib/module/ui/components/OxySignInButton.js +34 -139
  151. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  152. package/lib/module/ui/components/ProfileButton.js +5 -3
  153. package/lib/module/ui/components/ProfileButton.js.map +1 -1
  154. package/lib/module/ui/components/ProfileSummaryCard.js +95 -0
  155. package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -0
  156. package/lib/module/ui/components/RequireOxyAuth.js +7 -9
  157. package/lib/module/ui/components/RequireOxyAuth.js.map +1 -1
  158. package/lib/module/ui/components/fileManagement/FileDetailsModal.js +9 -9
  159. package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  160. package/lib/module/ui/components/fileManagement/FileViewer.js +20 -23
  161. package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
  162. package/lib/module/ui/components/fileManagement/UploadPreview.js +6 -6
  163. package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
  164. package/lib/module/ui/components/modals/DeleteAccountModal.js +14 -8
  165. package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
  166. package/lib/module/ui/components/payment/PaymentDetailsStep.js +54 -54
  167. package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  168. package/lib/module/ui/components/payment/paymentStyles.js +13 -13
  169. package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
  170. package/lib/module/ui/context/OxyContext.js +128 -259
  171. package/lib/module/ui/context/OxyContext.js.map +1 -1
  172. package/lib/module/ui/context/oxyContextHelpers.js +57 -0
  173. package/lib/module/ui/context/oxyContextHelpers.js.map +1 -0
  174. package/lib/module/ui/context/oxyContextTypes.js +4 -0
  175. package/lib/module/ui/context/oxyContextTypes.js.map +1 -0
  176. package/lib/module/ui/context/useOxyAccountGraph.js +87 -0
  177. package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -0
  178. package/lib/module/ui/hooks/queryClient.js +8 -17
  179. package/lib/module/ui/hooks/queryClient.js.map +1 -1
  180. package/lib/module/ui/hooks/useAuth.js +7 -5
  181. package/lib/module/ui/hooks/useAuth.js.map +1 -1
  182. package/lib/module/ui/hooks/useSessionManagement.js +2 -0
  183. package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
  184. package/lib/module/ui/index.js +2 -3
  185. package/lib/module/ui/index.js.map +1 -1
  186. package/lib/module/ui/navigation/accountDialogManager.js +4 -41
  187. package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
  188. package/lib/module/ui/screens/ConnectedAppsScreen.js +8 -7
  189. package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
  190. package/lib/module/ui/screens/EditProfileFieldScreen.js +2 -3
  191. package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
  192. package/lib/module/ui/screens/EditProfileScreen.js +7 -18
  193. package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
  194. package/lib/module/ui/screens/FAQScreen.js +8 -8
  195. package/lib/module/ui/screens/FAQScreen.js.map +1 -1
  196. package/lib/module/ui/screens/FeedbackScreen.js +0 -1
  197. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  198. package/lib/module/ui/screens/FileManagementScreen.js +53 -1098
  199. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  200. package/lib/module/ui/screens/HistoryViewScreen.js +9 -8
  201. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  202. package/lib/module/ui/screens/LanguageSelectorScreen.js +0 -1
  203. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  204. package/lib/module/ui/screens/LegalDocumentsScreen.js +5 -4
  205. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  206. package/lib/module/ui/screens/ManageAccountScreen.js +11 -51
  207. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
  208. package/lib/module/ui/screens/PaymentGatewayScreen.js +4 -7
  209. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  210. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +247 -224
  211. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  212. package/lib/module/ui/screens/PrivacySettingsScreen.js +19 -18
  213. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  214. package/lib/module/ui/screens/ProfileScreen.js +3 -3
  215. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  216. package/lib/module/ui/screens/SavesCollectionsScreen.js +12 -11
  217. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
  218. package/lib/module/ui/screens/SearchSettingsScreen.js +3 -2
  219. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  220. package/lib/module/ui/screens/UserListScreen.js +2 -2
  221. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  222. package/lib/module/ui/screens/WelcomeNewUserScreen.js +6 -6
  223. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  224. package/lib/module/ui/screens/fileManagement/FileListSection.js +110 -0
  225. package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -0
  226. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +509 -0
  227. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
  228. package/lib/module/ui/screens/fileManagement/UploadBar.js +55 -0
  229. package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -0
  230. package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +471 -0
  231. package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
  232. package/lib/module/ui/screens/fileManagement/shared.js +58 -0
  233. package/lib/module/ui/screens/fileManagement/shared.js.map +1 -0
  234. package/lib/module/ui/screens/trust/TrustCenterScreen.js +3 -2
  235. package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  236. package/lib/module/ui/screens/trust/TrustFAQScreen.js +4 -7
  237. package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  238. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
  239. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  240. package/lib/module/ui/screens/trust/TrustRulesScreen.js +3 -2
  241. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  242. package/lib/module/ui/server.js +2 -3
  243. package/lib/module/ui/server.js.map +1 -1
  244. package/lib/module/ui/session/createSessionClient.js +2 -2
  245. package/lib/module/ui/utils/crossOriginRestore.js +101 -0
  246. package/lib/module/ui/utils/crossOriginRestore.js.map +1 -0
  247. package/lib/module/ui/utils/deviceCredential.js +18 -0
  248. package/lib/module/ui/utils/deviceCredential.js.map +1 -0
  249. package/lib/module/ui/utils/oauthReturn.js +78 -0
  250. package/lib/module/ui/utils/oauthReturn.js.map +1 -0
  251. package/lib/module/ui/utils/storageHelpers.js +1 -2
  252. package/lib/module/ui/utils/storageHelpers.js.map +1 -1
  253. package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts +0 -5
  254. package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/index.d.ts +11 -6
  256. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +29 -0
  258. package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/ui/client.d.ts +3 -4
  260. package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/ui/components/Header.d.ts +16 -21
  263. package/lib/typescript/commonjs/ui/components/Header.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts +3 -7
  265. package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts +11 -0
  267. package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts.map +1 -0
  268. package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +0 -13
  270. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts +33 -0
  273. package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/ui/components/payment/types.d.ts +6 -10
  278. package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -1
  279. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +2 -185
  280. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts +7 -0
  282. package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts.map +1 -0
  283. package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +123 -0
  284. package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -0
  285. package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +26 -0
  286. package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +2 -3
  288. package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
  289. package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +7 -5
  290. package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
  291. package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/ui/index.d.ts +2 -3
  293. package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +4 -34
  295. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
  300. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  302. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  304. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  310. package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts +40 -0
  311. package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
  312. package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +38 -0
  313. package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
  314. package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts +25 -0
  315. package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
  316. package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +39 -0
  317. package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts +34 -0
  319. package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts.map +1 -0
  320. package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  321. package/lib/typescript/commonjs/ui/server.d.ts +2 -3
  322. package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
  323. package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +2 -2
  324. package/lib/typescript/commonjs/ui/types/navigation.d.ts +2 -18
  325. package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
  326. package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts +24 -0
  327. package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts.map +1 -0
  328. package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts +8 -0
  329. package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -0
  330. package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts +25 -0
  331. package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts +0 -11
  333. package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts.map +1 -1
  334. package/lib/typescript/module/assets/icons/OxyServices.d.ts +0 -5
  335. package/lib/typescript/module/assets/icons/OxyServices.d.ts.map +1 -1
  336. package/lib/typescript/module/index.d.ts +11 -6
  337. package/lib/typescript/module/index.d.ts.map +1 -1
  338. package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +29 -0
  339. package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -0
  340. package/lib/typescript/module/ui/client.d.ts +3 -4
  341. package/lib/typescript/module/ui/client.d.ts.map +1 -1
  342. package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
  343. package/lib/typescript/module/ui/components/Header.d.ts +16 -21
  344. package/lib/typescript/module/ui/components/Header.d.ts.map +1 -1
  345. package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts +3 -7
  346. package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +1 -1
  347. package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts +11 -0
  348. package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts.map +1 -0
  349. package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -1
  350. package/lib/typescript/module/ui/components/OxySignInButton.d.ts +0 -13
  351. package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
  352. package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
  353. package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts +33 -0
  354. package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -0
  355. package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  356. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  357. package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  358. package/lib/typescript/module/ui/components/payment/types.d.ts +6 -10
  359. package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -1
  360. package/lib/typescript/module/ui/context/OxyContext.d.ts +2 -185
  361. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  362. package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts +7 -0
  363. package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts.map +1 -0
  364. package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +123 -0
  365. package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -0
  366. package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +26 -0
  367. package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -0
  368. package/lib/typescript/module/ui/hooks/queryClient.d.ts +2 -3
  369. package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
  370. package/lib/typescript/module/ui/hooks/useAuth.d.ts +7 -5
  371. package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
  372. package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
  373. package/lib/typescript/module/ui/index.d.ts +2 -3
  374. package/lib/typescript/module/ui/index.d.ts.map +1 -1
  375. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +4 -34
  376. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
  377. package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  378. package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  379. package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
  380. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
  381. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
  382. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  383. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  384. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  385. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  386. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  387. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  388. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  389. package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  390. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  391. package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts +40 -0
  392. package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
  393. package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +38 -0
  394. package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
  395. package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts +25 -0
  396. package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
  397. package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +39 -0
  398. package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
  399. package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts +34 -0
  400. package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts.map +1 -0
  401. package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  402. package/lib/typescript/module/ui/server.d.ts +2 -3
  403. package/lib/typescript/module/ui/server.d.ts.map +1 -1
  404. package/lib/typescript/module/ui/session/createSessionClient.d.ts +2 -2
  405. package/lib/typescript/module/ui/types/navigation.d.ts +2 -18
  406. package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
  407. package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts +24 -0
  408. package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts.map +1 -0
  409. package/lib/typescript/module/ui/utils/deviceCredential.d.ts +8 -0
  410. package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -0
  411. package/lib/typescript/module/ui/utils/oauthReturn.d.ts +25 -0
  412. package/lib/typescript/module/ui/utils/oauthReturn.d.ts.map +1 -0
  413. package/lib/typescript/module/ui/utils/storageHelpers.d.ts +0 -11
  414. package/lib/typescript/module/ui/utils/storageHelpers.d.ts.map +1 -1
  415. package/package.json +29 -17
  416. package/src/assets/icons/OxyServices.tsx +5 -12
  417. package/src/index.ts +16 -10
  418. package/src/ui/boot/runProviderColdBoot.ts +150 -0
  419. package/src/ui/client.ts +3 -4
  420. package/src/ui/components/FollowButton.tsx +30 -95
  421. package/src/ui/components/Header.tsx +135 -405
  422. package/src/ui/components/OxyAccountDialog.tsx +18 -16
  423. package/src/ui/components/OxyConsentScreen.tsx +2 -2
  424. package/src/ui/components/OxyOAuthCallback.tsx +38 -0
  425. package/src/ui/components/OxyPayButton.tsx +11 -60
  426. package/src/ui/components/OxyProvider.tsx +3 -3
  427. package/src/ui/components/OxySignInButton.tsx +35 -134
  428. package/src/ui/components/ProfileButton.tsx +8 -3
  429. package/src/ui/components/ProfileSummaryCard.tsx +123 -0
  430. package/src/ui/components/RequireOxyAuth.tsx +3 -3
  431. package/src/ui/components/__tests__/OxyConsentScreen.test.tsx +1 -3
  432. package/src/ui/components/fileManagement/FileDetailsModal.tsx +9 -9
  433. package/src/ui/components/fileManagement/FileViewer.tsx +20 -22
  434. package/src/ui/components/fileManagement/UploadPreview.tsx +6 -6
  435. package/src/ui/components/modals/DeleteAccountModal.tsx +7 -7
  436. package/src/ui/components/payment/PaymentDetailsStep.tsx +49 -39
  437. package/src/ui/components/payment/paymentStyles.ts +14 -14
  438. package/src/ui/components/payment/types.ts +6 -10
  439. package/src/ui/context/OxyContext.tsx +136 -470
  440. package/src/ui/context/oxyContextHelpers.ts +58 -0
  441. package/src/ui/context/oxyContextTypes.ts +124 -0
  442. package/src/ui/context/useOxyAccountGraph.ts +114 -0
  443. package/src/ui/hooks/queryClient.ts +9 -20
  444. package/src/ui/hooks/useAuth.ts +7 -5
  445. package/src/ui/hooks/useSessionManagement.ts +2 -0
  446. package/src/ui/index.ts +2 -3
  447. package/src/ui/navigation/accountDialogManager.ts +4 -40
  448. package/src/ui/screens/ConnectedAppsScreen.tsx +8 -11
  449. package/src/ui/screens/EditProfileFieldScreen.tsx +2 -3
  450. package/src/ui/screens/EditProfileScreen.tsx +8 -14
  451. package/src/ui/screens/FAQScreen.tsx +7 -8
  452. package/src/ui/screens/FeedbackScreen.tsx +0 -1
  453. package/src/ui/screens/FileManagementScreen.tsx +54 -1158
  454. package/src/ui/screens/HistoryViewScreen.tsx +4 -4
  455. package/src/ui/screens/LanguageSelectorScreen.tsx +0 -1
  456. package/src/ui/screens/LegalDocumentsScreen.tsx +4 -3
  457. package/src/ui/screens/ManageAccountScreen.tsx +14 -47
  458. package/src/ui/screens/PaymentGatewayScreen.tsx +3 -7
  459. package/src/ui/screens/PremiumSubscriptionScreen.tsx +33 -31
  460. package/src/ui/screens/PrivacySettingsScreen.tsx +14 -16
  461. package/src/ui/screens/ProfileScreen.tsx +3 -3
  462. package/src/ui/screens/SavesCollectionsScreen.tsx +11 -12
  463. package/src/ui/screens/SearchSettingsScreen.tsx +2 -2
  464. package/src/ui/screens/UserListScreen.tsx +2 -2
  465. package/src/ui/screens/WelcomeNewUserScreen.tsx +6 -7
  466. package/src/ui/screens/fileManagement/FileListSection.tsx +126 -0
  467. package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +611 -0
  468. package/src/ui/screens/fileManagement/UploadBar.tsx +48 -0
  469. package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +497 -0
  470. package/src/ui/screens/fileManagement/shared.ts +65 -0
  471. package/src/ui/screens/trust/TrustCenterScreen.tsx +2 -2
  472. package/src/ui/screens/trust/TrustFAQScreen.tsx +4 -10
  473. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +2 -2
  474. package/src/ui/screens/trust/TrustRulesScreen.tsx +2 -2
  475. package/src/ui/server.ts +2 -3
  476. package/src/ui/session/createSessionClient.ts +2 -2
  477. package/src/ui/types/navigation.ts +2 -18
  478. package/src/ui/utils/crossOriginRestore.ts +129 -0
  479. package/src/ui/utils/deviceCredential.ts +17 -0
  480. package/src/ui/utils/oauthReturn.ts +101 -0
  481. package/src/ui/utils/storageHelpers.ts +0 -12
  482. package/lib/commonjs/ui/components/ActivityIndicator.js +0 -203
  483. package/lib/commonjs/ui/components/ActivityIndicator.js.map +0 -1
  484. package/lib/commonjs/ui/components/AutoHeightScrollView.js +0 -46
  485. package/lib/commonjs/ui/components/AutoHeightScrollView.js.map +0 -1
  486. package/lib/commonjs/ui/components/Avatar.js +0 -181
  487. package/lib/commonjs/ui/components/Avatar.js.map +0 -1
  488. package/lib/commonjs/ui/components/CrossFadeIcon.js +0 -106
  489. package/lib/commonjs/ui/components/CrossFadeIcon.js.map +0 -1
  490. package/lib/commonjs/ui/components/EmptyState.js +0 -41
  491. package/lib/commonjs/ui/components/EmptyState.js.map +0 -1
  492. package/lib/commonjs/ui/components/HelperText.js +0 -95
  493. package/lib/commonjs/ui/components/HelperText.js.map +0 -1
  494. package/lib/commonjs/ui/components/Icon.js +0 -112
  495. package/lib/commonjs/ui/components/Icon.js.map +0 -1
  496. package/lib/commonjs/ui/components/IconButton/IconButton.js +0 -153
  497. package/lib/commonjs/ui/components/IconButton/IconButton.js.map +0 -1
  498. package/lib/commonjs/ui/components/IconButton/utils.js +0 -155
  499. package/lib/commonjs/ui/components/IconButton/utils.js.map +0 -1
  500. package/lib/commonjs/ui/components/LoadingState.js +0 -47
  501. package/lib/commonjs/ui/components/LoadingState.js.map +0 -1
  502. package/lib/commonjs/ui/components/OxyLogo.js +0 -110
  503. package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
  504. package/lib/commonjs/ui/components/ProfileCard.js +0 -134
  505. package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
  506. package/lib/commonjs/ui/components/QuickActions.js +0 -84
  507. package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
  508. package/lib/commonjs/ui/components/StepBasedScreen.js +0 -423
  509. package/lib/commonjs/ui/components/StepBasedScreen.js.map +0 -1
  510. package/lib/commonjs/ui/components/Surface.js +0 -258
  511. package/lib/commonjs/ui/components/Surface.js.map +0 -1
  512. package/lib/commonjs/ui/components/TextField/Addons/Outline.js +0 -46
  513. package/lib/commonjs/ui/components/TextField/Addons/Outline.js.map +0 -1
  514. package/lib/commonjs/ui/components/TextField/Addons/Underline.js +0 -53
  515. package/lib/commonjs/ui/components/TextField/Addons/Underline.js.map +0 -1
  516. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -153
  517. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
  518. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js +0 -144
  519. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
  520. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js +0 -137
  521. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
  522. package/lib/commonjs/ui/components/TextField/Adornment/enums.js +0 -22
  523. package/lib/commonjs/ui/components/TextField/Adornment/enums.js.map +0 -1
  524. package/lib/commonjs/ui/components/TextField/Adornment/types.js.map +0 -1
  525. package/lib/commonjs/ui/components/TextField/Adornment/utils.js +0 -62
  526. package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +0 -1
  527. package/lib/commonjs/ui/components/TextField/Label/InputLabel.js +0 -176
  528. package/lib/commonjs/ui/components/TextField/Label/InputLabel.js.map +0 -1
  529. package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js +0 -84
  530. package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js.map +0 -1
  531. package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +0 -381
  532. package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +0 -1
  533. package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +0 -365
  534. package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +0 -1
  535. package/lib/commonjs/ui/components/TextField/constants.js +0 -50
  536. package/lib/commonjs/ui/components/TextField/constants.js.map +0 -1
  537. package/lib/commonjs/ui/components/TextField/helpers.js +0 -489
  538. package/lib/commonjs/ui/components/TextField/helpers.js.map +0 -1
  539. package/lib/commonjs/ui/components/TextField/types.js +0 -6
  540. package/lib/commonjs/ui/components/TextField/types.js.map +0 -1
  541. package/lib/commonjs/ui/components/TextField.js +0 -335
  542. package/lib/commonjs/ui/components/TextField.js.map +0 -1
  543. package/lib/commonjs/ui/components/TouchableRipple/Pressable.js +0 -12
  544. package/lib/commonjs/ui/components/TouchableRipple/Pressable.js.map +0 -1
  545. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +0 -258
  546. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
  547. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +0 -107
  548. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
  549. package/lib/commonjs/ui/components/TouchableRipple/utils.js +0 -56
  550. package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +0 -1
  551. package/lib/commonjs/ui/components/Typography/AnimatedText.js +0 -59
  552. package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +0 -1
  553. package/lib/commonjs/ui/components/Typography/types.js +0 -26
  554. package/lib/commonjs/ui/components/Typography/types.js.map +0 -1
  555. package/lib/commonjs/ui/components/feedback/ProgressIndicator.js +0 -33
  556. package/lib/commonjs/ui/components/feedback/ProgressIndicator.js.map +0 -1
  557. package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -26
  558. package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
  559. package/lib/commonjs/ui/components/theming.js +0 -128
  560. package/lib/commonjs/ui/components/theming.js.map +0 -1
  561. package/lib/commonjs/ui/components/types.js +0 -6
  562. package/lib/commonjs/ui/components/types.js.map +0 -1
  563. package/lib/commonjs/ui/components/utils/forwardRef.js +0 -18
  564. package/lib/commonjs/ui/components/utils/forwardRef.js.map +0 -1
  565. package/lib/commonjs/ui/constants/iconColors.js +0 -84
  566. package/lib/commonjs/ui/constants/iconColors.js.map +0 -1
  567. package/lib/commonjs/ui/constants/theme.js +0 -124
  568. package/lib/commonjs/ui/constants/theme.js.map +0 -1
  569. package/lib/commonjs/ui/context/ThemeContext.js +0 -36
  570. package/lib/commonjs/ui/context/ThemeContext.js.map +0 -1
  571. package/lib/commonjs/ui/hooks/useColorScheme.js +0 -29
  572. package/lib/commonjs/ui/hooks/useColorScheme.js.map +0 -1
  573. package/lib/commonjs/ui/styles/authStyles.js +0 -334
  574. package/lib/commonjs/ui/styles/authStyles.js.map +0 -1
  575. package/lib/commonjs/ui/styles/theme.js +0 -153
  576. package/lib/commonjs/ui/styles/theme.js.map +0 -1
  577. package/lib/module/ui/components/ActivityIndicator.js +0 -198
  578. package/lib/module/ui/components/ActivityIndicator.js.map +0 -1
  579. package/lib/module/ui/components/AutoHeightScrollView.js +0 -41
  580. package/lib/module/ui/components/AutoHeightScrollView.js.map +0 -1
  581. package/lib/module/ui/components/Avatar.js +0 -177
  582. package/lib/module/ui/components/Avatar.js.map +0 -1
  583. package/lib/module/ui/components/CrossFadeIcon.js +0 -101
  584. package/lib/module/ui/components/CrossFadeIcon.js.map +0 -1
  585. package/lib/module/ui/components/EmptyState.js +0 -36
  586. package/lib/module/ui/components/EmptyState.js.map +0 -1
  587. package/lib/module/ui/components/HelperText.js +0 -90
  588. package/lib/module/ui/components/HelperText.js.map +0 -1
  589. package/lib/module/ui/components/Icon.js +0 -106
  590. package/lib/module/ui/components/Icon.js.map +0 -1
  591. package/lib/module/ui/components/IconButton/IconButton.js +0 -148
  592. package/lib/module/ui/components/IconButton/IconButton.js.map +0 -1
  593. package/lib/module/ui/components/IconButton/utils.js +0 -149
  594. package/lib/module/ui/components/IconButton/utils.js.map +0 -1
  595. package/lib/module/ui/components/LoadingState.js +0 -42
  596. package/lib/module/ui/components/LoadingState.js.map +0 -1
  597. package/lib/module/ui/components/OxyLogo.js +0 -104
  598. package/lib/module/ui/components/OxyLogo.js.map +0 -1
  599. package/lib/module/ui/components/ProfileCard.js +0 -129
  600. package/lib/module/ui/components/ProfileCard.js.map +0 -1
  601. package/lib/module/ui/components/QuickActions.js +0 -80
  602. package/lib/module/ui/components/QuickActions.js.map +0 -1
  603. package/lib/module/ui/components/StepBasedScreen.js +0 -418
  604. package/lib/module/ui/components/StepBasedScreen.js.map +0 -1
  605. package/lib/module/ui/components/Surface.js +0 -252
  606. package/lib/module/ui/components/Surface.js.map +0 -1
  607. package/lib/module/ui/components/TextField/Addons/Outline.js +0 -40
  608. package/lib/module/ui/components/TextField/Addons/Outline.js.map +0 -1
  609. package/lib/module/ui/components/TextField/Addons/Underline.js +0 -47
  610. package/lib/module/ui/components/TextField/Addons/Underline.js.map +0 -1
  611. package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -146
  612. package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
  613. package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js +0 -141
  614. package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
  615. package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js +0 -135
  616. package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
  617. package/lib/module/ui/components/TextField/Adornment/enums.js +0 -18
  618. package/lib/module/ui/components/TextField/Adornment/enums.js.map +0 -1
  619. package/lib/module/ui/components/TextField/Adornment/types.js +0 -4
  620. package/lib/module/ui/components/TextField/Adornment/types.js.map +0 -1
  621. package/lib/module/ui/components/TextField/Adornment/utils.js +0 -57
  622. package/lib/module/ui/components/TextField/Adornment/utils.js.map +0 -1
  623. package/lib/module/ui/components/TextField/Label/InputLabel.js +0 -171
  624. package/lib/module/ui/components/TextField/Label/InputLabel.js.map +0 -1
  625. package/lib/module/ui/components/TextField/Label/LabelBackground.js +0 -78
  626. package/lib/module/ui/components/TextField/Label/LabelBackground.js.map +0 -1
  627. package/lib/module/ui/components/TextField/TextFieldFlat.js +0 -376
  628. package/lib/module/ui/components/TextField/TextFieldFlat.js.map +0 -1
  629. package/lib/module/ui/components/TextField/TextFieldOutlined.js +0 -359
  630. package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +0 -1
  631. package/lib/module/ui/components/TextField/constants.js +0 -46
  632. package/lib/module/ui/components/TextField/constants.js.map +0 -1
  633. package/lib/module/ui/components/TextField/helpers.js +0 -471
  634. package/lib/module/ui/components/TextField/helpers.js.map +0 -1
  635. package/lib/module/ui/components/TextField/types.js +0 -4
  636. package/lib/module/ui/components/TextField/types.js.map +0 -1
  637. package/lib/module/ui/components/TextField.js +0 -329
  638. package/lib/module/ui/components/TextField.js.map +0 -1
  639. package/lib/module/ui/components/TouchableRipple/Pressable.js +0 -9
  640. package/lib/module/ui/components/TouchableRipple/Pressable.js.map +0 -1
  641. package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +0 -253
  642. package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
  643. package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +0 -101
  644. package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
  645. package/lib/module/ui/components/TouchableRipple/utils.js +0 -50
  646. package/lib/module/ui/components/TouchableRipple/utils.js.map +0 -1
  647. package/lib/module/ui/components/Typography/AnimatedText.js +0 -54
  648. package/lib/module/ui/components/Typography/AnimatedText.js.map +0 -1
  649. package/lib/module/ui/components/Typography/types.js +0 -22
  650. package/lib/module/ui/components/Typography/types.js.map +0 -1
  651. package/lib/module/ui/components/feedback/ProgressIndicator.js +0 -28
  652. package/lib/module/ui/components/feedback/ProgressIndicator.js.map +0 -1
  653. package/lib/module/ui/components/icon/OxyIcon.js +0 -22
  654. package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
  655. package/lib/module/ui/components/theming.js +0 -123
  656. package/lib/module/ui/components/theming.js.map +0 -1
  657. package/lib/module/ui/components/types.js +0 -4
  658. package/lib/module/ui/components/types.js.map +0 -1
  659. package/lib/module/ui/components/utils/forwardRef.js +0 -13
  660. package/lib/module/ui/components/utils/forwardRef.js.map +0 -1
  661. package/lib/module/ui/constants/iconColors.js +0 -78
  662. package/lib/module/ui/constants/iconColors.js.map +0 -1
  663. package/lib/module/ui/constants/theme.js +0 -120
  664. package/lib/module/ui/constants/theme.js.map +0 -1
  665. package/lib/module/ui/context/ThemeContext.js +0 -29
  666. package/lib/module/ui/context/ThemeContext.js.map +0 -1
  667. package/lib/module/ui/hooks/useColorScheme.js +0 -26
  668. package/lib/module/ui/hooks/useColorScheme.js.map +0 -1
  669. package/lib/module/ui/styles/authStyles.js +0 -329
  670. package/lib/module/ui/styles/authStyles.js.map +0 -1
  671. package/lib/module/ui/styles/theme.js +0 -147
  672. package/lib/module/ui/styles/theme.js.map +0 -1
  673. package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts +0 -45
  674. package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts.map +0 -1
  675. package/lib/typescript/commonjs/ui/components/AutoHeightScrollView.d.ts +0 -23
  676. package/lib/typescript/commonjs/ui/components/AutoHeightScrollView.d.ts.map +0 -1
  677. package/lib/typescript/commonjs/ui/components/Avatar.d.ts +0 -61
  678. package/lib/typescript/commonjs/ui/components/Avatar.d.ts.map +0 -1
  679. package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts +0 -28
  680. package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts.map +0 -1
  681. package/lib/typescript/commonjs/ui/components/EmptyState.d.ts +0 -8
  682. package/lib/typescript/commonjs/ui/components/EmptyState.d.ts.map +0 -1
  683. package/lib/typescript/commonjs/ui/components/HelperText.d.ts +0 -47
  684. package/lib/typescript/commonjs/ui/components/HelperText.d.ts.map +0 -1
  685. package/lib/typescript/commonjs/ui/components/Icon.d.ts +0 -61
  686. package/lib/typescript/commonjs/ui/components/Icon.d.ts.map +0 -1
  687. package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts +0 -99
  688. package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts.map +0 -1
  689. package/lib/typescript/commonjs/ui/components/IconButton/utils.d.ts +0 -19
  690. package/lib/typescript/commonjs/ui/components/IconButton/utils.d.ts.map +0 -1
  691. package/lib/typescript/commonjs/ui/components/LoadingState.d.ts +0 -9
  692. package/lib/typescript/commonjs/ui/components/LoadingState.d.ts.map +0 -1
  693. package/lib/typescript/commonjs/ui/components/OxyLogo.d.ts +0 -16
  694. package/lib/typescript/commonjs/ui/components/OxyLogo.d.ts.map +0 -1
  695. package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts +0 -21
  696. package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts.map +0 -1
  697. package/lib/typescript/commonjs/ui/components/QuickActions.d.ts +0 -15
  698. package/lib/typescript/commonjs/ui/components/QuickActions.d.ts.map +0 -1
  699. package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts +0 -28
  700. package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +0 -1
  701. package/lib/typescript/commonjs/ui/components/Surface.d.ts +0 -76
  702. package/lib/typescript/commonjs/ui/components/Surface.d.ts.map +0 -1
  703. package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts +0 -17
  704. package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
  705. package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts +0 -20
  706. package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
  707. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
  708. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
  709. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
  710. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
  711. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
  712. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
  713. package/lib/typescript/commonjs/ui/components/TextField/Adornment/enums.d.ts +0 -13
  714. package/lib/typescript/commonjs/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
  715. package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts +0 -12
  716. package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts.map +0 -1
  717. package/lib/typescript/commonjs/ui/components/TextField/Adornment/utils.d.ts +0 -12
  718. package/lib/typescript/commonjs/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
  719. package/lib/typescript/commonjs/ui/components/TextField/Label/InputLabel.d.ts +0 -5
  720. package/lib/typescript/commonjs/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
  721. package/lib/typescript/commonjs/ui/components/TextField/Label/LabelBackground.d.ts +0 -5
  722. package/lib/typescript/commonjs/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
  723. package/lib/typescript/commonjs/ui/components/TextField/TextFieldFlat.d.ts +0 -5
  724. package/lib/typescript/commonjs/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
  725. package/lib/typescript/commonjs/ui/components/TextField/TextFieldOutlined.d.ts +0 -5
  726. package/lib/typescript/commonjs/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
  727. package/lib/typescript/commonjs/ui/components/TextField/constants.d.ts +0 -32
  728. package/lib/typescript/commonjs/ui/components/TextField/constants.d.ts.map +0 -1
  729. package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts +0 -97
  730. package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts.map +0 -1
  731. package/lib/typescript/commonjs/ui/components/TextField/types.d.ts +0 -155
  732. package/lib/typescript/commonjs/ui/components/TextField/types.d.ts.map +0 -1
  733. package/lib/typescript/commonjs/ui/components/TextField.d.ts +0 -192
  734. package/lib/typescript/commonjs/ui/components/TextField.d.ts.map +0 -1
  735. package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts +0 -13
  736. package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
  737. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
  738. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
  739. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
  740. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
  741. package/lib/typescript/commonjs/ui/components/TouchableRipple/utils.d.ts +0 -11
  742. package/lib/typescript/commonjs/ui/components/TouchableRipple/utils.d.ts.map +0 -1
  743. package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts +0 -35
  744. package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts.map +0 -1
  745. package/lib/typescript/commonjs/ui/components/Typography/types.d.ts +0 -19
  746. package/lib/typescript/commonjs/ui/components/Typography/types.d.ts.map +0 -1
  747. package/lib/typescript/commonjs/ui/components/feedback/ProgressIndicator.d.ts +0 -11
  748. package/lib/typescript/commonjs/ui/components/feedback/ProgressIndicator.d.ts.map +0 -1
  749. package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts +0 -10
  750. package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts.map +0 -1
  751. package/lib/typescript/commonjs/ui/components/theming.d.ts +0 -8
  752. package/lib/typescript/commonjs/ui/components/theming.d.ts.map +0 -1
  753. package/lib/typescript/commonjs/ui/components/types.d.ts +0 -81
  754. package/lib/typescript/commonjs/ui/components/types.d.ts.map +0 -1
  755. package/lib/typescript/commonjs/ui/components/utils/forwardRef.d.ts +0 -12
  756. package/lib/typescript/commonjs/ui/components/utils/forwardRef.d.ts.map +0 -1
  757. package/lib/typescript/commonjs/ui/constants/iconColors.d.ts +0 -130
  758. package/lib/typescript/commonjs/ui/constants/iconColors.d.ts.map +0 -1
  759. package/lib/typescript/commonjs/ui/constants/theme.d.ts +0 -98
  760. package/lib/typescript/commonjs/ui/constants/theme.d.ts.map +0 -1
  761. package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts +0 -19
  762. package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts.map +0 -1
  763. package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts +0 -8
  764. package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts.map +0 -1
  765. package/lib/typescript/commonjs/ui/styles/authStyles.d.ts +0 -328
  766. package/lib/typescript/commonjs/ui/styles/authStyles.d.ts.map +0 -1
  767. package/lib/typescript/commonjs/ui/styles/theme.d.ts +0 -75
  768. package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +0 -1
  769. package/lib/typescript/module/ui/components/ActivityIndicator.d.ts +0 -45
  770. package/lib/typescript/module/ui/components/ActivityIndicator.d.ts.map +0 -1
  771. package/lib/typescript/module/ui/components/AutoHeightScrollView.d.ts +0 -23
  772. package/lib/typescript/module/ui/components/AutoHeightScrollView.d.ts.map +0 -1
  773. package/lib/typescript/module/ui/components/Avatar.d.ts +0 -61
  774. package/lib/typescript/module/ui/components/Avatar.d.ts.map +0 -1
  775. package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts +0 -28
  776. package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts.map +0 -1
  777. package/lib/typescript/module/ui/components/EmptyState.d.ts +0 -8
  778. package/lib/typescript/module/ui/components/EmptyState.d.ts.map +0 -1
  779. package/lib/typescript/module/ui/components/HelperText.d.ts +0 -47
  780. package/lib/typescript/module/ui/components/HelperText.d.ts.map +0 -1
  781. package/lib/typescript/module/ui/components/Icon.d.ts +0 -61
  782. package/lib/typescript/module/ui/components/Icon.d.ts.map +0 -1
  783. package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts +0 -99
  784. package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts.map +0 -1
  785. package/lib/typescript/module/ui/components/IconButton/utils.d.ts +0 -19
  786. package/lib/typescript/module/ui/components/IconButton/utils.d.ts.map +0 -1
  787. package/lib/typescript/module/ui/components/LoadingState.d.ts +0 -9
  788. package/lib/typescript/module/ui/components/LoadingState.d.ts.map +0 -1
  789. package/lib/typescript/module/ui/components/OxyLogo.d.ts +0 -16
  790. package/lib/typescript/module/ui/components/OxyLogo.d.ts.map +0 -1
  791. package/lib/typescript/module/ui/components/ProfileCard.d.ts +0 -21
  792. package/lib/typescript/module/ui/components/ProfileCard.d.ts.map +0 -1
  793. package/lib/typescript/module/ui/components/QuickActions.d.ts +0 -15
  794. package/lib/typescript/module/ui/components/QuickActions.d.ts.map +0 -1
  795. package/lib/typescript/module/ui/components/StepBasedScreen.d.ts +0 -28
  796. package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +0 -1
  797. package/lib/typescript/module/ui/components/Surface.d.ts +0 -76
  798. package/lib/typescript/module/ui/components/Surface.d.ts.map +0 -1
  799. package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts +0 -17
  800. package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
  801. package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts +0 -20
  802. package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
  803. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
  804. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
  805. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
  806. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
  807. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
  808. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
  809. package/lib/typescript/module/ui/components/TextField/Adornment/enums.d.ts +0 -13
  810. package/lib/typescript/module/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
  811. package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts +0 -12
  812. package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts.map +0 -1
  813. package/lib/typescript/module/ui/components/TextField/Adornment/utils.d.ts +0 -12
  814. package/lib/typescript/module/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
  815. package/lib/typescript/module/ui/components/TextField/Label/InputLabel.d.ts +0 -5
  816. package/lib/typescript/module/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
  817. package/lib/typescript/module/ui/components/TextField/Label/LabelBackground.d.ts +0 -5
  818. package/lib/typescript/module/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
  819. package/lib/typescript/module/ui/components/TextField/TextFieldFlat.d.ts +0 -5
  820. package/lib/typescript/module/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
  821. package/lib/typescript/module/ui/components/TextField/TextFieldOutlined.d.ts +0 -5
  822. package/lib/typescript/module/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
  823. package/lib/typescript/module/ui/components/TextField/constants.d.ts +0 -32
  824. package/lib/typescript/module/ui/components/TextField/constants.d.ts.map +0 -1
  825. package/lib/typescript/module/ui/components/TextField/helpers.d.ts +0 -97
  826. package/lib/typescript/module/ui/components/TextField/helpers.d.ts.map +0 -1
  827. package/lib/typescript/module/ui/components/TextField/types.d.ts +0 -155
  828. package/lib/typescript/module/ui/components/TextField/types.d.ts.map +0 -1
  829. package/lib/typescript/module/ui/components/TextField.d.ts +0 -192
  830. package/lib/typescript/module/ui/components/TextField.d.ts.map +0 -1
  831. package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts +0 -13
  832. package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
  833. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
  834. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
  835. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
  836. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
  837. package/lib/typescript/module/ui/components/TouchableRipple/utils.d.ts +0 -11
  838. package/lib/typescript/module/ui/components/TouchableRipple/utils.d.ts.map +0 -1
  839. package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts +0 -35
  840. package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts.map +0 -1
  841. package/lib/typescript/module/ui/components/Typography/types.d.ts +0 -19
  842. package/lib/typescript/module/ui/components/Typography/types.d.ts.map +0 -1
  843. package/lib/typescript/module/ui/components/feedback/ProgressIndicator.d.ts +0 -11
  844. package/lib/typescript/module/ui/components/feedback/ProgressIndicator.d.ts.map +0 -1
  845. package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts +0 -10
  846. package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts.map +0 -1
  847. package/lib/typescript/module/ui/components/theming.d.ts +0 -8
  848. package/lib/typescript/module/ui/components/theming.d.ts.map +0 -1
  849. package/lib/typescript/module/ui/components/types.d.ts +0 -81
  850. package/lib/typescript/module/ui/components/types.d.ts.map +0 -1
  851. package/lib/typescript/module/ui/components/utils/forwardRef.d.ts +0 -12
  852. package/lib/typescript/module/ui/components/utils/forwardRef.d.ts.map +0 -1
  853. package/lib/typescript/module/ui/constants/iconColors.d.ts +0 -130
  854. package/lib/typescript/module/ui/constants/iconColors.d.ts.map +0 -1
  855. package/lib/typescript/module/ui/constants/theme.d.ts +0 -98
  856. package/lib/typescript/module/ui/constants/theme.d.ts.map +0 -1
  857. package/lib/typescript/module/ui/context/ThemeContext.d.ts +0 -19
  858. package/lib/typescript/module/ui/context/ThemeContext.d.ts.map +0 -1
  859. package/lib/typescript/module/ui/hooks/useColorScheme.d.ts +0 -8
  860. package/lib/typescript/module/ui/hooks/useColorScheme.d.ts.map +0 -1
  861. package/lib/typescript/module/ui/styles/authStyles.d.ts +0 -328
  862. package/lib/typescript/module/ui/styles/authStyles.d.ts.map +0 -1
  863. package/lib/typescript/module/ui/styles/theme.d.ts +0 -75
  864. package/lib/typescript/module/ui/styles/theme.d.ts.map +0 -1
  865. package/src/ui/components/ActivityIndicator.tsx +0 -254
  866. package/src/ui/components/AutoHeightScrollView.tsx +0 -50
  867. package/src/ui/components/Avatar.tsx +0 -284
  868. package/src/ui/components/CrossFadeIcon.tsx +0 -140
  869. package/src/ui/components/EmptyState.tsx +0 -39
  870. package/src/ui/components/HelperText.tsx +0 -149
  871. package/src/ui/components/Icon.tsx +0 -189
  872. package/src/ui/components/IconButton/IconButton.tsx +0 -232
  873. package/src/ui/components/IconButton/utils.ts +0 -190
  874. package/src/ui/components/LoadingState.tsx +0 -46
  875. package/src/ui/components/OxyLogo.tsx +0 -82
  876. package/src/ui/components/ProfileCard.tsx +0 -137
  877. package/src/ui/components/QuickActions.tsx +0 -91
  878. package/src/ui/components/StepBasedScreen.tsx +0 -499
  879. package/src/ui/components/Surface.tsx +0 -384
  880. package/src/ui/components/TextField/Addons/Outline.tsx +0 -64
  881. package/src/ui/components/TextField/Addons/Underline.tsx +0 -78
  882. package/src/ui/components/TextField/Adornment/TextFieldAdornment.tsx +0 -205
  883. package/src/ui/components/TextField/Adornment/TextFieldAffix.tsx +0 -212
  884. package/src/ui/components/TextField/Adornment/TextFieldIcon.tsx +0 -195
  885. package/src/ui/components/TextField/Adornment/enums.tsx +0 -12
  886. package/src/ui/components/TextField/Adornment/types.tsx +0 -11
  887. package/src/ui/components/TextField/Adornment/utils.ts +0 -66
  888. package/src/ui/components/TextField/Label/InputLabel.tsx +0 -219
  889. package/src/ui/components/TextField/Label/LabelBackground.tsx +0 -100
  890. package/src/ui/components/TextField/TextFieldFlat.tsx +0 -488
  891. package/src/ui/components/TextField/TextFieldOutlined.tsx +0 -464
  892. package/src/ui/components/TextField/constants.tsx +0 -48
  893. package/src/ui/components/TextField/helpers.tsx +0 -611
  894. package/src/ui/components/TextField/types.tsx +0 -160
  895. package/src/ui/components/TextField.tsx +0 -574
  896. package/src/ui/components/TouchableRipple/Pressable.tsx +0 -42
  897. package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +0 -146
  898. package/src/ui/components/TouchableRipple/TouchableRipple.tsx +0 -347
  899. package/src/ui/components/TouchableRipple/utils.ts +0 -66
  900. package/src/ui/components/Typography/AnimatedText.tsx +0 -106
  901. package/src/ui/components/Typography/types.tsx +0 -22
  902. package/src/ui/components/feedback/ProgressIndicator.tsx +0 -35
  903. package/src/ui/components/icon/OxyIcon.tsx +0 -31
  904. package/src/ui/components/theming.tsx +0 -126
  905. package/src/ui/components/types.tsx +0 -93
  906. package/src/ui/components/utils/forwardRef.tsx +0 -23
  907. package/src/ui/constants/iconColors.ts +0 -88
  908. package/src/ui/constants/theme.ts +0 -121
  909. package/src/ui/context/ThemeContext.tsx +0 -41
  910. package/src/ui/context/__tests__/OxyContext.coldBoot.test.tsx +0 -166
  911. package/src/ui/hooks/useColorScheme.ts +0 -24
  912. package/src/ui/styles/authStyles.ts +0 -348
  913. package/src/ui/styles/theme.ts +0 -169
@@ -3,8 +3,12 @@
3
3
  import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
4
4
  import { Linking } from 'react-native';
5
5
  import { OxyServices, oxyClient } from '@oxyhq/core';
6
- import { KeyManager, runSessionColdBoot, installAuthRefreshHandler, startTokenRefreshScheduler, createAccountDialogController, logger as loggerUtil } from '@oxyhq/core';
6
+ import { KeyManager, installAuthRefreshHandler, startTokenRefreshScheduler, createAccountDialogController, refreshPersistedSession, logger as loggerUtil, syncHubAfterSignIn } from '@oxyhq/core';
7
7
  import { registerAccountDialogControls, notifyAccountDialogVisibility } from "../navigation/accountDialogManager.js";
8
+ import { redirectToAuthorize } from "../components/oauthNavigation.js";
9
+ import { isWebBrowser } from "../utils/isWebBrowser.js";
10
+ import { runProviderColdBoot } from "../boot/runProviderColdBoot.js";
11
+ import { loadPersistedDeviceCredential } from "../utils/deviceCredential.js";
8
12
  import { useAuthStore } from "../stores/authStore.js";
9
13
  import { useShallow } from 'zustand/react/shallow';
10
14
  import { useLanguageManagement } from "../hooks/useLanguageManagement.js";
@@ -17,99 +21,11 @@ import { useQueryClient } from '@tanstack/react-query';
17
21
  import { clearQueryCache } from "../hooks/queryClient.js";
18
22
  import { useAvatarPicker } from "../hooks/useAvatarPicker.js";
19
23
  import { useAccountStore } from "../stores/accountStore.js";
20
- import { isWebBrowser } from "../utils/isWebBrowser.js";
21
24
  import { createSessionClient, createPlatformAuthStateStore, deviceStateToClientSessions, activeSessionIdOf, activeUserOf, accountIdsOf } from "../session/index.js";
25
+ import { DEFAULT_SESSION_VALIDITY_MS, loadUseFollowHook } from "./oxyContextHelpers.js";
26
+ import { useOxyAccountGraph } from "./useOxyAccountGraph.js";
22
27
  import { jsx as _jsx } from "react/jsx-runtime";
23
28
  const OxyContext = /*#__PURE__*/createContext(null);
24
-
25
- /**
26
- * Result of {@link OxyContextState.signInWithPassword}.
27
- *
28
- * `'ok'` — the password was accepted and the session committed (so
29
- * `isAuthenticated` / `user` are updated and the device credential persisted).
30
- * `securityAlert` is present when the server flagged this sign-in as anomalous
31
- * (new device / location) — the caller shows a "New sign-in detected"
32
- * acknowledgement before proceeding; the session is already committed.
33
- *
34
- * `'2fa_required'` — the account has two-factor auth enabled, so NO session was
35
- * created. Complete the challenge with the returned short-lived `loginToken`
36
- * via {@link OxyContextState.completeTwoFactorSignIn}.
37
- */
38
-
39
- /**
40
- * Fallback client-session validity window (ms) — 7 days — applied when a
41
- * committed session does not carry an explicit `expiresAt`. This is only a
42
- * local display hint for the multi-session store; the server remains the source
43
- * of truth for actual session expiry.
44
- */
45
- const DEFAULT_SESSION_VALIDITY_MS = 7 * 24 * 60 * 60 * 1000;
46
-
47
- /**
48
- * How long the cold boot WAITS for the post-boot SessionClient handoff
49
- * (`addCurrentAccount` + `start` + `syncFromClient`) before it resolves auth and
50
- * stops blocking. Once a boot step planted a token the user is already
51
- * authenticated — the handoff only populates the multi-account set and the
52
- * server-authoritative active account, and those also arrive via the socket
53
- * subscription. So on a slow backend we stop AWAITING the handoff here (it keeps
54
- * running in the background and projects when it lands) rather than delaying
55
- * auth resolution.
56
- */
57
- const SESSION_HANDOFF_DEADLINE = 6000;
58
-
59
- /** The internal commit input — a session plus the zero-cookie device credential
60
- * (`deviceId` + `deviceSecret`) that is not on the public `SessionLoginResponse`.
61
- * All extras optional so `SessionLoginResponse` is assignable. */
62
-
63
- function getHttpStatus(error) {
64
- if (!error || typeof error !== 'object') {
65
- return undefined;
66
- }
67
- if ('status' in error) {
68
- const status = error.status;
69
- if (typeof status === 'number') {
70
- return status;
71
- }
72
- }
73
- if ('response' in error) {
74
- const response = error.response;
75
- if (response && typeof response === 'object' && 'status' in response) {
76
- const status = response.status;
77
- if (typeof status === 'number') {
78
- return status;
79
- }
80
- }
81
- }
82
- return undefined;
83
- }
84
- function isUnauthorizedStatus(error) {
85
- return getHttpStatus(error) === 401;
86
- }
87
- let cachedUseFollowHook = null;
88
- const loadUseFollowHook = () => {
89
- if (cachedUseFollowHook) {
90
- return cachedUseFollowHook;
91
- }
92
- try {
93
- // eslint-disable-next-line @typescript-eslint/no-var-requires
94
- const {
95
- useFollow
96
- } = require('../hooks/useFollow');
97
- cachedUseFollowHook = useFollow;
98
- return cachedUseFollowHook;
99
- } catch (error) {
100
- if (__DEV__) {
101
- loggerUtil.warn('useFollow hook is not available. Please import useFollow from @oxyhq/services directly.', {
102
- component: 'OxyContext',
103
- method: 'loadUseFollowHook'
104
- }, error);
105
- }
106
- const fallback = () => {
107
- throw new Error('useFollow hook is only available in the UI bundle. Import it from @oxyhq/services.');
108
- };
109
- cachedUseFollowHook = fallback;
110
- return cachedUseFollowHook;
111
- }
112
- };
113
29
  export const OxyProvider = ({
114
30
  children,
115
31
  oxyServices: providedOxyServices,
@@ -118,7 +34,7 @@ export const OxyProvider = ({
118
34
  authRedirectUri,
119
35
  storageKeyPrefix = 'oxy_session',
120
36
  clientId: clientIdProp,
121
- coldBoot = true,
37
+ hubSync = true,
122
38
  onAuthStateChange,
123
39
  onError
124
40
  }) => {
@@ -316,12 +232,9 @@ export const OxyProvider = ({
316
232
  markAuthResolvedRef.current = markAuthResolved;
317
233
 
318
234
  // Server-authoritative device session client. Built ONCE per `oxyServices`
319
- // instance. `onUnauthenticated` (a device signout-all pushed over the
320
- // bearer-authenticated socket, or bootstrapped as zero-account) clears the
321
- // persisted store + local state so a reload does not try to restore a session
322
- // the device no longer has. The realtime socket is bearer-only now: a
323
- // signed-out tab cannot join any device room, so there is no signed-out sync
324
- // wiring here.
235
+ // instance. Device-scoped sockets connect with deviceId+deviceSecret when no
236
+ // bearer is planted yet, so cross-origin apps sync via `session_state` after
237
+ // the one-shot join redirect.
325
238
  const sessionClientPairRef = useRef(null);
326
239
  if (!sessionClientPairRef.current) {
327
240
  sessionClientPairRef.current = createSessionClient(oxyServices, authStore, () => {
@@ -376,6 +289,10 @@ export const OxyProvider = ({
376
289
  }, [oxyServices, sessionClient, sessionClientHost, authStore, updateSessions, setActiveSessionId, loginSuccess, clearSessionState, logger]);
377
290
  const syncFromClientRef = useRef(syncFromClient);
378
291
  syncFromClientRef.current = syncFromClient;
292
+ const syncDeviceCredentialToHost = useCallback(async () => {
293
+ const cred = await loadPersistedDeviceCredential(authStore);
294
+ sessionClientHost.setDeviceCredential(cred);
295
+ }, [authStore, sessionClientHost]);
379
296
  useEffect(() => {
380
297
  return sessionClient.subscribe(() => {
381
298
  void syncFromClient();
@@ -406,6 +323,15 @@ export const OxyProvider = ({
406
323
  setAuthState,
407
324
  logger
408
325
  });
326
+
327
+ // "That wasn't me": repudiating a flagged sign-in IS revoking the device
328
+ // session that just committed — the same server-authoritative
329
+ // `sessionClient.signOut(...)` path `logout` uses, which also clears the
330
+ // persisted device credential + local state when no sibling account remains.
331
+ // No dedicated "report suspicious" API endpoint exists (or is needed).
332
+ const revokeSuspiciousSignIn = useCallback(async () => {
333
+ await logout();
334
+ }, [logout]);
409
335
  const clearAllAccountData = useCallback(async () => {
410
336
  queryClient.clear();
411
337
  if (storage) {
@@ -447,6 +373,9 @@ export const OxyProvider = ({
447
373
  setHasAccessToken(Boolean(accessToken));
448
374
  if (accessToken) {
449
375
  setTokenReady(true);
376
+ if (sessionClient.getState()?.accounts.length) {
377
+ void syncFromClientRef.current();
378
+ }
450
379
  return;
451
380
  }
452
381
  if (userRef.current || isAuthenticatedRef.current) {
@@ -501,15 +430,13 @@ export const OxyProvider = ({
501
430
  oxyServices.setTokens(input.accessToken);
502
431
  }
503
432
 
504
- // Persist the durable blob when the zero-cookie device credential
505
- // (`deviceId` + `deviceSecret`) is present. The cold boot has usually
506
- // persisted already; this is idempotent. Without the credential there is
507
- // nothing durable to persist and the session lives only for this runtime.
508
- if (input.deviceId && input.deviceSecret && input.userId) {
433
+ // Persist the durable blob when the zero-cookie device credential is present.
434
+ if (input.deviceId && input.deviceSecret) {
509
435
  try {
436
+ const prior = await authStore.load();
510
437
  const next = {
511
- sessionId: input.sessionId,
512
- userId: input.userId,
438
+ sessionId: input.sessionId || prior?.sessionId || '',
439
+ userId: input.userId || prior?.userId || '',
513
440
  deviceId: input.deviceId,
514
441
  deviceSecret: input.deviceSecret,
515
442
  ...(input.accessToken ? {
@@ -520,6 +447,10 @@ export const OxyProvider = ({
520
447
  } : {})
521
448
  };
522
449
  await authStore.save(next);
450
+ sessionClientHost.setDeviceCredential({
451
+ deviceId: input.deviceId,
452
+ deviceSecret: input.deviceSecret
453
+ });
523
454
  } catch (persistError) {
524
455
  logger('Failed to persist auth state on commit', persistError);
525
456
  }
@@ -581,7 +512,21 @@ export const OxyProvider = ({
581
512
  onAuthStateChangeRef.current?.(fullUser);
582
513
  }
583
514
  markAuthResolvedRef.current();
584
- }, [oxyServices, authStore, updateSessions, setActiveSessionId, sessionClient, syncFromClient, loginSuccess, logger]);
515
+ if (options.activate && options.hubSync && hubSync && isWebBrowser()) {
516
+ try {
517
+ await syncHubAfterSignIn(oxyServices, {
518
+ enabled: hubSync
519
+ });
520
+ } catch (hubError) {
521
+ if (__DEV__) {
522
+ loggerUtil.debug('Hub sync after sign-in failed (non-fatal)', {
523
+ component: 'OxyContext',
524
+ method: 'commitSession'
525
+ }, hubError);
526
+ }
527
+ }
528
+ }
529
+ }, [oxyServices, authStore, updateSessions, setActiveSessionId, sessionClient, sessionClientHost, syncFromClient, loginSuccess, logger, hubSync]);
585
530
  const commitSessionRef = useRef(commitSession);
586
531
  commitSessionRef.current = commitSession;
587
532
 
@@ -602,7 +547,8 @@ export const OxyProvider = ({
602
547
  userId: session.user.id,
603
548
  user: session.user
604
549
  }, {
605
- activate: true
550
+ activate: true,
551
+ hubSync: true
606
552
  });
607
553
  }, [commitSession]);
608
554
 
@@ -620,10 +566,15 @@ export const OxyProvider = ({
620
566
  oxyServices,
621
567
  sessionClient,
622
568
  clientId,
569
+ authRedirectUri,
623
570
  locale: currentLanguage,
624
571
  commitSession: session => handleWebSessionRef.current(session),
625
572
  onSignedIn: () => setAccountDialogOpen(false),
626
573
  openUrl: url => {
574
+ if (isWebBrowser()) {
575
+ redirectToAuthorize(url);
576
+ return;
577
+ }
627
578
  void Linking.openURL(url);
628
579
  }
629
580
  });
@@ -646,7 +597,7 @@ export const OxyProvider = ({
646
597
  }, []);
647
598
 
648
599
  // Expose the live open/close controls to the imperative manager so
649
- // `showSignInModal()` (and any app-level imperative "sign in" handler) works.
600
+ // Imperative `openAccountDialog('signin')` (and app-level sign-in handlers) works.
650
601
  useEffect(() => registerAccountDialogControls({
651
602
  open: openAccountDialog,
652
603
  close: closeAccountDialog
@@ -660,9 +611,11 @@ export const OxyProvider = ({
660
611
 
661
612
  // Keyless password sign-in: username/email + password.
662
613
  const signInWithPassword = useCallback(async (identifier, password, opts) => {
614
+ const persisted = await authStore.load();
663
615
  const result = await oxyServices.passwordSignIn(identifier, password, {
664
616
  deviceName: opts?.deviceName,
665
- deviceFingerprint: opts?.deviceFingerprint
617
+ deviceFingerprint: opts?.deviceFingerprint,
618
+ deviceId: persisted?.deviceId
666
619
  });
667
620
  if ('twoFactorRequired' in result) {
668
621
  return {
@@ -680,7 +633,8 @@ export const OxyProvider = ({
680
633
  userId: result.user.id,
681
634
  user: result.user
682
635
  }, {
683
- activate: true
636
+ activate: true,
637
+ hubSync: true
684
638
  });
685
639
  return {
686
640
  status: 'ok',
@@ -690,11 +644,13 @@ export const OxyProvider = ({
690
644
  };
691
645
  }, [oxyServices, commitSession]);
692
646
  const completeTwoFactorSignIn = useCallback(async params => {
647
+ const persisted = await authStore.load();
693
648
  const result = await oxyServices.completeTwoFactorSignIn({
694
649
  loginToken: params.loginToken,
695
650
  token: params.token,
696
651
  backupCode: params.backupCode,
697
- deviceName: params.deviceName
652
+ deviceName: params.deviceName,
653
+ deviceId: persisted?.deviceId
698
654
  });
699
655
  await commitSession({
700
656
  sessionId: result.sessionId,
@@ -705,7 +661,8 @@ export const OxyProvider = ({
705
661
  userId: result.user.id,
706
662
  user: result.user
707
663
  }, {
708
- activate: true
664
+ activate: true,
665
+ hubSync: true
709
666
  });
710
667
  return {
711
668
  securityAlert: result.securityAlert
@@ -713,84 +670,24 @@ export const OxyProvider = ({
713
670
  }, [oxyServices, commitSession]);
714
671
 
715
672
  // ── Cold boot ────────────────────────────────────────────────────────────
716
- // The single device-first session restore. Runs ONCE after storage init.
717
- // `runSessionColdBoot` resolves the device's session (bootstrap-return →
718
- // stored-tokens → shared-key (native) → bootstrap-hop (web)) WITHOUT ever
719
- // redirecting to a login page; an unresolved boot ends signed-out and the app
720
- // renders its "Sign in with Oxy" affordance. On a winning boot the token is
721
- // already planted + persisted, so `onSession` only hands off to the
722
- // SessionClient (membership + active account + realtime socket) and marks
723
- // auth resolved. `onSignedOut` marks auth resolved with no session.
673
+ // Device-first session restore via `runProviderColdBoot` (see boot/runProviderColdBoot.ts).
724
674
  const runColdBoot = useCallback(async () => {
725
- setTokenReady(false);
726
- try {
727
- await runSessionColdBoot({
728
- oxy: oxyServices,
729
- store: authStore,
730
- platform: {
731
- isWeb: isWebBrowser(),
732
- isNative: !isWebBrowser()
733
- },
734
- onSession: async session => {
735
- // Bound how long auth resolution waits for the handoff — the token is
736
- // already planted, so on a slow backend we proceed and let the handoff
737
- // land asynchronously (the socket subscription re-projects when it does).
738
- const handoff = commitSessionRef.current({
739
- sessionId: session.sessionId,
740
- accessToken: session.accessToken,
741
- userId: session.userId
742
- }, {
743
- activate: false
744
- });
745
- let handoffDeadlineId;
746
- await Promise.race([handoff, new Promise(resolve => {
747
- handoffDeadlineId = setTimeout(resolve, SESSION_HANDOFF_DEADLINE);
748
- })]).finally(() => {
749
- if (handoffDeadlineId !== undefined) {
750
- clearTimeout(handoffDeadlineId);
751
- }
752
- });
753
- markAuthResolvedRef.current();
754
- },
755
- onSignedOut: () => {
756
- // The realtime socket is bearer-only: a signed-out tab cannot join any
757
- // device room, so there is no signed-out socket to start here.
758
- markAuthResolvedRef.current();
759
- },
760
- onStepError: (id, error) => {
761
- if (__DEV__) {
762
- loggerUtil.debug(`Cold-boot step "${id}" errored (non-fatal, falling through)`, {
763
- component: 'OxyContext',
764
- method: 'runColdBoot'
765
- }, error);
766
- }
767
- }
768
- });
769
- } catch (error) {
770
- if (__DEV__) {
771
- loggerUtil.error('Cold boot error', error instanceof Error ? error : new Error(String(error)), {
772
- component: 'OxyContext',
773
- method: 'runColdBoot'
774
- });
775
- }
776
- } finally {
777
- // Backstop: resolve on every exit path so the gate can never hang.
778
- markAuthResolvedRef.current();
779
- }
780
- }, [oxyServices, authStore]);
675
+ await runProviderColdBoot({
676
+ oxyServices,
677
+ authStore,
678
+ clientId: clientIdProp,
679
+ authRedirectUri,
680
+ sessionClient,
681
+ syncDeviceCredentialToHost,
682
+ commitSession: (input, options) => commitSessionRef.current(input, options),
683
+ markAuthResolved: () => markAuthResolvedRef.current(),
684
+ setTokenReady
685
+ });
686
+ }, [oxyServices, authStore, clientIdProp, authRedirectUri, syncDeviceCredentialToHost, sessionClient]);
781
687
  useEffect(() => {
782
688
  if (initialized) {
783
689
  return;
784
690
  }
785
- // IdP mode (`coldBoot={false}`): this provider is NOT the ecosystem session
786
- // authority, so it never runs the device-first restore. Resolve auth
787
- // immediately as signed out so there is no boot spinner; a deliberate sign-in
788
- // still commits a normal session.
789
- if (!coldBoot) {
790
- setInitialized(true);
791
- markAuthResolved();
792
- return;
793
- }
794
691
  if (!storage) {
795
692
  return;
796
693
  }
@@ -800,7 +697,32 @@ export const OxyProvider = ({
800
697
  logger('Cold boot failed', error);
801
698
  }
802
699
  });
803
- }, [coldBoot, runColdBoot, storage, initialized, logger, markAuthResolved]);
700
+ }, [runColdBoot, storage, initialized, logger]);
701
+
702
+ // Reconcile device state when the tab returns to foreground (background tabs may
703
+ // miss socket pushes or have stale bearer tokens).
704
+ useEffect(() => {
705
+ if (!isWebBrowser()) return;
706
+ const onVisibility = () => {
707
+ if (document.visibilityState !== 'visible') return;
708
+ const reconcile = async () => {
709
+ if (!oxyServices.getAccessToken() && sessionClientHost.getDeviceCredential()) {
710
+ await refreshPersistedSession({
711
+ oxy: oxyServices,
712
+ store: authStore
713
+ });
714
+ }
715
+ if (!oxyServices.getAccessToken() && !sessionClientHost.getDeviceCredential()) {
716
+ return;
717
+ }
718
+ await sessionClient.bootstrap();
719
+ await syncFromClient();
720
+ };
721
+ void reconcile().catch(() => undefined);
722
+ };
723
+ document.addEventListener('visibilitychange', onVisibility);
724
+ return () => document.removeEventListener('visibilitychange', onVisibility);
725
+ }, [oxyServices, sessionClient, sessionClientHost, authStore, syncFromClient]);
804
726
 
805
727
  // Exposed `refreshSessions`: re-bootstrap the server-authoritative device
806
728
  // state and reproject — the manual counterpart to the realtime socket.
@@ -839,78 +761,23 @@ export const OxyProvider = ({
839
761
  queryClient,
840
762
  showBottomSheet: showBottomSheetForContext
841
763
  });
842
-
843
- // ── Account graph ──────────────────────────────────────────────────────────
844
- const [accounts, setAccounts] = useState([]);
845
- const refreshAccounts = useCallback(async () => {
846
- if (!isAuthenticated || !tokenReady || !oxyServices.getAccessToken()) {
847
- setAccounts([]);
848
- return;
849
- }
850
- try {
851
- const list = await oxyServices.listAccounts();
852
- setAccounts(list);
853
- } catch (err) {
854
- if (isUnauthorizedStatus(err)) {
855
- setAccounts([]);
856
- await clearSessionStateRef.current();
857
- return;
858
- }
859
- if (__DEV__) {
860
- loggerUtil.debug('Failed to load accounts', {
861
- component: 'OxyContext'
862
- }, err);
863
- }
864
- }
865
- }, [isAuthenticated, oxyServices, tokenReady]);
866
- useEffect(() => {
867
- if (isAuthenticated && initialized && tokenReady) {
868
- refreshAccounts();
869
- // Reload the dialog's own account graph too, so a session restored OUTSIDE
870
- // the dialog (cold boot / password sign-in) surfaces its graph accounts.
871
- void accountDialogControllerRef.current?.refresh();
872
- }
873
- }, [isAuthenticated, initialized, tokenReady, refreshAccounts]);
874
- const runPostAccountSwitchSideEffects = useCallback(async () => {
875
- await refreshAccounts();
876
- queryClient.invalidateQueries();
877
- }, [refreshAccounts, queryClient]);
878
-
879
- // Switch the active session INTO an account from the unified graph. In the
880
- // real-session model this is identical to switching device sign-ins.
881
- const switchToAccount = useCallback(async accountId => {
882
- const deviceState = sessionClient.getState();
883
- if (deviceState?.accounts.some(account => account.accountId === accountId)) {
884
- await sessionClient.switchAccount(accountId);
885
- await syncFromClient();
886
- await runPostAccountSwitchSideEffects();
887
- return;
888
- }
889
- const result = await oxyServices.switchToAccount(accountId);
890
- if (!result?.user || !result?.sessionId) {
891
- throw new Error('Account switch did not return a valid session');
892
- }
893
- // `oxyServices.switchToAccount` already planted the access token; commit
894
- // the minted session through the shared funnel (persist + register +
895
- // hydrate) as a deliberate activation.
896
- await commitSession({
897
- sessionId: result.sessionId,
898
- accessToken: result.accessToken,
899
- deviceSecret: result.deviceSecret,
900
- deviceId: result.deviceId,
901
- expiresAt: result.expiresAt,
902
- userId: result.user.id,
903
- user: result.user
904
- }, {
905
- activate: true
906
- });
907
- await runPostAccountSwitchSideEffects();
908
- }, [oxyServices, sessionClient, syncFromClient, commitSession, runPostAccountSwitchSideEffects]);
909
- const createAccountFn = useCallback(async data => {
910
- const account = await oxyServices.createAccount(data);
911
- await refreshAccounts();
912
- return account;
913
- }, [oxyServices, refreshAccounts]);
764
+ const {
765
+ accounts,
766
+ refreshAccounts,
767
+ switchToAccount,
768
+ createAccount: createAccountFn
769
+ } = useOxyAccountGraph({
770
+ isAuthenticated,
771
+ tokenReady,
772
+ initialized,
773
+ oxyServices,
774
+ sessionClient,
775
+ syncFromClient,
776
+ commitSession,
777
+ queryClient,
778
+ accountDialogControllerRef,
779
+ clearSessionStateRef
780
+ });
914
781
  const canUsePrivateApi = authResolved && isAuthenticated && tokenReady && hasAccessToken;
915
782
  const isPrivateApiPending = !authResolved || isAuthenticated && (!tokenReady || !hasAccessToken);
916
783
  const contextValue = useMemo(() => ({
@@ -935,6 +802,7 @@ export const OxyProvider = ({
935
802
  signIn,
936
803
  signInWithPassword,
937
804
  completeTwoFactorSignIn,
805
+ revokeSuspiciousSignIn,
938
806
  handleWebSession,
939
807
  logout,
940
808
  logoutAll,
@@ -961,7 +829,7 @@ export const OxyProvider = ({
961
829
  switchToAccount,
962
830
  refreshAccounts,
963
831
  createAccount: createAccountFn
964
- }), [user, sessions, activeSessionId, isAuthenticated, isLoading, tokenReady, hasAccessToken, canUsePrivateApi, isPrivateApiPending, authResolved, storage, error, currentLanguage, currentLanguageMetadata, currentLanguageName, currentNativeLanguageName, hasIdentity, getPublicKey, signIn, signInWithPassword, completeTwoFactorSignIn, handleWebSession, logout, logoutAll, switchSessionForContext, refreshSessionsForContext, setLanguage, getDeviceSessions, logoutAllDeviceSessions, updateDeviceName, clearSessionState, clearAllAccountData, storageKeyPrefix, clientId, oxyServices, useFollowHook, showBottomSheetForContext, openAvatarPicker, accountDialogController, accountDialogOpen, openAccountDialog, closeAccountDialog, accounts, switchToAccount, refreshAccounts, createAccountFn]);
832
+ }), [user, sessions, activeSessionId, isAuthenticated, isLoading, tokenReady, hasAccessToken, canUsePrivateApi, isPrivateApiPending, authResolved, storage, error, currentLanguage, currentLanguageMetadata, currentLanguageName, currentNativeLanguageName, hasIdentity, getPublicKey, signIn, signInWithPassword, completeTwoFactorSignIn, revokeSuspiciousSignIn, handleWebSession, logout, logoutAll, switchSessionForContext, refreshSessionsForContext, setLanguage, getDeviceSessions, logoutAllDeviceSessions, updateDeviceName, clearSessionState, clearAllAccountData, storageKeyPrefix, clientId, oxyServices, useFollowHook, showBottomSheetForContext, openAvatarPicker, accountDialogController, accountDialogOpen, openAccountDialog, closeAccountDialog, accounts, switchToAccount, refreshAccounts, createAccountFn]);
965
833
  return /*#__PURE__*/_jsx(OxyContext.Provider, {
966
834
  value: contextValue,
967
835
  children: children
@@ -1000,6 +868,7 @@ const LOADING_STATE = {
1000
868
  signIn: () => rejectMissingProvider(),
1001
869
  signInWithPassword: () => rejectMissingProvider(),
1002
870
  completeTwoFactorSignIn: () => rejectMissingProvider(),
871
+ revokeSuspiciousSignIn: () => rejectMissingProvider(),
1003
872
  handleWebSession: () => rejectMissingProvider(),
1004
873
  logout: () => rejectMissingProvider(),
1005
874
  logoutAll: () => rejectMissingProvider(),