@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.
@@ -3515,6 +3515,7 @@ function SqlEditor(props) {
3515
3515
  onChange = props.onChange,
3516
3516
  onEnter = props.onEnter,
3517
3517
  onBlur = props.onBlur,
3518
+ onFocus = props.onFocus,
3518
3519
  editorDidMount = props.editorDidMount;
3519
3520
  var containerRef = React.useRef(null);
3520
3521
  var editorRef = React.useRef(null);
@@ -3578,6 +3579,7 @@ function SqlEditor(props) {
3578
3579
  });
3579
3580
  editor.onDidFocusEditorText(function () {
3580
3581
  isEditorFocused.set(true);
3582
+ onFocus == null || onFocus(editor.getValue());
3581
3583
  });
3582
3584
  // set the height of the editor container
3583
3585
  var updateElementHeight = function updateElementHeight() {