@dynamic-labs/sdk-react-core 0.19.0-alpha.17 → 0.19.0-alpha.19

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 (171) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +8 -8
  5. package/src/index.cjs +6 -0
  6. package/src/index.js +3 -0
  7. package/src/lib/components/Button/Button.cjs +2 -7
  8. package/src/lib/components/Button/Button.d.ts +0 -2
  9. package/src/lib/components/Button/Button.js +2 -7
  10. package/src/lib/components/CopyButton/CopyButton.cjs +1 -3
  11. package/src/lib/components/CopyButton/CopyButton.js +1 -3
  12. package/src/lib/components/DynamicFooter/DynamicFooter.cjs +10 -0
  13. package/src/lib/components/DynamicFooter/DynamicFooter.d.ts +2 -0
  14. package/src/lib/components/DynamicFooter/DynamicFooter.js +6 -0
  15. package/src/lib/components/DynamicFooter/index.d.ts +1 -0
  16. package/src/lib/components/LogoutButton/LogoutButton.cjs +1 -1
  17. package/src/lib/components/LogoutButton/LogoutButton.js +1 -1
  18. package/src/lib/components/ModalHeader/ModalHeader.cjs +3 -3
  19. package/src/lib/components/ModalHeader/ModalHeader.js +3 -3
  20. package/src/lib/components/ModalHeader/ModalHeader.types.d.ts +3 -0
  21. package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +7 -5
  22. package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +0 -2
  23. package/src/lib/components/OTPVerificationView/OTPVerificationView.js +7 -5
  24. package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +1 -1
  25. package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +1 -1
  26. package/src/lib/components/SelectNetworkButton/SelectNetworkButton.cjs +1 -1
  27. package/src/lib/components/SelectNetworkButton/SelectNetworkButton.js +1 -1
  28. package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.cjs +1 -2
  29. package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +1 -2
  30. package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +1 -1
  31. package/src/lib/components/SendBalanceForm/SendBalanceForm.js +1 -1
  32. package/src/lib/components/Tooltip/Tooltip.cjs +1 -1
  33. package/src/lib/components/Tooltip/Tooltip.js +1 -1
  34. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +2 -2
  35. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +2 -2
  36. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -1
  37. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -1
  38. package/src/lib/components/Typography/Typography.cjs +0 -1
  39. package/src/lib/components/Typography/Typography.js +0 -1
  40. package/src/lib/components/Typography/Typography.types.d.ts +1 -1
  41. package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +1 -1
  42. package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +1 -1
  43. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -1
  44. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -1
  45. package/src/lib/components/UserProfileForm/UserProfileForm.cjs +1 -1
  46. package/src/lib/components/UserProfileForm/UserProfileForm.js +1 -1
  47. package/src/lib/context/DynamicContext/DynamicContext.cjs +9 -9
  48. package/src/lib/context/DynamicContext/DynamicContext.js +9 -9
  49. package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.cjs +13 -0
  50. package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.d.ts +1 -1
  51. package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.js +13 -0
  52. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +31 -7
  53. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +31 -7
  54. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +3 -1
  55. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +3 -1
  56. package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +7 -20
  57. package/src/lib/layout/DynamicAuthLayout/Header/header.js +7 -20
  58. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +6 -4
  59. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +6 -4
  60. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -2
  61. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -2
  62. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -1
  63. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -1
  64. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -1
  65. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -1
  66. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -1
  67. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -1
  68. package/src/lib/locale/en/translation.cjs +13 -1
  69. package/src/lib/locale/en/translation.js +13 -1
  70. package/src/lib/main.global.cjs +1 -1
  71. package/src/lib/main.global.js +1 -1
  72. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +2 -2
  73. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +2 -2
  74. package/src/lib/shared/assets/arrow-left.cjs +53 -0
  75. package/src/lib/shared/assets/arrow-left.js +29 -0
  76. package/src/lib/shared/assets/arrow-right-circle.cjs +53 -0
  77. package/src/lib/shared/assets/arrow-right-circle.js +29 -0
  78. package/src/lib/shared/assets/check-connection.cjs +53 -0
  79. package/src/lib/shared/assets/check-connection.js +29 -0
  80. package/src/lib/shared/assets/index.d.ts +3 -0
  81. package/src/lib/styles/index.shadow.cjs +1 -1
  82. package/src/lib/styles/index.shadow.js +1 -1
  83. package/src/lib/utils/constants/index.d.ts +1 -1
  84. package/src/lib/utils/constants/typography.d.ts +0 -1
  85. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +22 -5
  86. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +2 -0
  87. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +22 -5
  88. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +43 -25
  89. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +3 -2
  90. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +43 -25
  91. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +24 -0
  92. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +24 -0
  93. package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +2 -4
  94. package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +2 -4
  95. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +2 -2
  96. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +2 -2
  97. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +1 -1
  98. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +1 -1
  99. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -1
  100. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -1
  101. package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +12 -5
  102. package/src/lib/views/CollectUserDataView/CollectUserDataView.js +12 -5
  103. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -1
  104. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -1
  105. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +3 -1
  106. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +3 -1
  107. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -1
  108. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -1
  109. package/src/lib/views/EmailUpdate/EmailUpdate.cjs +6 -7
  110. package/src/lib/views/EmailUpdate/EmailUpdate.js +7 -8
  111. package/src/lib/views/EmailVerification/EmailVerification.cjs +12 -18
  112. package/src/lib/views/EmailVerification/EmailVerification.js +13 -19
  113. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -3
  114. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -3
  115. package/src/lib/views/LoginView/LoginView.cjs +3 -5
  116. package/src/lib/views/LoginView/LoginView.js +4 -6
  117. package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +2 -2
  118. package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +2 -2
  119. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +1 -1
  120. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +1 -1
  121. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +4 -1
  122. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +4 -1
  123. package/src/lib/views/NoAccess/NoAccess.cjs +1 -1
  124. package/src/lib/views/NoAccess/NoAccess.js +1 -1
  125. package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -3
  126. package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -3
  127. package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +5 -6
  128. package/src/lib/views/PendingSignatureView/PendingSignatureView.js +5 -6
  129. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +5 -2
  130. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +2 -1
  131. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +5 -2
  132. package/src/lib/views/QrCodeView/QrCodeView.cjs +22 -23
  133. package/src/lib/views/QrCodeView/QrCodeView.js +23 -24
  134. package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -1
  135. package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -1
  136. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -1
  137. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -1
  138. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -1
  139. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -1
  140. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -1
  141. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -1
  142. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +1 -1
  143. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +1 -1
  144. package/src/lib/views/WalletList/WalletList.cjs +7 -3
  145. package/src/lib/views/WalletList/WalletList.js +8 -4
  146. package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -1
  147. package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -1
  148. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +2 -2
  149. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +2 -2
  150. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -1
  151. package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -1
  152. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +1 -1
  153. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -1
  154. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +1 -1
  155. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +1 -1
  156. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +2 -2
  157. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +2 -2
  158. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +2 -2
  159. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +2 -2
  160. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -1
  161. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -1
  162. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -1
  163. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -1
  164. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -1
  165. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -1
  166. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -1
  167. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -1
  168. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +2 -2
  169. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +2 -2
  170. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +2 -2
  171. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +2 -2
