@oxy.so/services 6.2.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (909) hide show
  1. package/README.md +80 -136
  2. package/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  3. package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  4. package/lib/commonjs/assets/assets/fonts/icons/manifest.json +5 -20
  5. package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  6. package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  7. package/lib/commonjs/assets/fonts/icons/manifest.json +5 -20
  8. package/lib/commonjs/index.js +21 -15
  9. package/lib/commonjs/index.js.map +1 -1
  10. package/lib/commonjs/ui/boot/runProviderColdBoot.js +2 -1
  11. package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
  12. package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +2 -3
  13. package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -1
  14. package/lib/commonjs/ui/components/OxyAuthChooser.js +15 -32
  15. package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
  16. package/lib/commonjs/ui/components/OxySignInButton.js +1 -1
  17. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  18. package/lib/commonjs/ui/components/OxySignInRequestSurface.js.map +1 -1
  19. package/lib/commonjs/ui/components/ProfileButton.js +1 -1
  20. package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
  21. package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +2 -2
  22. package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
  23. package/lib/commonjs/ui/components/authChooser/SignInRequestView.js +6 -17
  24. package/lib/commonjs/ui/components/authChooser/SignInRequestView.js.map +1 -1
  25. package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js +1 -1
  26. package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -1
  27. package/lib/commonjs/ui/components/authChooser/signInProgress.js.map +1 -1
  28. package/lib/commonjs/ui/components/authChooser/types.js +0 -8
  29. package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
  30. package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js +1 -1
  31. package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js +2 -2
  32. package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
  33. package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js +325 -0
  34. package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -0
  35. package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js +52 -56
  36. package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
  37. package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +48 -38
  38. package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
  39. package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js +141 -0
  40. package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -0
  41. package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +496 -201
  42. package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
  43. package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js +211 -42
  44. package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
  45. package/lib/commonjs/ui/components/signIn/ReauthStep.js +186 -0
  46. package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -0
  47. package/lib/commonjs/ui/components/signIn/accountFlowParts.js +103 -26
  48. package/lib/commonjs/ui/components/signIn/accountFlowParts.js.map +1 -1
  49. package/lib/commonjs/ui/components/signIn/signInFlowStore.js +50 -0
  50. package/lib/commonjs/ui/components/signIn/signInFlowStore.js.map +1 -0
  51. package/lib/commonjs/ui/components/signIn/signInMethods.js +11 -25
  52. package/lib/commonjs/ui/components/signIn/signInMethods.js.map +1 -1
  53. package/lib/commonjs/ui/context/OxyContext.js +125 -119
  54. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  55. package/lib/commonjs/ui/context/hooks/useAuthOperations.js +11 -10
  56. package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
  57. package/lib/commonjs/ui/context/useOxyAccountGraph.js +4 -4
  58. package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
  59. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +1 -1
  60. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +19 -9
  61. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  62. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +4 -4
  63. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
  64. package/lib/commonjs/ui/hooks/queries/queryKeys.js +23 -3
  65. package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
  66. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +8 -8
  67. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
  68. package/lib/commonjs/ui/hooks/queries/useAuthMethods.js +27 -15
  69. package/lib/commonjs/ui/hooks/queries/useAuthMethods.js.map +1 -1
  70. package/lib/commonjs/ui/hooks/queries/useFileQueries.js +5 -2
  71. package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
  72. package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +8 -8
  73. package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
  74. package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +4 -3
  75. package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
  76. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +6 -6
  77. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
  78. package/lib/commonjs/ui/hooks/useAssets.js +36 -20
  79. package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
  80. package/lib/commonjs/ui/hooks/useAvatarPicker.js +6 -4
  81. package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
  82. package/lib/commonjs/ui/hooks/useDeviceManagement.js +5 -5
  83. package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -1
  84. package/lib/commonjs/ui/hooks/useDeviceSwitcher.js +2 -2
  85. package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -1
  86. package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +1 -4
  87. package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -1
  88. package/lib/commonjs/ui/hooks/useFollow.js +2 -2
  89. package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
  90. package/lib/commonjs/ui/hooks/useFollowTarget.js +5 -5
  91. package/lib/commonjs/ui/hooks/useFollowTarget.js.map +1 -1
  92. package/lib/commonjs/ui/hooks/useI18n.js +4 -1
  93. package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
  94. package/lib/commonjs/ui/hooks/useResolvedFileUrls.js +2 -2
  95. package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -1
  96. package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
  97. package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
  98. package/lib/commonjs/ui/icons/subsetGlyphMaps.js +0 -15
  99. package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
  100. package/lib/commonjs/ui/navigation/routes.js +6 -4
  101. package/lib/commonjs/ui/navigation/routes.js.map +1 -1
  102. package/lib/commonjs/ui/navigation/surfaceRegistry.js +1 -1
  103. package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -1
  104. package/lib/commonjs/ui/oauth/browserBridge.js +247 -0
  105. package/lib/commonjs/ui/oauth/browserBridge.js.map +1 -0
  106. package/lib/commonjs/ui/oauth/completeOAuthCode.js +1 -1
  107. package/lib/commonjs/ui/oauth/completeOAuthCode.js.map +1 -1
  108. package/lib/commonjs/ui/oauth/explicitOAuthConsent.js +1 -1
  109. package/lib/commonjs/ui/oauth/explicitOAuthConsent.js.map +1 -1
  110. package/lib/commonjs/ui/runtime/createOxyRuntime.js +9 -8
  111. package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -1
  112. package/lib/commonjs/ui/runtime/runtimeContext.js.map +1 -1
  113. package/lib/commonjs/ui/screens/AccountMembersScreen.js +7 -7
  114. package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
  115. package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js +35 -0
  116. package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js.map +1 -0
  117. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +3 -3
  118. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  119. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +1 -1
  120. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  121. package/lib/commonjs/ui/screens/AppInfoScreen.js +5 -5
  122. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  123. package/lib/commonjs/ui/screens/AvatarCropScreen.js +3 -3
  124. package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
  125. package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +1 -1
  126. package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -1
  127. package/lib/commonjs/ui/screens/CreateAccountScreen.js +1 -1
  128. package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
  129. package/lib/commonjs/ui/screens/DeleteAccountScreen.js +19 -0
  130. package/lib/commonjs/ui/screens/DeleteAccountScreen.js.map +1 -0
  131. package/lib/commonjs/ui/screens/DomainsScreen.js +217 -0
  132. package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -0
  133. package/lib/commonjs/ui/screens/EditProfileScreen.js +1 -1
  134. package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
  135. package/lib/commonjs/ui/screens/FileManagementScreen.js +25 -11
  136. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  137. package/lib/commonjs/ui/screens/HelpSupportScreen.js +1 -17
  138. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
  139. package/lib/commonjs/ui/screens/LinkCommonsScreen.js +14 -0
  140. package/lib/commonjs/ui/screens/LinkCommonsScreen.js.map +1 -0
  141. package/lib/commonjs/ui/screens/ManageAccountScreen.js +57 -61
  142. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
  143. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +52 -62
  144. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  145. package/lib/commonjs/ui/screens/ProfileScreen.js +5 -13
  146. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  147. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +15 -24
  148. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  149. package/lib/commonjs/ui/screens/SignInAuthenticatorScreen.js +14 -0
  150. package/lib/commonjs/ui/screens/SignInAuthenticatorScreen.js.map +1 -0
  151. package/lib/commonjs/ui/screens/SignInPasswordScreen.js +20 -0
  152. package/lib/commonjs/ui/screens/SignInPasswordScreen.js.map +1 -0
  153. package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
  154. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  155. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +1 -1
  156. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  157. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +25 -17
  158. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  159. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
  160. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  161. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +8 -14
  162. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  163. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +11 -9
  164. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  165. package/lib/commonjs/ui/session/authStore.js +4 -4
  166. package/lib/commonjs/ui/session/authStore.js.map +1 -1
  167. package/lib/commonjs/ui/session/backgroundSession.js +5 -40
  168. package/lib/commonjs/ui/session/backgroundSession.js.map +1 -1
  169. package/lib/commonjs/ui/session/createSessionClient.js +3 -3
  170. package/lib/commonjs/ui/session/createSessionClient.js.map +1 -1
  171. package/lib/commonjs/ui/session/deviceCredentialTracker.js +42 -0
  172. package/lib/commonjs/ui/session/deviceCredentialTracker.js.map +1 -0
  173. package/lib/commonjs/ui/session/identityBinding.js +3 -3
  174. package/lib/commonjs/ui/session/identityBinding.js.map +1 -1
  175. package/lib/commonjs/ui/session/index.js +6 -6
  176. package/lib/commonjs/ui/session/index.js.map +1 -1
  177. package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js +2 -2
  178. package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js.map +1 -1
  179. package/lib/commonjs/ui/session/tokenTransport.js +3 -3
  180. package/lib/commonjs/ui/session/tokenTransport.js.map +1 -1
  181. package/lib/commonjs/ui/stores/assetStore.js +12 -0
  182. package/lib/commonjs/ui/stores/assetStore.js.map +1 -1
  183. package/lib/commonjs/ui/stores/followStore.js +6 -6
  184. package/lib/commonjs/ui/stores/followStore.js.map +1 -1
  185. package/lib/commonjs/ui/utils/accountDeletionHandoff.js +1 -4
  186. package/lib/commonjs/ui/utils/accountDeletionHandoff.js.map +1 -1
  187. package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
  188. package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
  189. package/lib/commonjs/ui/utils/deviceCredential.js +11 -4
  190. package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -1
  191. package/lib/commonjs/ui/utils/fileManagement.js +0 -10
  192. package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
  193. package/lib/commonjs/ui/utils/sessionHelpers.js +2 -2
  194. package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
  195. package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  196. package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  197. package/lib/module/assets/assets/fonts/icons/manifest.json +5 -20
  198. package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  199. package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  200. package/lib/module/assets/fonts/icons/manifest.json +5 -20
  201. package/lib/module/index.js +6 -6
  202. package/lib/module/index.js.map +1 -1
  203. package/lib/module/ui/boot/runProviderColdBoot.js +2 -1
  204. package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
  205. package/lib/module/ui/components/OxyAccountDialogScreen.js +2 -3
  206. package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -1
  207. package/lib/module/ui/components/OxyAuthChooser.js +15 -32
  208. package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
  209. package/lib/module/ui/components/OxySignInButton.js +1 -1
  210. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  211. package/lib/module/ui/components/OxySignInRequestSurface.js.map +1 -1
  212. package/lib/module/ui/components/ProfileButton.js +1 -1
  213. package/lib/module/ui/components/ProfileButton.js.map +1 -1
  214. package/lib/module/ui/components/authChooser/AccountsMenuView.js +1 -1
  215. package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
  216. package/lib/module/ui/components/authChooser/SignInRequestView.js +6 -17
  217. package/lib/module/ui/components/authChooser/SignInRequestView.js.map +1 -1
  218. package/lib/module/ui/components/authChooser/TroubleDisclosure.js +1 -1
  219. package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -1
  220. package/lib/module/ui/components/authChooser/signInProgress.js.map +1 -1
  221. package/lib/module/ui/components/authChooser/types.js +0 -8
  222. package/lib/module/ui/components/authChooser/types.js.map +1 -1
  223. package/lib/module/ui/components/signIn/InlineCommonsQr.js +1 -1
  224. package/lib/module/ui/components/signIn/OxyAccountPicker.js +1 -1
  225. package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
  226. package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js +321 -0
  227. package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -0
  228. package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js +54 -58
  229. package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
  230. package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +48 -38
  231. package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
  232. package/lib/module/ui/components/signIn/OxyPasswordPanel.js +136 -0
  233. package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -0
  234. package/lib/module/ui/components/signIn/OxySignInPanel.js +496 -201
  235. package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
  236. package/lib/module/ui/components/signIn/OxySignUpPanel.js +212 -43
  237. package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
  238. package/lib/module/ui/components/signIn/ReauthStep.js +181 -0
  239. package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -0
  240. package/lib/module/ui/components/signIn/accountFlowParts.js +97 -26
  241. package/lib/module/ui/components/signIn/accountFlowParts.js.map +1 -1
  242. package/lib/module/ui/components/signIn/signInFlowStore.js +44 -0
  243. package/lib/module/ui/components/signIn/signInFlowStore.js.map +1 -0
  244. package/lib/module/ui/components/signIn/signInMethods.js +11 -25
  245. package/lib/module/ui/components/signIn/signInMethods.js.map +1 -1
  246. package/lib/module/ui/context/OxyContext.js +121 -115
  247. package/lib/module/ui/context/OxyContext.js.map +1 -1
  248. package/lib/module/ui/context/hooks/useAuthOperations.js +7 -7
  249. package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
  250. package/lib/module/ui/context/useOxyAccountGraph.js +4 -4
  251. package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
  252. package/lib/module/ui/hooks/mutations/mutationFactory.js +1 -1
  253. package/lib/module/ui/hooks/mutations/useAccountMutations.js +19 -9
  254. package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  255. package/lib/module/ui/hooks/mutations/useServicesMutations.js +4 -4
  256. package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
  257. package/lib/module/ui/hooks/queries/queryKeys.js +23 -3
  258. package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
  259. package/lib/module/ui/hooks/queries/useAccountQueries.js +8 -8
  260. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
  261. package/lib/module/ui/hooks/queries/useAuthMethods.js +25 -14
  262. package/lib/module/ui/hooks/queries/useAuthMethods.js.map +1 -1
  263. package/lib/module/ui/hooks/queries/useFileQueries.js +5 -2
  264. package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
  265. package/lib/module/ui/hooks/queries/usePaymentQueries.js +8 -8
  266. package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
  267. package/lib/module/ui/hooks/queries/useSecurityQueries.js +4 -3
  268. package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
  269. package/lib/module/ui/hooks/queries/useServicesQueries.js +6 -6
  270. package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
  271. package/lib/module/ui/hooks/useAssets.js +36 -20
  272. package/lib/module/ui/hooks/useAssets.js.map +1 -1
  273. package/lib/module/ui/hooks/useAvatarPicker.js +6 -4
  274. package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
  275. package/lib/module/ui/hooks/useDeviceManagement.js +4 -4
  276. package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -1
  277. package/lib/module/ui/hooks/useDeviceSwitcher.js +2 -2
  278. package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -1
  279. package/lib/module/ui/hooks/useFileDownloadUrl.js +1 -4
  280. package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -1
  281. package/lib/module/ui/hooks/useFollow.js +2 -2
  282. package/lib/module/ui/hooks/useFollow.js.map +1 -1
  283. package/lib/module/ui/hooks/useFollowTarget.js +5 -5
  284. package/lib/module/ui/hooks/useFollowTarget.js.map +1 -1
  285. package/lib/module/ui/hooks/useI18n.js +6 -3
  286. package/lib/module/ui/hooks/useI18n.js.map +1 -1
  287. package/lib/module/ui/hooks/useResolvedFileUrls.js +2 -2
  288. package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -1
  289. package/lib/module/ui/hooks/useSessionManagement.js +3 -3
  290. package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
  291. package/lib/module/ui/icons/subsetGlyphMaps.js +0 -15
  292. package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
  293. package/lib/module/ui/navigation/routes.js +6 -4
  294. package/lib/module/ui/navigation/routes.js.map +1 -1
  295. package/lib/module/ui/navigation/surfaceRegistry.js +1 -1
  296. package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -1
  297. package/lib/module/ui/oauth/browserBridge.js +239 -0
  298. package/lib/module/ui/oauth/browserBridge.js.map +1 -0
  299. package/lib/module/ui/oauth/completeOAuthCode.js +1 -1
  300. package/lib/module/ui/oauth/completeOAuthCode.js.map +1 -1
  301. package/lib/module/ui/oauth/explicitOAuthConsent.js +1 -1
  302. package/lib/module/ui/oauth/explicitOAuthConsent.js.map +1 -1
  303. package/lib/module/ui/runtime/createOxyRuntime.js +4 -3
  304. package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -1
  305. package/lib/module/ui/runtime/runtimeContext.js.map +1 -1
  306. package/lib/module/ui/screens/AccountMembersScreen.js +7 -7
  307. package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
  308. package/lib/module/ui/screens/AccountSecurityPanelScreen.js +32 -0
  309. package/lib/module/ui/screens/AccountSecurityPanelScreen.js.map +1 -0
  310. package/lib/module/ui/screens/AccountSettingsScreen.js +3 -3
  311. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  312. package/lib/module/ui/screens/AccountVerificationScreen.js +1 -1
  313. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  314. package/lib/module/ui/screens/AppInfoScreen.js +5 -5
  315. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  316. package/lib/module/ui/screens/AvatarCropScreen.js +3 -3
  317. package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
  318. package/lib/module/ui/screens/ChangeAvatarScreen.js +1 -1
  319. package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -1
  320. package/lib/module/ui/screens/CreateAccountScreen.js +1 -1
  321. package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
  322. package/lib/module/ui/screens/DeleteAccountScreen.js +17 -0
  323. package/lib/module/ui/screens/DeleteAccountScreen.js.map +1 -0
  324. package/lib/module/ui/screens/DomainsScreen.js +212 -0
  325. package/lib/module/ui/screens/DomainsScreen.js.map +1 -0
  326. package/lib/module/ui/screens/EditProfileScreen.js +1 -1
  327. package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
  328. package/lib/module/ui/screens/FileManagementScreen.js +25 -11
  329. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  330. package/lib/module/ui/screens/HelpSupportScreen.js +1 -17
  331. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
  332. package/lib/module/ui/screens/LinkCommonsScreen.js +12 -0
  333. package/lib/module/ui/screens/LinkCommonsScreen.js.map +1 -0
  334. package/lib/module/ui/screens/ManageAccountScreen.js +58 -62
  335. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
  336. package/lib/module/ui/screens/PrivacySettingsScreen.js +53 -63
  337. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  338. package/lib/module/ui/screens/ProfileScreen.js +5 -13
  339. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  340. package/lib/module/ui/screens/SearchSettingsScreen.js +16 -25
  341. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  342. package/lib/module/ui/screens/SignInAuthenticatorScreen.js +12 -0
  343. package/lib/module/ui/screens/SignInAuthenticatorScreen.js.map +1 -0
  344. package/lib/module/ui/screens/SignInPasswordScreen.js +18 -0
  345. package/lib/module/ui/screens/SignInPasswordScreen.js.map +1 -0
  346. package/lib/module/ui/screens/UserListScreen.js +3 -3
  347. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  348. package/lib/module/ui/screens/WelcomeNewUserScreen.js +1 -1
  349. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  350. package/lib/module/ui/screens/trust/TrustCenterScreen.js +26 -18
  351. package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  352. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
  353. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  354. package/lib/module/ui/screens/trust/TrustRewardsScreen.js +9 -15
  355. package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  356. package/lib/module/ui/screens/trust/TrustRulesScreen.js +12 -10
  357. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  358. package/lib/module/ui/session/authStore.js +1 -1
  359. package/lib/module/ui/session/authStore.js.map +1 -1
  360. package/lib/module/ui/session/backgroundSession.js +5 -40
  361. package/lib/module/ui/session/backgroundSession.js.map +1 -1
  362. package/lib/module/ui/session/createSessionClient.js +1 -1
  363. package/lib/module/ui/session/createSessionClient.js.map +1 -1
  364. package/lib/module/ui/session/deviceCredentialTracker.js +38 -0
  365. package/lib/module/ui/session/deviceCredentialTracker.js.map +1 -0
  366. package/lib/module/ui/session/identityBinding.js +1 -1
  367. package/lib/module/ui/session/identityBinding.js.map +1 -1
  368. package/lib/module/ui/session/index.js +1 -1
  369. package/lib/module/ui/session/index.js.map +1 -1
  370. package/lib/module/ui/session/sharedDeviceCredentialStore.js +1 -1
  371. package/lib/module/ui/session/sharedDeviceCredentialStore.js.map +1 -1
  372. package/lib/module/ui/session/tokenTransport.js +3 -3
  373. package/lib/module/ui/session/tokenTransport.js.map +1 -1
  374. package/lib/module/ui/stores/assetStore.js +12 -0
  375. package/lib/module/ui/stores/assetStore.js.map +1 -1
  376. package/lib/module/ui/stores/followStore.js +6 -6
  377. package/lib/module/ui/stores/followStore.js.map +1 -1
  378. package/lib/module/ui/utils/accountDeletionHandoff.js +2 -5
  379. package/lib/module/ui/utils/accountDeletionHandoff.js.map +1 -1
  380. package/lib/module/ui/utils/avatarUtils.js +1 -1
  381. package/lib/module/ui/utils/avatarUtils.js.map +1 -1
  382. package/lib/module/ui/utils/deviceCredential.js +10 -3
  383. package/lib/module/ui/utils/deviceCredential.js.map +1 -1
  384. package/lib/module/ui/utils/fileManagement.js +0 -9
  385. package/lib/module/ui/utils/fileManagement.js.map +1 -1
  386. package/lib/module/ui/utils/sessionHelpers.js +2 -2
  387. package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
  388. package/lib/typescript/commonjs/index.d.ts +5 -5
  389. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  390. package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +3 -2
  391. package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts +2 -3
  393. package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +7 -7
  395. package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
  396. package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts +2 -1
  397. package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts +1 -1
  399. package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
  400. package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts +3 -4
  401. package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
  402. package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts +1 -1
  403. package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +1 -1
  404. package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
  405. package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts +2 -1
  406. package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
  407. package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts +1 -1
  408. package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
  409. package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts +2 -1
  410. package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts.map +1 -1
  411. package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +1 -12
  412. package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
  413. package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts +1 -1
  414. package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
  415. package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts +1 -1
  416. package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
  417. package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts +19 -0
  418. package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -0
  419. package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts +10 -6
  420. package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
  421. package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts +6 -6
  422. package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
  423. package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts +15 -0
  424. package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -0
  425. package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts +21 -19
  426. package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
  427. package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts +16 -7
  428. package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
  429. package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts +34 -0
  430. package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -0
  431. package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts +38 -12
  432. package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
  433. package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts +20 -0
  434. package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts.map +1 -0
  435. package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts +8 -21
  436. package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts.map +1 -1
  437. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  438. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts +2 -1
  439. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  440. package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +4 -39
  441. package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
  442. package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +2 -1
  443. package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
  444. package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts +1 -1
  445. package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
  446. package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +1 -1
  447. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +2 -2
  448. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  449. package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts +5 -1
  450. package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
  451. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +19 -1
  452. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  453. package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts +13 -20
  454. package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
  455. package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +1 -1
  456. package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
  457. package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts +4 -4
  458. package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
  459. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +3 -5
  460. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  461. package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +5 -5
  462. package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
  463. package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +1 -1
  464. package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts +1 -1
  465. package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
  466. package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
  467. package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts +1 -1
  468. package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts.map +1 -1
  469. package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts +9 -7
  470. package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
  471. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
  472. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
  473. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  474. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  475. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +0 -15
  476. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  477. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +1 -1
  478. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
  479. package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
  480. package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
  481. package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +7 -5
  482. package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -1
  483. package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts +97 -0
  484. package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts.map +1 -0
  485. package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts +6 -2
  486. package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -1
  487. package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts +2 -1
  488. package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts.map +1 -1
  489. package/lib/typescript/commonjs/ui/runtime/types.d.ts +2 -1
  490. package/lib/typescript/commonjs/ui/runtime/types.d.ts.map +1 -1
  491. package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts +11 -0
  492. package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -0
  493. package/lib/typescript/commonjs/ui/screens/DeleteAccountScreen.d.ts +6 -0
  494. package/lib/typescript/commonjs/ui/screens/DeleteAccountScreen.d.ts.map +1 -0
  495. package/lib/typescript/commonjs/ui/screens/{SavesCollectionsScreen.d.ts → DomainsScreen.d.ts} +1 -1
  496. package/lib/typescript/commonjs/ui/screens/DomainsScreen.d.ts.map +1 -0
  497. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  498. package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  499. package/lib/typescript/commonjs/ui/screens/LinkCommonsScreen.d.ts +6 -0
  500. package/lib/typescript/commonjs/ui/screens/LinkCommonsScreen.d.ts.map +1 -0
  501. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  502. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  503. package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
  504. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  505. package/lib/typescript/commonjs/ui/screens/SignInAuthenticatorScreen.d.ts +6 -0
  506. package/lib/typescript/commonjs/ui/screens/SignInAuthenticatorScreen.d.ts.map +1 -0
  507. package/lib/typescript/commonjs/ui/screens/SignInPasswordScreen.d.ts +6 -0
  508. package/lib/typescript/commonjs/ui/screens/SignInPasswordScreen.d.ts.map +1 -0
  509. package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  510. package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  511. package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  512. package/lib/typescript/commonjs/ui/session/authStore.d.ts +1 -1
  513. package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -1
  514. package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts +3 -4
  515. package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts.map +1 -1
  516. package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +2 -1
  517. package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -1
  518. package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts +23 -0
  519. package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts.map +1 -0
  520. package/lib/typescript/commonjs/ui/session/identityBinding.d.ts +1 -1
  521. package/lib/typescript/commonjs/ui/session/identityBinding.d.ts.map +1 -1
  522. package/lib/typescript/commonjs/ui/session/index.d.ts +1 -1
  523. package/lib/typescript/commonjs/ui/session/index.d.ts.map +1 -1
  524. package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts +1 -1
  525. package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts.map +1 -1
  526. package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts +1 -1
  527. package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
  528. package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts +3 -2
  529. package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -1
  530. package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +7 -0
  531. package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -1
  532. package/lib/typescript/commonjs/ui/types/navigation.d.ts +1 -1
  533. package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
  534. package/lib/typescript/commonjs/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
  535. package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts +10 -3
  536. package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -1
  537. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +1 -5
  538. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
  539. package/lib/typescript/module/index.d.ts +5 -5
  540. package/lib/typescript/module/index.d.ts.map +1 -1
  541. package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +3 -2
  542. package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
  543. package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts +2 -3
  544. package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
  545. package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +7 -7
  546. package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
  547. package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts +2 -1
  548. package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
  549. package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts +1 -1
  550. package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
  551. package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts +3 -4
  552. package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
  553. package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts +1 -1
  554. package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +1 -1
  555. package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
  556. package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts +2 -1
  557. package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
  558. package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts +1 -1
  559. package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
  560. package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts +2 -1
  561. package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts.map +1 -1
  562. package/lib/typescript/module/ui/components/authChooser/types.d.ts +1 -12
  563. package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
  564. package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts +1 -1
  565. package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
  566. package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts +1 -1
  567. package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
  568. package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts +19 -0
  569. package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -0
  570. package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts +10 -6
  571. package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
  572. package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts +6 -6
  573. package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
  574. package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts +15 -0
  575. package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -0
  576. package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts +21 -19
  577. package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
  578. package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts +16 -7
  579. package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
  580. package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts +34 -0
  581. package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -0
  582. package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts +38 -12
  583. package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
  584. package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts +20 -0
  585. package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts.map +1 -0
  586. package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts +8 -21
  587. package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts.map +1 -1
  588. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  589. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts +2 -1
  590. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  591. package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +4 -39
  592. package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
  593. package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +2 -1
  594. package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
  595. package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts +1 -1
  596. package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
  597. package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +1 -1
  598. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +2 -2
  599. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  600. package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts +5 -1
  601. package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
  602. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +19 -1
  603. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  604. package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts +13 -20
  605. package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
  606. package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +1 -1
  607. package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
  608. package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts +4 -4
  609. package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
  610. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +3 -5
  611. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  612. package/lib/typescript/module/ui/hooks/useAssets.d.ts +5 -5
  613. package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
  614. package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +1 -1
  615. package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts +1 -1
  616. package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
  617. package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
  618. package/lib/typescript/module/ui/hooks/useFollow.d.ts +1 -1
  619. package/lib/typescript/module/ui/hooks/useI18n.d.ts.map +1 -1
  620. package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts +9 -7
  621. package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
  622. package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
  623. package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
  624. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  625. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  626. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +0 -15
  627. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  628. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +1 -1
  629. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
  630. package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
  631. package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
  632. package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +7 -5
  633. package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -1
  634. package/lib/typescript/module/ui/oauth/browserBridge.d.ts +97 -0
  635. package/lib/typescript/module/ui/oauth/browserBridge.d.ts.map +1 -0
  636. package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts +6 -2
  637. package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -1
  638. package/lib/typescript/module/ui/runtime/runtimeContext.d.ts +2 -1
  639. package/lib/typescript/module/ui/runtime/runtimeContext.d.ts.map +1 -1
  640. package/lib/typescript/module/ui/runtime/types.d.ts +2 -1
  641. package/lib/typescript/module/ui/runtime/types.d.ts.map +1 -1
  642. package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts +11 -0
  643. package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -0
  644. package/lib/typescript/module/ui/screens/DeleteAccountScreen.d.ts +6 -0
  645. package/lib/typescript/module/ui/screens/DeleteAccountScreen.d.ts.map +1 -0
  646. package/lib/typescript/module/ui/screens/{SavesCollectionsScreen.d.ts → DomainsScreen.d.ts} +1 -1
  647. package/lib/typescript/module/ui/screens/DomainsScreen.d.ts.map +1 -0
  648. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  649. package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  650. package/lib/typescript/module/ui/screens/LinkCommonsScreen.d.ts +6 -0
  651. package/lib/typescript/module/ui/screens/LinkCommonsScreen.d.ts.map +1 -0
  652. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  653. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  654. package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
  655. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  656. package/lib/typescript/module/ui/screens/SignInAuthenticatorScreen.d.ts +6 -0
  657. package/lib/typescript/module/ui/screens/SignInAuthenticatorScreen.d.ts.map +1 -0
  658. package/lib/typescript/module/ui/screens/SignInPasswordScreen.d.ts +6 -0
  659. package/lib/typescript/module/ui/screens/SignInPasswordScreen.d.ts.map +1 -0
  660. package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  661. package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  662. package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  663. package/lib/typescript/module/ui/session/authStore.d.ts +1 -1
  664. package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -1
  665. package/lib/typescript/module/ui/session/backgroundSession.d.ts +3 -4
  666. package/lib/typescript/module/ui/session/backgroundSession.d.ts.map +1 -1
  667. package/lib/typescript/module/ui/session/createSessionClient.d.ts +2 -1
  668. package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -1
  669. package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts +23 -0
  670. package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts.map +1 -0
  671. package/lib/typescript/module/ui/session/identityBinding.d.ts +1 -1
  672. package/lib/typescript/module/ui/session/identityBinding.d.ts.map +1 -1
  673. package/lib/typescript/module/ui/session/index.d.ts +1 -1
  674. package/lib/typescript/module/ui/session/index.d.ts.map +1 -1
  675. package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts +1 -1
  676. package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts.map +1 -1
  677. package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts +1 -1
  678. package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
  679. package/lib/typescript/module/ui/session/tokenTransport.d.ts +3 -2
  680. package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -1
  681. package/lib/typescript/module/ui/stores/assetStore.d.ts +7 -0
  682. package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -1
  683. package/lib/typescript/module/ui/types/navigation.d.ts +1 -1
  684. package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
  685. package/lib/typescript/module/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
  686. package/lib/typescript/module/ui/utils/deviceCredential.d.ts +10 -3
  687. package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -1
  688. package/lib/typescript/module/ui/utils/fileManagement.d.ts +1 -5
  689. package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
  690. package/package.json +4 -5
  691. package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  692. package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  693. package/src/assets/fonts/icons/manifest.json +5 -20
  694. package/src/index.ts +8 -8
  695. package/src/ui/boot/__tests__/coldBootNoIdpRedirect.test.ts +4 -4
  696. package/src/ui/boot/runProviderColdBoot.ts +3 -9
  697. package/src/ui/components/OxyAccountDialogScreen.tsx +2 -3
  698. package/src/ui/components/OxyAuthChooser.tsx +13 -36
  699. package/src/ui/components/OxySignInButton.tsx +1 -1
  700. package/src/ui/components/OxySignInRequestSurface.tsx +2 -1
  701. package/src/ui/components/ProfileButton.tsx +1 -1
  702. package/src/ui/components/authChooser/AccountsMenuView.tsx +1 -6
  703. package/src/ui/components/authChooser/SignInRequestView.tsx +5 -23
  704. package/src/ui/components/authChooser/TroubleDisclosure.tsx +1 -1
  705. package/src/ui/components/authChooser/primitives.tsx +1 -1
  706. package/src/ui/components/authChooser/requestSurfaces.tsx +2 -1
  707. package/src/ui/components/authChooser/signInFailureMessage.ts +1 -1
  708. package/src/ui/components/authChooser/signInProgress.ts +2 -1
  709. package/src/ui/components/authChooser/types.ts +1 -13
  710. package/src/ui/components/signIn/InlineCommonsQr.tsx +2 -2
  711. package/src/ui/components/signIn/OxyAccountPicker.tsx +1 -1
  712. package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +294 -0
  713. package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +48 -61
  714. package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +43 -35
  715. package/src/ui/components/signIn/OxyPasswordPanel.tsx +117 -0
  716. package/src/ui/components/signIn/OxySignInPanel.tsx +534 -214
  717. package/src/ui/components/signIn/OxySignUpPanel.tsx +186 -56
  718. package/src/ui/components/signIn/ReauthStep.tsx +201 -0
  719. package/src/ui/components/signIn/accountFlowParts.tsx +139 -33
  720. package/src/ui/components/signIn/signInFlowStore.ts +41 -0
  721. package/src/ui/components/signIn/signInMethods.ts +10 -29
  722. package/src/ui/context/OxyContext.tsx +124 -145
  723. package/src/ui/context/hooks/useAuthOperations.ts +9 -8
  724. package/src/ui/context/oxyContextTypes.ts +4 -41
  725. package/src/ui/context/useOxyAccountGraph.ts +6 -5
  726. package/src/ui/hooks/accountDialogSnapshot.ts +1 -1
  727. package/src/ui/hooks/mutations/mutationFactory.ts +1 -1
  728. package/src/ui/hooks/mutations/useAccountMutations.ts +11 -10
  729. package/src/ui/hooks/mutations/useServicesMutations.ts +4 -4
  730. package/src/ui/hooks/queries/queryKeys.ts +26 -2
  731. package/src/ui/hooks/queries/useAccountQueries.ts +8 -8
  732. package/src/ui/hooks/queries/useAuthMethods.ts +22 -19
  733. package/src/ui/hooks/queries/useFileQueries.ts +2 -2
  734. package/src/ui/hooks/queries/usePaymentQueries.ts +8 -8
  735. package/src/ui/hooks/queries/useSecurityQueries.ts +4 -3
  736. package/src/ui/hooks/queries/useServicesQueries.ts +6 -6
  737. package/src/ui/hooks/useAssets.ts +26 -31
  738. package/src/ui/hooks/useAvatarPicker.ts +4 -4
  739. package/src/ui/hooks/useDeviceManagement.ts +4 -4
  740. package/src/ui/hooks/useDeviceSwitcher.ts +2 -7
  741. package/src/ui/hooks/useFileDownloadUrl.ts +1 -5
  742. package/src/ui/hooks/useFollow.ts +2 -2
  743. package/src/ui/hooks/useFollowTarget.ts +5 -5
  744. package/src/ui/hooks/useI18n.ts +6 -3
  745. package/src/ui/hooks/useResolvedFileUrls.ts +8 -6
  746. package/src/ui/hooks/useSessionManagement.ts +3 -3
  747. package/src/ui/icons/subsetGlyphMaps.ts +0 -15
  748. package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +1 -1
  749. package/src/ui/navigation/accountDialogManager.ts +1 -1
  750. package/src/ui/navigation/routes.ts +11 -8
  751. package/src/ui/navigation/surfaceRegistry.ts +8 -6
  752. package/src/ui/oauth/__tests__/browserAuthTransport.test.ts +8 -8
  753. package/src/ui/oauth/__tests__/browserBridge.test.ts +198 -0
  754. package/src/ui/oauth/__tests__/completeOAuthCode.test.ts +1 -1
  755. package/src/ui/oauth/__tests__/explicitOAuthConsent.test.ts +11 -11
  756. package/src/ui/oauth/__tests__/sharedCompletionPath.test.ts +7 -7
  757. package/src/ui/oauth/browserBridge.ts +234 -0
  758. package/src/ui/oauth/completeOAuthCode.ts +1 -1
  759. package/src/ui/oauth/explicitOAuthConsent.ts +1 -1
  760. package/src/ui/runtime/createOxyRuntime.ts +8 -16
  761. package/src/ui/runtime/runtimeContext.tsx +2 -1
  762. package/src/ui/runtime/types.ts +2 -1
  763. package/src/ui/screens/AccountMembersScreen.tsx +7 -7
  764. package/src/ui/screens/AccountSecurityPanelScreen.tsx +26 -0
  765. package/src/ui/screens/AccountSettingsScreen.tsx +3 -3
  766. package/src/ui/screens/AccountVerificationScreen.tsx +1 -1
  767. package/src/ui/screens/AppInfoScreen.tsx +5 -5
  768. package/src/ui/screens/AvatarCropScreen.tsx +3 -3
  769. package/src/ui/screens/ChangeAvatarScreen.tsx +1 -1
  770. package/src/ui/screens/CreateAccountScreen.tsx +1 -1
  771. package/src/ui/screens/DeleteAccountScreen.tsx +13 -0
  772. package/src/ui/screens/DomainsScreen.tsx +187 -0
  773. package/src/ui/screens/EditProfileScreen.tsx +1 -1
  774. package/src/ui/screens/FileManagementScreen.tsx +15 -21
  775. package/src/ui/screens/HelpSupportScreen.tsx +0 -15
  776. package/src/ui/screens/LinkCommonsScreen.tsx +13 -0
  777. package/src/ui/screens/ManageAccountScreen.tsx +47 -82
  778. package/src/ui/screens/PrivacySettingsScreen.tsx +48 -67
  779. package/src/ui/screens/ProfileScreen.tsx +5 -10
  780. package/src/ui/screens/SearchSettingsScreen.tsx +15 -27
  781. package/src/ui/screens/SignInAuthenticatorScreen.tsx +13 -0
  782. package/src/ui/screens/SignInPasswordScreen.tsx +13 -0
  783. package/src/ui/screens/UserListScreen.tsx +3 -3
  784. package/src/ui/screens/WelcomeNewUserScreen.tsx +1 -1
  785. package/src/ui/screens/trust/TrustCenterScreen.tsx +25 -29
  786. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +2 -2
  787. package/src/ui/screens/trust/TrustRewardsScreen.tsx +9 -19
  788. package/src/ui/screens/trust/TrustRulesScreen.tsx +14 -14
  789. package/src/ui/session/__tests__/authStore.test.ts +1 -1
  790. package/src/ui/session/__tests__/backgroundSession.test.ts +2 -61
  791. package/src/ui/session/__tests__/createSessionClient.test.ts +7 -9
  792. package/src/ui/session/__tests__/sharedDeviceCredentialStore.test.ts +1 -1
  793. package/src/ui/session/__tests__/tokenTransport.test.ts +9 -7
  794. package/src/ui/session/authStore.ts +1 -7
  795. package/src/ui/session/backgroundSession.ts +5 -41
  796. package/src/ui/session/createSessionClient.ts +2 -6
  797. package/src/ui/session/deviceCredentialTracker.ts +49 -0
  798. package/src/ui/session/identityBinding.ts +1 -6
  799. package/src/ui/session/index.ts +1 -1
  800. package/src/ui/session/nativeSecureStorage.ts +1 -1
  801. package/src/ui/session/sharedDeviceCredentialStore.ts +1 -6
  802. package/src/ui/session/tokenTransport.ts +5 -4
  803. package/src/ui/stores/__tests__/followStore.test.ts +13 -15
  804. package/src/ui/stores/assetStore.ts +15 -0
  805. package/src/ui/stores/followStore.ts +7 -7
  806. package/src/ui/types/navigation.ts +2 -1
  807. package/src/ui/utils/accountDeletionHandoff.ts +2 -4
  808. package/src/ui/utils/avatarUtils.ts +1 -1
  809. package/src/ui/utils/deviceCredential.ts +11 -4
  810. package/src/ui/utils/fileManagement.ts +0 -12
  811. package/src/ui/utils/sessionHelpers.ts +2 -2
  812. package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js +0 -236
  813. package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js.map +0 -1
  814. package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js +0 -170
  815. package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js.map +0 -1
  816. package/lib/commonjs/ui/components/signIn/passkeyError.js +0 -46
  817. package/lib/commonjs/ui/components/signIn/passkeyError.js.map +0 -1
  818. package/lib/commonjs/ui/context/passkeyFlow.js +0 -114
  819. package/lib/commonjs/ui/context/passkeyFlow.js.map +0 -1
  820. package/lib/commonjs/ui/screens/FAQScreen.js +0 -162
  821. package/lib/commonjs/ui/screens/FAQScreen.js.map +0 -1
  822. package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -601
  823. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +0 -1
  824. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -968
  825. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
  826. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +0 -132
  827. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +0 -1
  828. package/lib/commonjs/webauthn/passkeyClient.js +0 -39
  829. package/lib/commonjs/webauthn/passkeyClient.js.map +0 -1
  830. package/lib/commonjs/webauthn/passkeyClient.native.js +0 -34
  831. package/lib/commonjs/webauthn/passkeyClient.native.js.map +0 -1
  832. package/lib/commonjs/webauthn/passkeyClient.web.js +0 -57
  833. package/lib/commonjs/webauthn/passkeyClient.web.js.map +0 -1
  834. package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js +0 -231
  835. package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js.map +0 -1
  836. package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js +0 -165
  837. package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js.map +0 -1
  838. package/lib/module/ui/components/signIn/passkeyError.js +0 -40
  839. package/lib/module/ui/components/signIn/passkeyError.js.map +0 -1
  840. package/lib/module/ui/context/passkeyFlow.js +0 -107
  841. package/lib/module/ui/context/passkeyFlow.js.map +0 -1
  842. package/lib/module/ui/screens/FAQScreen.js +0 -157
  843. package/lib/module/ui/screens/FAQScreen.js.map +0 -1
  844. package/lib/module/ui/screens/FeedbackScreen.js +0 -599
  845. package/lib/module/ui/screens/FeedbackScreen.js.map +0 -1
  846. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -963
  847. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
  848. package/lib/module/ui/screens/SavesCollectionsScreen.js +0 -127
  849. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +0 -1
  850. package/lib/module/webauthn/passkeyClient.js +0 -33
  851. package/lib/module/webauthn/passkeyClient.js.map +0 -1
  852. package/lib/module/webauthn/passkeyClient.native.js +0 -28
  853. package/lib/module/webauthn/passkeyClient.native.js.map +0 -1
  854. package/lib/module/webauthn/passkeyClient.web.js +0 -52
  855. package/lib/module/webauthn/passkeyClient.web.js.map +0 -1
  856. package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts +0 -24
  857. package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +0 -1
  858. package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts +0 -20
  859. package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +0 -1
  860. package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts +0 -16
  861. package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts.map +0 -1
  862. package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts +0 -92
  863. package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts.map +0 -1
  864. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts +0 -5
  865. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +0 -1
  866. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts +0 -5
  867. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +0 -1
  868. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
  869. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
  870. package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
  871. package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts +0 -20
  872. package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts.map +0 -1
  873. package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts +0 -15
  874. package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts.map +0 -1
  875. package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts +0 -36
  876. package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts.map +0 -1
  877. package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts +0 -24
  878. package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +0 -1
  879. package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts +0 -20
  880. package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +0 -1
  881. package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts +0 -16
  882. package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts.map +0 -1
  883. package/lib/typescript/module/ui/context/passkeyFlow.d.ts +0 -92
  884. package/lib/typescript/module/ui/context/passkeyFlow.d.ts.map +0 -1
  885. package/lib/typescript/module/ui/screens/FAQScreen.d.ts +0 -5
  886. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +0 -1
  887. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts +0 -5
  888. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +0 -1
  889. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
  890. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
  891. package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
  892. package/lib/typescript/module/webauthn/passkeyClient.d.ts +0 -20
  893. package/lib/typescript/module/webauthn/passkeyClient.d.ts.map +0 -1
  894. package/lib/typescript/module/webauthn/passkeyClient.native.d.ts +0 -15
  895. package/lib/typescript/module/webauthn/passkeyClient.native.d.ts.map +0 -1
  896. package/lib/typescript/module/webauthn/passkeyClient.web.d.ts +0 -36
  897. package/lib/typescript/module/webauthn/passkeyClient.web.d.ts.map +0 -1
  898. package/src/ui/components/signIn/OxyCreateAccountPanel.tsx +0 -207
  899. package/src/ui/components/signIn/OxyRecoverAccountPanel.tsx +0 -154
  900. package/src/ui/components/signIn/passkeyError.ts +0 -44
  901. package/src/ui/context/__tests__/passkeyFlow.test.ts +0 -239
  902. package/src/ui/context/passkeyFlow.ts +0 -145
  903. package/src/ui/screens/FAQScreen.tsx +0 -200
  904. package/src/ui/screens/FeedbackScreen.tsx +0 -766
  905. package/src/ui/screens/PremiumSubscriptionScreen.tsx +0 -1103
  906. package/src/ui/screens/SavesCollectionsScreen.tsx +0 -167
  907. package/src/webauthn/passkeyClient.native.ts +0 -26
  908. package/src/webauthn/passkeyClient.ts +0 -31
  909. package/src/webauthn/passkeyClient.web.ts +0 -56
