@dynamic-labs/sdk-react-core 0.19.0-alpha.6 → 0.19.0-alpha.8

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 (433) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/package.cjs +8 -6
  3. package/package.js +8 -6
  4. package/package.json +15 -13
  5. package/src/index.cjs +3 -0
  6. package/src/index.d.ts +1 -1
  7. package/src/index.js +2 -0
  8. package/src/lib/Main.cjs +2 -0
  9. package/src/lib/Main.js +2 -0
  10. package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -0
  11. package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +1 -0
  12. package/src/lib/components/AnimatePresence/AnimatePresence.cjs +1 -0
  13. package/src/lib/components/AnimatePresence/AnimatePresence.js +1 -0
  14. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +3 -2
  15. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +3 -2
  16. package/src/lib/components/Divider/Divider.cjs +1 -0
  17. package/src/lib/components/Divider/Divider.js +1 -0
  18. package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +3 -2
  19. package/src/lib/components/IconWithSpinner/IconWithSpinner.d.ts +4 -2
  20. package/src/lib/components/IconWithSpinner/IconWithSpinner.js +3 -2
  21. package/src/lib/components/IconWithStatus/IconWithStatus.cjs +3 -3
  22. package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +2 -2
  23. package/src/lib/components/IconWithStatus/IconWithStatus.js +3 -3
  24. package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +1 -0
  25. package/src/lib/components/MenuList/Dropdown/Dropdown.js +1 -0
  26. package/src/lib/components/MockedQrCode/MockedQrCode.cjs +1 -1
  27. package/src/lib/components/MockedQrCode/MockedQrCode.js +1 -1
  28. package/src/lib/components/Modal/Modal.cjs +1 -0
  29. package/src/lib/components/Modal/Modal.js +1 -0
  30. package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -0
  31. package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -0
  32. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +1 -0
  33. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +1 -0
  34. package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -0
  35. package/src/lib/components/NetworkPicker/components/Network/Network.d.ts +0 -1
  36. package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -0
  37. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -0
  38. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -0
  39. package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +9 -3
  40. package/src/lib/components/OTPVerificationView/OTPVerificationView.js +9 -3
  41. package/src/lib/components/OverlayCard/OverlayCard.cjs +1 -1
  42. package/src/lib/components/OverlayCard/OverlayCard.js +1 -1
  43. package/src/lib/components/Portal/Portal.cjs +1 -0
  44. package/src/lib/components/Portal/Portal.js +1 -0
  45. package/src/lib/components/Search/Search.d.ts +0 -1
  46. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +2 -2
  47. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +1 -1
  48. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +2 -2
  49. package/src/lib/components/SocialSignIn/SocialSignIn.cjs +98 -0
  50. package/src/lib/components/SocialSignIn/SocialSignIn.d.ts +12 -0
  51. package/src/lib/components/SocialSignIn/SocialSignIn.js +94 -0
  52. package/src/lib/components/Switch/Switch.d.ts +0 -1
  53. package/src/lib/components/Toolkit/components/AuthModeSwitch.d.ts +0 -1
  54. package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.d.ts +0 -1
  55. package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.d.ts +0 -1
  56. package/src/lib/components/Toolkit/components/MultiWalletSwitch.d.ts +0 -1
  57. package/src/lib/components/Toolkit/components/TemplateSelect.d.ts +0 -1
  58. package/src/lib/components/Toolkit/components/ThemeSwitch.d.ts +0 -1
  59. package/src/lib/components/Tooltip/Tooltip.cjs +1 -0
  60. package/src/lib/components/Tooltip/Tooltip.js +1 -0
  61. package/src/lib/components/TosAndPp/TosAndPp.d.ts +0 -1
  62. package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +1 -1
  63. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -0
  64. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -0
  65. package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +1 -0
  66. package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +1 -0
  67. package/src/lib/components/UserAddress/UserAddress.cjs +1 -0
  68. package/src/lib/components/UserAddress/UserAddress.js +1 -0
  69. package/src/lib/components/UserProfile/UserProfile.cjs +4 -1
  70. package/src/lib/components/UserProfile/UserProfile.js +4 -1
  71. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +1 -0
  72. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -0
  73. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -0
  74. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -0
  75. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +16 -13
  76. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +16 -13
  77. package/src/lib/components/index.d.ts +1 -0
  78. package/src/lib/context/DynamicContext/DynamicContext.cjs +36 -18
  79. package/src/lib/context/DynamicContext/DynamicContext.d.ts +14 -2
  80. package/src/lib/context/DynamicContext/DynamicContext.js +36 -18
  81. package/src/lib/context/DynamicContext/helpers.cjs +42 -3
  82. package/src/lib/context/DynamicContext/helpers.d.ts +7 -1
  83. package/src/lib/context/DynamicContext/helpers.js +38 -4
  84. package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.cjs +5 -2
  85. package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.d.ts +4 -2
  86. package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.js +5 -2
  87. package/src/lib/context/DynamicContext/internalEvents/internalEvents.d.ts +1 -1
  88. package/src/lib/context/DynamicContext/types/index.d.ts +6 -0
  89. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +1 -0
  90. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +1 -0
  91. package/src/lib/context/DynamicContext/useDynamicContext.cjs +2 -1
  92. package/src/lib/context/DynamicContext/useDynamicContext.d.ts +1 -1
  93. package/src/lib/context/DynamicContext/useDynamicContext.js +2 -1
  94. package/src/lib/context/ErrorContext/ErrorContext.cjs +5 -1
  95. package/src/lib/context/ErrorContext/ErrorContext.js +5 -1
  96. package/src/lib/context/MockContext/MockContext.cjs +1 -0
  97. package/src/lib/context/MockContext/MockContext.js +1 -0
  98. package/src/lib/context/QrCodeContext/QrCodeContext.cjs +1 -0
  99. package/src/lib/context/QrCodeContext/QrCodeContext.js +1 -0
  100. package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +1 -0
  101. package/src/lib/context/SendBalanceContext/SendBalanceContext.js +1 -0
  102. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +8 -4
  103. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +5 -5
  104. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +8 -4
  105. package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +1 -0
  106. package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +1 -0
  107. package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
  108. package/src/lib/context/WalletContext/WalletContext.cjs +2 -16
  109. package/src/lib/context/WalletContext/WalletContext.js +2 -16
  110. package/src/lib/data/api.cjs +49 -10
  111. package/src/lib/data/api.d.ts +1 -0
  112. package/src/lib/data/api.js +50 -12
  113. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -2
  114. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -2
  115. package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +1 -0
  116. package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +0 -1
  117. package/src/lib/layout/DynamicAuthLayout/Header/header.js +1 -0
  118. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +3 -2
  119. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +3 -2
  120. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +1 -0
  121. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +1 -0
  122. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -0
  123. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -0
  124. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +2 -1
  125. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.d.ts +0 -1
  126. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +2 -1
  127. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -0
  128. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +0 -1
  129. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -0
  130. package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +1 -0
  131. package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +1 -0
  132. package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +1 -0
  133. package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +1 -0
  134. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -0
  135. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -0
  136. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -0
  137. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -0
  138. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -0
  139. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -0
  140. package/src/lib/locale/en/translation.cjs +90 -0
  141. package/src/lib/locale/en/translation.js +77 -0
  142. package/src/lib/locale/index.d.ts +1 -0
  143. package/src/lib/locale/locale.cjs +55 -0
  144. package/src/lib/locale/locale.d.ts +13 -0
  145. package/src/lib/locale/locale.js +46 -0
  146. package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -0
  147. package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -0
  148. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +1 -0
  149. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +1 -0
  150. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +1 -0
  151. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +1 -0
  152. package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +1 -0
  153. package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +1 -0
  154. package/src/lib/shared/assets/index.d.ts +1 -0
  155. package/src/lib/shared/assets/sign-in-with-email.cjs +59 -0
  156. package/src/lib/shared/assets/sign-in-with-email.js +35 -0
  157. package/src/lib/shared/types/index.d.ts +4 -0
  158. package/src/lib/shared/utils/functions/wallet/createWallet.cjs +1 -1
  159. package/src/lib/shared/utils/functions/wallet/createWallet.js +1 -1
  160. package/src/lib/styles/index.shadow.cjs +1 -1
  161. package/src/lib/styles/index.shadow.js +1 -1
  162. package/src/lib/utils/constants/localStorage.cjs +5 -1
  163. package/src/lib/utils/constants/localStorage.d.ts +2 -0
  164. package/src/lib/utils/constants/localStorage.js +4 -2
  165. package/src/lib/utils/functions/getActiveOauthCredential/getActiveOauthCredential.cjs +11 -0
  166. package/src/lib/utils/functions/getActiveOauthCredential/getActiveOauthCredential.d.ts +2 -0
  167. package/src/lib/utils/functions/getActiveOauthCredential/getActiveOauthCredential.js +7 -0
  168. package/src/lib/utils/functions/getActiveOauthCredential/index.d.ts +1 -0
  169. package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/getEnabledSocialSignInProvidersAsProviderEnum.d.ts +2 -0
  170. package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/index.d.ts +1 -0
  171. package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.cjs +19 -0
  172. package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.d.ts +2 -0
  173. package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.js +15 -0
  174. package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/index.d.ts +1 -0
  175. package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.cjs +19 -0
  176. package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.d.ts +2 -0
  177. package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.js +15 -0
  178. package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/index.d.ts +1 -0
  179. package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.cjs +19 -0
  180. package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.d.ts +2 -0
  181. package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.js +15 -0
  182. package/src/lib/utils/functions/getSocialSignInProviderFromString/index.d.ts +1 -0
  183. package/src/lib/utils/functions/index.d.ts +5 -0
  184. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +31 -16
  185. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +31 -16
  186. package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +6 -2
  187. package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +6 -2
  188. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +9 -4
  189. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +1 -19
  190. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +9 -4
  191. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +4 -3
  192. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +4 -3
  193. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +11 -15
  194. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +1 -2
  195. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +12 -16
  196. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +74 -0
  197. package/src/lib/utils/{functions/getDynamicLayoutData/getDynamicLayoutData.d.ts → hooks/useDynamicLayoutData/useDynamicLayoutData.d.ts} +2 -2
  198. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +70 -0
  199. package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +10 -1
  200. package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +10 -1
  201. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +10 -164
  202. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +2 -2
  203. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +12 -166
  204. package/src/lib/utils/hooks/useSocialAuth/index.d.ts +1 -0
  205. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +278 -0
  206. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.d.ts +20 -0
  207. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +274 -0
  208. package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +8 -6
  209. package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +8 -6
  210. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +13 -3
  211. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +13 -3
  212. package/src/lib/utils/hooks/useWalletConnectorEvent/useWalletConnectorEvent.cjs +0 -5
  213. package/src/lib/utils/hooks/useWalletConnectorEvent/useWalletConnectorEvent.js +0 -5
  214. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +0 -2
  215. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +0 -2
  216. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +7 -0
  217. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +7 -0
  218. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +1 -0
  219. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -0
  220. package/src/lib/utils/hooks/useWallets/useWallets.cjs +3 -1
  221. package/src/lib/utils/hooks/useWallets/useWallets.d.ts +3 -2
  222. package/src/lib/utils/hooks/useWallets/useWallets.js +3 -1
  223. package/src/lib/views/AccountExistsView/AccountExistsView.cjs +6 -3
  224. package/src/lib/views/AccountExistsView/AccountExistsView.js +6 -3
  225. package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +1 -1
  226. package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +1 -1
  227. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -0
  228. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -0
  229. package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +1 -0
  230. package/src/lib/views/CollectUserDataView/CollectUserDataView.js +1 -0
  231. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +4 -3
  232. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +4 -3
  233. package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +1 -0
  234. package/src/lib/views/CollectUserDataView/UserDataFields/index.js +1 -0
  235. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +1 -0
  236. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +1 -0
  237. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -0
  238. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -0
  239. package/src/lib/views/EmailUpdate/EmailUpdate.cjs +1 -0
  240. package/src/lib/views/EmailUpdate/EmailUpdate.js +1 -0
  241. package/src/lib/views/EmailVerification/EmailVerification.cjs +10 -3
  242. package/src/lib/views/EmailVerification/EmailVerification.js +11 -4
  243. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +1 -0
  244. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +1 -0
  245. package/src/lib/views/LoginView/LoginView.cjs +6 -6
  246. package/src/lib/views/LoginView/LoginView.js +6 -6
  247. package/src/lib/views/LoginView/{components/EmailSignIn → sections/EmailSignInSection}/LoginEmailForm.cjs +1 -0
  248. package/src/lib/views/LoginView/{components/EmailSignIn → sections/EmailSignInSection}/LoginEmailForm.js +1 -0
  249. package/src/lib/views/LoginView/sections/LoginWidget.d.ts +10 -0
  250. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +77 -0
  251. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.d.ts +3 -0
  252. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +73 -0
  253. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/index.d.ts +1 -0
  254. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +65 -0
  255. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.d.ts +3 -0
  256. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +61 -0
  257. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/index.d.ts +1 -0
  258. package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +49 -0
  259. package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.d.ts +7 -0
  260. package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +45 -0
  261. package/src/lib/views/LoginView/sections/SocialSignInSection/index.d.ts +1 -0
  262. package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/ListItemButton/ListItemButton.cjs +1 -0
  263. package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/ListItemButton/ListItemButton.js +1 -0
  264. package/src/lib/views/LoginView/{components/WalletSignIn/WalletSignIn.cjs → sections/WalletSignInSection/WalletSignInSection.cjs} +9 -3
  265. package/src/lib/views/LoginView/{components/WalletSignIn/WalletSignIn.d.ts → sections/WalletSignInSection/WalletSignInSection.d.ts} +1 -1
  266. package/src/lib/views/LoginView/{components/WalletSignIn/WalletSignIn.js → sections/WalletSignInSection/WalletSignInSection.js} +9 -3
  267. package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/WalletSimpleSignIn/WalletSimpleSignIn.cjs +3 -1
  268. package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/WalletSimpleSignIn/WalletSimpleSignIn.js +3 -1
  269. package/src/lib/views/LoginView/sections/WalletSignInSection/index.d.ts +1 -0
  270. package/src/lib/views/LoginView/sections/index.d.ts +4 -0
  271. package/src/lib/views/LoginView/useLoginView.cjs +11 -8
  272. package/src/lib/views/LoginView/useLoginView.js +11 -8
  273. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +2 -1
  274. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +2 -1
  275. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -1
  276. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -1
  277. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -1
  278. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -1
  279. package/src/lib/views/NoAccess/NoAccess.cjs +1 -0
  280. package/src/lib/views/NoAccess/NoAccess.js +1 -0
  281. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +3 -2
  282. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +3 -2
  283. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -0
  284. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -0
  285. package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -1
  286. package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -1
  287. package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -1
  288. package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -1
  289. package/src/lib/views/QrCodeView/QRCode.cjs +4 -3
  290. package/src/lib/views/QrCodeView/QRCode.d.ts +2 -2
  291. package/src/lib/views/QrCodeView/QRCode.js +4 -3
  292. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +3 -2
  293. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +2 -1
  294. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +3 -2
  295. package/src/lib/views/QrCodeView/QrCodeView.cjs +3 -2
  296. package/src/lib/views/QrCodeView/QrCodeView.js +3 -2
  297. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +2 -1
  298. package/src/lib/views/SendBalanceView/SendBalanceView.js +2 -1
  299. package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +1 -0
  300. package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +1 -0
  301. package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +5 -6
  302. package/src/lib/views/SocialRedirectView/SocialRedirectView.d.ts +1 -1
  303. package/src/lib/views/SocialRedirectView/SocialRedirectView.js +5 -6
  304. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -0
  305. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -0
  306. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -0
  307. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -0
  308. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +1 -0
  309. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +1 -0
  310. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -0
  311. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -0
  312. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +2 -1
  313. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +2 -1
  314. package/src/lib/views/WalletGroupView/WalletGroupView.cjs +1 -1
  315. package/src/lib/views/WalletGroupView/WalletGroupView.js +1 -1
  316. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +1 -0
  317. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +1 -0
  318. package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +3 -2
  319. package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +3 -2
  320. package/src/lib/views/WalletLockedView/WalletLockedView.cjs +2 -1
  321. package/src/lib/views/WalletLockedView/WalletLockedView.js +2 -1
  322. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +3 -2
  323. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +3 -2
  324. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +2 -1
  325. package/src/lib/views/WalletUsedView/WalletUsedView.js +2 -1
  326. package/src/lib/views/viewToComponentMap.cjs +1 -0
  327. package/src/lib/views/viewToComponentMap.js +1 -0
  328. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -0
  329. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -0
  330. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -0
  331. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -0
  332. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -0
  333. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -0
  334. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +3 -2
  335. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +1 -1
  336. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +3 -2
  337. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +1 -0
  338. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +1 -0
  339. package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +3 -3
  340. package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +3 -3
  341. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +2 -1
  342. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +2 -1
  343. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +1 -1
  344. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +1 -1
  345. package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +7 -1
  346. package/src/lib/widgets/DynamicWidget/DynamicWidget.js +7 -1
  347. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +19 -3
  348. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +19 -3
  349. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +1 -0
  350. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +1 -0
  351. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -0
  352. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -0
  353. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +1 -0
  354. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +1 -0
  355. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -0
  356. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -0
  357. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +2 -2
  358. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +2 -2
  359. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -0
  360. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -0
  361. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +10 -1
  362. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.d.ts +1 -1
  363. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +10 -1
  364. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +1 -0
  365. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +1 -0
  366. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +1 -0
  367. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -0
  368. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +4 -1
  369. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +4 -1
  370. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -0
  371. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -0
  372. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +1 -0
  373. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +1 -0
  374. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +1 -0
  375. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +1 -0
  376. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -0
  377. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -0
  378. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +1 -0
  379. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +1 -0
  380. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +2 -2
  381. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.d.ts +2 -2
  382. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +2 -2
  383. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -0
  384. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -0
  385. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -0
  386. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -0
  387. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -0
  388. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -0
  389. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -0
  390. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -0
  391. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +4 -3
  392. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +4 -3
  393. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +1 -1
  394. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +1 -1
  395. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +1 -0
  396. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -0
  397. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -1
  398. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -1
  399. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -1
  400. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -1
  401. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -0
  402. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -0
  403. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -1
  404. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -1
  405. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -1
  406. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -1
  407. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +7 -5
  408. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +7 -5
  409. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +1 -0
  410. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +1 -0
  411. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +4 -3
  412. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +4 -3
  413. package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +1 -0
  414. package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +1 -0
  415. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +1 -0
  416. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +1 -0
  417. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -0
  418. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -0
  419. package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +0 -67
  420. package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +0 -63
  421. package/src/lib/views/LoginView/components/LoginWidget.d.ts +0 -5
  422. package/src/lib/views/LoginView/components/SocialSignIn/SocialSignIn.cjs +0 -88
  423. package/src/lib/views/LoginView/components/SocialSignIn/SocialSignIn.d.ts +0 -2
  424. package/src/lib/views/LoginView/components/SocialSignIn/SocialSignIn.js +0 -84
  425. package/src/lib/views/LoginView/components/WalletSignIn/index.d.ts +0 -1
  426. package/src/lib/views/LoginView/components/index.d.ts +0 -3
  427. /package/src/lib/{views/LoginView/components → components}/SocialSignIn/index.d.ts +0 -0
  428. /package/src/lib/views/LoginView/{components/EmailSignIn → sections/EmailSignInSection}/LoginEmailForm.d.ts +0 -0
  429. /package/src/lib/views/LoginView/{components/EmailSignIn → sections/EmailSignInSection}/index.d.ts +0 -0
  430. /package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/ListItemButton/ListItemButton.d.ts +0 -0
  431. /package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/ListItemButton/index.d.ts +0 -0
  432. /package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/WalletSimpleSignIn/WalletSimpleSignIn.d.ts +0 -0
  433. /package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/WalletSimpleSignIn/index.d.ts +0 -0
