@dynamic-labs/sdk-react-core 3.0.0-alpha.52 → 3.0.0-alpha.53

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 (258) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +13 -13
  5. package/src/index.cjs +7 -5
  6. package/src/index.d.ts +1 -1
  7. package/src/index.js +4 -3
  8. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +17 -16
  9. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +18 -17
  10. package/src/lib/components/Divider/Divider.cjs +2 -2
  11. package/src/lib/components/Divider/Divider.d.ts +2 -2
  12. package/src/lib/components/Divider/Divider.js +3 -3
  13. package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -1
  14. package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -1
  15. package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -1
  16. package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -1
  17. package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -1
  18. package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -1
  19. package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +5 -4
  20. package/src/lib/components/NeedHelpSection/NeedHelpSection.js +6 -5
  21. package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +1 -1
  22. package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +1 -1
  23. package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +11 -10
  24. package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +12 -11
  25. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
  26. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
  27. package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.cjs +6 -1
  28. package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.js +6 -1
  29. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
  30. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +0 -1
  31. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
  32. package/src/lib/context/DynamicContext/DynamicContext.cjs +6 -12
  33. package/src/lib/context/DynamicContext/DynamicContext.js +6 -12
  34. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -1
  35. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -1
  36. package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +2 -2
  37. package/src/lib/context/DynamicContext/types/DynamicContextProps.d.ts +7 -0
  38. package/src/lib/context/DynamicContext/types/IDynamicContext.d.ts +4 -5
  39. package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.d.ts +2 -2
  40. package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.cjs +1 -1
  41. package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.js +1 -1
  42. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +2 -2
  43. package/src/lib/context/UserWalletsContext/UserWalletsContext.d.ts +1 -1
  44. package/src/lib/context/WalletContext/WalletContext.cjs +1 -84
  45. package/src/lib/context/WalletContext/WalletContext.d.ts +1 -2
  46. package/src/lib/context/WalletContext/WalletContext.js +1 -84
  47. package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.cjs +1 -1
  48. package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.js +1 -1
  49. package/src/lib/data/api/api.cjs +1 -1
  50. package/src/lib/data/api/api.js +1 -1
  51. package/src/lib/locale/en/translation.cjs +39 -5
  52. package/src/lib/locale/en/translation.d.ts +39 -5
  53. package/src/lib/locale/en/translation.js +39 -5
  54. package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -1
  55. package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -1
  56. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +10 -9
  57. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +11 -10
  58. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.cjs +4 -4
  59. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.d.ts +1 -1
  60. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.js +4 -4
  61. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.types.d.ts +2 -0
  62. package/src/lib/shared/assets/arrow-circle-right.cjs +54 -0
  63. package/src/lib/shared/assets/arrow-circle-right.js +30 -0
  64. package/src/lib/shared/assets/index.d.ts +1 -0
  65. package/src/lib/shared/types/wallets.d.ts +2 -2
  66. package/src/lib/shared/utils/functions/usingSessionKeys/usingSessionKeys.cjs +1 -1
  67. package/src/lib/shared/utils/functions/usingSessionKeys/usingSessionKeys.js +2 -2
  68. package/src/lib/shared/utils/functions/wallet/createWallet.d.ts +2 -2
  69. package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.cjs +1 -1
  70. package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.js +1 -1
  71. package/src/lib/styles/index.shadow.cjs +1 -1
  72. package/src/lib/styles/index.shadow.js +1 -1
  73. package/src/lib/utils/constants/errors.cjs +0 -2
  74. package/src/lib/utils/constants/errors.js +1 -2
  75. package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.d.ts +2 -2
  76. package/src/lib/utils/{hooks/useWalletConnectors/utils/findWallet/findWallet.cjs → functions/findWalletOptionFor/findWalletOptionFor.cjs} +3 -3
  77. package/src/lib/utils/functions/findWalletOptionFor/findWalletOptionFor.d.ts +3 -0
  78. package/src/lib/utils/{hooks/useWalletConnectors/utils/findWallet/findWallet.js → functions/findWalletOptionFor/findWalletOptionFor.js} +3 -3
  79. package/src/lib/utils/functions/findWalletOptionFor/index.d.ts +1 -0
  80. package/src/lib/utils/functions/generateMessages/index.cjs +3 -2
  81. package/src/lib/utils/functions/generateMessages/index.js +3 -2
  82. package/src/lib/utils/functions/getEmbeddedWalletAuthHandler/getEmbeddedWalletAuthHandler.d.ts +2 -2
  83. package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.cjs +1 -1
  84. package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.js +1 -1
  85. package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +1 -1
  86. package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +1 -1
  87. package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -2
  88. package/src/lib/utils/functions/getWalletConnectorForWallet/getWalletConnectorForWallet.d.ts +2 -2
  89. package/src/lib/utils/functions/index.d.ts +0 -2
  90. package/src/lib/utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.d.ts +1 -1
  91. package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +1 -1
  92. package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +1 -1
  93. package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +1 -1
  94. package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +1 -1
  95. package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +1 -1
  96. package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +1 -1
  97. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.d.ts +2 -2
  98. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.d.ts +2 -2
  99. package/src/lib/utils/hooks/index.d.ts +1 -0
  100. package/src/lib/utils/hooks/multiWallet/index.d.ts +0 -1
  101. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +8 -7
  102. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +2 -2
  103. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +9 -8
  104. package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.d.ts +2 -2
  105. package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.d.ts +1 -1
  106. package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +3 -4
  107. package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +3 -4
  108. package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +1 -1
  109. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +4 -6
  110. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.d.ts +1 -1
  111. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +5 -7
  112. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +86 -61
  113. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.d.ts +3 -3
  114. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +87 -63
  115. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +32 -30
  116. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.d.ts +1 -1
  117. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +33 -31
  118. package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.d.ts +1 -1
  119. package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +7 -6
  120. package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +7 -6
  121. package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +11 -9
  122. package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +12 -10
  123. package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +8 -12
  124. package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +8 -12
  125. package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +1 -1
  126. package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +1 -1
  127. package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.cjs +6 -5
  128. package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.js +6 -5
  129. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +12 -11
  130. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.d.ts +2 -2
  131. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +12 -11
  132. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +3 -3
  133. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +3 -3
  134. package/src/lib/utils/hooks/useSmartWallets/index.d.ts +1 -0
  135. package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.cjs +159 -0
  136. package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.d.ts +18 -0
  137. package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.js +155 -0
  138. package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +1 -4
  139. package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +1 -4
  140. package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +1 -1
  141. package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +2 -2
  142. package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +1 -1
  143. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -1
  144. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -1
  145. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +1 -1
  146. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +1 -1
  147. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +7 -87
  148. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.d.ts +2 -2
  149. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +8 -88
  150. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +9 -79
  151. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +4 -10
  152. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +10 -80
  153. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +5 -89
  154. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.d.ts +2 -3
  155. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +5 -89
  156. package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.cjs +4 -4
  157. package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.js +5 -5
  158. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +26 -29
  159. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +2 -1
  160. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +26 -29
  161. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -1
  162. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.d.ts +6 -6
  163. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -1
  164. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.types.d.ts +4 -4
  165. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +16 -7
  166. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +2 -2
  167. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +16 -7
  168. package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +1 -1
  169. package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +1 -1
  170. package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +2 -2
  171. package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +2 -2
  172. package/src/lib/views/EmailVerification/EmailVerification.cjs +19 -18
  173. package/src/lib/views/EmailVerification/EmailVerification.js +20 -19
  174. package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +52 -52
  175. package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +53 -53
  176. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +1 -1
  177. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +1 -1
  178. package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +1 -1
  179. package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +1 -1
  180. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +35 -33
  181. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +1 -1
  182. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +35 -33
  183. package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +1 -1
  184. package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +1 -1
  185. package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +1 -1
  186. package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +1 -1
  187. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +35 -33
  188. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +1 -1
  189. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +35 -33
  190. package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +33 -31
  191. package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +33 -31
  192. package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +1 -1
  193. package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +1 -1
  194. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +7 -1
  195. package/src/lib/views/SendBalanceView/SendBalanceView.js +7 -1
  196. package/src/lib/{utils/functions/getEOAWallet/getEOAWallet.cjs → views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.cjs} +57 -50
  197. package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.d.ts +9 -0
  198. package/src/lib/{utils/functions/getEOAWallet/getEOAWallet.js → views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.js} +57 -50
  199. package/src/lib/views/SyncWalletView/AutoReconnectingView/index.d.ts +1 -0
  200. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.cjs +126 -0
  201. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.d.ts +9 -0
  202. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.js +122 -0
  203. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/index.d.ts +1 -0
  204. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.cjs +101 -0
  205. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.d.ts +10 -0
  206. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.js +97 -0
  207. package/src/lib/views/SyncWalletView/SwitchWalletView/index.d.ts +1 -0
  208. package/src/lib/views/SyncWalletView/SyncWalletView.cjs +74 -49
  209. package/src/lib/views/SyncWalletView/SyncWalletView.d.ts +2 -0
  210. package/src/lib/views/SyncWalletView/SyncWalletView.js +75 -50
  211. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -1
  212. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -1
  213. package/src/lib/views/WalletGroupView/WalletGroupView.cjs +2 -2
  214. package/src/lib/views/WalletGroupView/WalletGroupView.js +2 -2
  215. package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +1 -1
  216. package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +1 -1
  217. package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -1
  218. package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -1
  219. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -1
  220. package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -1
  221. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +6 -5
  222. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +6 -5
  223. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -1
  224. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -1
  225. package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +1 -1
  226. package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +1 -1
  227. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -1
  228. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +3 -1
  229. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -1
  230. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +2 -2
  231. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +1 -0
  232. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -2
  233. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +7 -9
  234. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +7 -9
  235. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +46 -45
  236. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +47 -46
  237. package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.cjs +0 -40
  238. package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.d.ts +0 -3
  239. package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.js +0 -36
  240. package/src/lib/utils/functions/createOwnerWallet/index.d.ts +0 -1
  241. package/src/lib/utils/functions/getEOAWallet/getEOAWallet.d.ts +0 -3
  242. package/src/lib/utils/functions/getEOAWallet/index.d.ts +0 -1
  243. package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.cjs +0 -8
  244. package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.js +0 -4
  245. package/src/lib/utils/functions/isWalletConnected/isWalletConnected.cjs +0 -14
  246. package/src/lib/utils/functions/isWalletConnected/isWalletConnected.js +0 -10
  247. package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.cjs +0 -25
  248. package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.js +0 -21
  249. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/index.d.ts +0 -1
  250. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +0 -209
  251. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +0 -1
  252. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +0 -205
  253. package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.d.ts +0 -3
  254. package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/index.d.ts +0 -1
  255. package/src/lib/utils/hooks/useWalletsConnectionState/index.d.ts +0 -1
  256. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +0 -184
  257. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +0 -12
  258. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +0 -180
