@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.
Files changed (192) hide show
  1. package/README.md +139 -0
  2. package/build/assets/ScanIconWithLogos.d.ts +5 -0
  3. package/build/assets/browsers.d.ts +10 -0
  4. package/build/assets/chains.d.ts +61 -0
  5. package/build/assets/icons.d.ts +51 -0
  6. package/build/assets/logos.d.ts +202 -0
  7. package/build/assets/wallet.d.ts +4 -0
  8. package/build/assets/wave.d.ts +2 -0
  9. package/build/components/BalanceButton/index.d.ts +9 -0
  10. package/build/components/Common/Alert/index.d.ts +6 -0
  11. package/build/components/Common/Alert/styles.d.ts +4 -0
  12. package/build/components/Common/Alert/types.d.ts +5 -0
  13. package/build/components/Common/Avatar/index.d.ts +16 -0
  14. package/build/components/Common/Avatar/styles.d.ts +8 -0
  15. package/build/components/Common/BrowserIcon/index.d.ts +4 -0
  16. package/build/components/Common/BrowserIcon/styles.d.ts +1 -0
  17. package/build/components/Common/BrowserIcon/types.d.ts +3 -0
  18. package/build/components/Common/Button/index.d.ts +4 -0
  19. package/build/components/Common/Button/styles.d.ts +16 -0
  20. package/build/components/Common/Button/types.d.ts +16 -0
  21. package/build/components/Common/Chain/index.d.ts +8 -0
  22. package/build/components/Common/Chain/styles.d.ts +9 -0
  23. package/build/components/Common/ChainSelect/index.d.ts +3 -0
  24. package/build/components/Common/ChainSelectDropdown/index.d.ts +9 -0
  25. package/build/components/Common/ChainSelectDropdown/styles.d.ts +4 -0
  26. package/build/components/Common/ChainSelectList/index.d.ts +4 -0
  27. package/build/components/Common/ChainSelectList/styles.d.ts +13 -0
  28. package/build/components/Common/ConnectorList/index.d.ts +2 -0
  29. package/build/components/Common/ConnectorList/styles.d.ts +9 -0
  30. package/build/components/Common/CopyToClipboard/CopyToClipboardIcon.d.ts +5 -0
  31. package/build/components/Common/CopyToClipboard/index.d.ts +7 -0
  32. package/build/components/Common/CustomQRCode/QRCode.d.ts +12 -0
  33. package/build/components/Common/CustomQRCode/index.d.ts +6 -0
  34. package/build/components/Common/CustomQRCode/styles.d.ts +8 -0
  35. package/build/components/Common/CustomQRCode/types.d.ts +8 -0
  36. package/build/components/Common/DynamicContainer/index.d.ts +7 -0
  37. package/build/components/Common/FitText/index.d.ts +10 -0
  38. package/build/components/Common/Input/index.d.ts +4 -0
  39. package/build/components/Common/Input/styles.d.ts +3 -0
  40. package/build/components/Common/Input/types.d.ts +2 -0
  41. package/build/components/Common/LazyImage/index.d.ts +8 -0
  42. package/build/components/Common/Loading/index.d.ts +6 -0
  43. package/build/components/Common/Logo/index.d.ts +8 -0
  44. package/build/components/Common/Logo/styles.d.ts +6 -0
  45. package/build/components/Common/Modal/index.d.ts +24 -0
  46. package/build/components/Common/Modal/styles.d.ts +33 -0
  47. package/build/components/Common/Portal/index.d.ts +2 -0
  48. package/build/components/Common/PoweredByFooter/index.d.ts +5 -0
  49. package/build/components/Common/ScrollArea/index.d.ts +7 -0
  50. package/build/components/Common/ScrollArea/styles.d.ts +8 -0
  51. package/build/components/Common/Spinner/index.d.ts +1 -0
  52. package/build/components/Common/Spinner/styles.d.ts +1 -0
  53. package/build/components/Common/SquircleSpinner/index.d.ts +5 -0
  54. package/build/components/Common/SquircleSpinner/styles.d.ts +4 -0
  55. package/build/components/Common/ThemedButton/index.d.ts +15 -0
  56. package/build/components/Common/ThemedButton/styles.d.ts +4 -0
  57. package/build/components/Common/Tooltip/index.d.ts +4 -0
  58. package/build/components/Common/Tooltip/styles.d.ts +8 -0
  59. package/build/components/Common/Tooltip/types.d.ts +9 -0
  60. package/build/components/ConnectButton/index.d.ts +33 -0
  61. package/build/components/ConnectButton/styles.d.ts +4 -0
  62. package/build/components/ConnectKitThemeProvider/ConnectKitThemeProvider.d.ts +16 -0
  63. package/build/components/ConnectModal/ConnectUsing.d.ts +2 -0
  64. package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.d.ts +9 -0
  65. package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/styles.d.ts +7 -0
  66. package/build/components/ConnectModal/ConnectWithInjector/index.d.ts +16 -0
  67. package/build/components/ConnectModal/ConnectWithInjector/styles.d.ts +9 -0
  68. package/build/components/ConnectModal/ConnectWithOAuth.d.ts +2 -0
  69. package/build/components/ConnectModal/ConnectWithQRCode.d.ts +5 -0
  70. package/build/components/ConnectModal/index.d.ts +8 -0
  71. package/build/components/FloatingGraphic/styles.d.ts +11 -0
  72. package/build/components/NetworkButton/index.d.ts +8 -0
  73. package/build/components/OpenfortKit/OpenfortKit.d.ts +28 -0
  74. package/build/components/OpenfortKit/context.d.ts +38 -0
  75. package/build/components/OpenfortKit/types.d.ts +136 -0
  76. package/build/components/OpenfortKit/useOpenfortKit.d.ts +1 -0
  77. package/build/components/Pages/About/graphics.d.ts +11 -0
  78. package/build/components/Pages/About/index.d.ts +3 -0
  79. package/build/components/Pages/About/styles.d.ts +12 -0
  80. package/build/components/Pages/Connectors/index.d.ts +3 -0
  81. package/build/components/Pages/Connectors/styles.d.ts +9 -0
  82. package/build/components/Pages/DownloadApp/index.d.ts +2 -0
  83. package/build/components/Pages/EmailLogin/index.d.ts +3 -0
  84. package/build/components/Pages/EmailSignup/index.d.ts +3 -0
  85. package/build/components/Pages/EmailVerification/index.d.ts +3 -0
  86. package/build/components/Pages/ForgotPassword/index.d.ts +3 -0
  87. package/build/components/Pages/LinkEmail/index.d.ts +3 -0
  88. package/build/components/Pages/Loading/index.d.ts +3 -0
  89. package/build/components/Pages/MobileConnectors/index.d.ts +3 -0
  90. package/build/components/Pages/MobileConnectors/styles.d.ts +11 -0
  91. package/build/components/Pages/Onboarding/index.d.ts +3 -0
  92. package/build/components/Pages/Profile/LinkedProviders.d.ts +1 -0
  93. package/build/components/Pages/Profile/index.d.ts +5 -0
  94. package/build/components/Pages/Profile/styles.d.ts +10 -0
  95. package/build/components/Pages/Providers/index.d.ts +7 -0
  96. package/build/components/Pages/Providers/styles.d.ts +3 -0
  97. package/build/components/Pages/Recover/index.d.ts +3 -0
  98. package/build/components/Pages/SoicalProviders/index.d.ts +3 -0
  99. package/build/components/Pages/SoicalProviders/styles.d.ts +3 -0
  100. package/build/components/Pages/SwitchNetworks/index.d.ts +3 -0
  101. package/build/components/contexts/web3/index.d.ts +25 -0
  102. package/build/constants/chainConfigs.d.ts +18 -0
  103. package/build/constants/defaultTheme.d.ts +4 -0
  104. package/build/constants/openfort.d.ts +2 -0
  105. package/build/defaultConfig.d.ts +14 -0
  106. package/build/defaultConnectors.d.ts +14 -0
  107. package/build/defaultTransports.d.ts +15 -0
  108. package/build/hooks/connectors/useCoinbaseWalletUri.d.ts +0 -0
  109. package/build/hooks/connectors/useWalletConnectUri.d.ts +7 -0
  110. package/build/hooks/openfort/auth/requestEmailVerification.d.ts +5 -0
  111. package/build/hooks/openfort/auth/status.d.ts +14 -0
  112. package/build/hooks/openfort/auth/useAuthCallback.d.ts +39 -0
  113. package/build/hooks/openfort/auth/useCreateWalletPostAuth.d.ts +6 -0
  114. package/build/hooks/openfort/auth/useEmailAuth.d.ts +51 -0
  115. package/build/hooks/openfort/auth/useGuestAuth.d.ts +16 -0
  116. package/build/hooks/openfort/auth/useOAuth.d.ts +20 -0
  117. package/build/hooks/openfort/auth/useSignOut.d.ts +8 -0
  118. package/build/hooks/openfort/auth/useThirdPartyAuth.d.ts +1 -0
  119. package/build/hooks/openfort/auth/useWalletAuth.d.ts +20 -0
  120. package/build/hooks/openfort/hookConsistency.d.ts +13 -0
  121. package/build/hooks/openfort/useConnectWithSiwe.d.ts +4 -0
  122. package/build/hooks/openfort/useProviders.d.ts +6 -0
  123. package/build/hooks/openfort/useStatus.d.ts +16 -0
  124. package/build/hooks/openfort/useUI.d.ts +10 -0
  125. package/build/hooks/openfort/useUser.d.ts +5 -0
  126. package/build/hooks/openfort/useWallets.d.ts +37 -0
  127. package/build/hooks/useChainIsSupported.d.ts +1 -0
  128. package/build/hooks/useChains.d.ts +2 -0
  129. package/build/hooks/useConnect.d.ts +110 -0
  130. package/build/hooks/useConnectCallback.d.ts +10 -0
  131. package/build/hooks/useConnectors.d.ts +7 -0
  132. package/build/hooks/useEnsFallbackConfig.d.ts +2 -0
  133. package/build/hooks/useFitText.d.ts +14 -0
  134. package/build/hooks/useFocusTrap.d.ts +1 -0
  135. package/build/hooks/useGoogleFont.d.ts +3 -0
  136. package/build/hooks/useIsMobile.d.ts +1 -0
  137. package/build/hooks/useIsMounted.d.ts +1 -0
  138. package/build/hooks/useLastConnector.d.ts +4 -0
  139. package/build/hooks/useLocalStorage.d.ts +7 -0
  140. package/build/hooks/useLocales.d.ts +1 -0
  141. package/build/hooks/useLockBodyScroll.d.ts +1 -0
  142. package/build/hooks/usePrevious.d.ts +1 -0
  143. package/build/hooks/useWalletConnectModal.d.ts +4 -0
  144. package/build/hooks/useWindowSize.d.ts +4 -0
  145. package/build/index.d.ts +27 -0
  146. package/build/index.es.js +13011 -0
  147. package/build/index.es.js.map +1 -0
  148. package/build/localizations/index.d.ts +93 -0
  149. package/build/localizations/locales/ar-AE.d.ts +3 -0
  150. package/build/localizations/locales/ca-AD.d.ts +3 -0
  151. package/build/localizations/locales/ee-EE.d.ts +3 -0
  152. package/build/localizations/locales/en-US.d.ts +93 -0
  153. package/build/localizations/locales/es-ES.d.ts +3 -0
  154. package/build/localizations/locales/fa-IR.d.ts +3 -0
  155. package/build/localizations/locales/fr-FR.d.ts +3 -0
  156. package/build/localizations/locales/index.d.ts +2 -0
  157. package/build/localizations/locales/ja-JP.d.ts +93 -0
  158. package/build/localizations/locales/pt-BR.d.ts +3 -0
  159. package/build/localizations/locales/ru-RU.d.ts +3 -0
  160. package/build/localizations/locales/tr-TR.d.ts +3 -0
  161. package/build/localizations/locales/vi-VN.d.ts +3 -0
  162. package/build/localizations/locales/zh-CN.d.ts +3 -0
  163. package/build/openfort/OpenfortProvider.d.ts +17 -0
  164. package/build/openfort/OpenfortProvider_old.d.ts +0 -0
  165. package/build/openfort/context.d.ts +2 -0
  166. package/build/openfort/core/client.d.ts +24 -0
  167. package/build/openfort/core/index.d.ts +3 -0
  168. package/build/openfort/useOpenfort.d.ts +1 -0
  169. package/build/siwe/create-siwe-message.d.ts +1 -0
  170. package/build/styles/defaultTheme.d.ts +3 -0
  171. package/build/styles/index.d.ts +6 -0
  172. package/build/styles/styled/index.d.ts +12 -0
  173. package/build/styles/themes/base.d.ts +129 -0
  174. package/build/styles/themes/index.d.ts +673 -0
  175. package/build/styles/themes/midnight.d.ts +74 -0
  176. package/build/styles/themes/minimal.d.ts +94 -0
  177. package/build/styles/themes/nouns.d.ts +79 -0
  178. package/build/styles/themes/retro.d.ts +89 -0
  179. package/build/styles/themes/rounded.d.ts +86 -0
  180. package/build/styles/themes/soft.d.ts +69 -0
  181. package/build/styles/themes/web95.d.ts +91 -0
  182. package/build/styles/types.d.ts +80 -0
  183. package/build/types.d.ts +32 -0
  184. package/build/utils/index.d.ts +18 -0
  185. package/build/utils/localstorage.d.ts +9 -0
  186. package/build/utils/p3.d.ts +2 -0
  187. package/build/utils/wallets.d.ts +24 -0
  188. package/build/version.d.ts +1 -0
  189. package/build/wallets/index.d.ts +7 -0
  190. package/build/wallets/useWallets.d.ts +9 -0
  191. package/build/wallets/walletConfigs.d.ts +30 -0
  192. package/package.json +78 -0
