@getpara/react-sdk-lite 2.12.0 → 2.13.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 (306) hide show
  1. package/dist/css/modal.css +0 -3
  2. package/dist/index.d.ts +1 -0
  3. package/dist/modal/ParaModal.js +46 -98
  4. package/dist/modal/components/Body/Body.d.ts +1 -2
  5. package/dist/modal/components/Body/Body.js +119 -231
  6. package/dist/modal/components/Controls/ChainSelect.js +1 -1
  7. package/dist/modal/components/Controls/Controls.js +2 -4
  8. package/dist/modal/components/Footer/Footer.js +3 -12
  9. package/dist/modal/components/Header/Header.js +13 -14
  10. package/dist/modal/components/Header/hooks/useStepTitle.d.ts +1 -1
  11. package/dist/modal/components/Header/hooks/useStepTitle.js +88 -71
  12. package/dist/modal/components/ModalContent/ModalContent.d.ts +1 -1
  13. package/dist/modal/components/ModalContent/ModalContent.js +6 -14
  14. package/dist/modal/components/OnRampComponents/AddingFunds.js +2 -2
  15. package/dist/modal/components/WalletCard/WalletCard.js +9 -9
  16. package/dist/modal/components/WalletSelectOld/WalletSelectOld.js +7 -5
  17. package/dist/modal/components/{Account → flows/account/Account}/Account.js +30 -27
  18. package/dist/modal/components/{Account/AccountHeader.d.ts → flows/account/Account/Header.d.ts} +1 -1
  19. package/dist/modal/components/{Account/AccountHeader.js → flows/account/Account/Header.js} +8 -8
  20. package/dist/modal/components/{Account/AccountWalletSelect.d.ts → flows/account/Account/WalletSelect.d.ts} +1 -1
  21. package/dist/modal/components/{Account/AccountWalletSelect.js → flows/account/Account/WalletSelect.js} +13 -11
  22. package/dist/modal/components/flows/account/AccountFlow/AccountFlow.d.ts +12 -0
  23. package/dist/modal/components/flows/account/AccountFlow/AccountFlow.js +126 -0
  24. package/dist/modal/components/flows/account/AccountProvider/AccountContext.d.ts +11 -0
  25. package/dist/modal/components/flows/account/AccountProvider/AccountContext.js +42 -0
  26. package/dist/modal/components/flows/account/AccountProvider/AccountProvider.d.ts +4 -0
  27. package/dist/modal/components/flows/account/AccountProvider/AccountProvider.js +110 -0
  28. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFunds.js +12 -12
  29. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsAsset.js +3 -3
  30. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsAwaiting.js +7 -8
  31. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsContext.d.ts +1 -1
  32. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsContext.js +11 -11
  33. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsDone.js +8 -9
  34. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsNetwork.js +2 -2
  35. package/dist/modal/components/flows/account/AddFunds/AddFundsProvider.d.ts +1 -0
  36. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsProvider.js +13 -12
  37. package/dist/modal/components/flows/account/AddFunds/AddFundsReceive.d.ts +1 -0
  38. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsReceive.js +10 -10
  39. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsSettings.js +10 -10
  40. package/dist/modal/components/{AddFunds → flows/account/AddFunds}/MoonPayEmbed.js +1 -1
  41. package/dist/modal/components/flows/account/AddFunds/utils.d.ts +3 -0
  42. package/dist/modal/components/flows/account/AddFunds/utils.js +16 -0
  43. package/dist/modal/components/{ChainSwitch → flows/account/ChainSwitch}/ChainSwitch.js +7 -10
  44. package/dist/modal/components/{ChainSwitch → flows/account/ChainSwitch}/config.js +1 -1
  45. package/dist/modal/components/{Account → flows/account/Profile}/AccountMonitorTx.js +13 -13
  46. package/dist/modal/components/flows/account/Profile/FarcasterLink.d.ts +2 -0
  47. package/dist/modal/components/{OAuth → flows/account/Profile}/FarcasterLink.js +6 -6
  48. package/dist/modal/components/{Account/AccountProfile.d.ts → flows/account/Profile/Profile.d.ts} +1 -1
  49. package/dist/modal/components/{Account/AccountProfile.js → flows/account/Profile/Profile.js} +20 -24
  50. package/dist/modal/components/{Account/AccountProfileEntry.js → flows/account/Profile/ProfileEntry.js} +13 -15
  51. package/dist/modal/components/flows/account/Profile/ProfileLink.d.ts +1 -0
  52. package/dist/modal/components/{Account/AccountProfileLink.js → flows/account/Profile/ProfileLink.js} +19 -34
  53. package/dist/modal/components/flows/account/Profile/ProfileLinkOptions.d.ts +1 -0
  54. package/dist/modal/components/{Account/AccountProfileLinkOptions.js → flows/account/Profile/ProfileLinkOptions.js} +11 -11
  55. package/dist/modal/components/flows/account/Profile/ProfileUnlink.d.ts +1 -0
  56. package/dist/modal/components/{Account/AccountProfileUnlink.js → flows/account/Profile/ProfileUnlink.js} +6 -6
  57. package/dist/modal/{hooks/useTelegramLogin.d.ts → components/flows/account/Profile/useTelegramLink.d.ts} +1 -5
  58. package/dist/modal/{hooks/useTelegramLogin.js → components/flows/account/Profile/useTelegramLink.js} +15 -22
  59. package/dist/modal/components/{Account/AccountSend → flows/account/Send}/AssetNetwork.js +1 -1
  60. package/dist/modal/components/flows/account/Send/SendAsset.d.ts +1 -0
  61. package/dist/modal/components/{Account/AccountSend/AccountSendAsset.js → flows/account/Send/SendAsset.js} +11 -12
  62. package/dist/modal/components/flows/account/Send/SendForm.d.ts +1 -0
  63. package/dist/modal/components/{Account/AccountSend/AccountSendForm.js → flows/account/Send/SendForm.js} +15 -16
  64. package/dist/modal/components/flows/account/Send/SendNetwork.d.ts +1 -0
  65. package/dist/modal/components/{Account/AccountSend/AccountSendNetwork.js → flows/account/Send/SendNetwork.js} +9 -10
  66. package/dist/modal/components/flows/account/Send/SendNoAssets.d.ts +1 -0
  67. package/dist/modal/components/{Account/AccountSend/AccountSendNoAssets.js → flows/account/Send/SendNoAssets.js} +8 -9
  68. package/dist/modal/components/{Account/AccountSend → flows/account/Send}/context.js +5 -5
  69. package/dist/modal/components/{Account/AccountSend → flows/account/Send}/index.js +11 -11
  70. package/dist/modal/components/flows/account/SwitchWallets/SwitchWallets.d.ts +1 -0
  71. package/dist/modal/components/{SwitchWalletsStep/SwitchWalletsStep.js → flows/account/SwitchWallets/SwitchWallets.js} +4 -4
  72. package/dist/modal/components/flows/account/Wallet/Wallet.d.ts +1 -0
  73. package/dist/modal/components/{Account/AccountWallet.js → flows/account/Wallet/Wallet.js} +11 -12
  74. package/dist/modal/components/flows/auth/AuthFlow/AuthFlow.d.ts +10 -0
  75. package/dist/modal/components/flows/auth/AuthFlow/AuthFlow.js +94 -0
  76. package/dist/modal/components/flows/auth/AuthMain/AuthMain.d.ts +9 -0
  77. package/dist/modal/components/{AuthMainStep/AuthMainStep.js → flows/auth/AuthMain/AuthMain.js} +10 -21
  78. package/dist/modal/components/flows/auth/AuthMain/AuthMainContent.d.ts +9 -0
  79. package/dist/modal/components/{AuthMainStep/AuthMainStepContent.js → flows/auth/AuthMain/AuthMainContent.js} +49 -24
  80. package/dist/modal/components/flows/auth/AwaitingAccountSetup/AwaitingAccountSetup.d.ts +1 -0
  81. package/dist/modal/components/flows/auth/AwaitingAccountSetup/AwaitingAccountSetup.js +31 -0
  82. package/dist/modal/components/flows/auth/AwaitingBiometrics/AwaitingBiometrics.d.ts +1 -0
  83. package/dist/modal/components/flows/auth/AwaitingBiometrics/AwaitingBiometrics.js +21 -0
  84. package/dist/modal/components/flows/auth/AwaitingOAuth/AwaitingOAuth.d.ts +1 -0
  85. package/dist/modal/components/{AwaitingOAuthStep/AwaitingOAuthStep.js → flows/auth/AwaitingOAuth/AwaitingOAuth.js} +4 -4
  86. package/dist/modal/components/flows/auth/AwaitingPassword/AwaitingPassword.d.ts +1 -0
  87. package/dist/modal/components/flows/auth/AwaitingPassword/AwaitingPassword.js +22 -0
  88. package/dist/modal/components/flows/auth/BiometricCreation/BiometricCreation.d.ts +1 -0
  89. package/dist/modal/components/{BiometricCreationStep/BiometricCreationStep.js → flows/auth/BiometricCreation/BiometricCreation.js} +25 -22
  90. package/dist/modal/components/flows/auth/BiometricLogin/BiometricLogin.d.ts +1 -0
  91. package/dist/modal/components/flows/auth/BiometricLogin/BiometricLogin.js +72 -0
  92. package/dist/modal/components/flows/auth/LoginDone/LoginDone.d.ts +5 -0
  93. package/dist/modal/components/{LoginDoneStep/LoginDoneStep.js → flows/auth/LoginDone/LoginDone.js} +9 -13
  94. package/dist/modal/components/{OAuth → flows/auth/OAuth}/OAuth.js +15 -23
  95. package/dist/modal/components/{RecoverySecretStep → flows/auth/RecoverySecretStep}/RecoverySecretStep.js +9 -11
  96. package/dist/modal/components/flows/auth/Setup2FA/Setup2FA.d.ts +5 -0
  97. package/dist/modal/components/{Setup2FAStep/Setup2FAStep.js → flows/auth/Setup2FA/Setup2FA.js} +42 -19
  98. package/dist/modal/components/flows/auth/Verification/Verification.d.ts +1 -0
  99. package/dist/modal/components/flows/auth/Verification/Verification.js +36 -0
  100. package/dist/modal/components/flows/auth/WalletCreationDone/WalletCreationDone.d.ts +6 -0
  101. package/dist/modal/components/{WalletCreationDoneStep/WalletCreationDoneStep.js → flows/auth/WalletCreationDone/WalletCreationDone.js} +19 -46
  102. package/dist/modal/components/{AuthOptions → shared}/AuthOptions.d.ts +2 -2
  103. package/dist/modal/components/{AuthOptions → shared}/AuthOptions.js +18 -15
  104. package/dist/modal/components/{ExternalWalletStep/ExternalWalletStep.d.ts → shared/ConnectExternalWallet/ConnectExternalWallet.d.ts} +1 -1
  105. package/dist/modal/components/{ExternalWalletStep/ExternalWalletStep.js → shared/ConnectExternalWallet/ConnectExternalWallet.js} +16 -36
  106. package/dist/modal/components/{ExternalWalletStep → shared/ConnectExternalWallet}/config.js +1 -1
  107. package/dist/modal/components/{AuthInput/AuthInput.d.ts → shared/EmailOrPhone/EmailOrPhoneInput.d.ts} +4 -4
  108. package/dist/modal/components/{AuthInput/AuthInput.js → shared/EmailOrPhone/EmailOrPhoneInput.js} +14 -10
  109. package/dist/modal/components/{AuthInput → shared/EmailOrPhone}/phoneMasks.js +1 -1
  110. package/dist/modal/components/{ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.d.ts → shared/ExternalWalletNetworkSelect.d.ts} +1 -1
  111. package/dist/modal/components/{ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.js → shared/ExternalWalletNetworkSelect.js} +9 -9
  112. package/dist/modal/components/{ExternalWallets → shared}/ExternalWallets.js +17 -12
  113. package/dist/modal/components/shared/IFrame.d.ts +1 -0
  114. package/dist/modal/components/shared/IFrame.js +87 -0
  115. package/dist/modal/components/{VerificationCodeStep/VerificationCodeStep.d.ts → shared/VerificationCode.d.ts} +3 -4
  116. package/dist/modal/components/{VerificationCodeStep/VerificationCodeStep.js → shared/VerificationCode.js} +4 -28
  117. package/dist/modal/components/shared/VerifyExternalWallet.d.ts +1 -0
  118. package/dist/modal/components/{ExternalWalletVerificationStep/ExternalWalletVerificationStep.js → shared/VerifyExternalWallet.js} +10 -17
  119. package/dist/modal/hooks/index.d.ts +1 -2
  120. package/dist/modal/hooks/index.js +1 -2
  121. package/dist/modal/hooks/useAuthView.d.ts +4 -0
  122. package/dist/modal/hooks/useAuthView.js +115 -0
  123. package/dist/modal/hooks/useCanbGoBack.d.ts +3 -0
  124. package/dist/modal/hooks/useCanbGoBack.js +47 -0
  125. package/dist/modal/{components/AuthInput/hooks → hooks}/useDropdownPosition.js +3 -3
  126. package/dist/modal/hooks/useGoBack.d.ts +4 -1
  127. package/dist/modal/hooks/useGoBack.js +60 -36
  128. package/dist/modal/hooks/useSendMutations.js +4 -5
  129. package/dist/modal/hooks/useTransactionMonitoring.js +8 -8
  130. package/dist/modal/index.d.ts +1 -2
  131. package/dist/modal/index.js +1 -3
  132. package/dist/modal/stores/index.d.ts +0 -1
  133. package/dist/modal/stores/index.js +0 -1
  134. package/dist/modal/types/modalProps.d.ts +18 -8
  135. package/dist/provider/ParaProviderMin.js +34 -38
  136. package/dist/provider/actions/getWallet.d.ts +1 -1
  137. package/dist/provider/actions/index.d.ts +43 -49
  138. package/dist/provider/actions/index.js +4 -0
  139. package/dist/provider/components/CosmosWalletWrapper.js +0 -3
  140. package/dist/provider/components/EvmWalletWrapper.js +0 -3
  141. package/dist/provider/components/ExternalWalletWrapper.js +8 -2
  142. package/dist/provider/hooks/mutations/index.d.ts +2 -0
  143. package/dist/provider/hooks/mutations/index.js +4 -0
  144. package/dist/provider/hooks/mutations/useAddAuthMethod.d.ts +7 -12
  145. package/dist/provider/hooks/mutations/useAuthenticateWithEmailOrPhone.d.ts +34 -0
  146. package/dist/provider/hooks/mutations/useAuthenticateWithEmailOrPhone.js +28 -0
  147. package/dist/provider/hooks/mutations/useAuthenticateWithOAuth.d.ts +34 -0
  148. package/dist/provider/hooks/mutations/useAuthenticateWithOAuth.js +28 -0
  149. package/dist/provider/hooks/mutations/useClaimPregenWallets.d.ts +7 -13
  150. package/dist/provider/hooks/mutations/useClaimPregenWallets.js +4 -1
  151. package/dist/provider/hooks/mutations/useCreateGuestWallets.d.ts +7 -6
  152. package/dist/provider/hooks/mutations/useCreateGuestWallets.js +6 -3
  153. package/dist/provider/hooks/mutations/useCreatePregenWallet.d.ts +7 -93
  154. package/dist/provider/hooks/mutations/useCreatePregenWallet.js +4 -1
  155. package/dist/provider/hooks/mutations/useCreatePregenWalletPerType.d.ts +7 -15
  156. package/dist/provider/hooks/mutations/useCreateWallet.d.ts +7 -15
  157. package/dist/provider/hooks/mutations/useCreateWallet.js +4 -1
  158. package/dist/provider/hooks/mutations/useCreateWalletPerType.d.ts +7 -27
  159. package/dist/provider/hooks/mutations/useEnable2fa.d.ts +7 -12
  160. package/dist/provider/hooks/mutations/useExportPrivateKey.d.ts +2 -7
  161. package/dist/provider/hooks/mutations/useHasPregenWallet.d.ts +7 -13
  162. package/dist/provider/hooks/mutations/useIssueJwt.d.ts +7 -21
  163. package/dist/provider/hooks/mutations/useKeepSessionAlive.d.ts +6 -7
  164. package/dist/provider/hooks/mutations/useKeepSessionAlive.js +2 -2
  165. package/dist/provider/hooks/mutations/useLoginExternalWallet.d.ts +7 -25
  166. package/dist/provider/hooks/mutations/useLoginExternalWallet.js +4 -1
  167. package/dist/provider/hooks/mutations/useLogout.d.ts +7 -12
  168. package/dist/provider/hooks/mutations/useResendVerificationCode.d.ts +7 -13
  169. package/dist/provider/hooks/mutations/useResendVerificationCode.js +4 -1
  170. package/dist/provider/hooks/mutations/useSetup2fa.d.ts +7 -7
  171. package/dist/provider/hooks/mutations/useSetup2fa.js +2 -2
  172. package/dist/provider/hooks/mutations/useSignMessage.d.ts +7 -31
  173. package/dist/provider/hooks/mutations/useSignTransaction.d.ts +7 -31
  174. package/dist/provider/hooks/mutations/useSignTransaction.js +4 -1
  175. package/dist/provider/hooks/mutations/useSignUpOrLogIn.d.ts +7 -19
  176. package/dist/provider/hooks/mutations/useSignUpOrLogIn.js +4 -1
  177. package/dist/provider/hooks/mutations/useSwitchWallets.d.ts +7 -30
  178. package/dist/provider/hooks/mutations/useSwitchWallets.js +4 -1
  179. package/dist/provider/hooks/mutations/useUpdatePregenWalletIdentifier.d.ts +7 -15
  180. package/dist/provider/hooks/mutations/useUpdatePregenWalletIdentifier.js +4 -1
  181. package/dist/provider/hooks/mutations/useVerify2fa.d.ts +7 -30
  182. package/dist/provider/hooks/mutations/useVerifyExternalWallet.d.ts +7 -19
  183. package/dist/provider/hooks/mutations/useVerifyExternalWallet.js +4 -1
  184. package/dist/provider/hooks/mutations/useVerifyFarcaster.d.ts +7 -31
  185. package/dist/provider/hooks/mutations/useVerifyFarcaster.js +4 -1
  186. package/dist/provider/hooks/mutations/useVerifyNewAccount.d.ts +7 -66
  187. package/dist/provider/hooks/mutations/useVerifyNewAccount.js +4 -1
  188. package/dist/provider/hooks/mutations/useVerifyOAuth.d.ts +7 -37
  189. package/dist/provider/hooks/mutations/useVerifyTelegram.d.ts +7 -22
  190. package/dist/provider/hooks/mutations/useWaitForLogin.d.ts +7 -30
  191. package/dist/provider/hooks/mutations/useWaitForLogin.js +4 -1
  192. package/dist/provider/hooks/mutations/useWaitForSignup.d.ts +7 -18
  193. package/dist/provider/hooks/mutations/useWaitForWalletCreation.d.ts +7 -27
  194. package/dist/provider/hooks/queries/useIsFullyLoggedIn.d.ts +4 -1
  195. package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +6 -1
  196. package/dist/provider/hooks/queries/useLinkedAccounts.d.ts +2 -4
  197. package/dist/provider/hooks/queries/useParaStatus.d.ts +0 -1
  198. package/dist/provider/hooks/queries/useParaStatus.js +0 -2
  199. package/dist/provider/hooks/queries/useWallet.d.ts +1 -1
  200. package/dist/provider/hooks/utils/useEventListeners.js +0 -7
  201. package/dist/provider/hooks/utils/useFormattedBiometricHints.d.ts +1 -0
  202. package/dist/provider/hooks/utils/useFormattedBiometricHints.js +9 -5
  203. package/dist/provider/hooks/utils/useModal.d.ts +2 -2
  204. package/dist/provider/hooks/utils/useModal.js +9 -8
  205. package/dist/provider/hooks/utils/useWalletState.d.ts +3 -3
  206. package/dist/provider/hooks/utils/useWalletState.js +14 -6
  207. package/dist/provider/providers/AccountLinkProvider.js +21 -19
  208. package/dist/provider/providers/AuthProvider/AuthContext.d.ts +19 -0
  209. package/dist/provider/providers/AuthProvider/AuthContext.js +35 -0
  210. package/dist/provider/providers/AuthProvider/AuthProvider.d.ts +9 -0
  211. package/dist/provider/providers/AuthProvider/AuthProvider.js +261 -0
  212. package/dist/provider/providers/ExternalWalletProvider.d.ts +12 -4
  213. package/dist/provider/providers/ExternalWalletProvider.js +285 -283
  214. package/dist/provider/stores/getters.d.ts +1 -1
  215. package/dist/provider/stores/getters.js +5 -5
  216. package/dist/provider/stores/setters.js +2 -2
  217. package/dist/provider/stores/slices/accountFlow.d.ts +3 -0
  218. package/dist/provider/stores/slices/accountFlow.js +30 -0
  219. package/dist/provider/stores/slices/authFlow.d.ts +3 -0
  220. package/dist/provider/stores/slices/authFlow.js +63 -0
  221. package/dist/provider/stores/slices/externalWallets.js +10 -0
  222. package/dist/provider/stores/slices/index.d.ts +4 -0
  223. package/dist/provider/stores/slices/index.js +4 -0
  224. package/dist/provider/stores/slices/modal.js +8 -2
  225. package/dist/provider/stores/slices/onRamp.d.ts +3 -0
  226. package/dist/provider/stores/slices/onRamp.js +20 -0
  227. package/dist/provider/stores/slices/paraState.d.ts +3 -0
  228. package/dist/provider/stores/slices/paraState.js +9 -0
  229. package/dist/provider/stores/types.d.ts +117 -5
  230. package/dist/provider/stores/types.js +9 -0
  231. package/dist/provider/stores/useStore.d.ts +5 -3
  232. package/dist/provider/stores/useStore.js +15 -8
  233. package/package.json +8 -8
  234. package/dist/modal/components/Account/AccountProfileLink.d.ts +0 -1
  235. package/dist/modal/components/Account/AccountProfileLinkOptions.d.ts +0 -1
  236. package/dist/modal/components/Account/AccountProfileUnlink.d.ts +0 -1
  237. package/dist/modal/components/Account/AccountSend/AccountSendAsset.d.ts +0 -1
  238. package/dist/modal/components/Account/AccountSend/AccountSendForm.d.ts +0 -1
  239. package/dist/modal/components/Account/AccountSend/AccountSendNetwork.d.ts +0 -1
  240. package/dist/modal/components/Account/AccountSend/AccountSendNoAssets.d.ts +0 -1
  241. package/dist/modal/components/Account/AccountWallet.d.ts +0 -1
  242. package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +0 -1
  243. package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +0 -1
  244. package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +0 -9
  245. package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +0 -9
  246. package/dist/modal/components/AwaitingAccountStep/AwaitingAccountStep.d.ts +0 -1
  247. package/dist/modal/components/AwaitingAccountStep/AwaitingAccountStep.js +0 -21
  248. package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.d.ts +0 -1
  249. package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.js +0 -18
  250. package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.d.ts +0 -1
  251. package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.d.ts +0 -1
  252. package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +0 -21
  253. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +0 -5
  254. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +0 -24
  255. package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.d.ts +0 -1
  256. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.d.ts +0 -1
  257. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +0 -67
  258. package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.d.ts +0 -1
  259. package/dist/modal/components/Hero/Hero.d.ts +0 -1
  260. package/dist/modal/components/Hero/Hero.js +0 -118
  261. package/dist/modal/components/IFrameStep/IFrameStep.d.ts +0 -1
  262. package/dist/modal/components/IFrameStep/IFrameStep.js +0 -83
  263. package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +0 -5
  264. package/dist/modal/components/OAuth/FarcasterLink.d.ts +0 -2
  265. package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +0 -1
  266. package/dist/modal/components/OAuth/FarcasterOAuthStep.js +0 -53
  267. package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +0 -8
  268. package/dist/modal/components/OAuth/TelegramOAuthStep.js +0 -91
  269. package/dist/modal/components/Setup2FAStep/Setup2FAStep.d.ts +0 -5
  270. package/dist/modal/components/SwitchWalletsStep/SwitchWalletsStep.d.ts +0 -1
  271. package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.d.ts +0 -5
  272. package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +0 -27
  273. package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.d.ts +0 -6
  274. package/dist/modal/hooks/useFarcasterLogin.d.ts +0 -9
  275. package/dist/modal/hooks/useFarcasterLogin.js +0 -77
  276. package/dist/modal/stores/modal/actions.d.ts +0 -3
  277. package/dist/modal/stores/modal/actions.js +0 -146
  278. package/dist/modal/stores/modal/useModalStore.d.ts +0 -120
  279. package/dist/modal/stores/modal/useModalStore.js +0 -81
  280. package/dist/modal/utils/steps.d.ts +0 -162
  281. package/dist/modal/utils/steps.js +0 -335
  282. package/dist/provider/providers/AuthProvider.d.ts +0 -43
  283. package/dist/provider/providers/AuthProvider.js +0 -777
  284. /package/dist/modal/components/{Account → flows/account/Account}/Account.d.ts +0 -0
  285. /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFunds.d.ts +0 -0
  286. /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsAsset.d.ts +0 -0
  287. /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsAwaiting.d.ts +0 -0
  288. /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsDone.d.ts +0 -0
  289. /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsNetwork.d.ts +0 -0
  290. /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsSettings.d.ts +0 -0
  291. /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/MoonPayEmbed.d.ts +0 -0
  292. /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/index.d.ts +0 -0
  293. /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/index.js +0 -0
  294. /package/dist/modal/components/{ChainSwitch → flows/account/ChainSwitch}/ChainSwitch.d.ts +0 -0
  295. /package/dist/modal/components/{ChainSwitch → flows/account/ChainSwitch}/config.d.ts +0 -0
  296. /package/dist/modal/components/{Account → flows/account/Profile}/AccountMonitorTx.d.ts +0 -0
  297. /package/dist/modal/components/{Account/AccountProfileEntry.d.ts → flows/account/Profile/ProfileEntry.d.ts} +0 -0
  298. /package/dist/modal/components/{Account/AccountSend → flows/account/Send}/AssetNetwork.d.ts +0 -0
  299. /package/dist/modal/components/{Account/AccountSend → flows/account/Send}/context.d.ts +0 -0
  300. /package/dist/modal/components/{Account/AccountSend → flows/account/Send}/index.d.ts +0 -0
  301. /package/dist/modal/components/{OAuth → flows/auth/OAuth}/OAuth.d.ts +0 -0
  302. /package/dist/modal/components/{RecoverySecretStep → flows/auth/RecoverySecretStep}/RecoverySecretStep.d.ts +0 -0
  303. /package/dist/modal/components/{ExternalWalletStep → shared/ConnectExternalWallet}/config.d.ts +0 -0
  304. /package/dist/modal/components/{AuthInput → shared/EmailOrPhone}/phoneMasks.d.ts +0 -0
  305. /package/dist/modal/components/{ExternalWallets → shared}/ExternalWallets.d.ts +0 -0
  306. /package/dist/modal/{components/AuthInput/hooks → hooks}/useDropdownPosition.d.ts +0 -0