@@ -1,10 +1,12 @@
1
1
  import { useMemo } from 'react';
2
+ import { useTranslation } from 'react-i18next';
2
3
  import { SdkViewType, SdkViewSectionType } from '@dynamic-labs/sdk-api';
3
4
  import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
4
5
 
5
6
  const NUMBER_OF_WALLETS = 3;
6
7
  const useLoginView = () => {
7
8
  const { projectSettings, authorizationViewDisplayOrder, loginWithEmail, wallets, } = useInternalDynamicContext();
9
+ const { t } = useTranslation();
8
10
  const isWalletOnly = useMemo(() => {
9
11
  var _a, _b, _c, _d, _e, _f;
10
12
  if (!projectSettings) {
@@ -33,17 +35,19 @@ const useLoginView = () => {
33
35
  type: SdkViewSectionType.Email,
34
36
  },
35
37
  ];
36
- 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;
37
- 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) {
38
40
  loginViewSections.push({
39
- numOfItemsToDisplay: numOfProvidersToDisplay,
41
+ numOfItemsToDisplay: 5,
40
42
  type: SdkViewSectionType.Social,
41
43
  });
42
44
  if ((_c = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) === null || _c === void 0 ? void 0 : _c.splitEmailAndSocial) {
43
45
  loginViewSections.splice(1, 0, {
44
- label: 'Or',
46
+ label: t('dyn_login.separators.default'),
45
47
  type: SdkViewSectionType.Separator,
46
48
  });
49
+ loginViewSections[loginViewSections.length - 1].defaultItem =
50
+ enabledProviders[0].provider;
47
51
  }
48
52
  }
49
53
  if ((_d = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) === null || _d === void 0 ? void 0 : _d.socialAboveEmail) {
@@ -73,10 +77,9 @@ const useLoginView = () => {
73
77
  !((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) === null || _a === void 0 ? void 0 : _a.length)) {
74
78
  return [];
75
79
  }
76
- const label = loginItem === 'email' ? 'Or continue with a wallet' : 'Or continue with';
77
80
  return [
78
81
  {
79
- label,
82
+ label: t('dyn_login.separators.default'),
80
83
  type: SdkViewSectionType.Separator,
81
84
  },
82
85
  ];
@@ -92,7 +95,7 @@ const useLoginView = () => {
92
95
  if (loginItem === 'email' && ((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) === null || _a === void 0 ? void 0 : _a.length)) {
93
96
  loginViewSections = loginViewSections.concat(getEmailViewSectionDefinition(),
94
97
  // add separator if wallets defined
95
- addSeparator(index, loginItem));
98
+ addSeparator(index));
96
99
  }
97
100
  if (loginItem === 'wallet' && (wallets === null || wallets === void 0 ? void 0 : wallets.length)) {
98
101
  // if showWalletsButton is true, it should show "Connec with Wallet" button
@@ -106,7 +109,7 @@ const useLoginView = () => {
106
109
  },
107
110
  ],
108
111
  // add separator if email providers defined
109
- addSeparator(index, loginItem));
112
+ addSeparator(index));
110
113
  }
