@dynamic-labs/sdk-react-core 4.52.1 → 4.52.4
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/CHANGELOG.md +26 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +12 -12
- package/src/index.cjs +10 -4
- package/src/index.d.ts +2 -1
- package/src/index.js +4 -2
- package/src/lib/utils/functions/createCryptoDotComPayment/createCryptoDotComPayment.cjs +13 -0
- package/src/lib/utils/functions/createCryptoDotComPayment/createCryptoDotComPayment.d.ts +6 -0
- package/src/lib/utils/functions/createCryptoDotComPayment/createCryptoDotComPayment.js +9 -0
- package/src/lib/utils/functions/createCryptoDotComPayment/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.52.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.3...v4.52.4) (2026-01-07)
|
|
3
|
+
|
|
4
|
+
### [4.52.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.2...v4.52.3) (2026-01-06)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* create waas-bitcoin package ([#10037](https://github.com/dynamic-labs/dynamic-auth/issues/10037)) ([788fb5d](https://github.com/dynamic-labs/dynamic-auth/commit/788fb5d1f4cc1d5f7285f73c384d680215eb2701))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* add export for useWalletBackup ([#10166](https://github.com/dynamic-labs/dynamic-auth/issues/10166)) ([162f180](https://github.com/dynamic-labs/dynamic-auth/commit/162f180cb8689da65467e11239fe7e563892d300))
|
|
15
|
+
|
|
16
|
+
### [4.52.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.1...v4.52.2) (2025-12-27)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* expose usemetamasksdk in react native ([#10161](https://github.com/dynamic-labs/dynamic-auth/issues/10161)) ([f4dcfe7](https://github.com/dynamic-labs/dynamic-auth/commit/f4dcfe7bcf8c502990b2c2db17a44de1d58498a7))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* Handle Google consent during authentication flow when it’s required ([#10162](https://github.com/dynamic-labs/dynamic-auth/issues/10162)) ([138f7ff](https://github.com/dynamic-labs/dynamic-auth/commit/138f7ffd1b8660ce27d7e5faac7bd01d56817ff3))
|
|
27
|
+
|
|
2
28
|
### [4.52.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.0...v4.52.1) (2025-12-23)
|
|
3
29
|
|
|
4
30
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "4.52.
|
|
3
|
+
"version": "4.52.4",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@dynamic-labs/sdk-api-core": "0.0.843",
|
|
6
6
|
"@dynamic-labs-sdk/client": "0.1.2",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"yup": "0.32.11",
|
|
16
16
|
"react-international-phone": "4.5.0",
|
|
17
17
|
"bs58": "5.0.0",
|
|
18
|
-
"@dynamic-labs/assert-package-version": "4.52.
|
|
19
|
-
"@dynamic-labs/iconic": "4.52.
|
|
20
|
-
"@dynamic-labs/locale": "4.52.
|
|
21
|
-
"@dynamic-labs/logger": "4.52.
|
|
22
|
-
"@dynamic-labs/multi-wallet": "4.52.
|
|
23
|
-
"@dynamic-labs/rpc-providers": "4.52.
|
|
24
|
-
"@dynamic-labs/store": "4.52.
|
|
25
|
-
"@dynamic-labs/types": "4.52.
|
|
26
|
-
"@dynamic-labs/utils": "4.52.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.52.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.52.
|
|
18
|
+
"@dynamic-labs/assert-package-version": "4.52.4",
|
|
19
|
+
"@dynamic-labs/iconic": "4.52.4",
|
|
20
|
+
"@dynamic-labs/locale": "4.52.4",
|
|
21
|
+
"@dynamic-labs/logger": "4.52.4",
|
|
22
|
+
"@dynamic-labs/multi-wallet": "4.52.4",
|
|
23
|
+
"@dynamic-labs/rpc-providers": "4.52.4",
|
|
24
|
+
"@dynamic-labs/store": "4.52.4",
|
|
25
|
+
"@dynamic-labs/types": "4.52.4",
|
|
26
|
+
"@dynamic-labs/utils": "4.52.4",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.52.4",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.52.4",
|
|
29
29
|
"eventemitter3": "5.0.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
package/src/index.cjs
CHANGED
|
@@ -134,8 +134,7 @@ require('./lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanne
|
|
|
134
134
|
require('./lib/context/PasskeyContext/PasskeyContext.cjs');
|
|
135
135
|
require('./lib/widgets/DynamicWidget/components/PasskeyCard/PasskeyCard.cjs');
|
|
136
136
|
var useEmbeddedReveal = require('./lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs');
|
|
137
|
-
var
|
|
138
|
-
var useRefreshUser = require('./lib/utils/hooks/useRefreshUser/useRefreshUser.cjs');
|
|
137
|
+
var useWalletBackup = require('./lib/utils/hooks/useWalletBackup/useWalletBackup.cjs');
|
|
139
138
|
var useEmbeddedWalletAuthenticator = require('./lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs');
|
|
140
139
|
require('./lib/widgets/DynamicWidget/views/CryptoComOnramp/CryptoComOnramp.cjs');
|
|
141
140
|
require('./lib/context/OnrampContext/OnrampContext.cjs');
|
|
@@ -155,6 +154,7 @@ var FarcasterConnectView = require('./lib/views/FarcasterConnectView/FarcasterCo
|
|
|
155
154
|
var NetworkNotSupportedSwitchManual = require('./lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs');
|
|
156
155
|
var viewToComponentMap = require('./lib/views/viewToComponentMap.cjs');
|
|
157
156
|
require('./lib/store/state/connectorsInitializing/connectorsInitializing.cjs');
|
|
157
|
+
var useDynamicWaas = require('./lib/utils/hooks/useDynamicWaas/useDynamicWaas.cjs');
|
|
158
158
|
var useGetMfaToken = require('./lib/utils/hooks/useGetMfaToken/useGetMfaToken.cjs');
|
|
159
159
|
var useDynamicModals = require('./lib/utils/hooks/useDynamicModals/useDynamicModals.cjs');
|
|
160
160
|
var useMfa = require('./lib/utils/hooks/useMfa/useMfa.cjs');
|
|
@@ -163,6 +163,7 @@ var useMultichainTokenBalances = require('./lib/utils/hooks/useMultichainTokenBa
|
|
|
163
163
|
var useEmbeddedWallet = require('./lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs');
|
|
164
164
|
var constants = require('./lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.cjs');
|
|
165
165
|
var useExternalAuth = require('./lib/utils/hooks/useExternalAuth/useExternalAuth.cjs');
|
|
166
|
+
var useRefreshUser = require('./lib/utils/hooks/useRefreshUser/useRefreshUser.cjs');
|
|
166
167
|
var useWalletOptions = require('./lib/utils/hooks/useWalletOptions/useWalletOptions.cjs');
|
|
167
168
|
var useSyncMfaFlow = require('./lib/utils/hooks/useSyncMfaFlow/useSyncMfaFlow.cjs');
|
|
168
169
|
var useTelegramLogin = require('./lib/utils/hooks/useTelegramLogin/useTelegramLogin.cjs');
|
|
@@ -205,6 +206,7 @@ var useConnectWithOtp = require('./lib/context/ConnectWithOtpContext/useConnectW
|
|
|
205
206
|
var usePhantomRedirectEvents = require('./lib/utils/hooks/usePhantomRedirectEvents/usePhantomRedirectEvents.cjs');
|
|
206
207
|
var useSwitchNetwork = require('./lib/utils/hooks/useSwitchNetwork/useSwitchNetwork.cjs');
|
|
207
208
|
var ReinitializeContextProvider = require('./lib/context/ReinitializeContext/ReinitializeContextProvider.cjs');
|
|
209
|
+
var createCryptoDotComPayment = require('./lib/utils/functions/createCryptoDotComPayment/createCryptoDotComPayment.cjs');
|
|
208
210
|
|
|
209
211
|
assertPackageVersion.assertPackageVersion('@dynamic-labs/sdk-react-core', _package.version);
|
|
210
212
|
utils.tracing.logEvent('sdk-react-core.initialization', 'script-loaded');
|
|
@@ -286,8 +288,9 @@ exports.DynamicWidgetContextProvider = DynamicWidgetContext.DynamicWidgetContext
|
|
|
286
288
|
exports.useWalletDelegation = useWalletDelegation.useWalletDelegation;
|
|
287
289
|
exports.useSwitchWallet = useSwitchWallet.useSwitchWallet;
|
|
288
290
|
exports.useEmbeddedReveal = useEmbeddedReveal.useEmbeddedReveal;
|
|
289
|
-
exports.
|
|
290
|
-
exports.
|
|
291
|
+
exports.isWalletBackedUp = useWalletBackup.isWalletBackedUp;
|
|
292
|
+
exports.useBackupWallets = useWalletBackup.useBackupWallets;
|
|
293
|
+
exports.useWalletBackup = useWalletBackup.useWalletBackup;
|
|
291
294
|
exports.useEmbeddedWalletAuthenticator = useEmbeddedWalletAuthenticator.useEmbeddedWalletAuthenticator;
|
|
292
295
|
exports.FilterAndSortWallets = index$2.FilterAndSortWallets;
|
|
293
296
|
exports.FilterBridgeChainsName = index$2.FilterBridgeChainsName;
|
|
@@ -307,6 +310,7 @@ exports.WalletList = WalletList.WalletList;
|
|
|
307
310
|
exports.FarcasterConnectView = FarcasterConnectView.FarcasterConnectView;
|
|
308
311
|
exports.NetworkNotSupportedSwitchManual = NetworkNotSupportedSwitchManual.NetworkNotSupportedSwitchManual;
|
|
309
312
|
exports.viewToComponentMap = viewToComponentMap.viewToComponentMap;
|
|
313
|
+
exports.useDynamicWaas = useDynamicWaas.useDynamicWaas;
|
|
310
314
|
exports.useGetMfaToken = useGetMfaToken.useGetMfaToken;
|
|
311
315
|
exports.useDynamicModals = useDynamicModals.useDynamicModals;
|
|
312
316
|
exports.useMfa = useMfa.useMfa;
|
|
@@ -318,6 +322,7 @@ Object.defineProperty(exports, 'EmbeddedWalletVersion', {
|
|
|
318
322
|
get: function () { return constants.EmbeddedWalletVersion; }
|
|
319
323
|
});
|
|
320
324
|
exports.useExternalAuth = useExternalAuth.useExternalAuth;
|
|
325
|
+
exports.useRefreshUser = useRefreshUser.useRefreshUser;
|
|
321
326
|
exports.useWalletOptions = useWalletOptions.useWalletOptions;
|
|
322
327
|
exports.useSyncMfaFlow = useSyncMfaFlow.useSyncMfaFlow;
|
|
323
328
|
exports.useTelegramLogin = useTelegramLogin.useTelegramLogin;
|
|
@@ -358,3 +363,4 @@ exports.useConnectWithOtp = useConnectWithOtp.useConnectWithOtp;
|
|
|
358
363
|
exports.usePhantomRedirectEvents = usePhantomRedirectEvents.usePhantomRedirectEvents;
|
|
359
364
|
exports.useSwitchNetwork = useSwitchNetwork.useSwitchNetwork;
|
|
360
365
|
exports.useReinitialize = ReinitializeContextProvider.useReinitialize;
|
|
366
|
+
exports.createCryptoDotComPayment = createCryptoDotComPayment.createCryptoDotComPayment;
|
package/src/index.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ export { FilterAndSortWallets, FilterBridgeChainsName, FilterChain, FilterWallet
|
|
|
123
123
|
export {
|
|
124
124
|
/** @deprecated */
|
|
125
125
|
DynamicWidgetContextProvider, } from './lib/widgets/DynamicWidget/context';
|
|
126
|
-
export { useWalletItemActions, useAuthenticateConnectedUser, useSocialAccounts, useEmbeddedWallet, useEmbeddedWalletAuthenticator, usePasskeyRecovery, useEmbeddedReveal, useIsLoggedIn, useDynamicModals, useMfa, useTokenBalances, useMultichainTokenBalances, useSwitchWallet, useRpcProviders, useRefreshUser, useWalletOptions, useSmartWallets, EmbeddedWalletVersion, useTelegramLogin, useUpgradeEmbeddedWallet, useEVMTransactionSimulation, useSVMTransactionSimulation, useDeleteUserAccount, useDynamicWaas, useGetPasskeys, useDeletePasskey, useRegisterPasskey, useAuthenticatePasskeyMFA, useGetUserMfaMethods, usePromptMfaAuth, useUpgradeToDynamicWaasFlow, useGetMfaToken, useIsMfaRequiredForAction, useWalletDelegation, useExchangeAccounts, } from './lib/utils/hooks';
|
|
126
|
+
export { useWalletItemActions, useAuthenticateConnectedUser, useSocialAccounts, useEmbeddedWallet, useEmbeddedWalletAuthenticator, usePasskeyRecovery, useEmbeddedReveal, useIsLoggedIn, useDynamicModals, useMfa, useTokenBalances, useMultichainTokenBalances, useSwitchWallet, useRpcProviders, useRefreshUser, useWalletOptions, useSmartWallets, EmbeddedWalletVersion, useTelegramLogin, useUpgradeEmbeddedWallet, useEVMTransactionSimulation, useSVMTransactionSimulation, useDeleteUserAccount, useDynamicWaas, useGetPasskeys, useDeletePasskey, useRegisterPasskey, useAuthenticatePasskeyMFA, useGetUserMfaMethods, usePromptMfaAuth, useUpgradeToDynamicWaasFlow, useGetMfaToken, useIsMfaRequiredForAction, useWalletDelegation, useWalletBackup, useBackupWallets, isWalletBackedUp, useExchangeAccounts, } from './lib/utils/hooks';
|
|
127
127
|
export {
|
|
128
128
|
/** @deprecated use useOnramp instead */
|
|
129
129
|
useFunding, } from './lib/utils/hooks/useFunding';
|
|
@@ -148,3 +148,4 @@ export { isAuthenticatedWithAWallet } from './lib/utils/functions/isAuthenticate
|
|
|
148
148
|
export { usingV3Wallets } from './lib/utils/functions/usingV3Wallets/usingV3Wallets';
|
|
149
149
|
export { useSyncMfaFlow } from './lib/utils/hooks/useSyncMfaFlow';
|
|
150
150
|
export { useSignInWithPasskey } from './lib/utils/hooks/useSignInWithPasskey';
|
|
151
|
+
export { createCryptoDotComPayment } from './lib/utils/functions/createCryptoDotComPayment';
|
package/src/index.js
CHANGED
|
@@ -130,8 +130,7 @@ import './lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner
|
|
|
130
130
|
import './lib/context/PasskeyContext/PasskeyContext.js';
|
|
131
131
|
import './lib/widgets/DynamicWidget/components/PasskeyCard/PasskeyCard.js';
|
|
132
132
|
export { useEmbeddedReveal } from './lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js';
|
|
133
|
-
export {
|
|
134
|
-
export { useRefreshUser } from './lib/utils/hooks/useRefreshUser/useRefreshUser.js';
|
|
133
|
+
export { isWalletBackedUp, useBackupWallets, useWalletBackup } from './lib/utils/hooks/useWalletBackup/useWalletBackup.js';
|
|
135
134
|
export { useEmbeddedWalletAuthenticator } from './lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js';
|
|
136
135
|
import './lib/widgets/DynamicWidget/views/CryptoComOnramp/CryptoComOnramp.js';
|
|
137
136
|
import './lib/context/OnrampContext/OnrampContext.js';
|
|
@@ -151,6 +150,7 @@ export { FarcasterConnectView } from './lib/views/FarcasterConnectView/Farcaster
|
|
|
151
150
|
export { NetworkNotSupportedSwitchManual } from './lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js';
|
|
152
151
|
export { viewToComponentMap } from './lib/views/viewToComponentMap.js';
|
|
153
152
|
import './lib/store/state/connectorsInitializing/connectorsInitializing.js';
|
|
153
|
+
export { useDynamicWaas } from './lib/utils/hooks/useDynamicWaas/useDynamicWaas.js';
|
|
154
154
|
export { useGetMfaToken } from './lib/utils/hooks/useGetMfaToken/useGetMfaToken.js';
|
|
155
155
|
export { useDynamicModals } from './lib/utils/hooks/useDynamicModals/useDynamicModals.js';
|
|
156
156
|
export { useMfa } from './lib/utils/hooks/useMfa/useMfa.js';
|
|
@@ -159,6 +159,7 @@ export { useMultichainTokenBalances } from './lib/utils/hooks/useMultichainToken
|
|
|
159
159
|
export { useEmbeddedWallet } from './lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js';
|
|
160
160
|
export { EmbeddedWalletVersion } from './lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
|
|
161
161
|
export { useExternalAuth } from './lib/utils/hooks/useExternalAuth/useExternalAuth.js';
|
|
162
|
+
export { useRefreshUser } from './lib/utils/hooks/useRefreshUser/useRefreshUser.js';
|
|
162
163
|
export { useWalletOptions } from './lib/utils/hooks/useWalletOptions/useWalletOptions.js';
|
|
163
164
|
export { useSyncMfaFlow } from './lib/utils/hooks/useSyncMfaFlow/useSyncMfaFlow.js';
|
|
164
165
|
export { useTelegramLogin } from './lib/utils/hooks/useTelegramLogin/useTelegramLogin.js';
|
|
@@ -201,6 +202,7 @@ export { useConnectWithOtp } from './lib/context/ConnectWithOtpContext/useConnec
|
|
|
201
202
|
export { usePhantomRedirectEvents } from './lib/utils/hooks/usePhantomRedirectEvents/usePhantomRedirectEvents.js';
|
|
202
203
|
export { useSwitchNetwork } from './lib/utils/hooks/useSwitchNetwork/useSwitchNetwork.js';
|
|
203
204
|
export { useReinitialize } from './lib/context/ReinitializeContext/ReinitializeContextProvider.js';
|
|
205
|
+
export { createCryptoDotComPayment } from './lib/utils/functions/createCryptoDotComPayment/createCryptoDotComPayment.js';
|
|
204
206
|
|
|
205
207
|
assertPackageVersion('@dynamic-labs/sdk-react-core', version);
|
|
206
208
|
tracing.logEvent('sdk-react-core.initialization', 'script-loaded');
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
7
|
+
var client = require('@dynamic-labs-sdk/client');
|
|
8
|
+
|
|
9
|
+
const createCryptoDotComPayment = (paymentParams) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
10
|
+
return client.createCryptoDotComPayment(Object.assign(Object.assign({}, paymentParams), { chain: paymentParams.chain }));
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
exports.createCryptoDotComPayment = createCryptoDotComPayment;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse } from '@dynamic-labs-sdk/client';
|
|
2
|
+
type CreateCryptoDotComPaymentParams = Omit<CryptoDotComPaymentCreateRequest, 'chain'> & {
|
|
3
|
+
chain: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const createCryptoDotComPayment: (paymentParams: CreateCryptoDotComPaymentParams) => Promise<CryptoDotComPaymentResponse>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { __awaiter } from '../../../../../_virtual/_tslib.js';
|
|
3
|
+
import { createCryptoDotComPayment as createCryptoDotComPayment$1 } from '@dynamic-labs-sdk/client';
|
|
4
|
+
|
|
5
|
+
const createCryptoDotComPayment = (paymentParams) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6
|
+
return createCryptoDotComPayment$1(Object.assign(Object.assign({}, paymentParams), { chain: paymentParams.chain }));
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export { createCryptoDotComPayment };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createCryptoDotComPayment } from './createCryptoDotComPayment';
|