@arcblock/ux 2.10.59 → 2.10.61

Sign up to get free protection for your applications and to get access to all the features.
package/lib/Util/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-bitwise */
2
2
  import padStart from 'lodash/padStart';
3
3
  import { getDIDMotifInfo, colors } from '@arcblock/did-motif';
4
- import { DID_PREFIX } from './constant';
4
+ import { DID_PREFIX, WELLKNOWN_SERVICE_PATH_PREFIX } from './constant';
5
5
  let dateTool = null;
6
6
  export function parseQuery(str) {
7
7
  return str.replace(/^\?/, '').split('&').map(x => x.split('=')).filter(([key]) => !!key).reduce((memo, x) => {
@@ -291,7 +291,7 @@ export const getUserAvatar = (avatar, size = 48) => {
291
291
  if (!avatar) {
292
292
  return avatar;
293
293
  }
294
- if (avatar.indexOf('/.well-known/service') >= 0) {
294
+ if (avatar.indexOf(WELLKNOWN_SERVICE_PATH_PREFIX) >= 0) {
295
295
  return appendParams(avatar, {
296
296
  imageFilter: 'resize',
297
297
  w: size,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.10.59",
3
+ "version": "2.10.61",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -64,12 +64,12 @@
64
64
  "react": ">=18.2.0",
65
65
  "react-router-dom": ">=6.22.3"
66
66
  },
67
- "gitHead": "6e83602a81e7f104f3f0b6cb94d22a1974becef2",
67
+ "gitHead": "281ea6ca4acf367c8011e926e5baaf16ea991367",
68
68
  "dependencies": {
69
69
  "@arcblock/did-motif": "^1.1.13",
70
- "@arcblock/icons": "^2.10.59",
71
- "@arcblock/nft-display": "^2.10.59",
72
- "@arcblock/react-hooks": "^2.10.59",
70
+ "@arcblock/icons": "^2.10.61",
71
+ "@arcblock/nft-display": "^2.10.61",
72
+ "@arcblock/react-hooks": "^2.10.61",
73
73
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
74
74
  "@fontsource/inter": "^5.0.16",
75
75
  "@fontsource/ubuntu-mono": "^5.0.18",
package/src/Util/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-bitwise */
2
2
  import padStart from 'lodash/padStart';
3
3
  import { getDIDMotifInfo, colors } from '@arcblock/did-motif';
4
- import { DID_PREFIX } from './constant';
4
+ import { DID_PREFIX, WELLKNOWN_SERVICE_PATH_PREFIX } from './constant';
5
5
 
6
6
  let dateTool = null;
7
7
 
@@ -320,7 +320,7 @@ export const getUserAvatar = (avatar, size = 48) => {
320
320
  return avatar;
321
321
  }
322
322
 
323
- if (avatar.indexOf('/.well-known/service') >= 0) {
323
+ if (avatar.indexOf(WELLKNOWN_SERVICE_PATH_PREFIX) >= 0) {
324
324
  return appendParams(avatar, {
325
325
  imageFilter: 'resize',
326
326
  w: size,