@dynamic-labs/sdk-react-core 0.18.0-RC.2 → 0.18.0-RC.21
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 +295 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +9 -9
- package/src/index.cjs +22 -8
- package/src/index.d.ts +1 -0
- package/src/index.js +10 -2
- package/src/lib/Main.cjs +50 -9
- package/src/lib/Main.js +50 -9
- package/src/lib/assets/index.d.ts +1 -0
- package/src/lib/assets/no-wallet-found.cjs +75 -0
- package/src/lib/assets/no-wallet-found.js +51 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +8 -4
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +9 -5
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.types.d.ts +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +3 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +3 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +3 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +3 -1
- package/src/lib/components/Badge/Badge.cjs +1 -1
- package/src/lib/components/Badge/Badge.js +1 -1
- package/src/lib/components/Button/Button.cjs +12 -4
- package/src/lib/components/Button/Button.d.ts +3 -2
- package/src/lib/components/Button/Button.js +12 -4
- package/src/lib/components/ChainCard/ChainCard.cjs +11 -0
- package/src/lib/components/ChainCard/ChainCard.d.ts +4 -2
- package/src/lib/components/ChainCard/ChainCard.js +7 -0
- package/src/lib/components/Divider/Divider.cjs +3 -1
- package/src/lib/components/Divider/Divider.js +3 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +2 -5
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.d.ts +1 -9
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +2 -4
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.cjs +11 -0
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.d.ts +9 -0
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.js +7 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +2 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +2 -2
- package/src/lib/components/InlineWidget/InlineWidget.cjs +12 -0
- package/src/lib/components/InlineWidget/InlineWidget.d.ts +7 -0
- package/src/lib/components/InlineWidget/InlineWidget.js +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.cjs +12 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.d.ts +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.js +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/index.d.ts +1 -0
- package/src/lib/components/InlineWidget/components/index.d.ts +1 -0
- package/src/lib/components/InlineWidget/index.d.ts +2 -0
- package/src/lib/components/LegacySafariCssOverrides/LegacySafariCssOverrides.cjs +9 -0
- package/src/lib/components/LegacySafariCssOverrides/LegacySafariCssOverrides.d.ts +2 -0
- package/src/lib/components/LegacySafariCssOverrides/LegacySafariCssOverrides.js +5 -0
- package/src/lib/components/LegacySafariCssOverrides/index.d.ts +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +17 -3
- package/src/lib/components/LogoutButton/LogoutButton.js +17 -3
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +85 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.d.ts +16 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +81 -0
- package/src/lib/components/MenuList/Dropdown/index.d.ts +1 -0
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +34 -0
- package/src/lib/components/MenuList/MenuList/MenuList.d.ts +15 -0
- package/src/lib/components/MenuList/MenuList/MenuList.js +30 -0
- package/src/lib/components/MenuList/MenuList/index.d.ts +1 -0
- package/src/lib/components/MenuList/index.d.ts +1 -0
- package/src/lib/components/MenuList/utils/index.d.ts +1 -0
- package/src/lib/components/{Popper → MenuList}/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.cjs +6 -1
- package/src/lib/components/MenuList/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.d.ts +5 -0
- package/src/lib/components/{Popper → MenuList}/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.js +6 -1
- package/src/lib/components/Modal/Modal.cjs +38 -1
- package/src/lib/components/Modal/Modal.d.ts +3 -0
- package/src/lib/components/Modal/Modal.js +38 -1
- package/src/lib/components/ModalCard/ModalCard.cjs +4 -1
- package/src/lib/components/ModalCard/ModalCard.d.ts +6 -1
- package/src/lib/components/ModalCard/ModalCard.js +4 -1
- package/src/lib/components/ModalHeader/ModalHeader.types.d.ts +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +33 -11
- package/src/lib/components/NetworkPicker/NetworkPicker.js +33 -11
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +3 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +6 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.d.ts +2 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.js +6 -2
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.cjs +6 -1
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.d.ts +2 -1
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.js +6 -1
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.cjs +0 -5
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.d.ts +1 -1
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.js +0 -5
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +3 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +5 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +0 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +5 -4
- package/src/lib/components/OverlayCard/OverlayCard.cjs +12 -12
- package/src/lib/components/OverlayCard/OverlayCard.d.ts +4 -2
- package/src/lib/components/OverlayCard/OverlayCard.js +13 -12
- package/src/lib/components/Popper/Popper/Popper.cjs +12 -12
- package/src/lib/components/Popper/Popper/Popper.d.ts +7 -4
- package/src/lib/components/Popper/Popper/Popper.js +12 -12
- package/src/lib/components/Popper/PopperContent/PopperContent.cjs +1 -1
- package/src/lib/components/Popper/PopperContent/PopperContent.d.ts +2 -1
- package/src/lib/components/Popper/PopperContent/PopperContent.js +1 -1
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.cjs +1 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.d.ts +1 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.js +1 -0
- package/src/lib/components/Popper/utils/index.d.ts +0 -1
- package/src/lib/components/Portal/Portal.cjs +5 -3
- package/src/lib/components/Portal/Portal.js +5 -3
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +9 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +9 -1
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.cjs +12 -0
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.d.ts +0 -2
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +8 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +4 -2
- package/src/lib/components/ShadowDOM/ShadowDOM.js +4 -2
- package/src/lib/components/Step/Step.cjs +35 -3
- package/src/lib/components/Step/Step.d.ts +3 -3
- package/src/lib/components/Step/Step.js +36 -4
- package/src/lib/components/Toolkit/Toolkit.cjs +3 -3
- package/src/lib/components/Toolkit/Toolkit.js +3 -3
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.cjs +18 -0
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.d.ts +8 -0
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.js +14 -0
- package/src/lib/components/Toolkit/components/index.d.ts +1 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +4 -2
- package/src/lib/components/Tooltip/Tooltip.js +4 -2
- package/src/lib/components/TosAndPp/TosAndPp.cjs +21 -5
- package/src/lib/components/TosAndPp/TosAndPp.d.ts +1 -7
- package/src/lib/components/TosAndPp/TosAndPp.js +22 -6
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +4 -2
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +4 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +3 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +3 -1
- package/src/lib/components/Transition/transition.type.d.ts +3 -3
- package/src/lib/components/UserAddress/UserAddress.cjs +31 -2
- package/src/lib/components/UserAddress/UserAddress.d.ts +4 -2
- package/src/lib/components/UserAddress/UserAddress.js +31 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +4 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +4 -2
- package/src/lib/components/WalletInformationCard/WalletInformationCard.cjs +33 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.d.ts +11 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.js +29 -0
- package/src/lib/components/WalletInformationCard/index.d.ts +1 -0
- package/src/lib/components/index.d.ts +3 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +198 -85
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +13 -124
- package/src/lib/context/DynamicContext/DynamicContext.js +199 -87
- package/src/lib/context/DynamicContext/helpers.cjs +16 -3
- package/src/lib/context/DynamicContext/helpers.d.ts +8 -0
- package/src/lib/context/DynamicContext/helpers.js +16 -4
- package/src/lib/context/DynamicContext/hooks/index.d.ts +4 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +1 -1
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.cjs +33 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.js +29 -0
- package/src/lib/context/DynamicContext/types/index.d.ts +143 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +7 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +3 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +3 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +9 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +9 -3
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +6 -3
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +2 -2
- package/src/lib/context/DynamicContext/useDynamicContext.js +6 -3
- package/src/lib/context/DynamicContext/useInternalDynamicContext.d.ts +1 -1
- package/src/lib/context/ErrorContext/ErrorContext.cjs +6 -0
- package/src/lib/context/ErrorContext/ErrorContext.js +6 -0
- package/src/lib/context/FundingContext/FundingContext.cjs +13 -1
- package/src/lib/context/FundingContext/FundingContext.js +13 -1
- package/src/lib/context/MockContext/MockContext.cjs +2 -14
- package/src/lib/context/MockContext/MockContext.js +2 -14
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +3 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.js +3 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +3 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +3 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +4 -2
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +4 -2
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +48 -0
- package/src/lib/context/WalletContext/WalletContext.d.ts +7 -0
- package/src/lib/context/WalletContext/WalletContext.js +43 -0
- package/src/lib/context/WalletContext/index.d.ts +1 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.cjs +37 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.d.ts +9 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.js +27 -0
- package/src/lib/data/api.cjs +19 -0
- package/src/lib/data/api.d.ts +4 -0
- package/src/lib/data/api.js +20 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +20 -57
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.d.ts +1 -6
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +21 -58
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +38 -16
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +39 -17
- package/src/lib/layout/DynamicAuthLayout/Header/header.types.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/EmptyFooterContent/empty-footer-content.cjs → HelpContent/EmptyHelpContent/EmptyHelpContent.cjs} +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/EmptyHelpContent/EmptyHelpContent.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/EmptyHelpContent/EmptyHelpContent.js +6 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/EmptyHelpContent/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +36 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +32 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +57 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +53 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/Item.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/Item.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/NewToWeb3WalletItem.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/NewToWeb3WalletItem.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent/WalletListFooterContent.cjs → HelpContent/WalletListHelpContent/WalletListHelpContent.cjs} +11 -5
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent/WalletListFooterContent.d.ts → HelpContent/WalletListHelpContent/WalletListHelpContent.d.ts} +1 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent/WalletListFooterContent.js → HelpContent/WalletListHelpContent/WalletListHelpContent.js} +11 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/WalletMoreInfoContent.cjs +6 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +7 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/WalletMoreInfoContent.js +6 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/index.d.ts +4 -0
- package/src/lib/{views/WalletList/SearchInstead/SearchInstead.cjs → layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs} +10 -4
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.d.ts +2 -0
- package/src/lib/{views/WalletList/SearchInstead/SearchInstead.js → layout/DynamicAuthLayout/ToSFooter/ToSFooter.js} +11 -5
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +60 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +56 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.cjs +18 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.d.ts +3 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.js +14 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/utils/index.d.ts +1 -0
- package/src/lib/layouts/{SelectWalletListLayout/SelectWalletListLayout.cjs → BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs} +7 -6
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.d.ts +9 -0
- package/src/lib/layouts/{SelectWalletListLayout/SelectWalletListLayout.js → BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js} +7 -6
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/index.d.ts +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +3 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +3 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +5 -3
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.d.ts +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +5 -3
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +3 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +3 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +3 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +3 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +3 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +3 -1
- package/src/lib/modals/index.d.ts +0 -1
- package/src/lib/shared/assets/chevron-left.cjs +5 -5
- package/src/lib/shared/assets/chevron-left.js +5 -5
- package/src/lib/shared/assets/close.cjs +5 -5
- package/src/lib/shared/assets/close.js +5 -5
- package/src/lib/shared/assets/footer-info-icon.cjs +2 -2
- package/src/lib/shared/assets/footer-info-icon.js +2 -2
- package/src/lib/shared/assets/index.d.ts +2 -0
- package/src/lib/shared/assets/key.cjs +53 -0
- package/src/lib/shared/assets/key.js +29 -0
- package/src/lib/shared/assets/question-mark.cjs +58 -0
- package/src/lib/shared/assets/question-mark.js +34 -0
- package/src/lib/shared/types/index.d.ts +8 -1
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +45 -7
- package/src/lib/shared/utils/classes/storage/localStorage.d.ts +17 -2
- package/src/lib/shared/utils/classes/storage/localStorage.js +45 -7
- package/src/lib/shared/utils/hooks/index.d.ts +3 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/useEffectOnce.cjs +27 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/useEffectOnce.d.ts +17 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/useEffectOnce.js +23 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/useForwardedRef.cjs +25 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/useForwardedRef.d.ts +2 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/useForwardedRef.js +21 -0
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs +6 -1
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.d.ts +3 -1
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +6 -1
- package/src/lib/shared/utils/hooks/useMediaQuery/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useMediaQuery/useMediaQuery.cjs +31 -0
- package/src/lib/shared/utils/hooks/useMediaQuery/useMediaQuery.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useMediaQuery/useMediaQuery.js +27 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +3 -1
- package/src/lib/utils/constants/localStorage.d.ts +1 -0
- package/src/lib/utils/constants/localStorage.js +3 -2
- package/src/lib/utils/constants/onrampProviders.cjs +7 -0
- package/src/lib/utils/constants/onrampProviders.d.ts +1 -0
- package/src/lib/utils/constants/onrampProviders.js +3 -0
- package/src/lib/utils/functions/createUserProfile/createUserProfile.cjs +10 -1
- package/src/lib/utils/functions/createUserProfile/createUserProfile.js +10 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +3 -3
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +3 -3
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +7 -27
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.d.ts +3 -4
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +8 -28
- package/src/lib/utils/functions/getMissingChains/getMissingChains.cjs +16 -0
- package/src/lib/utils/functions/getMissingChains/getMissingChains.d.ts +3 -0
- package/src/lib/utils/functions/getMissingChains/getMissingChains.js +12 -0
- package/src/lib/utils/functions/getMissingChains/index.d.ts +1 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.cjs +12 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.d.ts +3 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.js +8 -0
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.cjs +3 -1
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.d.ts +1 -1
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.js +3 -1
- package/src/lib/utils/functions/index.d.ts +3 -0
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs +4 -2
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js +4 -2
- package/src/lib/utils/functions/isOnrampProvider/index.d.ts +1 -0
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.cjs +9 -0
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.d.ts +2 -0
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.js +5 -0
- package/src/lib/utils/functions/isProviderEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.cjs +7 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.js +3 -0
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.cjs +2 -2
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.d.ts +1 -1
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.js +2 -2
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.cjs +8 -8
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.js +8 -8
- package/src/lib/utils/functions/storeAuthToken/index.cjs +1 -3
- package/src/lib/utils/functions/storeAuthToken/index.js +1 -3
- package/src/lib/utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.d.ts +2 -4
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +1 -1
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +32 -6
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +33 -7
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +13 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +13 -2
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -16
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -16
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +16 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +16 -0
- package/src/lib/utils/hooks/index.d.ts +6 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +17 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.d.ts +8 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +13 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +24 -5
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +5 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +24 -5
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +8 -11
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +8 -11
- package/src/lib/utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.cjs +29 -0
- package/src/lib/utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.d.ts +5 -0
- package/src/lib/utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.js +25 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +84 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +11 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +80 -0
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +16 -3
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +16 -3
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +16 -18
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +16 -18
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +128 -86
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +27 -13
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +129 -87
- package/src/lib/utils/hooks/useConnectWithEmail/index.d.ts +1 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +6 -4
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.d.ts +1 -4
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +6 -4
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.cjs +11 -18
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.js +11 -18
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +69 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.d.ts +1 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +65 -0
- package/src/lib/utils/hooks/useCountdown/useCountdown.cjs +39 -0
- package/src/lib/utils/hooks/useCountdown/useCountdown.d.ts +11 -0
- package/src/lib/utils/hooks/useCountdown/useCountdown.js +35 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +5 -4
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +5 -4
- package/src/lib/utils/hooks/useDynamicScopes/index.d.ts +1 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +40 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.d.ts +6 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +36 -0
- package/src/lib/utils/hooks/useEmailProvider/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +54 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.d.ts +10 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +50 -0
- package/src/lib/utils/hooks/useEventListener/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEventListener/useEventListener.cjs +25 -0
- package/src/lib/utils/hooks/useEventListener/useEventListener.d.ts +1 -0
- package/src/lib/utils/hooks/useEventListener/useEventListener.js +21 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +2 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.d.ts +3 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +3 -2
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +6 -10
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +7 -11
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +20 -5
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +20 -5
- package/src/lib/utils/hooks/useInterval/useInterval.d.ts +1 -0
- package/src/lib/utils/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.cjs +10 -0
- package/src/lib/utils/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +2 -0
- package/src/lib/utils/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +6 -0
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.cjs +6 -8
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.js +7 -9
- package/src/lib/utils/hooks/usePromise/usePromise.cjs +74 -17
- package/src/lib/utils/hooks/usePromise/usePromise.d.ts +18 -1
- package/src/lib/utils/hooks/usePromise/usePromise.js +75 -18
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +6 -28
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.d.ts +0 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +7 -29
- package/src/lib/utils/hooks/useTimeout/useTimeout.cjs +27 -0
- package/src/lib/utils/hooks/useTimeout/useTimeout.d.ts +1 -0
- package/src/lib/utils/hooks/useTimeout/useTimeout.js +23 -0
- package/src/lib/utils/hooks/useTransition/useTransition.cjs +16 -24
- package/src/lib/utils/hooks/useTransition/useTransition.d.ts +3 -3
- package/src/lib/utils/hooks/useTransition/useTransition.js +17 -25
- package/src/lib/utils/hooks/useTransitionEvents/useTransitionEvents.cjs +11 -9
- package/src/lib/utils/hooks/useTransitionEvents/useTransitionEvents.js +11 -9
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +4 -3
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +4 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +23 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.d.ts +8 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +23 -6
- package/src/lib/utils/hooks/useValidateSession/index.d.ts +1 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +82 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +12 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +78 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +13 -20
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +14 -21
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +12 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +4 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +12 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +32 -4
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +5 -4
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +32 -4
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +6 -6
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +6 -6
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +3 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +3 -1
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +10 -1
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +2 -1
- package/src/lib/utils/hooks/useWallets/useWallets.js +11 -2
- package/src/lib/utils/hooks/useWallets/utils/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +35 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.d.ts +6 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +29 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +38 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.d.ts +2 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +34 -0
- package/src/lib/views/BridgeNextWalletConnectionView/index.d.ts +1 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +44 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.d.ts +2 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +40 -0
- package/src/lib/views/BridgeSummaryView/index.d.ts +1 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +48 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.d.ts +2 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +44 -0
- package/src/lib/views/BridgeWelcomeView/index.d.ts +1 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +4 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +4 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +4 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +4 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +13 -4
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +13 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +3 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +3 -1
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +8 -4
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +8 -4
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +4 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +4 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +5 -4
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +5 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +5 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.js +5 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +19 -27
- package/src/lib/views/EmailVerification/EmailVerification.js +20 -28
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +5 -3
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +5 -3
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +4 -2
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +4 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +4 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +4 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +28 -52
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +28 -52
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +2 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +2 -2
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +10 -6
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +10 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +27 -22
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +28 -23
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +25 -21
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +25 -21
- package/src/lib/views/NoAccess/NoAccess.cjs +15 -22
- package/src/lib/views/NoAccess/NoAccess.js +15 -22
- package/src/lib/views/NoAccess/useNoAccessText.cjs +93 -0
- package/src/lib/views/NoAccess/useNoAccessText.d.ts +31 -0
- package/src/lib/views/NoAccess/useNoAccessText.js +88 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +3 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +3 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +3 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +3 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +5 -4
- package/src/lib/views/PendingConnectView/PendingConnectView.js +5 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +5 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +5 -4
- package/src/lib/views/QrCodeView/QRCode.cjs +37 -4
- package/src/lib/views/QrCodeView/QRCode.js +38 -5
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +5 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +1 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +5 -3
- package/src/lib/views/QrCodeView/QrCodeView.cjs +8 -9
- package/src/lib/views/QrCodeView/QrCodeView.js +8 -9
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +3 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +3 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +5 -5
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +5 -5
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +3 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +3 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +3 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +3 -1
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +15 -0
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +15 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +3 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +3 -1
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +21 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.d.ts +2 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.js +17 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +55 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.d.ts +6 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +51 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +48 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.d.ts +8 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +44 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/index.d.ts +1 -0
- package/src/lib/views/WalletList/WalletList.cjs +10 -9
- package/src/lib/views/WalletList/WalletList.js +11 -10
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +12 -5
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +12 -5
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.types.d.ts +1 -2
- package/src/lib/views/WalletList/data.cjs +2 -1
- package/src/lib/views/WalletList/data.js +2 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +64 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.d.ts +2 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.js +60 -0
- package/src/lib/views/WalletLockedView/index.d.ts +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +3 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +3 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +6 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.js +6 -1
- package/src/lib/views/viewToComponentMap.cjs +11 -0
- package/src/lib/views/viewToComponentMap.js +11 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +18 -10
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +19 -11
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.d.ts +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +30 -9
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +31 -10
- package/src/lib/{modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.cjs → widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs} +18 -29
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.d.ts +7 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +56 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/index.d.ts +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +15 -11
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +15 -11
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +11 -11
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.d.ts +6 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +12 -12
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +15 -7
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +21 -8
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +21 -8
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +7 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +5 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +7 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.types.d.ts +2 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +6 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +6 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +15 -4
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +15 -4
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +3 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +3 -1
- package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +35 -2
- package/src/lib/widgets/DynamicWidget/helpers/helpers.d.ts +3 -0
- package/src/lib/widgets/DynamicWidget/helpers/helpers.js +35 -3
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +4 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +3 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +3 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +3 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +3 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +3 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +3 -1
- package/src/polyfills.cjs +1 -2
- package/src/polyfills.js +1 -2
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +0 -70
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.d.ts +0 -12
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +0 -64
- package/src/lib/components/NetworkPicker/components/ActionList/index.d.ts +0 -1
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.d.ts +0 -1
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.cjs +0 -22
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.d.ts +0 -2
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.js +0 -18
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +0 -66
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.d.ts +0 -10
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +0 -62
- package/src/lib/layout/DynamicAuthLayout/Footer/index.d.ts +0 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/EmptyFooterContent/empty-footer-content.d.ts +0 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/EmptyFooterContent/empty-footer-content.js +0 -6
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/index.d.ts +0 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +0 -8
- package/src/lib/layout/DynamicAuthLayout/FooterContent/index.d.ts +0 -3
- package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.cjs +0 -77
- package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.d.ts +0 -2
- package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.js +0 -73
- package/src/lib/modals/MultiWalletStepSelectorModal/index.d.ts +0 -1
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.cjs +0 -61
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.d.ts +0 -6
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.js +0 -57
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/index.d.ts +0 -1
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.cjs +0 -89
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.d.ts +0 -8
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.js +0 -85
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/index.d.ts +0 -1
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.d.ts +0 -7
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.js +0 -67
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/index.d.ts +0 -1
- package/src/lib/modals/MultiWalletStepSelectorModal/views/index.d.ts +0 -3
- package/src/lib/utils/functions/groupBy/groupBy.cjs +0 -30
- package/src/lib/utils/functions/groupBy/groupBy.js +0 -26
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.cjs +0 -12
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.d.ts +0 -1
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.js +0 -8
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.d.ts +0 -2
- package/src/lib/views/WalletList/SearchInstead/index.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +0 -52
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +0 -10
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +0 -44
- /package/src/lib/components/{Popper → MenuList}/utils/watchToScrollInHierarchy/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/Item.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/NewToWeb3WalletItem.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/index.d.ts +0 -0
|
@@ -19,6 +19,7 @@ import 'ethers';
|
|
|
19
19
|
import '../../shared/consts/index.js';
|
|
20
20
|
import '@dynamic-labs/multi-wallet';
|
|
21
21
|
import '@dynamic-labs/rpc-providers';
|
|
22
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
22
23
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
23
24
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
24
25
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
@@ -32,7 +33,8 @@ import '../Popper/Popper/Popper.js';
|
|
|
32
33
|
import '../Popper/PopperContext/PopperContext.js';
|
|
33
34
|
import 'formik';
|
|
34
35
|
import 'yup';
|
|
35
|
-
import '
|
|
36
|
+
import '../InlineWidget/InlineWidget.js';
|
|
37
|
+
import '../MenuList/Dropdown/Dropdown.js';
|
|
36
38
|
import '../../context/MockContext/MockContext.js';
|
|
37
39
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
38
40
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
@@ -60,11 +62,11 @@ const ModalComponent = ({ children, handleClose, withBackdrop = true, zIndex, wh
|
|
|
60
62
|
inputKey: 'Escape',
|
|
61
63
|
onKeyPressed: handleClose,
|
|
62
64
|
});
|
|
63
|
-
return (jsxs(ReactFocusLock, Object.assign({ className: '
|
|
65
|
+
return (jsxs(ReactFocusLock, Object.assign({ className: 'portal__container', whiteList: whiteList }, { children: [withBackdrop && (jsx("div", { "data-testid": 'portal-backdrop', role: 'button', onClick: (e) => {
|
|
64
66
|
onBackdropClick(e);
|
|
65
67
|
}, onKeyDown: handleKeyClose, tabIndex: 0, "aria-label": 'Close modal',
|
|
66
68
|
// z-index - 2 to ensure that the backdrop is always behind the content
|
|
67
|
-
style: { zIndex: zIndex ? zIndex - 2 : undefined }, className: '
|
|
69
|
+
style: { zIndex: zIndex ? zIndex - 2 : undefined }, className: 'portal__backdrop' })), jsx("div", Object.assign({ style: { zIndex } }, { children: children }))] })));
|
|
68
70
|
};
|
|
69
71
|
const Portal = ({ children, isShown, handleClose, withBackdrop, zIndex, transitionEvents, elementId = 'dynamic-modal', }) => {
|
|
70
72
|
const modalRootElementRef = useElementById(elementId);
|
|
@@ -7,12 +7,20 @@ var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
|
7
7
|
var Typography = require('../Typography/Typography.cjs');
|
|
8
8
|
require('react');
|
|
9
9
|
var dynamicLogo = require('../../assets/dynamic-logo.cjs');
|
|
10
|
+
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
10
11
|
|
|
11
12
|
const URL = 'https://dynamic.xyz';
|
|
12
13
|
const alignClassNames = {
|
|
13
14
|
center: 'powered-by-dynamic--center',
|
|
14
15
|
right: 'powered-by-dynamic--right',
|
|
15
16
|
};
|
|
16
|
-
const PoweredByDynamic = ({ align = 'center', classNameLogo, classNameRoot, classNameText, }) =>
|
|
17
|
+
const PoweredByDynamic = ({ align = 'center', classNameLogo, classNameRoot, classNameText, }) => {
|
|
18
|
+
var _a;
|
|
19
|
+
const { projectSettings } = useInternalDynamicContext.useInternalDynamicContext();
|
|
20
|
+
if (((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.displayDynamicMessaging) === false) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return (jsxRuntime.jsxs("a", Object.assign({ target: '_blank', href: URL, className: classNames.classNames('powered-by-dynamic', alignClassNames[align], classNameRoot), rel: 'noreferrer' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'span', color: 'secondary', weight: 'regular', variant: 'body_mini', className: classNames.classNames('powered-by-dynamic__text', classNameText) }, { children: "Powered by" })), jsxRuntime.jsx(dynamicLogo.ReactComponent, { className: classNames.classNames('powered-by-dynamic__logo', classNameLogo) })] })));
|
|
24
|
+
};
|
|
17
25
|
|
|
18
26
|
exports.PoweredByDynamic = PoweredByDynamic;
|
|
@@ -3,12 +3,20 @@ import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
|
3
3
|
import { Typography } from '../Typography/Typography.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import { ReactComponent as SvgDynamicLogo } from '../../assets/dynamic-logo.js';
|
|
6
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
6
7
|
|
|
7
8
|
const URL = 'https://dynamic.xyz';
|
|
8
9
|
const alignClassNames = {
|
|
9
10
|
center: 'powered-by-dynamic--center',
|
|
10
11
|
right: 'powered-by-dynamic--right',
|
|
11
12
|
};
|
|
12
|
-
const PoweredByDynamic = ({ align = 'center', classNameLogo, classNameRoot, classNameText, }) =>
|
|
13
|
+
const PoweredByDynamic = ({ align = 'center', classNameLogo, classNameRoot, classNameText, }) => {
|
|
14
|
+
var _a;
|
|
15
|
+
const { projectSettings } = useInternalDynamicContext();
|
|
16
|
+
if (((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.displayDynamicMessaging) === false) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
return (jsxs("a", Object.assign({ target: '_blank', href: URL, className: classNames('powered-by-dynamic', alignClassNames[align], classNameRoot), rel: 'noreferrer' }, { children: [jsx(Typography, Object.assign({ as: 'span', color: 'secondary', weight: 'regular', variant: 'body_mini', className: classNames('powered-by-dynamic__text', classNameText) }, { children: "Powered by" })), jsx(SvgDynamicLogo, { className: classNames('powered-by-dynamic__logo', classNameLogo) })] })));
|
|
20
|
+
};
|
|
13
21
|
|
|
14
22
|
export { PoweredByDynamic };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var Typography = require('../Typography/Typography.cjs');
|
|
7
|
+
var IconWithSpinner = require('../IconWithSpinner/IconWithSpinner.cjs');
|
|
8
|
+
var PoweredByDynamic = require('../PoweredByDynamic/PoweredByDynamic.cjs');
|
|
9
|
+
|
|
10
|
+
const SelectWalletChainLayout = ({ children, HeaderIcon }) => (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { className: 'select-wallet-chain-layout__icon', Icon: HeaderIcon, iconSize: 100, isSpinning: true }), jsxRuntime.jsxs("div", Object.assign({ className: 'select-wallet-chain-layout__body' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'select-wallet-chain-layout__title', as: 'h6', color: 'primary', variant: 'title' }, { children: "Select Chain" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'select-wallet-chain-layout__text', as: 'p', color: 'secondary', variant: 'body_normal' }, { children: "This wallet supports multiple chains. Select which chain you'd like to connect to" })), jsxRuntime.jsx("div", Object.assign({ className: 'select-wallet-chain-layout__list' }, { children: children }))] })), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'select-wallet-chain-layout__powered-by' })] }));
|
|
11
|
+
|
|
12
|
+
exports.SelectWalletChainLayout = SelectWalletChainLayout;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactElement } from 'react';
|
|
2
2
|
type SelectWalletChainLayoutProps = {
|
|
3
3
|
HeaderIcon?: ReactElement;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
onBack?: () => void;
|
|
6
4
|
};
|
|
7
5
|
export declare const SelectWalletChainLayout: FC<PropsWithChildren<SelectWalletChainLayoutProps>>;
|
|
8
6
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Typography } from '../Typography/Typography.js';
|
|
3
|
+
import { IconWithSpinner } from '../IconWithSpinner/IconWithSpinner.js';
|
|
4
|
+
import { PoweredByDynamic } from '../PoweredByDynamic/PoweredByDynamic.js';
|
|
5
|
+
|
|
6
|
+
const SelectWalletChainLayout = ({ children, HeaderIcon }) => (jsxs("div", { children: [jsx(IconWithSpinner, { className: 'select-wallet-chain-layout__icon', Icon: HeaderIcon, iconSize: 100, isSpinning: true }), jsxs("div", Object.assign({ className: 'select-wallet-chain-layout__body' }, { children: [jsx(Typography, Object.assign({ className: 'select-wallet-chain-layout__title', as: 'h6', color: 'primary', variant: 'title' }, { children: "Select Chain" })), jsx(Typography, Object.assign({ className: 'select-wallet-chain-layout__text', as: 'p', color: 'secondary', variant: 'body_normal' }, { children: "This wallet supports multiple chains. Select which chain you'd like to connect to" })), jsx("div", Object.assign({ className: 'select-wallet-chain-layout__list' }, { children: children }))] })), jsx(PoweredByDynamic, { classNameRoot: 'select-wallet-chain-layout__powered-by' })] }));
|
|
7
|
+
|
|
8
|
+
export { SelectWalletChainLayout };
|
|
@@ -45,7 +45,7 @@ const SendBalancePageLayout = ({ error, walletAddress, onClickClose, onClickBack
|
|
|
45
45
|
return;
|
|
46
46
|
return parseFloat(balance);
|
|
47
47
|
}, [balance]);
|
|
48
|
-
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ leading: backButton, trailing: closeButton }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'send-balance-page-layout__header-content' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: "Send from" })), walletName && (jsxRuntime.jsx(Icon.Icon, Object.assign({ size: 'small' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletName }) }))), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: shortenWalletAddress.shortenWalletAddress(walletAddress, 3, 3) }))] })) })), jsxRuntime.jsxs("div", Object.assign({ className: 'send-balance-page-layout__body' }, { children: [jsxRuntime.jsx(AnimatePresence.AnimatePresence, Object.assign({ animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}) }, { children: error && (jsxRuntime.jsx("div", Object.assign({ className: 'send-balance-page-layout__error' }, { children: jsxRuntime.jsx(Alert.Alert, Object.assign({ icon: 'error', variant: 'error' }, { children: error })) }))) })), networkName && networkIcon && (jsxRuntime.jsx("div", Object.assign({ className: 'send-balance-page-layout__network-container' }, { children: jsxRuntime.jsx(Chip.Chip, Object.assign({ icon: networkIcon }, { children: networkName })) }))), jsxRuntime.jsxs("div", Object.assign({ className: 'send-balance-page-layout__balance-container' }, { children: [jsxRuntime.jsx(FormFieldLabel.FormFieldLabel, Object.assign({ divider: true }, { children: "Token" })), jsxRuntime.jsx(TokenBalanceCard.TokenBalanceCard, { chain: chain, currencySymbol: currencySymbol, balance: balance })] })), jsxRuntime.jsx(SendBalanceForm.SendBalanceForm, { onSubmit: onSubmit, initialValues: initialValues, balance: balanceNumber }), displayPoweredByDynamicFooter && (jsxRuntime.jsx(
|
|
48
|
+
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ leading: backButton, trailing: closeButton }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'send-balance-page-layout__header-content' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: "Send from" })), walletName && (jsxRuntime.jsx(Icon.Icon, Object.assign({ size: 'small' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletName }) }))), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: shortenWalletAddress.shortenWalletAddress(walletAddress, 3, 3) }))] })) })), jsxRuntime.jsxs("div", Object.assign({ className: 'send-balance-page-layout__body' }, { children: [jsxRuntime.jsx(AnimatePresence.AnimatePresence, Object.assign({ animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}) }, { children: error && (jsxRuntime.jsx("div", Object.assign({ className: 'send-balance-page-layout__error' }, { children: jsxRuntime.jsx(Alert.Alert, Object.assign({ icon: 'error', variant: 'error' }, { children: error })) }))) })), networkName && networkIcon && (jsxRuntime.jsx("div", Object.assign({ className: 'send-balance-page-layout__network-container' }, { children: jsxRuntime.jsx(Chip.Chip, Object.assign({ icon: networkIcon }, { children: networkName })) }))), jsxRuntime.jsxs("div", Object.assign({ className: 'send-balance-page-layout__balance-container' }, { children: [jsxRuntime.jsx(FormFieldLabel.FormFieldLabel, Object.assign({ divider: true }, { children: "Token" })), jsxRuntime.jsx(TokenBalanceCard.TokenBalanceCard, { chain: chain, currencySymbol: currencySymbol, balance: balance })] })), jsxRuntime.jsx(SendBalanceForm.SendBalanceForm, { onSubmit: onSubmit, initialValues: initialValues, balance: balanceNumber }), displayPoweredByDynamicFooter && (jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'send-balance-page-layout__footer' }))] }))] }));
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
exports.SendBalancePageLayout = SendBalancePageLayout;
|
|
@@ -41,7 +41,7 @@ const SendBalancePageLayout = ({ error, walletAddress, onClickClose, onClickBack
|
|
|
41
41
|
return;
|
|
42
42
|
return parseFloat(balance);
|
|
43
43
|
}, [balance]);
|
|
44
|
-
return (jsxs("div", { children: [jsx(ModalHeader, Object.assign({ leading: backButton, trailing: closeButton }, { children: jsxs("div", Object.assign({ className: 'send-balance-page-layout__header-content' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: "Send from" })), walletName && (jsx(Icon, Object.assign({ size: 'small' }, { children: jsx(WalletIcon, { walletName: walletName }) }))), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: shortenWalletAddress(walletAddress, 3, 3) }))] })) })), jsxs("div", Object.assign({ className: 'send-balance-page-layout__body' }, { children: [jsx(AnimatePresence, Object.assign({ animationComponent: jsx(VerticalDrawerTransition, {}) }, { children: error && (jsx("div", Object.assign({ className: 'send-balance-page-layout__error' }, { children: jsx(Alert, Object.assign({ icon: 'error', variant: 'error' }, { children: error })) }))) })), networkName && networkIcon && (jsx("div", Object.assign({ className: 'send-balance-page-layout__network-container' }, { children: jsx(Chip, Object.assign({ icon: networkIcon }, { children: networkName })) }))), jsxs("div", Object.assign({ className: 'send-balance-page-layout__balance-container' }, { children: [jsx(FormFieldLabel, Object.assign({ divider: true }, { children: "Token" })), jsx(TokenBalanceCard, { chain: chain, currencySymbol: currencySymbol, balance: balance })] })), jsx(SendBalanceForm, { onSubmit: onSubmit, initialValues: initialValues, balance: balanceNumber }), displayPoweredByDynamicFooter && (jsx(
|
|
44
|
+
return (jsxs("div", { children: [jsx(ModalHeader, Object.assign({ leading: backButton, trailing: closeButton }, { children: jsxs("div", Object.assign({ className: 'send-balance-page-layout__header-content' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: "Send from" })), walletName && (jsx(Icon, Object.assign({ size: 'small' }, { children: jsx(WalletIcon, { walletName: walletName }) }))), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: shortenWalletAddress(walletAddress, 3, 3) }))] })) })), jsxs("div", Object.assign({ className: 'send-balance-page-layout__body' }, { children: [jsx(AnimatePresence, Object.assign({ animationComponent: jsx(VerticalDrawerTransition, {}) }, { children: error && (jsx("div", Object.assign({ className: 'send-balance-page-layout__error' }, { children: jsx(Alert, Object.assign({ icon: 'error', variant: 'error' }, { children: error })) }))) })), networkName && networkIcon && (jsx("div", Object.assign({ className: 'send-balance-page-layout__network-container' }, { children: jsx(Chip, Object.assign({ icon: networkIcon }, { children: networkName })) }))), jsxs("div", Object.assign({ className: 'send-balance-page-layout__balance-container' }, { children: [jsx(FormFieldLabel, Object.assign({ divider: true }, { children: "Token" })), jsx(TokenBalanceCard, { chain: chain, currencySymbol: currencySymbol, balance: balance })] })), jsx(SendBalanceForm, { onSubmit: onSubmit, initialValues: initialValues, balance: balanceNumber }), displayPoweredByDynamicFooter && (jsx(PoweredByDynamic, { classNameRoot: 'send-balance-page-layout__footer' }))] }))] }));
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export { SendBalancePageLayout };
|
|
@@ -5,9 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var reactDom = require('react-dom');
|
|
8
|
+
var utils$1 = require('@dynamic-labs/utils');
|
|
8
9
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
9
10
|
var index_shadow = require('../../styles/index.shadow.cjs');
|
|
10
11
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
12
|
+
var LegacySafariCssOverrides = require('../LegacySafariCssOverrides/LegacySafariCssOverrides.cjs');
|
|
11
13
|
var utils = require('./utils.cjs');
|
|
12
14
|
|
|
13
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -47,10 +49,10 @@ const ShadowDOM = ({ mode = 'open', id, className, children, dataTestId, zIndex,
|
|
|
47
49
|
}, [shadowDOMEnabled, nodeRef, mode]);
|
|
48
50
|
const shouldRenderStyles = Boolean(Object.keys(index_shadow).length);
|
|
49
51
|
if (!shadowDOMEnabled) {
|
|
50
|
-
return (jsxRuntime.jsxs("div", Object.assign({ "data-testid": dataTestId, ref: nodeRef, id: id, className: classNames.classNames('dynamic-shadow-dom', className), style: { zIndex } }, { children: [children, shouldRenderStyles && jsxRuntime.jsx(ShadowDOMStyle, {}), CssOverridesElement && jsxRuntime.jsx(CssOverridesElement, {})] })));
|
|
52
|
+
return (jsxRuntime.jsxs("div", Object.assign({ "data-testid": dataTestId, ref: nodeRef, id: id, className: classNames.classNames('dynamic-shadow-dom', className), style: { zIndex } }, { children: [children, shouldRenderStyles && jsxRuntime.jsx(ShadowDOMStyle, {}), utils$1.isLegacySafari() && jsxRuntime.jsx(LegacySafariCssOverrides.LegacySafariCssOverrides, {}), CssOverridesElement && jsxRuntime.jsx(CssOverridesElement, {})] })));
|
|
51
53
|
}
|
|
52
54
|
return (jsxRuntime.jsx(ShadowDOMContext.Provider, Object.assign({ value: { shadowRoot } }, { children: jsxRuntime.jsx("div", Object.assign({ "data-testid": dataTestId, ref: nodeRef, id: id, className: classNames.classNames('dynamic-shadow-dom', className), style: { zIndex } }, { children: shadowRoot &&
|
|
53
|
-
reactDom.createPortal(jsxRuntime.jsxs("div", Object.assign({ className: 'dynamic-shadow-dom-content' }, { children: [children, shouldRenderStyles && jsxRuntime.jsx(ShadowDOMStyle, {}), CssOverridesElement && jsxRuntime.jsx(CssOverridesElement, {})] })), shadowRoot) })) })));
|
|
55
|
+
reactDom.createPortal(jsxRuntime.jsxs("div", Object.assign({ className: 'dynamic-shadow-dom-content' }, { children: [children, shouldRenderStyles && jsxRuntime.jsx(ShadowDOMStyle, {}), utils$1.isLegacySafari() && jsxRuntime.jsx(LegacySafariCssOverrides.LegacySafariCssOverrides, {}), CssOverridesElement && jsxRuntime.jsx(CssOverridesElement, {})] })), shadowRoot) })) })));
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
exports.ShadowDOM = ShadowDOM;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { useRef, useState, useMemo, useLayoutEffect } from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
|
+
import { isLegacySafari } from '@dynamic-labs/utils';
|
|
4
5
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
5
6
|
import css_248z from '../../styles/index.shadow.js';
|
|
6
7
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
8
|
+
import { LegacySafariCssOverrides } from '../LegacySafariCssOverrides/LegacySafariCssOverrides.js';
|
|
7
9
|
import { isShadowDOMFlagEnabled } from './utils.js';
|
|
8
10
|
|
|
9
11
|
const ShadowDOMContext = React__default.createContext({});
|
|
@@ -39,10 +41,10 @@ const ShadowDOM = ({ mode = 'open', id, className, children, dataTestId, zIndex,
|
|
|
39
41
|
}, [shadowDOMEnabled, nodeRef, mode]);
|
|
40
42
|
const shouldRenderStyles = Boolean(Object.keys(css_248z).length);
|
|
41
43
|
if (!shadowDOMEnabled) {
|
|
42
|
-
return (jsxs("div", Object.assign({ "data-testid": dataTestId, ref: nodeRef, id: id, className: classNames('dynamic-shadow-dom', className), style: { zIndex } }, { children: [children, shouldRenderStyles && jsx(ShadowDOMStyle, {}), CssOverridesElement && jsx(CssOverridesElement, {})] })));
|
|
44
|
+
return (jsxs("div", Object.assign({ "data-testid": dataTestId, ref: nodeRef, id: id, className: classNames('dynamic-shadow-dom', className), style: { zIndex } }, { children: [children, shouldRenderStyles && jsx(ShadowDOMStyle, {}), isLegacySafari() && jsx(LegacySafariCssOverrides, {}), CssOverridesElement && jsx(CssOverridesElement, {})] })));
|
|
43
45
|
}
|
|
44
46
|
return (jsx(ShadowDOMContext.Provider, Object.assign({ value: { shadowRoot } }, { children: jsx("div", Object.assign({ "data-testid": dataTestId, ref: nodeRef, id: id, className: classNames('dynamic-shadow-dom', className), style: { zIndex } }, { children: shadowRoot &&
|
|
45
|
-
createPortal(jsxs("div", Object.assign({ className: 'dynamic-shadow-dom-content' }, { children: [children, shouldRenderStyles && jsx(ShadowDOMStyle, {}), CssOverridesElement && jsx(CssOverridesElement, {})] })), shadowRoot) })) })));
|
|
47
|
+
createPortal(jsxs("div", Object.assign({ className: 'dynamic-shadow-dom-content' }, { children: [children, shouldRenderStyles && jsx(ShadowDOMStyle, {}), isLegacySafari() && jsx(LegacySafariCssOverrides, {}), CssOverridesElement && jsx(CssOverridesElement, {})] })), shadowRoot) })) })));
|
|
46
48
|
};
|
|
47
49
|
|
|
48
50
|
export { ShadowDOM, ShadowDOMContext, ShadowDOMStyle };
|
|
@@ -3,12 +3,44 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React = require('react');
|
|
6
7
|
var Typography = require('../Typography/Typography.cjs');
|
|
7
8
|
var Icon = require('../Icon/Icon.cjs');
|
|
8
9
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
10
|
+
require('@dynamic-labs/sdk-api');
|
|
11
|
+
require('../../shared/logger.cjs');
|
|
12
|
+
require('@dynamic-labs/iconic');
|
|
13
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
14
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
15
|
+
var check = require('../../shared/assets/check.cjs');
|
|
16
|
+
require('@dynamic-labs/wallet-book');
|
|
17
|
+
require('@dynamic-labs/utils');
|
|
18
|
+
require('../../utils/constants/colors.cjs');
|
|
19
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
20
|
+
require('ethers');
|
|
21
|
+
require('../../shared/consts/index.cjs');
|
|
9
22
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
23
|
+
const typographyOpacityMap = {
|
|
24
|
+
current: '1',
|
|
25
|
+
default: '1',
|
|
26
|
+
done: '0.4',
|
|
27
|
+
upcoming: '0.15',
|
|
28
|
+
};
|
|
29
|
+
const Step = ({ children, className, icon, state = 'default', }) => {
|
|
30
|
+
// Reduce opacity of icon if upcoming
|
|
31
|
+
const style = React.useMemo(() => ({ opacity: state === 'upcoming' ? 0.5 : 1 }), [state]);
|
|
32
|
+
const ComputedIcon = React.useMemo(() => {
|
|
33
|
+
// If done use checkmark icon
|
|
34
|
+
if (state === 'done')
|
|
35
|
+
return (jsxRuntime.jsx("div", Object.assign({ className: 'step__icon step__icon--done' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ className: 'step__icon__check-mark' }, { children: jsxRuntime.jsx(check.ReactComponent, { style: style }) })) })));
|
|
36
|
+
// Use provided icon if available
|
|
37
|
+
else if (icon)
|
|
38
|
+
return (jsxRuntime.jsx(Icon.Icon, Object.assign({ className: 'step__icon' }, { children: jsxRuntime.jsx("div", Object.assign({ style: style }, { children: icon })) })));
|
|
39
|
+
// Otherwise use step index as icon
|
|
40
|
+
else
|
|
41
|
+
return (jsxRuntime.jsx("div", Object.assign({ className: 'step__index' }, { children: jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'primary', variant: 'body_small', style: style }, { children: jsxRuntime.jsx("span", { className: 'step__index-label' }) })) })));
|
|
42
|
+
}, [icon, state, style]);
|
|
43
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: classNames.classNames('step', className) }, { children: [ComputedIcon, jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'primary', variant: 'body_small', style: { opacity: typographyOpacityMap[state] } }, { children: children }))] })));
|
|
44
|
+
};
|
|
13
45
|
|
|
14
46
|
exports.Step = Step;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
type StepProps = {
|
|
2
|
+
export type StepProps = {
|
|
3
3
|
icon?: ReactElement;
|
|
4
|
-
|
|
4
|
+
state?: 'current' | 'done' | 'upcoming' | 'default';
|
|
5
|
+
className?: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const Step: FC<PropsWithChildren<StepProps>>;
|
|
7
|
-
export {};
|
|
@@ -1,10 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useMemo } from 'react';
|
|
2
3
|
import { Typography } from '../Typography/Typography.js';
|
|
3
4
|
import { Icon } from '../Icon/Icon.js';
|
|
4
5
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
6
|
+
import '@dynamic-labs/sdk-api';
|
|
7
|
+
import '../../shared/logger.js';
|
|
8
|
+
import '@dynamic-labs/iconic';
|
|
9
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
10
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
11
|
+
import { ReactComponent as SvgCheck } from '../../shared/assets/check.js';
|
|
12
|
+
import '@dynamic-labs/wallet-book';
|
|
13
|
+
import '@dynamic-labs/utils';
|
|
14
|
+
import '../../utils/constants/colors.js';
|
|
15
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
16
|
+
import 'ethers';
|
|
17
|
+
import '../../shared/consts/index.js';
|
|
5
18
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
const typographyOpacityMap = {
|
|
20
|
+
current: '1',
|
|
21
|
+
default: '1',
|
|
22
|
+
done: '0.4',
|
|
23
|
+
upcoming: '0.15',
|
|
24
|
+
};
|
|
25
|
+
const Step = ({ children, className, icon, state = 'default', }) => {
|
|
26
|
+
// Reduce opacity of icon if upcoming
|
|
27
|
+
const style = useMemo(() => ({ opacity: state === 'upcoming' ? 0.5 : 1 }), [state]);
|
|
28
|
+
const ComputedIcon = useMemo(() => {
|
|
29
|
+
// If done use checkmark icon
|
|
30
|
+
if (state === 'done')
|
|
31
|
+
return (jsx("div", Object.assign({ className: 'step__icon step__icon--done' }, { children: jsx(Icon, Object.assign({ className: 'step__icon__check-mark' }, { children: jsx(SvgCheck, { style: style }) })) })));
|
|
32
|
+
// Use provided icon if available
|
|
33
|
+
else if (icon)
|
|
34
|
+
return (jsx(Icon, Object.assign({ className: 'step__icon' }, { children: jsx("div", Object.assign({ style: style }, { children: icon })) })));
|
|
35
|
+
// Otherwise use step index as icon
|
|
36
|
+
else
|
|
37
|
+
return (jsx("div", Object.assign({ className: 'step__index' }, { children: jsx(Typography, Object.assign({ color: 'primary', variant: 'body_small', style: style }, { children: jsx("span", { className: 'step__index-label' }) })) })));
|
|
38
|
+
}, [icon, state, style]);
|
|
39
|
+
return (jsxs("div", Object.assign({ className: classNames('step', className) }, { children: [ComputedIcon, jsx(Typography, Object.assign({ color: 'primary', variant: 'body_small', style: { opacity: typographyOpacityMap[state] } }, { children: children }))] })));
|
|
40
|
+
};
|
|
9
41
|
|
|
10
42
|
export { Step };
|
|
@@ -21,15 +21,15 @@ require('@dynamic-labs/multi-wallet');
|
|
|
21
21
|
var isEmailProviderEnabled = require('../../utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs');
|
|
22
22
|
var ShadowDOM = require('../ShadowDOM/ShadowDOM.cjs');
|
|
23
23
|
var ThemeSwitch = require('./components/ThemeSwitch.cjs');
|
|
24
|
-
var BrandStyleSwitch = require('./components/BrandStyleSwitch.cjs');
|
|
25
24
|
var PrimaryColorInput = require('./components/PrimaryColorInput.cjs');
|
|
26
25
|
var AuthModeSwitch = require('./components/AuthModeSwitch.cjs');
|
|
27
26
|
var LoginWithEmailSwitch = require('./components/LoginWithEmailSwitch.cjs');
|
|
28
27
|
var LoginWithEmailViewDisplayPriorityOrderSwitch = require('./components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs');
|
|
29
28
|
var TemplateSelect = require('./components/TemplateSelect.cjs');
|
|
29
|
+
var MultiWalletSwitch = require('./components/MultiWalletSwitch.cjs');
|
|
30
30
|
|
|
31
31
|
const Toolkit = () => {
|
|
32
|
-
const { projectSettings, user, showAuthFlow, showDynamicUserProfile, toolkitEnabled, authMode, setAuthMode, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
32
|
+
const { projectSettings, user, showAuthFlow, showDynamicUserProfile, toolkitEnabled, authMode, setAuthMode, multiWallet, setMultiWallet, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
33
33
|
const isToolkitVisible = React.useMemo(() => {
|
|
34
34
|
if (!toolkitEnabled)
|
|
35
35
|
return false;
|
|
@@ -37,7 +37,7 @@ const Toolkit = () => {
|
|
|
37
37
|
}, [showAuthFlow, showDynamicUserProfile, toolkitEnabled]);
|
|
38
38
|
if (!isToolkitVisible)
|
|
39
39
|
return null;
|
|
40
|
-
return (jsxRuntime.jsx(ShadowDOM.ShadowDOM, Object.assign({ dataTestId: 'toolkit-shadowdom', className: 'toolkit-shadowdom', zIndex: index.toolkitZIndex }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__container' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Theme" })), jsxRuntime.jsx(ThemeSwitch.ThemeSwitch, {})] })), jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Template" })), jsxRuntime.jsx(TemplateSelect.TemplateSelect, {})] })), jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "
|
|
40
|
+
return (jsxRuntime.jsx(ShadowDOM.ShadowDOM, Object.assign({ dataTestId: 'toolkit-shadowdom', className: 'toolkit-shadowdom', zIndex: index.toolkitZIndex }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__container' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Theme" })), jsxRuntime.jsx(ThemeSwitch.ThemeSwitch, {})] })), jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Template" })), jsxRuntime.jsx(TemplateSelect.TemplateSelect, {})] })), jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Primary Color" })), jsxRuntime.jsx(PrimaryColorInput.PrimaryColorInput, {})] })), !user && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Auth mode" })), jsxRuntime.jsx(AuthModeSwitch.AuthModeSwitch, { authMode: authMode, setAuthMode: setAuthMode })] })), jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Multi Wallet" })), jsxRuntime.jsx(MultiWalletSwitch.MultiWalletSwitch, { multiWallet: multiWallet && authMode === 'connect-and-sign', disabled: authMode === 'connect-only', setMultiWallet: setMultiWallet })] }))] })), isEmailProviderEnabled.isEmailProviderEnabled((projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) || []) && !user && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Log in with Email" })), jsxRuntime.jsx(LoginWithEmailSwitch.LoginWithEmailSwitch, {})] })), jsxRuntime.jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Email vs Wallet priority" })), jsxRuntime.jsx(LoginWithEmailViewDisplayPriorityOrderSwitch.LoginWithEmailViewDisplayPriorityOrderSwitch, {})] }))] }))] })) })));
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
exports.Toolkit = Toolkit;
|
|
@@ -17,15 +17,15 @@ import '@dynamic-labs/multi-wallet';
|
|
|
17
17
|
import { isEmailProviderEnabled } from '../../utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js';
|
|
18
18
|
import { ShadowDOM } from '../ShadowDOM/ShadowDOM.js';
|
|
19
19
|
import { ThemeSwitch } from './components/ThemeSwitch.js';
|
|
20
|
-
import { BrandStyleSwitch } from './components/BrandStyleSwitch.js';
|
|
21
20
|
import { PrimaryColorInput } from './components/PrimaryColorInput.js';
|
|
22
21
|
import { AuthModeSwitch } from './components/AuthModeSwitch.js';
|
|
23
22
|
import { LoginWithEmailSwitch } from './components/LoginWithEmailSwitch.js';
|
|
24
23
|
import { LoginWithEmailViewDisplayPriorityOrderSwitch } from './components/LoginWithEmailViewDisplayPriorityOrderSwitch.js';
|
|
25
24
|
import { TemplateSelect } from './components/TemplateSelect.js';
|
|
25
|
+
import { MultiWalletSwitch } from './components/MultiWalletSwitch.js';
|
|
26
26
|
|
|
27
27
|
const Toolkit = () => {
|
|
28
|
-
const { projectSettings, user, showAuthFlow, showDynamicUserProfile, toolkitEnabled, authMode, setAuthMode, } = useInternalDynamicContext();
|
|
28
|
+
const { projectSettings, user, showAuthFlow, showDynamicUserProfile, toolkitEnabled, authMode, setAuthMode, multiWallet, setMultiWallet, } = useInternalDynamicContext();
|
|
29
29
|
const isToolkitVisible = useMemo(() => {
|
|
30
30
|
if (!toolkitEnabled)
|
|
31
31
|
return false;
|
|
@@ -33,7 +33,7 @@ const Toolkit = () => {
|
|
|
33
33
|
}, [showAuthFlow, showDynamicUserProfile, toolkitEnabled]);
|
|
34
34
|
if (!isToolkitVisible)
|
|
35
35
|
return null;
|
|
36
|
-
return (jsx(ShadowDOM, Object.assign({ dataTestId: 'toolkit-shadowdom', className: 'toolkit-shadowdom', zIndex: toolkitZIndex }, { children: jsxs("div", Object.assign({ className: 'toolkit__container' }, { children: [jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsx(Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Theme" })), jsx(ThemeSwitch, {})] })), jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsx(Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Template" })), jsx(TemplateSelect, {})] })), jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsx(Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "
|
|
36
|
+
return (jsx(ShadowDOM, Object.assign({ dataTestId: 'toolkit-shadowdom', className: 'toolkit-shadowdom', zIndex: toolkitZIndex }, { children: jsxs("div", Object.assign({ className: 'toolkit__container' }, { children: [jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsx(Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Theme" })), jsx(ThemeSwitch, {})] })), jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsx(Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Template" })), jsx(TemplateSelect, {})] })), jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsx(Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Primary Color" })), jsx(PrimaryColorInput, {})] })), !user && (jsxs(Fragment, { children: [jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsx(Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Auth mode" })), jsx(AuthModeSwitch, { authMode: authMode, setAuthMode: setAuthMode })] })), jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsx(Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Multi Wallet" })), jsx(MultiWalletSwitch, { multiWallet: multiWallet && authMode === 'connect-and-sign', disabled: authMode === 'connect-only', setMultiWallet: setMultiWallet })] }))] })), isEmailProviderEnabled((projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) || []) && !user && (jsxs(Fragment, { children: [jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsx(Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Log in with Email" })), jsx(LoginWithEmailSwitch, {})] })), jsxs("div", Object.assign({ className: 'toolkit__switcher' }, { children: [jsx(Typography, Object.assign({ className: 'switcher__copy', as: 'h2', variant: 'body_normal' }, { children: "Email vs Wallet priority" })), jsx(LoginWithEmailViewDisplayPriorityOrderSwitch, {})] }))] }))] })) })));
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export { Toolkit };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var Switch = require('../../Switch/Switch.cjs');
|
|
7
|
+
|
|
8
|
+
const MultiWalletSwitch = ({ multiWallet, setMultiWallet, disabled, }) => (jsxRuntime.jsx(Switch.Switch, { disabled: disabled, firstButton: {
|
|
9
|
+
active: multiWallet,
|
|
10
|
+
handleButtonClick: () => setMultiWallet(true),
|
|
11
|
+
name: 'True',
|
|
12
|
+
}, secondButton: {
|
|
13
|
+
active: !multiWallet,
|
|
14
|
+
handleButtonClick: () => setMultiWallet(false),
|
|
15
|
+
name: 'False',
|
|
16
|
+
} }));
|
|
17
|
+
|
|
18
|
+
exports.MultiWalletSwitch = MultiWalletSwitch;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
multiWallet: boolean;
|
|
4
|
+
setMultiWallet: (multiWallet: boolean) => void;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const MultiWalletSwitch: ({ multiWallet, setMultiWallet, disabled, }: Props) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Switch } from '../../Switch/Switch.js';
|
|
3
|
+
|
|
4
|
+
const MultiWalletSwitch = ({ multiWallet, setMultiWallet, disabled, }) => (jsx(Switch, { disabled: disabled, firstButton: {
|
|
5
|
+
active: multiWallet,
|
|
6
|
+
handleButtonClick: () => setMultiWallet(true),
|
|
7
|
+
name: 'True',
|
|
8
|
+
}, secondButton: {
|
|
9
|
+
active: !multiWallet,
|
|
10
|
+
handleButtonClick: () => setMultiWallet(false),
|
|
11
|
+
name: 'False',
|
|
12
|
+
} }));
|
|
13
|
+
|
|
14
|
+
export { MultiWalletSwitch };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ThemeSwitch } from './ThemeSwitch';
|
|
2
|
-
export { BrandStyleSwitch } from './BrandStyleSwitch';
|
|
3
2
|
export { PrimaryColorInput } from './PrimaryColorInput';
|
|
4
3
|
export { AuthModeSwitch } from './AuthModeSwitch';
|
|
5
4
|
export { LoginWithEmailSwitch } from './LoginWithEmailSwitch';
|
|
6
5
|
export { LoginWithEmailViewDisplayPriorityOrderSwitch } from './LoginWithEmailViewDisplayPriorityOrderSwitch';
|
|
7
6
|
export { TemplateSelect } from './TemplateSelect';
|
|
7
|
+
export { MultiWalletSwitch } from './MultiWalletSwitch';
|
|
@@ -22,6 +22,7 @@ var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
|
22
22
|
require('../../config/ApiEndpoint.cjs');
|
|
23
23
|
require('@dynamic-labs/multi-wallet');
|
|
24
24
|
require('@dynamic-labs/rpc-providers');
|
|
25
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
25
26
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
26
27
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
27
28
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
@@ -40,7 +41,8 @@ require('../Popper/Popper/Popper.cjs');
|
|
|
40
41
|
require('../Popper/PopperContext/PopperContext.cjs');
|
|
41
42
|
require('formik');
|
|
42
43
|
require('yup');
|
|
43
|
-
require('
|
|
44
|
+
require('../InlineWidget/InlineWidget.cjs');
|
|
45
|
+
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
44
46
|
require('../../context/MockContext/MockContext.cjs');
|
|
45
47
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
46
48
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
@@ -59,7 +61,7 @@ const Tooltip = ({ children, content, className, as: Tag = 'span', }) => {
|
|
|
59
61
|
const childrenBounding = childrenRef.current.getBoundingClientRect();
|
|
60
62
|
setVector([
|
|
61
63
|
childrenBounding.left + childrenBounding.width / 2,
|
|
62
|
-
childrenBounding.top,
|
|
64
|
+
childrenBounding.top - 4, //add 4px margin over the children
|
|
63
65
|
]);
|
|
64
66
|
}
|
|
65
67
|
}, []);
|
|
@@ -18,6 +18,7 @@ import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
|
18
18
|
import '../../config/ApiEndpoint.js';
|
|
19
19
|
import '@dynamic-labs/multi-wallet';
|
|
20
20
|
import '@dynamic-labs/rpc-providers';
|
|
21
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
21
22
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
22
23
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
23
24
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
@@ -36,7 +37,8 @@ import '../Popper/Popper/Popper.js';
|
|
|
36
37
|
import '../Popper/PopperContext/PopperContext.js';
|
|
37
38
|
import 'formik';
|
|
38
39
|
import 'yup';
|
|
39
|
-
import '
|
|
40
|
+
import '../InlineWidget/InlineWidget.js';
|
|
41
|
+
import '../MenuList/Dropdown/Dropdown.js';
|
|
40
42
|
import '../../context/MockContext/MockContext.js';
|
|
41
43
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
42
44
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
@@ -55,7 +57,7 @@ const Tooltip = ({ children, content, className, as: Tag = 'span', }) => {
|
|
|
55
57
|
const childrenBounding = childrenRef.current.getBoundingClientRect();
|
|
56
58
|
setVector([
|
|
57
59
|
childrenBounding.left + childrenBounding.width / 2,
|
|
58
|
-
childrenBounding.top,
|
|
60
|
+
childrenBounding.top - 4, //add 4px margin over the children
|
|
59
61
|
]);
|
|
60
62
|
}
|
|
61
63
|
}, []);
|
|
@@ -3,13 +3,29 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
7
|
+
require('@dynamic-labs/utils');
|
|
8
|
+
var isConnectOnly = require('../../utils/hooks/authenticationHooks/helpers/isConnectOnly.cjs');
|
|
6
9
|
var Typography = require('../Typography/Typography.cjs');
|
|
7
10
|
|
|
8
|
-
const TosAndPp = (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const TosAndPp = () => {
|
|
12
|
+
const { user, authMode, customPrivacyPolicy, customTermsOfServices, privacyPolicyUrl, termsOfServiceUrl, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
13
|
+
const connectionType = isConnectOnly.isConnectOnly(user, authMode)
|
|
14
|
+
? 'connecting'
|
|
15
|
+
: 'logging in';
|
|
16
|
+
const renderTermsOfServices = () => {
|
|
17
|
+
if (!termsOfServiceUrl) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
return (jsxRuntime.jsx("a", Object.assign({ className: 'tos-and-pp__link', href: termsOfServiceUrl, target: '_blank', rel: 'noreferrer' }, { children: "Terms of Service" })));
|
|
21
|
+
};
|
|
22
|
+
const renderPrivacyPolicy = () => {
|
|
23
|
+
if (!privacyPolicyUrl) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [termsOfServiceUrl && jsxRuntime.jsx(jsxRuntime.Fragment, { children: "\u00A0&\u00A0" }), jsxRuntime.jsx("a", Object.assign({ className: 'tos-and-pp__link', href: privacyPolicyUrl, target: '_blank', rel: 'noreferrer' }, { children: "Privacy Policy" }))] }));
|
|
27
|
+
};
|
|
28
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(privacyPolicyUrl || termsOfServiceUrl) && (jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'body_small', weight: 'regular', className: 'tos-and-pp__text' }, { children: ["By ", connectionType, ", you agree to", jsxRuntime.jsx("br", {}), "our\u00A0", renderTermsOfServices(), renderPrivacyPolicy(), "."] }))), customTermsOfServices, customPrivacyPolicy] }));
|
|
13
29
|
};
|
|
14
30
|
|
|
15
31
|
exports.TosAndPp = TosAndPp;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
mode: 'connecting' | 'signing' | 'logging in';
|
|
4
|
-
privacyPolicyUrl?: string;
|
|
5
|
-
termsOfServiceUrl?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const TosAndPp: ({ privacyPolicyUrl, termsOfServiceUrl, mode, }: Props) => JSX.Element | null;
|
|
8
|
-
export {};
|
|
2
|
+
export declare const TosAndPp: () => JSX.Element | null;
|
|
@@ -1,11 +1,27 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
3
|
+
import '@dynamic-labs/utils';
|
|
4
|
+
import { isConnectOnly } from '../../utils/hooks/authenticationHooks/helpers/isConnectOnly.js';
|
|
2
5
|
import { Typography } from '../Typography/Typography.js';
|
|
3
6
|
|
|
4
|
-
const TosAndPp = (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const TosAndPp = () => {
|
|
8
|
+
const { user, authMode, customPrivacyPolicy, customTermsOfServices, privacyPolicyUrl, termsOfServiceUrl, } = useInternalDynamicContext();
|
|
9
|
+
const connectionType = isConnectOnly(user, authMode)
|
|
10
|
+
? 'connecting'
|
|
11
|
+
: 'logging in';
|
|
12
|
+
const renderTermsOfServices = () => {
|
|
13
|
+
if (!termsOfServiceUrl) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
return (jsx("a", Object.assign({ className: 'tos-and-pp__link', href: termsOfServiceUrl, target: '_blank', rel: 'noreferrer' }, { children: "Terms of Service" })));
|
|
17
|
+
};
|
|
18
|
+
const renderPrivacyPolicy = () => {
|
|
19
|
+
if (!privacyPolicyUrl) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
return (jsxs(Fragment, { children: [termsOfServiceUrl && jsx(Fragment, { children: "\u00A0&\u00A0" }), jsx("a", Object.assign({ className: 'tos-and-pp__link', href: privacyPolicyUrl, target: '_blank', rel: 'noreferrer' }, { children: "Privacy Policy" }))] }));
|
|
23
|
+
};
|
|
24
|
+
return (jsxs(Fragment, { children: [(privacyPolicyUrl || termsOfServiceUrl) && (jsxs(Typography, Object.assign({ variant: 'body_small', weight: 'regular', className: 'tos-and-pp__text' }, { children: ["By ", connectionType, ", you agree to", jsx("br", {}), "our\u00A0", renderTermsOfServices(), renderPrivacyPolicy(), "."] }))), customTermsOfServices, customPrivacyPolicy] }));
|
|
9
25
|
};
|
|
10
26
|
|
|
11
27
|
export { TosAndPp };
|