@@ -6,24 +6,27 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.OxyDeleteAccountPanel = void 0;
7
7
  var _react = require("react");
8
8
  var _OxyContext = require("../../context/OxyContext.js");
9
+ var _useAuthMethods = require("../../hooks/queries/useAuthMethods.js");
9
10
  var _useI18n = require("../../hooks/useI18n.js");
10
- var _passkeyClient = require("../../../webauthn/passkeyClient");
11
- var _passkeyFlow = require("../../context/passkeyFlow.js");
12
11
  var _OxyAuthScreen = require("./OxyAuthScreen.js");
12
+ var _ReauthStep = require("./ReauthStep.js");
13
13
  var _accountFlowParts = require("./accountFlowParts.js");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
  /**
16
- * Deleting a passkey account (ADR 0029 D3), auth.oxy.so's `/delete-account`.
16
+ * Deleting an account that has no key of its own, from the account's settings
17
+ * (the account dialog's "Manage your account", or the Accounts app):
17
18
  *
18
- * A passkey account has no key to sign its deletion with, so the person types
19
- * the username and asserts one of the account's passkeys — on auth.oxy.so, the
20
- * one origin that asserts them — over a challenge the API minted for the
21
- * account. An account with a Commons key is deleted in Commons, with its key.
22
- * The page must be signed in as the account; the host renders sign-in first.
19
+ * type the username → a code sent to the account's email (+ the
20
+ * authenticator's code when it has one) → deleted, and signed out
21
+ *
22
+ * An account with a Commons key is deleted with that key — in Commons, or in
23
+ * an app that holds it (`ManageAccountScreen`); this panel says so instead.
24
+ * It must be rendered signed in as the account.
23
25
  */