@@ -118,7 +118,7 @@ const MergeUserAccountsView = () => {
118
118
  cutStart: 2,
119
119
  }) })] })] }), jsxRuntime.jsx(Typography.Typography, { weight: 'regular', variant: 'title', className: 'merge-user-accounts__text merge-user-accounts__text__header', children: "Would you like to link this wallet to this existing account?" }), jsxRuntime.jsxs(Typography.Typography, { weight: 'medium', variant: 'body_normal', className: 'merge-user-accounts__text merge-user-accounts__text__body', children: ["An account already exists that uses", ' ', jsxRuntime.jsx("span", { className: 'merge-user-accounts__text--bold', children: shortenEmail.shortenEmail(email, {
120
120
  breakpoint: 14,
121
- }) }), ' ', "email."] }), jsxRuntime.jsxs("div", { className: 'merge-user-accounts__buttons', children: [jsxRuntime.jsx(Button.Button, { className: 'merge-user-accounts__buttons__button', onClick: handleMergeUserAccounts, buttonVariant: 'primary', buttonPadding: 'large', buttonRounded: 'default', children: "Yes, link to existing account" }), jsxRuntime.jsx(Button.Button, { className: 'merge-user-accounts__buttons__button', onClick: handleUseDifferentEmail, buttonVariant: 'secondary', buttonPadding: 'large', buttonRounded: 'default', children: "No, I'll use a different email" })] })] }));
121
+ }) }), ' ', "email."] }), jsxRuntime.jsxs("div", { className: 'merge-user-accounts__buttons', children: [jsxRuntime.jsx(Button.Button, { className: 'merge-user-accounts__buttons__button', onClick: handleMergeUserAccounts, buttonVariant: 'primary', buttonPadding: 'large', children: "Yes, link to existing account" }), jsxRuntime.jsx(Button.Button, { className: 'merge-user-accounts__buttons__button', onClick: handleUseDifferentEmail, buttonVariant: 'secondary', buttonPadding: 'large', children: "No, I'll use a different email" })] })] }));
122
122
  };
123
123
 
124
124
  exports.MergeUserAccountsView = MergeUserAccountsView;
@@ -114,7 +114,7 @@ const MergeUserAccountsView = () => {
114
114
  cutStart: 2,
115
115
  }) })] })] }), jsx(Typography, { weight: 'regular', variant: 'title', className: 'merge-user-accounts__text merge-user-accounts__text__header', children: "Would you like to link this wallet to this existing account?" }), jsxs(Typography, { weight: 'medium', variant: 'body_normal', className: 'merge-user-accounts__text merge-user-accounts__text__body', children: ["An account already exists that uses", ' ', jsx("span", { className: 'merge-user-accounts__text--bold', children: shortenEmail(email, {
116
116
  breakpoint: 14,
117
- }) }), ' ', "email."] }), jsxs("div", { className: 'merge-user-accounts__buttons', children: [jsx(Button, { className: 'merge-user-accounts__buttons__button', onClick: handleMergeUserAccounts, buttonVariant: 'primary', buttonPadding: 'large', buttonRounded: 'default', children: "Yes, link to existing account" }), jsx(Button, { className: 'merge-user-accounts__buttons__button', onClick: handleUseDifferentEmail, buttonVariant: 'secondary', buttonPadding: 'large', buttonRounded: 'default', children: "No, I'll use a different email" })] })] }));
117
+ }) }), ' ', "email."] }), jsxs("div", { className: 'merge-user-accounts__buttons', children: [jsx(Button, { className: 'merge-user-accounts__buttons__button', onClick: handleMergeUserAccounts, buttonVariant: 'primary', buttonPadding: 'large', children: "Yes, link to existing account" }), jsx(Button, { className: 'merge-user-accounts__buttons__button', onClick: handleUseDifferentEmail, buttonVariant: 'secondary', buttonPadding: 'large', children: "No, I'll use a different email" })] })] }));
118
118
  };
119
119
 
120
120
  export { MergeUserAccountsView };
@@ -23,6 +23,7 @@ require('@dynamic-labs/multi-wallet');
23
23
  var isSupportedNetwork = require('../../utils/functions/isSupportedNetwork/isSupportedNetwork.cjs');
24
24
  require('../../components/ShadowDOM/ShadowDOM.cjs');
25
25
  require('../../context/ThemeContext/ThemeContext.cjs');
26
+ var classNames = require('../../utils/functions/classNames/classNames.cjs');
26
27
  require('react-dom');
27
28
  require('react-focus-lock');
28
29
  require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
@@ -112,7 +113,9 @@ const NetworkNotSupported = () => {
112
113
  });
113
114
  const evmNetworks = walletConnector.evmNetworks || [];
114
115
  const _isSupportedNetwork = isSupportedNetwork.isSupportedNetwork({ network, walletConnector });
115
- return (jsxRuntime.jsxs("div", { 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, { variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported', children: t('dyn_network_not_supported.warning_message') })), jsxRuntime.jsxs("div", { className: 'network-not-supported__content-container', children: [jsxRuntime.jsx("div", { 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", { 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", { className: 'network-not-supported__welcome-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'network-not-supported__welcome-title', children: t('dyn_network_not_supported.title') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_network_not_supported.subtitle') })] }), 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] }))] })] }));
116
+ return (jsxRuntime.jsxs("div", { 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, { variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported', children: t('dyn_network_not_supported.warning_message') })), jsxRuntime.jsxs("div", { className: classNames.classNames('network-not-supported__content-container', {
117
+ 'network-not-supported__content-container--error': !_isSupportedNetwork,
118
+ }), children: [jsxRuntime.jsx("div", { 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", { 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.jsx("div", { className: 'network-not-supported__welcome-container', children: jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_network_not_supported.subtitle') }) }), 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] }))] })] }));
116
119
  };
117
120
 
118
121
  exports.NetworkNotSupported = NetworkNotSupported;
@@ -19,6 +19,7 @@ import '@dynamic-labs/multi-wallet';
19
19
  import { isSupportedNetwork } from '../../utils/functions/isSupportedNetwork/isSupportedNetwork.js';
20
20
  import '../../components/ShadowDOM/ShadowDOM.js';
21
21
  import '../../context/ThemeContext/ThemeContext.js';
22
+ import { classNames } from '../../utils/functions/classNames/classNames.js';
22
23
  import 'react-dom';
23
24
  import 'react-focus-lock';
24
25
  import '../../components/Transition/ZoomTransition/ZoomTransition.js';
@@ -108,7 +109,9 @@ const NetworkNotSupported = () => {
108
109
  });
109
110
  const evmNetworks = walletConnector.evmNetworks || [];
110
111
  const _isSupportedNetwork = isSupportedNetwork({ network, walletConnector });
111
- return (jsxs("div", { 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, { variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported', children: t('dyn_network_not_supported.warning_message') })), jsxs("div", { className: 'network-not-supported__content-container', children: [jsx("div", { className: 'network-not-supported__img-container', children: jsx(WalletIcon, { style: { height: 64, width: 64 }, walletKey: walletConnector.key }) }), jsx(UserAddress, { walletConnector: walletConnector }), jsx("div", { 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", { className: 'network-not-supported__welcome-container', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'network-not-supported__welcome-title', children: t('dyn_network_not_supported.title') }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_network_not_supported.subtitle') })] }), evmNetworks.length === 1 && (jsx(SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] })] }));
112
+ return (jsxs("div", { 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, { variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported', children: t('dyn_network_not_supported.warning_message') })), jsxs("div", { className: classNames('network-not-supported__content-container', {
113
+ 'network-not-supported__content-container--error': !_isSupportedNetwork,
114
+ }), children: [jsx("div", { className: 'network-not-supported__img-container', children: jsx(WalletIcon, { style: { height: 64, width: 64 }, walletKey: walletConnector.key }) }), jsx(UserAddress, { walletConnector: walletConnector }), jsx("div", { 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' })) }), jsx("div", { className: 'network-not-supported__welcome-container', children: jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_network_not_supported.subtitle') }) }), evmNetworks.length === 1 && (jsx(SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] })] }));
112
115
  };