@@ -1,3 +1,4 @@
1
+ import type { Enable2faParams } from '@getpara/web-sdk';
1
2
  export declare const ENABLE_2FA_KEY = "ENABLE_2FA";
2
3
  /**
3
4
  * React hook for the `enable2fa` mutation.
@@ -14,26 +15,20 @@ export declare const ENABLE_2FA_KEY = "ENABLE_2FA";
14
15
  * await enable2faAsync({ ...params });
15
16
  */
16
17
  export declare const useEnable2fa: () => {
17
- status: "idle" | "pending" | "error" | "success";
18
- error: Error | null;
19
18
  data: void | undefined;
20
- isSuccess: boolean;
21
- variables: {
22
- verificationCode: string;
23
- } | undefined;
19
+ variables: Enable2faParams | undefined;
20
+ error: Error | null;
24
21
  isError: boolean;
25
22
  isIdle: boolean;
26
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
27
26
  reset: () => void;
28
27
  context: unknown;
29
28
  failureCount: number;
30
29
  failureReason: Error | null;
31
30
  isPaused: boolean;
32
31
  submittedAt: number;
33
- enable2fa: import("@tanstack/react-query").UseMutateFunction<void, Error, {
34
- verificationCode: string;
35
- }, unknown>;
36
- enable2faAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, {
37
- verificationCode: string;
38
- }, unknown>;
32
+ enable2fa: import("@tanstack/react-query").UseMutateFunction<void, Error, Enable2faParams, unknown>;
33
+ enable2faAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, Enable2faParams, unknown>;
39
34
  };
@@ -1,3 +1,4 @@
1
+ import type { ExportPrivateKeyParams } from '@getpara/web-sdk';
1
2
  export declare const EXPORT_PRIVATE_KEY_KEY = "EXPORT_PRIVATE_KEY";
2
3
  /**
3
4
  * React hook for the `exportPrivateKey` mutation.
@@ -6,10 +7,4 @@ export declare const EXPORT_PRIVATE_KEY_KEY = "EXPORT_PRIVATE_KEY";
6
7
  * const { mutateAsync: exportPrivateKeyAsync } = useExportPrivateKey();
7
8
  * await exportPrivateKeyAsync({ walletId: '...' });
8
9
  */
9
- export declare const useExportPrivateKey: () => import("@tanstack/react-query").UseMutationResult<{
10
- popupWindow?: Window;
11
- url: string;
12
- }, Error, {
13
- walletId?: string;
14
- shouldOpenPopup?: boolean;
15
- } | undefined, unknown>;
10
+ export declare const useExportPrivateKey: () => import("@tanstack/react-query").UseMutationResult<import("@getpara/web-sdk").ExportPrivateKeyResponse, Error, ExportPrivateKeyParams, unknown>;
@@ -1,4 +1,4 @@
1
- import { Compute } from '../../types/utils.js';
1
+ import type { HasPregenWalletParams } from '@getpara/web-sdk';
2
2
  export declare const HAS_PREGEN_WALLET_KEY = "HAS_PREGEN_WALLET";
