thirdweb 5.96.2 → 5.96.4-nightly-e28eb73894f2784b528a95a8cd34f1865362ac12-20250425000402

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 (64) hide show
  1. package/dist/cjs/auth/is-erc6492-signature.js +1 -1
  2. package/dist/cjs/auth/parse-erc6492-signature.js +1 -1
  3. package/dist/cjs/auth/serialize-erc6492-signature.js +1 -1
  4. package/dist/cjs/auth/verify-hash.js +1 -1
  5. package/dist/cjs/auth/verify-signature.js +1 -1
  6. package/dist/cjs/auth/verify-typed-data.js +1 -1
  7. package/dist/cjs/react/core/hooks/auth/useSiweAuth.js +3 -2
  8. package/dist/cjs/react/core/hooks/auth/useSiweAuth.js.map +1 -1
  9. package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
  10. package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js +1 -1
  11. package/dist/cjs/storage/download.js +1 -1
  12. package/dist/cjs/version.js +1 -1
  13. package/dist/cjs/version.js.map +1 -1
  14. package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js +0 -3
  15. package/dist/cjs/wallets/in-app/core/authentication/linkAccount.js.map +1 -1
  16. package/dist/esm/auth/is-erc6492-signature.js +1 -1
  17. package/dist/esm/auth/parse-erc6492-signature.js +1 -1
  18. package/dist/esm/auth/serialize-erc6492-signature.js +1 -1
  19. package/dist/esm/auth/verify-hash.js +1 -1
  20. package/dist/esm/auth/verify-signature.js +1 -1
  21. package/dist/esm/auth/verify-typed-data.js +1 -1
  22. package/dist/esm/react/core/hooks/auth/useSiweAuth.js +3 -2
  23. package/dist/esm/react/core/hooks/auth/useSiweAuth.js.map +1 -1
  24. package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
  25. package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js +1 -1
  26. package/dist/esm/storage/download.js +1 -1
  27. package/dist/esm/version.js +1 -1
  28. package/dist/esm/version.js.map +1 -1
  29. package/dist/esm/wallets/in-app/core/authentication/linkAccount.js +0 -3
  30. package/dist/esm/wallets/in-app/core/authentication/linkAccount.js.map +1 -1
  31. package/dist/types/auth/is-erc6492-signature.d.ts +1 -1
  32. package/dist/types/auth/parse-erc6492-signature.d.ts +1 -1
  33. package/dist/types/auth/serialize-erc6492-signature.d.ts +1 -1
  34. package/dist/types/auth/verify-hash.d.ts +1 -1
  35. package/dist/types/auth/verify-signature.d.ts +1 -1
  36. package/dist/types/auth/verify-typed-data.d.ts +1 -1
  37. package/dist/types/extensions/farcaster/write/addSigner.d.ts +1 -1
  38. package/dist/types/extensions/farcaster/write/addSignerFor.d.ts +1 -1
  39. package/dist/types/extensions/farcaster/write/registerFidAndSigner.d.ts +1 -1
  40. package/dist/types/react/core/hooks/auth/useSiweAuth.d.ts +1 -0
  41. package/dist/types/react/core/hooks/auth/useSiweAuth.d.ts.map +1 -1
  42. package/dist/types/storage/download.d.ts +1 -1
  43. package/dist/types/utils/type-utils.d.ts +2 -2
  44. package/dist/types/version.d.ts +1 -1
  45. package/dist/types/version.d.ts.map +1 -1
  46. package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts +0 -3
  47. package/dist/types/wallets/in-app/core/authentication/linkAccount.d.ts.map +1 -1
  48. package/package.json +1 -1
  49. package/src/auth/is-erc6492-signature.ts +1 -1
  50. package/src/auth/parse-erc6492-signature.ts +1 -1
  51. package/src/auth/serialize-erc6492-signature.ts +1 -1
  52. package/src/auth/verify-hash.ts +1 -1
  53. package/src/auth/verify-signature.ts +1 -1
  54. package/src/auth/verify-typed-data.ts +2 -2
  55. package/src/extensions/farcaster/write/addSigner.ts +1 -1
  56. package/src/extensions/farcaster/write/addSignerFor.ts +1 -1
  57. package/src/extensions/farcaster/write/registerFidAndSigner.ts +1 -1
  58. package/src/react/core/hooks/auth/useSiweAuth.ts +3 -2
  59. package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +1 -1
  60. package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +1 -1
  61. package/src/storage/download.ts +1 -1
  62. package/src/utils/type-utils.ts +2 -2
  63. package/src/version.ts +1 -1
  64. package/src/wallets/in-app/core/authentication/linkAccount.ts +0 -3
@@ -4,7 +4,7 @@ exports.isErc6492Signature = isErc6492Signature;
4
4
  const ox__Hex = require("ox/Hex");
5
5
  const constants_js_1 = require("./constants.js");
