@web3auth/modal 10.0.0-beta.0 → 10.0.0-beta.1

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 (256) hide show
  1. package/dist/lib.cjs/node_modules/style-inject/dist/style-inject.es.js +1 -1
  2. package/dist/lib.cjs/packages/modal/src/modalManager.js +186 -132
  3. package/dist/lib.cjs/packages/modal/src/react/Web3AuthProvider.js +2 -2
  4. package/dist/lib.cjs/packages/modal/src/react/context/Web3AuthInnerContext.js +26 -26
  5. package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3Auth.js +2 -2
  6. package/dist/lib.cjs/packages/modal/src/ui/components/BottomSheet/BottomSheet.js +60 -0
  7. package/dist/lib.cjs/packages/modal/src/ui/components/Button/Button.js +47 -22
  8. package/dist/lib.cjs/packages/modal/src/ui/components/Button/Button.type.js +8 -0
  9. package/dist/lib.cjs/packages/modal/src/ui/components/Button/ButtonSocial/ButtonSocial.js +53 -0
  10. package/dist/lib.cjs/packages/modal/src/ui/components/Button/ButtonWallet/ButtonWallet.js +68 -0
  11. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWallet.js +202 -0
  12. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.js +62 -0
  13. package/dist/lib.cjs/packages/modal/src/ui/components/{ExternalWallet/ExternalWalletChainNamespace.js → ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.js} +28 -30
  14. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.js +49 -0
  15. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWalletList/ConnectWalletList.js +140 -0
  16. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.js +93 -0
  17. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWalletSearch/ConnectWalletSearch.js +55 -0
  18. package/dist/lib.cjs/packages/modal/src/ui/components/Embed/Embed.js +70 -0
  19. package/dist/lib.cjs/packages/modal/src/ui/components/Footer/Footer.js +53 -0
  20. package/dist/lib.cjs/packages/modal/src/ui/components/Image/Image.js +89 -0
  21. package/dist/lib.cjs/packages/modal/src/ui/components/Loader/Loader.js +151 -0
  22. package/dist/lib.cjs/packages/modal/src/ui/components/Login/Login.js +489 -0
  23. package/dist/lib.cjs/packages/modal/src/ui/components/Login/LoginOtp/LoginOtp.js +116 -0
  24. package/dist/lib.cjs/packages/modal/src/ui/components/Login/LoginPasswordLess/LoginPasswordLess.js +117 -0
  25. package/dist/lib.cjs/packages/modal/src/ui/components/LoginHint/LoginHint.js +52 -0
  26. package/dist/lib.cjs/packages/modal/src/ui/components/Modal/Modal.js +87 -0
  27. package/dist/lib.cjs/packages/modal/src/ui/components/Otp/Otp.js +190 -0
  28. package/dist/lib.cjs/packages/modal/src/ui/components/PulseLoader/PulseLoader.js +18 -0
  29. package/dist/lib.cjs/packages/modal/src/ui/components/Root/Root.js +452 -0
  30. package/dist/lib.cjs/packages/modal/src/ui/components/SocialLoginList/SocialLoginList.js +156 -0
  31. package/dist/lib.cjs/packages/modal/src/ui/components/Toast/Toast.js +70 -0
  32. package/dist/lib.cjs/packages/modal/src/ui/components/Widget/Widget.js +229 -0
  33. package/dist/lib.cjs/packages/modal/src/ui/config.js +12 -1
  34. package/dist/lib.cjs/packages/modal/src/ui/constants.js +18 -0
  35. package/dist/lib.cjs/packages/modal/src/ui/context/RootContext.js +20 -0
  36. package/dist/lib.cjs/packages/modal/src/ui/context/ThemeContext.js +2 -2
  37. package/dist/lib.cjs/packages/modal/src/ui/css/index.css.js +8 -0
  38. package/dist/lib.cjs/packages/modal/src/ui/handlers/AbstractHandler.js +117 -0
  39. package/dist/lib.cjs/packages/modal/src/ui/handlers/EmailPasswordlessHandler.js +54 -0
  40. package/dist/lib.cjs/packages/modal/src/ui/handlers/SmsPasswordlessHandler.js +57 -0
  41. package/dist/lib.cjs/packages/modal/src/ui/handlers/factory.js +19 -0
  42. package/dist/lib.cjs/packages/modal/src/ui/i18n/dutch.json.js +37 -2
  43. package/dist/lib.cjs/packages/modal/src/ui/i18n/english.json.js +37 -2
  44. package/dist/lib.cjs/packages/modal/src/ui/i18n/french.json.js +37 -2
  45. package/dist/lib.cjs/packages/modal/src/ui/i18n/german.json.js +37 -2
  46. package/dist/lib.cjs/packages/modal/src/ui/i18n/japanese.json.js +37 -2
  47. package/dist/lib.cjs/packages/modal/src/ui/i18n/korean.json.js +37 -2
  48. package/dist/lib.cjs/packages/modal/src/ui/i18n/mandarin.json.js +37 -2
  49. package/dist/lib.cjs/packages/modal/src/ui/i18n/portuguese.json.js +37 -2
  50. package/dist/lib.cjs/packages/modal/src/ui/i18n/spanish.json.js +37 -2
  51. package/dist/lib.cjs/packages/modal/src/ui/i18n/turkish.json.js +37 -2
  52. package/dist/lib.cjs/packages/modal/src/ui/interfaces.js +7 -10
  53. package/dist/lib.cjs/packages/modal/src/ui/loginModal.js +69 -44
  54. package/dist/lib.cjs/packages/modal/src/ui/utils.js +107 -1
  55. package/dist/lib.cjs/types/modalManager.d.ts +4 -1
  56. package/dist/lib.cjs/types/ui/components/BottomSheet/BottomSheet.d.ts +7 -0
  57. package/dist/lib.cjs/types/ui/components/BottomSheet/BottomSheet.type.d.ts +7 -0
  58. package/dist/lib.cjs/types/ui/components/BottomSheet/index.d.ts +2 -0
  59. package/dist/lib.cjs/types/ui/components/Button/Button.d.ts +2 -15
  60. package/dist/lib.cjs/types/ui/components/Button/Button.type.d.ts +12 -0
  61. package/dist/lib.cjs/types/ui/components/Button/ButtonSocial/ButtonSocial.d.ts +3 -0
  62. package/dist/lib.cjs/types/ui/components/Button/ButtonSocial/ButtonSocial.type.d.ts +14 -0
  63. package/dist/lib.cjs/types/ui/components/Button/ButtonSocial/index.d.ts +2 -0
  64. package/dist/lib.cjs/types/ui/components/Button/ButtonWallet/ButtonWallet.d.ts +3 -0
  65. package/dist/lib.cjs/types/ui/components/Button/ButtonWallet/ButtonWallet.type.d.ts +13 -0
  66. package/dist/lib.cjs/types/ui/components/Button/ButtonWallet/index.d.ts +2 -0
  67. package/dist/lib.cjs/types/ui/components/Button/index.d.ts +1 -0
  68. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWallet.d.ts +3 -0
  69. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWallet.type.d.ts +24 -0
  70. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.d.ts +3 -0
  71. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.type.d.ts +13 -0
  72. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletChainFilter/index.d.ts +2 -0
  73. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.d.ts +3 -0
  74. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.type.d.ts +10 -0
  75. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletChainNamespaceSelect/index.d.ts +2 -0
  76. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.d.ts +3 -0
  77. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.type.d.ts +6 -0
  78. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletHeader/index.d.ts +2 -0
  79. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletList/ConnectWalletList.d.ts +3 -0
  80. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletList/ConnectWalletList.type.d.ts +19 -0
  81. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletList/index.d.ts +2 -0
  82. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.d.ts +3 -0
  83. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.type.d.ts +9 -0
  84. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletQrCode/index.d.ts +2 -0
  85. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletSearch/ConnectWalletSearch.d.ts +3 -0
  86. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletSearch/ConnectWalletSearch.type.d.ts +9 -0
  87. package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWalletSearch/index.d.ts +2 -0
  88. package/dist/lib.cjs/types/ui/components/ConnectWallet/index.d.ts +2 -0
  89. package/dist/lib.cjs/types/ui/components/Embed/Embed.d.ts +8 -0
  90. package/dist/lib.cjs/types/ui/components/Embed/Embed.type.d.ts +12 -0
  91. package/dist/lib.cjs/types/ui/components/Embed/index.d.ts +2 -0
  92. package/dist/lib.cjs/types/ui/components/Footer/Footer.d.ts +7 -0
  93. package/dist/lib.cjs/types/ui/components/Footer/Footer.type.d.ts +4 -0
  94. package/dist/lib.cjs/types/ui/components/Footer/index.d.ts +2 -0
  95. package/dist/lib.cjs/types/ui/components/Image/Image.d.ts +7 -0
  96. package/dist/lib.cjs/types/ui/components/{Image.d.ts → Image/Image.type.d.ts} +2 -1
  97. package/dist/lib.cjs/types/ui/components/Image/index.d.ts +2 -0
  98. package/dist/lib.cjs/types/ui/components/Loader/Loader.d.ts +8 -0
  99. package/dist/lib.cjs/types/ui/components/Loader/Loader.type.d.ts +12 -0
  100. package/dist/lib.cjs/types/ui/components/Loader/index.d.ts +2 -0
  101. package/dist/lib.cjs/types/ui/components/Login/Login.d.ts +3 -0
  102. package/dist/lib.cjs/types/ui/components/Login/Login.type.d.ts +29 -0
  103. package/dist/lib.cjs/types/ui/components/Login/LoginOtp/LoginOtp.d.ts +8 -0
  104. package/dist/lib.cjs/types/ui/components/Login/LoginOtp/LoginOtp.type.d.ts +10 -0
  105. package/dist/lib.cjs/types/ui/components/Login/LoginOtp/index.d.ts +2 -0
  106. package/dist/lib.cjs/types/ui/components/Login/LoginPasswordLess/LoginPasswordLess.d.ts +3 -0
  107. package/dist/lib.cjs/types/ui/components/Login/LoginPasswordLess/LoginPasswordLess.type.d.ts +13 -0
  108. package/dist/lib.cjs/types/ui/components/Login/LoginPasswordLess/index.d.ts +2 -0
  109. package/dist/lib.cjs/types/ui/components/Login/index.d.ts +2 -0
  110. package/dist/lib.cjs/types/ui/components/LoginHint/LoginHint.d.ts +3 -0
  111. package/dist/lib.cjs/types/ui/components/LoginHint/LoginHint.type.d.ts +6 -0
  112. package/dist/lib.cjs/types/ui/components/LoginHint/index.d.ts +2 -0
  113. package/dist/lib.cjs/types/ui/components/Modal/Modal.d.ts +8 -0
  114. package/dist/lib.cjs/types/ui/components/Modal/Modal.type.d.ts +14 -0
  115. package/dist/lib.cjs/types/ui/components/Modal/index.d.ts +2 -0
  116. package/dist/lib.cjs/types/ui/components/Otp/Otp.d.ts +3 -0
  117. package/dist/lib.cjs/types/ui/components/Otp/Otp.type.d.ts +22 -0
  118. package/dist/lib.cjs/types/ui/components/Otp/index.d.ts +2 -0
  119. package/dist/lib.cjs/types/ui/components/PulseLoader/PulseLoader.d.ts +2 -0
  120. package/dist/lib.cjs/types/ui/components/PulseLoader/index.d.ts +1 -0
  121. package/dist/lib.cjs/types/ui/components/Root/Root.d.ts +3 -0
  122. package/dist/lib.cjs/types/ui/components/Root/Root.type.d.ts +27 -0
  123. package/dist/lib.cjs/types/ui/components/Root/index.d.ts +2 -0
  124. package/dist/lib.cjs/types/ui/components/SocialLoginList/SocialLoginList.d.ts +3 -0
  125. package/dist/lib.cjs/types/ui/components/SocialLoginList/SocialLoginList.type.d.ts +11 -0
  126. package/dist/lib.cjs/types/ui/components/SocialLoginList/index.d.ts +2 -0
  127. package/dist/lib.cjs/types/ui/components/Toast/Toast.d.ts +2 -0
  128. package/dist/lib.cjs/types/ui/components/Toast/index.d.ts +1 -0
  129. package/dist/lib.cjs/types/ui/components/Widget/Widget.d.ts +3 -0
  130. package/dist/lib.cjs/types/ui/components/{Modal.d.ts → Widget/Widget.type.d.ts} +4 -5
  131. package/dist/lib.cjs/types/ui/components/Widget/index.d.ts +1 -0
  132. package/dist/lib.cjs/types/ui/config.d.ts +4 -1
  133. package/dist/lib.cjs/types/ui/constants.d.ts +13 -0
  134. package/dist/lib.cjs/types/ui/context/RootContext.d.ts +18 -0
  135. package/dist/lib.cjs/types/ui/handlers/AbstractHandler.d.ts +20 -0
  136. package/dist/lib.cjs/types/ui/handlers/EmailPasswordlessHandler.d.ts +8 -0
  137. package/dist/lib.cjs/types/ui/handlers/SmsPasswordlessHandler.d.ts +9 -0
  138. package/dist/lib.cjs/types/ui/handlers/factory.d.ts +5 -0
  139. package/dist/lib.cjs/types/ui/interfaces.d.ts +115 -14
  140. package/dist/lib.cjs/types/ui/loginModal.d.ts +9 -7
  141. package/dist/lib.cjs/types/ui/utils.d.ts +17 -2
  142. package/dist/lib.esm/node_modules/style-inject/dist/style-inject.es.js +1 -1
  143. package/dist/lib.esm/packages/modal/src/modalManager.js +191 -138
  144. package/dist/lib.esm/packages/modal/src/ui/components/BottomSheet/BottomSheet.js +58 -0
  145. package/dist/lib.esm/packages/modal/src/ui/components/Button/Button.js +48 -24
  146. package/dist/lib.esm/packages/modal/src/ui/components/Button/Button.type.js +6 -0
  147. package/dist/lib.esm/packages/modal/src/ui/components/Button/ButtonSocial/ButtonSocial.js +51 -0
  148. package/dist/lib.esm/packages/modal/src/ui/components/Button/ButtonWallet/ButtonWallet.js +66 -0
  149. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWallet.js +200 -0
  150. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.js +60 -0
  151. package/dist/lib.esm/packages/modal/src/ui/components/{ExternalWallet/ExternalWalletChainNamespace.js → ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.js} +28 -31
  152. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.js +47 -0
  153. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWalletList/ConnectWalletList.js +138 -0
  154. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.js +91 -0
  155. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWalletSearch/ConnectWalletSearch.js +56 -0
  156. package/dist/lib.esm/packages/modal/src/ui/components/Embed/Embed.js +68 -0
  157. package/dist/lib.esm/packages/modal/src/ui/components/Footer/Footer.js +51 -0
  158. package/dist/lib.esm/packages/modal/src/ui/components/Image/Image.js +87 -0
  159. package/dist/lib.esm/packages/modal/src/ui/components/Loader/Loader.js +152 -0
  160. package/dist/lib.esm/packages/modal/src/ui/components/Login/Login.js +489 -0
  161. package/dist/lib.esm/packages/modal/src/ui/components/Login/LoginOtp/LoginOtp.js +115 -0
  162. package/dist/lib.esm/packages/modal/src/ui/components/Login/LoginPasswordLess/LoginPasswordLess.js +115 -0
  163. package/dist/lib.esm/packages/modal/src/ui/components/LoginHint/LoginHint.js +50 -0
  164. package/dist/lib.esm/packages/modal/src/ui/components/Modal/Modal.js +85 -0
  165. package/dist/lib.esm/packages/modal/src/ui/components/Otp/Otp.js +188 -0
  166. package/dist/lib.esm/packages/modal/src/ui/components/PulseLoader/PulseLoader.js +16 -0
  167. package/dist/lib.esm/packages/modal/src/ui/components/Root/Root.js +462 -0
  168. package/dist/lib.esm/packages/modal/src/ui/components/SocialLoginList/SocialLoginList.js +154 -0
  169. package/dist/lib.esm/packages/modal/src/ui/components/Toast/Toast.js +68 -0
  170. package/dist/lib.esm/packages/modal/src/ui/components/Widget/Widget.js +231 -0
  171. package/dist/lib.esm/packages/modal/src/ui/config.js +10 -3
  172. package/dist/lib.esm/packages/modal/src/ui/constants.js +13 -0
  173. package/dist/lib.esm/packages/modal/src/ui/context/RootContext.js +18 -0
  174. package/dist/lib.esm/packages/modal/src/ui/css/index.css.js +6 -0
  175. package/dist/lib.esm/packages/modal/src/ui/handlers/AbstractHandler.js +115 -0
  176. package/dist/lib.esm/packages/modal/src/ui/handlers/EmailPasswordlessHandler.js +52 -0
  177. package/dist/lib.esm/packages/modal/src/ui/handlers/SmsPasswordlessHandler.js +55 -0
  178. package/dist/lib.esm/packages/modal/src/ui/handlers/factory.js +17 -0
  179. package/dist/lib.esm/packages/modal/src/ui/i18n/dutch.json.js +37 -3
  180. package/dist/lib.esm/packages/modal/src/ui/i18n/english.json.js +37 -3
  181. package/dist/lib.esm/packages/modal/src/ui/i18n/french.json.js +37 -3
  182. package/dist/lib.esm/packages/modal/src/ui/i18n/german.json.js +37 -3
  183. package/dist/lib.esm/packages/modal/src/ui/i18n/japanese.json.js +37 -3
  184. package/dist/lib.esm/packages/modal/src/ui/i18n/korean.json.js +37 -3
  185. package/dist/lib.esm/packages/modal/src/ui/i18n/mandarin.json.js +37 -3
  186. package/dist/lib.esm/packages/modal/src/ui/i18n/portuguese.json.js +37 -3
  187. package/dist/lib.esm/packages/modal/src/ui/i18n/spanish.json.js +37 -3
  188. package/dist/lib.esm/packages/modal/src/ui/i18n/turkish.json.js +37 -3
  189. package/dist/lib.esm/packages/modal/src/ui/interfaces.js +8 -9
  190. package/dist/lib.esm/packages/modal/src/ui/loginModal.js +70 -45
  191. package/dist/lib.esm/packages/modal/src/ui/utils.js +105 -3
  192. package/dist/modal.umd.min.js +1 -1
  193. package/dist/modal.umd.min.js.LICENSE.txt +8 -8
  194. package/package.json +14 -11
  195. package/dist/lib.cjs/packages/modal/src/ui/assets/arrow-left-dark.svg.js +0 -7
  196. package/dist/lib.cjs/packages/modal/src/ui/assets/arrow-left-light.svg.js +0 -7
  197. package/dist/lib.cjs/packages/modal/src/ui/assets/x-dark.svg.js +0 -7
  198. package/dist/lib.cjs/packages/modal/src/ui/assets/x-light.svg.js +0 -7
  199. package/dist/lib.cjs/packages/modal/src/ui/components/AdapterLoader.js +0 -108
  200. package/dist/lib.cjs/packages/modal/src/ui/components/Button/styles.css.js +0 -8
  201. package/dist/lib.cjs/packages/modal/src/ui/components/ExternalWallet/ExternalWalletButton.js +0 -44
  202. package/dist/lib.cjs/packages/modal/src/ui/components/ExternalWallet/ExternalWalletConnect.js +0 -67
  203. package/dist/lib.cjs/packages/modal/src/ui/components/ExternalWallet/ExternalWalletDetails.js +0 -43
  204. package/dist/lib.cjs/packages/modal/src/ui/components/ExternalWallet/ExternalWalletHeader.js +0 -46
  205. package/dist/lib.cjs/packages/modal/src/ui/components/ExternalWallet/ExternalWalletInstall.js +0 -167
  206. package/dist/lib.cjs/packages/modal/src/ui/components/ExternalWallets.js +0 -279
  207. package/dist/lib.cjs/packages/modal/src/ui/components/Footer.js +0 -20
  208. package/dist/lib.cjs/packages/modal/src/ui/components/Header.js +0 -81
  209. package/dist/lib.cjs/packages/modal/src/ui/components/Icon.js +0 -73
  210. package/dist/lib.cjs/packages/modal/src/ui/components/Image.js +0 -51
  211. package/dist/lib.cjs/packages/modal/src/ui/components/Loader.js +0 -59
  212. package/dist/lib.cjs/packages/modal/src/ui/components/Modal.js +0 -278
  213. package/dist/lib.cjs/packages/modal/src/ui/components/SelfCustodyViaWeb3Auth.js +0 -30
  214. package/dist/lib.cjs/packages/modal/src/ui/components/SocialLoginPasswordless.js +0 -150
  215. package/dist/lib.cjs/packages/modal/src/ui/components/SocialLogins.js +0 -153
  216. package/dist/lib.cjs/packages/modal/src/ui/components/WalletConnect.js +0 -84
  217. package/dist/lib.cjs/packages/modal/src/ui/css/web3auth.css.js +0 -8
  218. package/dist/lib.cjs/types/ui/components/AdapterLoader.d.ts +0 -11
  219. package/dist/lib.cjs/types/ui/components/ExternalWallet/ExternalWalletButton.d.ts +0 -7
  220. package/dist/lib.cjs/types/ui/components/ExternalWallet/ExternalWalletChainNamespace.d.ts +0 -9
  221. package/dist/lib.cjs/types/ui/components/ExternalWallet/ExternalWalletConnect.d.ts +0 -9
  222. package/dist/lib.cjs/types/ui/components/ExternalWallet/ExternalWalletDetails.d.ts +0 -10
  223. package/dist/lib.cjs/types/ui/components/ExternalWallet/ExternalWalletHeader.d.ts +0 -8
  224. package/dist/lib.cjs/types/ui/components/ExternalWallet/ExternalWalletInstall.d.ts +0 -8
  225. package/dist/lib.cjs/types/ui/components/ExternalWallets.d.ts +0 -15
  226. package/dist/lib.cjs/types/ui/components/Footer.d.ts +0 -1
  227. package/dist/lib.cjs/types/ui/components/Header.d.ts +0 -8
  228. package/dist/lib.cjs/types/ui/components/Icon.d.ts +0 -9
  229. package/dist/lib.cjs/types/ui/components/Loader.d.ts +0 -10
  230. package/dist/lib.cjs/types/ui/components/SelfCustodyViaWeb3Auth.d.ts +0 -1
  231. package/dist/lib.cjs/types/ui/components/SocialLoginPasswordless.d.ts +0 -14
  232. package/dist/lib.cjs/types/ui/components/SocialLogins.d.ts +0 -10
  233. package/dist/lib.cjs/types/ui/components/WalletConnect.d.ts +0 -8
  234. package/dist/lib.esm/packages/modal/src/ui/assets/arrow-left-dark.svg.js +0 -5
  235. package/dist/lib.esm/packages/modal/src/ui/assets/arrow-left-light.svg.js +0 -5
  236. package/dist/lib.esm/packages/modal/src/ui/assets/x-dark.svg.js +0 -5
  237. package/dist/lib.esm/packages/modal/src/ui/assets/x-light.svg.js +0 -5
  238. package/dist/lib.esm/packages/modal/src/ui/components/AdapterLoader.js +0 -106
  239. package/dist/lib.esm/packages/modal/src/ui/components/Button/styles.css.js +0 -6
  240. package/dist/lib.esm/packages/modal/src/ui/components/ExternalWallet/ExternalWalletButton.js +0 -42
  241. package/dist/lib.esm/packages/modal/src/ui/components/ExternalWallet/ExternalWalletConnect.js +0 -65
  242. package/dist/lib.esm/packages/modal/src/ui/components/ExternalWallet/ExternalWalletDetails.js +0 -44
  243. package/dist/lib.esm/packages/modal/src/ui/components/ExternalWallet/ExternalWalletHeader.js +0 -44
  244. package/dist/lib.esm/packages/modal/src/ui/components/ExternalWallet/ExternalWalletInstall.js +0 -165
  245. package/dist/lib.esm/packages/modal/src/ui/components/ExternalWallets.js +0 -281
  246. package/dist/lib.esm/packages/modal/src/ui/components/Footer.js +0 -18
  247. package/dist/lib.esm/packages/modal/src/ui/components/Header.js +0 -79
  248. package/dist/lib.esm/packages/modal/src/ui/components/Icon.js +0 -71
  249. package/dist/lib.esm/packages/modal/src/ui/components/Image.js +0 -49
  250. package/dist/lib.esm/packages/modal/src/ui/components/Loader.js +0 -57
  251. package/dist/lib.esm/packages/modal/src/ui/components/Modal.js +0 -277
  252. package/dist/lib.esm/packages/modal/src/ui/components/SelfCustodyViaWeb3Auth.js +0 -28
  253. package/dist/lib.esm/packages/modal/src/ui/components/SocialLoginPasswordless.js +0 -148
  254. package/dist/lib.esm/packages/modal/src/ui/components/SocialLogins.js +0 -152
  255. package/dist/lib.esm/packages/modal/src/ui/components/WalletConnect.js +0 -82
  256. package/dist/lib.esm/packages/modal/src/ui/css/web3auth.css.js +0 -6
