@mt-gloss/ui 0.0.18 → 0.0.19
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.
|
@@ -3,6 +3,14 @@ export interface EdgeHoverHandleProps {
|
|
|
3
3
|
state: ResizeState;
|
|
4
4
|
onPointerDown: (e: React.PointerEvent) => void;
|
|
5
5
|
onPointerUp: (e: React.PointerEvent) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Bug E (260417-drag-resize-5th-attempt) — handle's own pointerenter/leave
|
|
8
|
+
* keeps the edge-hover zone alive when pointer crosses from sentinel to
|
|
9
|
+
* handle (they're siblings, so sentinel.pointerleave would otherwise collapse
|
|
10
|
+
* state to idle, hiding the handle mid-gesture).
|
|
11
|
+
*/
|
|
12
|
+
onPointerEnter?: () => void;
|
|
13
|
+
onPointerLeave?: (e: React.PointerEvent) => void;
|
|
6
14
|
/** Which card edge the handle is positioned on. Default: 'right' */
|
|
7
15
|
edge?: 'right' | 'left';
|
|
8
16
|
ariaLabel?: string;
|
|
@@ -25,6 +25,8 @@ export interface UseEdgeHoverResizeReturn {
|
|
|
25
25
|
handleProps: {
|
|
26
26
|
onPointerDown: (e: React.PointerEvent) => void;
|
|
27
27
|
onPointerUp: (e: React.PointerEvent) => void;
|
|
28
|
+
onPointerEnter: () => void;
|
|
29
|
+
onPointerLeave: () => void;
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* quick-260417-2na §2a — Live preview during drag.
|