24
26
 
25
27
  const OxyDeleteAccountPanel = ({
26
- onDeleted
28
+ onDeleted,
29
+ onCancel
27
30
  }) => {
28
31
  const {
29
32
  t
@@ -33,80 +36,73 @@ const OxyDeleteAccountPanel = ({
33
36
  oxyServices,
34
37
  logout
35
38
  } = (0, _OxyContext.useOxy)();
39
+ const keyed = Boolean(user?.publicKey);
40
+ const methods = (0, _useAuthMethods.useSignInMethods)({
41
+ enabled: !keyed
42
+ });
36
43
  const [confirmText, setConfirmText] = (0, _react.useState)('');
37
- const [pending, setPending] = (0, _react.useState)(false);
38
- const [error, setError] = (0, _react.useState)(null);
39
44
  const [deleted, setDeleted] = (0, _react.useState)(false);
40
45
  if (deleted) {
41
46
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreen, {
42
47
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
43
- title: t('deleteAccount.passkey.done'),
44
- description: t('deleteAccount.passkey.closeWindow')
48
+ title: t('deleteAccount.keyless.done'),
49
+ description: t('deleteAccount.keyless.doneDescription')
45
50
  })
46
51
  });
47
52
  }
48
- const username = user?.username ?? '';
49
- if (user?.publicKey) {
53
+ if (keyed) {
50
54
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreen, {
51
55
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
52
56
  title: t('deleteAccount.handoff.commonsTitle'),
53
- description: t('deleteAccount.passkey.commons')
57
+ description: t('deleteAccount.keyless.keyed')
54
58
  })
55
59
  });
