@openfort/react 0.0.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 +139 -0
- package/build/assets/ScanIconWithLogos.d.ts +5 -0
- package/build/assets/browsers.d.ts +10 -0
- package/build/assets/chains.d.ts +61 -0
- package/build/assets/icons.d.ts +51 -0
- package/build/assets/logos.d.ts +202 -0
- package/build/assets/wallet.d.ts +4 -0
- package/build/assets/wave.d.ts +2 -0
- package/build/components/BalanceButton/index.d.ts +9 -0
- package/build/components/Common/Alert/index.d.ts +6 -0
- package/build/components/Common/Alert/styles.d.ts +4 -0
- package/build/components/Common/Alert/types.d.ts +5 -0
- package/build/components/Common/Avatar/index.d.ts +16 -0
- package/build/components/Common/Avatar/styles.d.ts +8 -0
- package/build/components/Common/BrowserIcon/index.d.ts +4 -0
- package/build/components/Common/BrowserIcon/styles.d.ts +1 -0
- package/build/components/Common/BrowserIcon/types.d.ts +3 -0
- package/build/components/Common/Button/index.d.ts +4 -0
- package/build/components/Common/Button/styles.d.ts +16 -0
- package/build/components/Common/Button/types.d.ts +16 -0
- package/build/components/Common/Chain/index.d.ts +8 -0
- package/build/components/Common/Chain/styles.d.ts +9 -0
- package/build/components/Common/ChainSelect/index.d.ts +3 -0
- package/build/components/Common/ChainSelectDropdown/index.d.ts +9 -0
- package/build/components/Common/ChainSelectDropdown/styles.d.ts +4 -0
- package/build/components/Common/ChainSelectList/index.d.ts +4 -0
- package/build/components/Common/ChainSelectList/styles.d.ts +13 -0
- package/build/components/Common/ConnectorList/index.d.ts +2 -0
- package/build/components/Common/ConnectorList/styles.d.ts +9 -0
- package/build/components/Common/CopyToClipboard/CopyToClipboardIcon.d.ts +5 -0
- package/build/components/Common/CopyToClipboard/index.d.ts +7 -0
- package/build/components/Common/CustomQRCode/QRCode.d.ts +12 -0
- package/build/components/Common/CustomQRCode/index.d.ts +6 -0
- package/build/components/Common/CustomQRCode/styles.d.ts +8 -0
- package/build/components/Common/CustomQRCode/types.d.ts +8 -0
- package/build/components/Common/DynamicContainer/index.d.ts +7 -0
- package/build/components/Common/FitText/index.d.ts +10 -0
- package/build/components/Common/Input/index.d.ts +4 -0
- package/build/components/Common/Input/styles.d.ts +3 -0
- package/build/components/Common/Input/types.d.ts +2 -0
- package/build/components/Common/LazyImage/index.d.ts +8 -0
- package/build/components/Common/Loading/index.d.ts +6 -0
- package/build/components/Common/Logo/index.d.ts +8 -0
- package/build/components/Common/Logo/styles.d.ts +6 -0
- package/build/components/Common/Modal/index.d.ts +24 -0
- package/build/components/Common/Modal/styles.d.ts +33 -0
- package/build/components/Common/Portal/index.d.ts +2 -0
- package/build/components/Common/PoweredByFooter/index.d.ts +5 -0
- package/build/components/Common/ScrollArea/index.d.ts +7 -0
- package/build/components/Common/ScrollArea/styles.d.ts +8 -0
- package/build/components/Common/Spinner/index.d.ts +1 -0
- package/build/components/Common/Spinner/styles.d.ts +1 -0
- package/build/components/Common/SquircleSpinner/index.d.ts +5 -0
- package/build/components/Common/SquircleSpinner/styles.d.ts +4 -0
- package/build/components/Common/ThemedButton/index.d.ts +15 -0
- package/build/components/Common/ThemedButton/styles.d.ts +4 -0
- package/build/components/Common/Tooltip/index.d.ts +4 -0
- package/build/components/Common/Tooltip/styles.d.ts +8 -0
- package/build/components/Common/Tooltip/types.d.ts +9 -0
- package/build/components/ConnectButton/index.d.ts +33 -0
- package/build/components/ConnectButton/styles.d.ts +4 -0
- package/build/components/ConnectKitThemeProvider/ConnectKitThemeProvider.d.ts +16 -0
- package/build/components/ConnectModal/ConnectUsing.d.ts +2 -0
- package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.d.ts +9 -0
- package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/styles.d.ts +7 -0
- package/build/components/ConnectModal/ConnectWithInjector/index.d.ts +16 -0
- package/build/components/ConnectModal/ConnectWithInjector/styles.d.ts +9 -0
- package/build/components/ConnectModal/ConnectWithOAuth.d.ts +2 -0
- package/build/components/ConnectModal/ConnectWithQRCode.d.ts +5 -0
- package/build/components/ConnectModal/index.d.ts +8 -0
- package/build/components/FloatingGraphic/styles.d.ts +11 -0
- package/build/components/NetworkButton/index.d.ts +8 -0
- package/build/components/OpenfortKit/OpenfortKit.d.ts +28 -0
- package/build/components/OpenfortKit/context.d.ts +38 -0
- package/build/components/OpenfortKit/types.d.ts +136 -0
- package/build/components/OpenfortKit/useOpenfortKit.d.ts +1 -0
- package/build/components/Pages/About/graphics.d.ts +11 -0
- package/build/components/Pages/About/index.d.ts +3 -0
- package/build/components/Pages/About/styles.d.ts +12 -0
- package/build/components/Pages/Connectors/index.d.ts +3 -0
- package/build/components/Pages/Connectors/styles.d.ts +9 -0
- package/build/components/Pages/DownloadApp/index.d.ts +2 -0
- package/build/components/Pages/EmailLogin/index.d.ts +3 -0
- package/build/components/Pages/EmailSignup/index.d.ts +3 -0
- package/build/components/Pages/EmailVerification/index.d.ts +3 -0
- package/build/components/Pages/ForgotPassword/index.d.ts +3 -0
- package/build/components/Pages/LinkEmail/index.d.ts +3 -0
- package/build/components/Pages/Loading/index.d.ts +3 -0
- package/build/components/Pages/MobileConnectors/index.d.ts +3 -0
- package/build/components/Pages/MobileConnectors/styles.d.ts +11 -0
- package/build/components/Pages/Onboarding/index.d.ts +3 -0
- package/build/components/Pages/Profile/LinkedProviders.d.ts +1 -0
- package/build/components/Pages/Profile/index.d.ts +5 -0
- package/build/components/Pages/Profile/styles.d.ts +10 -0
- package/build/components/Pages/Providers/index.d.ts +7 -0
- package/build/components/Pages/Providers/styles.d.ts +3 -0
- package/build/components/Pages/Recover/index.d.ts +3 -0
- package/build/components/Pages/SoicalProviders/index.d.ts +3 -0
- package/build/components/Pages/SoicalProviders/styles.d.ts +3 -0
- package/build/components/Pages/SwitchNetworks/index.d.ts +3 -0
- package/build/components/contexts/web3/index.d.ts +25 -0
- package/build/constants/chainConfigs.d.ts +18 -0
- package/build/constants/defaultTheme.d.ts +4 -0
- package/build/constants/openfort.d.ts +2 -0
- package/build/defaultConfig.d.ts +14 -0
- package/build/defaultConnectors.d.ts +14 -0
- package/build/defaultTransports.d.ts +15 -0
- package/build/hooks/connectors/useCoinbaseWalletUri.d.ts +0 -0
- package/build/hooks/connectors/useWalletConnectUri.d.ts +7 -0
- package/build/hooks/openfort/auth/requestEmailVerification.d.ts +5 -0
- package/build/hooks/openfort/auth/status.d.ts +14 -0
- package/build/hooks/openfort/auth/useAuthCallback.d.ts +39 -0
- package/build/hooks/openfort/auth/useCreateWalletPostAuth.d.ts +6 -0
- package/build/hooks/openfort/auth/useEmailAuth.d.ts +51 -0
- package/build/hooks/openfort/auth/useGuestAuth.d.ts +16 -0
- package/build/hooks/openfort/auth/useOAuth.d.ts +20 -0
- package/build/hooks/openfort/auth/useSignOut.d.ts +8 -0
- package/build/hooks/openfort/auth/useThirdPartyAuth.d.ts +1 -0
- package/build/hooks/openfort/auth/useWalletAuth.d.ts +20 -0
- package/build/hooks/openfort/hookConsistency.d.ts +13 -0
- package/build/hooks/openfort/useConnectWithSiwe.d.ts +4 -0
- package/build/hooks/openfort/useProviders.d.ts +6 -0
- package/build/hooks/openfort/useStatus.d.ts +16 -0
- package/build/hooks/openfort/useUI.d.ts +10 -0
- package/build/hooks/openfort/useUser.d.ts +5 -0
- package/build/hooks/openfort/useWallets.d.ts +37 -0
- package/build/hooks/useChainIsSupported.d.ts +1 -0
- package/build/hooks/useChains.d.ts +2 -0
- package/build/hooks/useConnect.d.ts +110 -0
- package/build/hooks/useConnectCallback.d.ts +10 -0
- package/build/hooks/useConnectors.d.ts +7 -0
- package/build/hooks/useEnsFallbackConfig.d.ts +2 -0
- package/build/hooks/useFitText.d.ts +14 -0
- package/build/hooks/useFocusTrap.d.ts +1 -0
- package/build/hooks/useGoogleFont.d.ts +3 -0
- package/build/hooks/useIsMobile.d.ts +1 -0
- package/build/hooks/useIsMounted.d.ts +1 -0
- package/build/hooks/useLastConnector.d.ts +4 -0
- package/build/hooks/useLocalStorage.d.ts +7 -0
- package/build/hooks/useLocales.d.ts +1 -0
- package/build/hooks/useLockBodyScroll.d.ts +1 -0
- package/build/hooks/usePrevious.d.ts +1 -0
- package/build/hooks/useWalletConnectModal.d.ts +4 -0
- package/build/hooks/useWindowSize.d.ts +4 -0
- package/build/index.d.ts +27 -0
- package/build/index.es.js +13011 -0
- package/build/index.es.js.map +1 -0
- package/build/localizations/index.d.ts +93 -0
- package/build/localizations/locales/ar-AE.d.ts +3 -0
- package/build/localizations/locales/ca-AD.d.ts +3 -0
- package/build/localizations/locales/ee-EE.d.ts +3 -0
- package/build/localizations/locales/en-US.d.ts +93 -0
- package/build/localizations/locales/es-ES.d.ts +3 -0
- package/build/localizations/locales/fa-IR.d.ts +3 -0
- package/build/localizations/locales/fr-FR.d.ts +3 -0
- package/build/localizations/locales/index.d.ts +2 -0
- package/build/localizations/locales/ja-JP.d.ts +93 -0
- package/build/localizations/locales/pt-BR.d.ts +3 -0
- package/build/localizations/locales/ru-RU.d.ts +3 -0
- package/build/localizations/locales/tr-TR.d.ts +3 -0
- package/build/localizations/locales/vi-VN.d.ts +3 -0
- package/build/localizations/locales/zh-CN.d.ts +3 -0
- package/build/openfort/OpenfortProvider.d.ts +17 -0
- package/build/openfort/OpenfortProvider_old.d.ts +0 -0
- package/build/openfort/context.d.ts +2 -0
- package/build/openfort/core/client.d.ts +24 -0
- package/build/openfort/core/index.d.ts +3 -0
- package/build/openfort/useOpenfort.d.ts +1 -0
- package/build/siwe/create-siwe-message.d.ts +1 -0
- package/build/styles/defaultTheme.d.ts +3 -0
- package/build/styles/index.d.ts +6 -0
- package/build/styles/styled/index.d.ts +12 -0
- package/build/styles/themes/base.d.ts +129 -0
- package/build/styles/themes/index.d.ts +673 -0
- package/build/styles/themes/midnight.d.ts +74 -0
- package/build/styles/themes/minimal.d.ts +94 -0
- package/build/styles/themes/nouns.d.ts +79 -0
- package/build/styles/themes/retro.d.ts +89 -0
- package/build/styles/themes/rounded.d.ts +86 -0
- package/build/styles/themes/soft.d.ts +69 -0
- package/build/styles/themes/web95.d.ts +91 -0
- package/build/styles/types.d.ts +80 -0
- package/build/types.d.ts +32 -0
- package/build/utils/index.d.ts +18 -0
- package/build/utils/localstorage.d.ts +9 -0
- package/build/utils/p3.d.ts +2 -0
- package/build/utils/wallets.d.ts +24 -0
- package/build/version.d.ts +1 -0
- package/build/wallets/index.d.ts +7 -0
- package/build/wallets/useWallets.d.ts +9 -0
- package/build/wallets/walletConfigs.d.ts +30 -0
- package/package.json +78 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum OpenfortKitStatus {
|
|
2
|
+
LOADING = 0,
|
|
3
|
+
CONNECTED = 1,
|
|
4
|
+
DISCONNECTED = 2,
|
|
5
|
+
NEEDS_RECOVERY = 3,
|
|
6
|
+
CONNECTED_WITHOUT_USER = 4
|
|
7
|
+
}
|
|
8
|
+
export declare function useStatus(): {
|
|
9
|
+
status: OpenfortKitStatus;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
hasUser: boolean;
|
|
12
|
+
isConnected: boolean;
|
|
13
|
+
isDisconnected: boolean;
|
|
14
|
+
isConnectedWithoutUser: boolean;
|
|
15
|
+
needsRecovery: boolean;
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function useUI(): {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
open: () => void;
|
|
4
|
+
close: () => void;
|
|
5
|
+
setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
6
|
+
openProfile: () => void;
|
|
7
|
+
openSwitchNetworks: () => void;
|
|
8
|
+
openProviders: () => void;
|
|
9
|
+
openWallets: () => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Connector } from "wagmi";
|
|
2
|
+
import { embeddedWalletId } from "../../constants/openfort";
|
|
3
|
+
import { Hex } from "viem";
|
|
4
|
+
import { OpenfortKitError } from "../../types";
|
|
5
|
+
export type UserWallet = {
|
|
6
|
+
address?: `0x${string}`;
|
|
7
|
+
connectorType?: string;
|
|
8
|
+
walletClientType?: string;
|
|
9
|
+
connector?: Connector;
|
|
10
|
+
id: string;
|
|
11
|
+
isAvailable: boolean;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
};
|
|
14
|
+
type SetActiveWalletOptions = {
|
|
15
|
+
showUI?: boolean;
|
|
16
|
+
address?: Hex | undefined;
|
|
17
|
+
} & ({
|
|
18
|
+
connector: string;
|
|
19
|
+
} | {
|
|
20
|
+
connector: typeof embeddedWalletId;
|
|
21
|
+
password?: string;
|
|
22
|
+
});
|
|
23
|
+
export declare function useWallets(): {
|
|
24
|
+
exportPrivateKey: () => Promise<string>;
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
isError: boolean;
|
|
27
|
+
isSuccess: boolean;
|
|
28
|
+
error: OpenfortKitError | null | undefined;
|
|
29
|
+
wallets: UserWallet[];
|
|
30
|
+
availableWallets: import("../../wallets/useWallets").WalletProps[];
|
|
31
|
+
activeWallet: UserWallet | undefined;
|
|
32
|
+
setActiveWallet: (options: SetActiveWalletOptions | string) => Promise<{
|
|
33
|
+
error?: string;
|
|
34
|
+
wallet?: UserWallet;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useChainIsSupported(chainId?: number): boolean | null;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a wrapper around wagmi's useConnect hook that adds some
|
|
3
|
+
* additional functionality.
|
|
4
|
+
*/
|
|
5
|
+
import { Connector, CreateConnectorFn, type UseConnectParameters } from 'wagmi';
|
|
6
|
+
export declare function useConnect({ ...props }?: UseConnectParameters): {
|
|
7
|
+
data: undefined;
|
|
8
|
+
variables: undefined;
|
|
9
|
+
error: null;
|
|
10
|
+
isError: false;
|
|
11
|
+
isIdle: true;
|
|
12
|
+
isPending: false;
|
|
13
|
+
isSuccess: false;
|
|
14
|
+
status: "idle";
|
|
15
|
+
reset: () => void;
|
|
16
|
+
context: unknown;
|
|
17
|
+
failureCount: number;
|
|
18
|
+
failureReason: import("@wagmi/core").ConnectErrorType | null;
|
|
19
|
+
isPaused: boolean;
|
|
20
|
+
submittedAt: number;
|
|
21
|
+
connect: ({ connector, chainId, mutation, }: {
|
|
22
|
+
connector: CreateConnectorFn | Connector;
|
|
23
|
+
chainId?: number;
|
|
24
|
+
mutation?: UseConnectParameters["mutation"];
|
|
25
|
+
}) => void;
|
|
26
|
+
connectAsync: ({ connector, chainId, mutation, }: {
|
|
27
|
+
connector: CreateConnectorFn | Connector;
|
|
28
|
+
chainId?: number;
|
|
29
|
+
mutation?: UseConnectParameters["mutation"];
|
|
30
|
+
}) => Promise<import("wagmi/query").ConnectData<import("wagmi").Config>>;
|
|
31
|
+
connectors: readonly Connector<CreateConnectorFn>[];
|
|
32
|
+
} | {
|
|
33
|
+
data: undefined;
|
|
34
|
+
variables: import("wagmi/query").ConnectVariables<import("wagmi").Config, Connector<CreateConnectorFn>>;
|
|
35
|
+
error: null;
|
|
36
|
+
isError: false;
|
|
37
|
+
isIdle: false;
|
|
38
|
+
isPending: true;
|
|
39
|
+
isSuccess: false;
|
|
40
|
+
status: "pending";
|
|
41
|
+
reset: () => void;
|
|
42
|
+
context: unknown;
|
|
43
|
+
failureCount: number;
|
|
44
|
+
failureReason: import("@wagmi/core").ConnectErrorType | null;
|
|
45
|
+
isPaused: boolean;
|
|
46
|
+
submittedAt: number;
|
|
47
|
+
connect: ({ connector, chainId, mutation, }: {
|
|
48
|
+
connector: CreateConnectorFn | Connector;
|
|
49
|
+
chainId?: number;
|
|
50
|
+
mutation?: UseConnectParameters["mutation"];
|
|
51
|
+
}) => void;
|
|
52
|
+
connectAsync: ({ connector, chainId, mutation, }: {
|
|
53
|
+
connector: CreateConnectorFn | Connector;
|
|
54
|
+
chainId?: number;
|
|
55
|
+
mutation?: UseConnectParameters["mutation"];
|
|
56
|
+
}) => Promise<import("wagmi/query").ConnectData<import("wagmi").Config>>;
|
|
57
|
+
connectors: readonly Connector<CreateConnectorFn>[];
|
|
58
|
+
} | {
|
|
59
|
+
data: undefined;
|
|
60
|
+
variables: import("wagmi/query").ConnectVariables<import("wagmi").Config, Connector<CreateConnectorFn>>;
|
|
61
|
+
error: import("@wagmi/core").ConnectErrorType;
|
|
62
|
+
isError: true;
|
|
63
|
+
isIdle: false;
|
|
64
|
+
isPending: false;
|
|
65
|
+
isSuccess: false;
|
|
66
|
+
status: "error";
|
|
67
|
+
reset: () => void;
|
|
68
|
+
context: unknown;
|
|
69
|
+
failureCount: number;
|
|
70
|
+
failureReason: import("@wagmi/core").ConnectErrorType | null;
|
|
71
|
+
isPaused: boolean;
|
|
72
|
+
submittedAt: number;
|
|
73
|
+
connect: ({ connector, chainId, mutation, }: {
|
|
74
|
+
connector: CreateConnectorFn | Connector;
|
|
75
|
+
chainId?: number;
|
|
76
|
+
mutation?: UseConnectParameters["mutation"];
|
|
77
|
+
}) => void;
|
|
78
|
+
connectAsync: ({ connector, chainId, mutation, }: {
|
|
79
|
+
connector: CreateConnectorFn | Connector;
|
|
80
|
+
chainId?: number;
|
|
81
|
+
mutation?: UseConnectParameters["mutation"];
|
|
82
|
+
}) => Promise<import("wagmi/query").ConnectData<import("wagmi").Config>>;
|
|
83
|
+
connectors: readonly Connector<CreateConnectorFn>[];
|
|
84
|
+
} | {
|
|
85
|
+
data: import("wagmi/query").ConnectData<import("wagmi").Config>;
|
|
86
|
+
variables: import("wagmi/query").ConnectVariables<import("wagmi").Config, Connector<CreateConnectorFn>>;
|
|
87
|
+
error: null;
|
|
88
|
+
isError: false;
|
|
89
|
+
isIdle: false;
|
|
90
|
+
isPending: false;
|
|
91
|
+
isSuccess: true;
|
|
92
|
+
status: "success";
|
|
93
|
+
reset: () => void;
|
|
94
|
+
context: unknown;
|
|
95
|
+
failureCount: number;
|
|
96
|
+
failureReason: import("@wagmi/core").ConnectErrorType | null;
|
|
97
|
+
isPaused: boolean;
|
|
98
|
+
submittedAt: number;
|
|
99
|
+
connect: ({ connector, chainId, mutation, }: {
|
|
100
|
+
connector: CreateConnectorFn | Connector;
|
|
101
|
+
chainId?: number;
|
|
102
|
+
mutation?: UseConnectParameters["mutation"];
|
|
103
|
+
}) => void;
|
|
104
|
+
connectAsync: ({ connector, chainId, mutation, }: {
|
|
105
|
+
connector: CreateConnectorFn | Connector;
|
|
106
|
+
chainId?: number;
|
|
107
|
+
mutation?: UseConnectParameters["mutation"];
|
|
108
|
+
}) => Promise<import("wagmi/query").ConnectData<import("wagmi").Config>>;
|
|
109
|
+
connectors: readonly Connector<CreateConnectorFn>[];
|
|
110
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AuthPlayerResponse } from '@openfort/openfort-js';
|
|
2
|
+
export type useConnectCallbackProps = {
|
|
3
|
+
onConnect?: ({ address, connectorId, user, }: {
|
|
4
|
+
address?: string;
|
|
5
|
+
connectorId?: string;
|
|
6
|
+
user?: AuthPlayerResponse;
|
|
7
|
+
}) => void;
|
|
8
|
+
onDisconnect?: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const useConnectCallback: ({ onConnect, onDisconnect, }: useConnectCallbackProps) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Connector } from 'wagmi';
|
|
2
|
+
export declare function useConnectors(): readonly Connector<import("wagmi").CreateConnectorFn>[];
|
|
3
|
+
export declare function useConnector(id: string, uuid?: string): Connector;
|
|
4
|
+
export declare function useInjectedConnector(uuid?: string): Connector;
|
|
5
|
+
export declare function useWalletConnectConnector(): Connector;
|
|
6
|
+
export declare function useCoinbaseWalletConnector(): Connector;
|
|
7
|
+
export declare function useMetaMaskConnector(): Connector;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type TLogLevel = 'debug' | 'info' | 'warn' | 'error' | 'none';
|
|
2
|
+
export type TOptions = {
|
|
3
|
+
logLevel?: TLogLevel;
|
|
4
|
+
maxFontSize?: number;
|
|
5
|
+
minFontSize?: number;
|
|
6
|
+
onFinish?: (fontSize: number) => void;
|
|
7
|
+
onStart?: () => void;
|
|
8
|
+
resolution?: number;
|
|
9
|
+
};
|
|
10
|
+
declare const useFitText: ({ logLevel: logLevelOption, maxFontSize, minFontSize, onFinish, onStart, resolution, }?: TOptions) => {
|
|
11
|
+
fontSize: number;
|
|
12
|
+
ref: import("react").RefObject<HTMLDivElement>;
|
|
13
|
+
};
|
|
14
|
+
export default useFitText;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FocusTrap(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useIsMobile(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useIsMounted(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useLocales(replacements?: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useLockBodyScroll(initialLocked: boolean): (boolean | import("react").Dispatch<import("react").SetStateAction<boolean>>)[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function usePrevious(value: any, initial?: any): any;
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { OPENFORTKIT_VERSION } from './version';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export { default as getDefaultConfig } from './defaultConfig';
|
|
4
|
+
export { default as getDefaultConnectors } from './defaultConnectors';
|
|
5
|
+
export { wallets } from './wallets';
|
|
6
|
+
export { AuthProvider, } from './components/OpenfortKit/types';
|
|
7
|
+
export { OpenfortKitContext, } from './components/OpenfortKit/context';
|
|
8
|
+
export { OpenfortKitProvider, } from './components/OpenfortKit/OpenfortKit';
|
|
9
|
+
export { OpenfortKitButton } from './components/ConnectButton';
|
|
10
|
+
export { default as Avatar } from './components/Common/Avatar';
|
|
11
|
+
export { default as ChainIcon } from './components/Common/Chain';
|
|
12
|
+
export { useChains } from './hooks/useChains';
|
|
13
|
+
export { useChainIsSupported } from './hooks/useChainIsSupported';
|
|
14
|
+
export { useStatus, OpenfortKitStatus } from './hooks/openfort/useStatus';
|
|
15
|
+
export { useUser } from './hooks/openfort/useUser';
|
|
16
|
+
export { useUI } from "./hooks/openfort/useUI";
|
|
17
|
+
export { useWallets, UserWallet } from "./hooks/openfort/useWallets";
|
|
18
|
+
export { RecoveryMethod, AuthPlayerResponse } from "@openfort/openfort-js";
|
|
19
|
+
export { useOpenfort } from './openfort/useOpenfort';
|
|
20
|
+
export { useConnectWithSiwe } from './hooks/openfort/useConnectWithSiwe';
|
|
21
|
+
export { embeddedWalletId } from './constants/openfort';
|
|
22
|
+
export { useEmailAuth } from './hooks/openfort/auth/useEmailAuth';
|
|
23
|
+
export { useAuthCallback } from './hooks/openfort/auth/useAuthCallback';
|
|
24
|
+
export { useGuestAuth } from './hooks/openfort/auth/useGuestAuth';
|
|
25
|
+
export { useWalletAuth } from './hooks/openfort/auth/useWalletAuth';
|
|
26
|
+
export { useOAuth } from './hooks/openfort/auth/useOAuth';
|
|
27
|
+
export { useSignOut } from './hooks/openfort/auth/useSignOut';
|