@dynamic-labs/sdk-react-core 4.5.0 → 4.5.1

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 (252) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +11 -11
  5. package/src/index.cjs +7 -7
  6. package/src/index.js +2 -2
  7. package/src/lib/components/Alert/Alert.cjs +6 -3
  8. package/src/lib/components/Alert/Alert.d.ts +1 -0
  9. package/src/lib/components/Alert/Alert.js +6 -4
  10. package/src/lib/components/Alert/AlertText/AlertText.cjs +16 -0
  11. package/src/lib/components/Alert/AlertText/AlertText.d.ts +7 -0
  12. package/src/lib/components/Alert/AlertText/AlertText.js +12 -0
  13. package/src/lib/components/Alert/AlertText/index.d.ts +1 -0
  14. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
  15. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
  16. package/src/lib/components/ShadowDOM/ShadowDOM.cjs +0 -2
  17. package/src/lib/components/ShadowDOM/ShadowDOM.js +1 -2
  18. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
  19. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
  20. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -1
  21. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -1
  22. package/src/lib/components/UserProfile/UserProfile.cjs +1 -1
  23. package/src/lib/components/UserProfile/UserProfile.js +1 -1
  24. package/src/lib/context/DynamicContext/DynamicContext.cjs +15 -12
  25. package/src/lib/context/DynamicContext/DynamicContext.js +15 -12
  26. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +2 -2
  27. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +3 -3
  28. package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +0 -4
  29. package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +0 -4
  30. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +7 -2
  31. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +7 -2
  32. package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.cjs +2 -2
  33. package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.js +3 -3
  34. package/src/lib/context/DynamicContext/types/SettingsOverrides.d.ts +5 -2
  35. package/src/lib/context/ErrorContext/ErrorContext.cjs +7 -6
  36. package/src/lib/context/ErrorContext/ErrorContext.js +8 -7
  37. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +3 -3
  38. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +3 -3
  39. package/src/lib/context/ViewContext/ViewContext.cjs +7 -2
  40. package/src/lib/context/ViewContext/ViewContext.js +7 -2
  41. package/src/lib/context/ViewContext/types/index.d.ts +1 -1
  42. package/src/lib/data/api/embeddedWallets/embeddedWallets.cjs +5 -64
  43. package/src/lib/data/api/embeddedWallets/embeddedWallets.d.ts +2 -18
  44. package/src/lib/data/api/embeddedWallets/embeddedWallets.js +6 -61
  45. package/src/lib/data/api/wallets/wallets.cjs +1 -3
  46. package/src/lib/data/api/wallets/wallets.d.ts +1 -1
  47. package/src/lib/data/api/wallets/wallets.js +2 -4
  48. package/src/lib/events/embeddedWallet.d.ts +0 -4
  49. package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +2 -6
  50. package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +2 -6
  51. package/src/lib/locale/en/translation.cjs +4 -7
  52. package/src/lib/locale/en/translation.d.ts +3 -6
  53. package/src/lib/locale/en/translation.js +4 -7
  54. package/src/lib/main.global.cjs +1 -1
  55. package/src/lib/main.global.js +1 -1
  56. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.cjs +8 -8
  57. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.js +8 -8
  58. package/src/lib/modals/index.d.ts +0 -2
  59. package/src/lib/shared/utils/functions/index.d.ts +0 -2
  60. package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +7 -5
  61. package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +8 -6
  62. package/src/lib/styles/index.shadow.cjs +1 -1
  63. package/src/lib/styles/index.shadow.js +1 -1
  64. package/src/lib/utils/functions/index.d.ts +0 -5
  65. package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +1 -1
  66. package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +1 -1
  67. package/src/lib/utils/functions/onrampConfigurationToOnrampOption/onrampConfigurationToOnrampOption.cjs +1 -1
  68. package/src/lib/utils/functions/onrampConfigurationToOnrampOption/onrampConfigurationToOnrampOption.js +1 -1
  69. package/src/lib/utils/hooks/index.d.ts +0 -1
  70. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +0 -2
  71. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +0 -2
  72. package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +2 -2
  73. package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +3 -3
  74. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +16 -4
  75. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +16 -4
  76. package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +3 -3
  77. package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +3 -3
  78. package/src/lib/utils/hooks/useCreateWalletConnectorOptions/useCreateWalletConnectorOptions.cjs +1 -1
  79. package/src/lib/utils/hooks/useCreateWalletConnectorOptions/useCreateWalletConnectorOptions.js +1 -1
  80. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +1 -6
  81. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +1 -6
  82. package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +1 -1
  83. package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +1 -1
  84. package/src/lib/utils/hooks/useElementById/useElementById.cjs +2 -2
  85. package/src/lib/utils/hooks/useElementById/useElementById.js +3 -3
  86. package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +1 -13
  87. package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +1 -13
  88. package/src/lib/utils/hooks/useEmbeddedWallet/index.d.ts +0 -1
  89. package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +7 -23
  90. package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +0 -2
  91. package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +7 -23
  92. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +4 -4
  93. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +4 -4
  94. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +3 -3
  95. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +3 -3
  96. package/src/lib/utils/hooks/useFundWithWallet/useConnectWalletForFunding/useConnectWalletForFunding.cjs +1 -0
  97. package/src/lib/utils/hooks/useFundWithWallet/useConnectWalletForFunding/useConnectWalletForFunding.js +1 -0
  98. package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +1 -1
  99. package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +1 -1
  100. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +2 -2
  101. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +2 -2
  102. package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.cjs +1 -1
  103. package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.js +1 -1
  104. package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +11 -18
  105. package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +12 -19
  106. package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.cjs +4 -4
  107. package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.js +4 -4
  108. package/src/lib/utils/hooks/useUpgradeEmbeddedWallet/useUpgradeEmbeddedWallet.cjs +4 -4
  109. package/src/lib/utils/hooks/useUpgradeEmbeddedWallet/useUpgradeEmbeddedWallet.js +4 -4
  110. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +4 -4
  111. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +4 -4
  112. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +0 -3
  113. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +0 -3
  114. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +0 -3
  115. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +0 -3
  116. package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.cjs +0 -1
  117. package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.js +0 -1
  118. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +2 -24
  119. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -24
  120. package/src/lib/utils/validations/index.d.ts +0 -1
  121. package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.cjs +2 -2
  122. package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.js +2 -2
  123. package/src/lib/views/EmailVerification/EmailVerification.cjs +4 -4
  124. package/src/lib/views/EmailVerification/EmailVerification.js +4 -4
  125. package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +12 -34
  126. package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +13 -35
  127. package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +2 -2
  128. package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +2 -2
  129. package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +1 -1
  130. package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +1 -1
  131. package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +1 -1
  132. package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +1 -1
  133. package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +1 -1
  134. package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +1 -1
  135. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -1
  136. package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -1
  137. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +11 -11
  138. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +11 -11
  139. package/src/lib/views/viewToComponentMap.cjs +0 -4
  140. package/src/lib/views/viewToComponentMap.d.ts +0 -2
  141. package/src/lib/views/viewToComponentMap.js +0 -4
  142. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +5 -7
  143. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +5 -7
  144. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -1
  145. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -1
  146. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +3 -3
  147. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +3 -3
  148. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -1
  149. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -1
  150. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -1
  151. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -1
  152. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +1 -1
  153. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -1
  154. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -1
  155. package/src/lib/widgets/DynamicWidget/views/ChooseOnrampProviderView/ChooseOnrampProviderView.cjs +4 -1
  156. package/src/lib/widgets/DynamicWidget/views/ChooseOnrampProviderView/ChooseOnrampProviderView.js +4 -1
  157. package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/ChooseWalletFundingMethod.cjs +1 -1
  158. package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/ChooseWalletFundingMethod.js +1 -1
  159. package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/useFundingMethods/useFundingMethods.cjs +19 -11
  160. package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/useFundingMethods/useFundingMethods.js +19 -11
  161. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +2 -2
  162. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +2 -2
  163. package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.cjs +9 -5
  164. package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.js +9 -5
  165. package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.cjs +6 -0
  166. package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.js +6 -0
  167. package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useSubmitExternalWalletFunding/useSubmitExternalWalletFunding.cjs +14 -2
  168. package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useSubmitExternalWalletFunding/useSubmitExternalWalletFunding.js +14 -2
  169. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +7 -17
  170. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +8 -18
  171. package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +0 -113
  172. package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +0 -109
  173. package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +0 -106
  174. package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.d.ts +0 -3
  175. package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +0 -102
  176. package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.types.d.ts +0 -5
  177. package/src/lib/modals/CreatePasswordModal/index.d.ts +0 -1
  178. package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +0 -106
  179. package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.d.ts +0 -3
  180. package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +0 -102
  181. package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.types.d.ts +0 -6
  182. package/src/lib/modals/EnterPasswordModal/index.d.ts +0 -1
  183. package/src/lib/shared/assets/alt-key.cjs +0 -55
  184. package/src/lib/shared/assets/alt-key.js +0 -31
  185. package/src/lib/shared/assets/lock.cjs +0 -55
  186. package/src/lib/shared/assets/lock.js +0 -31
  187. package/src/lib/shared/assets/save-password-hero.cjs +0 -128
  188. package/src/lib/shared/assets/save-password-hero.js +0 -104
  189. package/src/lib/shared/assets/wallet-claim-hero.cjs +0 -128
  190. package/src/lib/shared/assets/wallet-claim-hero.js +0 -104
  191. package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.cjs +0 -15
  192. package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.d.ts +0 -1
  193. package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.js +0 -11
  194. package/src/lib/shared/utils/functions/generateRandomPassword/index.d.ts +0 -1
  195. package/src/lib/shared/utils/functions/validatePassword/index.d.ts +0 -1
  196. package/src/lib/shared/utils/functions/validatePassword/validatePassword.cjs +0 -60
  197. package/src/lib/shared/utils/functions/validatePassword/validatePassword.d.ts +0 -13
  198. package/src/lib/shared/utils/functions/validatePassword/validatePassword.js +0 -56
  199. package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.cjs +0 -8
  200. package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.d.ts +0 -2
  201. package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.js +0 -4
  202. package/src/lib/utils/functions/findCoinbaseMPCWallet/index.d.ts +0 -1
  203. package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.cjs +0 -53
  204. package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.d.ts +0 -9
  205. package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.js +0 -49
  206. package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/index.d.ts +0 -1
  207. package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.cjs +0 -14
  208. package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.js +0 -10
  209. package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/index.d.ts +0 -1
  210. package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.cjs +0 -16
  211. package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.d.ts +0 -2
  212. package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.js +0 -12
  213. package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/index.d.ts +0 -1
  214. package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +0 -39
  215. package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.d.ts +0 -2
  216. package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +0 -35
  217. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/index.d.ts +0 -2
  218. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/index.d.ts +0 -1
  219. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +0 -229
  220. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.d.ts +0 -5
  221. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +0 -225
  222. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.cjs +0 -191
  223. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.d.ts +0 -18
  224. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.js +0 -187
  225. package/src/lib/utils/hooks/useEmbeddedWalletPassword/index.d.ts +0 -1
  226. package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +0 -141
  227. package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.d.ts +0 -4
  228. package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +0 -137
  229. package/src/lib/utils/validations/validateMPCProviderEnabled/index.d.ts +0 -1
  230. package/src/lib/utils/validations/validateMPCProviderEnabled/validateMPCProviderEnabled.cjs +0 -18
  231. package/src/lib/utils/validations/validateMPCProviderEnabled/validateMPCProviderEnabled.d.ts +0 -2
  232. package/src/lib/utils/validations/validateMPCProviderEnabled/validateMPCProviderEnabled.js +0 -14
  233. package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +0 -116
  234. package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.d.ts +0 -2
  235. package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +0 -112
  236. package/src/lib/views/CoinbaseMPCClaimIntro/index.d.ts +0 -1
  237. package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +0 -197
  238. package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.d.ts +0 -12
  239. package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +0 -193
  240. package/src/lib/views/CreatePasswordView/CreatePasswordStep/index.d.ts +0 -1
  241. package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +0 -169
  242. package/src/lib/views/CreatePasswordView/CreatePasswordView.d.ts +0 -9
  243. package/src/lib/views/CreatePasswordView/CreatePasswordView.js +0 -165
  244. package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +0 -141
  245. package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.d.ts +0 -12
  246. package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +0 -137
  247. package/src/lib/views/CreatePasswordView/SavePasswordStep/index.d.ts +0 -1
  248. package/src/lib/views/CreatePasswordView/index.d.ts +0 -1
  249. package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +0 -141
  250. package/src/lib/views/EnterPasswordView/EnterPasswordView.d.ts +0 -8
  251. package/src/lib/views/EnterPasswordView/EnterPasswordView.js +0 -137
  252. package/src/lib/views/EnterPasswordView/index.d.ts +0 -1
