@dynamic-labs/sdk-react-core 0.18.0-RC.1 → 0.18.0-RC.2

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 (480) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +8 -8
  5. package/src/index.cjs +10 -15
  6. package/src/index.js +3 -5
  7. package/src/lib/Main.cjs +5 -6
  8. package/src/lib/Main.js +4 -5
  9. package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +2 -1
  10. package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +2 -1
  11. package/src/lib/components/Alert/Alert.cjs +1 -1
  12. package/src/lib/components/Alert/Alert.js +1 -1
  13. package/src/lib/components/AnimatePresence/AnimatePresence.cjs +2 -1
  14. package/src/lib/components/AnimatePresence/AnimatePresence.js +2 -1
  15. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +19 -9
  16. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +19 -9
  17. package/src/lib/components/Checkbox/Checkbox.cjs +1 -1
  18. package/src/lib/components/Checkbox/Checkbox.js +1 -1
  19. package/src/lib/components/Divider/Divider.cjs +2 -1
  20. package/src/lib/components/Divider/Divider.js +2 -1
  21. package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +3 -1
  22. package/src/lib/components/DynamicConnectButton/DynamicConnectButton.d.ts +9 -1
  23. package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +3 -2
  24. package/src/lib/components/ErrorContainer/ErrorContainer.cjs +1 -1
  25. package/src/lib/components/ErrorContainer/ErrorContainer.js +1 -1
  26. package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -1
  27. package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -1
  28. package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +1 -1
  29. package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +1 -1
  30. package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -1
  31. package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -1
  32. package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -1
  33. package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -1
  34. package/src/lib/components/LogoutButton/LogoutButton.cjs +1 -1
  35. package/src/lib/components/LogoutButton/LogoutButton.js +1 -1
  36. package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -1
  37. package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -1
  38. package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +2 -1
  39. package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +2 -1
  40. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +2 -1
  41. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +2 -1
  42. package/src/lib/components/NetworkPicker/components/Network/Network.cjs +2 -1
  43. package/src/lib/components/NetworkPicker/components/Network/Network.js +2 -1
  44. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +2 -1
  45. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +2 -1
  46. package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -1
  47. package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -1
  48. package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +2 -1
  49. package/src/lib/components/OTPVerificationView/OTPVerificationView.js +2 -1
  50. package/src/lib/components/OptionsSwitcher/OptionsSwitcher.d.ts +6 -6
  51. package/src/lib/components/OverlayCard/OverlayCard.cjs +2 -1
  52. package/src/lib/components/OverlayCard/OverlayCard.js +2 -1
  53. package/src/lib/components/Portal/Portal.cjs +2 -1
  54. package/src/lib/components/Portal/Portal.js +2 -1
  55. package/src/lib/components/Search/Search.cjs +1 -1
  56. package/src/lib/components/Search/Search.js +1 -1
  57. package/src/lib/components/Select/Select.cjs +1 -1
  58. package/src/lib/components/Select/Select.js +1 -1
  59. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
  60. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
  61. package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +1 -1
  62. package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +1 -1
  63. package/src/lib/components/ShadowDOM/utils.cjs +1 -1
  64. package/src/lib/components/ShadowDOM/utils.js +1 -1
  65. package/src/lib/components/Spinner/spinner.cjs +1 -1
  66. package/src/lib/components/Spinner/spinner.js +1 -1
  67. package/src/lib/components/Step/Step.cjs +14 -0
  68. package/src/lib/components/Step/Step.js +10 -0
  69. package/src/lib/components/Stepper/Stepper.cjs +14 -0
  70. package/src/lib/components/Stepper/Stepper.js +10 -0
  71. package/src/lib/components/Toolkit/Toolkit.cjs +1 -1
  72. package/src/lib/components/Toolkit/Toolkit.js +1 -1
  73. package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +1 -1
  74. package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +1 -1
  75. package/src/lib/components/Tooltip/Tooltip.cjs +2 -1
  76. package/src/lib/components/Tooltip/Tooltip.js +2 -1
  77. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
  78. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
  79. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +2 -1
  80. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +2 -1
  81. package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +2 -1
  82. package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +2 -1
  83. package/src/lib/components/UserAddress/UserAddress.cjs +1 -1
  84. package/src/lib/components/UserAddress/UserAddress.js +1 -1
  85. package/src/lib/components/UserProfile/UserProfile.cjs +1 -1
  86. package/src/lib/components/UserProfile/UserProfile.js +1 -1
  87. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +2 -1
  88. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -1
  89. package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +1 -1
  90. package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +1 -1
  91. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +2 -1
  92. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -1
  93. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +3 -2
  94. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +3 -2
  95. package/src/lib/components/UserProfileForm/UserProfileForm.cjs +43 -0
  96. package/src/lib/components/UserProfileForm/UserProfileForm.d.ts +11 -0
  97. package/src/lib/components/UserProfileForm/UserProfileForm.js +39 -0
  98. package/src/lib/components/index.d.ts +0 -2
  99. package/src/lib/context/DynamicContext/DynamicContext.cjs +79 -38
  100. package/src/lib/context/DynamicContext/DynamicContext.d.ts +15 -3
  101. package/src/lib/context/DynamicContext/DynamicContext.js +76 -35
  102. package/src/lib/context/DynamicContext/helpers.cjs +3 -4
  103. package/src/lib/context/DynamicContext/helpers.js +2 -3
  104. package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +1 -1
  105. package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +1 -1
  106. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -1
  107. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -1
  108. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +2 -2
  109. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +2 -2
  110. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +2 -1
  111. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +2 -1
  112. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +1 -1
  113. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +1 -1
  114. package/src/lib/context/DynamicContext/useDynamicContext.cjs +5 -1
  115. package/src/lib/context/DynamicContext/useDynamicContext.d.ts +1 -1
  116. package/src/lib/context/DynamicContext/useDynamicContext.js +5 -1
  117. package/src/lib/context/DynamicContext/validators.cjs +1 -1
  118. package/src/lib/context/DynamicContext/validators.js +1 -1
  119. package/src/lib/context/MockContext/MockContext.cjs +1 -1
  120. package/src/lib/context/MockContext/MockContext.js +1 -1
  121. package/src/lib/context/QrCodeContext/QrCodeContext.cjs +2 -1
  122. package/src/lib/context/QrCodeContext/QrCodeContext.js +2 -1
  123. package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +2 -1
  124. package/src/lib/context/SendBalanceContext/SendBalanceContext.js +2 -1
  125. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +2 -1
  126. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +2 -1
  127. package/src/lib/context/ThemeContext/themesData.cjs +1 -1
  128. package/src/lib/context/ThemeContext/themesData.js +1 -1
  129. package/src/lib/data/api.cjs +1 -1
  130. package/src/lib/data/api.js +1 -1
  131. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -1
  132. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -1
  133. package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +2 -1
  134. package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +2 -1
  135. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +2 -1
  136. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +2 -1
  137. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +4 -4
  138. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +3 -3
  139. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +5 -3
  140. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +6 -4
  141. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +2 -1
  142. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +2 -1
  143. package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +2 -1
  144. package/src/lib/layout/DynamicAuthLayout/Header/header.js +2 -1
  145. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +53 -0
  146. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +6 -2
  147. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +49 -0
  148. package/src/lib/layouts/BridgeWelcomeLayout/index.d.ts +1 -0
  149. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +53 -0
  150. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +49 -0
  151. package/src/lib/layouts/SelectWalletListLayout/SelectWalletListLayout.cjs +52 -0
  152. package/src/lib/layouts/SelectWalletListLayout/SelectWalletListLayout.js +48 -0
  153. package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.cjs +77 -0
  154. package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.d.ts +2 -0
  155. package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.js +73 -0
  156. package/src/lib/modals/MultiWalletStepSelectorModal/index.d.ts +1 -0
  157. package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.cjs +61 -0
  158. package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.d.ts +6 -0
  159. package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.js +57 -0
  160. package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/index.d.ts +1 -0
  161. package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.cjs +89 -0
  162. package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.d.ts +8 -0
  163. package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.js +85 -0
  164. package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/index.d.ts +1 -0
  165. package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.cjs +71 -0
  166. package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.d.ts +7 -0
  167. package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.js +67 -0
  168. package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/index.d.ts +1 -0
  169. package/src/lib/modals/MultiWalletStepSelectorModal/views/index.d.ts +3 -0
  170. package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +2 -1
  171. package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +2 -1
  172. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +2 -1
  173. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +2 -1
  174. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +2 -1
  175. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +2 -1
  176. package/src/lib/modals/index.d.ts +1 -0
  177. package/src/lib/shared/utils/classes/index.d.ts +1 -0
  178. package/src/lib/shared/utils/classes/storage/localStorage.cjs +48 -0
  179. package/src/lib/shared/utils/classes/storage/localStorage.d.ts +10 -0
  180. package/src/lib/shared/utils/classes/storage/localStorage.js +43 -0
  181. package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +3 -4
  182. package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +2 -3
  183. package/src/lib/shared/utils/functions/index.d.ts +0 -1
  184. package/src/lib/shared/utils/functions/wallet/createWallet.cjs +2 -2
  185. package/src/lib/shared/utils/functions/wallet/createWallet.d.ts +2 -1
  186. package/src/lib/shared/utils/functions/wallet/createWallet.js +2 -2
  187. package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +6 -18
  188. package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +6 -18
  189. package/src/lib/shared/utils/index.d.ts +1 -0
  190. package/src/lib/styles/index.shadow.cjs +1 -1
  191. package/src/lib/styles/index.shadow.js +1 -1
  192. package/src/lib/utils/constants/localStorage.cjs +2 -2
  193. package/src/lib/utils/constants/localStorage.d.ts +1 -1
  194. package/src/lib/utils/constants/localStorage.js +2 -2
  195. package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +3 -4
  196. package/src/lib/utils/functions/getAuthToken/getAuthToken.js +2 -3
  197. package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +1 -1
  198. package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +1 -1
  199. package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +2 -2
  200. package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +2 -2
  201. package/src/lib/utils/functions/groupBy/groupBy.cjs +30 -0
  202. package/src/lib/utils/functions/groupBy/groupBy.d.ts +12 -0
  203. package/src/lib/utils/functions/groupBy/groupBy.js +26 -0
  204. package/src/lib/utils/functions/groupBy/index.d.ts +1 -0
  205. package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +2 -2
  206. package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +2 -2
  207. package/src/lib/utils/functions/index.d.ts +1 -0
  208. package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs +1 -1
  209. package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +1 -1
  210. package/src/lib/utils/functions/storeAuthToken/index.cjs +3 -4
  211. package/src/lib/utils/functions/storeAuthToken/index.js +2 -3
  212. package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.cjs +2 -2
  213. package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.d.ts +2 -1
  214. package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.js +2 -2
  215. package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +2 -2
  216. package/src/lib/utils/functions/walletListBuilder/walletListBuilder.d.ts +3 -1
  217. package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +2 -2
  218. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +9 -8
  219. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +8 -7
  220. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +9 -8
  221. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +8 -7
  222. package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -1
  223. package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -1
  224. package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -1
  225. package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -1
  226. package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +1 -1
  227. package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +1 -1
  228. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +58 -25
  229. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +6 -5
  230. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +60 -27
  231. package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +1 -1
  232. package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +1 -1
  233. package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +4 -4
  234. package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +4 -4
  235. package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +3 -4
  236. package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +4 -5
  237. package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +1 -1
  238. package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +1 -1
  239. package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +2 -3
  240. package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +3 -4
  241. package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +1 -1
  242. package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +1 -1
  243. package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +3 -4
  244. package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +2 -3
  245. package/src/lib/utils/hooks/useHandleWalletsToConnect/index.d.ts +1 -0
  246. package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +35 -0
  247. package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.d.ts +3 -0
  248. package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +31 -0
  249. package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs +1 -1
  250. package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +1 -1
  251. package/src/lib/utils/hooks/usePrimaryWalletId/index.d.ts +1 -0
  252. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +35 -0
  253. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.d.ts +5 -0
  254. package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +31 -0
  255. package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +1 -1
  256. package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +1 -1
  257. package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +1 -1
  258. package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +1 -1
  259. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +4 -5
  260. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +3 -4
  261. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +1 -1
  262. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +1 -1
  263. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +6 -15
  264. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +6 -5
  265. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +6 -15
  266. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +2 -2
  267. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +2 -2
  268. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +1 -1
  269. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +1 -1
  270. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -1
  271. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -1
  272. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +2 -1
  273. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -1
  274. package/src/lib/utils/hooks/useWallets/useWallets.cjs +5 -2
  275. package/src/lib/utils/hooks/useWallets/useWallets.d.ts +3 -1
  276. package/src/lib/utils/hooks/useWallets/useWallets.js +5 -2
  277. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +1 -1
  278. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +1 -1
  279. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +2 -1
  280. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -1
  281. package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +2 -1
  282. package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -1
  283. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +3 -2
  284. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +3 -2
  285. package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +2 -1
  286. package/src/lib/views/CollectUserDataView/UserDataFields/index.js +2 -1
  287. package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +1 -1
  288. package/src/lib/views/CollectUserDataView/fieldsConfig.js +1 -1
  289. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +2 -1
  290. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +2 -1
  291. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -1
  292. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -1
  293. package/src/lib/views/EmailUpdate/EmailUpdate.cjs +4 -3
  294. package/src/lib/views/EmailUpdate/EmailUpdate.js +4 -3
  295. package/src/lib/views/EmailVerification/EmailVerification.cjs +9 -7
  296. package/src/lib/views/EmailVerification/EmailVerification.js +9 -7
  297. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -1
  298. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -1
  299. package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +6 -5
  300. package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +5 -4
  301. package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +3 -2
  302. package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +3 -2
  303. package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +2 -1
  304. package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +2 -1
  305. package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +3 -4
  306. package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +2 -3
  307. package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +2 -1
  308. package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +2 -1
  309. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -1
  310. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -1
  311. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -1
  312. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -1
  313. package/src/lib/views/NoAccess/NoAccess.cjs +3 -2
  314. package/src/lib/views/NoAccess/NoAccess.js +3 -2
  315. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +5 -3
  316. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +6 -4
  317. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +2 -1
  318. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +2 -1
  319. package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -1
  320. package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -1
  321. package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -1
  322. package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -1
  323. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +2 -1
  324. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +2 -1
  325. package/src/lib/views/QrCodeView/QrCodeView.cjs +4 -2
  326. package/src/lib/views/QrCodeView/QrCodeView.js +5 -3
  327. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +2 -1
  328. package/src/lib/views/SendBalanceView/SendBalanceView.js +2 -1
  329. package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +2 -1
  330. package/src/lib/views/SocialRedirectView/SocialRedirectView.js +2 -1
  331. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +2 -1
  332. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +2 -1
  333. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +2 -1
  334. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +2 -1
  335. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +2 -1
  336. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +2 -1
  337. package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +2 -1
  338. package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +2 -1
  339. package/src/lib/views/WalletList/WalletList.cjs +24 -20
  340. package/src/lib/views/WalletList/WalletList.js +23 -19
  341. package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +8 -6
  342. package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +9 -7
  343. package/src/lib/views/WalletList/data.cjs +2 -2
  344. package/src/lib/views/WalletList/data.js +2 -2
  345. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +4 -3
  346. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +4 -3
  347. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +5 -4
  348. package/src/lib/views/WalletUsedView/WalletUsedView.js +5 -4
  349. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +25 -5
  350. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +5 -2
  351. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +25 -5
  352. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +51 -3
  353. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.d.ts +1 -1
  354. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +52 -4
  355. package/src/lib/widgets/{DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs → DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs} +14 -19
  356. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.d.ts +7 -0
  357. package/src/lib/widgets/{DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js → DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js} +11 -20
  358. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +51 -0
  359. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +9 -0
  360. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +47 -0
  361. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +44 -1
  362. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +10 -2
  363. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +41 -2
  364. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.cjs +6 -11
  365. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.js +3 -4
  366. package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs +5 -4
  367. package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.d.ts +2 -2
  368. package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js +6 -5
  369. package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +24 -1
  370. package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +24 -1
  371. package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +24 -1
  372. package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +25 -2
  373. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +50 -1
  374. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +51 -2
  375. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +43 -0
  376. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.d.ts +7 -0
  377. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +34 -0
  378. package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +3 -2
  379. package/src/lib/widgets/DynamicWidget/DynamicWidget.js +3 -2
  380. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +2 -1
  381. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +2 -1
  382. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +3 -2
  383. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +3 -2
  384. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +3 -2
  385. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +3 -2
  386. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +2 -1
  387. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +2 -1
  388. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +2 -1
  389. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +2 -1
  390. package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -1
  391. package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -1
  392. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +3 -2
  393. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +3 -2
  394. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +16 -5
  395. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +16 -5
  396. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +6 -4
  397. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +6 -4
  398. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +2 -1
  399. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +2 -1
  400. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +2 -1
  401. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +2 -1
  402. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +3 -3
  403. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +3 -3
  404. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +2 -1
  405. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +2 -1
  406. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +2 -1
  407. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +2 -1
  408. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +2 -1
  409. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +2 -1
  410. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -1
  411. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -1
  412. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +3 -2
  413. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +3 -2
  414. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +3 -2
  415. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +3 -2
  416. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +1 -1
  417. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +1 -1
  418. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +2 -1
  419. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +2 -1
  420. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +4 -3
  421. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -1
  422. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +4 -3
  423. package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +1 -1
  424. package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +1 -1
  425. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +2 -1
  426. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -1
  427. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +2 -1
  428. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +2 -1
  429. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +5 -3
  430. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +6 -4
  431. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +2 -1
  432. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +2 -1
  433. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -1
  434. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -1
  435. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -1
  436. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -1
  437. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +3 -2
  438. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +3 -2
  439. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -1
  440. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -1
  441. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -1
  442. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -1
  443. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +5 -2
  444. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +6 -3
  445. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +2 -1
  446. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +2 -1
  447. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +6 -21
  448. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +6 -21
  449. package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +2 -1
  450. package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +2 -1
  451. package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.cjs +1 -1
  452. package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.js +1 -1
  453. package/src/lib/widgets/DynamicWidget/views/{IndexView/IndexView.cjs → WalletsView/WalletsView.cjs} +4 -3
  454. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.d.ts +2 -0
  455. package/src/lib/widgets/DynamicWidget/views/{IndexView/IndexView.js → WalletsView/WalletsView.js} +4 -3
  456. package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -1
  457. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +2 -1
  458. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +2 -1
  459. package/src/lib/components/ChainWalletsList/ChainWalletsList.d.ts +0 -7
  460. package/src/lib/components/ChainWalletsList/index.d.ts +0 -1
  461. package/src/lib/components/WalletInfoCard/WalletInfoCard.d.ts +0 -8
  462. package/src/lib/components/WalletInfoCard/index.d.ts +0 -1
  463. package/src/lib/config/LSSuffix.cjs +0 -24
  464. package/src/lib/config/LSSuffix.d.ts +0 -7
  465. package/src/lib/config/LSSuffix.js +0 -22
  466. package/src/lib/shared/utils/functions/storage/getDynamicLSKey.cjs +0 -9
  467. package/src/lib/shared/utils/functions/storage/getDynamicLSKey.d.ts +0 -1
  468. package/src/lib/shared/utils/functions/storage/getDynamicLSKey.js +0 -5
  469. package/src/lib/shared/utils/functions/storage/getFromLS.cjs +0 -25
  470. package/src/lib/shared/utils/functions/storage/getFromLS.d.ts +0 -1
  471. package/src/lib/shared/utils/functions/storage/getFromLS.js +0 -21
  472. package/src/lib/shared/utils/functions/storage/index.d.ts +0 -4
  473. package/src/lib/shared/utils/functions/storage/removeFromLS.cjs +0 -15
  474. package/src/lib/shared/utils/functions/storage/removeFromLS.d.ts +0 -1
  475. package/src/lib/shared/utils/functions/storage/removeFromLS.js +0 -11
  476. package/src/lib/shared/utils/functions/storage/setToLS.cjs +0 -15
  477. package/src/lib/shared/utils/functions/storage/setToLS.d.ts +0 -1
  478. package/src/lib/shared/utils/functions/storage/setToLS.js +0 -11
  479. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.d.ts +0 -5
  480. package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,4 +1,27 @@