@@ -0,0 +1,6 @@
1
+ import { AuthProvider } from "../../components/OpenfortKit/types";
2
+ export declare function useProviders(): {
3
+ availableProviders: AuthProvider[];
4
+ linkedProviders: AuthProvider[];
5
+ allProviders: AuthProvider[];
6
+ };
@@ -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,5 @@
1
+ export declare function useUser(): {
2
+ user: import("@openfort/openfort-js").AuthPlayerResponse | null;
3
+ getAccessToken: () => Promise<string | null>;
4
+ validateAndRefreshToken: () => Promise<void>;
5
+ };
@@ -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,2 @@
1
+ import { Chain } from 'viem';
2
+ export declare function useChains(): Chain[];
@@ -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,2 @@
1
+ import type { Config } from '@wagmi/core';
2
+ export declare function useEnsFallbackConfig(): Config | undefined;
@@ -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,3 @@
1
+ import { Theme } from '../types';
2
+ export declare function useGoogleFont(font: string): void;
3
+ export declare function useThemeFont(theme: Theme): void;
@@ -0,0 +1 @@
1
+ export default function useIsMobile(): boolean;
@@ -0,0 +1 @@
1
+ export default function useIsMounted(): boolean;
@@ -0,0 +1,4 @@
1
+ export declare const useLastConnector: () => {
2
+ lastConnectorId: string | null;
3
+ updateLastConnectorId: (id: string) => void;
4
+ };
@@ -0,0 +1,7 @@
1
+ export declare const useLocalStorage: (storageKey: string) => {
2
+ data: any;
3
+ add: (item: any) => void;
4
+ remove: (item: any) => void;
5
+ update: (items: any) => void;
6
+ clear: () => void;
7
+ };
@@ -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;
@@ -0,0 +1,4 @@
1
+ export declare function useWalletConnectModal(): {
2
+ isOpen: boolean;
3
+ open: () => Promise<void>;
4
+ };
@@ -0,0 +1,4 @@
1
+ export default function useWindowSize(): {
2
+ width: number;
3
+ height: number;
4
+ };
@@ -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';