@marianmeres/widget-provider 1.1.2 → 1.1.3

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/draggable.js CHANGED
@@ -42,17 +42,15 @@ export function makeDraggable(container, iframe, options = {}) {
42
42
  // --- edge snap options ---
43
43
  const edgeSnapEnabled = options.edgeSnap !== false &&
44
44
  (!!options.edgeSnap || !!options.onEdgeSnap);
45
- const edgeSnapOpts = typeof options.edgeSnap === "object"
46
- ? options.edgeSnap
47
- : {};
45
+ const edgeSnapOpts = typeof options.edgeSnap === "object" ? options.edgeSnap : {};
48
46
  const dwellMs = edgeSnapOpts.dwellMs ?? DEFAULT_DWELL_MS;
49
47
  const onEdgeSnap = options.onEdgeSnap;
50
48
  // --- handle element (floating grip in top-left corner) ---
51
49
  const handle = document.createElement("div");
52
50
  Object.assign(handle.style, {
53
51
  position: "absolute",
54
- top: "0",
55
- left: "0",
52
+ top: "4px",
53
+ left: "4px",
56
54
  zIndex: "1",
57
55
  width: `${handleHeight}px`,
58
56
  height: `${handleHeight}px`,
@@ -75,9 +73,6 @@ export function makeDraggable(container, iframe, options = {}) {
75
73
  svg.style.width = "100%";
76
74
  svg.style.height = "100%";
77
75
  svg.style.pointerEvents = "none";
78
- // dual drop-shadow ensures visibility on both dark and light backgrounds
79
- svg.style.filter =
80
- "drop-shadow(0 0 1px rgba(255,255,255,0.9)) drop-shadow(0 0 1px rgba(0,0,0,0.9))";
81
76
  }
82
77
  // insert handle as an overlay (no layout impact on iframe)
83
78
  container.style.position ||= "relative";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/widget-provider",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "type": "module",
5
5
  "main": "dist/mod.js",
6
6
  "types": "dist/mod.d.ts",