@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
|
@@ -37,13 +37,17 @@ require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
|
37
37
|
var useFetchChain = require('../../../../widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs');
|
|
38
38
|
require('../../../IconButton/IconButton.cjs');
|
|
39
39
|
require('../../../Alert/Alert.cjs');
|
|
40
|
+
require('formik');
|
|
41
|
+
require('yup');
|
|
42
|
+
require('../../../../views/CollectUserDataView/fieldsConfig.cjs');
|
|
40
43
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
41
44
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
42
|
-
require('../../../../
|
|
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');
|
|
43
49
|
require('../../../Popper/Popper/Popper.cjs');
|
|
44
50
|
require('../../../Popper/PopperContext/PopperContext.cjs');
|
|
45
|
-
require('formik');
|
|
46
|
-
require('yup');
|
|
47
51
|
require('../../../InlineWidget/InlineWidget.cjs');
|
|
48
52
|
require('../../../MenuList/Dropdown/Dropdown.cjs');
|
|
49
53
|
var capitalize = require('../../../../shared/utils/functions/capitalize/capitalize.cjs');
|
|
@@ -33,13 +33,17 @@ import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
|
33
33
|
import { useFetchChain } from '../../../../widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js';
|
|
34
34
|
import '../../../IconButton/IconButton.js';
|
|
35
35
|
import '../../../Alert/Alert.js';
|
|
36
|
+
import 'formik';
|
|
37
|
+
import 'yup';
|
|
38
|
+
import '../../../../views/CollectUserDataView/fieldsConfig.js';
|
|
36
39
|
import '../../../../context/MockContext/MockContext.js';
|
|
37
40
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
38
|
-
import '../../../../
|
|
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';
|
|
39
45
|
import '../../../Popper/Popper/Popper.js';
|
|
40
46
|
import '../../../Popper/PopperContext/PopperContext.js';
|
|
41
|
-
import 'formik';
|
|
42
|
-
import 'yup';
|
|
43
47
|
import '../../../InlineWidget/InlineWidget.js';
|
|
44
48
|
import '../../../MenuList/Dropdown/Dropdown.js';
|
|
45
49
|
import { capitalize } from '../../../../shared/utils/functions/capitalize/capitalize.js';
|
|
@@ -10,6 +10,7 @@ require('@dynamic-labs/sdk-api');
|
|
|
10
10
|
require('../../shared/logger.cjs');
|
|
11
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
12
12
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
13
|
+
var close = require('../../shared/assets/close.cjs');
|
|
13
14
|
var chevronLeft = require('../../shared/assets/chevron-left.cjs');
|
|
14
15
|
var check = require('../../shared/assets/check.cjs');
|
|
15
16
|
var pencilAltIcon = require('../../shared/assets/pencil-alt-icon.cjs');
|
|
@@ -41,22 +42,27 @@ var IconWithStatus = require('../IconWithStatus/IconWithStatus.cjs');
|
|
|
41
42
|
var PoweredByDynamic = require('../PoweredByDynamic/PoweredByDynamic.cjs');
|
|
42
43
|
var IconWithSpinner = require('../IconWithSpinner/IconWithSpinner.cjs');
|
|
43
44
|
require('../Alert/Alert.cjs');
|
|
45
|
+
require('formik');
|
|
46
|
+
require('yup');
|
|
47
|
+
require('../../views/CollectUserDataView/fieldsConfig.cjs');
|
|
44
48
|
require('../../context/MockContext/MockContext.cjs');
|
|
45
49
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
46
|
-
require('../../
|
|
50
|
+
require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
51
|
+
require('@dynamic-labs/types');
|
|
52
|
+
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
53
|
+
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
47
54
|
var PinField = require('../PinField/PinField.cjs');
|
|
48
55
|
var ModalHeaderBanner = require('../ModalHeaderBanner/ModalHeaderBanner.cjs');
|
|
49
56
|
var shortenEmail = require('../../shared/utils/functions/shortenEmail/shortenEmail.cjs');
|
|
50
57
|
require('../Popper/Popper/Popper.cjs');
|
|
51
58
|
require('../Popper/PopperContext/PopperContext.cjs');
|
|
52
|
-
require('formik');
|
|
53
|
-
require('yup');
|
|
54
59
|
require('../InlineWidget/InlineWidget.cjs');
|
|
55
60
|
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
56
61
|
|
|
57
|
-
const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error, onPinChange, displayPoweredByDynamic = false, }) => {
|
|
58
|
-
const backButton = (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ type: 'button', onClick: onClickBack, "data-testid": 'back-button' }, { children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) })));
|
|
59
|
-
|
|
62
|
+
const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error, onPinChange, onClickClose, displayPoweredByDynamic = false, successBannerText, }) => {
|
|
63
|
+
const backButton = onClickBack && (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ type: 'button', onClick: onClickBack, "data-testid": 'back-button' }, { children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) })));
|
|
64
|
+
const closeButton = (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ onClick: onClickClose, type: 'button', "data-testid": 'close-button' }, { children: jsxRuntime.jsx(close.ReactComponent, {}) })));
|
|
65
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view' }, { children: [successBannerText && (jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'success', message: successBannerText, disableTruncate: true })), jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'error', message: error === null || error === void 0 ? void 0 : error.message }), jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ alignContent: 'bottom', leading: onClickBack && backButton, trailing: onClickClose && closeButton }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view__status-header' }, { children: [isValid && (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: iconic.SignInWithEmailIcon, iconSize: 50, InnerIcon: check.ReactComponent })), !isValid && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: iconic.SignInWithEmailIcon, iconSize: 80, isSpinning: isLoading }))] })) })), jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title' }, { children: isValid ? 'Verification code confirmed' : 'Confirm verification code' })), jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view__body' }, { children: [isValid && (jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Hang tight while we get things ready for you" }))), !isValid && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view__email-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: shortenEmail.shortenEmail(email) })), onClickEditEmail && (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ onClick: onClickEditEmail, "data-testid": 'otp-verification-view__edit-button' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'text-tertiary' }, { children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) })) })))] }))] }))] })), jsxRuntime.jsx(PinField.PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), jsxRuntime.jsx("div", Object.assign({ className: 'otp-verification-view__footer' }, { children: displayPoweredByDynamic && jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, {}) }))] })));
|
|
60
66
|
};
|
|
61
67
|
|
|
62
68
|
exports.OTPVerificationView = OTPVerificationView;
|
|
@@ -6,9 +6,11 @@ type OtpVerificationLayoutProps = {
|
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
isValid: boolean;
|
|
8
8
|
onClickBack?: MouseEventHandler<HTMLButtonElement>;
|
|
9
|
+
onClickClose?: MouseEventHandler<HTMLButtonElement>;
|
|
9
10
|
onClickEditEmail?: MouseEventHandler<HTMLButtonElement>;
|
|
10
11
|
onPinChange?: (value: string) => void;
|
|
11
12
|
onPinComplete: (value: string) => void;
|
|
13
|
+
successBannerText?: string;
|
|
12
14
|
};
|
|
13
15
|
export declare const OTPVerificationView: FC<OtpVerificationLayoutProps>;
|
|
14
16
|
export {};
|
|
@@ -6,6 +6,7 @@ import '@dynamic-labs/sdk-api';
|
|
|
6
6
|
import '../../shared/logger.js';
|
|
7
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
8
8
|
import '../../context/ViewContext/ViewContext.js';
|
|
9
|
+
import { ReactComponent as SvgClose } from '../../shared/assets/close.js';
|
|
9
10
|
import { ReactComponent as SvgChevronLeft } from '../../shared/assets/chevron-left.js';
|
|
10
11
|
import { ReactComponent as SvgCheck } from '../../shared/assets/check.js';
|
|
11
12
|
import { ReactComponent as SvgPencilAltIcon } from '../../shared/assets/pencil-alt-icon.js';
|
|
@@ -37,22 +38,27 @@ import { IconWithStatus } from '../IconWithStatus/IconWithStatus.js';
|
|
|
37
38
|
import { PoweredByDynamic } from '../PoweredByDynamic/PoweredByDynamic.js';
|
|
38
39
|
import { IconWithSpinner } from '../IconWithSpinner/IconWithSpinner.js';
|
|
39
40
|
import '../Alert/Alert.js';
|
|
41
|
+
import 'formik';
|
|
42
|
+
import 'yup';
|
|
43
|
+
import '../../views/CollectUserDataView/fieldsConfig.js';
|
|
40
44
|
import '../../context/MockContext/MockContext.js';
|
|
41
45
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
42
|
-
import '../../
|
|
46
|
+
import '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
47
|
+
import '@dynamic-labs/types';
|
|
48
|
+
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
49
|
+
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
43
50
|
import { PinField } from '../PinField/PinField.js';
|
|
44
51
|
import { ModalHeaderBanner } from '../ModalHeaderBanner/ModalHeaderBanner.js';
|
|
45
52
|
import { shortenEmail } from '../../shared/utils/functions/shortenEmail/shortenEmail.js';
|
|
46
53
|
import '../Popper/Popper/Popper.js';
|
|
47
54
|
import '../Popper/PopperContext/PopperContext.js';
|
|
48
|
-
import 'formik';
|
|
49
|
-
import 'yup';
|
|
50
55
|
import '../InlineWidget/InlineWidget.js';
|
|
51
56
|
import '../MenuList/Dropdown/Dropdown.js';
|
|
52
57
|
|
|
53
|
-
const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error, onPinChange, displayPoweredByDynamic = false, }) => {
|
|
54
|
-
const backButton = (jsx(IconButton, Object.assign({ type: 'button', onClick: onClickBack, "data-testid": 'back-button' }, { children: jsx(SvgChevronLeft, {}) })));
|
|
55
|
-
|
|
58
|
+
const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error, onPinChange, onClickClose, displayPoweredByDynamic = false, successBannerText, }) => {
|
|
59
|
+
const backButton = onClickBack && (jsx(IconButton, Object.assign({ type: 'button', onClick: onClickBack, "data-testid": 'back-button' }, { children: jsx(SvgChevronLeft, {}) })));
|
|
60
|
+
const closeButton = (jsx(IconButton, Object.assign({ onClick: onClickClose, type: 'button', "data-testid": 'close-button' }, { children: jsx(SvgClose, {}) })));
|
|
61
|
+
return (jsxs("div", Object.assign({ className: 'otp-verification-view' }, { children: [successBannerText && (jsx(ModalHeaderBanner, { type: 'success', message: successBannerText, disableTruncate: true })), jsx(ModalHeaderBanner, { type: 'error', message: error === null || error === void 0 ? void 0 : error.message }), jsx(ModalHeader, Object.assign({ alignContent: 'bottom', leading: onClickBack && backButton, trailing: onClickClose && closeButton }, { children: jsxs("div", Object.assign({ className: 'otp-verification-view__status-header' }, { children: [isValid && (jsx(IconWithStatus, { Icon: SignInWithEmailIcon, iconSize: 50, InnerIcon: SvgCheck })), !isValid && (jsx(IconWithSpinner, { Icon: SignInWithEmailIcon, iconSize: 80, isSpinning: isLoading }))] })) })), jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title' }, { children: isValid ? 'Verification code confirmed' : 'Confirm verification code' })), jsxs("div", Object.assign({ className: 'otp-verification-view__body' }, { children: [isValid && (jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Hang tight while we get things ready for you" }))), !isValid && (jsxs(Fragment, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsxs("div", Object.assign({ className: 'otp-verification-view__email-container' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: shortenEmail(email) })), onClickEditEmail && (jsx(IconButton, Object.assign({ onClick: onClickEditEmail, "data-testid": 'otp-verification-view__edit-button' }, { children: jsx(Icon, Object.assign({ color: 'text-tertiary' }, { children: jsx(SvgPencilAltIcon, {}) })) })))] }))] }))] })), jsx(PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), jsx("div", Object.assign({ className: 'otp-verification-view__footer' }, { children: displayPoweredByDynamic && jsx(PoweredByDynamic, {}) }))] })));
|
|
56
62
|
};
|
|
57
63
|
|
|
58
64
|
export { OTPVerificationView };
|
|
@@ -41,9 +41,13 @@ require('formik');
|
|
|
41
41
|
require('yup');
|
|
42
42
|
require('../InlineWidget/InlineWidget.cjs');
|
|
43
43
|
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
44
|
+
require('../../views/CollectUserDataView/fieldsConfig.cjs');
|
|
44
45
|
require('../../context/MockContext/MockContext.cjs');
|
|
45
46
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
46
|
-
require('../../
|
|
47
|
+
require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
48
|
+
require('@dynamic-labs/types');
|
|
49
|
+
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
50
|
+
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
47
51
|
var OverlayCard_context = require('./OverlayCard.context.cjs');
|
|
48
52
|
|
|
49
53
|
const OverlayCard = ({ isOpen, children, onClickOverlay, style, className, }) => {
|
|
@@ -37,9 +37,13 @@ import 'formik';
|
|
|
37
37
|
import 'yup';
|
|
38
38
|
import '../InlineWidget/InlineWidget.js';
|
|
39
39
|
import '../MenuList/Dropdown/Dropdown.js';
|
|
40
|
+
import '../../views/CollectUserDataView/fieldsConfig.js';
|
|
40
41
|
import '../../context/MockContext/MockContext.js';
|
|
41
42
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
42
|
-
import '../../
|
|
43
|
+
import '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
44
|
+
import '@dynamic-labs/types';
|
|
45
|
+
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
46
|
+
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
43
47
|
import { overlayCardContext } from './OverlayCard.context.js';
|
|
44
48
|
|
|
45
49
|
const OverlayCard = ({ isOpen, children, onClickOverlay, style, className, }) => {
|
|
@@ -40,9 +40,13 @@ require('formik');
|
|
|
40
40
|
require('yup');
|
|
41
41
|
require('../InlineWidget/InlineWidget.cjs');
|
|
42
42
|
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
43
|
+
require('../../views/CollectUserDataView/fieldsConfig.cjs');
|
|
43
44
|
require('../../context/MockContext/MockContext.cjs');
|
|
44
45
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
45
|
-
require('../../
|
|
46
|
+
require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
47
|
+
require('@dynamic-labs/types');
|
|
48
|
+
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
49
|
+
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
46
50
|
|
|
47
51
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
48
52
|
|
|
@@ -36,9 +36,13 @@ import 'formik';
|
|
|
36
36
|
import 'yup';
|
|
37
37
|
import '../InlineWidget/InlineWidget.js';
|
|
38
38
|
import '../MenuList/Dropdown/Dropdown.js';
|
|
39
|
+
import '../../views/CollectUserDataView/fieldsConfig.js';
|
|
39
40
|
import '../../context/MockContext/MockContext.js';
|
|
40
41
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
41
|
-
import '../../
|
|
42
|
+
import '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
43
|
+
import '@dynamic-labs/types';
|
|
44
|
+
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
45
|
+
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
42
46
|
|
|
43
47
|
const ModalComponent = ({ children, handleClose, withBackdrop = true, zIndex, whiteList, }) => {
|
|
44
48
|
const { view } = useViewContext();
|
|
@@ -8,19 +8,23 @@ var Typography = require('../Typography/Typography.cjs');
|
|
|
8
8
|
require('react');
|
|
9
9
|
var dynamicLogo = require('../../assets/dynamic-logo.cjs');
|
|
10
10
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
11
|
+
var DynamicWidgetFooter = require('../../widgets/DynamicWidget/components/DynamicWidgetFooter/DynamicWidgetFooter.cjs');
|
|
11
12
|
|
|
12
13
|
const URL = 'https://dynamic.xyz';
|
|
13
14
|
const alignClassNames = {
|
|
14
15
|
center: 'powered-by-dynamic--center',
|
|
15
16
|
right: 'powered-by-dynamic--right',
|
|
16
17
|
};
|
|
17
|
-
const PoweredByDynamic = ({ align = 'center', classNameLogo, classNameRoot, classNameText, }) => {
|
|
18
|
+
const PoweredByDynamic = ({ align = 'center', classNameLogo, classNameRoot, classNameText, asFooter, }) => {
|
|
18
19
|
var _a;
|
|
19
20
|
const { projectSettings } = useInternalDynamicContext.useInternalDynamicContext();
|
|
20
21
|
if (((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.displayDynamicMessaging) === false) {
|
|
21
22
|
return null;
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
+
const content = (jsxRuntime.jsxs("a", Object.assign({ target: '_blank', href: URL, className: classNames.classNames('powered-by-dynamic', alignClassNames[align], classNameRoot), rel: 'noreferrer' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'span', color: 'secondary', weight: 'regular', variant: 'body_mini', className: classNames.classNames('powered-by-dynamic__text', classNameText) }, { children: "Powered by" })), jsxRuntime.jsx(dynamicLogo.ReactComponent, { className: classNames.classNames('powered-by-dynamic__logo', classNameLogo) })] })));
|
|
25
|
+
if (asFooter)
|
|
26
|
+
return jsxRuntime.jsx(DynamicWidgetFooter.DynamicWidgetFooter, { children: content });
|
|
27
|
+
return content;
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
exports.PoweredByDynamic = PoweredByDynamic;
|
|
@@ -4,19 +4,23 @@ import { Typography } from '../Typography/Typography.js';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import { ReactComponent as SvgDynamicLogo } from '../../assets/dynamic-logo.js';
|
|
6
6
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
7
|
+
import { DynamicWidgetFooter } from '../../widgets/DynamicWidget/components/DynamicWidgetFooter/DynamicWidgetFooter.js';
|
|
7
8
|
|
|
8
9
|
const URL = 'https://dynamic.xyz';
|
|
9
10
|
const alignClassNames = {
|
|
10
11
|
center: 'powered-by-dynamic--center',
|
|
11
12
|
right: 'powered-by-dynamic--right',
|
|
12
13
|
};
|
|
13
|
-
const PoweredByDynamic = ({ align = 'center', classNameLogo, classNameRoot, classNameText, }) => {
|
|
14
|
+
const PoweredByDynamic = ({ align = 'center', classNameLogo, classNameRoot, classNameText, asFooter, }) => {
|
|
14
15
|
var _a;
|
|
15
16
|
const { projectSettings } = useInternalDynamicContext();
|
|
16
17
|
if (((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.displayDynamicMessaging) === false) {
|
|
17
18
|
return null;
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
const content = (jsxs("a", Object.assign({ target: '_blank', href: URL, className: classNames('powered-by-dynamic', alignClassNames[align], classNameRoot), rel: 'noreferrer' }, { children: [jsx(Typography, Object.assign({ as: 'span', color: 'secondary', weight: 'regular', variant: 'body_mini', className: classNames('powered-by-dynamic__text', classNameText) }, { children: "Powered by" })), jsx(SvgDynamicLogo, { className: classNames('powered-by-dynamic__logo', classNameLogo) })] })));
|
|
21
|
+
if (asFooter)
|
|
22
|
+
return jsx(DynamicWidgetFooter, { children: content });
|
|
23
|
+
return content;
|
|
20
24
|
};
|
|
21
25
|
|
|
22
26
|
export { PoweredByDynamic };
|
|
@@ -44,9 +44,13 @@ require('formik');
|
|
|
44
44
|
require('yup');
|
|
45
45
|
require('../InlineWidget/InlineWidget.cjs');
|
|
46
46
|
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
47
|
+
require('../../views/CollectUserDataView/fieldsConfig.cjs');
|
|
47
48
|
require('../../context/MockContext/MockContext.cjs');
|
|
48
49
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
49
|
-
require('../../
|
|
50
|
+
require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
51
|
+
require('@dynamic-labs/types');
|
|
52
|
+
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
53
|
+
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
50
54
|
|
|
51
55
|
const Tooltip = ({ children, content, className, as: Tag = 'span', }) => {
|
|
52
56
|
const portalRoot = useElementById.useElementById('dynamic-tooltips');
|
|
@@ -40,9 +40,13 @@ import 'formik';
|
|
|
40
40
|
import 'yup';
|
|
41
41
|
import '../InlineWidget/InlineWidget.js';
|
|
42
42
|
import '../MenuList/Dropdown/Dropdown.js';
|
|
43
|
+
import '../../views/CollectUserDataView/fieldsConfig.js';
|
|
43
44
|
import '../../context/MockContext/MockContext.js';
|
|
44
45
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
45
|
-
import '../../
|
|
46
|
+
import '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
47
|
+
import '@dynamic-labs/types';
|
|
48
|
+
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
49
|
+
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
46
50
|
|
|
47
51
|
const Tooltip = ({ children, content, className, as: Tag = 'span', }) => {
|
|
48
52
|
const portalRoot = useElementById('dynamic-tooltips');
|
package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs
CHANGED
|
@@ -36,7 +36,9 @@ var PoweredByDynamic = require('../PoweredByDynamic/PoweredByDynamic.cjs');
|
|
|
36
36
|
const TransactionConfirmationPageLayout = ({ onClickClose, isLoading, onClickBack, title, error, appOrigin, appLogoUrl, appName, onClickSend, disableSendButton, displayPoweredByDynamicFooter = false, warningMessage, children, }) => {
|
|
37
37
|
const closeButton = onClickClose && (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ type: 'button', onClick: onClickClose, "data-testid": 'close', disabled: isLoading }, { children: jsxRuntime.jsx(close.ReactComponent, {}) })));
|
|
38
38
|
const backButton = onClickBack && (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ type: 'button', onClick: onClickBack, "data-testid": 'back-button' }, { children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) })));
|
|
39
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ trailing: closeButton, leading: backButton, alignContent: 'bottom' }, { children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: (props) => (jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'brand-primary' }, { children: jsxRuntime.jsx(signCircle.ReactComponent, Object.assign({}, props)) }))), iconSize: 64, isSpinning: true }) })), jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-confirmation__body' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', className: 'transaction-confirmation__title' }, { children: title })), jsxRuntime.jsx(AnimatePresence.AnimatePresence, Object.assign({ animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}) }, { children: error && (jsxRuntime.jsx("div", Object.assign({ className: 'transaction-confirmation__error' }, { children: jsxRuntime.jsx(Alert.Alert, Object.assign({ icon: 'error', variant: 'error' }, { children: error })) }))) })), jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-confirmation__content' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'transaction-confirmation__app-origin-tile' }, { children: jsxRuntime.jsx(AppOriginTile.AppOriginTile, { appLogoUrl: appLogoUrl, appName: appName, appOrigin: appOrigin }) })), jsxRuntime.jsx("div", Object.assign({ className: 'transaction-confirmation__rows' }, { children: children }))] })), jsxRuntime.jsx(AnimatePresence.AnimatePresence, Object.assign({ animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}) }, { children: warningMessage && (jsxRuntime.jsx("div", Object.assign({ className: 'transaction-confirmation__warning' }, { children: jsxRuntime.jsx(Alert.Alert, Object.assign({ icon: 'error', variant: 'warning', contentDataTestId: 'warning_content' }, { children: warningMessage })) }))) })), jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-confirmation__actions' }, { children: [onClickClose && (jsxRuntime.jsx(Button.Button, Object.assign({ buttonVariant: 'secondary', onClick: onClickClose, expanded: true, buttonPadding: 'large', buttonRounded: 'default', disabled: isLoading }, { children: "Cancel" }))), jsxRuntime.jsx(Button.Button, Object.assign({ buttonVariant: 'primary', buttonPadding: 'large', onClick:
|
|
39
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ trailing: closeButton, leading: backButton, alignContent: 'bottom' }, { children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: (props) => (jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'brand-primary' }, { children: jsxRuntime.jsx(signCircle.ReactComponent, Object.assign({}, props)) }))), iconSize: 64, isSpinning: true }) })), jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-confirmation__body' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', className: 'transaction-confirmation__title' }, { children: title })), jsxRuntime.jsx(AnimatePresence.AnimatePresence, Object.assign({ animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}) }, { children: error && (jsxRuntime.jsx("div", Object.assign({ className: 'transaction-confirmation__error' }, { children: jsxRuntime.jsx(Alert.Alert, Object.assign({ icon: 'error', variant: 'error' }, { children: error })) }))) })), jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-confirmation__content' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'transaction-confirmation__app-origin-tile' }, { children: jsxRuntime.jsx(AppOriginTile.AppOriginTile, { appLogoUrl: appLogoUrl, appName: appName, appOrigin: appOrigin }) })), jsxRuntime.jsx("div", Object.assign({ className: 'transaction-confirmation__rows' }, { children: children }))] })), jsxRuntime.jsx(AnimatePresence.AnimatePresence, Object.assign({ animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}) }, { children: warningMessage && (jsxRuntime.jsx("div", Object.assign({ className: 'transaction-confirmation__warning' }, { children: jsxRuntime.jsx(Alert.Alert, Object.assign({ icon: 'error', variant: 'warning', contentDataTestId: 'warning_content' }, { children: warningMessage })) }))) })), jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-confirmation__actions' }, { children: [onClickClose && (jsxRuntime.jsx(Button.Button, Object.assign({ buttonVariant: 'secondary', onClick: onClickClose, expanded: true, buttonPadding: 'large', buttonRounded: 'default', disabled: isLoading }, { children: "Cancel" }))), jsxRuntime.jsx(Button.Button, Object.assign({ buttonVariant: 'primary', buttonPadding: 'large', onClick: (event) => {
|
|
40
|
+
onClickSend === null || onClickSend === void 0 ? void 0 : onClickSend(event);
|
|
41
|
+
}, expanded: true, buttonRounded: 'default', loading: isLoading, disabled: disableSendButton }, { children: "Send" }))] })), displayPoweredByDynamicFooter && (jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'transaction-confirmation__footer' }))] }))] }));
|
|
40
42
|
};
|
|
41
43
|
|
|
42
44
|
exports.TransactionConfirmationPageLayout = TransactionConfirmationPageLayout;
|
package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js
CHANGED
|
@@ -32,7 +32,9 @@ import { PoweredByDynamic } from '../PoweredByDynamic/PoweredByDynamic.js';
|
|
|
32
32
|
const TransactionConfirmationPageLayout = ({ onClickClose, isLoading, onClickBack, title, error, appOrigin, appLogoUrl, appName, onClickSend, disableSendButton, displayPoweredByDynamicFooter = false, warningMessage, children, }) => {
|
|
33
33
|
const closeButton = onClickClose && (jsx(IconButton, Object.assign({ type: 'button', onClick: onClickClose, "data-testid": 'close', disabled: isLoading }, { children: jsx(SvgClose, {}) })));
|
|
34
34
|
const backButton = onClickBack && (jsx(IconButton, Object.assign({ type: 'button', onClick: onClickBack, "data-testid": 'back-button' }, { children: jsx(SvgChevronLeft, {}) })));
|
|
35
|
-
return (jsxs(Fragment, { children: [jsx(ModalHeader, Object.assign({ trailing: closeButton, leading: backButton, alignContent: 'bottom' }, { children: jsx(IconWithSpinner, { Icon: (props) => (jsx(Icon, Object.assign({ color: 'brand-primary' }, { children: jsx(SvgSignCircle, Object.assign({}, props)) }))), iconSize: 64, isSpinning: true }) })), jsxs("div", Object.assign({ className: 'transaction-confirmation__body' }, { children: [jsx(Typography, Object.assign({ variant: 'title', color: 'primary', className: 'transaction-confirmation__title' }, { children: title })), jsx(AnimatePresence, Object.assign({ animationComponent: jsx(VerticalDrawerTransition, {}) }, { children: error && (jsx("div", Object.assign({ className: 'transaction-confirmation__error' }, { children: jsx(Alert, Object.assign({ icon: 'error', variant: 'error' }, { children: error })) }))) })), jsxs("div", Object.assign({ className: 'transaction-confirmation__content' }, { children: [jsx("div", Object.assign({ className: 'transaction-confirmation__app-origin-tile' }, { children: jsx(AppOriginTile, { appLogoUrl: appLogoUrl, appName: appName, appOrigin: appOrigin }) })), jsx("div", Object.assign({ className: 'transaction-confirmation__rows' }, { children: children }))] })), jsx(AnimatePresence, Object.assign({ animationComponent: jsx(VerticalDrawerTransition, {}) }, { children: warningMessage && (jsx("div", Object.assign({ className: 'transaction-confirmation__warning' }, { children: jsx(Alert, Object.assign({ icon: 'error', variant: 'warning', contentDataTestId: 'warning_content' }, { children: warningMessage })) }))) })), jsxs("div", Object.assign({ className: 'transaction-confirmation__actions' }, { children: [onClickClose && (jsx(Button, Object.assign({ buttonVariant: 'secondary', onClick: onClickClose, expanded: true, buttonPadding: 'large', buttonRounded: 'default', disabled: isLoading }, { children: "Cancel" }))), jsx(Button, Object.assign({ buttonVariant: 'primary', buttonPadding: 'large', onClick:
|
|
35
|
+
return (jsxs(Fragment, { children: [jsx(ModalHeader, Object.assign({ trailing: closeButton, leading: backButton, alignContent: 'bottom' }, { children: jsx(IconWithSpinner, { Icon: (props) => (jsx(Icon, Object.assign({ color: 'brand-primary' }, { children: jsx(SvgSignCircle, Object.assign({}, props)) }))), iconSize: 64, isSpinning: true }) })), jsxs("div", Object.assign({ className: 'transaction-confirmation__body' }, { children: [jsx(Typography, Object.assign({ variant: 'title', color: 'primary', className: 'transaction-confirmation__title' }, { children: title })), jsx(AnimatePresence, Object.assign({ animationComponent: jsx(VerticalDrawerTransition, {}) }, { children: error && (jsx("div", Object.assign({ className: 'transaction-confirmation__error' }, { children: jsx(Alert, Object.assign({ icon: 'error', variant: 'error' }, { children: error })) }))) })), jsxs("div", Object.assign({ className: 'transaction-confirmation__content' }, { children: [jsx("div", Object.assign({ className: 'transaction-confirmation__app-origin-tile' }, { children: jsx(AppOriginTile, { appLogoUrl: appLogoUrl, appName: appName, appOrigin: appOrigin }) })), jsx("div", Object.assign({ className: 'transaction-confirmation__rows' }, { children: children }))] })), jsx(AnimatePresence, Object.assign({ animationComponent: jsx(VerticalDrawerTransition, {}) }, { children: warningMessage && (jsx("div", Object.assign({ className: 'transaction-confirmation__warning' }, { children: jsx(Alert, Object.assign({ icon: 'error', variant: 'warning', contentDataTestId: 'warning_content' }, { children: warningMessage })) }))) })), jsxs("div", Object.assign({ className: 'transaction-confirmation__actions' }, { children: [onClickClose && (jsx(Button, Object.assign({ buttonVariant: 'secondary', onClick: onClickClose, expanded: true, buttonPadding: 'large', buttonRounded: 'default', disabled: isLoading }, { children: "Cancel" }))), jsx(Button, Object.assign({ buttonVariant: 'primary', buttonPadding: 'large', onClick: (event) => {
|
|
36
|
+
onClickSend === null || onClickSend === void 0 ? void 0 : onClickSend(event);
|
|
37
|
+
}, expanded: true, buttonRounded: 'default', loading: isLoading, disabled: disableSendButton }, { children: "Send" }))] })), displayPoweredByDynamicFooter && (jsx(PoweredByDynamic, { classNameRoot: 'transaction-confirmation__footer' }))] }))] }));
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
export { TransactionConfirmationPageLayout };
|
|
@@ -47,15 +47,19 @@ require('formik');
|
|
|
47
47
|
require('yup');
|
|
48
48
|
require('../InlineWidget/InlineWidget.cjs');
|
|
49
49
|
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
50
|
+
require('../../views/CollectUserDataView/fieldsConfig.cjs');
|
|
50
51
|
require('../../context/MockContext/MockContext.cjs');
|
|
51
52
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
52
|
-
require('../../
|
|
53
|
+
require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
54
|
+
require('@dynamic-labs/types');
|
|
55
|
+
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
56
|
+
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
53
57
|
var TransactionRow = require('../TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs');
|
|
54
58
|
|
|
55
59
|
const TransactionStatusLayout = ({ destinationAddress, amount, networkName, networkCurrency, NetworkIcon, onDone, displayPoweredByDynamicFooter = true, onClickClose, }) => {
|
|
56
60
|
const closeButton = onClickClose && (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ type: 'button', onClick: onClickClose, "data-testid": 'close' }, { children: jsxRuntime.jsx(close.ReactComponent, {}) })));
|
|
57
|
-
const networkIcon = (jsxRuntime.jsx("
|
|
58
|
-
return (jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-status-layout' }, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ trailing: closeButton, alignContent: 'bottom' }, { children: jsxRuntime.jsx(IconWithStatus.IconWithStatus, { containerClassName: 'transaction-status-layout__status-icon', iconSize: 50, Icon: signCircle.ReactComponent, InnerIcon: check.ReactComponent }) })), jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-status-layout__body' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'transaction-status-layout__title' }, { children: "Transaction successfully sent" })), jsxRuntime.jsx("div", Object.assign({ className: 'transaction-status-layout__content' }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-status-layout__rows' }, { children: [jsxRuntime.jsx(TransactionRow.TransactionRow, Object.assign({ label: 'Recipient' }, { children: shortenWalletAddress.shortenWalletAddress(destinationAddress, 3, 3) })), jsxRuntime.jsxs(TransactionRow.TransactionRow, Object.assign({ label: 'Network' }, { children: [networkIcon, jsxRuntime.jsx("span", Object.assign({ className: 'transaction-status-layout__network-name' }, { children: networkName }))] })), jsxRuntime.jsxs(TransactionRow.TransactionRow, Object.assign({ label: 'Total amount' }, { children: [amount, jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'span', color: 'secondary', className: 'transaction-status-layout__network-currency' }, { children: networkCurrency }))] }))] })) })), jsxRuntime.jsx("div", Object.assign({ className: 'transaction-status-layout__actions' }, { children: jsxRuntime.jsx(Button.Button, Object.assign({ buttonVariant: 'primary', buttonPadding: 'large', expanded: true, buttonRounded: 'default', onClick: onDone }, { children: "Continue" })) })), displayPoweredByDynamicFooter && (jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'transaction-status-layout__footer' }))] }))] })));
|
|
61
|
+
const networkIcon = (jsxRuntime.jsx("span", Object.assign({ className: 'transaction-status-layout__network-icon' }, { children: NetworkIcon })));
|
|
62
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-status-layout' }, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ trailing: closeButton, alignContent: 'bottom' }, { children: jsxRuntime.jsx(IconWithStatus.IconWithStatus, { containerClassName: 'transaction-status-layout__status-icon', iconSize: 50, Icon: signCircle.ReactComponent, InnerIcon: check.ReactComponent }) })), jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-status-layout__body' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'transaction-status-layout__title' }, { children: "Transaction successfully sent" })), jsxRuntime.jsx("div", Object.assign({ className: 'transaction-status-layout__content' }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'transaction-status-layout__rows' }, { children: [jsxRuntime.jsx(TransactionRow.TransactionRow, Object.assign({ label: 'Recipient' }, { children: shortenWalletAddress.shortenWalletAddress(destinationAddress, 3, 3) })), jsxRuntime.jsxs(TransactionRow.TransactionRow, Object.assign({ label: 'Network' }, { children: [networkIcon, jsxRuntime.jsx("span", Object.assign({ className: 'transaction-status-layout__network-name' }, { children: networkName }))] })), jsxRuntime.jsxs(TransactionRow.TransactionRow, Object.assign({ label: 'Total amount' }, { children: [amount, jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'span', color: 'secondary', className: 'transaction-status-layout__network-currency' }, { children: networkCurrency }))] }))] })) })), jsxRuntime.jsx("div", Object.assign({ className: 'transaction-status-layout__actions' }, { children: jsxRuntime.jsx(Button.Button, Object.assign({ buttonVariant: 'primary', buttonPadding: 'large', expanded: true, buttonRounded: 'default', onClick: onDone, loading: false }, { children: "Continue" })) })), displayPoweredByDynamicFooter && (jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'transaction-status-layout__footer' }))] }))] })));
|
|
59
63
|
};
|
|
60
64
|
|
|
61
65
|
exports.TransactionStatusLayout = TransactionStatusLayout;
|
|
@@ -43,15 +43,19 @@ import 'formik';
|
|
|
43
43
|
import 'yup';
|
|
44
44
|
import '../InlineWidget/InlineWidget.js';
|
|
45
45
|
import '../MenuList/Dropdown/Dropdown.js';
|
|
46
|
+
import '../../views/CollectUserDataView/fieldsConfig.js';
|
|
46
47
|
import '../../context/MockContext/MockContext.js';
|
|
47
48
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
48
|
-
import '../../
|
|
49
|
+
import '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
50
|
+
import '@dynamic-labs/types';
|
|
51
|
+
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
52
|
+
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
49
53
|
import { TransactionRow } from '../TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js';
|
|
50
54
|
|
|
51
55
|
const TransactionStatusLayout = ({ destinationAddress, amount, networkName, networkCurrency, NetworkIcon, onDone, displayPoweredByDynamicFooter = true, onClickClose, }) => {
|
|
52
56
|
const closeButton = onClickClose && (jsx(IconButton, Object.assign({ type: 'button', onClick: onClickClose, "data-testid": 'close' }, { children: jsx(SvgClose, {}) })));
|
|
53
|
-
const networkIcon = (jsx("
|
|
54
|
-
return (jsxs("div", Object.assign({ className: 'transaction-status-layout' }, { children: [jsx(ModalHeader, Object.assign({ trailing: closeButton, alignContent: 'bottom' }, { children: jsx(IconWithStatus, { containerClassName: 'transaction-status-layout__status-icon', iconSize: 50, Icon: SvgSignCircle, InnerIcon: SvgCheck }) })), jsxs("div", Object.assign({ className: 'transaction-status-layout__body' }, { children: [jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'transaction-status-layout__title' }, { children: "Transaction successfully sent" })), jsx("div", Object.assign({ className: 'transaction-status-layout__content' }, { children: jsxs("div", Object.assign({ className: 'transaction-status-layout__rows' }, { children: [jsx(TransactionRow, Object.assign({ label: 'Recipient' }, { children: shortenWalletAddress(destinationAddress, 3, 3) })), jsxs(TransactionRow, Object.assign({ label: 'Network' }, { children: [networkIcon, jsx("span", Object.assign({ className: 'transaction-status-layout__network-name' }, { children: networkName }))] })), jsxs(TransactionRow, Object.assign({ label: 'Total amount' }, { children: [amount, jsx(Typography, Object.assign({ as: 'span', color: 'secondary', className: 'transaction-status-layout__network-currency' }, { children: networkCurrency }))] }))] })) })), jsx("div", Object.assign({ className: 'transaction-status-layout__actions' }, { children: jsx(Button, Object.assign({ buttonVariant: 'primary', buttonPadding: 'large', expanded: true, buttonRounded: 'default', onClick: onDone }, { children: "Continue" })) })), displayPoweredByDynamicFooter && (jsx(PoweredByDynamic, { classNameRoot: 'transaction-status-layout__footer' }))] }))] })));
|
|
57
|
+
const networkIcon = (jsx("span", Object.assign({ className: 'transaction-status-layout__network-icon' }, { children: NetworkIcon })));
|
|
58
|
+
return (jsxs("div", Object.assign({ className: 'transaction-status-layout' }, { children: [jsx(ModalHeader, Object.assign({ trailing: closeButton, alignContent: 'bottom' }, { children: jsx(IconWithStatus, { containerClassName: 'transaction-status-layout__status-icon', iconSize: 50, Icon: SvgSignCircle, InnerIcon: SvgCheck }) })), jsxs("div", Object.assign({ className: 'transaction-status-layout__body' }, { children: [jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'transaction-status-layout__title' }, { children: "Transaction successfully sent" })), jsx("div", Object.assign({ className: 'transaction-status-layout__content' }, { children: jsxs("div", Object.assign({ className: 'transaction-status-layout__rows' }, { children: [jsx(TransactionRow, Object.assign({ label: 'Recipient' }, { children: shortenWalletAddress(destinationAddress, 3, 3) })), jsxs(TransactionRow, Object.assign({ label: 'Network' }, { children: [networkIcon, jsx("span", Object.assign({ className: 'transaction-status-layout__network-name' }, { children: networkName }))] })), jsxs(TransactionRow, Object.assign({ label: 'Total amount' }, { children: [amount, jsx(Typography, Object.assign({ as: 'span', color: 'secondary', className: 'transaction-status-layout__network-currency' }, { children: networkCurrency }))] }))] })) })), jsx("div", Object.assign({ className: 'transaction-status-layout__actions' }, { children: jsx(Button, Object.assign({ buttonVariant: 'primary', buttonPadding: 'large', expanded: true, buttonRounded: 'default', onClick: onDone, loading: false }, { children: "Continue" })) })), displayPoweredByDynamicFooter && (jsx(PoweredByDynamic, { classNameRoot: 'transaction-status-layout__footer' }))] }))] })));
|
|
55
59
|
};
|
|
56
60
|
|
|
57
61
|
export { TransactionStatusLayout };
|
|
@@ -42,9 +42,13 @@ require('formik');
|
|
|
42
42
|
require('yup');
|
|
43
43
|
require('../../InlineWidget/InlineWidget.cjs');
|
|
44
44
|
require('../../MenuList/Dropdown/Dropdown.cjs');
|
|
45
|
+
require('../../../views/CollectUserDataView/fieldsConfig.cjs');
|
|
45
46
|
require('../../../context/MockContext/MockContext.cjs');
|
|
46
47
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
47
|
-
require('../../../
|
|
48
|
+
require('../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
49
|
+
require('@dynamic-labs/types');
|
|
50
|
+
require('../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
51
|
+
require('../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
48
52
|
|
|
49
53
|
const VerticalDrawerTransition = (_a) => {
|
|
50
54
|
var { style, children, className } = _a, props = _tslib.__rest(_a, ["style", "children", "className"]);
|
|
@@ -38,9 +38,13 @@ import 'formik';
|
|
|
38
38
|
import 'yup';
|
|
39
39
|
import '../../InlineWidget/InlineWidget.js';
|
|
40
40
|
import '../../MenuList/Dropdown/Dropdown.js';
|
|
41
|
+
import '../../../views/CollectUserDataView/fieldsConfig.js';
|
|
41
42
|
import '../../../context/MockContext/MockContext.js';
|
|
42
43
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
43
|
-
import '../../../
|
|
44
|
+
import '../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
45
|
+
import '@dynamic-labs/types';
|
|
46
|
+
import '../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
47
|
+
import '../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
44
48
|
|
|
45
49
|
const VerticalDrawerTransition = (_a) => {
|
|
46
50
|
var { style, children, className } = _a, props = __rest(_a, ["style", "children", "className"]);
|
|
@@ -29,6 +29,7 @@ const Typography = (_a) => {
|
|
|
29
29
|
'brand-primary': 'typography--brand-primary',
|
|
30
30
|
'error-1': 'typography--dynamic-error-1',
|
|
31
31
|
'error-2': 'typography--dynamic-error-2',
|
|
32
|
+
'green-1': 'typography--connection-green-1',
|
|
32
33
|
link: 'typography--link',
|
|
33
34
|
primary: 'typography--primary',
|
|
34
35
|
secondary: 'typography--secondary',
|
|
@@ -25,6 +25,7 @@ const Typography = (_a) => {
|
|
|
25
25
|
'brand-primary': 'typography--brand-primary',
|
|
26
26
|
'error-1': 'typography--dynamic-error-1',
|
|
27
27
|
'error-2': 'typography--dynamic-error-2',
|
|
28
|
+
'green-1': 'typography--connection-green-1',
|
|
28
29
|
link: 'typography--link',
|
|
29
30
|
primary: 'typography--primary',
|
|
30
31
|
secondary: 'typography--secondary',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ElementType, ReactElement } from 'react';
|
|
2
2
|
export type TypographyTag = ElementType;
|
|
3
3
|
export type TypographyVariant = 'title' | 'body_normal' | 'body_small' | 'body_mini' | 'button_primary' | 'button_secondary' | 'button_tertiary' | 'numbers_big' | 'numbers_medium' | 'numbers_small';
|
|
4
|
-
export type TypographyColor = 'primary' | 'secondary' | 'brand-primary' | 'tertiary' | 'link' | 'error-1' | 'error-2' | 'tooltip';
|
|
4
|
+
export type TypographyColor = 'primary' | 'secondary' | 'brand-primary' | 'tertiary' | 'link' | 'error-1' | 'error-2' | 'tooltip' | 'green-1';
|
|
5
5
|
export type TypographyWeight = 'regular' | 'medium' | 'bold';
|
|
6
6
|
export type TypographyTransform = 'uppercase';
|
|
7
7
|
export type TypographyProps<TAG extends ElementType = 'p'> = {
|
|
@@ -42,10 +42,14 @@ require('formik');
|
|
|
42
42
|
require('yup');
|
|
43
43
|
require('../InlineWidget/InlineWidget.cjs');
|
|
44
44
|
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
45
|
+
require('../../views/CollectUserDataView/fieldsConfig.cjs');
|
|
45
46
|
require('../../context/MockContext/MockContext.cjs');
|
|
46
47
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
48
|
+
require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
47
49
|
var usePromise = require('../../utils/hooks/usePromise/usePromise.cjs');
|
|
48
|
-
require('
|
|
50
|
+
require('@dynamic-labs/types');
|
|
51
|
+
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
52
|
+
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
49
53
|
|
|
50
54
|
const UserAddress = ({ userProfile, walletConnector }) => {
|
|
51
55
|
var _a;
|
|
@@ -38,10 +38,14 @@ import 'formik';
|
|
|
38
38
|
import 'yup';
|
|
39
39
|
import '../InlineWidget/InlineWidget.js';
|
|
40
40
|
import '../MenuList/Dropdown/Dropdown.js';
|
|
41
|
+
import '../../views/CollectUserDataView/fieldsConfig.js';
|
|
41
42
|
import '../../context/MockContext/MockContext.js';
|
|
42
43
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
44
|
+
import '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
43
45
|
import { usePromise } from '../../utils/hooks/usePromise/usePromise.js';
|
|
44
|
-
import '
|
|
46
|
+
import '@dynamic-labs/types';
|
|
47
|
+
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
48
|
+
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
45
49
|
|
|
46
50
|
const UserAddress = ({ userProfile, walletConnector }) => {
|
|
47
51
|
var _a;
|
|
@@ -33,13 +33,17 @@ require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
|
33
33
|
require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
34
34
|
require('../../../IconButton/IconButton.cjs');
|
|
35
35
|
require('../../../Alert/Alert.cjs');
|
|
36
|
+
require('formik');
|
|
37
|
+
require('yup');
|
|
38
|
+
require('../../../../views/CollectUserDataView/fieldsConfig.cjs');
|
|
36
39
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
37
40
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
38
|
-
require('../../../../
|
|
41
|
+
require('../../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
42
|
+
require('@dynamic-labs/types');
|
|
43
|
+
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
44
|
+
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
39
45
|
require('../../../Popper/Popper/Popper.cjs');
|
|
40
46
|
require('../../../Popper/PopperContext/PopperContext.cjs');
|
|
41
|
-
require('formik');
|
|
42
|
-
require('yup');
|
|
43
47
|
require('../../../InlineWidget/InlineWidget.cjs');
|
|
44
48
|
require('../../../MenuList/Dropdown/Dropdown.cjs');
|
|
45
49
|
var VerifiedEmailIcon = require('./components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -29,13 +29,17 @@ import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
|
29
29
|
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
30
30
|
import '../../../IconButton/IconButton.js';
|
|
31
31
|
import '../../../Alert/Alert.js';
|
|
32
|
+
import 'formik';
|
|
33
|
+
import 'yup';
|
|
34
|
+
import '../../../../views/CollectUserDataView/fieldsConfig.js';
|
|
32
35
|
import '../../../../context/MockContext/MockContext.js';
|
|
33
36
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
34
|
-
import '../../../../
|
|
37
|
+
import '../../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
38
|
+
import '@dynamic-labs/types';
|
|
39
|
+
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
40
|
+
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
35
41
|
import '../../../Popper/Popper/Popper.js';
|
|
36
42
|
import '../../../Popper/PopperContext/PopperContext.js';
|
|
37
|
-
import 'formik';
|
|
38
|
-
import 'yup';
|
|
39
43
|
import '../../../InlineWidget/InlineWidget.js';
|
|
40
44
|
import '../../../MenuList/Dropdown/Dropdown.js';
|
|
41
45
|
import { VerifiedEmailIcon } from './components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|