@oxy.so/services 6.2.0 → 8.0.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 (909) hide show
  1. package/README.md +80 -136
  2. package/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  3. package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  4. package/lib/commonjs/assets/assets/fonts/icons/manifest.json +5 -20
  5. package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  6. package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  7. package/lib/commonjs/assets/fonts/icons/manifest.json +5 -20
  8. package/lib/commonjs/index.js +21 -15
  9. package/lib/commonjs/index.js.map +1 -1
  10. package/lib/commonjs/ui/boot/runProviderColdBoot.js +2 -1
  11. package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
  12. package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +2 -3
  13. package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -1
  14. package/lib/commonjs/ui/components/OxyAuthChooser.js +15 -32
  15. package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
  16. package/lib/commonjs/ui/components/OxySignInButton.js +1 -1
  17. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  18. package/lib/commonjs/ui/components/OxySignInRequestSurface.js.map +1 -1
  19. package/lib/commonjs/ui/components/ProfileButton.js +1 -1
  20. package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
  21. package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +2 -2
  22. package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
  23. package/lib/commonjs/ui/components/authChooser/SignInRequestView.js +6 -17
  24. package/lib/commonjs/ui/components/authChooser/SignInRequestView.js.map +1 -1
  25. package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js +1 -1
  26. package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -1
  27. package/lib/commonjs/ui/components/authChooser/signInProgress.js.map +1 -1
  28. package/lib/commonjs/ui/components/authChooser/types.js +0 -8
  29. package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
  30. package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js +1 -1
  31. package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js +2 -2
  32. package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
  33. package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js +325 -0
  34. package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -0
  35. package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js +52 -56
  36. package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
  37. package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +48 -38
  38. package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
  39. package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js +141 -0
  40. package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -0
  41. package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +496 -201
  42. package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
  43. package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js +211 -42
  44. package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
  45. package/lib/commonjs/ui/components/signIn/ReauthStep.js +186 -0
  46. package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -0
  47. package/lib/commonjs/ui/components/signIn/accountFlowParts.js +103 -26
  48. package/lib/commonjs/ui/components/signIn/accountFlowParts.js.map +1 -1
  49. package/lib/commonjs/ui/components/signIn/signInFlowStore.js +50 -0
  50. package/lib/commonjs/ui/components/signIn/signInFlowStore.js.map +1 -0
  51. package/lib/commonjs/ui/components/signIn/signInMethods.js +11 -25
  52. package/lib/commonjs/ui/components/signIn/signInMethods.js.map +1 -1
  53. package/lib/commonjs/ui/context/OxyContext.js +125 -119
  54. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  55. package/lib/commonjs/ui/context/hooks/useAuthOperations.js +11 -10
  56. package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
  57. package/lib/commonjs/ui/context/useOxyAccountGraph.js +4 -4
  58. package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
  59. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +1 -1
  60. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +19 -9
  61. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  62. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +4 -4
  63. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
  64. package/lib/commonjs/ui/hooks/queries/queryKeys.js +23 -3
  65. package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
  66. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +8 -8
  67. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
  68. package/lib/commonjs/ui/hooks/queries/useAuthMethods.js +27 -15
  69. package/lib/commonjs/ui/hooks/queries/useAuthMethods.js.map +1 -1
  70. package/lib/commonjs/ui/hooks/queries/useFileQueries.js +5 -2
  71. package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
  72. package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +8 -8
  73. package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
  74. package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +4 -3
  75. package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
  76. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +6 -6
  77. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
  78. package/lib/commonjs/ui/hooks/useAssets.js +36 -20
  79. package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
  80. package/lib/commonjs/ui/hooks/useAvatarPicker.js +6 -4
  81. package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
  82. package/lib/commonjs/ui/hooks/useDeviceManagement.js +5 -5
  83. package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -1
  84. package/lib/commonjs/ui/hooks/useDeviceSwitcher.js +2 -2
  85. package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -1
  86. package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +1 -4
  87. package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -1
  88. package/lib/commonjs/ui/hooks/useFollow.js +2 -2
  89. package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
  90. package/lib/commonjs/ui/hooks/useFollowTarget.js +5 -5
  91. package/lib/commonjs/ui/hooks/useFollowTarget.js.map +1 -1
  92. package/lib/commonjs/ui/hooks/useI18n.js +4 -1
  93. package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
  94. package/lib/commonjs/ui/hooks/useResolvedFileUrls.js +2 -2
  95. package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -1
  96. package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
  97. package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
  98. package/lib/commonjs/ui/icons/subsetGlyphMaps.js +0 -15
  99. package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
  100. package/lib/commonjs/ui/navigation/routes.js +6 -4
  101. package/lib/commonjs/ui/navigation/routes.js.map +1 -1
  102. package/lib/commonjs/ui/navigation/surfaceRegistry.js +1 -1
  103. package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -1
  104. package/lib/commonjs/ui/oauth/browserBridge.js +247 -0
  105. package/lib/commonjs/ui/oauth/browserBridge.js.map +1 -0
  106. package/lib/commonjs/ui/oauth/completeOAuthCode.js +1 -1
  107. package/lib/commonjs/ui/oauth/completeOAuthCode.js.map +1 -1
  108. package/lib/commonjs/ui/oauth/explicitOAuthConsent.js +1 -1
  109. package/lib/commonjs/ui/oauth/explicitOAuthConsent.js.map +1 -1
  110. package/lib/commonjs/ui/runtime/createOxyRuntime.js +9 -8
  111. package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -1
  112. package/lib/commonjs/ui/runtime/runtimeContext.js.map +1 -1
  113. package/lib/commonjs/ui/screens/AccountMembersScreen.js +7 -7
  114. package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
  115. package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js +35 -0
  116. package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js.map +1 -0
  117. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +3 -3
  118. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  119. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +1 -1
  120. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  121. package/lib/commonjs/ui/screens/AppInfoScreen.js +5 -5
  122. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  123. package/lib/commonjs/ui/screens/AvatarCropScreen.js +3 -3
  124. package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
  125. package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +1 -1
  126. package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -1
  127. package/lib/commonjs/ui/screens/CreateAccountScreen.js +1 -1
  128. package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
  129. package/lib/commonjs/ui/screens/DeleteAccountScreen.js +19 -0
  130. package/lib/commonjs/ui/screens/DeleteAccountScreen.js.map +1 -0
  131. package/lib/commonjs/ui/screens/DomainsScreen.js +217 -0
  132. package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -0
  133. package/lib/commonjs/ui/screens/EditProfileScreen.js +1 -1
  134. package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
  135. package/lib/commonjs/ui/screens/FileManagementScreen.js +25 -11
  136. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  137. package/lib/commonjs/ui/screens/HelpSupportScreen.js +1 -17
  138. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
  139. package/lib/commonjs/ui/screens/LinkCommonsScreen.js +14 -0
  140. package/lib/commonjs/ui/screens/LinkCommonsScreen.js.map +1 -0
  141. package/lib/commonjs/ui/screens/ManageAccountScreen.js +57 -61
  142. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
  143. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +52 -62
  144. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  145. package/lib/commonjs/ui/screens/ProfileScreen.js +5 -13
  146. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  147. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +15 -24
  148. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  149. package/lib/commonjs/ui/screens/SignInAuthenticatorScreen.js +14 -0
  150. package/lib/commonjs/ui/screens/SignInAuthenticatorScreen.js.map +1 -0
  151. package/lib/commonjs/ui/screens/SignInPasswordScreen.js +20 -0
  152. package/lib/commonjs/ui/screens/SignInPasswordScreen.js.map +1 -0
  153. package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
  154. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  155. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +1 -1
  156. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  157. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +25 -17
  158. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  159. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
  160. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  161. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +8 -14
  162. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  163. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +11 -9
  164. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  165. package/lib/commonjs/ui/session/authStore.js +4 -4
  166. package/lib/commonjs/ui/session/authStore.js.map +1 -1
  167. package/lib/commonjs/ui/session/backgroundSession.js +5 -40
  168. package/lib/commonjs/ui/session/backgroundSession.js.map +1 -1
  169. package/lib/commonjs/ui/session/createSessionClient.js +3 -3
  170. package/lib/commonjs/ui/session/createSessionClient.js.map +1 -1
  171. package/lib/commonjs/ui/session/deviceCredentialTracker.js +42 -0
  172. package/lib/commonjs/ui/session/deviceCredentialTracker.js.map +1 -0
  173. package/lib/commonjs/ui/session/identityBinding.js +3 -3
  174. package/lib/commonjs/ui/session/identityBinding.js.map +1 -1
  175. package/lib/commonjs/ui/session/index.js +6 -6
  176. package/lib/commonjs/ui/session/index.js.map +1 -1
  177. package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js +2 -2
  178. package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js.map +1 -1
  179. package/lib/commonjs/ui/session/tokenTransport.js +3 -3
  180. package/lib/commonjs/ui/session/tokenTransport.js.map +1 -1
  181. package/lib/commonjs/ui/stores/assetStore.js +12 -0
  182. package/lib/commonjs/ui/stores/assetStore.js.map +1 -1
  183. package/lib/commonjs/ui/stores/followStore.js +6 -6
  184. package/lib/commonjs/ui/stores/followStore.js.map +1 -1
  185. package/lib/commonjs/ui/utils/accountDeletionHandoff.js +1 -4
  186. package/lib/commonjs/ui/utils/accountDeletionHandoff.js.map +1 -1
  187. package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
  188. package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
  189. package/lib/commonjs/ui/utils/deviceCredential.js +11 -4
  190. package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -1
  191. package/lib/commonjs/ui/utils/fileManagement.js +0 -10
  192. package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
  193. package/lib/commonjs/ui/utils/sessionHelpers.js +2 -2
  194. package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
  195. package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  196. package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  197. package/lib/module/assets/assets/fonts/icons/manifest.json +5 -20
  198. package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  199. package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  200. package/lib/module/assets/fonts/icons/manifest.json +5 -20
  201. package/lib/module/index.js +6 -6
  202. package/lib/module/index.js.map +1 -1
  203. package/lib/module/ui/boot/runProviderColdBoot.js +2 -1
  204. package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
  205. package/lib/module/ui/components/OxyAccountDialogScreen.js +2 -3
  206. package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -1
  207. package/lib/module/ui/components/OxyAuthChooser.js +15 -32
  208. package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
  209. package/lib/module/ui/components/OxySignInButton.js +1 -1
  210. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  211. package/lib/module/ui/components/OxySignInRequestSurface.js.map +1 -1
  212. package/lib/module/ui/components/ProfileButton.js +1 -1
  213. package/lib/module/ui/components/ProfileButton.js.map +1 -1
  214. package/lib/module/ui/components/authChooser/AccountsMenuView.js +1 -1
  215. package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
  216. package/lib/module/ui/components/authChooser/SignInRequestView.js +6 -17
  217. package/lib/module/ui/components/authChooser/SignInRequestView.js.map +1 -1
  218. package/lib/module/ui/components/authChooser/TroubleDisclosure.js +1 -1
  219. package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -1
  220. package/lib/module/ui/components/authChooser/signInProgress.js.map +1 -1
  221. package/lib/module/ui/components/authChooser/types.js +0 -8
  222. package/lib/module/ui/components/authChooser/types.js.map +1 -1
  223. package/lib/module/ui/components/signIn/InlineCommonsQr.js +1 -1
  224. package/lib/module/ui/components/signIn/OxyAccountPicker.js +1 -1
  225. package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
  226. package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js +321 -0
  227. package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -0
  228. package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js +54 -58
  229. package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
  230. package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +48 -38
  231. package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
  232. package/lib/module/ui/components/signIn/OxyPasswordPanel.js +136 -0
  233. package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -0
  234. package/lib/module/ui/components/signIn/OxySignInPanel.js +496 -201
  235. package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
  236. package/lib/module/ui/components/signIn/OxySignUpPanel.js +212 -43
  237. package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
  238. package/lib/module/ui/components/signIn/ReauthStep.js +181 -0
  239. package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -0
  240. package/lib/module/ui/components/signIn/accountFlowParts.js +97 -26
  241. package/lib/module/ui/components/signIn/accountFlowParts.js.map +1 -1
  242. package/lib/module/ui/components/signIn/signInFlowStore.js +44 -0
  243. package/lib/module/ui/components/signIn/signInFlowStore.js.map +1 -0
  244. package/lib/module/ui/components/signIn/signInMethods.js +11 -25
  245. package/lib/module/ui/components/signIn/signInMethods.js.map +1 -1
  246. package/lib/module/ui/context/OxyContext.js +121 -115
  247. package/lib/module/ui/context/OxyContext.js.map +1 -1
  248. package/lib/module/ui/context/hooks/useAuthOperations.js +7 -7
  249. package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
  250. package/lib/module/ui/context/useOxyAccountGraph.js +4 -4
  251. package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
  252. package/lib/module/ui/hooks/mutations/mutationFactory.js +1 -1
  253. package/lib/module/ui/hooks/mutations/useAccountMutations.js +19 -9
  254. package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  255. package/lib/module/ui/hooks/mutations/useServicesMutations.js +4 -4
  256. package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
  257. package/lib/module/ui/hooks/queries/queryKeys.js +23 -3
  258. package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
  259. package/lib/module/ui/hooks/queries/useAccountQueries.js +8 -8
  260. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
  261. package/lib/module/ui/hooks/queries/useAuthMethods.js +25 -14
  262. package/lib/module/ui/hooks/queries/useAuthMethods.js.map +1 -1
  263. package/lib/module/ui/hooks/queries/useFileQueries.js +5 -2
  264. package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
  265. package/lib/module/ui/hooks/queries/usePaymentQueries.js +8 -8
  266. package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
  267. package/lib/module/ui/hooks/queries/useSecurityQueries.js +4 -3
  268. package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
  269. package/lib/module/ui/hooks/queries/useServicesQueries.js +6 -6
  270. package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
  271. package/lib/module/ui/hooks/useAssets.js +36 -20
  272. package/lib/module/ui/hooks/useAssets.js.map +1 -1
  273. package/lib/module/ui/hooks/useAvatarPicker.js +6 -4
  274. package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
  275. package/lib/module/ui/hooks/useDeviceManagement.js +4 -4
  276. package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -1
  277. package/lib/module/ui/hooks/useDeviceSwitcher.js +2 -2
  278. package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -1
  279. package/lib/module/ui/hooks/useFileDownloadUrl.js +1 -4
  280. package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -1
  281. package/lib/module/ui/hooks/useFollow.js +2 -2
  282. package/lib/module/ui/hooks/useFollow.js.map +1 -1
  283. package/lib/module/ui/hooks/useFollowTarget.js +5 -5
  284. package/lib/module/ui/hooks/useFollowTarget.js.map +1 -1
  285. package/lib/module/ui/hooks/useI18n.js +6 -3
  286. package/lib/module/ui/hooks/useI18n.js.map +1 -1
  287. package/lib/module/ui/hooks/useResolvedFileUrls.js +2 -2
  288. package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -1
  289. package/lib/module/ui/hooks/useSessionManagement.js +3 -3
  290. package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
  291. package/lib/module/ui/icons/subsetGlyphMaps.js +0 -15
  292. package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
  293. package/lib/module/ui/navigation/routes.js +6 -4
  294. package/lib/module/ui/navigation/routes.js.map +1 -1
  295. package/lib/module/ui/navigation/surfaceRegistry.js +1 -1
  296. package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -1
  297. package/lib/module/ui/oauth/browserBridge.js +239 -0
  298. package/lib/module/ui/oauth/browserBridge.js.map +1 -0
  299. package/lib/module/ui/oauth/completeOAuthCode.js +1 -1
  300. package/lib/module/ui/oauth/completeOAuthCode.js.map +1 -1
  301. package/lib/module/ui/oauth/explicitOAuthConsent.js +1 -1
  302. package/lib/module/ui/oauth/explicitOAuthConsent.js.map +1 -1
  303. package/lib/module/ui/runtime/createOxyRuntime.js +4 -3
  304. package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -1
  305. package/lib/module/ui/runtime/runtimeContext.js.map +1 -1
  306. package/lib/module/ui/screens/AccountMembersScreen.js +7 -7
  307. package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
  308. package/lib/module/ui/screens/AccountSecurityPanelScreen.js +32 -0
  309. package/lib/module/ui/screens/AccountSecurityPanelScreen.js.map +1 -0
  310. package/lib/module/ui/screens/AccountSettingsScreen.js +3 -3
  311. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  312. package/lib/module/ui/screens/AccountVerificationScreen.js +1 -1
  313. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  314. package/lib/module/ui/screens/AppInfoScreen.js +5 -5
  315. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  316. package/lib/module/ui/screens/AvatarCropScreen.js +3 -3
  317. package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
  318. package/lib/module/ui/screens/ChangeAvatarScreen.js +1 -1
  319. package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -1
  320. package/lib/module/ui/screens/CreateAccountScreen.js +1 -1
  321. package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
  322. package/lib/module/ui/screens/DeleteAccountScreen.js +17 -0
  323. package/lib/module/ui/screens/DeleteAccountScreen.js.map +1 -0
  324. package/lib/module/ui/screens/DomainsScreen.js +212 -0
  325. package/lib/module/ui/screens/DomainsScreen.js.map +1 -0
  326. package/lib/module/ui/screens/EditProfileScreen.js +1 -1
  327. package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
  328. package/lib/module/ui/screens/FileManagementScreen.js +25 -11
  329. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  330. package/lib/module/ui/screens/HelpSupportScreen.js +1 -17
  331. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
  332. package/lib/module/ui/screens/LinkCommonsScreen.js +12 -0
  333. package/lib/module/ui/screens/LinkCommonsScreen.js.map +1 -0
  334. package/lib/module/ui/screens/ManageAccountScreen.js +58 -62
  335. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
  336. package/lib/module/ui/screens/PrivacySettingsScreen.js +53 -63
  337. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  338. package/lib/module/ui/screens/ProfileScreen.js +5 -13
  339. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  340. package/lib/module/ui/screens/SearchSettingsScreen.js +16 -25
  341. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  342. package/lib/module/ui/screens/SignInAuthenticatorScreen.js +12 -0
  343. package/lib/module/ui/screens/SignInAuthenticatorScreen.js.map +1 -0
  344. package/lib/module/ui/screens/SignInPasswordScreen.js +18 -0
  345. package/lib/module/ui/screens/SignInPasswordScreen.js.map +1 -0
  346. package/lib/module/ui/screens/UserListScreen.js +3 -3
  347. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  348. package/lib/module/ui/screens/WelcomeNewUserScreen.js +1 -1
  349. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  350. package/lib/module/ui/screens/trust/TrustCenterScreen.js +26 -18
  351. package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  352. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
  353. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  354. package/lib/module/ui/screens/trust/TrustRewardsScreen.js +9 -15
  355. package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  356. package/lib/module/ui/screens/trust/TrustRulesScreen.js +12 -10
  357. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  358. package/lib/module/ui/session/authStore.js +1 -1
  359. package/lib/module/ui/session/authStore.js.map +1 -1
  360. package/lib/module/ui/session/backgroundSession.js +5 -40
  361. package/lib/module/ui/session/backgroundSession.js.map +1 -1
  362. package/lib/module/ui/session/createSessionClient.js +1 -1
  363. package/lib/module/ui/session/createSessionClient.js.map +1 -1
  364. package/lib/module/ui/session/deviceCredentialTracker.js +38 -0
  365. package/lib/module/ui/session/deviceCredentialTracker.js.map +1 -0
  366. package/lib/module/ui/session/identityBinding.js +1 -1
  367. package/lib/module/ui/session/identityBinding.js.map +1 -1
  368. package/lib/module/ui/session/index.js +1 -1
  369. package/lib/module/ui/session/index.js.map +1 -1
  370. package/lib/module/ui/session/sharedDeviceCredentialStore.js +1 -1
  371. package/lib/module/ui/session/sharedDeviceCredentialStore.js.map +1 -1
  372. package/lib/module/ui/session/tokenTransport.js +3 -3
  373. package/lib/module/ui/session/tokenTransport.js.map +1 -1
  374. package/lib/module/ui/stores/assetStore.js +12 -0
  375. package/lib/module/ui/stores/assetStore.js.map +1 -1
  376. package/lib/module/ui/stores/followStore.js +6 -6
  377. package/lib/module/ui/stores/followStore.js.map +1 -1
  378. package/lib/module/ui/utils/accountDeletionHandoff.js +2 -5
  379. package/lib/module/ui/utils/accountDeletionHandoff.js.map +1 -1
  380. package/lib/module/ui/utils/avatarUtils.js +1 -1
  381. package/lib/module/ui/utils/avatarUtils.js.map +1 -1
  382. package/lib/module/ui/utils/deviceCredential.js +10 -3
  383. package/lib/module/ui/utils/deviceCredential.js.map +1 -1
  384. package/lib/module/ui/utils/fileManagement.js +0 -9
  385. package/lib/module/ui/utils/fileManagement.js.map +1 -1
  386. package/lib/module/ui/utils/sessionHelpers.js +2 -2
  387. package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
  388. package/lib/typescript/commonjs/index.d.ts +5 -5
  389. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  390. package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +3 -2
  391. package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts +2 -3
  393. package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +7 -7
  395. package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
  396. package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts +2 -1
  397. package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts +1 -1
  399. package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
  400. package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts +3 -4
  401. package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
  402. package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts +1 -1
  403. package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +1 -1
  404. package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
  405. package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts +2 -1
  406. package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
  407. package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts +1 -1
  408. package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
  409. package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts +2 -1
  410. package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts.map +1 -1
  411. package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +1 -12
  412. package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
  413. package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts +1 -1
  414. package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
  415. package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts +1 -1
  416. package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
  417. package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts +19 -0
  418. package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -0
  419. package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts +10 -6
  420. package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
  421. package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts +6 -6
  422. package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
  423. package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts +15 -0
  424. package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -0
  425. package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts +21 -19
  426. package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
  427. package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts +16 -7
  428. package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
  429. package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts +34 -0
  430. package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -0
  431. package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts +38 -12
  432. package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
  433. package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts +20 -0
  434. package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts.map +1 -0
  435. package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts +8 -21
  436. package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts.map +1 -1
  437. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  438. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts +2 -1
  439. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  440. package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +4 -39
  441. package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
  442. package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +2 -1
  443. package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
  444. package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts +1 -1
  445. package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
  446. package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +1 -1
  447. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +2 -2
  448. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  449. package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts +5 -1
  450. package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
  451. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +19 -1
  452. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  453. package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts +13 -20
  454. package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
  455. package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +1 -1
  456. package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
  457. package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts +4 -4
  458. package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
  459. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +3 -5
  460. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  461. package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +5 -5
  462. package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
  463. package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +1 -1
  464. package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts +1 -1
  465. package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
  466. package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
  467. package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts +1 -1
  468. package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts.map +1 -1
  469. package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts +9 -7
  470. package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
  471. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
  472. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
  473. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  474. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  475. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +0 -15
  476. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  477. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +1 -1
  478. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
  479. package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
  480. package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
  481. package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +7 -5
  482. package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -1
  483. package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts +97 -0
  484. package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts.map +1 -0
  485. package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts +6 -2
  486. package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -1
  487. package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts +2 -1
  488. package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts.map +1 -1
  489. package/lib/typescript/commonjs/ui/runtime/types.d.ts +2 -1
  490. package/lib/typescript/commonjs/ui/runtime/types.d.ts.map +1 -1
  491. package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts +11 -0
  492. package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -0
  493. package/lib/typescript/commonjs/ui/screens/DeleteAccountScreen.d.ts +6 -0
  494. package/lib/typescript/commonjs/ui/screens/DeleteAccountScreen.d.ts.map +1 -0
  495. package/lib/typescript/commonjs/ui/screens/{SavesCollectionsScreen.d.ts → DomainsScreen.d.ts} +1 -1
  496. package/lib/typescript/commonjs/ui/screens/DomainsScreen.d.ts.map +1 -0
  497. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  498. package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  499. package/lib/typescript/commonjs/ui/screens/LinkCommonsScreen.d.ts +6 -0
  500. package/lib/typescript/commonjs/ui/screens/LinkCommonsScreen.d.ts.map +1 -0
  501. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  502. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  503. package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
  504. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  505. package/lib/typescript/commonjs/ui/screens/SignInAuthenticatorScreen.d.ts +6 -0
  506. package/lib/typescript/commonjs/ui/screens/SignInAuthenticatorScreen.d.ts.map +1 -0
  507. package/lib/typescript/commonjs/ui/screens/SignInPasswordScreen.d.ts +6 -0
  508. package/lib/typescript/commonjs/ui/screens/SignInPasswordScreen.d.ts.map +1 -0
  509. package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  510. package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  511. package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  512. package/lib/typescript/commonjs/ui/session/authStore.d.ts +1 -1
  513. package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -1
  514. package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts +3 -4
  515. package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts.map +1 -1
  516. package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +2 -1
  517. package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -1
  518. package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts +23 -0
  519. package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts.map +1 -0
  520. package/lib/typescript/commonjs/ui/session/identityBinding.d.ts +1 -1
  521. package/lib/typescript/commonjs/ui/session/identityBinding.d.ts.map +1 -1
  522. package/lib/typescript/commonjs/ui/session/index.d.ts +1 -1
  523. package/lib/typescript/commonjs/ui/session/index.d.ts.map +1 -1
  524. package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts +1 -1
  525. package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts.map +1 -1
  526. package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts +1 -1
  527. package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
  528. package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts +3 -2
  529. package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -1
  530. package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +7 -0
  531. package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -1
  532. package/lib/typescript/commonjs/ui/types/navigation.d.ts +1 -1
  533. package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
  534. package/lib/typescript/commonjs/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
  535. package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts +10 -3
  536. package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -1
  537. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +1 -5
  538. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
  539. package/lib/typescript/module/index.d.ts +5 -5
  540. package/lib/typescript/module/index.d.ts.map +1 -1
  541. package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +3 -2
  542. package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
  543. package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts +2 -3
  544. package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
  545. package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +7 -7
  546. package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
  547. package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts +2 -1
  548. package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
  549. package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts +1 -1
  550. package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
  551. package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts +3 -4
  552. package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
  553. package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts +1 -1
  554. package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +1 -1
  555. package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
  556. package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts +2 -1
  557. package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
  558. package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts +1 -1
  559. package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
  560. package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts +2 -1
  561. package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts.map +1 -1
  562. package/lib/typescript/module/ui/components/authChooser/types.d.ts +1 -12
  563. package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
  564. package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts +1 -1
  565. package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
  566. package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts +1 -1
  567. package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
  568. package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts +19 -0
  569. package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -0
  570. package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts +10 -6
  571. package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
  572. package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts +6 -6
  573. package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
  574. package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts +15 -0
  575. package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -0
  576. package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts +21 -19
  577. package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
  578. package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts +16 -7
  579. package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
  580. package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts +34 -0
  581. package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -0
  582. package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts +38 -12
  583. package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
  584. package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts +20 -0
  585. package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts.map +1 -0
  586. package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts +8 -21
  587. package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts.map +1 -1
  588. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  589. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts +2 -1
  590. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  591. package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +4 -39
  592. package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
  593. package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +2 -1
  594. package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
  595. package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts +1 -1
  596. package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
  597. package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +1 -1
  598. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +2 -2
  599. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  600. package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts +5 -1
  601. package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
  602. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +19 -1
  603. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  604. package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts +13 -20
  605. package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
  606. package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +1 -1
  607. package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
  608. package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts +4 -4
  609. package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
  610. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +3 -5
  611. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  612. package/lib/typescript/module/ui/hooks/useAssets.d.ts +5 -5
  613. package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
  614. package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +1 -1
  615. package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts +1 -1
  616. package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
  617. package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
  618. package/lib/typescript/module/ui/hooks/useFollow.d.ts +1 -1
  619. package/lib/typescript/module/ui/hooks/useI18n.d.ts.map +1 -1
  620. package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts +9 -7
  621. package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
  622. package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
  623. package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
  624. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  625. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  626. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +0 -15
  627. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  628. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +1 -1
  629. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
  630. package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
  631. package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
  632. package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +7 -5
  633. package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -1
  634. package/lib/typescript/module/ui/oauth/browserBridge.d.ts +97 -0
  635. package/lib/typescript/module/ui/oauth/browserBridge.d.ts.map +1 -0
  636. package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts +6 -2
  637. package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -1
  638. package/lib/typescript/module/ui/runtime/runtimeContext.d.ts +2 -1
  639. package/lib/typescript/module/ui/runtime/runtimeContext.d.ts.map +1 -1
  640. package/lib/typescript/module/ui/runtime/types.d.ts +2 -1
  641. package/lib/typescript/module/ui/runtime/types.d.ts.map +1 -1
  642. package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts +11 -0
  643. package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -0
  644. package/lib/typescript/module/ui/screens/DeleteAccountScreen.d.ts +6 -0
  645. package/lib/typescript/module/ui/screens/DeleteAccountScreen.d.ts.map +1 -0
  646. package/lib/typescript/module/ui/screens/{SavesCollectionsScreen.d.ts → DomainsScreen.d.ts} +1 -1
  647. package/lib/typescript/module/ui/screens/DomainsScreen.d.ts.map +1 -0
  648. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  649. package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  650. package/lib/typescript/module/ui/screens/LinkCommonsScreen.d.ts +6 -0
  651. package/lib/typescript/module/ui/screens/LinkCommonsScreen.d.ts.map +1 -0
  652. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  653. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  654. package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
  655. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  656. package/lib/typescript/module/ui/screens/SignInAuthenticatorScreen.d.ts +6 -0
  657. package/lib/typescript/module/ui/screens/SignInAuthenticatorScreen.d.ts.map +1 -0
  658. package/lib/typescript/module/ui/screens/SignInPasswordScreen.d.ts +6 -0
  659. package/lib/typescript/module/ui/screens/SignInPasswordScreen.d.ts.map +1 -0
  660. package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  661. package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  662. package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  663. package/lib/typescript/module/ui/session/authStore.d.ts +1 -1
  664. package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -1
  665. package/lib/typescript/module/ui/session/backgroundSession.d.ts +3 -4
  666. package/lib/typescript/module/ui/session/backgroundSession.d.ts.map +1 -1
  667. package/lib/typescript/module/ui/session/createSessionClient.d.ts +2 -1
  668. package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -1
  669. package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts +23 -0
  670. package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts.map +1 -0
  671. package/lib/typescript/module/ui/session/identityBinding.d.ts +1 -1
  672. package/lib/typescript/module/ui/session/identityBinding.d.ts.map +1 -1
  673. package/lib/typescript/module/ui/session/index.d.ts +1 -1
  674. package/lib/typescript/module/ui/session/index.d.ts.map +1 -1
  675. package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts +1 -1
  676. package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts.map +1 -1
  677. package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts +1 -1
  678. package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
  679. package/lib/typescript/module/ui/session/tokenTransport.d.ts +3 -2
  680. package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -1
  681. package/lib/typescript/module/ui/stores/assetStore.d.ts +7 -0
  682. package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -1
  683. package/lib/typescript/module/ui/types/navigation.d.ts +1 -1
  684. package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
  685. package/lib/typescript/module/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
  686. package/lib/typescript/module/ui/utils/deviceCredential.d.ts +10 -3
  687. package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -1
  688. package/lib/typescript/module/ui/utils/fileManagement.d.ts +1 -5
  689. package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
  690. package/package.json +4 -5
  691. package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  692. package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  693. package/src/assets/fonts/icons/manifest.json +5 -20
  694. package/src/index.ts +8 -8
  695. package/src/ui/boot/__tests__/coldBootNoIdpRedirect.test.ts +4 -4
  696. package/src/ui/boot/runProviderColdBoot.ts +3 -9
  697. package/src/ui/components/OxyAccountDialogScreen.tsx +2 -3
  698. package/src/ui/components/OxyAuthChooser.tsx +13 -36
  699. package/src/ui/components/OxySignInButton.tsx +1 -1
  700. package/src/ui/components/OxySignInRequestSurface.tsx +2 -1
  701. package/src/ui/components/ProfileButton.tsx +1 -1
  702. package/src/ui/components/authChooser/AccountsMenuView.tsx +1 -6
  703. package/src/ui/components/authChooser/SignInRequestView.tsx +5 -23
  704. package/src/ui/components/authChooser/TroubleDisclosure.tsx +1 -1
  705. package/src/ui/components/authChooser/primitives.tsx +1 -1
  706. package/src/ui/components/authChooser/requestSurfaces.tsx +2 -1
  707. package/src/ui/components/authChooser/signInFailureMessage.ts +1 -1
  708. package/src/ui/components/authChooser/signInProgress.ts +2 -1
  709. package/src/ui/components/authChooser/types.ts +1 -13
  710. package/src/ui/components/signIn/InlineCommonsQr.tsx +2 -2
  711. package/src/ui/components/signIn/OxyAccountPicker.tsx +1 -1
  712. package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +294 -0
  713. package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +48 -61
  714. package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +43 -35
  715. package/src/ui/components/signIn/OxyPasswordPanel.tsx +117 -0
  716. package/src/ui/components/signIn/OxySignInPanel.tsx +534 -214
  717. package/src/ui/components/signIn/OxySignUpPanel.tsx +186 -56
  718. package/src/ui/components/signIn/ReauthStep.tsx +201 -0
  719. package/src/ui/components/signIn/accountFlowParts.tsx +139 -33
  720. package/src/ui/components/signIn/signInFlowStore.ts +41 -0
  721. package/src/ui/components/signIn/signInMethods.ts +10 -29
  722. package/src/ui/context/OxyContext.tsx +124 -145
  723. package/src/ui/context/hooks/useAuthOperations.ts +9 -8
  724. package/src/ui/context/oxyContextTypes.ts +4 -41
  725. package/src/ui/context/useOxyAccountGraph.ts +6 -5
  726. package/src/ui/hooks/accountDialogSnapshot.ts +1 -1
  727. package/src/ui/hooks/mutations/mutationFactory.ts +1 -1
  728. package/src/ui/hooks/mutations/useAccountMutations.ts +11 -10
  729. package/src/ui/hooks/mutations/useServicesMutations.ts +4 -4
  730. package/src/ui/hooks/queries/queryKeys.ts +26 -2
  731. package/src/ui/hooks/queries/useAccountQueries.ts +8 -8
  732. package/src/ui/hooks/queries/useAuthMethods.ts +22 -19
  733. package/src/ui/hooks/queries/useFileQueries.ts +2 -2
  734. package/src/ui/hooks/queries/usePaymentQueries.ts +8 -8
  735. package/src/ui/hooks/queries/useSecurityQueries.ts +4 -3
  736. package/src/ui/hooks/queries/useServicesQueries.ts +6 -6
  737. package/src/ui/hooks/useAssets.ts +26 -31
  738. package/src/ui/hooks/useAvatarPicker.ts +4 -4
  739. package/src/ui/hooks/useDeviceManagement.ts +4 -4
  740. package/src/ui/hooks/useDeviceSwitcher.ts +2 -7
  741. package/src/ui/hooks/useFileDownloadUrl.ts +1 -5
  742. package/src/ui/hooks/useFollow.ts +2 -2
  743. package/src/ui/hooks/useFollowTarget.ts +5 -5
  744. package/src/ui/hooks/useI18n.ts +6 -3
  745. package/src/ui/hooks/useResolvedFileUrls.ts +8 -6
  746. package/src/ui/hooks/useSessionManagement.ts +3 -3
  747. package/src/ui/icons/subsetGlyphMaps.ts +0 -15
  748. package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +1 -1
  749. package/src/ui/navigation/accountDialogManager.ts +1 -1
  750. package/src/ui/navigation/routes.ts +11 -8
  751. package/src/ui/navigation/surfaceRegistry.ts +8 -6
  752. package/src/ui/oauth/__tests__/browserAuthTransport.test.ts +8 -8
  753. package/src/ui/oauth/__tests__/browserBridge.test.ts +198 -0
  754. package/src/ui/oauth/__tests__/completeOAuthCode.test.ts +1 -1
  755. package/src/ui/oauth/__tests__/explicitOAuthConsent.test.ts +11 -11
  756. package/src/ui/oauth/__tests__/sharedCompletionPath.test.ts +7 -7
  757. package/src/ui/oauth/browserBridge.ts +234 -0
  758. package/src/ui/oauth/completeOAuthCode.ts +1 -1
  759. package/src/ui/oauth/explicitOAuthConsent.ts +1 -1
  760. package/src/ui/runtime/createOxyRuntime.ts +8 -16
  761. package/src/ui/runtime/runtimeContext.tsx +2 -1
  762. package/src/ui/runtime/types.ts +2 -1
  763. package/src/ui/screens/AccountMembersScreen.tsx +7 -7
  764. package/src/ui/screens/AccountSecurityPanelScreen.tsx +26 -0
  765. package/src/ui/screens/AccountSettingsScreen.tsx +3 -3
  766. package/src/ui/screens/AccountVerificationScreen.tsx +1 -1
  767. package/src/ui/screens/AppInfoScreen.tsx +5 -5
  768. package/src/ui/screens/AvatarCropScreen.tsx +3 -3
  769. package/src/ui/screens/ChangeAvatarScreen.tsx +1 -1
  770. package/src/ui/screens/CreateAccountScreen.tsx +1 -1
  771. package/src/ui/screens/DeleteAccountScreen.tsx +13 -0
  772. package/src/ui/screens/DomainsScreen.tsx +187 -0
  773. package/src/ui/screens/EditProfileScreen.tsx +1 -1
  774. package/src/ui/screens/FileManagementScreen.tsx +15 -21
  775. package/src/ui/screens/HelpSupportScreen.tsx +0 -15
  776. package/src/ui/screens/LinkCommonsScreen.tsx +13 -0
  777. package/src/ui/screens/ManageAccountScreen.tsx +47 -82
  778. package/src/ui/screens/PrivacySettingsScreen.tsx +48 -67
  779. package/src/ui/screens/ProfileScreen.tsx +5 -10
  780. package/src/ui/screens/SearchSettingsScreen.tsx +15 -27
  781. package/src/ui/screens/SignInAuthenticatorScreen.tsx +13 -0
  782. package/src/ui/screens/SignInPasswordScreen.tsx +13 -0
  783. package/src/ui/screens/UserListScreen.tsx +3 -3
  784. package/src/ui/screens/WelcomeNewUserScreen.tsx +1 -1
  785. package/src/ui/screens/trust/TrustCenterScreen.tsx +25 -29
  786. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +2 -2
  787. package/src/ui/screens/trust/TrustRewardsScreen.tsx +9 -19
  788. package/src/ui/screens/trust/TrustRulesScreen.tsx +14 -14
  789. package/src/ui/session/__tests__/authStore.test.ts +1 -1
  790. package/src/ui/session/__tests__/backgroundSession.test.ts +2 -61
  791. package/src/ui/session/__tests__/createSessionClient.test.ts +7 -9
  792. package/src/ui/session/__tests__/sharedDeviceCredentialStore.test.ts +1 -1
  793. package/src/ui/session/__tests__/tokenTransport.test.ts +9 -7
  794. package/src/ui/session/authStore.ts +1 -7
  795. package/src/ui/session/backgroundSession.ts +5 -41
  796. package/src/ui/session/createSessionClient.ts +2 -6
  797. package/src/ui/session/deviceCredentialTracker.ts +49 -0
  798. package/src/ui/session/identityBinding.ts +1 -6
  799. package/src/ui/session/index.ts +1 -1
  800. package/src/ui/session/nativeSecureStorage.ts +1 -1
  801. package/src/ui/session/sharedDeviceCredentialStore.ts +1 -6
  802. package/src/ui/session/tokenTransport.ts +5 -4
  803. package/src/ui/stores/__tests__/followStore.test.ts +13 -15
  804. package/src/ui/stores/assetStore.ts +15 -0
  805. package/src/ui/stores/followStore.ts +7 -7
  806. package/src/ui/types/navigation.ts +2 -1
  807. package/src/ui/utils/accountDeletionHandoff.ts +2 -4
  808. package/src/ui/utils/avatarUtils.ts +1 -1
  809. package/src/ui/utils/deviceCredential.ts +11 -4
  810. package/src/ui/utils/fileManagement.ts +0 -12
  811. package/src/ui/utils/sessionHelpers.ts +2 -2
  812. package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js +0 -236
  813. package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js.map +0 -1
  814. package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js +0 -170
  815. package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js.map +0 -1
  816. package/lib/commonjs/ui/components/signIn/passkeyError.js +0 -46
  817. package/lib/commonjs/ui/components/signIn/passkeyError.js.map +0 -1
  818. package/lib/commonjs/ui/context/passkeyFlow.js +0 -114
  819. package/lib/commonjs/ui/context/passkeyFlow.js.map +0 -1
  820. package/lib/commonjs/ui/screens/FAQScreen.js +0 -162
  821. package/lib/commonjs/ui/screens/FAQScreen.js.map +0 -1
  822. package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -601
  823. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +0 -1
  824. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -968
  825. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
  826. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +0 -132
  827. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +0 -1
  828. package/lib/commonjs/webauthn/passkeyClient.js +0 -39
  829. package/lib/commonjs/webauthn/passkeyClient.js.map +0 -1
  830. package/lib/commonjs/webauthn/passkeyClient.native.js +0 -34
  831. package/lib/commonjs/webauthn/passkeyClient.native.js.map +0 -1
  832. package/lib/commonjs/webauthn/passkeyClient.web.js +0 -57
  833. package/lib/commonjs/webauthn/passkeyClient.web.js.map +0 -1
  834. package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js +0 -231
  835. package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js.map +0 -1
  836. package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js +0 -165
  837. package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js.map +0 -1
  838. package/lib/module/ui/components/signIn/passkeyError.js +0 -40
  839. package/lib/module/ui/components/signIn/passkeyError.js.map +0 -1
  840. package/lib/module/ui/context/passkeyFlow.js +0 -107
  841. package/lib/module/ui/context/passkeyFlow.js.map +0 -1
  842. package/lib/module/ui/screens/FAQScreen.js +0 -157
  843. package/lib/module/ui/screens/FAQScreen.js.map +0 -1
  844. package/lib/module/ui/screens/FeedbackScreen.js +0 -599
  845. package/lib/module/ui/screens/FeedbackScreen.js.map +0 -1
  846. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -963
  847. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
  848. package/lib/module/ui/screens/SavesCollectionsScreen.js +0 -127
  849. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +0 -1
  850. package/lib/module/webauthn/passkeyClient.js +0 -33
  851. package/lib/module/webauthn/passkeyClient.js.map +0 -1
  852. package/lib/module/webauthn/passkeyClient.native.js +0 -28
  853. package/lib/module/webauthn/passkeyClient.native.js.map +0 -1
  854. package/lib/module/webauthn/passkeyClient.web.js +0 -52
  855. package/lib/module/webauthn/passkeyClient.web.js.map +0 -1
  856. package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts +0 -24
  857. package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +0 -1
  858. package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts +0 -20
  859. package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +0 -1
  860. package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts +0 -16
  861. package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts.map +0 -1
  862. package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts +0 -92
  863. package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts.map +0 -1
  864. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts +0 -5
  865. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +0 -1
  866. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts +0 -5
  867. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +0 -1
  868. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
  869. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
  870. package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
  871. package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts +0 -20
  872. package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts.map +0 -1
  873. package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts +0 -15
  874. package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts.map +0 -1
  875. package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts +0 -36
  876. package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts.map +0 -1
  877. package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts +0 -24
  878. package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +0 -1
  879. package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts +0 -20
  880. package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +0 -1
  881. package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts +0 -16
  882. package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts.map +0 -1
  883. package/lib/typescript/module/ui/context/passkeyFlow.d.ts +0 -92
  884. package/lib/typescript/module/ui/context/passkeyFlow.d.ts.map +0 -1
  885. package/lib/typescript/module/ui/screens/FAQScreen.d.ts +0 -5
  886. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +0 -1
  887. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts +0 -5
  888. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +0 -1
  889. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
  890. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
  891. package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
  892. package/lib/typescript/module/webauthn/passkeyClient.d.ts +0 -20
  893. package/lib/typescript/module/webauthn/passkeyClient.d.ts.map +0 -1
  894. package/lib/typescript/module/webauthn/passkeyClient.native.d.ts +0 -15
  895. package/lib/typescript/module/webauthn/passkeyClient.native.d.ts.map +0 -1
  896. package/lib/typescript/module/webauthn/passkeyClient.web.d.ts +0 -36
  897. package/lib/typescript/module/webauthn/passkeyClient.web.d.ts.map +0 -1
  898. package/src/ui/components/signIn/OxyCreateAccountPanel.tsx +0 -207
  899. package/src/ui/components/signIn/OxyRecoverAccountPanel.tsx +0 -154
  900. package/src/ui/components/signIn/passkeyError.ts +0 -44
  901. package/src/ui/context/__tests__/passkeyFlow.test.ts +0 -239
  902. package/src/ui/context/passkeyFlow.ts +0 -145
  903. package/src/ui/screens/FAQScreen.tsx +0 -200
  904. package/src/ui/screens/FeedbackScreen.tsx +0 -766
  905. package/src/ui/screens/PremiumSubscriptionScreen.tsx +0 -1103
  906. package/src/ui/screens/SavesCollectionsScreen.tsx +0 -167
  907. package/src/webauthn/passkeyClient.native.ts +0 -26
  908. package/src/webauthn/passkeyClient.ts +0 -31
  909. package/src/webauthn/passkeyClient.web.ts +0 -56
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  /**
4
- * Linking Commons to a passkey account (ADR 0029 D3), auth.oxy.so's
5
- * `/link-commons`:
4
+ * Linking Commons to an account that has no key of its own, from the account's
5
+ * settings (the account dialog's "Manage your account", or the Accounts app):
6
6
  *
7
7
  * QR → Commons scans and signs with its key → both screens show the same
8
- * code → the person confirms here with the passkey → linked
8
+ * code → the person confirms it's them with a code sent to the account's
9
+ * email (+ the authenticator's code) → linked
9
10
  *
10
11
  * Afterwards the account is self-custodied: its root is the key Commons holds,
11
- * its recovery email is deleted, and its phrase in Commons is how it gets back
12
- * in. The passkey keeps signing in on the web. The page must be signed in as
13
- * the account; the host renders sign-in first.
12
+ * its email, password and authenticator are deleted, and its phrase in Commons
13
+ * is how it gets back in. It must be rendered signed in as the account.
14
14
  */
