@dynamic-labs/sdk-react-core 0.19.0-alpha.7 → 0.19.0-alpha.9

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 (451) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/package.cjs +3 -3
  3. package/package.js +3 -3
  4. package/package.json +10 -10
  5. package/src/index.cjs +14 -5
  6. package/src/index.d.ts +2 -2
  7. package/src/index.js +8 -3
  8. package/src/lib/Main.cjs +3 -1
  9. package/src/lib/Main.js +3 -1
  10. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +3 -3
  11. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +3 -3
  12. package/src/lib/components/Divider/Divider.cjs +1 -1
  13. package/src/lib/components/Divider/Divider.js +1 -1
  14. package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -0
  15. package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -0
  16. package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +1 -0
  17. package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +1 -0
  18. package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -0
  19. package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -0
  20. package/src/lib/components/IconWithStatus/IconWithStatus.cjs +4 -3
  21. package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +2 -2
  22. package/src/lib/components/IconWithStatus/IconWithStatus.js +4 -3
  23. package/src/lib/components/MockedQrCode/MockedQrCode.cjs +1 -1
  24. package/src/lib/components/MockedQrCode/MockedQrCode.js +1 -1
  25. package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -1
  26. package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -1
  27. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +1 -1
  28. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +1 -1
  29. package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -1
  30. package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -1
  31. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -1
  32. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -1
  33. package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +1 -1
  34. package/src/lib/components/OTPVerificationView/OTPVerificationView.js +1 -1
  35. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +2 -2
  36. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +1 -1
  37. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +2 -2
  38. package/src/lib/components/SignMessagePreview/SignMessagePreview.cjs +27 -0
  39. package/src/lib/components/SignMessagePreview/SignMessagePreview.d.ts +6 -0
  40. package/src/lib/components/SignMessagePreview/SignMessagePreview.js +23 -0
  41. package/src/lib/components/SignMessagePreview/SignMessagePreview.types.d.ts +8 -0
  42. package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.cjs +44 -0
  43. package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.d.ts +8 -0
  44. package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.js +40 -0
  45. package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/index.d.ts +1 -0
  46. package/src/lib/components/SignMessagePreview/components/index.d.ts +1 -0
  47. package/src/lib/components/SignMessagePreview/index.d.ts +1 -0
  48. package/src/lib/components/SignMessagePreview/utils/index.d.ts +1 -0
  49. package/src/lib/components/SignMessagePreview/utils/isSignTypedData/index.d.ts +1 -0
  50. package/src/lib/components/SignMessagePreview/utils/isSignTypedData/isSignTypedData.cjs +17 -0
  51. package/src/lib/components/SignMessagePreview/utils/isSignTypedData/isSignTypedData.d.ts +2 -0
  52. package/src/lib/components/SignMessagePreview/utils/isSignTypedData/isSignTypedData.js +13 -0
  53. package/src/lib/components/SocialSignIn/SocialSignIn.cjs +26 -14
  54. package/src/lib/components/SocialSignIn/SocialSignIn.d.ts +8 -7
  55. package/src/lib/components/SocialSignIn/SocialSignIn.js +26 -14
  56. package/src/lib/components/Toolkit/Toolkit.cjs +2 -1
  57. package/src/lib/components/Toolkit/Toolkit.js +2 -1
  58. package/src/lib/components/Toolkit/components/MultiWalletSwitch.cjs +1 -1
  59. package/src/lib/components/Toolkit/components/MultiWalletSwitch.d.ts +1 -2
  60. package/src/lib/components/Toolkit/components/MultiWalletSwitch.js +1 -1
  61. package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +1 -1
  62. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -1
  63. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -1
  64. package/src/lib/components/UserAvatar/UserAvatar.cjs +22 -0
  65. package/src/lib/components/UserAvatar/UserAvatar.d.ts +7 -0
  66. package/src/lib/components/UserAvatar/UserAvatar.js +18 -0
  67. package/src/lib/components/UserProfile/UserProfile.cjs +12 -2
  68. package/src/lib/components/UserProfile/UserProfile.js +12 -2
  69. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +1 -1
  70. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -1
  71. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -1
  72. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -1
  73. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +16 -14
  74. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +16 -14
  75. package/src/lib/components/UserProfileForm/UserProfileForm.cjs +1 -0
  76. package/src/lib/components/UserProfileForm/UserProfileForm.js +1 -0
  77. package/src/lib/components/index.d.ts +1 -0
  78. package/src/lib/context/DynamicContext/DynamicContext.cjs +2 -3
  79. package/src/lib/context/DynamicContext/DynamicContext.js +2 -3
  80. package/src/lib/context/DynamicContext/helpers.cjs +22 -10
  81. package/src/lib/context/DynamicContext/helpers.d.ts +4 -2
  82. package/src/lib/context/DynamicContext/helpers.js +20 -10
  83. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -0
  84. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -0
  85. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +1 -0
  86. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +1 -0
  87. package/src/lib/context/ErrorContext/ErrorContext.cjs +4 -1
  88. package/src/lib/context/ErrorContext/ErrorContext.js +4 -1
  89. package/src/lib/context/FundingContext/FundingContext.cjs +1 -0
  90. package/src/lib/context/FundingContext/FundingContext.js +1 -0
  91. package/src/lib/context/MockContext/MockContext.cjs +1 -1
  92. package/src/lib/context/MockContext/MockContext.js +1 -1
  93. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +7 -4
  94. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +5 -5
  95. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +7 -4
  96. package/src/lib/context/ViewContext/ViewContext.cjs +4 -19
  97. package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
  98. package/src/lib/context/ViewContext/ViewContext.js +5 -20
  99. package/src/lib/context/WalletContext/WalletContext.cjs +1 -1
  100. package/src/lib/context/WalletContext/WalletContext.js +1 -1
  101. package/src/lib/data/api.cjs +67 -29
  102. package/src/lib/data/api.d.ts +6 -3
  103. package/src/lib/data/api.js +68 -31
  104. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +5 -2
  105. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +5 -2
  106. package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +1 -1
  107. package/src/lib/layout/DynamicAuthLayout/Header/header.js +1 -1
  108. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +5 -0
  109. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +5 -0
  110. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +4 -3
  111. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +4 -3
  112. package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +61 -0
  113. package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.d.ts +1 -0
  114. package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +57 -0
  115. package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/index.d.ts +1 -0
  116. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +1 -1
  117. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +1 -1
  118. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -1
  119. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -1
  120. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +3 -3
  121. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +3 -3
  122. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -1
  123. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -1
  124. package/src/lib/layout/DynamicAuthLayout/HelpContent/index.d.ts +1 -0
  125. package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +1 -1
  126. package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +1 -1
  127. package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +1 -1
  128. package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +1 -1
  129. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -1
  130. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -1
  131. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -1
  132. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -1
  133. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -1
  134. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -1
  135. package/src/lib/locale/en/translation.cjs +43 -5
  136. package/src/lib/locale/en/translation.js +41 -6
  137. package/src/lib/locale/locale.cjs +17 -4
  138. package/src/lib/locale/locale.d.ts +1 -0
  139. package/src/lib/locale/locale.js +17 -4
  140. package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -1
  141. package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -1
  142. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +3 -2
  143. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +3 -2
  144. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +1 -1
  145. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +1 -1
  146. package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +1 -1
  147. package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +1 -1
  148. package/src/lib/shared/assets/android-face-id.cjs +61 -0
  149. package/src/lib/shared/assets/android-face-id.js +37 -0
  150. package/src/lib/shared/assets/index.d.ts +6 -0
  151. package/src/lib/shared/assets/iphone-face-id.cjs +53 -0
  152. package/src/lib/shared/assets/iphone-face-id.js +29 -0
  153. package/src/lib/shared/assets/iphone-touch-id.cjs +72 -0
  154. package/src/lib/shared/assets/iphone-touch-id.js +48 -0
  155. package/src/lib/shared/assets/passkey-intro-icon.cjs +97 -0
  156. package/src/lib/shared/assets/passkey-intro-icon.js +73 -0
  157. package/src/lib/shared/assets/passkey-success-icon.cjs +94 -0
  158. package/src/lib/shared/assets/passkey-success-icon.js +70 -0
  159. package/src/lib/shared/assets/user-account-2.cjs +53 -0
  160. package/src/lib/shared/assets/user-account-2.js +29 -0
  161. package/src/lib/shared/types/index.d.ts +5 -0
  162. package/src/lib/shared/utils/functions/wallet/createWallet.cjs +7 -5
  163. package/src/lib/shared/utils/functions/wallet/createWallet.js +7 -5
  164. package/src/lib/styles/index.shadow.cjs +1 -1
  165. package/src/lib/styles/index.shadow.js +1 -1
  166. package/src/lib/utils/constants/localStorage.cjs +4 -2
  167. package/src/lib/utils/constants/localStorage.d.ts +2 -1
  168. package/src/lib/utils/constants/localStorage.js +3 -2
  169. package/src/lib/utils/functions/getActiveOauthCredential/getActiveOauthCredential.cjs +11 -0
  170. package/src/lib/utils/functions/getActiveOauthCredential/getActiveOauthCredential.d.ts +2 -0
  171. package/src/lib/utils/functions/getActiveOauthCredential/getActiveOauthCredential.js +7 -0
  172. package/src/lib/utils/functions/getActiveOauthCredential/index.d.ts +1 -0
  173. package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/getEnabledSocialSignInProvidersAsProviderEnum.d.ts +2 -0
  174. package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/index.d.ts +1 -0
  175. package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.cjs +72 -0
  176. package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.d.ts +2 -0
  177. package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.js +68 -0
  178. package/src/lib/utils/functions/getOauthLoginUrl/index.d.ts +1 -0
  179. package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.cjs +19 -0
  180. package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.d.ts +2 -0
  181. package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.js +15 -0
  182. package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/index.d.ts +1 -0
  183. package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.cjs +19 -0
  184. package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.d.ts +2 -0
  185. package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.js +15 -0
  186. package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/index.d.ts +1 -0
  187. package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.cjs +19 -0
  188. package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.d.ts +2 -0
  189. package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.js +15 -0
  190. package/src/lib/utils/functions/getSocialSignInProviderFromString/index.d.ts +1 -0
  191. package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -1
  192. package/src/lib/utils/functions/getWalletProvider/getWalletProvider.cjs +3 -0
  193. package/src/lib/utils/functions/getWalletProvider/getWalletProvider.js +3 -0
  194. package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +1 -0
  195. package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +1 -0
  196. package/src/lib/utils/functions/index.d.ts +6 -0
  197. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +8 -23
  198. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +9 -24
  199. package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -1
  200. package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -1
  201. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +7 -3
  202. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +7 -3
  203. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +4 -3
  204. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +5 -4
  205. package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +1 -0
  206. package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +1 -0
  207. package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +1 -0
  208. package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +1 -0
  209. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +10 -5
  210. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.d.ts +3 -1
  211. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +10 -5
  212. package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +11 -1
  213. package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +11 -1
  214. package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +15 -1
  215. package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +15 -1
  216. package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +1 -0
  217. package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +1 -0
  218. package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs +0 -4
  219. package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +0 -4
  220. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +1 -0
  221. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +1 -0
  222. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +15 -165
  223. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +2 -2
  224. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +17 -167
  225. package/src/lib/utils/hooks/useSocialAuth/index.d.ts +1 -0
  226. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +277 -0
  227. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.d.ts +20 -0
  228. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +273 -0
  229. package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +1 -0
  230. package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +1 -0
  231. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +14 -3
  232. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +14 -3
  233. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +1 -0
  234. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +1 -0
  235. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +1 -0
  236. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +1 -0
  237. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -1
  238. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -1
  239. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +1 -1
  240. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -1
  241. package/src/lib/utils/hooks/useWallets/useWallets.cjs +15 -26
  242. package/src/lib/utils/hooks/useWallets/useWallets.js +16 -27
  243. package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -0
  244. package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -0
  245. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +1 -0
  246. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +1 -0
  247. package/src/lib/views/AccountExistsView/AccountExistsView.cjs +5 -3
  248. package/src/lib/views/AccountExistsView/AccountExistsView.js +5 -3
  249. package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +1 -1
  250. package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +1 -1
  251. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -1
  252. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -1
  253. package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +1 -1
  254. package/src/lib/views/CollectUserDataView/CollectUserDataView.js +1 -1
  255. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -1
  256. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -1
  257. package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +1 -1
  258. package/src/lib/views/CollectUserDataView/UserDataFields/index.js +1 -1
  259. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +4 -3
  260. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +4 -3
  261. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -1
  262. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -1
  263. package/src/lib/views/EmailUpdate/EmailUpdate.cjs +1 -0
  264. package/src/lib/views/EmailUpdate/EmailUpdate.js +1 -0
  265. package/src/lib/views/EmailVerification/EmailVerification.cjs +1 -0
  266. package/src/lib/views/EmailVerification/EmailVerification.js +1 -0
  267. package/src/lib/views/LoginView/LoginView.cjs +1 -1
  268. package/src/lib/views/LoginView/LoginView.js +1 -1
  269. package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +12 -4
  270. package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +12 -4
  271. package/src/lib/views/LoginView/sections/LoginWidget.d.ts +5 -0
  272. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +77 -0
  273. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.d.ts +3 -0
  274. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +73 -0
  275. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/index.d.ts +1 -0
  276. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +4 -3
  277. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.d.ts +2 -1
  278. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +4 -3
  279. package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +19 -4
  280. package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.d.ts +6 -1
  281. package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +19 -4
  282. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +1 -1
  283. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +1 -1
  284. package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +4 -3
  285. package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +4 -3
  286. package/src/lib/views/LoginView/useLoginView.cjs +9 -10
  287. package/src/lib/views/LoginView/useLoginView.js +9 -10
  288. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +2 -1
  289. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +2 -1
  290. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -2
  291. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -2
  292. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -2
  293. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -2
  294. package/src/lib/views/NoAccess/NoAccess.cjs +1 -1
  295. package/src/lib/views/NoAccess/NoAccess.js +1 -1
  296. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +3 -3
  297. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +3 -3
  298. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -1
  299. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -1
  300. package/src/lib/views/PasskeyIntroView/PasskeyIntroView.cjs +90 -0
  301. package/src/lib/views/PasskeyIntroView/PasskeyIntroView.d.ts +2 -0
  302. package/src/lib/views/PasskeyIntroView/PasskeyIntroView.js +86 -0
  303. package/src/lib/views/PasskeyIntroView/index.d.ts +1 -0
  304. package/src/lib/views/PasskeySuccessView/PasskeySuccessView.cjs +63 -0
  305. package/src/lib/views/PasskeySuccessView/PasskeySuccessView.d.ts +2 -0
  306. package/src/lib/views/PasskeySuccessView/PasskeySuccessView.js +59 -0
  307. package/src/lib/views/PasskeySuccessView/index.d.ts +1 -0
  308. package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -2
  309. package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -2
  310. package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -2
  311. package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -2
  312. package/src/lib/views/QrCodeView/QRCode.cjs +3 -3
  313. package/src/lib/views/QrCodeView/QRCode.d.ts +2 -2
  314. package/src/lib/views/QrCodeView/QRCode.js +3 -3
  315. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +3 -3
  316. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +2 -1
  317. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +3 -3
  318. package/src/lib/views/QrCodeView/QrCodeView.cjs +3 -3
  319. package/src/lib/views/QrCodeView/QrCodeView.js +3 -3
  320. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -1
  321. package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -1
  322. package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +5 -7
  323. package/src/lib/views/SocialRedirectView/SocialRedirectView.d.ts +1 -1
  324. package/src/lib/views/SocialRedirectView/SocialRedirectView.js +5 -7
  325. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -1
  326. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -1
  327. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -1
  328. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -1
  329. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +4 -2
  330. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +4 -2
  331. package/src/lib/views/WalletGroupView/WalletGroupView.cjs +1 -1
  332. package/src/lib/views/WalletGroupView/WalletGroupView.js +1 -1
  333. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +1 -1
  334. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +1 -1
  335. package/src/lib/views/WalletList/WalletList.cjs +1 -4
  336. package/src/lib/views/WalletList/WalletList.js +1 -4
  337. package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +3 -3
  338. package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +3 -3
  339. package/src/lib/views/WalletList/data.cjs +3 -15
  340. package/src/lib/views/WalletList/data.d.ts +4 -2
  341. package/src/lib/views/WalletList/data.js +3 -14
  342. package/src/lib/views/WalletLockedView/WalletLockedView.cjs +2 -2
  343. package/src/lib/views/WalletLockedView/WalletLockedView.js +2 -2
  344. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +3 -3
  345. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +3 -3
  346. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +2 -1
  347. package/src/lib/views/WalletUsedView/WalletUsedView.js +2 -1
  348. package/src/lib/views/viewToComponentMap.cjs +4 -0
  349. package/src/lib/views/viewToComponentMap.js +4 -0
  350. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -1
  351. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -1
  352. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -1
  353. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -1
  354. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -1
  355. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -1
  356. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +3 -3
  357. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +1 -1
  358. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +3 -3
  359. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +1 -1
  360. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +1 -1
  361. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +4 -4
  362. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +4 -4
  363. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +1 -1
  364. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +1 -1
  365. package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +1 -1
  366. package/src/lib/widgets/DynamicWidget/DynamicWidget.js +1 -1
  367. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +19 -4
  368. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +19 -4
  369. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +1 -1
  370. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +1 -1
  371. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -1
  372. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -1
  373. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +1 -1
  374. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +1 -1
  375. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -1
  376. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -1
  377. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +1 -1
  378. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -1
  379. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +13 -4
  380. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.d.ts +1 -1
  381. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +13 -4
  382. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +1 -1
  383. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -1
  384. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +1 -1
  385. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +1 -1
  386. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -1
  387. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -1
  388. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +1 -1
  389. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +1 -1
  390. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +1 -1
  391. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +1 -1
  392. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -1
  393. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -1
  394. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +3 -3
  395. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +3 -3
  396. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +3 -2
  397. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.d.ts +2 -2
  398. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +3 -2
  399. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -1
  400. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -1
  401. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +7 -10
  402. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -0
  403. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +8 -11
  404. package/src/lib/widgets/DynamicWidget/hooks/index.d.ts +1 -0
  405. package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +1 -0
  406. package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +1 -0
  407. package/src/lib/widgets/DynamicWidget/hooks/useViewController/index.d.ts +1 -0
  408. package/src/lib/widgets/DynamicWidget/hooks/useViewController/useViewController.cjs +17 -0
  409. package/src/lib/widgets/DynamicWidget/hooks/useViewController/useViewController.d.ts +6 -0
  410. package/src/lib/widgets/DynamicWidget/hooks/useViewController/useViewController.js +13 -0
  411. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -1
  412. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -1
  413. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -1
  414. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -1
  415. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +4 -4
  416. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +4 -4
  417. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +1 -1
  418. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +1 -1
  419. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +1 -1
  420. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -1
  421. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -2
  422. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -2
  423. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -2
  424. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -2
  425. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -1
  426. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -1
  427. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -2
  428. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -2
  429. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -2
  430. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -2
  431. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +8 -7
  432. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +8 -7
  433. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +4 -4
  434. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +4 -4
  435. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +1 -1
  436. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +1 -1
  437. package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +1 -1
  438. package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +1 -1
  439. package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.cjs +2 -3
  440. package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.js +2 -3
  441. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +4 -4
  442. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +4 -4
  443. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -1
  444. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -1
  445. package/src/lib/widgets/index.d.ts +0 -1
  446. package/src/lib/utils/functions/getRedirectURIOrigin/getRedirectURIOrigin.cjs +0 -33
  447. package/src/lib/utils/functions/getRedirectURIOrigin/getRedirectURIOrigin.js +0 -29
  448. package/src/lib/widgets/OAuthIFrameContainer/OAuthIFrameContainer.cjs +0 -13
  449. package/src/lib/widgets/OAuthIFrameContainer/OAuthIFrameContainer.d.ts +0 -2
  450. package/src/lib/widgets/OAuthIFrameContainer/OAuthIFrameContainer.js +0 -9
  451. package/src/lib/widgets/OAuthIFrameContainer/index.d.ts +0 -1
