oasis-editor 0.0.264 → 0.0.266

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.
@@ -10,6 +10,8 @@ export interface MenuProps {
10
10
  ribbonSize?: "normal" | "large";
11
11
  /** Extra class for the popover panel. */
12
12
  panelClass?: string;
13
+ /** Reposition tall panels so they remain within the viewport vertically. */
14
+ fitViewport?: boolean;
13
15
  keepMounted?: boolean;
14
16
  onOpenChange?: (open: boolean) => void;
15
17
  children: JSX.Element;
@@ -21,6 +21,8 @@ export interface PopoverProps {
21
21
  panelClass?: string;
22
22
  panelRole?: JSX.HTMLAttributes<HTMLDivElement>["role"];
23
23
  panelTestId?: string;
24
+ /** Reposition tall panels so they remain within the viewport vertically. */
25
+ fitViewport?: boolean;
24
26
  onPanelMouseLeave?: () => void;
25
27
  closeOnEscape?: boolean;
26
28
  /**
@@ -8,6 +8,8 @@ export interface PopoverPositionOptions {
8
8
  /** Whether the popover is currently open. Listeners attach only while open. */
9
9
  open: Accessor<boolean>;
10
10
  placement?: PopoverPlacement;
11
+ /** Clamp the panel's vertical position to the visible viewport. */
12
+ fitViewport?: boolean;
11
13
  /** Vertical gap between anchor and panel, in px. */
12
14
  gap?: number;
13
15
  /** Minimum distance from the viewport edges, in px. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.264",
3
+ "version": "0.0.266",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {