react-dockable-desktop 7.5.0 → 7.6.0
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 +60 -1
- package/README.md +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +12 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -251,6 +251,15 @@ interface ShowContextMenuOptions {
|
|
|
251
251
|
* opened without an event. The menu is portaled to `<body>`, so it can't inherit either.
|
|
252
252
|
*/
|
|
253
253
|
dir?: 'ltr' | 'rtl';
|
|
254
|
+
/**
|
|
255
|
+
* Where focus goes when the menu opens. `'menu'` (the default) focuses the menu itself, with no
|
|
256
|
+
* item highlighted: ArrowDown then reaches the first item and ArrowUp the last. `'first-item'`
|
|
257
|
+
* focuses the first enabled item, for a menu opened from the keyboard. When this is left out, a
|
|
258
|
+
* keyboard `contextmenu` event (the ContextMenu key or Shift+F10, which report no pointer
|
|
259
|
+
* position) opens on the first item and everything else, including a call with no event, on
|
|
260
|
+
* the menu: the same view every time, whatever the user did before.
|
|
261
|
+
*/
|
|
262
|
+
initialFocus?: 'menu' | 'first-item';
|
|
254
263
|
}
|
|
255
264
|
interface ContextMenuHandle {
|
|
256
265
|
show(options: ShowContextMenuOptions): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -251,6 +251,15 @@ interface ShowContextMenuOptions {
|
|
|
251
251
|
* opened without an event. The menu is portaled to `<body>`, so it can't inherit either.
|
|
252
252
|
*/
|
|
253
253
|
dir?: 'ltr' | 'rtl';
|
|
254
|
+
/**
|
|
255
|
+
* Where focus goes when the menu opens. `'menu'` (the default) focuses the menu itself, with no
|
|
256
|
+
* item highlighted: ArrowDown then reaches the first item and ArrowUp the last. `'first-item'`
|
|
257
|
+
* focuses the first enabled item, for a menu opened from the keyboard. When this is left out, a
|
|
258
|
+
* keyboard `contextmenu` event (the ContextMenu key or Shift+F10, which report no pointer
|
|
259
|
+
* position) opens on the first item and everything else, including a call with no event, on
|
|
260
|
+
* the menu: the same view every time, whatever the user did before.
|
|
261
|
+
*/
|
|
262
|
+
initialFocus?: 'menu' | 'first-item';
|
|
254
263
|
}
|
|
255
264
|
interface ContextMenuHandle {
|
|
256
265
|
show(options: ShowContextMenuOptions): void;
|