@blocklet/editor 2.5.53 → 2.5.55
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.
|
@@ -406,6 +406,7 @@ export const uploadFile = (editor) => {
|
|
|
406
406
|
if (window?.uploaderRef) {
|
|
407
407
|
// @ts-ignore
|
|
408
408
|
const uploader = window?.uploaderRef?.current?.getUploader();
|
|
409
|
+
clearRecentUploads();
|
|
409
410
|
uploader.open();
|
|
410
411
|
// fix safari 下焦点问题. 相关: https://github.com/blocklet/media-kit/pull/412
|
|
411
412
|
editor.blur();
|
|
@@ -449,7 +450,7 @@ export const uploadFile = (editor) => {
|
|
|
449
450
|
uploader.onUploadSuccess(preventDuplicateUploadSuccess(handleUploadSuccess));
|
|
450
451
|
// 点击 Uploader 中的 Done 后恢复 selection
|
|
451
452
|
uploader.onClose(() => {
|
|
452
|
-
|
|
453
|
+
uploader.removeFiles(uploader.getFiles().map((x) => x.id));
|
|
453
454
|
if (selection) {
|
|
454
455
|
editor.update(() => {
|
|
455
456
|
$setSelection(selection.clone());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/editor",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.55",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"ufo": "^1.5.4",
|
|
74
74
|
"url-join": "^4.0.1",
|
|
75
75
|
"zustand": "^4.5.5",
|
|
76
|
-
"@blocklet/pdf": "2.5.
|
|
76
|
+
"@blocklet/pdf": "2.5.55"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@babel/core": "^7.25.2",
|