@lumiapassport/ui-kit 1.12.6 → 1.13.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/dist/iframe/_headers +2 -2
- package/dist/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +1180 -1125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -19
- package/dist/index.d.ts +18 -19
- package/dist/index.js +1195 -1133
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import React__default, { FC, HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes, PropsWithChildren } from 'react';
|
|
4
4
|
import * as zustand from 'zustand';
|
|
5
5
|
import { UserOperationV07, UserOperationV06 } from '@lumiapassport/core/bundler';
|
|
6
6
|
import * as viem from 'viem';
|
|
@@ -40,7 +40,7 @@ interface SocialProvider {
|
|
|
40
40
|
meta?: Record<string, any>;
|
|
41
41
|
}
|
|
42
42
|
interface LumiaPassportConfig {
|
|
43
|
-
projectId
|
|
43
|
+
projectId: string;
|
|
44
44
|
passkey: {
|
|
45
45
|
enabled: boolean;
|
|
46
46
|
showCreateButton: boolean;
|
|
@@ -190,18 +190,17 @@ interface LumiaPassportCallbacks {
|
|
|
190
190
|
onWalletReady?: (status: WalletReadyStatus$1) => void;
|
|
191
191
|
}
|
|
192
192
|
interface LumiaPassportContextType {
|
|
193
|
-
config: LumiaPassportConfig
|
|
193
|
+
config: MutableRefObject<LumiaPassportConfig>;
|
|
194
194
|
updateConfig: (updates: Partial<LumiaPassportConfig>) => void;
|
|
195
195
|
callbacks?: LumiaPassportCallbacks;
|
|
196
|
-
providersVersion: number;
|
|
197
|
-
notifyProvidersUpdate: () => void;
|
|
198
196
|
}
|
|
199
197
|
interface LumiaPassportProviderProps {
|
|
200
|
-
children:
|
|
198
|
+
children: ReactNode;
|
|
201
199
|
projectId?: string;
|
|
202
200
|
initialConfig?: Partial<LumiaPassportConfig>;
|
|
203
201
|
callbacks?: LumiaPassportCallbacks;
|
|
204
202
|
}
|
|
203
|
+
/** NEVER EVER declare here any state (useState or whatever). This Provider should NEVER trigger self of child-app re-renders */
|
|
205
204
|
declare function LumiaPassportProvider(props: LumiaPassportProviderProps): react_jsx_runtime.JSX.Element;
|
|
206
205
|
declare const useLumiaPassportConfig: () => LumiaPassportContextType;
|
|
207
206
|
|
|
@@ -721,10 +720,10 @@ declare function useLumiaPassportColorMode(): {
|
|
|
721
720
|
};
|
|
722
721
|
|
|
723
722
|
declare const buttonVariants: (props?: {
|
|
724
|
-
variant?: "
|
|
725
|
-
size?: "small" | "large" | "
|
|
723
|
+
variant?: "default" | "outline" | "ghost";
|
|
724
|
+
size?: "small" | "large" | "medium" | "icon";
|
|
726
725
|
} & class_variance_authority_types.ClassProp) => string;
|
|
727
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
726
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
728
727
|
asChild?: boolean;
|
|
729
728
|
}
|
|
730
729
|
|
|
@@ -745,7 +744,7 @@ interface LumiaLogoProps {
|
|
|
745
744
|
size?: number;
|
|
746
745
|
className?: string;
|
|
747
746
|
}
|
|
748
|
-
declare const LumiaLogo: React.ForwardRefExoticComponent<LumiaLogoProps & React.RefAttributes<SVGSVGElement>>;
|
|
747
|
+
declare const LumiaLogo: React$1.ForwardRefExoticComponent<LumiaLogoProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
749
748
|
|
|
750
749
|
type ChainLike$2 = {
|
|
751
750
|
id: number;
|
|
@@ -768,7 +767,7 @@ type UserOpStatusProps = {
|
|
|
768
767
|
isPolling?: boolean;
|
|
769
768
|
};
|
|
770
769
|
};
|
|
771
|
-
declare const UserOpStatus: React.FC<UserOpStatusProps>;
|
|
770
|
+
declare const UserOpStatus: React$1.FC<UserOpStatusProps>;
|
|
772
771
|
|
|
773
772
|
type ChainLike$1 = {
|
|
774
773
|
id: number;
|
|
@@ -788,7 +787,7 @@ type HashProps = {
|
|
|
788
787
|
kind?: 'tx' | 'address' | 'block';
|
|
789
788
|
label?: string;
|
|
790
789
|
};
|
|
791
|
-
declare const Hash: React.FC<HashProps>;
|
|
790
|
+
declare const Hash: React$1.FC<HashProps>;
|
|
792
791
|
|
|
793
792
|
type ChainLike = {
|
|
794
793
|
id: number;
|
|
@@ -807,7 +806,7 @@ type AddressProps = {
|
|
|
807
806
|
showExplorer?: boolean;
|
|
808
807
|
label?: string;
|
|
809
808
|
};
|
|
810
|
-
declare const Address: React.FC<AddressProps>;
|
|
809
|
+
declare const Address: React$1.FC<AddressProps>;
|
|
811
810
|
|
|
812
811
|
interface TransactionsListProps {
|
|
813
812
|
address: string;
|
|
@@ -1330,11 +1329,11 @@ interface LinkedProfileDisplay extends AuthProvider {
|
|
|
1330
1329
|
color?: string;
|
|
1331
1330
|
}
|
|
1332
1331
|
declare function useLumiaPassportLinkedProfiles(): {
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1332
|
+
profiles: LinkedProfileDisplay[];
|
|
1333
|
+
avatar: string;
|
|
1334
|
+
isLoading: boolean;
|
|
1335
|
+
error: Error;
|
|
1336
|
+
refresh: () => Promise<void>;
|
|
1338
1337
|
};
|
|
1339
1338
|
|
|
1340
1339
|
export { type AccountSession, Address, type AddressProps, type Asset, ConnectWalletButton, type ConnectWalletButtonProps, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LUMIA_EXPLORER_URL, LumiaLogo, type LumiaPassportCallbacks, type LumiaPassportConfig, LumiaPassportProvider, type LumiaPassportProviderProps, LumiaPassportSessionProvider, LumiaRainbowKitProvider, type LumiaRainbowKitProviderProps, LumiaWagmiProvider, PageKey, type PageOpenParams, type ProviderDetail, type SendTransactionParams, type SendTransactionResult, type SignTypedDataParams, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type TypedDataDomain, type TypedDataField, type UpdateProfileRequest, type UseLogoutReturn, 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, deployAccount, destroyIframeManager, getIframeManager, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, signTypedData, updateUserProfile, useAssets, useLogout, useLumiaPassportAccountSession, useLumiaPassportAddress, useLumiaPassportBalance, useLumiaPassportColorMode, useLumiaPassportConfig, useLumiaPassportError, useLumiaPassportHasServerVault, useLumiaPassportIFrameReady, useLumiaPassportLinkedProfiles, useLumiaPassportLoadingStatus, useLumiaPassportOpen, useLumiaPassportRecoveryUserId, useLumiaPassportSession, useSendTransaction, useSmartAccountTransactions, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import React__default, { FC, HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes, PropsWithChildren } from 'react';
|
|
4
4
|
import * as zustand from 'zustand';
|
|
5
5
|
import { UserOperationV07, UserOperationV06 } from '@lumiapassport/core/bundler';
|
|
6
6
|
import * as viem from 'viem';
|
|
@@ -40,7 +40,7 @@ interface SocialProvider {
|
|
|
40
40
|
meta?: Record<string, any>;
|
|
41
41
|
}
|
|
42
42
|
interface LumiaPassportConfig {
|
|
43
|
-
projectId
|
|
43
|
+
projectId: string;
|
|
44
44
|
passkey: {
|
|
45
45
|
enabled: boolean;
|
|
46
46
|
showCreateButton: boolean;
|
|
@@ -190,18 +190,17 @@ interface LumiaPassportCallbacks {
|
|
|
190
190
|
onWalletReady?: (status: WalletReadyStatus$1) => void;
|
|
191
191
|
}
|
|
192
192
|
interface LumiaPassportContextType {
|
|
193
|
-
config: LumiaPassportConfig
|
|
193
|
+
config: MutableRefObject<LumiaPassportConfig>;
|
|
194
194
|
updateConfig: (updates: Partial<LumiaPassportConfig>) => void;
|
|
195
195
|
callbacks?: LumiaPassportCallbacks;
|
|
196
|
-
providersVersion: number;
|
|
197
|
-
notifyProvidersUpdate: () => void;
|
|
198
196
|
}
|
|
199
197
|
interface LumiaPassportProviderProps {
|
|
200
|
-
children:
|
|
198
|
+
children: ReactNode;
|
|
201
199
|
projectId?: string;
|
|
202
200
|
initialConfig?: Partial<LumiaPassportConfig>;
|
|
203
201
|
callbacks?: LumiaPassportCallbacks;
|
|
204
202
|
}
|
|
203
|
+
/** NEVER EVER declare here any state (useState or whatever). This Provider should NEVER trigger self of child-app re-renders */
|
|
205
204
|
declare function LumiaPassportProvider(props: LumiaPassportProviderProps): react_jsx_runtime.JSX.Element;
|
|
206
205
|
declare const useLumiaPassportConfig: () => LumiaPassportContextType;
|
|
207
206
|
|
|
@@ -721,10 +720,10 @@ declare function useLumiaPassportColorMode(): {
|
|
|
721
720
|
};
|
|
722
721
|
|
|
723
722
|
declare const buttonVariants: (props?: {
|
|
724
|
-
variant?: "
|
|
725
|
-
size?: "small" | "large" | "
|
|
723
|
+
variant?: "default" | "outline" | "ghost";
|
|
724
|
+
size?: "small" | "large" | "medium" | "icon";
|
|
726
725
|
} & class_variance_authority_types.ClassProp) => string;
|
|
727
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
726
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
728
727
|
asChild?: boolean;
|
|
729
728
|
}
|
|
730
729
|
|
|
@@ -745,7 +744,7 @@ interface LumiaLogoProps {
|
|
|
745
744
|
size?: number;
|
|
746
745
|
className?: string;
|
|
747
746
|
}
|
|
748
|
-
declare const LumiaLogo: React.ForwardRefExoticComponent<LumiaLogoProps & React.RefAttributes<SVGSVGElement>>;
|
|
747
|
+
declare const LumiaLogo: React$1.ForwardRefExoticComponent<LumiaLogoProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
749
748
|
|
|
750
749
|
type ChainLike$2 = {
|
|
751
750
|
id: number;
|
|
@@ -768,7 +767,7 @@ type UserOpStatusProps = {
|
|
|
768
767
|
isPolling?: boolean;
|
|
769
768
|
};
|
|
770
769
|
};
|
|
771
|
-
declare const UserOpStatus: React.FC<UserOpStatusProps>;
|
|
770
|
+
declare const UserOpStatus: React$1.FC<UserOpStatusProps>;
|
|
772
771
|
|
|
773
772
|
type ChainLike$1 = {
|
|
774
773
|
id: number;
|
|
@@ -788,7 +787,7 @@ type HashProps = {
|
|
|
788
787
|
kind?: 'tx' | 'address' | 'block';
|
|
789
788
|
label?: string;
|
|
790
789
|
};
|
|
791
|
-
declare const Hash: React.FC<HashProps>;
|
|
790
|
+
declare const Hash: React$1.FC<HashProps>;
|
|
792
791
|
|
|
793
792
|
type ChainLike = {
|
|
794
793
|
id: number;
|
|
@@ -807,7 +806,7 @@ type AddressProps = {
|
|
|
807
806
|
showExplorer?: boolean;
|
|
808
807
|
label?: string;
|
|
809
808
|
};
|
|
810
|
-
declare const Address: React.FC<AddressProps>;
|
|
809
|
+
declare const Address: React$1.FC<AddressProps>;
|
|
811
810
|
|
|
812
811
|
interface TransactionsListProps {
|
|
813
812
|
address: string;
|
|
@@ -1330,11 +1329,11 @@ interface LinkedProfileDisplay extends AuthProvider {
|
|
|
1330
1329
|
color?: string;
|
|
1331
1330
|
}
|
|
1332
1331
|
declare function useLumiaPassportLinkedProfiles(): {
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1332
|
+
profiles: LinkedProfileDisplay[];
|
|
1333
|
+
avatar: string;
|
|
1334
|
+
isLoading: boolean;
|
|
1335
|
+
error: Error;
|
|
1336
|
+
refresh: () => Promise<void>;
|
|
1338
1337
|
};
|
|
1339
1338
|
|
|
1340
1339
|
export { type AccountSession, Address, type AddressProps, type Asset, ConnectWalletButton, type ConnectWalletButtonProps, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LUMIA_EXPLORER_URL, LumiaLogo, type LumiaPassportCallbacks, type LumiaPassportConfig, LumiaPassportProvider, type LumiaPassportProviderProps, LumiaPassportSessionProvider, LumiaRainbowKitProvider, type LumiaRainbowKitProviderProps, LumiaWagmiProvider, PageKey, type PageOpenParams, type ProviderDetail, type SendTransactionParams, type SendTransactionResult, type SignTypedDataParams, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type TypedDataDomain, type TypedDataField, type UpdateProfileRequest, type UseLogoutReturn, 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, deployAccount, destroyIframeManager, getIframeManager, getUserProfile, lumiaBeam, prepareUserOperation, queryClient, sendUserOperation, signTypedData, updateUserProfile, useAssets, useLogout, useLumiaPassportAccountSession, useLumiaPassportAddress, useLumiaPassportBalance, useLumiaPassportColorMode, useLumiaPassportConfig, useLumiaPassportError, useLumiaPassportHasServerVault, useLumiaPassportIFrameReady, useLumiaPassportLinkedProfiles, useLumiaPassportLoadingStatus, useLumiaPassportOpen, useLumiaPassportRecoveryUserId, useLumiaPassportSession, useSendTransaction, useSmartAccountTransactions, useTokenBalance, useTokenInfo, useTransactions, useUserOpStatus, wagmiConfig };
|