@embarkai/ui-kit 0.4.57 → 0.4.59

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
@@ -1812,6 +1812,7 @@ interface ConnectedApp {
1812
1812
  }
1813
1813
 
1814
1814
  declare function useConnectedApps(): _tanstack_react_query.UseQueryResult<NoInfer<ConnectedApp[]>, Error>;
1815
+
1815
1816
  declare function useKeyshareRecoveryStats(): _tanstack_react_query.UseQueryResult<NoInfer<{
1816
1817
  keyshareInfo: {
1817
1818
  hasKeyshare: boolean;
@@ -1855,13 +1856,26 @@ declare class UserRejectedError extends AccountAbstractionError {
1855
1856
  static readonly CODE: "USER_REJECTED";
1856
1857
  constructor(message?: string);
1857
1858
  }
1859
+ /**
1860
+ * Error thrown when the auth session is dead (refresh impossible)
1861
+ * and the user must log in again
1862
+ */
1863
+ declare class SessionExpiredError extends AccountAbstractionError {
1864
+ static readonly CODE: "SESSION_EXPIRED";
1865
+ constructor(message?: string);
1866
+ }
1858
1867
  /**
1859
1868
  * Error codes for EmbarkAI operations
1860
1869
  */
1861
1870
  declare const ErrorCodes: {
1862
1871
  readonly MPC_SIGNING_ERROR: "MPC_SIGNING_ERROR";
1863
1872
  readonly USER_REJECTED: "USER_REJECTED";
1873
+ readonly SESSION_EXPIRED: "SESSION_EXPIRED";
1864
1874
  };
1875
+ /**
1876
+ * Duck-types by `code` (not `instanceof`) so the check survives bundle boundaries
1877
+ */
1878
+ declare function isSessionExpiredError(error: unknown): boolean;
1865
1879
  /**
1866
1880
  * Create appropriate error from error code
1867
1881
  * Used to reconstruct errors from iframe postMessage
@@ -1898,6 +1912,8 @@ interface UseBlockscoutAssetsResult {
1898
1912
  assets: Asset[];
1899
1913
  /** Whether any data is currently loading */
1900
1914
  isLoading: boolean;
1915
+ /** Whether any data is currently fetching */
1916
+ isFetching: boolean;
1901
1917
  /** Whether initial load is in progress */
1902
1918
  isInitialLoading: boolean;
1903
1919
  /** Error from Blockscout API (null if native balance available) */
@@ -2532,6 +2548,11 @@ declare const PASSPORT_TRANSLATIONS: {
2532
2548
  networkFee: string;
2533
2549
  serviceFee: string;
2534
2550
  paymentMethod: string;
2551
+ toAddress: {
2552
+ receiver: string;
2553
+ message: string;
2554
+ suggestion: string;
2555
+ };
2535
2556
  };
2536
2557
  transactionHistory: {
2537
2558
  details: string;
@@ -2550,6 +2571,7 @@ declare const PASSPORT_TRANSLATIONS: {
2550
2571
  portfolioMenu: {
2551
2572
  title: string;
2552
2573
  noAssets: string;
2574
+ noBlockscout: string;
2553
2575
  };
2554
2576
  transactionsMenu: {
2555
2577
  title: string;
@@ -3378,4 +3400,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
3378
3400
 
3379
3401
  declare const USER_PROFILE_QUERY_KEY: string;
3380
3402
 
3381
- 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, 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, WRAPPED_TOKENS, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getInProgressOnrampTransactionsList, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, looksLikeNickname, prepareBatchUserOperation, prepareUserOperation, requireActiveChainId, sendBatchUserOperation, sendUserOperation, signTypedData, updateUserProfile, useAccountSession, useActiveChainId, useAddress, 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 };
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, WRAPPED_TOKENS, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getInProgressOnrampTransactionsList, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, isSessionExpiredError, looksLikeNickname, prepareBatchUserOperation, prepareUserOperation, requireActiveChainId, sendBatchUserOperation, sendUserOperation, signTypedData, updateUserProfile, useAccountSession, useActiveChainId, useAddress, 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
@@ -1812,6 +1812,7 @@ interface ConnectedApp {
1812
1812
  }
1813
1813
 
1814
1814
  declare function useConnectedApps(): _tanstack_react_query.UseQueryResult<NoInfer<ConnectedApp[]>, Error>;
1815
+
1815
1816
  declare function useKeyshareRecoveryStats(): _tanstack_react_query.UseQueryResult<NoInfer<{
1816
1817
  keyshareInfo: {
1817
1818
  hasKeyshare: boolean;
@@ -1855,13 +1856,26 @@ declare class UserRejectedError extends AccountAbstractionError {
1855
1856
  static readonly CODE: "USER_REJECTED";
1856
1857
  constructor(message?: string);
1857
1858
  }
1859
+ /**
1860
+ * Error thrown when the auth session is dead (refresh impossible)
1861
+ * and the user must log in again
1862
+ */
1863
+ declare class SessionExpiredError extends AccountAbstractionError {
1864
+ static readonly CODE: "SESSION_EXPIRED";
1865
+ constructor(message?: string);
1866
+ }
1858
1867
  /**
1859
1868
  * Error codes for EmbarkAI operations
1860
1869
  */
1861
1870
  declare const ErrorCodes: {
1862
1871
  readonly MPC_SIGNING_ERROR: "MPC_SIGNING_ERROR";
1863
1872
  readonly USER_REJECTED: "USER_REJECTED";
1873
+ readonly SESSION_EXPIRED: "SESSION_EXPIRED";
1864
1874
  };
1875
+ /**
1876
+ * Duck-types by `code` (not `instanceof`) so the check survives bundle boundaries
1877
+ */
1878
+ declare function isSessionExpiredError(error: unknown): boolean;
1865
1879
  /**
1866
1880
  * Create appropriate error from error code
1867
1881
  * Used to reconstruct errors from iframe postMessage
@@ -1898,6 +1912,8 @@ interface UseBlockscoutAssetsResult {
1898
1912
  assets: Asset[];
1899
1913
  /** Whether any data is currently loading */
1900
1914
  isLoading: boolean;
1915
+ /** Whether any data is currently fetching */
1916
+ isFetching: boolean;
1901
1917
  /** Whether initial load is in progress */
1902
1918
  isInitialLoading: boolean;
1903
1919
  /** Error from Blockscout API (null if native balance available) */
@@ -2532,6 +2548,11 @@ declare const PASSPORT_TRANSLATIONS: {
2532
2548
  networkFee: string;
2533
2549
  serviceFee: string;
2534
2550
  paymentMethod: string;
2551
+ toAddress: {
2552
+ receiver: string;
2553
+ message: string;
2554
+ suggestion: string;
2555
+ };
2535
2556
  };
2536
2557
  transactionHistory: {
2537
2558
  details: string;
@@ -2550,6 +2571,7 @@ declare const PASSPORT_TRANSLATIONS: {
2550
2571
  portfolioMenu: {
2551
2572
  title: string;
2552
2573
  noAssets: string;
2574
+ noBlockscout: string;
2553
2575
  };
2554
2576
  transactionsMenu: {
2555
2577
  title: string;
@@ -3378,4 +3400,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
3378
3400
 
3379
3401
  declare const USER_PROFILE_QUERY_KEY: string;
3380
3402
 
3381
- 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, 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, WRAPPED_TOKENS, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getInProgressOnrampTransactionsList, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, looksLikeNickname, prepareBatchUserOperation, prepareUserOperation, requireActiveChainId, sendBatchUserOperation, sendUserOperation, signTypedData, updateUserProfile, useAccountSession, useActiveChainId, useAddress, 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 };
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, WRAPPED_TOKENS, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getInProgressOnrampTransactionsList, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, isSessionExpiredError, looksLikeNickname, prepareBatchUserOperation, prepareUserOperation, requireActiveChainId, sendBatchUserOperation, sendUserOperation, signTypedData, updateUserProfile, useAccountSession, useActiveChainId, useAddress, 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 };