react-dockable-desktop 7.1.0 → 7.1.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/dist/index.d.cts CHANGED
@@ -245,6 +245,12 @@ interface ShowContextMenuOptions {
245
245
  x?: number;
246
246
  y?: number;
247
247
  items: ContextMenuItem[];
248
+ /**
249
+ * The menu's direction. By default it is the direction of the element the menu was opened from
250
+ * (the event's target); a workspace's `showContextMenu` passes its own direction for a menu
251
+ * opened without an event. The menu is portaled to `<body>`, so it can't inherit either.
252
+ */
253
+ dir?: 'ltr' | 'rtl';
248
254
  }
249
255
  interface ContextMenuHandle {
250
256
  show(options: ShowContextMenuOptions): void;
package/dist/index.d.ts CHANGED
@@ -245,6 +245,12 @@ interface ShowContextMenuOptions {
245
245
  x?: number;
246
246
  y?: number;
247
247
  items: ContextMenuItem[];
248
+ /**
249
+ * The menu's direction. By default it is the direction of the element the menu was opened from
250
+ * (the event's target); a workspace's `showContextMenu` passes its own direction for a menu
251
+ * opened without an event. The menu is portaled to `<body>`, so it can't inherit either.
252
+ */
253
+ dir?: 'ltr' | 'rtl';
248
254
  }
249
255
  interface ContextMenuHandle {
250
256
  show(options: ShowContextMenuOptions): void;