@oxy.so/services 6.2.0 → 8.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 (922) 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 -21
  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 -21
  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/primitives.js +1 -102
  27. package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -1
  28. package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -1
  29. package/lib/commonjs/ui/components/authChooser/signInProgress.js.map +1 -1
  30. package/lib/commonjs/ui/components/authChooser/styles.js +0 -33
  31. package/lib/commonjs/ui/components/authChooser/styles.js.map +1 -1
  32. package/lib/commonjs/ui/components/authChooser/types.js +0 -8
  33. package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
  34. package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js +1 -1
  35. package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js +153 -58
  36. package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
  37. package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js +325 -0
  38. package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -0
  39. package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js +52 -56
  40. package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
  41. package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +48 -38
  42. package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
  43. package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js +141 -0
  44. package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -0
  45. package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +496 -201
  46. package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
  47. package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js +211 -42
  48. package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
  49. package/lib/commonjs/ui/components/signIn/ReauthStep.js +186 -0
  50. package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -0
  51. package/lib/commonjs/ui/components/signIn/accountFlowParts.js +103 -26
  52. package/lib/commonjs/ui/components/signIn/accountFlowParts.js.map +1 -1
  53. package/lib/commonjs/ui/components/signIn/signInFlowStore.js +50 -0
  54. package/lib/commonjs/ui/components/signIn/signInFlowStore.js.map +1 -0
  55. package/lib/commonjs/ui/components/signIn/signInMethods.js +11 -25
  56. package/lib/commonjs/ui/components/signIn/signInMethods.js.map +1 -1
  57. package/lib/commonjs/ui/context/OxyContext.js +125 -119
  58. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  59. package/lib/commonjs/ui/context/hooks/useAuthOperations.js +11 -10
  60. package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
  61. package/lib/commonjs/ui/context/useOxyAccountGraph.js +4 -4
  62. package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
  63. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +1 -1
  64. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +19 -9
  65. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  66. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +4 -4
  67. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
  68. package/lib/commonjs/ui/hooks/queries/queryKeys.js +23 -3
  69. package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
  70. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +8 -8
  71. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
  72. package/lib/commonjs/ui/hooks/queries/useAuthMethods.js +27 -15
  73. package/lib/commonjs/ui/hooks/queries/useAuthMethods.js.map +1 -1
  74. package/lib/commonjs/ui/hooks/queries/useFileQueries.js +5 -2
  75. package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
  76. package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +8 -8
  77. package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
  78. package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +4 -3
  79. package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
  80. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +6 -6
  81. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
  82. package/lib/commonjs/ui/hooks/useAssets.js +36 -20
  83. package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
  84. package/lib/commonjs/ui/hooks/useAvatarPicker.js +6 -4
  85. package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
  86. package/lib/commonjs/ui/hooks/useDeviceManagement.js +5 -5
  87. package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -1
  88. package/lib/commonjs/ui/hooks/useDeviceSwitcher.js +2 -2
  89. package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -1
  90. package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +1 -4
  91. package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -1
  92. package/lib/commonjs/ui/hooks/useFollow.js +2 -2
  93. package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
  94. package/lib/commonjs/ui/hooks/useFollowTarget.js +5 -5
  95. package/lib/commonjs/ui/hooks/useFollowTarget.js.map +1 -1
  96. package/lib/commonjs/ui/hooks/useI18n.js +4 -1
  97. package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
  98. package/lib/commonjs/ui/hooks/useResolvedFileUrls.js +2 -2
  99. package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -1
  100. package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
  101. package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
  102. package/lib/commonjs/ui/icons/subsetGlyphMaps.js +0 -16
  103. package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
  104. package/lib/commonjs/ui/navigation/routes.js +6 -4
  105. package/lib/commonjs/ui/navigation/routes.js.map +1 -1
  106. package/lib/commonjs/ui/navigation/surfaceRegistry.js +1 -1
  107. package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -1
  108. package/lib/commonjs/ui/oauth/browserBridge.js +247 -0
  109. package/lib/commonjs/ui/oauth/browserBridge.js.map +1 -0
  110. package/lib/commonjs/ui/oauth/completeOAuthCode.js +1 -1
  111. package/lib/commonjs/ui/oauth/completeOAuthCode.js.map +1 -1
  112. package/lib/commonjs/ui/oauth/explicitOAuthConsent.js +1 -1
  113. package/lib/commonjs/ui/oauth/explicitOAuthConsent.js.map +1 -1
  114. package/lib/commonjs/ui/runtime/createOxyRuntime.js +9 -8
  115. package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -1
  116. package/lib/commonjs/ui/runtime/runtimeContext.js.map +1 -1
  117. package/lib/commonjs/ui/screens/AccountMembersScreen.js +7 -7
  118. package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
  119. package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js +35 -0
  120. package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js.map +1 -0
  121. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +3 -3
  122. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  123. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +1 -1
  124. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  125. package/lib/commonjs/ui/screens/AppInfoScreen.js +5 -5
  126. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  127. package/lib/commonjs/ui/screens/AvatarCropScreen.js +3 -3
  128. package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
  129. package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +1 -1
  130. package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -1
  131. package/lib/commonjs/ui/screens/CreateAccountScreen.js +1 -1
  132. package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
  133. package/lib/commonjs/ui/screens/DeleteAccountScreen.js +19 -0
  134. package/lib/commonjs/ui/screens/DeleteAccountScreen.js.map +1 -0
  135. package/lib/commonjs/ui/screens/DomainsScreen.js +217 -0
  136. package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -0
  137. package/lib/commonjs/ui/screens/EditProfileScreen.js +1 -1
  138. package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
  139. package/lib/commonjs/ui/screens/FileManagementScreen.js +25 -11
  140. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  141. package/lib/commonjs/ui/screens/HelpSupportScreen.js +1 -17
  142. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
  143. package/lib/commonjs/ui/screens/LinkCommonsScreen.js +14 -0
  144. package/lib/commonjs/ui/screens/LinkCommonsScreen.js.map +1 -0
  145. package/lib/commonjs/ui/screens/ManageAccountScreen.js +57 -61
  146. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
  147. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +52 -62
  148. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  149. package/lib/commonjs/ui/screens/ProfileScreen.js +5 -13
  150. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  151. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +15 -24
  152. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  153. package/lib/commonjs/ui/screens/SignInAuthenticatorScreen.js +14 -0
  154. package/lib/commonjs/ui/screens/SignInAuthenticatorScreen.js.map +1 -0
  155. package/lib/commonjs/ui/screens/SignInPasswordScreen.js +20 -0
  156. package/lib/commonjs/ui/screens/SignInPasswordScreen.js.map +1 -0
  157. package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
  158. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  159. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +1 -1
  160. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  161. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +25 -17
  162. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  163. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
  164. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  165. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +8 -14
  166. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  167. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +11 -9
  168. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  169. package/lib/commonjs/ui/session/authStore.js +4 -4
  170. package/lib/commonjs/ui/session/authStore.js.map +1 -1
  171. package/lib/commonjs/ui/session/backgroundSession.js +5 -40
  172. package/lib/commonjs/ui/session/backgroundSession.js.map +1 -1
  173. package/lib/commonjs/ui/session/createSessionClient.js +3 -3
  174. package/lib/commonjs/ui/session/createSessionClient.js.map +1 -1
  175. package/lib/commonjs/ui/session/deviceCredentialTracker.js +42 -0
  176. package/lib/commonjs/ui/session/deviceCredentialTracker.js.map +1 -0
  177. package/lib/commonjs/ui/session/identityBinding.js +3 -3
  178. package/lib/commonjs/ui/session/identityBinding.js.map +1 -1
  179. package/lib/commonjs/ui/session/index.js +6 -6
  180. package/lib/commonjs/ui/session/index.js.map +1 -1
  181. package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js +2 -2
  182. package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js.map +1 -1
  183. package/lib/commonjs/ui/session/tokenTransport.js +3 -3
  184. package/lib/commonjs/ui/session/tokenTransport.js.map +1 -1
  185. package/lib/commonjs/ui/stores/assetStore.js +12 -0
  186. package/lib/commonjs/ui/stores/assetStore.js.map +1 -1
  187. package/lib/commonjs/ui/stores/followStore.js +6 -6
  188. package/lib/commonjs/ui/stores/followStore.js.map +1 -1
  189. package/lib/commonjs/ui/utils/accountDeletionHandoff.js +1 -4
  190. package/lib/commonjs/ui/utils/accountDeletionHandoff.js.map +1 -1
  191. package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
  192. package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
  193. package/lib/commonjs/ui/utils/deviceCredential.js +11 -4
  194. package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -1
  195. package/lib/commonjs/ui/utils/fileManagement.js +0 -10
  196. package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
  197. package/lib/commonjs/ui/utils/sessionHelpers.js +2 -2
  198. package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
  199. package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  200. package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  201. package/lib/module/assets/assets/fonts/icons/manifest.json +5 -21
  202. package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  203. package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  204. package/lib/module/assets/fonts/icons/manifest.json +5 -21
  205. package/lib/module/index.js +6 -6
  206. package/lib/module/index.js.map +1 -1
  207. package/lib/module/ui/boot/runProviderColdBoot.js +2 -1
  208. package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
  209. package/lib/module/ui/components/OxyAccountDialogScreen.js +2 -3
  210. package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -1
  211. package/lib/module/ui/components/OxyAuthChooser.js +15 -32
  212. package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
  213. package/lib/module/ui/components/OxySignInButton.js +1 -1
  214. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  215. package/lib/module/ui/components/OxySignInRequestSurface.js.map +1 -1
  216. package/lib/module/ui/components/ProfileButton.js +1 -1
  217. package/lib/module/ui/components/ProfileButton.js.map +1 -1
  218. package/lib/module/ui/components/authChooser/AccountsMenuView.js +1 -1
  219. package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
  220. package/lib/module/ui/components/authChooser/SignInRequestView.js +6 -17
  221. package/lib/module/ui/components/authChooser/SignInRequestView.js.map +1 -1
  222. package/lib/module/ui/components/authChooser/TroubleDisclosure.js +1 -1
  223. package/lib/module/ui/components/authChooser/primitives.js +2 -103
  224. package/lib/module/ui/components/authChooser/primitives.js.map +1 -1
  225. package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -1
  226. package/lib/module/ui/components/authChooser/signInProgress.js.map +1 -1
  227. package/lib/module/ui/components/authChooser/styles.js +0 -33
  228. package/lib/module/ui/components/authChooser/styles.js.map +1 -1
  229. package/lib/module/ui/components/authChooser/types.js +0 -8
  230. package/lib/module/ui/components/authChooser/types.js.map +1 -1
  231. package/lib/module/ui/components/signIn/InlineCommonsQr.js +1 -1
  232. package/lib/module/ui/components/signIn/OxyAccountPicker.js +155 -58
  233. package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
  234. package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js +321 -0
  235. package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -0
  236. package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js +54 -58
  237. package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
  238. package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +48 -38
  239. package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
  240. package/lib/module/ui/components/signIn/OxyPasswordPanel.js +136 -0
  241. package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -0
  242. package/lib/module/ui/components/signIn/OxySignInPanel.js +496 -201
  243. package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
  244. package/lib/module/ui/components/signIn/OxySignUpPanel.js +212 -43
  245. package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
  246. package/lib/module/ui/components/signIn/ReauthStep.js +181 -0
  247. package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -0
  248. package/lib/module/ui/components/signIn/accountFlowParts.js +97 -26
  249. package/lib/module/ui/components/signIn/accountFlowParts.js.map +1 -1
  250. package/lib/module/ui/components/signIn/signInFlowStore.js +44 -0
  251. package/lib/module/ui/components/signIn/signInFlowStore.js.map +1 -0
  252. package/lib/module/ui/components/signIn/signInMethods.js +11 -25
  253. package/lib/module/ui/components/signIn/signInMethods.js.map +1 -1
  254. package/lib/module/ui/context/OxyContext.js +121 -115
  255. package/lib/module/ui/context/OxyContext.js.map +1 -1
  256. package/lib/module/ui/context/hooks/useAuthOperations.js +7 -7
  257. package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
  258. package/lib/module/ui/context/useOxyAccountGraph.js +4 -4
  259. package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
  260. package/lib/module/ui/hooks/mutations/mutationFactory.js +1 -1
  261. package/lib/module/ui/hooks/mutations/useAccountMutations.js +19 -9
  262. package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  263. package/lib/module/ui/hooks/mutations/useServicesMutations.js +4 -4
  264. package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
  265. package/lib/module/ui/hooks/queries/queryKeys.js +23 -3
  266. package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
  267. package/lib/module/ui/hooks/queries/useAccountQueries.js +8 -8
  268. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
  269. package/lib/module/ui/hooks/queries/useAuthMethods.js +25 -14
  270. package/lib/module/ui/hooks/queries/useAuthMethods.js.map +1 -1
  271. package/lib/module/ui/hooks/queries/useFileQueries.js +5 -2
  272. package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
  273. package/lib/module/ui/hooks/queries/usePaymentQueries.js +8 -8
  274. package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
  275. package/lib/module/ui/hooks/queries/useSecurityQueries.js +4 -3
  276. package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
  277. package/lib/module/ui/hooks/queries/useServicesQueries.js +6 -6
  278. package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
  279. package/lib/module/ui/hooks/useAssets.js +36 -20
  280. package/lib/module/ui/hooks/useAssets.js.map +1 -1
  281. package/lib/module/ui/hooks/useAvatarPicker.js +6 -4
  282. package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
  283. package/lib/module/ui/hooks/useDeviceManagement.js +4 -4
  284. package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -1
  285. package/lib/module/ui/hooks/useDeviceSwitcher.js +2 -2
  286. package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -1
  287. package/lib/module/ui/hooks/useFileDownloadUrl.js +1 -4
  288. package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -1
  289. package/lib/module/ui/hooks/useFollow.js +2 -2
  290. package/lib/module/ui/hooks/useFollow.js.map +1 -1
  291. package/lib/module/ui/hooks/useFollowTarget.js +5 -5
  292. package/lib/module/ui/hooks/useFollowTarget.js.map +1 -1
  293. package/lib/module/ui/hooks/useI18n.js +6 -3
  294. package/lib/module/ui/hooks/useI18n.js.map +1 -1
  295. package/lib/module/ui/hooks/useResolvedFileUrls.js +2 -2
  296. package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -1
  297. package/lib/module/ui/hooks/useSessionManagement.js +3 -3
  298. package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
  299. package/lib/module/ui/icons/subsetGlyphMaps.js +0 -16
  300. package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
  301. package/lib/module/ui/navigation/routes.js +6 -4
  302. package/lib/module/ui/navigation/routes.js.map +1 -1
  303. package/lib/module/ui/navigation/surfaceRegistry.js +1 -1
  304. package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -1
  305. package/lib/module/ui/oauth/browserBridge.js +239 -0
  306. package/lib/module/ui/oauth/browserBridge.js.map +1 -0
  307. package/lib/module/ui/oauth/completeOAuthCode.js +1 -1
  308. package/lib/module/ui/oauth/completeOAuthCode.js.map +1 -1
  309. package/lib/module/ui/oauth/explicitOAuthConsent.js +1 -1
  310. package/lib/module/ui/oauth/explicitOAuthConsent.js.map +1 -1
  311. package/lib/module/ui/runtime/createOxyRuntime.js +4 -3
  312. package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -1
  313. package/lib/module/ui/runtime/runtimeContext.js.map +1 -1
  314. package/lib/module/ui/screens/AccountMembersScreen.js +7 -7
  315. package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
  316. package/lib/module/ui/screens/AccountSecurityPanelScreen.js +32 -0
  317. package/lib/module/ui/screens/AccountSecurityPanelScreen.js.map +1 -0
  318. package/lib/module/ui/screens/AccountSettingsScreen.js +3 -3
  319. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  320. package/lib/module/ui/screens/AccountVerificationScreen.js +1 -1
  321. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  322. package/lib/module/ui/screens/AppInfoScreen.js +5 -5
  323. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  324. package/lib/module/ui/screens/AvatarCropScreen.js +3 -3
  325. package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
  326. package/lib/module/ui/screens/ChangeAvatarScreen.js +1 -1
  327. package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -1
  328. package/lib/module/ui/screens/CreateAccountScreen.js +1 -1
  329. package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
  330. package/lib/module/ui/screens/DeleteAccountScreen.js +17 -0
  331. package/lib/module/ui/screens/DeleteAccountScreen.js.map +1 -0
  332. package/lib/module/ui/screens/DomainsScreen.js +212 -0
  333. package/lib/module/ui/screens/DomainsScreen.js.map +1 -0
  334. package/lib/module/ui/screens/EditProfileScreen.js +1 -1
  335. package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
  336. package/lib/module/ui/screens/FileManagementScreen.js +25 -11
  337. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  338. package/lib/module/ui/screens/HelpSupportScreen.js +1 -17
  339. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
  340. package/lib/module/ui/screens/LinkCommonsScreen.js +12 -0
  341. package/lib/module/ui/screens/LinkCommonsScreen.js.map +1 -0
  342. package/lib/module/ui/screens/ManageAccountScreen.js +58 -62
  343. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
  344. package/lib/module/ui/screens/PrivacySettingsScreen.js +53 -63
  345. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  346. package/lib/module/ui/screens/ProfileScreen.js +5 -13
  347. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  348. package/lib/module/ui/screens/SearchSettingsScreen.js +16 -25
  349. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  350. package/lib/module/ui/screens/SignInAuthenticatorScreen.js +12 -0
  351. package/lib/module/ui/screens/SignInAuthenticatorScreen.js.map +1 -0
  352. package/lib/module/ui/screens/SignInPasswordScreen.js +18 -0
  353. package/lib/module/ui/screens/SignInPasswordScreen.js.map +1 -0
  354. package/lib/module/ui/screens/UserListScreen.js +3 -3
  355. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  356. package/lib/module/ui/screens/WelcomeNewUserScreen.js +1 -1
  357. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  358. package/lib/module/ui/screens/trust/TrustCenterScreen.js +26 -18
  359. package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  360. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
  361. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  362. package/lib/module/ui/screens/trust/TrustRewardsScreen.js +9 -15
  363. package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  364. package/lib/module/ui/screens/trust/TrustRulesScreen.js +12 -10
  365. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  366. package/lib/module/ui/session/authStore.js +1 -1
  367. package/lib/module/ui/session/authStore.js.map +1 -1
  368. package/lib/module/ui/session/backgroundSession.js +5 -40
  369. package/lib/module/ui/session/backgroundSession.js.map +1 -1
  370. package/lib/module/ui/session/createSessionClient.js +1 -1
  371. package/lib/module/ui/session/createSessionClient.js.map +1 -1
  372. package/lib/module/ui/session/deviceCredentialTracker.js +38 -0
  373. package/lib/module/ui/session/deviceCredentialTracker.js.map +1 -0
  374. package/lib/module/ui/session/identityBinding.js +1 -1
  375. package/lib/module/ui/session/identityBinding.js.map +1 -1
  376. package/lib/module/ui/session/index.js +1 -1
  377. package/lib/module/ui/session/index.js.map +1 -1
  378. package/lib/module/ui/session/sharedDeviceCredentialStore.js +1 -1
  379. package/lib/module/ui/session/sharedDeviceCredentialStore.js.map +1 -1
  380. package/lib/module/ui/session/tokenTransport.js +3 -3
  381. package/lib/module/ui/session/tokenTransport.js.map +1 -1
  382. package/lib/module/ui/stores/assetStore.js +12 -0
  383. package/lib/module/ui/stores/assetStore.js.map +1 -1
  384. package/lib/module/ui/stores/followStore.js +6 -6
  385. package/lib/module/ui/stores/followStore.js.map +1 -1
  386. package/lib/module/ui/utils/accountDeletionHandoff.js +2 -5
  387. package/lib/module/ui/utils/accountDeletionHandoff.js.map +1 -1
  388. package/lib/module/ui/utils/avatarUtils.js +1 -1
  389. package/lib/module/ui/utils/avatarUtils.js.map +1 -1
  390. package/lib/module/ui/utils/deviceCredential.js +10 -3
  391. package/lib/module/ui/utils/deviceCredential.js.map +1 -1
  392. package/lib/module/ui/utils/fileManagement.js +0 -9
  393. package/lib/module/ui/utils/fileManagement.js.map +1 -1
  394. package/lib/module/ui/utils/sessionHelpers.js +2 -2
  395. package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
  396. package/lib/typescript/commonjs/index.d.ts +5 -5
  397. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +3 -2
  399. package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
  400. package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts +2 -3
  401. package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
  402. package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +7 -7
  403. package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
  404. package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts +2 -1
  405. package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
  406. package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts +1 -1
  407. package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
  408. package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts +3 -4
  409. package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
  410. package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts +1 -1
  411. package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +1 -34
  412. package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
  413. package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts +2 -1
  414. package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
  415. package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts +1 -1
  416. package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
  417. package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts +2 -1
  418. package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts.map +1 -1
  419. package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts +0 -33
  420. package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts.map +1 -1
  421. package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +1 -12
  422. package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
  423. package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts +1 -1
  424. package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
  425. package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts +10 -4
  426. package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
  427. package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts +19 -0
  428. package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -0
  429. package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts +10 -6
  430. package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
  431. package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts +6 -6
  432. package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
  433. package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts +15 -0
  434. package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -0
  435. package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts +21 -19
  436. package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
  437. package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts +16 -7
  438. package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
  439. package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts +34 -0
  440. package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -0
  441. package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts +38 -12
  442. package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
  443. package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts +20 -0
  444. package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts.map +1 -0
  445. package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts +8 -21
  446. package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts.map +1 -1
  447. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  448. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts +2 -1
  449. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  450. package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +4 -39
  451. package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
  452. package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +2 -1
  453. package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
  454. package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts +1 -1
  455. package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
  456. package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +1 -1
  457. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +4 -4
  458. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  459. package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts +5 -1
  460. package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
  461. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +19 -1
  462. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  463. package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts +13 -20
  464. package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
  465. package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +1 -1
  466. package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
  467. package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts +4 -4
  468. package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
  469. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +3 -5
  470. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  471. package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +5 -5
  472. package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
  473. package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +1 -1
  474. package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts +1 -1
  475. package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
  476. package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
  477. package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts +1 -1
  478. package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts.map +1 -1
  479. package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts +9 -7
  480. package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
  481. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
  482. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
  483. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  484. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  485. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +0 -16
  486. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  487. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +1 -1
  488. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
  489. package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
  490. package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
  491. package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +7 -5
  492. package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -1
  493. package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts +97 -0
  494. package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts.map +1 -0
  495. package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts +6 -2
  496. package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -1
  497. package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts +2 -1
  498. package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts.map +1 -1
  499. package/lib/typescript/commonjs/ui/runtime/types.d.ts +2 -1
  500. package/lib/typescript/commonjs/ui/runtime/types.d.ts.map +1 -1
  501. package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts +11 -0
  502. package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -0
  503. package/lib/typescript/commonjs/ui/screens/DeleteAccountScreen.d.ts +6 -0
  504. package/lib/typescript/commonjs/ui/screens/DeleteAccountScreen.d.ts.map +1 -0
  505. package/lib/typescript/commonjs/ui/screens/{SavesCollectionsScreen.d.ts → DomainsScreen.d.ts} +1 -1
  506. package/lib/typescript/commonjs/ui/screens/DomainsScreen.d.ts.map +1 -0
  507. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  508. package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  509. package/lib/typescript/commonjs/ui/screens/LinkCommonsScreen.d.ts +6 -0
  510. package/lib/typescript/commonjs/ui/screens/LinkCommonsScreen.d.ts.map +1 -0
  511. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  512. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  513. package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
  514. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  515. package/lib/typescript/commonjs/ui/screens/SignInAuthenticatorScreen.d.ts +6 -0
  516. package/lib/typescript/commonjs/ui/screens/SignInAuthenticatorScreen.d.ts.map +1 -0
  517. package/lib/typescript/commonjs/ui/screens/SignInPasswordScreen.d.ts +6 -0
  518. package/lib/typescript/commonjs/ui/screens/SignInPasswordScreen.d.ts.map +1 -0
  519. package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  520. package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  521. package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  522. package/lib/typescript/commonjs/ui/session/authStore.d.ts +1 -1
  523. package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -1
  524. package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts +3 -4
  525. package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts.map +1 -1
  526. package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +2 -1
  527. package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -1
  528. package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts +23 -0
  529. package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts.map +1 -0
  530. package/lib/typescript/commonjs/ui/session/identityBinding.d.ts +1 -1
  531. package/lib/typescript/commonjs/ui/session/identityBinding.d.ts.map +1 -1
  532. package/lib/typescript/commonjs/ui/session/index.d.ts +1 -1
  533. package/lib/typescript/commonjs/ui/session/index.d.ts.map +1 -1
  534. package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts +1 -1
  535. package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts.map +1 -1
  536. package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts +1 -1
  537. package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
  538. package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts +3 -2
  539. package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -1
  540. package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +7 -0
  541. package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -1
  542. package/lib/typescript/commonjs/ui/types/navigation.d.ts +1 -1
  543. package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
  544. package/lib/typescript/commonjs/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
  545. package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts +10 -3
  546. package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -1
  547. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +1 -5
  548. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
  549. package/lib/typescript/module/index.d.ts +5 -5
  550. package/lib/typescript/module/index.d.ts.map +1 -1
  551. package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +3 -2
  552. package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
  553. package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts +2 -3
  554. package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
  555. package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +7 -7
  556. package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
  557. package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts +2 -1
  558. package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
  559. package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts +1 -1
  560. package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
  561. package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts +3 -4
  562. package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
  563. package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts +1 -1
  564. package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +1 -34
  565. package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
  566. package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts +2 -1
  567. package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
  568. package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts +1 -1
  569. package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
  570. package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts +2 -1
  571. package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts.map +1 -1
  572. package/lib/typescript/module/ui/components/authChooser/styles.d.ts +0 -33
  573. package/lib/typescript/module/ui/components/authChooser/styles.d.ts.map +1 -1
  574. package/lib/typescript/module/ui/components/authChooser/types.d.ts +1 -12
  575. package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
  576. package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts +1 -1
  577. package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
  578. package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts +10 -4
  579. package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
  580. package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts +19 -0
  581. package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -0
  582. package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts +10 -6
  583. package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
  584. package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts +6 -6
  585. package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
  586. package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts +15 -0
  587. package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -0
  588. package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts +21 -19
  589. package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
  590. package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts +16 -7
  591. package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
  592. package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts +34 -0
  593. package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -0
  594. package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts +38 -12
  595. package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
  596. package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts +20 -0
  597. package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts.map +1 -0
  598. package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts +8 -21
  599. package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts.map +1 -1
  600. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  601. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts +2 -1
  602. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  603. package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +4 -39
  604. package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
  605. package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +2 -1
  606. package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
  607. package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts +1 -1
  608. package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
  609. package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +1 -1
  610. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +4 -4
  611. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  612. package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts +5 -1
  613. package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
  614. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +19 -1
  615. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  616. package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts +13 -20
  617. package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
  618. package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +1 -1
  619. package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
  620. package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts +4 -4
  621. package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
  622. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +3 -5
  623. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  624. package/lib/typescript/module/ui/hooks/useAssets.d.ts +5 -5
  625. package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
  626. package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +1 -1
  627. package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts +1 -1
  628. package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
  629. package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
  630. package/lib/typescript/module/ui/hooks/useFollow.d.ts +1 -1
  631. package/lib/typescript/module/ui/hooks/useI18n.d.ts.map +1 -1
  632. package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts +9 -7
  633. package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
  634. package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
  635. package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
  636. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  637. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  638. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +0 -16
  639. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  640. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +1 -1
  641. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
  642. package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
  643. package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
  644. package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +7 -5
  645. package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -1
  646. package/lib/typescript/module/ui/oauth/browserBridge.d.ts +97 -0
  647. package/lib/typescript/module/ui/oauth/browserBridge.d.ts.map +1 -0
  648. package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts +6 -2
  649. package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -1
  650. package/lib/typescript/module/ui/runtime/runtimeContext.d.ts +2 -1
  651. package/lib/typescript/module/ui/runtime/runtimeContext.d.ts.map +1 -1
  652. package/lib/typescript/module/ui/runtime/types.d.ts +2 -1
  653. package/lib/typescript/module/ui/runtime/types.d.ts.map +1 -1
  654. package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts +11 -0
  655. package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -0
  656. package/lib/typescript/module/ui/screens/DeleteAccountScreen.d.ts +6 -0
  657. package/lib/typescript/module/ui/screens/DeleteAccountScreen.d.ts.map +1 -0
  658. package/lib/typescript/module/ui/screens/{SavesCollectionsScreen.d.ts → DomainsScreen.d.ts} +1 -1
  659. package/lib/typescript/module/ui/screens/DomainsScreen.d.ts.map +1 -0
  660. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  661. package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  662. package/lib/typescript/module/ui/screens/LinkCommonsScreen.d.ts +6 -0
  663. package/lib/typescript/module/ui/screens/LinkCommonsScreen.d.ts.map +1 -0
  664. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  665. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  666. package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
  667. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  668. package/lib/typescript/module/ui/screens/SignInAuthenticatorScreen.d.ts +6 -0
  669. package/lib/typescript/module/ui/screens/SignInAuthenticatorScreen.d.ts.map +1 -0
  670. package/lib/typescript/module/ui/screens/SignInPasswordScreen.d.ts +6 -0
  671. package/lib/typescript/module/ui/screens/SignInPasswordScreen.d.ts.map +1 -0
  672. package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  673. package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  674. package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  675. package/lib/typescript/module/ui/session/authStore.d.ts +1 -1
  676. package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -1
  677. package/lib/typescript/module/ui/session/backgroundSession.d.ts +3 -4
  678. package/lib/typescript/module/ui/session/backgroundSession.d.ts.map +1 -1
  679. package/lib/typescript/module/ui/session/createSessionClient.d.ts +2 -1
  680. package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -1
  681. package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts +23 -0
  682. package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts.map +1 -0
  683. package/lib/typescript/module/ui/session/identityBinding.d.ts +1 -1
  684. package/lib/typescript/module/ui/session/identityBinding.d.ts.map +1 -1
  685. package/lib/typescript/module/ui/session/index.d.ts +1 -1
  686. package/lib/typescript/module/ui/session/index.d.ts.map +1 -1
  687. package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts +1 -1
  688. package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts.map +1 -1
  689. package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts +1 -1
  690. package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
  691. package/lib/typescript/module/ui/session/tokenTransport.d.ts +3 -2
  692. package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -1
  693. package/lib/typescript/module/ui/stores/assetStore.d.ts +7 -0
  694. package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -1
  695. package/lib/typescript/module/ui/types/navigation.d.ts +1 -1
  696. package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
  697. package/lib/typescript/module/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
  698. package/lib/typescript/module/ui/utils/deviceCredential.d.ts +10 -3
  699. package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -1
  700. package/lib/typescript/module/ui/utils/fileManagement.d.ts +1 -5
  701. package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
  702. package/package.json +4 -5
  703. package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  704. package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  705. package/src/assets/fonts/icons/manifest.json +5 -21
  706. package/src/index.ts +8 -8
  707. package/src/ui/boot/__tests__/coldBootNoIdpRedirect.test.ts +4 -4
  708. package/src/ui/boot/runProviderColdBoot.ts +3 -9
  709. package/src/ui/components/OxyAccountDialogScreen.tsx +2 -3
  710. package/src/ui/components/OxyAuthChooser.tsx +13 -36
  711. package/src/ui/components/OxySignInButton.tsx +1 -1
  712. package/src/ui/components/OxySignInRequestSurface.tsx +2 -1
  713. package/src/ui/components/ProfileButton.tsx +1 -1
  714. package/src/ui/components/authChooser/AccountsMenuView.tsx +1 -6
  715. package/src/ui/components/authChooser/SignInRequestView.tsx +5 -23
  716. package/src/ui/components/authChooser/TroubleDisclosure.tsx +1 -1
  717. package/src/ui/components/authChooser/primitives.tsx +2 -96
  718. package/src/ui/components/authChooser/requestSurfaces.tsx +2 -1
  719. package/src/ui/components/authChooser/signInFailureMessage.ts +1 -1
  720. package/src/ui/components/authChooser/signInProgress.ts +2 -1
  721. package/src/ui/components/authChooser/styles.ts +0 -33
  722. package/src/ui/components/authChooser/types.ts +1 -13
  723. package/src/ui/components/signIn/InlineCommonsQr.tsx +2 -2
  724. package/src/ui/components/signIn/OxyAccountPicker.tsx +131 -66
  725. package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +294 -0
  726. package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +48 -61
  727. package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +43 -35
  728. package/src/ui/components/signIn/OxyPasswordPanel.tsx +117 -0
  729. package/src/ui/components/signIn/OxySignInPanel.tsx +534 -214
  730. package/src/ui/components/signIn/OxySignUpPanel.tsx +186 -56
  731. package/src/ui/components/signIn/ReauthStep.tsx +201 -0
  732. package/src/ui/components/signIn/accountFlowParts.tsx +139 -33
  733. package/src/ui/components/signIn/signInFlowStore.ts +41 -0
  734. package/src/ui/components/signIn/signInMethods.ts +10 -29
  735. package/src/ui/context/OxyContext.tsx +124 -145
  736. package/src/ui/context/hooks/useAuthOperations.ts +9 -8
  737. package/src/ui/context/oxyContextTypes.ts +4 -41
  738. package/src/ui/context/useOxyAccountGraph.ts +6 -5
  739. package/src/ui/hooks/accountDialogSnapshot.ts +1 -1
  740. package/src/ui/hooks/mutations/mutationFactory.ts +1 -1
  741. package/src/ui/hooks/mutations/useAccountMutations.ts +11 -10
  742. package/src/ui/hooks/mutations/useServicesMutations.ts +4 -4
  743. package/src/ui/hooks/queries/queryKeys.ts +26 -2
  744. package/src/ui/hooks/queries/useAccountQueries.ts +8 -8
  745. package/src/ui/hooks/queries/useAuthMethods.ts +22 -19
  746. package/src/ui/hooks/queries/useFileQueries.ts +2 -2
  747. package/src/ui/hooks/queries/usePaymentQueries.ts +8 -8
  748. package/src/ui/hooks/queries/useSecurityQueries.ts +4 -3
  749. package/src/ui/hooks/queries/useServicesQueries.ts +6 -6
  750. package/src/ui/hooks/useAssets.ts +26 -31
  751. package/src/ui/hooks/useAvatarPicker.ts +4 -4
  752. package/src/ui/hooks/useDeviceManagement.ts +4 -4
  753. package/src/ui/hooks/useDeviceSwitcher.ts +2 -7
  754. package/src/ui/hooks/useFileDownloadUrl.ts +1 -5
  755. package/src/ui/hooks/useFollow.ts +2 -2
  756. package/src/ui/hooks/useFollowTarget.ts +5 -5
  757. package/src/ui/hooks/useI18n.ts +6 -3
  758. package/src/ui/hooks/useResolvedFileUrls.ts +8 -6
  759. package/src/ui/hooks/useSessionManagement.ts +3 -3
  760. package/src/ui/icons/subsetGlyphMaps.ts +0 -16
  761. package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +1 -1
  762. package/src/ui/navigation/accountDialogManager.ts +1 -1
  763. package/src/ui/navigation/routes.ts +11 -8
  764. package/src/ui/navigation/surfaceRegistry.ts +8 -6
  765. package/src/ui/oauth/__tests__/browserAuthTransport.test.ts +8 -8
  766. package/src/ui/oauth/__tests__/browserBridge.test.ts +198 -0
  767. package/src/ui/oauth/__tests__/completeOAuthCode.test.ts +1 -1
  768. package/src/ui/oauth/__tests__/explicitOAuthConsent.test.ts +11 -11
  769. package/src/ui/oauth/__tests__/sharedCompletionPath.test.ts +7 -7
  770. package/src/ui/oauth/browserBridge.ts +234 -0
  771. package/src/ui/oauth/completeOAuthCode.ts +1 -1
  772. package/src/ui/oauth/explicitOAuthConsent.ts +1 -1
  773. package/src/ui/runtime/createOxyRuntime.ts +8 -16
  774. package/src/ui/runtime/runtimeContext.tsx +2 -1
  775. package/src/ui/runtime/types.ts +2 -1
  776. package/src/ui/screens/AccountMembersScreen.tsx +7 -7
  777. package/src/ui/screens/AccountSecurityPanelScreen.tsx +26 -0
  778. package/src/ui/screens/AccountSettingsScreen.tsx +3 -3
  779. package/src/ui/screens/AccountVerificationScreen.tsx +1 -1
  780. package/src/ui/screens/AppInfoScreen.tsx +5 -5
  781. package/src/ui/screens/AvatarCropScreen.tsx +3 -3
  782. package/src/ui/screens/ChangeAvatarScreen.tsx +1 -1
  783. package/src/ui/screens/CreateAccountScreen.tsx +1 -1
  784. package/src/ui/screens/DeleteAccountScreen.tsx +13 -0
  785. package/src/ui/screens/DomainsScreen.tsx +187 -0
  786. package/src/ui/screens/EditProfileScreen.tsx +1 -1
  787. package/src/ui/screens/FileManagementScreen.tsx +15 -21
  788. package/src/ui/screens/HelpSupportScreen.tsx +0 -15
  789. package/src/ui/screens/LinkCommonsScreen.tsx +13 -0
  790. package/src/ui/screens/ManageAccountScreen.tsx +47 -82
  791. package/src/ui/screens/PrivacySettingsScreen.tsx +48 -67
  792. package/src/ui/screens/ProfileScreen.tsx +5 -10
  793. package/src/ui/screens/SearchSettingsScreen.tsx +15 -27
  794. package/src/ui/screens/SignInAuthenticatorScreen.tsx +13 -0
  795. package/src/ui/screens/SignInPasswordScreen.tsx +13 -0
  796. package/src/ui/screens/UserListScreen.tsx +3 -3
  797. package/src/ui/screens/WelcomeNewUserScreen.tsx +1 -1
  798. package/src/ui/screens/trust/TrustCenterScreen.tsx +25 -29
  799. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +2 -2
  800. package/src/ui/screens/trust/TrustRewardsScreen.tsx +9 -19
  801. package/src/ui/screens/trust/TrustRulesScreen.tsx +14 -14
  802. package/src/ui/session/__tests__/authStore.test.ts +1 -1
  803. package/src/ui/session/__tests__/backgroundSession.test.ts +2 -61
  804. package/src/ui/session/__tests__/createSessionClient.test.ts +7 -9
  805. package/src/ui/session/__tests__/sharedDeviceCredentialStore.test.ts +1 -1
  806. package/src/ui/session/__tests__/tokenTransport.test.ts +9 -7
  807. package/src/ui/session/authStore.ts +1 -7
  808. package/src/ui/session/backgroundSession.ts +5 -41
  809. package/src/ui/session/createSessionClient.ts +2 -6
  810. package/src/ui/session/deviceCredentialTracker.ts +49 -0
  811. package/src/ui/session/identityBinding.ts +1 -6
  812. package/src/ui/session/index.ts +1 -1
  813. package/src/ui/session/nativeSecureStorage.ts +1 -1
  814. package/src/ui/session/sharedDeviceCredentialStore.ts +1 -6
  815. package/src/ui/session/tokenTransport.ts +5 -4
  816. package/src/ui/stores/__tests__/followStore.test.ts +13 -15
  817. package/src/ui/stores/assetStore.ts +15 -0
  818. package/src/ui/stores/followStore.ts +7 -7
  819. package/src/ui/types/navigation.ts +2 -1
  820. package/src/ui/utils/accountDeletionHandoff.ts +2 -4
  821. package/src/ui/utils/avatarUtils.ts +1 -1
  822. package/src/ui/utils/deviceCredential.ts +11 -4
  823. package/src/ui/utils/fileManagement.ts +0 -12
  824. package/src/ui/utils/sessionHelpers.ts +2 -2
  825. package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js +0 -236
  826. package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js.map +0 -1
  827. package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js +0 -170
  828. package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js.map +0 -1
  829. package/lib/commonjs/ui/components/signIn/passkeyError.js +0 -46
  830. package/lib/commonjs/ui/components/signIn/passkeyError.js.map +0 -1
  831. package/lib/commonjs/ui/context/passkeyFlow.js +0 -114
  832. package/lib/commonjs/ui/context/passkeyFlow.js.map +0 -1
  833. package/lib/commonjs/ui/screens/FAQScreen.js +0 -162
  834. package/lib/commonjs/ui/screens/FAQScreen.js.map +0 -1
  835. package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -601
  836. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +0 -1
  837. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -968
  838. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
  839. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +0 -132
  840. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +0 -1
  841. package/lib/commonjs/webauthn/passkeyClient.js +0 -39
  842. package/lib/commonjs/webauthn/passkeyClient.js.map +0 -1
  843. package/lib/commonjs/webauthn/passkeyClient.native.js +0 -34
  844. package/lib/commonjs/webauthn/passkeyClient.native.js.map +0 -1
  845. package/lib/commonjs/webauthn/passkeyClient.web.js +0 -57
  846. package/lib/commonjs/webauthn/passkeyClient.web.js.map +0 -1
  847. package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js +0 -231
  848. package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js.map +0 -1
  849. package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js +0 -165
  850. package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js.map +0 -1
  851. package/lib/module/ui/components/signIn/passkeyError.js +0 -40
  852. package/lib/module/ui/components/signIn/passkeyError.js.map +0 -1
  853. package/lib/module/ui/context/passkeyFlow.js +0 -107
  854. package/lib/module/ui/context/passkeyFlow.js.map +0 -1
  855. package/lib/module/ui/screens/FAQScreen.js +0 -157
  856. package/lib/module/ui/screens/FAQScreen.js.map +0 -1
  857. package/lib/module/ui/screens/FeedbackScreen.js +0 -599
  858. package/lib/module/ui/screens/FeedbackScreen.js.map +0 -1
  859. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -963
  860. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
  861. package/lib/module/ui/screens/SavesCollectionsScreen.js +0 -127
  862. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +0 -1
  863. package/lib/module/webauthn/passkeyClient.js +0 -33
  864. package/lib/module/webauthn/passkeyClient.js.map +0 -1
  865. package/lib/module/webauthn/passkeyClient.native.js +0 -28
  866. package/lib/module/webauthn/passkeyClient.native.js.map +0 -1
  867. package/lib/module/webauthn/passkeyClient.web.js +0 -52
  868. package/lib/module/webauthn/passkeyClient.web.js.map +0 -1
  869. package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts +0 -24
  870. package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +0 -1
  871. package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts +0 -20
  872. package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +0 -1
  873. package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts +0 -16
  874. package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts.map +0 -1
  875. package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts +0 -92
  876. package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts.map +0 -1
  877. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts +0 -5
  878. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +0 -1
  879. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts +0 -5
  880. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +0 -1
  881. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
  882. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
  883. package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
  884. package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts +0 -20
  885. package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts.map +0 -1
  886. package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts +0 -15
  887. package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts.map +0 -1
  888. package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts +0 -36
  889. package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts.map +0 -1
  890. package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts +0 -24
  891. package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +0 -1
  892. package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts +0 -20
  893. package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +0 -1
  894. package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts +0 -16
  895. package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts.map +0 -1
  896. package/lib/typescript/module/ui/context/passkeyFlow.d.ts +0 -92
  897. package/lib/typescript/module/ui/context/passkeyFlow.d.ts.map +0 -1
  898. package/lib/typescript/module/ui/screens/FAQScreen.d.ts +0 -5
  899. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +0 -1
  900. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts +0 -5
  901. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +0 -1
  902. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
  903. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
  904. package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
  905. package/lib/typescript/module/webauthn/passkeyClient.d.ts +0 -20
  906. package/lib/typescript/module/webauthn/passkeyClient.d.ts.map +0 -1
  907. package/lib/typescript/module/webauthn/passkeyClient.native.d.ts +0 -15
  908. package/lib/typescript/module/webauthn/passkeyClient.native.d.ts.map +0 -1
  909. package/lib/typescript/module/webauthn/passkeyClient.web.d.ts +0 -36
  910. package/lib/typescript/module/webauthn/passkeyClient.web.d.ts.map +0 -1
  911. package/src/ui/components/signIn/OxyCreateAccountPanel.tsx +0 -207
  912. package/src/ui/components/signIn/OxyRecoverAccountPanel.tsx +0 -154
  913. package/src/ui/components/signIn/passkeyError.ts +0 -44
  914. package/src/ui/context/__tests__/passkeyFlow.test.ts +0 -239
  915. package/src/ui/context/passkeyFlow.ts +0 -145
  916. package/src/ui/screens/FAQScreen.tsx +0 -200
  917. package/src/ui/screens/FeedbackScreen.tsx +0 -766
  918. package/src/ui/screens/PremiumSubscriptionScreen.tsx +0 -1103
  919. package/src/ui/screens/SavesCollectionsScreen.tsx +0 -167
  920. package/src/webauthn/passkeyClient.native.ts +0 -26
  921. package/src/webauthn/passkeyClient.ts +0 -31
  922. package/src/webauthn/passkeyClient.web.ts +0 -56
