@embarkai/ui-kit 0.4.64 → 0.4.65
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/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +308 -308
- package/dist/index.d.cts +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.js +157 -160
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1821,6 +1821,25 @@ declare function useKeyshareRecoveryStats(): _tanstack_react_query.UseQueryResul
|
|
|
1821
1821
|
shareRecoveryStats: RecoveryStats;
|
|
1822
1822
|
}>, Error>;
|
|
1823
1823
|
|
|
1824
|
+
declare function checkWrapedTokenSymbol(symbol: string): string;
|
|
1825
|
+
/**
|
|
1826
|
+
* get asset rate for a specific symbol against a USDT by default
|
|
1827
|
+
* @description uses Binance API, ticker ex: https://api.binance.com/api/v3/ticker/price?symbol=LUMIAUSDT
|
|
1828
|
+
* @example getAssetRate('LUMIA') => { symbol: 'LUMIA', price: '0.123456' }
|
|
1829
|
+
*/
|
|
1830
|
+
declare function getAssetRate(symbol: string, asSymbol?: string): Promise<{
|
|
1831
|
+
symbol: string;
|
|
1832
|
+
price: string;
|
|
1833
|
+
}>;
|
|
1834
|
+
interface UseAssetRateOptions {
|
|
1835
|
+
refetchInterval?: number;
|
|
1836
|
+
staleTime?: number;
|
|
1837
|
+
}
|
|
1838
|
+
declare function useAssetUsdtRate(assetSymbol: string | null, options?: UseAssetRateOptions): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
1839
|
+
symbol: string;
|
|
1840
|
+
price: string;
|
|
1841
|
+
}>, Error>;
|
|
1842
|
+
|
|
1824
1843
|
interface LinkedProfileDisplay extends AuthProvider {
|
|
1825
1844
|
displayName: string;
|
|
1826
1845
|
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
@@ -2332,9 +2351,6 @@ declare const TOKENS_ICONS: Record<string, FC<SVGProps<SVGSVGElement>>>;
|
|
|
2332
2351
|
|
|
2333
2352
|
declare const WALLET_ICONS: Record<'default' | string, FC<SVGProps<SVGSVGElement>>>;
|
|
2334
2353
|
|
|
2335
|
-
/** Tokens WRAPPED by the protocol */
|
|
2336
|
-
declare const WRAPPED_TOKENS: string[];
|
|
2337
|
-
|
|
2338
2354
|
/**
|
|
2339
2355
|
* Passport translations object.
|
|
2340
2356
|
* Note: For use in combineI18NResources, translations are imported directly
|
|
@@ -3384,4 +3400,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
|
|
|
3384
3400
|
|
|
3385
3401
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
3386
3402
|
|
|
3387
|
-
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type BatchOperation, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, NETWORKS_ICONS, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, type PrepareBatchUserOperationParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps, type RegisterSmartAccountResult, type SendBatchUserOperationParams, type SendTransactionParams, type SendTransactionResult, SessionExpiredError, type SignTypedDataParams, type SmartAccountEntry, TOKENS_ICONS, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type TransferToLinkedParams, type TypedDataDomain, type TypedDataField, USER_PROFILE_QUERY_KEY, type UpdateProfileRequest, type UseDirectWalletReturn, type UseErc3643ComplianceOptions, type UseErc3643ComplianceResult, type UseLogoutReturn, type UseNicknameResolveOptions, type UseNicknameResolveResult, type UseSendDirectTransactionReturn, type UseSendTransactionReturn, type UseTransferToLinkedReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UseWalletModeReturn, type UserOpMempool, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserOperationByHash, type UserOperationReceipt, UserOperationTimeoutError, type UserProfile, UserRejectedError, WALLET_ICONS,
|
|
3403
|
+
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type BatchOperation, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, NETWORKS_ICONS, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, type PrepareBatchUserOperationParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps, type RegisterSmartAccountResult, type SendBatchUserOperationParams, type SendTransactionParams, type SendTransactionResult, SessionExpiredError, type SignTypedDataParams, type SmartAccountEntry, TOKENS_ICONS, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type TransferToLinkedParams, type TypedDataDomain, type TypedDataField, USER_PROFILE_QUERY_KEY, type UpdateProfileRequest, type UseDirectWalletReturn, type UseErc3643ComplianceOptions, type UseErc3643ComplianceResult, type UseLogoutReturn, type UseNicknameResolveOptions, type UseNicknameResolveResult, type UseSendDirectTransactionReturn, type UseSendTransactionReturn, type UseTransferToLinkedReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UseWalletModeReturn, type UserOpMempool, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserOperationByHash, type UserOperationReceipt, UserOperationTimeoutError, type UserProfile, UserRejectedError, WALLET_ICONS, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, checkWrapedTokenSymbol, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAssetRate, getAvailableLanguages, getExplorerUrl, getIframeManager, getInProgressOnrampTransactionsList, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, isSessionExpiredError, looksLikeNickname, prepareBatchUserOperation, prepareUserOperation, requireActiveChainId, sendBatchUserOperation, sendUserOperation, signTypedData, updateUserProfile, useAccountSession, useActiveChainId, useAddress, useAssetUsdtRate, useAssets, useBalance, useBlockscoutAssets, useColorMode, useConnectedApps, useDirectWallet, useErc3643Compliance, useError, useHasServerVault, useHydrated, useIFrameReady, useIsMobileView, useKeyshareRecoveryStats, useLinkedProfiles, useLoadingStatus, useLogout, useNativeWalletSignature, useNicknameResolve, useOpenPage, useProviderConfig, useRecoveryUserId, useSendDirectTransaction, useSendTransaction, useSession, useSmartAccountTransactions, useTokenBalance, useTokenInfo, useTransactions, useTransferToLinkedWallet, useUserOpStatus, useWalletMode, verifyFingerprint, verifyFingerprintDetailed, waitForStoreHydration, waitForUserOperationReceipt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1821,6 +1821,25 @@ declare function useKeyshareRecoveryStats(): _tanstack_react_query.UseQueryResul
|
|
|
1821
1821
|
shareRecoveryStats: RecoveryStats;
|
|
1822
1822
|
}>, Error>;
|
|
1823
1823
|
|
|
1824
|
+
declare function checkWrapedTokenSymbol(symbol: string): string;
|
|
1825
|
+
/**
|
|
1826
|
+
* get asset rate for a specific symbol against a USDT by default
|
|
1827
|
+
* @description uses Binance API, ticker ex: https://api.binance.com/api/v3/ticker/price?symbol=LUMIAUSDT
|
|
1828
|
+
* @example getAssetRate('LUMIA') => { symbol: 'LUMIA', price: '0.123456' }
|
|
1829
|
+
*/
|
|
1830
|
+
declare function getAssetRate(symbol: string, asSymbol?: string): Promise<{
|
|
1831
|
+
symbol: string;
|
|
1832
|
+
price: string;
|
|
1833
|
+
}>;
|
|
1834
|
+
interface UseAssetRateOptions {
|
|
1835
|
+
refetchInterval?: number;
|
|
1836
|
+
staleTime?: number;
|
|
1837
|
+
}
|
|
1838
|
+
declare function useAssetUsdtRate(assetSymbol: string | null, options?: UseAssetRateOptions): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
1839
|
+
symbol: string;
|
|
1840
|
+
price: string;
|
|
1841
|
+
}>, Error>;
|
|
1842
|
+
|
|
1824
1843
|
interface LinkedProfileDisplay extends AuthProvider {
|
|
1825
1844
|
displayName: string;
|
|
1826
1845
|
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
@@ -2332,9 +2351,6 @@ declare const TOKENS_ICONS: Record<string, FC<SVGProps<SVGSVGElement>>>;
|
|
|
2332
2351
|
|
|
2333
2352
|
declare const WALLET_ICONS: Record<'default' | string, FC<SVGProps<SVGSVGElement>>>;
|
|
2334
2353
|
|
|
2335
|
-
/** Tokens WRAPPED by the protocol */
|
|
2336
|
-
declare const WRAPPED_TOKENS: string[];
|
|
2337
|
-
|
|
2338
2354
|
/**
|
|
2339
2355
|
* Passport translations object.
|
|
2340
2356
|
* Note: For use in combineI18NResources, translations are imported directly
|
|
@@ -3384,4 +3400,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
|
|
|
3384
3400
|
|
|
3385
3401
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
3386
3402
|
|
|
3387
|
-
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type BatchOperation, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, NETWORKS_ICONS, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, type PrepareBatchUserOperationParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps, type RegisterSmartAccountResult, type SendBatchUserOperationParams, type SendTransactionParams, type SendTransactionResult, SessionExpiredError, type SignTypedDataParams, type SmartAccountEntry, TOKENS_ICONS, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type TransferToLinkedParams, type TypedDataDomain, type TypedDataField, USER_PROFILE_QUERY_KEY, type UpdateProfileRequest, type UseDirectWalletReturn, type UseErc3643ComplianceOptions, type UseErc3643ComplianceResult, type UseLogoutReturn, type UseNicknameResolveOptions, type UseNicknameResolveResult, type UseSendDirectTransactionReturn, type UseSendTransactionReturn, type UseTransferToLinkedReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UseWalletModeReturn, type UserOpMempool, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserOperationByHash, type UserOperationReceipt, UserOperationTimeoutError, type UserProfile, UserRejectedError, WALLET_ICONS,
|
|
3403
|
+
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type BatchOperation, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, NETWORKS_ICONS, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, type PrepareBatchUserOperationParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps, type RegisterSmartAccountResult, type SendBatchUserOperationParams, type SendTransactionParams, type SendTransactionResult, SessionExpiredError, type SignTypedDataParams, type SmartAccountEntry, TOKENS_ICONS, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type TransferToLinkedParams, type TypedDataDomain, type TypedDataField, USER_PROFILE_QUERY_KEY, type UpdateProfileRequest, type UseDirectWalletReturn, type UseErc3643ComplianceOptions, type UseErc3643ComplianceResult, type UseLogoutReturn, type UseNicknameResolveOptions, type UseNicknameResolveResult, type UseSendDirectTransactionReturn, type UseSendTransactionReturn, type UseTransferToLinkedReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UseWalletModeReturn, type UserOpMempool, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserOperationByHash, type UserOperationReceipt, UserOperationTimeoutError, type UserProfile, UserRejectedError, WALLET_ICONS, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, checkWrapedTokenSymbol, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAssetRate, getAvailableLanguages, getExplorerUrl, getIframeManager, getInProgressOnrampTransactionsList, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, isSessionExpiredError, looksLikeNickname, prepareBatchUserOperation, prepareUserOperation, requireActiveChainId, sendBatchUserOperation, sendUserOperation, signTypedData, updateUserProfile, useAccountSession, useActiveChainId, useAddress, useAssetUsdtRate, useAssets, useBalance, useBlockscoutAssets, useColorMode, useConnectedApps, useDirectWallet, useErc3643Compliance, useError, useHasServerVault, useHydrated, useIFrameReady, useIsMobileView, useKeyshareRecoveryStats, useLinkedProfiles, useLoadingStatus, useLogout, useNativeWalletSignature, useNicknameResolve, useOpenPage, useProviderConfig, useRecoveryUserId, useSendDirectTransaction, useSendTransaction, useSession, useSmartAccountTransactions, useTokenBalance, useTokenInfo, useTransactions, useTransferToLinkedWallet, useUserOpStatus, useWalletMode, verifyFingerprint, verifyFingerprintDetailed, waitForStoreHydration, waitForUserOperationReceipt };
|