@mt-gloss/ui 0.0.46 → 0.0.47

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.
@@ -37,6 +37,21 @@ export interface UseEdgeHoverResizeArgs {
37
37
  * session 260419-ghost-slides-across-page — AP-17 companion invariant).
38
38
  */
39
39
  maxColSpan?: 1 | 2 | 3;
40
+ /**
41
+ * Polish Fix #7 (0.0.46 UAT) — optional slot-scoped container element.
42
+ * When provided, the hook installs a window-level pointermove listener
43
+ * during 'dwelling' and 'handle-visible' states. If the cursor's target
44
+ * is NOT within `containerRef.current`, the hook force-calls
45
+ * `leaveEdgeZone()` — self-heal that fires when a consumer's own
46
+ * pointerleave guard (e.g. MetricCardSlot's `closest('.edge-hover-sentinel')`)
47
+ * incorrectly matches a SIBLING card's sentinel during a rapid sweep,
48
+ * leaving this card stuck at 'handle-visible' while the pointer has
49
+ * already moved on. Drag/settling are exempt (pointer capture owns the
50
+ * gesture); the self-heal only resets pre-gesture hover state.
51
+ */
52
+ containerRef?: React.RefObject<Element | null> | {
53
+ current: Element | null;
54
+ };
40
55
  }
41
56
  export interface UseEdgeHoverResizeReturn {
42
57
  state: ResizeState;
@@ -98,4 +113,4 @@ export interface UseEdgeHoverResizeReturn {
98
113
  * - Bug E handle pointerenter keeps zone alive on sentinel→handle crossover
99
114
  * - Dwell timer cleanup on unmount
100
115
  */
101
- export declare function useEdgeHoverResize({ currentColSpan, stackable, onResize, onCancel, step, gap, tuning, dwellMs, enterMs, exitMs, maxColSpan, }: UseEdgeHoverResizeArgs): UseEdgeHoverResizeReturn;
116
+ export declare function useEdgeHoverResize({ currentColSpan, stackable, onResize, onCancel, step, gap, tuning, dwellMs, enterMs, exitMs, maxColSpan, containerRef, }: UseEdgeHoverResizeArgs): UseEdgeHoverResizeReturn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mt-gloss/ui",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "restricted"