@turnkey/react-wallet-kit 1.0.0 → 1.1.0

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 (178) hide show
  1. package/dist/_virtual/_rollupPluginBabelHelpers.mjs +95 -256
  2. package/dist/_virtual/_rollupPluginBabelHelpers.mjs.map +1 -1
  3. package/dist/components/auth/Action.js.map +1 -1
  4. package/dist/components/auth/Action.mjs +18 -18
  5. package/dist/components/auth/Action.mjs.map +1 -1
  6. package/dist/components/auth/Email.js.map +1 -1
  7. package/dist/components/auth/Email.mjs +13 -14
  8. package/dist/components/auth/Email.mjs.map +1 -1
  9. package/dist/components/auth/OAuth.js.map +1 -1
  10. package/dist/components/auth/OAuth.mjs.map +1 -1
  11. package/dist/components/auth/OTP.d.ts +2 -2
  12. package/dist/components/auth/OTP.d.ts.map +1 -1
  13. package/dist/components/auth/OTP.js +1 -1
  14. package/dist/components/auth/OTP.js.map +1 -1
  15. package/dist/components/auth/OTP.mjs +46 -48
  16. package/dist/components/auth/OTP.mjs.map +1 -1
  17. package/dist/components/auth/OrSeparator.js.map +1 -1
  18. package/dist/components/auth/OrSeparator.mjs.map +1 -1
  19. package/dist/components/auth/Passkey.js.map +1 -1
  20. package/dist/components/auth/Passkey.mjs.map +1 -1
  21. package/dist/components/auth/Phone.js.map +1 -1
  22. package/dist/components/auth/Phone.mjs +13 -14
  23. package/dist/components/auth/Phone.mjs.map +1 -1
  24. package/dist/components/auth/Wallet.d.ts +2 -2
  25. package/dist/components/auth/Wallet.d.ts.map +1 -1
  26. package/dist/components/auth/Wallet.js +89 -49
  27. package/dist/components/auth/Wallet.js.map +1 -1
  28. package/dist/components/auth/Wallet.mjs +154 -116
  29. package/dist/components/auth/Wallet.mjs.map +1 -1
  30. package/dist/components/auth/index.d.ts +4 -1
  31. package/dist/components/auth/index.d.ts.map +1 -1
  32. package/dist/components/auth/index.js +44 -7
  33. package/dist/components/auth/index.js.map +1 -1
  34. package/dist/components/auth/index.mjs +160 -138
  35. package/dist/components/auth/index.mjs.map +1 -1
  36. package/dist/components/design/Buttons.js.map +1 -1
  37. package/dist/components/design/Buttons.mjs.map +1 -1
  38. package/dist/components/design/Failure.js.map +1 -1
  39. package/dist/components/design/Failure.mjs.map +1 -1
  40. package/dist/components/design/Inputs.js.map +1 -1
  41. package/dist/components/design/Inputs.mjs.map +1 -1
  42. package/dist/components/design/Lottie/Dynamic.mjs +8 -11
  43. package/dist/components/design/Lottie/Dynamic.mjs.map +1 -1
  44. package/dist/components/design/Lottie/Wrapper.js.map +1 -1
  45. package/dist/components/design/Lottie/Wrapper.mjs +9 -10
  46. package/dist/components/design/Lottie/Wrapper.mjs.map +1 -1
  47. package/dist/components/design/Spinners.js.map +1 -1
  48. package/dist/components/design/Spinners.mjs.map +1 -1
  49. package/dist/components/design/Success.js.map +1 -1
  50. package/dist/components/design/Success.mjs.map +1 -1
  51. package/dist/components/design/Svg.js.map +1 -1
  52. package/dist/components/design/Svg.mjs.map +1 -1
  53. package/dist/components/export/Export.d.ts +3 -0
  54. package/dist/components/export/Export.d.ts.map +1 -1
  55. package/dist/components/export/Export.js +12 -4
  56. package/dist/components/export/Export.js.map +1 -1
  57. package/dist/components/export/Export.mjs +35 -29
  58. package/dist/components/export/Export.mjs.map +1 -1
  59. package/dist/components/export/ExportWarning.d.ts +2 -0
  60. package/dist/components/export/ExportWarning.d.ts.map +1 -1
  61. package/dist/components/export/ExportWarning.js +17 -9
  62. package/dist/components/export/ExportWarning.js.map +1 -1
  63. package/dist/components/export/ExportWarning.mjs +64 -63
  64. package/dist/components/export/ExportWarning.mjs.map +1 -1
  65. package/dist/components/import/Import.d.ts +3 -0
  66. package/dist/components/import/Import.d.ts.map +1 -1
  67. package/dist/components/import/Import.js +28 -15
  68. package/dist/components/import/Import.js.map +1 -1
  69. package/dist/components/import/Import.mjs +122 -112
  70. package/dist/components/import/Import.mjs.map +1 -1
  71. package/dist/components/sign/Message.d.ts +1 -0
  72. package/dist/components/sign/Message.d.ts.map +1 -1
  73. package/dist/components/sign/Message.js +4 -0
  74. package/dist/components/sign/Message.js.map +1 -1
  75. package/dist/components/sign/Message.mjs +24 -22
  76. package/dist/components/sign/Message.mjs.map +1 -1
  77. package/dist/components/user/ConnectWallet.d.ts +2 -0
  78. package/dist/components/user/ConnectWallet.d.ts.map +1 -1
  79. package/dist/components/user/ConnectWallet.js +41 -29
  80. package/dist/components/user/ConnectWallet.js.map +1 -1
  81. package/dist/components/user/ConnectWallet.mjs +48 -32
  82. package/dist/components/user/ConnectWallet.mjs.map +1 -1
  83. package/dist/components/user/RemoveEmail.d.ts +1 -0
  84. package/dist/components/user/RemoveEmail.d.ts.map +1 -1
  85. package/dist/components/user/RemoveEmail.js +7 -3
  86. package/dist/components/user/RemoveEmail.js.map +1 -1
  87. package/dist/components/user/RemoveEmail.mjs +27 -25
  88. package/dist/components/user/RemoveEmail.mjs.map +1 -1
  89. package/dist/components/user/RemoveOAuthProvider.d.ts +1 -0
  90. package/dist/components/user/RemoveOAuthProvider.d.ts.map +1 -1
  91. package/dist/components/user/RemoveOAuthProvider.js +7 -3
  92. package/dist/components/user/RemoveOAuthProvider.js.map +1 -1
  93. package/dist/components/user/RemoveOAuthProvider.mjs +27 -25
  94. package/dist/components/user/RemoveOAuthProvider.mjs.map +1 -1
  95. package/dist/components/user/RemovePasskey.d.ts +1 -0
  96. package/dist/components/user/RemovePasskey.d.ts.map +1 -1
  97. package/dist/components/user/RemovePasskey.js +6 -2
  98. package/dist/components/user/RemovePasskey.js.map +1 -1
  99. package/dist/components/user/RemovePasskey.mjs +26 -24
  100. package/dist/components/user/RemovePasskey.mjs.map +1 -1
  101. package/dist/components/user/RemovePhoneNumber.d.ts +1 -0
  102. package/dist/components/user/RemovePhoneNumber.d.ts.map +1 -1
  103. package/dist/components/user/RemovePhoneNumber.js +7 -3
  104. package/dist/components/user/RemovePhoneNumber.js.map +1 -1
  105. package/dist/components/user/RemovePhoneNumber.mjs +27 -25
  106. package/dist/components/user/RemovePhoneNumber.mjs.map +1 -1
  107. package/dist/components/user/UpdateEmail.d.ts +4 -0
  108. package/dist/components/user/UpdateEmail.d.ts.map +1 -1
  109. package/dist/components/user/UpdateEmail.js +13 -3
  110. package/dist/components/user/UpdateEmail.js.map +1 -1
  111. package/dist/components/user/UpdateEmail.mjs +46 -39
  112. package/dist/components/user/UpdateEmail.mjs.map +1 -1
  113. package/dist/components/user/UpdatePhoneNumber.d.ts +4 -0
  114. package/dist/components/user/UpdatePhoneNumber.d.ts.map +1 -1
  115. package/dist/components/user/UpdatePhoneNumber.js +13 -3
  116. package/dist/components/user/UpdatePhoneNumber.js.map +1 -1
  117. package/dist/components/user/UpdatePhoneNumber.mjs +46 -39
  118. package/dist/components/user/UpdatePhoneNumber.mjs.map +1 -1
  119. package/dist/components/user/UpdateUserName.d.ts +2 -0
  120. package/dist/components/user/UpdateUserName.d.ts.map +1 -1
  121. package/dist/components/user/UpdateUserName.js +4 -3
  122. package/dist/components/user/UpdateUserName.js.map +1 -1
  123. package/dist/components/user/UpdateUserName.mjs +25 -25
  124. package/dist/components/user/UpdateUserName.mjs.map +1 -1
  125. package/dist/index.d.ts +2 -1
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +16 -3
  128. package/dist/index.js.map +1 -1
  129. package/dist/index.mjs +2 -1
  130. package/dist/index.mjs.map +1 -1
  131. package/dist/providers/TurnkeyProvider.js.map +1 -1
  132. package/dist/providers/TurnkeyProvider.mjs.map +1 -1
  133. package/dist/providers/client/Hook.js.map +1 -1
  134. package/dist/providers/client/Hook.mjs.map +1 -1
  135. package/dist/providers/client/Provider.d.ts.map +1 -1
  136. package/dist/providers/client/Provider.js +630 -300
  137. package/dist/providers/client/Provider.js.map +1 -1
  138. package/dist/providers/client/Provider.mjs +2489 -2103
  139. package/dist/providers/client/Provider.mjs.map +1 -1
  140. package/dist/providers/client/Types.d.ts +100 -171
  141. package/dist/providers/client/Types.d.ts.map +1 -1
  142. package/dist/providers/client/Types.js.map +1 -1
  143. package/dist/providers/client/Types.mjs.map +1 -1
  144. package/dist/providers/index.d.ts +1 -0
  145. package/dist/providers/index.d.ts.map +1 -1
  146. package/dist/providers/modal/Hook.js.map +1 -1
  147. package/dist/providers/modal/Hook.mjs.map +1 -1
  148. package/dist/providers/modal/Provider.d.ts +3 -0
  149. package/dist/providers/modal/Provider.d.ts.map +1 -1
  150. package/dist/providers/modal/Provider.js +10 -1
  151. package/dist/providers/modal/Provider.js.map +1 -1
  152. package/dist/providers/modal/Provider.mjs +15 -1
  153. package/dist/providers/modal/Provider.mjs.map +1 -1
  154. package/dist/providers/modal/Root.d.ts.map +1 -1
  155. package/dist/providers/modal/Root.js +74 -2
  156. package/dist/providers/modal/Root.js.map +1 -1
  157. package/dist/providers/modal/Root.mjs +92 -15
  158. package/dist/providers/modal/Root.mjs.map +1 -1
  159. package/dist/providers/theme/Overrides.js.map +1 -1
  160. package/dist/providers/theme/Overrides.mjs.map +1 -1
  161. package/dist/styles.css +1 -1
  162. package/dist/typedoc-entry/index.d.ts +4 -0
  163. package/dist/typedoc-entry/index.d.ts.map +1 -0
  164. package/dist/types/base.d.ts +8 -1
  165. package/dist/types/base.d.ts.map +1 -1
  166. package/dist/types/base.js.map +1 -1
  167. package/dist/types/base.mjs.map +1 -1
  168. package/dist/types/method-types.d.ts +210 -0
  169. package/dist/types/method-types.d.ts.map +1 -0
  170. package/dist/utils/timers.js.map +1 -1
  171. package/dist/utils/timers.mjs.map +1 -1
  172. package/dist/utils/utils.d.ts +1 -1
  173. package/dist/utils/utils.d.ts.map +1 -1
  174. package/dist/utils/utils.js +15 -5
  175. package/dist/utils/utils.js.map +1 -1
  176. package/dist/utils/utils.mjs +92 -86
  177. package/dist/utils/utils.mjs.map +1 -1
  178. package/package.json +4 -4
