@dynamic-labs/sdk-react-core 0.17.0-RC.9 → 0.17.0
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 +323 -0
- package/package.cjs +9 -10
- package/package.js +9 -10
- package/package.json +17 -17
- package/src/index.cjs +31 -4
- package/src/index.d.ts +3 -0
- package/src/index.js +19 -4
- package/src/lib/Main.cjs +21 -10
- package/src/lib/Main.js +19 -8
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +7 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +7 -0
- package/src/lib/components/Alert/Alert.cjs +1 -0
- package/src/lib/components/Alert/Alert.js +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +7 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +7 -0
- package/src/lib/components/AppOriginTile/AppOriginTile.types.d.ts +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +89 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.d.ts +10 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +85 -0
- package/src/lib/components/AuthProviderIcon/index.d.ts +1 -0
- package/src/lib/components/ChainCard/ChainCard.d.ts +7 -0
- package/src/lib/components/Checkbox/Checkbox.cjs +1 -0
- package/src/lib/components/Checkbox/Checkbox.js +1 -0
- package/src/lib/components/Chip/Chip.cjs +13 -0
- package/src/lib/components/Chip/Chip.d.ts +7 -0
- package/src/lib/components/Chip/Chip.js +9 -0
- package/src/lib/components/Chip/index.d.ts +1 -0
- package/src/lib/components/Divider/Divider.cjs +13 -3
- package/src/lib/components/Divider/Divider.d.ts +7 -3
- package/src/lib/components/Divider/Divider.js +14 -4
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +3 -2
- package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +3 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +3 -2
- package/src/lib/components/FormFieldLabel/FormFieldLabel.cjs +10 -0
- package/src/lib/components/FormFieldLabel/FormFieldLabel.d.ts +8 -0
- package/src/lib/components/FormFieldLabel/FormFieldLabel.js +6 -0
- package/src/lib/components/FormFieldLabel/index.d.ts +1 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +5 -3
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +5 -3
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +1 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +1 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +5 -3
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +5 -3
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +12 -8
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +2 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +12 -8
- package/src/lib/components/Input/Input.cjs +13 -6
- package/src/lib/components/Input/Input.js +13 -6
- package/src/lib/components/Input/Input.types.d.ts +4 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.js +1 -0
- package/src/lib/components/Modal/Modal.cjs +10 -0
- package/src/lib/components/Modal/Modal.d.ts +6 -0
- package/src/lib/components/Modal/Modal.js +6 -0
- package/src/lib/components/Modal/index.d.ts +1 -0
- package/src/lib/components/ModalCard/ModalCard.cjs +9 -0
- package/src/lib/components/ModalCard/ModalCard.d.ts +2 -0
- package/src/lib/components/ModalCard/ModalCard.js +5 -0
- package/src/lib/components/ModalCard/index.d.ts +1 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +5 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +5 -1
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +7 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +7 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +14 -7
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +14 -7
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +10 -3
- package/src/lib/components/NetworkPicker/components/Network/Network.js +10 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +10 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +10 -3
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +15 -7
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +15 -7
- package/src/lib/components/OverlayCard/OverlayCard.cjs +7 -0
- package/src/lib/components/OverlayCard/OverlayCard.js +7 -0
- package/src/lib/components/Popper/Popper/Popper.cjs +54 -0
- package/src/lib/components/Popper/Popper/Popper.d.ts +12 -0
- package/src/lib/components/Popper/Popper/Popper.js +50 -0
- package/src/lib/components/Popper/Popper/index.d.ts +1 -0
- package/src/lib/components/Popper/Popper.types.d.ts +6 -0
- package/src/lib/components/Popper/PopperContent/PopperContent.cjs +18 -0
- package/src/lib/components/Popper/PopperContent/PopperContent.d.ts +9 -0
- package/src/lib/components/Popper/PopperContent/PopperContent.js +14 -0
- package/src/lib/components/Popper/PopperContent/index.d.ts +1 -0
- package/src/lib/components/Popper/PopperContext/PopperContext.cjs +26 -0
- package/src/lib/components/Popper/PopperContext/PopperContext.d.ts +8 -0
- package/src/lib/components/Popper/PopperContext/PopperContext.js +20 -0
- package/src/lib/components/Popper/PopperContext/index.d.ts +1 -0
- package/src/lib/components/Popper/index.d.ts +2 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.cjs +14 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.d.ts +2 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.js +10 -0
- package/src/lib/components/Popper/utils/getChildPosition/index.d.ts +1 -0
- package/src/lib/components/Popper/utils/index.d.ts +3 -0
- package/src/lib/components/Popper/utils/isScrollable/index.d.ts +1 -0
- package/src/lib/components/Popper/utils/isScrollable/isScrollable.cjs +16 -0
- package/src/lib/components/Popper/utils/isScrollable/isScrollable.d.ts +1 -0
- package/src/lib/components/Popper/utils/isScrollable/isScrollable.js +12 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/index.d.ts +1 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.cjs +24 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.d.ts +1 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.js +20 -0
- package/src/lib/components/Portal/Portal.cjs +7 -0
- package/src/lib/components/Portal/Portal.js +7 -0
- package/src/lib/components/Select/Select.cjs +1 -0
- package/src/lib/components/Select/Select.js +1 -0
- package/src/lib/components/SelectNetworkButton/SelectNetworkButton.cjs +13 -0
- package/src/lib/components/SelectNetworkButton/SelectNetworkButton.d.ts +8 -0
- package/src/lib/components/SelectNetworkButton/SelectNetworkButton.js +9 -0
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.d.ts +8 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +61 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +11 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +57 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +51 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +19 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +47 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +26 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.d.ts +8 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +22 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/index.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/components/index.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/index.d.ts +2 -0
- package/src/lib/components/ShadowDOM/utils.cjs +1 -0
- package/src/lib/components/ShadowDOM/utils.js +1 -0
- package/src/lib/components/Spinner/spinner.cjs +1 -0
- package/src/lib/components/Spinner/spinner.js +1 -0
- package/src/lib/components/Step/Step.d.ts +7 -0
- package/src/lib/components/Step/index.d.ts +1 -0
- package/src/lib/components/Stepper/Stepper.d.ts +2 -0
- package/src/lib/components/Stepper/index.d.ts +1 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +1 -0
- package/src/lib/components/Toolkit/Toolkit.js +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +1 -0
- package/src/lib/components/Tooltip/Tooltip.cjs +7 -0
- package/src/lib/components/Tooltip/Tooltip.js +7 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +41 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +17 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +37 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs +11 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.d.ts +12 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js +7 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/index.d.ts +1 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/index.d.ts +1 -0
- package/src/lib/components/TransactionConfirmationPageLayout/index.d.ts +2 -0
- package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +11 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +57 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.d.ts +12 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +53 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +7 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +7 -0
- package/src/lib/components/UserAddress/UserAddress.cjs +1 -0
- package/src/lib/components/UserAddress/UserAddress.js +1 -0
- package/src/lib/components/UserProfile/UserProfile.cjs +3 -2
- package/src/lib/components/UserProfile/UserProfile.js +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +10 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +10 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.d.ts +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +10 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +10 -3
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +31 -13
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +31 -13
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.d.ts +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.js +1 -1
- package/src/lib/components/index.d.ts +9 -0
- package/src/lib/config/LSSuffix.cjs +24 -0
- package/src/lib/config/LSSuffix.d.ts +7 -0
- package/src/lib/config/LSSuffix.js +22 -0
- package/src/lib/context/AccessDeniedContext/AccessDeniedContext.cjs +30 -0
- package/src/lib/context/AccessDeniedContext/AccessDeniedContext.d.ts +13 -0
- package/src/lib/context/AccessDeniedContext/AccessDeniedContext.js +24 -0
- package/src/lib/context/AccessDeniedContext/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +76 -30
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +26 -3
- package/src/lib/context/DynamicContext/DynamicContext.js +73 -27
- package/src/lib/context/DynamicContext/helpers.cjs +5 -3
- package/src/lib/context/DynamicContext/helpers.js +4 -2
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +5 -3
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +5 -3
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.cjs +27 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.d.ts +14 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.js +23 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +7 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +7 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +1 -0
- package/src/lib/context/DynamicContext/validators.cjs +1 -0
- package/src/lib/context/DynamicContext/validators.js +1 -0
- package/src/lib/context/MockContext/MockContext.cjs +2 -0
- package/src/lib/context/MockContext/MockContext.js +2 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +7 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.js +7 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +74 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.d.ts +4 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.cjs +11 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.d.ts +3 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.js +6 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +69 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.types.d.ts +9 -0
- package/src/lib/context/SendBalanceContext/index.d.ts +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +103 -19
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +3 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +104 -20
- package/src/lib/context/ThemeContext/themesData.cjs +19 -18
- package/src/lib/context/ThemeContext/themesData.d.ts +3 -3
- package/src/lib/context/ThemeContext/themesData.js +19 -18
- package/src/lib/context/ViewContext/ViewContext.cjs +21 -12
- package/src/lib/context/ViewContext/ViewContext.d.ts +10 -8
- package/src/lib/context/ViewContext/ViewContext.js +22 -13
- package/src/lib/data/api.cjs +6 -2
- package/src/lib/data/api.d.ts +2 -2
- package/src/lib/data/api.js +6 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +10 -3
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +10 -3
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +9 -2
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +9 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +9 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +9 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +9 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +9 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +8 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +8 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +14 -7
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +14 -7
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +19 -9
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +19 -9
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +15 -0
- package/src/lib/layouts/BridgeWelcomeLayout/index.d.ts +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +69 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.d.ts +10 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +65 -0
- package/src/lib/modals/SendBalanceModal/index.d.ts +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +19 -10
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +19 -10
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +35 -83
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +37 -85
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +0 -4
- package/src/lib/modals/index.d.ts +1 -0
- package/src/lib/shared/assets/add.cjs +8 -9
- package/src/lib/shared/assets/add.js +8 -9
- package/src/lib/shared/assets/index.d.ts +1 -0
- package/src/lib/shared/assets/send.cjs +56 -0
- package/src/lib/shared/assets/send.js +32 -0
- package/src/lib/shared/types/index.d.ts +14 -2
- package/src/lib/shared/utils/functions/ceil/ceil.cjs +10 -0
- package/src/lib/shared/utils/functions/ceil/ceil.d.ts +1 -0
- package/src/lib/shared/utils/functions/ceil/ceil.js +6 -0
- package/src/lib/shared/utils/functions/ceil/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs +9 -10
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.d.ts +1 -1
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.js +9 -10
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +1 -0
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +1 -0
- package/src/lib/shared/utils/functions/index.d.ts +2 -0
- package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.cjs +27 -0
- package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.d.ts +6 -0
- package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.js +23 -0
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.cjs +9 -0
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.d.ts +1 -0
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.js +5 -0
- package/src/lib/shared/utils/functions/storage/getFromLS.cjs +2 -1
- package/src/lib/shared/utils/functions/storage/getFromLS.js +2 -1
- package/src/lib/shared/utils/functions/storage/index.d.ts +2 -0
- package/src/lib/shared/utils/functions/storage/removeFromLS.cjs +15 -0
- package/src/lib/shared/utils/functions/storage/removeFromLS.d.ts +1 -0
- package/src/lib/shared/utils/functions/storage/removeFromLS.js +11 -0
- package/src/lib/shared/utils/functions/storage/setToLS.cjs +5 -2
- package/src/lib/shared/utils/functions/storage/setToLS.js +5 -2
- package/src/lib/shared/utils/functions/trimEnd/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.cjs +13 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.d.ts +1 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.js +9 -0
- package/src/lib/shared/utils/hooks/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +5 -3
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +5 -3
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.cjs +12 -0
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.d.ts +1 -0
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.js +8 -0
- package/src/lib/utils/functions/getAppOrigin/index.d.ts +1 -0
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +14 -2
- package/src/lib/utils/functions/getAuthToken/getAuthToken.d.ts +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +13 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +1 -0
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +1 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +30 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.d.ts +7 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +26 -0
- package/src/lib/utils/functions/getReferencedAccount/index.d.ts +1 -0
- package/src/lib/utils/functions/{getEnabledUserProfileFields/getEnabledUserProfileFields.cjs → getUserProfileFields/getUserProfileFields.cjs} +4 -0
- package/src/lib/utils/functions/{getEnabledUserProfileFields/getEnabledUserProfileFields.js → getUserProfileFields/getUserProfileFields.js} +4 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +2 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +2 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +1 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +1 -0
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +3 -0
- package/src/lib/utils/functions/isNetworkUnsupported/index.d.ts +1 -0
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.cjs +12 -0
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.d.ts +2 -0
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.js +8 -0
- package/src/lib/utils/functions/isWalletLinked/index.d.ts +1 -0
- package/src/lib/utils/functions/isWalletLinked/isWalletLinked.cjs +15 -0
- package/src/lib/utils/functions/isWalletLinked/isWalletLinked.d.ts +2 -0
- package/src/lib/utils/functions/isWalletLinked/isWalletLinked.js +11 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs +1 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +1 -0
- package/src/lib/utils/functions/storeAuthToken/index.cjs +14 -2
- package/src/lib/utils/functions/storeAuthToken/index.js +13 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +2 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +2 -0
- package/src/lib/utils/hooks/index.d.ts +4 -0
- package/src/lib/utils/hooks/multiWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.cjs +0 -2
- package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.js +0 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +66 -7
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +10 -3
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +67 -8
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +2 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +2 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +2 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +2 -0
- package/src/lib/utils/hooks/useColorSchemePreference/index.d.ts +1 -0
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +27 -0
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.d.ts +1 -0
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +23 -0
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.cjs +6 -1
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.js +6 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +1 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +1 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +1 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +1 -0
- package/src/lib/utils/hooks/useConnectedAccountWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.cjs +30 -0
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.d.ts +2 -0
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.js +26 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +1 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +1 -0
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +4 -1
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +5 -2
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +1 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +1 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +1 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +1 -0
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +1 -0
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +1 -0
- package/src/lib/utils/hooks/useGetSocialIcon/index.d.ts +1 -0
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.cjs +14 -0
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.d.ts +2 -0
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.js +10 -0
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +26 -2
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +26 -2
- package/src/lib/utils/hooks/useIconThemeVariant/index.d.ts +1 -0
- package/src/lib/utils/hooks/useIconThemeVariant/useIconThemeVariant.cjs +15 -0
- package/src/lib/utils/hooks/useIconThemeVariant/useIconThemeVariant.d.ts +2 -0
- package/src/lib/utils/hooks/useIconThemeVariant/useIconThemeVariant.js +11 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +4 -4
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +3 -3
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs +1 -0
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +1 -0
- package/src/lib/utils/hooks/usePrevious/usePrevious.cjs +0 -1
- package/src/lib/utils/hooks/usePrevious/usePrevious.d.ts +1 -1
- package/src/lib/utils/hooks/usePrevious/usePrevious.js +0 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +1 -0
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +1 -0
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +4 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +4 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +20 -11
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +20 -11
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +39 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.d.ts +8 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +35 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +50 -73
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +52 -75
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +56 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.d.ts +8 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +52 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/index.d.ts +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.cjs +7 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.js +3 -0
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +88 -52
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +4 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +89 -53
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +14 -14
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +14 -14
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +51 -16
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +51 -16
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +33 -27
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +5 -3
- package/src/lib/utils/hooks/useWallets/useWallets.js +34 -28
- package/src/lib/utils/hooks/useWalletsConnectionState/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +47 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +14 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +43 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +9 -3
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +9 -3
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +13 -7
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +13 -7
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +9 -3
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +9 -3
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +8 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +8 -2
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +3 -2
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +3 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +9 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +9 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +11 -4
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +11 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +10 -3
- package/src/lib/views/EmailUpdate/EmailUpdate.js +10 -3
- package/src/lib/views/EmailVerification/EmailVerification.cjs +17 -9
- package/src/lib/views/EmailVerification/EmailVerification.js +17 -9
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +7 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +7 -0
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +11 -5
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +11 -5
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +9 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +9 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +8 -4
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +9 -5
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +12 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +11 -1
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +18 -8
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +18 -8
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +27 -7
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +27 -7
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +9 -3
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +9 -3
- package/src/lib/views/NoAccess/NoAccess.cjs +25 -29
- package/src/lib/views/NoAccess/NoAccess.js +26 -30
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +8 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +8 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +9 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +9 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +10 -4
- package/src/lib/views/PendingConnectView/PendingConnectView.js +10 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +14 -8
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +14 -8
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +9 -2
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +9 -2
- package/src/lib/views/QrCodeView/QrCodeView.cjs +9 -3
- package/src/lib/views/QrCodeView/QrCodeView.js +9 -3
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +117 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.d.ts +13 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.js +113 -0
- package/src/lib/views/SendBalanceView/index.d.ts +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +15 -12
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +15 -12
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +62 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.d.ts +2 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +58 -0
- package/src/lib/views/SocialWrongAccountView/index.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +95 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +14 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +91 -0
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.cjs +7 -1
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +18 -0
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/useTransactionData.cjs +7 -0
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/useTransactionData.js +7 -0
- package/src/lib/views/TransactionConfirmationView/index.d.ts +2 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +9 -2
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +9 -2
- package/src/lib/views/WalletList/WalletList.cjs +10 -8
- package/src/lib/views/WalletList/WalletList.js +5 -3
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +8 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +8 -2
- package/src/lib/views/WalletList/data.cjs +5 -5
- package/src/lib/views/WalletList/data.d.ts +2 -2
- package/src/lib/views/WalletList/data.js +5 -5
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +10 -4
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +10 -4
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +9 -3
- package/src/lib/views/WalletUsedView/WalletUsedView.js +9 -3
- package/src/lib/views/viewToComponentMap.cjs +2 -0
- package/src/lib/views/viewToComponentMap.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +46 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +6 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +42 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +22 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.d.ts +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +18 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +9 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.cjs +27 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.d.ts +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.js +19 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs +45 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.d.ts +16 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js +35 -0
- package/src/lib/widgets/DynamicBridgeWidget/index.d.ts +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +10 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.d.ts +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +10 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.d.ts +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +10 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.d.ts +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +5 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +9 -2
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +9 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +14 -6
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +80 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +76 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +10 -3
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +10 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +15 -30
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +6 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +16 -31
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +13 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.types.d.ts +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +13 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +13 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.cjs +3 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.d.ts +4 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.js +3 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +9 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.d.ts +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +9 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +42 -26
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.d.ts +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +44 -28
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.cjs +17 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.js +17 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs +9 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js +9 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.d.ts +4 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +8 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +8 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +13 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +13 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/types.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +12 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +12 -7
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +10 -3
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +10 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +21 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +21 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +9 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +9 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +10 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +10 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +34 -21
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.d.ts +2 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +34 -21
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +6 -4
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +6 -4
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +43 -6
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +2 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +44 -7
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +9 -10
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -5
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +10 -11
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +5 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +5 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +1 -1
- package/src/lib/widgets/DynamicWidget/{components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs → prompts/DefaultPromptModal/DefaultPromptModal.cjs} +15 -15
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +13 -0
- package/src/lib/widgets/DynamicWidget/{components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js → prompts/DefaultPromptModal/DefaultPromptModal.js} +15 -15
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +10 -3
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +10 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +17 -40
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +18 -41
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +45 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.d.ts +7 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +41 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +71 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.d.ts +8 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +67 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +61 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +57 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +64 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +60 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +68 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +64 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +2 -33
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +2 -33
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +12 -8
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +13 -9
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +13 -8
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +13 -8
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +13 -7
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +13 -7
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.cjs +10 -3
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.js +10 -3
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +12 -4
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.cjs +15 -0
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.js +11 -0
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +9 -2
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +9 -2
- package/src/lib/widgets/index.d.ts +1 -0
- package/src/polyfills.cjs +11 -0
- package/src/polyfills.d.ts +1 -0
- package/src/polyfills.js +9 -0
- package/src/shim/process.cjs +238 -0
- package/src/shim/process.d.ts +34 -0
- package/src/shim/process.js +234 -0
- package/src/lib/modals/TransactionConfirmationModal/helpers/transactionErrorMessage.js +0 -12
- package/src/lib/utils/functions/getSocialIcon/getSocialIcon.cjs +0 -22
- package/src/lib/utils/functions/getSocialIcon/getSocialIcon.d.ts +0 -3
- package/src/lib/utils/functions/getSocialIcon/getSocialIcon.js +0 -18
- package/src/lib/utils/functions/getSocialIcon/index.d.ts +0 -1
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.d.ts +0 -2
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.types.d.ts +0 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.cjs +0 -68
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.js +0 -64
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.cjs +0 -59
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.d.ts +0 -6
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.js +0 -55
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/index.d.ts +0 -1
- /package/src/lib/utils/functions/{getEnabledUserProfileFields/getEnabledUserProfileFields.d.ts → getUserProfileFields/getUserProfileFields.d.ts} +0 -0
- /package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/index.d.ts +0 -0
- /package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/index.d.ts +0 -0
- /package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/useTransactionData.d.ts +0 -0
- /package/src/lib/widgets/DynamicWidget/{components → prompts/PendingSignModal}/DefaultPendingSignModalContent/index.d.ts +0 -0
package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
7
|
+
var useInternalDynamicContext = require('../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
8
|
+
var DefaultPromptModal = require('../DefaultPromptModal/DefaultPromptModal.cjs');
|
|
9
|
+
require('react');
|
|
10
|
+
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
11
|
+
require('@dynamic-labs/sdk-api');
|
|
12
|
+
require('../../../../shared/logger.cjs');
|
|
13
|
+
require('../../../../config/LSSuffix.cjs');
|
|
14
|
+
require('@dynamic-labs/iconic');
|
|
15
|
+
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
16
|
+
require('@dynamic-labs/utils');
|
|
17
|
+
require('../../../../utils/constants/colors.cjs');
|
|
18
|
+
require('ethers');
|
|
19
|
+
require('../../../../shared/consts/index.cjs');
|
|
20
|
+
require('@dynamic-labs/multi-wallet');
|
|
21
|
+
var getReferencedAccount = require('../../../../utils/functions/getReferencedAccount/getReferencedAccount.cjs');
|
|
22
|
+
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
23
|
+
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
24
|
+
require('react-dom');
|
|
25
|
+
require('react-focus-lock');
|
|
26
|
+
require('../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
27
|
+
require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
28
|
+
require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
29
|
+
require('../../../../config/ApiEndpoint.cjs');
|
|
30
|
+
require('@dynamic-labs/rpc-providers');
|
|
31
|
+
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
32
|
+
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
|
+
require('../../../../components/IconButton/IconButton.cjs');
|
|
34
|
+
require('@dynamic-labs/wallet-book');
|
|
35
|
+
require('../../../../components/Alert/Alert.cjs');
|
|
36
|
+
require('../../../../context/MockContext/MockContext.cjs');
|
|
37
|
+
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
38
|
+
require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
39
|
+
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
40
|
+
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
41
|
+
require('formik');
|
|
42
|
+
require('yup');
|
|
43
|
+
var AuthProviderIcon = require('../../../../components/AuthProviderIcon/AuthProviderIcon.cjs');
|
|
44
|
+
var helpers = require('../../helpers/helpers.cjs');
|
|
45
|
+
|
|
46
|
+
const PendingConnectionModal = () => {
|
|
47
|
+
var _a;
|
|
48
|
+
const { selectedWalletConnector, authToken, selectedWalletWithAction } = useInternalDynamicContext.useInternalDynamicContext();
|
|
49
|
+
let title;
|
|
50
|
+
let description;
|
|
51
|
+
if (selectedWalletWithAction &&
|
|
52
|
+
walletConnectorCore.isSocialWalletConnector(selectedWalletWithAction.wallet.connector)) {
|
|
53
|
+
const account = getReferencedAccount.getReferencedAccount(authToken, selectedWalletWithAction.wallet.id);
|
|
54
|
+
title = `Reconnecting ${helpers.capitalize((_a = account === null || account === void 0 ? void 0 : account.oauthProvider) !== null && _a !== void 0 ? _a : '')}`;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
title = `Connect ${selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.name} wallet`;
|
|
58
|
+
description = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: ["Connect your", ' ', jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'span', weight: 'medium', color: 'primary' }, { children: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.name })), ' ', "wallet to make active."] }));
|
|
59
|
+
}
|
|
60
|
+
return (jsxRuntime.jsx(DefaultPromptModal.DefaultPromptModal, Object.assign({ showCloseButton: true, dataTestId: 'pending-connection-modal', icon: jsxRuntime.jsx(AuthProviderIcon.AuthProviderIcon // eslint-disable-line
|
|
61
|
+
, { jwt: authToken, wallet: selectedWalletWithAction === null || selectedWalletWithAction === void 0 ? void 0 : selectedWalletWithAction.wallet }), title: title }, { children: jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content' }, { children: description })) })));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.PendingConnectionModal = PendingConnectionModal;
|
package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { isSocialWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
3
|
+
import { useInternalDynamicContext } from '../../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
4
|
+
import { DefaultPromptModal } from '../DefaultPromptModal/DefaultPromptModal.js';
|
|
5
|
+
import 'react';
|
|
6
|
+
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
7
|
+
import '@dynamic-labs/sdk-api';
|
|
8
|
+
import '../../../../shared/logger.js';
|
|
9
|
+
import '../../../../config/LSSuffix.js';
|
|
10
|
+
import '@dynamic-labs/iconic';
|
|
11
|
+
import '../../../../context/ViewContext/ViewContext.js';
|
|
12
|
+
import '@dynamic-labs/utils';
|
|
13
|
+
import '../../../../utils/constants/colors.js';
|
|
14
|
+
import 'ethers';
|
|
15
|
+
import '../../../../shared/consts/index.js';
|
|
16
|
+
import '@dynamic-labs/multi-wallet';
|
|
17
|
+
import { getReferencedAccount } from '../../../../utils/functions/getReferencedAccount/getReferencedAccount.js';
|
|
18
|
+
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
19
|
+
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
20
|
+
import 'react-dom';
|
|
21
|
+
import 'react-focus-lock';
|
|
22
|
+
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
23
|
+
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
24
|
+
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
25
|
+
import '../../../../config/ApiEndpoint.js';
|
|
26
|
+
import '@dynamic-labs/rpc-providers';
|
|
27
|
+
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
28
|
+
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
|
+
import '../../../../components/IconButton/IconButton.js';
|
|
30
|
+
import '@dynamic-labs/wallet-book';
|
|
31
|
+
import '../../../../components/Alert/Alert.js';
|
|
32
|
+
import '../../../../context/MockContext/MockContext.js';
|
|
33
|
+
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
34
|
+
import '../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
35
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
36
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
37
|
+
import 'formik';
|
|
38
|
+
import 'yup';
|
|
39
|
+
import { AuthProviderIcon } from '../../../../components/AuthProviderIcon/AuthProviderIcon.js';
|
|
40
|
+
import { capitalize } from '../../helpers/helpers.js';
|
|
41
|
+
|
|
42
|
+
const PendingConnectionModal = () => {
|
|
43
|
+
var _a;
|
|
44
|
+
const { selectedWalletConnector, authToken, selectedWalletWithAction } = useInternalDynamicContext();
|
|
45
|
+
let title;
|
|
46
|
+
let description;
|
|
47
|
+
if (selectedWalletWithAction &&
|
|
48
|
+
isSocialWalletConnector(selectedWalletWithAction.wallet.connector)) {
|
|
49
|
+
const account = getReferencedAccount(authToken, selectedWalletWithAction.wallet.id);
|
|
50
|
+
title = `Reconnecting ${capitalize((_a = account === null || account === void 0 ? void 0 : account.oauthProvider) !== null && _a !== void 0 ? _a : '')}`;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
title = `Connect ${selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.name} wallet`;
|
|
54
|
+
description = (jsxs(Fragment, { children: ["Connect your", ' ', jsx(Typography, Object.assign({ as: 'span', weight: 'medium', color: 'primary' }, { children: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.name })), ' ', "wallet to make active."] }));
|
|
55
|
+
}
|
|
56
|
+
return (jsx(DefaultPromptModal, Object.assign({ showCloseButton: true, dataTestId: 'pending-connection-modal', icon: jsx(AuthProviderIcon // eslint-disable-line
|
|
57
|
+
, { jwt: authToken, wallet: selectedWalletWithAction === null || selectedWalletWithAction === void 0 ? void 0 : selectedWalletWithAction.wallet }), title: title }, { children: jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content' }, { children: description })) })));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { PendingConnectionModal };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PendingConnectionModal';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../../../../_virtual/_tslib.cjs');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var utils = require('@dynamic-labs/utils');
|
|
8
|
+
var walletBook = require('@dynamic-labs/wallet-book');
|
|
9
|
+
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
10
|
+
require('react');
|
|
11
|
+
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
12
|
+
require('@dynamic-labs/sdk-api');
|
|
13
|
+
require('../../../../../shared/logger.cjs');
|
|
14
|
+
require('../../../../../config/LSSuffix.cjs');
|
|
15
|
+
require('@dynamic-labs/iconic');
|
|
16
|
+
require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
17
|
+
require('../../../../../utils/constants/colors.cjs');
|
|
18
|
+
require('ethers');
|
|
19
|
+
require('../../../../../shared/consts/index.cjs');
|
|
20
|
+
var useInternalDynamicContext = require('../../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
21
|
+
require('@dynamic-labs/multi-wallet');
|
|
22
|
+
require('../../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
23
|
+
require('../../../../../context/ThemeContext/ThemeContext.cjs');
|
|
24
|
+
require('react-dom');
|
|
25
|
+
require('react-focus-lock');
|
|
26
|
+
require('../../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
27
|
+
require('../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
28
|
+
require('../../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
29
|
+
require('../../../../../config/ApiEndpoint.cjs');
|
|
30
|
+
require('@dynamic-labs/rpc-providers');
|
|
31
|
+
require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
32
|
+
require('../../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
|
+
require('../../../../../components/IconButton/IconButton.cjs');
|
|
34
|
+
var Button = require('../../../../../components/Button/Button.cjs');
|
|
35
|
+
require('../../../../../components/Alert/Alert.cjs');
|
|
36
|
+
require('../../../../../context/MockContext/MockContext.cjs');
|
|
37
|
+
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
38
|
+
var useConnectAndSignSplitSteps = require('../../../../../utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs');
|
|
39
|
+
require('../../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
40
|
+
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
41
|
+
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
|
+
require('formik');
|
|
43
|
+
require('yup');
|
|
44
|
+
var DefaultPromptModal = require('../../DefaultPromptModal/DefaultPromptModal.cjs');
|
|
45
|
+
|
|
46
|
+
const DefaultPendingSignModalContent = () => {
|
|
47
|
+
const { selectedWalletConnector, setMultiWalletWidgetState } = useInternalDynamicContext.useInternalDynamicContext();
|
|
48
|
+
const { signAlreadyConnectedUser } = useConnectAndSignSplitSteps.useConnectAndSignSplitSteps();
|
|
49
|
+
const onClickToSign = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
50
|
+
try {
|
|
51
|
+
if (selectedWalletConnector) {
|
|
52
|
+
yield signAlreadyConnectedUser({
|
|
53
|
+
walletConnector: selectedWalletConnector,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch (e) {
|
|
58
|
+
walletConnectorCore.logger.error(e);
|
|
59
|
+
}
|
|
60
|
+
finally {
|
|
61
|
+
setMultiWalletWidgetState('idle');
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
return (jsxRuntime.jsxs(DefaultPromptModal.DefaultPromptModal, Object.assign({ showCloseButton: true, dataTestId: 'pending-account-switch', icon: jsxRuntime.jsx(walletBook.WalletIcon, { walletName: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.name }), title: `Sign in with ${selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.name}` }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content' }, { children: "Sign the message in your wallet to approve linking this wallet to your account" })), utils.isMobile() &&
|
|
65
|
+
!(selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.canConnectViaCustodialService) && (jsxRuntime.jsx(Button.Button, Object.assign({ buttonClassName: 'default-prompt-modal__button', buttonRounded: 'small', expanded: true, type: 'button', buttonPadding: 'medium', typographyProps: { variant: 'button_secondary' }, onClick: onClickToSign, dataTestId: 'click-to-sign-button' }, { children: "Click to Sign" })))] })));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.DefaultPendingSignModalContent = DefaultPendingSignModalContent;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { __awaiter } from '../../../../../../../_virtual/_tslib.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { isMobile } from '@dynamic-labs/utils';
|
|
4
|
+
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
5
|
+
import { logger } from '@dynamic-labs/wallet-connector-core';
|
|
6
|
+
import 'react';
|
|
7
|
+
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
8
|
+
import '@dynamic-labs/sdk-api';
|
|
9
|
+
import '../../../../../shared/logger.js';
|
|
10
|
+
import '../../../../../config/LSSuffix.js';
|
|
11
|
+
import '@dynamic-labs/iconic';
|
|
12
|
+
import '../../../../../context/ViewContext/ViewContext.js';
|
|
13
|
+
import '../../../../../utils/constants/colors.js';
|
|
14
|
+
import 'ethers';
|
|
15
|
+
import '../../../../../shared/consts/index.js';
|
|
16
|
+
import { useInternalDynamicContext } from '../../../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
17
|
+
import '@dynamic-labs/multi-wallet';
|
|
18
|
+
import '../../../../../components/ShadowDOM/ShadowDOM.js';
|
|
19
|
+
import '../../../../../context/ThemeContext/ThemeContext.js';
|
|
20
|
+
import 'react-dom';
|
|
21
|
+
import 'react-focus-lock';
|
|
22
|
+
import '../../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
23
|
+
import '../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
24
|
+
import '../../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
25
|
+
import '../../../../../config/ApiEndpoint.js';
|
|
26
|
+
import '@dynamic-labs/rpc-providers';
|
|
27
|
+
import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
28
|
+
import '../../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
|
+
import '../../../../../components/IconButton/IconButton.js';
|
|
30
|
+
import { Button } from '../../../../../components/Button/Button.js';
|
|
31
|
+
import '../../../../../components/Alert/Alert.js';
|
|
32
|
+
import '../../../../../context/MockContext/MockContext.js';
|
|
33
|
+
import '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
34
|
+
import { useConnectAndSignSplitSteps } from '../../../../../utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js';
|
|
35
|
+
import '../../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
36
|
+
import '../../../../../components/Popper/Popper/Popper.js';
|
|
37
|
+
import '../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
38
|
+
import 'formik';
|
|
39
|
+
import 'yup';
|
|
40
|
+
import { DefaultPromptModal } from '../../DefaultPromptModal/DefaultPromptModal.js';
|
|
41
|
+
|
|
42
|
+
const DefaultPendingSignModalContent = () => {
|
|
43
|
+
const { selectedWalletConnector, setMultiWalletWidgetState } = useInternalDynamicContext();
|
|
44
|
+
const { signAlreadyConnectedUser } = useConnectAndSignSplitSteps();
|
|
45
|
+
const onClickToSign = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
46
|
+
try {
|
|
47
|
+
if (selectedWalletConnector) {
|
|
48
|
+
yield signAlreadyConnectedUser({
|
|
49
|
+
walletConnector: selectedWalletConnector,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
catch (e) {
|
|
54
|
+
logger.error(e);
|
|
55
|
+
}
|
|
56
|
+
finally {
|
|
57
|
+
setMultiWalletWidgetState('idle');
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
return (jsxs(DefaultPromptModal, Object.assign({ showCloseButton: true, dataTestId: 'pending-account-switch', icon: jsx(WalletIcon, { walletName: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.name }), title: `Sign in with ${selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.name}` }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content' }, { children: "Sign the message in your wallet to approve linking this wallet to your account" })), isMobile() &&
|
|
61
|
+
!(selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.canConnectViaCustodialService) && (jsx(Button, Object.assign({ buttonClassName: 'default-prompt-modal__button', buttonRounded: 'small', expanded: true, type: 'button', buttonPadding: 'medium', typographyProps: { variant: 'button_secondary' }, onClick: onClickToSign, dataTestId: 'click-to-sign-button' }, { children: "Click to Sign" })))] })));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { DefaultPendingSignModalContent };
|
|
@@ -2,47 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _tslib = require('../../../../../../_virtual/_tslib.cjs');
|
|
6
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
6
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
8
7
|
var useInternalDynamicContext = require('../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
9
8
|
var WidgetPortal = require('../../components/WidgetPortal/WidgetPortal.cjs');
|
|
10
|
-
require('@dynamic-labs/utils');
|
|
11
|
-
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
12
|
-
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
13
|
-
require('@dynamic-labs/sdk-api');
|
|
14
|
-
var logger = require('../../../../shared/logger.cjs');
|
|
15
|
-
require('@dynamic-labs/iconic');
|
|
16
|
-
require('react');
|
|
17
|
-
require('../../../../utils/constants/colors.cjs');
|
|
18
|
-
require('ethers');
|
|
19
|
-
require('../../../../shared/consts/index.cjs');
|
|
20
|
-
require('../../../../config/ApiEndpoint.cjs');
|
|
21
|
-
require('@dynamic-labs/multi-wallet');
|
|
22
|
-
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
23
|
-
var useConnectAndSignSplitSteps = require('../../../../utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs');
|
|
24
|
-
var DefaultPendingSignModalContent = require('../../components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs');
|
|
25
9
|
var EmailConnectorPendingSignModalContent = require('../../components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs');
|
|
26
10
|
var EmailOTPConnectorPendingSignModalContent = require('../../components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs');
|
|
11
|
+
var DefaultPendingSignModalContent = require('./DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs');
|
|
27
12
|
|
|
28
13
|
const PendingSignModal = () => {
|
|
29
14
|
const { selectedWalletConnector, setSelectedWalletConnector, setMultiWalletWidgetState, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
30
|
-
const { signAlreadyConnectedUser } = useConnectAndSignSplitSteps.useConnectAndSignSplitSteps();
|
|
31
|
-
const handleClick = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
32
|
-
try {
|
|
33
|
-
if (selectedWalletConnector) {
|
|
34
|
-
yield signAlreadyConnectedUser({
|
|
35
|
-
walletConnector: selectedWalletConnector,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
catch (e) {
|
|
40
|
-
logger.logger.error(e);
|
|
41
|
-
}
|
|
42
|
-
finally {
|
|
43
|
-
setMultiWalletWidgetState('idle');
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
15
|
const handleOnClickBackdrop = () => {
|
|
47
16
|
setMultiWalletWidgetState('idle');
|
|
48
17
|
setSelectedWalletConnector(null);
|
|
@@ -55,7 +24,7 @@ const PendingSignModal = () => {
|
|
|
55
24
|
return (jsxRuntime.jsx(WidgetPortal.WidgetPortal, Object.assign({ onBackdropClick: handleOnClickBackdrop }, { children: jsxRuntime.jsx(EmailConnectorPendingSignModalContent.EmailConnectorPendingSignModalContent, { emailWalletConnector: selectedWalletConnector }) })));
|
|
56
25
|
}
|
|
57
26
|
}
|
|
58
|
-
return
|
|
27
|
+
return jsxRuntime.jsx(DefaultPendingSignModalContent.DefaultPendingSignModalContent, {});
|
|
59
28
|
};
|
|
60
29
|
|
|
61
30
|
exports.PendingSignModal = PendingSignModal;
|
|
@@ -1,44 +1,13 @@
|
|
|
1
|
-
import { __awaiter } from '../../../../../../_virtual/_tslib.js';
|
|
2
1
|
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { isEmailOTPWalletConnector, isEmailWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
4
3
|
import { useInternalDynamicContext } from '../../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
5
4
|
import { WidgetPortal } from '../../components/WidgetPortal/WidgetPortal.js';
|
|
6
|
-
import '@dynamic-labs/utils';
|
|
7
|
-
import '../../../../context/ViewContext/ViewContext.js';
|
|
8
|
-
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
9
|
-
import '@dynamic-labs/sdk-api';
|
|
10
|
-
import { logger } from '../../../../shared/logger.js';
|
|
11
|
-
import '@dynamic-labs/iconic';
|
|
12
|
-
import 'react';
|
|
13
|
-
import '../../../../utils/constants/colors.js';
|
|
14
|
-
import 'ethers';
|
|
15
|
-
import '../../../../shared/consts/index.js';
|
|
16
|
-
import '../../../../config/ApiEndpoint.js';
|
|
17
|
-
import '@dynamic-labs/multi-wallet';
|
|
18
|
-
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
19
|
-
import { useConnectAndSignSplitSteps } from '../../../../utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js';
|
|
20
|
-
import { DefaultPendingSignModalContent } from '../../components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js';
|
|
21
5
|
import { EmailConnectorPendingSignModalContent } from '../../components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js';
|
|
22
6
|
import { EmailOTPConnectorPendingSignModalContent } from '../../components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js';
|
|
7
|
+
import { DefaultPendingSignModalContent } from './DefaultPendingSignModalContent/DefaultPendingSignModalContent.js';
|
|
23
8
|
|
|
24
9
|
const PendingSignModal = () => {
|
|
25
10
|
const { selectedWalletConnector, setSelectedWalletConnector, setMultiWalletWidgetState, } = useInternalDynamicContext();
|
|
26
|
-
const { signAlreadyConnectedUser } = useConnectAndSignSplitSteps();
|
|
27
|
-
const handleClick = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
28
|
-
try {
|
|
29
|
-
if (selectedWalletConnector) {
|
|
30
|
-
yield signAlreadyConnectedUser({
|
|
31
|
-
walletConnector: selectedWalletConnector,
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
catch (e) {
|
|
36
|
-
logger.error(e);
|
|
37
|
-
}
|
|
38
|
-
finally {
|
|
39
|
-
setMultiWalletWidgetState('idle');
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
11
|
const handleOnClickBackdrop = () => {
|
|
43
12
|
setMultiWalletWidgetState('idle');
|
|
44
13
|
setSelectedWalletConnector(null);
|
|
@@ -51,7 +20,7 @@ const PendingSignModal = () => {
|
|
|
51
20
|
return (jsx(WidgetPortal, Object.assign({ onBackdropClick: handleOnClickBackdrop }, { children: jsx(EmailConnectorPendingSignModalContent, { emailWalletConnector: selectedWalletConnector }) })));
|
|
52
21
|
}
|
|
53
22
|
}
|
|
54
|
-
return
|
|
23
|
+
return jsx(DefaultPendingSignModalContent, {});
|
|
55
24
|
};
|
|
56
25
|
|
|
57
26
|
export { PendingSignModal };
|
package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs
CHANGED
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var React = require('react');
|
|
7
6
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
7
|
+
require('react');
|
|
8
8
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
9
9
|
require('@dynamic-labs/sdk-api');
|
|
10
10
|
require('../../../../shared/logger.cjs');
|
|
11
|
+
require('../../../../config/LSSuffix.cjs');
|
|
11
12
|
require('@dynamic-labs/iconic');
|
|
12
13
|
require('@dynamic-labs/wallet-connector-core');
|
|
13
14
|
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
@@ -28,21 +29,24 @@ require('../../../../components/Transition/OpacityTransition/OpacityTransition.c
|
|
|
28
29
|
require('../../../../config/ApiEndpoint.cjs');
|
|
29
30
|
require('@dynamic-labs/rpc-providers');
|
|
30
31
|
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
32
|
+
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
|
+
require('../../../../components/IconButton/IconButton.cjs');
|
|
34
|
+
require('../../../../components/Alert/Alert.cjs');
|
|
31
35
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
32
36
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
33
37
|
require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
34
|
-
require('../../../../components/IconButton/IconButton.cjs');
|
|
35
|
-
require('../../../../components/Alert/Alert.cjs');
|
|
36
|
-
var IconWithSpinner = require('../../../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
37
38
|
var LogoutButton = require('../../../../components/LogoutButton/LogoutButton.cjs');
|
|
38
|
-
|
|
39
|
+
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
40
|
+
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
41
|
+
require('formik');
|
|
42
|
+
require('yup');
|
|
43
|
+
var Divider = require('../../../../components/Divider/Divider.cjs');
|
|
44
|
+
var DefaultPromptModal = require('../DefaultPromptModal/DefaultPromptModal.cjs');
|
|
39
45
|
|
|
40
46
|
const PrimaryNotConnectedModal = () => {
|
|
41
47
|
var _a;
|
|
42
48
|
const { primaryWallet } = useInternalDynamicContext.useInternalDynamicContext();
|
|
43
|
-
|
|
44
|
-
const primaryWalletCopy = React.useMemo(() => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: ["to", ' ', jsxRuntime.jsx("span", Object.assign({ className: 'primary-not-connected__content-bold' }, { children: shortenWalletAddress.shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 4, 4) })), ' ', "in", ' ', jsxRuntime.jsx("span", Object.assign({ className: 'primary-not-connected__content-bold' }, { children: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name })), ' '] })), [primaryWallet]);
|
|
45
|
-
return (jsxRuntime.jsxs(WidgetPortal.WidgetPortal, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'primary-not-connected__prompt-container' }, { children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: 96, isSpinning: true }) })), jsxRuntime.jsx("div", Object.assign({ className: 'primary-not-connected__content-container' }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'primary-not-connected__content', "data-testid": 'wallet-not-connected' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary' }, { children: "Update your active wallet" })), jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: ["Update your active wallet ", primaryWallet && primaryWalletCopy, "to reconnect."] }))] })) })), jsxRuntime.jsx(LogoutButton.LogoutButton, { buttonClassName: 'primary-not-connected__logout-button' })] }));
|
|
49
|
+
return (jsxRuntime.jsxs(DefaultPromptModal.DefaultPromptModal, Object.assign({ dataTestId: 'wallet-not-connected', icon: jsxRuntime.jsx(walletBook.WalletIcon, { walletName: (_a = primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector) === null || _a === void 0 ? void 0 : _a.name }), title: `Switch wallet in ${primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name}` }, { children: [jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content' }, { children: ["Your active wallet in", ' ', jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'span', weight: 'medium', color: 'primary' }, { children: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name })), ' ', "is not linked. Please switch to wallet", ' ', jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'span', weight: 'medium', color: 'primary' }, { children: shortenWalletAddress.shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) })), ' ', "to log in."] })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content' }, { children: "You can link this wallet to this account after you log in." })), jsxRuntime.jsx(Divider.Divider, { fullWidth: true, text: 'Or' }), jsxRuntime.jsx(LogoutButton.LogoutButton, { isTextButton: false, buttonClassName: 'primary-not-connected__log-out-button' })] })));
|
|
46
50
|
};
|
|
47
51
|
|
|
48
52
|
exports.PrimaryNotConnectedModal = PrimaryNotConnectedModal;
|
package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useMemo } from 'react';
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
3
|
+
import 'react';
|
|
4
4
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
5
5
|
import '@dynamic-labs/sdk-api';
|
|
6
6
|
import '../../../../shared/logger.js';
|
|
7
|
+
import '../../../../config/LSSuffix.js';
|
|
7
8
|
import '@dynamic-labs/iconic';
|
|
8
9
|
import '@dynamic-labs/wallet-connector-core';
|
|
9
10
|
import '../../../../context/ViewContext/ViewContext.js';
|
|
@@ -24,21 +25,24 @@ import '../../../../components/Transition/OpacityTransition/OpacityTransition.js
|
|
|
24
25
|
import '../../../../config/ApiEndpoint.js';
|
|
25
26
|
import '@dynamic-labs/rpc-providers';
|
|
26
27
|
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
28
|
+
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
|
+
import '../../../../components/IconButton/IconButton.js';
|
|
30
|
+
import '../../../../components/Alert/Alert.js';
|
|
27
31
|
import '../../../../context/MockContext/MockContext.js';
|
|
28
32
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
29
33
|
import '../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
30
|
-
import '../../../../components/IconButton/IconButton.js';
|
|
31
|
-
import '../../../../components/Alert/Alert.js';
|
|
32
|
-
import { IconWithSpinner } from '../../../../components/IconWithSpinner/IconWithSpinner.js';
|
|
33
34
|
import { LogoutButton } from '../../../../components/LogoutButton/LogoutButton.js';
|
|
34
|
-
import
|
|
35
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
36
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
37
|
+
import 'formik';
|
|
38
|
+
import 'yup';
|
|
39
|
+
import { Divider } from '../../../../components/Divider/Divider.js';
|
|
40
|
+
import { DefaultPromptModal } from '../DefaultPromptModal/DefaultPromptModal.js';
|
|
35
41
|
|
|
36
42
|
const PrimaryNotConnectedModal = () => {
|
|
37
43
|
var _a;
|
|
38
44
|
const { primaryWallet } = useInternalDynamicContext();
|
|
39
|
-
|
|
40
|
-
const primaryWalletCopy = useMemo(() => (jsxs(Fragment, { children: ["to", ' ', jsx("span", Object.assign({ className: 'primary-not-connected__content-bold' }, { children: shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 4, 4) })), ' ', "in", ' ', jsx("span", Object.assign({ className: 'primary-not-connected__content-bold' }, { children: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name })), ' '] })), [primaryWallet]);
|
|
41
|
-
return (jsxs(WidgetPortal, { children: [jsx("div", Object.assign({ className: 'primary-not-connected__prompt-container' }, { children: jsx(IconWithSpinner, { Icon: icon, iconSize: 96, isSpinning: true }) })), jsx("div", Object.assign({ className: 'primary-not-connected__content-container' }, { children: jsxs("div", Object.assign({ className: 'primary-not-connected__content', "data-testid": 'wallet-not-connected' }, { children: [jsx(Typography, Object.assign({ variant: 'title', color: 'primary' }, { children: "Update your active wallet" })), jsxs(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: ["Update your active wallet ", primaryWallet && primaryWalletCopy, "to reconnect."] }))] })) })), jsx(LogoutButton, { buttonClassName: 'primary-not-connected__logout-button' })] }));
|
|
45
|
+
return (jsxs(DefaultPromptModal, Object.assign({ dataTestId: 'wallet-not-connected', icon: jsx(WalletIcon, { walletName: (_a = primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector) === null || _a === void 0 ? void 0 : _a.name }), title: `Switch wallet in ${primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name}` }, { children: [jsxs(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content' }, { children: ["Your active wallet in", ' ', jsx(Typography, Object.assign({ as: 'span', weight: 'medium', color: 'primary' }, { children: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name })), ' ', "is not linked. Please switch to wallet", ' ', jsx(Typography, Object.assign({ as: 'span', weight: 'medium', color: 'primary' }, { children: shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) })), ' ', "to log in."] })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content' }, { children: "You can link this wallet to this account after you log in." })), jsx(Divider, { fullWidth: true, text: 'Or' }), jsx(LogoutButton, { isTextButton: false, buttonClassName: 'primary-not-connected__log-out-button' })] })));
|
|
42
46
|
};
|
|
43
47
|
|
|
44
48
|
export { PrimaryNotConnectedModal };
|
|
@@ -10,6 +10,7 @@ require('react');
|
|
|
10
10
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
11
11
|
require('@dynamic-labs/sdk-api');
|
|
12
12
|
require('../../../../shared/logger.cjs');
|
|
13
|
+
require('../../../../config/LSSuffix.cjs');
|
|
13
14
|
require('@dynamic-labs/iconic');
|
|
14
15
|
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
15
16
|
var link = require('../../../../shared/assets/link.cjs');
|
|
@@ -33,13 +34,18 @@ require('../../../../components/Transition/OpacityTransition/OpacityTransition.c
|
|
|
33
34
|
require('../../../../config/ApiEndpoint.cjs');
|
|
34
35
|
require('@dynamic-labs/rpc-providers');
|
|
35
36
|
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
37
|
+
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
38
|
+
require('../../../../components/IconButton/IconButton.cjs');
|
|
39
|
+
require('../../../../components/Alert/Alert.cjs');
|
|
36
40
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
37
41
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
38
42
|
require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
39
43
|
var CopyButton = require('../../../../components/CopyButton/CopyButton.cjs');
|
|
40
|
-
require('../../../../components/IconButton/IconButton.cjs');
|
|
41
44
|
var TextButton = require('../../../../components/TextButton/TextButton.cjs');
|
|
42
|
-
require('../../../../components/
|
|
45
|
+
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
46
|
+
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
47
|
+
require('formik');
|
|
48
|
+
require('yup');
|
|
43
49
|
|
|
44
50
|
const QrCodeModalView = ({ walletId }) => {
|
|
45
51
|
var _a;
|
|
@@ -58,7 +64,7 @@ const QrCodeModalView = ({ walletId }) => {
|
|
|
58
64
|
// can't use theme because it's string instead of 'light' | 'dark'
|
|
59
65
|
const typedTheme = theme.theme.name === 'light' ? 'light' : 'dark';
|
|
60
66
|
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletName, style: { height: pixelToRem.pixelToRem(24), width: pixelToRem.pixelToRem(24) } }));
|
|
61
|
-
return (jsxRuntime.jsxs("div", Object.assign({ className: 'qr-code-modal-view' }, { children: [jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'button_primary', color: 'primary', className: 'qr-code-modal-view__title' }, { children: ["Connect with ", newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.connector.name] })), jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'body_small', color: 'secondary', className: 'qr-code-modal-view__title' }, { children: ["Connect wallet", ' ', jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'span', weight: '
|
|
67
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'qr-code-modal-view' }, { children: [jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'button_primary', color: 'primary', className: 'qr-code-modal-view__title' }, { children: ["Connect with ", newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.connector.name] })), jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'body_small', color: 'secondary', className: 'qr-code-modal-view__title' }, { children: ["Connect wallet", ' ', jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'span', weight: 'medium', color: 'primary' }, { children: shortenWalletAddress.shortenWalletAddress(newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.address, 4, 4) })), ' ', "to switch active account."] })), jsxRuntime.jsx("div", Object.assign({ className: 'qr-code-modal-view__container' }, { children: jsxRuntime.jsx("div", Object.assign({ className: 'qr-code-modal-view__wrapper' }, { children: qrcodeUri ? (jsxRuntime.jsx(QRCode.QRCode, { Icon: icon, accentColor: qrCodeColorsByTheme[typedTheme].accentColor, value: qrcodeUri, size: 175, logoSize: 40, walletName: walletConnectorCore.normalizeWalletName(walletName) })) : (
|
|
62
68
|
// this div exists to give the parent a child, so that the parent
|
|
63
69
|
// takes on its given width and height. the result is stable
|
|
64
70
|
// rendering of this component, without this there is a brief flash
|
|
@@ -6,6 +6,7 @@ import 'react';
|
|
|
6
6
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
7
7
|
import '@dynamic-labs/sdk-api';
|
|
8
8
|
import '../../../../shared/logger.js';
|
|
9
|
+
import '../../../../config/LSSuffix.js';
|
|
9
10
|
import '@dynamic-labs/iconic';
|
|
10
11
|
import '../../../../context/ViewContext/ViewContext.js';
|
|
11
12
|
import { ReactComponent as SvgLink } from '../../../../shared/assets/link.js';
|
|
@@ -29,13 +30,18 @@ import '../../../../components/Transition/OpacityTransition/OpacityTransition.js
|
|
|
29
30
|
import '../../../../config/ApiEndpoint.js';
|
|
30
31
|
import '@dynamic-labs/rpc-providers';
|
|
31
32
|
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
33
|
+
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
34
|
+
import '../../../../components/IconButton/IconButton.js';
|
|
35
|
+
import '../../../../components/Alert/Alert.js';
|
|
32
36
|
import '../../../../context/MockContext/MockContext.js';
|
|
33
37
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
34
38
|
import '../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
35
39
|
import { CopyButton } from '../../../../components/CopyButton/CopyButton.js';
|
|
36
|
-
import '../../../../components/IconButton/IconButton.js';
|
|
37
40
|
import { TextButton } from '../../../../components/TextButton/TextButton.js';
|
|
38
|
-
import '../../../../components/
|
|
41
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
42
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
43
|
+
import 'formik';
|
|
44
|
+
import 'yup';
|
|
39
45
|
|
|
40
46
|
const QrCodeModalView = ({ walletId }) => {
|
|
41
47
|
var _a;
|
|
@@ -54,7 +60,7 @@ const QrCodeModalView = ({ walletId }) => {
|
|
|
54
60
|
// can't use theme because it's string instead of 'light' | 'dark'
|
|
55
61
|
const typedTheme = theme.theme.name === 'light' ? 'light' : 'dark';
|
|
56
62
|
const icon = (jsx(WalletIcon, { walletName: walletName, style: { height: pixelToRem(24), width: pixelToRem(24) } }));
|
|
57
|
-
return (jsxs("div", Object.assign({ className: 'qr-code-modal-view' }, { children: [jsxs(Typography, Object.assign({ variant: 'button_primary', color: 'primary', className: 'qr-code-modal-view__title' }, { children: ["Connect with ", newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.connector.name] })), jsxs(Typography, Object.assign({ variant: 'body_small', color: 'secondary', className: 'qr-code-modal-view__title' }, { children: ["Connect wallet", ' ', jsx(Typography, Object.assign({ as: 'span', weight: '
|
|
63
|
+
return (jsxs("div", Object.assign({ className: 'qr-code-modal-view' }, { children: [jsxs(Typography, Object.assign({ variant: 'button_primary', color: 'primary', className: 'qr-code-modal-view__title' }, { children: ["Connect with ", newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.connector.name] })), jsxs(Typography, Object.assign({ variant: 'body_small', color: 'secondary', className: 'qr-code-modal-view__title' }, { children: ["Connect wallet", ' ', jsx(Typography, Object.assign({ as: 'span', weight: 'medium', color: 'primary' }, { children: shortenWalletAddress(newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.address, 4, 4) })), ' ', "to switch active account."] })), jsx("div", Object.assign({ className: 'qr-code-modal-view__container' }, { children: jsx("div", Object.assign({ className: 'qr-code-modal-view__wrapper' }, { children: qrcodeUri ? (jsx(QRCode, { Icon: icon, accentColor: qrCodeColorsByTheme[typedTheme].accentColor, value: qrcodeUri, size: 175, logoSize: 40, walletName: normalizeWalletName(walletName) })) : (
|
|
58
64
|
// this div exists to give the parent a child, so that the parent
|
|
59
65
|
// takes on its given width and height. the result is stable
|
|
60
66
|
// rendering of this component, without this there is a brief flash
|