@embarkai/ui-kit 0.4.64 → 0.4.66
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 +309 -308
- package/dist/index.d.cts +21 -4
- package/dist/index.d.ts +21 -4
- package/dist/index.js +158 -160
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1821,6 +1821,26 @@ 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
|
+
disabled?: boolean;
|
|
1836
|
+
refetchInterval?: number;
|
|
1837
|
+
staleTime?: number;
|
|
1838
|
+
}
|
|
1839
|
+
declare function useAssetUsdtRate(assetSymbol: string | null, options?: UseAssetRateOptions): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
1840
|
+
symbol: string;
|
|
1841
|
+
price: string;
|
|
1842
|
+
}>, Error>;
|
|
1843
|
+
|
|
1824
1844
|
interface LinkedProfileDisplay extends AuthProvider {
|
|
1825
1845
|
displayName: string;
|
|
1826
1846
|
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
@@ -2332,9 +2352,6 @@ declare const TOKENS_ICONS: Record<string, FC<SVGProps<SVGSVGElement>>>;
|
|
|
2332
2352
|
|
|
2333
2353
|
declare const WALLET_ICONS: Record<'default' | string, FC<SVGProps<SVGSVGElement>>>;
|
|
2334
2354
|
|
|
2335
|
-
/** Tokens WRAPPED by the protocol */
|
|
2336
|
-
declare const WRAPPED_TOKENS: string[];
|
|
2337
|
-
|
|
2338
2355
|
/**
|
|
2339
2356
|
* Passport translations object.
|
|
2340
2357
|
* Note: For use in combineI18NResources, translations are imported directly
|
|
@@ -3384,4 +3401,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
|
|
|
3384
3401
|
|
|
3385
3402
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
3386
3403
|
|
|
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,
|
|
3404
|
+
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,26 @@ 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
|
+
disabled?: boolean;
|
|
1836
|
+
refetchInterval?: number;
|
|
1837
|
+
staleTime?: number;
|
|
1838
|
+
}
|
|
1839
|
+
declare function useAssetUsdtRate(assetSymbol: string | null, options?: UseAssetRateOptions): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
1840
|
+
symbol: string;
|
|
1841
|
+
price: string;
|
|
1842
|
+
}>, Error>;
|
|
1843
|
+
|
|
1824
1844
|
interface LinkedProfileDisplay extends AuthProvider {
|
|
1825
1845
|
displayName: string;
|
|
1826
1846
|
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
@@ -2332,9 +2352,6 @@ declare const TOKENS_ICONS: Record<string, FC<SVGProps<SVGSVGElement>>>;
|
|
|
2332
2352
|
|
|
2333
2353
|
declare const WALLET_ICONS: Record<'default' | string, FC<SVGProps<SVGSVGElement>>>;
|
|
2334
2354
|
|
|
2335
|
-
/** Tokens WRAPPED by the protocol */
|
|
2336
|
-
declare const WRAPPED_TOKENS: string[];
|
|
2337
|
-
|
|
2338
2355
|
/**
|
|
2339
2356
|
* Passport translations object.
|
|
2340
2357
|
* Note: For use in combineI18NResources, translations are imported directly
|
|
@@ -3384,4 +3401,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
|
|
|
3384
3401
|
|
|
3385
3402
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
3386
3403
|
|
|
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,
|
|
3404
|
+
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 };
|