@vechain/vechain-kit 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -10
- package/dist/{Constants-7pfsJgOl.d.cts → Constants-DQeyU9X7.d.cts} +1 -0
- package/dist/{Constants-7pfsJgOl.d.ts → Constants-DQeyU9X7.d.ts} +1 -0
- package/dist/index.cjs +465 -226
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -18
- package/dist/index.d.ts +39 -18
- package/dist/index.js +464 -228
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import * as React$1 from 'react';
|
|
|
3
3
|
import React__default, { ReactElement, ReactNode, ElementType } from 'react';
|
|
4
4
|
import { WalletListEntry, SignTypedDataParams, User } from '@privy-io/react-auth';
|
|
5
5
|
export { usePrivy } from '@privy-io/react-auth';
|
|
6
|
-
import { P as PrivyAppInfo, T as TransactionProgress, a as TransactionStatusErrorType, W as Wallet, b as PrivyLoginMethod, N as NETWORK_TYPE, c as Network, d as TogglePassportCheck, V as VePassportUserStatus, E as EnhancedClause, S as SmartAccount, C as ConnectionSource, e as NFTMediaType, f as TransactionStatus, g as CrossAppConnectionCache } from './Constants-
|
|
7
|
-
export { h as ExecuteWithAuthorizationSignData } from './Constants-
|
|
6
|
+
import { P as PrivyAppInfo, T as TransactionProgress, a as TransactionStatusErrorType, W as Wallet, b as PrivyLoginMethod, N as NETWORK_TYPE, c as Network, d as TogglePassportCheck, V as VePassportUserStatus, E as EnhancedClause, S as SmartAccount, C as ConnectionSource, e as NFTMediaType, f as TransactionStatus, g as CrossAppConnectionCache } from './Constants-DQeyU9X7.cjs';
|
|
7
|
+
export { h as ExecuteWithAuthorizationSignData } from './Constants-DQeyU9X7.cjs';
|
|
8
8
|
import { WalletSource, LogLevel } from '@vechain/dapp-kit';
|
|
9
9
|
import { WalletConnectOptions } from '@vechain/dapp-kit-react';
|
|
10
10
|
export { useConnex } from '@vechain/dapp-kit-react';
|
|
@@ -17,7 +17,7 @@ import { ThorClient } from '@vechain/sdk-network';
|
|
|
17
17
|
import { Options } from 'browser-image-compression';
|
|
18
18
|
import { Interface } from 'ethers';
|
|
19
19
|
import { IconType } from 'react-icons';
|
|
20
|
-
import { ButtonProps, IconButtonProps, StackProps } from '@chakra-ui/react';
|
|
20
|
+
import { ButtonProps, IconButtonProps, StackProps, ImageProps } from '@chakra-ui/react';
|
|
21
21
|
|
|
22
22
|
type Props$w = {
|
|
23
23
|
isOpen: boolean;
|
|
@@ -26,13 +26,11 @@ type Props$w = {
|
|
|
26
26
|
type ConnectModalContentsTypes = 'main' | 'email-verification' | 'faq';
|
|
27
27
|
declare const ConnectModal: ({ isOpen, onClose }: Props$w) => react_jsx_runtime.JSX.Element;
|
|
28
28
|
|
|
29
|
-
type ConnectModalVariant = 'full' | 'vechain-and-wallet' | 'vechain' | 'vechain-wallet-ecosystem';
|
|
30
29
|
type Props$v = {
|
|
31
30
|
setCurrentContent: React__default.Dispatch<React__default.SetStateAction<ConnectModalContentsTypes>>;
|
|
32
31
|
onClose: () => void;
|
|
33
|
-
variant?: ConnectModalVariant;
|
|
34
32
|
};
|
|
35
|
-
declare const MainContent: ({ setCurrentContent, onClose
|
|
33
|
+
declare const MainContent: ({ setCurrentContent, onClose }: Props$v) => react_jsx_runtime.JSX.Element;
|
|
36
34
|
|
|
37
35
|
interface ConnectionButtonProps {
|
|
38
36
|
isDark: boolean;
|
|
@@ -53,24 +51,25 @@ declare const VeChainLoginButton: ({ isDark, gridColumn }: Props$u) => react_jsx
|
|
|
53
51
|
|
|
54
52
|
type Props$t = {
|
|
55
53
|
isDark: boolean;
|
|
56
|
-
privySocialLoginEnabled: boolean;
|
|
57
54
|
appsInfo: PrivyAppInfo[];
|
|
58
55
|
isLoading: boolean;
|
|
56
|
+
gridColumn?: number;
|
|
59
57
|
};
|
|
60
|
-
declare const EcosystemButton: ({ isDark,
|
|
58
|
+
declare const EcosystemButton: ({ isDark, appsInfo, isLoading, gridColumn, }: Props$t) => react_jsx_runtime.JSX.Element;
|
|
61
59
|
|
|
62
60
|
type Props$s = {
|
|
63
61
|
isDark: boolean;
|
|
64
62
|
onViewMoreLogin: () => void;
|
|
65
|
-
gridColumn
|
|
63
|
+
gridColumn?: number;
|
|
66
64
|
};
|
|
67
|
-
declare const PrivyButton: ({ isDark, onViewMoreLogin, gridColumn
|
|
65
|
+
declare const PrivyButton: ({ isDark, onViewMoreLogin, gridColumn }: Props$s) => react_jsx_runtime.JSX.Element;
|
|
68
66
|
|
|
69
67
|
type Props$r = {
|
|
70
68
|
isDark: boolean;
|
|
71
|
-
|
|
69
|
+
loginMethods?: VechainKitProviderProps['loginMethods'];
|
|
70
|
+
gridColumn?: number;
|
|
72
71
|
};
|
|
73
|
-
declare const SocialLoginButtons: ({ isDark,
|
|
72
|
+
declare const SocialLoginButtons: ({ isDark, loginMethods, gridColumn, }: Props$r) => react_jsx_runtime.JSX.Element;
|
|
74
73
|
|
|
75
74
|
type Props$q = {
|
|
76
75
|
isDark: boolean;
|
|
@@ -327,6 +326,8 @@ type FeatureAnnouncementCardProps = {
|
|
|
327
326
|
};
|
|
328
327
|
declare const FeatureAnnouncementCard: ({ setCurrentContent, }: FeatureAnnouncementCardProps) => react_jsx_runtime.JSX.Element | null;
|
|
329
328
|
|
|
329
|
+
declare const ExchangeWarningAlert: () => react_jsx_runtime.JSX.Element;
|
|
330
|
+
|
|
330
331
|
type Props$b = {
|
|
331
332
|
children: ReactNode;
|
|
332
333
|
};
|
|
@@ -417,6 +418,12 @@ declare const ModalFAQButton: ({ onClick, ...props }: FAQButtonProps) => react_j
|
|
|
417
418
|
|
|
418
419
|
declare const ScrollToTopWrapper: ({ children, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
419
420
|
|
|
421
|
+
type AccountAvatarProps = {
|
|
422
|
+
wallet?: Wallet;
|
|
423
|
+
props?: ImageProps;
|
|
424
|
+
};
|
|
425
|
+
declare const AccountAvatar: ({ wallet, props }: AccountAvatarProps) => react_jsx_runtime.JSX.Element;
|
|
426
|
+
|
|
420
427
|
type LoginLoadingModalProps = {
|
|
421
428
|
isOpen: boolean;
|
|
422
429
|
onClose: () => void;
|
|
@@ -435,6 +442,11 @@ type Props$3 = {
|
|
|
435
442
|
};
|
|
436
443
|
declare const EcosystemModal: ({ isOpen, onClose, appsInfo, isLoading, }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
437
444
|
|
|
445
|
+
type LoginMethodOrder = {
|
|
446
|
+
method: 'email' | 'google' | 'passkey' | 'vechain' | 'dappkit' | 'ecosystem' | 'more';
|
|
447
|
+
gridColumn?: number;
|
|
448
|
+
allowedApps?: string[];
|
|
449
|
+
};
|
|
438
450
|
type VechainKitProviderProps = {
|
|
439
451
|
children: ReactNode;
|
|
440
452
|
privy?: {
|
|
@@ -452,7 +464,6 @@ type VechainKitProviderProps = {
|
|
|
452
464
|
loginMethods: PrivyLoginMethod[];
|
|
453
465
|
allowPasskeyLinking?: boolean;
|
|
454
466
|
};
|
|
455
|
-
privyEcosystemAppIDS?: string[];
|
|
456
467
|
feeDelegation: {
|
|
457
468
|
delegatorUrl: string;
|
|
458
469
|
delegateAllTransactions: boolean;
|
|
@@ -470,9 +481,8 @@ type VechainKitProviderProps = {
|
|
|
470
481
|
loginModalUI?: {
|
|
471
482
|
logo?: string;
|
|
472
483
|
description?: string;
|
|
473
|
-
preferredLoginMethods?: Array<'email' | 'google'>;
|
|
474
|
-
variant?: ConnectModalVariant;
|
|
475
484
|
};
|
|
485
|
+
loginMethods?: LoginMethodOrder[];
|
|
476
486
|
darkMode?: boolean;
|
|
477
487
|
i18n?: I18n;
|
|
478
488
|
language?: string;
|
|
@@ -492,11 +502,11 @@ type VeChainKitConfig = {
|
|
|
492
502
|
feeDelegation: VechainKitProviderProps['feeDelegation'];
|
|
493
503
|
dappKit: VechainKitProviderProps['dappKit'];
|
|
494
504
|
loginModalUI?: VechainKitProviderProps['loginModalUI'];
|
|
505
|
+
loginMethods?: VechainKitProviderProps['loginMethods'];
|
|
495
506
|
darkMode: boolean;
|
|
496
507
|
i18n?: VechainKitProviderProps['i18n'];
|
|
497
508
|
language?: VechainKitProviderProps['language'];
|
|
498
509
|
network: VechainKitProviderProps['network'];
|
|
499
|
-
privySocialLoginEnabled: boolean;
|
|
500
510
|
openConnectModal: () => void;
|
|
501
511
|
closeConnectModal: () => void;
|
|
502
512
|
isConnectModalOpen: boolean;
|
|
@@ -522,7 +532,7 @@ declare const useVeChainKitConfig: () => VeChainKitConfig;
|
|
|
522
532
|
/**
|
|
523
533
|
* Provider to wrap the application with Privy and DAppKit
|
|
524
534
|
*/
|
|
525
|
-
declare const VeChainKitProvider: ({ children, privy, feeDelegation, dappKit, loginModalUI, darkMode, i18n: i18nConfig, language, network,
|
|
535
|
+
declare const VeChainKitProvider: ({ children, privy, feeDelegation, dappKit, loginModalUI, loginMethods, darkMode, i18n: i18nConfig, language, network, }: Omit<VechainKitProviderProps, "queryClient">) => react_jsx_runtime.JSX.Element;
|
|
526
536
|
|
|
527
537
|
interface PrivyWalletProviderContextType {
|
|
528
538
|
accountFactory: string;
|
|
@@ -2998,6 +3008,17 @@ declare const ReceiveModalProvider: ({ children }: {
|
|
|
2998
3008
|
children: ReactNode;
|
|
2999
3009
|
}) => react_jsx_runtime.JSX.Element;
|
|
3000
3010
|
|
|
3011
|
+
type LoginModalContentConfig = {
|
|
3012
|
+
showSocialLogin: boolean;
|
|
3013
|
+
showPasskey: boolean;
|
|
3014
|
+
showVeChainLogin: boolean;
|
|
3015
|
+
showDappKit: boolean;
|
|
3016
|
+
showEcosystem: boolean;
|
|
3017
|
+
showMoreLogin: boolean;
|
|
3018
|
+
isOfficialVeChainApp: boolean;
|
|
3019
|
+
};
|
|
3020
|
+
declare const useLoginModalContent: () => LoginModalContentConfig;
|
|
3021
|
+
|
|
3001
3022
|
/**
|
|
3002
3023
|
* Props for the {@link useSendTransaction} hook
|
|
3003
3024
|
* @param signerAccountAddress the signer account to use
|
|
@@ -3207,4 +3228,4 @@ declare const useCrossAppConnectionCache: () => {
|
|
|
3207
3228
|
clearConnectionCache: () => void;
|
|
3208
3229
|
};
|
|
3209
3230
|
|
|
3210
|
-
export { APP_SECURITY_LEVELS, AccountCustomizationContent, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, type AppConfig, type AppVotesGiven, AssetButton, AssetsSection, BalanceSection, BaseModal, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider,
|
|
3231
|
+
export { APP_SECURITY_LEVELS, AccountAvatar, AccountCustomizationContent, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, type AppConfig, type AppVotesGiven, AssetButton, AssetsSection, BalanceSection, BaseModal, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, ConnectionButton, ConnectionSource, CrossAppConnectionCache, DappKitButton, type Domain, type DomainsResponse, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, EmbeddedWalletSettingsModalProvider, EnhancedClause, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, type GetCallKeyParams, type IpfsImage, LoginLoadingModal, MAX_IMAGE_SIZE, MainContent, ModalBackButton, ModalFAQButton, type MostVotedAppsInRoundReturnType, NFTMediaType, type NFTMetadata, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, type RoundCreated, type RoundReward, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SmartAccount, type SmartAccountReturnType, SocialLoginButtons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, type TokenBalance, TransactionModal, type TransactionModalProps, TransactionModalProvider, TransactionProgress, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, type UnendorsedApp, 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, WalletSettingsContent, type XApp, type XAppMetadata, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, fetchPrivyAppInfo, fetchVechainDomain, getAccountBalance, getAccountBalanceQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getConfig, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, 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, useAccountBalance, useAccountCustomizationModal, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBalances, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useConnectModal, useContractVersion, useCrossAppConnectionCache, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useEcosystemShortcuts, useEmbeddedWalletSettingsModal, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useGMBaseUri, useGMbalance, useGetAvatar, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useReceiveModal, useRefreshBalances, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenIdByAccount, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUpdateAvatarRecord, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as React$1 from 'react';
|
|
|
3
3
|
import React__default, { ReactElement, ReactNode, ElementType } from 'react';
|
|
4
4
|
import { WalletListEntry, SignTypedDataParams, User } from '@privy-io/react-auth';
|
|
5
5
|
export { usePrivy } from '@privy-io/react-auth';
|
|
6
|
-
import { P as PrivyAppInfo, T as TransactionProgress, a as TransactionStatusErrorType, W as Wallet, b as PrivyLoginMethod, N as NETWORK_TYPE, c as Network, d as TogglePassportCheck, V as VePassportUserStatus, E as EnhancedClause, S as SmartAccount, C as ConnectionSource, e as NFTMediaType, f as TransactionStatus, g as CrossAppConnectionCache } from './Constants-
|
|
7
|
-
export { h as ExecuteWithAuthorizationSignData } from './Constants-
|
|
6
|
+
import { P as PrivyAppInfo, T as TransactionProgress, a as TransactionStatusErrorType, W as Wallet, b as PrivyLoginMethod, N as NETWORK_TYPE, c as Network, d as TogglePassportCheck, V as VePassportUserStatus, E as EnhancedClause, S as SmartAccount, C as ConnectionSource, e as NFTMediaType, f as TransactionStatus, g as CrossAppConnectionCache } from './Constants-DQeyU9X7.js';
|
|
7
|
+
export { h as ExecuteWithAuthorizationSignData } from './Constants-DQeyU9X7.js';
|
|
8
8
|
import { WalletSource, LogLevel } from '@vechain/dapp-kit';
|
|
9
9
|
import { WalletConnectOptions } from '@vechain/dapp-kit-react';
|
|
10
10
|
export { useConnex } from '@vechain/dapp-kit-react';
|
|
@@ -17,7 +17,7 @@ import { ThorClient } from '@vechain/sdk-network';
|
|
|
17
17
|
import { Options } from 'browser-image-compression';
|
|
18
18
|
import { Interface } from 'ethers';
|
|
19
19
|
import { IconType } from 'react-icons';
|
|
20
|
-
import { ButtonProps, IconButtonProps, StackProps } from '@chakra-ui/react';
|
|
20
|
+
import { ButtonProps, IconButtonProps, StackProps, ImageProps } from '@chakra-ui/react';
|
|
21
21
|
|
|
22
22
|
type Props$w = {
|
|
23
23
|
isOpen: boolean;
|
|
@@ -26,13 +26,11 @@ type Props$w = {
|
|
|
26
26
|
type ConnectModalContentsTypes = 'main' | 'email-verification' | 'faq';
|
|
27
27
|
declare const ConnectModal: ({ isOpen, onClose }: Props$w) => react_jsx_runtime.JSX.Element;
|
|
28
28
|
|
|
29
|
-
type ConnectModalVariant = 'full' | 'vechain-and-wallet' | 'vechain' | 'vechain-wallet-ecosystem';
|
|
30
29
|
type Props$v = {
|
|
31
30
|
setCurrentContent: React__default.Dispatch<React__default.SetStateAction<ConnectModalContentsTypes>>;
|
|
32
31
|
onClose: () => void;
|
|
33
|
-
variant?: ConnectModalVariant;
|
|
34
32
|
};
|
|
35
|
-
declare const MainContent: ({ setCurrentContent, onClose
|
|
33
|
+
declare const MainContent: ({ setCurrentContent, onClose }: Props$v) => react_jsx_runtime.JSX.Element;
|
|
36
34
|
|
|
37
35
|
interface ConnectionButtonProps {
|
|
38
36
|
isDark: boolean;
|
|
@@ -53,24 +51,25 @@ declare const VeChainLoginButton: ({ isDark, gridColumn }: Props$u) => react_jsx
|
|
|
53
51
|
|
|
54
52
|
type Props$t = {
|
|
55
53
|
isDark: boolean;
|
|
56
|
-
privySocialLoginEnabled: boolean;
|
|
57
54
|
appsInfo: PrivyAppInfo[];
|
|
58
55
|
isLoading: boolean;
|
|
56
|
+
gridColumn?: number;
|
|
59
57
|
};
|
|
60
|
-
declare const EcosystemButton: ({ isDark,
|
|
58
|
+
declare const EcosystemButton: ({ isDark, appsInfo, isLoading, gridColumn, }: Props$t) => react_jsx_runtime.JSX.Element;
|
|
61
59
|
|
|
62
60
|
type Props$s = {
|
|
63
61
|
isDark: boolean;
|
|
64
62
|
onViewMoreLogin: () => void;
|
|
65
|
-
gridColumn
|
|
63
|
+
gridColumn?: number;
|
|
66
64
|
};
|
|
67
|
-
declare const PrivyButton: ({ isDark, onViewMoreLogin, gridColumn
|
|
65
|
+
declare const PrivyButton: ({ isDark, onViewMoreLogin, gridColumn }: Props$s) => react_jsx_runtime.JSX.Element;
|
|
68
66
|
|
|
69
67
|
type Props$r = {
|
|
70
68
|
isDark: boolean;
|
|
71
|
-
|
|
69
|
+
loginMethods?: VechainKitProviderProps['loginMethods'];
|
|
70
|
+
gridColumn?: number;
|
|
72
71
|
};
|
|
73
|
-
declare const SocialLoginButtons: ({ isDark,
|
|
72
|
+
declare const SocialLoginButtons: ({ isDark, loginMethods, gridColumn, }: Props$r) => react_jsx_runtime.JSX.Element;
|
|
74
73
|
|
|
75
74
|
type Props$q = {
|
|
76
75
|
isDark: boolean;
|
|
@@ -327,6 +326,8 @@ type FeatureAnnouncementCardProps = {
|
|
|
327
326
|
};
|
|
328
327
|
declare const FeatureAnnouncementCard: ({ setCurrentContent, }: FeatureAnnouncementCardProps) => react_jsx_runtime.JSX.Element | null;
|
|
329
328
|
|
|
329
|
+
declare const ExchangeWarningAlert: () => react_jsx_runtime.JSX.Element;
|
|
330
|
+
|
|
330
331
|
type Props$b = {
|
|
331
332
|
children: ReactNode;
|
|
332
333
|
};
|
|
@@ -417,6 +418,12 @@ declare const ModalFAQButton: ({ onClick, ...props }: FAQButtonProps) => react_j
|
|
|
417
418
|
|
|
418
419
|
declare const ScrollToTopWrapper: ({ children, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
419
420
|
|
|
421
|
+
type AccountAvatarProps = {
|
|
422
|
+
wallet?: Wallet;
|
|
423
|
+
props?: ImageProps;
|
|
424
|
+
};
|
|
425
|
+
declare const AccountAvatar: ({ wallet, props }: AccountAvatarProps) => react_jsx_runtime.JSX.Element;
|
|
426
|
+
|
|
420
427
|
type LoginLoadingModalProps = {
|
|
421
428
|
isOpen: boolean;
|
|
422
429
|
onClose: () => void;
|
|
@@ -435,6 +442,11 @@ type Props$3 = {
|
|
|
435
442
|
};
|
|
436
443
|
declare const EcosystemModal: ({ isOpen, onClose, appsInfo, isLoading, }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
437
444
|
|
|
445
|
+
type LoginMethodOrder = {
|
|
446
|
+
method: 'email' | 'google' | 'passkey' | 'vechain' | 'dappkit' | 'ecosystem' | 'more';
|
|
447
|
+
gridColumn?: number;
|
|
448
|
+
allowedApps?: string[];
|
|
449
|
+
};
|
|
438
450
|
type VechainKitProviderProps = {
|
|
439
451
|
children: ReactNode;
|
|
440
452
|
privy?: {
|
|
@@ -452,7 +464,6 @@ type VechainKitProviderProps = {
|
|
|
452
464
|
loginMethods: PrivyLoginMethod[];
|
|
453
465
|
allowPasskeyLinking?: boolean;
|
|
454
466
|
};
|
|
455
|
-
privyEcosystemAppIDS?: string[];
|
|
456
467
|
feeDelegation: {
|
|
457
468
|
delegatorUrl: string;
|
|
458
469
|
delegateAllTransactions: boolean;
|
|
@@ -470,9 +481,8 @@ type VechainKitProviderProps = {
|
|
|
470
481
|
loginModalUI?: {
|
|
471
482
|
logo?: string;
|
|
472
483
|
description?: string;
|
|
473
|
-
preferredLoginMethods?: Array<'email' | 'google'>;
|
|
474
|
-
variant?: ConnectModalVariant;
|
|
475
484
|
};
|
|
485
|
+
loginMethods?: LoginMethodOrder[];
|
|
476
486
|
darkMode?: boolean;
|
|
477
487
|
i18n?: I18n;
|
|
478
488
|
language?: string;
|
|
@@ -492,11 +502,11 @@ type VeChainKitConfig = {
|
|
|
492
502
|
feeDelegation: VechainKitProviderProps['feeDelegation'];
|
|
493
503
|
dappKit: VechainKitProviderProps['dappKit'];
|
|
494
504
|
loginModalUI?: VechainKitProviderProps['loginModalUI'];
|
|
505
|
+
loginMethods?: VechainKitProviderProps['loginMethods'];
|
|
495
506
|
darkMode: boolean;
|
|
496
507
|
i18n?: VechainKitProviderProps['i18n'];
|
|
497
508
|
language?: VechainKitProviderProps['language'];
|
|
498
509
|
network: VechainKitProviderProps['network'];
|
|
499
|
-
privySocialLoginEnabled: boolean;
|
|
500
510
|
openConnectModal: () => void;
|
|
501
511
|
closeConnectModal: () => void;
|
|
502
512
|
isConnectModalOpen: boolean;
|
|
@@ -522,7 +532,7 @@ declare const useVeChainKitConfig: () => VeChainKitConfig;
|
|
|
522
532
|
/**
|
|
523
533
|
* Provider to wrap the application with Privy and DAppKit
|
|
524
534
|
*/
|
|
525
|
-
declare const VeChainKitProvider: ({ children, privy, feeDelegation, dappKit, loginModalUI, darkMode, i18n: i18nConfig, language, network,
|
|
535
|
+
declare const VeChainKitProvider: ({ children, privy, feeDelegation, dappKit, loginModalUI, loginMethods, darkMode, i18n: i18nConfig, language, network, }: Omit<VechainKitProviderProps, "queryClient">) => react_jsx_runtime.JSX.Element;
|
|
526
536
|
|
|
527
537
|
interface PrivyWalletProviderContextType {
|
|
528
538
|
accountFactory: string;
|
|
@@ -2998,6 +3008,17 @@ declare const ReceiveModalProvider: ({ children }: {
|
|
|
2998
3008
|
children: ReactNode;
|
|
2999
3009
|
}) => react_jsx_runtime.JSX.Element;
|
|
3000
3010
|
|
|
3011
|
+
type LoginModalContentConfig = {
|
|
3012
|
+
showSocialLogin: boolean;
|
|
3013
|
+
showPasskey: boolean;
|
|
3014
|
+
showVeChainLogin: boolean;
|
|
3015
|
+
showDappKit: boolean;
|
|
3016
|
+
showEcosystem: boolean;
|
|
3017
|
+
showMoreLogin: boolean;
|
|
3018
|
+
isOfficialVeChainApp: boolean;
|
|
3019
|
+
};
|
|
3020
|
+
declare const useLoginModalContent: () => LoginModalContentConfig;
|
|
3021
|
+
|
|
3001
3022
|
/**
|
|
3002
3023
|
* Props for the {@link useSendTransaction} hook
|
|
3003
3024
|
* @param signerAccountAddress the signer account to use
|
|
@@ -3207,4 +3228,4 @@ declare const useCrossAppConnectionCache: () => {
|
|
|
3207
3228
|
clearConnectionCache: () => void;
|
|
3208
3229
|
};
|
|
3209
3230
|
|
|
3210
|
-
export { APP_SECURITY_LEVELS, AccountCustomizationContent, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, type AppConfig, type AppVotesGiven, AssetButton, AssetsSection, BalanceSection, BaseModal, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider,
|
|
3231
|
+
export { APP_SECURITY_LEVELS, AccountAvatar, AccountCustomizationContent, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, type AppConfig, type AppVotesGiven, AssetButton, AssetsSection, BalanceSection, BaseModal, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, ConnectionButton, ConnectionSource, CrossAppConnectionCache, DappKitButton, type Domain, type DomainsResponse, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, EmbeddedWalletSettingsModalProvider, EnhancedClause, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, type GetCallKeyParams, type IpfsImage, LoginLoadingModal, MAX_IMAGE_SIZE, MainContent, ModalBackButton, ModalFAQButton, type MostVotedAppsInRoundReturnType, NFTMediaType, type NFTMetadata, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, type RoundCreated, type RoundReward, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SmartAccount, type SmartAccountReturnType, SocialLoginButtons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, type TokenBalance, TransactionModal, type TransactionModalProps, TransactionModalProvider, TransactionProgress, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, type UnendorsedApp, 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, WalletSettingsContent, type XApp, type XAppMetadata, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, fetchPrivyAppInfo, fetchVechainDomain, getAccountBalance, getAccountBalanceQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getConfig, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, 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, useAccountBalance, useAccountCustomizationModal, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBalances, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useConnectModal, useContractVersion, useCrossAppConnectionCache, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useEcosystemShortcuts, useEmbeddedWalletSettingsModal, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useGMBaseUri, useGMbalance, useGetAvatar, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useReceiveModal, useRefreshBalances, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenIdByAccount, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUpdateAvatarRecord, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
|