3
3
  /**
4
4
  * React hook for the `hasPregenWallet` mutation.
@@ -15,26 +15,20 @@ export declare const HAS_PREGEN_WALLET_KEY = "HAS_PREGEN_WALLET";
15
15
  * await hasPregenWalletAsync({ ...params });
16
16
  */
17
17
  export declare const useHasPregenWallet: () => {
18
- status: "idle" | "pending" | "error" | "success";
18
+ data: boolean | undefined;
19
+ variables: HasPregenWalletParams | undefined;
19
20
  error: Error | null;
20
- data: Compute<boolean> | undefined;
21
- isSuccess: boolean;
22
- variables: {
23
- pregenId: import("@getpara/web-sdk").PregenAuth;
24
- } | undefined;
25
21
  isError: boolean;
26
22
  isIdle: boolean;
27
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
28
26
  reset: () => void;
29
27
  context: unknown;
30
28
  failureCount: number;
31
29
  failureReason: Error | null;
32
30
  isPaused: boolean;
33
31
  submittedAt: number;
34
- hasPregenWallet: import("@tanstack/react-query").UseMutateFunction<Compute<boolean>, Error, {
35
- pregenId: import("@getpara/web-sdk").PregenAuth;
36
- }, unknown>;
37
- hasPregenWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<boolean>, Error, {
38
- pregenId: import("@getpara/web-sdk").PregenAuth;
39
- }, unknown>;
32
+ hasPregenWallet: import("@tanstack/react-query").UseMutateFunction<boolean, Error, HasPregenWalletParams, unknown>;
33
+ hasPregenWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<boolean, Error, HasPregenWalletParams, unknown>;
40
34
  };
