@haklex/rich-plugin-block-handle 0.31.0 → 0.31.1
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.
- package/dist/index.mjs +2 -1
- package/package.json +14 -14
package/dist/index.mjs
CHANGED
|
@@ -1138,9 +1138,10 @@ function BlockHandleInner({ editor }) {
|
|
|
1138
1138
|
const rect = block.getBoundingClientRect();
|
|
1139
1139
|
const rootRect = rootElement.getBoundingClientRect();
|
|
1140
1140
|
const midY = rect.top + rect.height / 2;
|
|
1141
|
+
const y = event.clientY < midY ? rect.top : rect.bottom;
|
|
1141
1142
|
setDropLine({
|
|
1142
1143
|
visible: true,
|
|
1143
|
-
top:
|
|
1144
|
+
top: y + window.scrollY,
|
|
1144
1145
|
left: rootRect.left + window.scrollX,
|
|
1145
1146
|
width: rootRect.width
|
|
1146
1147
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-plugin-block-handle",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.1",
|
|
4
4
|
"description": "Block handle plugin with add button and context menu",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,25 +21,25 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@lexical/code-core": "^0.
|
|
24
|
+
"@lexical/code-core": "^0.48.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@lexical/html": "^0.
|
|
28
|
-
"@lexical/list": "^0.
|
|
29
|
-
"@lexical/react": "^0.
|
|
30
|
-
"@lexical/rich-text": "^0.
|
|
31
|
-
"@lexical/selection": "^0.
|
|
27
|
+
"@lexical/html": "^0.48.0",
|
|
28
|
+
"@lexical/list": "^0.48.0",
|
|
29
|
+
"@lexical/react": "^0.48.0",
|
|
30
|
+
"@lexical/rich-text": "^0.48.0",
|
|
31
|
+
"@lexical/selection": "^0.48.0",
|
|
32
32
|
"@types/react": "^19.2.17",
|
|
33
33
|
"@types/react-dom": "^19.2.3",
|
|
34
|
-
"@vanilla-extract/css": "^1.21.
|
|
35
|
-
"@vanilla-extract/vite-plugin": "^5.2.
|
|
36
|
-
"lexical": "^0.
|
|
37
|
-
"lucide-react": "^1.
|
|
34
|
+
"@vanilla-extract/css": "^1.21.1",
|
|
35
|
+
"@vanilla-extract/vite-plugin": "^5.2.5",
|
|
36
|
+
"lexical": "^0.48.0",
|
|
37
|
+
"lucide-react": "^1.25.0",
|
|
38
38
|
"react": "^19.2.7",
|
|
39
39
|
"react-dom": "^19.2.7",
|
|
40
40
|
"typescript": "^6.0.3",
|
|
41
41
|
"unplugin-dts": "^1.0.3",
|
|
42
|
-
"vite": "^8.1.
|
|
42
|
+
"vite": "^8.1.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@lexical/html": "^0.47.0",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"lucide-react": "^1.0.0",
|
|
52
52
|
"react": ">=19",
|
|
53
53
|
"react-dom": ">=19",
|
|
54
|
-
"@haklex/rich-editor-ui": "^0.31.
|
|
55
|
-
"@haklex/rich-style-token": "^0.31.
|
|
54
|
+
"@haklex/rich-editor-ui": "^0.31.1",
|
|
55
|
+
"@haklex/rich-style-token": "^0.31.1"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|