56
60
  }
57
-
58
- // The ceremony opens the browser's passkey prompt, so it starts from the press.
59
- const remove = () => {
60
- if (pending) return;
61
- if (confirmText.trim() !== username) {
62
- setError(t('deleteAccount.confirmLabel', {
63
- username
64
- }));
65
- return;
66
- }
67
- setError(null);
68
- setPending(true);
69
- (async () => {
70
- if (!(0, _passkeyClient.isPasskeySupported)()) throw new Error(_passkeyFlow.PASSKEY_UNSUPPORTED_MESSAGE);
71
- const options = await oxyServices.getAccountDeletionOptions();
72
- const assertion = await (0, _passkeyClient.runAuthenticationCeremony)(options);
73
- await oxyServices.deleteAccountWithPasskey(confirmText.trim(), assertion);
61
+ if (!methods.data) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthLoading, {});
62
+ const username = user?.username ?? '';
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ReauthStep.ReauthStep, {
64
+ title: t('deleteAccount.title'),
65
+ description: t('deleteAccount.keyless.subtitle', {
66
+ username
67
+ }),
68
+ action: "delete_account",
69
+ totpEnabled: methods.data.totpEnabled,
70
+ submitLabel: t('deleteAccount.keyless.action'),
71
+ destructive: true,
72
+ validate: () => confirmText.trim() === username ? null : t('deleteAccount.confirmLabel', {
73
+ username
74
+ }),
75
+ onSubmit: async proof => {
76
+ if (!proof.emailCode) throw new Error(t('reauth.errors.invalid'));
77
+ await oxyServices.users.deleteMe(confirmText.trim(), {
78
+ reauth: {
79
+ emailCode: proof.emailCode,
80
+ ...(proof.totpCode ? {
81
+ totpCode: proof.totpCode
82
+ } : {})
83
+ }
84
+ });
74
85
  await logout().catch(() => undefined);
75
86
  setDeleted(true);
76
87
  onDeleted?.();
77
- })().catch(reason => setError((0, _accountFlowParts.describeAccountFlowError)(reason, t))).finally(() => setPending(false));
78
- };
79
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OxyAuthScreen.OxyAuthScreen, {
80
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
81
- title: t('deleteAccount.title'),
82
- description: t('deleteAccount.passkey.subtitle', {
83
- username
84
- })
85
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowNote, {
88
+ },
89
+ secondary: onCancel ? {
90
+ label: t('common.cancel'),
91
+ onPress: onCancel
92
+ } : undefined,
93
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowNote, {
86
94
  children: t('deleteAccount.warning')
87
95
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowField, {
88
96
  label: t('deleteAccount.confirmLabel', {
89
97
  username
90
98
  }),
91
99
  value: confirmText,
92
- onChange: value => {
93
- setConfirmText(value);
94
- if (error) setError(null);
95
- },
96
- onSubmit: remove,
100
+ onChange: setConfirmText,
101
+ onSubmit: () => undefined,
97
102
  error: null,
98
- disabled: pending,
99
103
  placeholder: username,
100
104
  autoComplete: "off",
101
105
  testID: "delete-account-confirm"
102
- }), error ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowErrorLine, {
103
- message: error
104
- }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowAction, {
105
- label: t('deleteAccount.passkey.action'),
106
- onPress: remove,
107
- pending: pending,
108
- disabled: confirmText.trim() !== username,
109
- testID: "delete-account-passkey"
110
106
  })]