15
15
 
16
16
  import { useCallback, useEffect, useRef, useState } from 'react';
@@ -19,13 +19,13 @@ import QRCode from 'react-native-qrcode-svg';
19
19
  import { Button } from '@oxy.so/bloom/button';
20
20
  import { useTheme } from '@oxy.so/bloom/theme';
21
21
  import { Text } from '@oxy.so/bloom/typography';
22
- import { deriveIdentityLinkCode } from '@oxy.so/core';
22
+ import { deriveIdentityLinkCode } from '@oxy.so/core/crypto';
23
23
  import { useOxy } from "../../context/OxyContext.js";
24
- import { PASSKEY_UNSUPPORTED_MESSAGE } from "../../context/passkeyFlow.js";
24
+ import { useSignInMethods } from "../../hooks/queries/useAuthMethods.js";
25
25
  import { useI18n } from "../../hooks/useI18n.js";
26
- import { isPasskeySupported, runAuthenticationCeremony } from '../../../webauthn/passkeyClient';
27
26
  import { OxyAuthScreen, OxyAuthScreenHeader } from "./OxyAuthScreen.js";
28
- import { AccountFlowAction, AccountFlowErrorLine, AccountFlowNote, describeAccountFlowError } from "./accountFlowParts.js";
27
+ import { ReauthStep } from "./ReauthStep.js";
28
+ import { AccountFlowAction, AccountFlowErrorLine, AccountFlowNote, describeSignInError } from "./accountFlowParts.js";
29
29
 