@@ -3,19 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.OxySignInPanel = void 0;
6
+ exports.OxySignInPanel = exports.EMAIL_SIGNIN_POLL_MS = exports.EMAIL_RESEND_COOLDOWN_SECONDS = void 0;
7
7
  var _react = require("react");
8
8
  var _reactNative = require("react-native");
9
9
  var _components = require("react-native-css/components");
10
10
  var _authCard = require("@oxy.so/bloom/auth-card");
11
11
  var _button = require("@oxy.so/bloom/button");
12
12
  var _divider = require("@oxy.so/bloom/divider");
13
- var _RiKey2Line = require("@oxy.so/bloom/icons/RiKey2Line");
14
- var _RiQrCodeLine = require("@oxy.so/bloom/icons/RiQrCodeLine");
15
13
  var _theme = require("@oxy.so/bloom/theme");
16
- var _textField = require("@oxy.so/bloom/text-field");
17
14
  var _toast = require("@oxy.so/bloom/toast");
18
15
  var _typography = require("@oxy.so/bloom/typography");
16
+ var _contracts = require("@oxy.so/contracts");
19
17
  var _reactQuery = require("@tanstack/react-query");
20
18
  var _OxyContext = require("../../context/OxyContext.js");
21
19
  var _accountDialogSnapshot = require("../../hooks/accountDialogSnapshot.js");
