@dynamic-labs/sdk-react-core 1.1.0-alpha.0 → 1.1.0-alpha.1
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 +2 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +12 -12
- package/src/index.cjs +3 -2
- package/src/index.js +2 -1
- package/src/lib/Main.cjs +1 -0
- package/src/lib/Main.js +1 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +1 -0
- package/src/lib/components/Alert/Alert.types.d.ts +2 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +1 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +1 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +1 -0
- package/src/lib/components/Button/Button.cjs +2 -2
- package/src/lib/components/Button/Button.d.ts +2 -1
- package/src/lib/components/Button/Button.js +2 -2
- package/src/lib/components/Divider/Divider.cjs +1 -0
- package/src/lib/components/Divider/Divider.js +1 -0
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +2 -2
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.d.ts +3 -2
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +2 -2
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.cjs +1 -1
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.d.ts +2 -1
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.js +1 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +2 -2
- package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +2 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +2 -2
- package/src/lib/components/Input/Input.types.d.ts +2 -1
- package/src/lib/components/ListTile/ListTile.cjs +1 -1
- package/src/lib/components/ListTile/ListTile.js +1 -1
- package/src/lib/components/ListTile/ListTile.types.d.ts +2 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +1 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +1 -0
- package/src/lib/components/Modal/Modal.cjs +1 -0
- package/src/lib/components/Modal/Modal.js +1 -0
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.cjs +9 -5
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.d.ts +1 -1
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.js +9 -5
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +4 -3
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +4 -3
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +1 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -0
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +8 -6
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +8 -6
- package/src/lib/components/OverlayCard/OverlayCard.cjs +1 -0
- package/src/lib/components/OverlayCard/OverlayCard.js +1 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +2 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +2 -1
- package/src/lib/components/Portal/Portal.cjs +1 -0
- package/src/lib/components/Portal/Portal.js +1 -0
- package/src/lib/components/Search/Search.cjs +1 -1
- package/src/lib/components/Search/Search.d.ts +2 -1
- package/src/lib/components/Search/Search.js +1 -1
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs +2 -2
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js +2 -2
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +3 -3
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +3 -3
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +1 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.js +1 -0
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +1 -0
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +1 -0
- package/src/lib/components/TextButton/TextButton.d.ts +2 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +3 -2
- package/src/lib/components/Tooltip/Tooltip.d.ts +2 -1
- package/src/lib/components/Tooltip/Tooltip.js +3 -2
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +3 -3
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +2 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +3 -3
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.d.ts +2 -1
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +2 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +2 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +1 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +1 -0
- package/src/lib/components/Typography/Typography.types.d.ts +2 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +1 -0
- package/src/lib/components/UserAddress/UserAddress.js +1 -0
- package/src/lib/components/UserProfile/UserProfile.cjs +2 -2
- package/src/lib/components/UserProfile/UserProfile.d.ts +1 -0
- package/src/lib/components/UserProfile/UserProfile.js +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +10 -21
- package/src/lib/context/DynamicContext/DynamicContext.js +11 -22
- package/src/lib/context/DynamicContext/hooks/index.d.ts +2 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +75 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.d.ts +3 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +71 -0
- package/src/lib/context/DynamicContext/types/index.d.ts +0 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +3 -5
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +4 -24
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +4 -24
- package/src/lib/context/LoadingContext/LoadingContext.cjs +55 -15
- package/src/lib/context/LoadingContext/LoadingContext.d.ts +1 -1
- package/src/lib/context/LoadingContext/LoadingContext.js +56 -16
- package/src/lib/context/MockContext/MockContext.cjs +1 -0
- package/src/lib/context/MockContext/MockContext.js +1 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +1 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.js +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +4 -14
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +5 -15
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +1 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +1 -0
- package/src/lib/context/ViewContext/ViewContext.cjs +4 -15
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -3
- package/src/lib/context/ViewContext/ViewContext.js +5 -16
- package/src/lib/data/api.js +1 -1
- package/src/lib/{context/DynamicContext/internalEvents/internalEvents.cjs → events/dynamicEvents.cjs} +2 -3
- package/src/lib/{context/DynamicContext/internalEvents/internalEvents.d.ts → events/dynamicEvents.d.ts} +4 -4
- package/src/lib/events/dynamicEvents.js +5 -0
- package/src/lib/events/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +3 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +2 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +3 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +1 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +1 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +1 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +3 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +2 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +3 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +3 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.d.ts +2 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +3 -2
- package/src/lib/locale/en/translation.cjs +6 -0
- package/src/lib/locale/en/translation.d.ts +6 -0
- package/src/lib/locale/en/translation.js +6 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +3 -2
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +3 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +3 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +3 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +2 -1
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +1 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +1 -0
- package/src/lib/shared/types/index.d.ts +3 -0
- package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.cjs +5 -3
- package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.js +5 -3
- package/src/lib/utils/hooks/events/index.d.ts +3 -0
- package/src/lib/utils/hooks/events/types.d.ts +14 -0
- package/src/lib/utils/hooks/events/useDynamicEvents/index.d.ts +1 -0
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.cjs +21 -0
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.d.ts +8 -0
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.js +17 -0
- package/src/lib/utils/hooks/{useWalletConnectorEvent → events/useWalletConnectorEvent}/useWalletConnectorEvent.cjs +1 -0
- package/src/lib/utils/hooks/{useWalletConnectorEvent → events/useWalletConnectorEvent}/useWalletConnectorEvent.d.ts +2 -11
- package/src/lib/utils/hooks/{useWalletConnectorEvent → events/useWalletConnectorEvent}/useWalletConnectorEvent.js +1 -0
- package/src/lib/utils/hooks/index.d.ts +1 -2
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +57 -48
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +57 -48
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +51 -7
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.d.ts +3 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +51 -7
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +7 -7
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +7 -7
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +27 -2
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +27 -2
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +1 -1
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +1 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +5 -7
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +5 -7
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +5 -5
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +5 -5
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +2 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +2 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +2 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -1
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +3 -2
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +3 -2
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +3 -2
- package/src/lib/views/AccountExistsView/AccountExistsView.js +3 -2
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +1 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +1 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +1 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +1 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +5 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +5 -4
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +8 -7
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +8 -7
- package/src/lib/views/CollectUserDataView/useFields.cjs +11 -0
- package/src/lib/views/CollectUserDataView/useFields.d.ts +11 -0
- package/src/lib/views/CollectUserDataView/useFields.js +11 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +4 -3
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +4 -3
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +3 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.js +3 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +3 -5
- package/src/lib/views/EmailVerification/EmailVerification.js +3 -5
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +11 -5
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +11 -5
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +1 -0
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +2 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +2 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +3 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.d.ts +3 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +3 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +2 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +2 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +1 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +3 -2
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +3 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +3 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +3 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +4 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +4 -1
- package/src/lib/views/NoAccess/NoAccess.cjs +2 -1
- package/src/lib/views/NoAccess/NoAccess.js +2 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +1 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +1 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -0
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +1 -0
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +4 -3
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +4 -3
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +2 -1
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +2 -1
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +6 -5
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +6 -5
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +4 -3
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +4 -3
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.js +1 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -0
- package/src/lib/views/QrCodeView/QRCode.cjs +1 -0
- package/src/lib/views/QrCodeView/QRCode.js +1 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +1 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +2 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +2 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +1 -0
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.d.ts +2 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +2 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +2 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +10 -7
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +2 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +10 -7
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +1 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +1 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +2 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +2 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +2 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +2 -1
- package/src/lib/views/WalletList/WalletList.cjs +2 -2
- package/src/lib/views/WalletList/WalletList.js +2 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +1 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +2 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.js +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +5 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +5 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +1 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +6 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +6 -3
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.d.ts +3 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -0
- package/src/lib/context/DynamicContext/internalEvents/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/internalEvents/internalEvents.js +0 -6
- /package/src/lib/utils/hooks/{useEventListener → events/useEventListener}/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useEventListener → events/useEventListener}/useEventListener.cjs +0 -0
- /package/src/lib/utils/hooks/{useEventListener → events/useEventListener}/useEventListener.d.ts +0 -0
- /package/src/lib/utils/hooks/{useEventListener → events/useEventListener}/useEventListener.js +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorEvent → events/useWalletConnectorEvent}/index.d.ts +0 -0
package/CHANGELOG.md
CHANGED
package/package.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var version = "1.1.0-alpha.
|
|
5
|
+
var version = "1.1.0-alpha.1";
|
|
6
6
|
var dependencies = {
|
|
7
7
|
"@dynamic-labs/iconic": "0.1.45",
|
|
8
|
-
"@dynamic-labs/sdk-api": "0.0.
|
|
8
|
+
"@dynamic-labs/sdk-api": "0.0.330",
|
|
9
9
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
10
10
|
"country-list": "2.3.0",
|
|
11
11
|
formik: "2.2.9",
|
package/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var version = "1.1.0-alpha.
|
|
1
|
+
var version = "1.1.0-alpha.1";
|
|
2
2
|
var dependencies = {
|
|
3
3
|
"@dynamic-labs/iconic": "0.1.45",
|
|
4
|
-
"@dynamic-labs/sdk-api": "0.0.
|
|
4
|
+
"@dynamic-labs/sdk-api": "0.0.330",
|
|
5
5
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
6
6
|
"country-list": "2.3.0",
|
|
7
7
|
formik: "2.2.9",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@dynamic-labs/iconic": "0.1.45",
|
|
11
|
-
"@dynamic-labs/sdk-api": "0.0.
|
|
11
|
+
"@dynamic-labs/sdk-api": "0.0.330",
|
|
12
12
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
13
13
|
"country-list": "2.3.0",
|
|
14
14
|
"formik": "2.2.9",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"react-focus-lock": "2.9.2",
|
|
18
18
|
"react-i18next": "^13.2.0",
|
|
19
19
|
"yup": "0.32.11",
|
|
20
|
-
"@dynamic-labs/ethereum": "1.1.0-alpha.
|
|
21
|
-
"@dynamic-labs/logger": "1.1.0-alpha.
|
|
22
|
-
"@dynamic-labs/multi-wallet": "1.1.0-alpha.
|
|
23
|
-
"@dynamic-labs/rpc-providers": "1.1.0-alpha.
|
|
24
|
-
"@dynamic-labs/types": "1.1.0-alpha.
|
|
25
|
-
"@dynamic-labs/utils": "1.1.0-alpha.
|
|
26
|
-
"@dynamic-labs/viem-utils": "1.1.0-alpha.
|
|
27
|
-
"@dynamic-labs/wallet-book": "1.1.0-alpha.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "1.1.0-alpha.
|
|
20
|
+
"@dynamic-labs/ethereum": "1.1.0-alpha.1",
|
|
21
|
+
"@dynamic-labs/logger": "1.1.0-alpha.1",
|
|
22
|
+
"@dynamic-labs/multi-wallet": "1.1.0-alpha.1",
|
|
23
|
+
"@dynamic-labs/rpc-providers": "1.1.0-alpha.1",
|
|
24
|
+
"@dynamic-labs/types": "1.1.0-alpha.1",
|
|
25
|
+
"@dynamic-labs/utils": "1.1.0-alpha.1",
|
|
26
|
+
"@dynamic-labs/viem-utils": "1.1.0-alpha.1",
|
|
27
|
+
"@dynamic-labs/wallet-book": "1.1.0-alpha.1",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "1.1.0-alpha.1",
|
|
29
29
|
"eventemitter3": "5.0.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^17.0.2 || ^18.0.0",
|
|
36
36
|
"react-dom": "^17.0.2 || ^18.0.0",
|
|
37
|
-
"viem": "^1.
|
|
37
|
+
"viem": "^1.19.13"
|
|
38
38
|
},
|
|
39
39
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
40
40
|
"bugs": {
|
package/src/index.cjs
CHANGED
|
@@ -21,6 +21,8 @@ var FundingWidget = require('./lib/widgets/FundingWidget/FundingWidget.cjs');
|
|
|
21
21
|
require('react/jsx-runtime');
|
|
22
22
|
var classNames = require('./lib/utils/functions/classNames/classNames.cjs');
|
|
23
23
|
require('react');
|
|
24
|
+
require('./lib/events/dynamicEvents.cjs');
|
|
25
|
+
var useWalletConnectorEvent = require('./lib/utils/hooks/events/useWalletConnectorEvent/useWalletConnectorEvent.cjs');
|
|
24
26
|
var useAuthenticateConnectedUser = require('./lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs');
|
|
25
27
|
var decodeJwt = require('./lib/shared/utils/functions/decodeJwt/decodeJwt.cjs');
|
|
26
28
|
var validateType = require('./lib/shared/utils/functions/validateType/validateType.cjs');
|
|
@@ -133,7 +135,6 @@ require('./lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs'
|
|
|
133
135
|
require('./lib/context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
134
136
|
require('./lib/context/AccountExistsContext/AccountExistsContext.cjs');
|
|
135
137
|
require('./lib/context/ErrorContext/ErrorContext.cjs');
|
|
136
|
-
var useWalletConnectorEvent = require('./lib/utils/hooks/useWalletConnectorEvent/useWalletConnectorEvent.cjs');
|
|
137
138
|
var useWalletItemActions = require('./lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
|
|
138
139
|
require('./lib/components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
139
140
|
require('./lib/components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
@@ -200,6 +201,7 @@ exports.DynamicNav = DynamicNav.ShadowedDynamicNav;
|
|
|
200
201
|
exports.DynamicUserProfile = DynamicUserProfile.ShadowedDynamicUserProfile;
|
|
201
202
|
exports.FundingWidget = FundingWidget.FundingWidget;
|
|
202
203
|
exports.classNames = classNames.classNames;
|
|
204
|
+
exports.useWalletConnectorEvent = useWalletConnectorEvent.useWalletConnectorEvent;
|
|
203
205
|
exports.useAuthenticateConnectedUser = useAuthenticateConnectedUser.useAuthenticateConnectedUser;
|
|
204
206
|
exports.decodeJwt = decodeJwt.decodeJwt;
|
|
205
207
|
exports.validateType = validateType.validateType;
|
|
@@ -313,7 +315,6 @@ exports.MockContextProvider = MockContext.MockContextProvider;
|
|
|
313
315
|
exports.MockContextWrapper = MockContext.MockContextWrapper;
|
|
314
316
|
exports.useMockContext = MockContext.useMockContext;
|
|
315
317
|
exports.useUserUpdateRequest = useUserUpdateRequest.useUserUpdateRequest;
|
|
316
|
-
exports.useWalletConnectorEvent = useWalletConnectorEvent.useWalletConnectorEvent;
|
|
317
318
|
exports.useWalletItemActions = useWalletItemActions.useWalletItemActions;
|
|
318
319
|
exports.ShadowDOM = ShadowDOM.ShadowDOM;
|
|
319
320
|
exports.useEmailVerificationRequest = useEmailVerificationRequest.useEmailVerificationRequest;
|
package/src/index.js
CHANGED
|
@@ -17,6 +17,8 @@ export { FundingWidget } from './lib/widgets/FundingWidget/FundingWidget.js';
|
|
|
17
17
|
import 'react/jsx-runtime';
|
|
18
18
|
export { classNames } from './lib/utils/functions/classNames/classNames.js';
|
|
19
19
|
import 'react';
|
|
20
|
+
import './lib/events/dynamicEvents.js';
|
|
21
|
+
export { useWalletConnectorEvent } from './lib/utils/hooks/events/useWalletConnectorEvent/useWalletConnectorEvent.js';
|
|
20
22
|
export { useAuthenticateConnectedUser } from './lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js';
|
|
21
23
|
export { decodeJwt } from './lib/shared/utils/functions/decodeJwt/decodeJwt.js';
|
|
22
24
|
export { validateType } from './lib/shared/utils/functions/validateType/validateType.js';
|
|
@@ -129,7 +131,6 @@ import './lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
|
129
131
|
import './lib/context/AccessDeniedContext/AccessDeniedContext.js';
|
|
130
132
|
import './lib/context/AccountExistsContext/AccountExistsContext.js';
|
|
131
133
|
import './lib/context/ErrorContext/ErrorContext.js';
|
|
132
|
-
export { useWalletConnectorEvent } from './lib/utils/hooks/useWalletConnectorEvent/useWalletConnectorEvent.js';
|
|
133
134
|
export { useWalletItemActions } from './lib/utils/hooks/useWalletItemActions/useWalletItemActions.js';
|
|
134
135
|
import './lib/components/Transition/ZoomTransition/ZoomTransition.js';
|
|
135
136
|
import './lib/components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
package/src/lib/Main.cjs
CHANGED
|
@@ -6,6 +6,7 @@ var _tslib = require('../../_virtual/_tslib.cjs');
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var utils = require('@dynamic-labs/utils');
|
|
9
|
+
require('./events/dynamicEvents.cjs');
|
|
9
10
|
var useInternalDynamicContext = require('./context/DynamicContext/useInternalDynamicContext.cjs');
|
|
10
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
11
12
|
require('./context/CaptchaContext/CaptchaContext.cjs');
|
package/src/lib/Main.js
CHANGED
|
@@ -2,6 +2,7 @@ import { __awaiter } from '../../_virtual/_tslib.js';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useCallback, useEffect } from 'react';
|
|
4
4
|
import { isMobile } from '@dynamic-labs/utils';
|
|
5
|
+
import './events/dynamicEvents.js';
|
|
5
6
|
import { useInternalDynamicContext } from './context/DynamicContext/useInternalDynamicContext.js';
|
|
6
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
7
8
|
import './context/CaptchaContext/CaptchaContext.js';
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var classNames = require('../../../../utils/functions/classNames/classNames.cjs');
|
|
8
|
+
require('../../../../events/dynamicEvents.cjs');
|
|
8
9
|
require('@dynamic-labs/utils');
|
|
9
10
|
require('../../../../context/DynamicContext/DynamicContext.cjs');
|
|
10
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useRef, useMemo, useEffect } from 'react';
|
|
3
3
|
import { classNames } from '../../../../utils/functions/classNames/classNames.js';
|
|
4
|
+
import '../../../../events/dynamicEvents.js';
|
|
4
5
|
import '@dynamic-labs/utils';
|
|
5
6
|
import '../../../../context/DynamicContext/DynamicContext.js';
|
|
6
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import { CopyKey } from '../../shared';
|
|
2
3
|
export type AlertIcons = 'error';
|
|
3
4
|
export type AlertProps = {
|
|
4
5
|
contentDataTestId?: string;
|
|
5
6
|
icon?: ReactElement | AlertIcons;
|
|
6
7
|
variant?: 'error' | 'warning';
|
|
7
|
-
};
|
|
8
|
+
} & CopyKey;
|
|
8
9
|
export type AlertComponent = FC<PropsWithChildren<AlertProps>>;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
+
require('../../events/dynamicEvents.cjs');
|
|
6
7
|
require('@dynamic-labs/utils');
|
|
7
8
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
8
9
|
require('@dynamic-labs/wallet-connector-core');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useState, useRef, useMemo, useCallback, useEffect, isValidElement, Children, cloneElement } from 'react';
|
|
2
|
+
import '../../events/dynamicEvents.js';
|
|
2
3
|
import '@dynamic-labs/utils';
|
|
3
4
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
4
5
|
import '@dynamic-labs/wallet-connector-core';
|
|
@@ -23,6 +23,7 @@ var IconWithStatus = require('../IconWithStatus/IconWithStatus.cjs');
|
|
|
23
23
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
24
24
|
var WalletIconWithStatus = require('../../widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs');
|
|
25
25
|
var AccessDeniedContext = require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
26
|
+
require('../../events/dynamicEvents.cjs');
|
|
26
27
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
27
28
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
28
29
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
@@ -19,6 +19,7 @@ import { IconWithStatus } from '../IconWithStatus/IconWithStatus.js';
|
|
|
19
19
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
20
20
|
import { WalletIconWithStatus } from '../../widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js';
|
|
21
21
|
import { useAccessDeniedContext } from '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
22
|
+
import '../../events/dynamicEvents.js';
|
|
22
23
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
23
24
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
24
25
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
@@ -11,7 +11,7 @@ var Typography = require('../Typography/Typography.cjs');
|
|
|
11
11
|
|
|
12
12
|
const Button = ({ buttonClassName = '', buttonPadding = 'medium', buttonVariant = 'primary', children, feedback, expanded, dataTestId, disabled = false, showInternalLoading = true, loading = false, onClick, type, startSlot, endSlot, typographyProps = {
|
|
13
13
|
variant: 'button_primary',
|
|
14
|
-
}, }) => {
|
|
14
|
+
}, copykey, }) => {
|
|
15
15
|
const [internalButtonLoading, setInternalButtonLoading] = React.useState(false);
|
|
16
16
|
const [isFeedbackVisible, setIsFeedbackVisible] = React.useState(false);
|
|
17
17
|
const buttonVariantClassNameMap = {
|
|
@@ -54,7 +54,7 @@ const Button = ({ buttonClassName = '', buttonPadding = 'medium', buttonVariant
|
|
|
54
54
|
}, 2000);
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
const buttonContent = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [startSlot && jsxRuntime.jsx("div", { className: 'button__start-slot', children: startSlot }), (feedback || children) && (jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'button_primary', color: 'primary', as: 'span' }, typographyProps, { children: isFeedbackVisible && feedback ? feedback : children }))), endSlot && jsxRuntime.jsx("div", { className: 'button__end-slot', children: endSlot })] }));
|
|
57
|
+
const buttonContent = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [startSlot && jsxRuntime.jsx("div", { className: 'button__start-slot', children: startSlot }), (feedback || children) && (jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'button_primary', color: 'primary', as: 'span' }, typographyProps, { copykey: copykey, children: isFeedbackVisible && feedback ? feedback : children }))), endSlot && jsxRuntime.jsx("div", { className: 'button__end-slot', children: endSlot })] }));
|
|
58
58
|
return (jsxRuntime.jsxs("button", { type: type, onClick: handleClick, className: buttonEffectiveClassName, disabled: disabled || internalButtonLoading || loading, "data-testid": dataTestId, children: [(internalButtonLoading || loading) && (jsxRuntime.jsx("div", { className: 'button__spinner-container', "data-testid": 'button__spinner', children: jsxRuntime.jsx(spinner.Spinner, { className: 'button__spinner' }) })), buttonContent] }));
|
|
59
59
|
};
|
|
60
60
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, FC, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { TypographyProps } from '../Typography/Typography.types';
|
|
3
|
+
import { CopyKey } from '../../shared';
|
|
3
4
|
type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'brand-primary';
|
|
4
5
|
type ButtonPadding = 'small' | 'medium' | 'large' | 'none' | 'default' | 'login-screen-height';
|
|
5
6
|
export type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> & {
|
|
@@ -16,6 +17,6 @@ export type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick
|
|
|
16
17
|
startSlot?: JSX.Element;
|
|
17
18
|
typographyProps?: Omit<TypographyProps, 'as'>;
|
|
18
19
|
onClick?: MouseEventHandler<HTMLButtonElement> | (() => Promise<void>);
|
|
19
|
-
};
|
|
20
|
+
} & CopyKey;
|
|
20
21
|
export declare const Button: FC<ButtonProps>;
|
|
21
22
|
export {};
|
|
@@ -7,7 +7,7 @@ import { Typography } from '../Typography/Typography.js';
|
|
|
7
7
|
|
|
8
8
|
const Button = ({ buttonClassName = '', buttonPadding = 'medium', buttonVariant = 'primary', children, feedback, expanded, dataTestId, disabled = false, showInternalLoading = true, loading = false, onClick, type, startSlot, endSlot, typographyProps = {
|
|
9
9
|
variant: 'button_primary',
|
|
10
|
-
}, }) => {
|
|
10
|
+
}, copykey, }) => {
|
|
11
11
|
const [internalButtonLoading, setInternalButtonLoading] = useState(false);
|
|
12
12
|
const [isFeedbackVisible, setIsFeedbackVisible] = useState(false);
|
|
13
13
|
const buttonVariantClassNameMap = {
|
|
@@ -50,7 +50,7 @@ const Button = ({ buttonClassName = '', buttonPadding = 'medium', buttonVariant
|
|
|
50
50
|
}, 2000);
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
const buttonContent = (jsxs(Fragment, { children: [startSlot && jsx("div", { className: 'button__start-slot', children: startSlot }), (feedback || children) && (jsx(Typography, Object.assign({ variant: 'button_primary', color: 'primary', as: 'span' }, typographyProps, { children: isFeedbackVisible && feedback ? feedback : children }))), endSlot && jsx("div", { className: 'button__end-slot', children: endSlot })] }));
|
|
53
|
+
const buttonContent = (jsxs(Fragment, { children: [startSlot && jsx("div", { className: 'button__start-slot', children: startSlot }), (feedback || children) && (jsx(Typography, Object.assign({ variant: 'button_primary', color: 'primary', as: 'span' }, typographyProps, { copykey: copykey, children: isFeedbackVisible && feedback ? feedback : children }))), endSlot && jsx("div", { className: 'button__end-slot', children: endSlot })] }));
|
|
54
54
|
return (jsxs("button", { type: type, onClick: handleClick, className: buttonEffectiveClassName, disabled: disabled || internalButtonLoading || loading, "data-testid": dataTestId, children: [(internalButtonLoading || loading) && (jsx("div", { className: 'button__spinner-container', "data-testid": 'button__spinner', children: jsx(Spinner, { className: 'button__spinner' }) })), buttonContent] }));
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
7
7
|
require('react');
|
|
8
|
+
require('../../events/dynamicEvents.cjs');
|
|
8
9
|
require('@dynamic-labs/utils');
|
|
9
10
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
10
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
3
3
|
import 'react';
|
|
4
|
+
import '../../events/dynamicEvents.js';
|
|
4
5
|
import '@dynamic-labs/utils';
|
|
5
6
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
6
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
@@ -9,7 +9,7 @@ var useInternalDynamicContext = require('../../context/DynamicContext/useInterna
|
|
|
9
9
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
10
10
|
var ConnectButton = require('./components/ConnectButton.cjs');
|
|
11
11
|
|
|
12
|
-
const DynamicConnectButton = ({ buttonContainerClassName = '', buttonClassName = '', children, }) => {
|
|
12
|
+
const DynamicConnectButton = ({ buttonContainerClassName = '', buttonClassName = '', children, copykey, }) => {
|
|
13
13
|
const { isProjectSettingsLoading, setShowAuthFlow, setSelectedWalletConnectorKey, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
14
14
|
const { setView } = ViewContext.useViewContext();
|
|
15
15
|
const [didUserClick, setUserClicked] = React.useState(false);
|
|
@@ -20,7 +20,7 @@ const DynamicConnectButton = ({ buttonContainerClassName = '', buttonClassName =
|
|
|
20
20
|
setSelectedWalletConnectorKey(null);
|
|
21
21
|
setShowAuthFlow(true);
|
|
22
22
|
}), [didUserClick, setSelectedWalletConnectorKey, setShowAuthFlow, setView]);
|
|
23
|
-
return (jsxRuntime.jsx(ConnectButton.ConnectButton, { isLoading: isProjectSettingsLoading, isActive: didUserClick, onClick: handleOnClick, buttonContainerClassName: buttonContainerClassName, buttonClassName: buttonClassName, children: children }));
|
|
23
|
+
return (jsxRuntime.jsx(ConnectButton.ConnectButton, { isLoading: isProjectSettingsLoading, isActive: didUserClick, onClick: handleOnClick, buttonContainerClassName: buttonContainerClassName, buttonClassName: buttonClassName, copykey: copykey, children: children }));
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
exports.DynamicConnectButton = DynamicConnectButton;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { CopyKey } from '../../shared';
|
|
2
3
|
type Props = {
|
|
3
4
|
buttonClassName?: string;
|
|
4
5
|
buttonContainerClassName?: string;
|
|
5
6
|
children: ReactNode;
|
|
6
|
-
};
|
|
7
|
-
export declare const DynamicConnectButton: ({ buttonContainerClassName, buttonClassName, children, }: Props) => JSX.Element;
|
|
7
|
+
} & CopyKey;
|
|
8
|
+
export declare const DynamicConnectButton: ({ buttonContainerClassName, buttonClassName, children, copykey, }: Props) => JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -5,7 +5,7 @@ import { useInternalDynamicContext } from '../../context/DynamicContext/useInter
|
|
|
5
5
|
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
6
6
|
import { ConnectButton } from './components/ConnectButton.js';
|
|
7
7
|
|
|
8
|
-
const DynamicConnectButton = ({ buttonContainerClassName = '', buttonClassName = '', children, }) => {
|
|
8
|
+
const DynamicConnectButton = ({ buttonContainerClassName = '', buttonClassName = '', children, copykey, }) => {
|
|
9
9
|
const { isProjectSettingsLoading, setShowAuthFlow, setSelectedWalletConnectorKey, } = useInternalDynamicContext();
|
|
10
10
|
const { setView } = useViewContext();
|
|
11
11
|
const [didUserClick, setUserClicked] = useState(false);
|
|
@@ -16,7 +16,7 @@ const DynamicConnectButton = ({ buttonContainerClassName = '', buttonClassName =
|
|
|
16
16
|
setSelectedWalletConnectorKey(null);
|
|
17
17
|
setShowAuthFlow(true);
|
|
18
18
|
}), [didUserClick, setSelectedWalletConnectorKey, setShowAuthFlow, setView]);
|
|
19
|
-
return (jsx(ConnectButton, { isLoading: isProjectSettingsLoading, isActive: didUserClick, onClick: handleOnClick, buttonContainerClassName: buttonContainerClassName, buttonClassName: buttonClassName, children: children }));
|
|
19
|
+
return (jsx(ConnectButton, { isLoading: isProjectSettingsLoading, isActive: didUserClick, onClick: handleOnClick, buttonContainerClassName: buttonContainerClassName, buttonClassName: buttonClassName, copykey: copykey, children: children }));
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export { DynamicConnectButton };
|
|
@@ -6,6 +6,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
var Button = require('../../Button/Button.cjs');
|
|
7
7
|
var classNames = require('../../../utils/functions/classNames/classNames.cjs');
|
|
8
8
|
|
|
9
|
-
const ConnectButton = ({ buttonClassName, buttonContainerClassName, onClick, isActive, isLoading, children, }) => (jsxRuntime.jsx("div", { className: buttonContainerClassName, children: jsxRuntime.jsx(Button.Button, { dataTestId: 'ConnectButton', onClick: onClick, buttonClassName: classNames.classNames('connect-button', buttonClassName), loading: isLoading && isActive, disabled: isLoading && isActive, buttonVariant: 'primary', buttonPadding: 'large', children: children }) }));
|
|
9
|
+
const ConnectButton = ({ buttonClassName, buttonContainerClassName, onClick, isActive, isLoading, children, copykey, }) => (jsxRuntime.jsx("div", { className: buttonContainerClassName, children: jsxRuntime.jsx(Button.Button, { dataTestId: 'ConnectButton', onClick: onClick, buttonClassName: classNames.classNames('connect-button', buttonClassName), loading: isLoading && isActive, disabled: isLoading && isActive, buttonVariant: 'primary', buttonPadding: 'large', copykey: copykey, children: children }) }));
|
|
10
10
|
|
|
11
11
|
exports.ConnectButton = ConnectButton;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { CopyKey } from '../../../shared';
|
|
2
3
|
export type ConnectButtonProps = {
|
|
3
4
|
buttonClassName?: string;
|
|
4
5
|
buttonContainerClassName?: string;
|
|
5
6
|
isLoading?: boolean;
|
|
6
7
|
isActive?: boolean;
|
|
7
8
|
onClick?: () => void;
|
|
8
|
-
};
|
|
9
|
+
} & CopyKey;
|
|
9
10
|
export declare const ConnectButton: FC<PropsWithChildren<ConnectButtonProps>>;
|
|
@@ -2,6 +2,6 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Button } from '../../Button/Button.js';
|
|
3
3
|
import { classNames } from '../../../utils/functions/classNames/classNames.js';
|
|
4
4
|
|
|
5
|
-
const ConnectButton = ({ buttonClassName, buttonContainerClassName, onClick, isActive, isLoading, children, }) => (jsx("div", { className: buttonContainerClassName, children: jsx(Button, { dataTestId: 'ConnectButton', onClick: onClick, buttonClassName: classNames('connect-button', buttonClassName), loading: isLoading && isActive, disabled: isLoading && isActive, buttonVariant: 'primary', buttonPadding: 'large', children: children }) }));
|
|
5
|
+
const ConnectButton = ({ buttonClassName, buttonContainerClassName, onClick, isActive, isLoading, children, copykey, }) => (jsx("div", { className: buttonContainerClassName, children: jsx(Button, { dataTestId: 'ConnectButton', onClick: onClick, buttonClassName: classNames('connect-button', buttonClassName), loading: isLoading && isActive, disabled: isLoading && isActive, buttonVariant: 'primary', buttonPadding: 'large', copykey: copykey, children: children }) }));
|
|
6
6
|
|
|
7
7
|
export { ConnectButton };
|
|
@@ -19,14 +19,14 @@ require('../../shared/consts/index.cjs');
|
|
|
19
19
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
20
20
|
var Typography = require('../Typography/Typography.cjs');
|
|
21
21
|
|
|
22
|
-
const ErrorContainer = ({ children, className, isMultiWalletError = false, withIcon = true, variant = 'error', }) => {
|
|
22
|
+
const ErrorContainer = ({ children, className, isMultiWalletError = false, withIcon = true, variant = 'error', copykey, }) => {
|
|
23
23
|
const effectiveContainerClassName = classNames.classNames('error-container', `error-container--${variant}`, className, {
|
|
24
24
|
'error-container--multi-wallet': isMultiWalletError,
|
|
25
25
|
});
|
|
26
26
|
const effectiveErrorClassName = classNames.classNames('error', {
|
|
27
27
|
'error--with-icon': withIcon,
|
|
28
28
|
});
|
|
29
|
-
return (jsxRuntime.jsxs("div", { className: effectiveContainerClassName, children: [withIcon && jsxRuntime.jsx(error.ReactComponent, {}), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', className: effectiveErrorClassName, children: children })] }));
|
|
29
|
+
return (jsxRuntime.jsxs("div", { className: effectiveContainerClassName, children: [withIcon && jsxRuntime.jsx(error.ReactComponent, {}), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', className: effectiveErrorClassName, copykey: copykey, children: children })] }));
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
exports.ErrorContainer = ErrorContainer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { CopyKey } from '../../shared';
|
|
2
3
|
type Variant = 'error' | 'info' | 'success';
|
|
3
4
|
type Props = {
|
|
4
5
|
children: ReactNode;
|
|
@@ -7,5 +8,5 @@ type Props = {
|
|
|
7
8
|
variant?: Variant;
|
|
8
9
|
withIcon?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare const ErrorContainer: ({ children, className, isMultiWalletError, withIcon, variant, }: Props) => JSX.Element;
|
|
11
|
+
export declare const ErrorContainer: ({ children, className, isMultiWalletError, withIcon, variant, copykey, }: Props & CopyKey) => JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -15,14 +15,14 @@ import '../../shared/consts/index.js';
|
|
|
15
15
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
16
16
|
import { Typography } from '../Typography/Typography.js';
|
|
17
17
|
|
|
18
|
-
const ErrorContainer = ({ children, className, isMultiWalletError = false, withIcon = true, variant = 'error', }) => {
|
|
18
|
+
const ErrorContainer = ({ children, className, isMultiWalletError = false, withIcon = true, variant = 'error', copykey, }) => {
|
|
19
19
|
const effectiveContainerClassName = classNames('error-container', `error-container--${variant}`, className, {
|
|
20
20
|
'error-container--multi-wallet': isMultiWalletError,
|
|
21
21
|
});
|
|
22
22
|
const effectiveErrorClassName = classNames('error', {
|
|
23
23
|
'error--with-icon': withIcon,
|
|
24
24
|
});
|
|
25
|
-
return (jsxs("div", { className: effectiveContainerClassName, children: [withIcon && jsx(SvgError, {}), jsx(Typography, { variant: 'body_small', className: effectiveErrorClassName, children: children })] }));
|
|
25
|
+
return (jsxs("div", { className: effectiveContainerClassName, children: [withIcon && jsx(SvgError, {}), jsx(Typography, { variant: 'body_small', className: effectiveErrorClassName, copykey: copykey, children: children })] }));
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export { ErrorContainer };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { CopyKey } from '../../shared';
|
|
2
3
|
export type InputVariant = 'dense' | 'regular';
|
|
3
4
|
export type InputProps = React.ComponentPropsWithoutRef<'input'> & {
|
|
4
5
|
className?: string;
|
|
@@ -10,5 +11,5 @@ export type InputProps = React.ComponentPropsWithoutRef<'input'> & {
|
|
|
10
11
|
placeholder?: string;
|
|
11
12
|
suffix?: ReactNode;
|
|
12
13
|
variant?: InputVariant;
|
|
13
|
-
};
|
|
14
|
+
} & CopyKey;
|
|
14
15
|
export type InputComponent = FC<PropsWithChildren<InputProps>>;
|
|
@@ -6,6 +6,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
7
7
|
var Typography = require('../Typography/Typography.cjs');
|
|
8
8
|
|
|
9
|
-
const ListTile = ({ children, onClick, leading, disabled = false, trailing, style, className = '', dataTestId, }) => (jsxRuntime.jsxs("button", { "data-testid": dataTestId, type: 'button', className: classNames.classNames(className, 'list-tile'), onClick: onClick, style: style, disabled: disabled, children: [leading, jsxRuntime.jsx("div", { className: 'list-tile__children', children: jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'body_normal', color: 'primary', as: 'span', children: children }) }), trailing] }));
|
|
9
|
+
const ListTile = ({ children, onClick, leading, disabled = false, trailing, style, className = '', dataTestId, copykey, }) => (jsxRuntime.jsxs("button", { "data-testid": dataTestId, type: 'button', className: classNames.classNames(className, 'list-tile'), onClick: onClick, style: style, disabled: disabled, children: [leading, jsxRuntime.jsx("div", { className: 'list-tile__children', children: jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'body_normal', color: 'primary', as: 'span', copykey: copykey, children: children }) }), trailing] }));
|
|
10
10
|
|
|
11
11
|
exports.ListTile = ListTile;
|
|
@@ -2,6 +2,6 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
3
3
|
import { Typography } from '../Typography/Typography.js';
|
|
4
4
|
|
|
5
|
-
const ListTile = ({ children, onClick, leading, disabled = false, trailing, style, className = '', dataTestId, }) => (jsxs("button", { "data-testid": dataTestId, type: 'button', className: classNames(className, 'list-tile'), onClick: onClick, style: style, disabled: disabled, children: [leading, jsx("div", { className: 'list-tile__children', children: jsx(Typography, { weight: 'medium', variant: 'body_normal', color: 'primary', as: 'span', children: children }) }), trailing] }));
|
|
5
|
+
const ListTile = ({ children, onClick, leading, disabled = false, trailing, style, className = '', dataTestId, copykey, }) => (jsxs("button", { "data-testid": dataTestId, type: 'button', className: classNames(className, 'list-tile'), onClick: onClick, style: style, disabled: disabled, children: [leading, jsx("div", { className: 'list-tile__children', children: jsx(Typography, { weight: 'medium', variant: 'body_normal', color: 'primary', as: 'span', copykey: copykey, children: children }) }), trailing] }));
|
|
6
6
|
|
|
7
7
|
export { ListTile };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, FC, MouseEventHandler, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { CopyKey } from '../../shared';
|
|
2
3
|
export type ListTileProps = {
|
|
3
4
|
className?: string;
|
|
4
5
|
dataTestId?: string;
|
|
@@ -7,5 +8,5 @@ export type ListTileProps = {
|
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
style?: CSSProperties;
|
|
9
10
|
trailing?: ReactNode;
|
|
10
|
-
};
|
|
11
|
+
} & CopyKey;
|
|
11
12
|
export type ListTileComponent = FC<PropsWithChildren<ListTileProps>>;
|
|
@@ -22,6 +22,7 @@ require('@dynamic-labs/wallet-book');
|
|
|
22
22
|
require('../../../utils/constants/colors.cjs');
|
|
23
23
|
require('viem');
|
|
24
24
|
require('../../../shared/consts/index.cjs');
|
|
25
|
+
require('../../../events/dynamicEvents.cjs');
|
|
25
26
|
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
26
27
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
27
28
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -18,6 +18,7 @@ import '@dynamic-labs/wallet-book';
|
|
|
18
18
|
import '../../../utils/constants/colors.js';
|
|
19
19
|
import 'viem';
|
|
20
20
|
import '../../../shared/consts/index.js';
|
|
21
|
+
import '../../../events/dynamicEvents.js';
|
|
21
22
|
import '../../../context/DynamicContext/DynamicContext.js';
|
|
22
23
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
23
24
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
@@ -8,6 +8,7 @@ require('../Transition/ZoomTransition/ZoomTransition.cjs');
|
|
|
8
8
|
var SlideInUpTransition = require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
9
9
|
require('../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
10
10
|
require('react');
|
|
11
|
+
require('../../events/dynamicEvents.cjs');
|
|
11
12
|
require('@dynamic-labs/utils');
|
|
12
13
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
13
14
|
require('@dynamic-labs/wallet-connector-core');
|
|
@@ -4,6 +4,7 @@ import '../Transition/ZoomTransition/ZoomTransition.js';
|
|
|
4
4
|
import { SlideInUpTransition } from '../Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
5
5
|
import '../Transition/OpacityTransition/OpacityTransition.js';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../../events/dynamicEvents.js';
|
|
7
8
|
import '@dynamic-labs/utils';
|
|
8
9
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
9
10
|
import '@dynamic-labs/wallet-connector-core';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var reactI18next = require('react-i18next');
|
|
6
7
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
7
8
|
var AnimatePresence = require('../AnimatePresence/AnimatePresence.cjs');
|
|
8
9
|
var Typography = require('../Typography/Typography.cjs');
|
|
@@ -16,10 +17,13 @@ const typographyColor = {
|
|
|
16
17
|
notice: 'brand-primary',
|
|
17
18
|
success: 'green-1',
|
|
18
19
|
};
|
|
19
|
-
const ModalHeaderBanner = ({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const ModalHeaderBanner = ({ messageKey, type = 'error', disableTruncate = false, }) => {
|
|
21
|
+
const { t } = reactI18next.useTranslation();
|
|
22
|
+
return (jsxRuntime.jsx(AnimatePresence.AnimatePresence, { animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, { style: { width: '100%' } }), children: Boolean(messageKey) && (jsxRuntime.jsx("div", { className: classNames.classNames('modal-header-banner', {
|
|
23
|
+
'modal-header-banner__error': type === 'error',
|
|
24
|
+
'modal-header-banner__notice': type === 'notice',
|
|
25
|
+
'modal-header-banner__success': type === 'success',
|
|
26
|
+
}), children: jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: typographyColor[type], truncate: disableTruncate === false, copykey: messageKey, children: t(messageKey || '') }) })) }));
|
|
27
|
+
};
|
|
24
28
|
|
|
25
29
|
exports.ModalHeaderBanner = ModalHeaderBanner;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
2
3
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
3
4
|
import { AnimatePresence } from '../AnimatePresence/AnimatePresence.js';
|
|
4
5
|
import { Typography } from '../Typography/Typography.js';
|
|
@@ -12,10 +13,13 @@ const typographyColor = {
|
|
|
12
13
|
notice: 'brand-primary',
|
|
13
14
|
success: 'green-1',
|
|
14
15
|
};
|
|
15
|
-
const ModalHeaderBanner = ({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
const ModalHeaderBanner = ({ messageKey, type = 'error', disableTruncate = false, }) => {
|
|
17
|
+
const { t } = useTranslation();
|
|
18
|
+
return (jsx(AnimatePresence, { animationComponent: jsx(VerticalDrawerTransition, { style: { width: '100%' } }), children: Boolean(messageKey) && (jsx("div", { className: classNames('modal-header-banner', {
|
|
19
|
+
'modal-header-banner__error': type === 'error',
|
|
20
|
+
'modal-header-banner__notice': type === 'notice',
|
|
21
|
+
'modal-header-banner__success': type === 'success',
|
|
22
|
+
}), children: jsx(Typography, { variant: 'body_small', color: typographyColor[type], truncate: disableTruncate === false, copykey: messageKey, children: t(messageKey || '') }) })) }));
|
|
23
|
+
};
|
|
20
24
|
|
|
21
25
|
export { ModalHeaderBanner };
|