@vechain/vechain-kit 1.9.5 → 1.9.6

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/dist/index.d.cts CHANGED
@@ -115,6 +115,8 @@ type VechainKitProviderProps = {
115
115
  allowCustomTokens?: boolean;
116
116
  legalDocuments?: LegalDocumentOptions;
117
117
  defaultCurrency?: CURRENCY;
118
+ onLanguageChange?: (language: string) => void;
119
+ onCurrencyChange?: (currency: CURRENCY) => void;
118
120
  };
119
121
  type VeChainKitConfig = {
120
122
  privy?: VechainKitProviderProps['privy'];
@@ -132,7 +134,8 @@ type VeChainKitConfig = {
132
134
  legalDocuments?: VechainKitProviderProps['legalDocuments'];
133
135
  defaultCurrency?: VechainKitProviderProps['defaultCurrency'];
134
136
  currentCurrency: CURRENCY;
135
- setCurrentCurrency: (currency: CURRENCY) => void;
137
+ setLanguage: (language: string) => void;
138
+ setCurrency: (currency: CURRENCY) => void;
136
139
  };
137
140
  /**
138
141
  * Context to store the Privy and DAppKit configs so that they can be used by the hooks/components
@@ -2667,11 +2670,68 @@ declare const useWalletMetadata: (address: string, networkType: NETWORK_TYPE) =>
2667
2670
 
2668
2671
  /**
2669
2672
  * Hook for managing currency preferences
2673
+ *
2674
+ * Note: This hook now uses the currency from VeChainKit context.
2675
+ * For setting currency, use the setCurrency function from useCurrentCurrency() hook instead.
2670
2676
  */
2671
2677
  declare const useCurrency: () => {
2672
2678
  currentCurrency: CURRENCY;
2673
2679
  allCurrencies: CURRENCY[];
2674
- changeCurrency: (newCurrency: CURRENCY) => void;
2680
+ };
2681
+
2682
+ /**
2683
+ * Hook to get and set the current language in VeChainKit
2684
+ *
2685
+ * This hook provides the current runtime language value and a function to change it.
2686
+ * Changes made via this hook will sync to VeChainKit settings and trigger callbacks.
2687
+ *
2688
+ * @returns Object with:
2689
+ * - `currentLanguage`: Current language code (e.g., 'en', 'fr', 'de')
2690
+ * - `setLanguage`: Function to change the language
2691
+ *
2692
+ * @example
2693
+ * ```tsx
2694
+ * const { currentLanguage, setLanguage } = useCurrentLanguage();
2695
+ *
2696
+ * return (
2697
+ * <select value={currentLanguage} onChange={(e) => setLanguage(e.target.value)}>
2698
+ * <option value="en">English</option>
2699
+ * <option value="fr">Français</option>
2700
+ * </select>
2701
+ * );
2702
+ * ```
2703
+ */
2704
+ declare const useCurrentLanguage: () => {
2705
+ currentLanguage: string;
2706
+ setLanguage: (language: string) => void;
2707
+ };
2708
+
2709
+ /**
2710
+ * Hook to get and set the current currency in VeChainKit
2711
+ *
2712
+ * This hook provides the current runtime currency value and a function to change it.
2713
+ * Changes made via this hook will sync to VeChainKit settings and trigger callbacks.
2714
+ *
2715
+ * @returns Object with:
2716
+ * - `currentCurrency`: Current currency code ('usd', 'eur', or 'gbp')
2717
+ * - `setCurrency`: Function to change the currency
2718
+ *
2719
+ * @example
2720
+ * ```tsx
2721
+ * const { currentCurrency, setCurrency } = useCurrentCurrency();
2722
+ *
2723
+ * return (
2724
+ * <select value={currentCurrency} onChange={(e) => setCurrency(e.target.value as CURRENCY)}>
2725
+ * <option value="usd">USD ($)</option>
2726
+ * <option value="eur">EUR (€)</option>
2727
+ * <option value="gbp">GBP (£)</option>
2728
+ * </select>
2729
+ * );
2730
+ * ```
2731
+ */
2732
+ declare const useCurrentCurrency: () => {
2733
+ currentCurrency: CURRENCY;
2734
+ setCurrency: (currency: CURRENCY) => void;
2675
2735
  };
2676
2736
 
2677
2737
  declare const getChainId: (thor: ThorClient) => Promise<string>;
@@ -4121,4 +4181,4 @@ declare const useCrossAppConnectionCache: () => {
4121
4181
  clearConnectionCache: () => void;
4122
4182
  };
4123
4183
 
4124
- export { APP_SECURITY_LEVELS, AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, type AppConfig, type AppHubApp, type AppVotesGiven, AppearanceSettingsContent, AssetButton, AssetsContent, type AssetsContentProps, BalanceSection, BaseModal, BridgeContent, type BuildTransactionProps, CURRENCY, ChangeCurrencyContent, type ChangeCurrencyContentProps, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, ConnectPopover, ConnectionButton, ConnectionSource, CrossAppConnectionCache, CrossAppConnectionSecurityCard, type CustomTokenInfo, CustomizationContent, CustomizationSummaryContent, type CustomizationSummaryContentProps, DappKitButton, type DecodedFunction, DisconnectConfirmContent, type DisconnectConfirmContentProps, type Domain, DomainRequiredAlert, type DomainsResponse, ENSRecords, ENS_TEXT_RECORDS, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, EnhancedClause, type EnrichedLegalDocument, type ExchangeRates, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, type GetCallKeyParams, type IpfsImage, LanguageSettingsContent, type LegalDocument, type LegalDocumentAgreement, LegalDocumentItem, type LegalDocumentOptions, LegalDocumentSource, LegalDocumentType, LegalDocumentsModal, type LegalDocumentsModalContentsTypes, LegalDocumentsProvider, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, type ManageCustomTokenContentProps, ModalBackButton, ModalFAQButton, ModalNotificationButton, type MostVotedAppsInRoundReturnType, NFTMediaType, type NFTMetadata, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, ProfileCard, type ProfileCardProps, ProfileContent, type ProfileContentProps, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, type RoundCreated, type RoundReward, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, type SettingsContentProps, ShareButtons, SmartAccount, type SmartAccountReturnType, SocialIcons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, TermsAndPrivacyContent, type TextRecords, type TokenBalance, type TokenWithBalance, type TokenWithValue, TransactionButtonAndStatus, type TransactionButtonAndStatusProps, TransactionModal, TransactionModalContent, type TransactionModalProps, TransactionModalProvider, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, type UnendorsedApp, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseCallParams, type UseSendTransactionReturnValue, type UseWalletReturnType, type UserNode, type UserXNode, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, type VechainKitProviderProps, VechainKitThemeProvider, VersionFooter, Wallet, WalletButton, type WalletButtonProps, type WalletDisplayVariant, WalletModalProvider, type WalletTokenBalance, type XApp, type XAppMetadata, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, decodeFunctionSignature, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersion, getAccountVersionQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppHubAppsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getConfig, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getResolverAddress, getResolverAddressQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserRoundScoreQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getUserXNodes, getUserXNodesQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsClauses, getXAppTotalEarningsQueryKey, getXAppVotes, getXAppVotesQf, getXAppVotesQfQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUri, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, pollForReceipt, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppHubApps, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBuildTransaction, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useDecodeFunctionSignature, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGMBaseUri, useGMbalance, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetErc20Balance, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLegalDocuments, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshMetadata, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenBalances, useTokenIdByAccount, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
4184
+ export { APP_SECURITY_LEVELS, AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, type AppConfig, type AppHubApp, type AppVotesGiven, AppearanceSettingsContent, AssetButton, AssetsContent, type AssetsContentProps, BalanceSection, BaseModal, BridgeContent, type BuildTransactionProps, CURRENCY, ChangeCurrencyContent, type ChangeCurrencyContentProps, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, ConnectPopover, ConnectionButton, ConnectionSource, CrossAppConnectionCache, CrossAppConnectionSecurityCard, type CustomTokenInfo, CustomizationContent, CustomizationSummaryContent, type CustomizationSummaryContentProps, DappKitButton, type DecodedFunction, DisconnectConfirmContent, type DisconnectConfirmContentProps, type Domain, DomainRequiredAlert, type DomainsResponse, ENSRecords, ENS_TEXT_RECORDS, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, EnhancedClause, type EnrichedLegalDocument, type ExchangeRates, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, type GetCallKeyParams, type IpfsImage, LanguageSettingsContent, type LegalDocument, type LegalDocumentAgreement, LegalDocumentItem, type LegalDocumentOptions, LegalDocumentSource, LegalDocumentType, LegalDocumentsModal, type LegalDocumentsModalContentsTypes, LegalDocumentsProvider, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, type ManageCustomTokenContentProps, ModalBackButton, ModalFAQButton, ModalNotificationButton, type MostVotedAppsInRoundReturnType, NFTMediaType, type NFTMetadata, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, ProfileCard, type ProfileCardProps, ProfileContent, type ProfileContentProps, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, type RoundCreated, type RoundReward, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, type SettingsContentProps, ShareButtons, SmartAccount, type SmartAccountReturnType, SocialIcons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, TermsAndPrivacyContent, type TextRecords, type TokenBalance, type TokenWithBalance, type TokenWithValue, TransactionButtonAndStatus, type TransactionButtonAndStatusProps, TransactionModal, TransactionModalContent, type TransactionModalProps, TransactionModalProvider, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, type UnendorsedApp, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseCallParams, type UseSendTransactionReturnValue, type UseWalletReturnType, type UserNode, type UserXNode, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, type VechainKitProviderProps, VechainKitThemeProvider, VersionFooter, Wallet, WalletButton, type WalletButtonProps, type WalletDisplayVariant, WalletModalProvider, type WalletTokenBalance, type XApp, type XAppMetadata, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, decodeFunctionSignature, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersion, getAccountVersionQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppHubAppsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getConfig, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getResolverAddress, getResolverAddressQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserRoundScoreQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getUserXNodes, getUserXNodesQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsClauses, getXAppTotalEarningsQueryKey, getXAppVotes, getXAppVotesQf, getXAppVotesQfQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUri, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, pollForReceipt, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppHubApps, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBuildTransaction, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useCurrentCurrency, useCurrentLanguage, useDecodeFunctionSignature, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGMBaseUri, useGMbalance, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetErc20Balance, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLegalDocuments, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshMetadata, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenBalances, useTokenIdByAccount, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
package/dist/index.d.ts CHANGED
@@ -115,6 +115,8 @@ type VechainKitProviderProps = {
115
115
  allowCustomTokens?: boolean;
116
116
  legalDocuments?: LegalDocumentOptions;
117
117
  defaultCurrency?: CURRENCY;
118
+ onLanguageChange?: (language: string) => void;
119
+ onCurrencyChange?: (currency: CURRENCY) => void;
118
120
  };
119
121
  type VeChainKitConfig = {
120
122
  privy?: VechainKitProviderProps['privy'];
@@ -132,7 +134,8 @@ type VeChainKitConfig = {
132
134
  legalDocuments?: VechainKitProviderProps['legalDocuments'];
133
135
  defaultCurrency?: VechainKitProviderProps['defaultCurrency'];
134
136
  currentCurrency: CURRENCY;
135
- setCurrentCurrency: (currency: CURRENCY) => void;
137
+ setLanguage: (language: string) => void;
138
+ setCurrency: (currency: CURRENCY) => void;
136
139
  };
137
140
  /**
138
141
  * Context to store the Privy and DAppKit configs so that they can be used by the hooks/components
@@ -2667,11 +2670,68 @@ declare const useWalletMetadata: (address: string, networkType: NETWORK_TYPE) =>
2667
2670
 
2668
2671
  /**
2669
2672
  * Hook for managing currency preferences
2673
+ *
2674
+ * Note: This hook now uses the currency from VeChainKit context.
2675
+ * For setting currency, use the setCurrency function from useCurrentCurrency() hook instead.
2670
2676
  */
2671
2677
  declare const useCurrency: () => {
2672
2678
  currentCurrency: CURRENCY;
2673
2679
  allCurrencies: CURRENCY[];
2674
- changeCurrency: (newCurrency: CURRENCY) => void;
2680
+ };
2681
+
2682
+ /**
2683
+ * Hook to get and set the current language in VeChainKit
2684
+ *
2685
+ * This hook provides the current runtime language value and a function to change it.
2686
+ * Changes made via this hook will sync to VeChainKit settings and trigger callbacks.
2687
+ *
2688
+ * @returns Object with:
2689
+ * - `currentLanguage`: Current language code (e.g., 'en', 'fr', 'de')
2690
+ * - `setLanguage`: Function to change the language
2691
+ *
2692
+ * @example
2693
+ * ```tsx
2694
+ * const { currentLanguage, setLanguage } = useCurrentLanguage();
2695
+ *
2696
+ * return (
2697
+ * <select value={currentLanguage} onChange={(e) => setLanguage(e.target.value)}>
2698
+ * <option value="en">English</option>
2699
+ * <option value="fr">Français</option>
2700
+ * </select>
2701
+ * );
2702
+ * ```
2703
+ */
2704
+ declare const useCurrentLanguage: () => {
2705
+ currentLanguage: string;
2706
+ setLanguage: (language: string) => void;
2707
+ };
2708
+
2709
+ /**
2710
+ * Hook to get and set the current currency in VeChainKit
2711
+ *
2712
+ * This hook provides the current runtime currency value and a function to change it.
2713
+ * Changes made via this hook will sync to VeChainKit settings and trigger callbacks.
2714
+ *
2715
+ * @returns Object with:
2716
+ * - `currentCurrency`: Current currency code ('usd', 'eur', or 'gbp')
2717
+ * - `setCurrency`: Function to change the currency
2718
+ *
2719
+ * @example
2720
+ * ```tsx
2721
+ * const { currentCurrency, setCurrency } = useCurrentCurrency();
2722
+ *
2723
+ * return (
2724
+ * <select value={currentCurrency} onChange={(e) => setCurrency(e.target.value as CURRENCY)}>
2725
+ * <option value="usd">USD ($)</option>
2726
+ * <option value="eur">EUR (€)</option>
2727
+ * <option value="gbp">GBP (£)</option>
2728
+ * </select>
2729
+ * );
2730
+ * ```
2731
+ */
2732
+ declare const useCurrentCurrency: () => {
2733
+ currentCurrency: CURRENCY;
2734
+ setCurrency: (currency: CURRENCY) => void;
2675
2735
  };
2676
2736
 
2677
2737
  declare const getChainId: (thor: ThorClient) => Promise<string>;
@@ -4121,4 +4181,4 @@ declare const useCrossAppConnectionCache: () => {
4121
4181
  clearConnectionCache: () => void;
4122
4182
  };
4123
4183
 
4124
- export { APP_SECURITY_LEVELS, AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, type AppConfig, type AppHubApp, type AppVotesGiven, AppearanceSettingsContent, AssetButton, AssetsContent, type AssetsContentProps, BalanceSection, BaseModal, BridgeContent, type BuildTransactionProps, CURRENCY, ChangeCurrencyContent, type ChangeCurrencyContentProps, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, ConnectPopover, ConnectionButton, ConnectionSource, CrossAppConnectionCache, CrossAppConnectionSecurityCard, type CustomTokenInfo, CustomizationContent, CustomizationSummaryContent, type CustomizationSummaryContentProps, DappKitButton, type DecodedFunction, DisconnectConfirmContent, type DisconnectConfirmContentProps, type Domain, DomainRequiredAlert, type DomainsResponse, ENSRecords, ENS_TEXT_RECORDS, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, EnhancedClause, type EnrichedLegalDocument, type ExchangeRates, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, type GetCallKeyParams, type IpfsImage, LanguageSettingsContent, type LegalDocument, type LegalDocumentAgreement, LegalDocumentItem, type LegalDocumentOptions, LegalDocumentSource, LegalDocumentType, LegalDocumentsModal, type LegalDocumentsModalContentsTypes, LegalDocumentsProvider, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, type ManageCustomTokenContentProps, ModalBackButton, ModalFAQButton, ModalNotificationButton, type MostVotedAppsInRoundReturnType, NFTMediaType, type NFTMetadata, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, ProfileCard, type ProfileCardProps, ProfileContent, type ProfileContentProps, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, type RoundCreated, type RoundReward, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, type SettingsContentProps, ShareButtons, SmartAccount, type SmartAccountReturnType, SocialIcons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, TermsAndPrivacyContent, type TextRecords, type TokenBalance, type TokenWithBalance, type TokenWithValue, TransactionButtonAndStatus, type TransactionButtonAndStatusProps, TransactionModal, TransactionModalContent, type TransactionModalProps, TransactionModalProvider, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, type UnendorsedApp, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseCallParams, type UseSendTransactionReturnValue, type UseWalletReturnType, type UserNode, type UserXNode, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, type VechainKitProviderProps, VechainKitThemeProvider, VersionFooter, Wallet, WalletButton, type WalletButtonProps, type WalletDisplayVariant, WalletModalProvider, type WalletTokenBalance, type XApp, type XAppMetadata, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, decodeFunctionSignature, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersion, getAccountVersionQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppHubAppsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getConfig, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getResolverAddress, getResolverAddressQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserRoundScoreQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getUserXNodes, getUserXNodesQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsClauses, getXAppTotalEarningsQueryKey, getXAppVotes, getXAppVotesQf, getXAppVotesQfQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUri, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, pollForReceipt, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppHubApps, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBuildTransaction, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useDecodeFunctionSignature, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGMBaseUri, useGMbalance, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetErc20Balance, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLegalDocuments, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshMetadata, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenBalances, useTokenIdByAccount, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
4184
+ export { APP_SECURITY_LEVELS, AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, type AppConfig, type AppHubApp, type AppVotesGiven, AppearanceSettingsContent, AssetButton, AssetsContent, type AssetsContentProps, BalanceSection, BaseModal, BridgeContent, type BuildTransactionProps, CURRENCY, ChangeCurrencyContent, type ChangeCurrencyContentProps, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, ConnectPopover, ConnectionButton, ConnectionSource, CrossAppConnectionCache, CrossAppConnectionSecurityCard, type CustomTokenInfo, CustomizationContent, CustomizationSummaryContent, type CustomizationSummaryContentProps, DappKitButton, type DecodedFunction, DisconnectConfirmContent, type DisconnectConfirmContentProps, type Domain, DomainRequiredAlert, type DomainsResponse, ENSRecords, ENS_TEXT_RECORDS, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, EnhancedClause, type EnrichedLegalDocument, type ExchangeRates, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, type GetCallKeyParams, type IpfsImage, LanguageSettingsContent, type LegalDocument, type LegalDocumentAgreement, LegalDocumentItem, type LegalDocumentOptions, LegalDocumentSource, LegalDocumentType, LegalDocumentsModal, type LegalDocumentsModalContentsTypes, LegalDocumentsProvider, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, type ManageCustomTokenContentProps, ModalBackButton, ModalFAQButton, ModalNotificationButton, type MostVotedAppsInRoundReturnType, NFTMediaType, type NFTMetadata, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, ProfileCard, type ProfileCardProps, ProfileContent, type ProfileContentProps, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, type RoundCreated, type RoundReward, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, type SettingsContentProps, ShareButtons, SmartAccount, type SmartAccountReturnType, SocialIcons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, TermsAndPrivacyContent, type TextRecords, type TokenBalance, type TokenWithBalance, type TokenWithValue, TransactionButtonAndStatus, type TransactionButtonAndStatusProps, TransactionModal, TransactionModalContent, type TransactionModalProps, TransactionModalProvider, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, type UnendorsedApp, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseCallParams, type UseSendTransactionReturnValue, type UseWalletReturnType, type UserNode, type UserXNode, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, type VechainKitProviderProps, VechainKitThemeProvider, VersionFooter, Wallet, WalletButton, type WalletButtonProps, type WalletDisplayVariant, WalletModalProvider, type WalletTokenBalance, type XApp, type XAppMetadata, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, decodeFunctionSignature, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersion, getAccountVersionQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppHubAppsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getConfig, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getResolverAddress, getResolverAddressQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserRoundScoreQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getUserXNodes, getUserXNodesQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsClauses, getXAppTotalEarningsQueryKey, getXAppVotes, getXAppVotesQf, getXAppVotesQfQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUri, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, pollForReceipt, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppHubApps, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBuildTransaction, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useCurrentCurrency, useCurrentLanguage, useDecodeFunctionSignature, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGMBaseUri, useGMbalance, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetErc20Balance, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLegalDocuments, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshMetadata, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenBalances, useTokenIdByAccount, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { IVechainEnergyOracleV1__factory, IB3TR__factory, IVOT3__factory, GalaxyMember__factory, NodeManagement__factory, X2EarnApps__factory, XAllocationVoting__factory, XAllocationVotingGovernor__factory, XAllocationPool__factory, VoterRewards__factory, VeBetterPassport__factory, IERC20__factory, MockENS__factory, SubdomainClaimer__factory, IReverseRegistrar__factory, ERC20__factory, SimpleAccountFactory__factory, SimpleAccount__factory, Emissions__factory, X2EarnRewardsPool__factory } from './chunk-FOSPSOWT.js';
2
- import { VECHAIN_KIT_MIXPANEL_PROJECT_TOKEN, ENV, humanAddress, TOKEN_LOGO_COMPONENTS, TOKEN_LOGOS, getConfig, humanNumber, allNodeStrengthLevelToName, NodeStrengthLevelToImage, notFoundImage, convertUriToUrl, resolveMediaTypeFromMimeType, gmNfts, DEFAULT_PRIVY_ECOSYSTEM_APPS, ENS_TEXT_RECORDS, getPicassoImage, VECHAIN_PRIVY_APP_ID, compareAddresses, isValidAddress, humanDomain, VECHAIN_KIT_COOKIES_CONFIG, VECHAIN_KIT_STORAGE_KEYS, CURRENCY_SYMBOLS, uploadBlobToIPFS, randomTransactionUser, VECHAIN_KIT_TERMS_CONFIG, isValidUrl } from './chunk-3SI2CCB5.js';
3
- export { CURRENCY_SYMBOLS, ENS_TEXT_RECORDS, LegalDocumentSource, LegalDocumentType, NFTMediaType, VePassportUserStatus, getConfig } from './chunk-3SI2CCB5.js';
2
+ import { VECHAIN_KIT_MIXPANEL_PROJECT_TOKEN, ENV, humanAddress, TOKEN_LOGO_COMPONENTS, TOKEN_LOGOS, getConfig, humanNumber, allNodeStrengthLevelToName, NodeStrengthLevelToImage, notFoundImage, convertUriToUrl, resolveMediaTypeFromMimeType, gmNfts, DEFAULT_PRIVY_ECOSYSTEM_APPS, ENS_TEXT_RECORDS, getPicassoImage, setLocalStorageItem, VECHAIN_PRIVY_APP_ID, compareAddresses, isValidAddress, humanDomain, VECHAIN_KIT_COOKIES_CONFIG, getLocalStorageItem, VECHAIN_KIT_STORAGE_KEYS, CURRENCY_SYMBOLS, uploadBlobToIPFS, randomTransactionUser, VECHAIN_KIT_TERMS_CONFIG, isValidUrl } from './chunk-563OFP3K.js';
3
+ export { CURRENCY_SYMBOLS, ENS_TEXT_RECORDS, LegalDocumentSource, LegalDocumentType, NFTMediaType, VePassportUserStatus, getConfig } from './chunk-563OFP3K.js';
4
4
  import { VechainLogo, SimpleAccountFactoryABI, VechainLogoLight, VechainLogoDark, VeWorldLogoLight, VeWorldLogoDark, VechainEnergy, SimpleAccountABI, PrivyLogo } from './chunk-Z4FE6MMP.js';
5
5
  import './chunk-PZ5AY32C.js';
6
6
  import i18n from 'i18next';
@@ -4057,6 +4057,12 @@ var languageNames = {
4057
4057
  };
4058
4058
  var customLanguageDetector = {
4059
4059
  lookup: (options) => {
4060
+ if (typeof window !== "undefined") {
4061
+ const storedLanguage = localStorage.getItem("i18nextLng");
4062
+ if (storedLanguage && supportedLanguages.includes(storedLanguage)) {
4063
+ return storedLanguage;
4064
+ }
4065
+ }
4060
4066
  const propLanguage = options?.languages?.[0];
4061
4067
  if (propLanguage && supportedLanguages.includes(propLanguage)) {
4062
4068
  return propLanguage;
@@ -4804,7 +4810,7 @@ var AddressDisplay = ({
4804
4810
 
4805
4811
  // package.json
4806
4812
  var package_default = {
4807
- version: "1.9.4"};
4813
+ version: "1.9.5"};
4808
4814
  var VersionFooter = ({ ...props }) => {
4809
4815
  const { darkMode: isDark } = useVeChainKitConfig();
4810
4816
  return /* @__PURE__ */ jsxs(
@@ -9065,22 +9071,16 @@ var useTokenPrices = () => {
9065
9071
  isLoading
9066
9072
  };
9067
9073
  };
9068
-
9069
- // src/hooks/api/wallet/useCurrency.ts
9074
+ var STORAGE_KEY = "vechain_kit_currency";
9070
9075
  var allCurrencies = ["usd", "eur", "gbp"];
9071
9076
  var useCurrency = () => {
9072
- const { currentCurrency, setCurrentCurrency } = useVeChainKitConfig();
9073
- const changeCurrency = (newCurrency) => {
9074
- if (!allCurrencies.includes(newCurrency)) {
9075
- console.error(`Invalid currency: ${newCurrency}`);
9076
- return;
9077
- }
9078
- setCurrentCurrency(newCurrency);
9079
- };
9077
+ const { currentCurrency, setCurrency } = useVeChainKitConfig();
9078
+ useEffect(() => {
9079
+ setLocalStorageItem(STORAGE_KEY, currentCurrency);
9080
+ }, [currentCurrency]);
9080
9081
  return {
9081
9082
  currentCurrency,
9082
- allCurrencies,
9083
- changeCurrency
9083
+ allCurrencies
9084
9084
  };
9085
9085
  };
9086
9086
 
@@ -9655,6 +9655,24 @@ var useAccountBalance = (address) => {
9655
9655
  });
9656
9656
  };
9657
9657
 
9658
+ // src/hooks/api/wallet/useCurrentLanguage.ts
9659
+ var useCurrentLanguage = () => {
9660
+ const { currentLanguage, setLanguage } = useVeChainKitConfig();
9661
+ return {
9662
+ currentLanguage,
9663
+ setLanguage
9664
+ };
9665
+ };
9666
+
9667
+ // src/hooks/api/wallet/useCurrentCurrency.ts
9668
+ var useCurrentCurrency = () => {
9669
+ const { currentCurrency, setCurrency } = useVeChainKitConfig();
9670
+ return {
9671
+ currentCurrency,
9672
+ setCurrency
9673
+ };
9674
+ };
9675
+
9658
9676
  // src/hooks/api/utility/useGetNodeUrl.ts
9659
9677
  var useGetNodeUrl = () => {
9660
9678
  const { network } = useVeChainKitConfig();
@@ -15833,7 +15851,8 @@ var ChangeCurrencyContent = ({
15833
15851
  setCurrentContent
15834
15852
  }) => {
15835
15853
  const { t } = useTranslation();
15836
- const { currentCurrency, changeCurrency, allCurrencies: allCurrencies2 } = useCurrency();
15854
+ const { currentCurrency, setCurrency } = useCurrentCurrency();
15855
+ const { allCurrencies: allCurrencies2 } = useCurrency();
15837
15856
  useEffect(() => {
15838
15857
  localStorage.setItem("settings-currency-visited", "true");
15839
15858
  }, []);
@@ -15843,7 +15862,7 @@ var ChangeCurrencyContent = ({
15843
15862
  w: "full",
15844
15863
  variant: "ghost",
15845
15864
  justifyContent: "space-between",
15846
- onClick: () => changeCurrency(currency),
15865
+ onClick: () => setCurrency(currency),
15847
15866
  py: 6,
15848
15867
  px: 4,
15849
15868
  _hover: { bg: "whiteAlpha.100" },
@@ -21955,47 +21974,30 @@ var VeChainKitProvider = (props) => {
21955
21974
  network,
21956
21975
  allowCustomTokens,
21957
21976
  legalDocuments,
21958
- defaultCurrency = "usd"
21977
+ defaultCurrency = "usd",
21978
+ onLanguageChange,
21979
+ onCurrencyChange
21959
21980
  } = validatedProps;
21960
21981
  const validatedLoginMethods = loginMethods;
21961
- const [currentLanguage, setCurrentLanguage] = useState(() => {
21962
- if (typeof window !== "undefined") {
21963
- const stored = localStorage.getItem("i18nextLng");
21964
- if (stored && supportedLanguages.includes(stored)) {
21965
- return stored;
21966
- }
21982
+ const CURRENCY_STORAGE_KEY = "vechain_kit_currency";
21983
+ const [currentLanguage, setCurrentLanguageState] = useState(() => {
21984
+ const stored = getLocalStorageItem("i18nextLng");
21985
+ if (stored && supportedLanguages.includes(stored)) {
21986
+ return stored;
21967
21987
  }
21968
- return i18n_default.language || language || "en";
21988
+ return language || "en";
21969
21989
  });
21970
- const CURRENCY_STORAGE_KEY = "vechain_kit_currency";
21971
21990
  const [currentCurrency, setCurrentCurrencyState] = useState(
21972
21991
  () => {
21973
- if (typeof window !== "undefined") {
21974
- try {
21975
- const stored = localStorage.getItem(CURRENCY_STORAGE_KEY);
21976
- if (stored && ["usd", "eur", "gbp"].includes(stored)) {
21977
- return stored;
21978
- }
21979
- } catch (error) {
21980
- console.error(
21981
- "Failed to read currency from localStorage:",
21982
- error
21983
- );
21984
- }
21992
+ const stored = getLocalStorageItem(CURRENCY_STORAGE_KEY);
21993
+ if (stored && ["usd", "eur", "gbp"].includes(stored)) {
21994
+ return stored;
21985
21995
  }
21986
21996
  return defaultCurrency;
21987
21997
  }
21988
21998
  );
21989
- const setCurrentCurrency = (newCurrency) => {
21990
- setCurrentCurrencyState(newCurrency);
21991
- if (typeof window !== "undefined") {
21992
- try {
21993
- localStorage.setItem(CURRENCY_STORAGE_KEY, newCurrency);
21994
- } catch (error) {
21995
- console.error("Failed to store currency preference:", error);
21996
- }
21997
- }
21998
- };
21999
+ const isUpdatingFromPropRef = useRef(false);
22000
+ const isUpdatingCurrencyFromPropRef = useRef(false);
21999
22001
  const allowedEcosystemApps = useMemo(() => {
22000
22002
  const userEcosystemMethods = validatedLoginMethods?.find(
22001
22003
  (method35) => method35.method === "ecosystem"
@@ -22012,9 +22014,6 @@ var VeChainKitProvider = (props) => {
22012
22014
  }
22013
22015
  useEffect(() => {
22014
22016
  initializeI18n(i18n_default);
22015
- if (language) {
22016
- i18n_default.changeLanguage(language);
22017
- }
22018
22017
  if (i18nConfig) {
22019
22018
  Object.keys(i18nConfig).forEach((lang) => {
22020
22019
  i18n_default.addResourceBundle(
@@ -22026,20 +22025,84 @@ var VeChainKitProvider = (props) => {
22026
22025
  );
22027
22026
  });
22028
22027
  }
22029
- }, [language, i18nConfig]);
22028
+ const storedLanguage = getLocalStorageItem("i18nextLng");
22029
+ const initialLanguage = storedLanguage || currentLanguage;
22030
+ if (initialLanguage && i18n_default.language !== initialLanguage) {
22031
+ isUpdatingFromPropRef.current = true;
22032
+ i18n_default.changeLanguage(initialLanguage);
22033
+ if (initialLanguage !== currentLanguage) {
22034
+ setCurrentLanguageState(initialLanguage);
22035
+ }
22036
+ isUpdatingFromPropRef.current = false;
22037
+ }
22038
+ }, []);
22039
+ useEffect(() => {
22040
+ const storedLanguage = getLocalStorageItem("i18nextLng");
22041
+ if (language && !storedLanguage && language !== currentLanguage) {
22042
+ isUpdatingFromPropRef.current = true;
22043
+ i18n_default.changeLanguage(language);
22044
+ setCurrentLanguageState(language);
22045
+ isUpdatingFromPropRef.current = false;
22046
+ }
22047
+ }, [language, currentLanguage]);
22030
22048
  useEffect(() => {
22031
22049
  const handleLanguageChanged = (lng) => {
22032
- setCurrentLanguage(lng);
22050
+ if (!isUpdatingFromPropRef.current && lng !== currentLanguage) {
22051
+ setCurrentLanguageState(lng);
22052
+ onLanguageChange?.(lng);
22053
+ }
22033
22054
  };
22034
22055
  i18n_default.on("languageChanged", handleLanguageChanged);
22035
- const initialLanguage = i18n_default.language || language || "en";
22036
- if (initialLanguage !== currentLanguage) {
22037
- setCurrentLanguage(initialLanguage);
22038
- }
22039
22056
  return () => {
22040
22057
  i18n_default.off("languageChanged", handleLanguageChanged);
22041
22058
  };
22042
- }, [language]);
22059
+ }, [currentLanguage, onLanguageChange]);
22060
+ useEffect(() => {
22061
+ const stored = getLocalStorageItem(CURRENCY_STORAGE_KEY);
22062
+ if (defaultCurrency && !stored && defaultCurrency !== currentCurrency) {
22063
+ isUpdatingCurrencyFromPropRef.current = true;
22064
+ setCurrentCurrencyState(defaultCurrency);
22065
+ setLocalStorageItem(CURRENCY_STORAGE_KEY, defaultCurrency);
22066
+ isUpdatingCurrencyFromPropRef.current = false;
22067
+ }
22068
+ }, [defaultCurrency, currentCurrency]);
22069
+ useEffect(() => {
22070
+ const checkCurrencyChange = () => {
22071
+ try {
22072
+ const stored = getLocalStorageItem(CURRENCY_STORAGE_KEY);
22073
+ if (stored && stored !== currentCurrency && !isUpdatingCurrencyFromPropRef.current) {
22074
+ const newCurrency = stored;
22075
+ setCurrentCurrencyState(newCurrency);
22076
+ onCurrencyChange?.(newCurrency);
22077
+ }
22078
+ } catch {
22079
+ }
22080
+ };
22081
+ checkCurrencyChange();
22082
+ const handleStorageChange = (e) => {
22083
+ if (e.key === CURRENCY_STORAGE_KEY && e.newValue) {
22084
+ checkCurrencyChange();
22085
+ }
22086
+ };
22087
+ window.addEventListener("storage", handleStorageChange);
22088
+ const interval = setInterval(checkCurrencyChange, 500);
22089
+ return () => {
22090
+ window.removeEventListener("storage", handleStorageChange);
22091
+ clearInterval(interval);
22092
+ };
22093
+ }, [currentCurrency, onCurrencyChange]);
22094
+ const setLanguage = (lang) => {
22095
+ isUpdatingFromPropRef.current = true;
22096
+ i18n_default.changeLanguage(lang);
22097
+ setCurrentLanguageState(lang);
22098
+ isUpdatingFromPropRef.current = false;
22099
+ };
22100
+ const setCurrency = (currency) => {
22101
+ isUpdatingCurrencyFromPropRef.current = true;
22102
+ setCurrentCurrencyState(currency);
22103
+ setLocalStorageItem(CURRENCY_STORAGE_KEY, currency);
22104
+ isUpdatingCurrencyFromPropRef.current = false;
22105
+ };
22043
22106
  useEffect(() => {
22044
22107
  localStorage.setItem(VECHAIN_KIT_STORAGE_KEYS.NETWORK, network.type);
22045
22108
  }, [network]);
@@ -22064,7 +22127,8 @@ var VeChainKitProvider = (props) => {
22064
22127
  legalDocuments,
22065
22128
  defaultCurrency,
22066
22129
  currentCurrency,
22067
- setCurrentCurrency
22130
+ setLanguage,
22131
+ setCurrency
22068
22132
  },
22069
22133
  children: /* @__PURE__ */ jsx(
22070
22134
  PrivyProvider,
@@ -22104,7 +22168,7 @@ var VeChainKitProvider = (props) => {
22104
22168
  id: network.genesisId
22105
22169
  } : getConfig(network.type).network.genesis,
22106
22170
  i18n: i18nConfig,
22107
- language,
22171
+ language: currentLanguage,
22108
22172
  logLevel: dappKit.logLevel,
22109
22173
  modalParent: dappKit.modalParent,
22110
22174
  onSourceClick: dappKit.onSourceClick,
@@ -22492,6 +22556,6 @@ var VechainKitThemeProvider = ({
22492
22556
  ] });
22493
22557
  };
22494
22558
 
22495
- export { APP_SECURITY_LEVELS, AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, AppearanceSettingsContent, AssetButton, AssetsContent, BalanceSection, BaseModal, BridgeContent, ChangeCurrencyContent, ChooseNameContent, ChooseNameModalProvider, ChooseNameSearchContent, ChooseNameSummaryContent, ConnectModal, ConnectModalProvider, ConnectPopover, ConnectionButton, CrossAppConnectionSecurityCard, CustomizationContent, CustomizationSummaryContent, DappKitButton, DisconnectConfirmContent, DomainRequiredAlert, EcosystemButton, EcosystemModal, EmailLoginButton, EmbeddedWalletContent, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, LanguageSettingsContent, LegalDocumentItem, LegalDocumentsModal, LegalDocumentsProvider, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, ModalBackButton, ModalFAQButton, ModalNotificationButton, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyButton, PrivyWalletProvider, ProfileCard, ProfileContent, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, ShareButtons, SocialIcons, StickyFooterContainer, StickyHeaderContainer, SwapTokenContent, TermsAndPrivacyContent, TransactionButtonAndStatus, TransactionModal, TransactionModalContent, TransactionModalProvider, TransactionToast, TransactionToastProvider, UpgradeSmartAccountContent, UpgradeSmartAccountModal, UpgradeSmartAccountModalProvider, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VechainKitThemeProvider, VersionFooter, WalletButton, WalletModalProvider, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, decodeFunctionSignature, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersion, getAccountVersionQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppHubAppsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getResolverAddress, getResolverAddressQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserRoundScoreQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getUserXNodes, getUserXNodesQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsClauses, getXAppTotalEarningsQueryKey, getXAppVotes, getXAppVotesQf, getXAppVotesQfQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUri, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, pollForReceipt, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppHubApps, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBuildTransaction, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useDecodeFunctionSignature, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGMBaseUri, useGMbalance, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetErc20Balance, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLegalDocuments, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth2 as useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshMetadata, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage2 as useSignMessage, useSignTypedData2 as useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenBalances, useTokenIdByAccount, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal2 as useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
22559
+ export { APP_SECURITY_LEVELS, AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, AppearanceSettingsContent, AssetButton, AssetsContent, BalanceSection, BaseModal, BridgeContent, ChangeCurrencyContent, ChooseNameContent, ChooseNameModalProvider, ChooseNameSearchContent, ChooseNameSummaryContent, ConnectModal, ConnectModalProvider, ConnectPopover, ConnectionButton, CrossAppConnectionSecurityCard, CustomizationContent, CustomizationSummaryContent, DappKitButton, DisconnectConfirmContent, DomainRequiredAlert, EcosystemButton, EcosystemModal, EmailLoginButton, EmbeddedWalletContent, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, LanguageSettingsContent, LegalDocumentItem, LegalDocumentsModal, LegalDocumentsProvider, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, ModalBackButton, ModalFAQButton, ModalNotificationButton, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyButton, PrivyWalletProvider, ProfileCard, ProfileContent, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, ShareButtons, SocialIcons, StickyFooterContainer, StickyHeaderContainer, SwapTokenContent, TermsAndPrivacyContent, TransactionButtonAndStatus, TransactionModal, TransactionModalContent, TransactionModalProvider, TransactionToast, TransactionToastProvider, UpgradeSmartAccountContent, UpgradeSmartAccountModal, UpgradeSmartAccountModalProvider, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VechainKitThemeProvider, VersionFooter, WalletButton, WalletModalProvider, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, decodeFunctionSignature, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersion, getAccountVersionQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppHubAppsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getResolverAddress, getResolverAddressQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserRoundScoreQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getUserXNodes, getUserXNodesQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsClauses, getXAppTotalEarningsQueryKey, getXAppVotes, getXAppVotesQf, getXAppVotesQfQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUri, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, pollForReceipt, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppHubApps, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBuildTransaction, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useCurrentCurrency, useCurrentLanguage, useDecodeFunctionSignature, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGMBaseUri, useGMbalance, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetErc20Balance, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLegalDocuments, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth2 as useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshMetadata, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage2 as useSignMessage, useSignTypedData2 as useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenBalances, useTokenIdByAccount, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal2 as useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
22496
22560
  //# sourceMappingURL=index.js.map
22497
22561
  //# sourceMappingURL=index.js.map