6
6
  /**
7
- * @description Determines if a signature is compatible with [ERC6492](https://eips.ethereum.org/EIPS/eip-6492)
7
+ * Determines if a signature is compatible with [ERC6492](https://eips.ethereum.org/EIPS/eip-6492)
8
8
  *
9
9
  * @param {Hex} signature The signature to check for ERC6492 compatibility
10
10
  *
@@ -5,7 +5,7 @@ const ox__AbiParameters = require("ox/AbiParameters");
5
5
  const ox__Address = require("ox/Address");
6
6
  const erc6492_1 = require("ox/erc6492");
7
7
  /**
8
- * @description Parses a serialized ({@link Hex}) [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) signature.
8
+ * Parses a serialized ({@link Hex}) [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) signature.
9
9
  * If the signature is not in ERC-6492 format, the original signature is returned.
10
10
  *
11
11
  * @param {Hex} signature The signature to parse
@@ -5,7 +5,7 @@ const encodeAbiParameters_js_1 = require("../utils/abi/encodeAbiParameters.js");
5
5
  const concat_hex_js_1 = require("../utils/encoding/helpers/concat-hex.js");
6
6
  const constants_js_1 = require("./constants.js");
7
7
  /**
8
- * @description Serializes a signature for use with [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). The signature must be generated by a signer for an [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) Account Factory account with counterfactual deployment addresses.
8
+ * Serializes a signature for use with [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). The signature must be generated by a signer for an [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) Account Factory account with counterfactual deployment addresses.
9
9
  *
10
10
  * @param {@link Erc6492Signature} signature The signature object to serialize into Hex format
11
11
  * @param {string} signature.address The ERC-4337 Account Factory address
@@ -18,7 +18,7 @@ const hex_js_1 = require("../utils/encoding/hex.js");
18
18
  const serialize_erc6492_signature_js_1 = require("./serialize-erc6492-signature.js");
19
19
  const ZKSYNC_VALIDATOR_ADDRESS = "0xfB688330379976DA81eB64Fe4BF50d7401763B9C";
20
20
  /**
21
- * @description Verify that an address created the provided signature for a given hash using [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). This function is interoperable with all wallet types, including EOAs.
21
+ * Verify that an address created the provided signature for a given hash using [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). This function is interoperable with all wallet types, including EOAs.
22
22
  * This function should rarely be used directly, instead use @see {import("./verify-signature.js")} and @see {import("./verify-typed-data.js")}}
23
23
  *
24
24
  * @param {Hex} options.hash The hash that was signed
@@ -41,7 +41,7 @@ async function verifyEOASignature(options) {
41
41
  return false;
42
42
  }
43
43
  /**
44
- * @description Verifies a contract wallet signature using [ERC-6942](https://eips.ethereum.org/EIPS/eip-6942) Signature Validation for Predeploy Contracts.
44
+ * Verifies a contract wallet signature using [ERC-6942](https://eips.ethereum.org/EIPS/eip-6942) Signature Validation for Predeploy Contracts.
45
45
  * This function will validate signatures for both deployed and undeployed smart accounts of all signature types.
46
46
  *
47
47
  * @param {@link VerifyContractWalletSignatureParams} options - The parameters for verifying the signature.
@@ -4,7 +4,7 @@ exports.verifyTypedData = verifyTypedData;
4
4
  const ox__TypedData = require("ox/TypedData");
5
5
  const verify_hash_js_1 = require("./verify-hash.js");
6
6
  /**
7
- * @description Verify am [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data signature. This function is interoperable with all wallet types (smart accounts or EOAs).
7
+ * Verify am [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data signature. This function is interoperable with all wallet types (smart accounts or EOAs).
8
8
  *
9
9
  * @param {string} options.address The address that signed the typed data
10
10
  * @param {string | Uint8Array | Signature} options.signature The signature that was signed
@@ -55,7 +55,7 @@ function useSiweAuth(activeWallet, activeAccount, authOptions) {
55
55
  });
56
56
  return await authOptions.doLogin(signedPayload);
57
57
  },
58
- onSettled: () => {
58
+ onSuccess: () => {
59
59
  return queryClient.invalidateQueries({
60
60
  queryKey: ["siwe_auth", "isLoggedIn"],
61
61
  });
@@ -69,7 +69,7 @@ function useSiweAuth(activeWallet, activeAccount, authOptions) {
69
69
  }
70
70
  return await authOptions.doLogout();
71
71
  },
72
- onSettled: () => {
72
+ onSuccess: () => {
73
73
  return queryClient.invalidateQueries({
74
74
  queryKey: ["siwe_auth", "isLoggedIn"],
75
75
  });
@@ -87,6 +87,7 @@ function useSiweAuth(activeWallet, activeAccount, authOptions) {
87
87
  // checking if logged in
88
88
  isLoggedIn: isLoggedInQuery.data,
89
89
  isLoading: isLoggedInQuery.isFetching,
90
+ isPending: isLoggedInQuery.isPending,
90
91
  };
91
92
  }
92
93
  //# sourceMappingURL=useSiweAuth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSiweAuth.js","sourceRoot":"","sources":["../../../../../../src/react/core/hooks/auth/useSiweAuth.ts"],"names":[],"mappings":";;AAiDA,kCAsGC;AAvJD,uDAA8E;AAG9E,0DAA6D;AA2C7D;;GAEG;AACH,SAAgB,WAAW,CACzB,YAAqB,EACrB,aAAuB,EACvB,WAA6B;IAE7B,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC;IAEnC,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAA,sBAAQ,EAAC;QAC/B,QAAQ,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,CAAC;QAC7D,OAAO,EAAE,YAAY,IAAI,CAAC,CAAC,aAAa,EAAE,OAAO;QACjD,OAAO,EAAE,GAAG,EAAE;YACZ,sDAAsD;YACtD,IAAI,CAAC,WAAW,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,CAAC;gBAC5C,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,WAAW,CAAC,UA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,CAAC,CAAC;IAEH,OAAO;QACL,uBAAuB;QACvB,YAAY;QAEZ,QAAQ;QACR,OAAO,EAAE,aAAa,CAAC,WAAW;QAClC,WAAW,EAAE,aAAa,CAAC,SAAS;QAEpC,SAAS;QACT,QAAQ,EAAE,cAAc,CAAC,WAAW;QACpC,YAAY,EAAE,cAAc,CAAC,SAAS;QAEtC,wBAAwB;QACxB,UAAU,EAAE,eAAe,CAAC,IAAI;QAChC,SAAS,EAAE,eAAe,CAAC,UAAU;QACrC,SAAS,EAAE,eAAe,CAAC,SAAS;KACrC,CAAC;AACJ,CAAC"}
@@ -379,7 +379,7 @@ function ConnectButtonInner(props) {
379
379
  if (siweAuth.requiresAuth) {
380
380
  // loading state if loading
381
381
  // TODO: figure out a way to consolidate the loading states with the ones from locale loading
382
- if (siweAuth.isLoading || siweAuth.isLoggingIn || siweAuth.isLoggingOut) {
382
+ if (siweAuth.isPending || siweAuth.isLoggingIn || siweAuth.isLoggingOut) {
383
383
  const combinedClassName = `${props.connectButton?.className || ""} ${TW_CONNECT_WALLET}`;
384
384
  return ((0, jsx_runtime_1.jsx)(AnimatedButton, { disabled: true, className: combinedClassName, variant: "primary", type: "button", style: {
385
385
  minWidth: "165px",
@@ -46,7 +46,7 @@ const SignatureScreen = (props) => {
46
46
  setStatus("failed");
47
47
  }
48
48
  }, [onDone, siweAuth]);
49
- if (!wallet || siweAuth.isLoading) {
49
+ if (!wallet || siweAuth.isPending) {
50
50
  return (0, jsx_runtime_1.jsx)(LoadingScreen_js_1.LoadingScreen, { "data-testid": "loading-screen" });
51
51
  }
52
52
  if (isHeadlessSignSupported(wallet.id) ||
@@ -6,7 +6,7 @@ const ipfs_js_1 = require("../utils/ipfs.js");
6
6
  const process_js_1 = require("../utils/process.js");
7
7
  const mock_js_1 = require("./mock.js");
8
8
  /**
9
- * @description Downloads a file from the specified IPFS, Arweave, or HTTP URI.
9
+ * Downloads a file from the specified IPFS, Arweave, or HTTP URI.
10
10
  *
11
11
  * `download` will parse the provided URI based on its scheme (ipfs://, ar://, https://) and convert it to a URL to fetch the file from thirdweb's storage service.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = "5.96.2";
4
+ exports.version = "5.96.4-nightly-e28eb73894f2784b528a95a8cd34f1865362ac12-20250425000402";
5
5
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,wEAAwE,CAAC"}
@@ -7,7 +7,6 @@ const domains_js_1 = require("../../../../utils/domains.js");
7
7
  const fetch_js_1 = require("../../../../utils/fetch.js");
8
8
  const json_js_1 = require("../../../../utils/json.js");
9
9
  /**
10
- * @description
11
10
  * Links a new account to the current one using an auth token.
12
11
  * For the public-facing API, use `wallet.linkProfile` instead.
13
12
  *
@@ -39,7 +38,6 @@ async function linkAccount({ client, ecosystem, tokenToLink, storage, }) {
39
38
  return (linkedAccounts ?? []);
40
39
  }
41
40
  /**
42
- * @description
43
41
  * Links a new account to the current one using an auth token.
44
42
  * For the public-facing API, use `wallet.linkProfile` instead.
45
43
  *
@@ -69,7 +67,6 @@ async function unlinkAccount({ client, ecosystem, profileToUnlink, storage, }) {
69
67
  return (linkedAccounts ?? []);
70
68
  }
71
69
  /**
72
- * @description
73
70
  * Gets the linked accounts for the current user.
74
71
  * For the public-facing API, use `wallet.getProfiles` instead.
75
72
  *
@@ -1 +1 @@
1
- {"version":3,"file":"linkAccount.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/linkAccount.ts"],"names":[],"mappings":";;AAeA,kCA0CC;AASD,sCAwCC;AASD,8DAqCC;AAvJD,6DAAkE;AAClE,yDAA4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AAO,GAA2B;QACtC,aAAa,EAAE,yBAAyB,mBAAmB,EAAE;QAC7D,cAAc,EAAE,kBAAkB;KACnC,CAAC;IAEF,MAAM,kBAAkB,GAAG,MAAM,WAAW,CAC1C,GAAG,UAAU,0BAA0B,EACvC;QACE,MAAM,EAAE,KAAK;QACb,OAAO;KACR,CACF,CAAC;IAEF,IAAI,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC;QAC3B,MAAM,IAAI,GAAG,MAAM,kBAAkB,CAAC,IAAI,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,gCAAgC,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,kBAAkB,CAAC,IAAI,EAAE,CAAC;IAE3D,OAAO,CAAC,cAAc,IAAI,EAAE,CAAqB,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"linkAccount.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/linkAccount.ts"],"names":[],"mappings":";;AAcA,kCA0CC;AAQD,sCAwCC;AAQD,8DAqCC;AApJD,6DAAkE;AAClE,yDAA4D;AAC5D,uDAAsD;AAKtD;;;;;GAKG;AACI,KAAK,UAAU,WAAW,CAAC,EAChC,MAAM,EACN,SAAS,EACT,WAAW,EACX,OAAO,GAMR;IACC,MAAM,WAAW,GAAG,IAAA,yBAAc,EAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtD,MAAM,UAAU,GAAG,IAAA,+BAAkB,EAAC,aAAa,CAAC,CAAC;IACrD,MAAM,mBAAmB,GAAG,MAAM,OAAO,CAAC,aAAa,EAAE,CAAC;IAE1D,IAAI,CAAC,mBAAmB,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,OAAO,GAA2B;QACtC,aAAa,EAAE,yBAAyB,mBAAmB,EAAE;QAC7D,cAAc,EAAE,kBAAkB;KACn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AAI,EAAE,CAAqB,CAAC;AACpD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as ox__Hex from "ox/Hex";
2
2
  import { ERC_6492_MAGIC_VALUE } from "./constants.js";
3
3
  /**
4
- * @description Determines if a signature is compatible with [ERC6492](https://eips.ethereum.org/EIPS/eip-6492)
4
+ * Determines if a signature is compatible with [ERC6492](https://eips.ethereum.org/EIPS/eip-6492)
5
5
  *
6
6
  * @param {Hex} signature The signature to check for ERC6492 compatibility
7
7
  *
@@ -2,7 +2,7 @@ import * as ox__AbiParameters from "ox/AbiParameters";
2
2
  import * as ox__Address from "ox/Address";
3
3
  import { WrappedSignature as ox__WrappedSignature } from "ox/erc6492";
4
4
  /**
5
- * @description Parses a serialized ({@link Hex}) [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) signature.
5
+ * Parses a serialized ({@link Hex}) [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) signature.
6
6
  * If the signature is not in ERC-6492 format, the original signature is returned.
7
7
  *
8
8
  * @param {Hex} signature The signature to parse
@@ -2,7 +2,7 @@ import { encodeAbiParameters } from "../utils/abi/encodeAbiParameters.js";
2
2
  import { concatHex } from "../utils/encoding/helpers/concat-hex.js";
3
3
  import { ERC_6492_MAGIC_VALUE } from "./constants.js";
4
4
  /**
5
- * @description Serializes a signature for use with [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). The signature must be generated by a signer for an [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) Account Factory account with counterfactual deployment addresses.
5
+ * Serializes a signature for use with [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). The signature must be generated by a signer for an [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) Account Factory account with counterfactual deployment addresses.
6
6
  *
7
7
  * @param {@link Erc6492Signature} signature The signature object to serialize into Hex format
8
8
  * @param {string} signature.address The ERC-4337 Account Factory address
@@ -14,7 +14,7 @@ import { hexToBool, isHex } from "../utils/encoding/hex.js";
14
14
  import { serializeErc6492Signature } from "./serialize-erc6492-signature.js";
15
15
  const ZKSYNC_VALIDATOR_ADDRESS = "0xfB688330379976DA81eB64Fe4BF50d7401763B9C";
16
16
  /**
17
- * @description Verify that an address created the provided signature for a given hash using [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). This function is interoperable with all wallet types, including EOAs.
17
+ * Verify that an address created the provided signature for a given hash using [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). This function is interoperable with all wallet types, including EOAs.
18
18
  * This function should rarely be used directly, instead use @see {import("./verify-signature.js")} and @see {import("./verify-typed-data.js")}}
19
19
  *
20
20
  * @param {Hex} options.hash The hash that was signed
@@ -36,7 +36,7 @@ export async function verifyEOASignature(options) {
36
36
  return false;
37
37
  }
38
38
  /**
39
- * @description Verifies a contract wallet signature using [ERC-6942](https://eips.ethereum.org/EIPS/eip-6942) Signature Validation for Predeploy Contracts.
39
+ * Verifies a contract wallet signature using [ERC-6942](https://eips.ethereum.org/EIPS/eip-6942) Signature Validation for Predeploy Contracts.
40
40
  * This function will validate signatures for both deployed and undeployed smart accounts of all signature types.
41
41
  *
42
42
  * @param {@link VerifyContractWalletSignatureParams} options - The parameters for verifying the signature.
@@ -1,7 +1,7 @@
1
1
  import * as ox__TypedData from "ox/TypedData";
2
2
  import { verifyHash } from "./verify-hash.js";
3
3
  /**
4
- * @description Verify am [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data signature. This function is interoperable with all wallet types (smart accounts or EOAs).
4
+ * Verify am [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data signature. This function is interoperable with all wallet types (smart accounts or EOAs).
5
5
  *
6
6
  * @param {string} options.address The address that signed the typed data
7
7
  * @param {string | Uint8Array | Signature} options.signature The signature that was signed
@@ -53,7 +53,7 @@ export function useSiweAuth(activeWallet, activeAccount, authOptions) {
53
53
  });
54
54
  return await authOptions.doLogin(signedPayload);
55
55
  },
56
- onSettled: () => {
56
+ onSuccess: () => {
57
57
  return queryClient.invalidateQueries({
58
58
  queryKey: ["siwe_auth", "isLoggedIn"],
59
59
  });
@@ -67,7 +67,7 @@ export function useSiweAuth(activeWallet, activeAccount, authOptions) {
67
67
  }
68
68
  return await authOptions.doLogout();
69
69
  },
70
- onSettled: () => {
70
+ onSuccess: () => {
71
71
  return queryClient.invalidateQueries({
72
72
  queryKey: ["siwe_auth", "isLoggedIn"],
73
73
  });
@@ -85,6 +85,7 @@ export function useSiweAuth(activeWallet, activeAccount, authOptions) {
85
85
  // checking if logged in
86
86
  isLoggedIn: isLoggedInQuery.data,
87
87
  isLoading: isLoggedInQuery.isFetching,
88
+ isPending: isLoggedInQuery.isPending,
88
89
  };
89
90
  }
90
91
  //# sourceMappingURL=useSiweAuth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSiweAuth.js","sourceRoot":"","sources":["../../../../../../src/react/core/hooks/auth/useSiweAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG9E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AA2C7D;;GAEG;AACH,MAAM,UAAU,WAAW,CACzB,YAAqB,EACrB,aAAuB,EACvB,WAA6B;IAE7B,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC;IAEnC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,QAAQ,CAAC;QAC/B,QAAQ,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,CAAC;QAC7D,OAAO,EAAE,YAAY,IAAI,CAAC,CAAC,aAAa,EAAE,OAAO;QACjD,OAAO,EAAE,GAAG,EAAE;YACZ,sDAAsD;YACtD,IAAI,CAAC,WAAW,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,CAAC;gBAC5C,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACvD,CAAC;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AY,CAAC;aACtC,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;IAEH,OAAO;QACL,uBAAuB;QACvB,YAAY;QAEZ,QAAQ;QACR,OAAO,EAAE,aAAa,CAAC,WAAW;QAClC,WAAW,EAAE,aAAa,CAAC,SAAS;QAEpC,SAAS;QACT,QAAQ,EAAE,cAAc,CAAC,WAAW;QACpC,YAAY,EAAE,cAAc,CAAC,SAAS;QAEtC,wBAAwB;QACxB,UAAU,EAAE,eAAe,CAAC,IAAI;QAChC,SAAS,EAAE,eAAe,CAAC,UAAU;QACrC,SAAS,EAAE,eAAe,CAAC,SAAS;KACrC,CAAC;AACJ,CAAC"}
@@ -376,7 +376,7 @@ function ConnectButtonInner(props) {
376
376
  if (siweAuth.requiresAuth) {
377
377
  // loading state if loading
378
378
  // TODO: figure out a way to consolidate the loading states with the ones from locale loading
379
- if (siweAuth.isLoading || siweAuth.isLoggingIn || siweAuth.isLoggingOut) {
379
+ if (siweAuth.isPending || siweAuth.isLoggingIn || siweAuth.isLoggingOut) {
380
380
  const combinedClassName = `${props.connectButton?.className || ""} ${TW_CONNECT_WALLET}`;
381
381
  return (_jsx(AnimatedButton, { disabled: true, className: combinedClassName, variant: "primary", type: "button", style: {
382
382
  minWidth: "165px",
@@ -43,7 +43,7 @@ export const SignatureScreen = (props) => {
43
43
  setStatus("failed");
44
44
  }
45
45
  }, [onDone, siweAuth]);
46
- if (!wallet || siweAuth.isLoading) {
46
+ if (!wallet || siweAuth.isPending) {
47
47
  return _jsx(LoadingScreen, { "data-testid": "loading-screen" });
48
48
  }
49
49
  if (isHeadlessSignSupported(wallet.id) ||
@@ -3,7 +3,7 @@ import { resolveScheme } from "../utils/ipfs.js";
3
3
  import { IS_TEST } from "../utils/process.js";
4
4
  import { getFromMockStorage } from "./mock.js";
5
5
  /**
6
- * @description Downloads a file from the specified IPFS, Arweave, or HTTP URI.
6
+ * Downloads a file from the specified IPFS, Arweave, or HTTP URI.
7
7
  *
8
8
  * `download` will parse the provided URI based on its scheme (ipfs://, ar://, https://) and convert it to a URL to fetch the file from thirdweb's storage service.
9
9
  *
@@ -1,2 +1,2 @@
1
- export const version = "5.96.2";
1
+ export const version = "5.96.4-nightly-e28eb73894f2784b528a95a8cd34f1865362ac12-20250425000402";
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,wEAAwE,CAAC"}
@@ -2,7 +2,6 @@ import { getThirdwebBaseUrl } from "../../../../utils/domains.js";
2
2
  import { getClientFetch } from "../../../../utils/fetch.js";
3
3
  import { stringify } from "../../../../utils/json.js";
4
4
  /**
5
- * @description
6
5
  * Links a new account to the current one using an auth token.
7
6
  * For the public-facing API, use `wallet.linkProfile` instead.
8
7
  *
@@ -34,7 +33,6 @@ export async function linkAccount({ client, ecosystem, tokenToLink, storage, })
34
33
  return (linkedAccounts ?? []);
35
34
  }
36
35
  /**
37
- * @description
38
36
  * Links a new account to the current one using an auth token.
39
37
  * For the public-facing API, use `wallet.linkProfile` instead.
40
38
  *
@@ -64,7 +62,6 @@ export async function unlinkAccount({ client, ecosystem, profileToUnlink, storag
64
62
  return (linkedAccounts ?? []);
65
63
  }
66
64
  /**
67
- * @description
68
65
  * Gets the linked accounts for the current user.
69
66
  * For the public-facing API, use `wallet.getProfiles` instead.
70
67
  *
@@ -1 +1 @@
1
- {"version":3,"file":"linkAccount.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/linkAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,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,GAA2B;QACtC,aAAa,EAAE,yBAAyB,mBAAmB,EAAE;QAC7D,cAAc,EAAE,kBAAkB;KACnC,CAAC;IAEF,MAAM,kBAAkB,GAAG,MAAM,WAAW,CAC1C,GAAG,UAAU,0BAA0B,EACvC;QACE,MAAM,EAAE,KAAK;QACb,OAAO;KACR,CACF,CAAC;IAEF,IAAI,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC;QAC3B,MAAM,IAAI,GAAG,MAAM,kBAAkB,CAAC,IAAI,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,gCAAgC,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,kBAAkB,CAAC,IAAI,EAAE,CAAC;IAE3D,OAAO,CAAC,cAAc,IAAI,EAAE,CAAqB,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"linkAccount.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/linkAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAKtD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,EAChC,MAAM,EACN,SAAS,EACT,WAAW,EACX,OAAO,GAMR;IACC,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtD,MAAM,UAAU,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACrD,MAAM,mBAAmB,GAAG,MAAM,OAAO,CAAC,aAAa,EAAE,CAAC;IAE1D,IAAI,CAAC,mBAAmB,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,OAAO,GAA2B;QACtC,aAAa,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AAI,EAAE,CAAC;IAE3D,OAAO,CAAC,cAAc,IAAI,EAAE,CAAqB,CAAC;AACpD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { Hex } from "../utils/encoding/hex.js";
2
2
  /**
3
- * @description Determines if a signature is compatible with [ERC6492](https://eips.ethereum.org/EIPS/eip-6492)
3
+ * Determines if a signature is compatible with [ERC6492](https://eips.ethereum.org/EIPS/eip-6492)
4
4
  *
5
5
  * @param {Hex} signature The signature to check for ERC6492 compatibility
6
6
  *
@@ -8,7 +8,7 @@ export type ParseErc6492SignatureReturnType = OneOf<Erc6492Signature | {
8
8
  signature: Hex;
9
9
  }>;
10
10
  /**
11
- * @description Parses a serialized ({@link Hex}) [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) signature.
11
+ * Parses a serialized ({@link Hex}) [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) signature.
12
12
  * If the signature is not in ERC-6492 format, the original signature is returned.
13
13
  *
14
14
  * @param {Hex} signature The signature to parse
@@ -1,7 +1,7 @@
1
1
  import type { Hex } from "../utils/encoding/hex.js";
2
2
  import type { Erc6492Signature } from "./types.js";
3
3
  /**
4
- * @description Serializes a signature for use with [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). The signature must be generated by a signer for an [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) Account Factory account with counterfactual deployment addresses.
4
+ * Serializes a signature for use with [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). The signature must be generated by a signer for an [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) Account Factory account with counterfactual deployment addresses.
5
5
  *
6
6
  * @param {@link Erc6492Signature} signature The signature object to serialize into Hex format
7
7
  * @param {string} signature.address The ERC-4337 Account Factory address
@@ -15,7 +15,7 @@ export type VerifyHashParams = {
15
15
  };
16
16
  };
17
17
  /**
18
- * @description Verify that an address created the provided signature for a given hash using [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). This function is interoperable with all wallet types, including EOAs.
18
+ * Verify that an address created the provided signature for a given hash using [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). This function is interoperable with all wallet types, including EOAs.
19
19
  * This function should rarely be used directly, instead use @see {import("./verify-signature.js")} and @see {import("./verify-typed-data.js")}}
20
20
  *
21
21
  * @param {Hex} options.hash The hash that was signed
@@ -43,7 +43,7 @@ export type VerifyContractWalletSignatureParams = Prettify<VerifyEOASignaturePar
43
43
  };
44
44
  }>;
45
45
  /**
46
- * @description Verifies a contract wallet signature using [ERC-6942](https://eips.ethereum.org/EIPS/eip-6942) Signature Validation for Predeploy Contracts.
46
+ * Verifies a contract wallet signature using [ERC-6942](https://eips.ethereum.org/EIPS/eip-6942) Signature Validation for Predeploy Contracts.
47
47
  * This function will validate signatures for both deployed and undeployed smart accounts of all signature types.
48
48
  *
49
49
  * @param {@link VerifyContractWalletSignatureParams} options - The parameters for verifying the signature.
@@ -15,7 +15,7 @@ export type VerifyTypedDataParams<typedData extends ox__TypedData.TypedData | Re
15
15
  };
16
16
  };
17
17
  /**
18
- * @description Verify am [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data signature. This function is interoperable with all wallet types (smart accounts or EOAs).
18
+ * Verify am [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data signature. This function is interoperable with all wallet types (smart accounts or EOAs).
19
19
  *
20
20
  * @param {string} options.address The address that signed the typed data
21
21
  * @param {string | Uint8Array | Signature} options.signature The signature that was signed
@@ -6,7 +6,7 @@ import type { Prettify } from "../../../utils/type-utils.js";
6
6
  import type { Account } from "../../../wallets/interfaces/wallet.js";
7
7
  /**
8
8
  * Represents the parameters for the `addSigner` function.
9
- * @description
9
+ *
10
10
  * This function can be used wither be provided pre-generated signatures or the wallet accounts directly.
11
11
  * This is done so the helpers can be used when there's no direct access to the account, but signatures can be generated (e.g. engine)
12
12
  *
@@ -6,7 +6,7 @@ import type { Prettify } from "../../../utils/type-utils.js";
6
6
  import type { Account } from "../../../wallets/interfaces/wallet.js";
7
7
  /**
8
8
  * Represents the parameters for the `addSignerFor` function.
9
- * @description
9
+ *
10
10
  * This function can be used wither be provided pre-generated signatures or the wallet accounts directly.
11
11
  * This is done so the helpers can be used when there's no direct access to the account, but signatures can be generated (e.g. engine)
12
12
  *
@@ -6,7 +6,7 @@ import type { Prettify } from "../../../utils/type-utils.js";
6
6
  import type { Account } from "../../../wallets/interfaces/wallet.js";
7
7
  /**
8
8
  * Represents the parameters for the `registerFidAndSigner` function.
9
- * @description
9
+ *
10
10
  * This function can be used wither be provided pre-generated signatures or the wallet accounts directly.
11
11
  * This is done so the helpers can be used when there's no direct access to the account, but signatures can be generated (e.g. engine)
12
12
  *
@@ -40,5 +40,6 @@ export declare function useSiweAuth(activeWallet?: Wallet, activeAccount?: Accou
40
40
  isLoggingOut: boolean;
41
41
  isLoggedIn: boolean | undefined;
42
42
  isLoading: boolean;
43
+ isPending: boolean;
43
44
  };
44
45
  //# sourceMappingURL=useSiweAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSiweAuth.d.ts","sourceRoot":"","sources":["../../../../../../src/react/core/hooks/auth/useSiweAuth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAE9F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAEhF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAG5B;;;OAGG;IACH,eAAe,EAAE,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IAI5B;;;OAGG;IACH,OAAO,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAI7D;;OAEG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAI9B;;;OAGG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACnD,CAAC;AAEF;;GAEG;AACH,wBAAgB,WAAW,CACzB,YAAY,CAAC,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,OAAO,EACvB,WAAW,CAAC,EAAE,eAAe;;;;;;;;EAmG9B"}
1
+ {"version":3,"file":"useSiweAuth.d.ts","sourceRoot":"","sources":["../../../../../../src/react/core/hooks/auth/useSiweAuth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAE9F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAEhF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAG5B;;;OAGG;IACH,eAAe,EAAE,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IAI5B;;;OAGG;IACH,OAAO,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAI7D;;OAEG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAI9B;;;OAGG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACnD,CAAC;AAEF;;GAEG;AACH,wBAAgB,WAAW,CACzB,YAAY,CAAC,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,OAAO,EACvB,WAAW,CAAC,EAAE,eAAe;;;;;;;;;EAoG9B"}
@@ -4,7 +4,7 @@ export type DownloadOptions = Prettify<ResolveSchemeOptions & {
4
4
  requestTimeoutMs?: number;
5
5
  }>;
6
6
  /**
7
- * @description Downloads a file from the specified IPFS, Arweave, or HTTP URI.
7
+ * Downloads a file from the specified IPFS, Arweave, or HTTP URI.
8
8
  *
9
9
  * `download` will parse the provided URI based on its scheme (ipfs://, ar://, https://) and convert it to a URL to fetch the file from thirdweb's storage service.
10
10
  *
@@ -9,7 +9,7 @@
9
9
  */
