@vechain/vechain-kit 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +26 -6
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -764,7 +764,7 @@ type Props$l = {
|
|
|
764
764
|
declare const EcosystemContent: ({ setCurrentContent, onClose }: Props$l) => react_jsx_runtime.JSX.Element;
|
|
765
765
|
|
|
766
766
|
type Props$k = {
|
|
767
|
-
setCurrentContent:
|
|
767
|
+
setCurrentContent: React__default.Dispatch<React__default.SetStateAction<ConnectModalContents>>;
|
|
768
768
|
onClose: () => void;
|
|
769
769
|
logo?: string;
|
|
770
770
|
};
|
|
@@ -1425,6 +1425,20 @@ type Props$1 = {
|
|
|
1425
1425
|
};
|
|
1426
1426
|
declare const StickyFooterContainer: ({ children }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
1427
1427
|
|
|
1428
|
+
type BaseModalProps = {
|
|
1429
|
+
isOpen: boolean;
|
|
1430
|
+
onClose: () => void;
|
|
1431
|
+
children: ReactNode;
|
|
1432
|
+
size?: string;
|
|
1433
|
+
isCentered?: boolean;
|
|
1434
|
+
motionPreset?: 'slideInBottom' | 'none';
|
|
1435
|
+
trapFocus?: boolean;
|
|
1436
|
+
closeOnOverlayClick?: boolean;
|
|
1437
|
+
blockScrollOnMount?: boolean;
|
|
1438
|
+
autoFocus?: boolean;
|
|
1439
|
+
};
|
|
1440
|
+
declare const BaseModal: ({ isOpen, onClose, children, size, isCentered, motionPreset, trapFocus, closeOnOverlayClick, blockScrollOnMount, autoFocus, }: BaseModalProps) => react_jsx_runtime.JSX.Element;
|
|
1441
|
+
|
|
1428
1442
|
type LoginLoadingModalProps = {
|
|
1429
1443
|
isOpen: boolean;
|
|
1430
1444
|
onClose: () => void;
|
|
@@ -1455,11 +1469,17 @@ type Props = {
|
|
|
1455
1469
|
delegateAllTransactions: boolean;
|
|
1456
1470
|
};
|
|
1457
1471
|
dappKitConfig: DAppKitUIOptions;
|
|
1472
|
+
loginScreenUI?: {
|
|
1473
|
+
logo?: string;
|
|
1474
|
+
description?: string;
|
|
1475
|
+
preferredLoginMethods?: Array<'email' | 'google'>;
|
|
1476
|
+
};
|
|
1458
1477
|
};
|
|
1459
|
-
type
|
|
1478
|
+
type VeChainKitConfig = {
|
|
1460
1479
|
privyConfig: Props['privyConfig'];
|
|
1461
1480
|
feeDelegationConfig: Props['feeDelegationConfig'];
|
|
1462
1481
|
dappKitConfig: Props['dappKitConfig'];
|
|
1482
|
+
loginScreenUI?: Props['loginScreenUI'];
|
|
1463
1483
|
openConnectModal: () => void;
|
|
1464
1484
|
closeConnectModal: () => void;
|
|
1465
1485
|
isConnectModalOpen: boolean;
|
|
@@ -1470,14 +1490,14 @@ type DAppKitPrivyConfig = {
|
|
|
1470
1490
|
/**
|
|
1471
1491
|
* Context to store the Privy and DAppKit configs so that they can be used by the hooks/components
|
|
1472
1492
|
*/
|
|
1473
|
-
declare const
|
|
1493
|
+
declare const VeChainKitContext: React$1.Context<VeChainKitConfig | null>;
|
|
1474
1494
|
/**
|
|
1475
1495
|
* Hook to get the Privy and DAppKit configs
|
|
1476
1496
|
*/
|
|
1477
|
-
declare const
|
|
1497
|
+
declare const useVeChainKitConfig: () => VeChainKitConfig;
|
|
1478
1498
|
/**
|
|
1479
1499
|
* Provider to wrap the application with Privy and DAppKit
|
|
1480
1500
|
*/
|
|
1481
|
-
declare const
|
|
1501
|
+
declare const VeChainKit: ({ children, privyConfig, feeDelegationConfig, dappKitConfig, loginScreenUI, }: Omit<Props, "queryClient">) => react_jsx_runtime.JSX.Element;
|
|
1482
1502
|
|
|
1483
|
-
export { ACCOUNT_FACTORY_ADDRESSES, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, AccountsListContent, ActionButton, AddressDisplay, AssetsSection, BalanceSection, ConnectModal, type ConnectModalContents, ConnectModalProvider, ConnectionButton, type ConnectionSource,
|
|
1503
|
+
export { ACCOUNT_FACTORY_ADDRESSES, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, AccountsListContent, ActionButton, AddressDisplay, AssetsSection, BalanceSection, BaseModal, ConnectModal, type ConnectModalContents, ConnectModalProvider, ConnectionButton, type ConnectionSource, DELEGATOR_URL, EXPLORER_URL, EcosystemContent, EmailLoginButton, type EnhancedClause, type ExecuteWithAuthorizationSignData, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, GoogleLogo, LoginLoadingModal, MainContent, ModalBackButton, NETWORK_URL, PRICE_FEED_IDS, type PrivyAppInfo$1 as PrivyAppInfo, type PrivyLoginMethod, QuickActionsSection, ReceiveTokenContent, SOCIAL_INFOS, SelectTokenContent, SendTokenContent, SendTokenSummaryContent, SimpleAccountABI, SimpleAccountFactoryABI, type SmartAccount, SmartAccountContent, type SmartAccountContextType, SmartAccountProvider, type SocialInfo, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, THOR_CLIENT, TOKEN_LOGOS, TransactionModal, type TransactionModalProps, type TransactionStatus, type TransactionStatusErrorType, TransactionToast, TwitterLogo, type UseSendTransactionReturnValue, type UseWalletReturnType, VECHAIN_PRIVY_APP_ID, VeChainKit, VeChainKitContext, VechainLogo, VechainLogoHorizontal, VersionFooter, WALLET_INFOS, type Wallet, WalletButton, WalletSettingsContent, compareAddresses, compareListOfAddresses, fetchPrivyAppInfo, getAccountBalance, getAccountBalanceQueryKey, getB3trBalance, getB3trBalanceQueryKey, getPicassoImage, getPrivyAppInfoQueryKey, getSmartAccountAddress, getSmartAccountAddressQueryKey, getTokenUsdPrice, getTokenUsdPriceQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVetDomainQueryKey, getVot3Balance, getVot3BalanceQueryKey, humanAddress, humanDomain, isValidAddress, leftPadWithZeros, pollForReceipt, randomTransactionUser, regexPattern, useAccountBalance, useAccountModal, useBalances, useCachedVeChainDomain, useConnectModal, useFetchAppInfo, useGetB3trBalance, useGetSmartAccountAddress, useGetTokenUsdPrice, useGetVeDelegateBalance, useGetVetDomain, useGetVot3Balance, useRefreshBalances, useSendTransaction, useSmartAccount, useTransferERC20, useTransferVET, useTxReceipt, useVeChainKitConfig, useWallet };
|