@openfort/react 0.0.27 → 0.0.28

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 (132) hide show
  1. package/LICENSE +25 -0
  2. package/README.md +5 -17
  3. package/build/assets/chains.d.ts +0 -8
  4. package/build/assets/icons.d.ts +0 -9
  5. package/build/assets/logos.d.ts +0 -83
  6. package/build/components/BalanceButton/index.d.ts +2 -4
  7. package/build/components/Common/Alert/index.d.ts +1 -1
  8. package/build/components/Common/Avatar/index.d.ts +1 -1
  9. package/build/components/Common/BrowserIcon/index.d.ts +1 -1
  10. package/build/components/Common/Button/index.d.ts +2 -2
  11. package/build/components/Common/Button/types.d.ts +1 -1
  12. package/build/components/Common/Chain/index.d.ts +1 -1
  13. package/build/components/Common/ChainSelect/index.d.ts +1 -1
  14. package/build/components/Common/ChainSelectDropdown/index.d.ts +1 -1
  15. package/build/components/Common/ChainSelectList/index.d.ts +1 -1
  16. package/build/components/Common/ConnectorList/styles.d.ts +0 -1
  17. package/build/components/Common/CopyToClipboard/CopyToClipboardIcon.d.ts +1 -1
  18. package/build/components/Common/CopyToClipboard/index.d.ts +1 -1
  19. package/build/components/Common/CustomQRCode/QRCode.d.ts +1 -1
  20. package/build/components/Common/CustomQRCode/index.d.ts +2 -2
  21. package/build/components/Common/CustomQRCode/styles.d.ts +0 -1
  22. package/build/components/Common/CustomQRCode/types.d.ts +1 -1
  23. package/build/components/Common/FitText/index.d.ts +1 -1
  24. package/build/components/Common/Input/index.d.ts +1 -1
  25. package/build/components/Common/Input/types.d.ts +1 -1
  26. package/build/components/Common/Modal/index.d.ts +4 -4
  27. package/build/components/Common/Modal/styles.d.ts +0 -5
  28. package/build/components/Common/PoweredByFooter/index.d.ts +0 -1
  29. package/build/components/Common/ScrollArea/index.d.ts +1 -1
  30. package/build/components/Common/SquircleSpinner/index.d.ts +1 -1
  31. package/build/components/Common/ThemedButton/index.d.ts +2 -3
  32. package/build/components/Common/Tooltip/index.d.ts +2 -2
  33. package/build/components/Common/Tooltip/styles.d.ts +1 -1
  34. package/build/components/ConnectButton/index.d.ts +3 -3
  35. package/build/components/ConnectButton/styles.d.ts +0 -1
  36. package/build/components/ConnectKitThemeProvider/ConnectKitThemeProvider.d.ts +1 -1
  37. package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.d.ts +1 -1
  38. package/build/components/ConnectModal/ConnectWithInjector/index.d.ts +2 -2
  39. package/build/components/ConnectModal/ConnectWithMobile.d.ts +1 -1
  40. package/build/components/ConnectModal/ConnectWithOAuth.d.ts +1 -1
  41. package/build/components/ConnectModal/index.d.ts +1 -1
  42. package/build/components/FloatingGraphic/index.d.ts +2 -3
  43. package/build/components/Openfort/OpenfortProvider.d.ts +4 -4
  44. package/build/components/Openfort/context.d.ts +8 -8
  45. package/build/components/Openfort/types.d.ts +6 -9
  46. package/build/components/Pages/About/graphics.d.ts +1 -1
  47. package/build/components/Pages/About/index.d.ts +1 -1
  48. package/build/components/Pages/Connectors/index.d.ts +1 -1
  49. package/build/components/Pages/EmailLogin/index.d.ts +1 -1
  50. package/build/components/Pages/EmailVerification/index.d.ts +1 -1
  51. package/build/components/Pages/ForgotPassword/index.d.ts +1 -1
  52. package/build/components/Pages/LinkEmail/index.d.ts +1 -1
  53. package/build/components/Pages/Loading/index.d.ts +1 -1
  54. package/build/components/Pages/MobileConnectors/index.d.ts +1 -1
  55. package/build/components/Pages/Onboarding/index.d.ts +1 -1
  56. package/build/components/Pages/Profile/index.d.ts +1 -1
  57. package/build/components/Pages/Providers/index.d.ts +2 -2
  58. package/build/components/Pages/Recover/index.d.ts +1 -1
  59. package/build/components/Pages/SoicalProviders/index.d.ts +1 -1
  60. package/build/components/Pages/SwitchNetworks/index.d.ts +1 -1
  61. package/build/components/PasswordStrength/PasswordStrengthIndicator.d.ts +1 -1
  62. package/build/components/PasswordStrength/password-utility.d.ts +2 -52
  63. package/build/components/contexts/web3/index.d.ts +2 -2
  64. package/build/constants/chainConfigs.d.ts +1 -1
  65. package/build/defaultConfig.d.ts +2 -3
  66. package/build/defaultConnectors.d.ts +2 -2
  67. package/build/hooks/openfort/auth/status.d.ts +2 -2
  68. package/build/hooks/openfort/auth/useAuthCallback.d.ts +16 -9
  69. package/build/hooks/openfort/auth/useConnectToWalletPostAuth.d.ts +2 -2
  70. package/build/hooks/openfort/auth/useEmailAuth.d.ts +13 -12
  71. package/build/hooks/openfort/auth/useGuestAuth.d.ts +7 -6
  72. package/build/hooks/openfort/auth/useOAuth.d.ts +9 -9
  73. package/build/hooks/openfort/auth/useSignOut.d.ts +1 -1
  74. package/build/hooks/openfort/auth/useWalletAuth.d.ts +2 -2
  75. package/build/hooks/openfort/hookConsistency.d.ts +1 -1
  76. package/build/hooks/openfort/use7702Authorization.d.ts +2 -1
  77. package/build/hooks/openfort/useProviders.d.ts +1 -1
  78. package/build/hooks/openfort/useWallets.d.ts +9 -16
  79. package/build/hooks/useChains.d.ts +1 -1
  80. package/build/hooks/useConnect.d.ts +11 -105
  81. package/build/hooks/useConnectCallback.d.ts +2 -2
  82. package/build/hooks/useConnectors.d.ts +0 -3
  83. package/build/hooks/useEnsFallbackConfig.d.ts +42 -2
  84. package/build/hooks/useFitText.d.ts +2 -2
  85. package/build/hooks/useGoogleFont.d.ts +1 -2
  86. package/build/hooks/useLocales.d.ts +1 -1
  87. package/build/index.d.ts +20 -19
  88. package/build/index.es.js +13261 -13306
  89. package/build/index.es.js.map +1 -1
  90. package/build/localizations/locales/ar-AE.d.ts +1 -1
  91. package/build/localizations/locales/ca-AD.d.ts +1 -1
  92. package/build/localizations/locales/ee-EE.d.ts +1 -1
  93. package/build/localizations/locales/es-ES.d.ts +1 -1
  94. package/build/localizations/locales/fa-IR.d.ts +1 -1
  95. package/build/localizations/locales/fr-FR.d.ts +1 -1
  96. package/build/localizations/locales/index.d.ts +1 -1
  97. package/build/localizations/locales/ja-JP.d.ts +1 -1
  98. package/build/localizations/locales/pt-BR.d.ts +1 -1
  99. package/build/localizations/locales/ru-RU.d.ts +1 -1
  100. package/build/localizations/locales/tr-TR.d.ts +1 -1
  101. package/build/localizations/locales/vi-VN.d.ts +1 -1
  102. package/build/localizations/locales/zh-CN.d.ts +1 -1
  103. package/build/openfort/CoreOpenfortProvider.d.ts +7 -5
  104. package/build/openfort/context.d.ts +1 -1
  105. package/build/openfort/core/client.d.ts +1 -15
  106. package/build/openfort/core/index.d.ts +1 -1
  107. package/build/openfort/useOpenfort.d.ts +1 -1
  108. package/build/styles/index.d.ts +1 -1
  109. package/build/types.d.ts +3 -3
  110. package/build/utils/index.d.ts +1 -7
  111. package/build/utils/logger.d.ts +2 -2
  112. package/build/utils/oauthErrorHandler.d.ts +0 -1
  113. package/build/utils/p3.d.ts +0 -1
  114. package/build/utils/wallets.d.ts +0 -16
  115. package/build/version.d.ts +1 -1
  116. package/build/wallets/index.d.ts +1 -1
  117. package/build/wallets/useWallets.d.ts +2 -2
  118. package/package.json +16 -18
  119. package/build/components/Common/DynamicContainer/index.d.ts +0 -7
  120. package/build/components/Common/LazyImage/index.d.ts +0 -8
  121. package/build/components/Common/Logo/index.d.ts +0 -8
  122. package/build/components/Common/Logo/styles.d.ts +0 -6
  123. package/build/components/NetworkButton/index.d.ts +0 -8
  124. package/build/components/Pages/Connectors/styles.d.ts +0 -10
  125. package/build/components/Pages/SoicalProviders/styles.d.ts +0 -3
  126. package/build/defaultTransports.d.ts +0 -38
  127. package/build/hooks/connectors/useCoinbaseWalletUri.d.ts +0 -0
  128. package/build/hooks/openfort/auth/useThirdPartyAuth.d.ts +0 -1
  129. package/build/hooks/useLocalStorage.d.ts +0 -7
  130. package/build/styles/defaultTheme.d.ts +0 -3
  131. package/build/styles/types.d.ts +0 -80
  132. package/build/utils/localstorage.d.ts +0 -68
