@aptos-labs/wallet-adapter-ant-design 2.3.2 → 2.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @aptos-labs/wallet-adapter-ant-design
2
2
 
3
+ ## 2.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2c826a4: Support account prop to be of AIP-62 AccountInfo type
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [2c826a4]
12
+ - @aptos-labs/wallet-adapter-react@3.0.0
13
+
3
14
  ## 2.3.2
4
15
 
5
16
  ### 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.0",
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.0"
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()}>