@burdenoff/microfe-bigconsole 2026.1124.9 → 2026.1124.10

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.
@@ -14,6 +14,8 @@ export interface DragProps {
14
14
  onDragStart?: (event: DragEvent) => void;
15
15
  onDragEnd?: () => void;
16
16
  }
17
+ /** Marks a control a card can be dragged by (the board's name): a press on it still starts the drag. */
18
+ export declare const DRAG_THROUGH = "data-drag-through";
17
19
  export interface DropProps {
18
20
  onDragOver: (event: DragEvent) => void;
19
21
  onDragLeave: (event: DragEvent) => void;
@@ -1,14 +1,14 @@
1
1
  import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
2
2
  // src/bigconsole/hooks/useBoardDragLink.ts
3
- var i = "button, a, input, select, textarea, label, summary, [role=\"button\"], [role=\"menuitem\"], [contenteditable]";
4
- function a(a) {
5
- let [o, s] = r(null), [c, l] = r(null), u = n(null), d = n(null), f = n(a);
3
+ var i = "data-drag-through", a = "button, a, input, select, textarea, label, summary, [role=\"button\"], [role=\"menuitem\"], [contenteditable]";
4
+ function o(i) {
5
+ let [o, s] = r(null), [c, l] = r(null), u = n(null), d = n(null), f = n(i);
6
6
  t(() => {
7
- f.current = a;
8
- }, [a]);
7
+ f.current = i;
8
+ }, [i]);
9
9
  let p = e(() => {
10
10
  u.current = null, s(null), l(null);
11
- }, []), m = (e) => a.canPickUp(e) ? {
11
+ }, []), m = (e) => i.canPickUp(e) ? {
12
12
  draggable: !0,
13
13
  onMouseDown: (e) => {
14
14
  d.current = e.target;
@@ -16,8 +16,8 @@ function a(a) {
16
16
  onDragStart: (t) => {
17
17
  let n = d.current;
18
18
  if (d.current = null, n instanceof Element) {
19
- let e = n.closest(i);
20
- if (e && e !== t.currentTarget && t.currentTarget.contains(e)) {
19
+ let e = n.closest(a);
20
+ if (e && !e.hasAttribute("data-drag-through") && e !== t.currentTarget && t.currentTarget.contains(e)) {
21
21
  t.preventDefault();
22
22
  return;
23
23
  }
@@ -59,4 +59,4 @@ function a(a) {
59
59
  reset: p
60
60
  };
61
61
  }
62
- export { a as useBoardDragLink };
62
+ export { i as DRAG_THROUGH, o as useBoardDragLink };