113
116
 
114
117
  export { NetworkNotSupported };
@@ -93,7 +93,7 @@ const NoAccess = () => {
93
93
  const emailOrAddress = email !== null && email !== void 0 ? email : formattedAddress;
94
94
  const showNoInTheListImage = Boolean(notInTheListImageUrl) && (isAccessListView || isGateBlockedView);
95
95
  const showSocialMediaIcon = SocialMediaIcon && (isAccessListView || isGateBlockedView);
96
- return (jsxRuntime.jsxs("div", { className: 'wallet-no-access__container', children: [showNoInTheListImage && (jsxRuntime.jsx("img", { src: notInTheListImageUrl, alt: 'user is not in the list', className: 'wallet-no-access__image' })), jsxRuntime.jsxs("div", { className: 'wallet-no-access__main', children: [jsxRuntime.jsxs("div", { className: 'wallet-no-access__user-info-container', children: [Icon, jsxRuntime.jsxs("div", { "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container', children: [walletConnector && (jsxRuntime.jsx(StatusDot.StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address', children: emailOrAddress })] })] }), jsxRuntime.jsxs("div", { className: 'wallet-no-access__content', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary', children: title }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary', children: subtitle })] }), jsxRuntime.jsx(Button.Button, { onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonRounded: 'default', buttonPadding: 'large', children: buttonTitle }), _socialMediaUrl && _socialMediaLinkText && (jsxRuntime.jsxs("div", { className: 'wallet-no-access__social-info-container', children: [jsxRuntime.jsxs("a", { href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'button_primary', color: 'primary', children: _socialMediaLinkText }), showSocialMediaIcon && (jsxRuntime.jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
96
+ return (jsxRuntime.jsxs("div", { className: 'wallet-no-access__container', children: [showNoInTheListImage && (jsxRuntime.jsx("img", { src: notInTheListImageUrl, alt: 'user is not in the list', className: 'wallet-no-access__image' })), jsxRuntime.jsxs("div", { className: 'wallet-no-access__main', children: [jsxRuntime.jsxs("div", { className: 'wallet-no-access__user-info-container', children: [Icon, jsxRuntime.jsxs("div", { "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container', children: [walletConnector && (jsxRuntime.jsx(StatusDot.StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address', children: emailOrAddress })] })] }), jsxRuntime.jsxs("div", { className: 'wallet-no-access__content', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary', children: title }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary', children: subtitle })] }), jsxRuntime.jsx(Button.Button, { onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonPadding: 'large', children: buttonTitle }), _socialMediaUrl && _socialMediaLinkText && (jsxRuntime.jsxs("div", { className: 'wallet-no-access__social-info-container', children: [jsxRuntime.jsxs("a", { href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'button_primary', color: 'primary', children: _socialMediaLinkText }), showSocialMediaIcon && (jsxRuntime.jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
97
97
  height: pixelToRem.pixelToRem(24),
98
98
  width: pixelToRem.pixelToRem(24),
99
99
  } }))] }), typeof socialMediaIconUrl === 'string' && (jsxRuntime.jsx("img", { alt: 'social media', src: socialMediaIconUrl, style: {
@@ -89,7 +89,7 @@ const NoAccess = () => {
89
89
  const emailOrAddress = email !== null && email !== void 0 ? email : formattedAddress;
90
90
  const showNoInTheListImage = Boolean(notInTheListImageUrl) && (isAccessListView || isGateBlockedView);
91
91
  const showSocialMediaIcon = SocialMediaIcon && (isAccessListView || isGateBlockedView);
92
- return (jsxs("div", { className: 'wallet-no-access__container', children: [showNoInTheListImage && (jsx("img", { src: notInTheListImageUrl, alt: 'user is not in the list', className: 'wallet-no-access__image' })), jsxs("div", { className: 'wallet-no-access__main', children: [jsxs("div", { className: 'wallet-no-access__user-info-container', children: [Icon, jsxs("div", { "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container', children: [walletConnector && (jsx(StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address', children: emailOrAddress })] })] }), jsxs("div", { className: 'wallet-no-access__content', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary', children: title }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary', children: subtitle })] }), jsx(Button, { onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonRounded: 'default', buttonPadding: 'large', children: buttonTitle }), _socialMediaUrl && _socialMediaLinkText && (jsxs("div", { className: 'wallet-no-access__social-info-container', children: [jsxs("a", { href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link', children: [jsx(Typography, { variant: 'button_primary', color: 'primary', children: _socialMediaLinkText }), showSocialMediaIcon && (jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
92
+ return (jsxs("div", { className: 'wallet-no-access__container', children: [showNoInTheListImage && (jsx("img", { src: notInTheListImageUrl, alt: 'user is not in the list', className: 'wallet-no-access__image' })), jsxs("div", { className: 'wallet-no-access__main', children: [jsxs("div", { className: 'wallet-no-access__user-info-container', children: [Icon, jsxs("div", { "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container', children: [walletConnector && (jsx(StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address', children: emailOrAddress })] })] }), jsxs("div", { className: 'wallet-no-access__content', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary', children: title }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary', children: subtitle })] }), jsx(Button, { onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonPadding: 'large', children: buttonTitle }), _socialMediaUrl && _socialMediaLinkText && (jsxs("div", { className: 'wallet-no-access__social-info-container', children: [jsxs("a", { href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link', children: [jsx(Typography, { variant: 'button_primary', color: 'primary', children: _socialMediaLinkText }), showSocialMediaIcon && (jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
93
93
  height: pixelToRem(24),
94
94
  width: pixelToRem(24),
95
95
  } }))] }), typeof socialMediaIconUrl === 'string' && (jsx("img", { alt: 'social media', src: socialMediaIconUrl, style: {
@@ -53,7 +53,6 @@ require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
53
53
  require('formik');
54
54
  require('yup');
55
55
  require('../../components/IconButton/IconButton.cjs');
56
- var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
57
56
  require('../../components/Alert/Alert.cjs');
58
57
  require('../../components/Popper/Popper/Popper.cjs');
59
58
  require('../../components/Popper/PopperContext/PopperContext.cjs');
@@ -67,9 +66,9 @@ const PendingConnectView = () => {
67
66
  height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
68
67
  width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
69
68
  } }));
70
- return (jsxRuntime.jsxs("div", { className: 'pending-connect__container', children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true }), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', className: 'pending-connect__title', children: "Connecting to your wallet" }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', className: 'pending-connect__copy-text', children: utils.isMobile()
69
+ return (jsxRuntime.jsxs("div", { className: 'pending-connect__container', children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true, className: 'pending-connect__icon-with-spinner' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', className: 'pending-connect__copy-text', children: utils.isMobile()
71
70
  ? 'Click connect in your mobile wallet'
72
- : 'Click connect in your wallet popup' }), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'pending-connect__powered-by' })] }));
71
+ : 'Click connect in your wallet popup' })] }));
73
72
  };
74
73
 
75
74
  exports.PendingConnectView = PendingConnectView;
@@ -49,7 +49,6 @@ import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
49
49
  import 'formik';
50
50
  import 'yup';
51
51
  import '../../components/IconButton/IconButton.js';
52
- import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
53
52
  import '../../components/Alert/Alert.js';
54
53
  import '../../components/Popper/Popper/Popper.js';
55
54
  import '../../components/Popper/PopperContext/PopperContext.js';
@@ -63,9 +62,9 @@ const PendingConnectView = () => {
63
62
  height: pixelToRem(iconSize * iconRatio),
64
63
  width: pixelToRem(iconSize * iconRatio),
65
64
  } }));
66
- return (jsxs("div", { className: 'pending-connect__container', children: [jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true }), jsx(Typography, { weight: 'medium', variant: 'title', className: 'pending-connect__title', children: "Connecting to your wallet" }), jsx(Typography, { variant: 'body_normal', weight: 'regular', className: 'pending-connect__copy-text', children: isMobile()
65
+ return (jsxs("div", { className: 'pending-connect__container', children: [jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true, className: 'pending-connect__icon-with-spinner' }), jsx(Typography, { variant: 'body_normal', weight: 'regular', className: 'pending-connect__copy-text', children: isMobile()
67
66
  ? 'Click connect in your mobile wallet'
68
- : 'Click connect in your wallet popup' }), jsx(PoweredByDynamic, { classNameRoot: 'pending-connect__powered-by' })] }));
67
+ : 'Click connect in your wallet popup' })] }));
69
68
  };
70
69
 
71
70
  export { PendingConnectView };
@@ -58,7 +58,6 @@ require('formik');
58
58
  require('yup');
59
59
  var Button = require('../../components/Button/Button.cjs');
60
60
  require('../../components/IconButton/IconButton.cjs');
61
- var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
62
61
  require('../../components/Alert/Alert.cjs');
63
62
  require('../../components/Popper/Popper/Popper.cjs');
64
63
  require('../../components/Popper/PopperContext/PopperContext.cjs');
@@ -69,7 +68,7 @@ const PendingSignatureView = () => {
69
68
  const [loading, setLoading] = React.useState(false);
70
69
  const { selectedWalletConnector: walletConnector } = useInternalDynamicContext.useInternalDynamicContext();
71
70
  const { signAlreadyConnectedUser } = useConnectAndSignSplitSteps.useConnectAndSignSplitSteps();
72
- const iconSize = 100;
71
+ const iconSize = 96;
73
72
  /**
74
73
  * The following check on Phantom+Ledger will be fixed in a future ticket.
75
74
  */
@@ -94,12 +93,12 @@ const PendingSignatureView = () => {
94
93
  width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
95
94
  } }));
96
95
  const typographyBodyCopy = isPhantomLedger
97
- ? "We need your signature to confirm you own this wallet (this doesn't cost gas). Click sign in your wallet to log in."
98
- : 'We need your signature to confirm you own this wallet. Click sign in your wallet to log in.';
99
- return (jsxRuntime.jsxs("div", { className: 'pending-signature__container', "data-testid": 'pending-signature-view', children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true, indicator: 'connected' }), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', className: classNames.classNames('pending-signature__title'), children: "Requesting signature" }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', className: classNames.classNames('pending-signature__copy'), children: typographyBodyCopy }), isPhantomLedger && (jsxRuntime.jsxs(Typography.Typography, { variant: 'body_small', weight: 'regular', className: classNames.classNames('pending-signature__copy', 'pending-signature__copy--mini'), children: [jsxRuntime.jsx("strong", { children: "Note:" }), " Ledger with Phantom doesn\u2019t support message signing. When logging in, a small fee (which should not apply) may appear. See below to learn more."] })), requiresTwoStepAuthentication.requiresTwoStepAuthentication(walletConnector) && (jsxRuntime.jsx(Button.Button, { buttonClassName: 'pending-signature__button', onClick: handleClick, loading: loading, buttonRounded: 'medium', buttonVariant: 'primary', buttonPadding: 'large', expanded: true, typographyProps: {
96
+ ? "Click sign in your wallet to confirm you own this wallet (this doesn't cost gas)."
97
+ : 'Click sign in your wallet to confirm you own this wallet.';
98
+ return (jsxRuntime.jsxs("div", { className: 'pending-signature__container', "data-testid": 'pending-signature-view', children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true, indicator: 'connected', className: 'pending-signature__icon-with-spinner' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', className: classNames.classNames('pending-signature__copy'), children: typographyBodyCopy }), isPhantomLedger && (jsxRuntime.jsxs(Typography.Typography, { variant: 'body_small', weight: 'regular', className: classNames.classNames('pending-signature__copy', 'pending-signature__copy--mini'), children: [jsxRuntime.jsx("strong", { children: "Note:" }), " Ledger with Phantom doesn\u2019t support message signing. When logging in, a small fee (which should not apply) may appear. See below to learn more."] })), requiresTwoStepAuthentication.requiresTwoStepAuthentication(walletConnector) && (jsxRuntime.jsx(Button.Button, { buttonClassName: 'pending-signature__button', onClick: handleClick, loading: loading, buttonVariant: 'primary', buttonPadding: 'large', expanded: true, typographyProps: {
100
99
  variant: 'button_primary',
101
100
  weight: 'medium',
102
- }, children: "Click to Sign" })), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'pending-signature__powered-by' })] }));
101
+ }, children: "Click to Sign" }))] }));
103
102
  };
104
103
 
105
104
  exports.PendingSignatureView = PendingSignatureView;
@@ -54,7 +54,6 @@ import 'formik';
54
54
  import 'yup';
55
55
  import { Button } from '../../components/Button/Button.js';
56
56
  import '../../components/IconButton/IconButton.js';
57
- import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
58
57
  import '../../components/Alert/Alert.js';
59
58
  import '../../components/Popper/Popper/Popper.js';
60
59
  import '../../components/Popper/PopperContext/PopperContext.js';
@@ -65,7 +64,7 @@ const PendingSignatureView = () => {
65
64
  const [loading, setLoading] = useState(false);
66
65
  const { selectedWalletConnector: walletConnector } = useInternalDynamicContext();
67
66
  const { signAlreadyConnectedUser } = useConnectAndSignSplitSteps();
68
- const iconSize = 100;
67
+ const iconSize = 96;
69
68
  /**
70
69
  * The following check on Phantom+Ledger will be fixed in a future ticket.
71
70
  */
@@ -90,12 +89,12 @@ const PendingSignatureView = () => {
90
89
  width: pixelToRem(iconSize * iconRatio),
91
90
  } }));
92
91
  const typographyBodyCopy = isPhantomLedger
93
- ? "We need your signature to confirm you own this wallet (this doesn't cost gas). Click sign in your wallet to log in."
94
- : 'We need your signature to confirm you own this wallet. Click sign in your wallet to log in.';
95
- return (jsxs("div", { className: 'pending-signature__container', "data-testid": 'pending-signature-view', children: [jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true, indicator: 'connected' }), jsx(Typography, { weight: 'medium', variant: 'title', className: classNames('pending-signature__title'), children: "Requesting signature" }), jsx(Typography, { variant: 'body_normal', weight: 'regular', className: classNames('pending-signature__copy'), children: typographyBodyCopy }), isPhantomLedger && (jsxs(Typography, { variant: 'body_small', weight: 'regular', className: classNames('pending-signature__copy', 'pending-signature__copy--mini'), children: [jsx("strong", { children: "Note:" }), " Ledger with Phantom doesn\u2019t support message signing. When logging in, a small fee (which should not apply) may appear. See below to learn more."] })), requiresTwoStepAuthentication(walletConnector) && (jsx(Button, { buttonClassName: 'pending-signature__button', onClick: handleClick, loading: loading, buttonRounded: 'medium', buttonVariant: 'primary', buttonPadding: 'large', expanded: true, typographyProps: {
92
+ ? "Click sign in your wallet to confirm you own this wallet (this doesn't cost gas)."
93
+ : 'Click sign in your wallet to confirm you own this wallet.';
94
+ return (jsxs("div", { className: 'pending-signature__container', "data-testid": 'pending-signature-view', children: [jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true, indicator: 'connected', className: 'pending-signature__icon-with-spinner' }), jsx(Typography, { variant: 'body_normal', weight: 'regular', className: classNames('pending-signature__copy'), children: typographyBodyCopy }), isPhantomLedger && (jsxs(Typography, { variant: 'body_small', weight: 'regular', className: classNames('pending-signature__copy', 'pending-signature__copy--mini'), children: [jsx("strong", { children: "Note:" }), " Ledger with Phantom doesn\u2019t support message signing. When logging in, a small fee (which should not apply) may appear. See below to learn more."] })), requiresTwoStepAuthentication(walletConnector) && (jsx(Button, { buttonClassName: 'pending-signature__button', onClick: handleClick, loading: loading, buttonVariant: 'primary', buttonPadding: 'large', expanded: true, typographyProps: {
96
95
  variant: 'button_primary',
97
96
  weight: 'medium',
98
- }, children: "Click to Sign" })), jsx(PoweredByDynamic, { classNameRoot: 'pending-signature__powered-by' })] }));
97
+ }, children: "Click to Sign" }))] }));
99
98
  };
