@openfort/react 0.0.26 → 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.
- 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/useConnectWithSiwe.d.ts +3 -1
- package/build/hooks/openfort/useProviders.d.ts +1 -1
- package/build/hooks/openfort/useWallets.d.ts +9 -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/hooks/useWalletConnectModal.d.ts +5 -1
- package/build/index.d.ts +20 -19
- package/build/index.es.js +12819 -13088
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthPlayerResponse } from '@openfort/openfort-js';
|
|
1
|
+
import type { AuthPlayerResponse } from '@openfort/openfort-js';
|
|
2
2
|
export type useConnectCallbackProps = {
|
|
3
3
|
onConnect?: ({ address, connectorId, user, }: {
|
|
4
4
|
address?: string;
|
|
@@ -7,4 +7,4 @@ export type useConnectCallbackProps = {
|
|
|
7
7
|
}) => void;
|
|
8
8
|
onDisconnect?: () => void;
|
|
9
9
|
};
|
|
10
|
-
export declare const useConnectCallback: ({ onConnect, onDisconnect
|
|
10
|
+
export declare const useConnectCallback: ({ onConnect, onDisconnect }: useConnectCallbackProps) => void;
|
|
@@ -3,7 +3,4 @@ export declare function useConnectors(): readonly Connector<import("wagmi").Crea
|
|
|
3
3
|
export declare function useConnector(id: string, uuid?: string): Connector<import("wagmi").CreateConnectorFn> | undefined;
|
|
4
4
|
export declare function useFamilyAccountsConnector(): Connector<import("wagmi").CreateConnectorFn> | undefined;
|
|
5
5
|
export declare function useFamilyConnector(): Connector<import("wagmi").CreateConnectorFn> | undefined;
|
|
6
|
-
export declare function useInjectedConnector(uuid?: string): Connector<import("wagmi").CreateConnectorFn> | undefined;
|
|
7
6
|
export declare function useWalletConnectConnector(): Connector<import("wagmi").CreateConnectorFn> | undefined;
|
|
8
|
-
export declare function useCoinbaseWalletConnector(): Connector<import("wagmi").CreateConnectorFn> | undefined;
|
|
9
|
-
export declare function useMetaMaskConnector(): Connector<import("wagmi").CreateConnectorFn> | undefined;
|
|
@@ -1,2 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare function useEnsFallbackConfig(): import("wagmi").Config<readonly [{
|
|
2
|
+
blockExplorers: {
|
|
3
|
+
readonly default: {
|
|
4
|
+
readonly name: "Etherscan";
|
|
5
|
+
readonly url: "https://etherscan.io";
|
|
6
|
+
readonly apiUrl: "https://api.etherscan.io/api";
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
blockTime: 12000;
|
|
10
|
+
contracts: {
|
|
11
|
+
readonly ensUniversalResolver: {
|
|
12
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
13
|
+
readonly blockCreated: 23085558;
|
|
14
|
+
};
|
|
15
|
+
readonly multicall3: {
|
|
16
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
17
|
+
readonly blockCreated: 14353601;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
ensTlds?: readonly string[] | undefined;
|
|
21
|
+
id: 1;
|
|
22
|
+
name: "Ethereum";
|
|
23
|
+
nativeCurrency: {
|
|
24
|
+
readonly name: "Ether";
|
|
25
|
+
readonly symbol: "ETH";
|
|
26
|
+
readonly decimals: 18;
|
|
27
|
+
};
|
|
28
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
29
|
+
rpcUrls: {
|
|
30
|
+
readonly default: {
|
|
31
|
+
readonly http: readonly ["https://eth.merkle.io"];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
sourceId?: number | undefined | undefined;
|
|
35
|
+
testnet?: boolean | undefined | undefined;
|
|
36
|
+
custom?: Record<string, unknown> | undefined;
|
|
37
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
38
|
+
formatters?: undefined;
|
|
39
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
40
|
+
}], {
|
|
41
|
+
1: import("viem").HttpTransport<undefined, false>;
|
|
42
|
+
}, readonly import("wagmi").CreateConnectorFn[]> | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LocaleProps } from '../localizations/locales';
|
|
1
|
+
import type { LocaleProps } from '../localizations/locales';
|
|
2
2
|
export default function useLocales(replacements?: any): LocaleProps;
|
package/build/index.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
export {
|
|
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 { UIAuthProvider as AuthProvider, } from './components/Openfort/types';
|
|
7
|
-
export { OpenfortProvider, } from './components/Openfort/OpenfortProvider';
|
|
8
|
-
export { OpenfortButton } from './components/ConnectButton';
|
|
1
|
+
export { AccountTypeEnum, AuthInitPayload, AuthPlayerResponse, AuthResponse, EmbeddedAccount, OpenfortEventMap, OpenfortEvents, openfortEvents, RecoveryMethod, RecoveryParams, SignedMessagePayload, } from '@openfort/openfort-js';
|
|
9
2
|
export { default as Avatar } from './components/Common/Avatar';
|
|
10
3
|
export { default as ChainIcon } from './components/Common/Chain';
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export { useUI } from "./hooks/openfort/useUI";
|
|
15
|
-
export { useWallets, UserWallet } from "./hooks/openfort/useWallets";
|
|
16
|
-
export { RecoveryMethod, AuthPlayerResponse, RecoveryParams, AccountTypeEnum, openfortEvents, OpenfortEventMap, OpenfortEvents, AuthResponse, EmbeddedAccount, SignedMessagePayload, AuthInitPayload } from "@openfort/openfort-js";
|
|
17
|
-
export { useOpenfortCore as useOpenfort } from './openfort/useOpenfort';
|
|
18
|
-
export { useConnectWithSiwe } from './hooks/openfort/useConnectWithSiwe';
|
|
19
|
-
export { use7702Authorization, type SignAuthorizationParameters, type SignAuthorizationReturnType, } from './hooks/openfort/use7702Authorization';
|
|
4
|
+
export { OpenfortButton } from './components/ConnectButton';
|
|
5
|
+
export { OpenfortProvider } from './components/Openfort/OpenfortProvider';
|
|
6
|
+
export { UIAuthProvider as AuthProvider } from './components/Openfort/types';
|
|
20
7
|
export { embeddedWalletId } from './constants/openfort';
|
|
21
|
-
export {
|
|
8
|
+
export { default as getDefaultConfig } from './defaultConfig';
|
|
9
|
+
export { default as getDefaultConnectors } from './defaultConnectors';
|
|
22
10
|
export { useAuthCallback } from './hooks/openfort/auth/useAuthCallback';
|
|
11
|
+
export { useEmailAuth } from './hooks/openfort/auth/useEmailAuth';
|
|
23
12
|
export { useGuestAuth } from './hooks/openfort/auth/useGuestAuth';
|
|
24
|
-
export { useWalletAuth } from './hooks/openfort/auth/useWalletAuth';
|
|
25
13
|
export { useOAuth } from './hooks/openfort/auth/useOAuth';
|
|
26
14
|
export { useSignOut } from './hooks/openfort/auth/useSignOut';
|
|
15
|
+
export { useWalletAuth } from './hooks/openfort/auth/useWalletAuth';
|
|
16
|
+
export { type SignAuthorizationParameters, type SignAuthorizationReturnType, use7702Authorization, } from './hooks/openfort/use7702Authorization';
|
|
17
|
+
export { useConnectWithSiwe } from './hooks/openfort/useConnectWithSiwe';
|
|
18
|
+
export { useUI } from './hooks/openfort/useUI';
|
|
19
|
+
export { useUser } from './hooks/openfort/useUser';
|
|
20
|
+
export { UserWallet, useWallets } from './hooks/openfort/useWallets';
|
|
21
|
+
export { useChainIsSupported } from './hooks/useChainIsSupported';
|
|
22
|
+
export { useChains } from './hooks/useChains';
|
|
23
|
+
export { useOpenfortCore as useOpenfort } from './openfort/useOpenfort';
|
|
24
|
+
export type { All, CustomAvatarProps, CustomTheme, Languages, Mode, OpenfortHookOptions, OpenfortOptions, OpenfortWalletConfig, Theme, } from './types';
|
|
25
|
+
export { OAuthProvider, OpenfortError, OpenfortErrorType, SDKOverrides, ThirdPartyOAuthProvider, } from './types';
|
|
26
|
+
export { OPENFORT_VERSION } from './version';
|
|
27
|
+
export { wallets } from './wallets';
|