dockview warns that dockview-core is an internal package #60
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lz/agent-nexus#60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
With the dock from #58, the browser console logs once on load:
Everything works. This is a warning, not an error, and there are no other console errors.
Context
PR #58 depends on
dockview-core@7.0.2directly. That choice was deliberate at the time:dockview-coreis the framework-agnostic core, it has zero runtime dependencies, and we hand-rolled the Svelte binding (nexus/src/lib/dock/svelte-renderer.svelte.ts, ~50 lines) because dockview ships no official Svelte adapter.The warning suggests upstream now considers
dockview(notdockview-core) the supported vanilla-JS entry point. Historicallydockviewwas the React wrapper, so this appears to be a change in how the packages are positioned.What to check
dockview(the package) actually expose a framework-agnostic API, or does it pull in React? Check itsdependenciesand itscreateDockviewexport. Probe the published tarball, not the docs — the docs site 404s on several pages, and PR #58 already found one type (GroupPanelViewState) that the docs imply is exported from the root but isn't.dockviewis dependency-free and exports the samecreateDockview/IContentRenderersurface, this is likely a one-line import swap inDock.svelteplus the type imports insvelte-renderer.svelte.tsandlayout.ts.dockview-coreand suppress or simply accept the warning — a React dependency is not worth silencing a once-per-load console notice.Priority
Low. Cosmetic today. Worth resolving before it becomes a real deprecation, and worth knowing which package we should be on before PR-B/PR-C build more on this foundation.