100
99
 
101
100
  export { PendingSignatureView };
@@ -24,6 +24,7 @@ require('../../../context/DynamicContext/DynamicContext.cjs');
24
24
  require('@dynamic-labs/multi-wallet');
25
25
  require('../../../components/ShadowDOM/ShadowDOM.cjs');
26
26
  require('../../../context/ThemeContext/ThemeContext.cjs');
27
+ var classNames = require('../../../utils/functions/classNames/classNames.cjs');
27
28
  var Icon = require('../../../components/Icon/Icon.cjs');
28
29
  require('react-dom');
29
30
  require('react-focus-lock');
@@ -63,10 +64,12 @@ require('../../../components/Popper/PopperContext/PopperContext.cjs');
63
64
  require('../../../components/InlineWidget/InlineWidget.cjs');
64
65
  require('../../../components/MenuList/Dropdown/Dropdown.cjs');
65
66
 
66
- const QrCodeContainer = ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, }) => (jsxRuntime.jsxs("div", { className: 'qrcode-container__container', children: [jsxRuntime.jsxs("div", { className: 'qrcode-container__top', children: [qrcodeValue ? (jsxRuntime.jsx(QRCode.QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50, walletKey: walletKey })) : (
67
+ const QrCodeContainer = ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, showQrCodeMessage, }) => (jsxRuntime.jsxs("div", { className: classNames.classNames('qrcode-container__container', {
68
+ 'qrcode-container__container--message': showQrCodeMessage,
69
+ }), children: [jsxRuntime.jsxs("div", { className: 'qrcode-container__top', children: [qrcodeValue ? (jsxRuntime.jsx(QRCode.QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50, walletKey: walletKey })) : (
67
70
  // this div exists to give the parent a child, so that the parent
68
71
  // takes on its given width and height. the result is stable
69
72
  // rendering of this component, without this there is a brief flash
70
- jsxRuntime.jsx("div", {})), jsxRuntime.jsx(MockedQrCode.MockedQrCode, {}), ((showCopyToClipboardButton && qrcodeValue) || desktopUri) && (jsxRuntime.jsxs("div", { className: 'button-container', children: [showCopyToClipboardButton && qrcodeValue && (jsxRuntime.jsx(CopyButton.CopyButton, { textToCopy: qrcodeValue, children: jsxRuntime.jsxs("div", { className: 'button__content', children: [jsxRuntime.jsx(Icon.Icon, { size: 'small', color: 'text-tertiary', children: jsxRuntime.jsx(link.ReactComponent, {}) }), "Copy QR URI"] }) })), desktopUri && (jsxRuntime.jsxs(TextButton.TextButton, { className: 'desktop-button', onClick: () => window.open(desktopUri), children: [jsxRuntime.jsx(Icon.Icon, { size: 'xsmall', color: 'text-tertiary', children: jsxRuntime.jsx(externalLink.ReactComponent, {}) }), "Open ", walletName, " App"] }))] }))] }), jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', children: "Connect to your wallet" }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'qrcode-container__content', children: "Scan this QR code from your mobile wallet or phone's camera to connect." })] }));
73
+ jsxRuntime.jsx("div", {})), jsxRuntime.jsx(MockedQrCode.MockedQrCode, {}), ((showCopyToClipboardButton && qrcodeValue) || desktopUri) && (jsxRuntime.jsxs("div", { className: 'button-container', children: [showCopyToClipboardButton && qrcodeValue && (jsxRuntime.jsx(CopyButton.CopyButton, { textToCopy: qrcodeValue, children: jsxRuntime.jsxs("div", { className: 'button__content', children: [jsxRuntime.jsx(Icon.Icon, { size: 'small', color: 'text-tertiary', children: jsxRuntime.jsx(link.ReactComponent, {}) }), "Copy QR URI"] }) })), desktopUri && (jsxRuntime.jsxs(TextButton.TextButton, { className: 'desktop-button', onClick: () => window.open(desktopUri), children: [jsxRuntime.jsx(Icon.Icon, { size: 'xsmall', color: 'text-tertiary', children: jsxRuntime.jsx(externalLink.ReactComponent, {}) }), "Open ", walletName, " App"] }))] }))] }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'qrcode-container__content', children: "Scan this QR code from your mobile wallet or phone's camera to connect." })] }));
71
74
 
72
75
  exports.QrCodeContainer = QrCodeContainer;
@@ -7,6 +7,7 @@ type QrCodeContainerProps = {
7
7
  showCopyToClipboardButton?: boolean;
8
8
  walletKey: string;
9
9
  walletName: string;
10
+ showQrCodeMessage: boolean;
10
11
  };
11
- export declare const QrCodeContainer: ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton, desktopUri, }: QrCodeContainerProps) => JSX.Element;
12
+ export declare const QrCodeContainer: ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton, desktopUri, showQrCodeMessage, }: QrCodeContainerProps) => JSX.Element;
12
13
  export {};
@@ -20,6 +20,7 @@ import '../../../context/DynamicContext/DynamicContext.js';
20
20
  import '@dynamic-labs/multi-wallet';
21
21
  import '../../../components/ShadowDOM/ShadowDOM.js';
22
22
  import '../../../context/ThemeContext/ThemeContext.js';
23
+ import { classNames } from '../../../utils/functions/classNames/classNames.js';
23
24
  import { Icon } from '../../../components/Icon/Icon.js';
24
25
  import 'react-dom';
25
26
  import 'react-focus-lock';
@@ -59,10 +60,12 @@ import '../../../components/Popper/PopperContext/PopperContext.js';
59
60
  import '../../../components/InlineWidget/InlineWidget.js';
