@lobehub/ui 1.103.0 → 1.103.1

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.
@@ -24,6 +24,7 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
24
24
  var isImage = Boolean(avatar && ['/', 'http', 'data:'].some(function (index) {
25
25
  return avatar.startsWith(index);
26
26
  }));
27
+ var isBase64 = Boolean(avatar === null || avatar === void 0 ? void 0 : avatar.startsWith('data'));
27
28
  var emoji = useMemo(function () {
28
29
  return avatar && !isImage && getEmoji(avatar);
29
30
  }, [avatar]);
@@ -39,7 +40,8 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
39
40
  className: cx(styles.avatar, className),
40
41
  shape: shape,
41
42
  size: size,
42
- srcSet: avatar
43
+ src: isBase64 ? avatar : undefined,
44
+ srcSet: isBase64 ? undefined : avatar
43
45
  }, props)) : /*#__PURE__*/_jsx(AntAvatar, _objectSpread(_objectSpread({
44
46
  className: cx(styles.avatar, className),
45
47
  shape: shape,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.103.0",
3
+ "version": "1.103.1",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",