@fc-components/monaco-editor 0.1.21 → 0.1.23

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,8 +2025,7 @@ var getStyles = function getStyles(placeholder) {
2025
2025
  };
2026
2026
  function PromQLEditor(props) {
2027
2027
  var id = uuid.v4();
2028
- var _props$className = props.className,
2029
- className = _props$className === void 0 ? '' : _props$className,
2028
+ var className = props.className,
2030
2029
  _props$size = props.size,
2031
2030
  size = _props$size === void 0 ? 'middle' : _props$size,
2032
2031
  _props$theme = props.theme,
@@ -2240,10 +2239,7 @@ function PromQLEditor(props) {
2240
2239
  }
2241
2240
  }, [enableAutocomplete, props.url, props.lookbackInterval, JSON.stringify(props.variablesNames), props.durationVariablesCompletion, props.httpMethod, props.apiPrefix, placeholder, enableRequests]);
2242
2241
  return React__default.createElement("div", {
2243
- className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '') + (" " + className),
2244
- style: {
2245
- display: 'block'
2246
- }
2242
+ className: 'ant-input' + (size ? " " + SIZE_MAP[size].className : '') + (disabled ? " ant-input-disabled " + containerDisabledClassName : '') + (readOnly ? " " + containerReadOnlyClassName : '') + (className ? " " + className : '')
2247
2243
  }, React__default.createElement("div", {
2248
2244
  ref: containerRef
2249
2245
  }, React__default.createElement(MonacoEditor, {
@@ -3507,7 +3503,8 @@ var containerDisabledClassName$2 = /*#__PURE__*/css.css(_templateObject$2 || (_t
3507
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"])));
3508
3504
  function SqlEditor(props) {
3509
3505
  var id = uuid.v4();
3510
- var maxHeight = props.maxHeight,
3506
+ var className = props.className,
3507
+ maxHeight = props.maxHeight,
3511
3508
  fontSize = props.fontSize,
3512
3509
  _props$size = props.size,
3513
3510
  size = _props$size === void 0 ? 'middle' : _props$size,
@@ -3596,7 +3593,7 @@ function SqlEditor(props) {
3596
3593
  var containerDiv = containerRef.current;
3597
3594
  if (containerDiv !== null) {
3598
3595
  var pixelHeight = editor.getContentHeight();
3599
- containerDiv.style.height = pixelHeight + "px";
3596
+ containerDiv.style.minHeight = pixelHeight + "px";
3600
3597
  containerDiv.style.width = '100%';
3601
3598
  var pixelWidth = containerDiv.clientWidth;
3602
3599
  editor.layout({
@@ -3642,15 +3639,19 @@ function SqlEditor(props) {
3642
3639
  };
3643
3640
  var themeValue = themeMap$2[theme];
3644
3641
  return React__default.createElement("div", {
3645
- 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 : ''),
3646
3643
  style: {
3644
+ display: 'block',
3647
3645
  resize: 'vertical',
3648
3646
  overflow: 'auto',
3649
3647
  minHeight: SIZE_MAP$2[size].minHeight,
3650
3648
  maxHeight: maxHeight
3651
3649
  }
3652
3650
  }, React__default.createElement("div", {
3653
- ref: containerRef
3651
+ ref: containerRef,
3652
+ style: {
3653
+ height: '100%'
3654
+ }
3654
3655
  }, React__default.createElement(MonacoEditor, {
3655
3656
  width: '100%',
3656
3657
  height: '100%',