@fc-components/monaco-editor 0.1.20 → 0.1.22

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.
@@ -2025,7 +2025,8 @@ var getStyles = function getStyles(placeholder) {
2025
2025
  };
2026
2026
  function PromQLEditor(props) {
2027
2027
  var id = uuid.v4();
2028
- var _props$size = props.size,
2028
+ var className = props.className,
2029
+ _props$size = props.size,
2029
2030
  size = _props$size === void 0 ? 'middle' : _props$size,
2030
2031
  _props$theme = props.theme,
2031
2032
  theme = _props$theme === void 0 ? 'light' : _props$theme,
@@ -2238,7 +2239,7 @@ function PromQLEditor(props) {
2238
2239
  }
2239
2240
  }, [enableAutocomplete, props.url, props.lookbackInterval, JSON.stringify(props.variablesNames), props.durationVariablesCompletion, props.httpMethod, props.apiPrefix, placeholder, enableRequests]);
2240
2241
  return React__default.createElement("div", {
2241
- className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '')
2242
+ className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '') + (className ? " " + className : '')
2242
2243
  }, React__default.createElement("div", {
2243
2244
  ref: containerRef
2244
2245
  }, React__default.createElement(MonacoEditor, {
@@ -3502,7 +3503,8 @@ var containerDisabledClassName$2 = /*#__PURE__*/css.css(_templateObject$2 || (_t
3502
3503
  var containerReadOnlyClassName$2 = /*#__PURE__*/css.css(_templateObject2$2 || (_templateObject2$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .monaco-editor .cursors-layer > .cursor {\n opacity: 0 !important;\n }\n"])));
3503
3504
  function SqlEditor(props) {
3504
3505
  var id = uuid.v4();
3505
- var maxHeight = props.maxHeight,
3506
+ var className = props.className,
3507
+ maxHeight = props.maxHeight,
3506
3508
  fontSize = props.fontSize,
3507
3509
  _props$size = props.size,
3508
3510
  size = _props$size === void 0 ? 'middle' : _props$size,
@@ -3637,8 +3639,9 @@ function SqlEditor(props) {
3637
3639
  };
3638
3640
  var themeValue = themeMap$2[theme];
3639
3641
  return React__default.createElement("div", {
3640
- className: 'ant-input' + (size ? " " + SIZE_MAP$2[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName$2 : '') + (readOnly ? " " + containerReadOnlyClassName$2 : ''),
3642
+ className: 'ant-input' + (size ? " " + SIZE_MAP$2[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName$2 : '') + (readOnly ? " " + containerReadOnlyClassName$2 : '') + (className ? " " + className : ''),
3641
3643
  style: {
3644
+ display: 'block',
3642
3645
  resize: 'vertical',
3643
3646
  overflow: 'auto',
3644
3647
  minHeight: SIZE_MAP$2[size].minHeight,
@@ -3667,6 +3670,7 @@ function SqlEditor(props) {
3667
3670
  scrollBeyondLastLine: false,
3668
3671
  smoothScrolling: true,
3669
3672
  fontSize: fontSize,
3673
+ lineHeight: 24,
3670
3674
  tabSize: 2,
3671
3675
  wordWrap: 'on',
3672
3676
  automaticLayout: true,