@aptos-labs/wallet-adapter-mui-design 0.1.2 → 0.2.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 +6 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +10 -10
- package/src/WalletButton.tsx +3 -1
- package/dist/index.global.js +0 -528
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -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: 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)
|
|
179
179
|
})
|
|
180
180
|
]
|
|
181
181
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
package/dist/index.mjs
CHANGED
|
@@ -156,7 +156,7 @@ function WalletButton({
|
|
|
156
156
|
/* @__PURE__ */ jsx2(Typography, {
|
|
157
157
|
noWrap: true,
|
|
158
158
|
ml: 2,
|
|
159
|
-
children: 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)
|
|
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": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Aptos Wallet Adapter mui design",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -28,19 +28,13 @@
|
|
|
28
28
|
"Wallet Adapter Provider",
|
|
29
29
|
"React"
|
|
30
30
|
],
|
|
31
|
-
"scripts": {
|
|
32
|
-
"build": "tsup src/index.tsx --format esm,cjs --dts --external react",
|
|
33
|
-
"dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",
|
|
34
|
-
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
35
|
-
"lint": "TIMING=1 eslint \"src/**/*.ts*\""
|
|
36
|
-
},
|
|
37
31
|
"devDependencies": {
|
|
38
|
-
"@aptos-labs/wallet-adapter-tsconfig": "workspace:*",
|
|
39
32
|
"@types/react": "^18.0.17",
|
|
40
33
|
"@types/react-dom": "^18.0.6",
|
|
41
34
|
"eslint": "^8.15.0",
|
|
42
35
|
"tsup": "^5.10.1",
|
|
43
|
-
"typescript": "^4.5.3"
|
|
36
|
+
"typescript": "^4.5.3",
|
|
37
|
+
"@aptos-labs/wallet-adapter-tsconfig": "0.0.0"
|
|
44
38
|
},
|
|
45
39
|
"dependencies": {
|
|
46
40
|
"@aptos-labs/wallet-adapter-react": "1.0.3",
|
|
@@ -53,5 +47,11 @@
|
|
|
53
47
|
"react": "^18",
|
|
54
48
|
"react-dom": "^18.2.0",
|
|
55
49
|
"react-router-dom": "^6.8.0"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsup src/index.tsx --format esm,cjs --dts --external react",
|
|
53
|
+
"dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",
|
|
54
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
55
|
+
"lint": "TIMING=1 eslint \"src/**/*.ts*\""
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|
package/src/WalletButton.tsx
CHANGED
|
@@ -50,7 +50,9 @@ export default function WalletButton({
|
|
|
50
50
|
sx={{ width: 24, height: 24 }}
|
|
51
51
|
/>
|
|
52
52
|
<Typography noWrap ml={2}>
|
|
53
|
-
{
|
|
53
|
+
{account?.ansName
|
|
54
|
+
? account?.ansName
|
|
55
|
+
: truncateAddress(account?.address!)}
|
|
54
56
|
</Typography>
|
|
55
57
|
</>
|
|
56
58
|
) : (
|