@embarkai/ui-kit 0.4.72 → 0.4.74

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.ts CHANGED
@@ -2251,6 +2251,10 @@ declare function useSmartAccountTransactions(): {
2251
2251
  }>;
2252
2252
  };
2253
2253
 
2254
+ interface TourStepAction {
2255
+ caption: string;
2256
+ onClick: () => void;
2257
+ }
2254
2258
  interface TourStep {
2255
2259
  /** step's target element ID */
2256
2260
  elId: string;
@@ -2258,6 +2262,10 @@ interface TourStep {
2258
2262
  title: string;
2259
2263
  /** tooltip's description */
2260
2264
  description: string;
2265
+ /** wait for X secs */
2266
+ waitSecs?: number;
2267
+ /** */
2268
+ actions?: TourStepAction[];
2261
2269
  /** callback invoked when the user proceeds to the next step */
2262
2270
  onNext?: () => void;
2263
2271
  }
@@ -2265,10 +2273,15 @@ declare class Onboarder {
2265
2273
  private tour;
2266
2274
  private tourPointer;
2267
2275
  private elements;
2276
+ /** deferred DOM observer */
2277
+ private domObserverTimer;
2278
+ private domObserver;
2279
+ /** deferred resize observer */
2280
+ private resizeObserverTimer;
2268
2281
  private resizeObserver;
2269
2282
  /** TOUR */
2270
2283
  startTour(tour: TourStep[]): void;
2271
- private endTour;
2284
+ endTour(): void;
2272
2285
  next(): void;
2273
2286
  /**
2274
2287
  * Registers an element with the onboarder.
@@ -2276,6 +2289,7 @@ declare class Onboarder {
2276
2289
  * @param elementRef - The ref of the element to register.
2277
2290
  */
2278
2291
  registerElement(onboardingElementId: string, elementRef?: HTMLElement | null): void;
2292
+ getCurrentStep(): TourStep | null;
2279
2293
  }
2280
2294
  declare const onboarder: Onboarder;
2281
2295
 
@@ -2376,6 +2390,9 @@ declare function getInProgressOnrampTransactionsList(params: GetTransactionsList
2376
2390
 
2377
2391
  declare const BUY_MENU_BINANCE_TOUR: TourStep[];
2378
2392
 
2393
+ declare const SEND_MENU_TOUR: TourStep[];
2394
+ declare const BRIDGE_MENU_TOUR: TourStep[];
2395
+
2379
2396
  declare const NETWORKS_ICONS: Record<number, FC<SVGProps<SVGSVGElement>>>;
2380
2397
 
2381
2398
  declare const TOKENS_ICONS: Record<string, FC<SVGProps<SVGSVGElement>>>;
@@ -2441,6 +2458,12 @@ declare const PASSPORT_TRANSLATIONS: {
2441
2458
  errors: {
2442
2459
  oops: string;
2443
2460
  };
2461
+ onboarding: {
2462
+ tourButton: {
2463
+ title: string;
2464
+ description: string;
2465
+ };
2466
+ };
2444
2467
  };
2445
2468
  auth: {
2446
2469
  signin: string;
@@ -2493,13 +2516,22 @@ declare const PASSPORT_TRANSLATIONS: {
2493
2516
  send: string;
2494
2517
  confirm: string;
2495
2518
  };
2519
+ onboarding: {
2520
+ sendMenu: {
2521
+ title: string;
2522
+ description: string;
2523
+ };
2524
+ sendCryptoSummary: {
2525
+ title: string;
2526
+ description: string;
2527
+ };
2528
+ };
2496
2529
  };
2497
2530
  bridgeMenu: {
2498
2531
  title: string;
2499
2532
  labels: {
2500
- sender: string;
2501
2533
  bridgeAsset: string;
2502
- selectTokenAndRoute: string;
2534
+ selectSender: string;
2503
2535
  selectToken: string;
2504
2536
  estimations: string;
2505
2537
  estimatedFee: string;
@@ -2524,6 +2556,7 @@ declare const PASSPORT_TRANSLATIONS: {
2524
2556
  };
2525
2557
  actions: {
2526
2558
  connectWallet: string;
2559
+ addExternalWalletProfile: string;
2527
2560
  bridge: string;
2528
2561
  estimateQuote: string;
2529
2562
  bridgeAsset: string;
@@ -2550,6 +2583,36 @@ declare const PASSPORT_TRANSLATIONS: {
2550
2583
  noHistory: string;
2551
2584
  unsupportedNetwork: string;
2552
2585
  };
2586
+ onboarding: {
2587
+ bridgeMenu: {
2588
+ title: string;
2589
+ description: string;
2590
+ };
2591
+ bridgeSenderWalletSelector: {
2592
+ title: string;
2593
+ description: string;
2594
+ };
2595
+ bridgeCryptoAssetSelector: {
2596
+ title: string;
2597
+ description: string;
2598
+ };
2599
+ bridgeChainPairSwapper: {
2600
+ title: string;
2601
+ description: string;
2602
+ };
2603
+ bridgeAmountRecipientInputs: {
2604
+ title: string;
2605
+ description: string;
2606
+ };
2607
+ bridgeEstimateQuoteButton: {
2608
+ title: string;
2609
+ description: string;
2610
+ };
2611
+ bridgeEstimatedQuoteMenu: {
2612
+ title: string;
2613
+ description: string;
2614
+ };
2615
+ };
2553
2616
  };
2554
2617
  receiveMenu: {
2555
2618
  title: string;
@@ -2598,6 +2661,24 @@ declare const PASSPORT_TRANSLATIONS: {
2598
2661
  selectCurrencies: string;
2599
2662
  providerMin: string;
2600
2663
  };
2664
+ onboarding: {
2665
+ buyMenu: {
2666
+ title: string;
2667
+ description: string;
2668
+ };
2669
+ providerSelector: {
2670
+ title: string;
2671
+ description: string;
2672
+ };
2673
+ binanceMenu: {
2674
+ title: string;
2675
+ description: string;
2676
+ };
2677
+ binanceEstimate: {
2678
+ title: string;
2679
+ description: string;
2680
+ };
2681
+ };
2601
2682
  };
2602
2683
  portfolioMenu: {
2603
2684
  title: string;
@@ -2781,6 +2862,12 @@ declare const PASSPORT_TRANSLATIONS: {
2781
2862
  errors: {
2782
2863
  oops: string;
2783
2864
  };
2865
+ onboarding: {
2866
+ tourButton: {
2867
+ title: string;
2868
+ description: string;
2869
+ };
2870
+ };
2784
2871
  };
2785
2872
  auth: {
2786
2873
  signin: string;
@@ -2833,13 +2920,22 @@ declare const PASSPORT_TRANSLATIONS: {
2833
2920
  send: string;
2834
2921
  confirm: string;
2835
2922
  };
2923
+ onboarding: {
2924
+ sendMenu: {
2925
+ title: string;
2926
+ description: string;
2927
+ };
2928
+ sendCryptoSummary: {
2929
+ title: string;
2930
+ description: string;
2931
+ };
2932
+ };
2836
2933
  };
2837
2934
  bridgeMenu: {
2838
2935
  title: string;
2839
2936
  labels: {
2840
- sender: string;
2841
2937
  bridgeAsset: string;
2842
- selectTokenAndRoute: string;
2938
+ selectSender: string;
2843
2939
  selectToken: string;
2844
2940
  estimations: string;
2845
2941
  estimatedFee: string;
@@ -2864,6 +2960,7 @@ declare const PASSPORT_TRANSLATIONS: {
2864
2960
  };
2865
2961
  actions: {
2866
2962
  connectWallet: string;
2963
+ addExternalWalletProfile: string;
2867
2964
  bridge: string;
2868
2965
  estimateQuote: string;
2869
2966
  bridgeAsset: string;
@@ -2890,6 +2987,36 @@ declare const PASSPORT_TRANSLATIONS: {
2890
2987
  noHistory: string;
2891
2988
  unsupportedNetwork: string;
2892
2989
  };
2990
+ onboarding: {
2991
+ bridgeMenu: {
2992
+ title: string;
2993
+ description: string;
2994
+ };
2995
+ bridgeSenderWalletSelector: {
2996
+ title: string;
2997
+ description: string;
2998
+ };
2999
+ bridgeCryptoAssetSelector: {
3000
+ title: string;
3001
+ description: string;
3002
+ };
3003
+ bridgeChainPairSwapper: {
3004
+ title: string;
3005
+ description: string;
3006
+ };
3007
+ bridgeAmountRecipientInputs: {
3008
+ title: string;
3009
+ description: string;
3010
+ };
3011
+ bridgeEstimateQuoteButton: {
3012
+ title: string;
3013
+ description: string;
3014
+ };
3015
+ bridgeEstimatedQuoteMenu: {
3016
+ title: string;
3017
+ description: string;
3018
+ };
3019
+ };
2893
3020
  };
2894
3021
  receiveMenu: {
2895
3022
  title: string;
@@ -2919,6 +3046,11 @@ declare const PASSPORT_TRANSLATIONS: {
2919
3046
  networkFee: string;
2920
3047
  serviceFee: string;
2921
3048
  paymentMethod: string;
3049
+ toAddress: {
3050
+ receiver: string;
3051
+ message: string;
3052
+ suggestion: string;
3053
+ };
2922
3054
  };
2923
3055
  transactionHistory: {
2924
3056
  details: string;
@@ -2933,10 +3065,29 @@ declare const PASSPORT_TRANSLATIONS: {
2933
3065
  selectCurrencies: string;
2934
3066
  providerMin: string;
2935
3067
  };
3068
+ onboarding: {
3069
+ buyMenu: {
3070
+ title: string;
3071
+ description: string;
3072
+ };
3073
+ providerSelector: {
3074
+ title: string;
3075
+ description: string;
3076
+ };
3077
+ binanceMenu: {
3078
+ title: string;
3079
+ description: string;
3080
+ };
3081
+ binanceEstimate: {
3082
+ title: string;
3083
+ description: string;
3084
+ };
3085
+ };
2936
3086
  };
2937
3087
  portfolioMenu: {
2938
3088
  title: string;
2939
3089
  noAssets: string;
3090
+ noBlockscout: string;
2940
3091
  };
2941
3092
  transactionsMenu: {
2942
3093
  title: string;
@@ -3115,6 +3266,12 @@ declare const PASSPORT_TRANSLATIONS: {
3115
3266
  errors: {
3116
3267
  oops: string;
3117
3268
  };
3269
+ onboarding: {
3270
+ tourButton: {
3271
+ title: string;
3272
+ description: string;
3273
+ };
3274
+ };
3118
3275
  };
3119
3276
  auth: {
3120
3277
  signin: string;
@@ -3167,13 +3324,22 @@ declare const PASSPORT_TRANSLATIONS: {
3167
3324
  send: string;
3168
3325
  confirm: string;
3169
3326
  };
3327
+ onboarding: {
3328
+ sendMenu: {
3329
+ title: string;
3330
+ description: string;
3331
+ };
3332
+ sendCryptoSummary: {
3333
+ title: string;
3334
+ description: string;
3335
+ };
3336
+ };
3170
3337
  };
3171
3338
  bridgeMenu: {
3172
3339
  title: string;
3173
3340
  labels: {
3174
- sender: string;
3175
3341
  bridgeAsset: string;
3176
- selectTokenAndRoute: string;
3342
+ selectSender: string;
3177
3343
  selectToken: string;
3178
3344
  estimations: string;
3179
3345
  estimatedFee: string;
@@ -3198,6 +3364,7 @@ declare const PASSPORT_TRANSLATIONS: {
3198
3364
  };
3199
3365
  actions: {
3200
3366
  connectWallet: string;
3367
+ addExternalWalletProfile: string;
3201
3368
  bridge: string;
3202
3369
  estimateQuote: string;
3203
3370
  bridgeAsset: string;
@@ -3224,6 +3391,36 @@ declare const PASSPORT_TRANSLATIONS: {
3224
3391
  noHistory: string;
3225
3392
  unsupportedNetwork: string;
3226
3393
  };
3394
+ onboarding: {
3395
+ bridgeMenu: {
3396
+ title: string;
3397
+ description: string;
3398
+ };
3399
+ bridgeSenderWalletSelector: {
3400
+ title: string;
3401
+ description: string;
3402
+ };
3403
+ bridgeCryptoAssetSelector: {
3404
+ title: string;
3405
+ description: string;
3406
+ };
3407
+ bridgeChainPairSwapper: {
3408
+ title: string;
3409
+ description: string;
3410
+ };
3411
+ bridgeAmountRecipientInputs: {
3412
+ title: string;
3413
+ description: string;
3414
+ };
3415
+ bridgeEstimateQuoteButton: {
3416
+ title: string;
3417
+ description: string;
3418
+ };
3419
+ bridgeEstimatedQuoteMenu: {
3420
+ title: string;
3421
+ description: string;
3422
+ };
3423
+ };
3227
3424
  };
3228
3425
  receiveMenu: {
3229
3426
  title: string;
@@ -3253,6 +3450,11 @@ declare const PASSPORT_TRANSLATIONS: {
3253
3450
  networkFee: string;
3254
3451
  serviceFee: string;
3255
3452
  paymentMethod: string;
3453
+ toAddress: {
3454
+ receiver: string;
3455
+ message: string;
3456
+ suggestion: string;
3457
+ };
3256
3458
  };
3257
3459
  transactionHistory: {
3258
3460
  details: string;
@@ -3267,10 +3469,29 @@ declare const PASSPORT_TRANSLATIONS: {
3267
3469
  selectCurrencies: string;
3268
3470
  providerMin: string;
3269
3471
  };
3472
+ onboarding: {
3473
+ buyMenu: {
3474
+ title: string;
3475
+ description: string;
3476
+ };
3477
+ providerSelector: {
3478
+ title: string;
3479
+ description: string;
3480
+ };
3481
+ binanceMenu: {
3482
+ title: string;
3483
+ description: string;
3484
+ };
3485
+ binanceEstimate: {
3486
+ title: string;
3487
+ description: string;
3488
+ };
3489
+ };
3270
3490
  };
3271
3491
  portfolioMenu: {
3272
3492
  title: string;
3273
3493
  noAssets: string;
3494
+ noBlockscout: string;
3274
3495
  };
3275
3496
  transactionsMenu: {
3276
3497
  title: string;
@@ -3431,4 +3652,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
3431
3652
 
3432
3653
  declare const USER_PROFILE_QUERY_KEY: string;
3433
3654
 
3434
- export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, BUY_MENU_BINANCE_TOUR, 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, 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 };
3655
+ export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, BRIDGE_MENU_TOUR, BUY_MENU_BINANCE_TOUR, 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, SEND_MENU_TOUR, 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 };