@@ -1,8 +0,0 @@
1
- import { FC } from 'react';
2
- export type EnterPasswordViewProps = {
3
- mutation: (password: string) => Promise<void>;
4
- onSuccess?: (password: string, closePortal?: boolean) => void;
5
- onError?: (error: unknown) => void;
6
- closeView?: boolean;
7
- };
8
- export declare const EnterPasswordView: FC<EnterPasswordViewProps>;
@@ -1,137 +0,0 @@
1
- 'use client'
2
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
- import { useState } from 'react';
4
- import { useTranslation } from 'react-i18next';
5
- import '@dynamic-labs/utils';
6
- import '../../components/Accordion/components/AccordionItem/AccordionItem.js';
7
- import '../../components/Alert/Alert.js';
8
- import '../../events/dynamicEvents.js';
9
- import '../../../../_virtual/_tslib.js';
10
- import '../../context/DynamicContext/DynamicContext.js';
11
- import '@dynamic-labs/sdk-api-core';
12
- import '../../shared/logger.js';
13
- import '@dynamic-labs/iconic';
14
- import '@dynamic-labs/wallet-connector-core';
15
- import { ReactComponent as SvgClose } from '../../shared/assets/close.js';
16
- import { ReactComponent as SvgPasswordHero } from '../../shared/assets/password-hero.js';
17
- import '../../context/ViewContext/ViewContext.js';
18
- import '@dynamic-labs/wallet-book';
19
- import '../../utils/constants/colors.js';
20
- import '../../utils/constants/values.js';
21
- import '../../shared/consts/index.js';
22
- import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
23
- import '../../context/CaptchaContext/CaptchaContext.js';
24
- import '../../context/ErrorContext/ErrorContext.js';
25
- import '@dynamic-labs/multi-wallet';
26
- import 'react-international-phone';
27
- import '../../store/state/nonce/nonce.js';
28
- import '../../store/state/projectSettings/projectSettings.js';
29
- import '../../config/ApiEndpoint.js';
30
- import '../../store/state/user/user.js';
31
- import '../../locale/locale.js';
32
- import '../../store/state/dynamicContextProps/dynamicContextProps.js';
33
- import '../../store/state/primaryWalletId/primaryWalletId.js';
34
- import '../../context/AccessDeniedContext/AccessDeniedContext.js';
35
- import '../../context/AccountExistsContext/AccountExistsContext.js';
36
- import '../../context/UserWalletsContext/UserWalletsContext.js';
37
- import '../../context/VerificationContext/VerificationContext.js';
38
- import 'react-dom';
39
- import '../../utils/functions/compareChains/compareChains.js';
40
- import '../../context/ThemeContext/ThemeContext.js';
41
- import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.js';
42
- import { useMutation } from '../../utils/hooks/useMutation/useMutation.js';
43
- import 'bs58';
44
- import '@dynamic-labs/types';
45
- import '../../context/SocialRedirectContext/SocialRedirectContext.js';
46
- import '../../context/LoadingContext/LoadingContext.js';
47
- import '../../context/WalletContext/WalletContext.js';
48
- import '../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
49
- import 'yup';
50
- import '../../context/MockContext/MockContext.js';
51
- import '../CollectUserDataView/useFields.js';
52
- import '../../context/FieldsStateContext/FieldsStateContext.js';
53
- import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
54
- import '@dynamic-labs/rpc-providers';
55
- import '../../store/state/loadingAndLifecycle.js';
56
- import '../../store/state/walletOptions/walletOptions.js';
57
- import { Typography } from '../../components/Typography/Typography.js';
58
- import '../../context/FooterAnimationContext/index.js';
59
- import '../../components/ShadowDOM/ShadowDOM.js';
60
- import '../../components/Transition/ZoomTransition/ZoomTransition.js';
61
- import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
62
- import '../../components/Transition/OpacityTransition/OpacityTransition.js';
63
- import '../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.js';
64
- import '../../context/WalletGroupContext/WalletGroupContext.js';
65
- import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
66
- import 'react-focus-lock';
67
- import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
68
- import { IconButton } from '../../components/IconButton/IconButton.js';
69
- import '../../components/MenuList/Dropdown/Dropdown.js';
70
- import { ErrorContainer } from '../../components/ErrorContainer/ErrorContainer.js';
71
- import { TypographyButton } from '../../components/TypographyButton/TypographyButton.js';
72
- import 'formik';
73
- import '../../utils/hooks/useSubdomainCheck/useSubdomainCheck.js';
74
- import { ModalHeader } from '../../components/ModalHeader/ModalHeader.js';
75
- import '../../store/state/sendBalances.js';
76
- import { Input } from '../../components/Input/Input.js';
77
- import '../../components/OverlayCard/OverlayCard.js';
78
- import '../TransactionConfirmationView/TransactionConfirmationView.js';
79
- import '../../context/PasskeyContext/PasskeyContext.js';
80
- import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
81
- import '../../context/OnrampContext/OnrampContext.js';
82
- import 'qrcode';
83
- import '../../widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.js';
84
- import '../../../index.js';
85
- import '../../context/IpConfigurationContext/IpConfigurationContext.js';
86
- import '../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
87
- import '../../context/ConnectWithOtpContext/constants.js';
88
- import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
89
- import '@hcaptcha/react-hcaptcha';
90
- import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
91
- import '../../store/state/tokenBalances.js';
92
- import '../../shared/utils/functions/getInitialUrl/getInitialUrl.js';
93
- import '../../components/InlineWidget/InlineWidget.js';
94
- import '../../components/IsBrowser/IsBrowser.js';
95
- import '../../components/Popper/Popper/Popper.js';
96
- import '../../components/Popper/PopperContext/PopperContext.js';
97
- import { ToggleVisibilityButton } from '../../components/ToggleVisibilityButton/ToggleVisibilityButton.js';
98
-
99
- const EnterPasswordView = ({ mutation, onSuccess, onError, closeView = true, }) => {
100
- const { setShowAuthFlow } = useInternalDynamicContext();
101
- const [password, setPassword] = useState('');
102
- const [inputType, setInputType] = useState('password');
103
- const { t } = useTranslation();
104
- const { mutate: handlePasswordSubmit, isLoading, hasError, } = useMutation(() => mutation(password), {
105
- onFailure: onError,
106
- onSuccess: () => {
107
- if (closeView) {
108
- setShowAuthFlow(false);
109
- }
110
- onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(password);
111
- },
112
- });
113
- const onClose = () => {
114
- if (onError) {
115
- onError === null || onError === void 0 ? void 0 : onError(t('dyn_enter_password.error.invalid_password'));
116
- return;
117
- }
118
- setShowAuthFlow(false);
119
- };
120
- const errorMessage = hasError
121
- ? t('dyn_enter_password.error.invalid_password')
122
- : undefined;
123
- const closeButton = (jsx(IconButton, { onClick: onClose, type: 'button', children: jsx(SvgClose, {}) }));
124
- const inputSuffix = (jsx(ToggleVisibilityButton, { initialState: inputType === 'password', onClick: (hidden) => setInputType(hidden ? 'password' : 'text'), className: 'enter-password-view__password-input__suffix-icon' }));
125
- const onPasswordInputChange = (e) => {
126
- const newPassword = e.target.value;
127
- setPassword(newPassword);
128
- };
129
- return (jsxs(Fragment, { children: [jsx(ModalHeader, { trailing: closeButton, children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', className: 'header__typography', copykey: 'dyn_enter_password.title', children: t('dyn_enter_password.title') }) }), jsx("div", { className: 'enter-password-view', children: jsxs("form", { className: 'enter-password-view__body', onSubmit: (e) => {
130
- e.preventDefault();
131
- handlePasswordSubmit();
132
- }, children: [jsx("div", { className: 'enter-password-view__body__icon', children: jsx(SvgPasswordHero, {}) }), jsx("div", { className: 'enter-password-view__body__description', children: jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_enter_password.description', children: t('dyn_enter_password.description') }) }), Boolean(errorMessage) && (jsx(ErrorContainer, { copykey: 'dyn_enter_password.error', children: errorMessage })), jsx("div", { children: jsx(Input, { id: 'password', placeholder: t('dyn_enter_password.input.placeholder'), type: inputType, suffix: inputSuffix, label: t('dyn_enter_password.input.label'), value: password, onChange: onPasswordInputChange, copykey: 'dyn_enter_password.input' }) }), jsx(TypographyButton, { buttonPadding: 'large', buttonVariant: 'brand-primary', typographyProps: {
133
- color: 'inherit',
134
- }, disabled: !password && !errorMessage, loading: isLoading, copykey: 'dyn_enter_password.continue_button_label', type: 'submit', children: t('dyn_enter_password.continue_button_label') })] }) })] }));
135
- };
136
-
137
- export { EnterPasswordView };
@@ -1 +0,0 @@
1
- export { EnterPasswordView } from './EnterPasswordView';