@@ -1,3 +1,4 @@
1
+ import type { IssueJwtParams, IssueJwtResponse } from '@getpara/web-sdk';
1
2
  export declare const ISSUE_JWT_KEY = "ISSUE_JWT";
2
3
  /**
3
4
  * React hook for the `issueJwt` mutation.
@@ -14,35 +15,20 @@ export declare const ISSUE_JWT_KEY = "ISSUE_JWT";
14
15
  * await issueJwtAsync({ ...params });
15
16
  */
16
17
  export declare const useIssueJwt: () => {
17
- status: "idle" | "pending" | "error" | "success";
18
+ data: IssueJwtResponse | undefined;
19
+ variables: void | IssueJwtParams | undefined;
18
20
  error: Error | null;
19
- data: {
20
- token: string;
21
- keyId: string;
22
- } | undefined;
23
- isSuccess: boolean;
24
- variables: void | {
25
- keyIndex?: number | undefined;
26
- } | undefined;
27
21
  isError: boolean;
28
22
  isIdle: boolean;
29
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
30
26
  reset: () => void;
31
27
  context: unknown;
32
28
  failureCount: number;
33
29
  failureReason: Error | null;
34
30
  isPaused: boolean;
35
31
  submittedAt: number;
36
- issueJwt: import("@tanstack/react-query").UseMutateFunction<{
37
- token: string;
38
- keyId: string;
39
- }, Error, void | {
40
- keyIndex?: number | undefined;
41
- }, unknown>;
42
- issueJwtAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
43
- token: string;
44
- keyId: string;
45
- }, Error, void | {
46
- keyIndex?: number | undefined;
47
- }, unknown>;
32
+ issueJwt: import("@tanstack/react-query").UseMutateFunction<IssueJwtResponse, Error, void | IssueJwtParams, unknown>;
33
+ issueJwtAsync: import("@tanstack/react-query").UseMutateAsyncFunction<IssueJwtResponse, Error, void | IssueJwtParams, unknown>;
48
34
  };
@@ -1,4 +1,3 @@
1
- import { Compute } from '../../types/utils.js';
2
1
  export declare const KEEP_SESSION_ALIVE_KEY = "KEEP_SESSION_ALIVE";
3
2
  /**
4
3
  * React hook for the `keepSessionAlive` mutation.
@@ -15,20 +14,20 @@ export declare const KEEP_SESSION_ALIVE_KEY = "KEEP_SESSION_ALIVE";
15
14
  * await keepSessionAliveAsync({ ...params });
16
15
  */
17
16
  export declare const useKeepSessionAlive: () => {
18
- status: "idle" | "pending" | "error" | "success";
19
- error: Error | null;
20
- data: Compute<boolean> | undefined;
21
- isSuccess: boolean;
17
+ data: boolean | undefined;
22
18
  variables: void | undefined;
19
+ error: Error | null;
23
20
  isError: boolean;
24
21
  isIdle: boolean;
25
22
  isPending: boolean;
23
+ isSuccess: boolean;
24
+ status: "pending" | "error" | "idle" | "success";
26
25
  reset: () => void;
27
26
  context: unknown;
28
27
  failureCount: number;
29
28
  failureReason: Error | null;
30
29
  isPaused: boolean;
31
30
  submittedAt: number;
32
- keepSessionAlive: import("@tanstack/react-query").UseMutateFunction<Compute<boolean>, Error, void, unknown>;
33
- keepSessionAliveAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<boolean>, Error, void, unknown>;
31
+ keepSessionAlive: import("@tanstack/react-query").UseMutateFunction<boolean, Error, void, unknown>;
32
+ keepSessionAliveAsync: import("@tanstack/react-query").UseMutateAsyncFunction<boolean, Error, void, unknown>;
34
33
  };