@@ -62,9 +62,9 @@ PERFORMANCE OF THIS SOFTWARE.
62
62
 
63
63
  /**
64
64
  * @license React
65
- * react-dom.production.min.js
65
+ * react-dom.production.js
66
66
  *
67
- * Copyright (c) Facebook, Inc. and its affiliates.
67
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
68
68
  *
69
69
  * This source code is licensed under the MIT license found in the
70
70
  * LICENSE file in the root directory of this source tree.
@@ -72,9 +72,9 @@ PERFORMANCE OF THIS SOFTWARE.
72
72
 
73
73
  /**
74
74
  * @license React
75
- * react-jsx-runtime.production.min.js
75
+ * react-jsx-runtime.production.js
76
76
  *
77
- * Copyright (c) Facebook, Inc. and its affiliates.
77
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
78
78
  *
79
79
  * This source code is licensed under the MIT license found in the
80
80
  * LICENSE file in the root directory of this source tree.
@@ -82,9 +82,9 @@ PERFORMANCE OF THIS SOFTWARE.
82
82
 
83
83
  /**
84
84
  * @license React
85
- * react.production.min.js
85
+ * react.production.js
86
86
  *
87
- * Copyright (c) Facebook, Inc. and its affiliates.
87
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
88
88
  *
89
89
  * This source code is licensed under the MIT license found in the
90
90
  * LICENSE file in the root directory of this source tree.
@@ -92,9 +92,9 @@ PERFORMANCE OF THIS SOFTWARE.
92
92
 
93
93
  /**
94
94
  * @license React
95
- * scheduler.production.min.js
95
+ * scheduler.production.js
96
96
  *
97
- * Copyright (c) Facebook, Inc. and its affiliates.
97
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
98
98
  *
99
99
  * This source code is licensed under the MIT license found in the
100
100
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web3auth/modal",
3
- "version": "10.0.0-beta.0",
3
+ "version": "10.0.0-beta.1",
4
4
  "description": "Multi chain wallet aggregator for web3Auth",
5
5
  "keywords": [
6
6
  "web3Auth/ui",
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@babel/runtime": "^7.x",
44
- "react": "^18.x",
45
- "react-dom": "^18.x",
44
+ "react": "^18 || ^19",
45
+ "react-dom": "^18 || ^19",
46
46
  "vue": "^3.x"
47
47
  },
48
48
  "devDependencies": {
@@ -55,16 +55,16 @@
55
55
  "@toruslabs/eslint-config-react": "^4.1.1",
56
56
  "@toruslabs/isomorphic-style-loader": "^5.4.0",
57
57
  "@toruslabs/vue-components": "^8.0.0",
58
- "@types/react": "^18.3.12",
59
- "@types/react-dom": "^18.3.1",
58
+ "@types/react": "^19.0.12",
59
+ "@types/react-dom": "^19.0.4",
60
60
  "autoprefixer": "^10.4.21",
61
61
  "css-loader": "^7.1.2",
62
62
  "live-server": "^1.2.2",
63
63
  "postcss": "^8.5.3",
64
64
  "postcss-loader": "^8.1.1",
65
65
  "postcss-prefix-selector": "^2.1.0",
66
- "react": "^18.3.1",
67
- "react-dom": "^18.3.1",
66
+ "react": "^18 || ^19",
67
+ "react-dom": "^18 || ^19",
68
68
  "rollup-plugin-postcss": "^4.0.2",
69
69
  "style-loader": "^4.0.0",
70
70
  "tailwindcss": "^3.4.17",
@@ -72,16 +72,19 @@
72
72
  "vue": "^3.5.13"
73
73
  },
74
74
  "dependencies": {
75
+ "@hcaptcha/react-hcaptcha": "^1.12.0",
75
76
  "@toruslabs/http-helpers": "^8.1.1",
76
77
  "@web3auth/auth": "^10.2.3",
77
- "@web3auth/no-modal": "^10.0.0-beta.0",
78
+ "@web3auth/no-modal": "^10.0.0-beta.1",
78
79
  "bowser": "^2.11.0",
79
80
  "classnames": "^2.5.1",
81
+ "clsx": "^2.1.1",
80
82
  "copy-to-clipboard": "^3.3.3",
81
83
  "deepmerge": "^4.3.1",
82
- "i18next": "^23.16.8",
84
+ "i18next": "^24.2.3",
83
85
  "react-i18next": "^15.4.1",
84
- "react-qrcode-logo": "^3.0.0"
86
+ "react-qrcode-logo": "^3.0.0",
87
+ "tailwind-merge": "^3.0.2"
85
88
  },
86
89
  "exports": {
87
90
  ".": {
@@ -127,5 +130,5 @@
127
130
  "type": "git",
128
131
  "url": "git+https://github.com/Web3Auth/Web3Auth.git"
129
132
  },
130
- "gitHead": "827d490e28e2c77805995cbb2db5eb849350a7c8"
133
+ "gitHead": "bf100ac6d05a53acee76944e3de4a7b8766845d8"
131
134
  }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- require('react');
4
-
5
- var ArrowDark = "data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.33333%2015.8333L2.5%209.99992M2.5%209.99992L8.33333%204.16659M2.5%209.99992L17.5%209.99992%22%20stroke%3D%22%239CA3AF%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
6
-
7
- module.exports = ArrowDark;
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- require('react');
4
-
5
- var ArrowLight = "data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.33333%2015.8333L2.5%209.99995M2.5%209.99995L8.33333%204.16662M2.5%209.99995L17.5%209.99995%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
6
-
7
- module.exports = ArrowLight;
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- require('react');
4
-
5
- var XDark = "data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M0.292787%201.29299C0.480314%201.10552%200.734622%201.0002%200.999786%201.0002C1.26495%201.0002%201.51926%201.10552%201.70679%201.29299L5.99979%205.58599L10.2928%201.29299C10.385%201.19748%2010.4954%201.1213%2010.6174%201.06889C10.7394%201.01648%2010.8706%200.988893%2011.0034%200.987739C11.1362%200.986585%2011.2678%201.01189%2011.3907%201.06217C11.5136%201.11245%2011.6253%201.1867%2011.7192%201.28059C11.8131%201.37449%2011.8873%201.48614%2011.9376%201.60904C11.9879%201.73193%2012.0132%201.86361%2012.012%201.99639C12.0109%202.12917%2011.9833%202.26039%2011.9309%202.38239C11.8785%202.5044%2011.8023%202.61474%2011.7068%202.70699L7.41379%206.99999L11.7068%2011.293C11.8889%2011.4816%2011.9897%2011.7342%2011.9875%2011.9964C11.9852%2012.2586%2011.88%2012.5094%2011.6946%2012.6948C11.5092%2012.8802%2011.2584%2012.9854%2010.9962%2012.9877C10.734%2012.9899%2010.4814%2012.8891%2010.2928%2012.707L5.99979%208.41399L1.70679%2012.707C1.51818%2012.8891%201.26558%2012.9899%201.00339%2012.9877C0.741188%2012.9854%200.490376%2012.8802%200.304968%2012.6948C0.11956%2012.5094%200.0143906%2012.2586%200.0121121%2011.9964C0.00983372%2011.7342%200.110629%2011.4816%200.292787%2011.293L4.58579%206.99999L0.292787%202.70699C0.105316%202.51946%200%202.26515%200%201.99999C0%201.73483%200.105316%201.48052%200.292787%201.29299V1.29299Z%22%20fill%3D%22%239CA3AF%22%2F%3E%3C%2Fsvg%3E";
6
-
7
- module.exports = XDark;
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- require('react');
4
-
5
- var XLight = "data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M0.292787%201.29299C0.480314%201.10552%200.734622%201.0002%200.999786%201.0002C1.26495%201.0002%201.51926%201.10552%201.70679%201.29299L5.99979%205.58599L10.2928%201.29299C10.385%201.19748%2010.4954%201.1213%2010.6174%201.06889C10.7394%201.01648%2010.8706%200.988893%2011.0034%200.987739C11.1362%200.986585%2011.2678%201.01189%2011.3907%201.06217C11.5136%201.11245%2011.6253%201.1867%2011.7192%201.28059C11.8131%201.37449%2011.8873%201.48614%2011.9376%201.60904C11.9879%201.73193%2012.0132%201.86361%2012.012%201.99639C12.0109%202.12917%2011.9833%202.26039%2011.9309%202.38239C11.8785%202.5044%2011.8023%202.61474%2011.7068%202.70699L7.41379%206.99999L11.7068%2011.293C11.8889%2011.4816%2011.9897%2011.7342%2011.9875%2011.9964C11.9852%2012.2586%2011.88%2012.5094%2011.6946%2012.6948C11.5092%2012.8802%2011.2584%2012.9854%2010.9962%2012.9877C10.734%2012.9899%2010.4814%2012.8891%2010.2928%2012.707L5.99979%208.41399L1.70679%2012.707C1.51818%2012.8891%201.26558%2012.9899%201.00339%2012.9877C0.741188%2012.9854%200.490376%2012.8802%200.304968%2012.6948C0.11956%2012.5094%200.0143906%2012.2586%200.0121121%2011.9964C0.00983372%2011.7342%200.110629%2011.4816%200.292787%2011.293L4.58579%206.99999L0.292787%202.70699C0.105316%202.51946%200%202.26515%200%201.99999C0%201.73483%200.105316%201.48052%200.292787%201.29299V1.29299Z%22%20fill%3D%22%236B7280%22%2F%3E%3C%2Fsvg%3E";
6
-
7
- module.exports = XLight;
@@ -1,108 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var noModal = require('@web3auth/no-modal');
5
- var React = require('react');
6
- var reactI18next = require('react-i18next');
7
- var interfaces = require('../interfaces.js');
8
- var localeImport = require('../localeImport.js');
9
- var Icon = require('./Icon.js');
10
- var Image = require('./Image.js');
11
-
12
- const closeIcon = jsxRuntime.jsx(Icon, {
13
- iconName: "x-light",
14
- darkIconName: "close"
15
- });
16
- function DetailedLoader(props) {
17
- const {
18
- connector,
19
- appLogo,
20
- message,
21
- modalStatus,
22
- connectorName,
23
- onClose
24
- } = props;
25
- const providerIcon = connector === "twitter" ? jsxRuntime.jsx(Image, {
26
- imageId: "login-x-dark"
27
- }) : jsxRuntime.jsx(Image, {
28
- imageId: `login-${connector}`,
29
- height: "30",
30
- width: "30"
31
- });
32
- const [t] = reactI18next.useTranslation(undefined, {
33
- i18n: localeImport
34
- });
35
- React.useEffect(() => {
36
- noModal.log.debug("adapter loader re-rendering");
37
- if (modalStatus === interfaces.MODAL_STATUS.CONNECTED) {
38
- setTimeout(() => {
39
- onClose();
40
- }, 3000);
41
- }
42
- }, [modalStatus, onClose]);
43
- return modalStatus !== interfaces.MODAL_STATUS.INITIALIZED ? jsxRuntime.jsxs("div", {
44
- className: "w3ajs-modal-loader w3a-modal__loader w3a--h-full",
45
- children: [jsxRuntime.jsx("div", {
46
- className: "w3a-modal__loader-content",
47
- children: jsxRuntime.jsxs("div", {
48
- className: "w3a-modal__loader-info",
49
- children: [modalStatus === interfaces.MODAL_STATUS.CONNECTING && jsxRuntime.jsxs(jsxRuntime.Fragment, {
50
- children: [jsxRuntime.jsxs("div", {
51
- className: "w3a-modal__loader-bridge",
52
- children: [jsxRuntime.jsxs("div", {
53
- className: "w3a-modal__loader-app-logo",
54
- children: [jsxRuntime.jsx("img", {
55
- src: appLogo,
56
- className: "w3a--block dark:w3a--hidden w3a--h-10 w3a--w-10",
57
- alt: ""
58
- }), jsxRuntime.jsx("img", {
59
- src: appLogo,
60
- className: "w3a--hidden dark:w3a--block w3a--h-10 w3a--w-10",
61
- alt: ""
62
- })]
63
- }), jsxRuntime.jsx("div", {
64
- className: "w3a-modal__connector",
65
- children: jsxRuntime.jsxs("div", {
66
- className: "w3a-modal__connector-beat",
67
- children: [jsxRuntime.jsx("div", {}), jsxRuntime.jsx("div", {}), jsxRuntime.jsx("div", {}), jsxRuntime.jsx("div", {}), jsxRuntime.jsx("div", {})]
68
- })
69
- }), jsxRuntime.jsx("div", {
70
- className: "w3a-modal__loader-social-logo",
71
- children: providerIcon
72
- })]
73
- }), jsxRuntime.jsxs("div", {
74
- children: [jsxRuntime.jsx("div", {
75
- className: "w3a-modal__loader-bridge-message",
76
- children: t("modal.adapter-loader.message1", {
77
- adapter: connectorName
78
- })
79
- }), jsxRuntime.jsx("div", {
80
- className: "w3a-modal__loader-bridge-message",
81
- children: t("modal.adapter-loader.message2", {
82
- adapter: connectorName
83
- })
84
- })]
85
- })]
86
- }), modalStatus === noModal.CONNECTOR_STATUS.CONNECTED && jsxRuntime.jsxs("div", {
87
- className: "w3a--flex w3a--flex-col w3a--items-center",
88
- children: [jsxRuntime.jsx(Icon, {
89
- iconName: "connected"
90
- }), jsxRuntime.jsx("div", {
91
- className: "w3ajs-modal-loader__message w3a-spinner-message w3a--mt-4",
92
- children: message
93
- })]
94
- }), modalStatus === noModal.CONNECTOR_STATUS.ERRORED && jsxRuntime.jsx("div", {
95
- className: "w3ajs-modal-loader__message w3a-spinner-message w3a-spinner-message--error",
96
- children: message
97
- })]
98
- })
99
- }), (modalStatus === noModal.CONNECTOR_STATUS.CONNECTED || modalStatus === noModal.CONNECTOR_STATUS.ERRORED) && jsxRuntime.jsx("button", {
100
- type: "button",
101
- className: "w3a-header__button w3ajs-loader-close-btn",
102
- onClick: onClose,
103
- children: closeIcon
104
- })]
105
- }) : null;
106
- }
107
-
108
- module.exports = DetailedLoader;
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- var styleInject_es = require('../../../../../../node_modules/style-inject/dist/style-inject.es.js');
4
-
5
- var css_248z = ".w3a-parent-container #w3a-modal button.t-btn,.w3a-parent-container a.t-btn{align-items:center;display:flex;justify-content:center;transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:linear}.w3a-parent-container #w3a-modal button.t-btn:not(.t-btn-text):disabled,.w3a-parent-container a.t-btn:not(.t-btn-text):disabled{background-color:var(--app-gray-300);border-width:0;color:var(--app-gray-400)}.w3a-parent-container #w3a-modal button.t-btn:not(.t-btn-text):hover:disabled,.w3a-parent-container a.t-btn:not(.t-btn-text):hover:disabled{background-color:var(--app-gray-300);border-color:var(--app-gray-300);color:var(--app-gray-400)}.w3a-parent-container #w3a-modal button.t-btn:not(.t-btn-text):active:disabled,.w3a-parent-container a.t-btn:not(.t-btn-text):active:disabled{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-offset-width:0px;background-color:var(--app-gray-300);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline-width:0}.w3a-parent-container #w3a-modal button.t-btn:not(.t-btn-text):disabled:is(.w3a--dark *),.w3a-parent-container a.t-btn:not(.t-btn-text):disabled:is(.w3a--dark *){background-color:var(--app-gray-700);color:var(--app-gray-600)}.w3a-parent-container #w3a-modal .size-xs{font-size:.75rem;height:32px;line-height:1rem;padding:.5rem .75rem}.w3a-parent-container #w3a-modal .size-sm{font-size:.875rem;height:36px;line-height:1.25rem;padding:.5rem .75rem}.w3a-parent-container #w3a-modal .size-md{font-size:.875rem;height:42px;line-height:1.25rem;padding:.625rem 1.25rem}.w3a-parent-container #w3a-modal .size-lg{font-size:1rem;height:48px;line-height:1.5rem;padding:.75rem 1.25rem}.w3a-parent-container #w3a-modal .size-xl{font-size:1rem;height:52px;line-height:1.5rem;padding:.875rem 1rem}.w3a-parent-container #w3a-modal .t-btn.t-btn-primary{background-color:var(--app-primary-600);color:var(--app-on-primary);outline:2px solid #0000;outline-offset:2px}.w3a-parent-container #w3a-modal .t-btn.t-btn-primary:hover{background-color:var(--app-primary-700)}.w3a-parent-container #w3a-modal .t-btn.t-btn-primary:focus-visible{outline-color:var(--app-primary-600);outline-offset:1px;outline-style:solid;outline-width:1px}.w3a-parent-container #w3a-modal .t-btn.t-btn-primary:active{background-color:var(--app-primary-600);outline-color:var(--app-primary-600);outline-offset:1px;outline-style:solid;outline-width:1px}.w3a-parent-container #w3a-modal .t-btn.t-btn-primary:is(.w3a--dark *){background-color:var(--app-primary-500)}.w3a-parent-container #w3a-modal .t-btn.t-btn-primary:hover:is(.w3a--dark *){background-color:var(--app-primary-400)}.w3a-parent-container #w3a-modal .t-btn.t-btn-primary:focus-visible:is(.w3a--dark *){outline-color:var(--app-primary-500)}.w3a-parent-container #w3a-modal .t-btn.t-btn-primary:active:is(.w3a--dark *){background-color:var(--app-primary-500);outline-color:var(--app-primary-500)}.w3a-parent-container #w3a-modal .t-btn.t-btn-secondary{background-color:initial;border-color:var(--app-gray-500);border-width:1px;color:var(--app-gray-600);outline:2px solid #0000;outline-offset:2px}.w3a-parent-container #w3a-modal .t-btn.t-btn-secondary:hover{background-color:var(--app-gray-200)}.w3a-parent-container #w3a-modal .t-btn.t-btn-secondary:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-color:var(--app-primary-600);background-color:initial;border-color:var(--app-primary-600);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.w3a-parent-container #w3a-modal .t-btn.t-btn-secondary:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-color:var(--app-primary-600);background-color:initial;border-color:var(--app-primary-600);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.w3a-parent-container #w3a-modal .t-btn.t-btn-secondary:is(.w3a--dark *){border-color:var(--app-gray-300);color:var(--app-white)}.w3a-parent-container #w3a-modal .t-btn.t-btn-secondary:hover:is(.w3a--dark *){background-color:var(--app-gray-700)}.w3a-parent-container #w3a-modal .t-btn.t-btn-secondary:focus-visible:is(.w3a--dark *){--tw-ring-color:var(--app-primary-500);background-color:initial;border-color:var(--app-primary-500)}.w3a-parent-container #w3a-modal .t-btn.t-btn-secondary:active:is(.w3a--dark *){--tw-ring-color:var(--app-primary-500);background-color:initial;border-color:var(--app-primary-500)}.w3a-parent-container #w3a-modal .t-btn.t-btn-tertiary{background-color:var(--app-gray-200);color:var(--app-gray-800)}.w3a-parent-container #w3a-modal .t-btn.t-btn-tertiary:hover{background-color:var(--app-gray-300)}.w3a-parent-container #w3a-modal .t-btn.t-btn-tertiary:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-color:var(--app-primary-600);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.w3a-parent-container #w3a-modal .t-btn.t-btn-tertiary:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-color:var(--app-primary-600);background-color:var(--app-gray-200);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.w3a-parent-container #w3a-modal .t-btn.t-btn-tertiary:is(.w3a--dark *){background-color:var(--app-gray-500);color:var(--app-white)}.w3a-parent-container #w3a-modal .t-btn.t-btn-tertiary:hover:is(.w3a--dark *){background-color:var(--app-gray-400)}.w3a-parent-container #w3a-modal .t-btn.t-btn-tertiary:focus-visible:is(.w3a--dark *){--tw-ring-color:var(--app-primary-500)}.w3a-parent-container #w3a-modal .t-btn.t-btn-tertiary:active:is(.w3a--dark *){--tw-ring-color:var(--app-primary-500);background-color:var(--app-gray-500)}.w3a-parent-container #w3a-modal .t-btn.t-btn-text{color:var(--app-primary-600)}.w3a-parent-container #w3a-modal .t-btn.t-btn-text:hover{color:var(--app-primary-800);text-decoration-line:underline}.w3a-parent-container #w3a-modal .t-btn.t-btn-text:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-color:var(--app-primary-600);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.w3a-parent-container #w3a-modal .t-btn.t-btn-text:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-color:var(--app-primary-600);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);color:var(--app-primary-600)}.w3a-parent-container #w3a-modal .t-btn.t-btn-text:disabled{color:var(--app-gray-400);text-decoration-line:none}.w3a-parent-container #w3a-modal .t-btn.t-btn-text:is(.w3a--dark *){color:var(--app-primary-500)}.w3a-parent-container #w3a-modal .t-btn.t-btn-text:hover:is(.w3a--dark *){color:var(--app-primary-400)}.w3a-parent-container #w3a-modal .t-btn.t-btn-text:disabled:is(.w3a--dark *){color:var(--app-gray-600)}.w3a-parent-container #w3a-modal .btn-link{text-decoration-line:none}.w3a-parent-container #w3a-modal button.t-btn:hover>.hover-icon{display:block;transition:display .15s;transition-timing-function:cubic-bezier(0,.54,.63,.99)}.w3a-parent-container #w3a-modal button.t-btn:hover>.image-icon{display:none;transition:display .15s;transition-timing-function:cubic-bezier(0,.54,.63,.99)}";
6
- styleInject_es(css_248z);
7
-
8
- module.exports = css_248z;
@@ -1,44 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var reactI18next = require('react-i18next');
5
- var localeImport = require('../../localeImport.js');
6
- var Button = require('../Button/Button.js');
7
- var Image = require('../Image.js');
8
-
9
- function ExternalWalletButton(props) {
10
- const {
11
- button,
12
- handleWalletClick
13
- } = props;
14
- const [t] = reactI18next.useTranslation(undefined, {
15
- i18n: localeImport
16
- });
17
- return jsxRuntime.jsxs(Button, {
18
- variant: "tertiary",
19
- type: "button",
20
- onClick: () => handleWalletClick(button),
21
- className: "w3a--w-full w3a--rounded-xl w3a--size-xl !w3a--justify-between w3a--items-center wallet-btn",
22
- title: button.name,
23
- children: [jsxRuntime.jsxs("div", {
24
- className: "w3a--flex w3a--items-center",
25
- children: [jsxRuntime.jsx(Image, {
26
- imageId: `login-${button.name}`,
27
- hoverImageId: `login-${button.name}`,
28
- fallbackImageId: "wallet",
29
- height: "24",
30
- width: "24",
31
- isButton: true,
32
- extension: button.imgExtension
33
- }), jsxRuntime.jsx("p", {
34
- className: "w3a--ml-2 w3a--text-left w3a--text-sm",
35
- children: button.displayName
36
- })]
37
- }), button.hasInjectedWallet && jsxRuntime.jsx("span", {
38
- className: "w3a--inline-flex w3a--items-center w3a--rounded-lg w3a--px-2 w3a--py-1 w3a--text-xs w3a--font-medium w3a--bg-app-primary-100 w3a--text-app-primary-800",
39
- children: t("modal.external.installed")
40
- })]
41
- });
42
- }
43
-
44
- module.exports = ExternalWalletButton;
@@ -1,67 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var React = require('react');
5
- var reactI18next = require('react-i18next');
6
- var interfaces = require('../../interfaces.js');
7
- var localeImport = require('../../localeImport.js');
8
- var Button = require('../Button/Button.js');
9
- var Loader = require('../Loader.js');
10
- var WalletConnect = require('../WalletConnect.js');
11
- var ExternalWalletHeader = require('./ExternalWalletHeader.js');
12
- var ExternalWalletInstall = require('./ExternalWalletInstall.js');
13
-
14
- function ExternalWalletConnect(props) {
15
- const {
16
- connectButton,
17
- walletConnectUri,
18
- goBack,
19
- closeModal
20
- } = props;
21
- const [isWalletDownloadShown, setIsWalletDownloadShown] = React.useState(false);
22
- const [t] = reactI18next.useTranslation(undefined, {
23
- i18n: localeImport
24
- });
25
- const showWalletDownload = () => {
26
- setIsWalletDownloadShown(true);
27
- };
28
- return jsxRuntime.jsx("div", {
29
- children: isWalletDownloadShown ? jsxRuntime.jsx("div", {
30
- children: jsxRuntime.jsx(ExternalWalletInstall, {
31
- connectButton: connectButton,
32
- goBack: () => setIsWalletDownloadShown(false),
33
- closeModal: closeModal
34
- })
35
- }) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
36
- children: [jsxRuntime.jsx(ExternalWalletHeader, {
37
- title: connectButton.displayName,
38
- goBack: goBack,
39
- closeModal: closeModal
40
- }), !walletConnectUri ? jsxRuntime.jsx(Loader, {
41
- modalStatus: interfaces.MODAL_STATUS.CONNECTING,
42
- canEmit: false
43
- }) : jsxRuntime.jsx(WalletConnect, {
44
- walletConnectUri: walletConnectUri,
45
- logoImage: `https://images.web3auth.io/login-${connectButton.name}.${connectButton.imgExtension}`,
46
- primaryColor: connectButton.walletRegistryItem.primaryColor
47
- }), connectButton.hasInstallLinks && jsxRuntime.jsxs("div", {
48
- className: "w3a--flex w3a--flex-row w3a--items-center w3a--justify-between w3a--gap-2 w3a--bg-app-gray-50 dark:w3a--bg-app-gray-700 w3a--text-app-gray-900 dark:w3a--text-app-white w3a--px-3 w3a--py-2 w3a--rounded-xl",
49
- children: [jsxRuntime.jsxs("span", {
50
- className: "w3a--text-sm w3a--truncate w3a--flex-grow-0",
51
- children: [t("modal.external.dont-have"), " ", jsxRuntime.jsx("span", {
52
- children: connectButton.displayName
53
- }), "?"]
54
- }), jsxRuntime.jsx(Button, {
55
- type: "button",
56
- variant: "secondary",
57
- size: "xs",
58
- className: "w3a--flex-grow-1 w3a--flex-shrink-0",
59
- onClick: showWalletDownload,
60
- children: t("modal.external.get-wallet")
61
- })]
62
- })]
63
- })
64
- });
65
- }
66
-
67
- module.exports = ExternalWalletConnect;
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var ExternalWalletChainNamespace = require('./ExternalWalletChainNamespace.js');
5
- var ExternalWalletConnect = require('./ExternalWalletConnect.js');
6
- var ExternalWalletInstall = require('./ExternalWalletInstall.js');
7
-
8
- function ExternalWalletDetail(props) {
9
- const {
10
- connectButton,
11
- walletConnectUri,
12
- goBack,
13
- closeModal,
14
- handleExternalWalletClick
15
- } = props;
16
- // Select chain namespace for injected wallets
17
- if (connectButton.hasInjectedWallet) {
18
- return jsxRuntime.jsx(ExternalWalletChainNamespace, {
19
- handleExternalWalletClick: handleExternalWalletClick,
20
- button: connectButton,
21
- goBack: goBack,
22
- closeModal: closeModal
23
- });
24
- }
25
- return jsxRuntime.jsx("div", {
26
- children: connectButton.hasWalletConnect ?
27
- // Wallet Connect
28
- jsxRuntime.jsx(ExternalWalletConnect, {
29
- connectButton: connectButton,
30
- walletConnectUri: walletConnectUri,
31
- goBack: goBack,
32
- closeModal: closeModal
33
- }) :
34
- // Download wallets
35
- jsxRuntime.jsx(ExternalWalletInstall, {
36
- connectButton: connectButton,
37
- goBack: goBack,
38
- closeModal: closeModal
39
- })
40
- });
41
- }
42
-
43
- module.exports = ExternalWalletDetail;
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var Icon = require('../Icon.js');
5
-
6
- function ExternalWalletHeader(props) {
7
- const {
8
- title,
9
- goBack,
10
- closeModal,
11
- disableBackButton
12
- } = props;
13
- return jsxRuntime.jsxs("div", {
14
- className: "w3a--flex w3a--flex-row w3a--justify-center w3a--items-center w3a--gap-1",
15
- children: [jsxRuntime.jsx("div", {
16
- className: "w3a--flex-grow-1 w3a--flex-shrink-0 w3a--items-center w3a--justify-start w3a--mr-auto",
17
- children: !disableBackButton && jsxRuntime.jsx("button", {
18
- type: "button",
19
- className: "w3a-external-back w3ajs-external-back",
20
- onClick: goBack,
21
- children: jsxRuntime.jsx(Icon, {
22
- iconName: "arrow-left-light",
23
- darkIconName: "arrow-left-dark",
24
- width: "16",
25
- height: "16"
26
- })
27
- })
28
- }), jsxRuntime.jsx("div", {
29
- className: "w3a-header__title w3a--flex-grow-0 w3a--flex-shrink w3a--truncate w3a--mr-6",
30
- children: title
31
- }), jsxRuntime.jsx("div", {
32
- className: "w3a--flex-grow-1 w3a--flex-shrink-0 w3a--items-center w3a--justify-end w3a--ml-auto",
33
- children: jsxRuntime.jsx("button", {
34
- type: "button",
35
- onClick: closeModal,
36
- className: "w3a-header__button_wallet w3ajs-close-btn",
37
- children: jsxRuntime.jsx(Icon, {
38
- iconName: "x-light",
39
- darkIconName: "x-dark"
40
- })
41
- })
42
- })]
43
- });
44
- }
45
-
46
- module.exports = ExternalWalletHeader;
@@ -1,167 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var Bowser = require('bowser');
5
- var React = require('react');
6
- var reactI18next = require('react-i18next');
7
- var localeImport = require('../../localeImport.js');
8
- var Button = require('../Button/Button.js');
9
- var Image = require('../Image.js');
10
- var ExternalWalletHeader = require('./ExternalWalletHeader.js');
11
-
12
- const getBrowserExtensionUrl = (browserType, walletId) => {
13
- if (walletId !== null && walletId !== void 0 && walletId.startsWith("https://")) return walletId;
14
- switch (browserType) {
15
- case "chrome":
16
- return `https://chrome.google.com/webstore/detail/${walletId}`;
17
- case "firefox":
18
- return `https://addons.mozilla.org/firefox/addon/${walletId}`;
19
- case "edge":
20
- return `https://microsoftedge.microsoft.com/addons/detail/${walletId}`;
21
- default:
22
- return null;
23
- }
24
- };
25
- const getMobileInstallLink = (os, appId) => {
26
- if (appId !== null && appId !== void 0 && appId.includes("https://")) {
27
- return appId;
28
- }
29
- switch (os) {
30
- case "android":
31
- return `https://play.google.com/store/apps/details?id=${appId}`;
32
- case "ios":
33
- return `https://apps.apple.com/app/safepal-wallet/${appId}`;
34
- default:
35
- return "";
36
- }
37
- };
38
- const getOsName = os => {
39
- switch (os) {
40
- case "ios":
41
- return "iOS";
42
- case "android":
43
- return "Android";
44
- default:
45
- return "";
46
- }
47
- };
48
- const getBrowserName = browser => {
49
- return browser.charAt(0).toUpperCase() + browser.slice(1);
50
- };
51
- function ExternalWalletInstall(props) {
52
- const {
53
- connectButton,
54
- goBack,
55
- closeModal
56
- } = props;
57
- const [t] = reactI18next.useTranslation(undefined, {
58
- i18n: localeImport
59
- });
60
- const deviceDetails = React.useMemo(() => {
61
- const browser = Bowser.getParser(window.navigator.userAgent);
62
- return {
63
- platform: browser.getPlatformType(),
64
- browser: browser.getBrowserName().toLowerCase(),
65
- os: browser.getOSName()
66
- };
67
- }, []);
68
- const mobileInstallLinks = () => {
69
- const installConfig = connectButton.walletRegistryItem.app || {};
70
- const installLinks = Object.keys(installConfig).reduce((acc, os) => {
71
- if (!["android", "ios"].includes(os)) return acc;
72
- const appId = installConfig[os];
73
- if (!appId) return acc;
74
- const appUrl = getMobileInstallLink(os, appId);
75
- if (!appUrl) return acc;
76
- const logoLight = `${os}-light`;
77
- const logoDark = `${os}-dark`;
78
- acc.push(jsxRuntime.jsx("li", {
79
- className: "w3a--w-full",
80
- children: jsxRuntime.jsx("a", {
81
- href: appUrl,
82
- rel: "noopener noreferrer",
83
- target: "_blank",
84
- children: jsxRuntime.jsxs(Button, {
85
- type: "button",
86
- variant: "tertiary",
87
- className: "w3a--w-full !w3a--justify-start w3a--flex w3a--items-center w3a--gap-2 wallet-link-btn",
88
- children: [jsxRuntime.jsx(Image, {
89
- imageId: logoLight,
90
- darkImageId: logoDark,
91
- hoverImageId: logoLight,
92
- darkHoverImageId: logoDark,
93
- height: "28",
94
- width: "28",
95
- isButton: true
96
- }), jsxRuntime.jsx("span", {
97
- className: "w3a--text-sm w3a--font-medium",
98
- children: t("modal.external.install-mobile-app", {
99
- os: getOsName(os)
100
- })
101
- })]
102
- })
103
- })
104
- }, os));
105
- return acc;
106
- }, []);
107
- return installLinks;
108
- };
109
- const desktopInstallLinks = () => {
110
- // if browser is brave, use chrome extension
111
- const browserType = deviceDetails.browser === "brave" ? "chrome" : deviceDetails.browser;
112
- const browserExtensionConfig = connectButton.walletRegistryItem.app || {};
113
- const extensionForCurrentBrowser = browserExtensionConfig.browser && browserExtensionConfig.browser.includes(browserType) ? browserExtensionConfig.browser : undefined;
114
- const browserExtensionId = browserExtensionConfig[browserType] || extensionForCurrentBrowser;
115
- const browserExtensionUrl = browserExtensionId ? getBrowserExtensionUrl(browserType, browserExtensionId) : null;
116
- const installLink = browserExtensionUrl ? jsxRuntime.jsx("li", {
117
- children: jsxRuntime.jsx("a", {
118
- href: browserExtensionUrl,
119
- rel: "noopener noreferrer",
120
- target: "_blank",
121
- children: jsxRuntime.jsxs(Button, {
122
- type: "button",
123
- variant: "tertiary",
124
- className: "w3a--w-full !w3a--justify-start w3a--flex w3a--items-center w3a--gap-2 wallet-link-btn",
125
- children: [jsxRuntime.jsx(Image, {
126
- imageId: deviceDetails.browser,
127
- darkImageId: deviceDetails.browser,
128
- hoverImageId: deviceDetails.browser,
129
- darkHoverImageId: deviceDetails.browser,
130
- height: "30",
131
- width: "30",
132
- isButton: true
133
- }), jsxRuntime.jsx("span", {
134
- className: "w3a--text-sm w3a--font-medium",
135
- children: t("modal.external.install-browser-extension", {
136
- browser: getBrowserName(deviceDetails.browser)
137
- })
138
- })]
139
- })
140
- })
141
- }, deviceDetails.browser) : null;
142
- return [installLink, ...mobileInstallLinks()];
143
- };
144
- return jsxRuntime.jsxs("div", {
145
- children: [jsxRuntime.jsx(ExternalWalletHeader, {
146
- title: `${t("modal.external.get")} ${connectButton.displayName}`,
147
- goBack: goBack,
148
- closeModal: closeModal
149
- }), jsxRuntime.jsx("div", {
150
- className: "w3a--flex w3a--justify-center w3a--my-6",
151
- children: jsxRuntime.jsx(Image, {
152
- imageId: `login-${connectButton.name}`,
153
- hoverImageId: `login-${connectButton.name}`,
154
- fallbackImageId: "wallet",
155
- height: "100",
156
- width: "100",
157
- isButton: true,
158
- extension: connectButton.imgExtension
159
- })
160
- }), jsxRuntime.jsx("ul", {
161
- className: "w3a--flex w3a--flex-col w3a--gap-3",
162
- children: deviceDetails.platform === "desktop" ? desktopInstallLinks() : mobileInstallLinks()
163
- })]
164
- });
165
- }
166
-
167
- module.exports = ExternalWalletInstall;