111
114
  });
112
115
  return loginViewSections;
@@ -55,6 +55,7 @@ require('../../components/Popper/Popper/Popper.cjs');
55
55
  require('../../components/Popper/PopperContext/PopperContext.cjs');
56
56
  require('../../components/InlineWidget/InlineWidget.cjs');
57
57
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
58
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
58
59
 
59
60
  const MergeUserAccountsView = () => {
60
61
  const { environmentId, setUser, setOnboardingOnlyJwt, setShowAuthFlow, setCallback, primaryWallet, user, authToken, onboardingOnlyJwt, } = useInternalDynamicContext.useInternalDynamicContext();
@@ -102,7 +103,7 @@ const MergeUserAccountsView = () => {
102
103
  }
103
104
  setView('collect-user-data');
104
105
  };
105
- 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, {
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, { 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, {
106
107
  breakpoint: 4,
107
108
  cutEnd: 1,
108
109
  cutStart: 2,
@@ -51,6 +51,7 @@ import '../../components/Popper/Popper/Popper.js';
51
51
  import '../../components/Popper/PopperContext/PopperContext.js';
52
52
  import '../../components/InlineWidget/InlineWidget.js';
53
53
  import '../../components/MenuList/Dropdown/Dropdown.js';
54
+ import '../../components/OverlayCard/OverlayCard.context.js';
54
55
 
55
56
  const MergeUserAccountsView = () => {
56
57
  const { environmentId, setUser, setOnboardingOnlyJwt, setShowAuthFlow, setCallback, primaryWallet, user, authToken, onboardingOnlyJwt, } = useInternalDynamicContext();
@@ -98,7 +99,7 @@ const MergeUserAccountsView = () => {
98
99
  }
99
100
  setView('collect-user-data');
100
101
  };
101
- 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, {
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, { 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, {
102
103
  breakpoint: 4,
103
104
  cutEnd: 1,
104
105
  cutStart: 2,
@@ -51,6 +51,7 @@ require('../../components/Popper/Popper/Popper.cjs');
51
51
  require('../../components/Popper/PopperContext/PopperContext.cjs');
52
52
  require('../../components/InlineWidget/InlineWidget.cjs');
53
53
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
54
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
54
55
  var NetworkPicker = require('../../components/NetworkPicker/NetworkPicker.cjs');
55
56
  var UserAddress = require('../../components/UserAddress/UserAddress.cjs');
56
57
  var SelectNetworkButton = require('../../components/SelectNetworkButton/SelectNetworkButton.cjs');
@@ -101,7 +102,7 @@ const NetworkNotSupported = () => {
101
102
  });
102
103
  const evmNetworks = walletConnector.evmNetworks || [];
103
104
  const _isSupportedNetwork = isSupportedNetwork.isSupportedNetwork({ network, walletConnector });
104
- return (jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported', "data-testid": 'network-not-supported' }, { children: [onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'network-not-supported__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported' }, { children: "This network is not available, please update." }))), jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported__content-container' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported__img-container' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { style: { height: 64, width: 64 }, walletName: walletConnector.name }) })), jsxRuntime.jsx(UserAddress.UserAddress, { walletConnector: walletConnector }), jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported__network-container' }, { children: evmNetworks.length > 1 && (jsxRuntime.jsx(NetworkPicker.NetworkPicker, { evmNetworks: evmNetworks, connector: walletConnector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, showNetworkName: true, buttonClassName: 'network-not-supported__network-picker-button', mainClassName: 'network-not-supported__network-picker' })) })), jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported__welcome-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', className: 'network-not-supported__welcome-title' }, { children: "Update Network" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Your wallet is not connected to a supported network. Please update before continuing." }))] })), evmNetworks.length === 1 && (jsxRuntime.jsx(SelectNetworkButton.SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] }))] })));
105
+ return (jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported', "data-testid": 'network-not-supported' }, { children: [onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'network-not-supported__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported' }, { children: "This network is not available, please update." }))), jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported__content-container' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported__img-container' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { style: { height: 64, width: 64 }, walletKey: walletConnector.key }) })), jsxRuntime.jsx(UserAddress.UserAddress, { walletConnector: walletConnector }), jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported__network-container' }, { children: evmNetworks.length > 1 && (jsxRuntime.jsx(NetworkPicker.NetworkPicker, { evmNetworks: evmNetworks, connector: walletConnector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, showNetworkName: true, buttonClassName: 'network-not-supported__network-picker-button', mainClassName: 'network-not-supported__network-picker' })) })), jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported__welcome-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', className: 'network-not-supported__welcome-title' }, { children: "Update Network" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Your wallet is not connected to a supported network. Please update before continuing." }))] })), evmNetworks.length === 1 && (jsxRuntime.jsx(SelectNetworkButton.SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] }))] })));
105
106
  };
