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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +13 -13
  5. package/src/index.cjs +7 -5
  6. package/src/index.d.ts +1 -1
  7. package/src/index.js +4 -3
  8. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +17 -16
  9. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +18 -17
  10. package/src/lib/components/Divider/Divider.cjs +2 -2
  11. package/src/lib/components/Divider/Divider.d.ts +2 -2
  12. package/src/lib/components/Divider/Divider.js +3 -3
  13. package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -1
  14. package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -1
  15. package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -1
  16. package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -1
  17. package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -1
  18. package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -1
  19. package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +5 -4
  20. package/src/lib/components/NeedHelpSection/NeedHelpSection.js +6 -5
  21. package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +1 -1
  22. package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +1 -1
  23. package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +11 -10
  24. package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +12 -11
  25. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
  26. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
  27. package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.cjs +6 -1
  28. package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.js +6 -1
  29. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
  30. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +0 -1
  31. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
  32. package/src/lib/context/DynamicContext/DynamicContext.cjs +11 -16
  33. package/src/lib/context/DynamicContext/DynamicContext.js +11 -16
  34. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -1
  35. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -1
  36. package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +2 -2
  37. package/src/lib/context/DynamicContext/types/DynamicContextProps.d.ts +7 -0
  38. package/src/lib/context/DynamicContext/types/IDynamicContext.d.ts +4 -5
  39. package/src/lib/context/DynamicContext/types/SettingsOverrides.d.ts +3 -2
  40. package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.d.ts +2 -2
  41. package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.cjs +1 -1
  42. package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.js +1 -1
  43. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +2 -2
  44. package/src/lib/context/UserWalletsContext/UserWalletsContext.d.ts +1 -1
  45. package/src/lib/context/WalletContext/WalletContext.cjs +1 -84
  46. package/src/lib/context/WalletContext/WalletContext.d.ts +1 -2
  47. package/src/lib/context/WalletContext/WalletContext.js +1 -84
  48. package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.cjs +1 -1
  49. package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.js +1 -1
  50. package/src/lib/data/api/api.cjs +1 -1
  51. package/src/lib/data/api/api.js +1 -1
  52. package/src/lib/locale/en/translation.cjs +39 -5
  53. package/src/lib/locale/en/translation.d.ts +39 -5
  54. package/src/lib/locale/en/translation.js +39 -5
  55. package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -1
  56. package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -1
  57. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +10 -9
  58. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +11 -10
  59. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.cjs +4 -4
  60. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.d.ts +1 -1
  61. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.js +4 -4
  62. package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.types.d.ts +2 -0
  63. package/src/lib/shared/assets/arrow-circle-right.cjs +54 -0
  64. package/src/lib/shared/assets/arrow-circle-right.js +30 -0
  65. package/src/lib/shared/assets/index.d.ts +1 -0
  66. package/src/lib/shared/types/wallets.d.ts +2 -2
  67. package/src/lib/shared/utils/functions/usingSessionKeys/usingSessionKeys.cjs +1 -1
  68. package/src/lib/shared/utils/functions/usingSessionKeys/usingSessionKeys.js +2 -2
  69. package/src/lib/shared/utils/functions/wallet/createWallet.d.ts +2 -2
  70. package/src/lib/store/hooks/useNetworkConfigurations/useNetworkConfigurations.cjs +19 -4
  71. package/src/lib/store/hooks/useNetworkConfigurations/useNetworkConfigurations.d.ts +4 -3
  72. package/src/lib/store/hooks/useNetworkConfigurations/useNetworkConfigurations.js +19 -4
  73. package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.cjs +1 -1
  74. package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.js +1 -1
  75. package/src/lib/styles/index.shadow.cjs +1 -1
  76. package/src/lib/styles/index.shadow.js +1 -1
  77. package/src/lib/utils/constants/errors.cjs +0 -2
  78. package/src/lib/utils/constants/errors.js +1 -2
  79. package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.d.ts +2 -2
  80. package/src/lib/utils/{hooks/useWalletConnectors/utils/findWallet/findWallet.cjs → functions/findWalletOptionFor/findWalletOptionFor.cjs} +3 -3
  81. package/src/lib/utils/functions/findWalletOptionFor/findWalletOptionFor.d.ts +3 -0
  82. package/src/lib/utils/{hooks/useWalletConnectors/utils/findWallet/findWallet.js → functions/findWalletOptionFor/findWalletOptionFor.js} +3 -3
  83. package/src/lib/utils/functions/findWalletOptionFor/index.d.ts +1 -0
  84. package/src/lib/utils/functions/generateMessages/index.cjs +3 -2
  85. package/src/lib/utils/functions/generateMessages/index.js +3 -2
  86. package/src/lib/utils/functions/getEmbeddedWalletAuthHandler/getEmbeddedWalletAuthHandler.d.ts +2 -2
  87. package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.cjs +1 -1
  88. package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.js +1 -1
  89. package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +1 -1
  90. package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +1 -1
  91. package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -2
  92. package/src/lib/utils/functions/getWalletConnectorForWallet/getWalletConnectorForWallet.d.ts +2 -2
  93. package/src/lib/utils/functions/index.d.ts +0 -2
  94. package/src/lib/utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.d.ts +1 -1
  95. package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +1 -1
  96. package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +1 -1
  97. package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +1 -1
  98. package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +1 -1
  99. package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +1 -1
  100. package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +1 -1
  101. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.d.ts +2 -2
  102. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.d.ts +2 -2
  103. package/src/lib/utils/hooks/index.d.ts +1 -0
  104. package/src/lib/utils/hooks/multiWallet/index.d.ts +0 -1
  105. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +8 -7
  106. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +2 -2
  107. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +9 -8
  108. package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.d.ts +2 -2
  109. package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.d.ts +1 -1
  110. package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +3 -4
  111. package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +3 -4
  112. package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +1 -1
  113. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +4 -6
  114. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.d.ts +1 -1
  115. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +5 -7
  116. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +86 -61
  117. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.d.ts +3 -3
  118. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +87 -63
  119. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +32 -30
  120. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.d.ts +1 -1
  121. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +33 -31
  122. package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.d.ts +1 -1
  123. package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +7 -6
  124. package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +7 -6
  125. package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +11 -9
  126. package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +12 -10
  127. package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +8 -12
  128. package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +8 -12
  129. package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +1 -1
  130. package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +1 -1
  131. package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.cjs +6 -5
  132. package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.js +6 -5
  133. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +12 -11
  134. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.d.ts +2 -2
  135. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +12 -11
  136. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +3 -3
  137. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +3 -3
  138. package/src/lib/utils/hooks/useSmartWallets/index.d.ts +1 -0
  139. package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.cjs +159 -0
  140. package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.d.ts +18 -0
  141. package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.js +155 -0
  142. package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +1 -4
  143. package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +1 -4
  144. package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +1 -1
  145. package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +2 -2
  146. package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +1 -1
  147. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -1
  148. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -1
  149. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +1 -1
  150. package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +1 -1
  151. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +7 -87
  152. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.d.ts +2 -2
  153. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +8 -88
  154. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +9 -79
  155. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +4 -10
  156. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +10 -80
  157. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +5 -89
  158. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.d.ts +2 -3
  159. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +5 -89
  160. package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.cjs +4 -4
  161. package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.js +5 -5
  162. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +26 -29
  163. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +2 -1
  164. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +26 -29
  165. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -1
  166. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.d.ts +6 -6
  167. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -1
  168. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.types.d.ts +4 -4
  169. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +16 -7
  170. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +2 -2
  171. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +16 -7
  172. package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +1 -1
  173. package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +1 -1
  174. package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +2 -2
  175. package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +2 -2
  176. package/src/lib/views/EmailVerification/EmailVerification.cjs +19 -18
  177. package/src/lib/views/EmailVerification/EmailVerification.js +20 -19
  178. package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +52 -52
  179. package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +53 -53
  180. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +1 -1
  181. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +1 -1
  182. package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +1 -1
  183. package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +1 -1
  184. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +35 -33
  185. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +1 -1
  186. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +35 -33
  187. package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +1 -1
  188. package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +1 -1
  189. package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +1 -1
  190. package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +1 -1
  191. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +35 -33
  192. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +1 -1
  193. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +35 -33
  194. package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +33 -31
  195. package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +33 -31
  196. package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +1 -1
  197. package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +1 -1
  198. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +7 -1
  199. package/src/lib/views/SendBalanceView/SendBalanceView.js +7 -1
  200. package/src/lib/{utils/functions/getEOAWallet/getEOAWallet.cjs → views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.cjs} +57 -50
  201. package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.d.ts +9 -0
  202. package/src/lib/{utils/functions/getEOAWallet/getEOAWallet.js → views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.js} +57 -50
  203. package/src/lib/views/SyncWalletView/AutoReconnectingView/index.d.ts +1 -0
  204. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.cjs +126 -0
  205. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.d.ts +9 -0
  206. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.js +122 -0
  207. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/index.d.ts +1 -0
  208. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.cjs +101 -0
  209. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.d.ts +10 -0
  210. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.js +97 -0
  211. package/src/lib/views/SyncWalletView/SwitchWalletView/index.d.ts +1 -0
  212. package/src/lib/views/SyncWalletView/SyncWalletView.cjs +74 -49
  213. package/src/lib/views/SyncWalletView/SyncWalletView.d.ts +2 -0
  214. package/src/lib/views/SyncWalletView/SyncWalletView.js +75 -50
  215. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -1
  216. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -1
  217. package/src/lib/views/WalletGroupView/WalletGroupView.cjs +2 -2
  218. package/src/lib/views/WalletGroupView/WalletGroupView.js +2 -2
  219. package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +1 -1
  220. package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +1 -1
  221. package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -1
  222. package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -1
  223. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -1
  224. package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -1
  225. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +6 -5
  226. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +6 -5
  227. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -1
  228. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -1
  229. package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +1 -1
  230. package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +1 -1
  231. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -1
  232. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +3 -1
  233. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -1
  234. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +2 -2
  235. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +1 -0
  236. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -2
  237. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +7 -9
  238. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +7 -9
  239. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +46 -45
  240. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +47 -46
  241. package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.cjs +0 -40
  242. package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.d.ts +0 -3
  243. package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.js +0 -36
  244. package/src/lib/utils/functions/createOwnerWallet/index.d.ts +0 -1
  245. package/src/lib/utils/functions/getEOAWallet/getEOAWallet.d.ts +0 -3
  246. package/src/lib/utils/functions/getEOAWallet/index.d.ts +0 -1
  247. package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.cjs +0 -8
  248. package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.js +0 -4
  249. package/src/lib/utils/functions/isWalletConnected/isWalletConnected.cjs +0 -14
  250. package/src/lib/utils/functions/isWalletConnected/isWalletConnected.js +0 -10
  251. package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.cjs +0 -25
  252. package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.js +0 -21
  253. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/index.d.ts +0 -1
  254. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +0 -209
  255. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +0 -1
  256. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +0 -205
  257. package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.d.ts +0 -3
  258. package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/index.d.ts +0 -1
  259. package/src/lib/utils/hooks/useWalletsConnectionState/index.d.ts +0 -1
  260. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +0 -184
  261. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +0 -12
  262. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +0 -180
