@dynamic-labs-sdk/react-hooks 1.21.2 → 1.22.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/core.cjs +12 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.esm.js +9 -0
- package/dist/core.esm.js.map +1 -0
- package/dist/exports/core.d.ts +8 -0
- package/dist/exports/core.d.ts.map +1 -0
- package/dist/exports/index.d.ts +1 -0
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/useDelegateWaasKeyShares.d.ts +1 -0
- package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/useDelegateWaasKeyShares.d.ts.map +1 -1
- package/dist/hooks/wrappers/functions/useTransferBusinessAccountOwnership/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useTransferBusinessAccountOwnership/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useTransferBusinessAccountOwnership/useTransferBusinessAccountOwnership.d.ts +52 -0
- package/dist/hooks/wrappers/functions/useTransferBusinessAccountOwnership/useTransferBusinessAccountOwnership.d.ts.map +1 -0
- package/dist/index.cjs +150 -379
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +31 -261
- package/dist/index.esm.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/useBaseState-Cnn7Pekg.esm.js +263 -0
- package/dist/useBaseState-Cnn7Pekg.esm.js.map +1 -0
- package/dist/useBaseState-xLhM1z50.cjs +310 -0
- package/dist/useBaseState-xLhM1z50.cjs.map +1 -0
- package/package.json +9 -4
package/dist/index.esm.js
CHANGED
|
@@ -1,100 +1,11 @@
|
|
|
1
|
+
import { a as useDynamicClient, c as version, i as useBaseMutation, n as useBaseQuery, o as DynamicProvider, r as QUERY_KEY_PREFIX, s as name, t as useBaseState } from "./useBaseState-Cnn7Pekg.esm.js";
|
|
1
2
|
import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, addNetwork, assertWalletAccountSigningAvailability, attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, broadcastFlow, cancelFlow, checkStepUpAuth, completeDeviceRegistration, completeSocialRedirect, confirmTransaction, connectAndVerifyWithWalletProvider, connectWithWalletProvider, createCoinbaseOnrampOrder, createCryptoDotComPayment, createKrakenExchangeTransfer, createNewMfaRecoveryCodes, deleteMfaDevice, deletePasskey, deleteUser, detectSocialRedirectUrl, 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, getWalletProviderDataByKey, isDeviceRegistrationRequired, isMfaRequiredForAction, isPendingRecoveryCodesAcknowledgment, isUserMissingMfaAuth, isUserOnboardingComplete, logout, mergeUserAccounts, 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 } from "@dynamic-labs-sdk/client";
|
|
4
|
+
import { useQueryClient } from "@tanstack/react-query";
|
|
5
|
+
import { useEffect, useRef } from "react";
|
|
6
6
|
import { getCore } from "@dynamic-labs-sdk/client/core";
|
|
7
|
-
import { addBusinessAccountMember, addBusinessAccountSigner, addWalletToBusinessAccount, backupWaasKeySharesToGoogleDrive, createBusinessAccount, createWaasWalletAccounts, createWalletForBusinessAccount, delegateWaasKeyShares, exportWaasClientKeyshares, exportWaasPrivateKey, getBusinessAccount, getWalletRecoveryState, importWaasPrivateKey, listBusinessAccounts, migrateFromFireblocks, refreshWaasWalletAccountShares, removeBusinessAccountMember, removeBusinessAccountSigner, revokeWaasDelegation, setWaasWalletAccountPassword, unlockWallet, updateWaasPassword } from "@dynamic-labs-sdk/client/waas";
|
|
7
|
+
import { addBusinessAccountMember, addBusinessAccountSigner, addWalletToBusinessAccount, backupWaasKeySharesToGoogleDrive, createBusinessAccount, createWaasWalletAccounts, createWalletForBusinessAccount, delegateWaasKeyShares, exportWaasClientKeyshares, exportWaasPrivateKey, getBusinessAccount, getWalletRecoveryState, importWaasPrivateKey, listBusinessAccounts, migrateFromFireblocks, refreshWaasWalletAccountShares, removeBusinessAccountMember, removeBusinessAccountSigner, revokeWaasDelegation, setWaasWalletAccountPassword, transferBusinessAccountOwnership, unlockWallet, updateWaasPassword } from "@dynamic-labs-sdk/client/waas";
|
|
8
8
|
|
|
9
|
-
//#region package.json
|
|
10
|
-
var name = "@dynamic-labs-sdk/react-hooks";
|
|
11
|
-
var version = "1.21.2";
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region src/modules/DynamicContext/DynamicContext.ts
|
|
15
|
-
/**
|
|
16
|
-
* Internal React context for providing the DynamicClient instance to hooks.
|
|
17
|
-
*/
|
|
18
|
-
const DynamicContext = createContext(null);
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/modules/DynamicContext/DynamicProvider.tsx
|
|
22
|
-
/**
|
|
23
|
-
* Provides the DynamicClient instance to all child hooks.
|
|
24
|
-
*
|
|
25
|
-
* Wrap your application with this provider and pass your client instance
|
|
26
|
-
* so that hooks like useUser, useGetWalletAccounts, etc. can access it.
|
|
27
|
-
*/
|
|
28
|
-
const DynamicProvider = ({ children, client }) => /* @__PURE__ */ jsx(DynamicContext.Provider, {
|
|
29
|
-
value: client,
|
|
30
|
-
children
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/errors/MissingProviderError/MissingProviderError.ts
|
|
35
|
-
var MissingProviderError = class extends BaseError {
|
|
36
|
-
constructor() {
|
|
37
|
-
super({
|
|
38
|
-
cause: null,
|
|
39
|
-
code: "MISSING_PROVIDER",
|
|
40
|
-
docsUrl: null,
|
|
41
|
-
name: "MissingProviderError",
|
|
42
|
-
shortMessage: "Hook must be used within a <DynamicProvider>.\nWrap your component tree with <DynamicProvider client={client}>."
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/modules/DynamicContext/useDynamicClient.ts
|
|
49
|
-
/**
|
|
50
|
-
* Internal hook to access the DynamicClient from context.
|
|
51
|
-
* Throws if used outside of DynamicProvider.
|
|
52
|
-
*/
|
|
53
|
-
const useDynamicClient = () => {
|
|
54
|
-
const client = useContext(DynamicContext);
|
|
55
|
-
if (!client) throw new MissingProviderError();
|
|
56
|
-
return client;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/foundation/useBaseMutation/useBaseMutation.ts
|
|
61
|
-
const EMPTY_MIDDLEWARES$1 = [];
|
|
62
|
-
/**
|
|
63
|
-
* Internal hook that wraps a react-query `useMutation` with the conventions
|
|
64
|
-
* used by every async-write hook in this package:
|
|
65
|
-
*
|
|
66
|
-
* - `mutationFn` receives the resolved `DynamicClient` from context plus
|
|
67
|
-
* the caller-supplied `variables`, and is gated behind
|
|
68
|
-
* `waitForClientInitialized`.
|
|
69
|
-
* - Callers pass `mutateParams` to override any default
|
|
70
|
-
* `UseMutationOptions`, so consumers can wire `onSuccess` / `onError` /
|
|
71
|
-
* etc.
|
|
72
|
-
* - Callers pass `middlewares` (named hooks like `invalidatesQueries`) and
|
|
73
|
-
* each contributed `onSuccess` runs, in order, ahead of the consumer's own.
|
|
74
|
-
*
|
|
75
|
-
* Returns the full `useMutation` result — `mutate`, `mutateAsync`, `data`,
|
|
76
|
-
* `error`, `isPending`, `isSuccess`, `reset`, `status`, etc.
|
|
77
|
-
*/
|
|
78
|
-
const useBaseMutation = ({ middlewares = EMPTY_MIDDLEWARES$1, mutationFn, mutateParams }) => {
|
|
79
|
-
const client = useDynamicClient();
|
|
80
|
-
const contributions = middlewares.map((useMiddleware) => useMiddleware());
|
|
81
|
-
return useMutation({
|
|
82
|
-
mutationFn: async (variables) => {
|
|
83
|
-
await waitForClientInitialized(client);
|
|
84
|
-
return mutationFn({
|
|
85
|
-
client,
|
|
86
|
-
variables
|
|
87
|
-
});
|
|
88
|
-
},
|
|
89
|
-
...mutateParams,
|
|
90
|
-
onSuccess: async (...args) => {
|
|
91
|
-
for (const contribution of contributions) await contribution.onSuccess?.(...args);
|
|
92
|
-
return mutateParams?.onSuccess?.(...args);
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
//#endregion
|
|
98
9
|
//#region src/hooks/wrappers/functions/useAcknowledgeRecoveryCodes/useAcknowledgeRecoveryCodes.ts
|
|
99
10
|
/**
|
|
100
11
|
* Marks the current user's MFA recovery codes as acknowledged. Takes no arguments — call `mutate()` after the user confirms they have stored the codes shown by {@link useGetMfaRecoveryCodes}.
|
|
@@ -112,63 +23,6 @@ const useAcknowledgeRecoveryCodes = ({ mutateParams } = {}) => useBaseMutation({
|
|
|
112
23
|
mutationFn: ({ client }) => acknowledgeRecoveryCodes(client)
|
|
113
24
|
});
|
|
114
25
|
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region src/foundation/hookKeyNamespace/hookKeyNamespace.ts
|
|
117
|
-
/**
|
|
118
|
-
* Root namespace shared by every react-query key this package creates.
|
|
119
|
-
* Both `QUERY_KEY_PREFIX` (async-read hooks) and the state-hook key
|
|
120
|
-
* prefix derive from this constant so the namespace is defined exactly
|
|
121
|
-
* once.
|
|
122
|
-
*/
|
|
123
|
-
const HOOK_KEY_NAMESPACE = "@dynamic-labs-sdk/react-hooks";
|
|
124
|
-
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region src/foundation/useBaseQuery/queryKeyPrefix.ts
|
|
127
|
-
/**
|
|
128
|
-
* Shared prefix for all query keys created by `useBaseQuery`. Mutation hooks
|
|
129
|
-
* reference this when invalidating related queries on success.
|
|
130
|
-
*/
|
|
131
|
-
const QUERY_KEY_PREFIX = [HOOK_KEY_NAMESPACE, "query"];
|
|
132
|
-
|
|
133
|
-
//#endregion
|
|
134
|
-
//#region src/foundation/useBaseQuery/useBaseQuery.ts
|
|
135
|
-
/**
|
|
136
|
-
* Stable empty default for the `middlewares` param so the common case never
|
|
137
|
-
* allocates a fresh array per render.
|
|
138
|
-
*/
|
|
139
|
-
const EMPTY_MIDDLEWARES = [];
|
|
140
|
-
/**
|
|
141
|
-
* Internal hook that wraps a react-query `useQuery` with the conventions used
|
|
142
|
-
* by every async-read hook in this package:
|
|
143
|
-
*
|
|
144
|
-
* - `queryFn` receives the resolved `DynamicClient` from context, and is
|
|
145
|
-
* gated behind `waitForClientInitialized` so customers never see "client
|
|
146
|
-
* not ready" errors on first render.
|
|
147
|
-
* - Callers pass `queryParams` to override any default `UseQueryOptions`,
|
|
148
|
-
* so consumers can opt into retries / custom staleTime / etc.
|
|
149
|
-
* - Callers pass `enabled: false` (typically derived from whether their
|
|
150
|
-
* pseudo-required arguments are present) to short-circuit fetches.
|
|
151
|
-
* - Callers pass `middlewares` (named hooks that run reactive subscriptions
|
|
152
|
-
* such as cache invalidation); each runs on every render.
|
|
153
|
-
*
|
|
154
|
-
* Returns the full `useQuery` result — `data`, `error`, `isLoading`,
|
|
155
|
-
* `isFetching`, `isSuccess`, `refetch`, `status`, etc.
|
|
156
|
-
*/
|
|
157
|
-
const useBaseQuery = ({ enabled = true, middlewares = EMPTY_MIDDLEWARES, queryFn, queryKey, queryParams }) => {
|
|
158
|
-
const client = useDynamicClient();
|
|
159
|
-
const fullQueryKey = useMemo(() => [...QUERY_KEY_PREFIX, ...queryKey], [queryKey]);
|
|
160
|
-
middlewares.forEach((useMiddleware) => useMiddleware({ queryKey: fullQueryKey }));
|
|
161
|
-
return useQuery({
|
|
162
|
-
queryFn: async () => {
|
|
163
|
-
await waitForClientInitialized(client);
|
|
164
|
-
return queryFn(client);
|
|
165
|
-
},
|
|
166
|
-
queryKey: fullQueryKey,
|
|
167
|
-
...queryParams,
|
|
168
|
-
enabled: enabled && queryParams?.enabled !== false
|
|
169
|
-
});
|
|
170
|
-
};
|
|
171
|
-
|
|
172
26
|
//#endregion
|
|
173
27
|
//#region src/hooks/wrappers/functions/useOnWalletProviderEvent/useOnWalletProviderEvent.ts
|
|
174
28
|
/**
|
|
@@ -541,115 +395,6 @@ const useAuthenticateTotpMfaDevice = ({ mutateParams } = {}) => {
|
|
|
541
395
|
});
|
|
542
396
|
};
|
|
543
397
|
|
|
544
|
-
//#endregion
|
|
545
|
-
//#region src/foundation/useBaseState/useBaseState.ts
|
|
546
|
-
/**
|
|
547
|
-
* Internal hook that bridges Dynamic client event-driven state to React via
|
|
548
|
-
* react-query.
|
|
549
|
-
*
|
|
550
|
-
* - `queryFn` waits for the client to finish initializing (so the first
|
|
551
|
-
* render never sees a half-built client) and then runs `selector`. Init
|
|
552
|
-
* failures surface on `error`.
|
|
553
|
-
* - The supplied `event`(s) invalidate the query whenever they fire — a
|
|
554
|
-
* per-event predicate can narrow this so unrelated fires don't refetch.
|
|
555
|
-
* - Returns the full `useQuery` result so consumers can read every field
|
|
556
|
-
* react-query exposes (`data`, `error`, `isLoading`, `isFetching`,
|
|
557
|
-
* `refetch`, `status`, ...).
|
|
558
|
-
*/
|
|
559
|
-
const normalizeEvents = (event) => {
|
|
560
|
-
if (typeof event !== "string") return event;
|
|
561
|
-
const map = {};
|
|
562
|
-
map[event] = true;
|
|
563
|
-
return map;
|
|
564
|
-
};
|
|
565
|
-
/**
|
|
566
|
-
* Per-event subscription wrapper. Extracted from `useBaseState` so the
|
|
567
|
-
* listener generics resolve at the per-event call site rather than as the
|
|
568
|
-
* intersection across all events.
|
|
569
|
-
*/
|
|
570
|
-
const subscribeWithPredicate = ({ event, predicate, onMatch }, client) => {
|
|
571
|
-
const listener = (args) => {
|
|
572
|
-
if (predicate === true || predicate(args)) onMatch();
|
|
573
|
-
};
|
|
574
|
-
return onEvent({
|
|
575
|
-
event,
|
|
576
|
-
listener
|
|
577
|
-
}, client);
|
|
578
|
-
};
|
|
579
|
-
const useBaseState = ({ event, queryKey, queryParams, selector, defaultValue, skipWaitForInit = false }) => {
|
|
580
|
-
const client = useDynamicClient();
|
|
581
|
-
const queryClient = useQueryClient();
|
|
582
|
-
/**
|
|
583
|
-
* Normalize the `event` shorthand into an events map. `useMemo` keyed
|
|
584
|
-
* on a stable JSON shape so callers can pass an inline literal each
|
|
585
|
-
* render without churning the event-subscription effect.
|
|
586
|
-
*/
|
|
587
|
-
const eventsMapJson = useMemo(() => {
|
|
588
|
-
const map = normalizeEvents(event);
|
|
589
|
-
const sortedKeys = Object.keys(map).sort((a, b) => a.localeCompare(b));
|
|
590
|
-
return JSON.stringify(sortedKeys.map((k) => ({
|
|
591
|
-
event: k,
|
|
592
|
-
predicate: map[k] === true ? "__always__" : "__fn__"
|
|
593
|
-
})));
|
|
594
|
-
}, [event]);
|
|
595
|
-
/**
|
|
596
|
-
* Per-event predicates resolved from the latest render. The effect
|
|
597
|
-
* stays subscribed across re-renders (its deps are stable), so it
|
|
598
|
-
* reads predicates through this ref to pick up the most recent
|
|
599
|
-
* functions a caller passed inline.
|
|
600
|
-
*/
|
|
601
|
-
const eventsMapRef = useRef(normalizeEvents(event));
|
|
602
|
-
eventsMapRef.current = normalizeEvents(event);
|
|
603
|
-
/**
|
|
604
|
-
* Stable list of event names the effect needs to subscribe to. Driven
|
|
605
|
-
* by `eventsMapJson` so callers can swap predicate identities each
|
|
606
|
-
* render without re-subscribing.
|
|
607
|
-
*/
|
|
608
|
-
const eventNames = useMemo(() => {
|
|
609
|
-
const map = eventsMapRef.current;
|
|
610
|
-
return Object.keys(map).sort((a, b) => a.localeCompare(b));
|
|
611
|
-
}, [eventsMapJson]);
|
|
612
|
-
const fullQueryKey = useMemo(() => [
|
|
613
|
-
HOOK_KEY_NAMESPACE,
|
|
614
|
-
"state",
|
|
615
|
-
...queryKey
|
|
616
|
-
], [JSON.stringify(queryKey)]);
|
|
617
|
-
useEffect(() => {
|
|
618
|
-
const core = getCore(client);
|
|
619
|
-
const invalidate = () => {
|
|
620
|
-
queryClient.invalidateQueries({ queryKey: fullQueryKey }).catch((invalidateError) => {
|
|
621
|
-
core.logger.error("[useBaseState] invalidateQueries failed", invalidateError);
|
|
622
|
-
});
|
|
623
|
-
};
|
|
624
|
-
const unsubscribers = eventNames.map((eventName) => subscribeWithPredicate({
|
|
625
|
-
event: eventName,
|
|
626
|
-
onMatch: invalidate,
|
|
627
|
-
predicate: (args) => {
|
|
628
|
-
const predicate = eventsMapRef.current[eventName];
|
|
629
|
-
if (predicate === void 0) return false;
|
|
630
|
-
return predicate === true || predicate(args);
|
|
631
|
-
}
|
|
632
|
-
}, client));
|
|
633
|
-
return () => {
|
|
634
|
-
for (const unsubscribe of unsubscribers) unsubscribe();
|
|
635
|
-
};
|
|
636
|
-
}, [
|
|
637
|
-
client,
|
|
638
|
-
eventNames,
|
|
639
|
-
queryClient,
|
|
640
|
-
fullQueryKey
|
|
641
|
-
]);
|
|
642
|
-
return useQuery({
|
|
643
|
-
...queryParams,
|
|
644
|
-
placeholderData: defaultValue,
|
|
645
|
-
queryFn: skipWaitForInit ? () => selector(client) : async () => {
|
|
646
|
-
await waitForClientInitialized(client);
|
|
647
|
-
return selector(client);
|
|
648
|
-
},
|
|
649
|
-
queryKey: fullQueryKey
|
|
650
|
-
});
|
|
651
|
-
};
|
|
652
|
-
|
|
653
398
|
//#endregion
|
|
654
399
|
//#region src/hooks/wrappers/functions/useGetAvailableWalletProvidersData/useGetAvailableWalletProvidersData.ts
|
|
655
400
|
/**
|
|
@@ -2269,6 +2014,31 @@ const useTransferAmount = ({ mutateParams } = {}) => useBaseMutation({
|
|
|
2269
2014
|
mutationFn: ({ client, variables }) => transferAmount(variables, client)
|
|
2270
2015
|
});
|
|
2271
2016
|
|
|
2017
|
+
//#endregion
|
|
2018
|
+
//#region src/hooks/wrappers/functions/useTransferBusinessAccountOwnership/useTransferBusinessAccountOwnership.ts
|
|
2019
|
+
/**
|
|
2020
|
+
* Wraps `transferBusinessAccountOwnership` from `@dynamic-labs-sdk/client/waas`. Call
|
|
2021
|
+
* `mutate(variables)` to hand ownership of a business account to another member (owner-only; the
|
|
2022
|
+
* previous owner is demoted to admin).
|
|
2023
|
+
*
|
|
2024
|
+
* @example
|
|
2025
|
+
* ```tsx
|
|
2026
|
+
* const { mutate, isPending } = useTransferBusinessAccountOwnership();
|
|
2027
|
+
* <button onClick={() => mutate({ businessAccountId, newOwnerUserId })} disabled={isPending}>
|
|
2028
|
+
* Transfer ownership
|
|
2029
|
+
* </button>
|
|
2030
|
+
* ```
|
|
2031
|
+
*
|
|
2032
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `transferBusinessAccountOwnership` and whose `data` is the updated business account detail.
|
|
2033
|
+
* @see transferBusinessAccountOwnership
|
|
2034
|
+
* @see UseTransferBusinessAccountOwnershipParams
|
|
2035
|
+
* @notInstrumented
|
|
2036
|
+
*/
|
|
2037
|
+
const useTransferBusinessAccountOwnership = ({ mutateParams } = {}) => useBaseMutation({
|
|
2038
|
+
mutateParams,
|
|
2039
|
+
mutationFn: ({ client, variables }) => transferBusinessAccountOwnership(variables, client)
|
|
2040
|
+
});
|
|
2041
|
+
|
|
2272
2042
|
//#endregion
|
|
2273
2043
|
//#region src/hooks/wrappers/functions/useTransferWalletAccount/useTransferWalletAccount.ts
|
|
2274
2044
|
/**
|
|
@@ -3000,5 +2770,5 @@ const useUser = () => useBaseState({
|
|
|
3000
2770
|
assertPackageVersion(name, version);
|
|
3001
2771
|
|
|
3002
2772
|
//#endregion
|
|
3003
|
-
export { DynamicProvider, useAcknowledgeRecoveryCodes, useAddBusinessAccountMember, useAddBusinessAccountSigner, useAddCoinbaseOnrampOrderEventListener, useAddNetwork, useAddWalletToBusinessAccount, useAssertWalletAccountSigningAvailability, useAttachFlowSource, useAuthenticateMfaRecoveryCode, useAuthenticatePasskeyMFA, useAuthenticateTotpMfaDevice, useBackupWaasKeySharesToGoogleDrive, useBroadcastFlow, useCancelFlow, useCheckStepUpAuth, useCompleteDeviceRegistration, useCompleteSocialRedirect, useConfirmTransaction, useConnectAndVerifyWithWalletProvider, useConnectWithWalletProvider, useCreateBusinessAccount, useCreateCoinbaseOnrampOrder, useCreateCryptoDotComPayment, useCreateKrakenExchangeTransfer, useCreateNewMfaRecoveryCodes, useCreateWaasWalletAccounts, useCreateWalletForBusinessAccount, useDelegateWaasKeyShares, useDeleteMfaDevice, useDeletePasskey, useDeleteUser, useDetectSocialRedirectUrl, useDynamicClient, useExecuteSwapTransaction, useExportWaasClientKeyshares, useExportWaasPrivateKey, useGetActiveNetworkData, useGetActiveNetworkId, useGetAvailableWalletProvidersData, useGetBalanceForAddress, useGetBusinessAccount, useGetCoinbaseBuyUrl, useGetConnectedAddresses, useGetFlow, useGetFlowQuote, useGetGoogleDriveBackupReadiness, useGetKrakenAccounts, useGetKrakenWhitelistedAddresses, useGetMfaDevices, useGetMfaMethods, useGetMfaRecoveryCodes, useGetMoonPayCurrencies, useGetMoonPayUrl, useGetMultichainTokenBalances, useGetNativeBalance, useGetPasskeys, useGetRegisteredDevices, useGetSwapQuote, useGetSwapStatus, useGetTokenBalances, useGetTransactionHistory, useGetUserSocialAccounts, useGetWalletAccounts, useGetWalletConnectCatalog, useGetWalletConnectCatalogWalletByWalletProviderKey, useGetWalletOptionsCatalogue, useGetWalletProviderDataByKey, useGetWalletRecoveryState, useImportWaasPrivateKey, useInitStatus, useIsDeviceRegistrationRequired, useIsMfaRequiredForAction, useIsPendingRecoveryCodesAcknowledgment, useIsUserMissingMfaAuth, useIsUserOnboardingComplete, useListBusinessAccounts, useLogout, useMergeUserAccounts, useMigrateFromFireblocks, useOnEvent, useOnWalletProviderEvent, useOnceEvent, usePrepareFlowSigning, useProveWalletAccountOwnership, useRefreshAuth, useRefreshWaasWalletAccountShares, useRegisterPasskey, useRegisterTotpMfaDevice, useRemoveBusinessAccountMember, useRemoveBusinessAccountSigner, useRemoveWalletAccount, useRequestExternalAuthElevatedToken, useRevokeAllRegisteredDevices, useRevokeRegisteredDevice, useRevokeWaasDelegation, useSendEmailOTP, useSendSmsOTP, useSessionExpiresAt, useSetDefaultMfaDevice, useSetWaasWalletAccountPassword, useSignInWithExternalJwt, useSignInWithPasskey, useSignInWithSocialPopUp, useSignInWithSocialRedirect, useSignMessage, useSubmitFlowTransaction, useSwitchActiveNetwork, useTransferAmount, useTransferWalletAccount, useUnlinkSocialAccount, useUnlockWallet, useUpdateUser, useUpdateWaasPassword, useUser, useVerifyOTP, useVerifyWalletAccount };
|
|
2773
|
+
export { DynamicProvider, useAcknowledgeRecoveryCodes, useAddBusinessAccountMember, useAddBusinessAccountSigner, useAddCoinbaseOnrampOrderEventListener, useAddNetwork, useAddWalletToBusinessAccount, useAssertWalletAccountSigningAvailability, useAttachFlowSource, useAuthenticateMfaRecoveryCode, useAuthenticatePasskeyMFA, useAuthenticateTotpMfaDevice, useBackupWaasKeySharesToGoogleDrive, useBroadcastFlow, useCancelFlow, useCheckStepUpAuth, useCompleteDeviceRegistration, useCompleteSocialRedirect, useConfirmTransaction, useConnectAndVerifyWithWalletProvider, useConnectWithWalletProvider, useCreateBusinessAccount, useCreateCoinbaseOnrampOrder, useCreateCryptoDotComPayment, useCreateKrakenExchangeTransfer, useCreateNewMfaRecoveryCodes, useCreateWaasWalletAccounts, useCreateWalletForBusinessAccount, useDelegateWaasKeyShares, useDeleteMfaDevice, useDeletePasskey, useDeleteUser, useDetectSocialRedirectUrl, useDynamicClient, useExecuteSwapTransaction, useExportWaasClientKeyshares, useExportWaasPrivateKey, useGetActiveNetworkData, useGetActiveNetworkId, useGetAvailableWalletProvidersData, useGetBalanceForAddress, useGetBusinessAccount, useGetCoinbaseBuyUrl, useGetConnectedAddresses, useGetFlow, useGetFlowQuote, useGetGoogleDriveBackupReadiness, useGetKrakenAccounts, useGetKrakenWhitelistedAddresses, useGetMfaDevices, useGetMfaMethods, useGetMfaRecoveryCodes, useGetMoonPayCurrencies, useGetMoonPayUrl, useGetMultichainTokenBalances, useGetNativeBalance, useGetPasskeys, useGetRegisteredDevices, useGetSwapQuote, useGetSwapStatus, useGetTokenBalances, useGetTransactionHistory, useGetUserSocialAccounts, useGetWalletAccounts, useGetWalletConnectCatalog, useGetWalletConnectCatalogWalletByWalletProviderKey, useGetWalletOptionsCatalogue, useGetWalletProviderDataByKey, useGetWalletRecoveryState, useImportWaasPrivateKey, useInitStatus, useIsDeviceRegistrationRequired, useIsMfaRequiredForAction, useIsPendingRecoveryCodesAcknowledgment, useIsUserMissingMfaAuth, useIsUserOnboardingComplete, useListBusinessAccounts, useLogout, useMergeUserAccounts, useMigrateFromFireblocks, useOnEvent, useOnWalletProviderEvent, useOnceEvent, usePrepareFlowSigning, useProveWalletAccountOwnership, useRefreshAuth, useRefreshWaasWalletAccountShares, useRegisterPasskey, useRegisterTotpMfaDevice, useRemoveBusinessAccountMember, useRemoveBusinessAccountSigner, useRemoveWalletAccount, useRequestExternalAuthElevatedToken, useRevokeAllRegisteredDevices, useRevokeRegisteredDevice, useRevokeWaasDelegation, useSendEmailOTP, useSendSmsOTP, useSessionExpiresAt, useSetDefaultMfaDevice, useSetWaasWalletAccountPassword, useSignInWithExternalJwt, useSignInWithPasskey, useSignInWithSocialPopUp, useSignInWithSocialRedirect, useSignMessage, useSubmitFlowTransaction, useSwitchActiveNetwork, useTransferAmount, useTransferBusinessAccountOwnership, useTransferWalletAccount, useUnlinkSocialAccount, useUnlockWallet, useUpdateUser, useUpdateWaasPassword, useUser, useVerifyOTP, useVerifyWalletAccount };
|
|
3004
2774
|
//# sourceMappingURL=index.esm.js.map
|