@@ -29,36 +27,44 @@ var _artwork = require("./artwork.js");
29
27
  var _InlineCommonsQr = require("./InlineCommonsQr.js");
30
28
  var _OxyAccountPicker = require("./OxyAccountPicker.js");
31
29
  var _OxyAuthScreen = require("./OxyAuthScreen.js");
32
- var _passkeyError = require("./passkeyError.js");
30
+ var _accountFlowParts = require("./accountFlowParts.js");
31
+ var _signInFlowStore = require("./signInFlowStore.js");
33
32
  var _signInMethods = require("./signInMethods.js");
34
33
  var _jsxRuntime = require("react/jsx-runtime");
35
34
  /**
36
35
  * THE Oxy sign-in screen. The account dialog every Oxy app opens and the
37
36
  * auth.oxy.so page render this one component; only where it is mounted
38
- * differs (`host`).
37
+ * differs (`host`). Sign-in happens IN it, on every origin: no window opens.
39
38
  *
40
- * picker a returning device: "Choose an account", then "Use another account"
41
- * entry the header, the Commons way in, the passkey, and the way in for
42
- * someone with no account. On the web, from `md`, the screen is
43
- * Bloom `AuthCard`'s split card and the Commons way in is the
44
- * embedded QR over its photo carousel, in the right column (the
45
- * account dialog grows to that card); below `md` it is "Continue
46
- * with Oxy" at the top. The passkey belongs to `oxy.so`: on
47
- * auth.oxy.so (`page`) it runs here — the username with its Continue,
48
- * a username-first ceremony that takes a hardware security key with
49
- * no resident credential too, and the discoverable passkey — and in
50
- * an app's dialog it opens auth.oxy.so's window for that one step, as
51
- * does "Create account". On native it is "Continue with Oxy" ("Get
52
- * Commons" without Commons).
39
+ * picker a returning device: "Choose an account", then "Use another account"
40
+ * identifier the header, the Commons way in, and "Email or username" with its
41
+ * Continue. On the web, from `md`, the screen is Bloom `AuthCard`'s
42
+ * split card and the Commons way in is the embedded QR over its
43
+ * photo carousel, in the right column (the account dialog grows to
44
+ * that card); below `md` it is "Continue with Oxy" at the top. On
45
+ * native it is "Continue with Oxy" ("Get Commons" without Commons).
46
+ * check-email one email carries a code and a link. The code is typed here (6
47
+ * digits, or the 10-character long code); meanwhile the screen asks
48
+ * whether the link was opened in this browser, and signs in when it was.
49
+ * password the alternative for an account that has one.
50
+ * second-factor the authenticator's code, or a backup code, when the account has one.
53
51
  *
54
- * `signInMethods.ts` owns which blocks a platform gets.
52
+ * Every answer is the same whether or not the account exists: the email step
53
+ * says "if an account matches".
55
54
  */