1
1
 
2
+ ## [0.18.0-RC.2](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.1...v0.18.0-RC.2) (2023-06-16)
3
+
4
+
5
+ ### Features
6
+
7
+ * add Dynamic Bridge widget ([#2316](https://github.com/dynamic-labs/DynamicAuth/issues/2316)) ([0e71a88](https://github.com/dynamic-labs/DynamicAuth/commit/0e71a88c6dd740583448ed7b45fa335aaa736079))
8
+ * add search bar to bridge wallets view ([#2357](https://github.com/dynamic-labs/DynamicAuth/issues/2357)) ([a8415fc](https://github.com/dynamic-labs/DynamicAuth/commit/a8415fc744216660a78c1443962711699e45429a))
9
+ * bridge flow improvements ([#2367](https://github.com/dynamic-labs/DynamicAuth/issues/2367)) ([38a44be](https://github.com/dynamic-labs/DynamicAuth/commit/38a44be417fd1363b0d8e45ec1834f9aaf680427))
10
+ * **Bridge:** add bridge navigation component ([#2340](https://github.com/dynamic-labs/DynamicAuth/issues/2340)) ([1e9adae](https://github.com/dynamic-labs/DynamicAuth/commit/1e9adaed3682bc9a7aab385221818946cad397f2))
11
+ * **Bridge:** integrate dynamic bridge ui ([#2354](https://github.com/dynamic-labs/DynamicAuth/issues/2354)) ([1465bf8](https://github.com/dynamic-labs/DynamicAuth/commit/1465bf8717cbc9905285c2d867bc3e1d0cd1114b))
12
+ * **DYN-2519:** create state for multiple connected wallets ([#2326](https://github.com/dynamic-labs/DynamicAuth/issues/2326)) ([fc05aa4](https://github.com/dynamic-labs/DynamicAuth/commit/fc05aa4d91b0af8950c5da84c69130557ba36b09)), closes [#2319](https://github.com/dynamic-labs/DynamicAuth/issues/2319)
13
+ * **MultiWalletStepSelectorModal:** add modal to connect multiple wallets ([#2348](https://github.com/dynamic-labs/DynamicAuth/issues/2348)) ([39ce0b2](https://github.com/dynamic-labs/DynamicAuth/commit/39ce0b26fdf6494a4e1ba7867e80bf399d11631f))
14
+ * use wallet-book from CDN ([#2352](https://github.com/dynamic-labs/DynamicAuth/issues/2352)) ([9d1498f](https://github.com/dynamic-labs/DynamicAuth/commit/9d1498f2aec4bb9f3e3d6b386d9cafea3a33bd58))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * handle email only without primary wallet state ([#2342](https://github.com/dynamic-labs/DynamicAuth/issues/2342)) ([98583bb](https://github.com/dynamic-labs/DynamicAuth/commit/98583bb8820ac80967bf1059cbaf47d04bfd603a))
20
+ * s3 cp for walletbook json ([8127b79](https://github.com/dynamic-labs/DynamicAuth/commit/8127b790333b36f40a2cc230a576c01aaad42196))
21
+ * setting initial view when error in auth flow ([#2345](https://github.com/dynamic-labs/DynamicAuth/issues/2345)) ([85dcefb](https://github.com/dynamic-labs/DynamicAuth/commit/85dcefb54be498b540904b381b53f9ea7e0cd024))
22
+ * typo in github action ([d746bc0](https://github.com/dynamic-labs/DynamicAuth/commit/d746bc01981a3263e3ab4f654debf77b408cda3a))
23
+ * **widget:** add fallback icon when oauth provider does not exist ([#2349](https://github.com/dynamic-labs/DynamicAuth/issues/2349)) ([bd2a505](https://github.com/dynamic-labs/DynamicAuth/commit/bd2a505724affd6f5356c0c4f31586ffd188e539))
24
+
2
25
  ## [0.18.0-RC.1](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.0...v0.18.0-RC.1) (2023-06-14)
3
26
 
4
27
 
package/package.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "0.18.0-RC.1";
5
+ var version = "0.18.0-RC.2";
6
6
  var dependencies = {
7
7
  "react-focus-lock": "2.9.2",
8
8
  "@dynamic-labs/iconic": "0.1.23",
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
- var version = "0.18.0-RC.1";
1
+ var version = "0.18.0-RC.2";
2
2
  var dependencies = {
3
3
  "react-focus-lock": "2.9.2",
4
4
  "@dynamic-labs/iconic": "0.1.23",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "0.18.0-RC.1",
3
+ "version": "0.18.0-RC.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -16,13 +16,13 @@
16
16
  "formik": "2.2.9",
17
17
  "qrcode": "1.5.1",
18
18
  "ethers": "5.7.2",
19
- "@dynamic-labs/logger": "0.18.0-RC.1",
20
- "@dynamic-labs/multi-wallet": "0.18.0-RC.1",
21
- "@dynamic-labs/rpc-providers": "0.18.0-RC.1",
22
- "@dynamic-labs/types": "0.18.0-RC.1",
23
- "@dynamic-labs/utils": "0.18.0-RC.1",
24
- "@dynamic-labs/wallet-book": "0.18.0-RC.1",
25
- "@dynamic-labs/wallet-connector-core": "0.18.0-RC.1"
19
+ "@dynamic-labs/logger": "0.18.0-RC.2",
20
+ "@dynamic-labs/multi-wallet": "0.18.0-RC.2",
21
+ "@dynamic-labs/rpc-providers": "0.18.0-RC.2",
22
+ "@dynamic-labs/types": "0.18.0-RC.2",
23
+ "@dynamic-labs/utils": "0.18.0-RC.2",
24
+ "@dynamic-labs/wallet-book": "0.18.0-RC.2",
25
+ "@dynamic-labs/wallet-connector-core": "0.18.0-RC.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "semver": "7.3.8"
package/src/index.cjs CHANGED
@@ -17,10 +17,6 @@ require('react/jsx-runtime');
17
17
  require('react');
18
18
  var classNames = require('./lib/utils/functions/classNames/classNames.cjs');
19
19
  var decodeJwt = require('./lib/shared/utils/functions/decodeJwt/decodeJwt.cjs');
20
- var getFromLS = require('./lib/shared/utils/functions/storage/getFromLS.cjs');
21
- var getDynamicLSKey = require('./lib/shared/utils/functions/storage/getDynamicLSKey.cjs');
22
- var removeFromLS = require('./lib/shared/utils/functions/storage/removeFromLS.cjs');
23
- var setToLS = require('./lib/shared/utils/functions/storage/setToLS.cjs');
24
20
  var validateType = require('./lib/shared/utils/functions/validateType/validateType.cjs');
25
21
  var getChainIcon = require('./lib/shared/utils/functions/chain/getChainIcon.cjs');
26
22
  var getChainDisplayName = require('./lib/shared/utils/functions/chain/getChainDisplayName.cjs');
@@ -40,6 +36,7 @@ var useLocalStorage = require('./lib/shared/utils/hooks/useLocalStorage/useLocal
40
36
  var index$1 = require('./lib/shared/utils/hooks/useOnClickOutside/index.cjs');
41
37
  var usePreventPageScroll = require('./lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs');
42
38
  var useGlobalLoading = require('./lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs');
39
+ var localStorage = require('./lib/shared/utils/classes/storage/localStorage.cjs');
43
40
  var PhantomLedgerIcon = require('./lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.cjs');
44
41
  var stroke = require('./lib/shared/assets/stroke.cjs');
45
42
  var arrowRight = require('./lib/shared/assets/arrow-right.cjs');
@@ -97,6 +94,8 @@ require('ethers');
97
94
  require('./lib/components/IconButton/IconButton.cjs');
98
95
  require('@dynamic-labs/wallet-book');
99
96
  require('./lib/components/Alert/Alert.cjs');
97
+ var index$3 = require('./lib/utils/functions/walletFilters/index.cjs');
98
+ require('./lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
100
99
  var useWalletItemActions = require('./lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
101
100
  var useUserUpdateRequest = require('./lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
102
101
  require('@dynamic-labs/iconic');
@@ -118,7 +117,6 @@ var MockContext = require('./lib/context/MockContext/MockContext.cjs');
118
117
  var themesData = require('./lib/context/ThemeContext/themesData.cjs');
119
118
  var getNetwork = require('./lib/utils/functions/getNetwork/getNetwork.cjs');
120
119
  var useAuthenticateConnectedUser = require('./lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs');
121
- var index$3 = require('./lib/utils/functions/walletFilters/index.cjs');
122
120
  var DynamicWidgetContext = require('./lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
123
121
  var useEmailVerificationRequest = require('./lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs');
124
122
  var SendBalanceContext = require('./lib/context/SendBalanceContext/SendBalanceContext.cjs');
@@ -139,10 +137,6 @@ exports.FundingWidget = FundingWidget.FundingWidget;
139
137
  exports.DynamicBridgeWidget = DynamicBridgeWidget.DynamicBridgeWidget;
140
138
  exports.classNames = classNames.classNames;
141
139
  exports.decodeJwt = decodeJwt.decodeJwt;
142
- exports.getFromLS = getFromLS.getFromLS;
143
- exports.getDynamicLSKey = getDynamicLSKey.getDynamicLSKey;
144
- exports.removeFromLS = removeFromLS.removeFromLS;
145
- exports.setToLS = setToLS.setToLS;
146
140
  exports.validateType = validateType.validateType;
147
141
  exports.getChainIcon = getChainIcon.getChainIcon;
148
142
  exports.getChainDisplayName = getChainDisplayName.getChainDisplayName;
@@ -162,6 +156,7 @@ exports.useLocalStorage = useLocalStorage.useLocalStorage;
162
156
  exports.useOnClickOutside = index$1.useOnClickOutside;
163
157
  exports.usePreventPageScroll = usePreventPageScroll.usePreventPageScroll;
164
158
  exports.useGlobalLoading = useGlobalLoading.useGlobalLoading;
159
+ exports.LocalStorage = localStorage.LocalStorage;
165
160
  exports.PhantomLedgerIcon = PhantomLedgerIcon.PhantomLedgerIcon;
166
161
  exports.ArrowIcon = stroke.ReactComponent;
167
162
  exports.ArrowRightIcon = arrowRight.ReactComponent;
@@ -215,6 +210,12 @@ Object.defineProperty(exports, 'DynamicJwtFromJSON', {
215
210
  });
216
211
  exports.ShadowDOM = ShadowDOM.ShadowDOM;
217
212
  exports.isSameWalletName = isSameWalletName.isSameWalletName;
213
+ exports.FilterAndSortWallets = index$3.FilterAndSortWallets;
214
+ exports.FilterWallets = index$3.FilterWallets;
215
+ exports.FilterWalletsByChainName = index$3.FilterWalletsByChainName;
216
+ exports.RemoveWallets = index$3.RemoveWallets;
217
+ exports.SortWallets = index$3.SortWallets;
218
+ exports.UniswapFilter = index$3.UniswapFilter;
218
219
  exports.useWalletItemActions = useWalletItemActions.useWalletItemActions;
219
220
  exports.useUserUpdateRequest = useUserUpdateRequest.useUserUpdateRequest;
220
221
  exports.DynamicConnectButton = DynamicConnectButton.DynamicConnectButton;
@@ -236,12 +237,6 @@ exports.getThemeConfig = themesData.getThemeConfig;
236
237
  exports.themesData = themesData.themesData;
237
238
  exports.getNetwork = getNetwork.getNetwork;
238
239
  exports.useAuthenticateConnectedUser = useAuthenticateConnectedUser.useAuthenticateConnectedUser;
239
- exports.FilterAndSortWallets = index$3.FilterAndSortWallets;
240
- exports.FilterWallets = index$3.FilterWallets;
241
- exports.FilterWalletsByChainName = index$3.FilterWalletsByChainName;
242
- exports.RemoveWallets = index$3.RemoveWallets;
243
- exports.SortWallets = index$3.SortWallets;
244
- exports.UniswapFilter = index$3.UniswapFilter;
245
240
  exports.DynamicWidgetContextProvider = DynamicWidgetContext.DynamicWidgetContextProvider;
246
241
  exports.useEmailVerificationRequest = useEmailVerificationRequest.useEmailVerificationRequest;
247
242
  exports.useSendBalance = SendBalanceContext.useSendBalance;
package/src/index.js CHANGED
@@ -13,10 +13,6 @@ import 'react/jsx-runtime';
13
13
  import 'react';
14
14
  export { classNames } from './lib/utils/functions/classNames/classNames.js';
15
15
  export { decodeJwt } from './lib/shared/utils/functions/decodeJwt/decodeJwt.js';
16
- export { getFromLS } from './lib/shared/utils/functions/storage/getFromLS.js';
17
- export { getDynamicLSKey } from './lib/shared/utils/functions/storage/getDynamicLSKey.js';
18
- export { removeFromLS } from './lib/shared/utils/functions/storage/removeFromLS.js';
19
- export { setToLS } from './lib/shared/utils/functions/storage/setToLS.js';
20
16
  export { validateType } from './lib/shared/utils/functions/validateType/validateType.js';
21
17
  export { getChainIcon } from './lib/shared/utils/functions/chain/getChainIcon.js';
22
18
  export { getChainDisplayName } from './lib/shared/utils/functions/chain/getChainDisplayName.js';
@@ -36,6 +32,7 @@ export { useLocalStorage } from './lib/shared/utils/hooks/useLocalStorage/useLoc
36
32
  export { useOnClickOutside } from './lib/shared/utils/hooks/useOnClickOutside/index.js';
37
33
  export { usePreventPageScroll } from './lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js';
38
34
  export { useGlobalLoading } from './lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js';
35
+ export { LocalStorage } from './lib/shared/utils/classes/storage/localStorage.js';
39
36
  export { PhantomLedgerIcon } from './lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.js';
40
37
  export { ReactComponent as ArrowIcon } from './lib/shared/assets/stroke.js';
41
38
  export { ReactComponent as ArrowRightIcon } from './lib/shared/assets/arrow-right.js';
@@ -93,6 +90,8 @@ import 'ethers';
93
90
  import './lib/components/IconButton/IconButton.js';
94
91
  import '@dynamic-labs/wallet-book';
95
92
  import './lib/components/Alert/Alert.js';
93
+ export { FilterAndSortWallets, FilterWallets, FilterWalletsByChainName, RemoveWallets, SortWallets, UniswapFilter } from './lib/utils/functions/walletFilters/index.js';
94
+ import './lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
96
95
  export { useWalletItemActions } from './lib/utils/hooks/useWalletItemActions/useWalletItemActions.js';
97
96
  export { useUserUpdateRequest } from './lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
98
97
  import '@dynamic-labs/iconic';
@@ -114,7 +113,6 @@ export { MockContext, MockContextProvider, MockContextWrapper, useMockContext }
114
113
  export { getDefaultColor, getThemeConfig, themesData } from './lib/context/ThemeContext/themesData.js';
115
114
  export { getNetwork } from './lib/utils/functions/getNetwork/getNetwork.js';
116
115
  export { useAuthenticateConnectedUser } from './lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js';
117
- export { FilterAndSortWallets, FilterWallets, FilterWalletsByChainName, RemoveWallets, SortWallets, UniswapFilter } from './lib/utils/functions/walletFilters/index.js';
118
116
  export { DynamicWidgetContextProvider } from './lib/widgets/DynamicWidget/context/DynamicWidgetContext.js';
119
117
  export { useEmailVerificationRequest } from './lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js';
120
118
  export { useSendBalance } from './lib/context/SendBalanceContext/SendBalanceContext.js';
package/src/lib/Main.cjs CHANGED
@@ -9,15 +9,13 @@ var utils = require('@dynamic-labs/utils');
9
9
  var index = require('./context/FooterAnimationContext/index.cjs');
10
10
  require('@dynamic-labs/sdk-api');
11
11
  require('./shared/logger.cjs');
12
- var getFromLS = require('./shared/utils/functions/storage/getFromLS.cjs');
13
- require('./config/LSSuffix.cjs');
14
- var removeFromLS = require('./shared/utils/functions/storage/removeFromLS.cjs');
15
12
  require('@dynamic-labs/iconic');
16
13
  require('@dynamic-labs/wallet-connector-core');
17
14
  var ViewContext = require('./context/ViewContext/ViewContext.cjs');
18
15
  require('@dynamic-labs/wallet-book');
19
- var localStorage = require('./utils/constants/localStorage.cjs');
16
+ var localStorage$1 = require('./utils/constants/localStorage.cjs');
20
17
  require('./utils/constants/colors.cjs');
18
+ var localStorage = require('./shared/utils/classes/storage/localStorage.cjs');
21
19
  require('ethers');
22
20
  var usePreventPageScroll = require('./shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs');
23
21
  var index$1 = require('./shared/consts/index.cjs');
@@ -37,6 +35,7 @@ require('./components/Transition/ZoomTransition/ZoomTransition.cjs');
37
35
  require('./components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
38
36
  require('./components/Transition/OpacityTransition/OpacityTransition.cjs');
39
37
  require('./components/Alert/Alert.cjs');
38
+ require('./widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
40
39
  var useWalletItemActions = require('./utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
41
40
  require('./utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
42
41
  require('./components/Popper/Popper/Popper.cjs');
@@ -94,13 +93,13 @@ const Main = () => {
94
93
  }
95
94
  });
96
95
  React.useEffect(() => {
97
- const newToWeb3WalletName = getFromLS.getFromLS(localStorage.NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY);
96
+ const newToWeb3WalletName = localStorage.LocalStorage.getFromLS(localStorage$1.NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY);
98
97
  if ((wallets === null || wallets === void 0 ? void 0 : wallets.length) && newToWeb3WalletName) {
99
98
  const wallet = wallets.find((wallet) => isSameWalletName.isSameWalletName(wallet.name, newToWeb3WalletName));
100
99
  if (wallet === null || wallet === void 0 ? void 0 : wallet.walletConnector) {
101
100
  handleNewToWeb3WalletIntent(wallet.walletConnector);
102
101
  }
103
- removeFromLS.removeFromLS(localStorage.NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY);
102
+ localStorage.LocalStorage.removeFromLS(localStorage$1.NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY);
104
103
  }
105
104
  }, [wallets]);
106
105
  const showDynamicAuth = showAuthFlow && !isProjectSettingsLoading;
package/src/lib/Main.js CHANGED
@@ -5,15 +5,13 @@ import { isMobile } from '@dynamic-labs/utils';
5
5
  import { FooterAnimationContextProvider } from './context/FooterAnimationContext/index.js';
6
6
  import '@dynamic-labs/sdk-api';
7
7
  import './shared/logger.js';
8
- import { getFromLS } from './shared/utils/functions/storage/getFromLS.js';
9
- import './config/LSSuffix.js';
10
- import { removeFromLS } from './shared/utils/functions/storage/removeFromLS.js';
11
8
  import '@dynamic-labs/iconic';
12
9
  import '@dynamic-labs/wallet-connector-core';
13
10
  import { useViewContext } from './context/ViewContext/ViewContext.js';
14
11
  import '@dynamic-labs/wallet-book';
15
12
  import { NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY } from './utils/constants/localStorage.js';
16
13
  import './utils/constants/colors.js';
14
+ import { LocalStorage } from './shared/utils/classes/storage/localStorage.js';
17
15
  import 'ethers';
18
16
  import { usePreventPageScroll } from './shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js';
19
17
  import { authModalZIndex } from './shared/consts/index.js';
@@ -33,6 +31,7 @@ import './components/Transition/ZoomTransition/ZoomTransition.js';
33
31
  import './components/Transition/SlideInUpTransition/SlideInUpTransition.js';
34
32
  import './components/Transition/OpacityTransition/OpacityTransition.js';
35
33
  import './components/Alert/Alert.js';
34
+ import './widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
36
35
  import { useWalletItemActions } from './utils/hooks/useWalletItemActions/useWalletItemActions.js';
37
36
  import './utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
38
37
  import './components/Popper/Popper/Popper.js';
@@ -90,13 +89,13 @@ const Main = () => {
90
89
  }
91
90
  });
92
91
  useEffect(() => {
93
- const newToWeb3WalletName = getFromLS(NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY);
92
+ const newToWeb3WalletName = LocalStorage.getFromLS(NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY);
94
93
  if ((wallets === null || wallets === void 0 ? void 0 : wallets.length) && newToWeb3WalletName) {
95
94
  const wallet = wallets.find((wallet) => isSameWalletName(wallet.name, newToWeb3WalletName));
96
95
  if (wallet === null || wallet === void 0 ? void 0 : wallet.walletConnector) {
97
96
  handleNewToWeb3WalletIntent(wallet.walletConnector);
98
97
  }
99
- removeFromLS(NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY);
98
+ LocalStorage.removeFromLS(NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY);
100
99
  }
101
100
  }, [wallets]);
102
101
  const showDynamicAuth = showAuthFlow && !isProjectSettingsLoading;
@@ -9,12 +9,12 @@ require('@dynamic-labs/utils');
9
9
  require('@dynamic-labs/sdk-api');
10
10
  require('../../../../config/ApiEndpoint.cjs');
11
11
  require('../../../../shared/logger.cjs');
12
- require('../../../../config/LSSuffix.cjs');
13
12
  require('@dynamic-labs/iconic');
14
13
  require('@dynamic-labs/wallet-connector-core');
15
14
  require('../../../../context/ViewContext/ViewContext.cjs');
16
15
  require('@dynamic-labs/wallet-book');
17
16
  require('../../../../utils/constants/colors.cjs');
17
+ require('../../../../shared/utils/classes/storage/localStorage.cjs');
18
18
  require('ethers');
19
19
  require('../../../../shared/consts/index.cjs');
20
20
  require('@dynamic-labs/multi-wallet');
@@ -36,6 +36,7 @@ require('../../../Popper/Popper/Popper.cjs');
36
36
  require('../../../Popper/PopperContext/PopperContext.cjs');
37
37
  require('formik');
38
38
  require('yup');
39
+ require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
39
40
  require('../../../../context/MockContext/MockContext.cjs');
40
41
  require('../../../../context/CaptchaContext/CaptchaContext.cjs');
41
42
  require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
@@ -5,12 +5,12 @@ import '@dynamic-labs/utils';
5
5
  import '@dynamic-labs/sdk-api';
6
6
  import '../../../../config/ApiEndpoint.js';
7
7
  import '../../../../shared/logger.js';
8
- import '../../../../config/LSSuffix.js';
9
8
  import '@dynamic-labs/iconic';
10
9
  import '@dynamic-labs/wallet-connector-core';
11
10
  import '../../../../context/ViewContext/ViewContext.js';
12
11
  import '@dynamic-labs/wallet-book';
13
12
  import '../../../../utils/constants/colors.js';
13
+ import '../../../../shared/utils/classes/storage/localStorage.js';
14
14
  import 'ethers';
15
15
  import '../../../../shared/consts/index.js';
16
16
  import '@dynamic-labs/multi-wallet';
@@ -32,6 +32,7 @@ import '../../../Popper/Popper/Popper.js';
32
32
  import '../../../Popper/PopperContext/PopperContext.js';
33
33
  import 'formik';
34
34
  import 'yup';
35
+ import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
35
36
  import '../../../../context/MockContext/MockContext.js';
36
37
  import '../../../../context/CaptchaContext/CaptchaContext.js';
37
38
  import '../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  require('@dynamic-labs/sdk-api');
7
7
  require('../../shared/logger.cjs');
8
- require('../../config/LSSuffix.cjs');
9
8
  require('@dynamic-labs/iconic');
10
9
  require('@dynamic-labs/wallet-connector-core');
11
10
  require('../../context/ViewContext/ViewContext.cjs');
@@ -14,6 +13,7 @@ var error = require('../../shared/assets/error.cjs');
14
13
  require('@dynamic-labs/wallet-book');
15
14
  require('@dynamic-labs/utils');
16
15
  require('../../utils/constants/colors.cjs');
16
+ require('../../shared/utils/classes/storage/localStorage.cjs');
17
17
  require('ethers');
18
18
  require('../../shared/consts/index.cjs');
19
19
  var Icon = require('../Icon/Icon.cjs');
@@ -1,7 +1,6 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import '@dynamic-labs/sdk-api';
3
3
  import '../../shared/logger.js';
4
- import '../../config/LSSuffix.js';
5
4
  import '@dynamic-labs/iconic';
6
5
  import '@dynamic-labs/wallet-connector-core';
7
6
  import '../../context/ViewContext/ViewContext.js';
@@ -10,6 +9,7 @@ import { ReactComponent as SvgError } from '../../shared/assets/error.js';
10
9
  import '@dynamic-labs/wallet-book';
11
10
  import '@dynamic-labs/utils';
12
11
  import '../../utils/constants/colors.js';
12
+ import '../../shared/utils/classes/storage/localStorage.js';
13
13
  import 'ethers';
14
14
  import '../../shared/consts/index.js';
15
15
  import { Icon } from '../Icon/Icon.js';
@@ -7,13 +7,13 @@ require('@dynamic-labs/utils');
7
7
  require('@dynamic-labs/sdk-api');
8
8
  require('../../config/ApiEndpoint.cjs');
9
9
  require('../../shared/logger.cjs');
10
- require('../../config/LSSuffix.cjs');
11
10
  require('@dynamic-labs/iconic');
12
11
  require('@dynamic-labs/wallet-connector-core');
13
12
  require('react/jsx-runtime');
14
13
  require('../../context/ViewContext/ViewContext.cjs');
15
14
  require('@dynamic-labs/wallet-book');
16
15
  require('../../utils/constants/colors.cjs');
16
+ require('../../shared/utils/classes/storage/localStorage.cjs');
17
17
  require('ethers');
18
18
  require('../../shared/consts/index.cjs');
19
19
  require('@dynamic-labs/multi-wallet');
@@ -35,6 +35,7 @@ require('../Popper/Popper/Popper.cjs');
35
35
  require('../Popper/PopperContext/PopperContext.cjs');
36
36
  require('formik');
37
37
  require('yup');
38
+ require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
38
39
  var useForceUpdate = require('../../utils/hooks/useForceUpdate/useForceUpdate.cjs');
39
40
  require('../../context/MockContext/MockContext.cjs');
40
41
  require('../../context/CaptchaContext/CaptchaContext.cjs');
@@ -3,13 +3,13 @@ import '@dynamic-labs/utils';
3
3
  import '@dynamic-labs/sdk-api';
4
4
  import '../../config/ApiEndpoint.js';
5
5
  import '../../shared/logger.js';
6
- import '../../config/LSSuffix.js';
7
6
  import '@dynamic-labs/iconic';
8
7
  import '@dynamic-labs/wallet-connector-core';
9
8
  import 'react/jsx-runtime';
10
9
  import '../../context/ViewContext/ViewContext.js';
11
10
  import '@dynamic-labs/wallet-book';
12
11
  import '../../utils/constants/colors.js';
12
+ import '../../shared/utils/classes/storage/localStorage.js';
13
13
  import 'ethers';
14
14
  import '../../shared/consts/index.js';
15
15
  import '@dynamic-labs/multi-wallet';
@@ -31,6 +31,7 @@ import '../Popper/Popper/Popper.js';
31
31
  import '../Popper/PopperContext/PopperContext.js';
32
32
  import 'formik';
33
33
  import 'yup';
34
+ import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
34
35
  import { useForceUpdate } from '../../utils/hooks/useForceUpdate/useForceUpdate.js';
35
36
  import '../../context/MockContext/MockContext.js';
36
37
  import '../../context/CaptchaContext/CaptchaContext.js';
@@ -7,12 +7,12 @@ var walletBook = require('@dynamic-labs/wallet-book');
7
7
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
8
8
  var iconic = require('@dynamic-labs/iconic');
9
9
  require('@dynamic-labs/sdk-api');
10
- require('../../shared/logger.cjs');
11
- require('../../config/LSSuffix.cjs');
10
+ var logger = require('../../shared/logger.cjs');
12
11
  require('../../context/ViewContext/ViewContext.cjs');
13
12
  require('react');
14
13
  require('@dynamic-labs/utils');
15
14
  require('../../utils/constants/colors.cjs');
15
+ require('../../shared/utils/classes/storage/localStorage.cjs');
16
16
  require('ethers');
17
17
  require('../../shared/consts/index.cjs');
18
18
  require('@dynamic-labs/multi-wallet');
@@ -38,22 +38,32 @@ require('../Popper/Popper/Popper.cjs');
38
38
  require('../Popper/PopperContext/PopperContext.cjs');
39
39
  require('formik');
40
40
  require('yup');
41
+ require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
41
42
  require('../../context/MockContext/MockContext.cjs');
42
43
  require('../../context/CaptchaContext/CaptchaContext.cjs');
43
44
  require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
44
45
  var useGetSocialIcon = require('../../utils/hooks/useGetSocialIcon/useGetSocialIcon.cjs');
45
46
 
46
47
  const getMagicEmailOrSocialIcon = ({ getSocialIcon, wallet, jwt, }) => {
47
- let Icon = null;
48
48
  if (walletConnectorCore.isEmailOTPWalletConnector(wallet.connector)) {
49
- Icon = iconic.SignInWithEmailIcon;
49
+ return iconic.SignInWithEmailIcon;
50
50
  }
51
51
  if (walletConnectorCore.isSocialWalletConnector(wallet.connector)) {
52
52
  const socialAccountDataForWallet = getReferencedAccount.getReferencedAccount(jwt, wallet.id);
53
- const MagicSocialWalletIcon = getSocialIcon(socialAccountDataForWallet === null || socialAccountDataForWallet === void 0 ? void 0 : socialAccountDataForWallet.oauthProvider);
54
- Icon = MagicSocialWalletIcon;
53
+ if (!socialAccountDataForWallet ||
54
+ !socialAccountDataForWallet.oauthProvider) {
55
+ return iconic.SignInWithEmailIcon;
56
+ }
57
+ const { oauthProvider } = socialAccountDataForWallet;
58
+ try {
59
+ const MagicSocialWalletIcon = getSocialIcon(oauthProvider);
60
+ return MagicSocialWalletIcon;
61
+ }
62
+ catch (err) {
63
+ logger.logger.error(err);
64
+ }
55
65
  }
56
- return Icon;
66
+ return null;
57
67
  };
58
68
  const AuthProviderIcon = ({ jwt, iconSize = 64, showStatus, wallet, }) => {
59
69
  const { primaryWallet, selectedWalletConnector } = useInternalDynamicContext.useInternalDynamicContext();
@@ -71,10 +81,10 @@ const AuthProviderIcon = ({ jwt, iconSize = 64, showStatus, wallet, }) => {
71
81
  if (deniedAddress) {
72
82
  return (jsxRuntime.jsx(walletBook.WalletIcon, { walletName: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.name, style: { height: pixelToRem.pixelToRem(iconSize), width: pixelToRem.pixelToRem(iconSize) } }));
73
83
  }
74
- if (!primaryWallet) {
84
+ const walletForIcon = wallet ? wallet : primaryWallet;
85
+ if (!walletForIcon) {
75
86
  return null;
76
87
  }
77
- const walletForIcon = wallet ? wallet : primaryWallet;
78
88
  const MagicEmailOrSocialIcon = getMagicEmailOrSocialIcon({
79
89
  getSocialIcon,
80
90
  jwt,
@@ -3,12 +3,12 @@ import { WalletIcon } from '@dynamic-labs/wallet-book';
3
3
  import { isEmailOTPWalletConnector, isSocialWalletConnector } from '@dynamic-labs/wallet-connector-core';
4
4
  import { SignInWithEmailIcon } from '@dynamic-labs/iconic';
5
5
  import '@dynamic-labs/sdk-api';
6
- import '../../shared/logger.js';
7
- import '../../config/LSSuffix.js';
6
+ import { logger } from '../../shared/logger.js';
8
7
  import '../../context/ViewContext/ViewContext.js';
9
8
  import 'react';
10
9
  import '@dynamic-labs/utils';
11
10
  import '../../utils/constants/colors.js';
11
+ import '../../shared/utils/classes/storage/localStorage.js';
12
12
  import 'ethers';
13
13
  import '../../shared/consts/index.js';
14
14
  import '@dynamic-labs/multi-wallet';
@@ -34,22 +34,32 @@ import '../Popper/Popper/Popper.js';
34
34
  import '../Popper/PopperContext/PopperContext.js';
35
35
  import 'formik';
36
36
  import 'yup';
37
+ import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
37
38
  import '../../context/MockContext/MockContext.js';
38
39
  import '../../context/CaptchaContext/CaptchaContext.js';
39
40
  import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
40
41
  import { useGetSocialIcon } from '../../utils/hooks/useGetSocialIcon/useGetSocialIcon.js';
41
42
 
42
43
  const getMagicEmailOrSocialIcon = ({ getSocialIcon, wallet, jwt, }) => {
43
- let Icon = null;
44
44
  if (isEmailOTPWalletConnector(wallet.connector)) {
45
- Icon = SignInWithEmailIcon;
45
+ return SignInWithEmailIcon;
46
46
  }
47
47
  if (isSocialWalletConnector(wallet.connector)) {
48
48
  const socialAccountDataForWallet = getReferencedAccount(jwt, wallet.id);
49
- const MagicSocialWalletIcon = getSocialIcon(socialAccountDataForWallet === null || socialAccountDataForWallet === void 0 ? void 0 : socialAccountDataForWallet.oauthProvider);
50
- Icon = MagicSocialWalletIcon;
49
+ if (!socialAccountDataForWallet ||
50
+ !socialAccountDataForWallet.oauthProvider) {
51
+ return SignInWithEmailIcon;
52
+ }
53
+ const { oauthProvider } = socialAccountDataForWallet;
54
+ try {
55
+ const MagicSocialWalletIcon = getSocialIcon(oauthProvider);
56
+ return MagicSocialWalletIcon;
57
+ }
58
+ catch (err) {
59
+ logger.error(err);
60
+ }
51
61
  }
52
- return Icon;
62
+ return null;
53
63
  };
54
64
  const AuthProviderIcon = ({ jwt, iconSize = 64, showStatus, wallet, }) => {
55
65
  const { primaryWallet, selectedWalletConnector } = useInternalDynamicContext();
@@ -67,10 +77,10 @@ const AuthProviderIcon = ({ jwt, iconSize = 64, showStatus, wallet, }) => {
67
77
  if (deniedAddress) {
68
78
  return (jsx(WalletIcon, { walletName: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.name, style: { height: pixelToRem(iconSize), width: pixelToRem(iconSize) } }));
69
79
  }
70
- if (!primaryWallet) {
80
+ const walletForIcon = wallet ? wallet : primaryWallet;
81
+ if (!walletForIcon) {
71
82
  return null;
72
83
  }
73
- const walletForIcon = wallet ? wallet : primaryWallet;
74
84
  const MagicEmailOrSocialIcon = getMagicEmailOrSocialIcon({
75
85
  getSocialIcon,
76
86
  jwt,
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  require('@dynamic-labs/sdk-api');
7
7
  require('../../shared/logger.cjs');
8
- require('../../config/LSSuffix.cjs');
9
8
  require('@dynamic-labs/iconic');
10
9
  require('@dynamic-labs/wallet-connector-core');
11
10
  require('../../context/ViewContext/ViewContext.cjs');
@@ -14,6 +13,7 @@ var check = require('../../shared/assets/check.cjs');
14
13
  require('@dynamic-labs/wallet-book');
15
14
  require('@dynamic-labs/utils');
16
15
  require('../../utils/constants/colors.cjs');
16
+ require('../../shared/utils/classes/storage/localStorage.cjs');
17
17
  require('ethers');
18
18
  require('../../shared/consts/index.cjs');
19
19
  var classNames = require('../../utils/functions/classNames/classNames.cjs');
@@ -1,7 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import '@dynamic-labs/sdk-api';
3
3
  import '../../shared/logger.js';
4
- import '../../config/LSSuffix.js';
5
4
  import '@dynamic-labs/iconic';
6
5
  import '@dynamic-labs/wallet-connector-core';
7
6
  import '../../context/ViewContext/ViewContext.js';
@@ -10,6 +9,7 @@ import { ReactComponent as SvgCheck } from '../../shared/assets/check.js';
10
9
  import '@dynamic-labs/wallet-book';
11
10
  import '@dynamic-labs/utils';
12
11
  import '../../utils/constants/colors.js';
12
+ import '../../shared/utils/classes/storage/localStorage.js';
13
13
  import 'ethers';
14
14
  import '../../shared/consts/index.js';
15
15
  import { classNames } from '../../utils/functions/classNames/classNames.js';
@@ -7,13 +7,13 @@ require('react');
7
7
  var Typography = require('../Typography/Typography.cjs');
8
8
  require('@dynamic-labs/sdk-api');
9
9
  require('../../shared/logger.cjs');
10
- require('../../config/LSSuffix.cjs');
11
10
  require('@dynamic-labs/iconic');
12
11
  require('@dynamic-labs/wallet-connector-core');
13
12
  require('../../context/ViewContext/ViewContext.cjs');
14
13
  require('@dynamic-labs/wallet-book');
15
14
  require('@dynamic-labs/utils');
16
15
  require('../../utils/constants/colors.cjs');
16
+ require('../../shared/utils/classes/storage/localStorage.cjs');
17
17
  require('ethers');
18
18
  require('../../shared/consts/index.cjs');
19
19
  require('../../context/DynamicContext/DynamicContext.cjs');
@@ -32,6 +32,7 @@ require('../../context/ErrorContext/ErrorContext.cjs');
32
32
  require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
33
33
  require('../IconButton/IconButton.cjs');
34
34
  require('../Alert/Alert.cjs');
35
+ require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
35
36
  require('../../context/MockContext/MockContext.cjs');
36
37
  require('../../context/CaptchaContext/CaptchaContext.cjs');
37
38
  require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
@@ -3,13 +3,13 @@ import 'react';
3
3
  import { Typography } from '../Typography/Typography.js';
4
4
  import '@dynamic-labs/sdk-api';
5
5
  import '../../shared/logger.js';
6
- import '../../config/LSSuffix.js';
7
6
  import '@dynamic-labs/iconic';
8
7
  import '@dynamic-labs/wallet-connector-core';
9
8
  import '../../context/ViewContext/ViewContext.js';
10
9
  import '@dynamic-labs/wallet-book';
11
10
  import '@dynamic-labs/utils';
12
11
  import '../../utils/constants/colors.js';
12
+ import '../../shared/utils/classes/storage/localStorage.js';
13
13
  import 'ethers';
14
14
  import '../../shared/consts/index.js';
15
15
  import '../../context/DynamicContext/DynamicContext.js';
@@ -28,6 +28,7 @@ import '../../context/ErrorContext/ErrorContext.js';
28
28
  import '../../context/AccessDeniedContext/AccessDeniedContext.js';
29
29
  import '../IconButton/IconButton.js';
30
30
  import '../Alert/Alert.js';
31
+ import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
31
32
  import '../../context/MockContext/MockContext.js';
32
33
  import '../../context/CaptchaContext/CaptchaContext.js';
33
34
  import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';