@code0-tech/pictor 0.17.0 → 0.17.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.
@@ -22,9 +22,18 @@ export interface EditorInputProps extends Omit<InputWrapperProps, "onChange" | "
22
22
  placeholder?: string;
23
23
  children?: React.ReactNode;
24
24
  }
25
+ export type EditorInputMenuOpenMode = "shortcut" | "focus";
25
26
  export type EditorInputValueProps = Component<HTMLDivElement>;
26
27
  export type EditorInputTriggerProps = Component<HTMLButtonElement>;
27
- export type EditorInputMenuProps = MenuContentProps;
28
+ export type EditorInputMenuProps = MenuContentProps & {
29
+ /**
30
+ * When the menu opens.
31
+ * - "shortcut" (default): opens only on Ctrl+Space.
32
+ * - "focus": opens as soon as the input is focused and stays open while focused.
33
+ * Positioning stays anchored to the caret in both modes.
34
+ */
35
+ openOn?: EditorInputMenuOpenMode;
36
+ };
28
37
  export type EditorInputMenuItemProps = MenuItemProps & {
29
38
  value: any;
30
39
  data?: any;