106
107
 
107
108
  exports.NetworkNotSupported = NetworkNotSupported;
@@ -47,6 +47,7 @@ import '../../components/Popper/Popper/Popper.js';
47
47
  import '../../components/Popper/PopperContext/PopperContext.js';
48
48
  import '../../components/InlineWidget/InlineWidget.js';
49
49
  import '../../components/MenuList/Dropdown/Dropdown.js';
50
+ import '../../components/OverlayCard/OverlayCard.context.js';
50
51
  import { NetworkPicker } from '../../components/NetworkPicker/NetworkPicker.js';
51
52
  import { UserAddress } from '../../components/UserAddress/UserAddress.js';
52
53
  import { SelectNetworkButton } from '../../components/SelectNetworkButton/SelectNetworkButton.js';
@@ -97,7 +98,7 @@ const NetworkNotSupported = () => {
97
98
  });
98
99
  const evmNetworks = walletConnector.evmNetworks || [];
99
100
  const _isSupportedNetwork = isSupportedNetwork({ network, walletConnector });
100
- return (jsxs("div", Object.assign({ className: 'network-not-supported', "data-testid": 'network-not-supported' }, { children: [onboardingImageUrl && (jsx("img", { className: 'network-not-supported__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsx(ErrorContainer, Object.assign({ variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported' }, { children: "This network is not available, please update." }))), jsxs("div", Object.assign({ className: 'network-not-supported__content-container' }, { children: [jsx("div", Object.assign({ className: 'network-not-supported__img-container' }, { children: jsx(WalletIcon, { style: { height: 64, width: 64 }, walletName: walletConnector.name }) })), jsx(UserAddress, { walletConnector: walletConnector }), jsx("div", Object.assign({ className: 'network-not-supported__network-container' }, { children: evmNetworks.length > 1 && (jsx(NetworkPicker, { evmNetworks: evmNetworks, connector: walletConnector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, showNetworkName: true, buttonClassName: 'network-not-supported__network-picker-button', mainClassName: 'network-not-supported__network-picker' })) })), jsxs("div", Object.assign({ className: 'network-not-supported__welcome-container' }, { children: [jsx(Typography, Object.assign({ variant: 'title', color: 'primary', className: 'network-not-supported__welcome-title' }, { children: "Update Network" })), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Your wallet is not connected to a supported network. Please update before continuing." }))] })), evmNetworks.length === 1 && (jsx(SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] }))] })));
101
+ return (jsxs("div", Object.assign({ className: 'network-not-supported', "data-testid": 'network-not-supported' }, { children: [onboardingImageUrl && (jsx("img", { className: 'network-not-supported__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsx(ErrorContainer, Object.assign({ variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported' }, { children: "This network is not available, please update." }))), jsxs("div", Object.assign({ className: 'network-not-supported__content-container' }, { children: [jsx("div", Object.assign({ className: 'network-not-supported__img-container' }, { children: jsx(WalletIcon, { style: { height: 64, width: 64 }, walletKey: walletConnector.key }) })), jsx(UserAddress, { walletConnector: walletConnector }), jsx("div", Object.assign({ className: 'network-not-supported__network-container' }, { children: evmNetworks.length > 1 && (jsx(NetworkPicker, { evmNetworks: evmNetworks, connector: walletConnector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, showNetworkName: true, buttonClassName: 'network-not-supported__network-picker-button', mainClassName: 'network-not-supported__network-picker' })) })), jsxs("div", Object.assign({ className: 'network-not-supported__welcome-container' }, { children: [jsx(Typography, Object.assign({ variant: 'title', color: 'primary', className: 'network-not-supported__welcome-title' }, { children: "Update Network" })), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Your wallet is not connected to a supported network. Please update before continuing." }))] })), evmNetworks.length === 1 && (jsx(SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] }))] })));
101
102
  };
102
103
 
103
104
  export { NetworkNotSupported };
@@ -52,6 +52,7 @@ require('../../components/Popper/Popper/Popper.cjs');
52
52
  require('../../components/Popper/PopperContext/PopperContext.cjs');
53
53
  require('../../components/InlineWidget/InlineWidget.cjs');
54
54
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
55
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
55
56
  var useApplyWalletConnectorNetwork = require('../../utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.cjs');
56
57
 
57
58
  // The component notifies the user about the required manual network change,
@@ -89,7 +90,7 @@ const NetworkNotSupportedSwitchManual = () => {
89
90
  // Prevents 'network' from being 'undefined'.
90
91
  useApplyWalletConnectorNetwork.useApplyWalletConnectorNetwork({ walletConnector });
91
92
  const iconSize = 80;
92
- const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.name, style: {
93
+ const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
93
94
  height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
94
95
  width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
95
96
  } }));
@@ -48,6 +48,7 @@ import '../../components/Popper/Popper/Popper.js';
48
48
  import '../../components/Popper/PopperContext/PopperContext.js';
49
49
  import '../../components/InlineWidget/InlineWidget.js';
50
50
  import '../../components/MenuList/Dropdown/Dropdown.js';
51
+ import '../../components/OverlayCard/OverlayCard.context.js';
51
52
  import { useApplyWalletConnectorNetwork } from '../../utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.js';
52
53
 
53
54
  // The component notifies the user about the required manual network change,
@@ -85,7 +86,7 @@ const NetworkNotSupportedSwitchManual = () => {
85
86
  // Prevents 'network' from being 'undefined'.
86
87
  useApplyWalletConnectorNetwork({ walletConnector });
87
88
  const iconSize = 80;
88
- const icon = (jsx(WalletIcon, { walletName: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.name, style: {
89
+ const icon = (jsx(WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
89
90
  height: pixelToRem(iconSize * iconRatio),
90
91
  width: pixelToRem(iconSize * iconRatio),
91
92
  } }));
@@ -51,6 +51,7 @@ require('../../components/Popper/Popper/Popper.cjs');
51
51
  require('../../components/Popper/PopperContext/PopperContext.cjs');
52
52
  require('../../components/InlineWidget/InlineWidget.cjs');
53
53
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
54
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
54
55
  var StatusDot = require('../../components/StatusDot/StatusDot.cjs');
55
56
  var getSocialNetworkIcon = require('../../utils/functions/getSocialNetworkIcon/getSocialNetworkIcon.cjs');
56
57
  var AuthProviderIcon = require('../../components/AuthProviderIcon/AuthProviderIcon.cjs');
@@ -47,6 +47,7 @@ import '../../components/Popper/Popper/Popper.js';
47
47
  import '../../components/Popper/PopperContext/PopperContext.js';
48
48
  import '../../components/InlineWidget/InlineWidget.js';
49
49
  import '../../components/MenuList/Dropdown/Dropdown.js';
50
+ import '../../components/OverlayCard/OverlayCard.context.js';
50
51
  import { StatusDot } from '../../components/StatusDot/StatusDot.js';
51
52
  import { getSocialNetworkIcon } from '../../utils/functions/getSocialNetworkIcon/getSocialNetworkIcon.js';
52
53
  import { AuthProviderIcon } from '../../components/AuthProviderIcon/AuthProviderIcon.js';
@@ -47,6 +47,7 @@ require('../../components/Popper/Popper/Popper.cjs');
47
47
  require('../../components/Popper/PopperContext/PopperContext.cjs');
48
48
  require('../../components/InlineWidget/InlineWidget.cjs');
49
49
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
50
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
50
51
  var getBrowserIcon = require('../../shared/utils/functions/getBrowserIcon/getBrowserIcon.cjs');
51
52
  var WalletHelpLink = require('./WalletHelpLink.cjs');
52
53
 
@@ -56,13 +57,13 @@ const NoQrNotInstalledView = () => {
56
57
  if (!selectedWalletConnector) {
57
58
  return null;
58
59
  }
59
- const downloadLinks = Object.entries(walletBook.getWalletLinks(walletBook$1, selectedWalletConnector.name))
60
+ const downloadLinks = Object.entries(walletBook.getWalletLinks(walletBook$1, selectedWalletConnector.key))
60
61
  .filter(([, link]) => link !== '')
61
62
  .filter(([name]) => name !== 'ios' && name !== 'android')
62
63
  .map(([name, link]) => (jsxRuntime.jsx(WalletHelpLink.WalletHelpLink, { name: name, link: link,
63
64
  // justification: we're looping over the keys of walletLinks.desktop
64
65
  Icon: getBrowserIcon.getBrowserIcon(name) }, name)));
65
- return (jsxRuntime.jsxs("div", Object.assign({ className: 'no-qr-code-installed__container', "data-testid": 'no-qr-code-installed' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'no-qr-code-installed__img' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { walletName: selectedWalletConnector.name, style: { height: pixelToRem.pixelToRem(64), width: pixelToRem.pixelToRem(64) } }) })), jsxRuntime.jsxs(Typography.Typography, Object.assign({ className: 'no-qr-code-installed__typography--title', variant: 'title' }, { children: ["Install", ' ', walletBook.getWalletBookWallet(walletBook$1, selectedWalletConnector.name).name, ' ', "extension to connect"] })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', className: 'no-qr-code-installed__typography', color: 'secondary' }, { children: "Select from your preferred options below:" })), jsxRuntime.jsx("div", Object.assign({ className: 'no-qr-code-installed__links-section' }, { children: downloadLinks })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_mini', className: 'no-qr-code-installed__typography', weight: 'medium', color: 'secondary' }, { children: "Refresh the page once installed" }))] })));
66
+ return (jsxRuntime.jsxs("div", Object.assign({ className: 'no-qr-code-installed__container', "data-testid": 'no-qr-code-installed' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'no-qr-code-installed__img' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: selectedWalletConnector.key, style: { height: pixelToRem.pixelToRem(64), width: pixelToRem.pixelToRem(64) } }) })), jsxRuntime.jsxs(Typography.Typography, Object.assign({ className: 'no-qr-code-installed__typography--title', variant: 'title' }, { children: ["Install", ' ', walletBook.getWalletBookWallet(walletBook$1, selectedWalletConnector.key).name, ' ', "extension to connect"] })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', className: 'no-qr-code-installed__typography', color: 'secondary' }, { children: "Select from your preferred options below:" })), jsxRuntime.jsx("div", Object.assign({ className: 'no-qr-code-installed__links-section' }, { children: downloadLinks })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_mini', className: 'no-qr-code-installed__typography', weight: 'medium', color: 'secondary' }, { children: "Refresh the page once installed" }))] })));
66
67
  };
67
68
 
68
69
  exports.NoQrNotInstalledView = NoQrNotInstalledView;
@@ -43,6 +43,7 @@ import '../../components/Popper/Popper/Popper.js';
43
43
  import '../../components/Popper/PopperContext/PopperContext.js';
44
44
  import '../../components/InlineWidget/InlineWidget.js';
45
45
  import '../../components/MenuList/Dropdown/Dropdown.js';
46
+ import '../../components/OverlayCard/OverlayCard.context.js';
46
47
  import { getBrowserIcon } from '../../shared/utils/functions/getBrowserIcon/getBrowserIcon.js';
47
48
  import { WalletHelpLink } from './WalletHelpLink.js';
48
49
 
@@ -52,13 +53,13 @@ const NoQrNotInstalledView = () => {
52
53
  if (!selectedWalletConnector) {
53
54
  return null;
54
55
  }
55
- const downloadLinks = Object.entries(getWalletLinks(walletBook, selectedWalletConnector.name))
56
+ const downloadLinks = Object.entries(getWalletLinks(walletBook, selectedWalletConnector.key))
56
57
  .filter(([, link]) => link !== '')
57
58
  .filter(([name]) => name !== 'ios' && name !== 'android')
58
59
  .map(([name, link]) => (jsx(WalletHelpLink, { name: name, link: link,
59
60
  // justification: we're looping over the keys of walletLinks.desktop
60
61
  Icon: getBrowserIcon(name) }, name)));
61
- return (jsxs("div", Object.assign({ className: 'no-qr-code-installed__container', "data-testid": 'no-qr-code-installed' }, { children: [jsx("div", Object.assign({ className: 'no-qr-code-installed__img' }, { children: jsx(WalletIcon, { walletName: selectedWalletConnector.name, style: { height: pixelToRem(64), width: pixelToRem(64) } }) })), jsxs(Typography, Object.assign({ className: 'no-qr-code-installed__typography--title', variant: 'title' }, { children: ["Install", ' ', getWalletBookWallet(walletBook, selectedWalletConnector.name).name, ' ', "extension to connect"] })), jsx(Typography, Object.assign({ variant: 'body_normal', className: 'no-qr-code-installed__typography', color: 'secondary' }, { children: "Select from your preferred options below:" })), jsx("div", Object.assign({ className: 'no-qr-code-installed__links-section' }, { children: downloadLinks })), jsx(Typography, Object.assign({ variant: 'body_mini', className: 'no-qr-code-installed__typography', weight: 'medium', color: 'secondary' }, { children: "Refresh the page once installed" }))] })));
62
+ return (jsxs("div", Object.assign({ className: 'no-qr-code-installed__container', "data-testid": 'no-qr-code-installed' }, { children: [jsx("div", Object.assign({ className: 'no-qr-code-installed__img' }, { children: jsx(WalletIcon, { walletKey: selectedWalletConnector.key, style: { height: pixelToRem(64), width: pixelToRem(64) } }) })), jsxs(Typography, Object.assign({ className: 'no-qr-code-installed__typography--title', variant: 'title' }, { children: ["Install", ' ', getWalletBookWallet(walletBook, selectedWalletConnector.key).name, ' ', "extension to connect"] })), jsx(Typography, Object.assign({ variant: 'body_normal', className: 'no-qr-code-installed__typography', color: 'secondary' }, { children: "Select from your preferred options below:" })), jsx("div", Object.assign({ className: 'no-qr-code-installed__links-section' }, { children: downloadLinks })), jsx(Typography, Object.assign({ variant: 'body_mini', className: 'no-qr-code-installed__typography', weight: 'medium', color: 'secondary' }, { children: "Refresh the page once installed" }))] })));
62
63
  };
63
64
 
64
65
  export { NoQrNotInstalledView };
@@ -46,6 +46,7 @@ require('../../components/Popper/Popper/Popper.cjs');
46
46
  require('../../components/Popper/PopperContext/PopperContext.cjs');
47
47
  require('../../components/InlineWidget/InlineWidget.cjs');
48
48
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
49
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
49
50
 
50
51
  const capitalize = (value) => value[0].toUpperCase() + value.slice(1);
51
52
  const WalletHelpLink = ({ name, link, Icon }) => (jsxRuntime.jsx("div", Object.assign({ className: 'wallet-help-link' }, { children: jsxRuntime.jsxs("a", Object.assign({ className: 'wallet-help-link__anchor', href: link, target: '_blank', rel: 'noreferrer' }, { children: [jsxRuntime.jsx(Icon, { style: {
@@ -42,6 +42,7 @@ import '../../components/Popper/Popper/Popper.js';
42
42
  import '../../components/Popper/PopperContext/PopperContext.js';
43
43
  import '../../components/InlineWidget/InlineWidget.js';
44
44
  import '../../components/MenuList/Dropdown/Dropdown.js';
45
+ import '../../components/OverlayCard/OverlayCard.context.js';
45
46
 
46
47
  const capitalize = (value) => value[0].toUpperCase() + value.slice(1);
47
48
  const WalletHelpLink = ({ name, link, Icon }) => (jsx("div", Object.assign({ className: 'wallet-help-link' }, { children: jsxs("a", Object.assign({ className: 'wallet-help-link__anchor', href: link, target: '_blank', rel: 'noreferrer' }, { children: [jsx(Icon, { style: {
@@ -49,11 +49,12 @@ require('../../components/Popper/Popper/Popper.cjs');
49
49
  require('../../components/Popper/PopperContext/PopperContext.cjs');
50
50
  require('../../components/InlineWidget/InlineWidget.cjs');
51
51
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
52
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
52
53
 
53
54
  const PendingConnectView = () => {
54
55
  const { selectedWalletConnector: walletConnector } = useInternalDynamicContext.useInternalDynamicContext();
55
56
  const iconSize = 94;
56
- const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.name, style: {
57
+ const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
57
58
  height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
58
59
  width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
59
60
  } }));
@@ -45,11 +45,12 @@ import '../../components/Popper/Popper/Popper.js';
45
45
  import '../../components/Popper/PopperContext/PopperContext.js';
46
46
  import '../../components/InlineWidget/InlineWidget.js';
47
47
  import '../../components/MenuList/Dropdown/Dropdown.js';
48
+ import '../../components/OverlayCard/OverlayCard.context.js';
48
49
 
49
50
  const PendingConnectView = () => {
50
51
  const { selectedWalletConnector: walletConnector } = useInternalDynamicContext();
51
52
  const iconSize = 94;
52
- const icon = (jsx(WalletIcon, { walletName: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.name, style: {
53
+ const icon = (jsx(WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
53
54
  height: pixelToRem(iconSize * iconRatio),
54
55
  width: pixelToRem(iconSize * iconRatio),
55
56
  } }));
@@ -54,6 +54,7 @@ require('../../components/Popper/Popper/Popper.cjs');
54
54
  require('../../components/Popper/PopperContext/PopperContext.cjs');
55
55
  require('../../components/InlineWidget/InlineWidget.cjs');
56
56
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
57
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
57
58
 
58
59
  const PendingSignatureView = () => {
59
60
  const [loading, setLoading] = React.useState(false);
@@ -79,7 +80,7 @@ const PendingSignatureView = () => {
79
80
  setLoading(false);
80
81
  }
81
82
  });
82
- const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletConnector.name, style: {
83
+ const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector.key, style: {
83
84
  height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
84
85
  width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
85
86
  } }));
@@ -50,6 +50,7 @@ import '../../components/Popper/Popper/Popper.js';
50
50
  import '../../components/Popper/PopperContext/PopperContext.js';
51
51
  import '../../components/InlineWidget/InlineWidget.js';
52
52
  import '../../components/MenuList/Dropdown/Dropdown.js';
53
+ import '../../components/OverlayCard/OverlayCard.context.js';
53
54
 
54
55
  const PendingSignatureView = () => {
55
56
  const [loading, setLoading] = useState(false);
@@ -75,7 +76,7 @@ const PendingSignatureView = () => {
75
76
  setLoading(false);
76
77
  }
77
78
  });
78
- const icon = (jsx(WalletIcon, { walletName: walletConnector.name, style: {
79
+ const icon = (jsx(WalletIcon, { walletKey: walletConnector.key, style: {
79
80
  height: pixelToRem(iconSize * iconRatio),
80
81
  width: pixelToRem(iconSize * iconRatio),
81
82
  } }));
@@ -41,6 +41,7 @@ require('formik');
41
41
  require('yup');
42
42
  require('../../components/InlineWidget/InlineWidget.cjs');
43
43
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
44
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
44
45
  require('../CollectUserDataView/fieldsConfig.cjs');
45
46
  require('../../context/MockContext/MockContext.cjs');
46
47
  require('../../context/CaptchaContext/CaptchaContext.cjs');
@@ -61,7 +62,7 @@ const generateMatrix = (value, errorCorrectionLevel) => {
61
62
  ? rows.push([key])
62
63
  : rows[rows.length - 1].push(key)) && rows, []);
63
64
  };
64
- const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor, walletName = undefined, }) => {
65
+ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor, walletKey = undefined, }) => {
65
66
  const { showQrCodeImage } = QrCodeContext.useQrCodeContext();
66
67
  const { data } = usePromise.usePromise(() => QRCodeUtil__default["default"].toDataURL(value));
67
68
  const dots = React.useMemo(() => {
@@ -106,8 +107,8 @@ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, va
106
107
  }, [ecl, logoSize, size, value, accentColor]);
107
108
  const logoPosition = size / 2 - logoSize / 2 - logoMargin;
108
109
  const walletsWithoutIndicator = ['coinbase', 'walletconnect'];
109
- const indicator = !walletName ||
110
- walletsWithoutIndicator.includes(walletConnectorCore.normalizeWalletName(walletName))
110
+ const indicator = !walletKey ||
111
+ walletsWithoutIndicator.includes(walletConnectorCore.normalizeWalletName(walletKey))
111
112
  ? undefined
112
113
  : 'walletConnect';
113
114
  return (jsxRuntime.jsx("div", Object.assign({ className: 'qrcode__container' }, { children: jsxRuntime.jsx("div", Object.assign({ className: 'qrcode' }, { children: showQrCodeImage ? (jsxRuntime.jsx("img", { src: data, alt: '' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("svg", Object.assign({ height: '100%', width: '100%', viewBox: `0 0 ${size} ${size}`, "data-testid": 'qr-code' }, { children: [jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", Object.assign({ id: 'clip-logo' }, { children: jsxRuntime.jsx("rect", { height: logoSize, width: logoSize, x: logoPosition, y: logoPosition, rx: 7, ry: 7 }) })) }), jsxRuntime.jsx("rect", { fill: 'none', height: size, width: size }), dots] })), jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: Icon, iconSize: logoSize, isSpinning: true, className: 'qrcode__icon', indicator: indicator })] })) })) })));
@@ -8,7 +8,7 @@ type QRCodeProps = {
8
8
  logoSize?: number;
9
9
  size?: number;
10
10
  value: string;
11
- walletName?: string;
11
+ walletKey?: string;
12
12
  };
13
- export declare const QRCode: ({ ecl, Icon, logoMargin, logoSize, size, value, accentColor, walletName, }: QRCodeProps) => JSX.Element;
13
+ export declare const QRCode: ({ ecl, Icon, logoMargin, logoSize, size, value, accentColor, walletKey, }: QRCodeProps) => JSX.Element;
14
14
  export {};
@@ -37,6 +37,7 @@ import 'formik';
37
37
  import 'yup';
38
38
  import '../../components/InlineWidget/InlineWidget.js';
39
39
  import '../../components/MenuList/Dropdown/Dropdown.js';
40
+ import '../../components/OverlayCard/OverlayCard.context.js';
40
41
  import '../CollectUserDataView/fieldsConfig.js';
41
42
  import '../../context/MockContext/MockContext.js';
42
43
  import '../../context/CaptchaContext/CaptchaContext.js';
@@ -53,7 +54,7 @@ const generateMatrix = (value, errorCorrectionLevel) => {
53
54
  ? rows.push([key])
54
55
  : rows[rows.length - 1].push(key)) && rows, []);
55
56
  };
56
- const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor, walletName = undefined, }) => {
57
+ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor, walletKey = undefined, }) => {
57
58
  const { showQrCodeImage } = useQrCodeContext();
58
59
  const { data } = usePromise(() => QRCodeUtil.toDataURL(value));
59
60
  const dots = useMemo(() => {
@@ -98,8 +99,8 @@ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, va
98
99
  }, [ecl, logoSize, size, value, accentColor]);
99
100
  const logoPosition = size / 2 - logoSize / 2 - logoMargin;
100
101
  const walletsWithoutIndicator = ['coinbase', 'walletconnect'];
101
- const indicator = !walletName ||
102
- walletsWithoutIndicator.includes(normalizeWalletName(walletName))
102
+ const indicator = !walletKey ||
103
+ walletsWithoutIndicator.includes(normalizeWalletName(walletKey))
103
104
  ? undefined
104
105
  : 'walletConnect';
105
106
  return (jsx("div", Object.assign({ className: 'qrcode__container' }, { children: jsx("div", Object.assign({ className: 'qrcode' }, { children: showQrCodeImage ? (jsx("img", { src: data, alt: '' })) : (jsxs(Fragment, { children: [jsxs("svg", Object.assign({ height: '100%', width: '100%', viewBox: `0 0 ${size} ${size}`, "data-testid": 'qr-code' }, { children: [jsx("defs", { children: jsx("clipPath", Object.assign({ id: 'clip-logo' }, { children: jsx("rect", { height: logoSize, width: logoSize, x: logoPosition, y: logoPosition, rx: 7, ry: 7 }) })) }), jsx("rect", { fill: 'none', height: size, width: size }), dots] })), jsx(IconWithSpinner, { Icon: Icon, iconSize: logoSize, isSpinning: true, className: 'qrcode__icon', indicator: indicator })] })) })) })));
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
- var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
7
6
  var MockedQrCode = require('../../../components/MockedQrCode/MockedQrCode.cjs');
8
7
  require('@dynamic-labs/sdk-api');
9
8
  require('../../../shared/logger.cjs');
10
9
  require('@dynamic-labs/iconic');
10
+ require('@dynamic-labs/wallet-connector-core');
11
11
  require('../../../context/ViewContext/ViewContext.cjs');
12
12
  require('react');
13
13
  var link = require('../../../shared/assets/link.cjs');
@@ -53,8 +53,9 @@ require('../../../components/Popper/Popper/Popper.cjs');
53
53
  require('../../../components/Popper/PopperContext/PopperContext.cjs');
54
54
  require('../../../components/InlineWidget/InlineWidget.cjs');
55
55
  require('../../../components/MenuList/Dropdown/Dropdown.cjs');
56
+ require('../../../components/OverlayCard/OverlayCard.context.cjs');
56
57
 
57
- const QrCodeContainer = ({ accentColor, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, }) => (jsxRuntime.jsxs("div", Object.assign({ className: 'qrcode-container__container' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'qrcode-container__top' }, { children: [qrcodeValue ? (jsxRuntime.jsx(QRCode.QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50, walletName: walletConnectorCore.normalizeWalletName(walletName) })) : (
58
+ const QrCodeContainer = ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, }) => (jsxRuntime.jsxs("div", Object.assign({ className: 'qrcode-container__container' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'qrcode-container__top' }, { children: [qrcodeValue ? (jsxRuntime.jsx(QRCode.QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50, walletKey: walletKey })) : (
58
59
  // this div exists to give the parent a child, so that the parent
59
60
  // takes on its given width and height. the result is stable
60
61
  // rendering of this component, without this there is a brief flash
@@ -5,7 +5,8 @@ type QrCodeContainerProps = {
5
5
  desktopUri?: string;
6
6
  qrcodeValue: string;
7
7
  showCopyToClipboardButton?: boolean;
8
+ walletKey: string;
8
9
  walletName: string;
9
10
  };
10
- export declare const QrCodeContainer: ({ accentColor, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton, desktopUri, }: QrCodeContainerProps) => JSX.Element;
11
+ export declare const QrCodeContainer: ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton, desktopUri, }: QrCodeContainerProps) => JSX.Element;
11
12
  export {};
@@ -1,9 +1,9 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { normalizeWalletName } from '@dynamic-labs/wallet-connector-core';
3
2
  import { MockedQrCode } from '../../../components/MockedQrCode/MockedQrCode.js';
4
3
  import '@dynamic-labs/sdk-api';
5
4
  import '../../../shared/logger.js';
6
5
  import '@dynamic-labs/iconic';
6
+ import '@dynamic-labs/wallet-connector-core';
7
7
  import '../../../context/ViewContext/ViewContext.js';
8
8
  import 'react';
9
9
  import { ReactComponent as SvgLink } from '../../../shared/assets/link.js';
@@ -49,8 +49,9 @@ import '../../../components/Popper/Popper/Popper.js';
49
49
  import '../../../components/Popper/PopperContext/PopperContext.js';
50
50
  import '../../../components/InlineWidget/InlineWidget.js';
51
51
  import '../../../components/MenuList/Dropdown/Dropdown.js';
52
+ import '../../../components/OverlayCard/OverlayCard.context.js';
52
53
 
53
- const QrCodeContainer = ({ accentColor, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, }) => (jsxs("div", Object.assign({ className: 'qrcode-container__container' }, { children: [jsxs("div", Object.assign({ className: 'qrcode-container__top' }, { children: [qrcodeValue ? (jsx(QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50, walletName: normalizeWalletName(walletName) })) : (
54
+ const QrCodeContainer = ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, }) => (jsxs("div", Object.assign({ className: 'qrcode-container__container' }, { children: [jsxs("div", Object.assign({ className: 'qrcode-container__top' }, { children: [qrcodeValue ? (jsx(QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50, walletKey: walletKey })) : (
54
55
  // this div exists to give the parent a child, so that the parent
55
56
  // takes on its given width and height. the result is stable
56
57
  // rendering of this component, without this there is a brief flash
@@ -48,6 +48,7 @@ require('../../components/Popper/Popper/Popper.cjs');
48
48
  require('../../components/Popper/PopperContext/PopperContext.cjs');
49
49
  require('../../components/InlineWidget/InlineWidget.cjs');
50
50
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
51
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
51
52
  var QrCodeContext = require('../../context/QrCodeContext/QrCodeContext.cjs');
52
53
  var QrCodeContainer = require('./QrCodeContainer/QrCodeContainer.cjs');
53
54
 
@@ -62,12 +63,12 @@ const QrCodeView = () => {
62
63
  if (!walletConnector) {
63
64
  return null;
64
65
  }
65
- const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletConnector.name, style: { height: pixelToRem.pixelToRem(32), width: pixelToRem.pixelToRem(32) } }));
66
+ const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector.key, style: { height: pixelToRem.pixelToRem(32), width: pixelToRem.pixelToRem(32) } }));
66
67
  return (jsxRuntime.jsxs("div", Object.assign({ className: 'qr-code-view__container', "data-testid": 'qr-code-view' }, { children: [jsxRuntime.jsx(QrCodeContainer.QrCodeContainer, { desktopUri: desktopUri, accentColor:
67
68
  /* istanbul ignore next */
68
69
  name === 'dark'
69
70
  ? theme.colors.textPrimary
70
- : (_a = walletBook.getWalletPrimaryColor(walletBook$1, walletConnector.name)) !== null && _a !== void 0 ? _a : '', walletName: walletConnector.name, qrcodeValue: qrcodeUri, Icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect }), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'qr-code-view__powered-by' })] })));
71
+ : (_a = walletBook.getWalletPrimaryColor(walletBook$1, walletConnector.key)) !== null && _a !== void 0 ? _a : '', walletKey: walletConnector.key, walletName: walletConnector.name, qrcodeValue: qrcodeUri, Icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect }), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'qr-code-view__powered-by' })] })));
71
72
  };
72
73
 
73
74
  exports.QrCodeView = QrCodeView;
@@ -44,6 +44,7 @@ import '../../components/Popper/Popper/Popper.js';
44
44
  import '../../components/Popper/PopperContext/PopperContext.js';
45
45
  import '../../components/InlineWidget/InlineWidget.js';
46
46
  import '../../components/MenuList/Dropdown/Dropdown.js';
47
+ import '../../components/OverlayCard/OverlayCard.context.js';
47
48
  import { useQrCodeContext } from '../../context/QrCodeContext/QrCodeContext.js';
48
49
  import { QrCodeContainer } from './QrCodeContainer/QrCodeContainer.js';
49
50
 
@@ -58,12 +59,12 @@ const QrCodeView = () => {
58
59
  if (!walletConnector) {
59
60
  return null;
60
61
  }
61
- const icon = (jsx(WalletIcon, { walletName: walletConnector.name, style: { height: pixelToRem(32), width: pixelToRem(32) } }));
62
+ const icon = (jsx(WalletIcon, { walletKey: walletConnector.key, style: { height: pixelToRem(32), width: pixelToRem(32) } }));
62
63
  return (jsxs("div", Object.assign({ className: 'qr-code-view__container', "data-testid": 'qr-code-view' }, { children: [jsx(QrCodeContainer, { desktopUri: desktopUri, accentColor:
63
64
  /* istanbul ignore next */
64
65
  name === 'dark'
65
66
  ? theme.colors.textPrimary
66
- : (_a = getWalletPrimaryColor(walletBook, walletConnector.name)) !== null && _a !== void 0 ? _a : '', walletName: walletConnector.name, qrcodeValue: qrcodeUri, Icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect }), jsx(PoweredByDynamic, { classNameRoot: 'qr-code-view__powered-by' })] })));
67
+ : (_a = getWalletPrimaryColor(walletBook, walletConnector.key)) !== null && _a !== void 0 ? _a : '', walletKey: walletConnector.key, walletName: walletConnector.name, qrcodeValue: qrcodeUri, Icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect }), jsx(PoweredByDynamic, { classNameRoot: 'qr-code-view__powered-by' })] })));
67
68
  };
68
69
 
69
70
  export { QrCodeView };
@@ -41,6 +41,7 @@ require('../../components/Popper/PopperContext/PopperContext.cjs');
41
41
  var SendBalancePageLayout = require('../../components/SendBalancePageLayout/SendBalancePageLayout.cjs');
42
42
  require('../../components/InlineWidget/InlineWidget.cjs');
43
43
  require('../../components/MenuList/Dropdown/Dropdown.cjs');
44
+ require('../../components/OverlayCard/OverlayCard.context.cjs');
44
45
  var useFetchCurrency = require('../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs');
45
46
  var TransactionStatusLayout = require('../../components/TransactionStatusLayout/TransactionStatusLayout.cjs');
46
47
  var TransactionStage = require('./components/TransactionStage/TransactionStage.cjs');
@@ -80,7 +81,7 @@ const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBa
80
81
  const buildFormStage = () => (jsxRuntime.jsx(SendBalancePageLayout.SendBalancePageLayout, { initialValues: {
81
82
  amount: value === null ? '' : formatBigNumber.formatBigNumber(value),
82
83
  recipient: recipientAddress,
83
- }, balance: balance, onClickBack: onClickBack, chain: primaryWallet.chain, networkName: networkName, networkIcon: networkIcon, currencySymbol: currencySymbol, isLoading: false, walletAddress: shortenWalletAddress.shortenWalletAddress(primaryWallet.address, 3, 3), walletName: primaryWallet.connector.name, onClickClose: onClickClose, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, onSubmit: (data) => {
84
+ }, balance: balance, onClickBack: onClickBack, chain: primaryWallet.chain, networkName: networkName, networkIcon: networkIcon, currencySymbol: currencySymbol, isLoading: false, walletAddress: shortenWalletAddress.shortenWalletAddress(primaryWallet.address, 3, 3), walletKey: primaryWallet.connector.key, onClickClose: onClickClose, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, onSubmit: (data) => {
84
85
  setValue(ethers.utils.parseEther(data.amount));
85
86
  setRecipientAddress(data.recipient);
86
87
  setStage('confirmation');
@@ -37,6 +37,7 @@ import '../../components/Popper/PopperContext/PopperContext.js';
37
37
  import { SendBalancePageLayout } from '../../components/SendBalancePageLayout/SendBalancePageLayout.js';
38
38
  import '../../components/InlineWidget/InlineWidget.js';
39
39
  import '../../components/MenuList/Dropdown/Dropdown.js';
40
+ import '../../components/OverlayCard/OverlayCard.context.js';
40
41
  import { useFetchCurrency } from '../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js';
41
42
  import { TransactionStatusLayout } from '../../components/TransactionStatusLayout/TransactionStatusLayout.js';
42
43
  import { TransactionStage } from './components/TransactionStage/TransactionStage.js';
@@ -76,7 +77,7 @@ const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBa
76
77
  const buildFormStage = () => (jsx(SendBalancePageLayout, { initialValues: {
77
78
  amount: value === null ? '' : formatBigNumber(value),
78
79
  recipient: recipientAddress,
79
- }, balance: balance, onClickBack: onClickBack, chain: primaryWallet.chain, networkName: networkName, networkIcon: networkIcon, currencySymbol: currencySymbol, isLoading: false, walletAddress: shortenWalletAddress(primaryWallet.address, 3, 3), walletName: primaryWallet.connector.name, onClickClose: onClickClose, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, onSubmit: (data) => {
80
+ }, balance: balance, onClickBack: onClickBack, chain: primaryWallet.chain, networkName: networkName, networkIcon: networkIcon, currencySymbol: currencySymbol, isLoading: false, walletAddress: shortenWalletAddress(primaryWallet.address, 3, 3), walletKey: primaryWallet.connector.key, onClickClose: onClickClose, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, onSubmit: (data) => {
80
81
  setValue(utils.parseEther(data.amount));
81
82
  setRecipientAddress(data.recipient);
82
83
  setStage('confirmation');
@@ -41,6 +41,7 @@ require('formik');
41
41
  require('yup');
42
42
  require('../../../../components/InlineWidget/InlineWidget.cjs');
43
43
  require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
44
+ require('../../../../components/OverlayCard/OverlayCard.context.cjs');
44
45
  var TransactionConfirmationView = require('../../../TransactionConfirmationView/TransactionConfirmationView.cjs');
45
46
  require('../../../CollectUserDataView/fieldsConfig.cjs');
46
47
  require('../../../../context/MockContext/MockContext.cjs');