30
30
  /** How often the page asks whether Commons has signed. */
31
31
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -49,19 +49,21 @@ export const OxyLinkCommonsPanel = ({
49
49
  const [step, setStep] = useState({
50
50
  name: 'opening'
51
51
  });
52
- const [pending, setPending] = useState(false);
53
52
  const [error, setError] = useState(null);
54
53
  const alreadyLinked = Boolean(user?.publicKey);
54
+ const methods = useSignInMethods({
55
+ enabled: !alreadyLinked
56
+ });
55
57
  const open = useCallback(() => {
56
58
  setError(null);
57
59
  setStep({
58
60
  name: 'opening'
59
61
  });
60
- oxyServices.createIdentityLink().then(link => setStep({
62
+ oxyServices.identity.links.create().then(link => setStep({
61
63
  name: 'qr',
62
64
  link
63
65
  })).catch(reason => {
64
- setError(describeAccountFlowError(reason, t));
66
+ setError(describeSignInError(reason, t));
65
67
  setStep({
66
68
  name: 'expired'
67
69
  });
@@ -91,7 +93,7 @@ export const OxyLinkCommonsPanel = ({
91
93
  return;
92
94
  }
93
95
  try {
94
- const state = await oxyServices.getIdentityLink(link.linkId);
96
+ const state = await oxyServices.identity.links.get(link.linkId);
95
97
  if (stopped) return;
96
98
  if (state.status === 'signed' && state.publicKey) {
97
99
  setStep({
@@ -118,25 +120,8 @@ export const OxyLinkCommonsPanel = ({
118
120
  clearTimeout(timer);
119
121
  };
120
122
  }, [link, oxyServices]);
121
-
122
- // The ceremony opens the browser's passkey prompt, so it starts from the press.
123
- const confirm = confirmed => {
124
- if (pending) return;
125
- setError(null);
126
- setPending(true);
127
- (async () => {
128
- if (!isPasskeySupported()) throw new Error(PASSKEY_UNSUPPORTED_MESSAGE);
129
- const options = await oxyServices.getIdentityLinkAssertionOptions(confirmed.linkId, confirmed.challenge);
130
- const assertion = await runAuthenticationCeremony(options);
131
- await oxyServices.completeIdentityLink(confirmed.linkId, assertion);
132
- setStep({
133
- name: 'done'
134
- });
135
- onLinked?.();
136
- })().catch(reason => setError(describeAccountFlowError(reason, t))).finally(() => setPending(false));
137
- };
138
123
  const cancel = cancelled => {
139
- void oxyServices.cancelIdentityLink(cancelled.linkId).catch(() => undefined);
124
+ void oxyServices.identity.links.cancel(cancelled.linkId).catch(() => undefined);
140
125
  setStep({
141
126
  name: 'expired'
142
127
  });
@@ -150,6 +135,31 @@ export const OxyLinkCommonsPanel = ({
150
135
  });
151
136
  }
152
137
  switch (step.name) {
138
+ case 'confirm':
139
+ return /*#__PURE__*/_jsx(ReauthStep, {
140
+ title: t('linkCommons.confirmTitle'),
141
+ description: t('linkCommons.confirmDescription'),
142
+ action: "link_commons",
143
+ totpEnabled: methods.data?.totpEnabled ?? false,
144
+ submitLabel: t('linkCommons.confirm'),
145
+ onSubmit: async proof => {
146
+ if (!proof.emailCode) throw new Error(t('reauth.errors.invalid'));
147
+ await oxyServices.identity.links.complete(step.link.linkId, {
148
+ emailCode: proof.emailCode,
149
+ ...(proof.totpCode ? {
150
+ totpCode: proof.totpCode
151
+ } : {})
152
+ });
153
+ setStep({
154
+ name: 'done'
155
+ });
156
+ onLinked?.();
157
+ },
158
+ secondary: {
159
+ label: t('linkCommons.cancel'),
160
+ onPress: () => cancel(step.link)
161
+ }
162
+ });
153
163
  case 'done':
154
164
  return /*#__PURE__*/_jsx(OxyAuthScreen, {
155
165
  children: /*#__PURE__*/_jsx(OxyAuthScreenHeader, {
@@ -183,19 +193,19 @@ export const OxyLinkCommonsPanel = ({
183
193
  }],
184
194
  testID: "link-commons-code",
185
195
  children: `${step.code.slice(0, 3)} ${step.code.slice(3)}`
186
- }), error ? /*#__PURE__*/_jsx(AccountFlowErrorLine, {
187
- message: error
188
- }) : null, /*#__PURE__*/_jsx(AccountFlowAction, {
196
+ }), /*#__PURE__*/_jsx(AccountFlowAction, {
189
197
  label: t('linkCommons.confirm'),
190
- onPress: () => confirm(step.link),
191
- pending: pending,
198
+ onPress: () => setStep({
199
+ name: 'confirm',
200
+ link: step.link
201
+ }),
202
+ pending: false,
192
203
  testID: "link-commons-confirm"
193
204
  }), /*#__PURE__*/_jsx(Button, {
194
205
  appearance: "plain",
195
206
  tone: "neutral",
196
207
  size: "lg",
197
208
  fullWidth: true,
198
- disabled: pending,
199
209
  onPress: () => cancel(step.link),
200
210
  testID: "link-commons-cancel",
201
211
  children: t('linkCommons.cancel')
@@ -1 +1 @@
1
- {"version":3,"names":["useCallback","useEffect","useRef","useState","ActivityIndicator","StyleSheet","View","QRCode","Button","useTheme","Text","deriveIdentityLinkCode","useOxy","PASSKEY_UNSUPPORTED_MESSAGE","useI18n","isPasskeySupported","runAuthenticationCeremony","OxyAuthScreen","OxyAuthScreenHeader","AccountFlowAction","AccountFlowErrorLine","AccountFlowNote","describeAccountFlowError","jsx","_jsx","jsxs","_jsxs","IDENTITY_LINK_POLL_MS","QR_PLATE_BG","QR_FOREGROUND","QR_SIZE","OxyLinkCommonsPanel","onLinked","theme","t","user","oxyServices","step","setStep","name","pending","setPending","error","setError","alreadyLinked","Boolean","publicKey","open","createIdentityLink","then","link","catch","reason","opened","current","stopped","poll","Date","now","expiresAt","state","getIdentityLink","linkId","status","code","timer","setTimeout","clearTimeout","confirm","confirmed","Error","options","getIdentityLinkAssertionOptions","challenge","assertion","completeIdentityLink","finally","cancel","cancelled","cancelIdentityLink","undefined","children","title","description","message","label","onPress","testID","accessibilityLabel","split","join","style","styles","color","colors","text","slice","appearance","tone","size","fullWidth","disabled","plateRow","plate","borderColor","border","value","qrPayload","backgroundColor","primary","create","alignItems","padding","borderRadius","borderWidth","hairlineWidth","fontSize","lineHeight","fontWeight","letterSpacing","textAlign"],"sourceRoot":"../../../../../src","sources":["ui/components/signIn/OxyLinkCommonsPanel.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,WAAW,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAChE,SAASC,iBAAiB,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAClE,OAAOC,MAAM,MAAM,yBAAyB;AAC5C,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,QAAQ,QAAQ,qBAAqB;AAC9C,SAASC,IAAI,QAAQ,0BAA0B;AAC/C,SAASC,sBAAsB,QAAQ,cAAc;AAErD,SAASC,MAAM,QAAQ,6BAA0B;AACjD,SAASC,2BAA2B,QAAQ,8BAA2B;AACvE,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,kBAAkB,EAAEC,yBAAyB,QAAQ,iCAAiC;AAC/F,SAASC,aAAa,EAAEC,mBAAmB,QAAQ,oBAAiB;AACpE,SAASC,iBAAiB,EAAEC,oBAAoB,EAAEC,eAAe,EAAEC,wBAAwB,QAAQ,uBAAoB;;AAEvH;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,OAAO,MAAMC,qBAAqB,GAAG,IAAI;;AAE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AAC,OAAO;YAACN,KAAK,EAAE5D,KAAK,CAAC6D,MAAM,CAACe;UAAQ,CAAE;QAAC,CAC3D,CAAC;MAAA,CACM,CAAC;EAEtB;AACF,CAAC;AAED,MAAMjB,MAAM,GAAGvF,UAAU,CAACyG,MAAM,CAAC;EAC/BR,QAAQ,EAAE;IACRS,UAAU,EAAE;EACd,CAAC;EACDR,KAAK,EAAE;IACLS,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE7G,UAAU,CAAC8G,aAAa;IACrCP,eAAe,EAAEhF;EACnB,CAAC;EACDoC,IAAI,EAAE;IACJoD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE,CAAC;IAChBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useCallback","useEffect","useRef","useState","ActivityIndicator","StyleSheet","View","QRCode","Button","useTheme","Text","deriveIdentityLinkCode","useOxy","useSignInMethods","useI18n","OxyAuthScreen","OxyAuthScreenHeader","ReauthStep","AccountFlowAction","AccountFlowErrorLine","AccountFlowNote","describeSignInError","jsx","_jsx","jsxs","_jsxs","IDENTITY_LINK_POLL_MS","QR_PLATE_BG","QR_FOREGROUND","QR_SIZE","OxyLinkCommonsPanel","onLinked","theme","t","user","oxyServices","step","setStep","name","error","setError","alreadyLinked","Boolean","publicKey","methods","enabled","open","identity","links","create","then","link","catch","reason","opened","current","stopped","poll","Date","now","expiresAt","state","get","linkId","status","code","timer","setTimeout","clearTimeout","cancel","cancelled","undefined","children","title","description","action","totpEnabled","data","submitLabel","onSubmit","proof","emailCode","Error","complete","totpCode","secondary","label","onPress","message","pending","testID","accessibilityLabel","split","join","style","styles","color","colors","text","slice","appearance","tone","size","fullWidth","plateRow","plate","borderColor","border","value","qrPayload","backgroundColor","primary","alignItems","padding","borderRadius","borderWidth","hairlineWidth","fontSize","lineHeight","fontWeight","letter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KAAK,EAAE;IACLQ,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE9G,UAAU,CAAC+G,aAAa;IACrCN,eAAe,EAAEnF;EACnB,CAAC;EACDsC,IAAI,EAAE;IACJoD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE,CAAC;IAChBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Setting or changing the account's password, from its settings. A password
5
+ * is optional: the account signs in with a code by email without one. The
6
+ * change is confirmed with the current password (when there is one) or a code
7
+ * sent to the account's email, plus the authenticator's code when it has one.
8
+ */
9
+
10
+ import { useState } from 'react';
11
+ import { StyleSheet, View } from 'react-native';
12
+ import { Switch } from '@oxy.so/bloom/switch';
13
+ import { useTheme } from '@oxy.so/bloom/theme';
14
+ import { toast } from '@oxy.so/bloom/toast';
15
+ import { Text } from '@oxy.so/bloom/typography';
16
+ import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '@oxy.so/contracts';
17
+ import { useQueryClient } from '@tanstack/react-query';
18
+ import { useOxy } from "../../context/OxyContext.js";
19
+ import { useSignInMethods } from "../../hooks/queries/useAuthMethods.js";
20
+ import { queryKeys } from "../../hooks/queries/queryKeys.js";
21
+ import { useI18n } from "../../hooks/useI18n.js";
22
+ import { OxyAuthLoading, OxyAuthScreen, OxyAuthScreenHeader } from "./OxyAuthScreen.js";
23
+ import { ReauthStep } from "./ReauthStep.js";
24
+ import { AccountFlowField } from "./accountFlowParts.js";
25
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
+ export const OxyPasswordPanel = ({
27
+ onDone,
28
+ onCancel
29
+ }) => {
30
+ const theme = useTheme();
31
+ const {
32
+ t
33
+ } = useI18n();
34
+ const {
35
+ oxyServices,
36
+ user
37
+ } = useOxy();
38
+ const queryClient = useQueryClient();
39
+ const keyed = Boolean(user?.publicKey);
40
+ const methods = useSignInMethods({
41
+ enabled: !keyed
42
+ });
43
+ const [password, setPassword] = useState('');
44
+ const [repeat, setRepeat] = useState('');
45
+ const [signOutOthers, setSignOutOthers] = useState(false);
46
+ if (keyed) {
47
+ return /*#__PURE__*/_jsx(OxyAuthScreen, {
48
+ children: /*#__PURE__*/_jsx(OxyAuthScreenHeader, {
49
+ title: t('signInSecurity.password.title'),
50
+ description: t('linkCommons.already')
51
+ })
52
+ });
53
+ }
54
+ if (!methods.data) return /*#__PURE__*/_jsx(OxyAuthLoading, {});
55
+ const hasPassword = methods.data.hasPassword;
56
+ return /*#__PURE__*/_jsxs(ReauthStep, {
57
+ title: hasPassword ? t('signInSecurity.password.changeTitle') : t('signInSecurity.password.setTitle'),
58
+ description: t('signInSecurity.password.description', {
59
+ min: PASSWORD_MIN_LENGTH
60
+ }),
61
+ action: "change_password",
62
+ allowPassword: hasPassword,
63
+ totpEnabled: methods.data.totpEnabled,
64
+ submitLabel: t('signInSecurity.password.save'),
65
+ validate: () => {
66
+ if (password.length < PASSWORD_MIN_LENGTH || password.length > PASSWORD_MAX_LENGTH) {
67
+ return t('signInSecurity.password.tooShort', {
68
+ min: PASSWORD_MIN_LENGTH
69
+ });
70
+ }
71
+ return password === repeat ? null : t('signInSecurity.password.mismatch');
72
+ },
73
+ onSubmit: async reauth => {
74
+ await oxyServices.auth.password.set({
75
+ newPassword: password,
76
+ reauth,
77
+ revokeOtherSessions: signOutOthers
78
+ });
79
+ void queryClient.invalidateQueries({
80
+ queryKey: queryKeys.signInMethods.all
81
+ });
82
+ toast.success(t('signInSecurity.password.saved'));
83
+ onDone?.();
84
+ },
85
+ secondary: onCancel ? {
86
+ label: t('common.cancel'),
87
+ onPress: onCancel
88
+ } : undefined,
89
+ children: [/*#__PURE__*/_jsx(AccountFlowField, {
90
+ label: t('signInSecurity.password.newLabel'),
91
+ value: password,
92
+ onChange: setPassword,
93
+ onSubmit: () => undefined,
94
+ error: null,
95
+ autoComplete: "new-password",
96
+ secureTextEntry: true,
97
+ testID: "password-new"
98
+ }), /*#__PURE__*/_jsx(AccountFlowField, {
99
+ label: t('signInSecurity.password.repeatLabel'),
100
+ value: repeat,
101
+ onChange: setRepeat,
102
+ onSubmit: () => undefined,
103
+ error: null,
104
+ autoComplete: "new-password",
105
+ secureTextEntry: true,
106
+ autoFocus: false,
107
+ testID: "password-repeat"
108
+ }), /*#__PURE__*/_jsxs(View, {
109
+ style: styles.row,
110
+ children: [/*#__PURE__*/_jsx(Text, {
111
+ style: [styles.label, {
112
+ color: theme.colors.text
113
+ }],
114
+ children: t('signInSecurity.password.signOutOthers')
115
+ }), /*#__PURE__*/_jsx(Switch, {
116
+ value: signOutOthers,
117
+ onValueChange: setSignOutOthers,
118
+ testID: "password-sign-out-others"
119
+ })]
120
+ })]
121
+ });
122
+ };
123
+ const styles = StyleSheet.create({
124
+ row: {
125
+ flexDirection: 'row',
126
+ alignItems: 'center',
127
+ justifyContent: 'space-between',
128
+ gap: 12
129
+ },
130
+ label: {
131
+ flex: 1,
132
+ fontSize: 16,
133
+ lineHeight: 24
134
+ }
135
+ });
136
+ //# sourceMappingURL=OxyPasswordPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useState","StyleSheet","View","Switch","useTheme","toast","Text","PASSWORD_MAX_LENGTH","PASSWORD_MIN_LENGTH","useQueryClient","useOxy","useSignInMethods","queryKeys","useI18n","OxyAuthLoading","OxyAuthScreen","OxyAuthScreenHeader","ReauthStep","AccountFlowField","jsx","_jsx","jsxs","_jsxs","OxyPasswordPanel","onDone","onCancel","theme","t","oxyServices","user","queryClient","keyed","Boolean","publicKey","methods","enabled","password","setPassword","repeat","setRepeat","signOutOthers","setSignOutOthers","children","title","description","data","hasPassword","min","action","allowPassword","totpEnabled","submitLabel","validate","length","onSubmit","reauth","auth","set","newPassword","revokeOtherSessions","invalidateQueries","queryKey","signInMethods","all","success","secondary","label","onPress","undefined","value","onChange","error","autoComplete","secureTextEntry","testID","autoFocus","style","styles","row","color","colors","text","onValueChange","create","flexDirection","alignItems","justifyContent","gap","flex","fontSize","lineHeight"],"sourceRoot":"../../../../../src","sources":["ui/components/signIn/OxyPasswordPanel.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,QAAQ,QAAQ,OAAO;AAChC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,QAAQ,QAAQ,qBAAqB;AAC9C,SAASC,KAAK,QAAQ,qBAAqB;AAC3C,SAASC,IAAI,QAAQ,0BAA0B;AAC/C,SAASC,mBAAmB,EAAEC,mBAAmB,QAAQ,mBAAmB;AAC5E,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SAASC,MAAM,QAAQ,6BAA0B;AACjD,SAASC,gBAAgB,QAAQ,uCAAoC;AACrE,SAASC,SAAS,QAAQ,kCAA+B;AACzD,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,cAAc,EAAEC,aAAa,EAAEC,mBAAmB,QAAQ,oBAAiB;AACpF,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,gBAAgB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAStD,OAAO,MAAMC,gBAAiD,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAAS,CAAC,KAAK;EACzF,MAAMC,KAAK,GAAGtB,QAAQ,CAAC,CAAC;EACxB,MAAM;IAAEuB;EAAE,CAAC,GAAGd,OAAO,CAAC,CAAC;EACvB,MAAM;IAAEe,WAAW;IAAEC;EAAK,CAAC,GAAGnB,MAAM,CAAC,CAAC;EACtC,MAAMoB,WAAW,GAAGrB,cAAc,CAAC,CAAC;EACpC,MAAMsB,KAAK,GAAGC,OAAO,CAACH,IAAI,EAAEI,SAAS,CAAC;EACtC,MAAMC,OAAO,GAAGvB,gB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