@web3auth/modal 10.0.0-beta.2 → 10.0.0-beta.4

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 (152) hide show
  1. package/dist/lib.cjs/packages/modal/src/config.js +3 -3
  2. package/dist/lib.cjs/packages/modal/src/index.js +1 -0
  3. package/dist/lib.cjs/packages/modal/src/modalManager.js +46 -23
  4. package/dist/lib.cjs/packages/modal/src/react/Web3AuthProvider.js +5 -1
  5. package/dist/lib.cjs/packages/modal/src/react/context/WalletServicesInnerContext.js +72 -0
  6. package/dist/lib.cjs/packages/modal/src/react/context/Web3AuthInnerContext.js +21 -78
  7. package/dist/lib.cjs/packages/modal/src/react/hooks/useCheckout.js +34 -0
  8. package/dist/lib.cjs/packages/modal/src/react/hooks/useEnableMFA.js +30 -0
  9. package/dist/lib.cjs/packages/modal/src/react/hooks/useIdentityToken.js +42 -0
  10. package/dist/lib.cjs/packages/modal/src/react/hooks/useManageMFA.js +30 -0
  11. package/dist/lib.cjs/packages/modal/src/react/hooks/useSwap.js +34 -0
  12. package/dist/lib.cjs/packages/modal/src/react/hooks/useSwitchChain.js +32 -0
  13. package/dist/lib.cjs/packages/modal/src/react/hooks/useWalletConnectScanner.js +34 -0
  14. package/dist/lib.cjs/packages/modal/src/react/hooks/useWalletServicesPlugin.js +12 -0
  15. package/dist/lib.cjs/packages/modal/src/react/hooks/useWalletUI.js +34 -0
  16. package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3Auth.js +21 -8
  17. package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3AuthConnect.js +43 -0
  18. package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3AuthDisconnect.js +30 -0
  19. package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3AuthInner.js +15 -0
  20. package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3AuthUser.js +50 -0
  21. package/dist/lib.cjs/packages/modal/src/react/index.js +24 -3
  22. package/dist/lib.cjs/packages/modal/src/react/wagmi/index.js +7 -0
  23. package/dist/lib.cjs/packages/modal/src/react/wagmi/provider.js +192 -0
  24. package/dist/lib.cjs/packages/modal/src/ui/components/BottomSheet/BottomSheet.js +1 -1
  25. package/dist/lib.cjs/packages/modal/src/ui/components/Button/ButtonSocial/ButtonSocial.js +1 -1
  26. package/dist/lib.cjs/packages/modal/src/ui/components/Button/ButtonWallet/ButtonWallet.js +12 -4
  27. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWallet.js +7 -7
  28. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.js +3 -3
  29. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.js +3 -3
  30. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.js +1 -1
  31. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWalletList/ConnectWalletList.js +13 -5
  32. package/dist/lib.cjs/packages/modal/src/ui/components/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.js +1 -1
  33. package/dist/lib.cjs/packages/modal/src/ui/components/Image/Image.js +5 -4
  34. package/dist/lib.cjs/packages/modal/src/ui/components/Loader/Loader.js +1 -1
  35. package/dist/lib.cjs/packages/modal/src/ui/components/Login/Login.js +55 -32
  36. package/dist/lib.cjs/packages/modal/src/ui/components/Login/LoginPasswordLess/LoginPasswordLess.js +10 -5
  37. package/dist/lib.cjs/packages/modal/src/ui/components/Modal/Modal.js +1 -1
  38. package/dist/lib.cjs/packages/modal/src/ui/components/PulseLoader/PulseLoader.js +3 -3
  39. package/dist/lib.cjs/packages/modal/src/ui/components/Root/Root.js +19 -33
  40. package/dist/lib.cjs/packages/modal/src/ui/components/SocialLoginList/SocialLoginList.js +15 -34
  41. package/dist/lib.cjs/packages/modal/src/ui/components/Widget/Widget.js +2 -1
  42. package/dist/lib.cjs/packages/modal/src/ui/config.js +2 -1
  43. package/dist/lib.cjs/packages/modal/src/ui/constants.js +4 -0
  44. package/dist/lib.cjs/packages/modal/src/ui/css/index.css.js +1 -1
  45. package/dist/lib.cjs/packages/modal/src/ui/handlers/AbstractHandler.js +6 -2
  46. package/dist/lib.cjs/packages/modal/src/ui/handlers/EmailPasswordlessHandler.js +7 -4
  47. package/dist/lib.cjs/packages/modal/src/ui/handlers/SmsPasswordlessHandler.js +2 -2
  48. package/dist/lib.cjs/packages/modal/src/ui/i18n/dutch.json.js +32 -31
  49. package/dist/lib.cjs/packages/modal/src/ui/i18n/english.json.js +32 -31
  50. package/dist/lib.cjs/packages/modal/src/ui/i18n/french.json.js +32 -31
  51. package/dist/lib.cjs/packages/modal/src/ui/i18n/german.json.js +32 -31
  52. package/dist/lib.cjs/packages/modal/src/ui/i18n/japanese.json.js +32 -31
  53. package/dist/lib.cjs/packages/modal/src/ui/i18n/korean.json.js +32 -31
  54. package/dist/lib.cjs/packages/modal/src/ui/i18n/mandarin.json.js +32 -31
  55. package/dist/lib.cjs/packages/modal/src/ui/i18n/portuguese.json.js +32 -31
  56. package/dist/lib.cjs/packages/modal/src/ui/i18n/spanish.json.js +32 -31
  57. package/dist/lib.cjs/packages/modal/src/ui/i18n/turkish.json.js +32 -31
  58. package/dist/lib.cjs/packages/modal/src/ui/loginModal.js +5 -3
  59. package/dist/lib.cjs/packages/modal/src/vue/Web3AuthProvider.js +15 -3
  60. package/dist/lib.cjs/types/config.d.ts +1 -0
  61. package/dist/lib.cjs/types/interface.d.ts +3 -1
  62. package/dist/lib.cjs/types/modalManager.d.ts +4 -1
  63. package/dist/lib.cjs/types/react/context/WalletServicesInnerContext.d.ts +6 -0
  64. package/dist/lib.cjs/types/react/hooks/index.d.ts +13 -1
  65. package/dist/lib.cjs/types/react/hooks/useCheckout.d.ts +8 -0
  66. package/dist/lib.cjs/types/react/hooks/useEnableMFA.d.ts +7 -0
  67. package/dist/lib.cjs/types/react/hooks/useIdentityToken.d.ts +13 -0
  68. package/dist/lib.cjs/types/react/hooks/useManageMFA.d.ts +7 -0
  69. package/dist/lib.cjs/types/react/hooks/useSwap.d.ts +8 -0
  70. package/dist/lib.cjs/types/react/hooks/useSwitchChain.d.ts +7 -0
  71. package/dist/lib.cjs/types/react/hooks/useWalletConnectScanner.d.ts +8 -0
  72. package/dist/lib.cjs/types/react/hooks/useWalletServicesPlugin.d.ts +2 -0
  73. package/dist/lib.cjs/types/react/hooks/useWalletUI.d.ts +8 -0
  74. package/dist/lib.cjs/types/react/hooks/useWeb3Auth.d.ts +2 -1
  75. package/dist/lib.cjs/types/react/hooks/useWeb3AuthConnect.d.ts +9 -0
  76. package/dist/lib.cjs/types/react/hooks/useWeb3AuthDisconnect.d.ts +9 -0
  77. package/dist/lib.cjs/types/react/hooks/useWeb3AuthInner.d.ts +2 -0
  78. package/dist/lib.cjs/types/react/hooks/useWeb3AuthUser.d.ts +9 -0
  79. package/dist/lib.cjs/types/react/index.d.ts +0 -1
  80. package/dist/lib.cjs/types/react/interfaces.d.ts +6 -2
  81. package/dist/lib.cjs/types/react/wagmi/index.d.ts +1 -0
  82. package/dist/lib.cjs/types/react/wagmi/interface.d.ts +4 -0
  83. package/dist/lib.cjs/types/react/wagmi/provider.d.ts +4 -0
  84. package/dist/lib.cjs/types/ui/components/Login/Login.type.d.ts +2 -2
  85. package/dist/lib.cjs/types/ui/config.d.ts +1 -1
  86. package/dist/lib.cjs/types/ui/constants.d.ts +2 -0
  87. package/dist/lib.cjs/types/ui/handlers/AbstractHandler.d.ts +3 -2
  88. package/dist/lib.cjs/types/ui/handlers/EmailPasswordlessHandler.d.ts +3 -1
  89. package/dist/lib.cjs/types/ui/interfaces.d.ts +8 -6
  90. package/dist/lib.esm/packages/modal/src/config.js +3 -4
  91. package/dist/lib.esm/packages/modal/src/index.js +1 -1
  92. package/dist/lib.esm/packages/modal/src/modalManager.js +48 -24
  93. package/dist/lib.esm/packages/modal/src/react/Web3AuthProvider.js +6 -2
  94. package/dist/lib.esm/packages/modal/src/react/context/WalletServicesInnerContext.js +69 -0
  95. package/dist/lib.esm/packages/modal/src/react/context/Web3AuthInnerContext.js +22 -79
  96. package/dist/lib.esm/packages/modal/src/react/hooks/useCheckout.js +32 -0
  97. package/dist/lib.esm/packages/modal/src/react/hooks/useEnableMFA.js +28 -0
  98. package/dist/lib.esm/packages/modal/src/react/hooks/useIdentityToken.js +40 -0
  99. package/dist/lib.esm/packages/modal/src/react/hooks/useManageMFA.js +28 -0
  100. package/dist/lib.esm/packages/modal/src/react/hooks/useSwap.js +32 -0
  101. package/dist/lib.esm/packages/modal/src/react/hooks/useSwitchChain.js +30 -0
  102. package/dist/lib.esm/packages/modal/src/react/hooks/useWalletConnectScanner.js +32 -0
  103. package/dist/lib.esm/packages/modal/src/react/hooks/useWalletServicesPlugin.js +10 -0
  104. package/dist/lib.esm/packages/modal/src/react/hooks/useWalletUI.js +32 -0
  105. package/dist/lib.esm/packages/modal/src/react/hooks/useWeb3Auth.js +21 -8
  106. package/dist/lib.esm/packages/modal/src/react/hooks/useWeb3AuthConnect.js +41 -0
  107. package/dist/lib.esm/packages/modal/src/react/hooks/useWeb3AuthDisconnect.js +28 -0
  108. package/dist/lib.esm/packages/modal/src/react/hooks/useWeb3AuthInner.js +13 -0
  109. package/dist/lib.esm/packages/modal/src/react/hooks/useWeb3AuthUser.js +48 -0
  110. package/dist/lib.esm/packages/modal/src/react/index.js +12 -1
  111. package/dist/lib.esm/packages/modal/src/react/wagmi/index.js +1 -0
  112. package/dist/lib.esm/packages/modal/src/react/wagmi/provider.js +192 -0
  113. package/dist/lib.esm/packages/modal/src/ui/components/BottomSheet/BottomSheet.js +1 -1
  114. package/dist/lib.esm/packages/modal/src/ui/components/Button/ButtonSocial/ButtonSocial.js +1 -1
  115. package/dist/lib.esm/packages/modal/src/ui/components/Button/ButtonWallet/ButtonWallet.js +14 -6
  116. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWallet.js +7 -7
  117. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.js +3 -3
  118. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.js +3 -3
  119. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.js +1 -1
  120. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWalletList/ConnectWalletList.js +13 -5
  121. package/dist/lib.esm/packages/modal/src/ui/components/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.js +1 -1
  122. package/dist/lib.esm/packages/modal/src/ui/components/Image/Image.js +5 -4
  123. package/dist/lib.esm/packages/modal/src/ui/components/Loader/Loader.js +1 -1
  124. package/dist/lib.esm/packages/modal/src/ui/components/Login/Login.js +58 -32
  125. package/dist/lib.esm/packages/modal/src/ui/components/Login/LoginPasswordLess/LoginPasswordLess.js +11 -6
  126. package/dist/lib.esm/packages/modal/src/ui/components/Modal/Modal.js +1 -1
  127. package/dist/lib.esm/packages/modal/src/ui/components/PulseLoader/PulseLoader.js +3 -3
  128. package/dist/lib.esm/packages/modal/src/ui/components/Root/Root.js +19 -34
  129. package/dist/lib.esm/packages/modal/src/ui/components/SocialLoginList/SocialLoginList.js +16 -35
  130. package/dist/lib.esm/packages/modal/src/ui/components/Widget/Widget.js +3 -2
  131. package/dist/lib.esm/packages/modal/src/ui/config.js +2 -1
  132. package/dist/lib.esm/packages/modal/src/ui/constants.js +3 -1
  133. package/dist/lib.esm/packages/modal/src/ui/css/index.css.js +1 -1
  134. package/dist/lib.esm/packages/modal/src/ui/handlers/AbstractHandler.js +5 -1
  135. package/dist/lib.esm/packages/modal/src/ui/handlers/EmailPasswordlessHandler.js +7 -4
  136. package/dist/lib.esm/packages/modal/src/ui/handlers/SmsPasswordlessHandler.js +2 -2
  137. package/dist/lib.esm/packages/modal/src/ui/i18n/dutch.json.js +32 -31
  138. package/dist/lib.esm/packages/modal/src/ui/i18n/english.json.js +32 -31
  139. package/dist/lib.esm/packages/modal/src/ui/i18n/french.json.js +32 -31
  140. package/dist/lib.esm/packages/modal/src/ui/i18n/german.json.js +32 -31
  141. package/dist/lib.esm/packages/modal/src/ui/i18n/japanese.json.js +32 -31
  142. package/dist/lib.esm/packages/modal/src/ui/i18n/korean.json.js +32 -31
  143. package/dist/lib.esm/packages/modal/src/ui/i18n/mandarin.json.js +32 -31
  144. package/dist/lib.esm/packages/modal/src/ui/i18n/portuguese.json.js +32 -31
  145. package/dist/lib.esm/packages/modal/src/ui/i18n/spanish.json.js +32 -31
  146. package/dist/lib.esm/packages/modal/src/ui/i18n/turkish.json.js +32 -31
  147. package/dist/lib.esm/packages/modal/src/ui/loginModal.js +6 -4
  148. package/dist/lib.esm/packages/modal/src/vue/Web3AuthProvider.js +16 -3
  149. package/dist/modal.umd.min.js +1 -1
  150. package/dist/modal.umd.min.js.LICENSE.txt +10 -0
  151. package/package.json +41 -16
  152. package/dist/lib.cjs/types/react/context/index.d.ts +0 -1