111
107
  });
112
108
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_OxyContext","_useI18n","_passkeyClient","_passkeyFlow","_OxyAuthScreen","_accountFlowParts","_jsxRuntime","OxyDeleteAccountPanel","onDeleted","t","useI18n","user","oxyServices","logout","useOxy","confirmText","setConfirmText","useState","pending","setPending","error","setError","deleted","setDeleted","jsx","OxyAuthScreen","children","OxyAuthScreenHeader","title","description","username","publicKey","remove","trim","isPasskeySupported","Error","PASSKEY_UNSUPPORTED_MESSAGE","options","getAccountDeletionOptions","assertion","runAuthenticationCeremony","deleteAccountWithPasskey","catch","undefined","reason","describeAccountFlowError","finally","jsxs","AccountFlowNote","AccountFlowField","label","value","onChange","onSubmit","disabled","placeholder","autoComplete","testID","AccountFlowErrorLine","message","AccountFlowAction","onPress","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/signIn/OxyDeleteAccountPanel.tsx"],"mappings":";;;;;;AAWA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AAM4B,IAAAO,WAAA,GAAAP,OAAA;AAvB5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsBO,MAAMQ,qBAA2D,GAAGA,CAAC;EAAEC;AAAU,CAAC,KAAK;EAC5F,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,gBAAO,EAAC,CAAC;EACvB,MAAM;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAO,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EAC9C,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAAC,EAAE,CAAC;EAClD,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAF,eAAQ,EAAC,KAAK,CAAC;EAC7C,MAAM,CAACG,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAJ,eAAQ,EAAgB,IAAI,CAAC;EACvD,MAAM,CAACK,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAN,eAAQ,EAAC,KAAK,CAAC;EAE7C,IAAIK,OAAO,EAAE;IACX,oBACE,IAAAhB,WAAA,C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AC,EACDrC,KAAK,gBAAG,IAAAd,WAAA,CAAAkB,GAAA,EAACnB,iBAAA,CAAAqD,oBAAoB;MAACC,OAAO,EAAEvC;IAAM,CAAE,CAAC,GAAG,IAAI,eACxD,IAAAd,WAAA,CAAAkB,GAAA,EAACnB,iBAAA,CAAAuD,iBAAiB;MAChBV,KAAK,EAAEzC,CAAC,CAAC,8BAA8B,CAAE;MACzCoD,OAAO,EAAE7B,MAAO;MAChBd,OAAO,EAAEA,OAAQ;MACjBoC,QAAQ,EAAEvC,WAAW,CAACkB,IAAI,CAAC,CAAC,KAAKH,QAAS;MAC1C2B,MAAM,EAAC;IAAwB,CAChC,CAAC;EAAA,CACW,CAAC;AAEpB,CAAC;AAACK,OAAA,CAAAvD,qBAAA,GAAAA,qBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_OxyContext","_useAuthMethods","_useI18n","_OxyAuthScreen","_ReauthStep","_accountFlowParts","_jsxRuntime","OxyDeleteAccountPanel","onDeleted","onCancel","t","useI18n","user","oxyServices","logout","useOxy","keyed","Boolean","publicKey","methods","useSignInMethods","enabled","confirmText","setConfirmText","useState","deleted","setDeleted","jsx","OxyAuthScreen","children","OxyAuthScreenHeader","title","description","data","OxyAuthLoading","username","jsxs","ReauthStep","action","totpEnabled","submitLabel","destructive","validate","trim","onSubmit","proof","emailCode","Error","users","deleteMe","reauth","totpCode","catch","undefined","secondary","label","onPress","AccountFlowNote","AccountFlowField","value","onChange","error","placeholder","autoComplete","testID","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/signIn/OxyDeleteAccountPanel.tsx"],"mappings":";;;;;;AAaA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AAAuE,IAA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7C,QAAQ,GAAG;MAAE8C,KAAK,EAAE7C,CAAC,CAAC,eAAe,CAAC;MAAE8C,OAAO,EAAE/C;IAAS,CAAC,GAAG4C,SAAU;IAAAxB,QAAA,gBAEnF,IAAAvB,WAAA,CAAAqB,GAAA,EAACtB,iBAAA,CAAAoD,eAAe;MAAA5B,QAAA,EAAEnB,CAAC,CAAC,uBAAuB;IAAC,CAAkB,CAAC,eAC/D,IAAAJ,WAAA,CAAAqB,GAAA,EAACtB,iBAAA,CAAAqD,gBAAgB;MACfH,KAAK,EAAE7C,CAAC,CAAC,4BAA4B,EAAE;QAAEyB;MAAS,CAAC,CAAE;MACrDwB,KAAK,EAAErC,WAAY;MACnBsC,QAAQ,EAAErC,cAAe;MACzBqB,QAAQ,EAAEA,CAAA,KAAMS,SAAU;MAC1BQ,KAAK,EAAE,IAAK;MACZC,WAAW,EAAE3B,QAAS;MACtB4B,YAAY,EAAC,KAAK;MAClBC,MAAM,EAAC;IAAwB,CAChC,CAAC;EAAA,CACQ,CAAC;AAEjB,CAAC;AAACC,OAAA,CAAA1D,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -10,26 +10,26 @@ var _reactNativeQrcodeSvg = _interopRequireDefault(require("react-native-qrcode-
10
10
  var _button = require("@oxy.so/bloom/button");
11
11
  var _theme = require("@oxy.so/bloom/theme");
12
12
  var _typography = require("@oxy.so/bloom/typography");
13
- var _core = require("@oxy.so/core");
13
+ var _crypto = require("@oxy.so/core/crypto");
14
14
  var _OxyContext = require("../../context/OxyContext.js");
15
- var _passkeyFlow = require("../../context/passkeyFlow.js");
15
+ var _useAuthMethods = require("../../hooks/queries/useAuthMethods.js");
16
16
  var _useI18n = require("../../hooks/useI18n.js");
17
- var _passkeyClient = require("../../../webauthn/passkeyClient");
18
17
  var _OxyAuthScreen = require("./OxyAuthScreen.js");
18
+ var _ReauthStep = require("./ReauthStep.js");
19
19
  var _accountFlowParts = require("./accountFlowParts.js");
20
20
  var _jsxRuntime = require("react/jsx-runtime");
21
21
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
22
  /**
23
- * Linking Commons to a passkey account (ADR 0029 D3), auth.oxy.so's
24
- * `/link-commons`:
23
+ * Linking Commons to an account that has no key of its own, from the account's
24
+ * settings (the account dialog's "Manage your account", or the Accounts app):
25
25
  *
26
26
  * QR → Commons scans and signs with its key → both screens show the same
27
- * code → the person confirms here with the passkey → linked
27
+ * code → the person confirms it's them with a code sent to the account's
28
+ * email (+ the authenticator's code) → linked
28
29
  *
29
30
  * Afterwards the account is self-custodied: its root is the key Commons holds,
30
- * its recovery email is deleted, and its phrase in Commons is how it gets back
31
- * in. The passkey keeps signing in on the web. The page must be signed in as
32
- * the account; the host renders sign-in first.
31
+ * its email, password and authenticator are deleted, and its phrase in Commons
32
+ * is how it gets back in. It must be rendered signed in as the account.
33
33
  */
34
34
 
35
35
  /** How often the page asks whether Commons has signed. */
@@ -53,19 +53,21 @@ const OxyLinkCommonsPanel = ({
53
53
  const [step, setStep] = (0, _react.useState)({
54
54
  name: 'opening'
55
55
  });
56
- const [pending, setPending] = (0, _react.useState)(false);
57
56
  const [error, setError] = (0, _react.useState)(null);
58
57
  const alreadyLinked = Boolean(user?.publicKey);
58
+ const methods = (0, _useAuthMethods.useSignInMethods)({
59
+ enabled: !alreadyLinked
60
+ });
59
61
  const open = (0, _react.useCallback)(() => {
60
62
  setError(null);
61
63
  setStep({
62
64
  name: 'opening'
63
65
  });
64
- oxyServices.createIdentityLink().then(link => setStep({
66
+ oxyServices.identity.links.create().then(link => setStep({
65
67
  name: 'qr',
66
68
  link
67
69
  })).catch(reason => {
68
- setError((0, _accountFlowParts.describeAccountFlowError)(reason, t));
70
+ setError((0, _accountFlowParts.describeSignInError)(reason, t));
69
71
  setStep({
70
72
  name: 'expired'
71
73
  });
@@ -95,13 +97,13 @@ const OxyLinkCommonsPanel = ({
95
97
  return;
96
98
  }
97
99
  try {
98
- const state = await oxyServices.getIdentityLink(link.linkId);
100
+ const state = await oxyServices.identity.links.get(link.linkId);
99
101
  if (stopped) return;
100
102
  if (state.status === 'signed' && state.publicKey) {
101
103
  setStep({
102
104
  name: 'matching',
103
105
  link,
104
- code: (0, _core.deriveIdentityLinkCode)(link.linkId, state.publicKey)
106
+ code: (0, _crypto.deriveIdentityLinkCode)(link.linkId, state.publicKey)
105
107
  });
106
108
  return;
107
109
  }
@@ -122,25 +124,8 @@ const OxyLinkCommonsPanel = ({
122
124
  clearTimeout(timer);
123
125
  };
124
126
  }, [link, oxyServices]);
125
-
126
- // The ceremony opens the browser's passkey prompt, so it starts from the press.
127
- const confirm = confirmed => {
128
- if (pending) return;
129
- setError(null);
130
- setPending(true);
131
- (async () => {
132
- if (!(0, _passkeyClient.isPasskeySupported)()) throw new Error(_passkeyFlow.PASSKEY_UNSUPPORTED_MESSAGE);
133
- const options = await oxyServices.getIdentityLinkAssertionOptions(confirmed.linkId, confirmed.challenge);
134
- const assertion = await (0, _passkeyClient.runAuthenticationCeremony)(options);
135
- await oxyServices.completeIdentityLink(confirmed.linkId, assertion);
136
- setStep({
137
- name: 'done'
138
- });
139
- onLinked?.();
140
- })().catch(reason => setError((0, _accountFlowParts.describeAccountFlowError)(reason, t))).finally(() => setPending(false));
141
- };
142
127
  const cancel = cancelled => {
143
- void oxyServices.cancelIdentityLink(cancelled.linkId).catch(() => undefined);
128
+ void oxyServices.identity.links.cancel(cancelled.linkId).catch(() => undefined);
144
129
  setStep({
145
130
  name: 'expired'
146
131
  });
@@ -154,6 +139,31 @@ const OxyLinkCommonsPanel = ({
154
139
  });
155
140
  }
156
141
  switch (step.name) {
142
+ case 'confirm':
143
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReauthStep.ReauthStep, {
144
+ title: t('linkCommons.confirmTitle'),
145
+ description: t('linkCommons.confirmDescription'),
146
+ action: "link_commons",
147
+ totpEnabled: methods.data?.totpEnabled ?? false,
148
+ submitLabel: t('linkCommons.confirm'),
149
+ onSubmit: async proof => {
150
+ if (!proof.emailCode) throw new Error(t('reauth.errors.invalid'));
151
+ await oxyServices.identity.links.complete(step.link.linkId, {
152
+ emailCode: proof.emailCode,
153
+ ...(proof.totpCode ? {
154
+ totpCode: proof.totpCode
155
+ } : {})
156
+ });
157
+ setStep({
158
+ name: 'done'
159
+ });
160
+ onLinked?.();
161
+ },
162
+ secondary: {
163
+ label: t('linkCommons.cancel'),
164
+ onPress: () => cancel(step.link)
165
+ }
166
+ });
157
167
  case 'done':
158
168
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreen, {
159
169
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
@@ -187,19 +197,19 @@ const OxyLinkCommonsPanel = ({
187
197
  }],
188
198
  testID: "link-commons-code",
189
199
  children: `${step.code.slice(0, 3)} ${step.code.slice(3)}`
190
- }), error ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowErrorLine, {
191
- message: error
192
- }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowAction, {
200
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowAction, {
193
201
  label: t('linkCommons.confirm'),
194
- onPress: () => confirm(step.link),
195
- pending: pending,
202
+ onPress: () => setStep({
203
+ name: 'confirm',
204
+ link: step.link
205
+ }),
206
+ pending: false,
196
207
  testID: "link-commons-confirm"
197
208
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
198
209
  appearance: "plain",
199
210
  tone: "neutral",
200
211
  size: "lg",
201
212
  fullWidth: true,
202
- disabled: pending,
203
213
  onPress: () => cancel(step.link),
204
214
  testID: "link-commons-cancel",
205
215
  children: t('linkCommons.cancel')
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeQrcodeSvg","_interopRequireDefault","_button","_theme","_typography","_core","_OxyContext","_passkeyFlow","_useI18n","_passkeyClient","_OxyAuthScreen","_accountFlowParts","_jsxRuntime","e","__esModule","default","IDENTITY_LINK_POLL_MS","exports","QR_PLATE_BG","QR_FOREGROUND","QR_SIZE","OxyLinkCommonsPanel","onLinked","theme","useTheme","t","useI18n","user","oxyServices","useOxy","step","setStep","useState","name","pending","setPending","error","setError","alreadyLinked","Boolean","publicKey","open","useCallback","createIdentityLink","then","link","catch","reason","describeAccountFlowError","opened","useRef","useEffect","current","stopped","poll","Date","now","expiresAt","state","getIdentityLink","linkId","status","code","deriveIdentityLinkCode","timer","setTimeout","clearTimeout","confirm","confirmed","isPasskeySupported","Error","PASSKEY_UNSUPPORTED_MESSAGE","options","getIdentityLinkAssertionOptions","challenge","assertion","runAuthenticationCeremony","completeIdentityLink","finally","cancel","cancelled","cancelIdentityLink","undefined","jsx","OxyAuthScreen","children","OxyAuthScreenHeader","title","description","jsxs","AccountFlowErrorLine","message","AccountFlowAction","label","onPress","testID","Text","accessibilityLabel","split","join","style","styles","color","colors","text","slice","Button","appearance","tone","size","fullWidth","disabled","View","plateRow","plate","borderColor","border","value","qrPayload","backgroundColor","AccountFlowNote","ActivityIndicator","primary","StyleSheet","create","alignItems","padding","borderRadius","borderWidth","hairlineWidth","fontSize","lineHeight","fontWeight","letterSpacing","textAlign"],"sourceRoot":"../../../../../src","sources":["ui/components/signIn/OxyLinkCommonsPanel.tsx"],"mappings":";;;;;;AAcA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AAEA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,cAAA,GAAAX,OAAA;AACA,IAAAY,cAAA,GAAAZ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AA,eAC3B,IAAAzE,WAAA,CAAAuE,GAAA,EAACpF,YAAA,CAAA0H,iBAAiB;YAACZ,IAAI,EAAC,OAAO;YAACP,KAAK,EAAE/E,KAAK,CAACgF,MAAM,CAACmB;UAAQ,CAAE;QAAC,CAC3D,CAAC;MAAA,CACM,CAAC;EAEtB;AACF,CAAC;AAACzG,OAAA,CAAAI,mBAAA,GAAAA,mBAAA;AAEF,MAAMgF,MAAM,GAAGsB,uBAAU,CAACC,MAAM,CAAC;EAC/BX,QAAQ,EAAE;IACRY,UAAU,EAAE;EACd,CAAC;EACDX,KAAK,EAAE;IACLY,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAEL,uBAAU,CAACM,aAAa;IACrCV,eAAe,EAAErG;EACnB,CAAC;EACD4C,IAAI,EAAE;IACJoE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE,CAAC;IAChBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeQrcodeSvg","_interopRequireDefault","_button","_theme","_typography","_crypto","_OxyContext","_useAuthMethods","_useI18n","_OxyAuthScreen","_ReauthStep","_accountFlowParts","_jsxRuntime","e","__esModule","default","IDENTITY_LINK_POLL_MS","exports","QR_PLATE_BG","QR_FOREGROUND","QR_SIZE","OxyLinkCommonsPanel","onLinked","theme","useTheme","t","useI18n","user","oxyServices","useOxy","step","setStep","useState","name","error","setError","alreadyLinked","Boolean","publicKey","methods","useSignInMethods","enabled","open","useCallback","identity","links","create","then","link","catch","reason","describeSignInError","opened","useRef","useEffect","current","stopped","poll","Date","now","expiresAt","state","get","linkId","status","code","deriveIdentityLinkCode","timer","setTimeout","clearTimeout","cancel","cancelled","undefined","jsx","OxyAuthScreen","children","OxyAuthScreenHeader","title","description","ReauthStep","action","totpEnabled","data","submitLabel","onSubmit","proof","emailCode","Error","complete","totpCode","secondary","label","onPress","jsxs","AccountFlowErrorLine","message","AccountFlowAction","pending","testID","Text","accessibilityLabel","split","join","style","styles","color","colors","text","slice","Button","appearance","tone","size","fullWidth","View","plateRow","plate","borderColor","border","value","qrPayload","backgroundColor","AccountFlowNote","ActivityIndicator","primary","StyleSheet","alignItems","padding","borderRadius","borderWidth","hairlineWidth","fontSize","lineHeight","fontWeight","letterSpacing","textAlign"],"sourceRoot":"../../../../../src","sources":["ui/components/signIn/OxyLinkCommonsPanel.tsx"],"mappings":";;;;;;AAcA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAEA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,cAAA,GAAAX,OAAA;AACA,IAAAY,WAAA,GAAAZ,OAAA;AACA,IAAAa,iBAAA,GAAAb,OAAA;AAAmH,IAAAc,WAAA,GAAAd,OAAA;AAAA,SAAAG,uBAAAY,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA3BnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkBA;AACO,MAAMG,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG,IAAI;;AAEzC;AACA,MAAME,WAAW,GAAG,SAAS;AAC7B,MAAMC,aAAa,GAAG,SAAS;AAC/B,MAAMC,OAAO,GAAG,GAAG;AAeZ,MAAMC,mBAAuD,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EACvF,MAAMC,KAAK,GAAG,IAAAC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,EAAE;EACd,CAAC;EACDV,KAAK,EAAE;IACLW,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAEJ,uBAAU,CAACK,aAAa;IACrCT,eAAe,EAAEvG;EACnB,CAAC;EACD+C,IAAI,EAAE;IACJkE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE,CAAC;IAChBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.OxyPasswordPanel = void 0;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _switch = require("@oxy.so/bloom/switch");
10
+ var _theme = require("@oxy.so/bloom/theme");
11
+ var _toast = require("@oxy.so/bloom/toast");
12
+ var _typography = require("@oxy.so/bloom/typography");
13
+ var _contracts = require("@oxy.so/contracts");
14
+ var _reactQuery = require("@tanstack/react-query");
15
+ var _OxyContext = require("../../context/OxyContext.js");
16
+ var _useAuthMethods = require("../../hooks/queries/useAuthMethods.js");
17
+ var _queryKeys = require("../../hooks/queries/queryKeys.js");
18
+ var _useI18n = require("../../hooks/useI18n.js");
19
+ var _OxyAuthScreen = require("./OxyAuthScreen.js");
20
+ var _ReauthStep = require("./ReauthStep.js");
21
+ var _accountFlowParts = require("./accountFlowParts.js");
22
+ var _jsxRuntime = require("react/jsx-runtime");
23
+ /**
24
+ * Setting or changing the account's password, from its settings. A password
25
+ * is optional: the account signs in with a code by email without one. The
26
+ * change is confirmed with the current password (when there is one) or a code
27
+ * sent to the account's email, plus the authenticator's code when it has one.
28
+ */
29
+
30
+ const OxyPasswordPanel = ({
31
+ onDone,
32
+ onCancel
33
+ }) => {
34
+ const theme = (0, _theme.useTheme)();
35
+ const {
36
+ t
37
+ } = (0, _useI18n.useI18n)();
38
+ const {
39
+ oxyServices,
40
+ user
41
+ } = (0, _OxyContext.useOxy)();
42
+ const queryClient = (0, _reactQuery.useQueryClient)();
43
+ const keyed = Boolean(user?.publicKey);
44
+ const methods = (0, _useAuthMethods.useSignInMethods)({
45
+ enabled: !keyed
46
+ });
47
+ const [password, setPassword] = (0, _react.useState)('');
48
+ const [repeat, setRepeat] = (0, _react.useState)('');
49
+ const [signOutOthers, setSignOutOthers] = (0, _react.useState)(false);
50
+ if (keyed) {
51
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreen, {
52
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
53
+ title: t('signInSecurity.password.title'),
54
+ description: t('linkCommons.already')
55
+ })
56
+ });
57
+ }
58
+ if (!methods.data) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthLoading, {});
59
+ const hasPassword = methods.data.hasPassword;
60
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ReauthStep.ReauthStep, {
61
+ title: hasPassword ? t('signInSecurity.password.changeTitle') : t('signInSecurity.password.setTitle'),
62
+ description: t('signInSecurity.password.description', {
63
+ min: _contracts.PASSWORD_MIN_LENGTH
64
+ }),
65
+ action: "change_password",
66
+ allowPassword: hasPassword,
67
+ totpEnabled: methods.data.totpEnabled,
68
+ submitLabel: t('signInSecurity.password.save'),
69
+ validate: () => {
70
+ if (password.length < _contracts.PASSWORD_MIN_LENGTH || password.length > _contracts.PASSWORD_MAX_LENGTH) {
71
+ return t('signInSecurity.password.tooShort', {
72
+ min: _contracts.PASSWORD_MIN_LENGTH
73
+ });
74
+ }
75
+ return password === repeat ? null : t('signInSecurity.password.mismatch');
76
+ },
77
+ onSubmit: async reauth => {
78
+ await oxyServices.auth.password.set({
79
+ newPassword: password,
80
+ reauth,
81
+ revokeOtherSessions: signOutOthers
82
+ });
83
+ void queryClient.invalidateQueries({
84
+ queryKey: _queryKeys.queryKeys.signInMethods.all
85
+ });
86
+ _toast.toast.success(t('signInSecurity.password.saved'));
87
+ onDone?.();
88
+ },
89
+ secondary: onCancel ? {
90
+ label: t('common.cancel'),
91
+ onPress: onCancel
92
+ } : undefined,
93
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowField, {
94
+ label: t('signInSecurity.password.newLabel'),
95
+ value: password,
96
+ onChange: setPassword,
97
+ onSubmit: () => undefined,
98
+ error: null,
99
+ autoComplete: "new-password",
100
+ secureTextEntry: true,
101
+ testID: "password-new"
102
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowField, {
103
+ label: t('signInSecurity.password.repeatLabel'),
104
+ value: repeat,
105
+ onChange: setRepeat,
106
+ onSubmit: () => undefined,
107
+ error: null,
108
+ autoComplete: "new-password",
109
+ secureTextEntry: true,
110
+ autoFocus: false,
111
+ testID: "password-repeat"
112
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
113
+ style: styles.row,
114
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
115
+ style: [styles.label, {
116
+ color: theme.colors.text
117
+ }],
118
+ children: t('signInSecurity.password.signOutOthers')
119
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
120
+ value: signOutOthers,
121
+ onValueChange: setSignOutOthers,
122
+ testID: "password-sign-out-others"
123
+ })]
124
+ })]
125
+ });
126
+ };
127
+ exports.OxyPasswordPanel = OxyPasswordPanel;
128
+ const styles = _reactNative.StyleSheet.create({
129
+ row: {
130
+ flexDirection: 'row',
131
+ alignItems: 'center',
132
+ justifyContent: 'space-between',
133
+ gap: 12
134
+ },
135
+ label: {
136
+ flex: 1,
137
+ fontSize: 16,
138
+ lineHeight: 24
139
+ }
140
+ });
141
+ //# sourceMappingURL=OxyPasswordPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_switch","_theme","_toast","_typography","_contracts","_reactQuery","_OxyContext","_useAuthMethods","_queryKeys","_useI18n","_OxyAuthScreen","_ReauthStep","_accountFlowParts","_jsxRuntime","OxyPasswordPanel","onDone","onCancel","theme","useTheme","t","useI18n","oxyServices","user","useOxy","queryClient","useQueryClient","keyed","Boolean","publicKey","methods","useSignInMethods","enabled","password","setPassword","useState","repeat","setRepeat","signOutOthers","setSignOutOthers","jsx","OxyAuthScreen","children","OxyAuthScreenHeader","title","description","data","OxyAuthLoading","hasPassword","jsxs","ReauthStep","min","PASSWORD_MIN_LENGTH","action","allowPassword","totpEnabled","submitLabel","validate","length","PASSWORD_MAX_LENGTH","onSubmit","reauth","auth","set","newPassword","revokeOtherSessions","invalidateQueries","queryKey","queryKeys","signInMethods","all","toast","success","secondary","label","onPress","undefined","AccountFlowField","value","onChange","error","autoComplete","secureTextEntry","testID","autoFocus","View","style","styles","row","Text","color","colors","text","Switch","onValueChange","exports","StyleSheet","create","flexDirection","alignItems","justifyContent","gap","flex","fontSize","lineHeight"],"sourceRoot":"../../../../../src","sources":["ui/components/signIn/OxyPasswordPanel.tsx"],"mappings":";;;;;;AAQA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,QAAA,GAAAX,OAAA;AACA,IAAAY,cAAA,GAAAZ,OAAA;AACA,IAAAa,WAAA,GAAAb,OAAA;AACA,IAAAc,iBAAA,GAAAd,OAAA;AAAsD,IAAAe,WAAA,GAAAf,OAAA;AAtBtD;AACA;AACA;AACA;AACA;AACA;;AA0BO,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