@domternal/extension-block-menu 0.7.0 → 0.7.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/README.md +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Use it headless with vanilla JS/TS, add the built-in toolbar and theme, or drop
|
|
|
8
8
|
|
|
9
9
|
## Links
|
|
10
10
|
|
|
11
|
-
<u>[Website](https://domternal.dev)</u> • <u>[Documentation](https://domternal.dev/v1/introduction)</u>
|
|
11
|
+
<u>[Website](https://domternal.dev)</u> • <u>[Documentation](https://domternal.dev/v1/introduction)</u> •
|
|
12
12
|
<u>[StackBlitz (Angular)](https://stackblitz.com/edit/domternal-angular-full-example)</u> • <u>[StackBlitz (React)](https://stackblitz.com/edit/domternal-react-full-example)</u> • <u>[StackBlitz (Vue)](https://stackblitz.com/edit/domternal-vue-full-example)</u> • <u>[StackBlitz (Vanilla TS)](https://stackblitz.com/edit/domternal-vanilla-full-example)</u>
|
|
13
13
|
|
|
14
14
|
## Features
|
package/dist/index.cjs
CHANGED
|
@@ -1167,6 +1167,7 @@ function createBlockHandlePlugin(options) {
|
|
|
1167
1167
|
}, 0);
|
|
1168
1168
|
startAutoScroll();
|
|
1169
1169
|
startDragListeners();
|
|
1170
|
+
if (dropIndicator) editorEl?.classList.add("dm-block-handle-dragging");
|
|
1170
1171
|
};
|
|
1171
1172
|
const teardownDragPreview = () => {
|
|
1172
1173
|
if (dragPreview) {
|
|
@@ -1183,6 +1184,7 @@ function createBlockHandlePlugin(options) {
|
|
|
1183
1184
|
hideDropIndicator();
|
|
1184
1185
|
teardownDragPreview();
|
|
1185
1186
|
releaseDragPress();
|
|
1187
|
+
editorEl?.classList.remove("dm-block-handle-dragging");
|
|
1186
1188
|
};
|
|
1187
1189
|
return new state.Plugin({
|
|
1188
1190
|
key: pluginKey,
|
|
@@ -1278,6 +1280,7 @@ function createBlockHandlePlugin(options) {
|
|
|
1278
1280
|
dragBtn.removeEventListener("dragstart", onDragStart);
|
|
1279
1281
|
dragBtn.removeEventListener("dragend", onDragEnd);
|
|
1280
1282
|
editorEl?.classList.remove("dm-editor--has-block-handle");
|
|
1283
|
+
editorEl?.classList.remove("dm-block-handle-dragging");
|
|
1281
1284
|
root.remove();
|
|
1282
1285
|
editorEl = null;
|
|
1283
1286
|
hoverEl = null;
|