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

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 (543) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +13 -13
  5. package/src/index.cjs +8 -6
  6. package/src/index.d.ts +1 -1
  7. package/src/index.js +5 -4
  8. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +18 -30
  9. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.d.ts +1 -1
  10. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +19 -31
  11. package/src/lib/components/Divider/Divider.cjs +3 -3
  12. package/src/lib/components/Divider/Divider.d.ts +2 -2
  13. package/src/lib/components/Divider/Divider.js +4 -4
  14. package/src/lib/components/EmailForm/EmailForm.cjs +1 -1
  15. package/src/lib/components/EmailForm/EmailForm.js +1 -1
  16. package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -1
  17. package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -1
  18. package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -1
  19. package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -1
  20. package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -1
  21. package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -1
  22. package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +5 -4
  23. package/src/lib/components/NeedHelpSection/NeedHelpSection.js +6 -5
  24. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +1 -1
  25. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +1 -1
  26. package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -1
  27. package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -1
  28. package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +1 -1
  29. package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +1 -1
  30. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -1
  31. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -1
  32. package/src/lib/components/PhoneNumberField/PhoneNumberField.cjs +1 -1
  33. package/src/lib/components/PhoneNumberField/PhoneNumberField.js +1 -1
  34. package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.cjs +1 -1
  35. package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.js +1 -1
  36. package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +2 -2
  37. package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +2 -2
  38. package/src/lib/components/RenderView/RenderView.cjs +1 -1
  39. package/src/lib/components/RenderView/RenderView.js +1 -1
  40. package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +11 -10
  41. package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +12 -11
  42. package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +3 -2
  43. package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +0 -1
  44. package/src/lib/components/SendBalanceForm/SendBalanceForm.js +3 -2
  45. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +7 -4
  46. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +0 -2
  47. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +7 -4
  48. package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.cjs +8 -3
  49. package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.d.ts +0 -1
  50. package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.js +8 -3
  51. package/src/lib/components/SendBalancePageLayout/utils.cjs +3 -1
  52. package/src/lib/components/SendBalancePageLayout/utils.d.ts +1 -1
  53. package/src/lib/components/SendBalancePageLayout/utils.js +3 -1
  54. package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +1 -1
  55. package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +1 -1
  56. package/src/lib/components/TransactionCard/TransactionCard.cjs +2 -2
  57. package/src/lib/components/TransactionCard/TransactionCard.d.ts +1 -2
  58. package/src/lib/components/TransactionCard/TransactionCard.js +2 -2
  59. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +24 -22
  60. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +0 -3
  61. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +24 -22
  62. package/src/lib/components/TransactionConfirmationPageLayout/utils.cjs +2 -2
  63. package/src/lib/components/TransactionConfirmationPageLayout/utils.d.ts +1 -1
  64. package/src/lib/components/TransactionConfirmationPageLayout/utils.js +2 -2
  65. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +4 -2
  66. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.d.ts +0 -1
  67. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +4 -2
  68. package/src/lib/components/UserProfile/UserProfile.cjs +1 -1
  69. package/src/lib/components/UserProfile/UserProfile.js +1 -1
  70. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +1 -1
  71. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -1
  72. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -1
  73. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -1
  74. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -1
  75. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -1
  76. package/src/lib/context/DynamicContext/DynamicContext.cjs +9 -13
  77. package/src/lib/context/DynamicContext/DynamicContext.js +9 -13
  78. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -1
  79. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -1
  80. package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +2 -2
  81. package/src/lib/context/DynamicContext/types/DynamicContextProps.d.ts +9 -4
  82. package/src/lib/context/DynamicContext/types/IDynamicContext.d.ts +6 -5
  83. package/src/lib/context/DynamicContext/types/SocialSettings.d.ts +7 -0
  84. package/src/lib/context/DynamicContext/types/index.d.ts +1 -0
  85. package/src/lib/context/MockContext/MockContext.cjs +1 -1
  86. package/src/lib/context/MockContext/MockContext.js +1 -1
  87. package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.d.ts +2 -2
  88. package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.cjs +1 -1
  89. package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.js +1 -1
  90. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +2 -2
  91. package/src/lib/context/UserWalletsContext/UserWalletsContext.d.ts +1 -1
  92. package/src/lib/context/WalletContext/WalletContext.cjs +1 -84
  93. package/src/lib/context/WalletContext/WalletContext.d.ts +1 -2
  94. package/src/lib/context/WalletContext/WalletContext.js +1 -84
  95. package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.cjs +1 -1
  96. package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.js +1 -1
  97. package/src/lib/data/api/api.cjs +1 -1
  98. package/src/lib/data/api/api.js +1 -1
  99. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +1 -1
  100. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +1 -1
  101. package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +1 -1
  102. package/src/lib/layout/DynamicAuthLayout/Header/header.js +1 -1
  103. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +1 -1
  104. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +1 -1
  105. package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +1 -1
  106. package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +1 -1
  107. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +1 -1
  108. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +1 -1
  109. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -1
  110. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -1
  111. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -1
  112. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -1
  113. package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +1 -1
  114. package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +1 -1
  115. package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +1 -1
  116. package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +1 -1
  117. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -1
  118. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -1
  119. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -1
  120. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -1
  121. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -1
  122. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -1
  123. package/src/lib/locale/en/translation.cjs +39 -5
  124. package/src/lib/locale/en/translation.d.ts +39 -5
  125. package/src/lib/locale/en/translation.js +39 -5
  126. package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +1 -1
  127. package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +1 -1
  128. package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +1 -1
  129. package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +1 -1
  130. package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -1
  131. package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -1
  132. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +11 -10
  133. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +12 -11
  134. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.cjs +4 -4
  135. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.d.ts +1 -1
  136. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.js +4 -4
  137. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.types.d.ts +2 -0
  138. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +2 -9
  139. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +2 -9
  140. package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +1 -1
  141. package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +1 -1
  142. package/src/lib/shared/assets/arrow-circle-right.cjs +54 -0
  143. package/src/lib/shared/assets/arrow-circle-right.js +30 -0
  144. package/src/lib/shared/assets/index.d.ts +1 -0
  145. package/src/lib/shared/types/wallets.d.ts +2 -2
  146. package/src/lib/shared/utils/functions/usingSessionKeys/usingSessionKeys.cjs +1 -1
  147. package/src/lib/shared/utils/functions/usingSessionKeys/usingSessionKeys.js +2 -2
  148. package/src/lib/shared/utils/functions/wallet/createWallet.d.ts +2 -2
  149. package/src/lib/store/actions/sendBalanceActions/index.d.ts +1 -1
  150. package/src/lib/store/actions/sendBalanceActions/sendBalanceActions.cjs +8 -0
  151. package/src/lib/store/actions/sendBalanceActions/sendBalanceActions.d.ts +1 -0
  152. package/src/lib/store/actions/sendBalanceActions/sendBalanceActions.js +8 -1
  153. package/src/lib/store/store.cjs +2 -0
  154. package/src/lib/store/store.js +2 -0
  155. package/src/lib/store/types.d.ts +2 -0
  156. package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.cjs +1 -1
  157. package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.js +1 -1
  158. package/src/lib/styles/index.shadow.cjs +1 -1
  159. package/src/lib/styles/index.shadow.js +1 -1
  160. package/src/lib/utils/constants/errors.cjs +0 -2
  161. package/src/lib/utils/constants/errors.js +1 -2
  162. package/src/lib/utils/functions/fiatUtils/fiatUtils.d.ts +2 -2
  163. package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.d.ts +2 -2
  164. package/src/lib/utils/{hooks/useWalletConnectors/utils/findWallet/findWallet.cjs → functions/findWalletOptionFor/findWalletOptionFor.cjs} +3 -3
  165. package/src/lib/utils/functions/findWalletOptionFor/findWalletOptionFor.d.ts +3 -0
  166. package/src/lib/utils/{hooks/useWalletConnectors/utils/findWallet/findWallet.js → functions/findWalletOptionFor/findWalletOptionFor.js} +3 -3
  167. package/src/lib/utils/functions/findWalletOptionFor/index.d.ts +1 -0
  168. package/src/lib/utils/functions/generateMessages/index.cjs +3 -2
  169. package/src/lib/utils/functions/generateMessages/index.js +3 -2
  170. package/src/lib/utils/functions/getEmbeddedWalletAuthHandler/getEmbeddedWalletAuthHandler.d.ts +2 -2
  171. package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.cjs +1 -1
  172. package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.js +1 -1
  173. package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +1 -1
  174. package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +1 -1
  175. package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -2
  176. package/src/lib/utils/functions/getWalletConnectorForWallet/getWalletConnectorForWallet.d.ts +2 -2
  177. package/src/lib/utils/functions/index.d.ts +0 -2
  178. package/src/lib/utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.d.ts +1 -1
  179. package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +1 -1
  180. package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +1 -1
  181. package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +1 -1
  182. package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +1 -1
  183. package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +1 -1
  184. package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +1 -1
  185. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.d.ts +2 -2
  186. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.d.ts +2 -2
  187. package/src/lib/utils/hooks/index.d.ts +1 -0
  188. package/src/lib/utils/hooks/multiWallet/index.d.ts +0 -1
  189. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +8 -7
  190. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +2 -2
  191. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +9 -8
  192. package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.d.ts +2 -2
  193. package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.d.ts +1 -1
  194. package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +3 -4
  195. package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +3 -4
  196. package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +1 -1
  197. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +4 -6
  198. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.d.ts +1 -1
  199. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +5 -7
  200. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +86 -61
  201. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.d.ts +3 -3
  202. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +87 -63
  203. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +32 -30
  204. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.d.ts +1 -1
  205. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +33 -31
  206. package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.d.ts +1 -1
  207. package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +7 -6
  208. package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +7 -6
  209. package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +11 -9
  210. package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +12 -10
  211. package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +8 -12
  212. package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +8 -12
  213. package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +1 -1
  214. package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +1 -1
  215. package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.cjs +6 -5
  216. package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.js +6 -5
  217. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +12 -11
  218. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.d.ts +2 -2
  219. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +12 -11
  220. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +3 -3
  221. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +3 -3
  222. package/src/lib/utils/hooks/useSmartWallets/index.d.ts +1 -0
  223. package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.cjs +159 -0
  224. package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.d.ts +18 -0
  225. package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.js +155 -0
  226. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +6 -1
  227. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +7 -2
  228. package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +1 -4
  229. package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +1 -4
  230. package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.cjs +3 -0
  231. package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.js +3 -0
  232. package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +1 -1
  233. package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +2 -2
  234. package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +1 -1
  235. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -1
  236. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -1
  237. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +1 -1
  238. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +1 -1
  239. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +7 -87
  240. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.d.ts +2 -2
  241. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +8 -88
  242. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +9 -79
  243. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +4 -10
  244. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +10 -80
  245. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +5 -89
  246. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.d.ts +2 -3
  247. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +5 -89
  248. package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.cjs +4 -4
  249. package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.js +5 -5
  250. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +26 -29
  251. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +2 -1
  252. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +26 -29
  253. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -1
  254. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.d.ts +6 -6
  255. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -1
  256. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.types.d.ts +4 -4
  257. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +16 -7
  258. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +2 -2
  259. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +16 -7
  260. package/src/lib/views/AccessBlockedView/AccessBlockedView.cjs +1 -1
  261. package/src/lib/views/AccessBlockedView/AccessBlockedView.js +1 -1
  262. package/src/lib/views/AccountExistsView/AccountExistsView.cjs +1 -1
  263. package/src/lib/views/AccountExistsView/AccountExistsView.js +1 -1
  264. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -1
  265. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -1
  266. package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +1 -1
  267. package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +1 -1
  268. package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +1 -1
  269. package/src/lib/views/CollectUserDataView/CollectUserDataView.js +1 -1
  270. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -1
  271. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -1
  272. package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +2 -2
  273. package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +2 -2
  274. package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.cjs +1 -1
  275. package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.js +1 -1
  276. package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs +1 -1
  277. package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js +1 -1
  278. package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +1 -1
  279. package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +1 -1
  280. package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +3 -3
  281. package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +3 -3
  282. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -1
  283. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -1
  284. package/src/lib/views/EmailVerification/EmailVerification.cjs +20 -19
  285. package/src/lib/views/EmailVerification/EmailVerification.js +21 -20
  286. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +1 -1
  287. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +1 -1
  288. package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +52 -52
  289. package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +53 -53
  290. package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +1 -1
  291. package/src/lib/views/EnterPasswordView/EnterPasswordView.js +1 -1
  292. package/src/lib/views/FarcasterConnectView/FarcasterConnectView.cjs +1 -1
  293. package/src/lib/views/FarcasterConnectView/FarcasterConnectView.js +1 -1
  294. package/src/lib/views/GlobalWalletConfirmView/GlobalWalletConfirmView.cjs +1 -1
  295. package/src/lib/views/GlobalWalletConfirmView/GlobalWalletConfirmView.js +1 -1
  296. package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.cjs +1 -1
  297. package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.js +1 -1
  298. package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +1 -1
  299. package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +1 -1
  300. package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +1 -1
  301. package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +1 -1
  302. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +1 -1
  303. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +1 -1
  304. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +1 -1
  305. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +1 -1
  306. package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +1 -1
  307. package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +1 -1
  308. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +2 -2
  309. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +2 -2
  310. package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +1 -1
  311. package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +1 -1
  312. package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.cjs +1 -1
  313. package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.js +1 -1
  314. package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.cjs +1 -1
  315. package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.js +1 -1
  316. package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.cjs +1 -1
  317. package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.js +1 -1
  318. package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +2 -2
  319. package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +2 -2
  320. package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +1 -1
  321. package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +1 -1
  322. package/src/lib/views/MfaSecureDeviceHelpView/MfaSecureDeviceHelpView.cjs +1 -1
  323. package/src/lib/views/MfaSecureDeviceHelpView/MfaSecureDeviceHelpView.js +1 -1
  324. package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.cjs +1 -1
  325. package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.js +1 -1
  326. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +1 -1
  327. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +1 -1
  328. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +1 -1
  329. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +1 -1
  330. package/src/lib/views/NoAccess/NoAccess.cjs +1 -1
  331. package/src/lib/views/NoAccess/NoAccess.js +1 -1
  332. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +1 -1
  333. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +1 -1
  334. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -1
  335. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -1
  336. package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +1 -1
  337. package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +1 -1
  338. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +35 -33
  339. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +1 -1
  340. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +35 -33
  341. package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +2 -2
  342. package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +2 -2
  343. package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +1 -1
  344. package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +1 -1
  345. package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +1 -1
  346. package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +1 -1
  347. package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +2 -2
  348. package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +2 -2
  349. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +35 -33
  350. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +1 -1
  351. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +35 -33
  352. package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +33 -31
  353. package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +33 -31
  354. package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +2 -2
  355. package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +2 -2
  356. package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +1 -1
  357. package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +1 -1
  358. package/src/lib/views/PendingConnectView/PendingConnectView.cjs +1 -1
  359. package/src/lib/views/PendingConnectView/PendingConnectView.js +1 -1
  360. package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -1
  361. package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -1
  362. package/src/lib/views/SandboxMaximumThresholdReached/SandboxMaximumThresholdReached.cjs +1 -1
  363. package/src/lib/views/SandboxMaximumThresholdReached/SandboxMaximumThresholdReached.js +1 -1
  364. package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +1 -1
  365. package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +1 -1
  366. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +28 -11
  367. package/src/lib/views/SendBalanceView/SendBalanceView.js +28 -11
  368. package/src/lib/views/SmsVerification/SmsVerification.cjs +1 -1
  369. package/src/lib/views/SmsVerification/SmsVerification.js +1 -1
  370. package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -1
  371. package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -1
  372. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -1
  373. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -1
  374. package/src/lib/{utils/functions/getEOAWallet/getEOAWallet.cjs → views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.cjs} +57 -50
  375. package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.d.ts +9 -0
  376. package/src/lib/{utils/functions/getEOAWallet/getEOAWallet.js → views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.js} +57 -50
  377. package/src/lib/views/SyncWalletView/AutoReconnectingView/index.d.ts +1 -0
  378. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.cjs +126 -0
  379. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.d.ts +9 -0
  380. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.js +122 -0
  381. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/index.d.ts +1 -0
  382. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.cjs +101 -0
  383. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.d.ts +10 -0
  384. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.js +97 -0
  385. package/src/lib/views/SyncWalletView/SwitchWalletView/index.d.ts +1 -0
  386. package/src/lib/views/SyncWalletView/SyncWalletView.cjs +74 -49
  387. package/src/lib/views/SyncWalletView/SyncWalletView.d.ts +2 -0
  388. package/src/lib/views/SyncWalletView/SyncWalletView.js +75 -50
  389. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +4 -2
  390. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +0 -2
  391. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +4 -2
  392. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -1
  393. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -1
  394. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +1 -1
  395. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +1 -1
  396. package/src/lib/views/WalletGroupView/WalletGroupView.cjs +2 -2
  397. package/src/lib/views/WalletGroupView/WalletGroupView.js +2 -2
  398. package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +2 -2
  399. package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +2 -2
  400. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +1 -1
  401. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +1 -1
  402. package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +1 -1
  403. package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +1 -1
  404. package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +2 -2
  405. package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +2 -2
  406. package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -1
  407. package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -1
  408. package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +1 -1
  409. package/src/lib/views/WalletRedirectView/WalletRedirectView.js +1 -1
  410. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +2 -2
  411. package/src/lib/views/WalletUsedView/WalletUsedView.js +2 -2
  412. package/src/lib/views/viewToComponentMap.cjs +1 -1
  413. package/src/lib/views/viewToComponentMap.js +1 -1
  414. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -1
  415. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -1
  416. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -1
  417. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -1
  418. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -1
  419. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -1
  420. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +1 -1
  421. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +1 -1
  422. package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +1 -1
  423. package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +1 -1
  424. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +1 -1
  425. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -1
  426. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +1 -1
  427. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +1 -1
  428. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +1 -1
  429. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +1 -1
  430. package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +1 -1
  431. package/src/lib/widgets/DynamicWidget/DynamicWidget.js +1 -1
  432. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +1 -1
  433. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +1 -1
  434. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +1 -1
  435. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +1 -1
  436. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +1 -1
  437. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +1 -1
  438. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +8 -7
  439. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +8 -7
  440. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceItem/TokenBalanceItem.cjs +1 -1
  441. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceItem/TokenBalanceItem.js +1 -1
  442. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceList/TokenBalanceList.cjs +1 -1
  443. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceList/TokenBalanceList.js +1 -1
  444. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -1
  445. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -1
  446. package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.cjs +1 -1
  447. package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.js +1 -1
  448. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +2 -2
  449. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +2 -2
  450. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +1 -1
  451. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -1
  452. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -1
  453. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -1
  454. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +1 -1
  455. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +1 -1
  456. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +1 -1
  457. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -1
  458. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +1 -1
  459. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +1 -1
  460. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -1
  461. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -1
  462. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +1 -1
  463. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +1 -1
  464. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +1 -1
  465. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +1 -1
  466. package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +1 -1
  467. package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +1 -1
  468. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -1
  469. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -1
  470. package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +1 -1
  471. package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +1 -1
  472. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +1 -1
  473. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +1 -1
  474. package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +8 -5
  475. package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.d.ts +3 -2
  476. package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +8 -5
  477. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +2 -2
  478. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +3 -1
  479. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +2 -2
  480. package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +2 -1
  481. package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.d.ts +1 -0
  482. package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +2 -1
  483. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +3 -3
  484. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +1 -0
  485. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +3 -3
  486. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +8 -10
  487. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +8 -10
  488. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +1 -1
  489. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +1 -1
  490. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +1 -1
  491. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -1
  492. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -1
  493. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -1
  494. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +1 -1
  495. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +1 -1
  496. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -1
  497. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -1
  498. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -1
  499. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -1
  500. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +1 -1
  501. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -1
  502. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +1 -1
  503. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +1 -1
  504. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +1 -1
  505. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +1 -1
  506. package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.cjs +1 -1
  507. package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.js +1 -1
  508. package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/ManageMfaWidgetView.cjs +1 -1
  509. package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/ManageMfaWidgetView.js +1 -1
  510. package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/components/UserDeviceTile.cjs +1 -1
  511. package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/components/UserDeviceTile.js +1 -1
  512. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +1 -1
  513. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +1 -1
  514. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +1 -1
  515. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +1 -1
  516. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +46 -45
  517. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +47 -46
  518. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +1 -1
  519. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +1 -1
  520. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -1
  521. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -1
  522. package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.cjs +0 -40
  523. package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.d.ts +0 -3
  524. package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.js +0 -36
  525. package/src/lib/utils/functions/createOwnerWallet/index.d.ts +0 -1
  526. package/src/lib/utils/functions/getEOAWallet/getEOAWallet.d.ts +0 -3
  527. package/src/lib/utils/functions/getEOAWallet/index.d.ts +0 -1
  528. package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.cjs +0 -8
  529. package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.js +0 -4
  530. package/src/lib/utils/functions/isWalletConnected/isWalletConnected.cjs +0 -14
  531. package/src/lib/utils/functions/isWalletConnected/isWalletConnected.js +0 -10
  532. package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.cjs +0 -25
  533. package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.js +0 -21
  534. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/index.d.ts +0 -1
  535. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +0 -209
  536. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +0 -1
  537. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +0 -205
  538. package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.d.ts +0 -3
  539. package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/index.d.ts +0 -1
  540. package/src/lib/utils/hooks/useWalletsConnectionState/index.d.ts +0 -1
  541. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +0 -184
  542. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +0 -12
  543. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +0 -180
@@ -57,14 +57,14 @@ const getDisplayFiatPrice = (amountValue, currentToken) => {
57
57
  }
58
58
  return fiatValue === 0 || fiatValue >= 0.01 ? fiatValue.toFixed(2) : '<0.01';
59
59
  };
60
- const useHandleRecovery = (hideModal, walletConnector, usingSessionKey, onSuccess, shouldInitRecovery, initPasskeyRecoveryProcess) => {
60
+ const useHandleRecovery = (walletConnector, usingSessionKey, onSuccess, shouldInitRecovery, initPasskeyRecoveryProcess, hideModal) => {
61
61
  const handleRecovery = () => __awaiter(void 0, void 0, void 0, function* () {
62
62
  if ((yield shouldInitRecovery()) &&
63
63
  walletConnector &&
64
64
  !usingSessionKey(walletConnector)) {
65
65
  yield initPasskeyRecoveryProcess('email', 'sendTransaction'); // Ensure the parameters match the actual function signature
66
- onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess('callHandlerOutsideModal');
67
66
  }
67
+ onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess('callHandlerOutsideModal');
68
68
  });
69
69
  useEffectOnce(() => {
70
70
  if (hideModal) {
@@ -39,6 +39,7 @@ require('react-international-phone');
39
39
  require('../../config/ApiEndpoint.cjs');
40
40
  require('@dynamic-labs/store');
41
41
  require('../../locale/locale.cjs');
42
+ var useSendBalanceState = require('../../store/hooks/useSendBalanceState/useSendBalanceState.cjs');
42
43
  var fiatUtils = require('../../utils/functions/fiatUtils/fiatUtils.cjs');
43
44
  require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
44
45
  require('../../context/AccountExistsContext/AccountExistsContext.cjs');
@@ -72,10 +73,10 @@ require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
72
73
  var IconButton = require('../IconButton/IconButton.cjs');
73
74
  require('../MenuList/Dropdown/Dropdown.cjs');
74
75
  require('formik');
76
+ require('@dynamic-labs/ethereum-core');
75
77
  require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
76
78
  var ModalHeader = require('../ModalHeader/ModalHeader.cjs');
77
79
  require('../Input/Input.cjs');
78
- require('@dynamic-labs/ethereum-core');
79
80
  var utils = require('../TransactionConfirmationPageLayout/utils.cjs');
80
81
  require('../../context/PasskeyContext/PasskeyContext.cjs');
81
82
  require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
@@ -101,9 +102,10 @@ require('../../context/ReinitializeContext/ReinitializeContextProvider.cjs');
101
102
  require('../InlineWidget/InlineWidget.cjs');
102
103
  require('qrcode');
103
104
 
104
- const TransactionStatusLayout = ({ destinationAddress, transactionValue, networkCurrency, onDone, displayPoweredByDynamicFooter = true, onClickClose, transaction, currentToken, nativePrice, isNativeToken, }) => {
105
+ const TransactionStatusLayout = ({ destinationAddress, transactionValue, networkCurrency, onDone, displayPoweredByDynamicFooter = true, onClickClose, transaction, currentToken, isNativeToken, }) => {
105
106
  const { t } = reactI18next.useTranslation();
106
107
  const { showFiat } = useInternalDynamicContext.useInternalDynamicContext();
108
+ const { nativePrice } = useSendBalanceState.useSendBalanceState();
107
109
  const closeButton = onClickClose && (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick: onClickClose, "data-testid": 'close', children: jsxRuntime.jsx(close.ReactComponent, {}) }));
108
110
  const totalFiatCost = fiatUtils.getTotalFiatCost(currentToken, transaction, nativePrice, transactionValue);
109
111
  return (jsxRuntime.jsxs("div", { className: 'transaction-status-layout', children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, alignContent: 'bottom', children: jsxRuntime.jsx(Icon.Icon, { size: 'large', className: 'transaction-status-layout__status-icon', children: jsxRuntime.jsx(checkBlue.ReactComponent, {}) }) }), jsxRuntime.jsxs("div", { className: 'transaction-status-layout__body', children: [jsxRuntime.jsxs("div", { className: 'transaction-status-layout__sent_to', children: [jsxRuntime.jsxs(Typography.Typography, { variant: 'body_small', color: 'secondary', className: 'transaction-status-layout__title', copykey: 'dyn_send_transaction.succeeded.title', children: [t('dyn_send_transaction.succeeded.title'), ' '] }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'primary', className: 'transaction-status-layout__title', copykey: 'dyn_send_transaction.succeeded.title', children: shortenWalletAddress.shortenWalletAddress(destinationAddress, 3, 3) })] }), jsxRuntime.jsx("div", { className: 'transaction-status-layout__content', children: jsxRuntime.jsx("div", { className: 'transaction-status-layout__rows', children: jsxRuntime.jsxs(Typography.Typography, { variant: 'title', color: 'primary', className: 'transaction-status-layout__title', copykey: 'dyn_send_transaction.succeeded.title', children: [`${utils.getValueRounded(isNativeToken, transaction)} ${networkCurrency} `, showFiat &&
@@ -12,7 +12,6 @@ export type Props = {
12
12
  onDone: MouseEventHandler<HTMLButtonElement>;
13
13
  transaction: IUITransaction;
14
14
  currentToken?: TokenBalance;
15
- nativePrice: number;
16
15
  isNativeToken: boolean;
17
16
  };
18
17
  export declare const TransactionStatusLayout: FC<Props>;
@@ -35,6 +35,7 @@ import 'react-international-phone';
35
35
  import '../../config/ApiEndpoint.js';
36
36
  import '@dynamic-labs/store';
37
37
  import '../../locale/locale.js';
38
+ import { useSendBalanceState } from '../../store/hooks/useSendBalanceState/useSendBalanceState.js';
38
39
  import { getTotalFiatCost } from '../../utils/functions/fiatUtils/fiatUtils.js';
39
40
  import '../../context/AccessDeniedContext/AccessDeniedContext.js';
40
41
  import '../../context/AccountExistsContext/AccountExistsContext.js';
@@ -68,10 +69,10 @@ import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
68
69
  import { IconButton } from '../IconButton/IconButton.js';
69
70
  import '../MenuList/Dropdown/Dropdown.js';
70
71
  import 'formik';
72
+ import '@dynamic-labs/ethereum-core';
71
73
  import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
72
74
  import { ModalHeader } from '../ModalHeader/ModalHeader.js';
73
75
  import '../Input/Input.js';
74
- import '@dynamic-labs/ethereum-core';
75
76
  import { getValueRounded } from '../TransactionConfirmationPageLayout/utils.js';
76
77
  import '../../context/PasskeyContext/PasskeyContext.js';
77
78
  import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
@@ -97,9 +98,10 @@ import '../../context/ReinitializeContext/ReinitializeContextProvider.js';
97
98
  import '../InlineWidget/InlineWidget.js';
98
99
  import 'qrcode';
99
100
 
100
- const TransactionStatusLayout = ({ destinationAddress, transactionValue, networkCurrency, onDone, displayPoweredByDynamicFooter = true, onClickClose, transaction, currentToken, nativePrice, isNativeToken, }) => {
101
+ const TransactionStatusLayout = ({ destinationAddress, transactionValue, networkCurrency, onDone, displayPoweredByDynamicFooter = true, onClickClose, transaction, currentToken, isNativeToken, }) => {
101
102
  const { t } = useTranslation();
102
103
  const { showFiat } = useInternalDynamicContext();
104
+ const { nativePrice } = useSendBalanceState();
103
105
  const closeButton = onClickClose && (jsx(IconButton, { type: 'button', onClick: onClickClose, "data-testid": 'close', children: jsx(SvgClose, {}) }));
104
106
  const totalFiatCost = getTotalFiatCost(currentToken, transaction, nativePrice, transactionValue);
105
107
  return (jsxs("div", { className: 'transaction-status-layout', children: [jsx(ModalHeader, { trailing: closeButton, alignContent: 'bottom', children: jsx(Icon, { size: 'large', className: 'transaction-status-layout__status-icon', children: jsx(SvgCheckBlue, {}) }) }), jsxs("div", { className: 'transaction-status-layout__body', children: [jsxs("div", { className: 'transaction-status-layout__sent_to', children: [jsxs(Typography, { variant: 'body_small', color: 'secondary', className: 'transaction-status-layout__title', copykey: 'dyn_send_transaction.succeeded.title', children: [t('dyn_send_transaction.succeeded.title'), ' '] }), jsx(Typography, { variant: 'body_small', color: 'primary', className: 'transaction-status-layout__title', copykey: 'dyn_send_transaction.succeeded.title', children: shortenWalletAddress(destinationAddress, 3, 3) })] }), jsx("div", { className: 'transaction-status-layout__content', children: jsx("div", { className: 'transaction-status-layout__rows', children: jsxs(Typography, { variant: 'title', color: 'primary', className: 'transaction-status-layout__title', copykey: 'dyn_send_transaction.succeeded.title', children: [`${getValueRounded(isNativeToken, transaction)} ${networkCurrency} `, showFiat &&
@@ -76,10 +76,10 @@ var UserProfileSocialAccount = require('./parts/UserProfileSocialAccount/UserPro
76
76
  var EditProfileButton = require('./parts/EditProfileButton/EditProfileButton.cjs');
77
77
  require('formik');
78
78
  var TypographyButton = require('../TypographyButton/TypographyButton.cjs');
79
+ require('@dynamic-labs/ethereum-core');
79
80
  require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
80
81
  require('../IconButton/IconButton.cjs');
81
82
  require('../Input/Input.cjs');
82
- require('@dynamic-labs/ethereum-core');
83
83
  require('../MenuList/Dropdown/Dropdown.cjs');
84
84
  require('../../context/PasskeyContext/PasskeyContext.cjs');
85
85
  require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
@@ -72,10 +72,10 @@ import { UserProfileSocialAccount } from './parts/UserProfileSocialAccount/UserP
72
72
  import { EditProfileButton } from './parts/EditProfileButton/EditProfileButton.js';
73
73
  import 'formik';
74
74
  import { TypographyButton } from '../TypographyButton/TypographyButton.js';
75
+ import '@dynamic-labs/ethereum-core';
75
76
  import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
76
77
  import '../IconButton/IconButton.js';
77
78
  import '../Input/Input.js';
78
- import '@dynamic-labs/ethereum-core';
79
79
  import '../MenuList/Dropdown/Dropdown.js';
80
80
  import '../../context/PasskeyContext/PasskeyContext.js';
81
81
  import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
@@ -65,9 +65,9 @@ require('../../../IconButton/IconButton.cjs');
65
65
  require('../../../MenuList/Dropdown/Dropdown.cjs');
66
66
  var VerifiedUserFieldIcon = require('./components/VerifiedUserFieldIcon/VerifiedUserFieldIcon.cjs');
67
67
  require('formik');
68
+ require('@dynamic-labs/ethereum-core');
68
69
  require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
69
70
  require('../../../Input/Input.cjs');
70
- require('@dynamic-labs/ethereum-core');
71
71
  require('../../../../context/PasskeyContext/PasskeyContext.cjs');
72
72
  require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
73
73
  require('../../../../../polyfills.cjs');
@@ -61,9 +61,9 @@ import '../../../IconButton/IconButton.js';
61
61
  import '../../../MenuList/Dropdown/Dropdown.js';
62
62
  import { VerifiedUserFieldIcon } from './components/VerifiedUserFieldIcon/VerifiedUserFieldIcon.js';
63
63
  import 'formik';
64
+ import '@dynamic-labs/ethereum-core';
64
65
  import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
65
66
  import '../../../Input/Input.js';
66
- import '@dynamic-labs/ethereum-core';
67
67
  import '../../../../context/PasskeyContext/PasskeyContext.js';
68
68
  import '../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
69
69
  import '../../../../../polyfills.js';
@@ -62,9 +62,9 @@ require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
62
62
  require('../../../IconButton/IconButton.cjs');
63
63
  require('../../../MenuList/Dropdown/Dropdown.cjs');
64
64
  require('formik');
65
+ require('@dynamic-labs/ethereum-core');
65
66
  require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
66
67
  require('../../../Input/Input.cjs');
67
- require('@dynamic-labs/ethereum-core');
68
68
  require('../../../../context/PasskeyContext/PasskeyContext.cjs');
69
69
  require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
70
70
  require('../../../../../polyfills.cjs');
@@ -58,9 +58,9 @@ import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
58
58
  import '../../../IconButton/IconButton.js';
59
59
  import '../../../MenuList/Dropdown/Dropdown.js';
60
60
  import 'formik';
61
+ import '@dynamic-labs/ethereum-core';
61
62
  import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
62
63
  import '../../../Input/Input.js';
63
- import '@dynamic-labs/ethereum-core';
64
64
  import '../../../../context/PasskeyContext/PasskeyContext.js';
65
65
  import '../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
66
66
  import '../../../../../polyfills.js';
@@ -71,9 +71,9 @@ require('../../../MenuList/Dropdown/Dropdown.cjs');
71
71
  var ConnectedAccountAvatar = require('./components/ConnectedAccountAvatar/ConnectedAccountAvatar.cjs');
72
72
  var TypographyButton = require('../../../TypographyButton/TypographyButton.cjs');
73
73
  require('formik');
74
+ require('@dynamic-labs/ethereum-core');
74
75
  require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
75
76
  require('../../../Input/Input.cjs');
76
- require('@dynamic-labs/ethereum-core');
77
77
  require('../../../../context/PasskeyContext/PasskeyContext.cjs');
78
78
  require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
79
79
  require('../../../../../polyfills.cjs');
@@ -67,9 +67,9 @@ import '../../../MenuList/Dropdown/Dropdown.js';
67
67
  import { ConnectedAccountAvatar } from './components/ConnectedAccountAvatar/ConnectedAccountAvatar.js';
68
68
  import { TypographyButton } from '../../../TypographyButton/TypographyButton.js';
69
69
  import 'formik';
70
+ import '@dynamic-labs/ethereum-core';
70
71
  import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
71
72
  import '../../../Input/Input.js';
72
- import '@dynamic-labs/ethereum-core';
73
73
  import '../../../../context/PasskeyContext/PasskeyContext.js';
74
74
  import '../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
75
75
  import '../../../../../polyfills.js';
@@ -146,7 +146,7 @@ const DynamicContext = React.createContext(undefined);
146
146
  /** The context provider itself we only use internally */
147
147
  const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, locale: locale$1, enableInstrumentation = false, }) => {
148
148
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
149
- const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, defaultPhoneInputIso2, apiBaseUrl, coinbaseWalletPreference, enableConnectOnlyFallback = false, deepLinkPreference: deepLinkPreferenceProp = 'native', bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = values.DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = 'connect-and-sign', debugError = false, displaySiweStatement = true, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = true, environmentId, walletsFilter, logLevel = 'WARN', mobileExperience, notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, signWithEmailWalletName, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, toolkitEnabled, siweStatement, shadowDOMEnabled = true, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = false, walletConnectPreferredChains, walletConnectorExtensions, recommendedWallets, hideEmbeddedWalletTransactionUIs, handlers, headless = false, } = settings$1;
149
+ const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, defaultPhoneInputIso2, apiBaseUrl, coinbaseWalletPreference, detectNewWalletsForLinking = false, enableConnectOnlyFallback = false, deepLinkPreference: deepLinkPreferenceProp = 'native', bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = values.DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = 'connect-and-sign', debugError = false, displaySiweStatement = true, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = true, environmentId, walletsFilter, logLevel = 'WARN', mobileExperience, notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, signWithEmailWalletName, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, toolkitEnabled, siweStatement, shadowDOMEnabled = true, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = false, walletConnectPreferredChains, walletConnectorExtensions, recommendedWallets, handlers, headless = false, } = settings$1;
150
150
  localStorage.LocalStorage.setSuffix(settings$1.localStorageSuffix);
151
151
  /**
152
152
  * initialize global store
@@ -221,8 +221,6 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
221
221
  showFiatOverride: (_h = settings$1.overrides) === null || _h === void 0 ? void 0 : _h.showFiat,
222
222
  showFiatSettings: (_j = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _j === void 0 ? void 0 : _j.showFiat,
223
223
  });
224
- // ensures that when user comes back to site and primary wallet is out of sync, we don't show widget popup
225
- const [showWidgetStatePopup, setShowWidgetStatePopup] = React.useState(!multiWallet);
226
224
  // Used inside useVerifyOnAwaitingSignature. Is legacy and should be removed asap
227
225
  const [legacyIsVerifying, setLegacyIsVerifying] = React.useState(false);
228
226
  const walletBook$1 = walletBook.useWalletBookCdn();
@@ -241,7 +239,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
241
239
  appLogoUrl,
242
240
  appName,
243
241
  getAppOrigin: () => window.location.origin,
244
- hideEmbeddedWalletTransactionUIs: hideEmbeddedWalletTransactionUIs !== null && hideEmbeddedWalletTransactionUIs !== void 0 ? hideEmbeddedWalletTransactionUIs : !((_o = (_m = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _m === void 0 ? void 0 : _m.embeddedWallets) === null || _o === void 0 ? void 0 : _o.showEmbeddedWalletActionsUI),
242
+ hideEmbeddedWalletTransactionUIs: !((_o = (_m = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _m === void 0 ? void 0 : _m.embeddedWallets) === null || _o === void 0 ? void 0 : _o.showEmbeddedWalletActionsUI),
245
243
  });
246
244
  const { walletConnectorOptions } = useWalletConnectorOptions.useWalletConnectorOptions({
247
245
  appLogoUrl,
@@ -294,18 +292,14 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
294
292
  const [selectedWalletWithAction, setSelectedWalletWithAction] = React.useState(null);
295
293
  useSetWalletConnectorVerifiedCredentials.useSetWalletConnectorVerifiedCredentials(user !== null && user !== void 0 ? user : userWithMissingInfo, walletConnectorOptions);
296
294
  useSetWalletConnectorFetchers.useSetWalletConnectorFetchers(walletConnectorOptions, environmentId);
297
- const { didConnectedStateLoad, primaryWallet, showQrcodeModal, secondaryWallets, setPrimaryWallet, setShowQrcodeModal, wallets: linkedOrConnectedWallets, } = useWalletConnectors.useWalletConnectors({
295
+ const { primaryWallet, showQrcodeModal, secondaryWallets, setPrimaryWallet, setShowQrcodeModal, wallets: linkedOrConnectedWallets, } = useWalletConnectors.useWalletConnectors({
298
296
  authMode,
299
297
  canHaveMultipleWalletsConnected: multiWallet,
300
298
  connectedWallets,
301
- multiWalletWidgetState,
302
299
  primaryWalletId,
303
- setDesktopUri,
304
300
  setMultiWalletWidgetState,
305
301
  setPrimaryWalletId,
306
- setQrcodeUri,
307
302
  user: user || userWithMissingInfo,
308
- walletBook: walletBook$1,
309
303
  walletConnectorOptions,
310
304
  });
311
305
  React.useEffect(() => {
@@ -387,6 +381,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
387
381
  const { isLoading: loadingNetwork, network } = useWalletConnectorNetwork.useWalletConnectorNetwork(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector);
388
382
  useWalletEventListeners.useWalletEventListeners({
389
383
  authMode,
384
+ detectNewWalletsForLinking,
390
385
  disconnectWallet,
391
386
  handleLogOut,
392
387
  multiWallet,
@@ -480,6 +475,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
480
475
  defaultNumberOfWalletsToShow,
481
476
  defaultPhoneInputIso2,
482
477
  desktopUri,
478
+ detectNewWalletsForLinking,
483
479
  disconnectWallet,
484
480
  displaySiweStatement,
485
481
  enableConnectOnlyFallback,
@@ -552,7 +548,6 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
552
548
  setShowBridgeWidget,
553
549
  setShowDynamicUserProfile,
554
550
  setShowQrcodeModal,
555
- setShowWidgetStatePopup,
556
551
  setUser: userActions.setUser,
557
552
  shadowDOMEnabled,
558
553
  showAuthFlow,
@@ -561,13 +556,13 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
561
556
  showFiat,
562
557
  showLockedWalletView,
563
558
  showQrcodeModal,
564
- showWidgetStatePopup,
565
559
  signWithEmailWalletName,
566
560
  siweStatement,
567
561
  socialMediaIconUrl: ((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general) === null || _a === void 0 ? void 0 : _a.supportUrls) || socialMediaIconUrl,
568
562
  socialMediaLinkText,
569
563
  socialMediaUrl,
570
564
  socialProvidersFilter,
565
+ socialSettings: settings$1.social,
571
566
  tabsItems,
572
567
  termsOfServiceUrl,
573
568
  theme,
@@ -602,6 +597,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
602
597
  defaultNumberOfWalletsToShow,
603
598
  defaultPhoneInputIso2,
604
599
  desktopUri,
600
+ detectNewWalletsForLinking,
605
601
  disconnectWallet,
606
602
  displaySiweStatement,
607
603
  enableConnectOnlyFallback,
@@ -635,6 +631,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
635
631
  onboardingImageUrl,
636
632
  settings$1.overrides,
637
633
  settings$1.redirectUrl,
634
+ settings$1.social,
638
635
  passkeySuccessPopup,
639
636
  policiesConsentInnerComponent,
640
637
  primaryWallet,
@@ -672,7 +669,6 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
672
669
  showFiat,
673
670
  showLockedWalletView,
674
671
  showQrcodeModal,
675
- showWidgetStatePopup,
676
672
  signWithEmailWalletName,
677
673
  siweStatement,
678
674
  socialMediaIconUrl,
@@ -724,7 +720,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings: settings$1, lo
724
720
  isAuthenticated: isAuthenticated || Boolean(primaryWallet),
725
721
  isBridgeFlow,
726
722
  isMultiWalletEnabled: multiWallet,
727
- }), children: [networkValidationMode === 'always' && jsxRuntime.jsx(UseNetworkValidation.UseNetworkValidation, {}), jsxRuntime.jsx(CaptchaContext.CaptchaContextProvider, { children: jsxRuntime.jsx(AccountExistsContext.AccountExistsContextProvider, { children: jsxRuntime.jsx(WalletContext.WalletContextProvider, { canSync: didConnectedStateLoad, children: jsxRuntime.jsx(VerificationContext.VerificationProvider, { children: jsxRuntime.jsx(PasskeyContext.PasskeyContextProvider, { children: jsxRuntime.jsx(DynamicWidgetContext.DynamicWidgetContextProvider, { children: jsxRuntime.jsx(DynamicBridgeWidgetContext.DynamicBridgeWidgetContextProvider, { children: jsxRuntime.jsx(FundingContext.FundingContextProvider, { children: jsxRuntime.jsx(AccessDeniedContext.AccessDeniedContextProvider, { children: jsxRuntime.jsx(SendBalanceContext.SendBalanceContextProvider, { children: jsxRuntime.jsx(WalletGroupContext.WalletGroupContextProvider, { children: jsxRuntime.jsx(UserFieldEditorContext.UserFieldEditorContextProvider, { children: jsxRuntime.jsx(ConnectWithOtpProvider.ConnectWithOtpProvider, { children: jsxRuntime.jsx(PhantomRedirectContext.PhantomRedirectContextProvider, { children: jsxRuntime.jsxs(SocialRedirectContext.SocialRedirectContextProvider, { children: [jsxRuntime.jsx(app.DynamicAuthFlow, {}), jsxRuntime.jsx(Toolkit.Toolkit, {}), jsxRuntime.jsx(FundingWidget.FundingWidget, {}), jsxRuntime.jsx(SyncAuthFlow.SyncAuthFlow, {}), confirmationModal, jsxRuntime.jsx(ErrorBoundaryExclude.ErrorBoundaryExclude, { children: children })] }) }) }) }) }) }) }) }) }) }) }) }) }) }) })] }) }) }) }) }) }));
723
+ }), children: [networkValidationMode === 'always' && jsxRuntime.jsx(UseNetworkValidation.UseNetworkValidation, {}), jsxRuntime.jsx(CaptchaContext.CaptchaContextProvider, { children: jsxRuntime.jsx(AccountExistsContext.AccountExistsContextProvider, { children: jsxRuntime.jsx(WalletContext.WalletContextProvider, { children: jsxRuntime.jsx(VerificationContext.VerificationProvider, { children: jsxRuntime.jsx(PasskeyContext.PasskeyContextProvider, { children: jsxRuntime.jsx(DynamicWidgetContext.DynamicWidgetContextProvider, { children: jsxRuntime.jsx(DynamicBridgeWidgetContext.DynamicBridgeWidgetContextProvider, { children: jsxRuntime.jsx(FundingContext.FundingContextProvider, { children: jsxRuntime.jsx(AccessDeniedContext.AccessDeniedContextProvider, { children: jsxRuntime.jsx(SendBalanceContext.SendBalanceContextProvider, { children: jsxRuntime.jsx(WalletGroupContext.WalletGroupContextProvider, { children: jsxRuntime.jsx(UserFieldEditorContext.UserFieldEditorContextProvider, { children: jsxRuntime.jsx(ConnectWithOtpProvider.ConnectWithOtpProvider, { children: jsxRuntime.jsx(PhantomRedirectContext.PhantomRedirectContextProvider, { children: jsxRuntime.jsxs(SocialRedirectContext.SocialRedirectContextProvider, { children: [jsxRuntime.jsx(app.DynamicAuthFlow, {}), jsxRuntime.jsx(Toolkit.Toolkit, {}), jsxRuntime.jsx(FundingWidget.FundingWidget, {}), jsxRuntime.jsx(SyncAuthFlow.SyncAuthFlow, {}), confirmationModal, jsxRuntime.jsx(ErrorBoundaryExclude.ErrorBoundaryExclude, { children: children })] }) }) }) }) }) }) }) }) }) }) }) }) }) }) })] }) }) }) }) }) }));
728
724
  };
729
725
  /** The context provider you need to have access too all of Dynamic's hooks */
730
726
  const DynamicContextProvider = (props) => {
@@ -142,7 +142,7 @@ const DynamicContext = createContext(undefined);
142
142
  /** The context provider itself we only use internally */
143
143
  const InnerDynamicContextProvider = ({ children, theme, settings, locale, enableInstrumentation = false, }) => {
144
144
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
145
- const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, defaultPhoneInputIso2, apiBaseUrl, coinbaseWalletPreference, enableConnectOnlyFallback = false, deepLinkPreference: deepLinkPreferenceProp = 'native', bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = 'connect-and-sign', debugError = false, displaySiweStatement = true, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = true, environmentId, walletsFilter, logLevel = 'WARN', mobileExperience, notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, signWithEmailWalletName, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, toolkitEnabled, siweStatement, shadowDOMEnabled = true, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = false, walletConnectPreferredChains, walletConnectorExtensions, recommendedWallets, hideEmbeddedWalletTransactionUIs, handlers, headless = false, } = settings;
145
+ const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, defaultPhoneInputIso2, apiBaseUrl, coinbaseWalletPreference, detectNewWalletsForLinking = false, enableConnectOnlyFallback = false, deepLinkPreference: deepLinkPreferenceProp = 'native', bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = 'connect-and-sign', debugError = false, displaySiweStatement = true, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = true, environmentId, walletsFilter, logLevel = 'WARN', mobileExperience, notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, signWithEmailWalletName, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, toolkitEnabled, siweStatement, shadowDOMEnabled = true, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = false, walletConnectPreferredChains, walletConnectorExtensions, recommendedWallets, handlers, headless = false, } = settings;
146
146
  LocalStorage.setSuffix(settings.localStorageSuffix);
147
147
  /**
148
148
  * initialize global store
@@ -217,8 +217,6 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
217
217
  showFiatOverride: (_h = settings.overrides) === null || _h === void 0 ? void 0 : _h.showFiat,
218
218
  showFiatSettings: (_j = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _j === void 0 ? void 0 : _j.showFiat,
219
219
  });
220
- // ensures that when user comes back to site and primary wallet is out of sync, we don't show widget popup
221
- const [showWidgetStatePopup, setShowWidgetStatePopup] = useState(!multiWallet);
222
220
  // Used inside useVerifyOnAwaitingSignature. Is legacy and should be removed asap
223
221
  const [legacyIsVerifying, setLegacyIsVerifying] = useState(false);
224
222
  const walletBook = useWalletBookCdn();
@@ -237,7 +235,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
237
235
  appLogoUrl,
238
236
  appName,
239
237
  getAppOrigin: () => window.location.origin,
240
- hideEmbeddedWalletTransactionUIs: hideEmbeddedWalletTransactionUIs !== null && hideEmbeddedWalletTransactionUIs !== void 0 ? hideEmbeddedWalletTransactionUIs : !((_o = (_m = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _m === void 0 ? void 0 : _m.embeddedWallets) === null || _o === void 0 ? void 0 : _o.showEmbeddedWalletActionsUI),
238
+ hideEmbeddedWalletTransactionUIs: !((_o = (_m = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _m === void 0 ? void 0 : _m.embeddedWallets) === null || _o === void 0 ? void 0 : _o.showEmbeddedWalletActionsUI),
241
239
  });
242
240
  const { walletConnectorOptions } = useWalletConnectorOptions({
243
241
  appLogoUrl,
@@ -290,18 +288,14 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
290
288
  const [selectedWalletWithAction, setSelectedWalletWithAction] = useState(null);
291
289
  useSetWalletConnectorVerifiedCredentials(user !== null && user !== void 0 ? user : userWithMissingInfo, walletConnectorOptions);
292
290
  useSetWalletConnectorFetchers(walletConnectorOptions, environmentId);
293
- const { didConnectedStateLoad, primaryWallet, showQrcodeModal, secondaryWallets, setPrimaryWallet, setShowQrcodeModal, wallets: linkedOrConnectedWallets, } = useWalletConnectors({
291
+ const { primaryWallet, showQrcodeModal, secondaryWallets, setPrimaryWallet, setShowQrcodeModal, wallets: linkedOrConnectedWallets, } = useWalletConnectors({
294
292
  authMode,
295
293
  canHaveMultipleWalletsConnected: multiWallet,
296
294
  connectedWallets,
297
- multiWalletWidgetState,
298
295
  primaryWalletId,
299
- setDesktopUri,
300
296
  setMultiWalletWidgetState,
301
297
  setPrimaryWalletId,
302
- setQrcodeUri,
303
298
  user: user || userWithMissingInfo,
304
- walletBook,
305
299
  walletConnectorOptions,
306
300
  });
307
301
  useEffect(() => {
@@ -383,6 +377,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
383
377
  const { isLoading: loadingNetwork, network } = useWalletConnectorNetwork(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector);
384
378
  useWalletEventListeners({
385
379
  authMode,
380
+ detectNewWalletsForLinking,
386
381
  disconnectWallet,
387
382
  handleLogOut,
388
383
  multiWallet,
@@ -476,6 +471,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
476
471
  defaultNumberOfWalletsToShow,
477
472
  defaultPhoneInputIso2,
478
473
  desktopUri,
474
+ detectNewWalletsForLinking,
479
475
  disconnectWallet,
480
476
  displaySiweStatement,
481
477
  enableConnectOnlyFallback,
@@ -548,7 +544,6 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
548
544
  setShowBridgeWidget,
549
545
  setShowDynamicUserProfile,
550
546
  setShowQrcodeModal,
551
- setShowWidgetStatePopup,
552
547
  setUser,
553
548
  shadowDOMEnabled,
554
549
  showAuthFlow,
@@ -557,13 +552,13 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
557
552
  showFiat,
558
553
  showLockedWalletView,
559
554
  showQrcodeModal,
560
- showWidgetStatePopup,
561
555
  signWithEmailWalletName,
562
556
  siweStatement,
563
557
  socialMediaIconUrl: ((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general) === null || _a === void 0 ? void 0 : _a.supportUrls) || socialMediaIconUrl,
564
558
  socialMediaLinkText,
565
559
  socialMediaUrl,
566
560
  socialProvidersFilter,
561
+ socialSettings: settings.social,
567
562
  tabsItems,
568
563
  termsOfServiceUrl,
569
564
  theme,
@@ -598,6 +593,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
598
593
  defaultNumberOfWalletsToShow,
599
594
  defaultPhoneInputIso2,
600
595
  desktopUri,
596
+ detectNewWalletsForLinking,
601
597
  disconnectWallet,
602
598
  displaySiweStatement,
603
599
  enableConnectOnlyFallback,
@@ -631,6 +627,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
631
627
  onboardingImageUrl,
632
628
  settings.overrides,
633
629
  settings.redirectUrl,
630
+ settings.social,
634
631
  passkeySuccessPopup,
635
632
  policiesConsentInnerComponent,
636
633
  primaryWallet,
@@ -668,7 +665,6 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
668
665
  showFiat,
669
666
  showLockedWalletView,
670
667
  showQrcodeModal,
671
- showWidgetStatePopup,
672
668
  signWithEmailWalletName,
673
669
  siweStatement,
674
670
  socialMediaIconUrl,
@@ -720,7 +716,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, enable
720
716
  isAuthenticated: isAuthenticated || Boolean(primaryWallet),
721
717
  isBridgeFlow,
722
718
  isMultiWalletEnabled: multiWallet,
723
- }), children: [networkValidationMode === 'always' && jsx(UseNetworkValidation, {}), jsx(CaptchaContextProvider, { children: jsx(AccountExistsContextProvider, { children: jsx(WalletContextProvider, { canSync: didConnectedStateLoad, children: jsx(VerificationProvider, { children: jsx(PasskeyContextProvider, { children: jsx(DynamicWidgetContextProvider, { children: jsx(DynamicBridgeWidgetContextProvider, { children: jsx(FundingContextProvider, { children: jsx(AccessDeniedContextProvider, { children: jsx(SendBalanceContextProvider, { children: jsx(WalletGroupContextProvider, { children: jsx(UserFieldEditorContextProvider, { children: jsx(ConnectWithOtpProvider, { children: jsx(PhantomRedirectContextProvider, { children: jsxs(SocialRedirectContextProvider, { children: [jsx(DynamicAuthFlow, {}), jsx(Toolkit, {}), jsx(FundingWidget, {}), jsx(SyncAuthFlow, {}), confirmationModal, jsx(ErrorBoundaryExclude, { children: children })] }) }) }) }) }) }) }) }) }) }) }) }) }) }) })] }) }) }) }) }) }));
719
+ }), children: [networkValidationMode === 'always' && jsx(UseNetworkValidation, {}), jsx(CaptchaContextProvider, { children: jsx(AccountExistsContextProvider, { children: jsx(WalletContextProvider, { children: jsx(VerificationProvider, { children: jsx(PasskeyContextProvider, { children: jsx(DynamicWidgetContextProvider, { children: jsx(DynamicBridgeWidgetContextProvider, { children: jsx(FundingContextProvider, { children: jsx(AccessDeniedContextProvider, { children: jsx(SendBalanceContextProvider, { children: jsx(WalletGroupContextProvider, { children: jsx(UserFieldEditorContextProvider, { children: jsx(ConnectWithOtpProvider, { children: jsx(PhantomRedirectContextProvider, { children: jsxs(SocialRedirectContextProvider, { children: [jsx(DynamicAuthFlow, {}), jsx(Toolkit, {}), jsx(FundingWidget, {}), jsx(SyncAuthFlow, {}), confirmationModal, jsx(ErrorBoundaryExclude, { children: children })] }) }) }) }) }) }) }) }) }) }) }) }) }) }) })] }) }) }) }) }) }));
724
720
  };
725
721
  /** The context provider you need to have access too all of Dynamic's hooks */
726
722
  const DynamicContextProvider = (props) => {
@@ -4,7 +4,6 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var React = require('react');
7
- require('@dynamic-labs/wallet-connector-core');
8
7
  require('@dynamic-labs/sdk-api-core');
9
8
  require('../../../../utils/constants/values.cjs');
10
9
  require('@dynamic-labs/utils');
@@ -12,6 +11,7 @@ require('../../../../../../_virtual/_tslib.cjs');
12
11
  require('@dynamic-labs/multi-wallet');
13
12
  require('../../../../shared/logger.cjs');
14
13
  require('@dynamic-labs/iconic');
14
+ require('@dynamic-labs/wallet-connector-core');
15
15
  require('react/jsx-runtime');
16
16
  require('../../../ViewContext/ViewContext.cjs');
17
17
  require('@dynamic-labs/wallet-book');
@@ -1,6 +1,5 @@
1
1
  'use client'
2
2
  import { useState, useMemo } from 'react';
3
- import '@dynamic-labs/wallet-connector-core';
4
3
  import '@dynamic-labs/sdk-api-core';
5
4
  import '../../../../utils/constants/values.js';
6
5
  import '@dynamic-labs/utils';
@@ -8,6 +7,7 @@ import '../../../../../../_virtual/_tslib.js';
8
7
  import '@dynamic-labs/multi-wallet';
9
8
  import '../../../../shared/logger.js';
10
9
  import '@dynamic-labs/iconic';
10
+ import '@dynamic-labs/wallet-connector-core';
11
11
  import 'react/jsx-runtime';
12
12
  import '../../../ViewContext/ViewContext.js';
13
13
  import '@dynamic-labs/wallet-book';
@@ -1,6 +1,6 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
2
  import { UserProfile } from '@dynamic-labs/types';
3
- import { WalletConnectorCore } from '@dynamic-labs/wallet-connector-core';
3
+ import { WalletConnector } from '@dynamic-labs/wallet-connector-core';
4
4
  import { AuthModeType, DynamicEventsCallbacks, Wallet } from '../../../../shared';
5
5
  import { MultiWalletWidgetStateSetter } from '../../../../utils/hooks/multiWallet';
6
6
  import { ChainsToConnect } from '../../types';
@@ -13,7 +13,7 @@ export type UseHandleLogoutParams = {
13
13
  setShowBridgeWidget: Dispatch<SetStateAction<boolean>>;
14
14
  user: UserProfile | undefined;
15
15
  environmentId: string;
16
- walletConnectors: WalletConnectorCore.WalletConnector[];
16
+ walletConnectors: WalletConnector[];
17
17
  connectedWallets: Wallet[];
18
18
  setLegacyIsVerifying: Dispatch<SetStateAction<boolean>>;
19
19
  setAuthMode: (value: AuthModeType | ((val: AuthModeType) => AuthModeType)) => void;
@@ -10,6 +10,7 @@ import { SocialNetworkIconType } from '../../../utils/functions/getSocialNetwork
10
10
  import { ThemeData, ThemeSetting } from '../../ThemeContext';
11
11
  import { ChainsToConnect, NetworkValidationMode } from './IDynamicContext';
12
12
  import { SettingsOverrides } from './SettingsOverrides';
13
+ import { SocialSettings } from './SocialSettings';
13
14
  export interface DynamicContextProps {
14
15
  children: ReactNode;
15
16
  locale?: LocaleResource;
@@ -25,6 +26,13 @@ export interface DynamicContextProps {
25
26
  cssOverrides?: string | JSX.Element;
26
27
  customPrivacyPolicy?: ReactNode;
27
28
  defaultPhoneInputIso2?: CountryIso2;
29
+ /**
30
+ * If true, users will see a prompt to link the wallet
31
+ * when an account change is detected in the wallet connector
32
+ * and the newly selected wallet is not linked yet
33
+ * @default false
34
+ */
35
+ detectNewWalletsForLinking?: boolean;
28
36
  customTermsOfServices?: ReactNode;
29
37
  debugError?: boolean;
30
38
  /**
@@ -52,10 +60,6 @@ export interface DynamicContextProps {
52
60
  flowNetwork?: 'testnet' | 'mainnet';
53
61
  handlers?: DynamicHandlers;
54
62
  headless?: boolean;
55
- /**
56
- * @deprecated Set this property in the dashboard instead
57
- */
58
- hideEmbeddedWalletTransactionUIs?: boolean;
59
63
  initialAuthenticationMode?: AuthModeType;
60
64
  localStorageSuffix?: string;
61
65
  /**
@@ -69,6 +73,7 @@ export interface DynamicContextProps {
69
73
  notInTheListImageUrl?: string;
70
74
  onboardingImageUrl?: string;
71
75
  overrides?: SettingsOverrides;
76
+ social?: SocialSettings;
72
77
  policiesConsentInnerComponent?: ReactNode | ReactNode[];
73
78
  privacyPolicyUrl?: string;
74
79
  recommendedWallets?: RecommendedWallet[];
@@ -3,7 +3,7 @@ import { changeLanguage } from 'i18next';
3
3
  import { CountryIso2 } from 'react-international-phone';
4
4
  import { NameServiceData, ProjectSettings } from '@dynamic-labs/sdk-api-core';
5
5
  import { MobileExperience, NetworkConfigurationMap, SocialProviderFilter, UserProfile, WalletUiUtils } from '@dynamic-labs/types';
6
- import { Chain, GetAddressOpts, WalletConnector } from '@dynamic-labs/wallet-connector-core';
6
+ import { Chain, GetAddressOpts, InternalWalletConnector, WalletConnector } from '@dynamic-labs/wallet-connector-core';
7
7
  import { PasskeySuccessEnum } from '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner';
8
8
  import { AccessDeniedCustomButton, AccountSwitchState, AuthModeType, AwaitingSignatureState, ChainToWalletMap, DynamicEventsCallbacks, MultiWalletWidgetState, RecommendedWallet, Wallet, WalletOption, WalletWithAction } from '../../../shared';
9
9
  import { DynamicHandlers } from '../../../shared/types/dynamicHandlers';
@@ -16,6 +16,7 @@ import { DisplayOrder, SetDisplayOrderPriority, SetShowAuthFlow } from '../hooks
16
16
  import { SetCallbackType } from '../useCustomerCallbacks';
17
17
  import { SettingsOverrides } from './SettingsOverrides';
18
18
  import { WalletListViewTabItem } from './WalletListViewTabItem';
19
+ import { SocialSettings } from './SocialSettings';
19
20
  export type ChainsToConnect = {
20
21
  chain: Chain;
21
22
  chainId?: number;
@@ -37,6 +38,7 @@ export interface IDynamicContext {
37
38
  authToken: string | undefined;
38
39
  authorizationViewDisplayOrder: DisplayOrder;
39
40
  awaitingSignatureState: AwaitingSignatureState;
41
+ socialSettings?: SocialSettings;
40
42
  bridgeChains: ChainsToConnect[] | undefined;
41
43
  bridgeChainsToConnect: ChainsToConnect[] | undefined;
42
44
  bridgeOnboardingCompleted: boolean;
@@ -50,6 +52,7 @@ export interface IDynamicContext {
50
52
  debugError: boolean;
51
53
  defaultNumberOfWalletsToShow: number;
52
54
  desktopUri: string;
55
+ detectNewWalletsForLinking: boolean;
53
56
  disconnectWallet: (walletId: string) => void;
54
57
  displaySiweStatement: boolean;
55
58
  enableConnectOnlyFallback?: boolean;
@@ -107,7 +110,7 @@ export interface IDynamicContext {
107
110
  removeConnectedWalletsInfo: () => void;
108
111
  sdkHasLoaded: boolean;
109
112
  secondaryWallets: Wallet[];
110
- selectedWalletConnector: WalletConnector | null;
113
+ selectedWalletConnector: InternalWalletConnector | null;
111
114
  selectedWalletWithAction: WalletWithAction | null;
112
115
  sendWagmiSettings: (settings: {
113
116
  dynamicWagmiSettings?: object;
@@ -138,7 +141,6 @@ export interface IDynamicContext {
138
141
  setShowBridgeWidget: Dispatch<SetStateAction<boolean>>;
139
142
  setShowDynamicUserProfile: Dispatch<SetStateAction<boolean>>;
140
143
  setShowQrcodeModal: Dispatch<SetStateAction<boolean>>;
141
- setShowWidgetStatePopup: Dispatch<SetStateAction<boolean>>;
142
144
  setUser: SetUserAction;
143
145
  shadowDOMEnabled: boolean;
144
146
  showAuthFlow: boolean;
@@ -150,7 +152,6 @@ export interface IDynamicContext {
150
152
  showFiat: boolean;
151
153
  showLockedWalletView?: boolean;
152
154
  showQrcodeModal: boolean;
153
- showWidgetStatePopup: boolean;
154
155
  signWithEmailWalletName?: string;
155
156
  siweStatement?: string;
156
157
  socialMediaIconUrl?: Record<string, string> | Record<SocialNetworkIconType, string>;
@@ -163,6 +164,6 @@ export interface IDynamicContext {
163
164
  user: UserProfile | undefined;
164
165
  userWithMissingInfo: UserProfile | undefined;
165
166
  walletConnectorOptions: WalletOption[];
166
- walletUiUtils: WalletUiUtils<WalletConnector>;
167
+ walletUiUtils: WalletUiUtils<InternalWalletConnector>;
167
168
  walletsFilter?: (options: WalletOption[]) => WalletOption[];
168
169
  }
@@ -0,0 +1,7 @@
1
+ export type SocialSettings = {
2
+ /**
3
+ * @description The strategy of how the social auth flow will be for end-user.
4
+ * @default 'redirect'
5
+ */
6
+ strategy?: 'popup' | 'redirect';
7
+ };
@@ -2,3 +2,4 @@ export * from './DynamicContextProps';
2
2
  export * from './IDynamicContext';
3
3
  export * from './SettingsOverrides';
4
4
  export * from './WalletListViewTabItem';
5
+ export * from './SocialSettings';