mirror of
https://github.com/mathuo/dockview
synced 2026-07-18 12:35:45 +00:00
5feed0ab61
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.
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
reactpeer dependency; framework bindings live in thedockview-<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 onreact. - Published as dockview-react on npm — the canonical install name for React.
docs
- Code for dockview.dev.