@lumiapassport/ui-kit 1.1.0 → 1.3.0
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 +456 -0
- package/dist/iframe/main.js +1251 -2
- package/dist/iframe/main.js.map +1 -1
- package/dist/index.cjs +1154 -750
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +1213 -810
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
+
import { UserOperationV07, UserOperationV06 } from '@lumiapassport/core/bundler';
|
|
3
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
import * as viem from 'viem';
|
|
5
6
|
import { Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
|
|
@@ -173,6 +174,22 @@ interface AccountSession$1 {
|
|
|
173
174
|
address: `0x${string}`;
|
|
174
175
|
}
|
|
175
176
|
declare function sendUserOperation(session: AccountSession$1, callTarget: `0x${string}`, amountWei: string, innerData?: `0x${string}`, feeType?: 'economy' | 'standard' | 'fast', entryPointVersion?: 'v0.6' | 'v0.7'): Promise<`0x${string}`>;
|
|
177
|
+
/**
|
|
178
|
+
* Prepare and sign a UserOperation without sending it to the bundler.
|
|
179
|
+
* Returns the signed UserOp and its hash for backend verification and submission.
|
|
180
|
+
*
|
|
181
|
+
* @param session - Account session with signing credentials
|
|
182
|
+
* @param callTarget - Target address for the transaction
|
|
183
|
+
* @param amountWei - Amount in wei to send
|
|
184
|
+
* @param innerData - Call data for the transaction
|
|
185
|
+
* @param feeType - Fee tier: 'economy', 'standard', or 'fast'
|
|
186
|
+
* @param entryPointVersion - EntryPoint version: 'v0.6' or 'v0.7'
|
|
187
|
+
* @returns Object with signed UserOperation and its hash
|
|
188
|
+
*/
|
|
189
|
+
declare function prepareUserOperation(session: AccountSession$1, callTarget: `0x${string}`, amountWei: string, innerData?: `0x${string}`, feeType?: 'economy' | 'standard' | 'fast', entryPointVersion?: 'v0.6' | 'v0.7'): Promise<{
|
|
190
|
+
userOp: UserOperationV07 | UserOperationV06;
|
|
191
|
+
userOpHash: `0x${string}`;
|
|
192
|
+
}>;
|
|
176
193
|
|
|
177
194
|
type AccountSession = AccountSession$1;
|
|
178
195
|
interface SessionState {
|
|
@@ -795,4 +812,4 @@ declare function useLumiaPassportLinkedProfiles(): {
|
|
|
795
812
|
readonly refresh: () => Promise<void>;
|
|
796
813
|
};
|
|
797
814
|
|
|
798
|
-
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, getUserProfile, lumiaBeam, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
|
|
815
|
+
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, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
+
import { UserOperationV07, UserOperationV06 } from '@lumiapassport/core/bundler';
|
|
3
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
import * as viem from 'viem';
|
|
5
6
|
import { Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
|
|
@@ -173,6 +174,22 @@ interface AccountSession$1 {
|
|
|
173
174
|
address: `0x${string}`;
|
|
174
175
|
}
|
|
175
176
|
declare function sendUserOperation(session: AccountSession$1, callTarget: `0x${string}`, amountWei: string, innerData?: `0x${string}`, feeType?: 'economy' | 'standard' | 'fast', entryPointVersion?: 'v0.6' | 'v0.7'): Promise<`0x${string}`>;
|
|
177
|
+
/**
|
|
178
|
+
* Prepare and sign a UserOperation without sending it to the bundler.
|
|
179
|
+
* Returns the signed UserOp and its hash for backend verification and submission.
|
|
180
|
+
*
|
|
181
|
+
* @param session - Account session with signing credentials
|
|
182
|
+
* @param callTarget - Target address for the transaction
|
|
183
|
+
* @param amountWei - Amount in wei to send
|
|
184
|
+
* @param innerData - Call data for the transaction
|
|
185
|
+
* @param feeType - Fee tier: 'economy', 'standard', or 'fast'
|
|
186
|
+
* @param entryPointVersion - EntryPoint version: 'v0.6' or 'v0.7'
|
|
187
|
+
* @returns Object with signed UserOperation and its hash
|
|
188
|
+
*/
|
|
189
|
+
declare function prepareUserOperation(session: AccountSession$1, callTarget: `0x${string}`, amountWei: string, innerData?: `0x${string}`, feeType?: 'economy' | 'standard' | 'fast', entryPointVersion?: 'v0.6' | 'v0.7'): Promise<{
|
|
190
|
+
userOp: UserOperationV07 | UserOperationV06;
|
|
191
|
+
userOpHash: `0x${string}`;
|
|
192
|
+
}>;
|
|
176
193
|
|
|
177
194
|
type AccountSession = AccountSession$1;
|
|
178
195
|
interface SessionState {
|
|
@@ -795,4 +812,4 @@ declare function useLumiaPassportLinkedProfiles(): {
|
|
|
795
812
|
readonly refresh: () => Promise<void>;
|
|
796
813
|
};
|
|
797
814
|
|
|
798
|
-
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, getUserProfile, lumiaBeam, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
|
|
815
|
+
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, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, updateUserProfile, useAssets, useLumiaPassportConfig, useLumiaPassportLinkedProfiles, useLumiaSession, useSendTransaction, useSmartAccountTransactions, useTheme, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
|