Doruk Kavcioglu 08b4c31f54
refactor(inspector): keep the persistent host inside the keyed boundary and add owner-aware timeline policy
Follow-up to the persistent floating-inspector host. The host no longer needs to
outlive the selection boundary — a normal keyframe click may close the session —
so this pulls it back inside and replaces the cross-boundary lifetime machinery
with a narrower timeline policy.

- Move ActiveInspectorProvider and the single host back inside the selectionHash
  keyed boundary. Genuine selection changes (empty click, another layer, a keyframe
  click) now close the session via the keyed remount; the host stays non-keyed so it
  still persists across owner changes within one selection.
- Fix cross-owner handoff with a dedicated data-inspector-handoff attribute: pointerdown
  over an inspector-opening control no longer dismisses the current session, so state
  goes directly owner→owner without passing through null (which rebuilt the layer).
  Marked on the effect/shadow/transition/animation/export rows, the direct shadow/fill/
  stroke "+" buttons, and the color/fill swatches — not on dropdowns, remove buttons,
  or unrelated controls, which keep normal dismissal.
- Replace the selection-membership ownership effect with owner-aware drag detection:
  drags never touch Selected (clip.ts/keyframe.ts mutate it on click only), so query
  ClipDragOrigin/KeyframeDragOrigin and close only when a dragged clip/keyframe belongs
  to a different layer than ownerNodeEid. Playhead and current-layer drags preserve the
  full main+nested session; other-layer drags close it.
- Trim InspectorSession to what remains needed (drop triggerEl, triggerControlSelector,
  keepOpenWhile); keep ownerNodeEid solely for the timeline policy. Layer-less inspectors
  (background/export) pass null and keep normal dismissal.
2026-07-21 21:42:07 +03:00
..