@dynamic-labs/sdk-react-core 0.17.0-RC.3 → 0.17.0-RC.31

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 (687) hide show
  1. package/CHANGELOG.md +326 -0
  2. package/package.cjs +9 -10
  3. package/package.js +9 -10
  4. package/package.json +17 -14
  5. package/src/index.cjs +33 -5
  6. package/src/index.d.ts +6 -2
  7. package/src/index.js +21 -4
  8. package/src/lib/Main.cjs +22 -9
  9. package/src/lib/Main.js +21 -8
  10. package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +12 -2
  11. package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +12 -2
  12. package/src/lib/components/Alert/Alert.cjs +29 -0
  13. package/src/lib/components/Alert/Alert.js +25 -0
  14. package/src/lib/components/Alert/Alert.types.d.ts +4 -1
  15. package/src/lib/components/AnimatePresence/AnimatePresence.cjs +12 -2
  16. package/src/lib/components/AnimatePresence/AnimatePresence.js +12 -2
  17. package/src/lib/components/AppOriginTile/AppOriginTile.types.d.ts +1 -1
  18. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +88 -0
  19. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.d.ts +10 -0
  20. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +84 -0
  21. package/src/lib/components/AuthProviderIcon/index.d.ts +1 -0
  22. package/src/lib/components/ChainCard/ChainCard.d.ts +7 -0
  23. package/src/lib/components/Checkbox/Checkbox.cjs +3 -1
  24. package/src/lib/components/Checkbox/Checkbox.js +3 -1
  25. package/src/lib/components/Chip/Chip.cjs +13 -0
  26. package/src/lib/components/Chip/Chip.d.ts +7 -0
  27. package/src/lib/components/Chip/Chip.js +9 -0
  28. package/src/lib/components/Chip/index.d.ts +1 -0
  29. package/src/lib/components/Divider/Divider.cjs +17 -4
  30. package/src/lib/components/Divider/Divider.d.ts +7 -3
  31. package/src/lib/components/Divider/Divider.js +18 -5
  32. package/src/lib/components/ErrorContainer/ErrorContainer.cjs +5 -3
  33. package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +3 -1
  34. package/src/lib/components/ErrorContainer/ErrorContainer.js +5 -3
  35. package/src/lib/components/FormFieldLabel/FormFieldLabel.cjs +10 -0
  36. package/src/lib/components/FormFieldLabel/FormFieldLabel.d.ts +8 -0
  37. package/src/lib/components/FormFieldLabel/FormFieldLabel.js +6 -0
  38. package/src/lib/components/FormFieldLabel/index.d.ts +1 -0
  39. package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +5 -1
  40. package/src/lib/components/IconWithSpinner/IconWithSpinner.js +5 -1
  41. package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +4 -1
  42. package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +4 -1
  43. package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +4 -0
  44. package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +4 -0
  45. package/src/lib/components/IconWithStatus/IconWithStatus.cjs +11 -5
  46. package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +2 -1
  47. package/src/lib/components/IconWithStatus/IconWithStatus.js +11 -5
  48. package/src/lib/components/Input/Input.cjs +13 -6
  49. package/src/lib/components/Input/Input.js +13 -6
  50. package/src/lib/components/Input/Input.types.d.ts +4 -0
  51. package/src/lib/components/LogoutButton/LogoutButton.cjs +3 -1
  52. package/src/lib/components/LogoutButton/LogoutButton.js +3 -1
  53. package/src/lib/components/NetworkPicker/NetworkPicker.cjs +9 -3
  54. package/src/lib/components/NetworkPicker/NetworkPicker.d.ts +3 -2
  55. package/src/lib/components/NetworkPicker/NetworkPicker.js +9 -3
  56. package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +12 -2
  57. package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +12 -2
  58. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +18 -8
  59. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.d.ts +2 -2
  60. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +18 -8
  61. package/src/lib/components/NetworkPicker/components/Network/Network.cjs +14 -4
  62. package/src/lib/components/NetworkPicker/components/Network/Network.js +14 -4
  63. package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.d.ts +4 -4
  64. package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.d.ts +2 -2
  65. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +13 -3
  66. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +13 -3
  67. package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +3 -1
  68. package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +3 -1
  69. package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +19 -8
  70. package/src/lib/components/OTPVerificationView/OTPVerificationView.js +19 -8
  71. package/src/lib/components/OverlayCard/OverlayCard.cjs +12 -2
  72. package/src/lib/components/OverlayCard/OverlayCard.js +12 -2
  73. package/src/lib/components/Popper/Popper/Popper.cjs +54 -0
  74. package/src/lib/components/Popper/Popper/Popper.d.ts +12 -0
  75. package/src/lib/components/Popper/Popper/Popper.js +50 -0
  76. package/src/lib/components/Popper/Popper/index.d.ts +1 -0
  77. package/src/lib/components/Popper/Popper.types.d.ts +6 -0
  78. package/src/lib/components/Popper/PopperContent/PopperContent.cjs +18 -0
  79. package/src/lib/components/Popper/PopperContent/PopperContent.d.ts +9 -0
  80. package/src/lib/components/Popper/PopperContent/PopperContent.js +14 -0
  81. package/src/lib/components/Popper/PopperContent/index.d.ts +1 -0
  82. package/src/lib/components/Popper/PopperContext/PopperContext.cjs +26 -0
  83. package/src/lib/components/Popper/PopperContext/PopperContext.d.ts +8 -0
  84. package/src/lib/components/Popper/PopperContext/PopperContext.js +20 -0
  85. package/src/lib/components/Popper/PopperContext/index.d.ts +1 -0
  86. package/src/lib/components/Popper/index.d.ts +2 -0
  87. package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.cjs +14 -0
  88. package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.d.ts +2 -0
  89. package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.js +10 -0
  90. package/src/lib/components/Popper/utils/getChildPosition/index.d.ts +1 -0
  91. package/src/lib/components/Popper/utils/index.d.ts +3 -0
  92. package/src/lib/components/Popper/utils/isScrollable/index.d.ts +1 -0
  93. package/src/lib/components/Popper/utils/isScrollable/isScrollable.cjs +16 -0
  94. package/src/lib/components/Popper/utils/isScrollable/isScrollable.d.ts +1 -0
  95. package/src/lib/components/Popper/utils/isScrollable/isScrollable.js +12 -0
  96. package/src/lib/components/Popper/utils/watchToScrollInHierarchy/index.d.ts +1 -0
  97. package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.cjs +24 -0
  98. package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.d.ts +1 -0
  99. package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.js +20 -0
  100. package/src/lib/components/Portal/Portal.cjs +12 -3
  101. package/src/lib/components/Portal/Portal.js +12 -3
  102. package/src/lib/components/Select/Select.cjs +3 -1
  103. package/src/lib/components/Select/Select.js +3 -1
  104. package/src/lib/components/SelectNetworkButton/SelectNetworkButton.cjs +13 -0
  105. package/src/lib/components/SelectNetworkButton/SelectNetworkButton.d.ts +8 -0
  106. package/src/lib/components/SelectNetworkButton/SelectNetworkButton.js +9 -0
  107. package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.d.ts +8 -0
  108. package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +61 -0
  109. package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +11 -0
  110. package/src/lib/components/SendBalanceForm/SendBalanceForm.js +57 -0
  111. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +50 -0
  112. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +19 -0
  113. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +46 -0
  114. package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +25 -0
  115. package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.d.ts +8 -0
  116. package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +21 -0
  117. package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/index.d.ts +1 -0
  118. package/src/lib/components/SendBalancePageLayout/components/index.d.ts +1 -0
  119. package/src/lib/components/SendBalancePageLayout/index.d.ts +2 -0
  120. package/src/lib/components/ShadowDOM/utils.cjs +3 -1
  121. package/src/lib/components/ShadowDOM/utils.js +3 -1
  122. package/src/lib/components/Spinner/spinner.cjs +3 -1
  123. package/src/lib/components/Spinner/spinner.js +3 -1
  124. package/src/lib/components/Toolkit/Toolkit.cjs +4 -1
  125. package/src/lib/components/Toolkit/Toolkit.js +4 -1
  126. package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +3 -1
  127. package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +3 -1
  128. package/src/lib/components/Tooltip/Tooltip.cjs +12 -2
  129. package/src/lib/components/Tooltip/Tooltip.js +12 -2
  130. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +40 -0
  131. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +17 -0
  132. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +36 -0
  133. package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs +11 -0
  134. package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.d.ts +12 -0
  135. package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js +7 -0
  136. package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/index.d.ts +1 -0
  137. package/src/lib/components/TransactionConfirmationPageLayout/components/index.d.ts +1 -0
  138. package/src/lib/components/TransactionConfirmationPageLayout/index.d.ts +2 -0
  139. package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +11 -0
  140. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +56 -0
  141. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.d.ts +12 -0
  142. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +52 -0
  143. package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +12 -2
  144. package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +12 -2
  145. package/src/lib/components/UserAddress/UserAddress.cjs +7 -7
  146. package/src/lib/components/UserAddress/UserAddress.js +8 -8
  147. package/src/lib/components/UserProfile/UserProfile.cjs +16 -8
  148. package/src/lib/components/UserProfile/UserProfile.js +12 -4
  149. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +14 -4
  150. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +1 -0
  151. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +14 -4
  152. package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +5 -3
  153. package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.d.ts +2 -0
  154. package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +5 -3
  155. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +14 -4
  156. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +14 -4
  157. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +32 -13
  158. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +32 -13
  159. package/src/lib/components/index.d.ts +5 -0
  160. package/src/lib/context/AccessDeniedContext/AccessDeniedContext.cjs +30 -0
  161. package/src/lib/context/AccessDeniedContext/AccessDeniedContext.d.ts +13 -0
  162. package/src/lib/context/AccessDeniedContext/AccessDeniedContext.js +24 -0
  163. package/src/lib/context/AccessDeniedContext/index.d.ts +1 -0
  164. package/src/lib/context/DynamicContext/DynamicContext.cjs +84 -33
  165. package/src/lib/context/DynamicContext/DynamicContext.d.ts +20 -11
  166. package/src/lib/context/DynamicContext/DynamicContext.js +79 -28
  167. package/src/lib/context/DynamicContext/helpers.cjs +3 -1
  168. package/src/lib/context/DynamicContext/helpers.js +3 -1
  169. package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +3 -1
  170. package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +3 -1
  171. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +4 -0
  172. package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +4 -0
  173. package/src/lib/context/DynamicContext/hooks/useNameService/index.d.ts +1 -0
  174. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +84 -0
  175. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.d.ts +11 -0
  176. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +80 -0
  177. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.types.d.ts +4 -0
  178. package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/index.d.ts +1 -0
  179. package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.cjs +27 -0
  180. package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.d.ts +14 -0
  181. package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.js +23 -0
  182. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +12 -2
  183. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +12 -2
  184. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +4 -1
  185. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +4 -1
  186. package/src/lib/context/DynamicContext/useDynamicContext.cjs +2 -1
  187. package/src/lib/context/DynamicContext/useDynamicContext.d.ts +1 -1
  188. package/src/lib/context/DynamicContext/useDynamicContext.js +2 -1
  189. package/src/lib/context/DynamicContext/validators.cjs +3 -1
  190. package/src/lib/context/DynamicContext/validators.js +3 -1
  191. package/src/lib/context/FundingContext/FundingContext.cjs +69 -0
  192. package/src/lib/context/FundingContext/FundingContext.d.ts +14 -0
  193. package/src/lib/context/FundingContext/FundingContext.js +63 -0
  194. package/src/lib/context/FundingContext/index.d.ts +1 -0
  195. package/src/lib/context/MockContext/MockContext.cjs +4 -1
  196. package/src/lib/context/MockContext/MockContext.js +4 -1
  197. package/src/lib/context/QrCodeContext/QrCodeContext.cjs +12 -2
  198. package/src/lib/context/QrCodeContext/QrCodeContext.js +12 -2
  199. package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +73 -0
  200. package/src/lib/context/SendBalanceContext/SendBalanceContext.d.ts +4 -0
  201. package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.cjs +11 -0
  202. package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.d.ts +3 -0
  203. package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.js +6 -0
  204. package/src/lib/context/SendBalanceContext/SendBalanceContext.js +68 -0
  205. package/src/lib/context/SendBalanceContext/SendBalanceContext.types.d.ts +9 -0
  206. package/src/lib/context/SendBalanceContext/index.d.ts +1 -0
  207. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +109 -22
  208. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +4 -2
  209. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +109 -22
  210. package/src/lib/context/ThemeContext/themesData.cjs +21 -19
  211. package/src/lib/context/ThemeContext/themesData.d.ts +3 -3
  212. package/src/lib/context/ThemeContext/themesData.js +21 -19
  213. package/src/lib/context/ViewContext/ViewContext.cjs +21 -12
  214. package/src/lib/context/ViewContext/ViewContext.d.ts +10 -8
  215. package/src/lib/context/ViewContext/ViewContext.js +22 -13
  216. package/src/lib/data/api.cjs +38 -19
  217. package/src/lib/data/api.d.ts +10 -3
  218. package/src/lib/data/api.js +23 -5
  219. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +14 -4
  220. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +14 -4
  221. package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +13 -3
  222. package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +13 -3
  223. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +13 -3
  224. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +13 -3
  225. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +14 -4
  226. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +13 -3
  227. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +14 -5
  228. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +12 -3
  229. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +16 -6
  230. package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +16 -6
  231. package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +23 -10
  232. package/src/lib/layout/DynamicAuthLayout/Header/header.js +23 -10
  233. package/src/lib/main.global.cjs +1 -1
  234. package/src/lib/main.global.js +1 -1
  235. package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +66 -0
  236. package/src/lib/modals/SendBalanceModal/SendBalanceModal.d.ts +10 -0
  237. package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +62 -0
  238. package/src/lib/modals/SendBalanceModal/index.d.ts +1 -0
  239. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +20 -10
  240. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +20 -10
  241. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +35 -99
  242. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +37 -101
  243. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +0 -4
  244. package/src/lib/modals/index.d.ts +1 -0
  245. package/src/lib/shared/assets/add.cjs +8 -9
  246. package/src/lib/shared/assets/add.js +8 -9
  247. package/src/lib/shared/assets/index.d.ts +1 -0
  248. package/src/lib/shared/assets/send.cjs +56 -0
  249. package/src/lib/shared/assets/send.js +32 -0
  250. package/src/lib/shared/types/index.d.ts +14 -4
  251. package/src/lib/shared/utils/functions/ceil/ceil.cjs +10 -0
  252. package/src/lib/shared/utils/functions/ceil/ceil.d.ts +1 -0
  253. package/src/lib/shared/utils/functions/ceil/ceil.js +6 -0
  254. package/src/lib/shared/utils/functions/ceil/index.d.ts +1 -0
  255. package/src/lib/shared/utils/functions/chain/getChainDisplayName.cjs +2 -2
  256. package/src/lib/shared/utils/functions/chain/getChainDisplayName.js +1 -1
  257. package/src/lib/shared/utils/functions/chain/getChainIcon.cjs +2 -2
  258. package/src/lib/shared/utils/functions/chain/getChainIcon.js +1 -1
  259. package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs +21 -0
  260. package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.d.ts +2 -0
  261. package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.js +17 -0
  262. package/src/lib/shared/utils/functions/formatBigNumber/index.d.ts +1 -0
  263. package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +5 -10
  264. package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +3 -8
  265. package/src/lib/shared/utils/functions/index.d.ts +3 -0
  266. package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.cjs +27 -0
  267. package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.d.ts +6 -0
  268. package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.js +23 -0
  269. package/src/lib/shared/utils/functions/trimEnd/index.d.ts +1 -0
  270. package/src/lib/shared/utils/functions/trimEnd/trimEnd.cjs +13 -0
  271. package/src/lib/shared/utils/functions/trimEnd/trimEnd.d.ts +1 -0
  272. package/src/lib/shared/utils/functions/trimEnd/trimEnd.js +9 -0
  273. package/src/lib/shared/utils/hooks/index.d.ts +1 -0
  274. package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +3 -1
  275. package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +3 -1
  276. package/src/lib/styles/index.shadow.cjs +1 -1
  277. package/src/lib/styles/index.shadow.js +1 -1
  278. package/src/lib/utils/constants/localStorage.cjs +3 -1
  279. package/src/lib/utils/constants/localStorage.d.ts +1 -0
  280. package/src/lib/utils/constants/localStorage.js +3 -2
  281. package/src/lib/utils/functions/generateMessages/index.cjs +4 -3
  282. package/src/lib/utils/functions/generateMessages/index.js +2 -1
  283. package/src/lib/utils/functions/getAppOrigin/getAppOrigin.cjs +12 -0
  284. package/src/lib/utils/functions/getAppOrigin/getAppOrigin.d.ts +1 -0
  285. package/src/lib/utils/functions/getAppOrigin/getAppOrigin.js +8 -0
  286. package/src/lib/utils/functions/getAppOrigin/index.d.ts +1 -0
  287. package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +3 -1
  288. package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +3 -1
  289. package/src/lib/utils/functions/getEnabledKYC/index.cjs +5 -0
  290. package/src/lib/utils/functions/getEnabledKYC/index.d.ts +5 -0
  291. package/src/lib/utils/functions/getEnabledKYC/index.js +5 -0
  292. package/src/lib/utils/functions/getNetwork/getNetwork.cjs +1 -6
  293. package/src/lib/utils/functions/getNetwork/getNetwork.d.ts +1 -1
  294. package/src/lib/utils/functions/getNetwork/getNetwork.js +1 -6
  295. package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +29 -0
  296. package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.d.ts +7 -0
  297. package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +25 -0
  298. package/src/lib/utils/functions/getReferencedAccount/index.d.ts +1 -0
  299. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.cjs +78 -0
  300. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.d.ts +29 -0
  301. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.js +72 -0
  302. package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +2 -0
  303. package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -0
  304. package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +2 -0
  305. package/src/lib/utils/functions/getWalletProvider/getWalletProvider.cjs +2 -2
  306. package/src/lib/utils/functions/getWalletProvider/getWalletProvider.js +1 -1
  307. package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.cjs +1 -1
  308. package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.d.ts +1 -2
  309. package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.js +1 -1
  310. package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +6 -3
  311. package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +4 -1
  312. package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.d.ts +1 -0
  313. package/src/lib/utils/functions/index.d.ts +3 -0
  314. package/src/lib/utils/functions/isNetworkUnsupported/index.d.ts +1 -0
  315. package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.cjs +12 -0
  316. package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.d.ts +2 -0
  317. package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.js +8 -0
  318. package/src/lib/utils/functions/isProgrammableNetworkSwitchSupported/isProgrammableNetworkSwitchSupported.cjs +16 -1
  319. package/src/lib/utils/functions/isProgrammableNetworkSwitchSupported/isProgrammableNetworkSwitchSupported.d.ts +6 -0
  320. package/src/lib/utils/functions/isProgrammableNetworkSwitchSupported/isProgrammableNetworkSwitchSupported.js +16 -1
  321. package/src/lib/utils/functions/isSameWalletName/isSameWalletName.cjs +2 -2
  322. package/src/lib/utils/functions/isSameWalletName/isSameWalletName.js +1 -1
  323. package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.cjs +3 -3
  324. package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.js +1 -1
  325. package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.cjs +6 -1
  326. package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.d.ts +1 -1
  327. package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.js +6 -1
  328. package/src/lib/utils/functions/isWalletConnected/isWalletConnected.cjs +2 -2
  329. package/src/lib/utils/functions/isWalletConnected/isWalletConnected.js +1 -1
  330. package/src/lib/utils/functions/isWalletLinked/index.d.ts +1 -0
  331. package/src/lib/utils/functions/isWalletLinked/isWalletLinked.cjs +15 -0
  332. package/src/lib/utils/functions/isWalletLinked/isWalletLinked.d.ts +2 -0
  333. package/src/lib/utils/functions/isWalletLinked/isWalletLinked.js +11 -0
  334. package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs +6 -3
  335. package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.d.ts +2 -0
  336. package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +4 -1
  337. package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.cjs +2 -2
  338. package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.js +1 -1
  339. package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +6 -7
  340. package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +1 -2
  341. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +7 -5
  342. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +4 -2
  343. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +3 -1
  344. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +3 -1
  345. package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +4 -0
  346. package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +4 -0
  347. package/src/lib/utils/hooks/index.d.ts +2 -0
  348. package/src/lib/utils/hooks/multiWallet/index.d.ts +1 -0
  349. package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.cjs +0 -2
  350. package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.js +0 -2
  351. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +67 -8
  352. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +10 -3
  353. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +68 -9
  354. package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +5 -1
  355. package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +5 -1
  356. package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +7 -3
  357. package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +5 -1
  358. package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +2 -2
  359. package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +1 -1
  360. package/src/lib/utils/hooks/useColorSchemePreference/index.d.ts +1 -0
  361. package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +27 -0
  362. package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.d.ts +1 -0
  363. package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +23 -0
  364. package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.cjs +6 -1
  365. package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.js +6 -1
  366. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +6 -3
  367. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +1 -1
  368. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +4 -1
  369. package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +3 -1
  370. package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +3 -1
  371. package/src/lib/utils/hooks/useConnectedAccountWallet/index.d.ts +1 -0
  372. package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.cjs +30 -0
  373. package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.d.ts +2 -0
  374. package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.js +26 -0
  375. package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +4 -1
  376. package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +4 -1
  377. package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +56 -32
  378. package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.d.ts +5 -5
  379. package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +57 -33
  380. package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +4 -2
  381. package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +3 -1
  382. package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +5 -2
  383. package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +4 -1
  384. package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +3 -1
  385. package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +3 -1
  386. package/src/lib/utils/hooks/useGetSocialIcon/index.d.ts +1 -0
  387. package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.cjs +17 -0
  388. package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.d.ts +2 -0
  389. package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.js +13 -0
  390. package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +25 -2
  391. package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +25 -2
  392. package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +16 -6
  393. package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.d.ts +5 -0
  394. package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +16 -6
  395. package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs +3 -1
  396. package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +3 -1
  397. package/src/lib/utils/hooks/useMutation/useMutation.cjs +4 -4
  398. package/src/lib/utils/hooks/useMutation/useMutation.js +1 -1
  399. package/src/lib/utils/hooks/usePrevious/usePrevious.cjs +0 -1
  400. package/src/lib/utils/hooks/usePrevious/usePrevious.d.ts +1 -1
  401. package/src/lib/utils/hooks/usePrevious/usePrevious.js +0 -1
  402. package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +8 -5
  403. package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.d.ts +2 -2
  404. package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +10 -7
  405. package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +7 -0
  406. package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.d.ts +7 -0
  407. package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +7 -0
  408. package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +6 -4
  409. package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +5 -3
  410. package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +4 -3
  411. package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +4 -3
  412. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +30 -20
  413. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +1 -1
  414. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +26 -16
  415. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +37 -0
  416. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.d.ts +8 -0
  417. package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +33 -0
  418. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +54 -75
  419. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +2 -1
  420. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +53 -74
  421. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +55 -0
  422. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.d.ts +8 -0
  423. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +51 -0
  424. package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/index.d.ts +1 -0
  425. package/src/lib/utils/hooks/useWalletConnectors/utils/index.d.ts +2 -0
  426. package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/index.d.ts +1 -0
  427. package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.cjs +7 -0
  428. package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.d.ts +1 -0
  429. package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.js +3 -0
  430. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +92 -55
  431. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +6 -4
  432. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +91 -54
  433. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +17 -15
  434. package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +15 -13
  435. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +50 -14
  436. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -1
  437. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +50 -14
  438. package/src/lib/utils/hooks/useWallets/useWallets.cjs +28 -34
  439. package/src/lib/utils/hooks/useWallets/useWallets.d.ts +6 -6
  440. package/src/lib/utils/hooks/useWallets/useWallets.js +29 -35
  441. package/src/lib/utils/hooks/useWalletsConnectionState/index.d.ts +1 -0
  442. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +46 -0
  443. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +14 -0
  444. package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +42 -0
  445. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +13 -4
  446. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +13 -4
  447. package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +19 -9
  448. package/src/lib/views/CollectUserDataView/CollectUserDataView.js +19 -9
  449. package/src/lib/views/CollectUserDataView/{UserDataForm/UserDataForm.cjs → OnboardingUserDataForm/OnboardingUserDataForm.cjs} +22 -11
  450. package/src/lib/views/CollectUserDataView/{UserDataForm/UserDataForm.d.ts → OnboardingUserDataForm/OnboardingUserDataForm.d.ts} +1 -1
  451. package/src/lib/views/CollectUserDataView/{UserDataForm/UserDataForm.js → OnboardingUserDataForm/OnboardingUserDataForm.js} +22 -11
  452. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/index.d.ts +1 -0
  453. package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +14 -5
  454. package/src/lib/views/CollectUserDataView/UserDataFields/index.js +14 -5
  455. package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +5 -3
  456. package/src/lib/views/CollectUserDataView/fieldsConfig.js +5 -3
  457. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +15 -5
  458. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +15 -5
  459. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +16 -6
  460. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +15 -5
  461. package/src/lib/views/EmailUpdate/EmailUpdate.cjs +14 -4
  462. package/src/lib/views/EmailUpdate/EmailUpdate.js +14 -4
  463. package/src/lib/views/EmailVerification/EmailVerification.cjs +24 -11
  464. package/src/lib/views/EmailVerification/EmailVerification.js +23 -10
  465. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +13 -3
  466. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +12 -2
  467. package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +14 -7
  468. package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +14 -7
  469. package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +13 -3
  470. package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +13 -3
  471. package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +14 -7
  472. package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +14 -7
  473. package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +28 -11
  474. package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +28 -11
  475. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +38 -10
  476. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +38 -10
  477. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +15 -5
  478. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +15 -5
  479. package/src/lib/views/NoAccess/NoAccess.cjs +27 -30
  480. package/src/lib/views/NoAccess/NoAccess.js +28 -31
  481. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +12 -3
  482. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +12 -3
  483. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +13 -3
  484. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +13 -3
  485. package/src/lib/views/PendingConnectView/PendingConnectView.cjs +15 -6
  486. package/src/lib/views/PendingConnectView/PendingConnectView.js +14 -5
  487. package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +16 -7
  488. package/src/lib/views/PendingSignatureView/PendingSignatureView.js +16 -7
  489. package/src/lib/views/QrCodeView/QRCode.cjs +2 -2
  490. package/src/lib/views/QrCodeView/QRCode.js +1 -1
  491. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +14 -4
  492. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +13 -3
  493. package/src/lib/views/QrCodeView/QrCodeView.cjs +13 -4
  494. package/src/lib/views/QrCodeView/QrCodeView.js +13 -4
  495. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +116 -0
  496. package/src/lib/views/SendBalanceView/SendBalanceView.d.ts +13 -0
  497. package/src/lib/views/SendBalanceView/SendBalanceView.js +112 -0
  498. package/src/lib/views/SendBalanceView/index.d.ts +1 -0
  499. package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +19 -13
  500. package/src/lib/views/SocialRedirectView/SocialRedirectView.js +19 -13
  501. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +61 -0
  502. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.d.ts +2 -0
  503. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +57 -0
  504. package/src/lib/views/SocialWrongAccountView/index.d.ts +1 -0
  505. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +94 -0
  506. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +14 -0
  507. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +90 -0
  508. package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.cjs +7 -1
  509. package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.d.ts +1 -0
  510. package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +18 -0
  511. package/src/lib/views/TransactionConfirmationView/hooks/index.d.ts +1 -0
  512. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/index.d.ts +1 -0
  513. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +91 -0
  514. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.d.ts +18 -0
  515. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +87 -0
  516. package/src/lib/views/TransactionConfirmationView/index.d.ts +2 -0
  517. package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +13 -3
  518. package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +13 -3
  519. package/src/lib/views/WalletList/WalletList.cjs +6 -3
  520. package/src/lib/views/WalletList/WalletList.js +6 -3
  521. package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +12 -3
  522. package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +12 -3
  523. package/src/lib/views/WalletList/data.cjs +10 -7
  524. package/src/lib/views/WalletList/data.d.ts +3 -3
  525. package/src/lib/views/WalletList/data.js +10 -7
  526. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +14 -5
  527. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +14 -5
  528. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +15 -6
  529. package/src/lib/views/WalletUsedView/WalletUsedView.js +13 -4
  530. package/src/lib/views/viewToComponentMap.cjs +2 -0
  531. package/src/lib/views/viewToComponentMap.js +2 -0
  532. package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +13 -3
  533. package/src/lib/widgets/DynamicWidget/DynamicWidget.js +13 -3
  534. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +20 -10
  535. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +20 -10
  536. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +79 -0
  537. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.d.ts +2 -0
  538. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +75 -0
  539. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/index.d.ts +1 -0
  540. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +14 -4
  541. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.d.ts +1 -1
  542. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +14 -4
  543. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +18 -30
  544. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +6 -2
  545. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +19 -31
  546. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +17 -6
  547. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +17 -6
  548. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.types.d.ts +3 -2
  549. package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -1
  550. package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -1
  551. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +18 -5
  552. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +17 -4
  553. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +14 -4
  554. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.d.ts +5 -2
  555. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +14 -4
  556. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +48 -26
  557. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.d.ts +5 -2
  558. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +50 -28
  559. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.cjs +18 -8
  560. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.js +18 -8
  561. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs +13 -3
  562. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js +13 -3
  563. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +13 -3
  564. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +13 -3
  565. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +16 -6
  566. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +16 -6
  567. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +2 -0
  568. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +2 -0
  569. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +16 -8
  570. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +16 -8
  571. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +14 -4
  572. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +14 -4
  573. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +25 -4
  574. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +25 -4
  575. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +13 -3
  576. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +13 -3
  577. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +14 -4
  578. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +14 -4
  579. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +37 -21
  580. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.d.ts +2 -3
  581. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +37 -21
  582. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +4 -0
  583. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +4 -0
  584. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +42 -6
  585. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +2 -1
  586. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +43 -7
  587. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +14 -12
  588. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -5
  589. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +15 -13
  590. package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +4 -0
  591. package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.d.ts +1 -1
  592. package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +4 -0
  593. package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +3 -3
  594. package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +2 -2
  595. package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +2 -2
  596. package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.d.ts +1 -1
  597. package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +1 -1
  598. package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/index.d.ts +1 -0
  599. package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +22 -0
  600. package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.d.ts +2 -0
  601. package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +18 -0
  602. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +46 -0
  603. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +13 -0
  604. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +42 -0
  605. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +14 -4
  606. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +14 -4
  607. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +60 -0
  608. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.d.ts +2 -0
  609. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +56 -0
  610. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/index.d.ts +1 -0
  611. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +17 -36
  612. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +18 -37
  613. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +44 -0
  614. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.d.ts +7 -0
  615. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +40 -0
  616. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/index.d.ts +1 -0
  617. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +70 -0
  618. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.d.ts +8 -0
  619. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +66 -0
  620. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/index.d.ts +1 -0
  621. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +60 -0
  622. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.d.ts +2 -0
  623. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +56 -0
  624. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/index.d.ts +1 -0
  625. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +63 -0
  626. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.d.ts +2 -0
  627. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +59 -0
  628. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/index.d.ts +1 -0
  629. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +67 -0
  630. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.d.ts +2 -0
  631. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +63 -0
  632. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +5 -33
  633. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +3 -31
  634. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +16 -9
  635. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +17 -10
  636. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +14 -4
  637. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +14 -4
  638. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +17 -9
  639. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +17 -9
  640. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +21 -9
  641. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +20 -8
  642. package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.cjs +14 -4
  643. package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.js +14 -4
  644. package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +19 -9
  645. package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +19 -9
  646. package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.cjs +15 -0
  647. package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.d.ts +2 -0
  648. package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.js +11 -0
  649. package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/index.d.ts +1 -0
  650. package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -0
  651. package/src/lib/widgets/FundingWidget/FundingWidget.cjs +10 -0
  652. package/src/lib/widgets/FundingWidget/FundingWidget.d.ts +2 -0
  653. package/src/lib/widgets/FundingWidget/FundingWidget.js +6 -0
  654. package/src/lib/widgets/FundingWidget/index.d.ts +1 -0
  655. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +63 -0
  656. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.d.ts +5 -0
  657. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +58 -0
  658. package/src/lib/widgets/FundingWidget/views/FundWalletView/index.d.ts +1 -0
  659. package/src/lib/widgets/index.d.ts +1 -0
  660. package/src/polyfills.cjs +11 -0
  661. package/src/polyfills.d.ts +1 -0
  662. package/src/polyfills.js +9 -0
  663. package/src/shim/process.cjs +238 -0
  664. package/src/shim/process.d.ts +34 -0
  665. package/src/shim/process.js +234 -0
  666. package/src/lib/modals/TransactionConfirmationModal/helpers/transactionErrorMessage.js +0 -12
  667. package/src/lib/utils/functions/getSocialIcon/getSocialIcon.cjs +0 -22
  668. package/src/lib/utils/functions/getSocialIcon/getSocialIcon.d.ts +0 -3
  669. package/src/lib/utils/functions/getSocialIcon/getSocialIcon.js +0 -18
  670. package/src/lib/utils/functions/getSocialIcon/index.d.ts +0 -1
  671. package/src/lib/utils/hooks/useWallets/utils/getMagicLinkApiKeyFromProviders/getMagicLinkApiKeyFromProviders.cjs +0 -12
  672. package/src/lib/utils/hooks/useWallets/utils/getMagicLinkApiKeyFromProviders/getMagicLinkApiKeyFromProviders.d.ts +0 -2
  673. package/src/lib/utils/hooks/useWallets/utils/getMagicLinkApiKeyFromProviders/getMagicLinkApiKeyFromProviders.js +0 -8
  674. package/src/lib/utils/hooks/useWallets/utils/getMagicLinkApiKeyFromProviders/index.d.ts +0 -1
  675. package/src/lib/utils/hooks/useWallets/utils/index.d.ts +0 -1
  676. package/src/lib/views/CollectUserDataView/UserDataForm/index.d.ts +0 -1
  677. package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +0 -43
  678. package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.d.ts +0 -2
  679. package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +0 -39
  680. package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.types.d.ts +0 -7
  681. package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.cjs +0 -64
  682. package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.js +0 -60
  683. package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.cjs +0 -55
  684. package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.d.ts +0 -6
  685. package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.js +0 -51
  686. package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/index.d.ts +0 -1
  687. /package/src/lib/widgets/DynamicWidget/{components → prompts/PendingSignModal}/DefaultPendingSignModalContent/index.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ export * from './getChildPosition';
