@abtnode/ux 1.16.29-beta-db5c4ed6 → 1.16.29-beta-bb5685f8
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.
|
@@ -272,15 +272,18 @@ function Branding({
|
|
|
272
272
|
}), !readOnly && /*#__PURE__*/_jsx(IconButton, {
|
|
273
273
|
className: "action",
|
|
274
274
|
onClick: () => {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
setParams(item => {
|
|
276
|
+
const arr = [...item.blockletScreenshots];
|
|
277
|
+
arr.splice(index, 1);
|
|
278
|
+
return {
|
|
279
|
+
...item,
|
|
280
|
+
blockletScreenshots: arr
|
|
281
|
+
};
|
|
279
282
|
});
|
|
280
283
|
},
|
|
281
284
|
children: /*#__PURE__*/_jsx(DeleteOutlineIcon, {})
|
|
282
285
|
})]
|
|
283
|
-
})), screenshotUrls.length < 5 && /*#__PURE__*/_jsx(Box, {
|
|
286
|
+
}, x)), screenshotUrls.length < 5 && /*#__PURE__*/_jsx(Box, {
|
|
284
287
|
sx: {
|
|
285
288
|
width: 200,
|
|
286
289
|
height: 140,
|
|
@@ -335,10 +338,13 @@ function Branding({
|
|
|
335
338
|
ref: uploaderScreenshotRef,
|
|
336
339
|
popup: true,
|
|
337
340
|
onUploadFinish: result => {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
341
|
+
setParams(item => {
|
|
342
|
+
const blockletScreenshots = item.blockletScreenshots || [];
|
|
343
|
+
blockletScreenshots.push(result.data?.filename);
|
|
344
|
+
return {
|
|
345
|
+
...item,
|
|
346
|
+
blockletScreenshots
|
|
347
|
+
};
|
|
342
348
|
});
|
|
343
349
|
uploaderScreenshotRef.current.close();
|
|
344
350
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.29-beta-
|
|
3
|
+
"version": "1.16.29-beta-bb5685f8",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@abtnode/auth": "1.16.29-beta-
|
|
29
|
-
"@abtnode/constant": "1.16.29-beta-
|
|
30
|
-
"@abtnode/util": "1.16.29-beta-
|
|
28
|
+
"@abtnode/auth": "1.16.29-beta-bb5685f8",
|
|
29
|
+
"@abtnode/constant": "1.16.29-beta-bb5685f8",
|
|
30
|
+
"@abtnode/util": "1.16.29-beta-bb5685f8",
|
|
31
31
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
32
32
|
"@arcblock/did": "^1.18.124",
|
|
33
33
|
"@arcblock/did-connect": "^2.10.2",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@arcblock/react-hooks": "^2.10.2",
|
|
38
38
|
"@arcblock/terminal": "^2.10.2",
|
|
39
39
|
"@arcblock/ux": "^2.10.2",
|
|
40
|
-
"@blocklet/constant": "1.16.29-beta-
|
|
41
|
-
"@blocklet/js-sdk": "1.16.29-beta-
|
|
40
|
+
"@blocklet/constant": "1.16.29-beta-bb5685f8",
|
|
41
|
+
"@blocklet/js-sdk": "1.16.29-beta-bb5685f8",
|
|
42
42
|
"@blocklet/launcher-layout": "2.3.24",
|
|
43
43
|
"@blocklet/list": "^0.13.4",
|
|
44
|
-
"@blocklet/meta": "1.16.29-beta-
|
|
44
|
+
"@blocklet/meta": "1.16.29-beta-bb5685f8",
|
|
45
45
|
"@blocklet/ui-react": "^2.10.2",
|
|
46
46
|
"@blocklet/uploader": "^0.1.16",
|
|
47
47
|
"@emotion/react": "^11.10.4",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"jest": "^29.7.0",
|
|
109
109
|
"jest-environment-jsdom": "^29.7.0"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "e1180f28ed9ce6a5a93141352ca5fbabd2b64cbc"
|
|
112
112
|
}
|