@blocklet/ui-react 2.13.43 → 2.13.45

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.
@@ -200,11 +200,11 @@ function EditableField({
200
200
  alignItems: "center",
201
201
  gap: 1,
202
202
  children: [
203
- React.cloneElement(icon, {
203
+ icon ? React.cloneElement(icon, {
204
204
  style: {
205
205
  filter: isDark ? "brightness(0) saturate(100%) invert(1)" : "none"
206
206
  }
207
- }),
207
+ }) : null,
208
208
  /* @__PURE__ */ jsxs(Box, { display: "flex", flexDirection: "row", alignItems: "center", width: "90%", children: [
209
209
  /* @__PURE__ */ jsx(
210
210
  Typography,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.13.43",
3
+ "version": "2.13.45",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -34,8 +34,8 @@
34
34
  "dependencies": {
35
35
  "@abtnode/constant": "^1.16.43",
36
36
  "@abtnode/util": "^1.16.43",
37
- "@arcblock/bridge": "^2.13.43",
38
- "@arcblock/react-hooks": "^2.13.43",
37
+ "@arcblock/bridge": "^2.13.45",
38
+ "@arcblock/react-hooks": "^2.13.45",
39
39
  "@arcblock/ws": "^1.20.11",
40
40
  "@blocklet/constant": "^1.16.43",
41
41
  "@blocklet/did-space-react": "^1.0.53",
@@ -94,5 +94,5 @@
94
94
  "jest": "^29.7.0",
95
95
  "unbuild": "^2.0.0"
96
96
  },
97
- "gitHead": "9b65dc9fcef38218cbf4852cb31a1b76afffab33"
97
+ "gitHead": "5cf352046f4ca17b469e97a54d0c48205454b37c"
98
98
  }
@@ -230,11 +230,13 @@ function EditableField({
230
230
  display="flex"
231
231
  alignItems="center"
232
232
  gap={1}>
233
- {React.cloneElement(icon as React.ReactElement, {
234
- style: {
235
- filter: isDark ? 'brightness(0) saturate(100%) invert(1)' : 'none',
236
- },
237
- })}
233
+ {icon
234
+ ? React.cloneElement(icon as React.ReactElement, {
235
+ style: {
236
+ filter: isDark ? 'brightness(0) saturate(100%) invert(1)' : 'none',
237
+ },
238
+ })
239
+ : null}
238
240
  <Box display="flex" flexDirection="row" alignItems="center" width="90%">
239
241
  <Typography
240
242
  sx={{