60
61
  import '../../../components/MenuList/Dropdown/Dropdown.js';
61
62
 
62
- const QrCodeContainer = ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, }) => (jsxs("div", { className: 'qrcode-container__container', children: [jsxs("div", { className: 'qrcode-container__top', children: [qrcodeValue ? (jsx(QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50, walletKey: walletKey })) : (
63
+ const QrCodeContainer = ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, showQrCodeMessage, }) => (jsxs("div", { className: classNames('qrcode-container__container', {
64
+ 'qrcode-container__container--message': showQrCodeMessage,
65
+ }), children: [jsxs("div", { className: 'qrcode-container__top', children: [qrcodeValue ? (jsx(QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50, walletKey: walletKey })) : (
63
66
  // this div exists to give the parent a child, so that the parent
64
67
  // takes on its given width and height. the result is stable
65
68
  // rendering of this component, without this there is a brief flash
66
- jsx("div", {})), jsx(MockedQrCode, {}), ((showCopyToClipboardButton && qrcodeValue) || desktopUri) && (jsxs("div", { className: 'button-container', children: [showCopyToClipboardButton && qrcodeValue && (jsx(CopyButton, { textToCopy: qrcodeValue, children: jsxs("div", { className: 'button__content', children: [jsx(Icon, { size: 'small', color: 'text-tertiary', children: jsx(SvgLink, {}) }), "Copy QR URI"] }) })), desktopUri && (jsxs(TextButton, { className: 'desktop-button', onClick: () => window.open(desktopUri), children: [jsx(Icon, { size: 'xsmall', color: 'text-tertiary', children: jsx(SvgExternalLink, {}) }), "Open ", walletName, " App"] }))] }))] }), jsx(Typography, { variant: 'title', color: 'primary', children: "Connect to your wallet" }), jsx(Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'qrcode-container__content', children: "Scan this QR code from your mobile wallet or phone's camera to connect." })] }));
69
+ jsx("div", {})), jsx(MockedQrCode, {}), ((showCopyToClipboardButton && qrcodeValue) || desktopUri) && (jsxs("div", { className: 'button-container', children: [showCopyToClipboardButton && qrcodeValue && (jsx(CopyButton, { textToCopy: qrcodeValue, children: jsxs("div", { className: 'button__content', children: [jsx(Icon, { size: 'small', color: 'text-tertiary', children: jsx(SvgLink, {}) }), "Copy QR URI"] }) })), desktopUri && (jsxs(TextButton, { className: 'desktop-button', onClick: () => window.open(desktopUri), children: [jsx(Icon, { size: 'xsmall', color: 'text-tertiary', children: jsx(SvgExternalLink, {}) }), "Open ", walletName, " App"] }))] }))] }), jsx(Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'qrcode-container__content', children: "Scan this QR code from your mobile wallet or phone's camera to connect." })] }));
67
70
 
68
71
  export { QrCodeContainer };
@@ -6,12 +6,13 @@ var jsxRuntime = require('react/jsx-runtime');
6
6
  var walletBook = require('@dynamic-labs/wallet-book');
7
7
  var ThemeContext = require('../../context/ThemeContext/ThemeContext.cjs');
8
8
  var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
9
- require('react');
9
+ var QrCodeContext = require('../../context/QrCodeContext/QrCodeContext.cjs');
10
10
  require('@dynamic-labs/sdk-api');
11
11
  require('../../shared/logger.cjs');
12
12
  require('@dynamic-labs/iconic');
13
13
  require('@dynamic-labs/wallet-connector-core');
14
14
  require('../../context/ViewContext/ViewContext.cjs');
15
+ require('react');
15
16
  require('@dynamic-labs/utils');
16
17
  require('../../utils/constants/colors.cjs');
17
18
  require('../../shared/utils/classes/storage/localStorage.cjs');
@@ -19,22 +20,29 @@ require('viem');
19
20
  require('../../shared/consts/index.cjs');
20
21
  require('@dynamic-labs/multi-wallet');
21
22
  var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
22
- require('../../components/ShadowDOM/ShadowDOM.cjs');
23
- require('react-dom');
24
- require('react-focus-lock');
25
- require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
26
- require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
27
- require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
28
23
  require('../../config/ApiEndpoint.cjs');
29
24
  require('@dynamic-labs/rpc-providers');
30
25
  require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
31
26
  require('../../context/ErrorContext/ErrorContext.cjs');
32
27
  require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
33
28
  require('../../context/AccountExistsContext/AccountExistsContext.cjs');
29
+ require('react-dom');
30
+ require('../../components/ShadowDOM/ShadowDOM.cjs');
31
+ require('react-focus-lock');
32
+ require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
33
+ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
34
+ require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
35
+ require('../../components/IconButton/IconButton.cjs');
36
+ require('../../components/Alert/Alert.cjs');
37
+ require('../../components/Popper/Popper/Popper.cjs');
38
+ require('../../components/Popper/PopperContext/PopperContext.cjs');
39
+ require('formik');
40
+ require('yup');
41
+ require('../../components/InlineWidget/InlineWidget.cjs');
42
+ require('../../components/MenuList/Dropdown/Dropdown.cjs');
34
43
  require('../../components/OverlayCard/OverlayCard.context.cjs');
35
44
  require('../../context/FooterAnimationContext/index.cjs');
36
45
  require('../../context/MockContext/MockContext.cjs');
37
- var QrCodeContext = require('../../context/QrCodeContext/QrCodeContext.cjs');
38
46
  require('react-i18next');
39
47
  require('../../context/WalletGroupContext/WalletGroupContext.cjs');
40
48
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
@@ -48,23 +56,14 @@ require('../../components/UserProfile/parts/UserProfileField/components/Verified
48
56
  require('@dynamic-labs/types');
49
57
  require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
50
58
  require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
51
- require('formik');
52
- require('yup');
53
- require('../../components/IconButton/IconButton.cjs');
54
- var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
55
- require('../../components/Alert/Alert.cjs');
56
59
  var useTimeout = require('../../utils/hooks/useTimeout/useTimeout.cjs');
57
- require('../../components/Popper/Popper/Popper.cjs');
58
- require('../../components/Popper/PopperContext/PopperContext.cjs');
59
- require('../../components/InlineWidget/InlineWidget.cjs');
60
- require('../../components/MenuList/Dropdown/Dropdown.cjs');
61
60
  var QrCodeContainer = require('./QrCodeContainer/QrCodeContainer.cjs');
62
61
 
63
62
  const QrCodeView = () => {
64
63
  var _a;
65
64
  const { theme: { theme }, } = ThemeContext.useThemeContext();
66
65
  const { name } = theme;
67
- const { setShowQrCodeMessage } = QrCodeContext.useQrCodeContext();
66
+ const { setShowQrCodeMessage, showQrCodeMessage } = QrCodeContext.useQrCodeContext();
68
67
  const { qrcodeUri, desktopUri, selectedWalletConnector: walletConnector, } = useInternalDynamicContext.useInternalDynamicContext();
69
68
  const { walletBook: walletBook$1 } = walletBook.useWalletBookContext();
70
69
  useTimeout.useTimeout(() => setShowQrCodeMessage(true), 5000);
@@ -72,11 +71,11 @@ const QrCodeView = () => {
72
71
  return null;
73
72
  }
74
73
  const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector.key, style: { height: pixelToRem.pixelToRem(32), width: pixelToRem.pixelToRem(32) } }));
