@dynamic-labs/sdk-react-core 3.0.0-alpha.52 → 3.0.0-alpha.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +13 -13
- package/src/index.cjs +7 -5
- package/src/index.d.ts +1 -1
- package/src/index.js +4 -3
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +17 -16
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +18 -17
- package/src/lib/components/Divider/Divider.cjs +2 -2
- package/src/lib/components/Divider/Divider.d.ts +2 -2
- package/src/lib/components/Divider/Divider.js +3 -3
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +5 -4
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +6 -5
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +1 -1
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +1 -1
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +11 -10
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +12 -11
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
- package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.cjs +6 -1
- package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.js +6 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +0 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
- package/src/lib/context/DynamicContext/DynamicContext.cjs +6 -12
- package/src/lib/context/DynamicContext/DynamicContext.js +6 -12
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +2 -2
- package/src/lib/context/DynamicContext/types/DynamicContextProps.d.ts +7 -0
- package/src/lib/context/DynamicContext/types/IDynamicContext.d.ts +4 -5
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.d.ts +2 -2
- package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.cjs +1 -1
- package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.js +1 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +2 -2
- package/src/lib/context/UserWalletsContext/UserWalletsContext.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +1 -84
- package/src/lib/context/WalletContext/WalletContext.d.ts +1 -2
- package/src/lib/context/WalletContext/WalletContext.js +1 -84
- package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.cjs +1 -1
- package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.js +1 -1
- package/src/lib/data/api/api.cjs +1 -1
- package/src/lib/data/api/api.js +1 -1
- package/src/lib/locale/en/translation.cjs +39 -5
- package/src/lib/locale/en/translation.d.ts +39 -5
- package/src/lib/locale/en/translation.js +39 -5
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +10 -9
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +11 -10
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.cjs +4 -4
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.d.ts +1 -1
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.js +4 -4
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.types.d.ts +2 -0
- package/src/lib/shared/assets/arrow-circle-right.cjs +54 -0
- package/src/lib/shared/assets/arrow-circle-right.js +30 -0
- package/src/lib/shared/assets/index.d.ts +1 -0
- package/src/lib/shared/types/wallets.d.ts +2 -2
- package/src/lib/shared/utils/functions/usingSessionKeys/usingSessionKeys.cjs +1 -1
- package/src/lib/shared/utils/functions/usingSessionKeys/usingSessionKeys.js +2 -2
- package/src/lib/shared/utils/functions/wallet/createWallet.d.ts +2 -2
- package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.cjs +1 -1
- package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.js +1 -1
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/errors.cjs +0 -2
- package/src/lib/utils/constants/errors.js +1 -2
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.d.ts +2 -2
- package/src/lib/utils/{hooks/useWalletConnectors/utils/findWallet/findWallet.cjs → functions/findWalletOptionFor/findWalletOptionFor.cjs} +3 -3
- package/src/lib/utils/functions/findWalletOptionFor/findWalletOptionFor.d.ts +3 -0
- package/src/lib/utils/{hooks/useWalletConnectors/utils/findWallet/findWallet.js → functions/findWalletOptionFor/findWalletOptionFor.js} +3 -3
- package/src/lib/utils/functions/findWalletOptionFor/index.d.ts +1 -0
- package/src/lib/utils/functions/generateMessages/index.cjs +3 -2
- package/src/lib/utils/functions/generateMessages/index.js +3 -2
- package/src/lib/utils/functions/getEmbeddedWalletAuthHandler/getEmbeddedWalletAuthHandler.d.ts +2 -2
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.cjs +1 -1
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.js +1 -1
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +1 -1
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +1 -1
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -2
- package/src/lib/utils/functions/getWalletConnectorForWallet/getWalletConnectorForWallet.d.ts +2 -2
- package/src/lib/utils/functions/index.d.ts +0 -2
- package/src/lib/utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.d.ts +1 -1
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +1 -1
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +1 -1
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +1 -1
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +1 -1
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +1 -1
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.d.ts +2 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.d.ts +2 -2
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/index.d.ts +0 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +8 -7
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +2 -2
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +9 -8
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.d.ts +2 -2
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +3 -4
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +3 -4
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +4 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.d.ts +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +5 -7
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +86 -61
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.d.ts +3 -3
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +87 -63
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +32 -30
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.d.ts +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +33 -31
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.d.ts +1 -1
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +7 -6
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +7 -6
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +11 -9
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +12 -10
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +8 -12
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +8 -12
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +1 -1
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +1 -1
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.cjs +6 -5
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.js +6 -5
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +12 -11
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.d.ts +2 -2
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +12 -11
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +3 -3
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +3 -3
- package/src/lib/utils/hooks/useSmartWallets/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.cjs +159 -0
- package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.d.ts +18 -0
- package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.js +155 -0
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +1 -4
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +1 -4
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +2 -2
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +7 -87
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.d.ts +2 -2
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +8 -88
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +9 -79
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +4 -10
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +10 -80
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +5 -89
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.d.ts +2 -3
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +5 -89
- package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.cjs +4 -4
- package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.js +5 -5
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +26 -29
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +26 -29
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.d.ts +6 -6
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.types.d.ts +4 -4
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +16 -7
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +2 -2
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +16 -7
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +1 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +1 -1
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +2 -2
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +2 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +19 -18
- package/src/lib/views/EmailVerification/EmailVerification.js +20 -19
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +52 -52
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +53 -53
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +1 -1
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +1 -1
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +1 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +35 -33
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +1 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +35 -33
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +1 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +1 -1
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +1 -1
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +1 -1
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +35 -33
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +1 -1
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +35 -33
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +33 -31
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +33 -31
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +1 -1
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +7 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +7 -1
- package/src/lib/{utils/functions/getEOAWallet/getEOAWallet.cjs → views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.cjs} +57 -50
- package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.d.ts +9 -0
- package/src/lib/{utils/functions/getEOAWallet/getEOAWallet.js → views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.js} +57 -50
- package/src/lib/views/SyncWalletView/AutoReconnectingView/index.d.ts +1 -0
- package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.cjs +126 -0
- package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.d.ts +9 -0
- package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.js +122 -0
- package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/index.d.ts +1 -0
- package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.cjs +101 -0
- package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.d.ts +10 -0
- package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.js +97 -0
- package/src/lib/views/SyncWalletView/SwitchWalletView/index.d.ts +1 -0
- package/src/lib/views/SyncWalletView/SyncWalletView.cjs +74 -49
- package/src/lib/views/SyncWalletView/SyncWalletView.d.ts +2 -0
- package/src/lib/views/SyncWalletView/SyncWalletView.js +75 -50
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -1
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +2 -2
- package/src/lib/views/WalletGroupView/WalletGroupView.js +2 -2
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +1 -1
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +1 -1
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -1
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +6 -5
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +6 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +7 -9
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +7 -9
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +46 -45
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +47 -46
- package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.cjs +0 -40
- package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.d.ts +0 -3
- package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.js +0 -36
- package/src/lib/utils/functions/createOwnerWallet/index.d.ts +0 -1
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.d.ts +0 -3
- package/src/lib/utils/functions/getEOAWallet/index.d.ts +0 -1
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.cjs +0 -8
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.js +0 -4
- package/src/lib/utils/functions/isWalletConnected/isWalletConnected.cjs +0 -14
- package/src/lib/utils/functions/isWalletConnected/isWalletConnected.js +0 -10
- package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.cjs +0 -25
- package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.js +0 -21
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/index.d.ts +0 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +0 -209
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +0 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +0 -205
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.d.ts +0 -3
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/index.d.ts +0 -1
- package/src/lib/utils/hooks/useWalletsConnectionState/index.d.ts +0 -1
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +0 -184
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +0 -12
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +0 -180
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,43 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.53](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.52...v3.0.0-alpha.53) (2024-08-29)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* simplify solana wallet signer types (#6748)
|
|
8
|
+
* deprecate getEoaConnector (#6571)
|
|
9
|
+
* limit methods and props returned by wallet.connector (#6540)
|
|
10
|
+
* move generic solana code to solana-core package (#6701)
|
|
11
|
+
* revamp ether v6 interface (#6548)
|
|
12
|
+
* add ethereum wallet specific methods and intercept to sync when needed (#6662)
|
|
13
|
+
* add solana wallet specific methods and intercept to sync when needed (#6608)
|
|
14
|
+
* don't force primary wallet to be connected (#6128)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add bitcoin wallet specific methods and intercept to sync when needed ([#6663](https://github.com/dynamic-labs/DynamicAuth/issues/6663)) ([ed699b1](https://github.com/dynamic-labs/DynamicAuth/commit/ed699b1f8c264755779ec4840d105f89ade5500e))
|
|
19
|
+
* add ethereum wallet specific methods and intercept to sync when needed ([#6662](https://github.com/dynamic-labs/DynamicAuth/issues/6662)) ([372360e](https://github.com/dynamic-labs/DynamicAuth/commit/372360ed7ca395f88811fc62c94b2b494eb59971))
|
|
20
|
+
* add solana wallet specific methods and intercept to sync when needed ([#6608](https://github.com/dynamic-labs/DynamicAuth/issues/6608)) ([565f610](https://github.com/dynamic-labs/DynamicAuth/commit/565f6100340296c267e9706fd263e9bd3f7d3732))
|
|
21
|
+
* add useSmartWallets hook to manage aa wallets ([#6564](https://github.com/dynamic-labs/DynamicAuth/issues/6564)) ([a243d36](https://github.com/dynamic-labs/DynamicAuth/commit/a243d361ce7c368d0f1afda55f9c1fabefd75ba8))
|
|
22
|
+
* don't force primary wallet to be connected ([#6128](https://github.com/dynamic-labs/DynamicAuth/issues/6128)) ([018a6f6](https://github.com/dynamic-labs/DynamicAuth/commit/018a6f66f8725914ab97ea3e2e1c80626266e503))
|
|
23
|
+
* new prop to enable prompt for linking when account change is detected ([#6713](https://github.com/dynamic-labs/DynamicAuth/issues/6713)) ([b5a6321](https://github.com/dynamic-labs/DynamicAuth/commit/b5a63212ae33fae24401f141d5ca2356b446dcff))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* always sync wagmi client with primary wallet ([#6577](https://github.com/dynamic-labs/DynamicAuth/issues/6577)) ([be22fde](https://github.com/dynamic-labs/DynamicAuth/commit/be22fdea3bb61db79b06ba56cb32da6cd8141b66))
|
|
29
|
+
* cosmos wallet intercepts ([#6720](https://github.com/dynamic-labs/DynamicAuth/issues/6720)) ([cfc9df4](https://github.com/dynamic-labs/DynamicAuth/commit/cfc9df48a8032f7348fec14f77b9e378d2e26a22))
|
|
30
|
+
* magiceden wallet events not working correctly on page refresh ([#6735](https://github.com/dynamic-labs/DynamicAuth/issues/6735)) ([6ed5964](https://github.com/dynamic-labs/DynamicAuth/commit/6ed5964134a2cafd392c19f18eb71e6ca2ce238d))
|
|
31
|
+
* use proxy to intercept solana signer methods ([#6743](https://github.com/dynamic-labs/DynamicAuth/issues/6743)) ([ecbe5ea](https://github.com/dynamic-labs/DynamicAuth/commit/ecbe5ea772592d2c693d8222d85b7642acd151a8))
|
|
32
|
+
* wallet.chain references ([525c1ca](https://github.com/dynamic-labs/DynamicAuth/commit/525c1ca9a8fe6402c06eabe6aebc30e310411d9b))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
* deprecate getEoaConnector ([#6571](https://github.com/dynamic-labs/DynamicAuth/issues/6571)) ([0226ee5](https://github.com/dynamic-labs/DynamicAuth/commit/0226ee5a13f2418607076ee6f2ec0a579b06dd5d))
|
|
36
|
+
* limit methods and props returned by wallet.connector ([#6540](https://github.com/dynamic-labs/DynamicAuth/issues/6540)) ([9c86e35](https://github.com/dynamic-labs/DynamicAuth/commit/9c86e35c72cd40313bfd19254dd6171ee8f62213))
|
|
37
|
+
* move generic solana code to solana-core package ([#6701](https://github.com/dynamic-labs/DynamicAuth/issues/6701)) ([30815f5](https://github.com/dynamic-labs/DynamicAuth/commit/30815f5d46feeefb2413c1b7d30b43d5370ee032))
|
|
38
|
+
* revamp ether v6 interface ([#6548](https://github.com/dynamic-labs/DynamicAuth/issues/6548)) ([f3b2fb8](https://github.com/dynamic-labs/DynamicAuth/commit/f3b2fb8da7de21f9c58e67fa7f5580166195092a))
|
|
39
|
+
* simplify solana wallet signer types ([#6748](https://github.com/dynamic-labs/DynamicAuth/issues/6748)) ([01d1a42](https://github.com/dynamic-labs/DynamicAuth/commit/01d1a42bc916ab329580b741ba60d706bf6c5491))
|
|
40
|
+
|
|
2
41
|
## [3.0.0-alpha.52](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.51...v3.0.0-alpha.52) (2024-08-28)
|
|
3
42
|
|
|
4
43
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.53",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"react-i18next": "13.5.0",
|
|
18
18
|
"yup": "0.32.11",
|
|
19
19
|
"react-international-phone": "4.2.5",
|
|
20
|
-
"@dynamic-labs/ethereum-core": "3.0.0-alpha.
|
|
21
|
-
"@dynamic-labs/global-wallet": "3.0.0-alpha.
|
|
22
|
-
"@dynamic-labs/iconic": "3.0.0-alpha.
|
|
23
|
-
"@dynamic-labs/logger": "3.0.0-alpha.
|
|
24
|
-
"@dynamic-labs/message-transport": "3.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/multi-wallet": "3.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "3.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/store": "3.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/wallet-book": "3.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.
|
|
20
|
+
"@dynamic-labs/ethereum-core": "3.0.0-alpha.53",
|
|
21
|
+
"@dynamic-labs/global-wallet": "3.0.0-alpha.53",
|
|
22
|
+
"@dynamic-labs/iconic": "3.0.0-alpha.53",
|
|
23
|
+
"@dynamic-labs/logger": "3.0.0-alpha.53",
|
|
24
|
+
"@dynamic-labs/message-transport": "3.0.0-alpha.53",
|
|
25
|
+
"@dynamic-labs/multi-wallet": "3.0.0-alpha.53",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "3.0.0-alpha.53",
|
|
27
|
+
"@dynamic-labs/store": "3.0.0-alpha.53",
|
|
28
|
+
"@dynamic-labs/types": "3.0.0-alpha.53",
|
|
29
|
+
"@dynamic-labs/utils": "3.0.0-alpha.53",
|
|
30
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.53",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.53",
|
|
32
32
|
"eventemitter3": "5.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
package/src/index.cjs
CHANGED
|
@@ -69,6 +69,7 @@ var isAuthenticatedWithAWallet = require('./lib/utils/functions/isAuthenticatedW
|
|
|
69
69
|
require('./lib/locale/locale.cjs');
|
|
70
70
|
var useEmbeddedWallet = require('./lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs');
|
|
71
71
|
require('./lib/context/WalletContext/WalletContext.cjs');
|
|
72
|
+
var useSmartWallets = require('./lib/utils/hooks/useSmartWallets/useSmartWallets.cjs');
|
|
72
73
|
var usePasskeyRecovery = require('./lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs');
|
|
73
74
|
var constants = require('./lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.cjs');
|
|
74
75
|
require('./lib/context/ErrorContext/ErrorContext.cjs');
|
|
@@ -87,7 +88,6 @@ require('./lib/context/FieldsStateContext/FieldsStateContext.cjs');
|
|
|
87
88
|
var useRpcProviders = require('./lib/utils/hooks/useRpcProviders/useRpcProviders.cjs');
|
|
88
89
|
require('./lib/context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
89
90
|
require('./lib/context/AccountExistsContext/AccountExistsContext.cjs');
|
|
90
|
-
require('@dynamic-labs/wallet-book');
|
|
91
91
|
var useWalletItemActions = require('./lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
|
|
92
92
|
require('react-i18next');
|
|
93
93
|
require('./lib/context/FooterAnimationContext/index.cjs');
|
|
@@ -97,6 +97,7 @@ require('./lib/components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
97
97
|
require('./lib/components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
98
98
|
require('./lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
99
99
|
require('./lib/context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
100
|
+
require('@dynamic-labs/wallet-book');
|
|
100
101
|
require('./lib/context/WalletGroupContext/WalletGroupContext.cjs');
|
|
101
102
|
require('./lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
102
103
|
require('react-focus-lock');
|
|
@@ -113,6 +114,8 @@ require('./lib/components/Input/Input.cjs');
|
|
|
113
114
|
require('@dynamic-labs/ethereum-core');
|
|
114
115
|
require('./lib/context/PasskeyContext/PasskeyContext.cjs');
|
|
115
116
|
require('./lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
117
|
+
var useEmbeddedReveal = require('./lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs');
|
|
118
|
+
var useEmbeddedWalletAuthenticator = require('./lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs');
|
|
116
119
|
var DynamicBridgeWidget = require('./lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs');
|
|
117
120
|
var DynamicEmbeddedAuthFlow = require('./lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs');
|
|
118
121
|
var DynamicEmbeddedUserProfile = require('./lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs');
|
|
@@ -144,8 +147,6 @@ var useConnectWithOtp = require('./lib/context/ConnectWithOtpContext/useConnectW
|
|
|
144
147
|
var useSwitchNetwork = require('./lib/utils/hooks/useSwitchNetwork/useSwitchNetwork.cjs');
|
|
145
148
|
var ReinitializeContextProvider = require('./lib/context/ReinitializeContext/ReinitializeContextProvider.cjs');
|
|
146
149
|
var useExternalAuth = require('./lib/utils/hooks/useExternalAuth/useExternalAuth.cjs');
|
|
147
|
-
var useEmbeddedReveal = require('./lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs');
|
|
148
|
-
var useEmbeddedWalletAuthenticator = require('./lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs');
|
|
149
150
|
var useDynamicModals = require('./lib/utils/hooks/useDynamicModals/useDynamicModals.cjs');
|
|
150
151
|
var useMfa = require('./lib/utils/hooks/useMfa/useMfa.cjs');
|
|
151
152
|
var useTokenBalances = require('./lib/utils/hooks/useTokenBalances/useTokenBalances.cjs');
|
|
@@ -209,6 +210,7 @@ exports.apiClient = api.sdkApi;
|
|
|
209
210
|
exports.mergeNetworks = mergeNetworks.mergeNetworks;
|
|
210
211
|
exports.isAuthenticatedWithAWallet = isAuthenticatedWithAWallet.isAuthenticatedWithAWallet;
|
|
211
212
|
exports.useEmbeddedWallet = useEmbeddedWallet.useEmbeddedWallet;
|
|
213
|
+
exports.useSmartWallets = useSmartWallets.useSmartWallets;
|
|
212
214
|
exports.usePasskeyRecovery = usePasskeyRecovery.usePasskeyRecovery;
|
|
213
215
|
Object.defineProperty(exports, 'EmbeddedWalletVersion', {
|
|
214
216
|
enumerable: true,
|
|
@@ -225,6 +227,8 @@ exports.ShadowDOM = ShadowDOM.ShadowDOM;
|
|
|
225
227
|
exports.useMultiWalletPromptState = useMultiWalletPromptState.useMultiWalletPromptState;
|
|
226
228
|
exports.DynamicWidgetContextProvider = DynamicWidgetContext.DynamicWidgetContextProvider;
|
|
227
229
|
exports.useSwitchWallet = useSwitchWallet.useSwitchWallet;
|
|
230
|
+
exports.useEmbeddedReveal = useEmbeddedReveal.useEmbeddedReveal;
|
|
231
|
+
exports.useEmbeddedWalletAuthenticator = useEmbeddedWalletAuthenticator.useEmbeddedWalletAuthenticator;
|
|
228
232
|
exports.DynamicBridgeWidget = DynamicBridgeWidget.DynamicBridgeWidget;
|
|
229
233
|
exports.DynamicEmbeddedAuthFlow = DynamicEmbeddedAuthFlow.DynamicEmbeddedAuthFlow;
|
|
230
234
|
exports.DynamicEmbeddedUserProfile = DynamicEmbeddedUserProfile.DynamicEmbeddedUserProfile;
|
|
@@ -261,8 +265,6 @@ exports.useConnectWithOtp = useConnectWithOtp.useConnectWithOtp;
|
|
|
261
265
|
exports.useSwitchNetwork = useSwitchNetwork.useSwitchNetwork;
|
|
262
266
|
exports.useReinitialize = ReinitializeContextProvider.useReinitialize;
|
|
263
267
|
exports.useExternalAuth = useExternalAuth.useExternalAuth;
|
|
264
|
-
exports.useEmbeddedReveal = useEmbeddedReveal.useEmbeddedReveal;
|
|
265
|
-
exports.useEmbeddedWalletAuthenticator = useEmbeddedWalletAuthenticator.useEmbeddedWalletAuthenticator;
|
|
266
268
|
exports.useDynamicModals = useDynamicModals.useDynamicModals;
|
|
267
269
|
exports.useMfa = useMfa.useMfa;
|
|
268
270
|
exports.useTokenBalances = useTokenBalances.useTokenBalances;
|
package/src/index.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ export { FilterAndSortWallets, FilterBridgeChainsName, FilterChain, FilterWallet
|
|
|
108
108
|
export {
|
|
109
109
|
/** @deprecated */
|
|
110
110
|
DynamicWidgetContextProvider, } from './lib/widgets/DynamicWidget/context';
|
|
111
|
-
export { useWalletItemActions, useAuthenticateConnectedUser, useSocialAccounts, useEmbeddedWallet, useEmbeddedWalletAuthenticator, usePasskeyRecovery, useEmbeddedReveal, useIsLoggedIn, useDynamicModals, useMfa, useTokenBalances, useSwitchWallet, useRpcProviders, useRefreshUser, useWalletOptions, EmbeddedWalletVersion, } from './lib/utils/hooks';
|
|
111
|
+
export { useWalletItemActions, useAuthenticateConnectedUser, useSocialAccounts, useEmbeddedWallet, useEmbeddedWalletAuthenticator, usePasskeyRecovery, useEmbeddedReveal, useIsLoggedIn, useDynamicModals, useMfa, useTokenBalances, useSwitchWallet, useRpcProviders, useRefreshUser, useWalletOptions, useSmartWallets, EmbeddedWalletVersion, } from './lib/utils/hooks';
|
|
112
112
|
export { useUserUpdateRequest, useWalletConnectorEvent, } from './lib/utils/hooks';
|
|
113
113
|
export { type VerifyOtp, useOtpVerificationRequest, } from './lib/utils/hooks/authenticationHooks/';
|
|
114
114
|
export type { UpdateUserFieldsArg } from './lib/utils/hooks/';
|
package/src/index.js
CHANGED
|
@@ -65,6 +65,7 @@ export { isAuthenticatedWithAWallet } from './lib/utils/functions/isAuthenticate
|
|
|
65
65
|
import './lib/locale/locale.js';
|
|
66
66
|
export { useEmbeddedWallet } from './lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js';
|
|
67
67
|
import './lib/context/WalletContext/WalletContext.js';
|
|
68
|
+
export { useSmartWallets } from './lib/utils/hooks/useSmartWallets/useSmartWallets.js';
|
|
68
69
|
export { usePasskeyRecovery } from './lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js';
|
|
69
70
|
export { EmbeddedWalletVersion } from './lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
|
|
70
71
|
import './lib/context/ErrorContext/ErrorContext.js';
|
|
@@ -83,7 +84,6 @@ import './lib/context/FieldsStateContext/FieldsStateContext.js';
|
|
|
83
84
|
export { useRpcProviders } from './lib/utils/hooks/useRpcProviders/useRpcProviders.js';
|
|
84
85
|
import './lib/context/AccessDeniedContext/AccessDeniedContext.js';
|
|
85
86
|
import './lib/context/AccountExistsContext/AccountExistsContext.js';
|
|
86
|
-
import '@dynamic-labs/wallet-book';
|
|
87
87
|
export { useWalletItemActions } from './lib/utils/hooks/useWalletItemActions/useWalletItemActions.js';
|
|
88
88
|
import 'react-i18next';
|
|
89
89
|
import './lib/context/FooterAnimationContext/index.js';
|
|
@@ -93,6 +93,7 @@ import './lib/components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
93
93
|
import './lib/components/Transition/OpacityTransition/OpacityTransition.js';
|
|
94
94
|
import './lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
95
95
|
import './lib/context/SocialRedirectContext/SocialRedirectContext.js';
|
|
96
|
+
import '@dynamic-labs/wallet-book';
|
|
96
97
|
import './lib/context/WalletGroupContext/WalletGroupContext.js';
|
|
97
98
|
import './lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
98
99
|
import 'react-focus-lock';
|
|
@@ -109,6 +110,8 @@ import './lib/components/Input/Input.js';
|
|
|
109
110
|
import '@dynamic-labs/ethereum-core';
|
|
110
111
|
import './lib/context/PasskeyContext/PasskeyContext.js';
|
|
111
112
|
import './lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
113
|
+
export { useEmbeddedReveal } from './lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js';
|
|
114
|
+
export { useEmbeddedWalletAuthenticator } from './lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js';
|
|
112
115
|
export { DynamicBridgeWidget } from './lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js';
|
|
113
116
|
export { DynamicEmbeddedAuthFlow } from './lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js';
|
|
114
117
|
export { DynamicEmbeddedUserProfile } from './lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js';
|
|
@@ -140,8 +143,6 @@ export { useConnectWithOtp } from './lib/context/ConnectWithOtpContext/useConnec
|
|
|
140
143
|
export { useSwitchNetwork } from './lib/utils/hooks/useSwitchNetwork/useSwitchNetwork.js';
|
|
141
144
|
export { useReinitialize } from './lib/context/ReinitializeContext/ReinitializeContextProvider.js';
|
|
142
145
|
export { useExternalAuth } from './lib/utils/hooks/useExternalAuth/useExternalAuth.js';
|
|
143
|
-
export { useEmbeddedReveal } from './lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js';
|
|
144
|
-
export { useEmbeddedWalletAuthenticator } from './lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js';
|
|
145
146
|
export { useDynamicModals } from './lib/utils/hooks/useDynamicModals/useDynamicModals.js';
|
|
146
147
|
export { useMfa } from './lib/utils/hooks/useMfa/useMfa.js';
|
|
147
148
|
export { useTokenBalances } from './lib/utils/hooks/useTokenBalances/useTokenBalances.js';
|
|
@@ -4,39 +4,39 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var iconic = require('@dynamic-labs/iconic');
|
|
7
8
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
8
9
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
9
|
-
var
|
|
10
|
+
var AccessDeniedContext = require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
11
|
+
require('react');
|
|
12
|
+
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
10
13
|
require('@dynamic-labs/sdk-api-core');
|
|
11
|
-
var values = require('../../utils/constants/values.cjs');
|
|
12
|
-
require('@dynamic-labs/utils');
|
|
13
|
-
require('../../../../_virtual/_tslib.cjs');
|
|
14
|
-
require('@dynamic-labs/multi-wallet');
|
|
15
14
|
var logger = require('../../shared/logger.cjs');
|
|
16
15
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
17
|
-
require('react');
|
|
18
16
|
var embeddedWalletIcon = require('../../shared/assets/embedded-wallet-icon.cjs');
|
|
19
17
|
require('../../utils/constants/colors.cjs');
|
|
18
|
+
var values = require('../../utils/constants/values.cjs');
|
|
20
19
|
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
21
20
|
require('../../shared/utils/classes/storage/sessionStorage.cjs');
|
|
21
|
+
require('@dynamic-labs/utils');
|
|
22
22
|
require('../../shared/consts/index.cjs');
|
|
23
|
+
require('../../events/dynamicEvents.cjs');
|
|
24
|
+
require('../../../../_virtual/_tslib.cjs');
|
|
25
|
+
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
26
|
+
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
27
|
+
require('@dynamic-labs/multi-wallet');
|
|
23
28
|
require('react-international-phone');
|
|
24
29
|
var getReferencedAccount = require('../../utils/functions/getReferencedAccount/getReferencedAccount.cjs');
|
|
25
30
|
require('../../config/ApiEndpoint.cjs');
|
|
26
31
|
require('@dynamic-labs/store');
|
|
27
32
|
require('../../locale/locale.cjs');
|
|
28
33
|
var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
29
|
-
require('../../events/dynamicEvents.cjs');
|
|
30
|
-
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
31
|
-
var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
32
|
-
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
33
|
-
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
34
|
-
var AccessDeniedContext = require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
35
34
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
36
35
|
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
37
36
|
require('../../context/VerificationContext/VerificationContext.cjs');
|
|
38
37
|
require('react-dom');
|
|
39
38
|
var WalletContext = require('../../context/WalletContext/WalletContext.cjs');
|
|
39
|
+
var useSmartWallets = require('../../utils/hooks/useSmartWallets/useSmartWallets.cjs');
|
|
40
40
|
require('../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.cjs');
|
|
41
41
|
var useFindSocialIcon = require('../../utils/hooks/useFindSocialIcon/useFindSocialIcon.cjs');
|
|
42
42
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
@@ -93,6 +93,7 @@ require('../../context/SendBalanceContext/SendBalanceContext.cjs');
|
|
|
93
93
|
require('../../context/ConnectWithOtpContext/ConnectWithOtpContext.cjs');
|
|
94
94
|
require('../../context/ConnectWithOtpContext/constants.cjs');
|
|
95
95
|
require('../../context/ReinitializeContext/ReinitializeContextProvider.cjs');
|
|
96
|
+
var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
96
97
|
|
|
97
98
|
const getMagicEmailOrSocialIcon = ({ findSocialIcon, wallet, user, }) => {
|
|
98
99
|
if (walletConnectorCore.isEmailOTPWalletConnector(wallet.connector)) {
|
|
@@ -114,16 +115,17 @@ const getMagicEmailOrSocialIcon = ({ findSocialIcon, wallet, user, }) => {
|
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
if (walletConnectorCore.isEmbeddedConnector(wallet.connector) ||
|
|
117
|
-
walletConnectorCore.
|
|
118
|
+
walletConnectorCore.isAccountAbstractionConnector(wallet.connector)) {
|
|
118
119
|
return embeddedWalletIcon.ReactComponent;
|
|
119
120
|
}
|
|
120
121
|
return null;
|
|
121
122
|
};
|
|
122
123
|
const AuthProviderIcon = ({ iconSize = 64, showStatus, wallet, }) => {
|
|
123
|
-
var _a, _b, _c
|
|
124
|
+
var _a, _b, _c;
|
|
124
125
|
const { primaryWallet, selectedWalletConnector, user, userWithMissingInfo } = useInternalDynamicContext.useInternalDynamicContext();
|
|
125
126
|
const { deniedOauthProvider, deniedAddress } = AccessDeniedContext.useAccessDeniedContext();
|
|
126
127
|
const { isLoadingEmbeddedWallet } = WalletContext.useWalletContext();
|
|
128
|
+
const { getEOAWallet } = useSmartWallets.useSmartWallets();
|
|
127
129
|
const findSocialIcon = useFindSocialIcon.useFindSocialIcon();
|
|
128
130
|
if (deniedOauthProvider) {
|
|
129
131
|
const MagicSocialWalletIcon = findSocialIcon(deniedOauthProvider);
|
|
@@ -152,8 +154,7 @@ const AuthProviderIcon = ({ iconSize = 64, showStatus, wallet, }) => {
|
|
|
152
154
|
wallet: walletForIcon,
|
|
153
155
|
});
|
|
154
156
|
const isEmbeddedWallet = ((_b = (_a = walletForIcon === null || walletForIcon === void 0 ? void 0 : walletForIcon.connector) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.startsWith('turnkey')) ||
|
|
155
|
-
((
|
|
156
|
-
((_d = (walletForIcon === null || walletForIcon === void 0 ? void 0 : walletForIcon.connector).getEOAConnector()) === null || _d === void 0 ? void 0 : _d.isEmbeddedWallet));
|
|
157
|
+
((_c = getEOAWallet(walletForIcon)) === null || _c === void 0 ? void 0 : _c.connector.isEmbeddedWallet);
|
|
157
158
|
if (isEmbeddedWallet && MagicEmailOrSocialIcon) {
|
|
158
159
|
const chain = walletForIcon === null || walletForIcon === void 0 ? void 0 : walletForIcon.chain;
|
|
159
160
|
const chainEnum = values.VerifiedCredentialNameToChainEnum[chain];
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
4
|
-
import { isEmailOTPWalletConnector, isSocialWalletConnector, isEmbeddedConnector, isSmartWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
5
3
|
import { SignInWithEmailIcon } from '@dynamic-labs/iconic';
|
|
4
|
+
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
5
|
+
import { isEmailOTPWalletConnector, isSocialWalletConnector, isEmbeddedConnector, isAccountAbstractionConnector } from '@dynamic-labs/wallet-connector-core';
|
|
6
|
+
import { useAccessDeniedContext } from '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import '../../context/DynamicContext/DynamicContext.js';
|
|
6
9
|
import '@dynamic-labs/sdk-api-core';
|
|
7
|
-
import { VerifiedCredentialNameToChainEnum } from '../../utils/constants/values.js';
|
|
8
|
-
import '@dynamic-labs/utils';
|
|
9
|
-
import '../../../../_virtual/_tslib.js';
|
|
10
|
-
import '@dynamic-labs/multi-wallet';
|
|
11
10
|
import { logger } from '../../shared/logger.js';
|
|
12
11
|
import '../../context/ViewContext/ViewContext.js';
|
|
13
|
-
import 'react';
|
|
14
12
|
import { ReactComponent as SvgEmbeddedWalletIcon } from '../../shared/assets/embedded-wallet-icon.js';
|
|
15
13
|
import '../../utils/constants/colors.js';
|
|
14
|
+
import { VerifiedCredentialNameToChainEnum } from '../../utils/constants/values.js';
|
|
16
15
|
import '../../shared/utils/classes/storage/localStorage.js';
|
|
17
16
|
import '../../shared/utils/classes/storage/sessionStorage.js';
|
|
17
|
+
import '@dynamic-labs/utils';
|
|
18
18
|
import '../../shared/consts/index.js';
|
|
19
|
+
import '../../events/dynamicEvents.js';
|
|
20
|
+
import '../../../../_virtual/_tslib.js';
|
|
21
|
+
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
22
|
+
import '../../context/ErrorContext/ErrorContext.js';
|
|
23
|
+
import '@dynamic-labs/multi-wallet';
|
|
19
24
|
import 'react-international-phone';
|
|
20
25
|
import { getReferencedAccount } from '../../utils/functions/getReferencedAccount/getReferencedAccount.js';
|
|
21
26
|
import '../../config/ApiEndpoint.js';
|
|
22
27
|
import '@dynamic-labs/store';
|
|
23
28
|
import '../../locale/locale.js';
|
|
24
29
|
import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
|
|
25
|
-
import '../../events/dynamicEvents.js';
|
|
26
|
-
import '../../context/DynamicContext/DynamicContext.js';
|
|
27
|
-
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
28
|
-
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
29
|
-
import '../../context/ErrorContext/ErrorContext.js';
|
|
30
|
-
import { useAccessDeniedContext } from '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
31
30
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
32
31
|
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
33
32
|
import '../../context/VerificationContext/VerificationContext.js';
|
|
34
33
|
import 'react-dom';
|
|
35
34
|
import { useWalletContext } from '../../context/WalletContext/WalletContext.js';
|
|
35
|
+
import { useSmartWallets } from '../../utils/hooks/useSmartWallets/useSmartWallets.js';
|
|
36
36
|
import '../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
|
|
37
37
|
import { useFindSocialIcon } from '../../utils/hooks/useFindSocialIcon/useFindSocialIcon.js';
|
|
38
38
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
@@ -89,6 +89,7 @@ import '../../context/SendBalanceContext/SendBalanceContext.js';
|
|
|
89
89
|
import '../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
|
|
90
90
|
import '../../context/ConnectWithOtpContext/constants.js';
|
|
91
91
|
import '../../context/ReinitializeContext/ReinitializeContextProvider.js';
|
|
92
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
92
93
|
|
|
93
94
|
const getMagicEmailOrSocialIcon = ({ findSocialIcon, wallet, user, }) => {
|
|
94
95
|
if (isEmailOTPWalletConnector(wallet.connector)) {
|
|
@@ -110,16 +111,17 @@ const getMagicEmailOrSocialIcon = ({ findSocialIcon, wallet, user, }) => {
|
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
if (isEmbeddedConnector(wallet.connector) ||
|
|
113
|
-
|
|
114
|
+
isAccountAbstractionConnector(wallet.connector)) {
|
|
114
115
|
return SvgEmbeddedWalletIcon;
|
|
115
116
|
}
|
|
116
117
|
return null;
|
|
117
118
|
};
|
|
118
119
|
const AuthProviderIcon = ({ iconSize = 64, showStatus, wallet, }) => {
|
|
119
|
-
var _a, _b, _c
|
|
120
|
+
var _a, _b, _c;
|
|
120
121
|
const { primaryWallet, selectedWalletConnector, user, userWithMissingInfo } = useInternalDynamicContext();
|
|
121
122
|
const { deniedOauthProvider, deniedAddress } = useAccessDeniedContext();
|
|
122
123
|
const { isLoadingEmbeddedWallet } = useWalletContext();
|
|
124
|
+
const { getEOAWallet } = useSmartWallets();
|
|
123
125
|
const findSocialIcon = useFindSocialIcon();
|
|
124
126
|
if (deniedOauthProvider) {
|
|
125
127
|
const MagicSocialWalletIcon = findSocialIcon(deniedOauthProvider);
|
|
@@ -148,8 +150,7 @@ const AuthProviderIcon = ({ iconSize = 64, showStatus, wallet, }) => {
|
|
|
148
150
|
wallet: walletForIcon,
|
|
149
151
|
});
|
|
150
152
|
const isEmbeddedWallet = ((_b = (_a = walletForIcon === null || walletForIcon === void 0 ? void 0 : walletForIcon.connector) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.startsWith('turnkey')) ||
|
|
151
|
-
((
|
|
152
|
-
((_d = (walletForIcon === null || walletForIcon === void 0 ? void 0 : walletForIcon.connector).getEOAConnector()) === null || _d === void 0 ? void 0 : _d.isEmbeddedWallet));
|
|
153
|
+
((_c = getEOAWallet(walletForIcon)) === null || _c === void 0 ? void 0 : _c.connector.isEmbeddedWallet);
|
|
153
154
|
if (isEmbeddedWallet && MagicEmailOrSocialIcon) {
|
|
154
155
|
const chain = walletForIcon === null || walletForIcon === void 0 ? void 0 : walletForIcon.chain;
|
|
155
156
|
const chainEnum = VerifiedCredentialNameToChainEnum[chain];
|
|
@@ -90,8 +90,8 @@ require('../../context/ReinitializeContext/ReinitializeContextProvider.cjs');
|
|
|
90
90
|
require('../InlineWidget/InlineWidget.cjs');
|
|
91
91
|
require('qrcode');
|
|
92
92
|
|
|
93
|
-
const Divider = ({ text, className, style, fullWidth = false, }) => (jsxRuntime.jsxs("div", { className: classNames.classNames('divider', className, {
|
|
93
|
+
const Divider = ({ text, className, style, fullWidth = false, children, }) => (jsxRuntime.jsxs("div", { className: classNames.classNames('divider', className, {
|
|
94
94
|
'divider__full-width': fullWidth,
|
|
95
|
-
}), style: style, children: [jsxRuntime.jsx("div", { className: 'divider__dash' }), Boolean(text) && (jsxRuntime.
|
|
95
|
+
}), style: style, children: [jsxRuntime.jsx("div", { className: 'divider__dash' }), Boolean(text) && (jsxRuntime.jsx(Typography.Typography, { className: 'divider__text', variant: 'body_small', color: 'secondary', children: text })), children && jsxRuntime.jsx("div", { children: children }), jsxRuntime.jsx("div", { className: 'divider__dash' })] }));
|
|
96
96
|
|
|
97
97
|
exports.Divider = Divider;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { ClassStyleProps } from '../../utils/types';
|
|
3
3
|
type DividerProps = ClassStyleProps & {
|
|
4
4
|
fullWidth?: boolean;
|
|
5
5
|
text?: string;
|
|
6
|
-
};
|
|
6
|
+
} & PropsWithChildren;
|
|
7
7
|
export declare const Divider: FC<DividerProps>;
|
|
8
8
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { jsxs, jsx
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
4
4
|
import '../Accordion/components/AccordionItem/AccordionItem.js';
|
|
5
5
|
import '../Alert/Alert.js';
|
|
@@ -86,8 +86,8 @@ import '../../context/ReinitializeContext/ReinitializeContextProvider.js';
|
|
|
86
86
|
import '../InlineWidget/InlineWidget.js';
|
|
87
87
|
import 'qrcode';
|
|
88
88
|
|
|
89
|
-
const Divider = ({ text, className, style, fullWidth = false, }) => (jsxs("div", { className: classNames('divider', className, {
|
|
89
|
+
const Divider = ({ text, className, style, fullWidth = false, children, }) => (jsxs("div", { className: classNames('divider', className, {
|
|
90
90
|
'divider__full-width': fullWidth,
|
|
91
|
-
}), style: style, children: [jsx("div", { className: 'divider__dash' }), Boolean(text) && (
|
|
91
|
+
}), style: style, children: [jsx("div", { className: 'divider__dash' }), Boolean(text) && (jsx(Typography, { className: 'divider__text', variant: 'body_small', color: 'secondary', children: text })), children && jsx("div", { children: children }), jsx("div", { className: 'divider__dash' })] }));
|
|
92
92
|
|
|
93
93
|
export { Divider };
|
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var utils = require('@dynamic-labs/utils');
|
|
8
8
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
9
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
10
9
|
require('@dynamic-labs/sdk-api-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('../../context/ViewContext/ViewContext.cjs');
|
|
17
17
|
require('react');
|
|
18
18
|
require('@dynamic-labs/wallet-book');
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { isLegacySafari } from '@dynamic-labs/utils';
|
|
4
4
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
5
|
-
import '@dynamic-labs/wallet-connector-core';
|
|
6
5
|
import '@dynamic-labs/sdk-api-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 '../../context/ViewContext/ViewContext.js';
|
|
13
13
|
import 'react';
|
|
14
14
|
import '@dynamic-labs/wallet-book';
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var ThemeContext = require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
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('../../../context/ViewContext/ViewContext.cjs');
|
|
17
17
|
require('react');
|
|
18
18
|
require('@dynamic-labs/wallet-book');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useThemeContext } from '../../../context/ThemeContext/ThemeContext.js';
|
|
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 '../../../context/ViewContext/ViewContext.js';
|
|
13
13
|
import 'react';
|
|
14
14
|
import '@dynamic-labs/wallet-book';
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
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('../../context/ViewContext/ViewContext.cjs');
|
|
17
17
|
require('react');
|
|
18
18
|
require('../../utils/constants/colors.cjs');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
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 '../../context/ViewContext/ViewContext.js';
|
|
13
13
|
import 'react';
|
|
14
14
|
import '../../utils/constants/colors.js';
|
|
@@ -34,6 +34,7 @@ require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
|
34
34
|
require('../../context/VerificationContext/VerificationContext.cjs');
|
|
35
35
|
require('react-dom');
|
|
36
36
|
require('../../context/WalletContext/WalletContext.cjs');
|
|
37
|
+
var useSmartWallets = require('../../utils/hooks/useSmartWallets/useSmartWallets.cjs');
|
|
37
38
|
var usePasskeyRecovery = require('../../utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs');
|
|
38
39
|
require('../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.cjs');
|
|
39
40
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
@@ -105,10 +106,10 @@ const NeedHelpSection = ({ isRecoveryFlow = false }) => {
|
|
|
105
106
|
const isRecoveryEnabled = !isRecoveryFlow &&
|
|
106
107
|
((_d = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) === null || _d === void 0 ? void 0 : _d.find((p) => p.provider === sdkApiCore.ProviderEnum.Turnkey && p.enabledAt)) &&
|
|
107
108
|
Boolean((_f = (_e = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _e === void 0 ? void 0 : _e.embeddedWallets) === null || _f === void 0 ? void 0 : _f.emailRecoveryEnabled);
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
const { getEOAWallet } = useSmartWallets.useSmartWallets();
|
|
110
|
+
const eoaWallet = primaryWallet && getEOAWallet(primaryWallet);
|
|
111
|
+
const isSessionKeyCompatible = (primaryWallet && walletConnectorCore.isSessionKeyCompatibleWallet(primaryWallet)) ||
|
|
112
|
+
(eoaWallet && walletConnectorCore.isSessionKeyCompatibleWallet(eoaWallet));
|
|
112
113
|
const hasContactInfo = Boolean(supportEmail || supportUrl);
|
|
113
114
|
const getSupportHelpSession = () => {
|
|
114
115
|
if (!hasContactInfo) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { ProviderEnum } from '@dynamic-labs/sdk-api-core';
|
|
5
|
-
import {
|
|
5
|
+
import { isSessionKeyCompatibleWallet } from '@dynamic-labs/wallet-connector-core';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
8
8
|
import '../../shared/logger.js';
|
|
@@ -30,6 +30,7 @@ import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
|
30
30
|
import '../../context/VerificationContext/VerificationContext.js';
|
|
31
31
|
import 'react-dom';
|
|
32
32
|
import '../../context/WalletContext/WalletContext.js';
|
|
33
|
+
import { useSmartWallets } from '../../utils/hooks/useSmartWallets/useSmartWallets.js';
|
|
33
34
|
import { usePasskeyRecovery } from '../../utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js';
|
|
34
35
|
import '../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
|
|
35
36
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
@@ -101,10 +102,10 @@ const NeedHelpSection = ({ isRecoveryFlow = false }) => {
|
|
|
101
102
|
const isRecoveryEnabled = !isRecoveryFlow &&
|
|
102
103
|
((_d = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) === null || _d === void 0 ? void 0 : _d.find((p) => p.provider === ProviderEnum.Turnkey && p.enabledAt)) &&
|
|
103
104
|
Boolean((_f = (_e = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _e === void 0 ? void 0 : _e.embeddedWallets) === null || _f === void 0 ? void 0 : _f.emailRecoveryEnabled);
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
const { getEOAWallet } = useSmartWallets();
|
|
106
|
+
const eoaWallet = primaryWallet && getEOAWallet(primaryWallet);
|
|
107
|
+
const isSessionKeyCompatible = (primaryWallet && isSessionKeyCompatibleWallet(primaryWallet)) ||
|
|
108
|
+
(eoaWallet && isSessionKeyCompatibleWallet(eoaWallet));
|
|
108
109
|
const hasContactInfo = Boolean(supportEmail || supportUrl);
|
|
109
110
|
const getSupportHelpSession = () => {
|
|
110
111
|
if (!hasContactInfo) {
|