@@ -11,9 +11,9 @@ const useKeepSessionAlive = () => {
11
11
  const para = useClient();
12
12
  const mutation = useMutation({
13
13
  mutationKey: [KEEP_SESSION_ALIVE_KEY],
14
- mutationFn: (args) => __async(void 0, null, function* () {
14
+ mutationFn: () => __async(void 0, null, function* () {
15
15
  try {
16
- const result = yield keepSessionAlive(para, args);
16
+ const result = yield keepSessionAlive(para);
17
17
  return result;
18
18
  } catch (error) {
19
19
  throw error;
@@ -1,4 +1,4 @@
1
- import { Compute } from '../../types/utils.js';
1
+ import type { LoginExternalWalletParams, LoginExternalWalletResponse } from '@getpara/web-sdk';
2
2
  export declare const LOGIN_EXTERNAL_WALLET_KEY = "LOGIN_EXTERNAL_WALLET";
3
3
  /**
4
4
  * React hook for the `loginExternalWallet` mutation.
@@ -15,38 +15,20 @@ export declare const LOGIN_EXTERNAL_WALLET_KEY = "LOGIN_EXTERNAL_WALLET";
15
15
  * await loginExternalWalletAsync({ ...params });
16
16
  */
17
17
  export declare const useLoginExternalWallet: () => {
18
- status: "idle" | "pending" | "error" | "success";
18
+ data: LoginExternalWalletResponse | undefined;
19
+ variables: LoginExternalWalletParams | undefined;
19
20
  error: Error | null;
20
- data: Compute<import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateVerifyOrLogin> | undefined;
21
- isSuccess: boolean;
22
- variables: {
23
- portalTheme?: import("@getpara/web-sdk").Theme | undefined;
24
- useShortUrls?: boolean | undefined;
25
- externalWallet: import("@getpara/web-sdk").ExternalWalletInfo | import("@getpara/web-sdk").ExternalWalletInfo[];
26
- chainId?: string | undefined;
27
- uri?: string | undefined;
28
- } | undefined;
29
21
  isError: boolean;
30
22
  isIdle: boolean;
31
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
32
26
  reset: () => void;
33
27
  context: unknown;
34
28
  failureCount: number;
35
29
  failureReason: Error | null;
36
30
  isPaused: boolean;
37
31
  submittedAt: number;
38
- loginExternalWallet: import("@tanstack/react-query").UseMutateFunction<Compute<import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateVerifyOrLogin>, Error, {
39
- portalTheme?: import("@getpara/web-sdk").Theme | undefined;
40
- useShortUrls?: boolean | undefined;
41
- externalWallet: import("@getpara/web-sdk").ExternalWalletInfo | import("@getpara/web-sdk").ExternalWalletInfo[];
42
- chainId?: string | undefined;
43
- uri?: string | undefined;
44
- }, unknown>;
45
- loginExternalWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateVerifyOrLogin>, Error, {
46
- portalTheme?: import("@getpara/web-sdk").Theme | undefined;
47
- useShortUrls?: boolean | undefined;
48
- externalWallet: import("@getpara/web-sdk").ExternalWalletInfo | import("@getpara/web-sdk").ExternalWalletInfo[];
49
- chainId?: string | undefined;
50
- uri?: string | undefined;
51
- }, unknown>;
32
+ loginExternalWallet: import("@tanstack/react-query").UseMutateFunction<LoginExternalWalletResponse, Error, LoginExternalWalletParams, unknown>;
33
+ loginExternalWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<LoginExternalWalletResponse, Error, LoginExternalWalletParams, unknown>;
52
34
  };
@@ -20,7 +20,10 @@ const useLoginExternalWallet = () => {
20
20
  }
21
21
  })
22
22
  });
23
- return renameMutations(mutation, "loginExternalWallet");
23
+ return renameMutations(
24
+ mutation,
25
+ "loginExternalWallet"
26
+ );
24
27
  };
25
28
  export {
26
29
  LOGIN_EXTERNAL_WALLET_KEY,
@@ -1,3 +1,4 @@
1
+ import type { LogoutParams } from '@getpara/web-sdk';
1
2
  export declare const LOGOUT_KEY = "LOGOUT";
2
3
  /**
3
4
  * React hook for the `logout` mutation.
@@ -14,26 +15,20 @@ export declare const LOGOUT_KEY = "LOGOUT";
14
15
  * await logoutAsync({ ...params });
15
16
  */
16
17
  export declare const useLogout: () => {
17
- status: "idle" | "pending" | "error" | "success";
18
- error: Error | null;
19
18
  data: void | undefined;
20
- isSuccess: boolean;
21
- variables: void | {
22
- clearPregenWallets?: boolean | undefined;
23
- } | undefined;
19
+ variables: void | LogoutParams | undefined;
20
+ error: Error | null;
24
21
  isError: boolean;
25
22
  isIdle: boolean;
26
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
27
26
  reset: () => void;
28
27
  context: unknown;
29
28
  failureCount: number;
30
29
  failureReason: Error | null;
31
30
  isPaused: boolean;
32
31
  submittedAt: number;
33
- logout: import("@tanstack/react-query").UseMutateFunction<void, Error, void | {
34
- clearPregenWallets?: boolean | undefined;
35
- }, unknown>;
36
- logoutAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, void | {
37
- clearPregenWallets?: boolean | undefined;
38
- }, unknown>;
32
+ logout: import("@tanstack/react-query").UseMutateFunction<void, Error, void | LogoutParams, unknown>;
33
+ logoutAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, void | LogoutParams, unknown>;
39
34
  };
@@ -1,4 +1,4 @@
1
- import { Compute } from '../../types/utils.js';
1
+ import type { ResendVerificationCodeParams } from '@getpara/web-sdk';
2
2
  export declare const RESEND_VERIFICATION_CODE_KEY = "RESEND_VERIFICATION_CODE";
3
3
  /**
4
4
  * React hook for the `resendVerificationCode` mutation.
@@ -15,26 +15,20 @@ export declare const RESEND_VERIFICATION_CODE_KEY = "RESEND_VERIFICATION_CODE";
15
15
  * await resendVerificationCodeAsync({ ...params });
16
16
  */
17
17
  export declare const useResendVerificationCode: () => {
18
- status: "idle" | "pending" | "error" | "success";
19
- error: Error | null;
20
18
  data: void | undefined;
21
- isSuccess: boolean;
22
- variables: void | Compute<{
23
- type?: "SIGNUP" | "LINK_ACCOUNT" | "LOGIN";
24
- } | undefined>;
19
+ variables: void | ResendVerificationCodeParams | undefined;
20
+ error: Error | null;
25
21
  isError: boolean;
26
22
  isIdle: boolean;
27
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
28
26
  reset: () => void;
29
27
  context: unknown;
30
28
  failureCount: number;
31
29
  failureReason: Error | null;
32
30
  isPaused: boolean;
33
31
  submittedAt: number;
34
- resendVerificationCode: import("@tanstack/react-query").UseMutateFunction<void, Error, void | Compute<{
35
- type?: "SIGNUP" | "LINK_ACCOUNT" | "LOGIN";
36
- } | undefined>, unknown>;
37
- resendVerificationCodeAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, void | Compute<{
38
- type?: "SIGNUP" | "LINK_ACCOUNT" | "LOGIN";
39
- } | undefined>, unknown>;
32
+ resendVerificationCode: import("@tanstack/react-query").UseMutateFunction<void, Error, void | ResendVerificationCodeParams, unknown>;
33
+ resendVerificationCodeAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, void | ResendVerificationCodeParams, unknown>;
40
34
  };
@@ -20,7 +20,10 @@ const useResendVerificationCode = () => {
20
20
  }
21
21
  })
22
22
  });
