@lumiapassport/ui-kit 1.2.0 → 1.3.1
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/README.md +26 -4
- package/dist/iframe/main.js +1282 -2
- package/dist/iframe/main.js.map +1 -1
- package/dist/index.cjs +913 -703
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +974 -764
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -121,6 +121,14 @@ interface LumiaPassportConfig {
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
interface WalletReadyStatus$1 {
|
|
125
|
+
ready: boolean;
|
|
126
|
+
userId?: string;
|
|
127
|
+
address?: `0x${string}`;
|
|
128
|
+
hasKeyshare: boolean;
|
|
129
|
+
hasSession: boolean;
|
|
130
|
+
timestamp: number;
|
|
131
|
+
}
|
|
124
132
|
interface LumiaPassportCallbacks {
|
|
125
133
|
onLumiaPassportConnecting?: (payload: {
|
|
126
134
|
method: 'passkey' | 'email' | 'social' | 'wallet';
|
|
@@ -148,6 +156,7 @@ interface LumiaPassportCallbacks {
|
|
|
148
156
|
code?: string;
|
|
149
157
|
message: string;
|
|
150
158
|
}) => void;
|
|
159
|
+
onWalletReady?: (status: WalletReadyStatus$1) => void;
|
|
151
160
|
}
|
|
152
161
|
interface LumiaPassportContextType {
|
|
153
162
|
config: LumiaPassportConfig;
|
|
@@ -812,4 +821,20 @@ declare function useLumiaPassportLinkedProfiles(): {
|
|
|
812
821
|
readonly refresh: () => Promise<void>;
|
|
813
822
|
};
|
|
814
823
|
|
|
815
|
-
|
|
824
|
+
/**
|
|
825
|
+
* Iframe Manager for Parent SDK
|
|
826
|
+
*
|
|
827
|
+
* Manages secure communication with the isolated iframe wallet at auth.lumiapassport.com
|
|
828
|
+
* Implements postMessage protocol with HMAC authentication and replay protection
|
|
829
|
+
*/
|
|
830
|
+
|
|
831
|
+
interface WalletReadyStatus {
|
|
832
|
+
ready: boolean;
|
|
833
|
+
userId?: string;
|
|
834
|
+
address?: `0x${string}`;
|
|
835
|
+
hasKeyshare: boolean;
|
|
836
|
+
hasSession: boolean;
|
|
837
|
+
timestamp: number;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -121,6 +121,14 @@ interface LumiaPassportConfig {
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
interface WalletReadyStatus$1 {
|
|
125
|
+
ready: boolean;
|
|
126
|
+
userId?: string;
|
|
127
|
+
address?: `0x${string}`;
|
|
128
|
+
hasKeyshare: boolean;
|
|
129
|
+
hasSession: boolean;
|
|
130
|
+
timestamp: number;
|
|
131
|
+
}
|
|
124
132
|
interface LumiaPassportCallbacks {
|
|
125
133
|
onLumiaPassportConnecting?: (payload: {
|
|
126
134
|
method: 'passkey' | 'email' | 'social' | 'wallet';
|
|
@@ -148,6 +156,7 @@ interface LumiaPassportCallbacks {
|
|
|
148
156
|
code?: string;
|
|
149
157
|
message: string;
|
|
150
158
|
}) => void;
|
|
159
|
+
onWalletReady?: (status: WalletReadyStatus$1) => void;
|
|
151
160
|
}
|
|
152
161
|
interface LumiaPassportContextType {
|
|
153
162
|
config: LumiaPassportConfig;
|
|
@@ -812,4 +821,20 @@ declare function useLumiaPassportLinkedProfiles(): {
|
|
|
812
821
|
readonly refresh: () => Promise<void>;
|
|
813
822
|
};
|
|
814
823
|
|
|
815
|
-
|
|
824
|
+
/**
|
|
825
|
+
* Iframe Manager for Parent SDK
|
|
826
|
+
*
|
|
827
|
+
* Manages secure communication with the isolated iframe wallet at auth.lumiapassport.com
|
|
828
|
+
* Implements postMessage protocol with HMAC authentication and replay protection
|
|
829
|
+
*/
|
|
830
|
+
|
|
831
|
+
interface WalletReadyStatus {
|
|
832
|
+
ready: boolean;
|
|
833
|
+
userId?: string;
|
|
834
|
+
address?: `0x${string}`;
|
|
835
|
+
hasKeyshare: boolean;
|
|
836
|
+
hasSession: boolean;
|
|
837
|
+
timestamp: number;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
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 };
|