@arcblock/ux 2.8.21 → 2.8.23
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/es/DID/index.js +1 -0
- package/es/NFTDisplay/index.js +1 -1
- package/lib/DID/index.js +1 -0
- package/lib/NFTDisplay/index.js +1 -1
- package/package.json +4 -4
- package/src/DID/index.jsx +1 -1
- package/src/NFTDisplay/index.js +1 -1
package/es/DID/index.js
CHANGED
package/es/NFTDisplay/index.js
CHANGED
|
@@ -129,7 +129,7 @@ function NFTDisplay({
|
|
|
129
129
|
if (!urlObj.searchParams.has('assetId')) {
|
|
130
130
|
urlObj.searchParams.append('assetId', address);
|
|
131
131
|
}
|
|
132
|
-
if (!urlObj.searchParams.has('vcId')) {
|
|
132
|
+
if (!urlObj.searchParams.has('vcId') && vcId) {
|
|
133
133
|
urlObj.searchParams.append('vcId', vcId);
|
|
134
134
|
}
|
|
135
135
|
const url = urlObj.href;
|
package/lib/DID/index.js
CHANGED
|
@@ -77,6 +77,7 @@ const DID = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
77
77
|
const fontSize = (0, _Util.getFontSize)(rest.size);
|
|
78
78
|
const prepend = [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
79
79
|
style: {
|
|
80
|
+
flex: '0 0 auto',
|
|
80
81
|
fontSize,
|
|
81
82
|
color: getFontColor(did, didMotifInfo, isEthDid)
|
|
82
83
|
},
|
package/lib/NFTDisplay/index.js
CHANGED
|
@@ -148,7 +148,7 @@ function NFTDisplay(_ref) {
|
|
|
148
148
|
if (!urlObj.searchParams.has('assetId')) {
|
|
149
149
|
urlObj.searchParams.append('assetId', address);
|
|
150
150
|
}
|
|
151
|
-
if (!urlObj.searchParams.has('vcId')) {
|
|
151
|
+
if (!urlObj.searchParams.has('vcId') && vcId) {
|
|
152
152
|
urlObj.searchParams.append('vcId', vcId);
|
|
153
153
|
}
|
|
154
154
|
const url = urlObj.href;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/ux",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.23",
|
|
4
4
|
"description": "Common used react components for arcblock products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -324,11 +324,11 @@
|
|
|
324
324
|
"peerDependencies": {
|
|
325
325
|
"react": ">=18.1.0"
|
|
326
326
|
},
|
|
327
|
-
"gitHead": "
|
|
327
|
+
"gitHead": "f119af381de46921d0bddcaef6f6326a1c31b958",
|
|
328
328
|
"dependencies": {
|
|
329
329
|
"@arcblock/did-motif": "^1.1.13",
|
|
330
|
-
"@arcblock/icons": "^2.8.
|
|
331
|
-
"@arcblock/react-hooks": "^2.8.
|
|
330
|
+
"@arcblock/icons": "^2.8.23",
|
|
331
|
+
"@arcblock/react-hooks": "^2.8.23",
|
|
332
332
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
333
333
|
"@emotion/react": "^11.10.4",
|
|
334
334
|
"@emotion/styled": "^11.10.4",
|
package/src/DID/index.jsx
CHANGED
|
@@ -67,7 +67,7 @@ const DID = forwardRef(({ did, ...rest }, ref) => {
|
|
|
67
67
|
const didMotifInfo = isEthDid ? undefined : getDIDMotifInfo(did);
|
|
68
68
|
const fontSize = getFontSize(rest.size);
|
|
69
69
|
const prepend = [
|
|
70
|
-
<span key="prefix-did" style={{ fontSize, color: getFontColor(did, didMotifInfo, isEthDid) }}>
|
|
70
|
+
<span key="prefix-did" style={{ flex: '0 0 auto', fontSize, color: getFontColor(did, didMotifInfo, isEthDid) }}>
|
|
71
71
|
DID:
|
|
72
72
|
</span>,
|
|
73
73
|
<span key="prefix-abt" className="did-address-text" style={{ fontSize }}>
|
package/src/NFTDisplay/index.js
CHANGED