@@ -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';
@@ -50,6 +50,7 @@ export interface IDynamicContext {
50
50
  debugError: boolean;
51
51
  defaultNumberOfWalletsToShow: number;
52
52
  desktopUri: string;
53
+ detectNewWalletsForLinking: boolean;
53
54
  disconnectWallet: (walletId: string) => void;
54
55
  displaySiweStatement: boolean;
55
56
  enableConnectOnlyFallback?: boolean;
@@ -107,7 +108,7 @@ export interface IDynamicContext {
107
108
  removeConnectedWalletsInfo: () => void;
108
109
  sdkHasLoaded: boolean;
109
110
  secondaryWallets: Wallet[];
110
- selectedWalletConnector: WalletConnector | null;
111
+ selectedWalletConnector: InternalWalletConnector | null;
111
112
  selectedWalletWithAction: WalletWithAction | null;
112
113
  sendWagmiSettings: (settings: {
113
114
  dynamicWagmiSettings?: object;
@@ -138,7 +139,6 @@ export interface IDynamicContext {
138
139
  setShowBridgeWidget: Dispatch<SetStateAction<boolean>>;
139
140
  setShowDynamicUserProfile: Dispatch<SetStateAction<boolean>>;
140
141
  setShowQrcodeModal: Dispatch<SetStateAction<boolean>>;
141
- setShowWidgetStatePopup: Dispatch<SetStateAction<boolean>>;
142
142
  setUser: SetUserAction;
143
143
  shadowDOMEnabled: boolean;
144
144
  showAuthFlow: boolean;
@@ -150,7 +150,6 @@ export interface IDynamicContext {
150
150
  showFiat: boolean;
151
151
  showLockedWalletView?: boolean;
152
152
  showQrcodeModal: boolean;
153
- showWidgetStatePopup: boolean;
154
153
  signWithEmailWalletName?: string;
155
154
  siweStatement?: string;
156
155
  socialMediaIconUrl?: Record<string, string> | Record<SocialNetworkIconType, string>;
@@ -163,6 +162,6 @@ export interface IDynamicContext {
163
162
  user: UserProfile | undefined;
164
163
  userWithMissingInfo: UserProfile | undefined;
165
164
  walletConnectorOptions: WalletOption[];
166
- walletUiUtils: WalletUiUtils<WalletConnector>;
165
+ walletUiUtils: WalletUiUtils<InternalWalletConnector>;
167
166
  walletsFilter?: (options: WalletOption[]) => WalletOption[];
168
167
  }
@@ -9,7 +9,7 @@ export type WalletListViewSettings = {
9
9
  items: WalletListViewTabItem[];
10
10
  };
11
11
  };
12
- export type EvmNetworksOverrides = GenericNetwork[] | ((dashboardNetworks: GenericNetwork[]) => GenericNetwork[]);
12
+ export type NetworksOverrides = GenericNetwork[] | ((dashboardNetworks: GenericNetwork[]) => GenericNetwork[]);
13
13
  export type ViewsOverrides = SdkView | WalletListViewSettings;
14
14
  export type SettingsOverrides = {
15
15
  views?: Array<ViewsOverrides>;
@@ -22,7 +22,8 @@ export type SettingsOverrides = {
22
22
  * WARNING: this callback must be memoized as it will be used in a dependency array to ensure
23
23
  * the SDK can react to this value changing (for ex, toggling a chain off).
24
24
  */
25
- evmNetworks?: EvmNetworksOverrides;
25
+ evmNetworks?: NetworksOverrides;
26
+ cosmosNetworks?: NetworksOverrides;
26
27
  /**
27
28
  * Allows overriding the multi-wallet feature from the dashboard.
28
29
  */
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { WalletConnector } from '../../..';
2
+ import { InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
3
3
  export type PhantomContextReturnType = {
4
- phantomRedirectConnector: WalletConnector | undefined;
4
+ phantomRedirectConnector: InternalWalletConnector | undefined;
5
5
  };
6
6
  export declare const PhantomRedirectContext: import("react").Context<PhantomContextReturnType | undefined>;
7
7
  export declare const PhantomRedirectContextProvider: ({ children, }: {
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
- require('@dynamic-labs/wallet-connector-core');
9
8
  require('@dynamic-labs/sdk-api-core');
10
9
  require('../../utils/constants/values.cjs');
11
10
  require('@dynamic-labs/utils');
@@ -13,6 +12,7 @@ require('../../../../_virtual/_tslib.cjs');
13
12
  require('@dynamic-labs/multi-wallet');
14
13
  require('../../shared/logger.cjs');
15
14
  require('@dynamic-labs/iconic');
15
+ require('@dynamic-labs/wallet-connector-core');
16
16
  require('../ViewContext/ViewContext.cjs');
17
17
  require('@dynamic-labs/wallet-book');
18
18
  require('../../utils/constants/colors.cjs');
@@ -1,7 +1,6 @@
1
1
  'use client'
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { createContext, useContext, useState, useRef, useCallback, cloneElement } from 'react';
4
- import '@dynamic-labs/wallet-connector-core';
5
4
  import '@dynamic-labs/sdk-api-core';
6
5
  import '../../utils/constants/values.js';
7
6
  import '@dynamic-labs/utils';
@@ -9,6 +8,7 @@ import '../../../../_virtual/_tslib.js';
9
8
  import '@dynamic-labs/multi-wallet';
10
9
  import '../../shared/logger.js';
11
10
  import '@dynamic-labs/iconic';
11
+ import '@dynamic-labs/wallet-connector-core';
12
12
  import '../ViewContext/ViewContext.js';
13
13
  import '@dynamic-labs/wallet-book';
14
14
  import '../../utils/constants/colors.js';
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { JwtVerifiedCredential, SignInProviderEnum, SocialSignInProviderEnum } from '@dynamic-labs/sdk-api-core';
3
- import { WalletConnector } from '../../..';
3
+ import { InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
4
4
  type SocialRedirectStatus = 'idle' | 'loading' | 'success' | 'error';
5
5
  export type SocialContextReturnType = {
6
6
  enabledSocialProviders: SocialSignInProviderEnum[];
@@ -8,7 +8,7 @@ export type SocialContextReturnType = {
8
8
  setSocialProvider: (val?: SocialSignInProviderEnum) => void;
9
9
  socialAccount: JwtVerifiedCredential | undefined;
10
10
  socialProvider: SocialSignInProviderEnum | undefined;
11
- socialWalletConnector: WalletConnector | undefined;
11
+ socialWalletConnector: InternalWalletConnector | undefined;
12
12
  signInProvider: SignInProviderEnum | undefined;
13
13
  };
14
14
  export declare const SocialRedirectContext: import("react").Context<SocialContextReturnType | undefined>;
@@ -18,4 +18,4 @@ export declare const UserWalletsProvider: FC<PropsWithChildren>;
18
18
  /** Provides access to state and setters of the current user/session wallets array */
19
19
  export declare const useInternalUserWallets: () => UserWalletsContextType;
20
20
  /** Provides access to the current user/session wallets */
21
- export declare const useUserWallets: () => Wallet[];
21
+ export declare const useUserWallets: () => Wallet<import("@dynamic-labs/wallet-connector-core").WalletConnectorCore.WalletConnector>[];
@@ -5,93 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
- require('../../../../_virtual/_tslib.cjs');
9
- require('../DynamicContext/DynamicContext.cjs');
10
- require('@dynamic-labs/sdk-api-core');
11
- require('../../shared/logger.cjs');
12
- require('@dynamic-labs/iconic');
13
- require('@dynamic-labs/wallet-connector-core');
14
- require('../ViewContext/ViewContext.cjs');
15
- require('@dynamic-labs/wallet-book');
16
- require('../../utils/constants/colors.cjs');
17
- require('../../utils/constants/values.cjs');
18
- require('../../shared/utils/classes/storage/localStorage.cjs');
19
- require('../../shared/utils/classes/storage/sessionStorage.cjs');
20
- require('@dynamic-labs/utils');
21
- require('../../shared/consts/index.cjs');
22
- require('../../events/dynamicEvents.cjs');
23
- require('../CaptchaContext/CaptchaContext.cjs');
24
- require('../ErrorContext/ErrorContext.cjs');
25
- require('@dynamic-labs/multi-wallet');
26
- require('react-international-phone');
27
- require('../../config/ApiEndpoint.cjs');
28
- require('@dynamic-labs/store');
29
- require('../../locale/locale.cjs');
30
- require('../AccessDeniedContext/AccessDeniedContext.cjs');
31
- require('../AccountExistsContext/AccountExistsContext.cjs');
32
- require('../UserWalletsContext/UserWalletsContext.cjs');
33
- require('../VerificationContext/VerificationContext.cjs');
34
- require('react-dom');
35
- require('../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.cjs');
36
- require('../ThemeContext/ThemeContext.cjs');
37
- require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.cjs');
38
- require('@dynamic-labs/types');
39
- require('../LoadingContext/LoadingContext.cjs');
40
- require('yup');
41
- require('../MockContext/MockContext.cjs');
42
- require('../../views/CollectUserDataView/useFields.cjs');
43
- require('../FieldsStateContext/FieldsStateContext.cjs');
44
- require('../UserFieldEditorContext/UserFieldEditorContext.cjs');
45
- require('@dynamic-labs/rpc-providers');
46
- require('react-i18next');
47
- require('../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
48
- require('../../components/Alert/Alert.cjs');
49
- require('../../components/ShadowDOM/ShadowDOM.cjs');
50
- require('../../components/IconButton/IconButton.cjs');
51
- require('../../components/InlineWidget/InlineWidget.cjs');
52
- require('../../components/Input/Input.cjs');
53
- require('../../components/IsBrowser/IsBrowser.cjs');
54
- require('../../components/MenuList/Dropdown/Dropdown.cjs');
55
- require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
56
- require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
57
- require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
58
- require('../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
59
- require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
60
- require('../../components/Popper/Popper/Popper.cjs');
61
- require('../../components/Popper/PopperContext/PopperContext.cjs');
62
- require('react-focus-lock');
63
- require('qrcode');
64
- require('formik');
65
- require('../../views/WalletList/WalletList.cjs');
66
- require('../SocialRedirectContext/SocialRedirectContext.cjs');
67
- require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
68
- require('@hcaptcha/react-hcaptcha');
69
- require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
70
- require('../FooterAnimationContext/index.cjs');
71
- require('../WalletGroupContext/WalletGroupContext.cjs');
72
- require('../IpConfigurationContext/IpConfigurationContext.cjs');
73
- require('../PasskeyContext/PasskeyContext.cjs');
74
- require('@dynamic-labs/ethereum-core');
75
- require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
76
- require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
77
- require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
78
- require('../../../polyfills.cjs');
79
- require('../ErrorBoundary/ErrorBoundaryBase.cjs');
80
- require('../ErrorBoundary/ErrorBoundaryContext.cjs');
81
- require('../../widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs');
82
- require('../../widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.cjs');
83
- require('../WidgetRegistry/WidgetRegistryContextProvider.cjs');
84
- require('../FundingContext/FundingContext.cjs');
85
- require('../SendBalanceContext/SendBalanceContext.cjs');
86
- require('../ConnectWithOtpContext/ConnectWithOtpContext.cjs');
87
- require('../ConnectWithOtpContext/constants.cjs');
88
- require('../ReinitializeContext/ReinitializeContextProvider.cjs');
89
- var useSyncPrimaryWallet = require('../../utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs');
90
8
 
91
9
  const WalletContext = React.createContext(undefined);
92
- const WalletContextProvider = ({ children, canSync, }) => {
10
+ const WalletContextProvider = ({ children, }) => {
93
11
  const [isLoadingEmbeddedWallet, setIsLoadingEmbeddedWallet] = React.useState(false);
94
- useSyncPrimaryWallet.useSyncPrimaryWallet(canSync);
95
12
  const value = React.useMemo(() => ({
96
13
  isLoadingEmbeddedWallet,
97
14
  setIsLoadingEmbeddedWallet,
@@ -4,9 +4,8 @@ type WalletContextProps = {
4
4
  setIsLoadingEmbeddedWallet: Dispatch<SetStateAction<boolean>>;
5
5
  };
6
6
  export declare const WalletContext: import("react").Context<WalletContextProps | undefined>;
7
- export declare const WalletContextProvider: ({ children, canSync, }: {
7
+ export declare const WalletContextProvider: ({ children, }: {
8
8
  children: ReactNode;
9
- canSync: boolean;
10
9
  }) => JSX.Element;
11
10
  export declare const useWalletContext: () => WalletContextProps;
12
11
  export {};
@@ -1,93 +1,10 @@
1
1
  'use client'
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { createContext, useContext, useState, useMemo } from 'react';
4
- import '../../../../_virtual/_tslib.js';
5
- import '../DynamicContext/DynamicContext.js';
6
- import '@dynamic-labs/sdk-api-core';
7
- import '../../shared/logger.js';
8
- import '@dynamic-labs/iconic';
9
- import '@dynamic-labs/wallet-connector-core';
10
- import '../ViewContext/ViewContext.js';
11
- import '@dynamic-labs/wallet-book';
12
- import '../../utils/constants/colors.js';
13
- import '../../utils/constants/values.js';
14
- import '../../shared/utils/classes/storage/localStorage.js';
15
- import '../../shared/utils/classes/storage/sessionStorage.js';
16
- import '@dynamic-labs/utils';
17
- import '../../shared/consts/index.js';
18
- import '../../events/dynamicEvents.js';
19
- import '../CaptchaContext/CaptchaContext.js';
20
- import '../ErrorContext/ErrorContext.js';
21
- import '@dynamic-labs/multi-wallet';
22
- import 'react-international-phone';
23
- import '../../config/ApiEndpoint.js';
24
- import '@dynamic-labs/store';
25
- import '../../locale/locale.js';
26
- import '../AccessDeniedContext/AccessDeniedContext.js';
27
- import '../AccountExistsContext/AccountExistsContext.js';
28
- import '../UserWalletsContext/UserWalletsContext.js';
29
- import '../VerificationContext/VerificationContext.js';
30
- import 'react-dom';
31
- import '../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
32
- import '../ThemeContext/ThemeContext.js';
33
- import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.js';
34
- import '@dynamic-labs/types';
35
- import '../LoadingContext/LoadingContext.js';
36
- import 'yup';
37
- import '../MockContext/MockContext.js';
38
- import '../../views/CollectUserDataView/useFields.js';
39
- import '../FieldsStateContext/FieldsStateContext.js';
40
- import '../UserFieldEditorContext/UserFieldEditorContext.js';
41
- import '@dynamic-labs/rpc-providers';
42
- import 'react-i18next';
43
- import '../../components/Accordion/components/AccordionItem/AccordionItem.js';
44
- import '../../components/Alert/Alert.js';
45
- import '../../components/ShadowDOM/ShadowDOM.js';
46
- import '../../components/IconButton/IconButton.js';
47
- import '../../components/InlineWidget/InlineWidget.js';
48
- import '../../components/Input/Input.js';
49
- import '../../components/IsBrowser/IsBrowser.js';
50
- import '../../components/MenuList/Dropdown/Dropdown.js';
51
- import '../../components/Transition/ZoomTransition/ZoomTransition.js';
52
- import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
53
- import '../../components/Transition/OpacityTransition/OpacityTransition.js';
54
- import '../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
55
- import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
56
- import '../../components/Popper/Popper/Popper.js';
57
- import '../../components/Popper/PopperContext/PopperContext.js';
58
- import 'react-focus-lock';
59
- import 'qrcode';
60
- import 'formik';
61
- import '../../views/WalletList/WalletList.js';
62
- import '../SocialRedirectContext/SocialRedirectContext.js';
63
- import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
64
- import '@hcaptcha/react-hcaptcha';
65
- import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
66
- import '../FooterAnimationContext/index.js';
67
- import '../WalletGroupContext/WalletGroupContext.js';
68
- import '../IpConfigurationContext/IpConfigurationContext.js';
69
- import '../PasskeyContext/PasskeyContext.js';
70
- import '@dynamic-labs/ethereum-core';
71
- import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
72
- import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
73
- import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
74
- import '../../../polyfills.js';
75
- import '../ErrorBoundary/ErrorBoundaryBase.js';
76
- import '../ErrorBoundary/ErrorBoundaryContext.js';
77
- import '../../widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js';
78
- import '../../widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.js';
79
- import '../WidgetRegistry/WidgetRegistryContextProvider.js';
80
- import '../FundingContext/FundingContext.js';
81
- import '../SendBalanceContext/SendBalanceContext.js';
82
- import '../ConnectWithOtpContext/ConnectWithOtpContext.js';
83
- import '../ConnectWithOtpContext/constants.js';
84
- import '../ReinitializeContext/ReinitializeContextProvider.js';
85
- import { useSyncPrimaryWallet } from '../../utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js';
86
4
 
87
5
  const WalletContext = createContext(undefined);
88
- const WalletContextProvider = ({ children, canSync, }) => {
6
+ const WalletContextProvider = ({ children, }) => {
89
7
  const [isLoadingEmbeddedWallet, setIsLoadingEmbeddedWallet] = useState(false);
90
- useSyncPrimaryWallet(canSync);
91
8
  const value = useMemo(() => ({
92
9
  isLoadingEmbeddedWallet,
93
10
  setIsLoadingEmbeddedWallet,
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
- require('@dynamic-labs/wallet-connector-core');
9
8
  require('@dynamic-labs/sdk-api-core');
10
9
  require('../../utils/constants/values.cjs');
11
10
  require('@dynamic-labs/utils');
@@ -13,6 +12,7 @@ require('../../../../_virtual/_tslib.cjs');
13
12
  require('@dynamic-labs/multi-wallet');
14
13
  require('../../shared/logger.cjs');
15
14
  require('@dynamic-labs/iconic');
15
+ require('@dynamic-labs/wallet-connector-core');
16
16
  require('../ViewContext/ViewContext.cjs');
17
17
  require('@dynamic-labs/wallet-book');
18
18
  require('../../utils/constants/colors.cjs');
@@ -1,7 +1,6 @@
1
1
  'use client'
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { createContext, useState, useCallback, useContext, useRef, useEffect } from 'react';
4
- import '@dynamic-labs/wallet-connector-core';
5
4
  import '@dynamic-labs/sdk-api-core';
6
5
  import '../../utils/constants/values.js';
7
6
  import '@dynamic-labs/utils';
@@ -9,6 +8,7 @@ import '../../../../_virtual/_tslib.js';
9
8
  import '@dynamic-labs/multi-wallet';
10
9
  import '../../shared/logger.js';
11
10
  import '@dynamic-labs/iconic';
11
+ import '@dynamic-labs/wallet-connector-core';
12
12
  import '../ViewContext/ViewContext.js';
13
13
  import '@dynamic-labs/wallet-book';
14
14
  import '../../utils/constants/colors.js';
@@ -7,12 +7,12 @@ var sdkApiCore = require('@dynamic-labs/sdk-api-core');
7
7
  var utils = require('@dynamic-labs/utils');
8
8
  var version = require('../../../version.cjs');
9
9
  var ApiEndpoint = require('../../config/ApiEndpoint.cjs');
10
- require('@dynamic-labs/wallet-connector-core');
11
10
  require('../../utils/constants/values.cjs');
12
11
  require('../../../../_virtual/_tslib.cjs');
13
12
  require('@dynamic-labs/multi-wallet');
14
13
  require('../../shared/logger.cjs');
15
14
  require('@dynamic-labs/iconic');
15
+ require('@dynamic-labs/wallet-connector-core');
16
16
  require('react/jsx-runtime');
17
17
  require('../../context/ViewContext/ViewContext.cjs');
18
18
  require('react');
@@ -3,12 +3,12 @@ import { SDKApi, Configuration } from '@dynamic-labs/sdk-api-core';
3
3
  import { FetchService } from '@dynamic-labs/utils';
4
4
  import { VERSION, API_VERSION } from '../../../version.js';
5
5
  import ApiEndpoint from '../../config/ApiEndpoint.js';
6
- import '@dynamic-labs/wallet-connector-core';
7
6
  import '../../utils/constants/values.js';
8
7
  import '../../../../_virtual/_tslib.js';
9
8
  import '@dynamic-labs/multi-wallet';
10
9
  import '../../shared/logger.js';
11
10
  import '@dynamic-labs/iconic';
11
+ import '@dynamic-labs/wallet-connector-core';
12
12
  import 'react/jsx-runtime';
13
13
  import '../../context/ViewContext/ViewContext.js';
14
14
  import 'react';
@@ -2051,16 +2051,50 @@ const translation = {
2051
2051
  confirm_button: 'Yes, link this wallet',
2052
2052
  },
2053
2053
  /**
2054
- * @description copy keys for sync wallet prompt
2054
+ * @description copy keys for sync wallet view
2055
2055
  * @default
2056
2056
  * {
2057
- title: 'Switch wallet in {{walletName}}',
2058
- description: 'Switch to wallet {{walletAddress}} in {{walletName}} to make it active.',
2057
+ switch_wallet: {
2058
+ title: 'Your wallets are mismatched. \nSwitch to continue.',
2059
+ active_address: {
2060
+ heading: 'Currently active in wallet',
2061
+ },
2062
+ expected_address: {
2063
+ heading: 'Currently active on website',
2064
+ prompt: 'Manually switch to this wallet',
2065
+ },
2066
+ },
2067
+ reconnecting: {
2068
+ title: 'This wallet is not connected',
2069
+ description: 'Reconnecting wallet {{walletAddress}} to make it active...',
2070
+ },
2071
+ reconnect_with_qr_code: {
2072
+ title: 'This wallet is not connected',
2073
+ },
2074
+ cancel_button: 'Cancel',
2075
+ retry_button: 'Retry',
2059
2076
  }
2060
2077
  */
2061
2078
  dyn_sync_wallet: {
2062
- title: 'Switch wallet in {{walletName}}',
2063
- description: 'Switch to wallet {{walletAddress}} in {{walletName}} to make it active.',
2079
+ switch_wallet: {
2080
+ title: 'Your wallets are mismatched. \nSwitch to continue.',
2081
+ active_address: {
2082
+ heading: 'Currently active in wallet',
2083
+ },
2084
+ expected_address: {
2085
+ heading: 'Currently active on website',
2086
+ prompt: 'Manually switch to this wallet',
2087
+ },
2088
+ },
2089
+ reconnecting: {
2090
+ title: 'This wallet is not connected',
2091
+ description: 'Reconnecting wallet {{walletAddress}} to make it active...',
2092
+ },
2093
+ reconnect_with_qr_code: {
2094
+ title: 'This wallet is not connected',
2095
+ },
2096
+ cancel_button: 'Cancel',
2097
+ retry_button: 'Retry',
2064
2098
  },
2065
2099
  };
2066
2100
 
@@ -2047,15 +2047,49 @@ export declare const translation: {
2047
2047
  confirm_button: string;
2048
2048
  };
2049
2049
  /**
2050
- * @description copy keys for sync wallet prompt
2050
+ * @description copy keys for sync wallet view
2051
2051
  * @default
2052
2052
  * {
2053
- title: 'Switch wallet in {{walletName}}',
2054
- description: 'Switch to wallet {{walletAddress}} in {{walletName}} to make it active.',
2053
+ switch_wallet: {
2054
+ title: 'Your wallets are mismatched. \nSwitch to continue.',
2055
+ active_address: {
2056
+ heading: 'Currently active in wallet',
2057
+ },
2058
+ expected_address: {
2059
+ heading: 'Currently active on website',
2060
+ prompt: 'Manually switch to this wallet',
2061
+ },
2062
+ },
2063
+ reconnecting: {
2064
+ title: 'This wallet is not connected',
2065
+ description: 'Reconnecting wallet {{walletAddress}} to make it active...',
2066
+ },
2067
+ reconnect_with_qr_code: {
2068
+ title: 'This wallet is not connected',
2069
+ },
2070
+ cancel_button: 'Cancel',
2071
+ retry_button: 'Retry',
2055
2072
  }
2056
2073
  */
2057
2074
  dyn_sync_wallet: {
2058
- title: string;
2059
- description: string;
2075
+ switch_wallet: {
2076
+ title: string;
2077
+ active_address: {
2078
+ heading: string;
2079
+ };
2080
+ expected_address: {
2081
+ heading: string;
2082
+ prompt: string;
2083
+ };
2084
+ };
2085
+ reconnecting: {
2086
+ title: string;
2087
+ description: string;
2088
+ };
2089
+ reconnect_with_qr_code: {
2090
+ title: string;
2091
+ };
2092
+ cancel_button: string;
2093
+ retry_button: string;
2060
2094
  };
2061
2095
  };
@@ -2047,16 +2047,50 @@ const translation = {
2047
2047
  confirm_button: 'Yes, link this wallet',
2048
2048
  },
2049
2049
  /**
2050
- * @description copy keys for sync wallet prompt
2050
+ * @description copy keys for sync wallet view
2051
2051
  * @default
2052
2052
  * {
2053
- title: 'Switch wallet in {{walletName}}',
2054
- description: 'Switch to wallet {{walletAddress}} in {{walletName}} to make it active.',
2053
+ switch_wallet: {
2054
+ title: 'Your wallets are mismatched. \nSwitch to continue.',
2055
+ active_address: {
2056
+ heading: 'Currently active in wallet',
2057
+ },
2058
+ expected_address: {
2059
+ heading: 'Currently active on website',
2060
+ prompt: 'Manually switch to this wallet',
2061
+ },
2062
+ },
2063
+ reconnecting: {
2064
+ title: 'This wallet is not connected',
2065
+ description: 'Reconnecting wallet {{walletAddress}} to make it active...',
2066
+ },
2067
+ reconnect_with_qr_code: {
2068
+ title: 'This wallet is not connected',
2069
+ },
2070
+ cancel_button: 'Cancel',
2071
+ retry_button: 'Retry',
2055
2072
  }
2056
2073
  */
2057
2074
  dyn_sync_wallet: {
2058
- title: 'Switch wallet in {{walletName}}',
2059
- description: 'Switch to wallet {{walletAddress}} in {{walletName}} to make it active.',
2075
+ switch_wallet: {
2076
+ title: 'Your wallets are mismatched. \nSwitch to continue.',
2077
+ active_address: {
2078
+ heading: 'Currently active in wallet',
2079
+ },
2080
+ expected_address: {
2081
+ heading: 'Currently active on website',
2082
+ prompt: 'Manually switch to this wallet',
2083
+ },
2084
+ },
2085
+ reconnecting: {
2086
+ title: 'This wallet is not connected',
2087
+ description: 'Reconnecting wallet {{walletAddress}} to make it active...',
2088
+ },
2089
+ reconnect_with_qr_code: {
2090
+ title: 'This wallet is not connected',
2091
+ },
2092
+ cancel_button: 'Cancel',
2093
+ retry_button: 'Retry',
2060
2094
  },
2061
2095
  };
2062
2096
 
@@ -82,6 +82,7 @@ require('../../views/WalletList/WalletList.cjs');
82
82
  require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
83
83
  require('@hcaptcha/react-hcaptcha');
84
84
  require('../../context/IpConfigurationContext/IpConfigurationContext.cjs');
85
+ require('../../components/Input/Input.cjs');
85
86
  require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
86
87
  require('../../context/SendBalanceContext/SendBalanceContext.cjs');
87
88
  require('../../context/ConnectWithOtpContext/ConnectWithOtpContext.cjs');
@@ -89,7 +90,6 @@ require('../../context/ConnectWithOtpContext/constants.cjs');
89
90
  require('../../context/ReinitializeContext/ReinitializeContextProvider.cjs');
90
91
  require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
91
92
  require('../../components/InlineWidget/InlineWidget.cjs');
92
- require('../../components/Input/Input.cjs');
93
93
  require('qrcode');
94
94
  require('@dynamic-labs/ethereum-core');
95
95
 
@@ -78,6 +78,7 @@ import '../../views/WalletList/WalletList.js';
78
78
  import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
79
79
  import '@hcaptcha/react-hcaptcha';
80
80
  import '../../context/IpConfigurationContext/IpConfigurationContext.js';
81
+ import '../../components/Input/Input.js';
81
82
  import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
82
83
  import '../../context/SendBalanceContext/SendBalanceContext.js';
83
84
  import '../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
@@ -85,7 +86,6 @@ import '../../context/ConnectWithOtpContext/constants.js';
85
86
  import '../../context/ReinitializeContext/ReinitializeContextProvider.js';
86
87
  import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
87
88
  import '../../components/InlineWidget/InlineWidget.js';
88
- import '../../components/Input/Input.js';
89
89
  import 'qrcode';
90
90
  import '@dynamic-labs/ethereum-core';
91
91