@floegence/floe-webapp-core 0.52.2 → 0.52.4

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.
@@ -1,3 +1,5 @@
1
+ import { type JSX } from 'solid-js';
2
+ import { type SurfaceFloatingBoundary } from '../ui/surfaceFloatingBoundary';
1
3
  import type { ContextMenuActionType, ContextMenuCallbacks, ContextMenuEvent, ContextMenuItem, FileItem } from './types';
2
4
  /**
3
5
  * Built-in menu action types (excluding 'custom').
@@ -11,6 +13,14 @@ export type BuiltinContextMenuAction = Exclude<ContextMenuActionType, 'custom'>;
11
13
  export type HideItemsValue = BuiltinContextMenuAction[] | ((targetItems: FileItem[]) => BuiltinContextMenuAction[]);
12
14
  type ContextMenuDismissWindow = Pick<Window, 'addEventListener' | 'removeEventListener'>;
13
15
  export interface FileContextMenuProps {
16
+ /** Intersect the owner surface and visible viewport with this client-coordinate boundary. */
17
+ boundary?: SurfaceFloatingBoundary;
18
+ /** Stable trigger used for ownership and Escape/Tab focus restoration. */
19
+ owner?: HTMLElement | null;
20
+ /** Localized label for returning from a compact submenu. */
21
+ backLabel?: string;
22
+ /** Additional attributes for the real constrained menu scroll viewport. */
23
+ scrollViewportProps?: JSX.HTMLAttributes<HTMLDivElement>;
14
24
  /** Custom menu items to add (will be merged with defaults) */
15
25
  customItems?: ContextMenuItem[];
16
26
  /** Override default menu items completely */
@@ -34,10 +44,10 @@ export declare function dispatchContextMenuAction(item: ContextMenuItem, items:
34
44
  export declare function installContextMenuDismissListeners(options: {
35
45
  ownerWindow: ContextMenuDismissWindow;
36
46
  contextMenuId: string;
37
- onDismiss: () => void;
47
+ onDismiss: (reason?: 'escape') => void;
38
48
  }): () => void;
39
49
  /**
40
50
  * Context menu for file browser items
41
51
  */
42
- export declare function FileContextMenu(props: FileContextMenuProps): import("solid-js").JSX.Element;
52
+ export declare function FileContextMenu(props: FileContextMenuProps): JSX.Element;
43
53
  export {};