56
55
 
57
56
  /** Bloom `AuthCard`'s split card width, which the account dialog grows to for it. */const SPLIT_WIDTH = 880;
57
+ /** How often the check-email step asks whether the link was opened in this browser. */
58
+ const EMAIL_SIGNIN_POLL_MS = exports.EMAIL_SIGNIN_POLL_MS = 2000;
59
+ /** How long after an email "Send a new email" waits. */
60
+ const EMAIL_RESEND_COOLDOWN_SECONDS = exports.EMAIL_RESEND_COOLDOWN_SECONDS = 30;
61
+
62
+ /** What the dialog keeps of this screen across a remount (`signInFlowStore`). */
63
+
64
+ const SIGN_IN_FLOW_KEY = 'signin';
58
65
  const OxySignInPanel = ({
59
66
  onSignedIn,
60
67
  onCreateAccount,
61
- onRecover,
62
68
  loginHint,
63
69
  appName = null,
64
70
  host = 'page'
@@ -71,8 +77,8 @@ const OxySignInPanel = ({
71
77
  const {
72
78
  accountDialogController: controller,
73
79
  openAccountDialog,
74
- signInWithPasskey,
75
- continueOnAuth
80
+ oxyServices,
81
+ handleWebSession
76
82
  } = (0, _OxyContext.useOxy)();
77
83
  const snapshot = (0, _accountDialogSnapshot.useAccountDialogSnapshot)(controller);
78
84
  const {
@@ -81,14 +87,37 @@ const OxySignInPanel = ({
81
87
  } = (0, _useDeviceSwitcher.useDeviceSwitcher)();
82
88
  const methods = (0, _signInMethods.resolveSignInMethods)({
83
89
  web: (0, _isWebBrowser.isWebBrowser)(),
84
- host,
85
90
  commonsAvailability: snapshot.commonsAvailability
86
91
  });
87
- const [showForm, setShowForm] = (0, _react.useState)(Boolean(loginHint));
88
- const [identifier, setIdentifier] = (0, _react.useState)(loginHint ?? '');
92
+
93
+ // In the dialog the step outlives a remount of this screen (the responsive
94
+ // surface swaps its tree at `md`): it is restored from, and saved to, the
95
+ // flow store the dialog's controller owns.
96
+ const flowOwner = host === 'dialog' ? controller : null;
97
+ const [saved] = (0, _react.useState)(() => (0, _signInFlowStore.readSignInFlow)(flowOwner, SIGN_IN_FLOW_KEY));
98
+ const [showForm, setShowForm] = (0, _react.useState)(saved?.showForm ?? Boolean(loginHint));
99
+ const [step, setStep] = (0, _react.useState)(saved?.step ?? {
100
+ name: 'start'
101
+ });
102
+ const [identifier, setIdentifier] = (0, _react.useState)(saved?.identifier ?? loginHint ?? '');
103
+ const [code, setCode] = (0, _react.useState)('');
104
+ const [password, setPassword] = (0, _react.useState)('');
105
+ const [secondFactorCode, setSecondFactorCode] = (0, _react.useState)('');
106
+ const [useBackupCode, setUseBackupCode] = (0, _react.useState)(saved?.useBackupCode ?? false);
89
107
  const [pending, setPending] = (0, _react.useState)(false);
90
108
  const [error, setError] = (0, _react.useState)(null);
109
+ const [notice, setNotice] = (0, _react.useState)(null);
91
110
  const [rateLimitSeconds, setRateLimitSeconds] = (0, _react.useState)(0);
111
+ const [resendSeconds, setResendSeconds] = (0, _react.useState)(() => saved ? Math.max(0, Math.ceil((saved.resendUntil - Date.now()) / 1000)) : 0);
112
+ (0, _react.useEffect)(() => {
113
+ (0, _signInFlowStore.writeSignInFlow)(flowOwner, SIGN_IN_FLOW_KEY, {
114
+ step,
115
+ identifier,
116
+ showForm,
117
+ useBackupCode,
118
+ resendUntil: Date.now() + resendSeconds * 1000
119
+ });
120
+ }, [flowOwner, step, identifier, showForm, useBackupCode, resendSeconds]);
92
121
  const blocked = pending || rateLimitSeconds > 0;
93
122
 
94
123
  // The countdown after a 429: one tick a second until the person may retry.
@@ -98,6 +127,13 @@ const OxySignInPanel = ({
98
127
  return () => clearTimeout(timer);
99
128
  }, [rateLimitSeconds]);
100
129
 
130
+ // The wait before another email may be asked for.
131
+ (0, _react.useEffect)(() => {
132
+ if (resendSeconds <= 0) return;
133
+ const timer = setTimeout(() => setResendSeconds(seconds => Math.max(0, seconds - 1)), 1000);
134
+ return () => clearTimeout(timer);
135
+ }, [resendSeconds]);
136
+
101
137
  // On a page, a request the controller runs (the embedded QR, or one shown in
102
138
  // the dialog opened over it) finishes the page's sign-in too. Only one that
103
139
  // STARTED here: a completion already on the controller is somebody else's.
@@ -111,61 +147,191 @@ const OxySignInPanel = ({
111
147
  const showRequest = (0, _react.useCallback)(() => {
112
148
  if (host === 'page') openAccountDialog('qr');
113
149
  }, [host, openAccountDialog]);
114
-
115
- // These open a window or leave the page, so they run straight from the
116
- // press, before any await.
117
150
  const continueWithOxy = () => {
118
151
  void controller?.signInWithOxy();
119
152
  showRequest();
120
153
  };
121
- // The passkey is `oxy.so`'s: in an app it runs in auth.oxy.so's window.
122
- const passkeyOnOxy = () => {
123
- void continueOnAuth('signin').then(result => {
124
- if (result.status === 'signed-in') onSignedIn();else if (result.status === 'failed') _toast.toast.error(t('signin.errors.failed'));
125
- });
126
- };
127
- const useAnotherDevice = () => {
128
- void controller?.showQr();
129
- showRequest();
130
- };
131
154
  const getCommons = () => {
132
155
  Promise.resolve().then(() => _reactNative.Linking.openURL((0, _commonsStoreLinks.getCommonsAcquisitionUrl)(_reactNative.Platform.OS))).catch(() => _toast.toast.error(t('accountSwitcher.linkOpenFailed')));
133
156
  };
134
- const runPasskey = async (username, failToast) => {
157
+ const fail = (0, _react.useCallback)(reason => {
158
+ if ((0, _accountFlowParts.isRateLimited)(reason)) setRateLimitSeconds((0, _accountFlowParts.retryAfterSeconds)(reason));else setError((0, _accountFlowParts.describeSignInError)(reason, t));
159
+ }, [t]);
160
+
161
+ // One sign-in ends once: the typed code and the opened link can race.
162
+ const finishingRef = (0, _react.useRef)(false);
163
+ const finish = (0, _react.useCallback)(async (result, from) => {
164
+ if (finishingRef.current) return;
165
+ if ((0, _contracts.isSecondFactorRequired)(result)) {
166
+ setError(null);
167
+ setSecondFactorCode('');
168
+ setUseBackupCode(false);
169
+ setStep({
170
+ name: 'second-factor',
171
+ challengeId: result.challengeId,
172
+ identifier: from
173
+ });
174
+ return;
175
+ }
176
+ finishingRef.current = true;
177
+ (0, _signInFlowStore.writeSignInFlow)(flowOwner, SIGN_IN_FLOW_KEY, undefined);
178
+ try {
179
+ await handleWebSession(result);
180
+ } catch (reason) {
181
+ finishingRef.current = false;
182
+ throw reason;
183
+ }
184
+ onSignedIn();
185
+ }, [handleWebSession, onSignedIn, flowOwner]);
186
+
187
+ /** Send the sign-in email and show "Check your email". */
188
+ const startEmail = name => {
135
189
  if (blocked) return;
136
190
  setError(null);
191
+ setNotice(null);
137
192
  setPending(true);
138
- try {
139
- await signInWithPasskey({
140
- username
193
+ oxyServices.auth.email.start(name).then(started => {
194
+ if (started.retryLater) {
195
+ setError(t('signin.checkEmail.retryLater'));
196
+ return;
197
+ }
198
+ setCode('');
199
+ setResendSeconds(EMAIL_RESEND_COOLDOWN_SECONDS);
200
+ if (step.name === 'check-email') setNotice(t('signin.checkEmail.resent'));
201
+ setStep({
202
+ name: 'check-email',
203
+ identifier: name,
204
+ requestId: started.requestId,
205
+ requestSecret: started.requestSecret
141
206
  });
142
- onSignedIn();
143
- } catch (err) {
144
- if ((0, _passkeyError.isRateLimited)(err)) {
145
- setRateLimitSeconds(_passkeyError.RATE_LIMIT_SECONDS);
146
- } else {
147
- const message = (0, _passkeyError.describePasskeyError)(err, t);
148
- setError(message);
149
- _toast.toast.error(failToast, {
150
- description: message
207
+ }).catch(fail).finally(() => setPending(false));
208
+ };
209
+ const submitIdentifier = () => {
210
+ const name = identifier.trim();
211
+ if (!name) {
212
+ setError(t('signin.identifier.required'));
213
+ return;
214
+ }
215
+ startEmail(name);
216
+ };
217
+ const submitCode = typed => {
218
+ if (step.name !== 'check-email' || blocked) return;
219
+ if (!(0, _accountFlowParts.isCompleteSignInCode)(typed)) {
220
+ setError(t('signin.errors.codeInvalid'));
221
+ return;
222
+ }
223
+ const request = step;
224
+ setError(null);
225
+ setNotice(null);
226
+ setPending(true);
227
+ oxyServices.auth.email.confirm({
228
+ requestId: request.requestId,
229
+ requestSecret: request.requestSecret,
230
+ code: typed.trim()
231
+ }).then(result => finish(result, request.identifier)).catch(reason => {
232
+ setCode('');
233
+ fail(reason);
234
+ }).finally(() => setPending(false));
235
+ };
236
+ const submitPassword = () => {
237
+ if (step.name !== 'password' || blocked) return;
238
+ if (!password) {
239
+ setError(t('signin.password.required'));
240
+ return;
241
+ }
242
+ const name = step.identifier;
243
+ setError(null);
244
+ setPending(true);
245
+ oxyServices.auth.password.signIn({
246
+ identifier: name,
247
+ password
248
+ }).then(result => finish(result, name)).catch(fail).finally(() => setPending(false));
249
+ };
250
+ const submitSecondFactor = typed => {
251
+ if (step.name !== 'second-factor' || blocked) return;
252
+ const value = typed.trim();
253
+ if (!value) {
254
+ setError(t('signin.errors.secondFactorInvalid'));
255
+ return;
256
+ }
257
+ const challenge = step;
258
+ setError(null);
259
+ setPending(true);
260
+ oxyServices.auth.completeSecondFactor({
261
+ challengeId: challenge.challengeId,
262
+ code: value
263
+ }).then(session => finish(session, challenge.identifier)).catch(reason => {
264
+ setSecondFactorCode('');
265
+ fail(reason);
266
+ }).finally(() => setPending(false));
267
+ };
268
+
269
+ // The poll below finishes through the latest `finish` without restarting
270
+ // when a parent re-renders with a new `onSignedIn`.
271
+ const finishRef = (0, _react.useRef)(finish);
272
+ (0, _react.useEffect)(() => {
273
+ finishRef.current = finish;
274
+ }, [finish]);
275
+
276
+ // While "Check your email" shows, ask whether the link was opened in this
277
+ // browser; stop when the step goes, and on a request that is gone. A session
278
+ // the server handed over is always committed, even if the step went away
279
+ // meanwhile: the request is spent, so it would otherwise be lost.
280
+ const emailRequest = step.name === 'check-email' ? step : null;
281
+ const requestId = emailRequest?.requestId ?? null;
282
+ const requestSecret = emailRequest?.requestSecret ?? null;
283
+ const requestIdentifier = emailRequest?.identifier ?? '';
284
+ (0, _react.useEffect)(() => {
285
+ if (!requestId || !requestSecret) return;
286
+ let stopped = false;
287
+ let timer;
288
+ const poll = async () => {
289
+ if (stopped) return;
290
+ try {
291
+ const result = await oxyServices.auth.email.collect({
292
+ requestId,
293
+ requestSecret
151
294
  });
295
+ if (!('status' in result)) {
296
+ await finishRef.current(result, requestIdentifier);
297
+ return;
298
+ }
299
+ if (stopped) return;
300
+ } catch (reason) {
301
+ if (stopped) return;
302
+ // A spent, expired or unknown request never approves: stop asking.
303
+ if ((0, _accountFlowParts.errorCode)(reason) === _contracts.SIGN_IN_ERROR_CODES.requestInvalid) return;
152
304
  }
153
- } finally {
154
- setPending(false);
155
- }
305
+ if (!stopped) timer = setTimeout(() => void poll(), EMAIL_SIGNIN_POLL_MS);
306
+ };
307
+ timer = setTimeout(() => void poll(), EMAIL_SIGNIN_POLL_MS);
308
+ return () => {
309
+ stopped = true;
310
+ if (timer) clearTimeout(timer);
311
+ };
312
+ }, [requestId, requestSecret, requestIdentifier, oxyServices]);
313
+ const backToIdentifier = () => {
314
+ setError(null);
315
+ setNotice(null);
316
+ setCode('');
317
+ setPassword('');
318
+ setStep({
319
+ name: 'start'
320
+ });
156
321
  };
157
- const submitUsername = () => {
158
- const username = identifier.trim();
159
- if (username) void runPasskey(username, t('signin.errors.failed'));else setError(t('signin.username.required'));
322
+ const toPassword = name => {
323
+ setError(null);
324
+ setNotice(null);
325
+ setPassword('');
326
+ setStep({
327
+ name: 'password',
328
+ identifier: name
329
+ });
160
330
  };
161
331
 
162
332
  // A returning device starts at WHO. Not while adding an account from inside
163
333
  // a signed-in app: the rows are the accounts it would add.
164
334
  const pickerAllowed = host === 'dialog' ? !snapshot.hasSession : activeContext !== null;
165
- const reauthenticate = context => {
166
- setIdentifier(context.handle ?? '');
167
- setShowForm(true);
168
- };
169
335
  const selectContext = async context => {
170
336
  const outcome = await controller?.chooseContext(context.contextId).catch(() => 'failed');
171
337
  switch (outcome) {
@@ -183,14 +349,19 @@ const OxySignInPanel = ({
183
349
  return;
184
350
  case 'failed':
185
351
  // The pair could not be activated as it stands: sign in as it explicitly.
186
- if (methods.passkey === 'here' && context.handle) reauthenticate(context);else _toast.toast.error(t('accountSwitcher.toasts.activateFailed'));
352
+ if (context.handle) {
353
+ setIdentifier(context.handle);
354
+ setShowForm(true);
355
+ } else {
356
+ _toast.toast.error(t('accountSwitcher.toasts.activateFailed'));
357
+ }
187
358
  return;
188
359
  default:
189
360
  return;
190
361
  }
191
362
  };
192
363
  const showsPicker = pickerAllowed && !showForm && principals.length > 0;
193
- // The web entry is the split card from `md`. In the account dialog it grows
364
+ // The web screen is the split card from `md`. In the account dialog it grows
194
365
  // the dialog to that card; below `md` the dialog is a bottom sheet, which a
195
366
  // width does not touch.
196
367
  const splits = methods.commons === 'qr';
@@ -212,148 +383,275 @@ const OxySignInPanel = ({
212
383
  const shownError = rateLimitSeconds > 0 ? t('signin.errors.rateLimited', {
213
384
  seconds: rateLimitSeconds
214
385
  }) : error;
215
- const adding = host === 'dialog' && snapshot.hasSession;
216
- const title = adding ? t('signin.addAccountTitle') : t('signin.title');
217
- const description = adding ? t('signin.addAccountSubtitle') : appName ? t('signin.subtitleToApp', {
218
- app: appName
219
- }) : t('signin.subtitle');
220
- const noAccount = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_typography.Text, {
221
- style: [styles.note, styles.noAccount, {
222
- color: theme.colors.textSecondary
223
- }],
224
- children: [t('signin.noAccount'), ' ', /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
225
- accessibilityRole: "link",
226
- onPress: onCreateAccount,
227
- style: [styles.noAccountLink, {
228
- color: theme.colors.text
229
- }],
230
- testID: "create-account-link",
231
- children: t('signin.createAccount')
232
- })]
233
- });
234
- // One solid action per screen: the username's Continue when there is one.
235
- const commonsAppearance = methods.passkey === 'here' ? 'outline' : 'solid';
236
- const continueWithOxyButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
237
- appearance: commonsAppearance,
238
- tone: commonsAppearance === 'solid' ? 'action' : 'neutral',
239
- size: "lg",
240
- fullWidth: true,
241
- onPress: continueWithOxy,
242
- testID: "continue-with-oxy",
243
- children: t('accountSwitcher.continueWithOxy')
244
- });
245
- const passkeyButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
246
- appearance: "outline",
247
- tone: "neutral",
248
- size: "lg",
249
- fullWidth: true,
250
- leadingIcon: _RiKey2Line.RiKey2Line,
251
- disabled: methods.passkey === 'here' && blocked,
252
- onPress: methods.passkey === 'here' ? () => void runPasskey(undefined, t('signin.errors.failed')) : passkeyOnOxy,
253
- testID: "passkey-sign-in",
254
- children: t('signin.methods.passkey')
255
- });
256
- const form = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OxyAuthScreen.OxyAuthScreen, {
257
- className: splits ? 'md:max-w-none' : undefined,
258
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
259
- title: title,
260
- description: description
261
- }), splits ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.View, {
262
- className: "md:hidden",
263
- children: continueWithOxyButton
264
- }) : null, methods.commons === 'continue' ? continueWithOxyButton : null, methods.commons === 'get-commons' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
265
- style: styles.stack,
266
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
267
- style: [styles.note, {
268
- color: theme.colors.textSecondary
269
- }],
270
- children: t('accountSwitcher.commonsNotInstalled')
271
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
272
- appearance: "solid",
273
- tone: "action",
274
- size: "lg",
275
- fullWidth: true,
276
- onPress: getCommons,
277
- testID: "get-commons-button",
278
- children: t('accountSwitcher.getCommons')
279
- })]
280
- }) : null, methods.passkey === 'here' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
281
- style: styles.stack,
282
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
283
- style: styles.field,
284
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldLabel, {
285
- nativeID: "username-label",
286
- children: t('signin.username.label')
287
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextField, {
288
- invalid: shownError !== null,
386
+ const clearError = () => {
387
+ if (error) setError(null);
388
+ };
389
+ let form;
390
+ switch (step.name) {
391
+ case 'check-email':
392
+ {
393
+ const request = step;
394
+ form = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OxyAuthScreen.OxyAuthScreen, {
395
+ className: splits ? 'md:max-w-none' : undefined,
396
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
397
+ title: t('signin.checkEmail.title'),
398
+ description: t('signin.checkEmail.description', {
399
+ identifier: request.identifier
400
+ })
401
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowField, {
402
+ label: t('signin.checkEmail.codeLabel'),
403
+ value: code,
404
+ onChange: value => {
405
+ const typed = (0, _accountFlowParts.formatSignInCodeInput)(value);
406
+ setCode(typed);
407
+ clearError();
408
+ if ((0, _accountFlowParts.isCompleteSignInCode)(typed)) submitCode(typed);
409
+ },
410
+ onSubmit: () => submitCode(code),
411
+ error: shownError,
412
+ disabled: blocked,
413
+ placeholder: "000000",
414
+ autoComplete: "one-time-code",
415
+ maxLength: _contracts.EMAIL_SIGNIN_LONG_CODE_LENGTH + 1,
416
+ hint: t('signin.checkEmail.codeHint'),
417
+ testID: "signin-code"
418
+ }), notice ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowNote, {
419
+ testID: "signin-notice",
420
+ children: notice
421
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowAction, {
422
+ label: t('signin.actions.continue'),
423
+ onPress: () => submitCode(code),
424
+ pending: pending,
425
+ disabled: rateLimitSeconds > 0,
426
+ testID: "signin-code-continue"
427
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
428
+ style: styles.links,
429
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
430
+ label: resendSeconds > 0 ? t('signin.checkEmail.resendIn', {
431
+ seconds: resendSeconds
432
+ }) : t('signin.checkEmail.resend'),
433
+ theme: theme,
434
+ onPress: () => startEmail(request.identifier),
435
+ disabled: blocked || resendSeconds > 0,
436
+ testID: "signin-resend"
437
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
438
+ label: t('signin.checkEmail.usePassword'),
439
+ theme: theme,
440
+ onPress: () => toPassword(request.identifier),
441
+ disabled: pending,
442
+ testID: "signin-use-password"
443
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
444
+ label: t('signin.checkEmail.differentAccount'),
445
+ theme: theme,
446
+ onPress: backToIdentifier,
447
+ disabled: pending,
448
+ testID: "signin-different-account"
449
+ })]
450
+ })]
451
+ });
452
+ break;
453
+ }
454
+ case 'password':
455
+ {
456
+ const request = step;
457
+ form = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OxyAuthScreen.OxyAuthScreen, {
458
+ className: splits ? 'md:max-w-none' : undefined,
459
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
460
+ title: t('signin.password.title'),
461
+ description: request.identifier
462
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowField, {
463
+ label: t('signin.password.label'),
464
+ value: password,
465
+ onChange: value => {
466
+ setPassword(value);
467
+ clearError();
468
+ },
469
+ onSubmit: submitPassword,
470
+ error: shownError,
471
+ disabled: blocked,
472
+ autoComplete: "current-password",
473
+ secureTextEntry: true,
474
+ testID: "signin-password"
475
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowAction, {
476
+ label: t('signin.actions.continue'),
477
+ onPress: submitPassword,
478
+ pending: pending,
479
+ disabled: rateLimitSeconds > 0,
480
+ testID: "signin-password-continue"
481
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
482
+ style: styles.links,
483
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
484
+ label: t('signin.password.forgot'),
485
+ theme: theme,
486
+ onPress: () => startEmail(request.identifier),
487
+ disabled: blocked,
488
+ testID: "signin-password-forgot"
489
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
490
+ label: t('signin.checkEmail.differentAccount'),
491
+ theme: theme,
492
+ onPress: backToIdentifier,
493
+ disabled: pending,
494
+ testID: "signin-different-account"
495
+ })]
496
+ })]
497
+ });
498
+ break;
499
+ }
500
+ case 'second-factor':
501
+ form = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OxyAuthScreen.OxyAuthScreen, {
502
+ className: splits ? 'md:max-w-none' : undefined,
503
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
504
+ title: t('signin.secondFactor.title'),
505
+ description: useBackupCode ? t('signin.secondFactor.backupDescription') : t('signin.secondFactor.description')
506
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowField, {
507
+ label: useBackupCode ? t('signin.secondFactor.backupLabel') : t('signin.secondFactor.label'),
508
+ value: secondFactorCode,
509
+ onChange: value => {
510
+ if (useBackupCode) {
511
+ setSecondFactorCode(value);
512
+ clearError();
513
+ return;
514
+ }
515
+ const digits = value.replace(/\D/g, '').slice(0, _contracts.TOTP_DIGITS);
516
+ setSecondFactorCode(digits);
517
+ clearError();
518
+ if (digits.length === _contracts.TOTP_DIGITS) submitSecondFactor(digits);
519
+ },
520
+ onSubmit: () => submitSecondFactor(secondFactorCode),
521
+ error: shownError,
289
522
  disabled: blocked,
290
- radius: 999,
291
- style: styles.input,
292
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldInput, {
293
- testID: "username",
294
- label: t('signin.username.label'),
295
- value: identifier,
296
- onValueChange: value => {
297
- setIdentifier(value);
298
- if (error) setError(null);
523
+ placeholder: useBackupCode ? 'xxxxx-xxxxx' : '000000',
524
+ autoComplete: "one-time-code",
525
+ keyboardType: useBackupCode ? 'default' : 'number-pad',
526
+ maxLength: useBackupCode ? 11 : _contracts.TOTP_DIGITS,
527
+ testID: "signin-second-factor"
528
+ }, useBackupCode ? 'backup' : 'totp'), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowAction, {
529
+ label: t('signin.actions.continue'),
530
+ onPress: () => submitSecondFactor(secondFactorCode),
531
+ pending: pending,
532
+ disabled: rateLimitSeconds > 0,
533
+ testID: "signin-second-factor-continue"
534
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
535
+ style: styles.links,
536
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
537
+ label: useBackupCode ? t('signin.secondFactor.useAuthenticator') : t('signin.secondFactor.useBackup'),
538
+ theme: theme,
539
+ onPress: () => {
540
+ setUseBackupCode(!useBackupCode);
541
+ setSecondFactorCode('');
542
+ setError(null);
299
543
  },
300
- placeholder: t('signin.username.placeholder'),
301
- autoComplete: "username",
302
- autoCapitalize: "none",
303
- autoCorrect: false,
304
- autoFocus: _reactNative.Platform.OS === 'web',
305
- returnKeyType: "go",
306
- onSubmitEditing: submitUsername,
307
- "aria-required": true
308
- })
309
- }), shownError ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldHint, {
310
- invalid: true,
311
- children: shownError
312
- }) : null]
313
- }), noAccount, /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
314
- appearance: "solid",
315
- tone: "action",
316
- size: "lg",
317
- fullWidth: true,
318
- loading: pending,
319
- disabled: blocked,
320
- onPress: submitUsername,
321
- testID: "username-continue",
322
- children: t('signin.actions.continue')
323
- })]
324
- }) : null, methods.passkey === 'window' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.View, {
325
- className: "md:hidden",
326
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider.Divider, {
327
- children: t('signin.orContinueWith')
328
- })
329
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider.Divider, {
330
- children: t('signin.orContinueWith')
331
- }), methods.passkey === 'none' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
332
- appearance: "outline",
333
- tone: "neutral",
334
- size: "lg",
335
- fullWidth: true,
336
- leadingIcon: _RiQrCodeLine.RiQrCodeLine,
337
- onPress: useAnotherDevice,
338
- testID: "scan-qr",
339
- children: t('accountSwitcher.scanQr')
340
- }) : passkeyButton, methods.passkey === 'here' ? null : noAccount, onRecover ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
341
- label: t('signin.recoverLink'),
342
- theme: theme,
343
- onPress: onRecover,
344
- testID: "recover-link"
345
- }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthTerms, {})]
544
+ disabled: pending,
545
+ testID: "signin-toggle-backup"
546
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
547
+ label: t('signin.checkEmail.differentAccount'),
548
+ theme: theme,
549
+ onPress: backToIdentifier,
550
+ disabled: pending,
551
+ testID: "signin-different-account"
552
+ })]
553
+ })]
554
+ });
555
+ break;
556
+ default:
557
+ {
558
+ const adding = host === 'dialog' && snapshot.hasSession;
559
+ const title = adding ? t('signin.addAccountTitle') : t('signin.title');
560
+ const description = adding ? t('signin.addAccountSubtitle') : appName ? t('signin.subtitleToApp', {
561
+ app: appName
562
+ }) : t('signin.subtitle');
563
+ const continueWithOxyButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
564
+ appearance: "outline",
565
+ tone: "neutral",
566
+ size: "lg",
567
+ fullWidth: true,
568
+ onPress: continueWithOxy,
569
+ testID: "continue-with-oxy",
570
+ children: t('accountSwitcher.continueWithOxy')
571
+ });
572
+ const divider = /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider.Divider, {
573
+ children: t('signin.orContinueWith')
574
+ });
575
+ form = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OxyAuthScreen.OxyAuthScreen, {
576
+ className: splits ? 'md:max-w-none' : undefined,
577
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
578
+ title: title,
579
+ description: description
580
+ }), splits ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.View, {
581
+ className: "gap-6 md:hidden",
582
+ children: [continueWithOxyButton, divider]
583
+ }) : null, methods.commons === 'continue' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
584
+ style: styles.stack,
585
+ children: [continueWithOxyButton, divider]
586
+ }) : null, methods.commons === 'get-commons' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
587
+ style: styles.stack,
588
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
589
+ style: [styles.note, {
590
+ color: theme.colors.textSecondary
591
+ }],
592
+ children: t('accountSwitcher.commonsNotInstalled')
593
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
594
+ appearance: "outline",
595
+ tone: "neutral",
596
+ size: "lg",
597
+ fullWidth: true,
598
+ onPress: getCommons,
599
+ testID: "get-commons-button",
600
+ children: t('accountSwitcher.getCommons')
601
+ }), divider]
602
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
603
+ style: styles.stack,
604
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowField, {
605
+ label: t('signin.identifier.label'),
606
+ value: identifier,
607
+ onChange: value => {
608
+ setIdentifier(value);
609
+ clearError();
610
+ },
611
+ onSubmit: submitIdentifier,
612
+ error: shownError,
613
+ disabled: blocked,
614
+ placeholder: t('signin.identifier.placeholder'),
615
+ autoComplete: "username",
616
+ keyboardType: "email-address",
617
+ autoFocus: _reactNative.Platform.OS === 'web',
618
+ testID: "signin-identifier"
619
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_typography.Text, {
620
+ style: [styles.note, styles.noAccount, {
621
+ color: theme.colors.textSecondary
622
+ }],
623
+ children: [t('signin.noAccount'), ' ', /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
624
+ accessibilityRole: "link",
625
+ onPress: onCreateAccount,
626
+ style: [styles.noAccountLink, {
627
+ color: theme.colors.text
628
+ }],
629
+ testID: "create-account-link",
630
+ children: t('signin.createAccount')
631
+ })]
632
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowAction, {
633
+ label: t('signin.actions.continue'),
634
+ onPress: submitIdentifier,
635
+ pending: pending,
636
+ disabled: rateLimitSeconds > 0,
637
+ testID: "signin-identifier-continue"
638
+ })]
639
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthTerms, {})]
640
+ });
641
+ }
642
+ }
643
+ if (!splits) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
644
+ children: form
346
645
  });
347
- if (!splits) return form;
348
646
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthSplit, {
349
647
  bare: host === 'dialog',
350
648
  aside: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
351
649
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_authCard.AuthMediaCarousel, {
352
650
  slides: _artwork.SIGN_IN_SLIDES,
353
651
  style: _reactNative.StyleSheet.absoluteFill
354
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_InlineCommonsQr.InlineCommonsQr, {
652
+ }), step.name === 'start' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_InlineCommonsQr.InlineCommonsQr, {
355
653
  controller: controller
356
- })]
654
+ }) : null]
357
655
  }),
358
656
  children: form
359
657
  });
@@ -363,8 +661,8 @@ const styles = _reactNative.StyleSheet.create({
363
661
  stack: {
364
662
  gap: 12
365
663
  },
366
- field: {
367
- gap: 6
664
+ links: {
665
+ gap: 4
368
666
  },
369
667
  note: {
370
668
  fontSize: 14,
@@ -376,9 +674,6 @@ const styles = _reactNative.StyleSheet.create({
376
674
  },
377
675
  noAccountLink: {
378
676
  textDecorationLine: 'underline'
379
- },
380
- input: {
381
- height: 40
382
677
  }
383
678
  });
384
679
  //# sourceMappingURL=OxySignInPanel.js.map