@embarkai/ui-kit 0.4.9 → 0.4.11
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 +340 -261
- package/dist/index.d.cts +37 -12
- package/dist/index.d.ts +37 -12
- package/dist/index.js +369 -292
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1802,6 +1802,24 @@ declare function getUserProfile(): Promise<UserProfile>;
|
|
|
1802
1802
|
*/
|
|
1803
1803
|
declare function updateUserProfile(updates: UpdateProfileRequest): Promise<UserProfile>;
|
|
1804
1804
|
|
|
1805
|
+
declare function useConnectedApps(): _tanstack_react_query.UseQueryResult<any[] | {
|
|
1806
|
+
userId: string;
|
|
1807
|
+
projectId: string;
|
|
1808
|
+
origin: string;
|
|
1809
|
+
trustedAt: number;
|
|
1810
|
+
appName?: string;
|
|
1811
|
+
appLogo?: string;
|
|
1812
|
+
}[], Error>;
|
|
1813
|
+
declare function useKeyshareRecoveryStats(): _tanstack_react_query.UseQueryResult<{
|
|
1814
|
+
keyshareInfo: {
|
|
1815
|
+
hasKeyshare: boolean;
|
|
1816
|
+
ownerAddress?: `0x${string}`;
|
|
1817
|
+
sessionId?: string;
|
|
1818
|
+
keyshareSize?: number;
|
|
1819
|
+
};
|
|
1820
|
+
shareRecoveryStats: RecoveryStats;
|
|
1821
|
+
}, Error>;
|
|
1822
|
+
|
|
1805
1823
|
interface LinkedProfileDisplay extends AuthProvider {
|
|
1806
1824
|
displayName: string;
|
|
1807
1825
|
icon?: React.ComponentType<{
|
|
@@ -2405,10 +2423,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2405
2423
|
};
|
|
2406
2424
|
securityMenu: {
|
|
2407
2425
|
title: string;
|
|
2408
|
-
|
|
2426
|
+
connectedApps: {
|
|
2427
|
+
connectedApp: string;
|
|
2409
2428
|
trustedApp: string;
|
|
2410
|
-
|
|
2411
|
-
|
|
2429
|
+
trustedAt: string;
|
|
2430
|
+
connectedAt: string;
|
|
2431
|
+
connectedApps: string;
|
|
2432
|
+
noConnectedApps: string;
|
|
2412
2433
|
removalNoteTitle: string;
|
|
2413
2434
|
removalNoteMsg1: string;
|
|
2414
2435
|
removalNoteMsg2: string;
|
|
@@ -2632,10 +2653,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2632
2653
|
};
|
|
2633
2654
|
securityMenu: {
|
|
2634
2655
|
title: string;
|
|
2635
|
-
|
|
2656
|
+
connectedApps: {
|
|
2657
|
+
connectedApp: string;
|
|
2636
2658
|
trustedApp: string;
|
|
2637
|
-
|
|
2638
|
-
|
|
2659
|
+
trustedAt: string;
|
|
2660
|
+
connectedAt: string;
|
|
2661
|
+
connectedApps: string;
|
|
2662
|
+
noConnectedApps: string;
|
|
2639
2663
|
removalNoteTitle: string;
|
|
2640
2664
|
removalNoteMsg1: string;
|
|
2641
2665
|
removalNoteMsg2: string;
|
|
@@ -2880,10 +2904,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2880
2904
|
};
|
|
2881
2905
|
securityMenu: {
|
|
2882
2906
|
title: string;
|
|
2883
|
-
|
|
2907
|
+
connectedApps: {
|
|
2908
|
+
connectedApp: string;
|
|
2884
2909
|
trustedApp: string;
|
|
2885
|
-
|
|
2886
|
-
|
|
2910
|
+
trustedAt: string;
|
|
2911
|
+
connectedAt: string;
|
|
2912
|
+
connectedApps: string;
|
|
2913
|
+
noConnectedApps: string;
|
|
2887
2914
|
removalNoteTitle: string;
|
|
2888
2915
|
removalNoteMsg1: string;
|
|
2889
2916
|
removalNoteMsg2: string;
|
|
@@ -2972,8 +2999,6 @@ declare function combineI18NResources(...resourses: TranslationResources[]): Tra
|
|
|
2972
2999
|
declare function getAvailableLanguages(resourses: TranslationResources): string[];
|
|
2973
3000
|
declare function getLanguageIcon(languageKey: string): string | null;
|
|
2974
3001
|
|
|
2975
|
-
declare const KEYSHARE_RECOVERY_STATS_QUERY = "keyshare-recovery-stats-query";
|
|
2976
|
-
|
|
2977
3002
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
2978
3003
|
|
|
2979
|
-
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps,
|
|
3004
|
+
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps, type RegisterSmartAccountResult, type SendTransactionParams, type SendTransactionResult, type SignTypedDataParams, type SmartAccountEntry, 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, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, looksLikeNickname, prepareUserOperation, requireActiveChainId, 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, wagmiConfig, waitForStoreHydration, waitForUserOperationReceipt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1802,6 +1802,24 @@ declare function getUserProfile(): Promise<UserProfile>;
|
|
|
1802
1802
|
*/
|
|
1803
1803
|
declare function updateUserProfile(updates: UpdateProfileRequest): Promise<UserProfile>;
|
|
1804
1804
|
|
|
1805
|
+
declare function useConnectedApps(): _tanstack_react_query.UseQueryResult<any[] | {
|
|
1806
|
+
userId: string;
|
|
1807
|
+
projectId: string;
|
|
1808
|
+
origin: string;
|
|
1809
|
+
trustedAt: number;
|
|
1810
|
+
appName?: string;
|
|
1811
|
+
appLogo?: string;
|
|
1812
|
+
}[], Error>;
|
|
1813
|
+
declare function useKeyshareRecoveryStats(): _tanstack_react_query.UseQueryResult<{
|
|
1814
|
+
keyshareInfo: {
|
|
1815
|
+
hasKeyshare: boolean;
|
|
1816
|
+
ownerAddress?: `0x${string}`;
|
|
1817
|
+
sessionId?: string;
|
|
1818
|
+
keyshareSize?: number;
|
|
1819
|
+
};
|
|
1820
|
+
shareRecoveryStats: RecoveryStats;
|
|
1821
|
+
}, Error>;
|
|
1822
|
+
|
|
1805
1823
|
interface LinkedProfileDisplay extends AuthProvider {
|
|
1806
1824
|
displayName: string;
|
|
1807
1825
|
icon?: React.ComponentType<{
|
|
@@ -2405,10 +2423,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2405
2423
|
};
|
|
2406
2424
|
securityMenu: {
|
|
2407
2425
|
title: string;
|
|
2408
|
-
|
|
2426
|
+
connectedApps: {
|
|
2427
|
+
connectedApp: string;
|
|
2409
2428
|
trustedApp: string;
|
|
2410
|
-
|
|
2411
|
-
|
|
2429
|
+
trustedAt: string;
|
|
2430
|
+
connectedAt: string;
|
|
2431
|
+
connectedApps: string;
|
|
2432
|
+
noConnectedApps: string;
|
|
2412
2433
|
removalNoteTitle: string;
|
|
2413
2434
|
removalNoteMsg1: string;
|
|
2414
2435
|
removalNoteMsg2: string;
|
|
@@ -2632,10 +2653,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2632
2653
|
};
|
|
2633
2654
|
securityMenu: {
|
|
2634
2655
|
title: string;
|
|
2635
|
-
|
|
2656
|
+
connectedApps: {
|
|
2657
|
+
connectedApp: string;
|
|
2636
2658
|
trustedApp: string;
|
|
2637
|
-
|
|
2638
|
-
|
|
2659
|
+
trustedAt: string;
|
|
2660
|
+
connectedAt: string;
|
|
2661
|
+
connectedApps: string;
|
|
2662
|
+
noConnectedApps: string;
|
|
2639
2663
|
removalNoteTitle: string;
|
|
2640
2664
|
removalNoteMsg1: string;
|
|
2641
2665
|
removalNoteMsg2: string;
|
|
@@ -2880,10 +2904,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2880
2904
|
};
|
|
2881
2905
|
securityMenu: {
|
|
2882
2906
|
title: string;
|
|
2883
|
-
|
|
2907
|
+
connectedApps: {
|
|
2908
|
+
connectedApp: string;
|
|
2884
2909
|
trustedApp: string;
|
|
2885
|
-
|
|
2886
|
-
|
|
2910
|
+
trustedAt: string;
|
|
2911
|
+
connectedAt: string;
|
|
2912
|
+
connectedApps: string;
|
|
2913
|
+
noConnectedApps: string;
|
|
2887
2914
|
removalNoteTitle: string;
|
|
2888
2915
|
removalNoteMsg1: string;
|
|
2889
2916
|
removalNoteMsg2: string;
|
|
@@ -2972,8 +2999,6 @@ declare function combineI18NResources(...resourses: TranslationResources[]): Tra
|
|
|
2972
2999
|
declare function getAvailableLanguages(resourses: TranslationResources): string[];
|
|
2973
3000
|
declare function getLanguageIcon(languageKey: string): string | null;
|
|
2974
3001
|
|
|
2975
|
-
declare const KEYSHARE_RECOVERY_STATS_QUERY = "keyshare-recovery-stats-query";
|
|
2976
|
-
|
|
2977
3002
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
2978
3003
|
|
|
2979
|
-
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps,
|
|
3004
|
+
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps, type RegisterSmartAccountResult, type SendTransactionParams, type SendTransactionResult, type SignTypedDataParams, type SmartAccountEntry, 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, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, looksLikeNickname, prepareUserOperation, requireActiveChainId, 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, wagmiConfig, waitForStoreHydration, waitForUserOperationReceipt };
|