Files
Cody Beebe 5feed0ab61 test(core): cover sash dragging in a non-global document
Drives a sash drag on a Splitview built inside a second document
(document.implementation.createHTMLDocument), which is the shape a popout window
has: the element lives in that window's document, so its pointer events are
dispatched there.

Fails before the ownerDocument fix — the pointermove never reaches the listener
bound to the global document, so the views never resize.

The existing sash-drag test dispatches on the global document, where
sash.ownerDocument === document, so it passes either way and cannot catch this.
2026-07-16 09:20:45 -04:00
..
2026-06-22 20:14:50 +00:00
2026-06-22 20:14:50 +00:00

Project Structure

This mono-repository has a number of packages containing the code for the dockview library and the documentation website dockview.dev.

dockview-core

  • Contains the core logic for the dockview library.
  • Written entirely in JavaScript.

dockview

  • The batteries-included JavaScript package — re-exports the core API and registers the separable feature modules so consumers get the full feature set out of the box.
  • The package framework-agnostic consumers should install (npm install dockview).
  • Has no react peer dependency; framework bindings live in the dockview-<framework> packages.
  • Published as dockview on npm.

dockview-react

  • The React bindings package — holds the actual React source (DockviewReact, hooks, portal bridge).
  • Depends on dockview; peer dependency on react.
  • Published as dockview-react on npm — the canonical install name for React.

docs