23
- return renameMutations(mutation, "resendVerificationCode");
23
+ return renameMutations(
24
+ mutation,
25
+ "resendVerificationCode"
26
+ );
24
27
  };
25
28
  export {
26
29
  RESEND_VERIFICATION_CODE_KEY,
@@ -1,4 +1,4 @@
1
- import { Compute } from '../../types/utils.js';
1
+ import type { Setup2faResponse } from '@getpara/web-sdk';
2
2
  export declare const SETUP_2FA_KEY = "SETUP_2FA";
3
3
  /**
4
4
  * React hook for the `setup2fa` mutation.
@@ -15,20 +15,20 @@ export declare const SETUP_2FA_KEY = "SETUP_2FA";
15
15
  * await setup2faAsync({ ...params });
16
16
  */
17
17
  export declare const useSetup2fa: () => {
18
- status: "idle" | "pending" | "error" | "success";
19
- error: Error | null;
20
- data: Compute<import("@getpara/web-sdk").Setup2faResponse> | undefined;
21
- isSuccess: boolean;
18
+ data: Setup2faResponse | undefined;
22
19
  variables: void | undefined;
20
+ error: Error | null;
23
21
  isError: boolean;
24
22
  isIdle: boolean;
25
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
26
26
  reset: () => void;
27
27
  context: unknown;
28
28
  failureCount: number;
29
29
  failureReason: Error | null;
30
30
  isPaused: boolean;
31
31
  submittedAt: number;
32
- setup2fa: import("@tanstack/react-query").UseMutateFunction<Compute<import("@getpara/web-sdk").Setup2faResponse>, Error, void, unknown>;
33
- setup2faAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/web-sdk").Setup2faResponse>, Error, void, unknown>;
32
+ setup2fa: import("@tanstack/react-query").UseMutateFunction<Setup2faResponse, Error, void, unknown>;
33
+ setup2faAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Setup2faResponse, Error, void, unknown>;
34
34
  };
@@ -11,9 +11,9 @@ const useSetup2fa = () => {
11
11
  const para = useClient();
12
12
  const mutation = useMutation({
13
13
  mutationKey: [SETUP_2FA_KEY],
14
- mutationFn: (args) => __async(void 0, null, function* () {
14
+ mutationFn: () => __async(void 0, null, function* () {
15
15
  try {
16
- const result = yield setup2fa(para, args);
16
+ const result = yield setup2fa(para);
17
17
  return result;
18
18
  } catch (error) {
19
19
  throw error;
@@ -1,4 +1,4 @@
1
- import { Compute } from '../../types/utils.js';
1
+ import type { SignMessageParams, FullSignatureRes } from '@getpara/web-sdk';
2
2
  export declare const SIGN_MESSAGE_KEY = "SIGN_MESSAGE";
3
3
  /**
4
4
  * React hook for the `signMessage` mutation.
@@ -15,44 +15,20 @@ export declare const SIGN_MESSAGE_KEY = "SIGN_MESSAGE";
15
15
  * await signMessageAsync({ ...params });
16
16
  */
17
17
  export declare const useSignMessage: () => {
18
- status: "idle" | "pending" | "error" | "success";
18
+ data: FullSignatureRes | undefined;
19
+ variables: SignMessageParams | undefined;
19
20
  error: Error | null;
20
- data: Compute<import("@getpara/web-sdk").FullSignatureRes> | undefined;
21
- isSuccess: boolean;
22
- variables: {
23
- onPoll?: (() => void) | undefined;
24
- onCancel?: (() => void) | undefined;
25
- walletId: string;
26
- messageBase64: string;
27
- timeoutMs?: number | undefined;
28
- cosmosSignDocBase64?: string | undefined;
29
- isCanceled?: (() => boolean) | undefined;
30
- } | undefined;
31
21
  isError: boolean;
32
22
  isIdle: boolean;
33
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
34
26
  reset: () => void;
35
27
  context: unknown;
36
28
  failureCount: number;
37
29
  failureReason: Error | null;
38
30
  isPaused: boolean;
39
31
  submittedAt: number;
40
- signMessage: import("@tanstack/react-query").UseMutateFunction<Compute<import("@getpara/web-sdk").FullSignatureRes>, Error, {
41
- onPoll?: (() => void) | undefined;
42
- onCancel?: (() => void) | undefined;
43
- walletId: string;
44
- messageBase64: string;
45
- timeoutMs?: number | undefined;
46
- cosmosSignDocBase64?: string | undefined;
47
- isCanceled?: (() => boolean) | undefined;
48
- }, unknown>;
49
- signMessageAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/web-sdk").FullSignatureRes>, Error, {
50
- onPoll?: (() => void) | undefined;
51
- onCancel?: (() => void) | undefined;
52
- walletId: string;
53
- messageBase64: string;
54
- timeoutMs?: number | undefined;
55
- cosmosSignDocBase64?: string | undefined;
56
- isCanceled?: (() => boolean) | undefined;
57
- }, unknown>;
32
+ signMessage: import("@tanstack/react-query").UseMutateFunction<FullSignatureRes, Error, SignMessageParams, unknown>;
33
+ signMessageAsync: import("@tanstack/react-query").UseMutateAsyncFunction<FullSignatureRes, Error, SignMessageParams, unknown>;
58
34
  };
@@ -1,4 +1,4 @@
1
- import { Compute } from '../../types/utils.js';
1
+ import type { SignTransactionParams, FullSignatureRes } from '@getpara/web-sdk';
2
2
  export declare const SIGN_TRANSACTION_KEY = "SIGN_TRANSACTION";
3
3
  /**
4
4
  * React hook for the `signTransaction` mutation.
@@ -15,44 +15,20 @@ export declare const SIGN_TRANSACTION_KEY = "SIGN_TRANSACTION";
15
15
  * await signTransactionAsync({ ...params });
16
16
  */
17
17
  export declare const useSignTransaction: () => {
18
- status: "idle" | "pending" | "error" | "success";
18
+ data: FullSignatureRes | undefined;
19
+ variables: SignTransactionParams | undefined;
19
20
  error: Error | null;
20
- data: Compute<import("@getpara/web-sdk").FullSignatureRes> | undefined;
21
- isSuccess: boolean;
22
- variables: {
23
- onPoll?: (() => void) | undefined;
24
- onCancel?: (() => void) | undefined;
25
- walletId: string;
26
- rlpEncodedTxBase64: string;
27
- chainId: string;
28
- timeoutMs?: number | undefined;
29
- isCanceled?: (() => boolean) | undefined;
30
- } | undefined;
31
21
  isError: boolean;
32
22
  isIdle: boolean;
33
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
34
26
  reset: () => void;
35
27
  context: unknown;
36
28
  failureCount: number;
37
29
  failureReason: Error | null;
38
30
  isPaused: boolean;
39
31
  submittedAt: number;
40
- signTransaction: import("@tanstack/react-query").UseMutateFunction<Compute<import("@getpara/web-sdk").FullSignatureRes>, Error, {
41
- onPoll?: (() => void) | undefined;
42
- onCancel?: (() => void) | undefined;
43
- walletId: string;
44
- rlpEncodedTxBase64: string;
45
- chainId: string;
46
- timeoutMs?: number | undefined;
47
- isCanceled?: (() => boolean) | undefined;
48
- }, unknown>;
49
- signTransactionAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/web-sdk").FullSignatureRes>, Error, {
50
- onPoll?: (() => void) | undefined;
51
- onCancel?: (() => void) | undefined;
52
- walletId: string;
53
- rlpEncodedTxBase64: string;
54
- chainId: string;
55
- timeoutMs?: number | undefined;
56
- isCanceled?: (() => boolean) | undefined;
57
- }, unknown>;
32
+ signTransaction: import("@tanstack/react-query").UseMutateFunction<FullSignatureRes, Error, SignTransactionParams, unknown>;
33
+ signTransactionAsync: import("@tanstack/react-query").UseMutateAsyncFunction<FullSignatureRes, Error, SignTransactionParams, unknown>;
58
34
  };
@@ -20,7 +20,10 @@ const useSignTransaction = () => {
20
20
  }
21
21
  })
22
22
  });
23
- return renameMutations(mutation, "signTransaction");
23
+ return renameMutations(
24
+ mutation,
25
+ "signTransaction"
26
+ );
24
27
  };
25
28
  export {
26
29
  SIGN_TRANSACTION_KEY,
@@ -1,4 +1,4 @@
1
- import { Compute } from '../../types/utils.js';
1
+ import type { SignUpOrLogInParams, SignUpOrLogInResponse } from '@getpara/web-sdk';
2
2
  export declare const SIGN_UP_LOG_IN_KEY = "SIGN_UP_LOG_IN";
3
3
  /**
4
4
  * React hook for the `signUpOrLogIn` mutation.
@@ -15,32 +15,20 @@ export declare const SIGN_UP_LOG_IN_KEY = "SIGN_UP_LOG_IN";
15
15
  * await signUpOrLogInAsync({ ...params });
16
16
  */
17
17
  export declare const useSignUpOrLogIn: () => {
18
- status: "idle" | "pending" | "error" | "success";
18
+ data: SignUpOrLogInResponse | undefined;
19
+ variables: SignUpOrLogInParams | undefined;
19
20
  error: Error | null;
20
- data: Compute<import("@getpara/web-sdk").AuthStateLogin | import("@getpara/web-sdk").AuthStateVerify> | undefined;
21
- isSuccess: boolean;
22
- variables: {
23
- portalTheme?: import("@getpara/web-sdk").Theme | undefined;
24
- useShortUrls?: boolean | undefined;
25
- auth: import("@getpara/web-sdk").VerifiedAuth;
26
- } | undefined;
27
21
  isError: boolean;
28
22
  isIdle: boolean;
29
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
30
26
  reset: () => void;
31
27
  context: unknown;
32
28
  failureCount: number;
33
29
  failureReason: Error | null;
34
30
  isPaused: boolean;
35
31
  submittedAt: number;
36
- signUpOrLogIn: import("@tanstack/react-query").UseMutateFunction<Compute<import("@getpara/web-sdk").AuthStateLogin | import("@getpara/web-sdk").AuthStateVerify>, Error, {
37
- portalTheme?: import("@getpara/web-sdk").Theme | undefined;
38
- useShortUrls?: boolean | undefined;
39
- auth: import("@getpara/web-sdk").VerifiedAuth;
40
- }, unknown>;
41
- signUpOrLogInAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/web-sdk").AuthStateLogin | import("@getpara/web-sdk").AuthStateVerify>, Error, {
42
- portalTheme?: import("@getpara/web-sdk").Theme | undefined;
43
- useShortUrls?: boolean | undefined;
44
- auth: import("@getpara/web-sdk").VerifiedAuth;
45
- }, unknown>;
32
+ signUpOrLogIn: import("@tanstack/react-query").UseMutateFunction<SignUpOrLogInResponse, Error, SignUpOrLogInParams, unknown>;
33
+ signUpOrLogInAsync: import("@tanstack/react-query").UseMutateAsyncFunction<SignUpOrLogInResponse, Error, SignUpOrLogInParams, unknown>;
46
34
  };
@@ -20,7 +20,10 @@ const useSignUpOrLogIn = () => {
20
20
  }
21
21
  })
