react-dockable-desktop 7.3.0 → 7.4.1
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 +699 -0
- package/README.md +4 -5
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -13
- package/dist/index.d.ts +59 -13
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/styles.css +76 -8
- package/package.json +3 -2
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)
|
|
@@ -278,7 +278,7 @@ Lower-level methods (close guards, state providers, split and floating-window ge
|
|
|
278
278
|
| `close(options?)` | `(options?: CloseOptions) => void` | Request the container to close; respects dirty state and close guards (`{ force: true }` skips them) |
|
|
279
279
|
| `minimize()` | `() => void` | Minimize this panel to the taskbar; no effect in a modal or drawer |
|
|
280
280
|
| `setDirty(dirty, options?)` | `(dirty: boolean, options?: DirtyStateOptions) => void` | Mark unsaved changes; triggers confirmation dialog on close |
|
|
281
|
-
| `setTitle(title)` | `(title: string \| MessageDescriptor) => void` | Change the tab/window title dynamically |
|
|
281
|
+
| `setTitle(title)` | `(title: string \| MessageDescriptor \| (() => string)) => void` | Change the tab/window title dynamically |
|
|
282
282
|
| `setIcon(icon)` | `(icon: ReactNode) => void` | Change the tab, floating title bar and taskbar icon (or a modal's or drawer's header icon); `null` restores the registration's `defaultOptions.icon`. Not saved by `saveLayout()` |
|
|
283
283
|
|
|
284
284
|
### ContainerType
|
|
@@ -361,8 +361,7 @@ Touch support is built in. No extra setup required:
|
|
|
361
361
|
The library does **not** auto-detect the workspace's direction — the consuming app owns it. Two things must be wired together:
|
|
362
362
|
|
|
363
363
|
```tsx
|
|
364
|
-
// 1. Keep html[dir] in sync for
|
|
365
|
-
// which take their direction from the page.
|
|
364
|
+
// 1. Keep html[dir] in sync for the rest of your page (your own chrome around the desktop).
|
|
366
365
|
useEffect(() => {
|
|
367
366
|
document.documentElement.dir = isRtl ? 'rtl' : 'ltr';
|
|
368
367
|
}, [isRtl]);
|
|
@@ -376,7 +375,7 @@ useEffect(() => {
|
|
|
376
375
|
>
|
|
377
376
|
```
|
|
378
377
|
|
|
379
|
-
`dir` can be `'ltr'` (default) or `'rtl'`. The workspace's layout, split directions, tab ordering, floating window controls, drop zones and context menus flip automatically;
|
|
378
|
+
`dir` can be `'ltr'` (default) or `'rtl'`. The workspace's layout, split directions, tab ordering, floating window controls, drop zones and context menus flip automatically; so do `RddSidebar` (with everything inside it) and the toasts (since 7.4.0). While the workspace is left-to-right those two follow the page's `dir`.
|
|
380
379
|
|
|
381
380
|
Direction is **independent of locale** — you can have Arabic translations with LTR layout, or RTL without locale changes.
|
|
382
381
|
|