2
+ export * from './watchToScrollInHierarchy';
3
+ export * from './isScrollable';
@@ -0,0 +1 @@
1
+ export { isScrollable } from './isScrollable';
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const isScrollable = (element) => {
6
+ const hasScrollableContent = element.scrollHeight > element.clientHeight;
7
+ // It's not enough because the element's `overflow-y` style can be set as
8
+ // * `hidden`
9
+ // * `hidden !important`
10
+ // In those cases, the scrollbar isn't shown
11
+ const overflowYStyle = window.getComputedStyle(element).overflowY;
12
+ const isOverflowHidden = overflowYStyle.indexOf('hidden') !== -1;
13
+ return hasScrollableContent && !isOverflowHidden;
14
+ };
15
+
16
+ exports.isScrollable = isScrollable;
@@ -0,0 +1 @@
1
+ export declare const isScrollable: (element: HTMLElement) => boolean;
@@ -0,0 +1,12 @@
1
+ const isScrollable = (element) => {
2
+ const hasScrollableContent = element.scrollHeight > element.clientHeight;
3
+ // It's not enough because the element's `overflow-y` style can be set as
4
+ // * `hidden`
5
+ // * `hidden !important`
6
+ // In those cases, the scrollbar isn't shown
7
+ const overflowYStyle = window.getComputedStyle(element).overflowY;
8
+ const isOverflowHidden = overflowYStyle.indexOf('hidden') !== -1;
9
+ return hasScrollableContent && !isOverflowHidden;
10
+ };
11
+
12
+ export { isScrollable };
@@ -0,0 +1 @@
1
+ export { watchToScrollInHierarchy } from './watchToScrollInHierarchy';
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var isScrollable = require('../isScrollable/isScrollable.cjs');
6
+
7
+ const watchToScrollInHierarchy = (root, element, callback) => {
8
+ const elementsWithListener = [];
9
+ let currentElement = element;
10
+ while (currentElement !== null) {
11
+ const reachedRoot = currentElement === root;
12
+ if (isScrollable.isScrollable(currentElement)) {
13
+ currentElement.addEventListener('scroll', callback);
14
+ elementsWithListener.push(currentElement);
15
+ }
16
+ currentElement = currentElement.parentElement;
17
+ if (reachedRoot) {
18
+ break;
19
+ }
20
+ }
21
+ return () => elementsWithListener.forEach((element) => element.removeEventListener('scroll', callback));
22
+ };
23
+
24
+ exports.watchToScrollInHierarchy = watchToScrollInHierarchy;
@@ -0,0 +1 @@
1
+ export declare const watchToScrollInHierarchy: (root: HTMLElement, element: HTMLElement, callback: () => void) => () => void;
@@ -0,0 +1,20 @@
1
+ import { isScrollable } from '../isScrollable/isScrollable.js';
2
+
3
+ const watchToScrollInHierarchy = (root, element, callback) => {
4
+ const elementsWithListener = [];
5
+ let currentElement = element;
6
+ while (currentElement !== null) {
7
+ const reachedRoot = currentElement === root;
8
+ if (isScrollable(currentElement)) {
9
+ currentElement.addEventListener('scroll', callback);
10
+ elementsWithListener.push(currentElement);
11
+ }
12
+ currentElement = currentElement.parentElement;
13
+ if (reachedRoot) {
14
+ break;
15
+ }
16
+ }
17
+ return () => elementsWithListener.forEach((element) => element.removeEventListener('scroll', callback));
18
+ };
19
+
20
+ export { watchToScrollInHierarchy };
@@ -9,22 +9,32 @@ require('../Transition/ZoomTransition/ZoomTransition.cjs');
9
9
  require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
