@@ -14,7 +14,18 @@ package.
1414
1515## React users — action required (breaking)
1616
17- The React bindings moved from ` dockview ` to ` dockview-react ` .
17+ The React bindings moved from ` dockview ` to ` dockview-react ` . In v7 the
18+ ` dockview ` package is the vanilla JavaScript library (a re-export of
19+ ` dockview-core ` ), so it no longer exports the React components.
20+
21+ ** Symptoms if you don't migrate** (the React names are simply gone — core names
22+ like ` DockviewComponent ` still resolve from ` dockview ` ):
23+
24+ - TypeScript: ` error TS2305: Module '"dockview"' has no exported member 'DockviewReact' `
25+ - Runtime (JS): React throws * "Element type is invalid … got: undefined"* when
26+ rendering ` <DockviewReact /> ` , because the import resolves to ` undefined ` .
27+
28+ The fix is to install and import from ` dockview-react ` :
1829
1930``` diff
2031- npm install dockview
@@ -61,6 +72,25 @@ grep -rl "from 'dockview'" src | xargs sed -i '' "s/from 'dockview'/from 'dockvi
6172` dockview-core ` continues to be published and will keep working, but new code
6273should depend on ` dockview ` .
6374
75+ ### ` dockview-core ` no longer bundles every feature (behaviour change)
76+
77+ In v6, ` dockview-core ` shipped with all built-in features registered. In v7 a
78+ set of feature modules is no longer part of bare ` dockview-core ` :
79+
80+ - ** tab group chips** (chip rendering + the ` onDid*TabGroup ` events)
81+ - ** context menus** (the built-in tab / chip right-click menus)
82+ - ** advanced drag-and-drop** (` onWillDragPanel ` / ` onWillDragGroup ` /
83+ ` onWillDrop ` hooks, custom drag ghost / drop overlay)
84+ - ** keyboard accessibility** (keyboard navigation / docking / live-region
85+ announcements)
86+
87+ These now live in the ` dockview ` package. ** ` dockview-core ` is an internal
88+ package — use ` dockview ` ** (or a framework package — ` dockview-react ` / ` -vue ` /
89+ ` -angular ` , which all consume ` dockview ` ). Nothing throws if you stay on bare
90+ ` dockview-core ` — the affected features simply do nothing — so a one-time
91+ ` console.warn ` is emitted when a component is constructed on bare ` dockview-core `
92+ steering you to ` dockview ` .
93+
6494## Vue / Angular users
6595
6696No source changes required — keep installing ` dockview-vue ` / ` dockview-angular `
0 commit comments