10
10
  export type Filter<T extends readonly unknown[], P, Acc extends readonly unknown[] = []> = T extends readonly [infer F, ...infer Rest extends readonly unknown[]] ? [F] extends [P] ? Filter<Rest, P, [...Acc, F]> : Filter<Rest, P, Acc> : readonly [...Acc];
11
11
  /**
12
- * @description Makes attributes on the type T required if TRequired is true.
12
+ * Makes attributes on the type T required if TRequired is true.
13
13
  * @example
14
14
  * MaybeRequired<{ a: string, b?: number }, true>
15
15
  * => { a: string, b: number }
@@ -19,7 +19,7 @@ export type Filter<T extends readonly unknown[], P, Acc extends readonly unknown
19
19
  */
20
20
  export type MaybeRequired<T, TRequired extends boolean> = TRequired extends true ? Required<T> : T;
21
21
  /**
22
- * @description Combines members of an intersection into a readable type.
22
+ * Combines members of an intersection into a readable type.
23
23
  * @see {@link https://twitter.com/mattpocockuk/status/1622730173446557697?s=20&t=NdpAcmEFXY01xkqU3KO0Mg}
24
24
  * @example
25
25
  * Prettify<{ a: string } & { b: string } & { c: number, d: bigint }>
@@ -1,2 +1,2 @@
1
- export declare const version = "5.96.2";
1
+ export declare const version = "5.96.4-nightly-e28eb73894f2784b528a95a8cd34f1865362ac12-20250425000402";
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,WAAW,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,2EAA2E,CAAC"}
@@ -3,7 +3,6 @@ import type { Ecosystem } from "../wallet/types.js";
3
3
  import type { ClientScopedStorage } from "./client-scoped-storage.js";
4
4
  import type { Profile } from "./types.js";
5
5
  /**
6
- * @description
7
6
  * Links a new account to the current one using an auth token.
8
7
  * For the public-facing API, use `wallet.linkProfile` instead.
9
8
  *
@@ -16,7 +15,6 @@ export declare function linkAccount({ client, ecosystem, tokenToLink, storage, }
16
15
  storage: ClientScopedStorage;
17
16
  }): Promise<Profile[]>;
18
17
  /**
19
- * @description
20
18
  * Links a new account to the current one using an auth token.
21
19
  * For the public-facing API, use `wallet.linkProfile` instead.
22
20
  *
@@ -29,7 +27,6 @@ export declare function unlinkAccount({ client, ecosystem, profileToUnlink, stor
29
27
  storage: ClientScopedStorage;
30
28
  }): Promise<Profile[]>;
31
29
  /**
32
- * @description
33
30
  * Gets the linked accounts for the current user.
34
31
  * For the public-facing API, use `wallet.getProfiles` instead.
35
32
  *
@@ -1 +1 @@
1
- {"version":3,"file":"linkAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/linkAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,EAChC,MAAM,EACN,SAAS,EACT,WAAW,EACX,OAAO,GACR,EAAE;IACD,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,mBAAmB,CAAC;CAC9B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAgCrB;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,EAClC,MAAM,EACN,SAAS,EACT,eAAe,EACf,OAAO,GACR,EAAE;IACD,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,mBAAmB,CAAC;CAC9B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CA8BrB;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,CAAC,EAC9C,MAAM,EACN,SAAS,EACT,OAAO,GACR,EAAE;IACD,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,EAAE,mBAAmB,CAAC;CAC9B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CA6BrB"}
1
+ {"version":3,"file":"linkAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/linkAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,EAChC,MAAM,EACN,SAAS,EACT,WAAW,EACX,OAAO,GACR,EAAE;IACD,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,mBAAmB,CAAC;CAC9B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAgCrB;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,EAClC,MAAM,EACN,SAAS,EACT,eAAe,EACf,OAAO,GACR,EAAE;IACD,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,mBAAmB,CAAC;CAC9B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CA8BrB;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAAC,EAC9C,MAAM,EACN,SAAS,EACT,OAAO,GACR,EAAE;IACD,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,EAAE,mBAAmB,CAAC;CAC9B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CA6BrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thirdweb",
3
- "version": "5.96.2",
3
+ "version": "5.96.4-nightly-e28eb73894f2784b528a95a8cd34f1865362ac12-20250425000402",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -3,7 +3,7 @@ import type { Hex } from "../utils/encoding/hex.js";
3
3
  import { ERC_6492_MAGIC_VALUE } from "./constants.js";
4
4
 
5
5
  /**
6
- * @description Determines if a signature is compatible with [ERC6492](https://eips.ethereum.org/EIPS/eip-6492)
6
+ * Determines if a signature is compatible with [ERC6492](https://eips.ethereum.org/EIPS/eip-6492)
7
7
  *
8
8
  * @param {Hex} signature The signature to check for ERC6492 compatibility
9
9
  *
@@ -13,7 +13,7 @@ export type ParseErc6492SignatureReturnType = OneOf<
13
13
  >;
14
14
 
15
15
  /**
16
- * @description Parses a serialized ({@link Hex}) [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) signature.
16
+ * Parses a serialized ({@link Hex}) [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) signature.
17
17
  * If the signature is not in ERC-6492 format, the original signature is returned.
18
18
  *
19
19
  * @param {Hex} signature The signature to parse
@@ -5,7 +5,7 @@ import { ERC_6492_MAGIC_VALUE } from "./constants.js";
5
5
  import type { Erc6492Signature } from "./types.js";
6
6
 
7
7
  /**
8
- * @description Serializes a signature for use with [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). The signature must be generated by a signer for an [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) Account Factory account with counterfactual deployment addresses.
8
+ * Serializes a signature for use with [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). The signature must be generated by a signer for an [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) Account Factory account with counterfactual deployment addresses.
9
9
  *
10
10
  * @param {@link Erc6492Signature} signature The signature object to serialize into Hex format
11
11
  * @param {string} signature.address The ERC-4337 Account Factory address
@@ -32,7 +32,7 @@ const ZKSYNC_VALIDATOR_ADDRESS: Address =
32
32
  "0xfB688330379976DA81eB64Fe4BF50d7401763B9C";
33
33
 
34
34
  /**
35
- * @description Verify that an address created the provided signature for a given hash using [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). This function is interoperable with all wallet types, including EOAs.
35
+ * Verify that an address created the provided signature for a given hash using [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). This function is interoperable with all wallet types, including EOAs.
36
36
  * This function should rarely be used directly, instead use @see {import("./verify-signature.js")} and @see {import("./verify-typed-data.js")}}
37
37
  *
38
38
  * @param {Hex} options.hash The hash that was signed
@@ -74,7 +74,7 @@ export type VerifyContractWalletSignatureParams = Prettify<
74
74
  >;
75
75
 
76
76
  /**
77
- * @description Verifies a contract wallet signature using [ERC-6942](https://eips.ethereum.org/EIPS/eip-6942) Signature Validation for Predeploy Contracts.
77
+ * Verifies a contract wallet signature using [ERC-6942](https://eips.ethereum.org/EIPS/eip-6942) Signature Validation for Predeploy Contracts.
78
78
  * This function will validate signatures for both deployed and undeployed smart accounts of all signature types.
79
79
  *
80
80
  * @param {@link VerifyContractWalletSignatureParams} options - The parameters for verifying the signature.
@@ -24,7 +24,7 @@ export type VerifyTypedDataParams<
24
24
  };
25
25
 
26
26
  /**
27
- * @description Verify am [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data signature. This function is interoperable with all wallet types (smart accounts or EOAs).
27
+ * Verify am [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data signature. This function is interoperable with all wallet types (smart accounts or EOAs).
28
28
  *
29
29
  * @param {string} options.address The address that signed the typed data
30
30
  * @param {string | Uint8Array | Signature} options.signature The signature that was signed
@@ -38,7 +38,7 @@ export type VerifyTypedDataParams<
38
38
  * @param {typeof VerifyTypedDataParams.types} options.types The EIP-712 types that were signed.
39
39
  *
40
40
  * @returns {Promise<boolean>} A promise that resolves to `true` if the signature is valid, or `false` otherwise.
41
- *
41
+ *
42
42
  * @example
43
43
  * ```ts
44
44
  * import { verifyTypedData } from "thirdweb/utils";
@@ -11,7 +11,7 @@ import { getFid } from "../read/getFid.js";
11
11
 
12
12
  /**
13
13
  * Represents the parameters for the `addSigner` function.
14
- * @description
14
+ *
15
15
  * This function can be used wither be provided pre-generated signatures or the wallet accounts directly.
16
16
  * This is done so the helpers can be used when there's no direct access to the account, but signatures can be generated (e.g. engine)
17
17
  *
@@ -12,7 +12,7 @@ import { getFid } from "../read/getFid.js";
12
12
 
13
13
  /**
14
14
  * Represents the parameters for the `addSignerFor` function.
15
- * @description
15
+ *
16
16
  * This function can be used wither be provided pre-generated signatures or the wallet accounts directly.
17
17
  * This is done so the helpers can be used when there's no direct access to the account, but signatures can be generated (e.g. engine)
18
18
  *
@@ -12,7 +12,7 @@ import { getFid } from "../read/getFid.js";
12
12
 
13
13
  /**
14
14
  * Represents the parameters for the `registerFidAndSigner` function.
15
- * @description
15
+ *
16
16
  * This function can be used wither be provided pre-generated signatures or the wallet accounts directly.
17
17
  * This is done so the helpers can be used when there's no direct access to the account, but signatures can be generated (e.g. engine)
18
18
  *
@@ -110,7 +110,7 @@ export function useSiweAuth(
110
110
 
111
111
  return await authOptions.doLogin(signedPayload);
112
112
  },
113
- onSettled: () => {
113
+ onSuccess: () => {
114
114
  return queryClient.invalidateQueries({
115
115
  queryKey: ["siwe_auth", "isLoggedIn"],
116
116
  });
@@ -126,7 +126,7 @@ export function useSiweAuth(
126
126
 
127
127
  return await authOptions.doLogout();
128
128
  },
129
- onSettled: () => {
129
+ onSuccess: () => {
130
130
  return queryClient.invalidateQueries({
131
131
  queryKey: ["siwe_auth", "isLoggedIn"],
132
132
  });
@@ -148,5 +148,6 @@ export function useSiweAuth(
148
148
  // checking if logged in
149
149
  isLoggedIn: isLoggedInQuery.data,
150
150
  isLoading: isLoggedInQuery.isFetching,
151
+ isPending: isLoggedInQuery.isPending,
151
152
  };
152
153
  }
@@ -479,7 +479,7 @@ function ConnectButtonInner(
479
479
  if (siweAuth.requiresAuth) {
480
480
  // loading state if loading
481
481
  // TODO: figure out a way to consolidate the loading states with the ones from locale loading
482
- if (siweAuth.isLoading || siweAuth.isLoggingIn || siweAuth.isLoggingOut) {
482
+ if (siweAuth.isPending || siweAuth.isLoggingIn || siweAuth.isLoggingOut) {
483
483
  const combinedClassName = `${props.connectButton?.className || ""} ${TW_CONNECT_WALLET}`;
484
484
  return (
485
485
  <AnimatedButton
@@ -71,7 +71,7 @@ export const SignatureScreen: React.FC<{
71
71
  }
72
72
  }, [onDone, siweAuth]);
73
73
 
74
- if (!wallet || siweAuth.isLoading) {
74
+ if (!wallet || siweAuth.isPending) {
75
75
  return <LoadingScreen data-testid="loading-screen" />;
76
76
  }
77
77
 
@@ -11,7 +11,7 @@ export type DownloadOptions = Prettify<
11
11
  >;
12
12
 
13
13
  /**
14
- * @description Downloads a file from the specified IPFS, Arweave, or HTTP URI.
14
+ * Downloads a file from the specified IPFS, Arweave, or HTTP URI.
15
15
  *
16
16
  * `download` will parse the provided URI based on its scheme (ipfs://, ar://, https://) and convert it to a URL to fetch the file from thirdweb's storage service.
17
17
  *
@@ -18,7 +18,7 @@ export type Filter<
18
18
  : readonly [...Acc];
19
19
 
20
20
  /**
21
- * @description Makes attributes on the type T required if TRequired is true.
21
+ * Makes attributes on the type T required if TRequired is true.
22
22
  * @example
23
23
  * MaybeRequired<{ a: string, b?: number }, true>
24
24
  * => { a: string, b: number }
@@ -31,7 +31,7 @@ export type MaybeRequired<T, TRequired extends boolean> = TRequired extends true
31
31
  : T;
32
32
 
33
33
  /**
34
- * @description Combines members of an intersection into a readable type.
34
+ * Combines members of an intersection into a readable type.
35
35
  * @see {@link https://twitter.com/mattpocockuk/status/1622730173446557697?s=20&t=NdpAcmEFXY01xkqU3KO0Mg}
36
36
  * @example
37
37
  * Prettify<{ a: string } & { b: string } & { c: number, d: bigint }>
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = "5.96.2";
1
+ export const version = "5.96.4-nightly-e28eb73894f2784b528a95a8cd34f1865362ac12-20250425000402";
@@ -7,7 +7,6 @@ import type { ClientScopedStorage } from "./client-scoped-storage.js";
7
7
  import type { Profile } from "./types.js";
8
8
 
9
9
  /**
10
- * @description
11
10
  * Links a new account to the current one using an auth token.
12
11
  * For the public-facing API, use `wallet.linkProfile` instead.
13
12
  *
@@ -58,7 +57,6 @@ export async function linkAccount({
58
57
  }
59
58
 
60
59
  /**
61
- * @description
62
60
  * Links a new account to the current one using an auth token.
63
61
  * For the public-facing API, use `wallet.linkProfile` instead.
64
62
  *
@@ -107,7 +105,6 @@ export async function unlinkAccount({
107
105
  }
108
106
 
109
107
  /**
110
- * @description
111
108
  * Gets the linked accounts for the current user.
112
109
  * For the public-facing API, use `wallet.getProfiles` instead.
113
110
  *