thirdweb 5.46.0-nightly-d6e4898458ae0b7db99acb8a44f0730c18d6bdd9-20240815000344 → 5.46.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 (73) hide show
  1. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +10 -5
  2. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  3. package/dist/cjs/react/web/ui/ConnectWallet/Details.js +9 -8
  4. package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
  5. package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +1 -1
  6. package/dist/cjs/react/web/ui/ConnectWallet/WalletTypeRowButton.js +2 -2
  7. package/dist/cjs/react/web/ui/components/Modal.js +2 -2
  8. package/dist/cjs/react/web/ui/components/Modal.js.map +1 -1
  9. package/dist/cjs/react/web/ui/components/buttons.js +4 -4
  10. package/dist/cjs/react/web/ui/components/buttons.js.map +1 -1
  11. package/dist/cjs/react/web/ui/components/formElements.js +2 -2
  12. package/dist/cjs/react/web/wallets/defaultWallets.js +1 -0
  13. package/dist/cjs/react/web/wallets/defaultWallets.js.map +1 -1
  14. package/dist/cjs/react/web/wallets/in-app/InputSelectionUI.js +3 -3
  15. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +2 -0
  16. package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  17. package/dist/cjs/react/web/wallets/shared/SocialLogin.js +2 -0
  18. package/dist/cjs/react/web/wallets/shared/SocialLogin.js.map +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/cjs/version.js.map +1 -1
  21. package/dist/cjs/wallets/in-app/web/lib/auth/oauth.js +6 -1
  22. package/dist/cjs/wallets/in-app/web/lib/auth/oauth.js.map +1 -1
  23. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +10 -5
  24. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
  25. package/dist/esm/react/web/ui/ConnectWallet/Details.js +9 -8
  26. package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
  27. package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +1 -1
  28. package/dist/esm/react/web/ui/ConnectWallet/WalletTypeRowButton.js +2 -2
  29. package/dist/esm/react/web/ui/components/Modal.js +2 -2
  30. package/dist/esm/react/web/ui/components/Modal.js.map +1 -1
  31. package/dist/esm/react/web/ui/components/buttons.js +4 -4
  32. package/dist/esm/react/web/ui/components/buttons.js.map +1 -1
  33. package/dist/esm/react/web/ui/components/formElements.js +2 -2
  34. package/dist/esm/react/web/wallets/defaultWallets.js +1 -0
  35. package/dist/esm/react/web/wallets/defaultWallets.js.map +1 -1
  36. package/dist/esm/react/web/wallets/in-app/InputSelectionUI.js +3 -3
  37. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +2 -0
  38. package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
  39. package/dist/esm/react/web/wallets/shared/SocialLogin.js +2 -0
  40. package/dist/esm/react/web/wallets/shared/SocialLogin.js.map +1 -1
  41. package/dist/esm/version.js +1 -1
  42. package/dist/esm/version.js.map +1 -1
  43. package/dist/esm/wallets/in-app/web/lib/auth/oauth.js +6 -1
  44. package/dist/esm/wallets/in-app/web/lib/auth/oauth.js.map +1 -1
  45. package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
  46. package/dist/types/react/web/ui/ConnectWallet/Details.d.ts.map +1 -1
  47. package/dist/types/react/web/wallets/defaultWallets.d.ts.map +1 -1
  48. package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
  49. package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
  50. package/dist/types/version.d.ts +1 -1
  51. package/dist/types/version.d.ts.map +1 -1
  52. package/dist/types/wallets/ecosystem/types.d.ts +2 -0
  53. package/dist/types/wallets/ecosystem/types.d.ts.map +1 -1
  54. package/dist/types/wallets/in-app/core/wallet/types.d.ts +8 -0
  55. package/dist/types/wallets/in-app/core/wallet/types.d.ts.map +1 -1
  56. package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts +2 -0
  57. package/dist/types/wallets/in-app/web/lib/auth/oauth.d.ts.map +1 -1
  58. package/package.json +1 -1
  59. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +10 -5
  60. package/src/react/web/ui/ConnectWallet/Details.tsx +15 -14
  61. package/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx +1 -1
  62. package/src/react/web/ui/ConnectWallet/WalletTypeRowButton.tsx +2 -2
  63. package/src/react/web/ui/components/Modal.tsx +2 -2
  64. package/src/react/web/ui/components/buttons.tsx +4 -4
  65. package/src/react/web/ui/components/formElements.tsx +2 -2
  66. package/src/react/web/wallets/defaultWallets.ts +1 -0
  67. package/src/react/web/wallets/in-app/InputSelectionUI.tsx +4 -4
  68. package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +2 -0
  69. package/src/react/web/wallets/shared/SocialLogin.tsx +2 -0
  70. package/src/version.ts +1 -1
  71. package/src/wallets/ecosystem/types.ts +2 -0
  72. package/src/wallets/in-app/core/wallet/types.ts +8 -0
  73. package/src/wallets/in-app/web/lib/auth/oauth.ts +7 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectWalletSocialOptions.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yDAAyD,CAAC;AAGvF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAuB7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,MAAM,MAAM,0BAA0B,GAClC,SAAS,GACT;IACE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,gBAAgB,CAAC;QACvB,iBAAiB,EAAE,OAAO,CAAC,OAAO,GAAG,OAAO,EAAE,CAAC,CAAC;KACjD,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAWN,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,UAC9B,+BAA+B,+CAuTvC,CAAC"}
1
+ {"version":3,"file":"ConnectWalletSocialOptions.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yDAAyD,CAAC;AAGvF,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OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE;IACjC,UAAU,EAAE,qBAAqB,CAAC;IAClC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,0BAA0B,CAAC;IAClC,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,8CA4LA"}
@@ -1,2 +1,2 @@
1
- export declare const version = "5.46.0-nightly-d6e4898458ae0b7db99acb8a44f0730c18d6bdd9-20240815000344";
1
+ export declare const version = "5.46.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,2EAA2E,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
@@ -3,6 +3,8 @@ export type EcosystemWalletCreationOptions = {
3
3
  partnerId?: string;
4
4
  auth?: {
5
5
  mode?: "popup" | "redirect";
6
+ redirectUrl?: string;
7
+ redirectExternally?: boolean;
6
8
  };
7
9
  };
8
10
  export type EcosystemWalletConnectionOptions = InAppWalletConnectionOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallets/ecosystem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC7B,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,8BAA8B,GAAG;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,4BAA4B,CAAC;AAC5E,MAAM,MAAM,iCAAiC,GAAG,6BAA6B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/wallets/ecosystem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC7B,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,8BAA8B,GAAG;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;QAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,4BAA4B,CAAC;AAC5E,MAAM,MAAM,iCAAiC,GAAG,6BAA6B,CAAC"}
