@blocklet/editor 2.4.26 → 2.4.28
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.
|
@@ -9,7 +9,7 @@ export function markdownToLexical({ markdown }) {
|
|
|
9
9
|
onError: (e) => reject(e),
|
|
10
10
|
});
|
|
11
11
|
editor.update(() => {
|
|
12
|
-
$convertFromMarkdownString(markdown, PLAYGROUND_TRANSFORMERS);
|
|
12
|
+
$convertFromMarkdownString(markdown, PLAYGROUND_TRANSFORMERS, undefined, true);
|
|
13
13
|
});
|
|
14
14
|
editor.registerUpdateListener(({ editorState }) => {
|
|
15
15
|
editorState.read(() => {
|
|
@@ -31,7 +31,7 @@ export function ImageAnnotation({ editing, setEditing, imageRef, markerState, on
|
|
|
31
31
|
markerArea.show();
|
|
32
32
|
const parsed = parseMarkerState(markerState);
|
|
33
33
|
if (parsed) {
|
|
34
|
-
markerArea.restoreState(parsed);
|
|
34
|
+
setTimeout(() => markerArea.restoreState(parsed), 400);
|
|
35
35
|
}
|
|
36
36
|
return () => {
|
|
37
37
|
markerArea.close();
|
|
@@ -78,7 +78,7 @@ export function ImageAnnotationView({ imageRef, markerState, sx, ...rest }) {
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
},
|
|
81
|
+
}, 400);
|
|
82
82
|
return () => {
|
|
83
83
|
clearTimeout(timer);
|
|
84
84
|
markerView.close();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/editor",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.28",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"ufo": "^1.5.4",
|
|
70
70
|
"url-join": "^4.0.1",
|
|
71
71
|
"zustand": "^4.5.5",
|
|
72
|
-
"@blocklet/pdf": "^2.4.
|
|
72
|
+
"@blocklet/pdf": "^2.4.28"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@babel/core": "^7.25.2",
|