75
- return (jsxRuntime.jsxs("div", { className: 'qr-code-view__container', "data-testid": 'qr-code-view', children: [jsxRuntime.jsx(QrCodeContainer.QrCodeContainer, { desktopUri: desktopUri, accentColor:
76
- /* istanbul ignore next */
77
- name === 'dark'
78
- ? theme.colors.textPrimary
79
- : (_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' })] }));
74
+ return (jsxRuntime.jsx("div", { className: 'qr-code-view__container', "data-testid": 'qr-code-view', children: jsxRuntime.jsx(QrCodeContainer.QrCodeContainer, { showQrCodeMessage: showQrCodeMessage, desktopUri: desktopUri, accentColor:
75
+ /* istanbul ignore next */
76
+ name === 'dark'
77
+ ? theme.colors.textPrimary
78
+ : (_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 }) }));
80
79
  };
81
80
 
82
81
  exports.QrCodeView = QrCodeView;
@@ -1,13 +1,14 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { useWalletBookContext, WalletIcon, getWalletPrimaryColor } from '@dynamic-labs/wallet-book';
3
3
  import { useThemeContext } from '../../context/ThemeContext/ThemeContext.js';
4
4
  import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
5
- import 'react';
5
+ import { useQrCodeContext } from '../../context/QrCodeContext/QrCodeContext.js';
6
6
  import '@dynamic-labs/sdk-api';
7
7
  import '../../shared/logger.js';
8
8
  import '@dynamic-labs/iconic';
9
9
  import '@dynamic-labs/wallet-connector-core';
10
10
  import '../../context/ViewContext/ViewContext.js';
11
+ import 'react';
11
12
  import '@dynamic-labs/utils';
12
13
  import '../../utils/constants/colors.js';
13
14
  import '../../shared/utils/classes/storage/localStorage.js';
@@ -15,22 +16,29 @@ import 'viem';
15
16
  import '../../shared/consts/index.js';
16
17
  import '@dynamic-labs/multi-wallet';
17
18
  import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
18
- import '../../components/ShadowDOM/ShadowDOM.js';
19
- import 'react-dom';
20
- import 'react-focus-lock';
21
- import '../../components/Transition/ZoomTransition/ZoomTransition.js';
22
- import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
23
- import '../../components/Transition/OpacityTransition/OpacityTransition.js';
24
19
  import '../../config/ApiEndpoint.js';
25
20
  import '@dynamic-labs/rpc-providers';
26
21
  import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
27
22
  import '../../context/ErrorContext/ErrorContext.js';
28
23
  import '../../context/AccessDeniedContext/AccessDeniedContext.js';
29
24
  import '../../context/AccountExistsContext/AccountExistsContext.js';
25
+ import 'react-dom';
26
+ import '../../components/ShadowDOM/ShadowDOM.js';
27
+ import 'react-focus-lock';
28
+ import '../../components/Transition/ZoomTransition/ZoomTransition.js';
29
+ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
30
+ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
31
+ import '../../components/IconButton/IconButton.js';
32
+ import '../../components/Alert/Alert.js';
33
+ import '../../components/Popper/Popper/Popper.js';
34
+ import '../../components/Popper/PopperContext/PopperContext.js';
35
+ import 'formik';
36
+ import 'yup';
37
+ import '../../components/InlineWidget/InlineWidget.js';
38
+ import '../../components/MenuList/Dropdown/Dropdown.js';
30
39
  import '../../components/OverlayCard/OverlayCard.context.js';
31
40
  import '../../context/FooterAnimationContext/index.js';
32
41
  import '../../context/MockContext/MockContext.js';
33
- import { useQrCodeContext } from '../../context/QrCodeContext/QrCodeContext.js';
34
42
  import 'react-i18next';
35
43
  import '../../context/WalletGroupContext/WalletGroupContext.js';
36
44
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
@@ -44,23 +52,14 @@ import '../../components/UserProfile/parts/UserProfileField/components/VerifiedE
44
52
  import '@dynamic-labs/types';
45
53
  import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
46
54
  import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
47
- import 'formik';
48
- import 'yup';
49
- import '../../components/IconButton/IconButton.js';
50
- import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
51
- import '../../components/Alert/Alert.js';
52
55
  import { useTimeout } from '../../utils/hooks/useTimeout/useTimeout.js';
53
- import '../../components/Popper/Popper/Popper.js';
54
- import '../../components/Popper/PopperContext/PopperContext.js';
55
- import '../../components/InlineWidget/InlineWidget.js';
56
- import '../../components/MenuList/Dropdown/Dropdown.js';
57
56
  import { QrCodeContainer } from './QrCodeContainer/QrCodeContainer.js';
58
57
 
59
58
  const QrCodeView = () => {
60
59
  var _a;
61
60
  const { theme: { theme }, } = useThemeContext();
62
61
  const { name } = theme;
63
- const { setShowQrCodeMessage } = useQrCodeContext();
62
+ const { setShowQrCodeMessage, showQrCodeMessage } = useQrCodeContext();
64
63
  const { qrcodeUri, desktopUri, selectedWalletConnector: walletConnector, } = useInternalDynamicContext();
65
64
  const { walletBook } = useWalletBookContext();
66
65
  useTimeout(() => setShowQrCodeMessage(true), 5000);
@@ -68,11 +67,11 @@ const QrCodeView = () => {
68
67
  return null;
69
68
  }
70
69
  const icon = (jsx(WalletIcon, { walletKey: walletConnector.key, style: { height: pixelToRem(32), width: pixelToRem(32) } }));
71
- return (jsxs("div", { className: 'qr-code-view__container', "data-testid": 'qr-code-view', children: [jsx(QrCodeContainer, { desktopUri: desktopUri, accentColor:
72
- /* istanbul ignore next */
73
- name === 'dark'
74
- ? theme.colors.textPrimary
75
- : (_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' })] }));
70
+ return (jsx("div", { className: 'qr-code-view__container', "data-testid": 'qr-code-view', children: jsx(QrCodeContainer, { showQrCodeMessage: showQrCodeMessage, desktopUri: desktopUri, accentColor:
71
+ /* istanbul ignore next */
72
+ name === 'dark'
73
+ ? theme.colors.textPrimary
74
+ : (_a = getWalletPrimaryColor(walletBook, walletConnector.key)) !== null && _a !== void 0 ? _a : '', walletKey: walletConnector.key, walletName: walletConnector.name, qrcodeValue: qrcodeUri, Icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect }) }));
76
75
  };
77
76
 
78
77
  export { QrCodeView };
@@ -37,6 +37,7 @@ require('../../context/FooterAnimationContext/index.cjs');
37
37
  require('../../context/MockContext/MockContext.cjs');
38
38
  require('../../context/QrCodeContext/QrCodeContext.cjs');
39
39
  require('react-i18next');
40
+ var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
40
41
  require('../../context/WalletGroupContext/WalletGroupContext.cjs');
41
42
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
42
43
  var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
@@ -53,7 +54,6 @@ require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
53
54
  require('formik');
54
55
  require('yup');
55
56
  require('../../components/IconButton/IconButton.cjs');
56
- var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
57
57
  require('../../components/Alert/Alert.cjs');
58
58
  var useFindSocialIcon = require('../../utils/hooks/useFindSocialIcon/useFindSocialIcon.cjs');
59
59
  require('../../components/Popper/Popper/Popper.cjs');
@@ -33,6 +33,7 @@ import '../../context/FooterAnimationContext/index.js';
33
33
  import '../../context/MockContext/MockContext.js';
34
34
  import '../../context/QrCodeContext/QrCodeContext.js';
35
35
  import 'react-i18next';
36
+ import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
36
37
  import '../../context/WalletGroupContext/WalletGroupContext.js';
37
38
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
38
39
  import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
@@ -49,7 +50,6 @@ import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
49
50
  import 'formik';
50
51
  import 'yup';
51
52
  import '../../components/IconButton/IconButton.js';
52
- import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
53
53
  import '../../components/Alert/Alert.js';
54
54
  import { useFindSocialIcon } from '../../utils/hooks/useFindSocialIcon/useFindSocialIcon.js';
55
55
  import '../../components/Popper/Popper/Popper.js';
@@ -68,7 +68,7 @@ const SocialWrongAccountView = () => {
68
68
  const findSocialIcon = useFindSocialIcon.useFindSocialIcon();
69
69
  if (!socialAccount || !socialWalletConnector)
70
70
  return null;
71
- return (jsxRuntime.jsxs("div", { className: classNames.classNames('social-wrong-account-view__container'), children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: findSocialIcon(socialAccount.oauthProvider), isSpinning: tryAgainClicked, iconSize: 64 }), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', className: classNames.classNames('social-wrong-account-view__title'), children: "Whoops. Wrong Account" }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', className: classNames.classNames('social-wrong-account-view__copy'), children: "You must connect with the same account you originally signed in with." }), jsxRuntime.jsxs(Typography.Typography, { variant: 'body_normal', weight: 'regular', className: classNames.classNames('social-wrong-account-view__copy'), children: ["Please connect with: ", jsxRuntime.jsx("b", { children: socialAccount.oauthUsername })] }), jsxRuntime.jsx(Button.Button, { buttonClassName: 'social-wrong-account-view__button', buttonRounded: 'medium', buttonVariant: 'primary', buttonPadding: 'large', expanded: true, typographyProps: {
71
+ return (jsxRuntime.jsxs("div", { className: classNames.classNames('social-wrong-account-view__container'), children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: findSocialIcon(socialAccount.oauthProvider), isSpinning: tryAgainClicked, iconSize: 64 }), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', className: classNames.classNames('social-wrong-account-view__title'), children: "Whoops. Wrong Account" }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', className: classNames.classNames('social-wrong-account-view__copy'), children: "You must connect with the same account you originally signed in with." }), jsxRuntime.jsxs(Typography.Typography, { variant: 'body_normal', weight: 'regular', className: classNames.classNames('social-wrong-account-view__copy'), children: ["Please connect with: ", jsxRuntime.jsx("b", { children: socialAccount.oauthUsername })] }), jsxRuntime.jsx(Button.Button, { buttonClassName: 'social-wrong-account-view__button', buttonVariant: 'primary', buttonPadding: 'large', expanded: true, typographyProps: {
72
72
  variant: 'button_primary',
73
73
  weight: 'medium',
74
74
  }, disabled: tryAgainClicked, onClick: () => {
@@ -64,7 +64,7 @@ const SocialWrongAccountView = () => {
64
64
  const findSocialIcon = useFindSocialIcon();
65
65
  if (!socialAccount || !socialWalletConnector)
66
66
  return null;
67
- return (jsxs("div", { className: classNames('social-wrong-account-view__container'), children: [jsx(IconWithSpinner, { Icon: findSocialIcon(socialAccount.oauthProvider), isSpinning: tryAgainClicked, iconSize: 64 }), jsx(Typography, { weight: 'medium', variant: 'title', className: classNames('social-wrong-account-view__title'), children: "Whoops. Wrong Account" }), jsx(Typography, { variant: 'body_normal', weight: 'regular', className: classNames('social-wrong-account-view__copy'), children: "You must connect with the same account you originally signed in with." }), jsxs(Typography, { variant: 'body_normal', weight: 'regular', className: classNames('social-wrong-account-view__copy'), children: ["Please connect with: ", jsx("b", { children: socialAccount.oauthUsername })] }), jsx(Button, { buttonClassName: 'social-wrong-account-view__button', buttonRounded: 'medium', buttonVariant: 'primary', buttonPadding: 'large', expanded: true, typographyProps: {
67
+ return (jsxs("div", { className: classNames('social-wrong-account-view__container'), children: [jsx(IconWithSpinner, { Icon: findSocialIcon(socialAccount.oauthProvider), isSpinning: tryAgainClicked, iconSize: 64 }), jsx(Typography, { weight: 'medium', variant: 'title', className: classNames('social-wrong-account-view__title'), children: "Whoops. Wrong Account" }), jsx(Typography, { variant: 'body_normal', weight: 'regular', className: classNames('social-wrong-account-view__copy'), children: "You must connect with the same account you originally signed in with." }), jsxs(Typography, { variant: 'body_normal', weight: 'regular', className: classNames('social-wrong-account-view__copy'), children: ["Please connect with: ", jsx("b", { children: socialAccount.oauthUsername })] }), jsx(Button, { buttonClassName: 'social-wrong-account-view__button', buttonVariant: 'primary', buttonPadding: 'large', expanded: true, typographyProps: {
68
68
  variant: 'button_primary',
69
69
  weight: 'medium',
70
70
  }, disabled: tryAgainClicked, onClick: () => {
@@ -89,7 +89,7 @@ const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess
89
89
  provider,
90
90
  transaction,
91
91
  });
92
- const { data: transactionToAddress, isLoading: isTransactionToAddressLoading, } = usePromise.usePromise(() => transaction.to);
92
+ const { data: transactionToAddress, isLoading: isTransactionToAddressLoading, } = usePromise.usePromise(() => { var _a; return (_a = transaction.to) === null || _a === void 0 ? void 0 : _a.toString(); });
93
93
  const { data: transactionFromAddress, isLoading: isTransactionFromAddressLoading, } = usePromise.usePromise(() => transaction.from);
94
94
  const { data: transactionValue, isLoading: isTransactionValueLoading } = usePromise.usePromise(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
95
95
  const val = yield transaction.value;
@@ -85,7 +85,7 @@ const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess
85
85
  provider,
86
86
  transaction,
87
87
  });
88
- const { data: transactionToAddress, isLoading: isTransactionToAddressLoading, } = usePromise(() => transaction.to);
88
+ const { data: transactionToAddress, isLoading: isTransactionToAddressLoading, } = usePromise(() => { var _a; return (_a = transaction.to) === null || _a === void 0 ? void 0 : _a.toString(); });
89
89
  const { data: transactionFromAddress, isLoading: isTransactionFromAddressLoading, } = usePromise(() => transaction.from);
90
90
  const { data: transactionValue, isLoading: isTransactionValueLoading } = usePromise(() => __awaiter(void 0, void 0, void 0, function* () {
91
91
  const val = yield transaction.value;