@@ -25,6 +25,14 @@ export type InAppWalletCreationOptions = {
25
25
  * Whether to display the social auth prompt in a popup or redirect
26
26
  */
27
27
  mode?: "popup" | "redirect";
28
+ /**
29
+ * Optional url to redirect to after authentication
30
+ */
31
+ redirectUrl?: string;
32
+ /**
33
+ * Whether to handle the redirect in a new window
34
+ */
35
+ redirectExternally?: boolean;
28
36
  /**
29
37
  * The domain of the passkey to use for authentication
30
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA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OAAO,CAAC;CAChC,GACD,SAAS,CAAC;AAEd,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EACV,mCAAmC,EACnC,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,4BAA4B,GAAG,CACvC,qBAAqB,GACrB,sBAAsB,CACzB,GAAG;IACF,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,CAAC,EAAE,mCAAmC,CAAC;IACjD,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AACrD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC;AAEzC,MAAM,MAAM,0BAA0B,GAClC;IACE,IAAI,CAAC,EAAE;QACL;;WAEG;QACH,OAAO,EAAE,eAAe,EAAE,CAAC;QAC3B;;WAEG;QACH,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;QAC5B;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;WAEG;QACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE;YACN,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;QAEI;IACJ,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,GACD,SAAS,CAAC;AAEd,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -6,6 +6,8 @@ export declare const loginWithOauthRedirect: (options: {
6
6
  authOption: SocialAuthOption;
7
7
  client: ThirdwebClient;
8
8
  ecosystem?: Ecosystem;
9
+ redirectUrl?: string;
10
+ redirectExternally?: boolean;
9
11
  }) => void;
10
12
  export declare const loginWithOauth: (options: {
11
13
  authOption: SocialAuthOption;
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/lib/auth/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AACjG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAuBhD,eAAO,MAAM,sBAAsB,YAAa;IAC9C,UAAU,EAAE,gBAAgB,CAAC;IAC7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M,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CAClE,KAAG,OAAO,CAAC,mCAAmC,CA2E9C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thirdweb",
3
- "version": "5.46.0-nightly-d6e4898458ae0b7db99acb8a44f0730c18d6bdd9-20240815000344",
3
+ "version": "5.46.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -290,7 +290,7 @@ export function ConnectButton(props: ConnectButtonProps) {
290
290
  const size = useMemo(() => {
291
291
  return !canFitWideModal() || wallets.length === 1
292
292
  ? "compact"
293
- : props.connectModal?.size || "wide";
293
+ : props.connectModal?.size || "compact";
294
294
  }, [wallets.length, props.connectModal?.size]);
295
295
 
296
296
  const autoConnectComp = props.autoConnect !== false && (
@@ -318,7 +318,8 @@ export function ConnectButton(props: ConnectButtonProps) {
318
318
  variant="primary"
319
319
  type="button"
320
320
  style={{
321
- minWidth: "140px",
321
+ minWidth: "150px",
322
+ minHeight: "52px",
322
323
  ...props.connectButton?.style,
323
324
  }}
324
325
  >
@@ -419,7 +420,9 @@ function ConnectButtonInner(
419
420
  variant="primary"
420
421
  type="button"
421
422
  style={{
422
- minWidth: "140px",
423
+ minWidth: "150px",
424
+ minHeight: "52px",
425
+ fontSize: "16px",
423
426
  ...props.connectButton?.style,
424
427
  }}
425
428
  aria-label={
@@ -456,7 +459,8 @@ function ConnectButtonInner(
456
459
  variant="primary"
457
460
  type="button"
458
461
  style={{
459
- minWidth: "140px",
462
+ minWidth: "150px",
463
+ minHeight: "52px",
460
464
  ...props.connectButton?.style,
461
465
  }}
462
466
  >
@@ -476,7 +480,8 @@ function ConnectButtonInner(
476
480
  }}
477
481
  className={props.signInButton?.className}
478
482
  style={{
479
- minWidth: "140px",
483
+ minWidth: "150px",
484
+ minHeight: "52px",
480
485
  ...props.signInButton?.style,
481
486
  }}
482
487
  >
@@ -196,25 +196,25 @@ export const ConnectedWalletDetails: React.FC<{
196
196
  {ensAvatarQuery.data ? (
197
197
  <Img
198
198
  src={ensAvatarQuery.data}
199
- width={iconSize.lg}
200
- height={iconSize.lg}
199
+ width={iconSize.sm}
200
+ height={iconSize.sm}
201
201
  style={{
202
- borderRadius: radius.sm,
202
+ borderRadius: radius.xs,
203
203
  }}
204
204
  client={client}
205
205
  />
206
206
  ) : activeWallet?.id ? (
207
- <WalletImage size={iconSize.lg} id={activeWallet.id} client={client} />
207
+ <WalletImage size={iconSize.md} id={activeWallet.id} client={client} />
208
208
  ) : (
209
- <GenericWalletIcon size={iconSize.lg} />
209
+ <GenericWalletIcon size={iconSize.md} />
210
210
  )}
211
211
 
212
- <Container flex="column" gap="xxs">
212
+ <Container flex="column" gap="3xs">
213
213
  {/* Address */}
214
214
 
215
215
  {addressOrENS ? (
216
216
  <Text
217
- size="sm"
217
+ size="xs"
218
218
  color="primaryText"
219
219
  weight={500}
220
220
  className={`${TW_CONNECTED_WALLET}__address`}
@@ -222,7 +222,7 @@ export const ConnectedWalletDetails: React.FC<{
222
222
  {addressOrENS}
223
223
  </Text>
224
224
  ) : (
225
- <Skeleton height={fontSize.sm} width="88px" />
225
+ <Skeleton height={fontSize.sm} width="80px" />
226
226
  )}
227
227
 
228
228
  {/* Balance */}
@@ -236,7 +236,7 @@ export const ConnectedWalletDetails: React.FC<{
236
236
  {balanceQuery.data.symbol}
237
237
  </Text>
238
238
  ) : (
239
- <Skeleton height={fontSize.xs} width="82px" />
239
+ <Skeleton height={fontSize.xs} width="70px" />
240
240
  )}
241
241
  </Container>
242
242
  </WalletInfoButton>
