@aptos-labs/wallet-adapter-ant-design 2.4.0 → 2.4.2

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,19 @@
1
1
  # @aptos-labs/wallet-adapter-ant-design
2
2
 
3
+ ## 2.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 6e152e4: Revert Support account prop to be of AIP-62 AccountInfo type
8
+ - Updated dependencies [6e152e4]
9
+ - @aptos-labs/wallet-adapter-react@3.0.2
10
+
11
+ ## 2.4.1
12
+
13
+ ### Patch Changes
14
+
15
+ - @aptos-labs/wallet-adapter-react@3.0.1
16
+
3
17
  ## 2.4.0
4
18
 
5
19
  ### Minor 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.toString());
73
+ const buttonText = (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address);
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.toString());
51
+ const buttonText = (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address);
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.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "Aptos Wallet Adapter ant-design",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -40,11 +40,11 @@
40
40
  "eslint": "^8.15.0",
41
41
  "tsup": "^5.10.1",
42
42
  "typescript": "^4.5.3",
43
- "@aptos-labs/wallet-adapter-tsconfig": "0.0.0"
43
+ "@aptos-labs/wallet-adapter-tsconfig": "0.0.1"
44
44
  },
45
45
  "dependencies": {
46
46
  "antd": "^5.1.2",
47
- "@aptos-labs/wallet-adapter-react": "3.0.0"
47
+ "@aptos-labs/wallet-adapter-react": "3.0.2"
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.toString());
57
+ : truncateAddress(account?.address);
58
58
  return (
59
59
  <>
60
60
  <Button className="wallet-button" onClick={() => onWalletButtonClick()}>