@@ -9,10 +9,15 @@ var React = require('react');
9
9
  var reactI18next = require('react-i18next');
10
10
  var utils = require('@dynamic-labs/utils');
11
11
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
12
- var getProperErrorMessage = require('../../../modals/SignMessageConfirmationModal/getProperErrorMessage.cjs');
13
- require('../../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
14
- require('../../../components/Alert/Alert.cjs');
15
- var dynamicEvents = require('../../../events/dynamicEvents.cjs');
12
+ var Badge = require('../../../components/Badge/Badge.cjs');
13
+ var Checkbox = require('../../../components/Checkbox/Checkbox.cjs');
14
+ var ErrorContainer = require('../../../components/ErrorContainer/ErrorContainer.cjs');
15
+ var IconButton = require('../../../components/IconButton/IconButton.cjs');
16
+ var ModalHeader = require('../../../components/ModalHeader/ModalHeader.cjs');
17
+ var ShadowDOM = require('../../../components/ShadowDOM/ShadowDOM.cjs');
18
+ var Typography = require('../../../components/Typography/Typography.cjs');
19
+ var TypographyButton = require('../../../components/TypographyButton/TypographyButton.cjs');
20
+ var ApiEndpoint = require('../../../config/ApiEndpoint.cjs');
16
21
  require('../../../context/DynamicContext/DynamicContext.cjs');
17
22
  require('@dynamic-labs/sdk-api-core');
18
23
  var logger = require('../../../shared/logger.cjs');
@@ -29,15 +34,13 @@ require('../../../utils/constants/values.cjs');
29
34
  require('../../../shared/utils/classes/storage/localStorage.cjs');
30
35
  require('../../../shared/utils/classes/storage/sessionStorage.cjs');
31
36
  require('../../../shared/consts/index.cjs');
32
- var useInternalDynamicContext = require('../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
37
+ var dynamicEvents = require('../../../events/dynamicEvents.cjs');
33
38
  require('../../../context/CaptchaContext/CaptchaContext.cjs');
34
39
  require('../../../context/ErrorContext/ErrorContext.cjs');
35
40
  require('@dynamic-labs/multi-wallet');
36
41
  require('react-international-phone');
37
- var ApiEndpoint = require('../../../config/ApiEndpoint.cjs');
38
42
  require('@dynamic-labs/store');
39
43
  require('../../../locale/locale.cjs');
40
- var getEOAWallet = require('../../../utils/functions/getEOAWallet/getEOAWallet.cjs');
41
44
  require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
42
45
  require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
43
46
  require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
@@ -46,6 +49,7 @@ require('react-dom');
46
49
  require('../../../context/WalletContext/WalletContext.cjs');
47
50
  var useIsTurnkeyWallet = require('../../../utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs');
48
51
  var turnkeyExport = require('../utils/turnkeyExport/turnkeyExport.cjs');
52
+ var useSmartWallets = require('../../../utils/hooks/useSmartWallets/useSmartWallets.cjs');
49
53
  require('../../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.cjs');
50
54
  var usePromise = require('../../../utils/hooks/usePromise/usePromise.cjs');
51
55
  require('../../../context/ThemeContext/ThemeContext.cjs');
@@ -59,74 +63,71 @@ require('../../CollectUserDataView/useFields.cjs');
59
63
  require('../../../context/FieldsStateContext/FieldsStateContext.cjs');
60
64
  require('../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
61
65
  require('@dynamic-labs/rpc-providers');
62
- var Typography = require('../../../components/Typography/Typography.cjs');
63
- require('../../../context/FooterAnimationContext/index.cjs');
64
- var ShadowDOM = require('../../../components/ShadowDOM/ShadowDOM.cjs');
66
+ require('../../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
67
+ require('../../../components/Alert/Alert.cjs');
68
+ require('../../../components/InlineWidget/InlineWidget.cjs');
69
+ require('../../../components/Input/Input.cjs');
70
+ require('../../../components/IsBrowser/IsBrowser.cjs');
71
+ require('../../../components/MenuList/Dropdown/Dropdown.cjs');
65
72
  require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
66
73
  require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
67
74
  require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
68
75
  require('../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
76
+ require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
77
+ require('../../../components/Popper/Popper/Popper.cjs');
78
+ require('../../../components/Popper/PopperContext/PopperContext.cjs');
79
+ require('react-focus-lock');
80
+ require('qrcode');
81
+ require('formik');
82
+ require('../../WalletList/WalletList.cjs');
69
83
  require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
84
+ require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
85
+ require('@hcaptcha/react-hcaptcha');
86
+ var getProperErrorMessage = require('../../../modals/SignMessageConfirmationModal/getProperErrorMessage.cjs');
87
+ var DynamicWidgetContext = require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
88
+ var constants = require('../constants.cjs');
89
+ require('../../../context/FooterAnimationContext/index.cjs');
70
90
  require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
91
+ require('../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
92
+ require('../../../context/PasskeyContext/PasskeyContext.cjs');
93
+ require('@dynamic-labs/ethereum-core');
71
94
  require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
72
- require('react-focus-lock');
73
- var DynamicWidgetContext = require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
74
- var IconButton = require('../../../components/IconButton/IconButton.cjs');
75
- require('../../../components/MenuList/Dropdown/Dropdown.cjs');
76
- var ErrorContainer = require('../../../components/ErrorContainer/ErrorContainer.cjs');
77
- var TypographyButton = require('../../../components/TypographyButton/TypographyButton.cjs');
78
- require('formik');
79
95
  require('../../TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
80
- var ModalHeader = require('../../../components/ModalHeader/ModalHeader.cjs');
81
- require('../../../components/Input/Input.cjs');
82
- require('@dynamic-labs/ethereum-core');
83
- require('../../../context/PasskeyContext/PasskeyContext.cjs');
84
96
  require('../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
85
97
  require('../../../../polyfills.cjs');
86
98
  require('../../../context/ErrorBoundary/ErrorBoundaryBase.cjs');
87
99
  require('../../../context/ErrorBoundary/ErrorBoundaryContext.cjs');
88
100
  require('../../../widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs');
89
101
  require('../../../widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.cjs');
90
- require('../../../components/IsBrowser/IsBrowser.cjs');
91
102
  require('../../../context/WidgetRegistry/WidgetRegistryContextProvider.cjs');
92
103
  require('../../../context/FundingContext/FundingContext.cjs');
93
- require('../../../components/Popper/Popper/Popper.cjs');
94
- require('../../../components/Popper/PopperContext/PopperContext.cjs');
95
- require('../../WalletList/WalletList.cjs');
96
- require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
97
- require('@hcaptcha/react-hcaptcha');
98
- var constants = require('../constants.cjs');
99
- var Badge = require('../../../components/Badge/Badge.cjs');
100
- require('../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
101
- require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
102
104
  require('../../../context/SendBalanceContext/SendBalanceContext.cjs');
103
105
  require('../../../context/ConnectWithOtpContext/ConnectWithOtpContext.cjs');
104
106
  require('../../../context/ConnectWithOtpContext/constants.cjs');
105
107
  require('../../../context/ReinitializeContext/ReinitializeContextProvider.cjs');
106
- var Checkbox = require('../../../components/Checkbox/Checkbox.cjs');
107
- require('../../../components/InlineWidget/InlineWidget.cjs');
108
- require('qrcode');
108
+ var useInternalDynamicContext = require('../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
109
109
 
110
110
  const EmbeddedRevealView = ({ exportPrivateKey, }) => {
111
- var _a, _b, _c;
111
+ var _a, _b, _c, _d;
112
112
  const { primaryWallet, user, setShowAuthFlow, environmentId } = useInternalDynamicContext.useInternalDynamicContext();
113
113
  const { isTurnkeyWallet } = useIsTurnkeyWallet.useIsTurnkeyWallet();
114
114
  const { shadowRoot } = ShadowDOM.useShadowDOMContext();
115
115
  const { setDynamicWidgetView } = DynamicWidgetContext.useWidgetContext();
116
116
  const { setView } = ViewContext.useViewContext();
117
+ const { getEOAWallet, isSmartWallet } = useSmartWallets.useSmartWallets();
117
118
  const [acknowledgement1, setAcknowledgement1] = React.useState(false);
118
119
  const [hasRevealedCoinbaseMpcKey, setHasRevealedCoinbaseMpcKey] = React.useState(false);
119
120
  const iframeContainerRef = React.useRef(null);
120
121
  const walletProperties = (_b = (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletName }) => walletName === null || walletName === void 0 ? void 0 : walletName.startsWith('turnkey'))) === null || _b === void 0 ? void 0 : _b.walletProperties;
121
122
  const isTurnkeyHDWallet = walletProperties === null || walletProperties === void 0 ? void 0 : walletProperties.turnkeyHDWalletId;
122
- const wallet = getEOAWallet.getEOAWallet(primaryWallet, (user === null || user === void 0 ? void 0 : user.verifiedCredentials) || []);
123
+ const wallet = (_c = (primaryWallet && getEOAWallet(primaryWallet))) !== null && _c !== void 0 ? _c : primaryWallet;
123
124
  const isCoinbaseMpcWallet = wallet && walletConnectorCore.isCoinbaseMpcWalletConnector(wallet.connector);
124
125
  // eslint-disable-next-line arrow-body-style
125
126
  React.useEffect(() => {
126
127
  return () => {
127
128
  if (isTurnkeyWallet) {
128
129
  turnkeyExport.cleanupExport({
129
- wallet,
130
+ wallet: wallet,
130
131
  });
131
132
  }
132
133
  };
@@ -134,24 +135,23 @@ const EmbeddedRevealView = ({ exportPrivateKey, }) => {
134
135
  // eslint-disable-next-line react-hooks/exhaustive-deps
135
136
  }, []);
136
137
  const { isLoading: exportLoading } = usePromise.usePromise(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
137
- var _d, _e;
138
+ var _e, _f;
138
139
  const iframeContainerElement = iframeContainerRef.current;
139
140
  if (!iframeContainerElement ||
140
- ((_d = iframeContainerElement === null || iframeContainerElement === void 0 ? void 0 : iframeContainerElement.children) === null || _d === void 0 ? void 0 : _d.length) > 0) {
141
+ ((_e = iframeContainerElement === null || iframeContainerElement === void 0 ? void 0 : iframeContainerElement.children) === null || _e === void 0 ? void 0 : _e.length) > 0) {
141
142
  return;
142
143
  }
143
144
  if (walletConnectorCore.isSessionKeyCompatibleWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector)) {
144
- yield ((_e = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _e === void 0 ? void 0 : _e.createOrRestoreSession());
145
+ yield ((_f = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _f === void 0 ? void 0 : _f.createOrRestoreSession());
145
146
  }
146
147
  return turnkeyExport.initExport({
147
148
  iframeContainer: iframeContainerElement,
148
149
  iframeElementId: constants.iframeElementId,
149
- wallet,
150
+ wallet: wallet,
150
151
  });
151
152
  }));
152
153
  const { mutate: handleExportWallet, isLoading, error, data, } = useMutation.useMutation(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
153
- var _f, _g, _h;
154
- const wallet = getEOAWallet.getEOAWallet(primaryWallet, (user === null || user === void 0 ? void 0 : user.verifiedCredentials) || []);
154
+ var _g, _h, _j;
155
155
  if (isCoinbaseMpcWallet) {
156
156
  return (wallet === null || wallet === void 0 ? void 0 : wallet.connector).exportWalletKeys();
157
157
  }
@@ -161,14 +161,14 @@ const EmbeddedRevealView = ({ exportPrivateKey, }) => {
161
161
  address: exportPrivateKey ? wallet === null || wallet === void 0 ? void 0 : wallet.address : undefined,
162
162
  environmentId,
163
163
  user,
164
- wallet,
164
+ wallet: wallet,
165
165
  });
166
166
  }
167
- catch (_j) {
167
+ catch (_k) {
168
168
  if (walletConnectorCore.isSessionKeyCompatibleWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector) &&
169
- ((_f = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _f === void 0 ? void 0 : _f.removeSessionKeys)) {
170
- yield ((_g = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _g === void 0 ? void 0 : _g.removeSessionKeys());
171
- yield ((_h = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _h === void 0 ? void 0 : _h.createOrRestoreSession({
169
+ ((_g = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _g === void 0 ? void 0 : _g.removeSessionKeys)) {
170
+ yield ((_h = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _h === void 0 ? void 0 : _h.removeSessionKeys());
171
+ yield ((_j = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _j === void 0 ? void 0 : _j.createOrRestoreSession({
172
172
  ignoreRestore: true,
173
173
  }));
174
174
  }
@@ -176,7 +176,7 @@ const EmbeddedRevealView = ({ exportPrivateKey, }) => {
176
176
  address: exportPrivateKey ? wallet === null || wallet === void 0 ? void 0 : wallet.address : undefined,
177
177
  environmentId,
178
178
  user,
179
- wallet,
179
+ wallet: wallet,
180
180
  });
181
181
  }
182
182
  }
@@ -216,8 +216,8 @@ const EmbeddedRevealView = ({ exportPrivateKey, }) => {
216
216
  }
217
217
  }, [error, setView]);
218
218
  const { t } = reactI18next.useTranslation();
219
- const contentHeader = (jsxRuntime.jsxs("div", { children: [(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector) &&
220
- walletConnectorCore.isSmartWalletConnector(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector) &&
219
+ const contentHeader = (jsxRuntime.jsxs("div", { children: [primaryWallet &&
220
+ isSmartWallet(primaryWallet) &&
221
221
  !isLoading &&
222
222
  data &&
223
223
  !error && (jsxRuntime.jsxs("div", { className: 'embedded-reveal-view__zerodev-warning', children: [jsxRuntime.jsxs("div", { className: 'embedded-reveal-view__zerodev-warning__title-row', children: [jsxRuntime.jsx(info.ReactComponent, { className: 'embedded-reveal-view__zerodev-warning__icon' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'bold', copykey: 'dyn_embedded_reveal.aa_warning.title', children: t('dyn_embedded_reveal.aa_warning.title') })] }), jsxRuntime.jsxs(Typography.Typography, { variant: 'body_normal', weight: 'regular', copykey: 'dyn_embedded_reveal.aa_warning.subtitle', children: [t('dyn_embedded_reveal.aa_warning.subtitle'), jsxRuntime.jsx("button", { onClick: () => {
@@ -244,7 +244,7 @@ const EmbeddedRevealView = ({ exportPrivateKey, }) => {
244
244
  : t('dyn_embedded_reveal.agreement_title');
245
245
  // this element needs to be on the DOM before the reveal occurs
246
246
  // so we can inject the key into it once it's fetched from coinbase.
247
- const coinbaseWaasKeyExportIframe = (jsxRuntime.jsx("iframe", { src: (_c = ApiEndpoint === null || ApiEndpoint === void 0 ? void 0 : ApiEndpoint.getBaseUrl()) === null || _c === void 0 ? void 0 : _c.replace('api/v0', 'coinbase-waas-key-export.html'), id: 'coinbase-waas-key-export', title: 'Coinbase WaaS key export', height: hasRevealedCoinbaseMpcKey ? '100%' : 0, width: hasRevealedCoinbaseMpcKey ? '100%' : 0, style: {
247
+ const coinbaseWaasKeyExportIframe = (jsxRuntime.jsx("iframe", { src: (_d = ApiEndpoint === null || ApiEndpoint === void 0 ? void 0 : ApiEndpoint.getBaseUrl()) === null || _d === void 0 ? void 0 : _d.replace('api/v0', 'coinbase-waas-key-export.html'), id: 'coinbase-waas-key-export', title: 'Coinbase WaaS key export', height: hasRevealedCoinbaseMpcKey ? '100%' : 0, width: hasRevealedCoinbaseMpcKey ? '100%' : 0, style: {
248
248
  borderRadius: '0.75rem',
249
249
  }, allow: 'clipboard-write' }));
250
250
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', children: title }) }), jsxRuntime.jsx("div", { className: 'embedded-reveal-view', children: jsxRuntime.jsxs("div", { className: 'embedded-reveal-view__body', children: [contentHeader, isCoinbaseMpcWallet && coinbaseWaasKeyExportIframe, isTurnkeyWallet ? (jsxRuntime.jsx("div", { id: constants.iframeContainerId, style: { display: data ? 'block' : 'none' }, ref: iframeContainerRef })) : null, hasInjectedCredential ? (jsxRuntime.jsx(TypographyButton.TypographyButton, { buttonPadding: 'large', buttonVariant: 'brand-primary', onClick: () => setShowAuthFlow(false), loading: isLoading, copykey: 'dyn_embedded_reveal.done_button_label', typographyProps: {
@@ -4,11 +4,16 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
4
4
  import { useState, useRef, useEffect, useMemo } from 'react';
5
5
  import { useTranslation } from 'react-i18next';
6
6
  import { DynamicError, AccessBlockedError } from '@dynamic-labs/utils';
7
- import { isCoinbaseMpcWalletConnector, isSmartWalletConnector, isSessionKeyCompatibleWalletConnector } from '@dynamic-labs/wallet-connector-core';
8
- import { getProperErrorMessage } from '../../../modals/SignMessageConfirmationModal/getProperErrorMessage.js';
9
- import '../../../components/Accordion/components/AccordionItem/AccordionItem.js';
10
- import '../../../components/Alert/Alert.js';
11
- import { dynamicEvents } from '../../../events/dynamicEvents.js';
7
+ import { isCoinbaseMpcWalletConnector, isSessionKeyCompatibleWalletConnector } from '@dynamic-labs/wallet-connector-core';
8
+ import { Badge } from '../../../components/Badge/Badge.js';
9
+ import { Checkbox } from '../../../components/Checkbox/Checkbox.js';
10
+ import { ErrorContainer } from '../../../components/ErrorContainer/ErrorContainer.js';
11
+ import { IconButton } from '../../../components/IconButton/IconButton.js';
12
+ import { ModalHeader } from '../../../components/ModalHeader/ModalHeader.js';
13
+ import { useShadowDOMContext } from '../../../components/ShadowDOM/ShadowDOM.js';
14
+ import { Typography } from '../../../components/Typography/Typography.js';
15
+ import { TypographyButton } from '../../../components/TypographyButton/TypographyButton.js';
16
+ import ApiEndpoint from '../../../config/ApiEndpoint.js';
12
17
  import '../../../context/DynamicContext/DynamicContext.js';
13
18
  import '@dynamic-labs/sdk-api-core';
14
19
  import { logger } from '../../../shared/logger.js';
@@ -25,15 +30,13 @@ import '../../../utils/constants/values.js';
25
30
  import '../../../shared/utils/classes/storage/localStorage.js';
26
31
  import '../../../shared/utils/classes/storage/sessionStorage.js';
27
32
  import '../../../shared/consts/index.js';
28
- import { useInternalDynamicContext } from '../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
33
+ import { dynamicEvents } from '../../../events/dynamicEvents.js';
29
34
  import '../../../context/CaptchaContext/CaptchaContext.js';
30
35
  import '../../../context/ErrorContext/ErrorContext.js';
31
36
  import '@dynamic-labs/multi-wallet';
32
37
  import 'react-international-phone';
33
- import ApiEndpoint from '../../../config/ApiEndpoint.js';
34
38
  import '@dynamic-labs/store';
35
39
  import '../../../locale/locale.js';
36
- import { getEOAWallet } from '../../../utils/functions/getEOAWallet/getEOAWallet.js';
37
40
  import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
38
41
  import '../../../context/AccountExistsContext/AccountExistsContext.js';
39
42
  import '../../../context/UserWalletsContext/UserWalletsContext.js';
@@ -42,6 +45,7 @@ import 'react-dom';
42
45
  import '../../../context/WalletContext/WalletContext.js';
43
46
  import { useIsTurnkeyWallet } from '../../../utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js';
44
47
  import { cleanupExport, exportCredential, initExport } from '../utils/turnkeyExport/turnkeyExport.js';
48
+ import { useSmartWallets } from '../../../utils/hooks/useSmartWallets/useSmartWallets.js';
45
49
  import '../../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
46
50
  import { usePromise } from '../../../utils/hooks/usePromise/usePromise.js';
47
51
  import '../../../context/ThemeContext/ThemeContext.js';
@@ -55,74 +59,71 @@ import '../../CollectUserDataView/useFields.js';
55
59
  import '../../../context/FieldsStateContext/FieldsStateContext.js';
56
60
  import '../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
57
61
  import '@dynamic-labs/rpc-providers';
58
- import { Typography } from '../../../components/Typography/Typography.js';
59
- import '../../../context/FooterAnimationContext/index.js';
60
- import { useShadowDOMContext } from '../../../components/ShadowDOM/ShadowDOM.js';
62
+ import '../../../components/Accordion/components/AccordionItem/AccordionItem.js';
63
+ import '../../../components/Alert/Alert.js';
64
+ import '../../../components/InlineWidget/InlineWidget.js';
65
+ import '../../../components/Input/Input.js';
66
+ import '../../../components/IsBrowser/IsBrowser.js';
67
+ import '../../../components/MenuList/Dropdown/Dropdown.js';
61
68
  import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
62
69
  import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
63
70
  import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
64
71
  import '../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
72
+ import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
73
+ import '../../../components/Popper/Popper/Popper.js';
74
+ import '../../../components/Popper/PopperContext/PopperContext.js';
75
+ import 'react-focus-lock';
76
+ import 'qrcode';
77
+ import 'formik';
78
+ import '../../WalletList/WalletList.js';
65
79
  import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
80
+ import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
81
+ import '@hcaptcha/react-hcaptcha';
82
+ import { getProperErrorMessage } from '../../../modals/SignMessageConfirmationModal/getProperErrorMessage.js';
83
+ import { useWidgetContext } from '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
84
+ import { iframeContainerId, iframeElementId } from '../constants.js';
85
+ import '../../../context/FooterAnimationContext/index.js';
66
86
  import '../../../context/WalletGroupContext/WalletGroupContext.js';
87
+ import '../../../context/IpConfigurationContext/IpConfigurationContext.js';
88
+ import '../../../context/PasskeyContext/PasskeyContext.js';
89
+ import '@dynamic-labs/ethereum-core';
67
90
  import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
68
- import 'react-focus-lock';
69
- import { useWidgetContext } from '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
70
- import { IconButton } from '../../../components/IconButton/IconButton.js';
71
- import '../../../components/MenuList/Dropdown/Dropdown.js';
72
- import { ErrorContainer } from '../../../components/ErrorContainer/ErrorContainer.js';
73
- import { TypographyButton } from '../../../components/TypographyButton/TypographyButton.js';
74
- import 'formik';
75
91
  import '../../TransactionConfirmationView/helpers/transactionErrorMessage.js';
76
- import { ModalHeader } from '../../../components/ModalHeader/ModalHeader.js';
77
- import '../../../components/Input/Input.js';
78
- import '@dynamic-labs/ethereum-core';
79
- import '../../../context/PasskeyContext/PasskeyContext.js';
80
92
  import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
81
93
  import '../../../../polyfills.js';
82
94
  import '../../../context/ErrorBoundary/ErrorBoundaryBase.js';
83
95
  import '../../../context/ErrorBoundary/ErrorBoundaryContext.js';
84
96
  import '../../../widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js';
85
97
  import '../../../widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.js';
86
- import '../../../components/IsBrowser/IsBrowser.js';
87
98
  import '../../../context/WidgetRegistry/WidgetRegistryContextProvider.js';
88
99
  import '../../../context/FundingContext/FundingContext.js';
89
- import '../../../components/Popper/Popper/Popper.js';
90
- import '../../../components/Popper/PopperContext/PopperContext.js';
91
- import '../../WalletList/WalletList.js';
92
- import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
93
- import '@hcaptcha/react-hcaptcha';
94
- import { iframeContainerId, iframeElementId } from '../constants.js';
95
- import { Badge } from '../../../components/Badge/Badge.js';
96
- import '../../../context/IpConfigurationContext/IpConfigurationContext.js';
97
- import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
98
100
  import '../../../context/SendBalanceContext/SendBalanceContext.js';
99
101
  import '../../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
100
102
  import '../../../context/ConnectWithOtpContext/constants.js';
101
103
  import '../../../context/ReinitializeContext/ReinitializeContextProvider.js';
102
- import { Checkbox } from '../../../components/Checkbox/Checkbox.js';
103
- import '../../../components/InlineWidget/InlineWidget.js';
104
- import 'qrcode';
104
+ import { useInternalDynamicContext } from '../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
105
105
 
106
106
  const EmbeddedRevealView = ({ exportPrivateKey, }) => {
107
- var _a, _b, _c;
107
+ var _a, _b, _c, _d;
108
108
  const { primaryWallet, user, setShowAuthFlow, environmentId } = useInternalDynamicContext();
109
109
  const { isTurnkeyWallet } = useIsTurnkeyWallet();
110
110
  const { shadowRoot } = useShadowDOMContext();
111
111
  const { setDynamicWidgetView } = useWidgetContext();
112
112
  const { setView } = useViewContext();
113
+ const { getEOAWallet, isSmartWallet } = useSmartWallets();
113
114
  const [acknowledgement1, setAcknowledgement1] = useState(false);
114
115
  const [hasRevealedCoinbaseMpcKey, setHasRevealedCoinbaseMpcKey] = useState(false);
115
116
  const iframeContainerRef = useRef(null);
116
117
  const walletProperties = (_b = (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletName }) => walletName === null || walletName === void 0 ? void 0 : walletName.startsWith('turnkey'))) === null || _b === void 0 ? void 0 : _b.walletProperties;
117
118
  const isTurnkeyHDWallet = walletProperties === null || walletProperties === void 0 ? void 0 : walletProperties.turnkeyHDWalletId;
118
- const wallet = getEOAWallet(primaryWallet, (user === null || user === void 0 ? void 0 : user.verifiedCredentials) || []);
119
+ const wallet = (_c = (primaryWallet && getEOAWallet(primaryWallet))) !== null && _c !== void 0 ? _c : primaryWallet;
119
120
  const isCoinbaseMpcWallet = wallet && isCoinbaseMpcWalletConnector(wallet.connector);
120
121
  // eslint-disable-next-line arrow-body-style
121
122
  useEffect(() => {
122
123
  return () => {
123
124
  if (isTurnkeyWallet) {
124
125
  cleanupExport({
125
- wallet,
126
+ wallet: wallet,
126
127
  });
127
128
  }
128
129
  };
@@ -130,24 +131,23 @@ const EmbeddedRevealView = ({ exportPrivateKey, }) => {
130
131
  // eslint-disable-next-line react-hooks/exhaustive-deps
131
132
  }, []);
132
133
  const { isLoading: exportLoading } = usePromise(() => __awaiter(void 0, void 0, void 0, function* () {
133
- var _d, _e;
134
+ var _e, _f;
134
135
  const iframeContainerElement = iframeContainerRef.current;
135
136
  if (!iframeContainerElement ||
136
- ((_d = iframeContainerElement === null || iframeContainerElement === void 0 ? void 0 : iframeContainerElement.children) === null || _d === void 0 ? void 0 : _d.length) > 0) {
137
+ ((_e = iframeContainerElement === null || iframeContainerElement === void 0 ? void 0 : iframeContainerElement.children) === null || _e === void 0 ? void 0 : _e.length) > 0) {
137
138
  return;
138
139
  }
139
140
  if (isSessionKeyCompatibleWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector)) {
140
- yield ((_e = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _e === void 0 ? void 0 : _e.createOrRestoreSession());
141
+ yield ((_f = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _f === void 0 ? void 0 : _f.createOrRestoreSession());
141
142
  }
142
143
  return initExport({
143
144
  iframeContainer: iframeContainerElement,
144
145
  iframeElementId,
145
- wallet,
146
+ wallet: wallet,
146
147
  });
147
148
  }));
148
149
  const { mutate: handleExportWallet, isLoading, error, data, } = useMutation(() => __awaiter(void 0, void 0, void 0, function* () {
149
- var _f, _g, _h;
150
- const wallet = getEOAWallet(primaryWallet, (user === null || user === void 0 ? void 0 : user.verifiedCredentials) || []);
150
+ var _g, _h, _j;
151
151
  if (isCoinbaseMpcWallet) {
152
152
  return (wallet === null || wallet === void 0 ? void 0 : wallet.connector).exportWalletKeys();
153
153
  }
@@ -157,14 +157,14 @@ const EmbeddedRevealView = ({ exportPrivateKey, }) => {
157
157
  address: exportPrivateKey ? wallet === null || wallet === void 0 ? void 0 : wallet.address : undefined,
158
158
  environmentId,
159
159
  user,
160
- wallet,
160
+ wallet: wallet,
161
161
  });
162
162
  }
163
- catch (_j) {
163
+ catch (_k) {
164
164
  if (isSessionKeyCompatibleWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector) &&
165
- ((_f = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _f === void 0 ? void 0 : _f.removeSessionKeys)) {
166
- yield ((_g = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _g === void 0 ? void 0 : _g.removeSessionKeys());
167
- yield ((_h = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _h === void 0 ? void 0 : _h.createOrRestoreSession({
165
+ ((_g = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _g === void 0 ? void 0 : _g.removeSessionKeys)) {
166
+ yield ((_h = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _h === void 0 ? void 0 : _h.removeSessionKeys());
167
+ yield ((_j = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _j === void 0 ? void 0 : _j.createOrRestoreSession({
168
168
  ignoreRestore: true,
169
169
  }));
170
170
  }
@@ -172,7 +172,7 @@ const EmbeddedRevealView = ({ exportPrivateKey, }) => {
172
172
  address: exportPrivateKey ? wallet === null || wallet === void 0 ? void 0 : wallet.address : undefined,
173
173
  environmentId,
174
174
  user,
175
- wallet,
175
+ wallet: wallet,
176
176
  });
177
177
  }
178
178
  }
@@ -212,8 +212,8 @@ const EmbeddedRevealView = ({ exportPrivateKey, }) => {
212
212
  }
213
213
  }, [error, setView]);
214
214
  const { t } = useTranslation();
215
- const contentHeader = (jsxs("div", { children: [(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector) &&
216
- isSmartWalletConnector(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector) &&
215
+ const contentHeader = (jsxs("div", { children: [primaryWallet &&
216
+ isSmartWallet(primaryWallet) &&
217
217
  !isLoading &&
218
218
  data &&
219
219
  !error && (jsxs("div", { className: 'embedded-reveal-view__zerodev-warning', children: [jsxs("div", { className: 'embedded-reveal-view__zerodev-warning__title-row', children: [jsx(SvgInfo, { className: 'embedded-reveal-view__zerodev-warning__icon' }), jsx(Typography, { variant: 'body_normal', weight: 'bold', copykey: 'dyn_embedded_reveal.aa_warning.title', children: t('dyn_embedded_reveal.aa_warning.title') })] }), jsxs(Typography, { variant: 'body_normal', weight: 'regular', copykey: 'dyn_embedded_reveal.aa_warning.subtitle', children: [t('dyn_embedded_reveal.aa_warning.subtitle'), jsx("button", { onClick: () => {
@@ -240,7 +240,7 @@ const EmbeddedRevealView = ({ exportPrivateKey, }) => {
240
240
  : t('dyn_embedded_reveal.agreement_title');
241
241
  // this element needs to be on the DOM before the reveal occurs
242
242
  // so we can inject the key into it once it's fetched from coinbase.
243
- const coinbaseWaasKeyExportIframe = (jsx("iframe", { src: (_c = ApiEndpoint === null || ApiEndpoint === void 0 ? void 0 : ApiEndpoint.getBaseUrl()) === null || _c === void 0 ? void 0 : _c.replace('api/v0', 'coinbase-waas-key-export.html'), id: 'coinbase-waas-key-export', title: 'Coinbase WaaS key export', height: hasRevealedCoinbaseMpcKey ? '100%' : 0, width: hasRevealedCoinbaseMpcKey ? '100%' : 0, style: {
243
+ const coinbaseWaasKeyExportIframe = (jsx("iframe", { src: (_d = ApiEndpoint === null || ApiEndpoint === void 0 ? void 0 : ApiEndpoint.getBaseUrl()) === null || _d === void 0 ? void 0 : _d.replace('api/v0', 'coinbase-waas-key-export.html'), id: 'coinbase-waas-key-export', title: 'Coinbase WaaS key export', height: hasRevealedCoinbaseMpcKey ? '100%' : 0, width: hasRevealedCoinbaseMpcKey ? '100%' : 0, style: {
244
244
  borderRadius: '0.75rem',
245
245
  }, allow: 'clipboard-write' }));
246
246
  return (jsxs(Fragment, { children: [jsx(ModalHeader, { trailing: closeButton, children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', children: title }) }), jsx("div", { className: 'embedded-reveal-view', children: jsxs("div", { className: 'embedded-reveal-view__body', children: [contentHeader, isCoinbaseMpcWallet && coinbaseWaasKeyExportIframe, isTurnkeyWallet ? (jsx("div", { id: iframeContainerId, style: { display: data ? 'block' : 'none' }, ref: iframeContainerRef })) : null, hasInjectedCredential ? (jsx(TypographyButton, { buttonPadding: 'large', buttonVariant: 'brand-primary', onClick: () => setShowAuthFlow(false), loading: isLoading, copykey: 'dyn_embedded_reveal.done_button_label', typographyProps: {
@@ -70,6 +70,7 @@ require('../../../../../components/Input/Input.cjs');
70
70
  require('@dynamic-labs/ethereum-core');
71
71
  require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
72
72
  require('../../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
73
+ var Badge = require('../../../../../components/Badge/Badge.cjs');
73
74
  require('../../../../../../polyfills.cjs');
74
75
  require('../../../../../context/ErrorBoundary/ErrorBoundaryBase.cjs');
75
76
  require('../../../../../context/ErrorBoundary/ErrorBoundaryContext.cjs');
@@ -83,7 +84,6 @@ require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
83
84
  require('../../../../WalletList/WalletList.cjs');
84
85
  require('../../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
85
86
  require('@hcaptcha/react-hcaptcha');
86
- var Badge = require('../../../../../components/Badge/Badge.cjs');
87
87
  require('../../../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
88
88
  require('../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
89
89
  require('../../../../../context/SendBalanceContext/SendBalanceContext.cjs');
@@ -66,6 +66,7 @@ import '../../../../../components/Input/Input.js';
66
66
  import '@dynamic-labs/ethereum-core';
67
67
  import '../../../../../context/PasskeyContext/PasskeyContext.js';
68
68
  import '../../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
69
+ import { Badge } from '../../../../../components/Badge/Badge.js';
69
70
  import '../../../../../../polyfills.js';
70
71
  import '../../../../../context/ErrorBoundary/ErrorBoundaryBase.js';
71
72
  import '../../../../../context/ErrorBoundary/ErrorBoundaryContext.js';
@@ -79,7 +80,6 @@ import '../../../../../components/Popper/PopperContext/PopperContext.js';
79
80
  import '../../../../WalletList/WalletList.js';
80
81
  import '../../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
81
82
  import '@hcaptcha/react-hcaptcha';
82
- import { Badge } from '../../../../../components/Badge/Badge.js';
83
83
  import '../../../../../context/IpConfigurationContext/IpConfigurationContext.js';
84
84
  import '../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
85
85
  import '../../../../../context/SendBalanceContext/SendBalanceContext.js';
@@ -89,6 +89,7 @@ require('../../components/Popper/PopperContext/PopperContext.cjs');
89
89
  require('../WalletList/WalletList.cjs');
90
90
  require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
91
91
  require('@hcaptcha/react-hcaptcha');
92
+ var Checkbox = require('../../components/Checkbox/Checkbox.cjs');
92
93
  var useMfa = require('../../utils/hooks/useMfa/useMfa.cjs');
93
94
  require('../../context/IpConfigurationContext/IpConfigurationContext.cjs');
94
95
  require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
@@ -96,7 +97,6 @@ require('../../context/SendBalanceContext/SendBalanceContext.cjs');
96
97
  require('../../context/ConnectWithOtpContext/ConnectWithOtpContext.cjs');
97
98
  require('../../context/ConnectWithOtpContext/constants.cjs');
98
99
  require('../../context/ReinitializeContext/ReinitializeContextProvider.cjs');
99
- var Checkbox = require('../../components/Checkbox/Checkbox.cjs');
100
100
  var CopyButton = require('../../components/CopyButton/CopyButton.cjs');
101
101
  require('../../components/InlineWidget/InlineWidget.cjs');
102
102
  require('qrcode');
@@ -85,6 +85,7 @@ import '../../components/Popper/PopperContext/PopperContext.js';
85
85
  import '../WalletList/WalletList.js';
86
86
  import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
87
87
  import '@hcaptcha/react-hcaptcha';
88
+ import { Checkbox } from '../../components/Checkbox/Checkbox.js';
88
89
  import { useMfa } from '../../utils/hooks/useMfa/useMfa.js';
89
90
  import '../../context/IpConfigurationContext/IpConfigurationContext.js';
90
91
  import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
@@ -92,7 +93,6 @@ import '../../context/SendBalanceContext/SendBalanceContext.js';
92
93
  import '../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
93
94
  import '../../context/ConnectWithOtpContext/constants.js';
94
95
  import '../../context/ReinitializeContext/ReinitializeContextProvider.js';
95
- import { Checkbox } from '../../components/Checkbox/Checkbox.js';
96
96
  import { CopyButton } from '../../components/CopyButton/CopyButton.js';
97
97
  import '../../components/InlineWidget/InlineWidget.js';
98
98
  import 'qrcode';