@lumiapassport/ui-kit 1.3.4 → 1.4.3

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
@@ -73,6 +73,22 @@ interface LumiaPassportConfig {
73
73
  base?: string;
74
74
  heading?: string;
75
75
  };
76
+ colors?: {
77
+ light?: {
78
+ background?: string;
79
+ text?: string;
80
+ textSecondary?: string;
81
+ textMuted?: string;
82
+ border?: string;
83
+ };
84
+ dark?: {
85
+ background?: string;
86
+ text?: string;
87
+ textSecondary?: string;
88
+ textMuted?: string;
89
+ border?: string;
90
+ };
91
+ };
76
92
  branding: {
77
93
  logo?: React__default.ComponentType<{
78
94
  size?: number;
@@ -414,15 +430,27 @@ declare function useUserOpStatus(options?: UseUserOpStatusOptions): UseUserOpSta
414
430
  declare const LUMIA_EXPLORER_URL: string;
415
431
  declare const lumiaBeam: Chain;
416
432
 
433
+ /**
434
+ * Provider information in user profile
435
+ * Matches the structure returned by backend /api/auth/profile
436
+ */
437
+ interface ProviderDetail {
438
+ id: string;
439
+ provider: string;
440
+ verified: boolean;
441
+ linkedAt: string;
442
+ lastUsedAt: string;
443
+ externalId: string;
444
+ meta?: Record<string, any>;
445
+ }
446
+ /**
447
+ * User profile information
448
+ */
417
449
  interface UserProfile {
418
450
  userId: string;
419
451
  displayName?: string;
420
452
  avatar?: string;
421
- providers: Array<{
422
- type: string;
423
- identifier: string;
424
- connectedAt: string;
425
- }>;
453
+ providers: ProviderDetail[];
426
454
  createdAt: string;
427
455
  updatedAt: string;
428
456
  hasKeyshare: boolean;
@@ -431,7 +459,13 @@ interface UpdateProfileRequest {
431
459
  displayName?: string;
432
460
  }
433
461
  /**
434
- * Get user profile
462
+ * Get user profile with detailed provider information
463
+ *
464
+ * Backend /api/auth/profile now returns complete provider details including:
465
+ * - Provider type and identifier
466
+ * - Verification status
467
+ * - Linked and last used timestamps
468
+ * - Provider-specific metadata
435
469
  */
436
470
  declare function getUserProfile(): Promise<UserProfile>;
437
471
  /**
@@ -841,4 +875,4 @@ interface WalletReadyStatus {
841
875
  timestamp: number;
842
876
  }
843
877
 
844
- export { type AccountSession$1 as AccountSession, Address, type AddressProps, type Asset, ConnectWalletButton, type ConnectWalletButtonProps, Hash, type HashProps, KeyshareBackup, LUMIA_EXPLORER_URL, LumiaLogo, type LumiaPassportCallbacks, type LumiaPassportConfig, LumiaPassportProvider, type LumiaPassportProviderProps, LumiaRainbowKitProvider, type LumiaRainbowKitProviderProps, LumiaSessionProvider, type LumiaSessionProviderProps, LumiaWagmiProvider, type SendTransactionParams, type SendTransactionResult, type Theme, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type UpdateProfileRequest, type UseSendTransactionReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UserOpMempool, type UserOpReceipt, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserProfile, type WalletReadyStatus, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
878
+ export { type AccountSession$1 as AccountSession, Address, type AddressProps, type Asset, ConnectWalletButton, type ConnectWalletButtonProps, Hash, type HashProps, KeyshareBackup, LUMIA_EXPLORER_URL, LumiaLogo, type LumiaPassportCallbacks, type LumiaPassportConfig, LumiaPassportProvider, type LumiaPassportProviderProps, LumiaRainbowKitProvider, type LumiaRainbowKitProviderProps, LumiaSessionProvider, type LumiaSessionProviderProps, LumiaWagmiProvider, type ProviderDetail, type SendTransactionParams, type SendTransactionResult, type Theme, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type UpdateProfileRequest, type UseSendTransactionReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UserOpMempool, type UserOpReceipt, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserProfile, type WalletReadyStatus, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
package/dist/index.d.ts CHANGED
@@ -73,6 +73,22 @@ interface LumiaPassportConfig {
73
73
  base?: string;
74
74
  heading?: string;
75
75
  };
76
+ colors?: {
77
+ light?: {
78
+ background?: string;
79
+ text?: string;
80
+ textSecondary?: string;
81
+ textMuted?: string;
82
+ border?: string;
83
+ };
84
+ dark?: {
85
+ background?: string;
86
+ text?: string;
87
+ textSecondary?: string;
88
+ textMuted?: string;
89
+ border?: string;
90
+ };
91
+ };
76
92
  branding: {
77
93
  logo?: React__default.ComponentType<{
78
94
  size?: number;
@@ -414,15 +430,27 @@ declare function useUserOpStatus(options?: UseUserOpStatusOptions): UseUserOpSta
414
430
  declare const LUMIA_EXPLORER_URL: string;
415
431
  declare const lumiaBeam: Chain;
416
432
 
433
+ /**
434
+ * Provider information in user profile
435
+ * Matches the structure returned by backend /api/auth/profile
436
+ */
437
+ interface ProviderDetail {
438
+ id: string;
439
+ provider: string;
440
+ verified: boolean;
441
+ linkedAt: string;
442
+ lastUsedAt: string;
443
+ externalId: string;
444
+ meta?: Record<string, any>;
445
+ }
446
+ /**
447
+ * User profile information
448
+ */
417
449
  interface UserProfile {
418
450
  userId: string;
419
451
  displayName?: string;
420
452
  avatar?: string;
421
- providers: Array<{
422
- type: string;
423
- identifier: string;
424
- connectedAt: string;
425
- }>;
453
+ providers: ProviderDetail[];
426
454
  createdAt: string;
427
455
  updatedAt: string;
428
456
  hasKeyshare: boolean;
@@ -431,7 +459,13 @@ interface UpdateProfileRequest {
431
459
  displayName?: string;
432
460
  }
433
461
  /**
434
- * Get user profile
462
+ * Get user profile with detailed provider information
463
+ *
464
+ * Backend /api/auth/profile now returns complete provider details including:
465
+ * - Provider type and identifier
466
+ * - Verification status
467
+ * - Linked and last used timestamps
468
+ * - Provider-specific metadata
435
469
  */
436
470
  declare function getUserProfile(): Promise<UserProfile>;
437
471
  /**
@@ -841,4 +875,4 @@ interface WalletReadyStatus {
841
875
  timestamp: number;
842
876
  }
843
877
 
844
- export { type AccountSession$1 as AccountSession, Address, type AddressProps, type Asset, ConnectWalletButton, type ConnectWalletButtonProps, Hash, type HashProps, KeyshareBackup, LUMIA_EXPLORER_URL, LumiaLogo, type LumiaPassportCallbacks, type LumiaPassportConfig, LumiaPassportProvider, type LumiaPassportProviderProps, LumiaRainbowKitProvider, type LumiaRainbowKitProviderProps, LumiaSessionProvider, type LumiaSessionProviderProps, LumiaWagmiProvider, type SendTransactionParams, type SendTransactionResult, type Theme, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type UpdateProfileRequest, type UseSendTransactionReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UserOpMempool, type UserOpReceipt, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserProfile, type WalletReadyStatus, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
878
+ export { type AccountSession$1 as AccountSession, Address, type AddressProps, type Asset, ConnectWalletButton, type ConnectWalletButtonProps, Hash, type HashProps, KeyshareBackup, LUMIA_EXPLORER_URL, LumiaLogo, type LumiaPassportCallbacks, type LumiaPassportConfig, LumiaPassportProvider, type LumiaPassportProviderProps, LumiaRainbowKitProvider, type LumiaRainbowKitProviderProps, LumiaSessionProvider, type LumiaSessionProviderProps, LumiaWagmiProvider, type ProviderDetail, type SendTransactionParams, type SendTransactionResult, type Theme, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type UpdateProfileRequest, type UseSendTransactionReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UserOpMempool, type UserOpReceipt, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserProfile, type WalletReadyStatus, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };