@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.
Files changed (135) hide show
  1. package/dist/{InvalidParamError-BUpLSb5x.native.esm.js → InvalidParamError-CKUis748.native.esm.js} +3 -3
  2. package/dist/{InvalidParamError-BUpLSb5x.native.esm.js.map → InvalidParamError-CKUis748.native.esm.js.map} +1 -1
  3. package/dist/{InvalidParamError-BazEwozw.esm.js → InvalidParamError-I6NfUdQL.esm.js} +3 -3
  4. package/dist/{InvalidParamError-BazEwozw.esm.js.map → InvalidParamError-I6NfUdQL.esm.js.map} +1 -1
  5. package/dist/{InvalidParamError-CMesesy6.cjs → InvalidParamError-d0WFn5Ai.cjs} +4 -4
  6. package/dist/{InvalidParamError-CMesesy6.cjs.map → InvalidParamError-d0WFn5Ai.cjs.map} +1 -1
  7. package/dist/core.cjs +5 -5
  8. package/dist/core.esm.js +5 -5
  9. package/dist/core.native.esm.js +7 -7
  10. package/dist/core.native.esm.js.map +1 -1
  11. package/dist/exports/index.d.ts +1 -1
  12. package/dist/exports/index.d.ts.map +1 -1
  13. package/dist/exports/waasCore.d.ts +1 -0
  14. package/dist/exports/waasCore.d.ts.map +1 -1
  15. package/dist/{getNetworkProviderFromNetworkId-D4xzWb7w.cjs → getNetworkProviderFromNetworkId-CfW0tOnr.cjs} +4 -4
  16. package/dist/{getNetworkProviderFromNetworkId-D4xzWb7w.cjs.map → getNetworkProviderFromNetworkId-CfW0tOnr.cjs.map} +1 -1
  17. package/dist/{getNetworkProviderFromNetworkId-BfBE-dei.esm.js → getNetworkProviderFromNetworkId-D6ABmeNQ.esm.js} +3 -3
  18. package/dist/{getNetworkProviderFromNetworkId-BfBE-dei.esm.js.map → getNetworkProviderFromNetworkId-D6ABmeNQ.esm.js.map} +1 -1
  19. package/dist/{getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js → getNetworkProviderFromNetworkId-DpiVLfs_.native.esm.js} +8 -8
  20. package/dist/getNetworkProviderFromNetworkId-DpiVLfs_.native.esm.js.map +1 -0
  21. package/dist/{getSignedSessionId-BimmHQvA.cjs → getSignedSessionId-Bc-sYE2A.cjs} +3 -3
  22. package/dist/{getSignedSessionId-BimmHQvA.cjs.map → getSignedSessionId-Bc-sYE2A.cjs.map} +1 -1
  23. package/dist/{getSignedSessionId-fwHlhBvt.native.esm.js → getSignedSessionId-C6LJdiSK.native.esm.js} +3 -3
  24. package/dist/{getSignedSessionId-fwHlhBvt.native.esm.js.map → getSignedSessionId-C6LJdiSK.native.esm.js.map} +1 -1
  25. package/dist/{getSignedSessionId-BWxWFaJW.esm.js → getSignedSessionId-IEoo2Kv9.esm.js} +3 -3
  26. package/dist/{getSignedSessionId-BWxWFaJW.esm.js.map → getSignedSessionId-IEoo2Kv9.esm.js.map} +1 -1
  27. package/dist/{getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs → getWaasWalletProviderFromWalletAccount-CSmVAhr2.cjs} +4 -4
  28. package/dist/{getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs.map → getWaasWalletProviderFromWalletAccount-CSmVAhr2.cjs.map} +1 -1
  29. package/dist/{getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js → getWaasWalletProviderFromWalletAccount-D1wxsNEI.native.esm.js} +3 -3
  30. package/dist/{getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js.map → getWaasWalletProviderFromWalletAccount-D1wxsNEI.native.esm.js.map} +1 -1
  31. package/dist/{getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js → getWaasWalletProviderFromWalletAccount-DojjjSIP.esm.js} +3 -3
  32. package/dist/{getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js.map → getWaasWalletProviderFromWalletAccount-DojjjSIP.esm.js.map} +1 -1
  33. package/dist/{getWalletProviderByKey-1zHjzqbz.cjs → getWalletProviderByKey-B821GpaI.cjs} +32 -21
  34. package/dist/getWalletProviderByKey-B821GpaI.cjs.map +1 -0
  35. package/dist/{getWalletProviderByKey-BXGcVzkf.esm.js → getWalletProviderByKey-DsTEubkT.esm.js} +26 -15
  36. package/dist/getWalletProviderByKey-DsTEubkT.esm.js.map +1 -0
  37. package/dist/{getWalletProviderByKey-CAQkYCGi.native.esm.js → getWalletProviderByKey-RTW-S68o.native.esm.js} +26 -15
  38. package/dist/{getWalletProviderByKey-CAQkYCGi.native.esm.js.map → getWalletProviderByKey-RTW-S68o.native.esm.js.map} +1 -1
  39. package/dist/index.cjs +48 -9
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.esm.js +47 -8
  42. package/dist/index.esm.js.map +1 -1
  43. package/dist/index.native.esm.js +49 -11
  44. package/dist/index.native.esm.js.map +1 -1
  45. package/dist/isDynamicWaasEnabled-CBLpFRnd.native.esm.js +37 -0
  46. package/dist/isDynamicWaasEnabled-CBLpFRnd.native.esm.js.map +1 -0
  47. package/dist/isDynamicWaasEnabled-CBOG0ITH.cjs +49 -0
  48. package/dist/isDynamicWaasEnabled-CBOG0ITH.cjs.map +1 -0
  49. package/dist/isDynamicWaasEnabled-vRyWP-1l.esm.js +37 -0
  50. package/dist/isDynamicWaasEnabled-vRyWP-1l.esm.js.map +1 -0
  51. package/dist/{isMfaRequiredForAction-DZVNUtPY.esm.js → isMfaRequiredForAction-C1-1spV9.esm.js} +2 -2
  52. package/dist/{isMfaRequiredForAction-DZVNUtPY.esm.js.map → isMfaRequiredForAction-C1-1spV9.esm.js.map} +1 -1
  53. package/dist/{isMfaRequiredForAction-CPadAr7k.native.esm.js → isMfaRequiredForAction-D1AYL99a.native.esm.js} +2 -2
  54. package/dist/{isMfaRequiredForAction-CPadAr7k.native.esm.js.map → isMfaRequiredForAction-D1AYL99a.native.esm.js.map} +1 -1
  55. package/dist/{isMfaRequiredForAction-CxWuGsmB.cjs → isMfaRequiredForAction-DL013-fR.cjs} +2 -2
  56. package/dist/{isMfaRequiredForAction-CxWuGsmB.cjs.map → isMfaRequiredForAction-DL013-fR.cjs.map} +1 -1
  57. package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts +1 -0
  58. package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts.map +1 -1
  59. package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts +1 -0
  60. package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts.map +1 -1
  61. package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -1
  62. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts +3 -0
  63. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -1
  64. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +3 -0
  65. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
  66. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts +3 -0
  67. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts.map +1 -1
  68. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts +3 -0
  69. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts.map +1 -1
  70. package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts +4 -1
  71. package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts.map +1 -1
  72. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts +3 -0
  73. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts.map +1 -1
  74. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts +3 -0
  75. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map +1 -1
  76. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts +3 -0
  77. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts.map +1 -1
  78. package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts +3 -0
  79. package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts.map +1 -1
  80. package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts +3 -0
  81. package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts.map +1 -1
  82. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +2 -2
  83. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
  84. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +2 -2
  85. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
  86. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
  87. package/dist/modules/waas/createWaasClient/createWaasClient.d.ts.map +1 -1
  88. package/dist/modules/waas/initializeWaasClientsForEagerRecovery/index.d.ts +2 -0
  89. package/dist/modules/waas/{restoreUserSharesForAllWalletAccounts → initializeWaasClientsForEagerRecovery}/index.d.ts.map +1 -1
  90. package/dist/modules/waas/initializeWaasClientsForEagerRecovery/initializeWaasClientsForEagerRecovery.d.ts +11 -0
  91. package/dist/modules/waas/initializeWaasClientsForEagerRecovery/initializeWaasClientsForEagerRecovery.d.ts.map +1 -0
  92. package/dist/modules/waas/preconnectWaasIframe/index.d.ts +2 -0
  93. package/dist/modules/waas/preconnectWaasIframe/index.d.ts.map +1 -0
  94. package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts +13 -0
  95. package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts.map +1 -0
  96. package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts +1 -0
  97. package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts.map +1 -1
  98. package/dist/preconnectWaasIframe-BnyTG4Wy.native.esm.js +31 -0
  99. package/dist/preconnectWaasIframe-BnyTG4Wy.native.esm.js.map +1 -0
  100. package/dist/preconnectWaasIframe-DWYWeLor.cjs +37 -0
  101. package/dist/preconnectWaasIframe-DWYWeLor.cjs.map +1 -0
  102. package/dist/preconnectWaasIframe-Dn3RrrHd.esm.js +31 -0
  103. package/dist/preconnectWaasIframe-Dn3RrrHd.esm.js.map +1 -0
  104. package/dist/{refreshAuth-DlQw3Dky.esm.js → refreshAuth-BWQWl4uA.esm.js} +3 -3
  105. package/dist/{refreshAuth-DlQw3Dky.esm.js.map → refreshAuth-BWQWl4uA.esm.js.map} +1 -1
  106. package/dist/{refreshAuth-Cl3adySI.native.esm.js → refreshAuth-D8UjWFLB.native.esm.js} +3 -3
  107. package/dist/{refreshAuth-Cl3adySI.native.esm.js.map → refreshAuth-D8UjWFLB.native.esm.js.map} +1 -1
  108. package/dist/{refreshAuth-CKcNynMk.cjs → refreshAuth-tjEnkc58.cjs} +3 -3
  109. package/dist/{refreshAuth-CKcNynMk.cjs.map → refreshAuth-tjEnkc58.cjs.map} +1 -1
  110. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  111. package/dist/waas.cjs +8 -25
  112. package/dist/waas.cjs.map +1 -1
  113. package/dist/waas.esm.js +6 -23
  114. package/dist/waas.esm.js.map +1 -1
  115. package/dist/waas.native.esm.js +6 -23
  116. package/dist/waas.native.esm.js.map +1 -1
  117. package/dist/waasCore.cjs +16 -9
  118. package/dist/waasCore.cjs.map +1 -1
  119. package/dist/waasCore.esm.js +16 -10
  120. package/dist/waasCore.esm.js.map +1 -1
  121. package/dist/waasCore.native.esm.js +7 -5
  122. package/dist/waasCore.native.esm.js.map +1 -1
  123. package/package.json +3 -3
  124. package/dist/NotWaasWalletAccountError-CIjFmQ_l.esm.js +0 -18
  125. package/dist/NotWaasWalletAccountError-CIjFmQ_l.esm.js.map +0 -1
  126. package/dist/NotWaasWalletAccountError-D-yqOoH6.cjs +0 -23
  127. package/dist/NotWaasWalletAccountError-D-yqOoH6.cjs.map +0 -1
  128. package/dist/NotWaasWalletAccountError-DWXGDcpr.native.esm.js +0 -18
  129. package/dist/NotWaasWalletAccountError-DWXGDcpr.native.esm.js.map +0 -1
  130. package/dist/getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js.map +0 -1
  131. package/dist/getWalletProviderByKey-1zHjzqbz.cjs.map +0 -1
  132. package/dist/getWalletProviderByKey-BXGcVzkf.esm.js.map +0 -1
  133. package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/index.d.ts +0 -2
  134. package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/restoreUserSharesForAllWalletAccounts.d.ts +0 -4
  135. package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/restoreUserSharesForAllWalletAccounts.d.ts.map +0 -1
