@abtnode/ux 1.16.14-beta-3127f514 → 1.16.14-beta-c2843ec5

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.
@@ -67,18 +67,21 @@ const isFromExternal = (user, appIdList) => {
67
67
  });
68
68
  };
69
69
  function SimpleInfo(_ref) {
70
+ var _window$blocklet, _window$blocklet$capa;
70
71
  let {
71
72
  user
72
73
  } = _ref;
73
74
  const {
74
75
  t
75
76
  } = (0, _react.useContext)(_context.LocaleContext);
77
+ const hasImageService = ((_window$blocklet = window.blocklet) === null || _window$blocklet === void 0 ? void 0 : (_window$blocklet$capa = _window$blocklet.capabilities) === null || _window$blocklet$capa === void 0 ? void 0 : _window$blocklet$capa.httpImageFilter) || false;
78
+ const avatar = hasImageService ? "".concat(user.avatar, "/resize?w=48&h=48") : user.avatar;
76
79
  const main = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
77
80
  className: "member-block",
78
81
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
79
82
  className: "member-avatar",
80
83
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
81
- src: user.avatar,
84
+ src: avatar,
82
85
  size: 24,
83
86
  did: user.did,
84
87
  shape: "circle",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.14-beta-3127f514",
3
+ "version": "1.16.14-beta-c2843ec5",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,9 +23,9 @@
23
23
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@abtnode/auth": "1.16.14-beta-3127f514",
27
- "@abtnode/constant": "1.16.14-beta-3127f514",
28
- "@abtnode/util": "1.16.14-beta-3127f514",
26
+ "@abtnode/auth": "1.16.14-beta-c2843ec5",
27
+ "@abtnode/constant": "1.16.14-beta-c2843ec5",
28
+ "@abtnode/util": "1.16.14-beta-c2843ec5",
29
29
  "@ahooksjs/use-url-state": "^3.5.1",
30
30
  "@arcblock/did": "^1.18.87",
31
31
  "@arcblock/did-connect": "^2.6.2",
@@ -35,10 +35,10 @@
35
35
  "@arcblock/react-hooks": "^2.6.2",
36
36
  "@arcblock/terminal": "^2.6.2",
37
37
  "@arcblock/ux": "^2.6.2",
38
- "@blocklet/constant": "1.16.14-beta-3127f514",
38
+ "@blocklet/constant": "1.16.14-beta-c2843ec5",
39
39
  "@blocklet/launcher-layout": "2.1.72",
40
40
  "@blocklet/list": "^0.12.15",
41
- "@blocklet/meta": "1.16.14-beta-3127f514",
41
+ "@blocklet/meta": "1.16.14-beta-c2843ec5",
42
42
  "@blocklet/ui-react": "^2.6.2",
43
43
  "@emotion/react": "^11.10.4",
44
44
  "@emotion/styled": "^11.10.4",
@@ -97,5 +97,5 @@
97
97
  "@babel/preset-react": "^7.18.6",
98
98
  "babel-plugin-inline-react-svg": "^1.1.2"
99
99
  },
100
- "gitHead": "cb397b94b752e71dfc0ba2c4ad08628cf03ce396"
100
+ "gitHead": "968bfad93779a21dd1374eede3ac7d4d6d40822b"
101
101
  }