react-dockable-desktop 7.7.0 → 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 +96 -1
- package/README.md +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,99 @@ 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
|
+
|
|
45
|
+
## [7.7.1] — 2026-10-05
|
|
46
|
+
|
|
47
|
+
Two workspaces on one page no longer break each other. Several providers on one page were documented
|
|
48
|
+
as supported, but they shared state they should not have.
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- **A workspace's panels came back blank after another workspace on the page changed its panels.**
|
|
53
|
+
The panel DOM cache was shared by every workspace, and each workspace's cleanup deleted the cached
|
|
54
|
+
elements of panels that were not its own. On its next render the other workspace's panels got new,
|
|
55
|
+
empty elements: typed text, scroll offsets and React state were gone. Each workspace now keeps its
|
|
56
|
+
own panel DOM, sizes and lifecycle handlers.
|
|
57
|
+
- **Two workspaces with the same panel id interfered.** Both rendered into one element, `usePanelSize`
|
|
58
|
+
reported the other panel's size, `usePanelEvents` handlers fired for the other workspace's panel,
|
|
59
|
+
and closing the panel in one workspace silently dropped the other's handlers. Panel ids may now
|
|
60
|
+
repeat across workspaces.
|
|
61
|
+
- **A touch inside a taskbar preview could close it** while another workspace also showed a preview:
|
|
62
|
+
the "touched outside?" check found the first preview on the page rather than its own.
|
|
63
|
+
- **Unmounting one workspace stripped `<html>` of the other's skin, animations opt-out and stacking
|
|
64
|
+
base** (`data-rdd-skin`, `rdd-no-animations`, `--rdd-z-base`). With several workspaces mounted, the
|
|
65
|
+
most recently mounted one now decides these, and unmounting it hands them back to the others instead
|
|
66
|
+
of removing them. Chrome rendered outside the workspaces (menus, toasts, flyouts) therefore follows
|
|
67
|
+
the newest workspace's skin when two workspaces use different skins.
|
|
68
|
+
|
|
69
|
+
### Tests
|
|
70
|
+
|
|
71
|
+
- `TwoWorkspaces.test.tsx`: two providers in one document — distinct ids (a panel keeps its element
|
|
72
|
+
and state after the other workspace closes a panel), the same id (own element, own lifecycle
|
|
73
|
+
events, own size), the taskbar preview under touch, and the `<html>` mirror (newest wins, handed
|
|
74
|
+
back on unmount, a page-set skin left alone). Each assertion was seen failing on 7.7.0, the last one
|
|
75
|
+
with its guard removed.
|
|
76
|
+
- `twoWorkspaces.browser.ts` (harness `two=1`): a real tab drag and a close in one workspace leave the
|
|
77
|
+
other's typed input, scroll offset and DOM intact. On 7.7.0 the input came back empty.
|
|
78
|
+
|
|
79
|
+
### Internal
|
|
80
|
+
|
|
81
|
+
The browser suite takes about 5½ minutes instead of 12, with the same tests. Nothing in the published
|
|
82
|
+
package changes.
|
|
83
|
+
|
|
84
|
+
- **The scene helpers wait for the page to be still instead of sleeping.** Opening the harness, a
|
|
85
|
+
branding scene, its overlays and each hover now wait until nothing is animating or changing
|
|
86
|
+
(two still frames), with the old sleep as the ceiling. The wait after the pointer leaves a
|
|
87
|
+
control stays fixed, since the timers it starts are invisible to such a check, and so do the
|
|
88
|
+
timer tests in `taskbar.browser.ts`. Rewriting both baselines with the new helpers gave
|
|
89
|
+
byte-identical fixtures.
|
|
90
|
+
- **The radius tests check all three scales on one page per scene**: `--rdd-radius-scale` is set
|
|
91
|
+
on the open scene, which settles before its corners are read. Same 42 tests, a third of the page
|
|
92
|
+
loads.
|
|
93
|
+
- **A branding scene is captured twice only for an unexpected difference.** The intended
|
|
94
|
+
stale-accent changes are in every capture, so recapturing for them doubled most scenes and proved
|
|
95
|
+
nothing.
|
|
96
|
+
- **The baselines key elements by library class, not position**, so a new wrapper element no
|
|
97
|
+
longer renames everything after it (7.7.0's dialog row renamed a whole modal). Both fixtures were
|
|
98
|
+
regenerated once: every scene has the same entries with identical values, under the new keys.
|
|
99
|
+
- `V2Features.test.tsx`: the "logs nothing for an unused workspace" test moves a fake clock past
|
|
100
|
+
the old 1s timer instead of waiting it out (seen failing with such a timer added).
|
|
101
|
+
|
|
9
102
|
## [7.7.0] — 2026-10-05
|
|
10
103
|
|
|
11
104
|
Ready-made dialogs: the confirmation shows an icon, a new alert dialog, and both as promises.
|
|
@@ -880,7 +973,9 @@ All of the above is additive and backward-compatible: every new field is optiona
|
|
|
880
973
|
|
|
881
974
|
---
|
|
882
975
|
|
|
883
|
-
[Unreleased]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.
|
|
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
|
|
978
|
+
[7.7.1]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.7.0...v7.7.1
|
|
884
979
|
[7.7.0]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.6.2...v7.7.0
|
|
885
980
|
[7.6.2]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.6.1...v7.6.2
|
|
886
981
|
[7.6.1]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.6.0...v7.6.1
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# React Dockable Desktop
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/react-dockable-desktop)
|
|
4
4
|
[](https://www.typescriptlang.org/)
|
|
5
5
|
[](#touch--mobile)
|
|
6
6
|
[](#license)
|