@@ -6,6 +6,9 @@ var modal = {
6
6
  "adapter-loader.message": "Devam etmek için {{adapter}} hesabınızı doğrula",
7
7
  "adapter-loader.message1": "{{adapter}} doğrula",
8
8
  "adapter-loader.message2": "devam edecek hesap",
9
+ allChains: "Tüm zincirler",
10
+ "connect-wallet.more-wallets": "Daha fazla cüzdan",
11
+ connectYourWallet: "Cüzdanınızı bağlayın",
9
12
  "errors-invalid-email": "Geçersiz E-posta",
10
13
  "errors-invalid-number": "Geçersiz Telefon Numarası",
11
14
  "errors-invalid-number-email": "Geçersiz E-posta veya Telefon Numarası",
@@ -13,8 +16,6 @@ var modal = {
13
16
  "external.all-wallets": "Tüm cüzdanlar",
14
17
  "external.back": "Geri",
15
18
  "external.connect": "Cüzdanla devam et",
16
- "external.search-text": "Cüzdanınızı görmüyor musunuz?",
17
- "external.search-subtext": "Bunun yerine aramayı deneyin",
18
19
  "external.connect-wallet": "Cüzdanı Bağla",
19
20
  "external.continue": "Harici cüzdanla devam et",
20
21
  "external.continue-custom": "{{wallet}} ile devam et",
@@ -25,19 +26,26 @@ var modal = {
25
26
  "external.install-mobile-app": "{{os}} uygulamasını yükle",
26
27
  "external.installed": "Yüklendi",
27
28
  "external.no-wallets-found": "Cüzdan bulunamadı",
29
+ "external.search-subtext": "Bunun yerine aramayı deneyin",
30
+ "external.search-text": "Cüzdanınızı görmüyor musunuz?",
28
31
  "external.search-wallet": "{{count}} cüzdan ara...",
29
32
  "external.select-chain": "Zincir seç",
30
33
  "external.select-chain-description": "Bu {{wallet}} cüzdan birden fazla zincir destekler. İstediğiniz zinciri seçin",
31
34
  "external.title": "Harici Cüzdan",
32
35
  "external.walletconnect-connect": "Bağla",
33
- "external.walletconnect-copy": "WalletConnect destekli bir cüzdanla tarayın veya panonuza kopyalamak için QR kodunu tıklayın.",
36
+ "external.walletconnect-copy": "WalletConnect destekli bir cüzdanla QR kodu tarayın veya bağlantıyı kopyalayın",
34
37
  "external.walletconnect-subtitle": "QR kodunu WalletConnect uyumlu bir cüzdanla tarayın",
38
+ "footer.and": "ve",
39
+ "footer.by-signing-in": "Giriş yapmak, bizimle ilgili şartları kabul ettiğiniz anlamına gelir.",
35
40
  "footer.message": "Öz-yönetimli giriş yapan:",
36
41
  "footer.message-new": "Kendi kendine velayet",
37
42
  "footer.policy": "Gizlilik Politikası",
43
+ "footer.privacy-policy": "Gizlilik Politikası",
38
44
  "footer.terms": "Kullanım Şartları",
45
+ "footer.terms-of-service": "Kullanım Şartları",
39
46
  "footer.terms-service": "Hizmet Şartları",
40
47
  "footer.version": "Versiyon",
48
+ getWallet: "Cüzdanı al",
41
49
  "header-subtitle": "Devam etmek için seçeneklerden birini işaretle",
42
50
  "header-subtitle-name": "Tek tıklama ile {{appName}} cüzdanınız",
43
51
  "header-subtitle-new": "Tek tıklama ile blockchain cüzdanınız",
@@ -50,6 +58,12 @@ var modal = {
50
58
  "network.proceed": "Devam",
51
59
  "network.switch-request": "Bu site ağ değiştirmeyi talep ediyor",
52
60
  "network.to": "Nereye",
61
+ "otp.email-subtext": "6 haneli doğrulama kodunu giriniz",
62
+ "otp.email-subtext-example": "{{email}} adresine gönderildi",
63
+ "otp.email-title": "Email Doğrulama",
64
+ "otp.mobile-subtext": "OTP Doğrulama",
65
+ "otp.mobile-title": "OTP Doğrulama",
66
+ "otp.success": "Hesabınıza bağlandınız!",
53
67
  "passkey.add": "Passkey ekle",
54
68
  "passkey.haveExisting": "Mevcut bir passkey'ınız mı var?",
55
69
  "passkey.learn-more": "Daha fazla bilgi edin",
@@ -57,10 +71,13 @@ var modal = {
57
71
  "passkey.register-desc": "passkeys ile kimliğinizi yüzünüz, parmak iziniz veya güvenlik anahtarlarınız aracılığıyla doğrulayabilirsiniz.",
58
72
  "passkey.register-title": "Passkey'ı kaydedin",
59
73
  "passkey.use": "Bir passkey'im var",
74
+ "passwordless.title": "{{title}} ile devam et",
60
75
  "popup.phone-body": "Ülke kodunuz otomatik olarak algılanacaktır, ancak farklı bir ülkeden bir telefon numarası kullanıyorsanız, doğru ülke kodunu manuel olarak girmeniz gerekir.",
61
76
  "popup.phone-header": "Telefon numarası ve ülke kodu",
62
77
  "post-loading.connected": "Hesabınızla bağlandınız",
63
78
  "post-loading.something-wrong": "Bir şeyler ters gitti!",
79
+ resendCode: "Kodu tekrar gönder",
80
+ resendTimer: " {{timer}} saniye sonra tekrar gönder",
64
81
  "social.continue": "Devam et: ",
65
82
  "social.continueCustom": "{{adapter}} ile devam et",
66
83
  "social.email": "E-posta",
@@ -68,9 +85,10 @@ var modal = {
68
85
  "social.email-new": "isim@ornek.com",
69
86
  "social.passwordless-cta": "Devam et",
70
87
  "social.passwordless-login": "Giriş yapmak",
71
- "social.passwordless-title": "E-posta veya Telefon",
88
+ "social.passwordless-title": "E-posta/Telefon",
72
89
  "social.phone": "Telefon",
73
90
  "social.policy": "Sosyal medya girişlerinizle ilgili hiçbir veriyi saklamıyoruz.",
91
+ "social.sign-in": "Giriş yap",
74
92
  "social.sms": "Mobil Telefon",
75
93
  "social.sms-continue": "Telefon ile devam et",
76
94
  "social.sms-invalid-number": "Geçersiz telefon numarası",
@@ -78,39 +96,22 @@ var modal = {
78
96
  "social.view-less": "Daha az görüntüle",
79
97
  "social.view-less-socials": "Daha az socials görüntüle",
80
98
  "social.view-more": "Daha fazla görüntüle",
81
- "social.view-more-socials": "Daha fazlasını görüntüle socials",
82
- "social.sign-in": "Giriş yap",
83
- "footer.by-signing-in": "Giriş yapmak, bizimle ilgili şartları kabul ettiğiniz anlamına gelir.",
84
- "footer.terms-of-service": "Kullanım Şartları",
85
- "footer.and": "ve",
86
- "footer.privacy-policy": "Gizlilik Politikası",
87
- "connect-wallet.more-wallets": "Daha fazla cüzdan",
88
- "otp.success": "Hesabınıza bağlandınız!",
89
- "otp.mobile-title": "OTP Doğrulama",
90
- "otp.mobile-subtext": "OTP Doğrulama",
91
- "otp.email-title": "Email Doğrulama",
92
- "otp.email-subtext": "6 haneli doğrulama kodunu giriniz",
93
- "otp.email-subtext-example": "{{email}} adresine gönderildi",
94
- "passwordless.title": "{{title}} ile devam et",
95
- resendCode: "Kodu tekrar gönder",
96
- resendTimer: " {{timer}} saniye sonra tekrar gönder",
97
- connectYourWallet: "Cüzdanınızı bağlayın",
98
- allChains: "Tüm zincirler"
99
+ "social.view-more-socials": "Daha fazlasını görüntüle socials"
99
100
  };
100
101
  var passwordless = {
101
- "error-invalid-params": "Eksik ya da hatalı parametreler var.",
102
- "error-sending-sms-failed": "SMS gönderilirken bir hata oldu. Lütfen tekrar deneyin.",
103
- "error-no-mail-generated": "E-posta oluşturulmadı. Lütfen önce şifresiz akışı başlatın.",
104
102
  "error-invalid-link": "Hatalı ya da süresi geçmiş doğrulama linki",
105
- "error-new-link-generated-heading": "Yeni doğrulama linki oluşturuldu.",
103
+ "error-invalid-origin": "Bir şeyler ters gitti, hata kodu: E002",
106
104
  "error-invalid-otp": "Hatalı OTP, lütfen tekrar deneyin.",
107
- "error-otp-expired": "OTP'nin süresi geçti.",
108
- "error-no-sms-generated": "OTP oluşturulmadı. Lütfen önce şifresiz akışı başlatın.",
105
+ "error-invalid-params": "Eksik ya da hatalı parametreler var.",
109
106
  "error-max-retry-limit-reached": "Hatalı deneme limitine ulaştınız. Doğrulamayı tamamlamak için lütfen akışı baştan başlatın.",
110
- "error-recaptcha-verification-failed": "Captcha doğrulama hatası. Lütfen tekrar deneyin.",
107
+ "error-new-link-generated-heading": "Yeni doğrulama linki oluşturuldu.",
108
+ "error-no-mail-generated": "E-posta oluşturulmadı. Lütfen önce şifresiz akışı başlatın.",
109
+ "error-no-sms-generated": "OTP oluşturulmadı. Lütfen önce şifresiz akışı başlatın.",
110
+ "error-otp-expired": "OTP'nin süresi geçti.",
111
111
  "error-plan-limit-reached": "E411. Sınır aşıldı",
112
- "something-wrong-error": "Bir şeyler ters gitti",
113
- "error-invalid-origin": "Bir şeyler ters gitti, hata kodu: E002"
112
+ "error-recaptcha-verification-failed": "Captcha doğrulama hatası. Lütfen tekrar deneyin.",
113
+ "error-sending-sms-failed": "SMS gönderilirken bir hata oldu. Lütfen tekrar deneyin.",
114
+ "something-wrong-error": "Bir şeyler ters gitti"
114
115
  };
115
116
  var turkish = {
116
117
  modal: modal,
@@ -116,13 +116,14 @@ class LoginModal {
116
116
  });
117
117
  }
118
118
  return new Promise(resolve => {
119
- var _this$uiConfig;
119
+ var _this$uiConfig, _this$uiConfig$theme, _this$uiConfig2;
120
120
  this.stateEmitter.once("MOUNTED", () => {
121
121
  noModal.log.info("rendered");
122
122
  this.setState({
123
123
  status: interfaces.MODAL_STATUS.INITIALIZED,
124
124
  web3authClientId: this.uiConfig.web3authClientId,
125
- web3authNetwork: this.uiConfig.web3authNetwork
125
+ web3authNetwork: this.uiConfig.web3authNetwork,
126
+ authBuildEnv: this.uiConfig.authBuildEnv
126
127
  });
127
128
  return resolve();
128
129
  });
@@ -155,7 +156,8 @@ class LoginModal {
155
156
  uiConfig: this.uiConfig
156
157
  })
157
158
  }));
158
- if ((_this$uiConfig = this.uiConfig) !== null && _this$uiConfig !== void 0 && _this$uiConfig.theme) {
159
+ const isDefaultColors = ((_this$uiConfig = this.uiConfig) === null || _this$uiConfig === void 0 || (_this$uiConfig = _this$uiConfig.theme) === null || _this$uiConfig === void 0 ? void 0 : _this$uiConfig.primary) === constants.DEFAULT_PRIMARY_COLOR && ((_this$uiConfig$theme = this.uiConfig.theme) === null || _this$uiConfig$theme === void 0 ? void 0 : _this$uiConfig$theme.onPrimary) === constants.DEFAULT_ON_PRIMARY_COLOR;
160
+ if ((_this$uiConfig2 = this.uiConfig) !== null && _this$uiConfig2 !== void 0 && _this$uiConfig2.theme && !isDefaultColors) {
159
161
  const rootElement = document.getElementById("w3a-parent-container");
160
162
  auth.applyWhiteLabelTheme(rootElement, this.uiConfig.theme);
161
163
  }
@@ -70,7 +70,7 @@ const Web3AuthProvider = vue.defineComponent({
70
70
  if (!web3Auth.value) throw noModal.WalletInitializationError.notReady();
71
71
  return web3Auth.value.switchChain(chainParams);
72
72
  };
73
- vue.watch(() => props.config, newConfig => {
73
+ vue.watch(() => props.config, (newConfig, _, onInvalidate) => {
74
74
  const resetHookState = () => {
75
75
  provider.value = null;
76
76
  userInfo.value = null;
@@ -78,6 +78,11 @@ const Web3AuthProvider = vue.defineComponent({
78
78
  isConnected.value = false;
79
79
  status.value = null;
80
80
  };
81
+ onInvalidate(() => {
82
+ if (web3Auth.value) {
83
+ web3Auth.value.cleanup();
84
+ }
85
+ });
81
86
  resetHookState();
82
87
  const {
83
88
  web3AuthOptions
@@ -87,12 +92,19 @@ const Web3AuthProvider = vue.defineComponent({
87
92
  }, {
88
93
  immediate: true
89
94
  });
90
- vue.watch(web3Auth, async newWeb3Auth => {
95
+ vue.watch(web3Auth, async (newWeb3Auth, _, onInvalidate) => {
96
+ const controller = new AbortController();
97
+ // Invalidate the controller here before calling any async methods.
98
+ onInvalidate(() => {
99
+ controller.abort();
100
+ });
91
101
  if (newWeb3Auth) {
92
102
  try {
93
103
  initError.value = null;
94
104
  isInitializing.value = true;
95
- await newWeb3Auth.initModal();
105
+ await newWeb3Auth.initModal({
106
+ signal: controller.signal
107
+ });
96
108
  } catch (error) {
97
109
  initError.value = error;
98
110
  } finally {
@@ -1,3 +1,4 @@
1
1
  import { ConnectorsModalConfig } from "./interface";
2
+ export declare const version: string;
2
3
  export declare const defaultConnectorsModalConfig: ConnectorsModalConfig;
3
4
  export declare const walletRegistryUrl = "https://assets.web3auth.io/v1/wallet-registry.json";
@@ -7,6 +7,8 @@ export interface ConnectorsModalConfig {
7
7
  hideWalletDiscovery?: boolean;
8
8
  }
9
9
  export interface IWeb3AuthModal extends IWeb3Auth {
10
- initModal(): Promise<void>;
10
+ initModal(options?: {
11
+ signal?: AbortSignal;
12
+ }): Promise<void>;
11
13
  connect(): Promise<IProvider | null>;
12
14
  }
@@ -16,10 +16,13 @@ export declare class Web3Auth extends Web3AuthNoModal implements IWeb3AuthModal
16
16
  readonly options: Web3AuthOptions;
17
17
  private modalConfig;
18
18
  constructor(options: Web3AuthOptions);
19
- initModal(): Promise<void>;
19
+ initModal(options?: {
20
+ signal?: AbortSignal;
21
+ }): Promise<void>;
20
22
  connect(): Promise<IProvider | null>;
21
23
  private filterWalletRegistry;
22
24
  private getProjectAndWalletConfig;
25
+ private initUIConfig;
23
26
  private initConnectors;
24
27
  private filterConnectors;
25
28
  private checkConnectorAvailability;
@@ -0,0 +1,6 @@
1
+ import { Context, PropsWithChildren } from "react";
2
+ import { IWalletServicesContext, IWeb3AuthInnerContext } from "../interfaces";
3
+ export declare const WalletServicesContext: Context<IWalletServicesContext>;
4
+ export declare function WalletServicesContextProvider({ children, context }: PropsWithChildren<{
5
+ context: Context<IWeb3AuthInnerContext>;
6
+ }>): import("react").FunctionComponentElement<import("react").ProviderProps<IWalletServicesContext>>;
@@ -1 +1,13 @@
1
- export { useWeb3Auth } from "./useWeb3Auth";
1
+ export * from "./useCheckout";
2
+ export * from "./useEnableMFA";
3
+ export * from "./useIdentityToken";
4
+ export * from "./useManageMFA";
5
+ export * from "./useSwap";
6
+ export * from "./useSwitchChain";
7
+ export * from "./useWalletConnectScanner";
8
+ export * from "./useWalletServicesPlugin";
9
+ export * from "./useWalletUI";
10
+ export * from "./useWeb3Auth";
11
+ export * from "./useWeb3AuthConnect";
12
+ export * from "./useWeb3AuthDisconnect";
13
+ export * from "./useWeb3AuthUser";
@@ -0,0 +1,8 @@
1
+ import { BaseEmbedControllerState } from "@toruslabs/base-controllers";
2
+ import { Web3AuthError } from "@web3auth/no-modal";
3
+ export interface IUseCheckout {
4
+ loading: boolean;
5
+ error: Web3AuthError | null;
6
+ showCheckout: (showCheckoutParams?: BaseEmbedControllerState["showCheckout"]) => Promise<void>;
7
+ }
8
+ export declare const useCheckout: () => IUseCheckout;
@@ -0,0 +1,7 @@
1
+ import { Web3AuthError } from "@web3auth/no-modal";
2
+ export interface IUseEnableMFA {
3
+ loading: boolean;
4
+ error: Web3AuthError | null;
5
+ enableMFA<T>(params?: T): Promise<void>;
6
+ }
7
+ export declare const useEnableMFA: () => IUseEnableMFA;
@@ -0,0 +1,13 @@
1
+ import { Web3AuthError } from "@web3auth/no-modal";
2
+ export interface IUseIdentityToken {
3
+ loading: boolean;
4
+ error: Web3AuthError | null;
5
+ token: string | null;
6
+ authenticateUser: () => Promise<string | null>;
7
+ }
8
+ export declare const useIdentityToken: () => {
9
+ loading: boolean;
10
+ error: Web3AuthError;
11
+ token: string;
12
+ authenticateUser: () => Promise<string>;
13
+ };
@@ -0,0 +1,7 @@
1
+ import { Web3AuthError } from "@web3auth/no-modal";
2
+ export interface IUseManageMFA {
3
+ loading: boolean;
4
+ error: Web3AuthError | null;
5
+ manageMFA<T>(params?: T): Promise<void>;
6
+ }
7
+ export declare const useManageMFA: () => IUseManageMFA;
@@ -0,0 +1,8 @@
1
+ import { BaseEmbedControllerState } from "@toruslabs/base-controllers";
2
+ import { Web3AuthError } from "@web3auth/no-modal";
3
+ export interface IUseSwap {
4
+ loading: boolean;
5
+ error: Web3AuthError | null;
6
+ showSwap: (showSwapParams?: BaseEmbedControllerState["showSwap"]) => Promise<void>;
7
+ }
8
+ export declare const useSwap: () => IUseSwap;
@@ -0,0 +1,7 @@
1
+ import { Web3AuthError } from "@web3auth/no-modal";
2
+ export interface IUseSwitchChain {
3
+ loading: boolean;
4
+ error: Web3AuthError | null;
5
+ switchChain: (chainId: string) => Promise<void>;
6
+ }
7
+ export declare const useSwitchChain: () => IUseSwitchChain;
@@ -0,0 +1,8 @@
1
+ import { BaseEmbedControllerState } from "@toruslabs/base-controllers";
2
+ import { Web3AuthError } from "@web3auth/no-modal";
3
+ export interface IUseWalletConnectScanner {
4
+ loading: boolean;
5
+ error: Web3AuthError | null;
6
+ showWalletConnectScanner: (showWalletConnectScannerParams?: BaseEmbedControllerState["showWalletConnect"]) => Promise<void>;
7
+ }
8
+ export declare const useWalletConnectScanner: () => IUseWalletConnectScanner;
@@ -0,0 +1,2 @@
1
+ import { IWalletServicesContext } from "../interfaces";
2
+ export declare const useWalletServicesPlugin: () => IWalletServicesContext;
@@ -0,0 +1,8 @@
1
+ import { BaseEmbedControllerState } from "@toruslabs/base-controllers";
2
+ import { Web3AuthError } from "@web3auth/no-modal";
3
+ export interface IUseWalletUI {
4
+ loading: boolean;
5
+ error: Web3AuthError | null;
6
+ showWalletUI: (showWalletUiParams?: BaseEmbedControllerState["showWalletUi"]) => Promise<void>;
7
+ }
8
+ export declare const useWalletUI: () => IUseWalletUI;
@@ -1,2 +1,3 @@
1
1
  import { IWeb3AuthInnerContext } from "../interfaces";
2
- export declare const useWeb3Auth: () => IWeb3AuthInnerContext;
2
+ export type IUseWeb3Auth = Omit<IWeb3AuthInnerContext, "isMFAEnabled" | "setIsMFAEnabled">;
3
+ export declare const useWeb3Auth: () => IUseWeb3Auth;
@@ -0,0 +1,9 @@
1
+ import type { IProvider, WALLET_CONNECTOR_TYPE, Web3AuthError } from "@web3auth/no-modal";
2
+ export interface IUseWeb3AuthConnect {
3
+ isConnected: boolean;
4
+ loading: boolean;
5
+ error: Web3AuthError | null;
6
+ connectorName: WALLET_CONNECTOR_TYPE | null;
7
+ connect(): Promise<IProvider | null>;
8
+ }
9
+ export declare const useWeb3AuthConnect: () => IUseWeb3AuthConnect;
@@ -0,0 +1,9 @@
1
+ import { Web3AuthError } from "@web3auth/no-modal";
2
+ export interface IUseWeb3AuthDisconnect {
3
+ loading: boolean;
4
+ error: Web3AuthError | null;
5
+ disconnect(options?: {
6
+ cleanup: boolean;
7
+ }): Promise<void>;
8
+ }
9
+ export declare const useWeb3AuthDisconnect: () => IUseWeb3AuthDisconnect;
@@ -0,0 +1,2 @@
1
+ import { IWeb3AuthInnerContext } from "../interfaces";
2
+ export declare const useWeb3AuthInner: () => IWeb3AuthInnerContext;
@@ -0,0 +1,9 @@
1
+ import { type UserInfo, Web3AuthError } from "@web3auth/no-modal";
2
+ export interface IUseWeb3AuthUser {
3
+ loading: boolean;
4
+ error: Web3AuthError | null;
5
+ userInfo: Partial<UserInfo> | null;
6
+ isMFAEnabled: boolean;
7
+ getUserInfo: () => Promise<Partial<UserInfo> | null>;
8
+ }
9
+ export declare const useWeb3AuthUser: () => IUseWeb3AuthUser;
@@ -1,4 +1,3 @@
1
- export * from "./context";
2
1
  export * from "./hooks";
3
2
  export * from "./interfaces";
4
3
  export * from "./Web3AuthProvider";
@@ -1,4 +1,4 @@
1
- import type { IBaseWeb3AuthHookContext, IProvider } from "@web3auth/no-modal";
1
+ import type { IBaseWeb3AuthHookContext, WalletServicesPluginType } from "@web3auth/no-modal";
2
2
  import type { Web3Auth, Web3AuthOptions } from "../modalManager";
3
3
  export type Web3AuthContextConfig = {
4
4
  web3AuthOptions: Web3AuthOptions;
@@ -8,6 +8,10 @@ export interface Web3AuthProviderProps {
8
8
  }
9
9
  export interface IWeb3AuthInnerContext extends IBaseWeb3AuthHookContext {
10
10
  web3Auth: Web3Auth | null;
11
- connect(): Promise<IProvider>;
11
+ }
12
+ export interface IWalletServicesContext {
13
+ ready: boolean;
14
+ connecting: boolean;
15
+ plugin: WalletServicesPluginType | null;
12
16
  }
13
17
  export type IWeb3AuthContext = IWeb3AuthInnerContext;
@@ -0,0 +1 @@
1
+ export * from "./provider";
@@ -0,0 +1,4 @@
1
+ import type { CreateConfigParameters, WagmiProviderProps as WagmiProviderPropsBase } from "wagmi";
2
+ export type WagmiProviderProps = Omit<WagmiProviderPropsBase, "config"> & {
3
+ config?: CreateConfigParameters;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { WagmiProviderProps as WagmiProviderPropsBase } from "wagmi";
3
+ import { WagmiProviderProps } from "./interface";
4
+ export declare function WagmiProvider({ children, ...props }: PropsWithChildren<WagmiProviderProps>): import("react").FunctionComponentElement<PropsWithChildren<WagmiProviderPropsBase>>;
@@ -1,8 +1,9 @@
1
- import { WEB3AUTH_NETWORK_TYPE } from "@web3auth/no-modal";
1
+ import { BUILD_ENV_TYPE, WEB3AUTH_NETWORK_TYPE } from "@web3auth/auth";
2
2
  import type { ButtonRadiusType, ExternalButton, ExternalWalletEventType, LogoAlignmentType, SocialLoginEventType, SocialLoginsConfig } from "../../interfaces";
3
3
  export interface LoginProps {
4
4
  web3authClientId: string;
5
5
  web3authNetwork: WEB3AUTH_NETWORK_TYPE;
6
+ authBuildEnv: BUILD_ENV_TYPE;
6
7
  isModalVisible: boolean;
7
8
  isDark: boolean;
8
9
  appLogo?: string;
@@ -21,7 +22,6 @@ export interface LoginProps {
21
22
  totalExternalWallets: number;
22
23
  logoAlignment?: LogoAlignmentType;
23
24
  buttonRadius?: ButtonRadiusType;
24
- enableMainSocialLoginButton?: boolean;
25
25
  handleExternalWalletBtnClick?: (flag: boolean) => void;
26
26
  handleSocialLoginClick: (params: SocialLoginEventType) => void;
27
27
  handleExternalWalletClick: (params: ExternalWalletEventType) => void;
@@ -1,7 +1,7 @@
1
1
  import { AUTH_CONNECTION_TYPE, BUILD_ENV_TYPE } from "@web3auth/auth";
2
2
  export declare function capitalizeFirstLetter(string: string): string;
3
3
  export declare const restrictedLoginMethods: Set<AUTH_CONNECTION_TYPE>;
4
- export declare const AUTH_PROVIDERS: ("google" | "telegram" | "facebook" | "reddit" | "discord" | "twitch" | "apple" | "github" | "linkedin" | "twitter" | "weibo" | "line" | "email_passwordless" | "sms_passwordless" | "kakao" | "wechat" | "farcaster" | "custom" | "passkeys" | "authenticator")[];
4
+ export declare const AUTH_PROVIDERS: ("google" | "twitter" | "facebook" | "discord" | "farcaster" | "apple" | "github" | "reddit" | "line" | "kakao" | "linkedin" | "twitch" | "telegram" | "wechat" | "email_passwordless" | "sms_passwordless" | "custom" | "passkeys" | "authenticator")[];
5
5
  export declare const AUTH_PROVIDERS_NAMES: Record<AUTH_CONNECTION_TYPE, string>;
6
6
  export declare const PASSWORDLESS_BUILD_ENV_MAP: Record<BUILD_ENV_TYPE, string>;
7
7
  export declare const CAPTCHA_SITE_KEY = "d5f0c15c-eeda-4f9c-934a-d8e0348e83b2";
@@ -11,3 +11,5 @@ export declare const CONNECT_WALLET_PAGES: {
11
11
  export declare const DEFAULT_LOGO_LIGHT = "https://images.web3auth.io/web3auth-logo-w.svg";
12
12
  export declare const DEFAULT_LOGO_DARK = "https://images.web3auth.io/web3auth-logo-w-light.svg";
13
13
  export declare const WALLET_CONNECT_LOGO = "https://images.web3auth.io/login-wallet-connect.svg";
14
+ export declare const DEFAULT_PRIMARY_COLOR = "#0364FF";
15
+ export declare const DEFAULT_ON_PRIMARY_COLOR = "#FFFFFF";
@@ -1,8 +1,9 @@
1
1
  import { CodeInitiateRequestBodyParams, CodeVerifyRequestBodyParams, IStartResponse, IVerifyResponse, PasswordlessHandlerParams, WhiteLabelParams } from "../interfaces";
2
2
  export declare abstract class PasswordlessHandler {
3
- readonly authBaseApiUrl: string;
3
+ authBaseApiUrl: string;
4
4
  passwordlessParams: PasswordlessHandlerParams;
5
5
  trackingIdentifier?: string;
6
+ version: string;
6
7
  constructor(params: PasswordlessHandlerParams);
7
8
  get name(): string;
8
9
  get connection(): "email" | "sms";
@@ -13,7 +14,7 @@ export declare abstract class PasswordlessHandler {
13
14
  protected start(params: CodeInitiateRequestBodyParams): Promise<IStartResponse>;
14
15
  protected verify(params: CodeVerifyRequestBodyParams): Promise<IVerifyResponse>;
15
16
  private handleError;
16
- abstract sendVerificationCode(params?: {
17
+ abstract sendVerificationCode(params: {
17
18
  captchaToken: string;
18
19
  }): Promise<IStartResponse>;
19
20
  abstract verifyCode(code: string): Promise<IVerifyResponse>;
@@ -3,6 +3,8 @@ import { PasswordlessHandler } from "./AbstractHandler";
3
3
  export default class EmailPasswordlessHandler extends PasswordlessHandler {
4
4
  mailSent: boolean;
5
5
  constructor(params: PasswordlessHandlerParams);
6
- sendVerificationCode(): Promise<import("..").IStartResponse>;
6
+ sendVerificationCode({ captchaToken }: {
7
+ captchaToken?: string;
8
+ }): Promise<import("..").IStartResponse>;
7
9
  verifyCode(code: string): Promise<import("..").IVerifyResponse>;
8
10
  }
@@ -1,4 +1,4 @@
1
- import type { AUTH_CONNECTION_TYPE, EMAIL_FLOW_TYPE, ExtraLoginOptions, LANGUAGES, SafeEventEmitter, THEME_MODE_TYPE, WEB3AUTH_NETWORK_TYPE } from "@web3auth/auth";
1
+ import type { AUTH_CONNECTION_TYPE, BUILD_ENV_TYPE, EMAIL_FLOW_TYPE, ExtraLoginOptions, LANGUAGES, SafeEventEmitter, THEME_MODE_TYPE, WEB3AUTH_NETWORK_TYPE } from "@web3auth/auth";
2
2
  import { type AuthLoginParams, type BaseConnectorConfig, type ChainNamespaceType, type LoginMethodConfig, type LoginModalConfig, type UIConfig as CoreUIConfig, type WALLET_CONNECTOR_TYPE, type WalletRegistry, type WalletRegistryItem, type Web3AuthNoModalEvents } from "@web3auth/no-modal";
3
3
  export interface UIConfig extends CoreUIConfig, LoginModalConfig {
4
4
  /**
@@ -8,7 +8,7 @@ export interface UIConfig extends CoreUIConfig, LoginModalConfig {
8
8
  /**
9
9
  * order of how login methods are shown
10
10
  *
11
- * @defaultValue `["google", "facebook", "twitter", "reddit", "discord", "twitch", "apple", "line", "github", "kakao", "linkedin", "weibo", "wechat", "email_passwordless"]`
11
+ * @defaultValue `["google", "facebook", "twitter", "reddit", "discord", "twitch", "apple", "line", "github", "kakao", "linkedin", "wechat", "email_passwordless"]`
12
12
  */
13
13
  loginMethodsOrder?: string[];
14
14
  /**
@@ -46,6 +46,7 @@ export interface LoginModalProps extends UIConfig {
46
46
  walletRegistry: WalletRegistry;
47
47
  web3authClientId: string;
48
48
  web3authNetwork: WEB3AUTH_NETWORK_TYPE;
49
+ authBuildEnv: BUILD_ENV_TYPE;
49
50
  }
50
51
  export interface LoginModalCallbacks {
51
52
  onInitExternalWallets: (params: {
@@ -56,7 +57,7 @@ export interface LoginModalCallbacks {
56
57
  loginParams: ModalLoginParams;
57
58
  }) => Promise<void>;
58
59
  onExternalWalletLogin: (params: {
59
- connector: WALLET_CONNECTOR_TYPE;
60
+ connector: WALLET_CONNECTOR_TYPE | string;
60
61
  loginParams: {
61
62
  chainNamespace: ChainNamespaceType;
62
63
  };
@@ -96,13 +97,14 @@ export interface ModalState {
96
97
  currentPage?: string;
97
98
  web3authClientId: string;
98
99
  web3authNetwork: WEB3AUTH_NETWORK_TYPE;
100
+ authBuildEnv: BUILD_ENV_TYPE;
99
101
  }
100
102
  export type SocialLoginEventType = {
101
- connector: string;
103
+ connector: WALLET_CONNECTOR_TYPE;
102
104
  loginParams: ModalLoginParams;
103
105
  };
104
106
  export type ExternalWalletEventType = {
105
- connector: string;
107
+ connector: WALLET_CONNECTOR_TYPE | string;
106
108
  chainNamespace?: ChainNamespaceType;
107
109
  };
108
110
  export type StateEmitterEvents = {
@@ -140,13 +142,13 @@ export type rowType = {
140
142
  extraLoginOptions?: ExtraLoginOptions;
141
143
  };
142
144
  order: number;
143
- isMainOption: boolean;
144
145
  };
145
146
  export type PasswordlessHandlerParams = {
146
147
  authConnection: AUTH_CONNECTION_TYPE;
147
148
  web3authClientId: string;
148
149
  loginHint: string;
149
150
  network: string;
151
+ authBuildEnv?: BUILD_ENV_TYPE;
150
152
  uiConfig?: Omit<UIConfig, "connectorListener">;
151
153
  };
152
154
  export interface WhiteLabelParams {
@@ -1,16 +1,15 @@
1
1
  import { EVM_CONNECTORS } from '@web3auth/no-modal';
2
2
 
3
+ const version = "10.0.0-beta.4";
3
4
  const defaultConnectorsModalConfig = {
4
5
  hideWalletDiscovery: false,
5
6
  connectors: {
6
7
  [EVM_CONNECTORS.AUTH]: {
7
8
  label: "Auth",
8
- showOnModal: true,
9
- showOnMobile: true,
10
- showOnDesktop: true
9
+ showOnModal: true
11
10
  }
12
11
  }
13
12
  };
14
13
  const walletRegistryUrl = "https://assets.web3auth.io/v1/wallet-registry.json";
15
14
 
16
- export { defaultConnectorsModalConfig, walletRegistryUrl };
15
+ export { defaultConnectorsModalConfig, version, walletRegistryUrl };
@@ -1,3 +1,3 @@
1
- export { defaultConnectorsModalConfig, walletRegistryUrl } from './config.js';
1
+ export { defaultConnectorsModalConfig, version, walletRegistryUrl } from './config.js';
2
2
  export { Web3Auth } from './modalManager.js';
3
3
  export * from '@web3auth/no-modal';