@@ -0,0 +1,77 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ require('react');
7
+ require('@dynamic-labs/sdk-api');
8
+ require('../../../../../shared/logger.cjs');
9
+ require('@dynamic-labs/iconic');
10
+ require('@dynamic-labs/wallet-connector-core');
11
+ var ViewContext = require('../../../../../context/ViewContext/ViewContext.cjs');
12
+ require('@dynamic-labs/wallet-book');
13
+ require('@dynamic-labs/utils');
14
+ require('../../../../../utils/constants/colors.cjs');
15
+ require('../../../../../shared/utils/classes/storage/localStorage.cjs');
16
+ require('ethers');
17
+ require('../../../../../shared/consts/index.cjs');
18
+ var useInternalDynamicContext = require('../../../../../context/DynamicContext/useInternalDynamicContext.cjs');
19
+ require('@dynamic-labs/multi-wallet');
20
+ var getProviderEnumForSocialSignInProvider = require('../../../../../utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.cjs');
21
+ require('../../../../../config/ApiEndpoint.cjs');
22
+ require('../../../../../components/ShadowDOM/ShadowDOM.cjs');
23
+ require('../../../../../context/ThemeContext/ThemeContext.cjs');
24
+ require('react-dom');
25
+ require('react-focus-lock');
26
+ require('../../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
27
+ require('../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
28
+ require('../../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
29
+ require('@dynamic-labs/rpc-providers');
30
+ require('../../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
31
+ require('../../../../../context/ErrorContext/ErrorContext.cjs');
32
+ require('../../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
33
+ require('../../../../../context/AccountExistsContext/AccountExistsContext.cjs');
34
+ require('../../../../../components/IconButton/IconButton.cjs');
35
+ require('../../../../../components/Alert/Alert.cjs');
36
+ require('formik');
37
+ require('yup');
38
+ require('../../../../CollectUserDataView/fieldsConfig.cjs');
39
+ require('../../../../../context/MockContext/MockContext.cjs');
40
+ require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
41
+ require('../../../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
42
+ require('@dynamic-labs/types');
43
+ var useSocialAuth = require('../../../../../utils/hooks/useSocialAuth/useSocialAuth.cjs');
44
+ require('../../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
45
+ require('../../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
46
+ require('../../../../../components/Popper/Popper/Popper.cjs');
47
+ require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
48
+ require('../../../../../components/InlineWidget/InlineWidget.cjs');
49
+ require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
50
+ var SocialSignIn = require('../../../../../components/SocialSignIn/SocialSignIn.cjs');
51
+ var SocialRedirectContext = require('../../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
52
+
53
+ const DynamicSocialSignIn = ({ defaultProvider, numOfItemsToDisplay, }) => {
54
+ const { setShowAuthFlow } = useInternalDynamicContext.useInternalDynamicContext();
55
+ const { setSocialProvider, socialProvider, enabledSocialProviders } = SocialRedirectContext.useSocialRedirectContext();
56
+ const { setView, goToInitialView } = ViewContext.useViewContext();
57
+ const { isProcessing, connectSocialAccount } = useSocialAuth.useSocialAuth({
58
+ authMode: 'signin',
59
+ onError: () => {
60
+ goToInitialView();
61
+ },
62
+ onSettled: () => {
63
+ setSocialProvider(undefined);
64
+ },
65
+ sessionTimeout: 10000,
66
+ });
67
+ const onSelectProvider = (provider) => {
68
+ const providerEnum = getProviderEnumForSocialSignInProvider.getProviderEnumForSocialSignInProvider(provider);
69
+ setSocialProvider(provider);
70
+ setView('social-redirect-view');
71
+ setShowAuthFlow(true);
72
+ connectSocialAccount(providerEnum);
73
+ };
74
+ return (jsxRuntime.jsx(SocialSignIn.SocialSignIn, { onSelectProvider: onSelectProvider, providers: enabledSocialProviders, selectedProvider: socialProvider, isLoading: isProcessing, testId: 'dynamic-social-sign-in', defaultProvider: defaultProvider, numOfItemsToDisplay: numOfItemsToDisplay }));
75
+ };
76
+
77
+ exports.DynamicSocialSignIn = DynamicSocialSignIn;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SocialSectionProps } from '../../LoginWidget';
3
+ export declare const DynamicSocialSignIn: React.FC<SocialSectionProps>;
@@ -0,0 +1,73 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import 'react';
3
+ import '@dynamic-labs/sdk-api';
4
+ import '../../../../../shared/logger.js';
5
+ import '@dynamic-labs/iconic';
6
+ import '@dynamic-labs/wallet-connector-core';
7
+ import { useViewContext } from '../../../../../context/ViewContext/ViewContext.js';
8
+ import '@dynamic-labs/wallet-book';
9
+ import '@dynamic-labs/utils';
10
+ import '../../../../../utils/constants/colors.js';
11
+ import '../../../../../shared/utils/classes/storage/localStorage.js';
12
+ import 'ethers';
13
+ import '../../../../../shared/consts/index.js';
14
+ import { useInternalDynamicContext } from '../../../../../context/DynamicContext/useInternalDynamicContext.js';
15
+ import '@dynamic-labs/multi-wallet';
16
+ import { getProviderEnumForSocialSignInProvider } from '../../../../../utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.js';
17
+ import '../../../../../config/ApiEndpoint.js';
18
+ import '../../../../../components/ShadowDOM/ShadowDOM.js';
19
+ import '../../../../../context/ThemeContext/ThemeContext.js';
20
+ import 'react-dom';
21
+ import 'react-focus-lock';
22
+ import '../../../../../components/Transition/ZoomTransition/ZoomTransition.js';
23
+ import '../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
24
+ import '../../../../../components/Transition/OpacityTransition/OpacityTransition.js';
25
+ import '@dynamic-labs/rpc-providers';
26
+ import '../../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
27
+ import '../../../../../context/ErrorContext/ErrorContext.js';
28
+ import '../../../../../context/AccessDeniedContext/AccessDeniedContext.js';
29
+ import '../../../../../context/AccountExistsContext/AccountExistsContext.js';
30
+ import '../../../../../components/IconButton/IconButton.js';
31
+ import '../../../../../components/Alert/Alert.js';
32
+ import 'formik';
33
+ import 'yup';
34
+ import '../../../../CollectUserDataView/fieldsConfig.js';
35
+ import '../../../../../context/MockContext/MockContext.js';
36
+ import '../../../../../context/CaptchaContext/CaptchaContext.js';
37
+ import '../../../../../context/EmailVerificationContext/EmailVerificationContext.js';
38
+ import '@dynamic-labs/types';
39
+ import { useSocialAuth } from '../../../../../utils/hooks/useSocialAuth/useSocialAuth.js';
40
+ import '../../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
41
+ import '../../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
42
+ import '../../../../../components/Popper/Popper/Popper.js';
43
+ import '../../../../../components/Popper/PopperContext/PopperContext.js';
44
+ import '../../../../../components/InlineWidget/InlineWidget.js';
45
+ import '../../../../../components/MenuList/Dropdown/Dropdown.js';
46
+ import { SocialSignIn } from '../../../../../components/SocialSignIn/SocialSignIn.js';
47
+ import { useSocialRedirectContext } from '../../../../../context/SocialRedirectContext/SocialRedirectContext.js';
48
+
49
+ const DynamicSocialSignIn = ({ defaultProvider, numOfItemsToDisplay, }) => {
50
+ const { setShowAuthFlow } = useInternalDynamicContext();
51
+ const { setSocialProvider, socialProvider, enabledSocialProviders } = useSocialRedirectContext();
52
+ const { setView, goToInitialView } = useViewContext();
53
+ const { isProcessing, connectSocialAccount } = useSocialAuth({
54
+ authMode: 'signin',
55
+ onError: () => {
56
+ goToInitialView();
57
+ },
58
+ onSettled: () => {
59
+ setSocialProvider(undefined);
60
+ },
61
+ sessionTimeout: 10000,
62
+ });
63
+ const onSelectProvider = (provider) => {
64
+ const providerEnum = getProviderEnumForSocialSignInProvider(provider);
65
+ setSocialProvider(provider);
66
+ setView('social-redirect-view');
67
+ setShowAuthFlow(true);
68
+ connectSocialAccount(providerEnum);
69
+ };
70
+ return (jsx(SocialSignIn, { onSelectProvider: onSelectProvider, providers: enabledSocialProviders, selectedProvider: socialProvider, isLoading: isProcessing, testId: 'dynamic-social-sign-in', defaultProvider: defaultProvider, numOfItemsToDisplay: numOfItemsToDisplay }));
71
+ };
72
+
73
+ export { DynamicSocialSignIn };
@@ -0,0 +1 @@
1
+ export * from './DynamicSocialSignIn';
@@ -18,6 +18,7 @@ require('ethers');
18
18
  require('../../../../../shared/consts/index.cjs');
19
19
  var useInternalDynamicContext = require('../../../../../context/DynamicContext/useInternalDynamicContext.cjs');
20
20
  require('@dynamic-labs/multi-wallet');
21
+ require('../../../../../config/ApiEndpoint.cjs');
21
22
  require('../../../../../components/ShadowDOM/ShadowDOM.cjs');
22
23
  require('../../../../../context/ThemeContext/ThemeContext.cjs');
23
24
  require('react-dom');
@@ -25,7 +26,6 @@ require('react-focus-lock');
25
26
  require('../../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
26
27
  require('../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
27
28
  require('../../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
28
- require('../../../../../config/ApiEndpoint.cjs');
29
29
  require('@dynamic-labs/rpc-providers');
30
30
  require('../../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
31
31
  require('../../../../../context/ErrorContext/ErrorContext.cjs');
@@ -50,15 +50,16 @@ require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
50
50
  var SocialSignIn = require('../../../../../components/SocialSignIn/SocialSignIn.cjs');
51
51
  var SocialRedirectContext = require('../../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
52
52
 
53
- const MagicSocialSignIn = () => {
53
+ const MagicSocialSignIn = ({ defaultProvider, numOfItemsToDisplay, }) => {
54
54
  const { socialProvidersFilter = (providers) => providers } = useInternalDynamicContext.useInternalDynamicContext();
55
55
  const { socialProvider, setSocialProvider, socialWalletConnector, enabledSocialProviders, } = SocialRedirectContext.useSocialRedirectContext();
56
56
  const socialProviders = socialProvidersFilter(enabledSocialProviders);
57
57
  const { mutate: onClickProvider, isLoading } = useMutation.useMutation((provider) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
58
+ setSocialProvider(provider);
58
59
  yield (socialWalletConnector === null || socialWalletConnector === void 0 ? void 0 : socialWalletConnector.endSession());
59
60
  return socialWalletConnector === null || socialWalletConnector === void 0 ? void 0 : socialWalletConnector.connect(provider);
60
61
  }));
61
- return (jsxRuntime.jsx(SocialSignIn.SocialSignIn, { onClick: onClickProvider, providers: socialProviders, selectedProvider: socialProvider, setSelectedProvider: setSocialProvider, isLoading: isLoading, testId: 'magic-social-sign-in' }));
62
+ return (jsxRuntime.jsx(SocialSignIn.SocialSignIn, { onSelectProvider: onClickProvider, providers: socialProviders, selectedProvider: socialProvider, isLoading: isLoading, testId: 'magic-social-sign-in', defaultProvider: defaultProvider, numOfItemsToDisplay: numOfItemsToDisplay }));
62
63
  };
63
64
 
64
65
  exports.MagicSocialSignIn = MagicSocialSignIn;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const MagicSocialSignIn: () => JSX.Element;
2
+ import { SocialSectionProps } from '../../LoginWidget';
3
+ export declare const MagicSocialSignIn: React.FC<SocialSectionProps>;
@@ -14,6 +14,7 @@ import 'ethers';
14
14
  import '../../../../../shared/consts/index.js';
15
15
  import { useInternalDynamicContext } from '../../../../../context/DynamicContext/useInternalDynamicContext.js';
16
16
  import '@dynamic-labs/multi-wallet';
17
+ import '../../../../../config/ApiEndpoint.js';
17
18
  import '../../../../../components/ShadowDOM/ShadowDOM.js';
18
19
  import '../../../../../context/ThemeContext/ThemeContext.js';
19
20
  import 'react-dom';
@@ -21,7 +22,6 @@ import 'react-focus-lock';
21
22
  import '../../../../../components/Transition/ZoomTransition/ZoomTransition.js';
22
23
  import '../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
23
24
  import '../../../../../components/Transition/OpacityTransition/OpacityTransition.js';
24
- import '../../../../../config/ApiEndpoint.js';
25
25
  import '@dynamic-labs/rpc-providers';
26
26
  import '../../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
27
27
  import '../../../../../context/ErrorContext/ErrorContext.js';
@@ -46,15 +46,16 @@ import '../../../../../components/MenuList/Dropdown/Dropdown.js';
46
46
  import { SocialSignIn } from '../../../../../components/SocialSignIn/SocialSignIn.js';
47
47
  import { useSocialRedirectContext } from '../../../../../context/SocialRedirectContext/SocialRedirectContext.js';
48
48
 
49
- const MagicSocialSignIn = () => {
49
+ const MagicSocialSignIn = ({ defaultProvider, numOfItemsToDisplay, }) => {
50
50
  const { socialProvidersFilter = (providers) => providers } = useInternalDynamicContext();
51
51
  const { socialProvider, setSocialProvider, socialWalletConnector, enabledSocialProviders, } = useSocialRedirectContext();
52
52
  const socialProviders = socialProvidersFilter(enabledSocialProviders);
53
53
  const { mutate: onClickProvider, isLoading } = useMutation((provider) => __awaiter(void 0, void 0, void 0, function* () {
54
+ setSocialProvider(provider);
54
55
  yield (socialWalletConnector === null || socialWalletConnector === void 0 ? void 0 : socialWalletConnector.endSession());
55
56
  return socialWalletConnector === null || socialWalletConnector === void 0 ? void 0 : socialWalletConnector.connect(provider);
56
57
  }));
57
- return (jsx(SocialSignIn, { onClick: onClickProvider, providers: socialProviders, selectedProvider: socialProvider, setSelectedProvider: setSocialProvider, isLoading: isLoading, testId: 'magic-social-sign-in' }));
58
+ return (jsx(SocialSignIn, { onSelectProvider: onClickProvider, providers: socialProviders, selectedProvider: socialProvider, isLoading: isLoading, testId: 'magic-social-sign-in', defaultProvider: defaultProvider, numOfItemsToDisplay: numOfItemsToDisplay }));
58
59
  };
59
60
 
60
61
  export { MagicSocialSignIn };
@@ -18,16 +18,31 @@ require('ethers');
18
18
  require('../../../../shared/consts/index.cjs');
19
19
  require('@dynamic-labs/multi-wallet');
20
20
  var isProviderEnabled = require('../../../../utils/functions/isProviderEnabled/isProviderEnabled.cjs');
21
+ var getSocialSignInProviderFromString = require('../../../../utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.cjs');
22
+ require('../../../../config/ApiEndpoint.cjs');
21
23
  var MagicSocialSignIn = require('./MagicSocialSignIn/MagicSocialSignIn.cjs');
24
+ var DynamicSocialSignIn = require('./DynamicSocialSignIn/DynamicSocialSignIn.cjs');
22
25
 
23
- const SocialSignInSection = () => {
24
- var _a, _b;
26
+ const SocialSignInSection = ({ sectionData }) => {
27
+ var _a, _b, _c;
25
28
  const { projectSettings } = useInternalDynamicContext.useInternalDynamicContext();
26
- const isMagicEnabled = isProviderEnabled.isProviderEnabled((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) !== null && _a !== void 0 ? _a : [], sdkApi.ProviderEnum.MagicLink);
29
+ const providers = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) !== null && _a !== void 0 ? _a : [];
30
+ const componentProps = {
31
+ defaultProvider: getSocialSignInProviderFromString.getSocialSignInProviderFromString(sectionData.defaultItem),
32
+ numOfItemsToDisplay: sectionData.numOfItemsToDisplay,
33
+ };
34
+ const isMagicEnabled = isProviderEnabled.isProviderEnabled(providers, sdkApi.ProviderEnum.MagicLink);
35
+ const isDynamicEnabled = isProviderEnabled.isProviderEnabled(providers, sdkApi.ProviderEnum.Dynamic) ||
36
+ isProviderEnabled.isProviderEnabled(providers, sdkApi.ProviderEnum.EmailOnly);
27
37
  if (isMagicEnabled &&
28
38
  ((_b = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.socialSignIn) === null || _b === void 0 ? void 0 : _b.signInProvider) ===
29
39
  sdkApi.SignInProviderEnum.MagicLink) {
30
- return jsxRuntime.jsx(MagicSocialSignIn.MagicSocialSignIn, {});
40
+ return jsxRuntime.jsx(MagicSocialSignIn.MagicSocialSignIn, Object.assign({}, componentProps));
41
+ }
42
+ if (isDynamicEnabled &&
43
+ ((_c = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.socialSignIn) === null || _c === void 0 ? void 0 : _c.signInProvider) ===
44
+ sdkApi.SignInProviderEnum.Dynamic) {
45
+ return jsxRuntime.jsx(DynamicSocialSignIn.DynamicSocialSignIn, Object.assign({}, componentProps));
31
46
  }
32
47
  return null;
33
48
  };
@@ -1,2 +1,7 @@
1
1
  /// <reference types="react" />
2
- export declare const SocialSignInSection: () => JSX.Element | null;
2
+ import { SdkViewSection } from '@dynamic-labs/sdk-api';
3
+ type Props = {
4
+ sectionData: SdkViewSection;
5
+ };
6
+ export declare const SocialSignInSection: ({ sectionData }: Props) => JSX.Element | null;
7
+ export {};
@@ -14,16 +14,31 @@ import 'ethers';
14
14
  import '../../../../shared/consts/index.js';
15
15
  import '@dynamic-labs/multi-wallet';
16
16
  import { isProviderEnabled } from '../../../../utils/functions/isProviderEnabled/isProviderEnabled.js';
17
+ import { getSocialSignInProviderFromString } from '../../../../utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.js';
18
+ import '../../../../config/ApiEndpoint.js';
17
19
  import { MagicSocialSignIn } from './MagicSocialSignIn/MagicSocialSignIn.js';
20
+ import { DynamicSocialSignIn } from './DynamicSocialSignIn/DynamicSocialSignIn.js';
18
21
 
19
- const SocialSignInSection = () => {
20
- var _a, _b;
22
+ const SocialSignInSection = ({ sectionData }) => {
23
+ var _a, _b, _c;
21
24
  const { projectSettings } = useInternalDynamicContext();
22
- const isMagicEnabled = isProviderEnabled((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) !== null && _a !== void 0 ? _a : [], ProviderEnum.MagicLink);
25
+ const providers = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) !== null && _a !== void 0 ? _a : [];
26
+ const componentProps = {
27
+ defaultProvider: getSocialSignInProviderFromString(sectionData.defaultItem),
28
+ numOfItemsToDisplay: sectionData.numOfItemsToDisplay,
29
+ };
30
+ const isMagicEnabled = isProviderEnabled(providers, ProviderEnum.MagicLink);
31
+ const isDynamicEnabled = isProviderEnabled(providers, ProviderEnum.Dynamic) ||
32
+ isProviderEnabled(providers, ProviderEnum.EmailOnly);
23
33
  if (isMagicEnabled &&
24
34
  ((_b = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.socialSignIn) === null || _b === void 0 ? void 0 : _b.signInProvider) ===
25
35
  SignInProviderEnum.MagicLink) {
26
- return jsx(MagicSocialSignIn, {});
36
+ return jsx(MagicSocialSignIn, Object.assign({}, componentProps));
37
+ }
38
+ if (isDynamicEnabled &&
39
+ ((_c = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.socialSignIn) === null || _c === void 0 ? void 0 : _c.signInProvider) ===
40
+ SignInProviderEnum.Dynamic) {
41
+ return jsx(DynamicSocialSignIn, Object.assign({}, componentProps));
27
42
  }
28
43
  return null;
29
44
  };
@@ -19,6 +19,7 @@ require('ethers');
19
19
  require('../../../../../shared/consts/index.cjs');
20
20
  require('../../../../../context/DynamicContext/DynamicContext.cjs');
21
21
  require('@dynamic-labs/multi-wallet');
22
+ require('../../../../../config/ApiEndpoint.cjs');
22
23
  require('../../../../../components/ShadowDOM/ShadowDOM.cjs');
23
24
  require('../../../../../context/ThemeContext/ThemeContext.cjs');
24
25
  var Icon = require('../../../../../components/Icon/Icon.cjs');
@@ -27,7 +28,6 @@ require('react-focus-lock');
27
28
  require('../../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
28
29
  require('../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
29
30
  require('../../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
30
- require('../../../../../config/ApiEndpoint.cjs');
31
31
  require('@dynamic-labs/rpc-providers');
32
32
  require('../../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
33
33
  require('../../../../../context/ErrorContext/ErrorContext.cjs');
@@ -15,6 +15,7 @@ import 'ethers';
15
15
  import '../../../../../shared/consts/index.js';
16
16
  import '../../../../../context/DynamicContext/DynamicContext.js';
17
17
  import '@dynamic-labs/multi-wallet';
18
+ import '../../../../../config/ApiEndpoint.js';
18
19
  import '../../../../../components/ShadowDOM/ShadowDOM.js';
19
20
  import '../../../../../context/ThemeContext/ThemeContext.js';
20
21
  import { Icon } from '../../../../../components/Icon/Icon.js';
@@ -23,7 +24,6 @@ import 'react-focus-lock';
23
24
  import '../../../../../components/Transition/ZoomTransition/ZoomTransition.js';
24
25
  import '../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
25
26
  import '../../../../../components/Transition/OpacityTransition/OpacityTransition.js';
26
- import '../../../../../config/ApiEndpoint.js';
27
27
  import '@dynamic-labs/rpc-providers';
28
28
  import '../../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
29
29
  import '../../../../../context/ErrorContext/ErrorContext.js';
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var reactI18next = require('react-i18next');
7
7
  require('react');
8
+ var Typography = require('../../../../components/Typography/Typography.cjs');
8
9
  require('@dynamic-labs/sdk-api');
9
10
  require('../../../../shared/logger.cjs');
10
11
  require('@dynamic-labs/iconic');
@@ -18,6 +19,7 @@ require('ethers');
18
19
  require('../../../../shared/consts/index.cjs');
19
20
  require('../../../../context/DynamicContext/DynamicContext.cjs');
20
21
  require('@dynamic-labs/multi-wallet');
22
+ require('../../../../config/ApiEndpoint.cjs');
21
23
  require('../../../../components/ShadowDOM/ShadowDOM.cjs');
22
24
  require('../../../../context/ThemeContext/ThemeContext.cjs');
23
25
  require('react-dom');
@@ -25,14 +27,12 @@ require('react-focus-lock');
25
27
  require('../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
26
28
  require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
27
29
  require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
28
- require('../../../../config/ApiEndpoint.cjs');
29
30
  require('@dynamic-labs/rpc-providers');
30
31
  require('../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
31
32
  require('../../../../context/ErrorContext/ErrorContext.cjs');
32
33
  require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
33
34
  require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
34
35
  require('../../../../components/IconButton/IconButton.cjs');
35
- var Button = require('../../../../components/Button/Button.cjs');
36
36
  require('../../../../components/Alert/Alert.cjs');
37
37
  require('formik');
38
38
  require('yup');
@@ -43,6 +43,7 @@ require('../../../../context/EmailVerificationContext/EmailVerificationContext.c
43
43
  require('@dynamic-labs/types');
44
44
  require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
45
45
  require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
46
+ var IconListTile = require('../../../../components/IconListTile/IconListTile.cjs');
46
47
  require('../../../../components/Popper/Popper/Popper.cjs');
47
48
  require('../../../../components/Popper/PopperContext/PopperContext.cjs');
48
49
  require('../../../../components/InlineWidget/InlineWidget.cjs');
@@ -52,7 +53,7 @@ var WalletSimpleSignIn = require('./WalletSimpleSignIn/WalletSimpleSignIn.cjs');
52
53
 
53
54
  const WalletSignInSection = ({ numberOfItensToShow, isLoading, onSubmit, }) => {
54
55
  const { t } = reactI18next.useTranslation();
55
- return numberOfItensToShow > 0 ? (jsxRuntime.jsx(WalletSimpleSignIn.WalletSimpleSignIn, { previewWalletsNumber: numberOfItensToShow, onshowAllWallets: () => onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(), disabled: isLoading })) : (jsxRuntime.jsx(Button.Button, Object.assign({ disabled: isLoading, onClick: () => onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(), buttonVariant: 'primary', buttonPadding: 'large' }, { children: t('dyn_login.wallet_list.button_only') })));
56
+ return numberOfItensToShow > 0 ? (jsxRuntime.jsx(WalletSimpleSignIn.WalletSimpleSignIn, { previewWalletsNumber: numberOfItensToShow, onshowAllWallets: () => onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(), disabled: isLoading })) : (jsxRuntime.jsx(IconListTile.IconListTile, Object.assign({ onClick: () => onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(), disabled: isLoading, className: 'connect-with-wallet-button' }, { children: jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'button_primary' }, { children: t('dyn_login.wallet_list.button_only') })) })));
56
57
  };
57
58
 
58
59
  exports.WalletSignInSection = WalletSignInSection;
@@ -1,6 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import 'react';
4
+ import { Typography } from '../../../../components/Typography/Typography.js';
4
5
  import '@dynamic-labs/sdk-api';
5
6
  import '../../../../shared/logger.js';
6
7
  import '@dynamic-labs/iconic';
@@ -14,6 +15,7 @@ import 'ethers';
14
15
  import '../../../../shared/consts/index.js';
15
16
  import '../../../../context/DynamicContext/DynamicContext.js';
16
17
  import '@dynamic-labs/multi-wallet';
18
+ import '../../../../config/ApiEndpoint.js';
17
19
  import '../../../../components/ShadowDOM/ShadowDOM.js';
18
20
  import '../../../../context/ThemeContext/ThemeContext.js';
19
21
  import 'react-dom';
@@ -21,14 +23,12 @@ import 'react-focus-lock';
21
23
  import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
22
24
  import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
23
25
  import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
24
- import '../../../../config/ApiEndpoint.js';
25
26
  import '@dynamic-labs/rpc-providers';
26
27
  import '../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
27
28
  import '../../../../context/ErrorContext/ErrorContext.js';
28
29
  import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
29
30
  import '../../../../context/AccountExistsContext/AccountExistsContext.js';
30
31
  import '../../../../components/IconButton/IconButton.js';
31
- import { Button } from '../../../../components/Button/Button.js';
32
32
  import '../../../../components/Alert/Alert.js';
33
33
  import 'formik';
34
34
  import 'yup';
@@ -39,6 +39,7 @@ import '../../../../context/EmailVerificationContext/EmailVerificationContext.js
39
39
  import '@dynamic-labs/types';
40
40
  import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
41
41
  import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
42
+ import { IconListTile } from '../../../../components/IconListTile/IconListTile.js';
42
43
  import '../../../../components/Popper/Popper/Popper.js';
43
44
  import '../../../../components/Popper/PopperContext/PopperContext.js';
44
45
  import '../../../../components/InlineWidget/InlineWidget.js';
@@ -48,7 +49,7 @@ import { WalletSimpleSignIn } from './WalletSimpleSignIn/WalletSimpleSignIn.js';
48
49
 
49
50
  const WalletSignInSection = ({ numberOfItensToShow, isLoading, onSubmit, }) => {
50
51
  const { t } = useTranslation();
51
- return numberOfItensToShow > 0 ? (jsx(WalletSimpleSignIn, { previewWalletsNumber: numberOfItensToShow, onshowAllWallets: () => onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(), disabled: isLoading })) : (jsx(Button, Object.assign({ disabled: isLoading, onClick: () => onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(), buttonVariant: 'primary', buttonPadding: 'large' }, { children: t('dyn_login.wallet_list.button_only') })));
52
+ return numberOfItensToShow > 0 ? (jsx(WalletSimpleSignIn, { previewWalletsNumber: numberOfItensToShow, onshowAllWallets: () => onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(), disabled: isLoading })) : (jsx(IconListTile, Object.assign({ onClick: () => onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(), disabled: isLoading, className: 'connect-with-wallet-button' }, { children: jsx(Typography, Object.assign({ variant: 'button_primary' }, { children: t('dyn_login.wallet_list.button_only') })) })));
52
53
  };
53
54
 
54
55
  export { WalletSignInSection };
@@ -39,17 +39,19 @@ const useLoginView = () => {
39
39
  type: sdkApi.SdkViewSectionType.Email,
40
40
  },
41
41
  ];
42
- const numOfProvidersToDisplay = (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.socialSignIn) === null || _a === void 0 ? void 0 : _a.providers) === null || _b === void 0 ? void 0 : _b.filter((provider) => provider.enabled).length;
43
- if (numOfProvidersToDisplay) {
42
+ const enabledProviders = (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.socialSignIn) === null || _a === void 0 ? void 0 : _a.providers) === null || _b === void 0 ? void 0 : _b.filter((provider) => provider.enabled);
43
+ if (enabledProviders === null || enabledProviders === void 0 ? void 0 : enabledProviders.length) {
44
44
  loginViewSections.push({
45
- numOfItemsToDisplay: numOfProvidersToDisplay,
45
+ numOfItemsToDisplay: 5,
46
46
  type: sdkApi.SdkViewSectionType.Social,
47
47
  });
48
48
  if ((_c = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) === null || _c === void 0 ? void 0 : _c.splitEmailAndSocial) {
49
49
  loginViewSections.splice(1, 0, {
50
- label: t('dyn_login.separators.email_or_social'),
50
+ label: t('dyn_login.separators.default'),
51
51
  type: sdkApi.SdkViewSectionType.Separator,
52
52
  });
53
+ loginViewSections[loginViewSections.length - 1].defaultItem =
54
+ enabledProviders[0].provider;
53
55
  }
54
56
  }
55
57
  if ((_d = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) === null || _d === void 0 ? void 0 : _d.socialAboveEmail) {
@@ -79,12 +81,9 @@ const useLoginView = () => {
79
81
  !((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) === null || _a === void 0 ? void 0 : _a.length)) {
80
82
  return [];
81
83
  }
82
- const label = loginItem === 'email'
83
- ? t('dyn_login.separators.email_or_wallets')
84
- : t('dyn_login.separators.wallets_or_email');
85
84
  return [
86
85
  {
87
- label,
86
+ label: t('dyn_login.separators.default'),
88
87
  type: sdkApi.SdkViewSectionType.Separator,
89
88
  },
90
89
  ];
@@ -100,7 +99,7 @@ const useLoginView = () => {
100
99
  if (loginItem === 'email' && ((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) === null || _a === void 0 ? void 0 : _a.length)) {
101
100
  loginViewSections = loginViewSections.concat(getEmailViewSectionDefinition(),
102
101
  // add separator if wallets defined
103
- addSeparator(index, loginItem));
102
+ addSeparator(index));
104
103
  }
105
104
  if (loginItem === 'wallet' && (wallets === null || wallets === void 0 ? void 0 : wallets.length)) {
106
105
  // if showWalletsButton is true, it should show "Connec with Wallet" button
@@ -114,7 +113,7 @@ const useLoginView = () => {
114
113
  },
115
114
  ],
116
115
  // add separator if email providers defined
117
- addSeparator(index, loginItem));
116
+ addSeparator(index));
118
117
  }
119
118
  });
120
119
  return loginViewSections;
@@ -35,17 +35,19 @@ const useLoginView = () => {
35
35
  type: SdkViewSectionType.Email,
36
36
  },
37
37
  ];
38
- const numOfProvidersToDisplay = (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.socialSignIn) === null || _a === void 0 ? void 0 : _a.providers) === null || _b === void 0 ? void 0 : _b.filter((provider) => provider.enabled).length;
39
- if (numOfProvidersToDisplay) {
38
+ const enabledProviders = (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.socialSignIn) === null || _a === void 0 ? void 0 : _a.providers) === null || _b === void 0 ? void 0 : _b.filter((provider) => provider.enabled);
39
+ if (enabledProviders === null || enabledProviders === void 0 ? void 0 : enabledProviders.length) {
40
40
  loginViewSections.push({
41
- numOfItemsToDisplay: numOfProvidersToDisplay,
41
+ numOfItemsToDisplay: 5,
42
42
  type: SdkViewSectionType.Social,
43
43
  });
44
44
  if ((_c = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) === null || _c === void 0 ? void 0 : _c.splitEmailAndSocial) {
45
45
  loginViewSections.splice(1, 0, {
46
- label: t('dyn_login.separators.email_or_social'),
46
+ label: t('dyn_login.separators.default'),
47
47
  type: SdkViewSectionType.Separator,
48
48
  });
49
+ loginViewSections[loginViewSections.length - 1].defaultItem =
50
+ enabledProviders[0].provider;
49
51
  }
50
52
  }
51
53
  if ((_d = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) === null || _d === void 0 ? void 0 : _d.socialAboveEmail) {
@@ -75,12 +77,9 @@ const useLoginView = () => {
75
77
  !((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) === null || _a === void 0 ? void 0 : _a.length)) {
76
78
  return [];
77
79
  }
78
- const label = loginItem === 'email'
79
- ? t('dyn_login.separators.email_or_wallets')
80
- : t('dyn_login.separators.wallets_or_email');
81
80
  return [
82
81
  {
83
- label,
82
+ label: t('dyn_login.separators.default'),
84
83
  type: SdkViewSectionType.Separator,
85
84
  },
86
85
  ];
@@ -96,7 +95,7 @@ const useLoginView = () => {
96
95
  if (loginItem === 'email' && ((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) === null || _a === void 0 ? void 0 : _a.length)) {
97
96
  loginViewSections = loginViewSections.concat(getEmailViewSectionDefinition(),
98
97
  // add separator if wallets defined
99
- addSeparator(index, loginItem));
98
+ addSeparator(index));
100
99
  }
101
100
  if (loginItem === 'wallet' && (wallets === null || wallets === void 0 ? void 0 : wallets.length)) {
102
101
  // if showWalletsButton is true, it should show "Connec with Wallet" button
@@ -110,7 +109,7 @@ const useLoginView = () => {
110
109
  },
111
110
  ],
112
111
  // add separator if email providers defined
113
- addSeparator(index, loginItem));
112
+ addSeparator(index));
114
113
  }
115
114
  });
116
115
  return loginViewSections;
@@ -24,6 +24,7 @@ var index = require('../../utils/functions/storeAuthToken/index.cjs');
24
24
  require('@dynamic-labs/multi-wallet');
25
25
  var createUserProfile = require('../../utils/functions/createUserProfile/createUserProfile.cjs');
26
26
  require('@dynamic-labs/sdk-api');
27
+ require('../../config/ApiEndpoint.cjs');
27
28
  require('../../components/ShadowDOM/ShadowDOM.cjs');
28
29
  require('../../context/ThemeContext/ThemeContext.cjs');
29
30
  var Icon = require('../../components/Icon/Icon.cjs');
@@ -103,7 +104,7 @@ const MergeUserAccountsView = () => {
103
104
  }
104
105
  setView('collect-user-data');
105
106
  };
106
- return (jsxRuntime.jsxs("div", Object.assign({ className: 'merge-user-accounts__container' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts__item' }, { children: [jsxRuntime.jsx(walletBook.WalletIcon, { walletName: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name, className: 'merge-user-accounts__accounts__item__icon' }), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts__accounts__item__text' }, { children: shortenWalletAddress.shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) }))] })), jsxRuntime.jsx("div", Object.assign({ className: 'merge-user-accounts__accounts__divider' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'text-secondary', size: 'small' }, { children: jsxRuntime.jsx(doubleArrowRight.ReactComponent, {}) })) })), jsxRuntime.jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts__item' }, { children: [jsxRuntime.jsx(iconic.UserProfileIcon, { className: 'merge-user-accounts__accounts__item__icon' }), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts__accounts__item__text' }, { children: shortenEmail.shortenEmail(email, {
107
+ return (jsxRuntime.jsxs("div", Object.assign({ className: 'merge-user-accounts__container' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts__item' }, { children: [jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.key, className: 'merge-user-accounts__accounts__item__icon' }), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts__accounts__item__text' }, { children: shortenWalletAddress.shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) }))] })), jsxRuntime.jsx("div", Object.assign({ className: 'merge-user-accounts__accounts__divider' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'text-secondary', size: 'small' }, { children: jsxRuntime.jsx(doubleArrowRight.ReactComponent, {}) })) })), jsxRuntime.jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts__item' }, { children: [jsxRuntime.jsx(iconic.UserProfileIcon, { className: 'merge-user-accounts__accounts__item__icon' }), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts__accounts__item__text' }, { children: shortenEmail.shortenEmail(email, {
107
108
  breakpoint: 4,
108
109
  cutEnd: 1,
109
110
  cutStart: 2,
@@ -20,6 +20,7 @@ import { storeAuthToken } from '../../utils/functions/storeAuthToken/index.js';
20
20
  import '@dynamic-labs/multi-wallet';
21
21
  import { createUserProfile } from '../../utils/functions/createUserProfile/createUserProfile.js';
22
22
  import '@dynamic-labs/sdk-api';
23
+ import '../../config/ApiEndpoint.js';
23
24
  import '../../components/ShadowDOM/ShadowDOM.js';
24
25
  import '../../context/ThemeContext/ThemeContext.js';
25
26
  import { Icon } from '../../components/Icon/Icon.js';
@@ -99,7 +100,7 @@ const MergeUserAccountsView = () => {
99
100
  }
100
101
  setView('collect-user-data');
101
102
  };
102
- return (jsxs("div", Object.assign({ className: 'merge-user-accounts__container' }, { children: [jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts' }, { children: [jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts__item' }, { children: [jsx(WalletIcon, { walletName: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name, className: 'merge-user-accounts__accounts__item__icon' }), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts__accounts__item__text' }, { children: shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) }))] })), jsx("div", Object.assign({ className: 'merge-user-accounts__accounts__divider' }, { children: jsx(Icon, Object.assign({ color: 'text-secondary', size: 'small' }, { children: jsx(SvgDoubleArrowRight, {}) })) })), jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts__item' }, { children: [jsx(UserProfileIcon, { className: 'merge-user-accounts__accounts__item__icon' }), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts__accounts__item__text' }, { children: shortenEmail(email, {
103
+ return (jsxs("div", Object.assign({ className: 'merge-user-accounts__container' }, { children: [jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts' }, { children: [jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts__item' }, { children: [jsx(WalletIcon, { walletKey: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.key, className: 'merge-user-accounts__accounts__item__icon' }), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts__accounts__item__text' }, { children: shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) }))] })), jsx("div", Object.assign({ className: 'merge-user-accounts__accounts__divider' }, { children: jsx(Icon, Object.assign({ color: 'text-secondary', size: 'small' }, { children: jsx(SvgDoubleArrowRight, {}) })) })), jsxs("div", Object.assign({ className: 'merge-user-accounts__accounts__item' }, { children: [jsx(UserProfileIcon, { className: 'merge-user-accounts__accounts__item__icon' }), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts__accounts__item__text' }, { children: shortenEmail(email, {
103
104
  breakpoint: 4,
104
105
  cutEnd: 1,
105
106
  cutStart: 2,