10
10
  var OpacityTransition = require('../Transition/OpacityTransition/OpacityTransition.cjs');
11
11
  require('react');
12
- require('@dynamic-labs/multi-wallet');
12
+ require('@dynamic-labs/utils');
13
13
  require('@dynamic-labs/sdk-api');
14
14
  require('../../config/ApiEndpoint.cjs');
15
15
  require('../../shared/logger.cjs');
16
16
  require('@dynamic-labs/iconic');
17
+ require('@dynamic-labs/wallet-connector-core');
17
18
  var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
18
19
  require('../../utils/constants/colors.cjs');
20
+ require('ethers');
19
21
  require('../../shared/consts/index.cjs');
22
+ require('@dynamic-labs/multi-wallet');
23
+ require('@dynamic-labs/rpc-providers');
20
24
  require('../../context/DynamicContext/DynamicContext.cjs');
21
25
  require('../../context/ErrorContext/ErrorContext.cjs');
26
+ require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
22
27
  var useElementById = require('../../utils/hooks/useElementById/useElementById.cjs');
23
28
  var ShadowDOM = require('../ShadowDOM/ShadowDOM.cjs');
24
29
  require('../../context/ThemeContext/ThemeContext.cjs');
25
30
  var useKeyboardEventListener = require('../../utils/hooks/useKeyboardEventListener/useKeyboardEventListener.cjs');
