@dynamic-labs-sdk/client 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/{InvalidParamError-BUpLSb5x.native.esm.js → InvalidParamError-CKUis748.native.esm.js} +3 -3
- package/dist/{InvalidParamError-BUpLSb5x.native.esm.js.map → InvalidParamError-CKUis748.native.esm.js.map} +1 -1
- package/dist/{InvalidParamError-BazEwozw.esm.js → InvalidParamError-I6NfUdQL.esm.js} +3 -3
- package/dist/{InvalidParamError-BazEwozw.esm.js.map → InvalidParamError-I6NfUdQL.esm.js.map} +1 -1
- package/dist/{InvalidParamError-CMesesy6.cjs → InvalidParamError-d0WFn5Ai.cjs} +4 -4
- package/dist/{InvalidParamError-CMesesy6.cjs.map → InvalidParamError-d0WFn5Ai.cjs.map} +1 -1
- package/dist/core.cjs +5 -5
- package/dist/core.esm.js +5 -5
- package/dist/core.native.esm.js +7 -7
- package/dist/core.native.esm.js.map +1 -1
- package/dist/exports/index.d.ts +1 -1
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/waasCore.d.ts +1 -0
- package/dist/exports/waasCore.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-D4xzWb7w.cjs → getNetworkProviderFromNetworkId-CfW0tOnr.cjs} +4 -4
- package/dist/{getNetworkProviderFromNetworkId-D4xzWb7w.cjs.map → getNetworkProviderFromNetworkId-CfW0tOnr.cjs.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-BfBE-dei.esm.js → getNetworkProviderFromNetworkId-D6ABmeNQ.esm.js} +3 -3
- package/dist/{getNetworkProviderFromNetworkId-BfBE-dei.esm.js.map → getNetworkProviderFromNetworkId-D6ABmeNQ.esm.js.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js → getNetworkProviderFromNetworkId-DpiVLfs_.native.esm.js} +8 -8
- package/dist/getNetworkProviderFromNetworkId-DpiVLfs_.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-BimmHQvA.cjs → getSignedSessionId-Bc-sYE2A.cjs} +3 -3
- package/dist/{getSignedSessionId-BimmHQvA.cjs.map → getSignedSessionId-Bc-sYE2A.cjs.map} +1 -1
- package/dist/{getSignedSessionId-fwHlhBvt.native.esm.js → getSignedSessionId-C6LJdiSK.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-fwHlhBvt.native.esm.js.map → getSignedSessionId-C6LJdiSK.native.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-BWxWFaJW.esm.js → getSignedSessionId-IEoo2Kv9.esm.js} +3 -3
- package/dist/{getSignedSessionId-BWxWFaJW.esm.js.map → getSignedSessionId-IEoo2Kv9.esm.js.map} +1 -1
- package/dist/{getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs → getWaasWalletProviderFromWalletAccount-CSmVAhr2.cjs} +4 -4
- package/dist/{getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs.map → getWaasWalletProviderFromWalletAccount-CSmVAhr2.cjs.map} +1 -1
- package/dist/{getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js → getWaasWalletProviderFromWalletAccount-D1wxsNEI.native.esm.js} +3 -3
- package/dist/{getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js.map → getWaasWalletProviderFromWalletAccount-D1wxsNEI.native.esm.js.map} +1 -1
- package/dist/{getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js → getWaasWalletProviderFromWalletAccount-DojjjSIP.esm.js} +3 -3
- package/dist/{getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js.map → getWaasWalletProviderFromWalletAccount-DojjjSIP.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-1zHjzqbz.cjs → getWalletProviderByKey-B821GpaI.cjs} +32 -21
- package/dist/getWalletProviderByKey-B821GpaI.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-BXGcVzkf.esm.js → getWalletProviderByKey-DsTEubkT.esm.js} +26 -15
- package/dist/getWalletProviderByKey-DsTEubkT.esm.js.map +1 -0
- package/dist/{getWalletProviderByKey-CAQkYCGi.native.esm.js → getWalletProviderByKey-RTW-S68o.native.esm.js} +26 -15
- package/dist/{getWalletProviderByKey-CAQkYCGi.native.esm.js.map → getWalletProviderByKey-RTW-S68o.native.esm.js.map} +1 -1
- package/dist/index.cjs +48 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +47 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +49 -11
- package/dist/index.native.esm.js.map +1 -1
- package/dist/isDynamicWaasEnabled-CBLpFRnd.native.esm.js +37 -0
- package/dist/isDynamicWaasEnabled-CBLpFRnd.native.esm.js.map +1 -0
- package/dist/isDynamicWaasEnabled-CBOG0ITH.cjs +49 -0
- package/dist/isDynamicWaasEnabled-CBOG0ITH.cjs.map +1 -0
- package/dist/isDynamicWaasEnabled-vRyWP-1l.esm.js +37 -0
- package/dist/isDynamicWaasEnabled-vRyWP-1l.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-DZVNUtPY.esm.js → isMfaRequiredForAction-C1-1spV9.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-DZVNUtPY.esm.js.map → isMfaRequiredForAction-C1-1spV9.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-CPadAr7k.native.esm.js → isMfaRequiredForAction-D1AYL99a.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-CPadAr7k.native.esm.js.map → isMfaRequiredForAction-D1AYL99a.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-CxWuGsmB.cjs → isMfaRequiredForAction-DL013-fR.cjs} +2 -2
- package/dist/{isMfaRequiredForAction-CxWuGsmB.cjs.map → isMfaRequiredForAction-DL013-fR.cjs.map} +1 -1
- package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts +1 -0
- package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts +1 -0
- package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -1
- package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts +3 -0
- package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -1
- package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +3 -0
- package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts +3 -0
- package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts +3 -0
- package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts +4 -1
- package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts +3 -0
- package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts.map +1 -1
- package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts +3 -0
- package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts +3 -0
- package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts +3 -0
- package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts +3 -0
- package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts.map +1 -1
- package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +2 -2
- package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
- package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +2 -2
- package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
- package/dist/modules/waas/createWaasClient/createWaasClient.d.ts.map +1 -1
- package/dist/modules/waas/initializeWaasClientsForEagerRecovery/index.d.ts +2 -0
- package/dist/modules/waas/{restoreUserSharesForAllWalletAccounts → initializeWaasClientsForEagerRecovery}/index.d.ts.map +1 -1
- package/dist/modules/waas/initializeWaasClientsForEagerRecovery/initializeWaasClientsForEagerRecovery.d.ts +11 -0
- package/dist/modules/waas/initializeWaasClientsForEagerRecovery/initializeWaasClientsForEagerRecovery.d.ts.map +1 -0
- package/dist/modules/waas/preconnectWaasIframe/index.d.ts +2 -0
- package/dist/modules/waas/preconnectWaasIframe/index.d.ts.map +1 -0
- package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts +13 -0
- package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts.map +1 -0
- package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts +1 -0
- package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts.map +1 -1
- package/dist/preconnectWaasIframe-BnyTG4Wy.native.esm.js +31 -0
- package/dist/preconnectWaasIframe-BnyTG4Wy.native.esm.js.map +1 -0
- package/dist/preconnectWaasIframe-DWYWeLor.cjs +37 -0
- package/dist/preconnectWaasIframe-DWYWeLor.cjs.map +1 -0
- package/dist/preconnectWaasIframe-Dn3RrrHd.esm.js +31 -0
- package/dist/preconnectWaasIframe-Dn3RrrHd.esm.js.map +1 -0
- package/dist/{refreshAuth-DlQw3Dky.esm.js → refreshAuth-BWQWl4uA.esm.js} +3 -3
- package/dist/{refreshAuth-DlQw3Dky.esm.js.map → refreshAuth-BWQWl4uA.esm.js.map} +1 -1
- package/dist/{refreshAuth-Cl3adySI.native.esm.js → refreshAuth-D8UjWFLB.native.esm.js} +3 -3
- package/dist/{refreshAuth-Cl3adySI.native.esm.js.map → refreshAuth-D8UjWFLB.native.esm.js.map} +1 -1
- package/dist/{refreshAuth-CKcNynMk.cjs → refreshAuth-tjEnkc58.cjs} +3 -3
- package/dist/{refreshAuth-CKcNynMk.cjs.map → refreshAuth-tjEnkc58.cjs.map} +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/waas.cjs +8 -25
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +6 -23
- package/dist/waas.esm.js.map +1 -1
- package/dist/waas.native.esm.js +6 -23
- package/dist/waas.native.esm.js.map +1 -1
- package/dist/waasCore.cjs +16 -9
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +16 -10
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +7 -5
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/NotWaasWalletAccountError-CIjFmQ_l.esm.js +0 -18
- package/dist/NotWaasWalletAccountError-CIjFmQ_l.esm.js.map +0 -1
- package/dist/NotWaasWalletAccountError-D-yqOoH6.cjs +0 -23
- package/dist/NotWaasWalletAccountError-D-yqOoH6.cjs.map +0 -1
- package/dist/NotWaasWalletAccountError-DWXGDcpr.native.esm.js +0 -18
- package/dist/NotWaasWalletAccountError-DWXGDcpr.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-1zHjzqbz.cjs.map +0 -1
- package/dist/getWalletProviderByKey-BXGcVzkf.esm.js.map +0 -1
- package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/index.d.ts +0 -2
- package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/restoreUserSharesForAllWalletAccounts.d.ts +0 -4
- package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/restoreUserSharesForAllWalletAccounts.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-
|
|
2
|
-
const require_InvalidParamError = require('./InvalidParamError-
|
|
3
|
-
const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-
|
|
4
|
-
const require_getWalletProviderByKey = require('./getWalletProviderByKey-
|
|
5
|
-
const require_refreshAuth = require('./refreshAuth-
|
|
6
|
-
const
|
|
1
|
+
const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-DL013-fR.cjs');
|
|
2
|
+
const require_InvalidParamError = require('./InvalidParamError-d0WFn5Ai.cjs');
|
|
3
|
+
const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-CfW0tOnr.cjs');
|
|
4
|
+
const require_getWalletProviderByKey = require('./getWalletProviderByKey-B821GpaI.cjs');
|
|
5
|
+
const require_refreshAuth = require('./refreshAuth-tjEnkc58.cjs');
|
|
6
|
+
const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-CBOG0ITH.cjs');
|
|
7
|
+
const require_preconnectWaasIframe = require('./preconnectWaasIframe-DWYWeLor.cjs');
|
|
7
8
|
let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
|
|
8
9
|
let _dynamic_labs_sdk_api_core = require("@dynamic-labs/sdk-api-core");
|
|
9
10
|
let zod_mini = require("zod/mini");
|
|
@@ -518,7 +519,7 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
|
|
|
518
519
|
});
|
|
519
520
|
throw error;
|
|
520
521
|
}
|
|
521
|
-
if (client.user) require_getWalletProviderByKey.
|
|
522
|
+
if (client.user) require_getWalletProviderByKey.initializeWaasClientsForEagerRecovery(client);
|
|
522
523
|
};
|
|
523
524
|
const __initializeClient_impl = initializeClient;
|
|
524
525
|
const __initializeClient_wrapped = require_InvalidParamError.instrumentFunction({
|
|
@@ -2062,6 +2063,7 @@ const __signInWithSocialRedirect_wrapped = require_InvalidParamError.instrumentF
|
|
|
2062
2063
|
* removed in a future major version.
|
|
2063
2064
|
*
|
|
2064
2065
|
* @instrumented
|
|
2066
|
+
* @noHook Deprecated alias that is not exposed as a React hook.
|
|
2065
2067
|
*/
|
|
2066
2068
|
const authenticateWithSocial = (params, client = require_InvalidParamError.getDefaultClient()) => __signInWithSocialRedirect_wrapped(params, client);
|
|
2067
2069
|
const __authenticateWithSocial_impl = authenticateWithSocial;
|
|
@@ -2111,6 +2113,7 @@ const processSocialCallback = async ({ url, requestedScopes }, client) => {
|
|
|
2111
2113
|
if (storedSocialRedirectState.state !== dynamicOauthState) throw new InvalidRedirectStorageStateError();
|
|
2112
2114
|
const { provider, codeVerifier } = storedSocialRedirectState;
|
|
2113
2115
|
await core.storage.removeItem(redirectStateStorageKeySchema);
|
|
2116
|
+
require_preconnectWaasIframe.preconnectWaasIframe(client);
|
|
2114
2117
|
let response;
|
|
2115
2118
|
if (client.user) response = await apiClient.oauthVerify({
|
|
2116
2119
|
environmentId: core.environmentId,
|
|
@@ -2218,6 +2221,7 @@ const __completeSocialAuthentication_wrapped = require_InvalidParamError.instrum
|
|
|
2218
2221
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2219
2222
|
* @returns A promise that resolves to true if the URL is an OAuth redirect, false otherwise.
|
|
2220
2223
|
* @not-instrumented
|
|
2224
|
+
* @noHook Low-level redirect-detection primitive that is not exposed as a React hook.
|
|
2221
2225
|
*/
|
|
2222
2226
|
const detectSocialRedirectUrl = async ({ url }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2223
2227
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -2500,10 +2504,13 @@ const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, cli
|
|
|
2500
2504
|
* exchange source record. The response includes `exchangeSource.metadata.url`
|
|
2501
2505
|
* which can be embedded in an iframe for the user to complete payment.
|
|
2502
2506
|
*
|
|
2507
|
+
* @deprecated Use {@link attachFlowSource} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
|
|
2508
|
+
*
|
|
2503
2509
|
* @param params AttachCheckoutTransactionSourceParams - The source details to attach.
|
|
2504
2510
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2505
2511
|
* @returns The updated checkout transaction (with exchangeSource if sourceType is 'exchange')
|
|
2506
2512
|
* @instrumented
|
|
2513
|
+
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2507
2514
|
*/
|
|
2508
2515
|
const attachCheckoutTransactionSource = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2509
2516
|
const { transactionId, sourceType = "wallet" } = params;
|
|
@@ -2547,10 +2554,13 @@ const __attachCheckoutTransactionSource_wrapped = require_InvalidParamError.inst
|
|
|
2547
2554
|
* For exchange sources, `txHash` can be omitted — the user confirms
|
|
2548
2555
|
* they completed the payment and the transaction moves to `broadcasted`.
|
|
2549
2556
|
*
|
|
2557
|
+
* @deprecated Use {@link broadcastFlow} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
|
|
2558
|
+
*
|
|
2550
2559
|
* @param params BroadcastCheckoutTransactionParams - The transaction ID and optional tx hash.
|
|
2551
2560
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2552
2561
|
* @returns The updated checkout transaction
|
|
2553
2562
|
* @instrumented
|
|
2563
|
+
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2554
2564
|
*/
|
|
2555
2565
|
const broadcastCheckoutTransaction = async ({ transactionId, txHash }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2556
2566
|
const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
|
|
@@ -2582,10 +2592,13 @@ const __broadcastCheckoutTransaction_wrapped = require_InvalidParamError.instrum
|
|
|
2582
2592
|
/**
|
|
2583
2593
|
* Cancels a checkout transaction before it has been broadcasted
|
|
2584
2594
|
*
|
|
2595
|
+
* @deprecated Use {@link cancelFlow} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
|
|
2596
|
+
*
|
|
2585
2597
|
* @param params CancelCheckoutTransactionParams - The transaction to cancel.
|
|
2586
2598
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2587
2599
|
* @returns The cancelled checkout transaction
|
|
2588
2600
|
* @instrumented
|
|
2601
|
+
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2589
2602
|
*/
|
|
2590
2603
|
const cancelCheckoutTransaction = async ({ transactionId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2591
2604
|
const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
|
|
@@ -2627,10 +2640,13 @@ const getCheckouts = async (client) => {
|
|
|
2627
2640
|
/**
|
|
2628
2641
|
* Creates a new checkout transaction and stores the session token for subsequent calls
|
|
2629
2642
|
*
|
|
2643
|
+
* @deprecated Use the Flow API instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
|
|
2644
|
+
*
|
|
2630
2645
|
* @param params CreateCheckoutTransactionParams - The parameters for the checkout transaction.
|
|
2631
2646
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2632
2647
|
* @returns The created transaction with session token
|
|
2633
2648
|
* @instrumented
|
|
2649
|
+
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2634
2650
|
*/
|
|
2635
2651
|
const createCheckoutTransaction = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2636
2652
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -2673,10 +2689,13 @@ const __createCheckoutTransaction_wrapped = require_InvalidParamError.instrument
|
|
|
2673
2689
|
/**
|
|
2674
2690
|
* Fetches the current state of a checkout transaction
|
|
2675
2691
|
*
|
|
2692
|
+
* @deprecated Use {@link getFlow} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
|
|
2693
|
+
*
|
|
2676
2694
|
* @param params GetCheckoutTransactionParams - The parameters for fetching the transaction.
|
|
2677
2695
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2678
2696
|
* @returns The checkout transaction
|
|
2679
2697
|
* @not-instrumented
|
|
2698
|
+
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2680
2699
|
*/
|
|
2681
2700
|
const getCheckoutTransaction = async ({ transactionId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2682
2701
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -2691,10 +2710,13 @@ const getCheckoutTransaction = async ({ transactionId }, client = require_Invali
|
|
|
2691
2710
|
/**
|
|
2692
2711
|
* Fetches a quote for a checkout transaction
|
|
2693
2712
|
*
|
|
2713
|
+
* @deprecated Use {@link getFlowQuote} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
|
|
2714
|
+
*
|
|
2694
2715
|
* @param params GetCheckoutTransactionQuoteParams - The quote parameters.
|
|
2695
2716
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2696
2717
|
* @returns The updated checkout transaction with quote data
|
|
2697
2718
|
* @not-instrumented
|
|
2719
|
+
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2698
2720
|
*/
|
|
2699
2721
|
const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2700
2722
|
const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
|
|
@@ -2720,10 +2742,13 @@ const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slip
|
|
|
2720
2742
|
* This should be called immediately before triggering the transaction signing.
|
|
2721
2743
|
* It will confirm the quote is still valid, the risk state is cleared, and the transaction is ready to be signed.
|
|
2722
2744
|
*
|
|
2745
|
+
* @deprecated Use {@link prepareFlowSigning} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
|
|
2746
|
+
*
|
|
2723
2747
|
* @param params PrepareCheckoutTransactionParams - The transaction to prepare.
|
|
2724
2748
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2725
2749
|
* @returns The updated checkout transaction
|
|
2726
2750
|
* @instrumented
|
|
2751
|
+
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2727
2752
|
*/
|
|
2728
2753
|
const prepareCheckoutTransaction = async ({ assertBalanceForGasCost, assertBalanceForTransferAmount, transactionId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2729
2754
|
const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
|
|
@@ -2867,10 +2892,13 @@ const __executeSwapTransaction_wrapped = require_InvalidParamError.instrumentFun
|
|
|
2867
2892
|
* 3. Delegates on-chain signing to the wallet provider's executeSwapTransaction method
|
|
2868
2893
|
* 4. Calls broadcastCheckoutTransaction with the resulting txHash
|
|
2869
2894
|
*
|
|
2895
|
+
* @deprecated Use {@link submitFlowTransaction} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
|
|
2896
|
+
*
|
|
2870
2897
|
* @param params SubmitCheckoutTransactionParams - The transaction ID, wallet account, and optional step callback.
|
|
2871
2898
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2872
2899
|
* @returns The broadcasted checkout transaction
|
|
2873
2900
|
* @instrumented
|
|
2901
|
+
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2874
2902
|
*/
|
|
2875
2903
|
const submitCheckoutTransaction = async ({ onStepChange, transactionId, walletAccount, assertBalanceForGasCost, assertBalanceForTransferAmount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2876
2904
|
const signingPayload = (await __prepareCheckoutTransaction_wrapped({
|
|
@@ -2918,9 +2946,12 @@ const __submitCheckoutTransaction_wrapped = require_InvalidParamError.instrument
|
|
|
2918
2946
|
* the realtime checkout transaction channel. Will be re-enabled once the
|
|
2919
2947
|
* dashboard-api environment has the Ably wiring in place.
|
|
2920
2948
|
*
|
|
2949
|
+
* @deprecated Use the Flow API instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
|
|
2950
|
+
*
|
|
2921
2951
|
* @param params.transactionId - The ID of the checkout transaction to track.
|
|
2922
2952
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2923
2953
|
* @not-instrumented
|
|
2954
|
+
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2924
2955
|
*/
|
|
2925
2956
|
const trackCheckoutTransaction = (_params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2926
2957
|
return Promise.resolve();
|
|
@@ -2937,10 +2968,13 @@ const trackCheckoutTransaction = (_params, client = require_InvalidParamError.ge
|
|
|
2937
2968
|
* Returns `false` when the from token already matches a settlement token, so no
|
|
2938
2969
|
* conversion is needed.
|
|
2939
2970
|
*
|
|
2971
|
+
* @deprecated Use the Flow API instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
|
|
2972
|
+
*
|
|
2940
2973
|
* @param params - The from token details and the checkout's settlement config.
|
|
2941
2974
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2942
2975
|
* @returns Whether a token conversion is required
|
|
2943
2976
|
* @not-instrumented
|
|
2977
|
+
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2944
2978
|
*/
|
|
2945
2979
|
const requiresConversion = async ({ transaction }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2946
2980
|
if (!transaction.fromChainId || !transaction.fromChainName || !transaction.fromToken) throw new require_InvalidParamError.InvalidParamError("Transaction is missing source information. Make sure that attachCheckoutTransactionSource has been called before calling this function.");
|
|
@@ -4832,7 +4866,9 @@ const __setDefaultMfaDevice_wrapped = require_InvalidParamError.instrumentFuncti
|
|
|
4832
4866
|
*/
|
|
4833
4867
|
const sendEmailOTP = async ({ email }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4834
4868
|
const core = require_InvalidParamError.getCore(client);
|
|
4835
|
-
const
|
|
4869
|
+
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
4870
|
+
require_preconnectWaasIframe.preconnectWaasIframe(client);
|
|
4871
|
+
const { verificationUUID } = await apiClient.createEmailVerification({
|
|
4836
4872
|
emailVerificationCreateRequest: {
|
|
4837
4873
|
captchaToken: require_getNetworkProviderFromNetworkId.consumeCaptchaToken(client),
|
|
4838
4874
|
email
|
|
@@ -5795,6 +5831,7 @@ const sendSmsOTP = async ({ isoCountryCode, phoneNumber }, client = require_Inva
|
|
|
5795
5831
|
const core = require_InvalidParamError.getCore(client);
|
|
5796
5832
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
5797
5833
|
const phoneCountryCode = supportedCountries[isoCountryCode].code;
|
|
5834
|
+
require_preconnectWaasIframe.preconnectWaasIframe(client);
|
|
5798
5835
|
const { verificationUUID } = await apiClient.createSmsVerification({
|
|
5799
5836
|
environmentId: core.environmentId,
|
|
5800
5837
|
smsVerificationCreateRequest: {
|
|
@@ -5882,6 +5919,7 @@ const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requ
|
|
|
5882
5919
|
* @redact-params
|
|
5883
5920
|
*/
|
|
5884
5921
|
const verifyOTP = async ({ otpVerification, verificationToken, requestedScopes }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
5922
|
+
require_preconnectWaasIframe.preconnectWaasIframe(client);
|
|
5885
5923
|
let response;
|
|
5886
5924
|
if (client.user) response = await verifyOTPForUserUpdate({
|
|
5887
5925
|
otpVerification,
|
|
@@ -7678,6 +7716,7 @@ const __connectAndVerifyWithWalletProvider_wrapped = require_InvalidParamError.i
|
|
|
7678
7716
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7679
7717
|
* @returns An array of wallet provider data including chain, keys, and metadata.
|
|
7680
7718
|
* @not-instrumented
|
|
7719
|
+
* @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
|
|
7681
7720
|
*/
|
|
7682
7721
|
const getAvailableWalletProvidersData = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
7683
7722
|
return require_getWalletProviderByKey.getWalletProviders(client).filter((walletProvider) => hasWalletProviderConnectMethod({ walletProvider })).map((walletProvider) => ({
|
|
@@ -8421,7 +8460,7 @@ exports.NoNetworkProvidersError = require_getNetworkProviderFromNetworkId.NoNetw
|
|
|
8421
8460
|
exports.NoPasskeyCredentialsFoundError = NoPasskeyCredentialsFoundError;
|
|
8422
8461
|
exports.NoSmartWalletAccountSignerFoundError = NoSmartWalletAccountSignerFoundError;
|
|
8423
8462
|
exports.NoWebAuthNSupportError = NoWebAuthNSupportError;
|
|
8424
|
-
exports.NotWaasWalletAccountError =
|
|
8463
|
+
exports.NotWaasWalletAccountError = require_isDynamicWaasEnabled.NotWaasWalletAccountError;
|
|
8425
8464
|
exports.SandboxMaximumThresholdReachedError = require_InvalidParamError.SandboxMaximumThresholdReachedError;
|
|
8426
8465
|
exports.SimulationFailedError = SimulationFailedError;
|
|
8427
8466
|
exports.TokenSwapError = TokenSwapError;
|