@@ -1,9 +1,9 @@
1
- import { asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.mjs';
1
+ import { asyncToGenerator as _asyncToGenerator, regenerator as _regenerator, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.mjs';
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
4
  import { faDiscord, faXTwitter, faFacebook, faApple, faGoogle } from '@fortawesome/free-brands-svg-icons';
5
5
  import { OtpType } from '@turnkey/core';
6
- import { faFingerprint } from '@fortawesome/free-solid-svg-icons';
6
+ import { faEllipsisH, faFingerprint } from '@fortawesome/free-solid-svg-icons';
7
7
  import clsx from 'clsx';
8
8
  import { OAuthButton } from './OAuth.mjs';
9
9
  import { EmailInput } from './Email.mjs';
@@ -21,10 +21,14 @@ import { ClientState } from '../../types/base.mjs';
21
21
  import { isWalletConnect } from '../../utils/utils.mjs';
22
22
 
23
23
  function AuthComponent(_ref) {
24
- var sessionKey = _ref.sessionKey;
24
+ var sessionKey = _ref.sessionKey,
25
+ logo = _ref.logo,
26
+ logoClassName = _ref.logoClassName,
27
+ title = _ref.title;
25
28
  var _useTurnkey = useTurnkey(),
26
29
  config = _useTurnkey.config,
27
30
  clientState = _useTurnkey.clientState,
31
+ walletProviders = _useTurnkey.walletProviders,
28
32
  handleGoogleOauth = _useTurnkey.handleGoogleOauth,
29
33
  handleAppleOauth = _useTurnkey.handleAppleOauth,
30
34
  handleFacebookOauth = _useTurnkey.handleFacebookOauth,
@@ -33,12 +37,12 @@ function AuthComponent(_ref) {
33
37
  initOtp = _useTurnkey.initOtp,
34
38
  loginWithPasskey = _useTurnkey.loginWithPasskey,
35
39
  signUpWithPasskey = _useTurnkey.signUpWithPasskey,
36
- fetchWalletProviders = _useTurnkey.fetchWalletProviders,
37
40
  loginOrSignupWithWallet = _useTurnkey.loginOrSignupWithWallet,
38
41
  disconnectWalletAccount = _useTurnkey.disconnectWalletAccount;
39
42
  var _useModal = useModal(),
40
43
  pushPage = _useModal.pushPage,
41
- isMobile = _useModal.isMobile;
44
+ isMobile = _useModal.isMobile,
45
+ openSheet = _useModal.openSheet;
42
46
  if (!config || clientState === ClientState.Loading) {
43
47
  // Don't check ClientState.Error here. We already check in the modal root
44
48
  return jsx("div", {
@@ -57,82 +61,86 @@ function AuthComponent(_ref) {
57
61
  _ref2$oauthOrder = _ref2.oauthOrder,
58
62
  oauthOrder = _ref2$oauthOrder === void 0 ? [] : _ref2$oauthOrder;
59
63
  var handleEmailSubmit = /*#__PURE__*/function () {
60
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(email) {
61
- var otpId;
62
- return _regeneratorRuntime().wrap(function _callee$(_context) {
63
- while (1) switch (_context.prev = _context.next) {
64
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(email) {
65
+ var _config$auth, _config$auth2, otpId, _t;
66
+ return _regenerator().w(function (_context) {
67
+ while (1) switch (_context.p = _context.n) {
64
68
  case 0:
65
- _context.prev = 0;
66
- _context.next = 3;
69
+ _context.p = 0;
70
+ _context.n = 1;
67
71
  return initOtp({
68
72
  otpType: OtpType.Email,
69
73
  contact: email
70
74
  });
71
- case 3:
72
- otpId = _context.sent;
75
+ case 1:
76
+ otpId = _context.v;
73
77
  pushPage({
74
78
  key: "Verify OTP",
75
79
  content: jsx(OtpVerification, _objectSpread2({
76
80
  contact: email,
77
81
  otpId: otpId,
78
- otpType: OtpType.Email
82
+ otpType: OtpType.Email,
83
+ otpLength: ((_config$auth = config.auth) === null || _config$auth === void 0 ? void 0 : _config$auth.otpLength) !== undefined ? Number(config.auth.otpLength) : undefined,
84
+ alphanumeric: (_config$auth2 = config.auth) === null || _config$auth2 === void 0 ? void 0 : _config$auth2.otpAlphanumeric
79
85
  }, sessionKey && {
80
86
  sessionKey: sessionKey
81
87
  })),
82
88
  showTitle: false
83
89
  });
84
- _context.next = 10;
90
+ _context.n = 3;
85
91
  break;
86
- case 7:
87
- _context.prev = 7;
88
- _context.t0 = _context["catch"](0);
89
- throw new Error("Error initializing OTP: ".concat(_context.t0));
90
- case 10:
91
- case "end":
92
- return _context.stop();
92
+ case 2:
93
+ _context.p = 2;
94
+ _t = _context.v;
95
+ throw new Error("Error initializing OTP: ".concat(_t));
96
+ case 3:
97
+ return _context.a(2);
93
98
  }
94
- }, _callee, null, [[0, 7]]);
99
+ }, _callee, null, [[0, 2]]);
95
100
  }));
96
101
  return function handleEmailSubmit(_x) {
97
102
  return _ref3.apply(this, arguments);
98
103
  };
99
104
  }();
100
105
  var handlePhoneSubmit = /*#__PURE__*/function () {
101
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(phone, formattedPhone) {
102
- var otpId;
103
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
104
- while (1) switch (_context2.prev = _context2.next) {
106
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(phone, formattedPhone) {
107
+ var _config$auth3, _config$auth4, otpId, _t2;
108
+ return _regenerator().w(function (_context2) {
109
+ while (1) switch (_context2.p = _context2.n) {
105
110
  case 0:
106
- _context2.prev = 0;
107
- _context2.next = 3;
111
+ _context2.p = 0;
112
+ _context2.n = 1;
108
113
  return initOtp({
109
114
  otpType: OtpType.Sms,
110
115
  contact: phone
111
116
  });
112
- case 3:
113
- otpId = _context2.sent;
117
+ case 1:
118
+ otpId = _context2.v;
114
119
  pushPage({
115
120
  key: "Verify OTP",
116
- content: jsx(OtpVerification, {
121
+ content: jsx(OtpVerification, _objectSpread2({
117
122
  contact: phone,
118
123
  // Pass in the formatted phone number seperately. In the case that some weird formatting occurs, we don't want to send it into the initOtp request
119
124
  formattedContact: formattedPhone,
120
125
  otpId: otpId,
121
- otpType: OtpType.Sms
122
- }),
126
+ otpType: OtpType.Sms,
127
+ otpLength: ((_config$auth3 = config.auth) === null || _config$auth3 === void 0 ? void 0 : _config$auth3.otpLength) !== undefined ? Number(config.auth.otpLength) : undefined,
128
+ alphanumeric: (_config$auth4 = config.auth) === null || _config$auth4 === void 0 ? void 0 : _config$auth4.otpAlphanumeric
129
+ }, sessionKey && {
130
+ sessionKey: sessionKey
131
+ })),
123
132
  showTitle: false
124
133
  });
125
- _context2.next = 10;
134
+ _context2.n = 3;
126
135
  break;
127
- case 7:
128
- _context2.prev = 7;
129
- _context2.t0 = _context2["catch"](0);
130
- throw new Error("Error initializing OTP: ".concat(_context2.t0));
131
- case 10:
132
- case "end":
133
- return _context2.stop();
136
+ case 2:
137
+ _context2.p = 2;
138
+ _t2 = _context2.v;
139
+ throw new Error("Error initializing OTP: ".concat(_t2));
140
+ case 3:
141
+ return _context2.a(2);
134
142
  }
135
- }, _callee2, null, [[0, 7]]);
143
+ }, _callee2, null, [[0, 2]]);
136
144
  }));
137
145
  return function handlePhoneSubmit(_x2, _x3) {
138
146
  return _ref4.apply(this, arguments);
@@ -144,17 +152,16 @@ function AuthComponent(_ref) {
144
152
  content: jsx(ActionPage, {
145
153
  title: "Authenticating with passkey...",
146
154
  action: function () {
147
- var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
148
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
149
- while (1) switch (_context3.prev = _context3.next) {
155
+ var _action = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
156
+ return _regenerator().w(function (_context3) {
157
+ while (1) switch (_context3.n) {
150
158
  case 0:
151
- _context3.next = 2;
159
+ _context3.n = 1;
152
160
  return loginWithPasskey(_objectSpread2({}, sessionKey && {
153
161
  sessionKey: sessionKey
154
162
  }));
155
- case 2:
156
- case "end":
157
- return _context3.stop();
163
+ case 1:
164
+ return _context3.a(2);
158
165
  }
159
166
  }, _callee3);
160
167
  }));
@@ -177,17 +184,16 @@ function AuthComponent(_ref) {
177
184
  content: jsx(ActionPage, {
178
185
  title: "Creating account with passkey...",
179
186
  action: function () {
180
- var _action2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
181
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
182
- while (1) switch (_context4.prev = _context4.next) {
187
+ var _action2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
188
+ return _regenerator().w(function (_context4) {
189
+ while (1) switch (_context4.n) {
183
190
  case 0:
184
- _context4.next = 2;
191
+ _context4.n = 1;
185
192
  return signUpWithPasskey(_objectSpread2({}, sessionKey && {
186
193
  sessionKey: sessionKey
187
194
  }));
188
- case 2:
189
- case "end":
190
- return _context4.stop();
195
+ case 1:
196
+ return _context4.a(2);
191
197
  }
192
198
  }, _callee4);
193
199
  }));
@@ -205,9 +211,9 @@ function AuthComponent(_ref) {
205
211
  });
206
212
  };
207
213
  var handleGoogle = /*#__PURE__*/function () {
208
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
209
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
210
- while (1) switch (_context5.prev = _context5.next) {
214
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
215
+ return _regenerator().w(function (_context5) {
216
+ while (1) switch (_context5.n) {
211
217
  case 0:
212
218
  pushPage({
213
219
  key: "Google OAuth",
@@ -230,8 +236,7 @@ function AuthComponent(_ref) {
230
236
  showTitle: false
231
237
  });
232
238
  case 1:
233
- case "end":
234
- return _context5.stop();
239
+ return _context5.a(2);
235
240
  }
236
241
  }, _callee5);
237
242
  }));
@@ -240,9 +245,9 @@ function AuthComponent(_ref) {
240
245
  };
241
246
  }();
242
247
  var handleApple = /*#__PURE__*/function () {
243
- var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
244
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
245
- while (1) switch (_context6.prev = _context6.next) {
248
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
249
+ return _regenerator().w(function (_context6) {
250
+ while (1) switch (_context6.n) {
246
251
  case 0:
247
252
  pushPage({
248
253
  key: "Apple OAuth",
@@ -265,8 +270,7 @@ function AuthComponent(_ref) {
265
270
  showTitle: false
266
271
  });
267
272
  case 1:
268
- case "end":
269
- return _context6.stop();
273
+ return _context6.a(2);
270
274
  }
271
275
  }, _callee6);
272
276
  }));
@@ -275,9 +279,9 @@ function AuthComponent(_ref) {
275
279
  };
276
280
  }();
277
281
  var handleFacebook = /*#__PURE__*/function () {
278
- var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
279
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
280
- while (1) switch (_context7.prev = _context7.next) {
282
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
283
+ return _regenerator().w(function (_context7) {
284
+ while (1) switch (_context7.n) {
281
285
  case 0:
282
286
  pushPage({
283
287
  key: "Facebook OAuth",
@@ -300,8 +304,7 @@ function AuthComponent(_ref) {
300
304
  showTitle: false
301
305
  });
302
306
  case 1:
303
- case "end":
304
- return _context7.stop();
307
+ return _context7.a(2);
305
308
  }
306
309
  }, _callee7);
307
310
  }));
@@ -310,9 +313,9 @@ function AuthComponent(_ref) {
310
313
  };
311
314
  }();
312
315
  var handleX = /*#__PURE__*/function () {
313
- var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
314
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
315
- while (1) switch (_context8.prev = _context8.next) {
316
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
317
+ return _regenerator().w(function (_context8) {
318
+ while (1) switch (_context8.n) {
316
319
  case 0:
317
320
  pushPage({
318
321
  key: "X OAuth",
@@ -335,8 +338,7 @@ function AuthComponent(_ref) {
335
338
  showTitle: false
336
339
  });
337
340
  case 1:
338
- case "end":
339
- return _context8.stop();
341
+ return _context8.a(2);
340
342
  }
341
343
  }, _callee8);
342
344
  }));
@@ -345,9 +347,9 @@ function AuthComponent(_ref) {
345
347
  };
346
348
  }();
347
349
  var handleDiscord = /*#__PURE__*/function () {
348
- var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
349
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
350
- while (1) switch (_context9.prev = _context9.next) {
350
+ var _ref9 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
351
+ return _regenerator().w(function (_context9) {
352
+ while (1) switch (_context9.n) {
351
353
  case 0:
352
354
  pushPage({
353
355
  key: "Discord OAuth",
@@ -370,8 +372,7 @@ function AuthComponent(_ref) {
370
372
  showTitle: false
371
373
  });
372
374
  case 1:
373
- case "end":
374
- return _context9.stop();
375
+ return _context9.a(2);
375
376
  }
376
377
  }, _callee9);
377
378
  }));
@@ -380,28 +381,27 @@ function AuthComponent(_ref) {
380
381
  };
381
382
  }();
382
383
  var handleWalletLoginOrSignup = /*#__PURE__*/function () {
383
- var _ref0 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(provider) {
384
- return _regeneratorRuntime().wrap(function _callee1$(_context1) {
385
- while (1) switch (_context1.prev = _context1.next) {
384
+ var _ref0 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(provider) {
385
+ return _regenerator().w(function (_context1) {
386
+ while (1) switch (_context1.n) {
386
387
  case 0:
387
388
  pushPage({
388
389
  key: "Wallet Login/Signup",
389
390
  content: jsx(ActionPage, {
390
391
  title: "Authenticating with ".concat(provider.info.name, "..."),
391
392
  action: function () {
392
- var _action3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0() {
393
- return _regeneratorRuntime().wrap(function _callee0$(_context0) {
394
- while (1) switch (_context0.prev = _context0.next) {
393
+ var _action3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
394
+ return _regenerator().w(function (_context0) {
395
+ while (1) switch (_context0.n) {
395
396
  case 0:
396
- _context0.next = 2;
397
+ _context0.n = 1;
397
398
  return loginOrSignupWithWallet(_objectSpread2({
398
399
  walletProvider: provider
399
400
  }, sessionKey && {
400
401
  sessionKey: sessionKey
401
402
  }));
402
- case 2:
403
- case "end":
404
- return _context0.stop();
403
+ case 1:
404
+ return _context0.a(2);
405
405
  }
406
406
  }, _callee0);
407
407
  }));
@@ -418,8 +418,7 @@ function AuthComponent(_ref) {
418
418
  showTitle: false
419
419
  });
420
420
  case 1:
421
- case "end":
422
- return _context1.stop();
421
+ return _context1.a(2);
423
422
  }
424
423
  }, _callee1);
425
424
  }));
@@ -428,12 +427,12 @@ function AuthComponent(_ref) {
428
427
  };
429
428
  }();
430
429
  var handleSelect = /*#__PURE__*/function () {
431
- var _ref1 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(provider) {
432
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
433
- while (1) switch (_context12.prev = _context12.next) {
430
+ var _ref1 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(provider) {
431
+ return _regenerator().w(function (_context12) {
432
+ while (1) switch (_context12.n) {
434
433
  case 0:
435
434
  if (!isWalletConnect(provider)) {
436
- _context12.next = 3;
435
+ _context12.n = 1;
437
436
  break;
438
437
  }
439
438
  // for WalletConnect we route to a dedicated screen
@@ -443,19 +442,18 @@ function AuthComponent(_ref) {
443
442
  content: jsx(WalletConnectScreen, {
444
443
  provider: provider,
445
444
  onAction: function () {
446
- var _onAction = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(provider) {
447
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
448
- while (1) switch (_context10.prev = _context10.next) {
445
+ var _onAction = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(provider) {
446
+ return _regenerator().w(function (_context10) {
447
+ while (1) switch (_context10.n) {
449
448
  case 0:
450
- _context10.next = 2;
449
+ _context10.n = 1;
451
450
  return loginOrSignupWithWallet(_objectSpread2({
452
451
  walletProvider: provider
453
452
  }, sessionKey && {
454
453
  sessionKey: sessionKey
455
454
  }));
456
- case 2:
457
- case "end":
458
- return _context10.stop();
455
+ case 1:
456
+ return _context10.a(2);
459
457
  }
460
458
  }, _callee10);
461
459
  }));
@@ -465,15 +463,14 @@ function AuthComponent(_ref) {
465
463
  return onAction;
466
464
  }(),
467
465
  onDisconnect: function () {
468
- var _onDisconnect = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(provider) {
469
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
470
- while (1) switch (_context11.prev = _context11.next) {
466
+ var _onDisconnect = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(provider) {
467
+ return _regenerator().w(function (_context11) {
468
+ while (1) switch (_context11.n) {
471
469
  case 0:
472
- _context11.next = 2;
470
+ _context11.n = 1;
473
471
  return disconnectWalletAccount(provider);
474
- case 2:
475
- case "end":
476
- return _context11.stop();
472
+ case 1:
473
+ return _context11.a(2);
477
474
  }
478
475
  }, _callee11);
479
476
  }));
@@ -485,13 +482,12 @@ function AuthComponent(_ref) {
485
482
  successPageDuration: undefined
486
483
  })
487
484
  });
488
- return _context12.abrupt("return");
489
- case 3:
490
- _context12.next = 5;
485
+ return _context12.a(2);
486
+ case 1:
487
+ _context12.n = 2;
491
488
  return handleWalletLoginOrSignup(provider);
492
- case 5:
493
- case "end":
494
- return _context12.stop();
489
+ case 2:
490
+ return _context12.a(2);
495
491
  }
496
492
  }, _callee12);
497
493
  }));
@@ -500,16 +496,12 @@ function AuthComponent(_ref) {
500
496
  };
501
497
  }();
502
498
  var handleShowWalletSelector = /*#__PURE__*/function () {
503
- var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
504
- var walletProviders;
505
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
506
- while (1) switch (_context13.prev = _context13.next) {
499
+ var _ref10 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13() {
500
+ var _t3;
501
+ return _regenerator().w(function (_context13) {
502
+ while (1) switch (_context13.p = _context13.n) {
507
503
  case 0:
508
- _context13.prev = 0;
509
- _context13.next = 3;
510
- return fetchWalletProviders();
511
- case 3:
512
- walletProviders = _context13.sent;
504
+ _context13.p = 0;
513
505
  pushPage({
514
506
  key: "Select wallet provider",
515
507
  content: jsx(ExternalWalletSelector, {
@@ -517,17 +509,16 @@ function AuthComponent(_ref) {
517
509
  onSelect: handleSelect
518
510
  })
519
511
  });
520
- _context13.next = 10;
512
+ _context13.n = 2;
521
513
  break;
522
- case 7:
523
- _context13.prev = 7;
524
- _context13.t0 = _context13["catch"](0);
525
- throw new Error("Error fetching wallet providers: ".concat(_context13.t0));
526
- case 10:
527
- case "end":
528
- return _context13.stop();
514
+ case 1:
515
+ _context13.p = 1;
516
+ _t3 = _context13.v;
517
+ throw new Error("Error fetching wallet providers: ".concat(_t3));
518
+ case 2:
519
+ return _context13.a(2);
529
520
  }
530
- }, _callee13, null, [[0, 7]]);
521
+ }, _callee13, null, [[0, 1]]);
531
522
  }));
532
523
  return function handleShowWalletSelector() {
533
524
  return _ref10.apply(this, arguments);
@@ -573,9 +564,31 @@ function AuthComponent(_ref) {
573
564
  var oauthButtons = oauthOrder.map(function (provider) {
574
565
  return oauthButtonMap[provider];
575
566
  }).filter(Boolean);
576
- var oauthBlock = oauthButtons.length > 0 ? jsx("div", {
567
+ var oauthBlock = oauthButtons.length > 0 && oauthButtons.length <= 5 ? jsx("div", {
577
568
  className: "w-full h-11 flex flex-row justify-center items-center gap-2",
578
569
  children: oauthButtons
570
+ }, "socials") : oauthButtons.length > 0 ? jsxs("div", {
571
+ className: "w-full h-11 flex flex-row justify-center items-center gap-2",
572
+ children: [oauthButtons.slice(0, 4), jsx(OAuthButton, {
573
+ name: "More",
574
+ icon: jsx(FontAwesomeIcon, {
575
+ icon: faEllipsisH
576
+ }),
577
+ onClick: function onClick() {
578
+ return openSheet({
579
+ key: "Select a social method",
580
+ content: jsx("div", {
581
+ className: "w-full h-full flex flex-wrap justify-center items-center gap-2",
582
+ children: oauthButtons.map(function (button) {
583
+ return jsx("div", {
584
+ className: "w-16 h-11",
585
+ children: button
586
+ }, button === null || button === void 0 ? void 0 : button.key);
587
+ })
588
+ })
589
+ });
590
+ }
591
+ }, "more")]
579
592
  }, "socials") : null;
580
593
  // -- Individual Auth Method Components --
581
594
  var methodComponents = {
@@ -601,7 +614,16 @@ function AuthComponent(_ref) {
601
614
  return jsxs("div", {
602
615
  className: clsx("flex flex-col items-center ", isMobile ? "w-full" : "w-96"),
603
616
  children: [config.authProxyConfigId ? rendered.length > 0 ? jsxs(Fragment, {
604
- children: [jsx("div", {
617
+ children: [logo ? jsxs("div", {
618
+ className: "mt-3 mb-4 flex flex-col items-center",
619
+ children: [jsx("img", {
620
+ src: logo,
621
+ className: "max-w-32 mt-3 w-fit max-h-16 h-fit object-contain ".concat(logoClassName)
622
+ }), jsx("h2", {
623
+ className: "text-lg font-medium mb-4 text-center",
624
+ children: title !== null && title !== void 0 ? title : "Log in or sign up"
625
+ })]
626
+ }) : jsx("div", {
605
627
  className: "mt-12"
606
628
  }), rendered.map(function (component, index) {
607
629
  return jsxs("div", {