react-dockable-desktop 7.7.1 → 7.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [7.7.2] — 2026-10-05
10
+
11
+ Panels re-render only when something about them changes. Before, focusing one panel or moving a
12
+ window by one pixel re-rendered every open panel: with 100 panels open, 100 re-renders per pointer
13
+ move. Now none.
14
+
15
+ ### Fixed
16
+
17
+ - **Every panel re-rendered on every workspace change.** The desktop rebuilt each open panel's
18
+ element whenever it rendered: on a focus change, on each pointer move of a window drag or resize,
19
+ on a split resize. Each panel is now mounted by its own memoised host that reads only that panel's
20
+ entry, so a panel re-renders when its own title, icon, dirty flag or props change, or when what it
21
+ reads through `usePanel()`, `usePanelSize()` or `useWorkspaceState(selector)` does. A panel that
22
+ shows something it does not subscribe to (a value read from `ws.getOpenPanelIds()` or a module
23
+ variable during render) no longer refreshes on unrelated changes; read it with
24
+ `useWorkspaceState(selector)` instead.
25
+ - **`useWorkspaceState(selector)` re-rendered on every change**, whatever the selector returned, as
26
+ if no selector had been passed. It now re-renders only when the selected value changes, as
27
+ documented. Without a selector it still re-renders on every change.
28
+ - **Each pointer move of a tab drag re-rendered the whole desktop**, to move the ghost tab. Only the
29
+ ghost re-renders now. During a touch drag, moving within the same drop target no longer
30
+ re-renders the desktop either.
31
+ - **Open modals and side panels re-rendered their content on every workspace change**, including
32
+ each pointer move of a window drag behind them: their renderers read the whole state for the
33
+ direction. They now read only the direction, and so do the sidebar, toasts and panel overlay
34
+ widgets.
35
+
36
+ ### Tests
37
+
38
+ - `RenderScope.test.tsx`: with 10 and 100 panels, a focus change and a window move (through the
39
+ API and by dragging the title bar) re-render no panel; a focus change re-renders exactly the two
40
+ panels whose `usePanel().isActive` flips; renaming a panel re-renders that panel only;
41
+ `useWorkspaceState(selector)` re-renders only when its value changes; a window move re-renders no
42
+ open modal's content; a tab-drag move moves the ghost without re-rendering the desktop. Each was seen failing on 7.7.1, and again with the memo,
43
+ the selector hook, the modal renderer's selector or the ghost's own store broken.
44
+
9
45
  ## [7.7.1] — 2026-10-05
10
46
 
11
47
  Two workspaces on one page no longer break each other. Several providers on one page were documented
@@ -937,7 +973,8 @@ All of the above is additive and backward-compatible: every new field is optiona
937
973
 
938
974
  ---
939
975
 
940
- [Unreleased]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.1...HEAD
976
+ [Unreleased]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.2...HEAD
977
+ [7.7.2]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.1...v7.7.2
941
978
  [7.7.1]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.0...v7.7.1
942
979
  [7.7.0]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.6.2...v7.7.0
943
980
  [7.6.2]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.6.1...v7.6.2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # React Dockable Desktop
2
2
 
3
- [![npm version](https://img.shields.io/badge/npm-v7.7.1-blue.svg)](https://www.npmjs.com/package/react-dockable-desktop)
3
+ [![npm version](https://img.shields.io/badge/npm-v7.7.2-blue.svg)](https://www.npmjs.com/package/react-dockable-desktop)
4
4
  [![TypeScript](https://img.shields.io/badge/TypeScript-first-3178c6.svg)](https://www.typescriptlang.org/)
5
5
  [![Touch Ready](https://img.shields.io/badge/touch-iPad%20%7C%20Android-success.svg)](#touch--mobile)
6
6
  [![license](https://img.shields.io/badge/license-MIT-green.svg)](#license)