@fc-components/monaco-editor 0.1.18 → 0.1.19

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.
@@ -3509,6 +3509,7 @@ function SqlEditor(props) {
3509
3509
  onChange = props.onChange,
3510
3510
  onEnter = props.onEnter,
3511
3511
  onBlur = props.onBlur,
3512
+ onFocus = props.onFocus,
3512
3513
  editorDidMount = props.editorDidMount;
3513
3514
  var containerRef = useRef(null);
3514
3515
  var editorRef = useRef(null);
@@ -3572,6 +3573,7 @@ function SqlEditor(props) {
3572
3573
  });
3573
3574
  editor$1.onDidFocusEditorText(function () {
3574
3575
  isEditorFocused.set(true);
3576
+ onFocus == null || onFocus(editor$1.getValue());
3575
3577
  });
3576
3578
  // set the height of the editor container
3577
3579
  var updateElementHeight = function updateElementHeight() {