26
31
  require('../IconButton/IconButton.cjs');
27
- require('ethers');
32
+ require('../Alert/Alert.cjs');
33
+ require('@dynamic-labs/wallet-book');
34
+ require('../Popper/Popper/Popper.cjs');
35
+ require('../Popper/PopperContext/PopperContext.cjs');
36
+ require('formik');
37
+ require('yup');
28
38
  require('../../context/MockContext/MockContext.cjs');
29
39
  require('../../context/CaptchaContext/CaptchaContext.cjs');
30
40
  require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
@@ -36,7 +46,6 @@ var ReactFocusLock__default = /*#__PURE__*/_interopDefaultLegacy(ReactFocusLock)
36
46
  const ModalComponent = ({ children, handleClose, withBackdrop = true, zIndex, whiteList, }) => {
37
47
  const { view } = ViewContext.useViewContext();
38
48
  const shouldCloseOnBackdropClick = view !== 'collect-user-data' &&
39
- view !== 'network-not-supported' &&
40
49
  view !== 'update-email' &&
41
50
  view !== 'login-with-email-verification' &&
42
51
  view !== 'verify-email';
@@ -5,22 +5,32 @@ import '../Transition/ZoomTransition/ZoomTransition.js';
5
5
  import '../Transition/SlideInUpTransition/SlideInUpTransition.js';
6
6
  import { OpacityTransition } from '../Transition/OpacityTransition/OpacityTransition.js';
7
7
  import 'react';
8
- import '@dynamic-labs/multi-wallet';
8
+ import '@dynamic-labs/utils';
9
9
  import '@dynamic-labs/sdk-api';
10
10
  import '../../config/ApiEndpoint.js';
11
11
  import '../../shared/logger.js';
12
12
  import '@dynamic-labs/iconic';
13
+ import '@dynamic-labs/wallet-connector-core';
13
14
  import { useViewContext } from '../../context/ViewContext/ViewContext.js';
14
15
  import '../../utils/constants/colors.js';
16
+ import 'ethers';
15
17
  import '../../shared/consts/index.js';
18
+ import '@dynamic-labs/multi-wallet';
19
+ import '@dynamic-labs/rpc-providers';
16
20
  import '../../context/DynamicContext/DynamicContext.js';
17
21
  import '../../context/ErrorContext/ErrorContext.js';
22
+ import '../../context/AccessDeniedContext/AccessDeniedContext.js';
18
23
  import { useElementById } from '../../utils/hooks/useElementById/useElementById.js';
19
24
  import { ShadowDOM } from '../ShadowDOM/ShadowDOM.js';
20
25
  import '../../context/ThemeContext/ThemeContext.js';
21
26
  import { useKeyboardEventListener } from '../../utils/hooks/useKeyboardEventListener/useKeyboardEventListener.js';
22
27
  import '../IconButton/IconButton.js';
23
- import 'ethers';
28
+ import '../Alert/Alert.js';
29
+ import '@dynamic-labs/wallet-book';
30
+ import '../Popper/Popper/Popper.js';
31
+ import '../Popper/PopperContext/PopperContext.js';
32
+ import 'formik';
33
+ import 'yup';
24
34
  import '../../context/MockContext/MockContext.js';
25
35
  import '../../context/CaptchaContext/CaptchaContext.js';
26
36
  import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
@@ -28,7 +38,6 @@ import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
28
38
  const ModalComponent = ({ children, handleClose, withBackdrop = true, zIndex, whiteList, }) => {
29
39
  const { view } = useViewContext();
30
40
  const shouldCloseOnBackdropClick = view !== 'collect-user-data' &&
31
- view !== 'network-not-supported' &&
32
41
  view !== 'update-email' &&
33
42
  view !== 'login-with-email-verification' &&
34
43
  view !== 'verify-email';
@@ -8,10 +8,12 @@ var React = require('react');
8
8
  require('@dynamic-labs/sdk-api');
9
9
  require('../../shared/logger.cjs');
10
10
  require('@dynamic-labs/iconic');
11
- require('@dynamic-labs/multi-wallet');
11
+ require('@dynamic-labs/wallet-connector-core');
12
12
  require('../../context/ViewContext/ViewContext.cjs');
13
13
  var arrowDown = require('../../shared/assets/arrow-down.cjs');
14
+ require('@dynamic-labs/utils');
14
15
  require('../../utils/constants/colors.cjs');
16
+ require('ethers');
15
17
  require('../../shared/consts/index.cjs');
16
18
  var classNames = require('../../utils/functions/classNames/classNames.cjs');
17
19
  var Icon = require('../Icon/Icon.cjs');
@@ -4,10 +4,12 @@ import { useRef, useState, useLayoutEffect } from 'react';
4
4
  import '@dynamic-labs/sdk-api';
5
5
  import '../../shared/logger.js';
6
6
  import '@dynamic-labs/iconic';
7
- import '@dynamic-labs/multi-wallet';
7
+ import '@dynamic-labs/wallet-connector-core';
8
8
  import '../../context/ViewContext/ViewContext.js';
9
9
  import { ReactComponent as SvgArrowDown } from '../../shared/assets/arrow-down.js';
10
+ import '@dynamic-labs/utils';
10
11
  import '../../utils/constants/colors.js';
12
+ import 'ethers';
11
13
  import '../../shared/consts/index.js';
12
14
  import { classNames } from '../../utils/functions/classNames/classNames.js';
13
15
  import { Icon } from '../Icon/Icon.js';
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var Button = require('../Button/Button.cjs');
7
+
8
+ const SelectNetworkButton = ({ networkId, networkName, networkIconUrl, onClick, }) => {
9
+ const networkImage = (jsxRuntime.jsx("img", { alt: networkName, className: 'select-network-button__icon', src: networkIconUrl }));
10
+ return (jsxRuntime.jsxs(Button.Button, Object.assign({ dataTestId: 'SelectNetworkButton', onClick: () => onClick(networkId), buttonRounded: 'default', expanded: true, className: 'select-network-button' }, { children: ["Select", networkImage, networkName, " network"] })));
11
+ };
12
+
13
+ exports.SelectNetworkButton = SelectNetworkButton;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ export type SelectNetworkButtonProps = {
3
+ networkIconUrl?: string;
4
+ networkId: string | number;
5
+ networkName?: string;
6
+ onClick: (networkId: string | number) => void;
7
+ };
8
+ export declare const SelectNetworkButton: FC<SelectNetworkButtonProps>;
@@ -0,0 +1,9 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { Button } from '../Button/Button.js';
3
+
4
+ const SelectNetworkButton = ({ networkId, networkName, networkIconUrl, onClick, }) => {
5
+ const networkImage = (jsx("img", { alt: networkName, className: 'select-network-button__icon', src: networkIconUrl }));
6
+ return (jsxs(Button, Object.assign({ dataTestId: 'SelectNetworkButton', onClick: () => onClick(networkId), buttonRounded: 'default', expanded: true, className: 'select-network-button' }, { children: ["Select", networkImage, networkName, " network"] })));
7
+ };
8
+
9
+ export { SelectNetworkButton };
@@ -0,0 +1,8 @@
1
+ import { FC, PropsWithChildren, ReactElement } from 'react';
2
+ type SelectWalletChainLayoutProps = {
3
+ HeaderIcon?: ReactElement;
4
+ onClose?: () => void;
5
+ onBack?: () => void;
6
+ };
7
+ export declare const SelectWalletChainLayout: FC<PropsWithChildren<SelectWalletChainLayoutProps>>;
8
+ export {};
@@ -0,0 +1,61 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var React = require('react');
7
+ var formik = require('formik');
8
+ var yup = require('yup');
9
+ var Input = require('../Input/Input.cjs');
10
+ var Button = require('../Button/Button.cjs');
11
+
12
+ const sendBalanceFormInitialValues = {
13
+ amount: '',
14
+ recipient: '',
15
+ };
16
+ const mapFieldAndErrorToMessage = {
17
+ amount: {
18
+ invalidFormat: 'The amount is in invalid format',
19
+ overBalance: 'Insufficient funds to send this amount.',
20
+ required: 'The amount field is required',
21
+ },
22
+ recipient: {
23
+ invalidFormat: 'The address is in invalid format',
24
+ required: 'The recipient is required',
25
+ },
26
+ };
27
+ const getDisplayErrorMessage = (errors, field) => {
28
+ const errorType = errors[field];
29
+ if (errorType) {
30
+ return mapFieldAndErrorToMessage[field][errorType];
31
+ }
32
+ return '';
33
+ };
34
+ const SendBalanceForm = ({ initialValues, onSubmit, balance, }) => {
35
+ const sendBalanceFormValidationSchema = React.useMemo(() => yup.object().shape({
36
+ amount: yup.string()
37
+ .required('required')
38
+ .matches(/^\d+(\.\d{1,8})?$/, 'invalidFormat')
39
+ .test({
40
+ message: 'overBalance',
41
+ test: (value) => {
42
+ if (!value || balance === undefined)
43
+ return true;
44
+ try {
45
+ const valueNumber = parseFloat(value);
46
+ return valueNumber < balance;
47
+ }
48
+ catch (err) {
49
+ return true;
50
+ }
51
+ },
52
+ }),
53
+ recipient: yup.string()
54
+ .required('required')
55
+ .matches(/^0x[0-9a-fA-F]{40}$/, 'invalidFormat'),
56
+ }), [balance]);
57
+ return (jsxRuntime.jsx(formik.Formik, Object.assign({ initialValues: initialValues || sendBalanceFormInitialValues, validationSchema: sendBalanceFormValidationSchema, onSubmit: (values) => onSubmit(values), validateOnChange: false, validateOnBlur: false }, { children: ({ errors, touched }) => (jsxRuntime.jsxs(formik.Form, Object.assign({ className: 'send-balance-form' }, { children: [jsxRuntime.jsx(formik.Field, { variant: 'regular', className: 'send-balance-form__field', name: 'amount', label: 'Amount', placeholder: 'Select amount', as: Input.Input, error: errors['amount'], message: touched['amount'] && getDisplayErrorMessage(errors, 'amount') }), jsxRuntime.jsx(formik.Field, { variant: 'regular', className: 'send-balance-form__field', placeholder: 'Enter wallet address...', label: 'Recipient', id: 'recipient', name: 'recipient', as: Input.Input, error: errors['recipient'], message: touched['recipient'] &&
58
+ getDisplayErrorMessage(errors, 'recipient') }), jsxRuntime.jsx(Button.Button, Object.assign({ dataTestId: 'sendBalanceFormSubmitButton', expanded: true, type: 'submit', buttonVariant: 'primary', buttonPadding: 'large', buttonRounded: 'default', buttonClassName: 'send-balance-form__button' }, { children: "Send now" }))] }))) })));
59
+ };
60
+
61
+ exports.SendBalanceForm = SendBalanceForm;
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ export type SendBalanceFormValues = {
3
+ amount: string;
4
+ recipient: string;
5
+ };
6
+ export type Props = {
7
+ initialValues?: SendBalanceFormValues;
8
+ onSubmit: (formValues: SendBalanceFormValues) => void;
9
+ balance?: number;
10
+ };
11
+ export declare const SendBalanceForm: FC<Props>;
@@ -0,0 +1,57 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { useMemo } from 'react';
3
+ import { Formik, Form, Field } from 'formik';
4
+ import { object, string } from 'yup';
5
+ import { Input } from '../Input/Input.js';
6
+ import { Button } from '../Button/Button.js';
7
+
8
+ const sendBalanceFormInitialValues = {
9
+ amount: '',
10
+ recipient: '',
11
+ };
12
+ const mapFieldAndErrorToMessage = {
13
+ amount: {
14
+ invalidFormat: 'The amount is in invalid format',
15
+ overBalance: 'Insufficient funds to send this amount.',
16
+ required: 'The amount field is required',
17
+ },
18
+ recipient: {
19
+ invalidFormat: 'The address is in invalid format',
20
+ required: 'The recipient is required',
21
+ },
22
+ };
23
+ const getDisplayErrorMessage = (errors, field) => {
24
+ const errorType = errors[field];
25
+ if (errorType) {
26
+ return mapFieldAndErrorToMessage[field][errorType];
27
+ }
28
+ return '';
29
+ };
30
+ const SendBalanceForm = ({ initialValues, onSubmit, balance, }) => {
31
+ const sendBalanceFormValidationSchema = useMemo(() => object().shape({
32
+ amount: string()
33
+ .required('required')
34
+ .matches(/^\d+(\.\d{1,8})?$/, 'invalidFormat')
35
+ .test({
36
+ message: 'overBalance',
37
+ test: (value) => {
38
+ if (!value || balance === undefined)
39
+ return true;
40
+ try {
41
+ const valueNumber = parseFloat(value);
42
+ return valueNumber < balance;
43
+ }
44
+ catch (err) {
45
+ return true;
46
+ }
47
+ },
48
+ }),
49
+ recipient: string()
50
+ .required('required')
51
+ .matches(/^0x[0-9a-fA-F]{40}$/, 'invalidFormat'),
52
+ }), [balance]);
53
+ return (jsx(Formik, Object.assign({ initialValues: initialValues || sendBalanceFormInitialValues, validationSchema: sendBalanceFormValidationSchema, onSubmit: (values) => onSubmit(values), validateOnChange: false, validateOnBlur: false }, { children: ({ errors, touched }) => (jsxs(Form, Object.assign({ className: 'send-balance-form' }, { children: [jsx(Field, { variant: 'regular', className: 'send-balance-form__field', name: 'amount', label: 'Amount', placeholder: 'Select amount', as: Input, error: errors['amount'], message: touched['amount'] && getDisplayErrorMessage(errors, 'amount') }), jsx(Field, { variant: 'regular', className: 'send-balance-form__field', placeholder: 'Enter wallet address...', label: 'Recipient', id: 'recipient', name: 'recipient', as: Input, error: errors['recipient'], message: touched['recipient'] &&
54
+ getDisplayErrorMessage(errors, 'recipient') }), jsx(Button, Object.assign({ dataTestId: 'sendBalanceFormSubmitButton', expanded: true, type: 'submit', buttonVariant: 'primary', buttonPadding: 'large', buttonRounded: 'default', buttonClassName: 'send-balance-form__button' }, { children: "Send now" }))] }))) })));
55
+ };
56
+
57
+ export { SendBalanceForm };
@@ -0,0 +1,50 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var React = require('react');
7
+ var walletBook = require('@dynamic-labs/wallet-book');
8
+ var IconButton = require('../IconButton/IconButton.cjs');
9
+ require('@dynamic-labs/sdk-api');
10
+ require('../../shared/logger.cjs');
11
+ require('@dynamic-labs/iconic');
12
+ require('@dynamic-labs/wallet-connector-core');
13
+ require('../../context/ViewContext/ViewContext.cjs');
14
+ var close = require('../../shared/assets/close.cjs');
15
+ var chevronLeft = require('../../shared/assets/chevron-left.cjs');
16
+ var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
17
+ require('@dynamic-labs/utils');
18
+ require('../../utils/constants/colors.cjs');
19
+ require('ethers');
20
+ require('../../shared/consts/index.cjs');
21
+ var ModalHeader = require('../ModalHeader/ModalHeader.cjs');
22
+ var Typography = require('../Typography/Typography.cjs');
23
+ var Icon = require('../Icon/Icon.cjs');
24
+ var PoweredByDynamic = require('../PoweredByDynamic/PoweredByDynamic.cjs');
25
+ var AnimatePresence = require('../AnimatePresence/AnimatePresence.cjs');
26
+ require('../Transition/ZoomTransition/ZoomTransition.cjs');
27
+ require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
28
+ require('../Transition/OpacityTransition/OpacityTransition.cjs');
29
+ var VerticalDrawerTransition = require('../Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs');
30
+ var Alert = require('../Alert/Alert.cjs');
31
+ var SendBalanceForm = require('../SendBalanceForm/SendBalanceForm.cjs');
32
+ var Chip = require('../Chip/Chip.cjs');
33
+ var FormFieldLabel = require('../FormFieldLabel/FormFieldLabel.cjs');
34
+ var TokenBalanceCard = require('./components/TokenBalanceCard/TokenBalanceCard.cjs');
35
+
36
+ const SendBalancePageLayout = ({ error, walletAddress, onClickClose, onClickBack, walletName, onSubmit, displayPoweredByDynamicFooter = false, balance, chain, currencySymbol, initialValues, networkName, networkIcon, }) => {
37
+ const closeButton = onClickClose && (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ type: 'button', onClick: onClickClose, "data-testid": 'close-button' }, { children: jsxRuntime.jsx(close.ReactComponent, {}) })));
38
+ const backButton = onClickBack && (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ type: 'button', onClick: onClickBack, "data-testid": 'back-button' }, { children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) })));
39
+ const balanceNumber = React.useMemo(() => {
40
+ if (!balance)
41
+ return;
42
+ const number = parseFloat(balance);
43
+ if (isNaN(number))
44
+ return;
45
+ return parseFloat(balance);
46
+ }, [balance]);
47
+ return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ leading: backButton, trailing: closeButton }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'send-balance-page-layout__header-content' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: "Send from" })), walletName && (jsxRuntime.jsx(Icon.Icon, Object.assign({ size: 'small' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletName }) }))), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: shortenWalletAddress.shortenWalletAddress(walletAddress, 3, 3) }))] })) })), jsxRuntime.jsxs("div", Object.assign({ className: 'send-balance-page-layout__body' }, { children: [jsxRuntime.jsx(AnimatePresence.AnimatePresence, Object.assign({ animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}) }, { children: error && (jsxRuntime.jsx("div", Object.assign({ className: 'send-balance-page-layout__error' }, { children: jsxRuntime.jsx(Alert.Alert, Object.assign({ icon: 'error', variant: 'error' }, { children: error })) }))) })), networkName && networkIcon && (jsxRuntime.jsx("div", Object.assign({ className: 'send-balance-page-layout__network-container' }, { children: jsxRuntime.jsx(Chip.Chip, Object.assign({ icon: networkIcon }, { children: networkName })) }))), jsxRuntime.jsxs("div", Object.assign({ className: 'send-balance-page-layout__balance-container' }, { children: [jsxRuntime.jsx(FormFieldLabel.FormFieldLabel, Object.assign({ divider: true }, { children: "Token" })), jsxRuntime.jsx(TokenBalanceCard.TokenBalanceCard, { chain: chain, currencySymbol: currencySymbol, balance: balance })] })), jsxRuntime.jsx(SendBalanceForm.SendBalanceForm, { onSubmit: onSubmit, initialValues: initialValues, balance: balanceNumber }), displayPoweredByDynamicFooter && (jsxRuntime.jsx("div", Object.assign({ className: 'send-balance-page-layout__footer' }, { children: jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, {}) })))] }))] }));
48
+ };
49
+
50
+ exports.SendBalancePageLayout = SendBalancePageLayout;
@@ -0,0 +1,19 @@
1
+ import { FC, MouseEventHandler, ReactNode } from 'react';
2
+ import { SendBalanceFormValues } from '../SendBalanceForm/SendBalanceForm';
3
+ export type SendBalancePageLayoutProps = {
4
+ balance: string | undefined;
5
+ chain: string;
6
+ currencySymbol: string;
7
+ displayPoweredByDynamicFooter?: boolean;
8
+ error?: string;
9
+ initialValues?: SendBalanceFormValues;
10
+ isLoading: boolean;
11
+ networkIcon?: ReactNode;
12
+ networkName?: string;
13
+ onClickBack?: MouseEventHandler<HTMLButtonElement>;
14
+ onClickClose?: MouseEventHandler<HTMLButtonElement>;
15
+ onSubmit: (formValues: SendBalanceFormValues) => void;
16
+ walletAddress: string;
17
+ walletName: string;
18
+ };
19
+ export declare const SendBalancePageLayout: FC<SendBalancePageLayoutProps>;
@@ -0,0 +1,46 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { useMemo } from 'react';
3
+ import { WalletIcon } from '@dynamic-labs/wallet-book';
4
+ import { IconButton } from '../IconButton/IconButton.js';
5
+ import '@dynamic-labs/sdk-api';
6
+ import '../../shared/logger.js';
7
+ import '@dynamic-labs/iconic';
8
+ import '@dynamic-labs/wallet-connector-core';
9
+ import '../../context/ViewContext/ViewContext.js';
10
+ import { ReactComponent as SvgClose } from '../../shared/assets/close.js';
11
+ import { ReactComponent as SvgChevronLeft } from '../../shared/assets/chevron-left.js';
12
+ import { shortenWalletAddress } from '../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
13
+ import '@dynamic-labs/utils';
14
+ import '../../utils/constants/colors.js';
15
+ import 'ethers';
16
+ import '../../shared/consts/index.js';
17
+ import { ModalHeader } from '../ModalHeader/ModalHeader.js';
18
+ import { Typography } from '../Typography/Typography.js';
19
+ import { Icon } from '../Icon/Icon.js';
20
+ import { PoweredByDynamic } from '../PoweredByDynamic/PoweredByDynamic.js';
21
+ import { AnimatePresence } from '../AnimatePresence/AnimatePresence.js';
22
+ import '../Transition/ZoomTransition/ZoomTransition.js';
23
+ import '../Transition/SlideInUpTransition/SlideInUpTransition.js';
24
+ import '../Transition/OpacityTransition/OpacityTransition.js';
25
+ import { VerticalDrawerTransition } from '../Transition/VerticalDrawerTransition/VerticalDrawerTransition.js';
26
+ import { Alert } from '../Alert/Alert.js';
27
+ import { SendBalanceForm } from '../SendBalanceForm/SendBalanceForm.js';
28
+ import { Chip } from '../Chip/Chip.js';
29
+ import { FormFieldLabel } from '../FormFieldLabel/FormFieldLabel.js';
30
+ import { TokenBalanceCard } from './components/TokenBalanceCard/TokenBalanceCard.js';
31
+
32
+ const SendBalancePageLayout = ({ error, walletAddress, onClickClose, onClickBack, walletName, onSubmit, displayPoweredByDynamicFooter = false, balance, chain, currencySymbol, initialValues, networkName, networkIcon, }) => {
33
+ const closeButton = onClickClose && (jsx(IconButton, Object.assign({ type: 'button', onClick: onClickClose, "data-testid": 'close-button' }, { children: jsx(SvgClose, {}) })));
34
+ const backButton = onClickBack && (jsx(IconButton, Object.assign({ type: 'button', onClick: onClickBack, "data-testid": 'back-button' }, { children: jsx(SvgChevronLeft, {}) })));
35
+ const balanceNumber = useMemo(() => {
36
+ if (!balance)
37
+ return;
38
+ const number = parseFloat(balance);
39
+ if (isNaN(number))
40
+ return;
41
+ return parseFloat(balance);
42
+ }, [balance]);
43
+ return (jsxs("div", { children: [jsx(ModalHeader, Object.assign({ leading: backButton, trailing: closeButton }, { children: jsxs("div", Object.assign({ className: 'send-balance-page-layout__header-content' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: "Send from" })), walletName && (jsx(Icon, Object.assign({ size: 'small' }, { children: jsx(WalletIcon, { walletName: walletName }) }))), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'primary', as: 'p' }, { children: shortenWalletAddress(walletAddress, 3, 3) }))] })) })), jsxs("div", Object.assign({ className: 'send-balance-page-layout__body' }, { children: [jsx(AnimatePresence, Object.assign({ animationComponent: jsx(VerticalDrawerTransition, {}) }, { children: error && (jsx("div", Object.assign({ className: 'send-balance-page-layout__error' }, { children: jsx(Alert, Object.assign({ icon: 'error', variant: 'error' }, { children: error })) }))) })), networkName && networkIcon && (jsx("div", Object.assign({ className: 'send-balance-page-layout__network-container' }, { children: jsx(Chip, Object.assign({ icon: networkIcon }, { children: networkName })) }))), jsxs("div", Object.assign({ className: 'send-balance-page-layout__balance-container' }, { children: [jsx(FormFieldLabel, Object.assign({ divider: true }, { children: "Token" })), jsx(TokenBalanceCard, { chain: chain, currencySymbol: currencySymbol, balance: balance })] })), jsx(SendBalanceForm, { onSubmit: onSubmit, initialValues: initialValues, balance: balanceNumber }), displayPoweredByDynamicFooter && (jsx("div", Object.assign({ className: 'send-balance-page-layout__footer' }, { children: jsx(PoweredByDynamic, {}) })))] }))] }));
44
+ };
45
+
46
+ export { SendBalancePageLayout };
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ require('@dynamic-labs/sdk-api');
7
+ require('../../../../shared/logger.cjs');
8
+ var getChainIcon = require('../../../../shared/utils/functions/chain/getChainIcon.cjs');
9
+ require('@dynamic-labs/wallet-connector-core');
10
+ require('@dynamic-labs/utils');
11
+ require('../../../../utils/constants/colors.cjs');
12
+ require('ethers');
13
+ require('react');
14
+ require('@dynamic-labs/iconic');
15
+ require('../../../../context/ViewContext/ViewContext.cjs');
16
+ require('../../../../shared/consts/index.cjs');
17
+ var Icon = require('../../../Icon/Icon.cjs');
18
+ var Typography = require('../../../Typography/Typography.cjs');
19
+
20
+ const TokenBalanceCard = ({ chain, currencySymbol, balance, }) => {
21
+ const ChainIcon = getChainIcon.getChainIcon(chain);
22
+ return (jsxRuntime.jsxs("div", Object.assign({ className: 'token-balance-card' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'token-balance-card__chain' }, { children: [jsxRuntime.jsx(Icon.Icon, Object.assign({ size: 'small' }, { children: jsxRuntime.jsx(ChainIcon, {}) })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'primary' }, { children: currencySymbol }))] })), Boolean(balance) && (jsxRuntime.jsxs("div", Object.assign({ className: 'token-balance-card__balance-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_small', color: 'tertiary' }, { children: "Balance:" })), jsxRuntime.jsxs("div", Object.assign({ className: 'token-balance-card__balance' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_small', color: 'secondary' }, { children: balance })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_small', color: 'tertiary' }, { children: currencySymbol }))] }))] })))] })));
23
+ };
24
+
25
+ exports.TokenBalanceCard = TokenBalanceCard;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ type TokenBalanceCardProps = {
3
+ balance?: string;
4
+ chain: string;
5
+ currencySymbol: string;
6
+ };
7
+ export declare const TokenBalanceCard: FC<TokenBalanceCardProps>;
8
+ export {};
@@ -0,0 +1,21 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import '@dynamic-labs/sdk-api';
3
+ import '../../../../shared/logger.js';
4
+ import { getChainIcon } from '../../../../shared/utils/functions/chain/getChainIcon.js';
5
+ import '@dynamic-labs/wallet-connector-core';
6
+ import '@dynamic-labs/utils';
7
+ import '../../../../utils/constants/colors.js';
8
+ import 'ethers';
9
+ import 'react';
10
+ import '@dynamic-labs/iconic';
11
+ import '../../../../context/ViewContext/ViewContext.js';
12
+ import '../../../../shared/consts/index.js';
13
+ import { Icon } from '../../../Icon/Icon.js';
14
+ import { Typography } from '../../../Typography/Typography.js';
15
+
16
+ const TokenBalanceCard = ({ chain, currencySymbol, balance, }) => {
17
+ const ChainIcon = getChainIcon(chain);
18
+ return (jsxs("div", Object.assign({ className: 'token-balance-card' }, { children: [jsxs("div", Object.assign({ className: 'token-balance-card__chain' }, { children: [jsx(Icon, Object.assign({ size: 'small' }, { children: jsx(ChainIcon, {}) })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'primary' }, { children: currencySymbol }))] })), Boolean(balance) && (jsxs("div", Object.assign({ className: 'token-balance-card__balance-container' }, { children: [jsx(Typography, Object.assign({ variant: 'body_small', color: 'tertiary' }, { children: "Balance:" })), jsxs("div", Object.assign({ className: 'token-balance-card__balance' }, { children: [jsx(Typography, Object.assign({ variant: 'body_small', color: 'secondary' }, { children: balance })), jsx(Typography, Object.assign({ variant: 'body_small', color: 'tertiary' }, { children: currencySymbol }))] }))] })))] })));
19
+ };
20
+
21
+ export { TokenBalanceCard };
@@ -0,0 +1 @@
1
+ export { TokenBalanceCard } from './TokenBalanceCard';
@@ -0,0 +1 @@
1
+ export * from './TokenBalanceCard';
@@ -0,0 +1,2 @@
1
+ export { SendBalancePageLayout } from './SendBalancePageLayout';
2
+ export type { SendBalancePageLayoutProps } from './SendBalancePageLayout';
@@ -5,12 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  require('@dynamic-labs/sdk-api');
6
6
  require('../../shared/logger.cjs');
