@dynamic-labs-sdk/react-hooks 1.11.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/exports/index.d.ts +15 -15
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/hooks/wrappers/functions/useActiveNetworkId/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/{useConsumeMfaToken → useActiveNetworkId}/index.d.ts.map +1 -1
- package/dist/hooks/wrappers/functions/useActiveNetworkId/useActiveNetworkId.d.ts +21 -0
- package/dist/hooks/wrappers/functions/useActiveNetworkId/useActiveNetworkId.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useAddCoinbaseOnrampOrderEventListener/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/useAddCoinbaseOnrampOrderEventListener/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/{useCoinbaseOnrampOrderEventListener/useCoinbaseOnrampOrderEventListener.d.ts → useAddCoinbaseOnrampOrderEventListener/useAddCoinbaseOnrampOrderEventListener.d.ts} +4 -4
- package/dist/hooks/wrappers/functions/useAddCoinbaseOnrampOrderEventListener/useAddCoinbaseOnrampOrderEventListener.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/useAssertWalletAccountSigningAvailability.d.ts +19 -0
- package/dist/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/useAssertWalletAccountSigningAvailability.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useAuthenticatePasskeyMFA/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/{useAuthenticatePasskeyMfa → useAuthenticatePasskeyMFA}/index.d.ts.map +1 -1
- package/dist/hooks/wrappers/functions/{useAuthenticatePasskeyMfa/useAuthenticatePasskeyMfa.d.ts → useAuthenticatePasskeyMFA/useAuthenticatePasskeyMFA.d.ts} +9 -9
- package/dist/hooks/wrappers/functions/{useAuthenticatePasskeyMfa/useAuthenticatePasskeyMfa.d.ts.map → useAuthenticatePasskeyMFA/useAuthenticatePasskeyMFA.d.ts.map} +1 -1
- package/dist/hooks/wrappers/functions/useConnectedAddresses/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/useConnectedAddresses/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useConnectedAddresses/useConnectedAddresses.d.ts +21 -0
- package/dist/hooks/wrappers/functions/useConnectedAddresses/useConnectedAddresses.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useCreateKrakenExchangeTransfer/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useCreateKrakenExchangeTransfer/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/{useKrakenExchangeTransfer/useKrakenExchangeTransfer.d.ts → useCreateKrakenExchangeTransfer/useCreateKrakenExchangeTransfer.d.ts} +4 -4
- package/dist/hooks/wrappers/functions/useCreateKrakenExchangeTransfer/useCreateKrakenExchangeTransfer.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useFlow/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/useFlow/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useFlow/useFlow.d.ts +30 -0
- package/dist/hooks/wrappers/functions/useFlow/useFlow.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useFlowQuote/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/{useVerifyOtp → useFlowQuote}/index.d.ts.map +1 -1
- package/dist/hooks/wrappers/functions/{useGetFlowQuote/useGetFlowQuote.d.ts → useFlowQuote/useFlowQuote.d.ts} +4 -4
- package/dist/hooks/wrappers/functions/useFlowQuote/useFlowQuote.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useIsMfaRequiredForAction/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/useIsMfaRequiredForAction/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useIsMfaRequiredForAction/useIsMfaRequiredForAction.d.ts +19 -0
- package/dist/hooks/wrappers/functions/useIsMfaRequiredForAction/useIsMfaRequiredForAction.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useOnEvent/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useOnEvent/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/{useEvent/useEvent.d.ts → useOnEvent/useOnEvent.d.ts} +2 -2
- package/dist/hooks/wrappers/functions/useOnEvent/useOnEvent.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useOnWalletProviderEvent/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useOnWalletProviderEvent/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/{useWalletProviderEvent/useWalletProviderEvent.d.ts → useOnWalletProviderEvent/useOnWalletProviderEvent.d.ts} +3 -3
- package/dist/hooks/wrappers/functions/useOnWalletProviderEvent/useOnWalletProviderEvent.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useOnceEvent/useOnceEvent.d.ts +1 -1
- package/dist/hooks/wrappers/functions/useSendEmailOTP/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/{useNetworksData → useSendEmailOTP}/index.d.ts.map +1 -1
- package/dist/hooks/wrappers/functions/{useSendEmailOtp/useSendEmailOtp.d.ts → useSendEmailOTP/useSendEmailOTP.d.ts} +10 -10
- package/dist/hooks/wrappers/functions/{useSendEmailOtp/useSendEmailOtp.d.ts.map → useSendEmailOTP/useSendEmailOTP.d.ts.map} +1 -1
- package/dist/hooks/wrappers/functions/useSendSmsOTP/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/{useSendSmsOtp → useSendSmsOTP}/index.d.ts.map +1 -1
- package/dist/hooks/wrappers/functions/{useSendSmsOtp/useSendSmsOtp.d.ts → useSendSmsOTP/useSendSmsOTP.d.ts} +10 -10
- package/dist/hooks/wrappers/functions/{useSendSmsOtp/useSendSmsOtp.d.ts.map → useSendSmsOTP/useSendSmsOTP.d.ts.map} +1 -1
- package/dist/hooks/wrappers/functions/useVerifyOTP/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/useVerifyOTP/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/{useVerifyOtp/useVerifyOtp.d.ts → useVerifyOTP/useVerifyOTP.d.ts} +10 -10
- package/dist/hooks/wrappers/functions/{useVerifyOtp/useVerifyOtp.d.ts.map → useVerifyOTP/useVerifyOTP.d.ts.map} +1 -1
- package/dist/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/useWalletConnectCatalogWalletByWalletProviderKey.d.ts +19 -0
- package/dist/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/useWalletConnectCatalogWalletByWalletProviderKey.d.ts.map +1 -0
- package/dist/index.cjs +119 -152
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +106 -139
- package/dist/index.esm.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/hooks/wrappers/functions/useAuthenticatePasskeyMfa/index.d.ts +0 -3
- package/dist/hooks/wrappers/functions/useCoinbaseOnrampOrderEventListener/index.d.ts +0 -3
- package/dist/hooks/wrappers/functions/useCoinbaseOnrampOrderEventListener/index.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useCoinbaseOnrampOrderEventListener/useCoinbaseOnrampOrderEventListener.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useConsumeMfaToken/index.d.ts +0 -3
- package/dist/hooks/wrappers/functions/useConsumeMfaToken/useConsumeMfaToken.d.ts +0 -27
- package/dist/hooks/wrappers/functions/useConsumeMfaToken/useConsumeMfaToken.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useEvent/index.d.ts +0 -2
- package/dist/hooks/wrappers/functions/useEvent/index.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useEvent/useEvent.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useGetFlow/index.d.ts +0 -3
- package/dist/hooks/wrappers/functions/useGetFlow/index.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useGetFlow/useGetFlow.d.ts +0 -27
- package/dist/hooks/wrappers/functions/useGetFlow/useGetFlow.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useGetFlowQuote/index.d.ts +0 -3
- package/dist/hooks/wrappers/functions/useGetFlowQuote/index.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useGetFlowQuote/useGetFlowQuote.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useIsCaptchaRequired/index.d.ts +0 -2
- package/dist/hooks/wrappers/functions/useIsCaptchaRequired/index.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useIsCaptchaRequired/useIsCaptchaRequired.d.ts +0 -13
- package/dist/hooks/wrappers/functions/useIsCaptchaRequired/useIsCaptchaRequired.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/index.d.ts +0 -2
- package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/index.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.d.ts +0 -13
- package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/index.d.ts +0 -2
- package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/index.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.d.ts +0 -14
- package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useKrakenExchangeTransfer/index.d.ts +0 -2
- package/dist/hooks/wrappers/functions/useKrakenExchangeTransfer/index.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useKrakenExchangeTransfer/useKrakenExchangeTransfer.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useNetworksData/index.d.ts +0 -2
- package/dist/hooks/wrappers/functions/useNetworksData/useNetworksData.d.ts +0 -7
- package/dist/hooks/wrappers/functions/useNetworksData/useNetworksData.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useSendEmailOtp/index.d.ts +0 -3
- package/dist/hooks/wrappers/functions/useSendEmailOtp/index.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useSendSmsOtp/index.d.ts +0 -3
- package/dist/hooks/wrappers/functions/useVerifyOtp/index.d.ts +0 -3
- package/dist/hooks/wrappers/functions/useWalletProviderEvent/index.d.ts +0 -2
- package/dist/hooks/wrappers/functions/useWalletProviderEvent/index.d.ts.map +0 -1
- package/dist/hooks/wrappers/functions/useWalletProviderEvent/useWalletProviderEvent.d.ts.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
|
|
2
|
-
import { BaseError, acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, addNetwork, attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, broadcastFlow, cancelFlow, checkStepUpAuth, completeDeviceRegistration, completeSocialRedirect, confirmTransaction, connectAndVerifyWithWalletProvider, connectWithWalletProvider,
|
|
2
|
+
import { BaseError, acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, addNetwork, assertWalletAccountSigningAvailability, attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, broadcastFlow, cancelFlow, checkStepUpAuth, completeDeviceRegistration, completeSocialRedirect, confirmTransaction, connectAndVerifyWithWalletProvider, connectWithWalletProvider, createCoinbaseOnrampOrder, createCryptoDotComPayment, createKrakenExchangeTransfer, createNewMfaRecoveryCodes, deleteMfaDevice, deletePasskey, deleteUser, executeSwapTransaction, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalanceForAddress, getCoinbaseBuyUrl, getConnectedAddresses, getFlow, getFlowQuote, getGoogleDriveBackupReadiness, getKrakenAccounts, getKrakenWhitelistedAddresses, getMfaDevices, getMfaMethods, getMfaRecoveryCodes, getMoonPayCurrencies, getMoonPayUrl, getMultichainTokenBalances, getNativeBalance, getPasskeys, getRegisteredDevices, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, isMfaRequiredForAction, logout, onEvent, onWalletProviderEvent, onceEvent, prepareFlowSigning, proveWalletAccountOwnership, refreshAuth, registerPasskey, registerTotpMfaDevice, removeWalletAccount, requestExternalAuthElevatedToken, revokeAllRegisteredDevices, revokeRegisteredDevice, sendEmailOTP, sendSmsOTP, setDefaultMfaDevice, signInWithExternalJwt, signInWithPasskey, signInWithSocialPopUp, signInWithSocialRedirect, signMessage, submitFlowTransaction, switchActiveNetwork, transferAmount, transferWalletAccount, unlinkSocialAccount, updateUser, verifyOTP, verifyWalletAccount, waitForClientInitialized } from "@dynamic-labs-sdk/client";
|
|
3
3
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
4
4
|
import { createContext, useContext, useEffect, useMemo, useRef } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -7,7 +7,7 @@ import { getCore } from "@dynamic-labs-sdk/client/core";
|
|
|
7
7
|
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "@dynamic-labs-sdk/react-hooks";
|
|
10
|
-
var version = "1.
|
|
10
|
+
var version = "1.12.1";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/modules/DynamicContext/DynamicContext.ts
|
|
@@ -153,6 +153,19 @@ const useActiveNetworkData = ({ queryParams, ...args }) => useBaseQuery({
|
|
|
153
153
|
queryParams
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/hooks/wrappers/functions/useActiveNetworkId/useActiveNetworkId.ts
|
|
158
|
+
/**
|
|
159
|
+
* Returns the active network id for the given wallet account.
|
|
160
|
+
*
|
|
161
|
+
* Wraps `getActiveNetworkId` from `@dynamic-labs-sdk/client`.
|
|
162
|
+
*/
|
|
163
|
+
const useActiveNetworkId = ({ queryParams, ...args }) => useBaseQuery({
|
|
164
|
+
queryFn: (client) => getActiveNetworkId(args, client),
|
|
165
|
+
queryKey: ["useActiveNetworkId", args],
|
|
166
|
+
queryParams
|
|
167
|
+
});
|
|
168
|
+
|
|
156
169
|
//#endregion
|
|
157
170
|
//#region src/hooks/wrappers/functions/useAddNetwork/useAddNetwork.ts
|
|
158
171
|
/**
|
|
@@ -174,6 +187,19 @@ const useAddNetwork = ({ mutateParams } = {}) => useBaseMutation({
|
|
|
174
187
|
mutationFn: ({ client, variables }) => addNetwork(variables, client)
|
|
175
188
|
});
|
|
176
189
|
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/useAssertWalletAccountSigningAvailability.ts
|
|
192
|
+
/**
|
|
193
|
+
* Resolves when the given wallet account can sign, and errors otherwise.
|
|
194
|
+
*
|
|
195
|
+
* Wraps `assertWalletAccountSigningAvailability` from `@dynamic-labs-sdk/client`.
|
|
196
|
+
*/
|
|
197
|
+
const useAssertWalletAccountSigningAvailability = ({ queryParams, ...args }) => useBaseQuery({
|
|
198
|
+
queryFn: (client) => assertWalletAccountSigningAvailability(args, client),
|
|
199
|
+
queryKey: ["useAssertWalletAccountSigningAvailability", args],
|
|
200
|
+
queryParams
|
|
201
|
+
});
|
|
202
|
+
|
|
177
203
|
//#endregion
|
|
178
204
|
//#region src/hooks/wrappers/functions/useAttachFlowSource/useAttachFlowSource.ts
|
|
179
205
|
/**
|
|
@@ -224,7 +250,7 @@ const useAuthenticateMfaRecoveryCode = ({ mutateParams } = {}) => useBaseMutatio
|
|
|
224
250
|
});
|
|
225
251
|
|
|
226
252
|
//#endregion
|
|
227
|
-
//#region src/hooks/wrappers/functions/
|
|
253
|
+
//#region src/hooks/wrappers/functions/useAuthenticatePasskeyMFA/useAuthenticatePasskeyMFA.ts
|
|
228
254
|
/**
|
|
229
255
|
* Completes an MFA challenge using the current user's passkey.
|
|
230
256
|
*
|
|
@@ -234,14 +260,14 @@ const useAuthenticateMfaRecoveryCode = ({ mutateParams } = {}) => useBaseMutatio
|
|
|
234
260
|
*
|
|
235
261
|
* @example
|
|
236
262
|
* ```tsx
|
|
237
|
-
* const { mutate:
|
|
238
|
-
*
|
|
239
|
-
* <button onClick={() =>
|
|
263
|
+
* const { mutate: authenticatePasskeyMFA, isPending } =
|
|
264
|
+
* useAuthenticatePasskeyMFA();
|
|
265
|
+
* <button onClick={() => authenticatePasskeyMFA()} disabled={isPending}>
|
|
240
266
|
* Verify with passkey
|
|
241
267
|
* </button>
|
|
242
268
|
* ```
|
|
243
269
|
*/
|
|
244
|
-
const
|
|
270
|
+
const useAuthenticatePasskeyMFA = ({ mutateParams } = {}) => useBaseMutation({
|
|
245
271
|
mutateParams,
|
|
246
272
|
mutationFn: ({ client, variables }) => authenticatePasskeyMFA(variables, client)
|
|
247
273
|
});
|
|
@@ -491,7 +517,7 @@ const useCoinbaseBuyUrl = ({ queryParams, ...args }) => useBaseQuery({
|
|
|
491
517
|
});
|
|
492
518
|
|
|
493
519
|
//#endregion
|
|
494
|
-
//#region src/hooks/wrappers/functions/
|
|
520
|
+
//#region src/hooks/wrappers/functions/useAddCoinbaseOnrampOrderEventListener/useAddCoinbaseOnrampOrderEventListener.ts
|
|
495
521
|
/**
|
|
496
522
|
* Subscribes to Coinbase onramp order events for the duration of the component.
|
|
497
523
|
*
|
|
@@ -501,12 +527,12 @@ const useCoinbaseBuyUrl = ({ queryParams, ...args }) => useBaseQuery({
|
|
|
501
527
|
*
|
|
502
528
|
* @example
|
|
503
529
|
* ```tsx
|
|
504
|
-
*
|
|
530
|
+
* useAddCoinbaseOnrampOrderEventListener({
|
|
505
531
|
* listener: ({ eventName, data }) => console.log(eventName, data),
|
|
506
532
|
* });
|
|
507
533
|
* ```
|
|
508
534
|
*/
|
|
509
|
-
const
|
|
535
|
+
const useAddCoinbaseOnrampOrderEventListener = ({ listener }) => {
|
|
510
536
|
const client = useDynamicClient();
|
|
511
537
|
const callbackRef = useRef(listener);
|
|
512
538
|
callbackRef.current = listener;
|
|
@@ -595,6 +621,19 @@ const useConnectAndVerifyWithWalletProvider = ({ mutateParams } = {}) => useBase
|
|
|
595
621
|
mutationFn: ({ client, variables }) => connectAndVerifyWithWalletProvider(variables, client)
|
|
596
622
|
});
|
|
597
623
|
|
|
624
|
+
//#endregion
|
|
625
|
+
//#region src/hooks/wrappers/functions/useConnectedAddresses/useConnectedAddresses.ts
|
|
626
|
+
/**
|
|
627
|
+
* Returns the connected addresses for the given wallet provider.
|
|
628
|
+
*
|
|
629
|
+
* Wraps `getConnectedAddresses` from `@dynamic-labs-sdk/client`.
|
|
630
|
+
*/
|
|
631
|
+
const useConnectedAddresses = ({ queryParams, ...args }) => useBaseQuery({
|
|
632
|
+
queryFn: (client) => getConnectedAddresses(args, client),
|
|
633
|
+
queryKey: ["useConnectedAddresses", args],
|
|
634
|
+
queryParams
|
|
635
|
+
});
|
|
636
|
+
|
|
598
637
|
//#endregion
|
|
599
638
|
//#region src/hooks/wrappers/functions/useConnectWithWalletProvider/useConnectWithWalletProvider.ts
|
|
600
639
|
/**
|
|
@@ -622,27 +661,6 @@ const useConnectWithWalletProvider = ({ mutateParams } = {}) => useBaseMutation(
|
|
|
622
661
|
mutationFn: ({ client, variables }) => connectWithWalletProvider(variables, client)
|
|
623
662
|
});
|
|
624
663
|
|
|
625
|
-
//#endregion
|
|
626
|
-
//#region src/hooks/wrappers/functions/useConsumeMfaToken/useConsumeMfaToken.ts
|
|
627
|
-
/**
|
|
628
|
-
* Consumes and clears the current MFA token from client state.
|
|
629
|
-
*
|
|
630
|
-
* Wraps `consumeMfaToken` from `@dynamic-labs-sdk/client`. Takes no
|
|
631
|
-
* arguments — call `mutate()` to read the token from a successful MFA
|
|
632
|
-
* authentication and remove it so it can't be reused; the resolved `data`
|
|
633
|
-
* is the consumed token.
|
|
634
|
-
*
|
|
635
|
-
* @example
|
|
636
|
-
* ```tsx
|
|
637
|
-
* const { mutate: consumeMfaToken, data: mfaToken } = useConsumeMfaToken();
|
|
638
|
-
* <button onClick={() => consumeMfaToken()}>Consume MFA token</button>
|
|
639
|
-
* ```
|
|
640
|
-
*/
|
|
641
|
-
const useConsumeMfaToken = ({ mutateParams } = {}) => useBaseMutation({
|
|
642
|
-
mutateParams,
|
|
643
|
-
mutationFn: ({ client }) => Promise.resolve(consumeMfaToken(client))
|
|
644
|
-
});
|
|
645
|
-
|
|
646
664
|
//#endregion
|
|
647
665
|
//#region src/hooks/wrappers/functions/useCreateCoinbaseOnrampOrder/useCreateCoinbaseOnrampOrder.ts
|
|
648
666
|
/**
|
|
@@ -766,14 +784,14 @@ const useDeleteUser = ({ mutateParams } = {}) => useBaseMutation({
|
|
|
766
784
|
});
|
|
767
785
|
|
|
768
786
|
//#endregion
|
|
769
|
-
//#region src/hooks/wrappers/functions/
|
|
787
|
+
//#region src/hooks/wrappers/functions/useOnEvent/useOnEvent.ts
|
|
770
788
|
/**
|
|
771
789
|
* Subscribes to a Dynamic client event.
|
|
772
790
|
*
|
|
773
791
|
* Uses a ref to always call the latest listener without re-subscribing,
|
|
774
792
|
* and cleans up the subscription on unmount or event name change.
|
|
775
793
|
*/
|
|
776
|
-
const
|
|
794
|
+
const useOnEvent = ({ event, listener }) => {
|
|
777
795
|
const client = useDynamicClient();
|
|
778
796
|
const callbackRef = useRef(listener);
|
|
779
797
|
callbackRef.current = listener;
|
|
@@ -802,26 +820,27 @@ const useExecuteSwapTransaction = ({ mutateParams } = {}) => useBaseMutation({
|
|
|
802
820
|
});
|
|
803
821
|
|
|
804
822
|
//#endregion
|
|
805
|
-
//#region src/hooks/wrappers/functions/
|
|
823
|
+
//#region src/hooks/wrappers/functions/useFlow/useFlow.ts
|
|
806
824
|
/**
|
|
807
825
|
* Returns the flow with the given ID.
|
|
808
826
|
*
|
|
809
|
-
* Wraps `getFlow` from `@dynamic-labs-sdk/client`.
|
|
827
|
+
* Wraps `getFlow` from `@dynamic-labs-sdk/client`. The hook stays disabled
|
|
828
|
+
* until `flowId` is defined.
|
|
810
829
|
*
|
|
811
830
|
* @example
|
|
812
831
|
* ```tsx
|
|
813
|
-
* const { data: flow, isLoading, refetch } =
|
|
832
|
+
* const { data: flow, isLoading, refetch } = useFlow({ flowId });
|
|
814
833
|
* ```
|
|
815
834
|
*/
|
|
816
|
-
const
|
|
835
|
+
const useFlow = ({ flowId, queryParams }) => useBaseQuery({
|
|
817
836
|
enabled: flowId !== void 0,
|
|
818
837
|
queryFn: (client) => getFlow({ flowId }, client),
|
|
819
|
-
queryKey: ["
|
|
838
|
+
queryKey: ["useFlow", flowId],
|
|
820
839
|
queryParams
|
|
821
840
|
});
|
|
822
841
|
|
|
823
842
|
//#endregion
|
|
824
|
-
//#region src/hooks/wrappers/functions/
|
|
843
|
+
//#region src/hooks/wrappers/functions/useFlowQuote/useFlowQuote.ts
|
|
825
844
|
/**
|
|
826
845
|
* Fetches a quote for a flow.
|
|
827
846
|
*
|
|
@@ -830,13 +849,13 @@ const useGetFlow = ({ flowId, queryParams }) => useBaseQuery({
|
|
|
830
849
|
*
|
|
831
850
|
* @example
|
|
832
851
|
* ```tsx
|
|
833
|
-
* const { mutate: getFlowQuote, isPending } =
|
|
852
|
+
* const { mutate: getFlowQuote, isPending } = useFlowQuote();
|
|
834
853
|
* <button onClick={() => getFlowQuote({ flowId, fromTokenAddress, slippage })} disabled={isPending}>
|
|
835
854
|
* Get flow quote
|
|
836
855
|
* </button>
|
|
837
856
|
* ```
|
|
838
857
|
*/
|
|
839
|
-
const
|
|
858
|
+
const useFlowQuote = ({ mutateParams } = {}) => useBaseMutation({
|
|
840
859
|
mutateParams,
|
|
841
860
|
mutationFn: ({ client, variables }) => getFlowQuote(variables, client)
|
|
842
861
|
});
|
|
@@ -879,67 +898,16 @@ const useGoogleDriveBackupReadiness = ({ queryParams } = {}) => useBaseQuery({
|
|
|
879
898
|
});
|
|
880
899
|
|
|
881
900
|
//#endregion
|
|
882
|
-
//#region src/hooks/wrappers/functions/
|
|
901
|
+
//#region src/hooks/wrappers/functions/useIsMfaRequiredForAction/useIsMfaRequiredForAction.ts
|
|
883
902
|
/**
|
|
884
|
-
* Returns whether
|
|
885
|
-
*
|
|
886
|
-
* Re-renders whenever project settings change (e.g. after the first
|
|
887
|
-
* settings fetch or a live settings update).
|
|
903
|
+
* Returns whether MFA is required for the given action.
|
|
888
904
|
*
|
|
889
|
-
*
|
|
890
|
-
* that need to distinguish "still resolving" from "settings loaded, captcha
|
|
891
|
-
* really not required" can read `isPlaceholderData` / `isFetching` on the
|
|
892
|
-
* result.
|
|
905
|
+
* Wraps `isMfaRequiredForAction` from `@dynamic-labs-sdk/client`.
|
|
893
906
|
*/
|
|
894
|
-
const
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
selector: (client) => client.projectSettings === null ? false : isCaptchaRequired(client)
|
|
899
|
-
});
|
|
900
|
-
|
|
901
|
-
//#endregion
|
|
902
|
-
//#region src/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.ts
|
|
903
|
-
/**
|
|
904
|
-
* Returns whether the current user still needs to complete additional MFA
|
|
905
|
-
* authentication (i.e. their session scope contains `requiresAdditionalAuth`).
|
|
906
|
-
*
|
|
907
|
-
* Re-renders whenever the user changes (login, logout, scope refresh).
|
|
908
|
-
*
|
|
909
|
-
* Returns `false` whenever no user is signed in — a signed-out user
|
|
910
|
-
* trivially has nothing pending. Callers that need to distinguish "still
|
|
911
|
-
* resolving" from "really nothing pending" can read `isPlaceholderData` /
|
|
912
|
-
* `isFetching` on the result.
|
|
913
|
-
*/
|
|
914
|
-
const useIsUserMissingMfaAuth = () => useBaseState({
|
|
915
|
-
defaultValue: false,
|
|
916
|
-
event: "userChanged",
|
|
917
|
-
queryKey: ["useIsUserMissingMfaAuth"],
|
|
918
|
-
selector: (client) => client.user === null ? false : isUserMissingMfaAuth(client)
|
|
919
|
-
});
|
|
920
|
-
|
|
921
|
-
//#endregion
|
|
922
|
-
//#region src/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.ts
|
|
923
|
-
/**
|
|
924
|
-
* Returns whether the current user has completed onboarding (no missing KYC
|
|
925
|
-
* fields, MFA enrollment, or pending recovery-code acknowledgement).
|
|
926
|
-
*
|
|
927
|
-
* Re-renders whenever the user changes (login, logout, profile update) or
|
|
928
|
-
* project settings change (which affects what counts as a missing field).
|
|
929
|
-
*
|
|
930
|
-
* Returns `false` whenever no user is signed in, mirroring the "not yet
|
|
931
|
-
* complete" semantics — callers should use the loading flags on the result
|
|
932
|
-
* (`isPlaceholderData`, `isFetching`) to distinguish "still resolving" from
|
|
933
|
-
* "really not complete".
|
|
934
|
-
*/
|
|
935
|
-
const useIsUserOnboardingComplete = () => useBaseState({
|
|
936
|
-
defaultValue: false,
|
|
937
|
-
event: {
|
|
938
|
-
projectSettingsChanged: true,
|
|
939
|
-
userChanged: true
|
|
940
|
-
},
|
|
941
|
-
queryKey: ["useIsUserOnboardingComplete"],
|
|
942
|
-
selector: (client) => client.user === null ? false : isUserOnboardingComplete(client)
|
|
907
|
+
const useIsMfaRequiredForAction = ({ queryParams, ...args }) => useBaseQuery({
|
|
908
|
+
queryFn: (client) => isMfaRequiredForAction(args, client),
|
|
909
|
+
queryKey: ["useIsMfaRequiredForAction", args],
|
|
910
|
+
queryParams
|
|
943
911
|
});
|
|
944
912
|
|
|
945
913
|
//#endregion
|
|
@@ -959,17 +927,17 @@ const useKrakenAccounts = ({ queryParams, ...args } = {}) => useBaseQuery({
|
|
|
959
927
|
});
|
|
960
928
|
|
|
961
929
|
//#endregion
|
|
962
|
-
//#region src/hooks/wrappers/functions/
|
|
930
|
+
//#region src/hooks/wrappers/functions/useCreateKrakenExchangeTransfer/useCreateKrakenExchangeTransfer.ts
|
|
963
931
|
/**
|
|
964
932
|
* Wraps `createKrakenExchangeTransfer` from `@dynamic-labs-sdk/client`. Call `mutate({ accountId, ... })` to send crypto from a Kraken account (see `useKrakenAccounts`) to a whitelisted address (see `useKrakenWhitelistedAddresses`); the resolved `data` is the created transfer.
|
|
965
933
|
*
|
|
966
934
|
* @example
|
|
967
935
|
* ```tsx
|
|
968
|
-
* const { mutate: transfer, data } =
|
|
936
|
+
* const { mutate: transfer, data } = useCreateKrakenExchangeTransfer();
|
|
969
937
|
* transfer({ accountId, asset, amount, address });
|
|
970
938
|
* ```
|
|
971
939
|
*/
|
|
972
|
-
const
|
|
940
|
+
const useCreateKrakenExchangeTransfer = ({ mutateParams } = {}) => useBaseMutation({
|
|
973
941
|
mutateParams,
|
|
974
942
|
mutationFn: ({ client, variables }) => createKrakenExchangeTransfer(variables, client)
|
|
975
943
|
});
|
|
@@ -1142,27 +1110,13 @@ const useNativeBalance = ({ walletAccount, queryParams }) => useBaseQuery({
|
|
|
1142
1110
|
queryParams
|
|
1143
1111
|
});
|
|
1144
1112
|
|
|
1145
|
-
//#endregion
|
|
1146
|
-
//#region src/hooks/wrappers/functions/useNetworksData/useNetworksData.ts
|
|
1147
|
-
/**
|
|
1148
|
-
* Returns the network configurations for all networks enabled in the Dynamic project.
|
|
1149
|
-
*
|
|
1150
|
-
* Re-renders when project settings change.
|
|
1151
|
-
*/
|
|
1152
|
-
const useNetworksData = () => useBaseState({
|
|
1153
|
-
defaultValue: [],
|
|
1154
|
-
event: "projectSettingsChanged",
|
|
1155
|
-
queryKey: ["useNetworksData"],
|
|
1156
|
-
selector: (client) => getNetworksData(client)
|
|
1157
|
-
});
|
|
1158
|
-
|
|
1159
1113
|
//#endregion
|
|
1160
1114
|
//#region src/hooks/wrappers/functions/useOnceEvent/useOnceEvent.ts
|
|
1161
1115
|
/**
|
|
1162
1116
|
* Subscribes to a Dynamic client event for a single occurrence.
|
|
1163
1117
|
*
|
|
1164
1118
|
* Wraps `onceEvent` from `@dynamic-labs-sdk/client` — the one-shot sibling of
|
|
1165
|
-
* `
|
|
1119
|
+
* `useOnEvent`. The listener fires at most once. Uses a ref to always call the
|
|
1166
1120
|
* latest listener, and cleans up the subscription on unmount or event change.
|
|
1167
1121
|
*
|
|
1168
1122
|
* @example
|
|
@@ -1390,49 +1344,49 @@ const useRevokeRegisteredDevice = ({ mutateParams } = {}) => useBaseMutation({
|
|
|
1390
1344
|
});
|
|
1391
1345
|
|
|
1392
1346
|
//#endregion
|
|
1393
|
-
//#region src/hooks/wrappers/functions/
|
|
1347
|
+
//#region src/hooks/wrappers/functions/useSendEmailOTP/useSendEmailOTP.ts
|
|
1394
1348
|
/**
|
|
1395
1349
|
* Sends a one-time password to an email address.
|
|
1396
1350
|
*
|
|
1397
1351
|
* Wraps `sendEmailOTP` from `@dynamic-labs-sdk/client`. Call
|
|
1398
1352
|
* `mutate({ email })` to dispatch the code; the resolved `data` is the
|
|
1399
|
-
* `OTPVerification` payload to hand to {@link
|
|
1353
|
+
* `OTPVerification` payload to hand to {@link useVerifyOTP} once the user
|
|
1400
1354
|
* enters the code they received.
|
|
1401
1355
|
*
|
|
1402
1356
|
* @example
|
|
1403
1357
|
* ```tsx
|
|
1404
|
-
* const { mutate:
|
|
1405
|
-
*
|
|
1358
|
+
* const { mutate: sendEmailOTP, data: otpVerification, isPending } =
|
|
1359
|
+
* useSendEmailOTP();
|
|
1406
1360
|
* <button
|
|
1407
|
-
* onClick={() =>
|
|
1361
|
+
* onClick={() => sendEmailOTP({ email: 'velma@mystery.inc' })}
|
|
1408
1362
|
* disabled={isPending}
|
|
1409
1363
|
* >
|
|
1410
1364
|
* Email me a code
|
|
1411
1365
|
* </button>
|
|
1412
1366
|
* ```
|
|
1413
1367
|
*/
|
|
1414
|
-
const
|
|
1368
|
+
const useSendEmailOTP = ({ mutateParams } = {}) => useBaseMutation({
|
|
1415
1369
|
mutateParams,
|
|
1416
1370
|
mutationFn: ({ client, variables }) => sendEmailOTP(variables, client)
|
|
1417
1371
|
});
|
|
1418
1372
|
|
|
1419
1373
|
//#endregion
|
|
1420
|
-
//#region src/hooks/wrappers/functions/
|
|
1374
|
+
//#region src/hooks/wrappers/functions/useSendSmsOTP/useSendSmsOTP.ts
|
|
1421
1375
|
/**
|
|
1422
1376
|
* Sends a one-time password to a phone number via SMS.
|
|
1423
1377
|
*
|
|
1424
1378
|
* Wraps `sendSmsOTP` from `@dynamic-labs-sdk/client`. Call
|
|
1425
1379
|
* `mutate({ isoCountryCode, phoneNumber })` to dispatch the code; the
|
|
1426
1380
|
* resolved `data` is the `OTPVerification` payload to hand to
|
|
1427
|
-
* {@link
|
|
1381
|
+
* {@link useVerifyOTP} once the user enters the code they received.
|
|
1428
1382
|
*
|
|
1429
1383
|
* @example
|
|
1430
1384
|
* ```tsx
|
|
1431
|
-
* const { mutate:
|
|
1432
|
-
*
|
|
1385
|
+
* const { mutate: sendSmsOTP, data: otpVerification, isPending } =
|
|
1386
|
+
* useSendSmsOTP();
|
|
1433
1387
|
* <button
|
|
1434
1388
|
* onClick={() =>
|
|
1435
|
-
*
|
|
1389
|
+
* sendSmsOTP({ isoCountryCode: 'US', phoneNumber: '5550100' })
|
|
1436
1390
|
* }
|
|
1437
1391
|
* disabled={isPending}
|
|
1438
1392
|
* >
|
|
@@ -1440,7 +1394,7 @@ const useSendEmailOtp = ({ mutateParams } = {}) => useBaseMutation({
|
|
|
1440
1394
|
* </button>
|
|
1441
1395
|
* ```
|
|
1442
1396
|
*/
|
|
1443
|
-
const
|
|
1397
|
+
const useSendSmsOTP = ({ mutateParams } = {}) => useBaseMutation({
|
|
1444
1398
|
mutateParams,
|
|
1445
1399
|
mutationFn: ({ client, variables }) => sendSmsOTP(variables, client)
|
|
1446
1400
|
});
|
|
@@ -1813,29 +1767,29 @@ const useUserSocialAccounts = () => useBaseState({
|
|
|
1813
1767
|
});
|
|
1814
1768
|
|
|
1815
1769
|
//#endregion
|
|
1816
|
-
//#region src/hooks/wrappers/functions/
|
|
1770
|
+
//#region src/hooks/wrappers/functions/useVerifyOTP/useVerifyOTP.ts
|
|
1817
1771
|
/**
|
|
1818
1772
|
* Verifies a one-time password the user received via email or SMS.
|
|
1819
1773
|
*
|
|
1820
1774
|
* Wraps `verifyOTP` from `@dynamic-labs-sdk/client`. Call
|
|
1821
1775
|
* `mutate({ otpVerification, verificationToken })` with the
|
|
1822
|
-
* `OTPVerification` returned by {@link
|
|
1823
|
-
* {@link
|
|
1776
|
+
* `OTPVerification` returned by {@link useSendEmailOTP} /
|
|
1777
|
+
* {@link useSendSmsOTP} and the code the user entered. A single hook
|
|
1824
1778
|
* covers both flows — `verifyOTP` resolves sign-in vs. user-update
|
|
1825
1779
|
* internally based on the current session.
|
|
1826
1780
|
*
|
|
1827
1781
|
* @example
|
|
1828
1782
|
* ```tsx
|
|
1829
|
-
* const { mutate:
|
|
1783
|
+
* const { mutate: verifyOTP, isPending } = useVerifyOTP();
|
|
1830
1784
|
* <button
|
|
1831
|
-
* onClick={() =>
|
|
1785
|
+
* onClick={() => verifyOTP({ otpVerification, verificationToken: code })}
|
|
1832
1786
|
* disabled={isPending}
|
|
1833
1787
|
* >
|
|
1834
1788
|
* Verify
|
|
1835
1789
|
* </button>
|
|
1836
1790
|
* ```
|
|
1837
1791
|
*/
|
|
1838
|
-
const
|
|
1792
|
+
const useVerifyOTP = ({ mutateParams } = {}) => useBaseMutation({
|
|
1839
1793
|
mutateParams,
|
|
1840
1794
|
mutationFn: ({ client, variables }) => verifyOTP(variables, client)
|
|
1841
1795
|
});
|
|
@@ -1907,6 +1861,19 @@ const useWalletConnectCatalog = ({ queryParams } = {}) => useBaseQuery({
|
|
|
1907
1861
|
queryParams
|
|
1908
1862
|
});
|
|
1909
1863
|
|
|
1864
|
+
//#endregion
|
|
1865
|
+
//#region src/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/useWalletConnectCatalogWalletByWalletProviderKey.ts
|
|
1866
|
+
/**
|
|
1867
|
+
* Returns the WalletConnect catalog wallet for the given wallet provider key.
|
|
1868
|
+
*
|
|
1869
|
+
* Wraps `getWalletConnectCatalogWalletByWalletProviderKey` from `@dynamic-labs-sdk/client`.
|
|
1870
|
+
*/
|
|
1871
|
+
const useWalletConnectCatalogWalletByWalletProviderKey = ({ queryParams, ...args }) => useBaseQuery({
|
|
1872
|
+
queryFn: (client) => getWalletConnectCatalogWalletByWalletProviderKey(args, client),
|
|
1873
|
+
queryKey: ["useWalletConnectCatalogWalletByWalletProviderKey", args],
|
|
1874
|
+
queryParams
|
|
1875
|
+
});
|
|
1876
|
+
|
|
1910
1877
|
//#endregion
|
|
1911
1878
|
//#region src/hooks/wrappers/functions/useWalletOptionsCatalogue/useWalletOptionsCatalogue.ts
|
|
1912
1879
|
/**
|
|
@@ -1924,7 +1891,7 @@ const useWalletOptionsCatalogue = ({ queryParams, ...args } = {}) => useBaseQuer
|
|
|
1924
1891
|
});
|
|
1925
1892
|
|
|
1926
1893
|
//#endregion
|
|
1927
|
-
//#region src/hooks/wrappers/functions/
|
|
1894
|
+
//#region src/hooks/wrappers/functions/useOnWalletProviderEvent/useOnWalletProviderEvent.ts
|
|
1928
1895
|
/**
|
|
1929
1896
|
* Subscribes to an event emitted by a specific wallet provider.
|
|
1930
1897
|
*
|
|
@@ -1934,14 +1901,14 @@ const useWalletOptionsCatalogue = ({ queryParams, ...args } = {}) => useBaseQuer
|
|
|
1934
1901
|
*
|
|
1935
1902
|
* @example
|
|
1936
1903
|
* ```tsx
|
|
1937
|
-
*
|
|
1904
|
+
* useOnWalletProviderEvent({
|
|
1938
1905
|
* walletProviderKey: 'metamaskevm',
|
|
1939
1906
|
* event: 'accountsChanged',
|
|
1940
1907
|
* callback: ({ addresses }) => console.log(addresses),
|
|
1941
1908
|
* });
|
|
1942
1909
|
* ```
|
|
1943
1910
|
*/
|
|
1944
|
-
const
|
|
1911
|
+
const useOnWalletProviderEvent = ({ callback, event, walletProviderKey }) => {
|
|
1945
1912
|
const client = useDynamicClient();
|
|
1946
1913
|
const callbackRef = useRef(callback);
|
|
1947
1914
|
callbackRef.current = callback;
|
|
@@ -2034,5 +2001,5 @@ const useUser = () => useBaseState({
|
|
|
2034
2001
|
assertPackageVersion(name, version);
|
|
2035
2002
|
|
|
2036
2003
|
//#endregion
|
|
2037
|
-
export { DynamicProvider, useAcknowledgeRecoveryCodes, useActiveNetworkData, useAddNetwork, useAttachFlowSource, useAuthenticateMfaRecoveryCode,
|
|
2004
|
+
export { DynamicProvider, useAcknowledgeRecoveryCodes, useActiveNetworkData, useActiveNetworkId, useAddCoinbaseOnrampOrderEventListener, useAddNetwork, useAssertWalletAccountSigningAvailability, useAttachFlowSource, useAuthenticateMfaRecoveryCode, useAuthenticatePasskeyMFA, useAuthenticateTotpMfaDevice, useAvailableWalletProvidersData, useBalanceForAddress, useBroadcastFlow, useCancelFlow, useCheckStepUpAuth, useCoinbaseBuyUrl, useCompleteDeviceRegistration, useCompleteSocialRedirect, useConfirmTransaction, useConnectAndVerifyWithWalletProvider, useConnectWithWalletProvider, useConnectedAddresses, useCreateCoinbaseOnrampOrder, useCreateCryptoDotComPayment, useCreateKrakenExchangeTransfer, useCreateNewMfaRecoveryCodes, useDeleteMfaDevice, useDeletePasskey, useDeleteUser, useDynamicClient, useExecuteSwapTransaction, useFlow, useFlowQuote, useGoogleDriveBackupReadiness, useInitStatus, useIsMfaRequiredForAction, useKrakenAccounts, useKrakenWhitelistedAddresses, useLogout, useMfaDevices, useMfaMethods, useMfaRecoveryCodes, useMoonPayCurrencies, useMoonPayUrl, useMultichainTokenBalances, useNativeBalance, useOnEvent, useOnWalletProviderEvent, useOnceEvent, usePasskeys, usePrepareFlowSigning, useProveWalletAccountOwnership, useRefreshAuth, useRegisterPasskey, useRegisterTotpMfaDevice, useRegisteredDevices, useRemoveWalletAccount, useRequestExternalAuthElevatedToken, useRevokeAllRegisteredDevices, useRevokeRegisteredDevice, useSendEmailOTP, useSendSmsOTP, useSessionExpiresAt, useSetDefaultMfaDevice, useSignInWithExternalJwt, useSignInWithPasskey, useSignInWithSocialPopUp, useSignInWithSocialRedirect, useSignMessage, useSubmitFlowTransaction, useSwapQuote, useSwapStatus, useSwitchActiveNetwork, useTokenBalances, useTransactionHistory, useTransferAmount, useTransferWalletAccount, useUnlinkSocialAccount, useUpdateUser, useUser, useUserSocialAccounts, useVerifyOTP, useVerifyWalletAccount, useWalletAccounts, useWalletConnectCatalog, useWalletConnectCatalogWalletByWalletProviderKey, useWalletOptionsCatalogue };
|
|
2038
2005
|
//# sourceMappingURL=index.esm.js.map
|