@@ -886,20 +886,21 @@ const WalletInfoButton = /* @__PURE__ */ StyledButton((_) => {
886
886
  all: "unset",
887
887
  background: theme.colors.connectedButtonBg,
888
888
  border: `1px solid ${theme.colors.borderColor}`,
889
- padding: `${spacing.sm} ${spacing.sm}`,
890
- borderRadius: radius.lg,
889
+ padding: `${spacing.xs} ${spacing.sm}`,
890
+ borderRadius: radius.md,
891
891
  cursor: "pointer",
892
892
  display: "inline-flex",
893
893
  alignItems: "center",
894
- minWidth: "180px",
895
- gap: spacing.sm,
894
+ minWidth: "150px",
895
+ minHeight: "52px",
896
+ gap: spacing.xs,
896
897
  boxSizing: "border-box",
897
898
  WebkitTapHighlightColor: "transparent",
898
899
  lineHeight: "normal",
899
900
  animation: `${fadeInAnimation} 300ms ease`,
900
901
  [media.mobile]: {
901
902
  gap: spacing.sm,
902
- padding: `${spacing.xs} ${spacing.sm}`,
903
+ padding: `${spacing.xs} ${spacing.xs}`,
903
904
  img: {
904
905
  width: `${iconSize.md}px`,
905
906
  height: `${iconSize.md}px`,
@@ -89,7 +89,7 @@ function AllWalletsUI(props: {
89
89
 
90
90
  <Input
91
91
  style={{
92
- padding: `${spacing.sm} ${spacing.md} ${spacing.sm} ${spacing.xxl}`,
92
+ padding: `${spacing.sm} ${spacing.sm} ${spacing.sm} ${spacing.xxl}`,
93
93
  }}
94
94
  tabIndex={-1}
95
95
  variant="outline"
@@ -24,13 +24,13 @@ export function WalletTypeRowButton(props: WalletTypeRowProps) {
24
24
  style={{
25
25
  display: "flex",
26
26
  justifyContent: "flex-start",
27
- padding: spacing.md,
27
+ padding: spacing.sm,
28
28
  }}
29
29
  onClick={() => {
30
30
  props.onClick();
31
31
  }}
32
32
  >
33
- <Container flex="row" gap="md" center="y" color="accentText">
33
+ <Container flex="row" gap="sm" center="y" color="accentText">
34
34
  <Img
35
35
  client={props.client}
36
36
  src={props.icon}
@@ -171,7 +171,7 @@ const DialogContent = /* @__PURE__ */ StyledDiv((_) => {
171
171
  background: theme.colors.modalBg,
172
172
  "--bg": theme.colors.modalBg,
173
173
  color: theme.colors.primaryText,
174
- borderRadius: radius.xl,
174
+ borderRadius: radius.lg,
175
175
  position: "fixed",
176
176
  top: "50%",
177
177
  left: "50%",
@@ -196,7 +196,7 @@ const DialogContent = /* @__PURE__ */ StyledDiv((_) => {
196
196
  transform: "none",
197
197
  width: "100vw",
198
198
  animation: `${modalAnimationMobile} 0.35s cubic-bezier(0.15, 1.15, 0.6, 1)`,
199
- borderRadius: radius.xxl,
199
+ borderRadius: radius.xl,
200
200
  borderBottomRightRadius: 0,
201
201
  borderBottomLeftRadius: 0,
202
202
  maxWidth: "none !important",
@@ -27,9 +27,9 @@ export const Button = /* @__PURE__ */ StyledButton((props: ButtonProps) => {
27
27
  display: "inline-flex",
28
28
  alignItems: "center",
29
29
  justifyContent: "center",
30
- borderRadius: radius.lg,
30
+ borderRadius: radius.md,
31
31
  padding: `${fontSize.sm} ${fontSize.sm}`,
32
- fontSize: fontSize.md,
32
+ fontSize: fontSize.sm,
33
33
  fontWeight: 500,
34
34
  boxSizing: "border-box",
35
35
  WebkitTapHighlightColor: "transparent",
@@ -90,7 +90,7 @@ export const Button = /* @__PURE__ */ StyledButton((props: ButtonProps) => {
90
90
  ...(() => {
91
91
  if (props.variant === "outline") {
92
92
  return {
93
- border: `1.5px solid ${theme.colors.borderColor}`,
93
+ border: `1px solid ${theme.colors.borderColor}`,
94
94
  "&:hover": {
95
95
  borderColor: theme.colors.accentText,
96
96
  },
@@ -102,7 +102,7 @@ export const Button = /* @__PURE__ */ StyledButton((props: ButtonProps) => {
102
102
 
103
103
  if (props.variant === "ghost") {
104
104
  return {
105
- border: "1.5px solid transparent",
105
+ border: "1px solid transparent",
106
106
  "&:hover": {
107
107
  borderColor: theme.colors.accentText,
108
108
  },
@@ -43,7 +43,7 @@ export const Input = /* @__PURE__ */ StyledInput<InputProps>((props) => {
43
43
  width: "100%",
44
44
  outline: "none",
45
45
  border: "none",
46
- borderRadius: radius.lg,
46
+ borderRadius: radius.md,
47
47
  color: theme.colors.primaryText,
48
48
  WebkitAppearance: "none",
49
49
  appearance: "none",
@@ -109,7 +109,7 @@ export const InputContainer = /* @__PURE__ */ StyledDiv(() => {
109
109
  const theme = useCustomTheme();
110
110
  return {
111
111
  display: "flex",
112
- borderRadius: radius.lg,
112
+ borderRadius: radius.md,
113
113
  boxShadow: `0 0 0px 1.5px ${theme.colors.borderColor}`,
114
114
  "&:focus-within": {
115
115
  boxShadow: `0 0 0px 2px ${theme.colors.accentText}`,
@@ -24,6 +24,7 @@ export function getDefaultWallets(options?: {
24
24
  chains: options?.chains,
25
25
  }),
26
26
  createWallet(RAINBOW),
27
+ createWallet("io.rabby"),
27
28
  createWallet(ZERION),
28
29
  ];
29
30
  }
@@ -70,8 +70,8 @@ export function InputSelectionUI(props: {
70
70
  placeholder={props.placeholder}
71
71
  style={{
72
72
  flexGrow: 1,
73
- padding: `${spacing.md} ${
74
- props.format === "phone" ? 0 : spacing.md
73
+ padding: `${spacing.sm} ${
74
+ props.format === "phone" ? 0 : spacing.sm
75
75
  }`,
76
76
  }}
77
77
  variant="transparent"
@@ -97,8 +97,8 @@ export function InputSelectionUI(props: {
97
97
  onClick={handleSelect}
98
98
  disabled={props.disabled}
99
99
  style={{
100
- padding: spacing.md,
101
- borderRadius: `0 ${radius.lg} ${radius.lg} 0`,
100
+ padding: spacing.sm,
101
+ borderRadius: `0 ${radius.md} ${radius.md} 0`,
102
102
  }}
103
103
  >
104
104
  <ArrowRightIcon width={iconSize.md} height={iconSize.md} />
@@ -181,6 +181,8 @@ export const ConnectWalletSocialOptions = (
181
181
  authOption: strategy,
182
182
  client: props.client,
183
183
  ecosystem: ecosystemInfo,
184
+ redirectUrl: walletConfig?.auth?.redirectUrl,
185
+ redirectExternally: walletConfig?.auth?.redirectExternally,
184
186
  });
185
187
  }
186
188
 
@@ -63,6 +63,8 @@ export function SocialLogin(props: {
63
63
  partnerId: wallet.getConfig()?.partnerId,
64
64
  }
65
65
  : undefined,
66
+ redirectUrl: walletConfig?.auth?.redirectUrl,
67
+ redirectExternally: walletConfig?.auth?.redirectExternally,
66
68
  });
67
69
  }
68
70
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = "5.46.0-nightly-d6e4898458ae0b7db99acb8a44f0730c18d6bdd9-20240815000344";
1
+ export const version = "5.46.1";
@@ -7,6 +7,8 @@ export type EcosystemWalletCreationOptions = {
7
7
  partnerId?: string;
8
8
  auth?: {
9
9
  mode?: "popup" | "redirect";
10
+ redirectUrl?: string;
11
+ redirectExternally?: boolean;
10
12
  };
11
13
  };
12
14
 
@@ -37,6 +37,14 @@ export type InAppWalletCreationOptions =
37
37
  * Whether to display the social auth prompt in a popup or redirect
38
38
  */
39
39
  mode?: "popup" | "redirect";
40
+ /**
41
+ * Optional url to redirect to after authentication
42
+ */
43
+ redirectUrl?: string;
44
+ /**
45
+ * Whether to handle the redirect in a new window
46
+ */
47
+ redirectExternally?: boolean;
40
48
  /**
41
49
  * The domain of the passkey to use for authentication
42
50
  */
@@ -30,12 +30,18 @@ export const loginWithOauthRedirect = (options: {
30
30
  authOption: SocialAuthOption;
31
31
  client: ThirdwebClient;
32
32
  ecosystem?: Ecosystem;
33
+ redirectUrl?: string;
34
+ redirectExternally?: boolean;
33
35
  }): void => {
34
36
  const loginUrl = getLoginUrl({
35
37
  ...options,
36
38
  mode: "redirect",
37
39
  });
38
- window.location.href = loginUrl;
40
+ if (options.redirectExternally === true) {
41
+ window.open(loginUrl);
42
+ } else {
43
+ window.location.href = loginUrl;
44
+ }
39
45
  };
40
46
 
41
47
  export const loginWithOauth = async (options: {