@aptos-labs/wallet-adapter-ant-design 2.3.2 → 2.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @aptos-labs/wallet-adapter-ant-design
2
2
 
3
+ ## 2.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @aptos-labs/wallet-adapter-react@3.0.1
8
+
9
+ ## 2.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 2c826a4: Support account prop to be of AIP-62 AccountInfo type
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [2c826a4]
18
+ - @aptos-labs/wallet-adapter-react@3.0.0
19
+
3
20
  ## 2.3.2
4
21
 
5
22
  ### Patch Changes
package/dist/index.js CHANGED
@@ -70,7 +70,7 @@ function WalletSelector({
70
70
  setModalOpen(false);
71
71
  }
72
72
  };
73
- const buttonText = (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address);
73
+ const buttonText = (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address.toString());
74
74
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
75
75
  children: [
76
76
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Button, {
package/dist/index.mjs CHANGED
@@ -48,7 +48,7 @@ function WalletSelector({
48
48
  setModalOpen(false);
49
49
  }
50
50
  };
51
- const buttonText = (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address);
51
+ const buttonText = (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address.toString());
52
52
  return /* @__PURE__ */ jsxs(Fragment, {
53
53
  children: [
54
54
  /* @__PURE__ */ jsx(Button, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/wallet-adapter-ant-design",
3
- "version": "2.3.2",
3
+ "version": "2.4.1",
4
4
  "description": "Aptos Wallet Adapter ant-design",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "antd": "^5.1.2",
47
- "@aptos-labs/wallet-adapter-react": "2.5.1"
47
+ "@aptos-labs/wallet-adapter-react": "3.0.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "^18",
@@ -54,7 +54,7 @@ export function WalletSelector({
54
54
  };
55
55
  const buttonText = account?.ansName
56
56
  ? account?.ansName
57
- : truncateAddress(account?.address);
57
+ : truncateAddress(account?.address.toString());
58
58
  return (
59
59
  <>
60
60
  <Button className="wallet-button" onClick={() => onWalletButtonClick()}>