7
7
  require('@dynamic-labs/iconic');
8
- require('@dynamic-labs/multi-wallet');
8
+ require('@dynamic-labs/wallet-connector-core');
9
9
  require('react/jsx-runtime');
10
10
  require('../../context/ViewContext/ViewContext.cjs');
11
11
  require('react');
12
12
  var isSSR = require('../../shared/utils/functions/isSSR/isSSR.cjs');
13
+ require('@dynamic-labs/utils');
13
14
  require('../../utils/constants/colors.cjs');
15
+ require('ethers');
14
16
  require('../../shared/consts/index.cjs');
15
17
 
16
18
  const isShadowDOMFlagEnabled = () => {
@@ -1,12 +1,14 @@
1
1
  import '@dynamic-labs/sdk-api';
2
2
  import '../../shared/logger.js';
3
3
  import '@dynamic-labs/iconic';
4
- import '@dynamic-labs/multi-wallet';
4
+ import '@dynamic-labs/wallet-connector-core';
5
5
  import 'react/jsx-runtime';
6
6
  import '../../context/ViewContext/ViewContext.js';
7
7
  import 'react';
8
8
  import { isSSR } from '../../shared/utils/functions/isSSR/isSSR.js';
9
+ import '@dynamic-labs/utils';
9
10
  import '../../utils/constants/colors.js';
11
+ import 'ethers';
10
12
  import '../../shared/consts/index.js';
11
13
 
12
14
  const isShadowDOMFlagEnabled = () => {