@aptos-labs/wallet-adapter-mui-design 2.4.2 → 2.5.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-mui-design
2
2
 
3
+ ## 2.5.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.4.2
4
15
 
5
16
  ### Patch Changes
package/dist/index.js CHANGED
@@ -55,7 +55,7 @@ function WalletMenu({
55
55
  };
56
56
  const [tooltipOpen, setTooltipOpen] = (0, import_react.useState)(false);
57
57
  const copyAddress = async (event) => {
58
- await navigator.clipboard.writeText(account == null ? void 0 : account.address);
58
+ await navigator.clipboard.writeText(account == null ? void 0 : account.address.toString());
59
59
  setTooltipOpen(true);
60
60
  setTimeout(() => {
61
61
  setTooltipOpen(false);
@@ -175,7 +175,7 @@ function WalletButton({
175
175
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material2.Typography, {
176
176
  noWrap: true,
177
177
  ml: 2,
178
- children: (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address)
178
+ children: (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address.toString())
179
179
  })
180
180
  ]
181
181
  }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
package/dist/index.mjs CHANGED
@@ -36,7 +36,7 @@ function WalletMenu({
36
36
  };
37
37
  const [tooltipOpen, setTooltipOpen] = useState(false);
38
38
  const copyAddress = async (event) => {
39
- await navigator.clipboard.writeText(account == null ? void 0 : account.address);
39
+ await navigator.clipboard.writeText(account == null ? void 0 : account.address.toString());
40
40
  setTooltipOpen(true);
41
41
  setTimeout(() => {
42
42
  setTooltipOpen(false);
@@ -156,7 +156,7 @@ function WalletButton({
156
156
  /* @__PURE__ */ jsx2(Typography, {
157
157
  noWrap: true,
158
158
  ml: 2,
159
- children: (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address)
159
+ children: (account == null ? void 0 : account.ansName) ? account == null ? void 0 : account.ansName : truncateAddress(account == null ? void 0 : account.address.toString())
160
160
  })
161
161
  ]
162
162
  }) : /* @__PURE__ */ jsxs2(Fragment, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/wallet-adapter-mui-design",
3
- "version": "2.4.2",
3
+ "version": "2.5.0",
4
4
  "description": "Aptos Wallet Adapter mui design",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -41,7 +41,7 @@
41
41
  "@emotion/styled": "^11.10.5",
42
42
  "@mui/icons-material": "^5.11.0",
43
43
  "@mui/material": "^5.11.6",
44
- "@aptos-labs/wallet-adapter-react": "2.5.1"
44
+ "@aptos-labs/wallet-adapter-react": "3.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "^18",
@@ -52,7 +52,7 @@ export default function WalletButton({
52
52
  <Typography noWrap ml={2}>
53
53
  {account?.ansName
54
54
  ? account?.ansName
55
- : truncateAddress(account?.address!)}
55
+ : truncateAddress(account?.address.toString()!)}
56
56
  </Typography>
57
57
  </>
58
58
  ) : (
@@ -37,7 +37,7 @@ export default function WalletMenu({
37
37
  const [tooltipOpen, setTooltipOpen] = useState<boolean>(false);
38
38
 
39
39
  const copyAddress = async (event: React.MouseEvent<HTMLDivElement>) => {
40
- await navigator.clipboard.writeText(account?.address!);
40
+ await navigator.clipboard.writeText(account?.address.toString()!);
41
41
 
42
42
  setTooltipOpen(true);
43
43