@@ -19,10 +19,13 @@ export type GetCheckoutTransactionQuoteParams = {
19
19
  /**
20
20
  * Fetches a quote for a checkout transaction
21
21
  *
22
+ * @deprecated Use {@link getFlowQuote} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
23
+ *
22
24
  * @param params GetCheckoutTransactionQuoteParams - The quote parameters.
23
25
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
24
26
  * @returns The updated checkout transaction with quote data
25
27
  * @not-instrumented
28
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
26
29
  */
27
30
  export declare const getCheckoutTransactionQuote: ({ fromChainId, fromTokenAddress, slippage, transactionId, }: GetCheckoutTransactionQuoteParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
28
31
  //# sourceMappingURL=getCheckoutTransactionQuote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCheckoutTransactionQuote.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,gEAMnC,iCAAiC,wDAEnC,OAAO,CAAC,mBAAmB,CAqB7B,CAAC"}
1
+ {"version":3,"file":"getCheckoutTransactionQuote.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,2BAA2B,gEAMnC,iCAAiC,wDAEnC,OAAO,CAAC,mBAAmB,CAqB7B,CAAC"}
@@ -19,10 +19,13 @@ export type PrepareCheckoutTransactionParams = {
19
19
  * This should be called immediately before triggering the transaction signing.
20
20
  * It will confirm the quote is still valid, the risk state is cleared, and the transaction is ready to be signed.
21
21
  *
22
+ * @deprecated Use {@link prepareFlowSigning} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
23
+ *
22
24
  * @param params PrepareCheckoutTransactionParams - The transaction to prepare.
23
25
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
24
26
  * @returns The updated checkout transaction
25
27
  * @instrumented
28
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
26
29
  */
27
30
  export declare const prepareCheckoutTransaction: ({ assertBalanceForGasCost, assertBalanceForTransferAmount, transactionId, }: PrepareCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
28
31
  //# sourceMappingURL=prepareCheckoutTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,gFAKlC,gCAAgC,wDAElC,OAAO,CAAC,mBAAmB,CAqB7B,CAAC"}
1
+ {"version":3,"file":"prepareCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,gFAKlC,gCAAgC,wDAElC,OAAO,CAAC,mBAAmB,CAqB7B,CAAC"}
@@ -15,10 +15,13 @@ export type SubmitCheckoutTransactionParams = {
15
15
  * 3. Delegates on-chain signing to the wallet provider's executeSwapTransaction method
16
16
  * 4. Calls broadcastCheckoutTransaction with the resulting txHash
17
17
  *
18
+ * @deprecated Use {@link submitFlowTransaction} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
19
+ *
18
20
  * @param params SubmitCheckoutTransactionParams - The transaction ID, wallet account, and optional step callback.
19
21
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
20
22
  * @returns The broadcasted checkout transaction
21
23
  * @instrumented
24
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
22
25
  */
23
26
  export declare const submitCheckoutTransaction: ({ onStepChange, transactionId, walletAccount, assertBalanceForGasCost, assertBalanceForTransferAmount, }: SubmitCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
24
27
  //# sourceMappingURL=submitCheckoutTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"submitCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAGtF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,KAAK,IAAI,CAAC;IAC1D,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,gCAAgC,CAAC;AAErC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB,6GAOjC,+BAA+B,wDAEjC,OAAO,CAAC,mBAAmB,CA0B7B,CAAC"}
1
+ {"version":3,"file":"submitCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAGtF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,KAAK,IAAI,CAAC;IAC1D,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,gCAAgC,CAAC;AAErC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,yBAAyB,6GAOjC,+BAA+B,wDAEjC,OAAO,CAAC,mBAAmB,CA0B7B,CAAC"}
@@ -16,9 +16,12 @@ export type TrackCheckoutTransactionParams = {
16
16
  * the realtime checkout transaction channel. Will be re-enabled once the
17
17
  * dashboard-api environment has the Ably wiring in place.
18
18
  *
19
+ * @deprecated Use the Flow API instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
20
+ *
19
21
  * @param params.transactionId - The ID of the checkout transaction to track.
20
22
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
21
23
  * @not-instrumented
24
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
22
25
  */
23
26
  export declare const trackCheckoutTransaction: (_params: TrackCheckoutTransactionParams, client?: DynamicClient) => Promise<void>;
24
27
  //# sourceMappingURL=trackCheckoutTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trackCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAS3D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,YAC1B,8BAA8B,WAE/B,aAAa,KACpB,OAAO,CAAC,IAAI,CAKd,CAAC"}
1
+ {"version":3,"file":"trackCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAS3D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,wBAAwB,YAC1B,8BAA8B,WAE/B,aAAa,KACpB,OAAO,CAAC,IAAI,CAKd,CAAC"}
@@ -11,10 +11,13 @@ export type RequiresConversionParams = {
11
11
  * Returns `false` when the from token already matches a settlement token, so no
12
12
  * conversion is needed.
13
13
  *
14
+ * @deprecated Use the Flow API instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
15
+ *
14
16
  * @param params - The from token details and the checkout's settlement config.
15
17
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
16
18
  * @returns Whether a token conversion is required
17
19
  * @not-instrumented
20
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
18
21
  */
19
22
  export declare const requiresConversion: ({ transaction }: RequiresConversionParams, client?: import("../../../../exports").DynamicClient) => Promise<boolean>;
20
23
  //# sourceMappingURL=requiresConversion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requiresConversion.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/requiresConversion/requiresConversion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,oBACZ,wBAAwB,2DAExC,OAAO,CAAC,OAAO,CA4BjB,CAAC"}
1
+ {"version":3,"file":"requiresConversion.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/requiresConversion/requiresConversion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,kBAAkB,oBACZ,wBAAwB,2DAExC,OAAO,CAAC,OAAO,CA4BjB,CAAC"}
@@ -10,8 +10,8 @@ export type SendEmailOTPParams = {
10
10
  * @param params.email - The email address to send the OTP to.
11
11
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
12
12
  * @returns A promise that resolves to an OTPVerification object containing the email and verification UUID.
13
- * @instrumented
14
- * @redact-params
13
+ * @instrumented
14
+ * @redact-params
15
15
  */
16
16
  export declare const sendEmailOTP: ({ email }: SendEmailOTPParams, client?: import("../../../exports").DynamicClient) => Promise<OTPVerification>;
17
17
  //# sourceMappingURL=sendEmailOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendEmailOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendEmailOTP/sendEmailOTP.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,cACZ,kBAAkB,wDAE5B,OAAO,CAAC,eAAe,CAazB,CAAC"}
1
+ {"version":3,"file":"sendEmailOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendEmailOTP/sendEmailOTP.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,cACZ,kBAAkB,wDAE5B,OAAO,CAAC,eAAe,CAgBzB,CAAC"}
@@ -11,8 +11,8 @@ export type SendSmsOTPParams = {
11
11
  * @param params.phoneNumber - The phone number to send the OTP to.
12
12
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
13
  * @returns A promise that resolves to an OTPVerification object containing the phone details and verification UUID.
14
- * @instrumented
15
- * @redact-params
14
+ * @instrumented
15
+ * @redact-params
16
16
  */
17
17
  export declare const sendSmsOTP: ({ isoCountryCode, phoneNumber }: SendSmsOTPParams, client?: import("../../../exports").DynamicClient) => Promise<OTPVerification>;
18
18
  //# sourceMappingURL=sendSmsOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendSmsOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendSmsOTP/sendSmsOTP.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,oCACY,gBAAgB,wDAEhD,OAAO,CAAC,eAAe,CAiBzB,CAAC"}
1
+ {"version":3,"file":"sendSmsOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendSmsOTP/sendSmsOTP.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,oCACY,gBAAgB,wDAEhD,OAAO,CAAC,eAAe,CAoBzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAI7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,4DACqC,eAAe,wDAEvE,OAAO,CAAC,cAAc,CAqBxB,CAAC"}
1
+ {"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,4DACqC,eAAe,wDAEvE,OAAO,CAAC,cAAc,CAwBxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createWaasClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAMjE,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,EAAE,gBA+C9B,CAAC"}
1
+ {"version":3,"file":"createWaasClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAMjE,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,EAAE,gBAsD9B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { initializeWaasClientsForEagerRecovery } from './initializeWaasClientsForEagerRecovery';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/restoreUserSharesForAllWalletAccounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/initializeWaasClientsForEagerRecovery/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ /**
3
+ * On login, boots the WaaS client once per chain so the SDK eagerly recovers
4
+ * key shares itself (the `eagerlyRecoverKeyShares` capability) instead of the
5
+ * host looping per wallet. Booting calls `initialize()`, which sends the auth
6
+ * token the iframe needs to self-recover.
7
+ *
8
+ * @not-instrumented
9
+ */
10
+ export declare const initializeWaasClientsForEagerRecovery: (client: DynamicClient) => Promise<void>;
11
+ //# sourceMappingURL=initializeWaasClientsForEagerRecovery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initializeWaasClientsForEagerRecovery.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/initializeWaasClientsForEagerRecovery/initializeWaasClientsForEagerRecovery.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAM3D;;;;;;;GAOG;AACH,eAAO,MAAM,qCAAqC,WACxC,aAAa,KACpB,OAAO,CAAC,IAAI,CAoCd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { preconnectWaasIframe } from './preconnectWaasIframe';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/preconnectWaasIframe/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ /**
3
+ * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet
4
+ * iframe origin so the iframe mounted after authentication completes loads on
5
+ * a hot connection. Called when an auth flow starts (OTP send/verify, social
6
+ * callback). Safe to call repeatedly; no-op on React Native / SSR and when
7
+ * Dynamic WaaS is not enabled.
8
+ *
9
+ * @param client - The Dynamic client instance.
10
+ * @not-instrumented
11
+ */
12
+ export declare const preconnectWaasIframe: (client: DynamicClient) => void;
13
+ //# sourceMappingURL=preconnectWaasIframe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preconnectWaasIframe.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK3D;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,WAAY,aAAa,KAAG,IAiB5D,CAAC"}
@@ -8,6 +8,7 @@ import type { WalletProviderData } from '../walletProvider';
8
8
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9
9
  * @returns An array of wallet provider data including chain, keys, and metadata.
10
10
  * @not-instrumented
11
+ * @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
11
12
  */
12
13
  export declare const getAvailableWalletProvidersData: (client?: import("../../../exports").DynamicClient) => WalletProviderData[];
13
14
  //# sourceMappingURL=getAvailableWalletProvidersData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAvailableWalletProvidersData.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,yDAEzC,kBAAkB,EAcpB,CAAC"}
1
+ {"version":3,"file":"getAvailableWalletProvidersData.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,+BAA+B,yDAEzC,kBAAkB,EAcpB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { N as isCookieEnabled, Q as getCore, r as DEFAULT_WAAS_BASE_API_URL } from "./InvalidParamError-CKUis748.native.esm.js";
2
+ import { t as isDynamicWaasEnabled } from "./isDynamicWaasEnabled-CBLpFRnd.native.esm.js";
3
+ import { preconnectWaasIframe } from "@dynamic-labs-wallet/browser-wallet-client";
4
+
5
+ //#region src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts
6
+ /**
7
+ * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet
8
+ * iframe origin so the iframe mounted after authentication completes loads on
9
+ * a hot connection. Called when an auth flow starts (OTP send/verify, social
10
+ * callback). Safe to call repeatedly; no-op on React Native / SSR and when
11
+ * Dynamic WaaS is not enabled.
12
+ *
13
+ * @param client - The Dynamic client instance.
14
+ * @not-instrumented
15
+ */
16
+ const preconnectWaasIframe$1 = (client) => {
17
+ const core = getCore(client);
18
+ try {
19
+ if (!isDynamicWaasEnabled(client)) return;
20
+ preconnectWaasIframe({
21
+ authMode: isCookieEnabled(client) ? "cookie" : "header",
22
+ baseApiUrl: (core.apiBaseUrl || DEFAULT_WAAS_BASE_API_URL).replace("/api/v0", "")
23
+ });
24
+ } catch (error) {
25
+ core.logger.warn("[preconnectWaasIframe] skipped", error);
26
+ }
27
+ };
28
+
29
+ //#endregion
30
+ export { preconnectWaasIframe$1 as t };
31
+ //# sourceMappingURL=preconnectWaasIframe-BnyTG4Wy.native.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preconnectWaasIframe-BnyTG4Wy.native.esm.js","names":["preconnectWaasIframe"],"sources":["../src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts"],"sourcesContent":["import type { AuthMode } from '@dynamic-labs-wallet/browser-wallet-client';\nimport { preconnectWaasIframe as preconnectWaasIframeOrigin } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { isCookieEnabled } from '../../projectSettings/isCookieEnabled';\nimport { DEFAULT_WAAS_BASE_API_URL } from '../constants';\nimport { isDynamicWaasEnabled } from '../isDynamicWaasEnabled';\n\n/**\n * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet\n * iframe origin so the iframe mounted after authentication completes loads on\n * a hot connection. Called when an auth flow starts (OTP send/verify, social\n * callback). Safe to call repeatedly; no-op on React Native / SSR and when\n * Dynamic WaaS is not enabled.\n *\n * @param client - The Dynamic client instance.\n * @not-instrumented\n */\nexport const preconnectWaasIframe = (client: DynamicClient): void => {\n const core = getCore(client);\n try {\n if (!isDynamicWaasEnabled(client)) return;\n\n preconnectWaasIframeOrigin({\n authMode: (isCookieEnabled(client) ? 'cookie' : 'header') as AuthMode,\n baseApiUrl: (core.apiBaseUrl || DEFAULT_WAAS_BASE_API_URL).replace(\n '/api/v0',\n ''\n ),\n });\n } catch (error) {\n // Best-effort: never break the auth flow (also swallows the assertion\n // from isDynamicWaasEnabled when project settings are not loaded yet).\n core.logger.warn('[preconnectWaasIframe] skipped', error);\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAaA,0BAAwB,WAAgC;CACnE,MAAM,OAAO,QAAQ,OAAO;AAC5B,KAAI;AACF,MAAI,CAAC,qBAAqB,OAAO,CAAE;AAEnC,uBAA2B;GACzB,UAAW,gBAAgB,OAAO,GAAG,WAAW;GAChD,aAAa,KAAK,cAAc,2BAA2B,QACzD,WACA,GACD;GACF,CAAC;UACK,OAAO;AAGd,OAAK,OAAO,KAAK,kCAAkC,MAAM"}
@@ -0,0 +1,37 @@
1
+ const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-DL013-fR.cjs');
2
+ const require_InvalidParamError = require('./InvalidParamError-d0WFn5Ai.cjs');
3
+ const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-CBOG0ITH.cjs');
4
+ let _dynamic_labs_wallet_browser_wallet_client = require("@dynamic-labs-wallet/browser-wallet-client");
5
+
6
+ //#region src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts
7
+ /**
8
+ * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet
9
+ * iframe origin so the iframe mounted after authentication completes loads on
10
+ * a hot connection. Called when an auth flow starts (OTP send/verify, social
11
+ * callback). Safe to call repeatedly; no-op on React Native / SSR and when
12
+ * Dynamic WaaS is not enabled.
13
+ *
14
+ * @param client - The Dynamic client instance.
15
+ * @not-instrumented
16
+ */
17
+ const preconnectWaasIframe = (client) => {
18
+ const core = require_InvalidParamError.getCore(client);
19
+ try {
20
+ if (!require_isDynamicWaasEnabled.isDynamicWaasEnabled(client)) return;
21
+ (0, _dynamic_labs_wallet_browser_wallet_client.preconnectWaasIframe)({
22
+ authMode: require_InvalidParamError.isCookieEnabled(client) ? "cookie" : "header",
23
+ baseApiUrl: (core.apiBaseUrl || require_InvalidParamError.DEFAULT_WAAS_BASE_API_URL).replace("/api/v0", "")
24
+ });
25
+ } catch (error) {
26
+ core.logger.warn("[preconnectWaasIframe] skipped", error);
27
+ }
28
+ };
29
+
30
+ //#endregion
31
+ Object.defineProperty(exports, 'preconnectWaasIframe', {
32
+ enumerable: true,
33
+ get: function () {
34
+ return preconnectWaasIframe;
35
+ }
36
+ });
37
+ //# sourceMappingURL=preconnectWaasIframe-DWYWeLor.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preconnectWaasIframe-DWYWeLor.cjs","names":["getCore","isDynamicWaasEnabled","isCookieEnabled","DEFAULT_WAAS_BASE_API_URL"],"sources":["../src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts"],"sourcesContent":["import type { AuthMode } from '@dynamic-labs-wallet/browser-wallet-client';\nimport { preconnectWaasIframe as preconnectWaasIframeOrigin } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { isCookieEnabled } from '../../projectSettings/isCookieEnabled';\nimport { DEFAULT_WAAS_BASE_API_URL } from '../constants';\nimport { isDynamicWaasEnabled } from '../isDynamicWaasEnabled';\n\n/**\n * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet\n * iframe origin so the iframe mounted after authentication completes loads on\n * a hot connection. Called when an auth flow starts (OTP send/verify, social\n * callback). Safe to call repeatedly; no-op on React Native / SSR and when\n * Dynamic WaaS is not enabled.\n *\n * @param client - The Dynamic client instance.\n * @not-instrumented\n */\nexport const preconnectWaasIframe = (client: DynamicClient): void => {\n const core = getCore(client);\n try {\n if (!isDynamicWaasEnabled(client)) return;\n\n preconnectWaasIframeOrigin({\n authMode: (isCookieEnabled(client) ? 'cookie' : 'header') as AuthMode,\n baseApiUrl: (core.apiBaseUrl || DEFAULT_WAAS_BASE_API_URL).replace(\n '/api/v0',\n ''\n ),\n });\n } catch (error) {\n // Best-effort: never break the auth flow (also swallows the assertion\n // from isDynamicWaasEnabled when project settings are not loaded yet).\n core.logger.warn('[preconnectWaasIframe] skipped', error);\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAmBA,MAAa,wBAAwB,WAAgC;CACnE,MAAM,OAAOA,kCAAQ,OAAO;AAC5B,KAAI;AACF,MAAI,CAACC,kDAAqB,OAAO,CAAE;AAEnC,uEAA2B;GACzB,UAAWC,0CAAgB,OAAO,GAAG,WAAW;GAChD,aAAa,KAAK,cAAcC,qDAA2B,QACzD,WACA,GACD;GACF,CAAC;UACK,OAAO;AAGd,OAAK,OAAO,KAAK,kCAAkC,MAAM"}
@@ -0,0 +1,31 @@
1
+ import { U as isCookieEnabled, ct as getCore, r as DEFAULT_WAAS_BASE_API_URL } from "./InvalidParamError-I6NfUdQL.esm.js";
2
+ import { t as isDynamicWaasEnabled } from "./isDynamicWaasEnabled-vRyWP-1l.esm.js";
3
+ import { preconnectWaasIframe } from "@dynamic-labs-wallet/browser-wallet-client";
4
+
5
+ //#region src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts
6
+ /**
7
+ * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet
8
+ * iframe origin so the iframe mounted after authentication completes loads on
9
+ * a hot connection. Called when an auth flow starts (OTP send/verify, social
10
+ * callback). Safe to call repeatedly; no-op on React Native / SSR and when
11
+ * Dynamic WaaS is not enabled.
12
+ *
13
+ * @param client - The Dynamic client instance.
14
+ * @not-instrumented
15
+ */
16
+ const preconnectWaasIframe$1 = (client) => {
17
+ const core = getCore(client);
18
+ try {
19
+ if (!isDynamicWaasEnabled(client)) return;
20
+ preconnectWaasIframe({
21
+ authMode: isCookieEnabled(client) ? "cookie" : "header",
22
+ baseApiUrl: (core.apiBaseUrl || DEFAULT_WAAS_BASE_API_URL).replace("/api/v0", "")
23
+ });
24
+ } catch (error) {
25
+ core.logger.warn("[preconnectWaasIframe] skipped", error);
26
+ }
27
+ };
28
+
29
+ //#endregion
30
+ export { preconnectWaasIframe$1 as t };
31
+ //# sourceMappingURL=preconnectWaasIframe-Dn3RrrHd.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preconnectWaasIframe-Dn3RrrHd.esm.js","names":["preconnectWaasIframe"],"sources":["../src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts"],"sourcesContent":["import type { AuthMode } from '@dynamic-labs-wallet/browser-wallet-client';\nimport { preconnectWaasIframe as preconnectWaasIframeOrigin } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { isCookieEnabled } from '../../projectSettings/isCookieEnabled';\nimport { DEFAULT_WAAS_BASE_API_URL } from '../constants';\nimport { isDynamicWaasEnabled } from '../isDynamicWaasEnabled';\n\n/**\n * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet\n * iframe origin so the iframe mounted after authentication completes loads on\n * a hot connection. Called when an auth flow starts (OTP send/verify, social\n * callback). Safe to call repeatedly; no-op on React Native / SSR and when\n * Dynamic WaaS is not enabled.\n *\n * @param client - The Dynamic client instance.\n * @not-instrumented\n */\nexport const preconnectWaasIframe = (client: DynamicClient): void => {\n const core = getCore(client);\n try {\n if (!isDynamicWaasEnabled(client)) return;\n\n preconnectWaasIframeOrigin({\n authMode: (isCookieEnabled(client) ? 'cookie' : 'header') as AuthMode,\n baseApiUrl: (core.apiBaseUrl || DEFAULT_WAAS_BASE_API_URL).replace(\n '/api/v0',\n ''\n ),\n });\n } catch (error) {\n // Best-effort: never break the auth flow (also swallows the assertion\n // from isDynamicWaasEnabled when project settings are not loaded yet).\n core.logger.warn('[preconnectWaasIframe] skipped', error);\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAaA,0BAAwB,WAAgC;CACnE,MAAM,OAAO,QAAQ,OAAO;AAC5B,KAAI;AACF,MAAI,CAAC,qBAAqB,OAAO,CAAE;AAEnC,uBAA2B;GACzB,UAAW,gBAAgB,OAAO,GAAG,WAAW;GAChD,aAAa,KAAK,cAAc,2BAA2B,QACzD,WACA,GACD;GACF,CAAC;UACK,OAAO;AAGd,OAAK,OAAO,KAAK,kCAAkC,MAAM"}
@@ -1,5 +1,5 @@
1
- import { A as createApiClient, ct as getCore, it as getDefaultClient, q as instrumentFunction } from "./InvalidParamError-BazEwozw.esm.js";
2
- import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-BXGcVzkf.esm.js";
1
+ import { A as createApiClient, ct as getCore, it as getDefaultClient, q as instrumentFunction } from "./InvalidParamError-I6NfUdQL.esm.js";
2
+ import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-DsTEubkT.esm.js";
3
3
 
4
4
  //#region src/modules/user/refreshAuth/refreshAuth.ts
5
5
  /**
@@ -35,4 +35,4 @@ const __refreshAuth_wrapped = instrumentFunction({
35
35
 
36
36
  //#endregion
37
37
  export { __refreshAuth_wrapped as t };
38
- //# sourceMappingURL=refreshAuth-DlQw3Dky.esm.js.map
38
+ //# sourceMappingURL=refreshAuth-BWQWl4uA.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth-DlQw3Dky.esm.js","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,kBAAY;CAElB,MAAM,OAAA,QAAW,OAAM;wBACN,gBAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,8BAAA,EAAA,UAAA,EAAA,OAAA"}
1
+ {"version":3,"file":"refreshAuth-BWQWl4uA.esm.js","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,kBAAY;CAElB,MAAM,OAAA,QAAW,OAAM;wBACN,gBAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,8BAAA,EAAA,UAAA,EAAA,OAAA"}
@@ -1,5 +1,5 @@
1
- import { J as getDefaultClient, L as instrumentFunction, Q as getCore, b as createApiClient } from "./InvalidParamError-BUpLSb5x.native.esm.js";
2
- import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-CAQkYCGi.native.esm.js";
1
+ import { J as getDefaultClient, L as instrumentFunction, Q as getCore, b as createApiClient } from "./InvalidParamError-CKUis748.native.esm.js";
2
+ import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-RTW-S68o.native.esm.js";
3
3
 
4
4
  //#region src/modules/user/refreshAuth/refreshAuth.ts
5
5
  /**
@@ -35,4 +35,4 @@ const __refreshAuth_wrapped = instrumentFunction({
35
35
 
36
36
  //#endregion
37
37
  export { __refreshAuth_wrapped as t };
38
- //# sourceMappingURL=refreshAuth-Cl3adySI.native.esm.js.map
38
+ //# sourceMappingURL=refreshAuth-D8UjWFLB.native.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth-Cl3adySI.native.esm.js","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,kBAAY;CAElB,MAAM,OAAA,QAAW,OAAM;wBACN,gBAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,8BAAA,EAAA,UAAA,EAAA,OAAA"}
1
+ {"version":3,"file":"refreshAuth-D8UjWFLB.native.esm.js","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,kBAAY;CAElB,MAAM,OAAA,QAAW,OAAM;wBACN,gBAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,8BAAA,EAAA,UAAA,EAAA,OAAA"}
@@ -1,5 +1,5 @@
1
- const require_InvalidParamError = require('./InvalidParamError-CMesesy6.cjs');
2
- const require_getWalletProviderByKey = require('./getWalletProviderByKey-1zHjzqbz.cjs');
1
+ const require_InvalidParamError = require('./InvalidParamError-d0WFn5Ai.cjs');
2
+ const require_getWalletProviderByKey = require('./getWalletProviderByKey-B821GpaI.cjs');
3
3
 
4
4
  //#region src/modules/user/refreshAuth/refreshAuth.ts
5
5
  /**
@@ -40,4 +40,4 @@ Object.defineProperty(exports, '__refreshAuth_wrapped', {
40
40
  return __refreshAuth_wrapped;
41
41
  }
42
42
  });
43
- //# sourceMappingURL=refreshAuth-CKcNynMk.cjs.map
43
+ //# sourceMappingURL=refreshAuth-tjEnkc58.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth-CKcNynMk.cjs","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,4CAAY;CAElB,MAAM,OAAA,kCAAW,OAAM;wBACN,0CAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,6DAAA,EAAA,UAAA,EAAA,OAAA"}
1
+ {"version":3,"file":"refreshAuth-tjEnkc58.cjs","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,4CAAY;CAElB,MAAM,OAAA,kCAAW,OAAM;wBACN,0CAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,6DAAA,EAAA,UAAA,EAAA,OAAA"}