react-dockable-desktop 7.6.0 → 7.6.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,52 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [7.6.2] — 2026-10-04
10
+
11
+ ### Fixed
12
+
13
+ - **The taskbar preview's close button drew its × at half width** on a page without a CSS reset
14
+ (a plain MUI app, Bootstrap, or no framework at all). The button is a `<button>`, so it kept the
15
+ browser's own padding (`1px 6px` in Chrome), and with the library's `border-box` sizing that
16
+ padding came out of its 18px: the 12px icon was drawn 6px wide. It now sets `padding: 0`, and
17
+ its icon no longer shrinks.
18
+ - **Workspace toolbar and sidebar rail buttons relied on the same browser padding.** It did not
19
+ show at the default icon size, but it capped the icon at 24px (toolbar) and 32px (rail), so a
20
+ `--rdd-chrome-icon-size` above 24px squeezed toolbar icons. They set `padding: 0` too. Nothing
21
+ changes on a page that already resets button padding.
22
+
23
+ ### Tests
24
+
25
+ - `hostPage.browser.ts`: on the harness page, which has no CSS reset, the preview's × draws its
26
+ icon at 12×12, and toolbar and rail buttons have no padding and fit a 28px icon. Each assertion
27
+ was seen failing without its `padding: 0`.
28
+
29
+ ## [7.6.1] — 2026-10-04
30
+
31
+ Internal restructuring. No behaviour, API or visual change.
32
+
33
+ ### Internal
34
+
35
+ - **The large source files are split into modules**, mirroring vue- and angular-dockable-desktop:
36
+ - `src/types.ts`: the layout, state and action types.
37
+ - `src/core/`: `workspaceCore.ts` (the workspace store), `layoutTree.ts`, `serialize.ts`,
38
+ `eventBus.ts`, `messages.ts`, `stretch.ts`, `panelOverlayGeometry.ts`. None depends on React.
39
+ - `src/components/workspace/`: the workspace view (`LeafGroup`, `WorkspaceGrid`,
40
+ `FloatingWindows`, `Taskbar`, `WorkspaceZones`, `panelMount`, the drag, menu and size hooks).
41
+ - `src/components/panelOverlay/`: the overlay root, toolbar, search, floating widget and hooks.
42
+
43
+ `WindowManager.tsx` (2,420 lines → 502), `WindowManagerContext.tsx` (2,475 → 321) and
44
+ `PanelOverlay.tsx` (1,497 → 18) keep every export they had, re-exporting what moved, so every
45
+ import path still works. Code was moved, not rewritten: the published API (157 exported names) is
46
+ unchanged, and the unit, browser and visual-baseline suites pass untouched.
47
+ - **The stylesheet is built from area files.** `src/styles/NN-area.css` (tokens, base, tabs, grid,
48
+ taskbar, floating windows, context menu, drop zones, one file per skin, sidebar, modals, drawers,
49
+ RTL, toolbar, panel overlay, toasts, focus…) are concatenated in file-name order into
50
+ `src/index.css`, which is generated and committed, and published as `dist/styles.css`. The
51
+ published stylesheet is byte-identical to 7.6.0 apart from a header comment. To change a style,
52
+ edit the area file and run `npm run css` (or `npm run css:watch`); `npm run css:check` and a
53
+ unit test fail if `src/index.css` is out of date.
54
+
9
55
  ## [7.6.0] — 2026-10-04
10
56
 
11
57
  Context menus open with nothing highlighted, the same every time.
@@ -780,7 +826,9 @@ All of the above is additive and backward-compatible: every new field is optiona
780
826
 
781
827
  ---
782
828
 
783
- [Unreleased]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.6.0...HEAD
829
+ [Unreleased]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.6.2...HEAD
830
+ [7.6.2]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.6.1...v7.6.2
831
+ [7.6.1]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.6.0...v7.6.1
784
832
  [7.6.0]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.5.0...v7.6.0
785
833
  [7.5.0]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.4.1...v7.5.0
786
834
  [7.4.1]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.4.0...v7.4.1
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.6.0-blue.svg)](https://www.npmjs.com/package/react-dockable-desktop)
3
+ [![npm version](https://img.shields.io/badge/npm-v7.6.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)