@openfort/react 0.0.27 → 0.0.29
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/LICENSE +25 -0
- package/README.md +5 -17
- package/build/assets/chains.d.ts +0 -8
- package/build/assets/icons.d.ts +0 -9
- package/build/assets/logos.d.ts +0 -83
- package/build/components/BalanceButton/index.d.ts +2 -4
- package/build/components/Common/Alert/index.d.ts +1 -1
- package/build/components/Common/Avatar/index.d.ts +1 -1
- package/build/components/Common/BrowserIcon/index.d.ts +1 -1
- package/build/components/Common/Button/index.d.ts +2 -2
- package/build/components/Common/Button/types.d.ts +1 -1
- package/build/components/Common/Chain/index.d.ts +1 -1
- package/build/components/Common/ChainSelect/index.d.ts +1 -1
- package/build/components/Common/ChainSelectDropdown/index.d.ts +1 -1
- package/build/components/Common/ChainSelectList/index.d.ts +1 -1
- package/build/components/Common/ConnectorList/styles.d.ts +0 -1
- package/build/components/Common/CopyToClipboard/CopyToClipboardIcon.d.ts +1 -1
- package/build/components/Common/CopyToClipboard/index.d.ts +1 -1
- package/build/components/Common/CustomQRCode/QRCode.d.ts +1 -1
- package/build/components/Common/CustomQRCode/index.d.ts +2 -2
- package/build/components/Common/CustomQRCode/styles.d.ts +0 -1
- package/build/components/Common/CustomQRCode/types.d.ts +1 -1
- package/build/components/Common/FitText/index.d.ts +1 -1
- package/build/components/Common/Input/index.d.ts +1 -1
- package/build/components/Common/Input/types.d.ts +1 -1
- package/build/components/Common/Modal/index.d.ts +4 -4
- package/build/components/Common/Modal/styles.d.ts +0 -5
- package/build/components/Common/PoweredByFooter/index.d.ts +0 -1
- package/build/components/Common/ScrollArea/index.d.ts +1 -1
- package/build/components/Common/SquircleSpinner/index.d.ts +1 -1
- package/build/components/Common/ThemedButton/index.d.ts +2 -3
- package/build/components/Common/Tooltip/index.d.ts +2 -2
- package/build/components/Common/Tooltip/styles.d.ts +1 -1
- package/build/components/ConnectButton/index.d.ts +3 -3
- package/build/components/ConnectButton/styles.d.ts +0 -1
- package/build/components/ConnectKitThemeProvider/ConnectKitThemeProvider.d.ts +1 -1
- package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.d.ts +1 -1
- package/build/components/ConnectModal/ConnectWithInjector/index.d.ts +2 -2
- package/build/components/ConnectModal/ConnectWithMobile.d.ts +1 -1
- package/build/components/ConnectModal/ConnectWithOAuth.d.ts +1 -1
- package/build/components/ConnectModal/index.d.ts +1 -1
- package/build/components/FloatingGraphic/index.d.ts +2 -3
- package/build/components/Openfort/OpenfortProvider.d.ts +4 -4
- package/build/components/Openfort/context.d.ts +8 -8
- package/build/components/Openfort/types.d.ts +6 -9
- package/build/components/Pages/About/graphics.d.ts +1 -1
- package/build/components/Pages/About/index.d.ts +1 -1
- package/build/components/Pages/Connectors/index.d.ts +1 -1
- package/build/components/Pages/EmailLogin/index.d.ts +1 -1
- package/build/components/Pages/EmailVerification/index.d.ts +1 -1
- package/build/components/Pages/ForgotPassword/index.d.ts +1 -1
- package/build/components/Pages/LinkEmail/index.d.ts +1 -1
- package/build/components/Pages/Loading/index.d.ts +1 -1
- package/build/components/Pages/MobileConnectors/index.d.ts +1 -1
- package/build/components/Pages/Onboarding/index.d.ts +1 -1
- package/build/components/Pages/Profile/index.d.ts +1 -1
- package/build/components/Pages/Providers/index.d.ts +2 -2
- package/build/components/Pages/Recover/index.d.ts +1 -1
- package/build/components/Pages/SoicalProviders/index.d.ts +1 -1
- package/build/components/Pages/SwitchNetworks/index.d.ts +1 -1
- package/build/components/PasswordStrength/PasswordStrengthIndicator.d.ts +1 -1
- package/build/components/PasswordStrength/password-utility.d.ts +2 -52
- package/build/components/contexts/web3/index.d.ts +2 -2
- package/build/constants/chainConfigs.d.ts +1 -1
- package/build/defaultConfig.d.ts +2 -3
- package/build/defaultConnectors.d.ts +2 -2
- package/build/hooks/openfort/auth/status.d.ts +2 -2
- package/build/hooks/openfort/auth/useAuthCallback.d.ts +16 -9
- package/build/hooks/openfort/auth/useConnectToWalletPostAuth.d.ts +2 -2
- package/build/hooks/openfort/auth/useEmailAuth.d.ts +13 -12
- package/build/hooks/openfort/auth/useGuestAuth.d.ts +7 -6
- package/build/hooks/openfort/auth/useOAuth.d.ts +9 -9
- package/build/hooks/openfort/auth/useSignOut.d.ts +1 -1
- package/build/hooks/openfort/auth/useWalletAuth.d.ts +2 -2
- package/build/hooks/openfort/hookConsistency.d.ts +1 -1
- package/build/hooks/openfort/use7702Authorization.d.ts +2 -1
- package/build/hooks/openfort/useProviders.d.ts +1 -1
- package/build/hooks/openfort/useWallets.d.ts +14 -16
- package/build/hooks/useChains.d.ts +1 -1
- package/build/hooks/useConnect.d.ts +11 -105
- package/build/hooks/useConnectCallback.d.ts +2 -2
- package/build/hooks/useConnectors.d.ts +0 -3
- package/build/hooks/useEnsFallbackConfig.d.ts +42 -2
- package/build/hooks/useFitText.d.ts +2 -2
- package/build/hooks/useGoogleFont.d.ts +1 -2
- package/build/hooks/useLocales.d.ts +1 -1
- package/build/index.d.ts +20 -19
- package/build/index.es.js +13318 -13309
- package/build/index.es.js.map +1 -1
- package/build/localizations/locales/ar-AE.d.ts +1 -1
- package/build/localizations/locales/ca-AD.d.ts +1 -1
- package/build/localizations/locales/ee-EE.d.ts +1 -1
- package/build/localizations/locales/es-ES.d.ts +1 -1
- package/build/localizations/locales/fa-IR.d.ts +1 -1
- package/build/localizations/locales/fr-FR.d.ts +1 -1
- package/build/localizations/locales/index.d.ts +1 -1
- package/build/localizations/locales/ja-JP.d.ts +1 -1
- package/build/localizations/locales/pt-BR.d.ts +1 -1
- package/build/localizations/locales/ru-RU.d.ts +1 -1
- package/build/localizations/locales/tr-TR.d.ts +1 -1
- package/build/localizations/locales/vi-VN.d.ts +1 -1
- package/build/localizations/locales/zh-CN.d.ts +1 -1
- package/build/openfort/CoreOpenfortProvider.d.ts +7 -5
- package/build/openfort/context.d.ts +1 -1
- package/build/openfort/core/client.d.ts +1 -15
- package/build/openfort/core/index.d.ts +1 -1
- package/build/openfort/useOpenfort.d.ts +1 -1
- package/build/styles/index.d.ts +1 -1
- package/build/types.d.ts +3 -3
- package/build/utils/index.d.ts +1 -7
- package/build/utils/logger.d.ts +2 -2
- package/build/utils/oauthErrorHandler.d.ts +0 -1
- package/build/utils/p3.d.ts +0 -1
- package/build/utils/wallets.d.ts +0 -16
- package/build/version.d.ts +1 -1
- package/build/wallets/index.d.ts +1 -1
- package/build/wallets/useWallets.d.ts +2 -2
- package/package.json +16 -18
- package/build/components/Common/DynamicContainer/index.d.ts +0 -7
- package/build/components/Common/LazyImage/index.d.ts +0 -8
- package/build/components/Common/Logo/index.d.ts +0 -8
- package/build/components/Common/Logo/styles.d.ts +0 -6
- package/build/components/NetworkButton/index.d.ts +0 -8
- package/build/components/Pages/Connectors/styles.d.ts +0 -10
- package/build/components/Pages/SoicalProviders/styles.d.ts +0 -3
- package/build/defaultTransports.d.ts +0 -38
- package/build/hooks/connectors/useCoinbaseWalletUri.d.ts +0 -0
- package/build/hooks/openfort/auth/useThirdPartyAuth.d.ts +0 -1
- package/build/hooks/useLocalStorage.d.ts +0 -7
- package/build/styles/defaultTheme.d.ts +0 -3
- package/build/styles/types.d.ts +0 -80
- 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
|
-
$
|
|
92
|
+
$ pnpm install
|
|
105
93
|
```
|
|
106
94
|
|
|
107
95
|
and start the code bundler:
|
|
108
96
|
|
|
109
97
|
```sh
|
|
110
|
-
$
|
|
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
|
-
$
|
|
117
|
-
$
|
|
118
|
-
$
|
|
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
|
package/build/assets/chains.d.ts
CHANGED
|
@@ -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 }: {
|
package/build/assets/icons.d.ts
CHANGED
|
@@ -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;
|
package/build/assets/logos.d.ts
CHANGED
|
@@ -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
|
-
|
|
9
|
-
export default BalanceButton;
|
|
7
|
+
export {};
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import { CustomQRCodeProps } from './types';
|
|
2
|
-
declare function CustomQRCode({ value, image, imageBackground, imagePosition, tooltipMessage
|
|
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,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
|
|
2
|
-
import
|
|
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,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 { 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,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,10 +1,9 @@
|
|
|
1
|
-
import React from
|
|
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
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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?:
|
|
9
|
+
type?: 'wallet';
|
|
10
10
|
} | {
|
|
11
11
|
id: OAuthProvider;
|
|
12
|
-
type:
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
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;
|