@embarkai/ui-kit 0.4.73 → 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.cts 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
  }
@@ -2273,7 +2281,7 @@ declare class Onboarder {
2273
2281
  private resizeObserver;
2274
2282
  /** TOUR */
2275
2283
  startTour(tour: TourStep[]): void;
2276
- private endTour;
2284
+ endTour(): void;
2277
2285
  next(): void;
2278
2286
  /**
2279
2287
  * Registers an element with the onboarder.
@@ -2281,6 +2289,7 @@ declare class Onboarder {
2281
2289
  * @param elementRef - The ref of the element to register.
2282
2290
  */
2283
2291
  registerElement(onboardingElementId: string, elementRef?: HTMLElement | null): void;
2292
+ getCurrentStep(): TourStep | null;
2284
2293
  }
2285
2294
  declare const onboarder: Onboarder;
2286
2295
 
@@ -2381,6 +2390,9 @@ declare function getInProgressOnrampTransactionsList(params: GetTransactionsList
2381
2390
 
2382
2391
  declare const BUY_MENU_BINANCE_TOUR: TourStep[];
2383
2392
 
2393
+ declare const SEND_MENU_TOUR: TourStep[];
2394
+ declare const BRIDGE_MENU_TOUR: TourStep[];
2395
+
2384
2396
  declare const NETWORKS_ICONS: Record<number, FC<SVGProps<SVGSVGElement>>>;
2385
2397
 
2386
2398
  declare const TOKENS_ICONS: Record<string, FC<SVGProps<SVGSVGElement>>>;
@@ -2446,6 +2458,12 @@ declare const PASSPORT_TRANSLATIONS: {
2446
2458
  errors: {
2447
2459
  oops: string;
2448
2460
  };
2461
+ onboarding: {
2462
+ tourButton: {
2463
+ title: string;
2464
+ description: string;
2465
+ };
2466
+ };
2449
2467
  };
2450
2468
  auth: {
2451
2469
  signin: string;
@@ -2498,13 +2516,22 @@ declare const PASSPORT_TRANSLATIONS: {
2498
2516
  send: string;
2499
2517
  confirm: string;
2500
2518
  };
2519
+ onboarding: {
2520
+ sendMenu: {
2521
+ title: string;
2522
+ description: string;
2523
+ };
2524
+ sendCryptoSummary: {
2525
+ title: string;
2526
+ description: string;
2527
+ };
2528
+ };
2501
2529
  };
2502
2530
  bridgeMenu: {
2503
2531
  title: string;
2504
2532
  labels: {
2505
- sender: string;
2506
2533
  bridgeAsset: string;
2507
- selectTokenAndRoute: string;
2534
+ selectSender: string;
2508
2535
  selectToken: string;
2509
2536
  estimations: string;
2510
2537
  estimatedFee: string;
@@ -2529,6 +2556,7 @@ declare const PASSPORT_TRANSLATIONS: {
2529
2556
  };
2530
2557
  actions: {
2531
2558
  connectWallet: string;
2559
+ addExternalWalletProfile: string;
2532
2560
  bridge: string;
2533
2561
  estimateQuote: string;
2534
2562
  bridgeAsset: string;
@@ -2555,6 +2583,36 @@ declare const PASSPORT_TRANSLATIONS: {
2555
2583
  noHistory: string;
2556
2584
  unsupportedNetwork: string;
2557
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
+ };
2558
2616
  };
2559
2617
  receiveMenu: {
2560
2618
  title: string;
@@ -2603,6 +2661,24 @@ declare const PASSPORT_TRANSLATIONS: {
2603
2661
  selectCurrencies: string;
2604
2662
  providerMin: string;
2605
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
+ };
2606
2682
  };
2607
2683
  portfolioMenu: {
2608
2684
  title: string;
@@ -2786,6 +2862,12 @@ declare const PASSPORT_TRANSLATIONS: {
2786
2862
  errors: {
2787
2863
  oops: string;
2788
2864
  };
2865
+ onboarding: {
2866
+ tourButton: {
2867
+ title: string;
2868
+ description: string;
2869
+ };
2870
+ };
2789
2871
  };
2790
2872
  auth: {
2791
2873
  signin: string;
@@ -2838,13 +2920,22 @@ declare const PASSPORT_TRANSLATIONS: {
2838
2920
  send: string;
2839
2921
  confirm: string;
2840
2922
  };
2923
+ onboarding: {
2924
+ sendMenu: {
2925
+ title: string;
2926
+ description: string;
2927
+ };
2928
+ sendCryptoSummary: {
2929
+ title: string;
2930
+ description: string;
2931
+ };
2932
+ };
2841
2933
  };
2842
2934
  bridgeMenu: {
2843
2935
  title: string;
2844
2936
  labels: {
2845
- sender: string;
2846
2937
  bridgeAsset: string;
2847
- selectTokenAndRoute: string;
2938
+ selectSender: string;
2848
2939
  selectToken: string;
2849
2940
  estimations: string;
2850
2941
  estimatedFee: string;
@@ -2869,6 +2960,7 @@ declare const PASSPORT_TRANSLATIONS: {
2869
2960
  };
2870
2961
  actions: {
2871
2962
  connectWallet: string;
2963
+ addExternalWalletProfile: string;
2872
2964
  bridge: string;
2873
2965
  estimateQuote: string;
2874
2966
  bridgeAsset: string;
@@ -2895,6 +2987,36 @@ declare const PASSPORT_TRANSLATIONS: {
2895
2987
  noHistory: string;
2896
2988
  unsupportedNetwork: string;
2897
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
+ };
2898
3020
  };
2899
3021
  receiveMenu: {
2900
3022
  title: string;
@@ -2924,6 +3046,11 @@ declare const PASSPORT_TRANSLATIONS: {
2924
3046
  networkFee: string;
2925
3047
  serviceFee: string;
2926
3048
  paymentMethod: string;
3049
+ toAddress: {
3050
+ receiver: string;
3051
+ message: string;
3052
+ suggestion: string;
3053
+ };
2927
3054
  };
2928
3055
  transactionHistory: {
2929
3056
  details: string;
@@ -2938,10 +3065,29 @@ declare const PASSPORT_TRANSLATIONS: {
2938
3065
  selectCurrencies: string;
2939
3066
  providerMin: string;
2940
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
+ };
2941
3086
  };
2942
3087
  portfolioMenu: {
2943
3088
  title: string;
2944
3089
  noAssets: string;
3090
+ noBlockscout: string;
2945
3091
  };
2946
3092
  transactionsMenu: {
2947
3093
  title: string;
@@ -3120,6 +3266,12 @@ declare const PASSPORT_TRANSLATIONS: {
3120
3266
  errors: {
3121
3267
  oops: string;
3122
3268
  };
3269
+ onboarding: {
3270
+ tourButton: {
3271
+ title: string;
3272
+ description: string;
3273
+ };
3274
+ };
3123
3275
  };
3124
3276
  auth: {
3125
3277
  signin: string;
@@ -3172,13 +3324,22 @@ declare const PASSPORT_TRANSLATIONS: {
3172
3324
  send: string;
3173
3325
  confirm: string;
3174
3326
  };
3327
+ onboarding: {
3328
+ sendMenu: {
3329
+ title: string;
3330
+ description: string;
3331
+ };
3332
+ sendCryptoSummary: {
3333
+ title: string;
3334
+ description: string;
3335
+ };
3336
+ };
3175
3337
  };
3176
3338
  bridgeMenu: {
3177
3339
  title: string;
3178
3340
  labels: {
3179
- sender: string;
3180
3341
  bridgeAsset: string;
3181
- selectTokenAndRoute: string;
3342
+ selectSender: string;
3182
3343
  selectToken: string;
3183
3344
  estimations: string;
3184
3345
  estimatedFee: string;
@@ -3203,6 +3364,7 @@ declare const PASSPORT_TRANSLATIONS: {
3203
3364
  };
3204
3365
  actions: {
3205
3366
  connectWallet: string;
3367
+ addExternalWalletProfile: string;
3206
3368
  bridge: string;
3207
3369
  estimateQuote: string;
3208
3370
  bridgeAsset: string;
@@ -3229,6 +3391,36 @@ declare const PASSPORT_TRANSLATIONS: {
3229
3391
  noHistory: string;
3230
3392
  unsupportedNetwork: string;
3231
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
+ };
3232
3424
  };
3233
3425
  receiveMenu: {
3234
3426
  title: string;
@@ -3258,6 +3450,11 @@ declare const PASSPORT_TRANSLATIONS: {
3258
3450
  networkFee: string;
3259
3451
  serviceFee: string;
3260
3452
  paymentMethod: string;
3453
+ toAddress: {
3454
+ receiver: string;
3455
+ message: string;
3456
+ suggestion: string;
3457
+ };
3261
3458
  };
3262
3459
  transactionHistory: {
3263
3460
  details: string;
@@ -3272,10 +3469,29 @@ declare const PASSPORT_TRANSLATIONS: {
3272
3469
  selectCurrencies: string;
3273
3470
  providerMin: string;
3274
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
+ };
3275
3490
  };
3276
3491
  portfolioMenu: {
3277
3492
  title: string;
3278
3493
  noAssets: string;
3494
+ noBlockscout: string;
3279
3495
  };
3280
3496
  transactionsMenu: {
3281
3497
  title: string;
@@ -3436,4 +3652,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
3436
3652
 
3437
3653
  declare const USER_PROFILE_QUERY_KEY: string;
3438
3654
 
3439
- 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 };