@embarkai/ui-kit 0.4.83 → 0.4.85
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 +7178 -7032
- package/dist/index.d.cts +54 -23
- package/dist/index.d.ts +54 -23
- package/dist/index.js +6694 -6555
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NormalizedAsset, NormalizedAssetType, BatchOperation as BatchOperation$1 } from '@embarkai/core';
|
|
2
2
|
export { wagmiConfig } from '@embarkai/core';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import react__default, { ReactNode, RefObject, FC, HTMLAttributes, ButtonHTMLAttributes, SVGProps
|
|
4
|
+
import react__default, { ReactNode, RefObject, Component, PropsWithChildren, ErrorInfo, JSX, FC, HTMLAttributes, ButtonHTMLAttributes, SVGProps } from 'react';
|
|
5
5
|
import { BlockscoutTokenBalance } from '@embarkai/core/clients';
|
|
6
6
|
import * as viem from 'viem';
|
|
7
7
|
import { Address as Address$1, Hex, PublicClient, Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
|
|
@@ -403,6 +403,37 @@ interface ProviderProps {
|
|
|
403
403
|
declare function Provider(props: ProviderProps): react.JSX.Element;
|
|
404
404
|
declare const useProviderConfig: () => UIContextType;
|
|
405
405
|
|
|
406
|
+
interface ErrorBoundaryProps extends PropsWithChildren {
|
|
407
|
+
onErrorBoundaryStateChange?: (visible: boolean) => void;
|
|
408
|
+
onComponentDidCatch?: (error: Error, info: ErrorInfo) => void;
|
|
409
|
+
onComponentDidUpdate?: (prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState) => void;
|
|
410
|
+
/** custom fallback component */
|
|
411
|
+
FallbackComponent?: (props: {
|
|
412
|
+
error: Error;
|
|
413
|
+
info: ErrorInfo;
|
|
414
|
+
}) => JSX.Element;
|
|
415
|
+
}
|
|
416
|
+
interface ErrorBoundaryState {
|
|
417
|
+
hasError: boolean;
|
|
418
|
+
}
|
|
419
|
+
declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
420
|
+
state: ErrorBoundaryState;
|
|
421
|
+
/** Switches to error state when a descendant throws during rendering. */
|
|
422
|
+
static getDerivedStateFromError(): {
|
|
423
|
+
hasError: boolean;
|
|
424
|
+
};
|
|
425
|
+
/** Notifies the parent of the initial error state on mount. */
|
|
426
|
+
componentDidMount(): void;
|
|
427
|
+
/** Signals to the parent that the boundary is no longer active. */
|
|
428
|
+
componentWillUnmount(): void;
|
|
429
|
+
/** Notifies the parent whenever the error state toggles. */
|
|
430
|
+
componentDidUpdate(prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState): void;
|
|
431
|
+
/** Forwards the caught error to the optional callback and stores it in the global store. */
|
|
432
|
+
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
433
|
+
/** Renders the fallback UI on error, otherwise renders children normally. */
|
|
434
|
+
render(): string | number | bigint | boolean | JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode>>;
|
|
435
|
+
}
|
|
436
|
+
|
|
406
437
|
interface ConnectWalletButtonProps {
|
|
407
438
|
/** Button Component to render as unsigned button instance */
|
|
408
439
|
ConnectButton?: FC<HTMLAttributes<HTMLButtonElement>>;
|
|
@@ -1104,7 +1135,7 @@ declare function useColorMode(): {
|
|
|
1104
1135
|
};
|
|
1105
1136
|
|
|
1106
1137
|
declare const buttonVariants: (props?: {
|
|
1107
|
-
variant?: "
|
|
1138
|
+
variant?: "default" | "outline" | "default-glow" | "secondary" | "secondary-glow" | "ghost";
|
|
1108
1139
|
size?: "small" | "large" | "medium" | "icon";
|
|
1109
1140
|
} & class_variance_authority_types.ClassProp) => string;
|
|
1110
1141
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -2040,18 +2071,18 @@ declare function useTransactions(): {
|
|
|
2040
2071
|
getTransaction: (hash: Hash$1) => Promise<{
|
|
2041
2072
|
input: viem.Hex;
|
|
2042
2073
|
s: viem.Hex;
|
|
2043
|
-
|
|
2074
|
+
hash: Hash$1;
|
|
2044
2075
|
type: "legacy";
|
|
2045
2076
|
yParity?: undefined;
|
|
2046
2077
|
blockTimestamp?: bigint;
|
|
2047
2078
|
from: viem.Address;
|
|
2048
2079
|
gas: bigint;
|
|
2049
|
-
hash: Hash$1;
|
|
2050
2080
|
nonce: number;
|
|
2051
2081
|
r: viem.Hex;
|
|
2052
2082
|
to: viem.Address | null;
|
|
2053
2083
|
typeHex: viem.Hex | null;
|
|
2054
2084
|
v: bigint;
|
|
2085
|
+
value: bigint;
|
|
2055
2086
|
accessList?: undefined;
|
|
2056
2087
|
authorizationList?: undefined;
|
|
2057
2088
|
blobVersionedHashes?: undefined;
|
|
@@ -2066,18 +2097,18 @@ declare function useTransactions(): {
|
|
|
2066
2097
|
} | {
|
|
2067
2098
|
input: viem.Hex;
|
|
2068
2099
|
s: viem.Hex;
|
|
2069
|
-
|
|
2100
|
+
hash: Hash$1;
|
|
2070
2101
|
type: "eip2930";
|
|
2071
2102
|
yParity: number;
|
|
2072
2103
|
blockTimestamp?: bigint;
|
|
2073
2104
|
from: viem.Address;
|
|
2074
2105
|
gas: bigint;
|
|
2075
|
-
hash: Hash$1;
|
|
2076
2106
|
nonce: number;
|
|
2077
2107
|
r: viem.Hex;
|
|
2078
2108
|
to: viem.Address | null;
|
|
2079
2109
|
typeHex: viem.Hex | null;
|
|
2080
2110
|
v: bigint;
|
|
2111
|
+
value: bigint;
|
|
2081
2112
|
accessList: viem.AccessList;
|
|
2082
2113
|
authorizationList?: undefined;
|
|
2083
2114
|
blobVersionedHashes?: undefined;
|
|
@@ -2092,18 +2123,18 @@ declare function useTransactions(): {
|
|
|
2092
2123
|
} | {
|
|
2093
2124
|
input: viem.Hex;
|
|
2094
2125
|
s: viem.Hex;
|
|
2095
|
-
|
|
2126
|
+
hash: Hash$1;
|
|
2096
2127
|
type: "eip1559";
|
|
2097
2128
|
yParity: number;
|
|
2098
2129
|
blockTimestamp?: bigint;
|
|
2099
2130
|
from: viem.Address;
|
|
2100
2131
|
gas: bigint;
|
|
2101
|
-
hash: Hash$1;
|
|
2102
2132
|
nonce: number;
|
|
2103
2133
|
r: viem.Hex;
|
|
2104
2134
|
to: viem.Address | null;
|
|
2105
2135
|
typeHex: viem.Hex | null;
|
|
2106
2136
|
v: bigint;
|
|
2137
|
+
value: bigint;
|
|
2107
2138
|
accessList: viem.AccessList;
|
|
2108
2139
|
authorizationList?: undefined;
|
|
2109
2140
|
blobVersionedHashes?: undefined;
|
|
@@ -2118,18 +2149,18 @@ declare function useTransactions(): {
|
|
|
2118
2149
|
} | {
|
|
2119
2150
|
input: viem.Hex;
|
|
2120
2151
|
s: viem.Hex;
|
|
2121
|
-
|
|
2152
|
+
hash: Hash$1;
|
|
2122
2153
|
type: "eip4844";
|
|
2123
2154
|
yParity: number;
|
|
2124
2155
|
blockTimestamp?: bigint;
|
|
2125
2156
|
from: viem.Address;
|
|
2126
2157
|
gas: bigint;
|
|
2127
|
-
hash: Hash$1;
|
|
2128
2158
|
nonce: number;
|
|
2129
2159
|
r: viem.Hex;
|
|
2130
2160
|
to: viem.Address | null;
|
|
2131
2161
|
typeHex: viem.Hex | null;
|
|
2132
2162
|
v: bigint;
|
|
2163
|
+
value: bigint;
|
|
2133
2164
|
accessList: viem.AccessList;
|
|
2134
2165
|
authorizationList?: undefined;
|
|
2135
2166
|
blobVersionedHashes: readonly viem.Hex[];
|
|
@@ -2144,18 +2175,18 @@ declare function useTransactions(): {
|
|
|
2144
2175
|
} | {
|
|
2145
2176
|
input: viem.Hex;
|
|
2146
2177
|
s: viem.Hex;
|
|
2147
|
-
|
|
2178
|
+
hash: Hash$1;
|
|
2148
2179
|
type: "eip7702";
|
|
2149
2180
|
yParity: number;
|
|
2150
2181
|
blockTimestamp?: bigint;
|
|
2151
2182
|
from: viem.Address;
|
|
2152
2183
|
gas: bigint;
|
|
2153
|
-
hash: Hash$1;
|
|
2154
2184
|
nonce: number;
|
|
2155
2185
|
r: viem.Hex;
|
|
2156
2186
|
to: viem.Address | null;
|
|
2157
2187
|
typeHex: viem.Hex | null;
|
|
2158
2188
|
v: bigint;
|
|
2189
|
+
value: bigint;
|
|
2159
2190
|
accessList: viem.AccessList;
|
|
2160
2191
|
authorizationList: viem.SignedAuthorizationList;
|
|
2161
2192
|
blobVersionedHashes?: undefined;
|
|
@@ -2191,18 +2222,18 @@ declare function useSmartAccountTransactions(): {
|
|
|
2191
2222
|
transaction: {
|
|
2192
2223
|
input: viem.Hex;
|
|
2193
2224
|
s: viem.Hex;
|
|
2194
|
-
|
|
2225
|
+
hash: Hash$1;
|
|
2195
2226
|
type: "legacy";
|
|
2196
2227
|
yParity?: undefined;
|
|
2197
2228
|
blockTimestamp?: bigint;
|
|
2198
2229
|
from: viem.Address;
|
|
2199
2230
|
gas: bigint;
|
|
2200
|
-
hash: Hash$1;
|
|
2201
2231
|
nonce: number;
|
|
2202
2232
|
r: viem.Hex;
|
|
2203
2233
|
to: viem.Address | null;
|
|
2204
2234
|
typeHex: viem.Hex | null;
|
|
2205
2235
|
v: bigint;
|
|
2236
|
+
value: bigint;
|
|
2206
2237
|
accessList?: undefined;
|
|
2207
2238
|
authorizationList?: undefined;
|
|
2208
2239
|
blobVersionedHashes?: undefined;
|
|
@@ -2217,18 +2248,18 @@ declare function useSmartAccountTransactions(): {
|
|
|
2217
2248
|
} | {
|
|
2218
2249
|
input: viem.Hex;
|
|
2219
2250
|
s: viem.Hex;
|
|
2220
|
-
|
|
2251
|
+
hash: Hash$1;
|
|
2221
2252
|
type: "eip2930";
|
|
2222
2253
|
yParity: number;
|
|
2223
2254
|
blockTimestamp?: bigint;
|
|
2224
2255
|
from: viem.Address;
|
|
2225
2256
|
gas: bigint;
|
|
2226
|
-
hash: Hash$1;
|
|
2227
2257
|
nonce: number;
|
|
2228
2258
|
r: viem.Hex;
|
|
2229
2259
|
to: viem.Address | null;
|
|
2230
2260
|
typeHex: viem.Hex | null;
|
|
2231
2261
|
v: bigint;
|
|
2262
|
+
value: bigint;
|
|
2232
2263
|
accessList: viem.AccessList;
|
|
2233
2264
|
authorizationList?: undefined;
|
|
2234
2265
|
blobVersionedHashes?: undefined;
|
|
@@ -2243,18 +2274,18 @@ declare function useSmartAccountTransactions(): {
|
|
|
2243
2274
|
} | {
|
|
2244
2275
|
input: viem.Hex;
|
|
2245
2276
|
s: viem.Hex;
|
|
2246
|
-
|
|
2277
|
+
hash: Hash$1;
|
|
2247
2278
|
type: "eip1559";
|
|
2248
2279
|
yParity: number;
|
|
2249
2280
|
blockTimestamp?: bigint;
|
|
2250
2281
|
from: viem.Address;
|
|
2251
2282
|
gas: bigint;
|
|
2252
|
-
hash: Hash$1;
|
|
2253
2283
|
nonce: number;
|
|
2254
2284
|
r: viem.Hex;
|
|
2255
2285
|
to: viem.Address | null;
|
|
2256
2286
|
typeHex: viem.Hex | null;
|
|
2257
2287
|
v: bigint;
|
|
2288
|
+
value: bigint;
|
|
2258
2289
|
accessList: viem.AccessList;
|
|
2259
2290
|
authorizationList?: undefined;
|
|
2260
2291
|
blobVersionedHashes?: undefined;
|
|
@@ -2269,18 +2300,18 @@ declare function useSmartAccountTransactions(): {
|
|
|
2269
2300
|
} | {
|
|
2270
2301
|
input: viem.Hex;
|
|
2271
2302
|
s: viem.Hex;
|
|
2272
|
-
|
|
2303
|
+
hash: Hash$1;
|
|
2273
2304
|
type: "eip4844";
|
|
2274
2305
|
yParity: number;
|
|
2275
2306
|
blockTimestamp?: bigint;
|
|
2276
2307
|
from: viem.Address;
|
|
2277
2308
|
gas: bigint;
|
|
2278
|
-
hash: Hash$1;
|
|
2279
2309
|
nonce: number;
|
|
2280
2310
|
r: viem.Hex;
|
|
2281
2311
|
to: viem.Address | null;
|
|
2282
2312
|
typeHex: viem.Hex | null;
|
|
2283
2313
|
v: bigint;
|
|
2314
|
+
value: bigint;
|
|
2284
2315
|
accessList: viem.AccessList;
|
|
2285
2316
|
authorizationList?: undefined;
|
|
2286
2317
|
blobVersionedHashes: readonly viem.Hex[];
|
|
@@ -2295,18 +2326,18 @@ declare function useSmartAccountTransactions(): {
|
|
|
2295
2326
|
} | {
|
|
2296
2327
|
input: viem.Hex;
|
|
2297
2328
|
s: viem.Hex;
|
|
2298
|
-
|
|
2329
|
+
hash: Hash$1;
|
|
2299
2330
|
type: "eip7702";
|
|
2300
2331
|
yParity: number;
|
|
2301
2332
|
blockTimestamp?: bigint;
|
|
2302
2333
|
from: viem.Address;
|
|
2303
2334
|
gas: bigint;
|
|
2304
|
-
hash: Hash$1;
|
|
2305
2335
|
nonce: number;
|
|
2306
2336
|
r: viem.Hex;
|
|
2307
2337
|
to: viem.Address | null;
|
|
2308
2338
|
typeHex: viem.Hex | null;
|
|
2309
2339
|
v: bigint;
|
|
2340
|
+
value: bigint;
|
|
2310
2341
|
accessList: viem.AccessList;
|
|
2311
2342
|
authorizationList: viem.SignedAuthorizationList;
|
|
2312
2343
|
blobVersionedHashes?: undefined;
|
|
@@ -4187,4 +4218,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
|
|
|
4187
4218
|
|
|
4188
4219
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
4189
4220
|
|
|
4190
|
-
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type BatchOperation, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, Expandable, 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, ONBOARDING_TOURS, 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, onboarder, 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 };
|
|
4221
|
+
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type BatchOperation, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorBoundary, type ErrorBoundaryProps, ErrorCodes, Expandable, 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, ONBOARDING_TOURS, 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, onboarder, 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NormalizedAsset, NormalizedAssetType, BatchOperation as BatchOperation$1 } from '@embarkai/core';
|
|
2
2
|
export { wagmiConfig } from '@embarkai/core';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import react__default, { ReactNode, RefObject, FC, HTMLAttributes, ButtonHTMLAttributes, SVGProps
|
|
4
|
+
import react__default, { ReactNode, RefObject, Component, PropsWithChildren, ErrorInfo, JSX, FC, HTMLAttributes, ButtonHTMLAttributes, SVGProps } from 'react';
|
|
5
5
|
import { BlockscoutTokenBalance } from '@embarkai/core/clients';
|
|
6
6
|
import * as viem from 'viem';
|
|
7
7
|
import { Address as Address$1, Hex, PublicClient, Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
|
|
@@ -403,6 +403,37 @@ interface ProviderProps {
|
|
|
403
403
|
declare function Provider(props: ProviderProps): react.JSX.Element;
|
|
404
404
|
declare const useProviderConfig: () => UIContextType;
|
|
405
405
|
|
|
406
|
+
interface ErrorBoundaryProps extends PropsWithChildren {
|
|
407
|
+
onErrorBoundaryStateChange?: (visible: boolean) => void;
|
|
408
|
+
onComponentDidCatch?: (error: Error, info: ErrorInfo) => void;
|
|
409
|
+
onComponentDidUpdate?: (prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState) => void;
|
|
410
|
+
/** custom fallback component */
|
|
411
|
+
FallbackComponent?: (props: {
|
|
412
|
+
error: Error;
|
|
413
|
+
info: ErrorInfo;
|
|
414
|
+
}) => JSX.Element;
|
|
415
|
+
}
|
|
416
|
+
interface ErrorBoundaryState {
|
|
417
|
+
hasError: boolean;
|
|
418
|
+
}
|
|
419
|
+
declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
420
|
+
state: ErrorBoundaryState;
|
|
421
|
+
/** Switches to error state when a descendant throws during rendering. */
|
|
422
|
+
static getDerivedStateFromError(): {
|
|
423
|
+
hasError: boolean;
|
|
424
|
+
};
|
|
425
|
+
/** Notifies the parent of the initial error state on mount. */
|
|
426
|
+
componentDidMount(): void;
|
|
427
|
+
/** Signals to the parent that the boundary is no longer active. */
|
|
428
|
+
componentWillUnmount(): void;
|
|
429
|
+
/** Notifies the parent whenever the error state toggles. */
|
|
430
|
+
componentDidUpdate(prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState): void;
|
|
431
|
+
/** Forwards the caught error to the optional callback and stores it in the global store. */
|
|
432
|
+
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
433
|
+
/** Renders the fallback UI on error, otherwise renders children normally. */
|
|
434
|
+
render(): string | number | bigint | boolean | JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode>>;
|
|
435
|
+
}
|
|
436
|
+
|
|
406
437
|
interface ConnectWalletButtonProps {
|
|
407
438
|
/** Button Component to render as unsigned button instance */
|
|
408
439
|
ConnectButton?: FC<HTMLAttributes<HTMLButtonElement>>;
|
|
@@ -1104,7 +1135,7 @@ declare function useColorMode(): {
|
|
|
1104
1135
|
};
|
|
1105
1136
|
|
|
1106
1137
|
declare const buttonVariants: (props?: {
|
|
1107
|
-
variant?: "
|
|
1138
|
+
variant?: "default" | "outline" | "default-glow" | "secondary" | "secondary-glow" | "ghost";
|
|
1108
1139
|
size?: "small" | "large" | "medium" | "icon";
|
|
1109
1140
|
} & class_variance_authority_types.ClassProp) => string;
|
|
1110
1141
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -2040,18 +2071,18 @@ declare function useTransactions(): {
|
|
|
2040
2071
|
getTransaction: (hash: Hash$1) => Promise<{
|
|
2041
2072
|
input: viem.Hex;
|
|
2042
2073
|
s: viem.Hex;
|
|
2043
|
-
|
|
2074
|
+
hash: Hash$1;
|
|
2044
2075
|
type: "legacy";
|
|
2045
2076
|
yParity?: undefined;
|
|
2046
2077
|
blockTimestamp?: bigint;
|
|
2047
2078
|
from: viem.Address;
|
|
2048
2079
|
gas: bigint;
|
|
2049
|
-
hash: Hash$1;
|
|
2050
2080
|
nonce: number;
|
|
2051
2081
|
r: viem.Hex;
|
|
2052
2082
|
to: viem.Address | null;
|
|
2053
2083
|
typeHex: viem.Hex | null;
|
|
2054
2084
|
v: bigint;
|
|
2085
|
+
value: bigint;
|
|
2055
2086
|
accessList?: undefined;
|
|
2056
2087
|
authorizationList?: undefined;
|
|
2057
2088
|
blobVersionedHashes?: undefined;
|
|
@@ -2066,18 +2097,18 @@ declare function useTransactions(): {
|
|
|
2066
2097
|
} | {
|
|
2067
2098
|
input: viem.Hex;
|
|
2068
2099
|
s: viem.Hex;
|
|
2069
|
-
|
|
2100
|
+
hash: Hash$1;
|
|
2070
2101
|
type: "eip2930";
|
|
2071
2102
|
yParity: number;
|
|
2072
2103
|
blockTimestamp?: bigint;
|
|
2073
2104
|
from: viem.Address;
|
|
2074
2105
|
gas: bigint;
|
|
2075
|
-
hash: Hash$1;
|
|
2076
2106
|
nonce: number;
|
|
2077
2107
|
r: viem.Hex;
|
|
2078
2108
|
to: viem.Address | null;
|
|
2079
2109
|
typeHex: viem.Hex | null;
|
|
2080
2110
|
v: bigint;
|
|
2111
|
+
value: bigint;
|
|
2081
2112
|
accessList: viem.AccessList;
|
|
2082
2113
|
authorizationList?: undefined;
|
|
2083
2114
|
blobVersionedHashes?: undefined;
|
|
@@ -2092,18 +2123,18 @@ declare function useTransactions(): {
|
|
|
2092
2123
|
} | {
|
|
2093
2124
|
input: viem.Hex;
|
|
2094
2125
|
s: viem.Hex;
|
|
2095
|
-
|
|
2126
|
+
hash: Hash$1;
|
|
2096
2127
|
type: "eip1559";
|
|
2097
2128
|
yParity: number;
|
|
2098
2129
|
blockTimestamp?: bigint;
|
|
2099
2130
|
from: viem.Address;
|
|
2100
2131
|
gas: bigint;
|
|
2101
|
-
hash: Hash$1;
|
|
2102
2132
|
nonce: number;
|
|
2103
2133
|
r: viem.Hex;
|
|
2104
2134
|
to: viem.Address | null;
|
|
2105
2135
|
typeHex: viem.Hex | null;
|
|
2106
2136
|
v: bigint;
|
|
2137
|
+
value: bigint;
|
|
2107
2138
|
accessList: viem.AccessList;
|
|
2108
2139
|
authorizationList?: undefined;
|
|
2109
2140
|
blobVersionedHashes?: undefined;
|
|
@@ -2118,18 +2149,18 @@ declare function useTransactions(): {
|
|
|
2118
2149
|
} | {
|
|
2119
2150
|
input: viem.Hex;
|
|
2120
2151
|
s: viem.Hex;
|
|
2121
|
-
|
|
2152
|
+
hash: Hash$1;
|
|
2122
2153
|
type: "eip4844";
|
|
2123
2154
|
yParity: number;
|
|
2124
2155
|
blockTimestamp?: bigint;
|
|
2125
2156
|
from: viem.Address;
|
|
2126
2157
|
gas: bigint;
|
|
2127
|
-
hash: Hash$1;
|
|
2128
2158
|
nonce: number;
|
|
2129
2159
|
r: viem.Hex;
|
|
2130
2160
|
to: viem.Address | null;
|
|
2131
2161
|
typeHex: viem.Hex | null;
|
|
2132
2162
|
v: bigint;
|
|
2163
|
+
value: bigint;
|
|
2133
2164
|
accessList: viem.AccessList;
|
|
2134
2165
|
authorizationList?: undefined;
|
|
2135
2166
|
blobVersionedHashes: readonly viem.Hex[];
|
|
@@ -2144,18 +2175,18 @@ declare function useTransactions(): {
|
|
|
2144
2175
|
} | {
|
|
2145
2176
|
input: viem.Hex;
|
|
2146
2177
|
s: viem.Hex;
|
|
2147
|
-
|
|
2178
|
+
hash: Hash$1;
|
|
2148
2179
|
type: "eip7702";
|
|
2149
2180
|
yParity: number;
|
|
2150
2181
|
blockTimestamp?: bigint;
|
|
2151
2182
|
from: viem.Address;
|
|
2152
2183
|
gas: bigint;
|
|
2153
|
-
hash: Hash$1;
|
|
2154
2184
|
nonce: number;
|
|
2155
2185
|
r: viem.Hex;
|
|
2156
2186
|
to: viem.Address | null;
|
|
2157
2187
|
typeHex: viem.Hex | null;
|
|
2158
2188
|
v: bigint;
|
|
2189
|
+
value: bigint;
|
|
2159
2190
|
accessList: viem.AccessList;
|
|
2160
2191
|
authorizationList: viem.SignedAuthorizationList;
|
|
2161
2192
|
blobVersionedHashes?: undefined;
|
|
@@ -2191,18 +2222,18 @@ declare function useSmartAccountTransactions(): {
|
|
|
2191
2222
|
transaction: {
|
|
2192
2223
|
input: viem.Hex;
|
|
2193
2224
|
s: viem.Hex;
|
|
2194
|
-
|
|
2225
|
+
hash: Hash$1;
|
|
2195
2226
|
type: "legacy";
|
|
2196
2227
|
yParity?: undefined;
|
|
2197
2228
|
blockTimestamp?: bigint;
|
|
2198
2229
|
from: viem.Address;
|
|
2199
2230
|
gas: bigint;
|
|
2200
|
-
hash: Hash$1;
|
|
2201
2231
|
nonce: number;
|
|
2202
2232
|
r: viem.Hex;
|
|
2203
2233
|
to: viem.Address | null;
|
|
2204
2234
|
typeHex: viem.Hex | null;
|
|
2205
2235
|
v: bigint;
|
|
2236
|
+
value: bigint;
|
|
2206
2237
|
accessList?: undefined;
|
|
2207
2238
|
authorizationList?: undefined;
|
|
2208
2239
|
blobVersionedHashes?: undefined;
|
|
@@ -2217,18 +2248,18 @@ declare function useSmartAccountTransactions(): {
|
|
|
2217
2248
|
} | {
|
|
2218
2249
|
input: viem.Hex;
|
|
2219
2250
|
s: viem.Hex;
|
|
2220
|
-
|
|
2251
|
+
hash: Hash$1;
|
|
2221
2252
|
type: "eip2930";
|
|
2222
2253
|
yParity: number;
|
|
2223
2254
|
blockTimestamp?: bigint;
|
|
2224
2255
|
from: viem.Address;
|
|
2225
2256
|
gas: bigint;
|
|
2226
|
-
hash: Hash$1;
|
|
2227
2257
|
nonce: number;
|
|
2228
2258
|
r: viem.Hex;
|
|
2229
2259
|
to: viem.Address | null;
|
|
2230
2260
|
typeHex: viem.Hex | null;
|
|
2231
2261
|
v: bigint;
|
|
2262
|
+
value: bigint;
|
|
2232
2263
|
accessList: viem.AccessList;
|
|
2233
2264
|
authorizationList?: undefined;
|
|
2234
2265
|
blobVersionedHashes?: undefined;
|
|
@@ -2243,18 +2274,18 @@ declare function useSmartAccountTransactions(): {
|
|
|
2243
2274
|
} | {
|
|
2244
2275
|
input: viem.Hex;
|
|
2245
2276
|
s: viem.Hex;
|
|
2246
|
-
|
|
2277
|
+
hash: Hash$1;
|
|
2247
2278
|
type: "eip1559";
|
|
2248
2279
|
yParity: number;
|
|
2249
2280
|
blockTimestamp?: bigint;
|
|
2250
2281
|
from: viem.Address;
|
|
2251
2282
|
gas: bigint;
|
|
2252
|
-
hash: Hash$1;
|
|
2253
2283
|
nonce: number;
|
|
2254
2284
|
r: viem.Hex;
|
|
2255
2285
|
to: viem.Address | null;
|
|
2256
2286
|
typeHex: viem.Hex | null;
|
|
2257
2287
|
v: bigint;
|
|
2288
|
+
value: bigint;
|
|
2258
2289
|
accessList: viem.AccessList;
|
|
2259
2290
|
authorizationList?: undefined;
|
|
2260
2291
|
blobVersionedHashes?: undefined;
|
|
@@ -2269,18 +2300,18 @@ declare function useSmartAccountTransactions(): {
|
|
|
2269
2300
|
} | {
|
|
2270
2301
|
input: viem.Hex;
|
|
2271
2302
|
s: viem.Hex;
|
|
2272
|
-
|
|
2303
|
+
hash: Hash$1;
|
|
2273
2304
|
type: "eip4844";
|
|
2274
2305
|
yParity: number;
|
|
2275
2306
|
blockTimestamp?: bigint;
|
|
2276
2307
|
from: viem.Address;
|
|
2277
2308
|
gas: bigint;
|
|
2278
|
-
hash: Hash$1;
|
|
2279
2309
|
nonce: number;
|
|
2280
2310
|
r: viem.Hex;
|
|
2281
2311
|
to: viem.Address | null;
|
|
2282
2312
|
typeHex: viem.Hex | null;
|
|
2283
2313
|
v: bigint;
|
|
2314
|
+
value: bigint;
|
|
2284
2315
|
accessList: viem.AccessList;
|
|
2285
2316
|
authorizationList?: undefined;
|
|
2286
2317
|
blobVersionedHashes: readonly viem.Hex[];
|
|
@@ -2295,18 +2326,18 @@ declare function useSmartAccountTransactions(): {
|
|
|
2295
2326
|
} | {
|
|
2296
2327
|
input: viem.Hex;
|
|
2297
2328
|
s: viem.Hex;
|
|
2298
|
-
|
|
2329
|
+
hash: Hash$1;
|
|
2299
2330
|
type: "eip7702";
|
|
2300
2331
|
yParity: number;
|
|
2301
2332
|
blockTimestamp?: bigint;
|
|
2302
2333
|
from: viem.Address;
|
|
2303
2334
|
gas: bigint;
|
|
2304
|
-
hash: Hash$1;
|
|
2305
2335
|
nonce: number;
|
|
2306
2336
|
r: viem.Hex;
|
|
2307
2337
|
to: viem.Address | null;
|
|
2308
2338
|
typeHex: viem.Hex | null;
|
|
2309
2339
|
v: bigint;
|
|
2340
|
+
value: bigint;
|
|
2310
2341
|
accessList: viem.AccessList;
|
|
2311
2342
|
authorizationList: viem.SignedAuthorizationList;
|
|
2312
2343
|
blobVersionedHashes?: undefined;
|
|
@@ -4187,4 +4218,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
|
|
|
4187
4218
|
|
|
4188
4219
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
4189
4220
|
|
|
4190
|
-
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type BatchOperation, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, Expandable, 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, ONBOARDING_TOURS, 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, onboarder, 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 };
|
|
4221
|
+
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type BatchOperation, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorBoundary, type ErrorBoundaryProps, ErrorCodes, Expandable, 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, ONBOARDING_TOURS, 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, onboarder, 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 };
|