@me1a/ui 2.6.1 → 2.6.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.mts CHANGED
@@ -1654,9 +1654,17 @@ interface MarkdownEditorProps {
1654
1654
  * whether the editor is disabled
1655
1655
  */
1656
1656
  disabled?: boolean;
1657
+ /**
1658
+ * callback when key is pressed
1659
+ */
1660
+ onKeyDown?: (event: KeyboardEvent) => void;
1661
+ /**
1662
+ * whether to focus the editor on mount
1663
+ */
1664
+ autoFocus?: boolean;
1657
1665
  }
1658
1666
 
1659
- declare function MarkdownEditor({ value, onChange, className, placeholder, disabled }: MarkdownEditorProps): react_jsx_runtime.JSX.Element | null;
1667
+ declare function MarkdownEditor({ value, onChange, className, placeholder, disabled, onKeyDown, autoFocus }: MarkdownEditorProps): react_jsx_runtime.JSX.Element | null;
1660
1668
 
1661
1669
  declare const Drawer: {
1662
1670
  ({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;