@getpara/react-sdk-lite 2.18.0 → 2.19.0
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/dist/aa/hooks/alchemy.d.ts +15 -0
- package/dist/aa/hooks/alchemy.js +9 -0
- package/dist/aa/hooks/biconomy.d.ts +15 -0
- package/dist/aa/hooks/biconomy.js +9 -0
- package/dist/aa/hooks/cdp.d.ts +14 -0
- package/dist/aa/hooks/cdp.js +9 -0
- package/dist/aa/hooks/gelato.d.ts +14 -0
- package/dist/aa/hooks/gelato.js +9 -0
- package/dist/aa/hooks/pimlico.d.ts +15 -0
- package/dist/aa/hooks/pimlico.js +9 -0
- package/dist/aa/hooks/porto.d.ts +15 -0
- package/dist/aa/hooks/porto.js +9 -0
- package/dist/aa/hooks/rhinestone.d.ts +15 -0
- package/dist/aa/hooks/rhinestone.js +9 -0
- package/dist/aa/hooks/safe.d.ts +15 -0
- package/dist/aa/hooks/safe.js +9 -0
- package/dist/aa/hooks/thirdweb.d.ts +13 -0
- package/dist/aa/hooks/thirdweb.js +9 -0
- package/dist/aa/hooks/zerodev.d.ts +15 -0
- package/dist/aa/hooks/zerodev.js +9 -0
- package/dist/aa/useWagmiSignerEnhancer.d.ts +15 -0
- package/dist/aa/useWagmiSignerEnhancer.js +45 -0
- package/dist/cli/cli.mjs +0 -0
- package/dist/index.d.ts +11 -12
- package/dist/index.js +10 -12
- package/dist/modal/ParaModal.js +1 -1
- package/dist/modal/components/Header/hooks/useStepTitle.d.ts +1 -1
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +1 -1
- package/dist/modal/components/QuantityInput.js +1 -0
- package/dist/modal/components/SearchableButtonList.js +20 -11
- package/dist/modal/components/flows/account/AddFunds/AddFundsSettings.js +1 -0
- package/dist/modal/components/flows/account/Wallet/Wallet.js +1 -1
- package/dist/provider/ParaProviderMin.js +46 -54
- package/dist/provider/actions/index.d.ts +2 -34
- package/dist/provider/actions/index.js +43 -34
- package/dist/provider/hooks/mutations/index.d.ts +2 -29
- package/dist/provider/hooks/mutations/index.js +3 -58
- package/dist/provider/hooks/mutations/useAddAuthMethod.d.ts +2 -2
- package/dist/provider/hooks/mutations/useExportPrivateKey.d.ts +24 -4
- package/dist/provider/hooks/mutations/useExportPrivateKey.js +7 -2
- package/dist/provider/hooks/mutations/useSwitchWallets.d.ts +2 -2
- package/dist/provider/hooks/mutations/useVerifyNewAccount.d.ts +2 -2
- package/dist/provider/hooks/queries/index.d.ts +2 -2
- package/dist/provider/hooks/queries/index.js +2 -3
- package/dist/provider/hooks/queries/useAccount.d.ts +14 -69
- package/dist/provider/hooks/queries/useAccount.js +30 -136
- package/dist/provider/hooks/queries/useParaStatus.d.ts +7 -11
- package/dist/provider/hooks/queries/useParaStatus.js +9 -16
- package/dist/provider/hooks/queries/useProfileBalance.js +1 -1
- package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +14 -10
- package/dist/provider/hooks/utils/useEventListeners.js +1 -1
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/utils/renameMutations.d.ts +4 -2
- package/package.json +19 -18
- package/dist/aa/alchemy/hook.d.ts +0 -16708
- package/dist/aa/alchemy/hook.js +0 -26
- package/dist/aa/biconomy/hook.d.ts +0 -44
- package/dist/aa/biconomy/hook.js +0 -26
- package/dist/aa/cdp/hook.d.ts +0 -11
- package/dist/aa/cdp/hook.js +0 -26
- package/dist/aa/createSmartAccountHook.d.ts +0 -13
- package/dist/aa/createSmartAccountHook.js +0 -81
- package/dist/aa/gelato/hook.d.ts +0 -11
- package/dist/aa/gelato/hook.js +0 -26
- package/dist/aa/pimlico/hook.d.ts +0 -838
- package/dist/aa/pimlico/hook.js +0 -26
- package/dist/aa/porto/hook.d.ts +0 -12
- package/dist/aa/porto/hook.js +0 -26
- package/dist/aa/rhinestone/hook.d.ts +0 -12
- package/dist/aa/rhinestone/hook.js +0 -26
- package/dist/aa/safe/hook.d.ts +0 -12
- package/dist/aa/safe/hook.js +0 -26
- package/dist/aa/thirdweb/hook.d.ts +0 -12
- package/dist/aa/thirdweb/hook.js +0 -26
- package/dist/aa/types.d.ts +0 -21
- package/dist/aa/types.js +0 -1
- package/dist/aa/zerodev/hook.d.ts +0 -12
- package/dist/aa/zerodev/hook.js +0 -26
- package/dist/modal/components/flows/account/AddFunds/MoonPayEmbed.d.ts +0 -2
- package/dist/modal/components/flows/account/AddFunds/MoonPayEmbed.js +0 -7
- package/dist/provider/actions/getEmbeddedAccount.d.ts +0 -27
- package/dist/provider/actions/getEmbeddedAccount.js +0 -66
- package/dist/provider/actions/getWallet.d.ts +0 -5
- package/dist/provider/actions/getWallet.js +0 -18
- package/dist/provider/hooks/mutations/useAuthenticateWithEmailOrPhone.d.ts +0 -34
- package/dist/provider/hooks/mutations/useAuthenticateWithEmailOrPhone.js +0 -28
- package/dist/provider/hooks/mutations/useAuthenticateWithOAuth.d.ts +0 -34
- package/dist/provider/hooks/mutations/useAuthenticateWithOAuth.js +0 -28
- package/dist/provider/hooks/mutations/useClaimPregenWallets.d.ts +0 -34
- package/dist/provider/hooks/mutations/useClaimPregenWallets.js +0 -31
- package/dist/provider/hooks/mutations/useCreateGuestWallets.d.ts +0 -34
- package/dist/provider/hooks/mutations/useCreateGuestWallets.js +0 -31
- package/dist/provider/hooks/mutations/useCreatePregenWallet.d.ts +0 -34
- package/dist/provider/hooks/mutations/useCreatePregenWallet.js +0 -31
- package/dist/provider/hooks/mutations/useCreatePregenWalletPerType.d.ts +0 -34
- package/dist/provider/hooks/mutations/useCreatePregenWalletPerType.js +0 -28
- package/dist/provider/hooks/mutations/useCreateWallet.d.ts +0 -34
- package/dist/provider/hooks/mutations/useCreateWallet.js +0 -31
- package/dist/provider/hooks/mutations/useCreateWalletPerType.d.ts +0 -34
- package/dist/provider/hooks/mutations/useCreateWalletPerType.js +0 -28
- package/dist/provider/hooks/mutations/useEnable2fa.d.ts +0 -34
- package/dist/provider/hooks/mutations/useEnable2fa.js +0 -28
- package/dist/provider/hooks/mutations/useHasPregenWallet.d.ts +0 -34
- package/dist/provider/hooks/mutations/useHasPregenWallet.js +0 -28
- package/dist/provider/hooks/mutations/useIssueJwt.d.ts +0 -34
- package/dist/provider/hooks/mutations/useIssueJwt.js +0 -28
- package/dist/provider/hooks/mutations/useKeepSessionAlive.d.ts +0 -33
- package/dist/provider/hooks/mutations/useKeepSessionAlive.js +0 -28
- package/dist/provider/hooks/mutations/useLoginExternalWallet.d.ts +0 -34
- package/dist/provider/hooks/mutations/useLoginExternalWallet.js +0 -31
- package/dist/provider/hooks/mutations/useLogout.d.ts +0 -34
- package/dist/provider/hooks/mutations/useLogout.js +0 -28
- package/dist/provider/hooks/mutations/useResendVerificationCode.d.ts +0 -34
- package/dist/provider/hooks/mutations/useResendVerificationCode.js +0 -31
- package/dist/provider/hooks/mutations/useSetup2fa.d.ts +0 -34
- package/dist/provider/hooks/mutations/useSetup2fa.js +0 -28
- package/dist/provider/hooks/mutations/useSignMessage.d.ts +0 -34
- package/dist/provider/hooks/mutations/useSignMessage.js +0 -28
- package/dist/provider/hooks/mutations/useSignTransaction.d.ts +0 -34
- package/dist/provider/hooks/mutations/useSignTransaction.js +0 -31
- package/dist/provider/hooks/mutations/useSignUpOrLogIn.d.ts +0 -34
- package/dist/provider/hooks/mutations/useSignUpOrLogIn.js +0 -31
- package/dist/provider/hooks/mutations/useUpdatePregenWalletIdentifier.d.ts +0 -34
- package/dist/provider/hooks/mutations/useUpdatePregenWalletIdentifier.js +0 -31
- package/dist/provider/hooks/mutations/useVerify2fa.d.ts +0 -34
- package/dist/provider/hooks/mutations/useVerify2fa.js +0 -28
- package/dist/provider/hooks/mutations/useVerifyExternalWallet.d.ts +0 -34
- package/dist/provider/hooks/mutations/useVerifyExternalWallet.js +0 -31
- package/dist/provider/hooks/mutations/useVerifyFarcaster.d.ts +0 -34
- package/dist/provider/hooks/mutations/useVerifyFarcaster.js +0 -31
- package/dist/provider/hooks/mutations/useVerifyOAuth.d.ts +0 -34
- package/dist/provider/hooks/mutations/useVerifyOAuth.js +0 -28
- package/dist/provider/hooks/mutations/useVerifyTelegram.d.ts +0 -34
- package/dist/provider/hooks/mutations/useVerifyTelegram.js +0 -28
- package/dist/provider/hooks/mutations/useWaitForLogin.d.ts +0 -34
- package/dist/provider/hooks/mutations/useWaitForLogin.js +0 -31
- package/dist/provider/hooks/mutations/useWaitForSignup.d.ts +0 -34
- package/dist/provider/hooks/mutations/useWaitForSignup.js +0 -28
- package/dist/provider/hooks/mutations/useWaitForWalletCreation.d.ts +0 -34
- package/dist/provider/hooks/mutations/useWaitForWalletCreation.js +0 -28
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.d.ts +0 -8
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +0 -29
- package/dist/provider/hooks/queries/useWallet.d.ts +0 -5
- package/dist/provider/hooks/queries/useWallet.js +0 -26
|
@@ -4,24 +4,53 @@ import {
|
|
|
4
4
|
__spreadValues
|
|
5
5
|
} from "../chunk-MMUBH76A.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { forwardRef, useEffect, useMemo } from "react";
|
|
8
|
-
import { useStore } from "./stores/useStore.js";
|
|
7
|
+
import { forwardRef, useCallback, useEffect, useMemo } from "react";
|
|
8
|
+
import { useStore, store as storeInstance } from "./stores/useStore.js";
|
|
9
9
|
import { useAutoSessionKeepAlive } from "./hooks/utils/useAutoSessionKeepAlive.js";
|
|
10
10
|
import { useEventListeners } from "./hooks/utils/useEventListeners.js";
|
|
11
11
|
import { ExternalWalletWrapper } from "./components/ExternalWalletWrapper.js";
|
|
12
12
|
import { ParaModal } from "../modal/ParaModal.js";
|
|
13
13
|
import { isConfigType, isParaWeb } from "./utils/paraConfigTypeGuards.js";
|
|
14
14
|
import ParaWeb from "@getpara/web-sdk";
|
|
15
|
+
import { ParaProviderCore } from "@getpara/react-core/internal";
|
|
15
16
|
import { EXTERNAL_WALLET_TYPES } from "@getpara/web-sdk";
|
|
16
17
|
import { AccountLinkProvider } from "./providers/AccountLinkProvider.js";
|
|
17
18
|
import { AssetsProvider } from "./providers/AssetsProvider.js";
|
|
18
19
|
import { AuthProvider } from "./providers/AuthProvider/AuthProvider.js";
|
|
20
|
+
const coreStoreRef = storeInstance;
|
|
19
21
|
const ParaProviderMin = forwardRef(({ children, paraClientConfig, callbacks, config, externalWalletConfig, paraModalConfig }, ref) => {
|
|
20
22
|
var _a;
|
|
21
23
|
useEventListeners(callbacks);
|
|
22
24
|
useAutoSessionKeepAlive({ disabled: config.disableAutoSessionKeepAlive });
|
|
23
|
-
const
|
|
25
|
+
const setModalError = useStore((state) => state.setModalError);
|
|
26
|
+
const paraClient = useMemo(() => {
|
|
27
|
+
if (isParaWeb(paraClientConfig)) return paraClientConfig;
|
|
28
|
+
if (isConfigType(paraClientConfig)) {
|
|
29
|
+
return {
|
|
30
|
+
apiKey: paraClientConfig.apiKey,
|
|
31
|
+
env: paraClientConfig.env,
|
|
32
|
+
opts: paraClientConfig.opts,
|
|
33
|
+
createClient: (apiKey, env, opts) => env ? new ParaWeb(env, apiKey, opts) : new ParaWeb(apiKey, opts)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
throw new Error("Invalid Para config");
|
|
37
|
+
}, [paraClientConfig]);
|
|
38
|
+
const configureClient = useCallback(
|
|
39
|
+
(client2) => {
|
|
40
|
+
client2.setModalError = setModalError;
|
|
41
|
+
if (typeof globalThis !== "undefined" && globalThis.__PARA_PORTAL_URL_OVERRIDE__) {
|
|
42
|
+
client2.ctx.portalUrlOverride = globalThis.__PARA_PORTAL_URL_OVERRIDE__;
|
|
43
|
+
}
|
|
44
|
+
client2.portalTheme = paraModalConfig == null ? void 0 : paraModalConfig.theme;
|
|
45
|
+
},
|
|
46
|
+
[setModalError, paraModalConfig == null ? void 0 : paraModalConfig.theme]
|
|
47
|
+
);
|
|
24
48
|
const client = useStore((state) => state.client);
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
if (client) {
|
|
51
|
+
client.portalTheme = paraModalConfig == null ? void 0 : paraModalConfig.theme;
|
|
52
|
+
}
|
|
53
|
+
}, [paraModalConfig == null ? void 0 : paraModalConfig.theme, client]);
|
|
25
54
|
const setExternalWallets = useStore((state) => state.setExternalWallets);
|
|
26
55
|
const externalWallets = useStore((state) => state.externalWallets);
|
|
27
56
|
const setExternalWalletsWithFullAuth = useStore((state) => state.setExternalWalletsWithFullAuth);
|
|
@@ -32,33 +61,13 @@ const ParaProviderMin = forwardRef(({ children, paraClientConfig, callbacks, con
|
|
|
32
61
|
const connectionOnly = useStore((state) => state.connectionOnly);
|
|
33
62
|
const setModalConfig = useStore((state) => state.setModalConfig);
|
|
34
63
|
const modalConfig = useStore((state) => state.modalConfig);
|
|
35
|
-
const setAppName = useStore((state) => state.setAppName);
|
|
36
|
-
const appName = useStore((state) => state.appName);
|
|
37
|
-
const setFarcasterMiniAppConfig = useStore((state) => state.setFarcasterMiniAppConfig);
|
|
38
|
-
const farcasterMiniAppConfig = useStore((state) => state.farcasterMiniAppConfig);
|
|
39
|
-
const rpcUrl = useStore((state) => state.rpcUrl);
|
|
40
|
-
const setRpcUrl = useStore((state) => state.setRpcUrl);
|
|
41
64
|
const setProviderProps = useStore((state) => state.setProviderProps);
|
|
42
|
-
const setModalError = useStore((state) => state.setModalError);
|
|
43
|
-
const setParaState = useStore((state) => state.setParaState);
|
|
44
65
|
const paraState = useStore((state) => state.paraState);
|
|
45
66
|
useEffect(() => {
|
|
46
67
|
setProviderProps(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, config), externalWalletConfig), paraModalConfig), {
|
|
47
|
-
// Redacting walletConnect to avoid exposing project id
|
|
48
68
|
walletConnect: void 0
|
|
49
69
|
}));
|
|
50
70
|
}, [config, externalWalletConfig, paraModalConfig]);
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
if (rpcUrl !== config.rpcUrl) setRpcUrl(config.rpcUrl);
|
|
53
|
-
}, [config.rpcUrl]);
|
|
54
|
-
useEffect(() => {
|
|
55
|
-
if (appName !== config.appName) setAppName(config.appName);
|
|
56
|
-
}, [config.appName]);
|
|
57
|
-
useEffect(() => {
|
|
58
|
-
if (farcasterMiniAppConfig !== config.farcasterMiniAppConfig) {
|
|
59
|
-
setFarcasterMiniAppConfig(config.farcasterMiniAppConfig);
|
|
60
|
-
}
|
|
61
|
-
}, [config.farcasterMiniAppConfig]);
|
|
62
71
|
useEffect(() => {
|
|
63
72
|
if (modalConfig !== paraModalConfig) setModalConfig(paraModalConfig);
|
|
64
73
|
}, [paraModalConfig]);
|
|
@@ -96,30 +105,6 @@ const ParaProviderMin = forwardRef(({ children, paraClientConfig, callbacks, con
|
|
|
96
105
|
}
|
|
97
106
|
}
|
|
98
107
|
}, [externalWalletConfig == null ? void 0 : externalWalletConfig.createLinkedEmbeddedForExternalWallets]);
|
|
99
|
-
useEffect(() => {
|
|
100
|
-
if (!isConfigType(paraClientConfig) && !isParaWeb(paraClientConfig)) {
|
|
101
|
-
throw new Error("Invalid Para config");
|
|
102
|
-
}
|
|
103
|
-
const newClient = isParaWeb(paraClientConfig) ? paraClientConfig : paraClientConfig.env ? new ParaWeb(paraClientConfig.env, paraClientConfig.apiKey, paraClientConfig.opts) : new ParaWeb(paraClientConfig.apiKey, paraClientConfig.opts);
|
|
104
|
-
newClient.setModalError = setModalError;
|
|
105
|
-
if (typeof globalThis !== "undefined" && globalThis.__PARA_PORTAL_URL_OVERRIDE__) {
|
|
106
|
-
newClient.ctx.portalUrlOverride = globalThis.__PARA_PORTAL_URL_OVERRIDE__;
|
|
107
|
-
}
|
|
108
|
-
newClient.portalTheme = paraModalConfig == null ? void 0 : paraModalConfig.theme;
|
|
109
|
-
setClient(newClient);
|
|
110
|
-
}, [paraClientConfig]);
|
|
111
|
-
useEffect(() => {
|
|
112
|
-
if (client) {
|
|
113
|
-
client.portalTheme = paraModalConfig == null ? void 0 : paraModalConfig.theme;
|
|
114
|
-
}
|
|
115
|
-
}, [paraModalConfig == null ? void 0 : paraModalConfig.theme, client]);
|
|
116
|
-
useEffect(() => {
|
|
117
|
-
if (!client) return;
|
|
118
|
-
const unsubscribe = client.onStatePhaseChange((snapshot) => {
|
|
119
|
-
setParaState(snapshot);
|
|
120
|
-
});
|
|
121
|
-
return unsubscribe;
|
|
122
|
-
}, [client]);
|
|
123
108
|
const isReady = (_a = paraState == null ? void 0 : paraState.isReady) != null ? _a : false;
|
|
124
109
|
const ChildrenComponents = useMemo(() => {
|
|
125
110
|
if (!isReady) {
|
|
@@ -130,15 +115,22 @@ const ParaProviderMin = forwardRef(({ children, paraClientConfig, callbacks, con
|
|
|
130
115
|
!config.disableEmbeddedModal && /* @__PURE__ */ jsx(ParaModal, { ref })
|
|
131
116
|
] });
|
|
132
117
|
}, [isReady, children, config.disableEmbeddedModal, ref]);
|
|
133
|
-
if (!client) {
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
118
|
return /* @__PURE__ */ jsx(
|
|
137
|
-
|
|
119
|
+
ParaProviderCore,
|
|
138
120
|
{
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
121
|
+
paraClientConfig: paraClient,
|
|
122
|
+
config,
|
|
123
|
+
configureClient,
|
|
124
|
+
store: coreStoreRef,
|
|
125
|
+
waitForReady: false,
|
|
126
|
+
children: /* @__PURE__ */ jsx(
|
|
127
|
+
AuthProvider,
|
|
128
|
+
{
|
|
129
|
+
isTwoFactorAuthEnabled: paraModalConfig == null ? void 0 : paraModalConfig.twoFactorAuthEnabled,
|
|
130
|
+
defaultAuthIdentifier: paraModalConfig == null ? void 0 : paraModalConfig.defaultAuthIdentifier,
|
|
131
|
+
children: /* @__PURE__ */ jsx(AssetsProvider, { children: /* @__PURE__ */ jsx(ExternalWalletWrapper, { config: externalWalletConfig, children: /* @__PURE__ */ jsx(AccountLinkProvider, { children: ChildrenComponents }) }) })
|
|
132
|
+
}
|
|
133
|
+
)
|
|
142
134
|
}
|
|
143
135
|
);
|
|
144
136
|
});
|
|
@@ -1,36 +1,7 @@
|
|
|
1
1
|
import type ParaWeb from '@getpara/web-sdk';
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
4
|
-
export declare const verifyNewAccount: (para?: ParaWeb, args?: VerifyNewAccountParams) => Promise<VerifyNewAccountResponse>;
|
|
5
|
-
export declare const waitForLogin: (para?: ParaWeb, args?: WaitForLoginParams) => Promise<WaitForLoginResponse>;
|
|
6
|
-
export declare const waitForSignup: (para?: ParaWeb, args?: WaitForSignupParams) => Promise<true>;
|
|
7
|
-
export declare const waitForWalletCreation: (para?: ParaWeb, args?: WaitForWalletCreationParams) => Promise<WaitForWalletCreationResponse>;
|
|
8
|
-
export declare const verifyOAuth: (para?: ParaWeb, args?: VerifyOAuthProcessParams) => Promise<OAuthResponse>;
|
|
9
|
-
export declare const verifyFarcaster: (para?: ParaWeb, args?: VerifyFarcasterParams) => Promise<OAuthResponse>;
|
|
10
|
-
export declare const verifyTelegram: (para?: ParaWeb, args?: VerifyTelegramParams) => Promise<OAuthResponse>;
|
|
11
|
-
export declare const loginExternalWallet: (para?: ParaWeb, args?: LoginExternalWalletParams) => Promise<LoginExternalWalletResponse>;
|
|
12
|
-
export declare const verifyExternalWallet: (para?: ParaWeb, args?: VerifyExternalWalletParams) => Promise<VerifyExternalWalletResponse>;
|
|
13
|
-
export declare const setup2fa: (para?: ParaWeb) => Promise<Setup2faResponse>;
|
|
14
|
-
export declare const enable2fa: (para?: ParaWeb, args?: Enable2faParams) => Promise<void>;
|
|
15
|
-
export declare const verify2fa: (para?: ParaWeb, args?: Verify2faParams) => Promise<Verify2faResponse>;
|
|
16
|
-
export declare const keepSessionAlive: (para?: ParaWeb) => Promise<boolean>;
|
|
17
|
-
export declare const logout: (para?: ParaWeb, args?: LogoutParams) => Promise<void>;
|
|
18
|
-
export declare const resendVerificationCode: (para?: ParaWeb, args?: ResendVerificationCodeParams) => Promise<void>;
|
|
19
|
-
export declare const createWallet: (para?: ParaWeb, args?: CreateWalletParams) => Promise<CreateWalletResponse>;
|
|
20
|
-
export declare const createWalletPerType: (para?: ParaWeb, args?: CreateWalletPerTypeParams) => Promise<CreateWalletPerTypeResponse>;
|
|
21
|
-
export declare const createPregenWallet: (para?: ParaWeb, args?: CreatePregenWalletParams) => Promise<CreatePregenWalletResponse>;
|
|
22
|
-
export declare const createPregenWalletPerType: (para?: ParaWeb, args?: CreatePregenWalletPerTypeParams) => Promise<CreatePregenWalletPerTypeResponse>;
|
|
23
|
-
export declare const claimPregenWallets: (para?: ParaWeb, args?: ClaimPregenWalletsParams) => Promise<ClaimPregenWalletsResponse>;
|
|
24
|
-
export declare const hasPregenWallet: (para?: ParaWeb, args?: HasPregenWalletParams) => Promise<boolean>;
|
|
25
|
-
export declare const updatePregenWalletIdentifier: (para?: ParaWeb, args?: UpdatePregenWalletIdentifierParams) => Promise<void>;
|
|
26
|
-
export declare const createGuestWallets: (para?: ParaWeb) => Promise<CreateGuestWalletsResponse>;
|
|
27
|
-
export declare const signMessage: (para?: ParaWeb, args?: SignMessageParams) => Promise<FullSignatureRes>;
|
|
28
|
-
export declare const signTransaction: (para?: ParaWeb, args?: SignTransactionParams) => Promise<FullSignatureRes>;
|
|
29
|
-
export declare const getWalletBalance: (para?: ParaWeb, args?: GetWalletBalanceParams) => Promise<string>;
|
|
30
|
-
export declare const issueJwt: (para?: ParaWeb, args?: IssueJwtParams) => Promise<IssueJwtResponse>;
|
|
31
|
-
export declare const getLinkedAccounts: (para?: ParaWeb, args?: GetLinkedAccountsParams) => Promise<GetLinkedAccountsResponse>;
|
|
2
|
+
import type { LinkAccountParams, UnlinkAccountParams, VerifyEmailOrPhoneLinkParams, VerifyFarcasterParams, TelegramParams, VerifyOAuthProcessParams, BaseVerifyExternalWalletParams, AccountLinkInProgress, LinkedAccounts } from '@getpara/web-sdk';
|
|
3
|
+
export { generateCoreAction, type CoreAction, getEmbeddedAccount, type Account, getWallet, signUpOrLogIn, verifyNewAccount, waitForLogin, waitForSignup, waitForWalletCreation, verifyOAuth, verifyFarcaster, verifyTelegram, loginExternalWallet, verifyExternalWallet, setup2fa, enable2fa, verify2fa, keepSessionAlive, logout, resendVerificationCode, createWallet, createWalletPerType, createPregenWallet, createPregenWalletPerType, claimPregenWallets, hasPregenWallet, updatePregenWalletIdentifier, createGuestWallets, signMessage, signTransaction, getWalletBalance, issueJwt, getLinkedAccounts, addCredential, exportPrivateKey, authenticateWithEmailOrPhone, authenticateWithOAuth, } from '@getpara/react-core/internal';
|
|
32
4
|
export declare const accountLinkInProgress: (para?: ParaWeb) => Promise<AccountLinkInProgress>;
|
|
33
|
-
export declare const addCredential: (para?: ParaWeb, args?: AddCredentialParams) => Promise<string>;
|
|
34
5
|
export declare const linkAccount: (para?: ParaWeb, args?: LinkAccountParams) => Promise<AccountLinkInProgress>;
|
|
35
6
|
export declare const unlinkAccount: (para?: ParaWeb, args?: UnlinkAccountParams) => Promise<LinkedAccounts>;
|
|
36
7
|
export declare const verifyEmailOrPhoneLink: (para?: ParaWeb, args?: VerifyEmailOrPhoneLinkParams) => Promise<LinkedAccounts>;
|
|
@@ -38,6 +9,3 @@ export declare const verifyFarcasterLink: (para?: ParaWeb, args?: VerifyFarcaste
|
|
|
38
9
|
export declare const verifyTelegramLink: (para?: ParaWeb, args?: TelegramParams) => Promise<LinkedAccounts>;
|
|
39
10
|
export declare const verifyOAuthLink: (para?: ParaWeb, args?: VerifyOAuthProcessParams) => Promise<LinkedAccounts>;
|
|
40
11
|
export declare const verifyExternalWalletLink: (para?: ParaWeb, args?: Omit<BaseVerifyExternalWalletParams, 'externalWallet'>) => Promise<LinkedAccounts>;
|
|
41
|
-
export declare const exportPrivateKey: (para?: ParaWeb, args?: ExportPrivateKeyParams) => Promise<ExportPrivateKeyResponse>;
|
|
42
|
-
export declare const authenticateWithEmailOrPhone: (para?: ParaWeb, args?: AuthenticateWithEmailOrPhoneParams) => Promise<AuthenticateWithEmailOrPhoneResponse>;
|
|
43
|
-
export declare const authenticateWithOAuth: (para?: ParaWeb, args?: AuthenticateWithOAuthParams) => Promise<AuthenticateWithOAuthResponse>;
|
|
@@ -1,37 +1,46 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-MMUBH76A.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
3
|
+
import { generateInternalAction } from "./utils.js";
|
|
4
|
+
import { generateCoreAction } from "@getpara/react-core/internal";
|
|
5
|
+
import {
|
|
6
|
+
generateCoreAction as generateCoreAction2,
|
|
7
|
+
getEmbeddedAccount,
|
|
8
|
+
getWallet,
|
|
9
|
+
signUpOrLogIn,
|
|
10
|
+
verifyNewAccount,
|
|
11
|
+
waitForLogin,
|
|
12
|
+
waitForSignup,
|
|
13
|
+
waitForWalletCreation,
|
|
14
|
+
verifyOAuth,
|
|
15
|
+
verifyFarcaster,
|
|
16
|
+
verifyTelegram,
|
|
17
|
+
loginExternalWallet,
|
|
18
|
+
verifyExternalWallet,
|
|
19
|
+
setup2fa,
|
|
20
|
+
enable2fa,
|
|
21
|
+
verify2fa,
|
|
22
|
+
keepSessionAlive,
|
|
23
|
+
logout,
|
|
24
|
+
resendVerificationCode,
|
|
25
|
+
createWallet,
|
|
26
|
+
createWalletPerType,
|
|
27
|
+
createPregenWallet,
|
|
28
|
+
createPregenWalletPerType,
|
|
29
|
+
claimPregenWallets,
|
|
30
|
+
hasPregenWallet,
|
|
31
|
+
updatePregenWalletIdentifier,
|
|
32
|
+
createGuestWallets,
|
|
33
|
+
signMessage,
|
|
34
|
+
signTransaction,
|
|
35
|
+
getWalletBalance,
|
|
36
|
+
issueJwt,
|
|
37
|
+
getLinkedAccounts,
|
|
38
|
+
addCredential,
|
|
39
|
+
exportPrivateKey,
|
|
40
|
+
authenticateWithEmailOrPhone,
|
|
41
|
+
authenticateWithOAuth
|
|
42
|
+
} from "@getpara/react-core/internal";
|
|
33
43
|
const accountLinkInProgress = generateCoreAction("accountLinkInProgress");
|
|
34
|
-
const addCredential = generateCoreAction("addCredential");
|
|
35
44
|
const linkAccount = generateInternalAction("linkAccount");
|
|
36
45
|
const unlinkAccount = generateInternalAction("unlinkAccount");
|
|
37
46
|
const verifyEmailOrPhoneLink = generateInternalAction("verifyEmailOrPhoneLink");
|
|
@@ -39,9 +48,6 @@ const verifyFarcasterLink = generateInternalAction("verifyFarcasterLink");
|
|
|
39
48
|
const verifyTelegramLink = generateInternalAction("verifyTelegramLink");
|
|
40
49
|
const verifyOAuthLink = generateInternalAction("verifyOAuthLink");
|
|
41
50
|
const verifyExternalWalletLink = generateInternalAction("verifyExternalWalletLink");
|
|
42
|
-
const exportPrivateKey = generateCoreAction("exportPrivateKey");
|
|
43
|
-
const authenticateWithEmailOrPhone = generateCoreAction("authenticateWithEmailOrPhone");
|
|
44
|
-
const authenticateWithOAuth = generateCoreAction("authenticateWithOAuth");
|
|
45
51
|
export {
|
|
46
52
|
accountLinkInProgress,
|
|
47
53
|
addCredential,
|
|
@@ -55,7 +61,10 @@ export {
|
|
|
55
61
|
createWalletPerType,
|
|
56
62
|
enable2fa,
|
|
57
63
|
exportPrivateKey,
|
|
64
|
+
generateCoreAction2 as generateCoreAction,
|
|
65
|
+
getEmbeddedAccount,
|
|
58
66
|
getLinkedAccounts,
|
|
67
|
+
getWallet,
|
|
59
68
|
getWalletBalance,
|
|
60
69
|
hasPregenWallet,
|
|
61
70
|
issueJwt,
|
|
@@ -1,33 +1,6 @@
|
|
|
1
1
|
export { useLinkAccount } from './useLinkAccount.js';
|
|
2
|
-
export {
|
|
2
|
+
export { useExportPrivateKey } from './useExportPrivateKey.js';
|
|
3
3
|
export { useVerifyNewAccount } from './useVerifyNewAccount.js';
|
|
4
|
-
export { useWaitForLogin } from './useWaitForLogin.js';
|
|
5
|
-
export { useWaitForSignup } from './useWaitForSignup.js';
|
|
6
|
-
export { useWaitForWalletCreation } from './useWaitForWalletCreation.js';
|
|
7
|
-
export { useVerifyOAuth } from './useVerifyOAuth.js';
|
|
8
|
-
export { useVerifyFarcaster } from './useVerifyFarcaster.js';
|
|
9
|
-
export { useVerifyTelegram } from './useVerifyTelegram.js';
|
|
10
|
-
export { useLoginExternalWallet } from './useLoginExternalWallet.js';
|
|
11
|
-
export { useVerifyExternalWallet } from './useVerifyExternalWallet.js';
|
|
12
|
-
export { useSetup2fa } from './useSetup2fa.js';
|
|
13
|
-
export { useEnable2fa } from './useEnable2fa.js';
|
|
14
|
-
export { useVerify2fa } from './useVerify2fa.js';
|
|
15
|
-
export { useKeepSessionAlive } from './useKeepSessionAlive.js';
|
|
16
|
-
export { useLogout } from './useLogout.js';
|
|
17
|
-
export { useResendVerificationCode } from './useResendVerificationCode.js';
|
|
18
|
-
export { useCreateWallet } from './useCreateWallet.js';
|
|
19
|
-
export { useCreateWalletPerType } from './useCreateWalletPerType.js';
|
|
20
|
-
export { useCreatePregenWallet } from './useCreatePregenWallet.js';
|
|
21
|
-
export { useCreatePregenWalletPerType } from './useCreatePregenWalletPerType.js';
|
|
22
|
-
export { useClaimPregenWallets } from './useClaimPregenWallets.js';
|
|
23
|
-
export { useHasPregenWallet } from './useHasPregenWallet.js';
|
|
24
|
-
export { useUpdatePregenWalletIdentifier } from './useUpdatePregenWalletIdentifier.js';
|
|
25
|
-
export { useCreateGuestWallets } from './useCreateGuestWallets.js';
|
|
26
|
-
export { useSignMessage } from './useSignMessage.js';
|
|
27
|
-
export { useSignTransaction } from './useSignTransaction.js';
|
|
28
|
-
export { useIssueJwt } from './useIssueJwt.js';
|
|
29
4
|
export { useAddAuthMethod } from './useAddAuthMethod.js';
|
|
30
|
-
export
|
|
5
|
+
export * from '@getpara/react-core/mutations';
|
|
31
6
|
export declare const useCreateGuestWalletsState: import("../../types/utils.js").CoreMethodMutationStateHook<"createGuestWallets">;
|
|
32
|
-
export { useAuthenticateWithEmailOrPhone } from './useAuthenticateWithEmailOrPhone.js';
|
|
33
|
-
export { useAuthenticateWithOAuth } from './useAuthenticateWithOAuth.js';
|
|
@@ -2,70 +2,15 @@
|
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { generateStateHook } from "./utils.js";
|
|
4
4
|
import { useLinkAccount } from "./useLinkAccount.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useExportPrivateKey } from "./useExportPrivateKey.js";
|
|
6
6
|
import { useVerifyNewAccount } from "./useVerifyNewAccount.js";
|
|
7
|
-
import { useWaitForLogin } from "./useWaitForLogin.js";
|
|
8
|
-
import { useWaitForSignup } from "./useWaitForSignup.js";
|
|
9
|
-
import { useWaitForWalletCreation } from "./useWaitForWalletCreation.js";
|
|
10
|
-
import { useVerifyOAuth } from "./useVerifyOAuth.js";
|
|
11
|
-
import { useVerifyFarcaster } from "./useVerifyFarcaster.js";
|
|
12
|
-
import { useVerifyTelegram } from "./useVerifyTelegram.js";
|
|
13
|
-
import { useLoginExternalWallet } from "./useLoginExternalWallet.js";
|
|
14
|
-
import { useVerifyExternalWallet } from "./useVerifyExternalWallet.js";
|
|
15
|
-
import { useSetup2fa } from "./useSetup2fa.js";
|
|
16
|
-
import { useEnable2fa } from "./useEnable2fa.js";
|
|
17
|
-
import { useVerify2fa } from "./useVerify2fa.js";
|
|
18
|
-
import { useKeepSessionAlive } from "./useKeepSessionAlive.js";
|
|
19
|
-
import { useLogout } from "./useLogout.js";
|
|
20
|
-
import { useResendVerificationCode } from "./useResendVerificationCode.js";
|
|
21
|
-
import { useCreateWallet } from "./useCreateWallet.js";
|
|
22
|
-
import { useCreateWalletPerType } from "./useCreateWalletPerType.js";
|
|
23
|
-
import { useCreatePregenWallet } from "./useCreatePregenWallet.js";
|
|
24
|
-
import { useCreatePregenWalletPerType } from "./useCreatePregenWalletPerType.js";
|
|
25
|
-
import { useClaimPregenWallets } from "./useClaimPregenWallets.js";
|
|
26
|
-
import { useHasPregenWallet } from "./useHasPregenWallet.js";
|
|
27
|
-
import { useUpdatePregenWalletIdentifier } from "./useUpdatePregenWalletIdentifier.js";
|
|
28
|
-
import { useCreateGuestWallets } from "./useCreateGuestWallets.js";
|
|
29
|
-
import { useSignMessage } from "./useSignMessage.js";
|
|
30
|
-
import { useSignTransaction } from "./useSignTransaction.js";
|
|
31
|
-
import { useIssueJwt } from "./useIssueJwt.js";
|
|
32
7
|
import { useAddAuthMethod } from "./useAddAuthMethod.js";
|
|
33
|
-
|
|
8
|
+
export * from "@getpara/react-core/mutations";
|
|
34
9
|
const useCreateGuestWalletsState = generateStateHook("createGuestWallets");
|
|
35
|
-
import { useAuthenticateWithEmailOrPhone } from "./useAuthenticateWithEmailOrPhone.js";
|
|
36
|
-
import { useAuthenticateWithOAuth } from "./useAuthenticateWithOAuth.js";
|
|
37
10
|
export {
|
|
38
11
|
useAddAuthMethod,
|
|
39
|
-
useAuthenticateWithEmailOrPhone,
|
|
40
|
-
useAuthenticateWithOAuth,
|
|
41
|
-
useClaimPregenWallets,
|
|
42
|
-
useCreateGuestWallets,
|
|
43
12
|
useCreateGuestWalletsState,
|
|
44
|
-
useCreatePregenWallet,
|
|
45
|
-
useCreatePregenWalletPerType,
|
|
46
|
-
useCreateWallet,
|
|
47
|
-
useCreateWalletPerType,
|
|
48
|
-
useEnable2fa,
|
|
49
13
|
useExportPrivateKey,
|
|
50
|
-
useHasPregenWallet,
|
|
51
|
-
useIssueJwt,
|
|
52
|
-
useKeepSessionAlive,
|
|
53
14
|
useLinkAccount,
|
|
54
|
-
|
|
55
|
-
useLogout,
|
|
56
|
-
useResendVerificationCode,
|
|
57
|
-
useSetup2fa,
|
|
58
|
-
useSignMessage,
|
|
59
|
-
useSignTransaction,
|
|
60
|
-
useSignUpOrLogIn,
|
|
61
|
-
useUpdatePregenWalletIdentifier,
|
|
62
|
-
useVerify2fa,
|
|
63
|
-
useVerifyExternalWallet,
|
|
64
|
-
useVerifyFarcaster,
|
|
65
|
-
useVerifyNewAccount,
|
|
66
|
-
useVerifyOAuth,
|
|
67
|
-
useVerifyTelegram,
|
|
68
|
-
useWaitForLogin,
|
|
69
|
-
useWaitForSignup,
|
|
70
|
-
useWaitForWalletCreation
|
|
15
|
+
useVerifyNewAccount
|
|
71
16
|
};
|
|
@@ -18,13 +18,13 @@ export declare const ADD_CREDENTIAL_KEY = "ADD_CREDENTIAL";
|
|
|
18
18
|
export declare const useAddAuthMethod: ({ openPopup }?: {
|
|
19
19
|
openPopup: boolean;
|
|
20
20
|
}) => {
|
|
21
|
+
error: Error | null;
|
|
22
|
+
isSuccess: boolean;
|
|
21
23
|
data: string | undefined;
|
|
22
24
|
variables: void | AddCredentialParams | undefined;
|
|
23
|
-
error: Error | null;
|
|
24
25
|
isError: boolean;
|
|
25
26
|
isIdle: boolean;
|
|
26
27
|
isPending: boolean;
|
|
27
|
-
isSuccess: boolean;
|
|
28
28
|
status: "pending" | "error" | "idle" | "success";
|
|
29
29
|
reset: () => void;
|
|
30
30
|
context: unknown;
|
|
@@ -1,10 +1,30 @@
|
|
|
1
|
-
import type { ExportPrivateKeyParams } from '@getpara/web-sdk';
|
|
1
|
+
import type { ExportPrivateKeyParams, ExportPrivateKeyResponse } from '@getpara/web-sdk';
|
|
2
2
|
export declare const EXPORT_PRIVATE_KEY_KEY = "EXPORT_PRIVATE_KEY";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Web-specific override of `useExportPrivateKey`.
|
|
5
|
+
* Defaults `shouldOpenPopup: true` so the portal opens in a browser popup window.
|
|
6
|
+
* On React Native, use the core version from `@getpara/react-core` which returns
|
|
7
|
+
* the URL without opening a popup, for use with a WebView.
|
|
5
8
|
*
|
|
6
9
|
* @example
|
|
7
|
-
* const {
|
|
10
|
+
* const { exportPrivateKey, exportPrivateKeyAsync } = useExportPrivateKey();
|
|
8
11
|
* await exportPrivateKeyAsync({ walletId: '...' });
|
|
9
12
|
*/
|
|
10
|
-
export declare const useExportPrivateKey: () =>
|
|
13
|
+
export declare const useExportPrivateKey: () => {
|
|
14
|
+
error: Error | null;
|
|
15
|
+
isSuccess: boolean;
|
|
16
|
+
data: ExportPrivateKeyResponse | undefined;
|
|
17
|
+
variables: ExportPrivateKeyParams;
|
|
18
|
+
isError: boolean;
|
|
19
|
+
isIdle: boolean;
|
|
20
|
+
isPending: boolean;
|
|
21
|
+
status: "pending" | "error" | "idle" | "success";
|
|
22
|
+
reset: () => void;
|
|
23
|
+
context: unknown;
|
|
24
|
+
failureCount: number;
|
|
25
|
+
failureReason: Error | null;
|
|
26
|
+
isPaused: boolean;
|
|
27
|
+
submittedAt: number;
|
|
28
|
+
exportPrivateKey: import("@tanstack/react-query").UseMutateFunction<ExportPrivateKeyResponse, Error, ExportPrivateKeyParams, unknown>;
|
|
29
|
+
exportPrivateKeyAsync: import("@tanstack/react-query").UseMutateAsyncFunction<ExportPrivateKeyResponse, Error, ExportPrivateKeyParams, unknown>;
|
|
30
|
+
};
|
|
@@ -5,13 +5,14 @@ import {
|
|
|
5
5
|
} from "../../../chunk-MMUBH76A.js";
|
|
6
6
|
import { useMutation } from "@tanstack/react-query";
|
|
7
7
|
import { useClient } from "../utils/index.js";
|
|
8
|
+
import { renameMutations } from "../../utils/renameMutations.js";
|
|
8
9
|
import { exportPrivateKey } from "../../actions/index.js";
|
|
9
|
-
import { useWallet } from "
|
|
10
|
+
import { useWallet } from "@getpara/react-core";
|
|
10
11
|
const EXPORT_PRIVATE_KEY_KEY = "EXPORT_PRIVATE_KEY";
|
|
11
12
|
const useExportPrivateKey = () => {
|
|
12
13
|
const para = useClient();
|
|
13
14
|
const { data: activeWallet } = useWallet();
|
|
14
|
-
|
|
15
|
+
const mutation = useMutation({
|
|
15
16
|
mutationKey: [EXPORT_PRIVATE_KEY_KEY],
|
|
16
17
|
mutationFn: (args) => __async(void 0, null, function* () {
|
|
17
18
|
try {
|
|
@@ -25,6 +26,10 @@ const useExportPrivateKey = () => {
|
|
|
25
26
|
}
|
|
26
27
|
})
|
|
27
28
|
});
|
|
29
|
+
return renameMutations(
|
|
30
|
+
mutation,
|
|
31
|
+
"exportPrivateKey"
|
|
32
|
+
);
|
|
28
33
|
};
|
|
29
34
|
export {
|
|
30
35
|
EXPORT_PRIVATE_KEY_KEY,
|
|
@@ -15,13 +15,13 @@ export declare const SWITCH_WALLETS_KEY = "SWITCH_WALLETS";
|
|
|
15
15
|
* await switchWalletsAsync({ authMethod: 'PASSKEY' });
|
|
16
16
|
*/
|
|
17
17
|
export declare const useSwitchWallets: () => {
|
|
18
|
+
error: Error | null;
|
|
19
|
+
isSuccess: boolean;
|
|
18
20
|
data: WaitForLoginResponse | undefined;
|
|
19
21
|
variables: void | WaitForLoginParams | undefined;
|
|
20
|
-
error: Error | null;
|
|
21
22
|
isError: boolean;
|
|
22
23
|
isIdle: boolean;
|
|
23
24
|
isPending: boolean;
|
|
24
|
-
isSuccess: boolean;
|
|
25
25
|
status: "pending" | "error" | "idle" | "success";
|
|
26
26
|
reset: () => void;
|
|
27
27
|
context: unknown;
|
|
@@ -15,13 +15,13 @@ export declare const VERIFY_NEW_ACCOUNT_KEY = "VERIFY_NEW_ACCOUNT";
|
|
|
15
15
|
* await verifyNewAccountAsync({ ...params });
|
|
16
16
|
*/
|
|
17
17
|
export declare const useVerifyNewAccount: () => {
|
|
18
|
+
error: Error | null;
|
|
19
|
+
isSuccess: boolean;
|
|
18
20
|
data: import("@getpara/web-sdk").AuthStateSignup | undefined;
|
|
19
21
|
variables: VerifyNewAccountParams | undefined;
|
|
20
|
-
error: Error | null;
|
|
21
22
|
isError: boolean;
|
|
22
23
|
isIdle: boolean;
|
|
23
24
|
isPending: boolean;
|
|
24
|
-
isSuccess: boolean;
|
|
25
25
|
status: "pending" | "error" | "idle" | "success";
|
|
26
26
|
reset: () => void;
|
|
27
27
|
context: unknown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { useAccount } from './useAccount.js';
|
|
2
2
|
export { useParaStatus } from './useParaStatus.js';
|
|
3
|
-
export { useWallet } from './useWallet.js';
|
|
4
3
|
export { useWalletBalance } from './useWalletBalance.js';
|
|
5
|
-
export { useLinkedAccounts } from './useLinkedAccounts.js';
|
|
6
4
|
export { useAccountLinkInProgress } from './useAccountLinkInProgress.js';
|
|
7
5
|
export { useProfileBalance } from './useProfileBalance.js';
|
|
6
|
+
export { useLinkedAccounts } from './useLinkedAccounts.js';
|
|
7
|
+
export * from '@getpara/react-core/queries';
|
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { useAccount } from "./useAccount.js";
|
|
4
4
|
import { useParaStatus } from "./useParaStatus.js";
|
|
5
|
-
import { useWallet } from "./useWallet.js";
|
|
6
5
|
import { useWalletBalance } from "./useWalletBalance.js";
|
|
7
|
-
import { useLinkedAccounts } from "./useLinkedAccounts.js";
|
|
8
6
|
import { useAccountLinkInProgress } from "./useAccountLinkInProgress.js";
|
|
9
7
|
import { useProfileBalance } from "./useProfileBalance.js";
|
|
8
|
+
import { useLinkedAccounts } from "./useLinkedAccounts.js";
|
|
9
|
+
export * from "@getpara/react-core/queries";
|
|
10
10
|
export {
|
|
11
11
|
useAccount,
|
|
12
12
|
useAccountLinkInProgress,
|
|
13
13
|
useLinkedAccounts,
|
|
14
14
|
useParaStatus,
|
|
15
15
|
useProfileBalance,
|
|
16
|
-
useWallet,
|
|
17
16
|
useWalletBalance
|
|
18
17
|
};
|