package/LICENSE ADDED
@@ -0,0 +1,25 @@
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) 2022, LFE, Inc.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -52,12 +52,6 @@ Get started with `create` Openfort + [wagmi](https://wagmi.sh/) + [viem](https:/
52
52
  npx create openfort
53
53
  ```
54
54
 
55
- #### yarn
56
-
57
- ```sh
58
- yarn create openfort
59
- ```
60
-
61
55
  #### pnpm
62
56
 
63
57
  ```sh
@@ -74,12 +68,6 @@ Add Openfort to your already existing project.
74
68
  npm install @openfort/react @tanstack/react-query wagmi viem
75
69
  ```
76
70
 
77
- #### yarn
78
-
79
- ```sh
80
- yarn add @openfort/react @tanstack/react-query wagmi viem
81
- ```
82
-
83
71
  #### pnpm
84
72
 
85
73
  ```sh
@@ -101,21 +89,21 @@ Clone the project and install the necessary dependencies:
101
89
  ```sh
102
90
  $ git clone git@github.com:openfort-xyz/openfort-react.git
103
91
  $ cd openfort
104
- $ yarn install
92
+ $ pnpm install
105
93
  ```
106
94
 
107
95
  and start the code bundler:
108
96
 
109
97
  ```sh
110
- $ yarn dev:kit
98
+ $ pnpm dev:kit
111
99
  ```
112
100
 
113
101
  and then simply select the example you'd like to run:
114
102
 
115
103
  ```sh
116
- $ yarn dev:vite # Vite
117
- $ yarn dev:nextjs # Next.js
118
- $ yarn dev:cra # Create React App
104
+ $ pnpm dev:vite # Vite
105
+ $ pnpm dev:nextjs # Next.js
106
+ $ pnpm dev:cra # Create React App
119
107
  ```
120
108
 
121
109
  ## License
@@ -1,14 +1,6 @@
1
1
  type Logo = {
2
2
  testnet?: boolean;
3
3
  };
4
- export declare const Ethereum: ({ testnet, ...props }: Logo) => import("react/jsx-runtime").JSX.Element;
5
- export declare const LensChain: ({ testnet, ...props }: {
6
- testnet?: boolean;
7
- }) => import("react/jsx-runtime").JSX.Element;
8
- export declare const Polygon: ({ testnet, ...props }: Logo) => import("react/jsx-runtime").JSX.Element;
9
- export declare const Optimism: ({ testnet, ...props }: Logo) => import("react/jsx-runtime").JSX.Element;
10
- export declare const Arbitrum: ({ testnet, ...props }: Logo) => import("react/jsx-runtime").JSX.Element;
11
- export declare const Telos: ({ testnet, ...props }: Logo) => import("react/jsx-runtime").JSX.Element;
12
4
  declare const _default: {
13
5
  UnknownChain: ({ testnet, ...props }: Logo) => import("react/jsx-runtime").JSX.Element;
14
6
  Base: ({ testnet, ...props }: {
@@ -1,9 +1,3 @@
1
- export declare const Scan: ({ ...props }: {
2
- [x: string]: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- export declare const Download: ({ ...props }: {
5
- [x: string]: any;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
1
  export declare const ExternalLinkIcon: ({ ...props }: {
8
2
  [x: string]: any;
9
3
  }) => import("react/jsx-runtime").JSX.Element;
@@ -19,9 +13,6 @@ export declare const TickIcon: ({ ...props }: {
19
13
  export declare const RetryIconCircle: ({ ...props }: {
20
14
  [x: string]: any;
21
15
  }) => import("react/jsx-runtime").JSX.Element;
22
- export declare const RetryIcon: ({ ...props }: {
23
- [x: string]: any;
24
- }) => import("react/jsx-runtime").JSX.Element;
25
16
  export declare const CopyToClipboardIcon: ({ ...props }: {
26
17
  [x: string]: any;
27
18
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,86 +1,3 @@
1
- export declare const Mock: ({ ...props }: {
2
- [x: string]: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- export declare const Injected: ({ ...props }: {
5
- [x: string]: any;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export declare const WalletConnect: ({ background, ...props }: {
8
- [x: string]: any;
9
- background?: boolean | undefined;
10
- }) => import("react/jsx-runtime").JSX.Element;
11
- export declare const MetaMask: ({ background, ...props }: {
12
- [x: string]: any;
13
- background?: boolean | undefined;
14
- }) => import("react/jsx-runtime").JSX.Element;
15
- export declare const Coinbase: ({ background, ...props }: {
16
- [x: string]: any;
17
- background?: boolean | undefined;
18
- }) => import("react/jsx-runtime").JSX.Element;
19
- export declare const FamilyAccount: () => import("react/jsx-runtime").JSX.Element;
20
- export declare const Family: ({ ...props }: {
21
- [x: string]: any;
22
- }) => import("react/jsx-runtime").JSX.Element;
23
- export declare const Trust: ({ theme, ...props }: {
24
- [x: string]: any;
25
- theme?: string | undefined;
26
- }) => import("react/jsx-runtime").JSX.Element;
27
- export declare const Argent: ({ ...props }: {
28
- [x: string]: any;
29
- }) => import("react/jsx-runtime").JSX.Element;
30
- export declare const ImToken: ({ ...props }: {
31
- [x: string]: any;
32
- }) => import("react/jsx-runtime").JSX.Element;
33
- export declare const Frame: ({ ...props }: {
34
- [x: string]: any;
35
- }) => import("react/jsx-runtime").JSX.Element;
36
- export declare const Rainbow: ({ round, ...props }: {
37
- [x: string]: any;
38
- round?: boolean | undefined;
39
- }) => import("react/jsx-runtime").JSX.Element;
40
- export declare const Brave: ({ ...props }: {
41
- [x: string]: any;
42
- }) => import("react/jsx-runtime").JSX.Element;
43
- export declare const Crypto: ({ ...props }: {
44
- [x: string]: any;
45
- }) => import("react/jsx-runtime").JSX.Element;
46
- export declare const Ledger: ({ ...props }: {
47
- [x: string]: any;
48
- }) => import("react/jsx-runtime").JSX.Element;
49
- export declare const Steak: ({ ...props }: {
50
- [x: string]: any;
51
- }) => import("react/jsx-runtime").JSX.Element;
52
- export declare const Unstoppable: ({ ...props }: {
53
- [x: string]: any;
54
- }) => import("react/jsx-runtime").JSX.Element;
55
- export declare const ONTO: ({ ...props }: {
56
- [x: string]: any;
57
- }) => import("react/jsx-runtime").JSX.Element;
58
- export declare const Slope: ({ ...props }: {
59
- [x: string]: any;
60
- }) => import("react/jsx-runtime").JSX.Element;
61
- export declare const Safe: ({ ...props }: {
62
- [x: string]: any;
63
- }) => import("react/jsx-runtime").JSX.Element;
64
- export declare const Frontier: ({ ...props }: {
65
- [x: string]: any;
66
- }) => import("react/jsx-runtime").JSX.Element;
67
- export declare const Zerion: ({ ...props }: {
68
- [x: string]: any;
69
- }) => import("react/jsx-runtime").JSX.Element;
70
- export declare const Phantom: ({ background, ...props }: {
71
- [x: string]: any;
72
- background?: boolean | undefined;
73
- }) => import("react/jsx-runtime").JSX.Element;
74
- export declare const PlaceHolder: () => import("react/jsx-runtime").JSX.Element;
75
- export declare const Dawn: ({ ...props }: {
76
- [x: string]: any;
77
- }) => import("react/jsx-runtime").JSX.Element;
78
- export declare const InfinityWallet: ({ ...props }: {
79
- [x: string]: any;
80
- }) => import("react/jsx-runtime").JSX.Element;
81
- export declare const OtherWallets: ({ ...props }: {
82
- [x: string]: any;
83
- }) => import("react/jsx-runtime").JSX.Element;
84
1
  export declare const OtherSocials: ({ ...props }: {
85
2
  [x: string]: any;
86
3
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,7 @@
1
- import React from 'react';
2
- import { All } from '../../types';
1
+ import type React from 'react';
3
2
  type BalanceProps = {
4
3
  hideIcon?: boolean;
5
4
  hideSymbol?: boolean;
6
5
  };
7
6
  export declare const Balance: React.FC<BalanceProps>;
8
- declare const BalanceButton: React.FC<All & BalanceProps>;
9
- export default BalanceButton;
7
+ export {};
@@ -1,4 +1,4 @@
1
- import { AlertProps } from './types';
1
+ import type { AlertProps } from './types';
2
2
  declare const Alert: {
3
3
  ({ children, error, icon }: AlertProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  type Hash = `0x${string}`;
3
3
  export type CustomAvatarProps = {
4
4
  address?: Hash | undefined;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { BrowserIconProps } from './types';
2
+ import type { BrowserIconProps } from './types';
3
3
  declare const BrowserIcon: React.ForwardRefExoticComponent<BrowserIconProps & React.RefAttributes<HTMLElement>>;
4
4
  export default BrowserIcon;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { ButtonProps } from './types';
1
+ import type React from 'react';
2
+ import type { ButtonProps } from './types';
3
3
  declare const Button: React.FC<ButtonProps>;
4
4
  export default Button;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export type ButtonProps = {
3
3
  className?: string;
4
4
  children?: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  declare const Chain: React.FC<{
3
3
  id?: number;
4
4
  unsupported?: boolean;
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  declare const ChainSelector: React.FC;
3
3
  export default ChainSelector;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  declare const ChainSelectDropdown: React.FC<{
3
3
  children?: React.ReactNode;
4
4
  open: boolean;
@@ -1,4 +1,4 @@
1
- declare const ChainSelectList: ({ variant, }: {
1
+ declare const ChainSelectList: ({ variant }: {
2
2
  variant?: "primary" | "secondary";
3
3
  }) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ChainSelectList;
@@ -1,5 +1,4 @@
1
1
  export declare const ConnectorButton: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, any, {}, never>;
2
- export declare const ConnectorAnchor: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLAnchorElement, import("framer-motion").HTMLMotionProps<"a">>, any, {}, never>;
3
2
  export declare const ConnectorLabel: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLSpanElement, import("framer-motion").HTMLMotionProps<"span">>, any, {}, never>;
4
3
  export declare const ConnectorIcon: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
5
4
  export declare const RecentlyUsedTag: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLSpanElement, import("framer-motion").HTMLMotionProps<"span">>, any, {}, never>;
@@ -1,4 +1,4 @@
1
- declare const CopyToClipboardIcon: ({ copied, small, }: {
1
+ declare const CopyToClipboardIcon: ({ copied, small }: {
2
2
  copied?: boolean;
3
3
  small?: boolean;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  declare const CopyToClipboard: React.FC<{
3
3
  string?: string;
4
4
  children?: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import QRCodeUtil from 'qrcode';
2
- import React from 'react';
2
+ import type React from 'react';
3
3
  type Props = {
4
4
  ecl?: QRCodeUtil.QRCodeErrorCorrectionLevel;
5
5
  size?: number;
@@ -1,5 +1,5 @@
1
- import { CustomQRCodeProps } from './types';
2
- declare function CustomQRCode({ value, image, imageBackground, imagePosition, tooltipMessage, }: CustomQRCodeProps): import("react/jsx-runtime").JSX.Element;
1
+ import type { CustomQRCodeProps } from './types';
2
+ declare function CustomQRCode({ value, image, imageBackground, imagePosition, tooltipMessage }: CustomQRCodeProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace CustomQRCode {
4
4
  var displayName: string;
5
5
  }
@@ -1,6 +1,5 @@
1
1
  export declare const QRCodeContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
2
2
  export declare const QRCodeContent: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
3
- export declare const PlaceholderKeyframes: import("styled-components").Keyframes;
4
3
  export declare const QRPlaceholder: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
5
4
  export declare const LogoContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
6
5
  export declare const LogoIcon: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export type CustomQRCodeProps = {
3
3
  value?: string;
4
4
  image?: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  declare const FitText: {
3
- ({ children, maxFontSize, minFontSize }: {
3
+ ({ children, maxFontSize, minFontSize, }: {
4
4
  children: React.ReactNode;
5
5
  maxFontSize?: number;
6
6
  minFontSize?: number;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { InputProps } from './types';
2
+ import type { InputProps } from './types';
3
3
  declare const Input: React.FC<InputProps>;
4
4
  export default Input;
@@ -1,2 +1,2 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export type InputProps = {} & React.InputHTMLAttributes<HTMLInputElement>;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { Variants } from 'framer-motion';
3
- import { CustomTheme } from '../../../types';
1
+ import { type Variants } from 'framer-motion';
2
+ import type React from 'react';
3
+ import type { CustomTheme } from '../../../types';
4
4
  export declare const contentVariants: Variants;
5
5
  type ModalProps = {
6
6
  open?: boolean;
@@ -18,7 +18,7 @@ type ModalProps = {
18
18
  };
19
19
  };
20
20
  declare const Modal: React.FC<ModalProps>;
21
- export declare const OrDivider: ({ children, hideHr, }: {
21
+ export declare const OrDivider: ({ children, hideHr }: {
22
22
  children?: React.ReactNode;
23
23
  hideHr?: boolean;
24
24
  }) => import("react/jsx-runtime").JSX.Element;
@@ -14,7 +14,6 @@ export declare const ModalH1: import("styled-components").StyledComponent<import
14
14
  export declare const ModalBody: import("styled-components").StyledComponent<"div", any, {
15
15
  $error?: boolean;
16
16
  }, never>;
17
- export declare const ModalBodySmall: import("styled-components").StyledComponent<"div", any, {}, never>;
18
17
  export declare const BackgroundOverlay: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {
19
18
  $active: boolean;
20
19
  $blur?: number;
@@ -26,10 +25,6 @@ export declare const PageContainer: import("styled-components").StyledComponent<
26
25
  export declare const PageContents: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
27
26
  export declare const ModalContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
28
27
  export declare const CloseButton: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, any, {}, never>;
29
- export declare const SiweButton: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, any, {}, never>;
30
28
  export declare const BackButton: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, any, {}, never>;
31
29
  export declare const InfoButton: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLButtonElement, import("framer-motion").HTMLMotionProps<"button">>, any, {}, never>;
32
30
  export declare const Container: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
33
- export declare const Disclaimer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
34
- export declare const DisclaimerBackground: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
35
- export declare const SignInTooltip: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
@@ -1,5 +1,4 @@
1
1
  declare const PoweredByFooter: ({ showDisclaimer }: {
2
2
  showDisclaimer?: boolean;
3
3
  }) => import("react/jsx-runtime").JSX.Element;
4
- export declare const Disclaimer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
5
4
  export default PoweredByFooter;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export declare const ScrollArea: ({ children, height, backgroundColor, mobileDirection, }: {
3
3
  children: React.ReactNode;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- declare const SquircleSpinner: ({ logo, connecting, }: {
1
+ declare const SquircleSpinner: ({ logo, connecting }: {
2
2
  logo?: React.ReactNode;
3
3
  connecting?: boolean;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
+ import type { All } from '../../../types';
2
3
  import { ThemeContainer } from './styles';
3
- import { All } from '../../../types';
4
4
  type ThemedButtonProps = {
5
5
  children?: React.ReactNode;
6
6
  variant?: 'primary' | 'secondary' | 'tertiary';
@@ -9,7 +9,6 @@ type ThemedButtonProps = {
9
9
  style?: React.CSSProperties;
10
10
  onClick?: () => void;
11
11
  };
12
- export declare const PlaceholderButton: () => import("react/jsx-runtime").JSX.Element;
13
12
  declare const ThemedButton: React.FC<ThemedButtonProps & All>;
14
13
  export default ThemedButton;
15
14
  export { ThemeContainer };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { TooltipProps } from './types';
1
+ import type React from 'react';
2
+ import type { TooltipProps } from './types';
3
3
  declare const Tooltip: React.FC<TooltipProps>;
4
4
  export default Tooltip;
@@ -1,4 +1,4 @@
1
- import { TooltipSizeProps } from './types';
1
+ import type { TooltipSizeProps } from './types';
2
2
  export declare const TooltipWindow: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
3
3
  export declare const TooltipContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {
4
4
  $size: TooltipSizeProps;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { Chain } from 'viem';
3
- import { CustomTheme, Mode, Theme } from '../../types';
1
+ import type React from 'react';
2
+ import type { Chain } from 'viem';
3
+ import type { CustomTheme, Mode, Theme } from '../../types';
4
4
  type Hash = `0x${string}`;
5
5
  type ConnectButtonRendererProps = {
6
6
  children?: (renderProps: {
@@ -1,4 +1,3 @@
1
1
  export declare const TextContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
2
- export declare const ChainContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
3
2
  export declare const IconContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
4
3
  export declare const UnsupportedNetworkContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CustomTheme, Mode, Theme } from '../../types';
2
+ import type { CustomTheme, Mode, Theme } from '../../types';
3
3
  type ContextValue = {
4
4
  theme?: Theme;
5
5
  mode?: Mode;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  declare const CircleSpinner: ({ logo, smallLogo, connecting, unavailable, countdown, }: {
3
3
  logo?: React.ReactNode;
4
4
  smallLogo?: boolean;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- export declare const states: {
1
+ import type React from 'react';
2
+ declare const states: {
3
3
  CONNECTED: string;
4
4
  CONNECTING: string;
5
5
  EXPIRING: string;
@@ -1,2 +1,2 @@
1
- declare const ConnectWithMobile: React.FC<{}>;
1
+ declare const ConnectWithMobile: React.FC;
2
2
  export default ConnectWithMobile;
@@ -1,2 +1,2 @@
1
- declare const ConnectWithOAuth: React.FC<{}>;
1
+ declare const ConnectWithOAuth: React.FC;
2
2
  export default ConnectWithOAuth;
@@ -1,4 +1,4 @@
1
- import { CustomTheme, Languages, Mode, Theme } from '../../types';
1
+ import type { CustomTheme, Languages, Mode, Theme } from '../../types';
2
2
  declare const ConnectModal: React.FC<{
3
3
  mode?: Mode;
4
4
  theme?: Theme;
@@ -1,10 +1,9 @@
1
- import React from "react";
1
+ import type React from 'react';
2
2
  type LogoGraphicProps = {
3
3
  size?: string;
4
4
  logo: React.ReactNode;
5
5
  };
6
- export declare const LogoGraphic: ({ size, logo }: LogoGraphicProps) => import("react/jsx-runtime").JSX.Element;
7
- export declare const FloatingGraphic: ({ height, logoCenter, logoTopRight, logoTopLeft, logoBottomRight, logoBottomLeft }: {
6
+ export declare const FloatingGraphic: ({ height, logoCenter, logoTopRight, logoTopLeft, logoBottomRight, logoBottomLeft, }: {
8
7
  height?: string;
9
8
  logoCenter: LogoGraphicProps;
10
9
  logoTopRight?: LogoGraphicProps;
@@ -1,8 +1,8 @@
1
+ import { type SDKOverrides, type ThirdPartyAuthConfiguration } from '@openfort/openfort-js';
1
2
  import React from 'react';
2
- import { SDKOverrides, ThirdPartyAuthConfiguration } from '@openfort/openfort-js';
3
- import { useConnectCallbackProps } from '../../hooks/useConnectCallback';
4
- import { ContextValue } from './context';
5
- import { ConnectUIOptions, OpenfortWalletConfig } from './types';
3
+ import type { useConnectCallbackProps } from '../../hooks/useConnectCallback';
4
+ import { type ContextValue } from './context';
5
+ import { type ConnectUIOptions, type OpenfortWalletConfig } from './types';
6
6
  type OpenfortProviderProps = {
7
7
  children?: React.ReactNode;
8
8
  debugMode?: boolean;
@@ -1,15 +1,15 @@
1
- import React from 'react';
2
- import { CustomTheme, Languages, Mode, Theme } from '../../types';
3
- import { OAuthProvider, SDKOverrides, ThirdPartyAuthConfiguration } from '@openfort/openfort-js';
4
- import { ValueOf } from 'viem/_types/types/utils';
5
- import { useConnectCallbackProps } from '../../hooks/useConnectCallback';
6
- import { OpenfortUIOptionsExtended, OpenfortWalletConfig, routes } from './types';
1
+ import type { OAuthProvider, SDKOverrides, ThirdPartyAuthConfiguration } from '@openfort/openfort-js';
2
+ import type React from 'react';
3
+ import type { ValueOf } from 'viem/_types/types/utils';
4
+ import type { useConnectCallbackProps } from '../../hooks/useConnectCallback';
5
+ import type { CustomTheme, Languages, Mode, Theme } from '../../types';
6
+ import type { OpenfortUIOptionsExtended, OpenfortWalletConfig, routes } from './types';
7
7
  type Connector = {
8
8
  id: string;
9
- type?: "wallet";
9
+ type?: 'wallet';
10
10
  } | {
11
11
  id: OAuthProvider;
12
- type: "oauth";
12
+ type: 'oauth';
13
13
  };
14
14
  export type ErrorMessage = string | React.ReactNode | null;
15
15
  export type ContextValue = {
@@ -1,7 +1,7 @@
1
- import React, { ReactNode } from 'react';
2
- import { CustomAvatarProps, CustomTheme, Languages, Mode, Theme } from '../../types';
3
- import { AccountTypeEnum, RecoveryMethod } from '@openfort/openfort-js';
4
- import { CoreOpenfortProviderProps } from '../../openfort/CoreOpenfortProvider';
1
+ import type { AccountTypeEnum, RecoveryMethod } from '@openfort/openfort-js';
2
+ import type React from 'react';
3
+ import type { ReactNode } from 'react';
4
+ import type { CustomAvatarProps, CustomTheme, Languages, Mode, Theme } from '../../types';
5
5
  export declare const routes: {
6
6
  readonly PROVIDERS: "providers";
7
7
  readonly SOCIAL_PROVIDERS: "socialProviders";
@@ -60,7 +60,7 @@ type EncryptionSession = {
60
60
  * Password-based and passkey-based recovery methods do not require encryption sessions.
61
61
  */
62
62
  export type OpenfortWalletConfig = CommonWalletConfig & EncryptionSession;
63
- export type OpenfortUIOptions = {
63
+ type OpenfortUIOptions = {
64
64
  linkWalletOnSignUp?: boolean;
65
65
  authProviders: UIAuthProvider[];
66
66
  skipEmailVerification?: boolean;
@@ -68,10 +68,7 @@ export type OpenfortUIOptions = {
68
68
  privacyPolicyUrl?: string;
69
69
  logo?: React.ReactNode;
70
70
  };
71
- export type OpenfortSDKOptions = {
72
- overrides?: CoreOpenfortProviderProps['overrides'];
73
- };
74
- export type WalletRecoveryOptions = {
71
+ type WalletRecoveryOptions = {
75
72
  allowedMethods?: RecoveryMethod[];
76
73
  defaultMethod?: RecoveryMethod;
77
74
  };
@@ -1,4 +1,4 @@
1
- import { EasingFunction } from 'framer-motion';
1
+ import { type EasingFunction } from 'framer-motion';
2
2
  export type Easing = [number, number, number, number] | 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | 'circIn' | 'circOut' | 'circInOut' | 'backIn' | 'backOut' | 'backInOut' | 'anticipate' | EasingFunction;
3
3
  type Slide = {
4
4
  layoutId?: string;
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  declare const About: React.FC;
3
3
  export default About;
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import type React from 'react';
2
2
  declare const Wallets: React.FC;
3
3
  export default Wallets;