@arcblock/ux 3.4.5 → 3.4.6

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.
@@ -1,26 +1,27 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { useState as p } from "react";
3
- import { joinURL as a } from "ufo";
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { useState as a } from "react";
3
+ import { joinURL as p } from "ufo";
4
4
  import u from "../Img/index.js";
5
5
  import { isUrl as c } from "../Util/index.js";
6
- import d from "../Avatar/index.js";
7
- function E({ appInfo: r, size: t = 32, ...m }) {
8
- const [e, l] = p(!1);
9
- if (e || !(r.appUrl || r.appLogo))
10
- return /* @__PURE__ */ i(d, { did: r.appPid, size: t });
6
+ import s from "../Avatar/index.js";
7
+ function x({ appInfo: r, size: t = 32, ...i }) {
8
+ const [m, l] = a(!1);
9
+ if (m || !(r.appUrl || r.appLogo))
10
+ return /* @__PURE__ */ e(s, { did: r.appPid, size: t });
11
11
  let o = r.appLogo || "";
12
- return c(o) || (o = a(r.appUrl || "", o)), /* @__PURE__ */ i(
12
+ return c(o) || (o = p(r.appUrl || "", o)), /* @__PURE__ */ e(
13
13
  u,
14
14
  {
15
15
  src: o,
16
16
  alt: r.appName || "Blocklet Icon",
17
17
  width: t,
18
18
  height: t,
19
- ...m,
19
+ useProxyFallback: !0,
20
+ ...i,
20
21
  onError: () => l(!0)
21
22
  }
22
23
  );
23
24
  }
24
25
  export {
25
- E as default
26
+ x as default
26
27
  };
@@ -1,4 +1,4 @@
1
- const e = "3.4.5", s = { "@blocklet/js-sdk": "^1.17.7" }, n = {
1
+ const e = "3.4.6", s = { "@blocklet/js-sdk": "^1.17.7" }, n = {
2
2
  version: e,
3
3
  dependencies: s
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "3.4.5",
3
+ "version": "3.4.6",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -68,16 +68,16 @@
68
68
  "react": "^19.0.0",
69
69
  "react-router-dom": "^6.22.3"
70
70
  },
71
- "gitHead": "a944f14b25e2fd8cd0e7e32b3c3ce276961e6b64",
71
+ "gitHead": "aea3f5520b4d9ba35ef714a8036eb8f4994ce733",
72
72
  "dependencies": {
73
- "@arcblock/bridge": "3.4.5",
73
+ "@arcblock/bridge": "3.4.6",
74
74
  "@arcblock/did": "^1.28.2",
75
75
  "@arcblock/did-motif": "^1.1.14",
76
- "@arcblock/icons": "3.4.5",
77
- "@arcblock/nft-display": "3.4.5",
78
- "@arcblock/react-hooks": "3.4.5",
76
+ "@arcblock/icons": "3.4.6",
77
+ "@arcblock/nft-display": "3.4.6",
78
+ "@arcblock/react-hooks": "3.4.6",
79
79
  "@blocklet/js-sdk": "^1.17.7",
80
- "@blocklet/theme": "3.4.5",
80
+ "@blocklet/theme": "3.4.6",
81
81
  "@fontsource/roboto": "~5.1.1",
82
82
  "@fontsource/ubuntu-mono": "^5.2.6",
83
83
  "@iconify-icons/logos": "^1.2.36",
@@ -29,6 +29,7 @@ export default function AppIcon({ appInfo, size = 32, ...rest }: AppIconProps) {
29
29
  alt={appInfo.appName || 'Blocklet Icon'}
30
30
  width={size}
31
31
  height={size}
32
+ useProxyFallback
32
33
  {...rest}
33
34
  onError={() => setError(true)}
34
35
  />