@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 CHANGED
@@ -59,6 +59,7 @@ const DID = /*#__PURE__*/forwardRef(({
59
59
  const fontSize = getFontSize(rest.size);
60
60
  const prepend = [/*#__PURE__*/_jsx("span", {
61
61
  style: {
62
+ flex: '0 0 auto',
62
63
  fontSize,
63
64
  color: getFontColor(did, didMotifInfo, isEthDid)
64
65
  },
@@ -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
  },
@@ -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.21",
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": "e062f36c174f8244d0f18a1e99f11414cb2da516",
327
+ "gitHead": "f119af381de46921d0bddcaef6f6326a1c31b958",
328
328
  "dependencies": {
329
329
  "@arcblock/did-motif": "^1.1.13",
330
- "@arcblock/icons": "^2.8.21",
331
- "@arcblock/react-hooks": "^2.8.21",
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 }}>
@@ -123,7 +123,7 @@ function NFTDisplay({
123
123
  urlObj.searchParams.append('assetId', address);
124
124
  }
125
125
 
126
- if (!urlObj.searchParams.has('vcId')) {
126
+ if (!urlObj.searchParams.has('vcId') && vcId) {
127
127
  urlObj.searchParams.append('vcId', vcId);
128
128
  }
129
129