22
22
  });
23
- return renameMutations(mutation, "signUpOrLogIn");
23
+ return renameMutations(
24
+ mutation,
25
+ "signUpOrLogIn"
26
+ );
24
27
  };
25
28
  export {
26
29
  SIGN_UP_LOG_IN_KEY,
@@ -1,3 +1,4 @@
1
+ import type { WaitForLoginParams, WaitForLoginResponse } from '@getpara/web-sdk';
1
2
  export declare const SWITCH_WALLETS_KEY = "SWITCH_WALLETS";
2
3
  /**
3
4
  * React hook for the `switchWallets` mutation.
@@ -14,44 +15,20 @@ export declare const SWITCH_WALLETS_KEY = "SWITCH_WALLETS";
14
15
  * await switchWalletsAsync({ authMethod: 'PASSKEY' });
15
16
  */
16
17
  export declare const useSwitchWallets: () => {
17
- status: "idle" | "pending" | "error" | "success";
18
+ data: WaitForLoginResponse | undefined;
19
+ variables: void | WaitForLoginParams | undefined;
18
20
  error: Error | null;
19
- data: {
20
- needsWallet?: boolean | undefined;
21
- partnerId?: string | undefined;
22
- } | undefined;
23
- isSuccess: boolean;
24
- variables: void | {
25
- onPoll?: (() => void) | undefined;
26
- onCancel?: (() => void) | undefined;
27
- skipSessionRefresh?: boolean | undefined;
28
- isCanceled?: (() => boolean) | undefined;
29
- } | undefined;
30
21
  isError: boolean;
31
22
  isIdle: boolean;
32
23
  isPending: boolean;
24
+ isSuccess: boolean;
25
+ status: "pending" | "error" | "idle" | "success";
33
26
  reset: () => void;
34
27
  context: unknown;
35
28
  failureCount: number;
36
29
  failureReason: Error | null;
37
30
  isPaused: boolean;
38
31
  submittedAt: number;
39
- switchWallets: import("@tanstack/react-query").UseMutateFunction<{
40
- needsWallet?: boolean | undefined;
41
- partnerId?: string | undefined;
42
- }, Error, void | {
43
- onPoll?: (() => void) | undefined;
44
- onCancel?: (() => void) | undefined;
45
- skipSessionRefresh?: boolean | undefined;
46
- isCanceled?: (() => boolean) | undefined;
47
- }, unknown>;
48
- switchWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
49
- needsWallet?: boolean | undefined;
50
- partnerId?: string | undefined;
51
- }, Error, void | {
52
- onPoll?: (() => void) | undefined;
53
- onCancel?: (() => void) | undefined;
54
- skipSessionRefresh?: boolean | undefined;
55
- isCanceled?: (() => boolean) | undefined;
56
- }, unknown>;
32
+ switchWallets: import("@tanstack/react-query").UseMutateFunction<WaitForLoginResponse, Error, void | WaitForLoginParams, unknown>;
33
+ switchWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<WaitForLoginResponse, Error, void | WaitForLoginParams, unknown>;
57
34
  };
@@ -22,7 +22,10 @@ const useSwitchWallets = () => {
22
22
  }
23
23
  })
24
24
  });
25
- return renameMutations(mutation, "switchWallets");
25
+ return renameMutations(
26
+ mutation,
27
+ "switchWallets"
28
+ );
26
29
  };
27
30
  export {
28
31
  SWITCH_WALLETS_KEY,