@dynamic-labs/sdk-react-core 0.19.0-alpha.0 → 0.19.0-alpha.2
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 +78 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +11 -10
- package/src/index.cjs +40 -12
- package/src/index.d.ts +4 -7
- package/src/index.js +22 -6
- package/src/lib/Main.cjs +14 -3
- package/src/lib/Main.js +14 -3
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +5 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +5 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +6 -2
- package/src/lib/components/AnimatePresence/AnimatePresence.js +6 -2
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +14 -7
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +14 -7
- package/src/lib/components/Button/Button.cjs +10 -7
- package/src/lib/components/Button/Button.d.ts +3 -3
- package/src/lib/components/Button/Button.js +10 -7
- package/src/lib/components/Divider/Divider.cjs +7 -3
- package/src/lib/components/Divider/Divider.js +7 -3
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.cjs +1 -1
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.js +1 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +1 -1
- package/src/lib/components/Icon/Icon.cjs +1 -0
- package/src/lib/components/Icon/Icon.js +1 -0
- package/src/lib/components/Icon/Icon.types.d.ts +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.d.ts +1 -1
- package/src/lib/components/ListTile/ListTile.cjs +1 -1
- package/src/lib/components/ListTile/ListTile.js +1 -1
- package/src/lib/components/ListTile/ListTile.types.d.ts +1 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +5 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +5 -1
- package/src/lib/components/Modal/Modal.cjs +5 -1
- package/src/lib/components/Modal/Modal.js +5 -1
- package/src/lib/components/ModalHeader/ModalHeader.cjs +2 -2
- package/src/lib/components/ModalHeader/ModalHeader.js +2 -2
- package/src/lib/components/ModalHeader/ModalHeader.types.d.ts +2 -1
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.cjs +4 -2
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.d.ts +2 -1
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.js +4 -2
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +6 -2
- package/src/lib/components/NetworkPicker/NetworkPicker.js +6 -2
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +7 -3
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +7 -3
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +7 -3
- package/src/lib/components/NetworkPicker/components/Network/Network.js +7 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +7 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +7 -3
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +12 -6
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +2 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +12 -6
- package/src/lib/components/OverlayCard/OverlayCard.cjs +5 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +5 -1
- package/src/lib/components/Portal/Portal.cjs +5 -1
- package/src/lib/components/Portal/Portal.js +5 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +6 -2
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.d.ts +1 -0
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +6 -2
- package/src/lib/components/Tooltip/Tooltip.cjs +5 -1
- package/src/lib/components/Tooltip/Tooltip.js +5 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +3 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +3 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +7 -3
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +7 -3
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +5 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +5 -1
- package/src/lib/components/Typography/Typography.cjs +1 -0
- package/src/lib/components/Typography/Typography.js +1 -0
- package/src/lib/components/Typography/Typography.types.d.ts +1 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +5 -1
- package/src/lib/components/UserAddress/UserAddress.js +5 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +7 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +7 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +7 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +7 -3
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +7 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +7 -4
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +26 -14
- package/src/lib/components/UserProfileForm/UserProfileForm.d.ts +14 -3
- package/src/lib/components/UserProfileForm/UserProfileForm.js +27 -15
- package/src/lib/components/UserProfileForm/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +40 -11
- package/src/lib/context/DynamicContext/DynamicContext.js +42 -13
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.cjs +13 -3
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.js +13 -3
- package/src/lib/context/DynamicContext/internalEvents/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/internalEvents/internalEvents.cjs +14 -0
- package/src/lib/context/DynamicContext/internalEvents/internalEvents.d.ts +8 -0
- package/src/lib/context/DynamicContext/internalEvents/internalEvents.js +6 -0
- package/src/lib/context/DynamicContext/types/index.d.ts +8 -5
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +9 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +5 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +5 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +64 -33
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +3 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +64 -33
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +2 -1
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext.js +2 -1
- package/src/lib/context/MockContext/MockContext.cjs +7 -3
- package/src/lib/context/MockContext/MockContext.js +7 -3
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +6 -2
- package/src/lib/context/QrCodeContext/QrCodeContext.js +6 -2
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +5 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +5 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +8 -3
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +8 -3
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +67 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.d.ts +14 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +62 -0
- package/src/lib/context/UserFieldEditorContext/index.d.ts +1 -0
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +1 -0
- package/src/lib/context/WalletContext/WalletContext.js +1 -0
- package/src/lib/data/api.cjs +33 -1
- package/src/lib/data/api.d.ts +3 -1
- package/src/lib/data/api.js +34 -4
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +18 -6
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +18 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +7 -3
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +7 -3
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +7 -3
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +7 -3
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +7 -3
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +7 -3
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +7 -3
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +7 -3
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +7 -3
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +7 -3
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +7 -3
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +18 -5
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +18 -5
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +2 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +76 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.d.ts +10 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +72 -0
- package/src/lib/modals/UserFieldEditorModal/index.d.ts +1 -0
- package/src/lib/modals/index.d.ts +1 -0
- package/src/lib/shared/assets/at.cjs +53 -0
- package/src/lib/shared/assets/at.js +29 -0
- package/src/lib/shared/assets/double-arrow-right.cjs +53 -0
- package/src/lib/shared/assets/double-arrow-right.js +29 -0
- package/src/lib/shared/assets/index.d.ts +11 -0
- package/src/lib/shared/assets/justified-text.cjs +53 -0
- package/src/lib/shared/assets/justified-text.js +29 -0
- package/src/lib/shared/assets/location.cjs +53 -0
- package/src/lib/shared/assets/location.js +29 -0
- package/src/lib/shared/assets/mail.cjs +53 -0
- package/src/lib/shared/assets/mail.js +29 -0
- package/src/lib/shared/assets/phone.cjs +53 -0
- package/src/lib/shared/assets/phone.js +29 -0
- package/src/lib/shared/assets/size-labels.cjs +53 -0
- package/src/lib/shared/assets/size-labels.js +29 -0
- package/src/lib/shared/assets/sparkles.cjs +53 -0
- package/src/lib/shared/assets/sparkles.js +29 -0
- package/src/lib/shared/assets/user-card.cjs +53 -0
- package/src/lib/shared/assets/user-card.js +29 -0
- package/src/lib/shared/assets/user.cjs +53 -0
- package/src/lib/shared/assets/user.js +29 -0
- package/src/lib/shared/assets/work-suitcase.cjs +53 -0
- package/src/lib/shared/assets/work-suitcase.js +29 -0
- package/src/lib/shared/types/index.d.ts +4 -0
- package/src/lib/shared/utils/functions/splitCamelCase/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/splitCamelCase/splitCamelCase.cjs +8 -0
- package/src/lib/shared/utils/functions/splitCamelCase/splitCamelCase.d.ts +1 -0
- package/src/lib/shared/utils/functions/splitCamelCase/splitCamelCase.js +4 -0
- 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 +7 -0
- package/src/lib/utils/constants/errors.d.ts +1 -0
- package/src/lib/utils/constants/errors.js +3 -0
- package/src/lib/utils/constants/index.d.ts +1 -1
- package/src/lib/utils/constants/localStorage.cjs +3 -1
- package/src/lib/utils/constants/localStorage.d.ts +1 -0
- package/src/lib/utils/constants/localStorage.js +3 -2
- package/src/lib/utils/functions/digestSHA256/digestSHA256.cjs +11 -0
- package/src/lib/utils/functions/digestSHA256/digestSHA256.d.ts +1 -0
- package/src/lib/utils/functions/digestSHA256/digestSHA256.js +7 -0
- package/src/lib/utils/functions/digestSHA256/index.d.ts +1 -0
- package/src/lib/utils/functions/encodeBase64URL/encodeBase64URL.cjs +14 -0
- package/src/lib/utils/functions/encodeBase64URL/encodeBase64URL.d.ts +1 -0
- package/src/lib/utils/functions/encodeBase64URL/encodeBase64URL.js +10 -0
- package/src/lib/utils/functions/encodeBase64URL/index.d.ts +1 -0
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +1 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +1 -1
- package/src/lib/utils/functions/getRedirectURIOrigin/getRedirectURIOrigin.cjs +33 -0
- package/src/lib/utils/functions/getRedirectURIOrigin/getRedirectURIOrigin.d.ts +1 -0
- package/src/lib/utils/functions/getRedirectURIOrigin/getRedirectURIOrigin.js +29 -0
- package/src/lib/utils/functions/getRedirectURIOrigin/index.d.ts +1 -0
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.cjs +14 -2
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.d.ts +3 -2
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.js +14 -2
- package/src/lib/utils/functions/getUserProfileFields/index.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +8 -0
- package/src/lib/utils/functions/isMagicConnector/index.d.ts +1 -0
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.cjs +10 -0
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.d.ts +2 -0
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.js +6 -0
- package/src/lib/utils/functions/randomString/index.d.ts +1 -0
- package/src/lib/utils/functions/randomString/randomString.cjs +14 -0
- package/src/lib/utils/functions/randomString/randomString.d.ts +1 -0
- package/src/lib/utils/functions/randomString/randomString.js +10 -0
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/index.d.ts +1 -0
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/sendTransactionWithAutoNonce.cjs +45 -0
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/sendTransactionWithAutoNonce.d.ts +17 -0
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/sendTransactionWithAutoNonce.js +40 -0
- package/src/lib/utils/functions/stringifyURIQuery/index.d.ts +1 -0
- package/src/lib/utils/functions/stringifyURIQuery/stringifyURIQuery.cjs +13 -0
- package/src/lib/utils/functions/stringifyURIQuery/stringifyURIQuery.d.ts +1 -0
- package/src/lib/utils/functions/stringifyURIQuery/stringifyURIQuery.js +9 -0
- package/src/lib/utils/hooks/authenticationHooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +7 -5
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.d.ts +4 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +7 -5
- package/src/lib/utils/hooks/index.d.ts +10 -2
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +19 -3
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.d.ts +1 -2
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +20 -4
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +11 -9
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +1 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +11 -9
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +2 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +2 -1
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +1 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +1 -0
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.cjs +7 -0
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.d.ts +6 -0
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.js +7 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +2 -2
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +2 -2
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +7 -6
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +7 -6
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +2 -7
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +2 -7
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/utils/index.d.ts +1 -0
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.cjs +16 -0
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.d.ts +2 -0
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.js +12 -0
- package/src/lib/utils/hooks/useFindSocialIcon/index.d.ts +1 -0
- package/src/lib/utils/hooks/{useGetSocialIcon/useGetSocialIcon.cjs → useFindSocialIcon/useFindSocialIcon.cjs} +3 -3
- package/src/lib/utils/hooks/useFindSocialIcon/useFindSocialIcon.d.ts +3 -0
- package/src/lib/utils/hooks/useFindSocialIcon/useFindSocialIcon.js +10 -0
- package/src/lib/utils/hooks/useOnUnmount/index.d.ts +1 -0
- package/src/lib/utils/hooks/useOnUnmount/useOnUnmount.cjs +21 -0
- package/src/lib/utils/hooks/useOnUnmount/useOnUnmount.d.ts +1 -0
- package/src/lib/utils/hooks/useOnUnmount/useOnUnmount.js +17 -0
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +6 -2
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.d.ts +2 -1
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +6 -2
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +164 -35
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +7 -3
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +166 -37
- package/src/lib/utils/hooks/useTransactionEstimatedGas/index.d.ts +1 -0
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.cjs +61 -0
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.d.ts +20 -0
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.js +57 -0
- package/src/lib/utils/hooks/useTransactionWithGasPrice/index.d.ts +1 -0
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs +47 -0
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.d.ts +32 -0
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js +43 -0
- package/src/lib/utils/hooks/useUserDataForm/index.d.ts +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/index.d.ts +3 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/index.d.ts +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +107 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.d.ts +9 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +103 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/index.d.ts +2 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/types.d.ts +7 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +73 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.d.ts +7 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +69 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/validateUpdateRequest/index.d.ts +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/validateUpdateRequest/validateUpdateRequest.cjs +31 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/validateUpdateRequest/validateUpdateRequest.d.ts +6 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/validateUpdateRequest/validateUpdateRequest.js +27 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +7 -94
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.d.ts +4 -24
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +7 -94
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +2 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +2 -0
- package/src/lib/utils/hooks/useWalletConnectorEvent/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectorEvent/useWalletConnectorEvent.cjs +42 -0
- package/src/lib/utils/hooks/useWalletConnectorEvent/useWalletConnectorEvent.d.ts +12 -0
- package/src/lib/utils/hooks/useWalletConnectorEvent/useWalletConnectorEvent.js +38 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +12 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +12 -0
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +91 -136
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +92 -137
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -0
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +8 -4
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +5 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +8 -4
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +2 -2
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +10 -6
- package/src/lib/views/AccountExistsView/AccountExistsView.js +10 -6
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +17 -7
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +17 -7
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +7 -3
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +7 -3
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +6 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +6 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +11 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +11 -4
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +7 -3
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +7 -3
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +7 -3
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +7 -3
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +20 -8
- package/src/lib/views/EmailUpdate/EmailUpdate.js +20 -8
- package/src/lib/views/EmailVerification/EmailVerification.cjs +56 -11
- package/src/lib/views/EmailVerification/EmailVerification.js +59 -14
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +8 -3
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +8 -3
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +7 -3
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +7 -3
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +14 -8
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.d.ts +5 -1
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +15 -9
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +4 -1
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +4 -1
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +10 -6
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +10 -6
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +114 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.d.ts +2 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +110 -0
- package/src/lib/views/MergeUserAccountsView/index.d.ts +1 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +22 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +22 -6
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +23 -7
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +23 -7
- package/src/lib/views/NoAccess/NoAccess.cjs +7 -4
- package/src/lib/views/NoAccess/NoAccess.js +7 -4
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +7 -3
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +7 -3
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +7 -3
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +7 -3
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +7 -3
- package/src/lib/views/PendingConnectView/PendingConnectView.js +7 -3
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +7 -3
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +7 -3
- package/src/lib/views/QrCodeView/QRCode.cjs +5 -1
- package/src/lib/views/QrCodeView/QRCode.js +5 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +7 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +7 -3
- package/src/lib/views/QrCodeView/QrCodeView.cjs +7 -3
- package/src/lib/views/QrCodeView/QrCodeView.js +7 -3
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +18 -17
- package/src/lib/views/SendBalanceView/SendBalanceView.js +18 -17
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +71 -0
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.d.ts +8 -0
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +67 -0
- package/src/lib/views/SendBalanceView/components/TransactionStage/index.d.ts +1 -0
- package/src/lib/views/SendBalanceView/components/index.d.ts +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +10 -7
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +10 -7
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +10 -6
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +10 -6
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +27 -5
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +27 -5
- package/src/lib/views/TransactionConfirmationView/hooks/index.d.ts +2 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/index.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/hooks/{useTransactionData/useTransactionData.cjs → useTransactionGas/useTransactionGas.cjs} +22 -43
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.d.ts +11 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +71 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/index.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/useTransactionTotal.cjs +14 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/useTransactionTotal.d.ts +7 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/useTransactionTotal.js +10 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +73 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.d.ts +9 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +69 -0
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.cjs +48 -0
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.d.ts +7 -0
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.js +44 -0
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/index.d.ts +1 -0
- package/src/lib/views/UserFieldEditorView/index.d.ts +1 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/index.d.ts +1 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +34 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.d.ts +7 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +30 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +68 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.d.ts +2 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +64 -0
- package/src/lib/views/WalletCannotBeTransferredView/index.d.ts +1 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +7 -3
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +7 -3
- package/src/lib/views/WalletList/WalletList.cjs +4 -1
- package/src/lib/views/WalletList/WalletList.js +4 -1
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +9 -3
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +9 -3
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +27 -7
- package/src/lib/views/WalletLockedView/WalletLockedView.js +27 -7
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +7 -3
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +7 -3
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +7 -3
- package/src/lib/views/WalletUsedView/WalletUsedView.js +7 -3
- package/src/lib/views/viewToComponentMap.cjs +4 -0
- package/src/lib/views/viewToComponentMap.js +4 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +8 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +8 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +8 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +8 -4
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetFooter/DynamicWidgetFooter.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetFooter/DynamicWidgetFooter.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +6 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +5 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +5 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +7 -3
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +6 -2
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +4 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +7 -3
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +7 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +8 -4
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +8 -4
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +9 -5
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +7 -3
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +7 -3
- package/src/lib/widgets/OAuthIFrameContainer/OAuthIFrameContainer.cjs +13 -0
- package/src/lib/widgets/OAuthIFrameContainer/OAuthIFrameContainer.d.ts +2 -0
- package/src/lib/widgets/OAuthIFrameContainer/OAuthIFrameContainer.js +9 -0
- package/src/lib/widgets/OAuthIFrameContainer/index.d.ts +1 -0
- package/src/lib/widgets/index.d.ts +1 -0
- package/src/lib/utils/hooks/useGetSocialIcon/index.d.ts +0 -1
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.d.ts +0 -2
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.js +0 -10
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/index.d.ts +0 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.d.ts +0 -18
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +0 -92
|
@@ -39,58 +39,37 @@ require('formik');
|
|
|
39
39
|
require('yup');
|
|
40
40
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
41
41
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
42
|
+
require('../../../CollectUserDataView/fieldsConfig.cjs');
|
|
42
43
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
43
44
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
45
|
+
require('../../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
44
46
|
var usePromise = require('../../../../utils/hooks/usePromise/usePromise.cjs');
|
|
45
|
-
require('../../../../utils/hooks/
|
|
47
|
+
var useTransactionEstimatedGas = require('../../../../utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.cjs');
|
|
48
|
+
require('@dynamic-labs/types');
|
|
49
|
+
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
50
|
+
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
46
51
|
|
|
47
|
-
const
|
|
48
|
-
const { data:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const transactionWithNoOrigin = _tslib.__rest(transaction, ["from"]);
|
|
58
|
-
return provider.estimateGas(transactionWithNoOrigin);
|
|
52
|
+
const useTransactionGas = ({ provider, transaction, }) => {
|
|
53
|
+
const { data: estimatedGas, isLoading: isEstimatedGasLoading } = useTransactionEstimatedGas.useTransactionEstimatedGas(provider, transaction);
|
|
54
|
+
const { data: gasPrice, isLoading: isLoadingGasPrice } = usePromise.usePromise(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
55
|
+
if (transaction.gasPrice) {
|
|
56
|
+
const gasPrice = yield transaction.gasPrice;
|
|
57
|
+
return gasPrice ? ethers.ethers.BigNumber.from(gasPrice) : undefined;
|
|
58
|
+
}
|
|
59
|
+
return provider.getGasPrice();
|
|
60
|
+
}), {
|
|
61
|
+
deps: [transaction.gasPrice],
|
|
59
62
|
});
|
|
60
|
-
const
|
|
61
|
-
const isGasPriceLoading = isEstimatedGasLoading || isFeeDataLoading;
|
|
62
|
-
const gasEstimate = React.useMemo(() => gasPrice && estimatedGas
|
|
63
|
+
const gasTotalPrice = React.useMemo(() => gasPrice && estimatedGas
|
|
63
64
|
? ethers.ethers.BigNumber.from(gasPrice).mul(estimatedGas)
|
|
64
65
|
: undefined, [gasPrice, estimatedGas]);
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
const total = React.useMemo(() => {
|
|
68
|
-
if (gasEstimate !== undefined && transactionValue !== undefined) {
|
|
69
|
-
return gasEstimate.add(transactionValue);
|
|
70
|
-
}
|
|
71
|
-
return transactionValue || gasEstimate;
|
|
72
|
-
}, [gasEstimate, transactionValue]);
|
|
73
|
-
const isLoading = React.useMemo(() => isEffectiveValueLoading ||
|
|
74
|
-
isGasPriceLoading ||
|
|
75
|
-
isTransactionToAddressLoading ||
|
|
76
|
-
isTransactionFromAddressLoading, [
|
|
77
|
-
isEffectiveValueLoading,
|
|
78
|
-
isGasPriceLoading,
|
|
79
|
-
isTransactionToAddressLoading,
|
|
80
|
-
isTransactionFromAddressLoading,
|
|
81
|
-
]);
|
|
66
|
+
const isLoading = isEstimatedGasLoading || isLoadingGasPrice;
|
|
67
|
+
const isGasEstimated = Boolean(estimatedGas) && !transaction.gasPrice;
|
|
82
68
|
return {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
isGasPriceLoading,
|
|
69
|
+
gasTotalPrice,
|
|
70
|
+
isGasEstimated,
|
|
86
71
|
isLoading,
|
|
87
|
-
isTransactionFromAddressLoading,
|
|
88
|
-
isTransactionToAddressLoading,
|
|
89
|
-
total,
|
|
90
|
-
transactionFromAddress,
|
|
91
|
-
transactionToAddress,
|
|
92
|
-
transactionValue,
|
|
93
72
|
};
|
|
94
73
|
};
|
|
95
74
|
|
|
96
|
-
exports.
|
|
75
|
+
exports.useTransactionGas = useTransactionGas;
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ethers } from 'ethers';
|
|
2
|
+
type UseTransactionGasProps = {
|
|
3
|
+
provider: ethers.providers.Web3Provider;
|
|
4
|
+
transaction: ethers.utils.Deferrable<ethers.providers.TransactionRequest>;
|
|
5
|
+
};
|
|
6
|
+
export declare const useTransactionGas: ({ provider, transaction, }: UseTransactionGasProps) => {
|
|
7
|
+
gasTotalPrice: ethers.BigNumber | undefined;
|
|
8
|
+
isGasEstimated: boolean;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { __awaiter } from '../../../../../../_virtual/_tslib.js';
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { ethers } from 'ethers';
|
|
4
|
+
import '@dynamic-labs/utils';
|
|
5
|
+
import '@dynamic-labs/sdk-api';
|
|
6
|
+
import '../../../../config/ApiEndpoint.js';
|
|
7
|
+
import '../../../../shared/logger.js';
|
|
8
|
+
import '@dynamic-labs/iconic';
|
|
9
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
10
|
+
import 'react/jsx-runtime';
|
|
11
|
+
import '../../../../context/ViewContext/ViewContext.js';
|
|
12
|
+
import '@dynamic-labs/wallet-book';
|
|
13
|
+
import '../../../../utils/constants/colors.js';
|
|
14
|
+
import '../../../../shared/utils/classes/storage/localStorage.js';
|
|
15
|
+
import '../../../../shared/consts/index.js';
|
|
16
|
+
import '@dynamic-labs/multi-wallet';
|
|
17
|
+
import '@dynamic-labs/rpc-providers';
|
|
18
|
+
import '../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
19
|
+
import '../../../../context/DynamicContext/DynamicContext.js';
|
|
20
|
+
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
21
|
+
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
22
|
+
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
23
|
+
import 'react-dom';
|
|
24
|
+
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
25
|
+
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
26
|
+
import 'react-focus-lock';
|
|
27
|
+
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
28
|
+
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
29
|
+
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
30
|
+
import '../../../../components/IconButton/IconButton.js';
|
|
31
|
+
import '../../../../components/Alert/Alert.js';
|
|
32
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
33
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
34
|
+
import 'formik';
|
|
35
|
+
import 'yup';
|
|
36
|
+
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
37
|
+
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
38
|
+
import '../../../CollectUserDataView/fieldsConfig.js';
|
|
39
|
+
import '../../../../context/MockContext/MockContext.js';
|
|
40
|
+
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
41
|
+
import '../../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
42
|
+
import { usePromise } from '../../../../utils/hooks/usePromise/usePromise.js';
|
|
43
|
+
import { useTransactionEstimatedGas } from '../../../../utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.js';
|
|
44
|
+
import '@dynamic-labs/types';
|
|
45
|
+
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
46
|
+
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
47
|
+
|
|
48
|
+
const useTransactionGas = ({ provider, transaction, }) => {
|
|
49
|
+
const { data: estimatedGas, isLoading: isEstimatedGasLoading } = useTransactionEstimatedGas(provider, transaction);
|
|
50
|
+
const { data: gasPrice, isLoading: isLoadingGasPrice } = usePromise(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
51
|
+
if (transaction.gasPrice) {
|
|
52
|
+
const gasPrice = yield transaction.gasPrice;
|
|
53
|
+
return gasPrice ? ethers.BigNumber.from(gasPrice) : undefined;
|
|
54
|
+
}
|
|
55
|
+
return provider.getGasPrice();
|
|
56
|
+
}), {
|
|
57
|
+
deps: [transaction.gasPrice],
|
|
58
|
+
});
|
|
59
|
+
const gasTotalPrice = useMemo(() => gasPrice && estimatedGas
|
|
60
|
+
? ethers.BigNumber.from(gasPrice).mul(estimatedGas)
|
|
61
|
+
: undefined, [gasPrice, estimatedGas]);
|
|
62
|
+
const isLoading = isEstimatedGasLoading || isLoadingGasPrice;
|
|
63
|
+
const isGasEstimated = Boolean(estimatedGas) && !transaction.gasPrice;
|
|
64
|
+
return {
|
|
65
|
+
gasTotalPrice,
|
|
66
|
+
isGasEstimated,
|
|
67
|
+
isLoading,
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export { useTransactionGas };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useTransactionTotal } from './useTransactionTotal';
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/useTransactionTotal.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
const useTransactionTotal = ({ transactionValue, gasTotalPrice, }) => React.useMemo(() => {
|
|
8
|
+
if (gasTotalPrice !== undefined && transactionValue !== undefined) {
|
|
9
|
+
return gasTotalPrice.add(transactionValue);
|
|
10
|
+
}
|
|
11
|
+
return transactionValue || gasTotalPrice;
|
|
12
|
+
}, [gasTotalPrice, transactionValue]);
|
|
13
|
+
|
|
14
|
+
exports.useTransactionTotal = useTransactionTotal;
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/useTransactionTotal.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ethers } from 'ethers';
|
|
2
|
+
type UseTransactionTotalProps = {
|
|
3
|
+
transactionValue?: ethers.BigNumber;
|
|
4
|
+
gasTotalPrice?: ethers.BigNumber;
|
|
5
|
+
};
|
|
6
|
+
export declare const useTransactionTotal: ({ transactionValue, gasTotalPrice, }: UseTransactionTotalProps) => ethers.BigNumber | undefined;
|
|
7
|
+
export {};
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/useTransactionTotal.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
const useTransactionTotal = ({ transactionValue, gasTotalPrice, }) => useMemo(() => {
|
|
4
|
+
if (gasTotalPrice !== undefined && transactionValue !== undefined) {
|
|
5
|
+
return gasTotalPrice.add(transactionValue);
|
|
6
|
+
}
|
|
7
|
+
return transactionValue || gasTotalPrice;
|
|
8
|
+
}, [gasTotalPrice, transactionValue]);
|
|
9
|
+
|
|
10
|
+
export { useTransactionTotal };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
require('react');
|
|
7
|
+
var Typography = require('../../components/Typography/Typography.cjs');
|
|
8
|
+
require('@dynamic-labs/sdk-api');
|
|
9
|
+
require('../../shared/logger.cjs');
|
|
10
|
+
require('@dynamic-labs/iconic');
|
|
11
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
12
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
13
|
+
var close = require('../../shared/assets/close.cjs');
|
|
14
|
+
require('@dynamic-labs/wallet-book');
|
|
15
|
+
require('@dynamic-labs/utils');
|
|
16
|
+
require('../../utils/constants/colors.cjs');
|
|
17
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
18
|
+
require('ethers');
|
|
19
|
+
require('../../shared/consts/index.cjs');
|
|
20
|
+
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
21
|
+
require('@dynamic-labs/multi-wallet');
|
|
22
|
+
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
23
|
+
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
24
|
+
var Icon = require('../../components/Icon/Icon.cjs');
|
|
25
|
+
require('react-dom');
|
|
26
|
+
require('react-focus-lock');
|
|
27
|
+
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
28
|
+
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
29
|
+
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
30
|
+
require('../../config/ApiEndpoint.cjs');
|
|
31
|
+
require('@dynamic-labs/rpc-providers');
|
|
32
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
33
|
+
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
34
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
35
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
36
|
+
var ModalHeader = require('../../components/ModalHeader/ModalHeader.cjs');
|
|
37
|
+
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
38
|
+
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
39
|
+
require('../../components/Alert/Alert.cjs');
|
|
40
|
+
var UserProfileForm = require('../../components/UserProfileForm/UserProfileForm.cjs');
|
|
41
|
+
var useAssignDefaultValues = require('./useAssignDefaultValues/useAssignDefaultValues.cjs');
|
|
42
|
+
var UserFieldsToIcon = require('./UserFieldsToIcon/UserFieldsToIcon.cjs');
|
|
43
|
+
require('../../context/MockContext/MockContext.cjs');
|
|
44
|
+
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
45
|
+
require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
46
|
+
require('@dynamic-labs/types');
|
|
47
|
+
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
48
|
+
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
49
|
+
require('yup');
|
|
50
|
+
require('../CollectUserDataView/fieldsConfig.cjs');
|
|
51
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
52
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
53
|
+
require('formik');
|
|
54
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
55
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
56
|
+
|
|
57
|
+
const UserFieldEditorView = ({ onClickClose, onSubmit, fields, submitText, subtitle, title, }) => {
|
|
58
|
+
// Treat undefined props
|
|
59
|
+
({ submitText, subtitle, title } = useAssignDefaultValues.useAssignDefaultValues({ submitText, subtitle, title }, fields));
|
|
60
|
+
const closeButton = onClickClose && (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ type: 'button', onClick: onClickClose, "data-testid": 'close-button' }, { children: jsxRuntime.jsx(close.ReactComponent, {}) })));
|
|
61
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ alignContent: 'bottom', trailing: closeButton }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'user-field-editor__header' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'user-field-editor__header__icon' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'brand-primary', size: 'large' }, { children: jsxRuntime.jsx(UserFieldsToIcon.UserFieldsToIcon, { fields: fields }) })) })), title && (jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary' }, { children: title })))] })) })), jsxRuntime.jsxs("div", Object.assign({ className: 'user-field-editor__body' }, { children: [subtitle && (jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'user-field-editor__body__subtitle', variant: 'body_normal', color: 'secondary' }, { children: subtitle }))), jsxRuntime.jsx(UserProfileForm.UserProfileForm, { filterFields: fields, onEditProfileSubmit: onSubmit, formClassName: 'user-field-editor__body__form', fieldsContainerStyle: { padding: 0 }, options: {
|
|
62
|
+
buttonsAsFooter: false,
|
|
63
|
+
hideCancelButton: true,
|
|
64
|
+
submitButtonProps: {
|
|
65
|
+
buttonPadding: 'large',
|
|
66
|
+
startSlot: undefined,
|
|
67
|
+
typographyProps: { variant: 'button_primary' },
|
|
68
|
+
},
|
|
69
|
+
submitText,
|
|
70
|
+
} })] })), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { asFooter: true })] }));
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
exports.UserFieldEditorView = UserFieldEditorView;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, MouseEventHandler } from 'react';
|
|
2
|
+
import { UpdateUserWithModalFields, UpdateUserWithModalOptions, UserDataFormValues } from '../../utils/hooks/';
|
|
3
|
+
export type UserFieldEditorViewProps = UpdateUserWithModalOptions & {
|
|
4
|
+
fields: UpdateUserWithModalFields;
|
|
5
|
+
onClickClose?: MouseEventHandler<HTMLButtonElement>;
|
|
6
|
+
onDone?: () => void;
|
|
7
|
+
onSubmit: (formValues: UserDataFormValues) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const UserFieldEditorView: FC<UserFieldEditorViewProps>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { Typography } from '../../components/Typography/Typography.js';
|
|
4
|
+
import '@dynamic-labs/sdk-api';
|
|
5
|
+
import '../../shared/logger.js';
|
|
6
|
+
import '@dynamic-labs/iconic';
|
|
7
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
8
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
9
|
+
import { ReactComponent as SvgClose } from '../../shared/assets/close.js';
|
|
10
|
+
import '@dynamic-labs/wallet-book';
|
|
11
|
+
import '@dynamic-labs/utils';
|
|
12
|
+
import '../../utils/constants/colors.js';
|
|
13
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
14
|
+
import 'ethers';
|
|
15
|
+
import '../../shared/consts/index.js';
|
|
16
|
+
import '../../context/DynamicContext/DynamicContext.js';
|
|
17
|
+
import '@dynamic-labs/multi-wallet';
|
|
18
|
+
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
19
|
+
import '../../context/ThemeContext/ThemeContext.js';
|
|
20
|
+
import { Icon } from '../../components/Icon/Icon.js';
|
|
21
|
+
import 'react-dom';
|
|
22
|
+
import 'react-focus-lock';
|
|
23
|
+
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
24
|
+
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
25
|
+
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
26
|
+
import '../../config/ApiEndpoint.js';
|
|
27
|
+
import '@dynamic-labs/rpc-providers';
|
|
28
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
29
|
+
import '../../context/ErrorContext/ErrorContext.js';
|
|
30
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
31
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
32
|
+
import { ModalHeader } from '../../components/ModalHeader/ModalHeader.js';
|
|
33
|
+
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
34
|
+
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
35
|
+
import '../../components/Alert/Alert.js';
|
|
36
|
+
import { UserProfileForm } from '../../components/UserProfileForm/UserProfileForm.js';
|
|
37
|
+
import { useAssignDefaultValues } from './useAssignDefaultValues/useAssignDefaultValues.js';
|
|
38
|
+
import { UserFieldsToIcon } from './UserFieldsToIcon/UserFieldsToIcon.js';
|
|
39
|
+
import '../../context/MockContext/MockContext.js';
|
|
40
|
+
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
41
|
+
import '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
42
|
+
import '@dynamic-labs/types';
|
|
43
|
+
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
44
|
+
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
45
|
+
import 'yup';
|
|
46
|
+
import '../CollectUserDataView/fieldsConfig.js';
|
|
47
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
48
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
49
|
+
import 'formik';
|
|
50
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
51
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
52
|
+
|
|
53
|
+
const UserFieldEditorView = ({ onClickClose, onSubmit, fields, submitText, subtitle, title, }) => {
|
|
54
|
+
// Treat undefined props
|
|
55
|
+
({ submitText, subtitle, title } = useAssignDefaultValues({ submitText, subtitle, title }, fields));
|
|
56
|
+
const closeButton = onClickClose && (jsx(IconButton, Object.assign({ type: 'button', onClick: onClickClose, "data-testid": 'close-button' }, { children: jsx(SvgClose, {}) })));
|
|
57
|
+
return (jsxs(Fragment, { children: [jsx(ModalHeader, Object.assign({ alignContent: 'bottom', trailing: closeButton }, { children: jsxs("div", Object.assign({ className: 'user-field-editor__header' }, { children: [jsx("div", Object.assign({ className: 'user-field-editor__header__icon' }, { children: jsx(Icon, Object.assign({ color: 'brand-primary', size: 'large' }, { children: jsx(UserFieldsToIcon, { fields: fields }) })) })), title && (jsx(Typography, Object.assign({ variant: 'title', color: 'primary' }, { children: title })))] })) })), jsxs("div", Object.assign({ className: 'user-field-editor__body' }, { children: [subtitle && (jsx(Typography, Object.assign({ className: 'user-field-editor__body__subtitle', variant: 'body_normal', color: 'secondary' }, { children: subtitle }))), jsx(UserProfileForm, { filterFields: fields, onEditProfileSubmit: onSubmit, formClassName: 'user-field-editor__body__form', fieldsContainerStyle: { padding: 0 }, options: {
|
|
58
|
+
buttonsAsFooter: false,
|
|
59
|
+
hideCancelButton: true,
|
|
60
|
+
submitButtonProps: {
|
|
61
|
+
buttonPadding: 'large',
|
|
62
|
+
startSlot: undefined,
|
|
63
|
+
typographyProps: { variant: 'button_primary' },
|
|
64
|
+
},
|
|
65
|
+
submitText,
|
|
66
|
+
} })] })), jsx(PoweredByDynamic, { asFooter: true })] }));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { UserFieldEditorView };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
require('@dynamic-labs/sdk-api');
|
|
7
|
+
require('../../../shared/logger.cjs');
|
|
8
|
+
require('@dynamic-labs/iconic');
|
|
9
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
10
|
+
require('../../../context/ViewContext/ViewContext.cjs');
|
|
11
|
+
require('react');
|
|
12
|
+
var at = require('../../../shared/assets/at.cjs');
|
|
13
|
+
var mail = require('../../../shared/assets/mail.cjs');
|
|
14
|
+
var phone = require('../../../shared/assets/phone.cjs');
|
|
15
|
+
var sizeLabels = require('../../../shared/assets/size-labels.cjs');
|
|
16
|
+
var user = require('../../../shared/assets/user.cjs');
|
|
17
|
+
var userCard = require('../../../shared/assets/user-card.cjs');
|
|
18
|
+
var workSuitcase = require('../../../shared/assets/work-suitcase.cjs');
|
|
19
|
+
var location = require('../../../shared/assets/location.cjs');
|
|
20
|
+
var justifiedText = require('../../../shared/assets/justified-text.cjs');
|
|
21
|
+
require('@dynamic-labs/wallet-book');
|
|
22
|
+
require('@dynamic-labs/utils');
|
|
23
|
+
require('../../../utils/constants/colors.cjs');
|
|
24
|
+
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
25
|
+
require('ethers');
|
|
26
|
+
require('../../../shared/consts/index.cjs');
|
|
27
|
+
|
|
28
|
+
/** Maps fields names to Icon components */
|
|
29
|
+
const mapFieldToIcon = {
|
|
30
|
+
alias: user.ReactComponent,
|
|
31
|
+
country: location.ReactComponent,
|
|
32
|
+
email: mail.ReactComponent,
|
|
33
|
+
firstName: userCard.ReactComponent,
|
|
34
|
+
jobTitle: workSuitcase.ReactComponent,
|
|
35
|
+
lastName: userCard.ReactComponent,
|
|
36
|
+
phoneNumber: phone.ReactComponent,
|
|
37
|
+
tShirtSize: sizeLabels.ReactComponent,
|
|
38
|
+
username: at.ReactComponent,
|
|
39
|
+
};
|
|
40
|
+
const UserFieldsToIcon = ({ fields, className, }) => {
|
|
41
|
+
// When there are more than 1 fields, we use a generic icon
|
|
42
|
+
const Icon = fields.length === 1 ? mapFieldToIcon[fields[0]] : undefined;
|
|
43
|
+
if (!Icon)
|
|
44
|
+
return jsxRuntime.jsx(justifiedText.ReactComponent, { className: className });
|
|
45
|
+
return jsxRuntime.jsx(Icon, { className: className });
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
exports.UserFieldsToIcon = UserFieldsToIcon;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import '@dynamic-labs/sdk-api';
|
|
3
|
+
import '../../../shared/logger.js';
|
|
4
|
+
import '@dynamic-labs/iconic';
|
|
5
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
6
|
+
import '../../../context/ViewContext/ViewContext.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import { ReactComponent as SvgAt } from '../../../shared/assets/at.js';
|
|
9
|
+
import { ReactComponent as SvgMail } from '../../../shared/assets/mail.js';
|
|
10
|
+
import { ReactComponent as SvgPhone } from '../../../shared/assets/phone.js';
|
|
11
|
+
import { ReactComponent as SvgSizeLabels } from '../../../shared/assets/size-labels.js';
|
|
12
|
+
import { ReactComponent as SvgUser } from '../../../shared/assets/user.js';
|
|
13
|
+
import { ReactComponent as SvgUserCard } from '../../../shared/assets/user-card.js';
|
|
14
|
+
import { ReactComponent as SvgWorkSuitcase } from '../../../shared/assets/work-suitcase.js';
|
|
15
|
+
import { ReactComponent as SvgLocation } from '../../../shared/assets/location.js';
|
|
16
|
+
import { ReactComponent as SvgJustifiedText } from '../../../shared/assets/justified-text.js';
|
|
17
|
+
import '@dynamic-labs/wallet-book';
|
|
18
|
+
import '@dynamic-labs/utils';
|
|
19
|
+
import '../../../utils/constants/colors.js';
|
|
20
|
+
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
21
|
+
import 'ethers';
|
|
22
|
+
import '../../../shared/consts/index.js';
|
|
23
|
+
|
|
24
|
+
/** Maps fields names to Icon components */
|
|
25
|
+
const mapFieldToIcon = {
|
|
26
|
+
alias: SvgUser,
|
|
27
|
+
country: SvgLocation,
|
|
28
|
+
email: SvgMail,
|
|
29
|
+
firstName: SvgUserCard,
|
|
30
|
+
jobTitle: SvgWorkSuitcase,
|
|
31
|
+
lastName: SvgUserCard,
|
|
32
|
+
phoneNumber: SvgPhone,
|
|
33
|
+
tShirtSize: SvgSizeLabels,
|
|
34
|
+
username: SvgAt,
|
|
35
|
+
};
|
|
36
|
+
const UserFieldsToIcon = ({ fields, className, }) => {
|
|
37
|
+
// When there are more than 1 fields, we use a generic icon
|
|
38
|
+
const Icon = fields.length === 1 ? mapFieldToIcon[fields[0]] : undefined;
|
|
39
|
+
if (!Icon)
|
|
40
|
+
return jsx(SvgJustifiedText, { className: className });
|
|
41
|
+
return jsx(Icon, { className: className });
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { UserFieldsToIcon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UserFieldsToIcon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UserFieldEditorView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useAssignDefaultValues';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var useInternalDynamicContext = require('../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
6
|
+
var splitCamelCase = require('../../../shared/utils/functions/splitCamelCase/splitCamelCase.cjs');
|
|
7
|
+
|
|
8
|
+
/** This function assigns the default values for the modal's text components */
|
|
9
|
+
const useAssignDefaultValues = (texts, fields) => {
|
|
10
|
+
const { appName, user } = useInternalDynamicContext.useInternalDynamicContext();
|
|
11
|
+
const appDisplay = appName ? `${appName} ` : '';
|
|
12
|
+
// This is fixed
|
|
13
|
+
if (!texts.submitText)
|
|
14
|
+
texts.submitText = 'Update';
|
|
15
|
+
// Others depend on the fields
|
|
16
|
+
if (fields.length !== 1) {
|
|
17
|
+
if (!texts.title)
|
|
18
|
+
texts.title = 'Update your info';
|
|
19
|
+
if (!texts.subtitle)
|
|
20
|
+
texts.subtitle = `Fill out your info for your ${appDisplay}account`;
|
|
21
|
+
return texts;
|
|
22
|
+
}
|
|
23
|
+
const [field] = fields;
|
|
24
|
+
const fieldDisplay = splitCamelCase.splitCamelCase(field).toLowerCase();
|
|
25
|
+
// If the field already has some value, use the word "update"
|
|
26
|
+
const titleAction = (user === null || user === void 0 ? void 0 : user[field]) ? 'Update' : 'Enter';
|
|
27
|
+
if (!texts.title)
|
|
28
|
+
texts.title = `${titleAction} your ${fieldDisplay}`;
|
|
29
|
+
if (!texts.subtitle)
|
|
30
|
+
texts.subtitle = `Add your ${fieldDisplay} to your ${appDisplay}account`;
|
|
31
|
+
return texts;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
exports.useAssignDefaultValues = useAssignDefaultValues;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UpdateUserWithModalFields } from '../../../utils/hooks';
|
|
2
|
+
/** This function assigns the default values for the modal's text components */
|
|
3
|
+
export declare const useAssignDefaultValues: (texts: Record<'title' | 'subtitle' | 'submitText', string | undefined>, fields: UpdateUserWithModalFields) => {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle: string;
|
|
6
|
+
submitText: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useInternalDynamicContext } from '../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
2
|
+
import { splitCamelCase } from '../../../shared/utils/functions/splitCamelCase/splitCamelCase.js';
|
|
3
|
+
|
|
4
|
+
/** This function assigns the default values for the modal's text components */
|
|
5
|
+
const useAssignDefaultValues = (texts, fields) => {
|
|
6
|
+
const { appName, user } = useInternalDynamicContext();
|
|
7
|
+
const appDisplay = appName ? `${appName} ` : '';
|
|
8
|
+
// This is fixed
|
|
9
|
+
if (!texts.submitText)
|
|
10
|
+
texts.submitText = 'Update';
|
|
11
|
+
// Others depend on the fields
|
|
12
|
+
if (fields.length !== 1) {
|
|
13
|
+
if (!texts.title)
|
|
14
|
+
texts.title = 'Update your info';
|
|
15
|
+
if (!texts.subtitle)
|
|
16
|
+
texts.subtitle = `Fill out your info for your ${appDisplay}account`;
|
|
17
|
+
return texts;
|
|
18
|
+
}
|
|
19
|
+
const [field] = fields;
|
|
20
|
+
const fieldDisplay = splitCamelCase(field).toLowerCase();
|
|
21
|
+
// If the field already has some value, use the word "update"
|
|
22
|
+
const titleAction = (user === null || user === void 0 ? void 0 : user[field]) ? 'Update' : 'Enter';
|
|
23
|
+
if (!texts.title)
|
|
24
|
+
texts.title = `${titleAction} your ${fieldDisplay}`;
|
|
25
|
+
if (!texts.subtitle)
|
|
26
|
+
texts.subtitle = `Add your ${fieldDisplay} to your ${appDisplay}account`;
|
|
27
|
+
return texts;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { useAssignDefaultValues };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var walletBook = require('@dynamic-labs/wallet-book');
|
|
9
|
+
var Typography = require('../../components/Typography/Typography.cjs');
|
|
10
|
+
require('@dynamic-labs/sdk-api');
|
|
11
|
+
require('../../shared/logger.cjs');
|
|
12
|
+
require('@dynamic-labs/iconic');
|
|
13
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
14
|
+
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
15
|
+
var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
16
|
+
require('@dynamic-labs/utils');
|
|
17
|
+
require('../../utils/constants/colors.cjs');
|
|
18
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
19
|
+
require('ethers');
|
|
20
|
+
require('../../shared/consts/index.cjs');
|
|
21
|
+
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
22
|
+
require('@dynamic-labs/multi-wallet');
|
|
23
|
+
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
24
|
+
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
25
|
+
require('react-dom');
|
|
26
|
+
require('react-focus-lock');
|
|
27
|
+
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
28
|
+
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
29
|
+
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
30
|
+
require('../../config/ApiEndpoint.cjs');
|
|
31
|
+
require('@dynamic-labs/rpc-providers');
|
|
32
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
33
|
+
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
34
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
35
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
36
|
+
require('../../components/IconButton/IconButton.cjs');
|
|
37
|
+
var Button = require('../../components/Button/Button.cjs');
|
|
38
|
+
require('../../components/Alert/Alert.cjs');
|
|
39
|
+
require('formik');
|
|
40
|
+
require('yup');
|
|
41
|
+
require('../CollectUserDataView/fieldsConfig.cjs');
|
|
42
|
+
require('../../context/MockContext/MockContext.cjs');
|
|
43
|
+
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
44
|
+
require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
45
|
+
require('@dynamic-labs/types');
|
|
46
|
+
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
47
|
+
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
48
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
49
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
50
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
51
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
52
|
+
|
|
53
|
+
const WalletCannotBeTransferredView = () => {
|
|
54
|
+
const [walletAddress, setWalletAddress] = React.useState(undefined);
|
|
55
|
+
const { goToInitialView } = ViewContext.useViewContext();
|
|
56
|
+
const { selectedWalletConnector: walletConnector } = useInternalDynamicContext.useInternalDynamicContext();
|
|
57
|
+
React.useEffect(() => {
|
|
58
|
+
const _fetchPublicAddress = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
const address = yield (walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.fetchPublicAddress());
|
|
60
|
+
setWalletAddress(address);
|
|
61
|
+
});
|
|
62
|
+
_fetchPublicAddress();
|
|
63
|
+
}, [walletConnector]);
|
|
64
|
+
const _shortenWalletAddress = shortenWalletAddress.shortenWalletAddress(walletAddress);
|
|
65
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-cannot-be-transferred-view__container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__title', as: 'h6', variant: 'title', color: 'primary', weight: 'medium' }, { children: "Cannot link this wallet to a new account" })), jsxRuntime.jsx("div", Object.assign({ className: 'wallet-cannot-be-transferred-view__icon' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.name, width: 64, height: 64 }) })), jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__shorten-wallet-address', variant: 'body_normal', weight: 'regular', color: 'primary' }, { children: _shortenWalletAddress })), jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__copy', variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "This wallet is the only wallet in your other account. You cannot transfer it, since then you will lose access to that account." })), jsxRuntime.jsx(Button.Button, Object.assign({ buttonClassName: 'wallet-cannot-be-transferred-view__transfer-alt-wallet-button', buttonVariant: 'primary', buttonRounded: 'default', expanded: true, buttonPadding: 'large', onClick: goToInitialView, dataTestId: 'wallet-cannot-be-transferred-view-transfer-alt-wallet' }, { children: "Transfer a different wallet" })), jsxRuntime.jsx(Button.Button, Object.assign({ dataTestId: 'wallet-cannot-be-transferred-view-cancel', buttonPadding: 'small', buttonClassName: 'wallet-cannot-be-transferred-view__cancel', buttonRounded: 'small', onClick: goToInitialView }, { children: "Cancel" }))] })));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.WalletCannotBeTransferredView = WalletCannotBeTransferredView;
|